PageSourceSearch

https://www.alfainsurance.com/js/site.min.js?v=A6tKVluHIhHIqb79iy_abIYLKHjzM7feuH_ICwpjf0Q

js alfainsurance.com collected 2026-09-24 11:22:56 UTC 20,601 bytes, 7 lines download raw bytes

1function AuthenticateUser(){const n=new URL(window.location.href).searchParams;n.has("code")&&n.has("state")?ExchangeCode(n.get("code"),n.get("state")):LogoutUser(LOGIN_PAGE)}function ExchangeCode(n,t){$.ajax({method:"POST",url:"/api/CodeForTokenExchange",data:{code:n,state:t},success:function(n){window.location.href=window.location.origin+n.redirectUrl},error:function(){LogoutUser(LOGIN_PAGE)}})}function HasActiveSession(n){oktaSignIn.authClient.session.exists().then(t=>{n&&t||window.location.pathname.indexOf("/myalfa/AuthenticateTransition")===-1&&oktaSignIn.authClient.session.get().then(function(n){n.status==="ACTIVE"?(console.log("Active session found for"+n.login),console.log("User does not have an access token in the session yet."),GetTokensFromSession()):LogoutUser("/")}).catch(function(){LogoutUser(LOGIN_PAGE)})}).catch(n=>(console.log(n),!1))}function GetTokensFromSession(){oktaSignIn.authClient.token.getWithoutPrompt({responseType:"code",scopes:scopes,state:state}).then(function(n){ExchangeCode(n.code,n.state)}).catch(function(){LogoutUser(LOGIN_PAGE)})}function LogoutUser(n){$.ajax({url:"/api/Logout",cache:!1,success:function(){sessionStorage.removeItem("checkDisplayPreference");sessionStorage.removeItem("opt-in-paperless-notification");sessionStorage.removeItem("quickLinksSelPolicy");oktaSignIn.authClient.signOut();location.replace(n)},error:function(){window.location.href=`${window.location.origin}${LOGIN_PAGE}`}})}function RenderSignInWidget(){oktaSignIn.renderEl({el:"#okta-login-container"},function(){},function(){})}function getQueryStringParams(n){var i={},r,t;if(!n)return i;for(r=(/^[?#]/.test(n)?n.slice(1):n).split("&"),t=0;t<r.length;t++){var u=r[t].split("="),e=u[0],f=u[1];i[e]=f?decodeURIComponent(f.replace(/\+/g," ")):""}return i}function NavigateToLogin(){LogoutUser(LOGIN_PAGE)}function setValidationState(n,t,i,r=""){i?(t.innerHTML="",t.classList.remove("field-validation-error"),t.classList.add("field-validation-valid"),n.classList.remove("input-validation-error")):(t.innerHTML=r,t.classList.remove("field-validation-valid"),t.classList.add("field-validation-error"),n.classList.add("input-validation-error"))}function handleOverlayFormSubmit({formSelector:i,inputSelector:u,validationSelector:o,validate:e,errorMessage:t,apiUrl:n,getBody:r,onSuccess:f}){const l=document.querySelector(i);if(l){const s=document.querySelector(u),h=document.querySelector(o);if(s&&h){const c='<span class="fa fa-exclamation-circle" aria-hidden="true"><\/span>';l.addEventListener("submit",async function(i){i.preventDefault();h.innerHTML="";const u=s.value.trim(),o=e(u);if(setValidationState(s,h,o,`${c} ${t}`),o)try{const i=r?r():{[s.name]:u},e=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)}),t=await e.json();if(t.success)f?f(t):t.redirectUrl&&(window.location.href=t.redirectUrl);else{const n=t.errors&&Object.keys(t.errors)[0];n&&t.errors[n]&&t.errors[n].length>0?setValidationState(s,h,!1,`${c} ${t.errors[n][0]}`):setValidationState(s,h,!1,`${c} ${t.message||"Submission failed."}`)}}catch{setValidationState(s,h,!1,`${c} An error occurred. Please try again.`)}});s.addEventListener("input",()=>{const i=s.value.trim(),n=e(i);h.innerHTML&&n?setValidationState(s,h,!0):n||setValidationState(s,h,!1,`${c} ${t}`)})}}}const LOGIN_PAGE="/myalfa/login",oktaConfig={logo:"/images/alfa_logo.png",language:"en",i18n:{en:{"primaryauth.title":"Sign In","primaryauth.submit":"Sign In","registration.signup.text":"Create an Account","rememberDevice.timebased":"Do not prompt me on this device for next {0}","primaryauth.username.placeholder":"Email","primaryauth.username.tooltip":"Email","error.username.required":"Enter a valid email address","error.password.required":"Enter your password","error.expired.session":"Your session has expired. Please try to sign in again.","errors.E0000004":"Sorry, your login information did not match our records. Please try again.","registration.error.password.passwordRequirementsNotMet":"Your new password does not meet the requirements. Please try again.",forgotpassword:"Forgot Password?",unlockaccount:"Unlock Account",backToSignin:"Back to Sign in",goback:"Back to Sign in","error.auth.lockedOut":"Your account has been locked due to too many failed login attempts. Please contact us for assistance.","errors.E0000105":"The recovery link you are trying to access has expired. Please click reset password again or c
1ontact us for assistance.","password.reset.title.generic":"Reset Password",signout:"Back to Sign In","enroll.choices.title":"Alfa cares about your security","enroll.choices.description.generic":"For added security, we'd like to further verify your account. Choose which method(s) you’d like to use for authentication.","enroll.choices.optional":"For added security, we'd like to further verify your account. Choose which method(s) you’d like to use for authentication.","enroll.sms.setup":"Set up Text Message Authentication","enroll.sms.try_again":"The number you entered seems to be invalid. If the number is correct, please try again","factor.sms.time.warning":"Haven’t received a text message? To try again, click Resend.","enroll.call.setup":"Set up Voice Call Authentication","email.enroll.title":"Set up Email Authentication","email.enroll.description":"Your authentication code will be sent to your registered email address.","mfa.phoneNumber.placeholder":"Mobile Number","mfa.sendCode":"Text Me","mfa.resendCode":"Resend","mfa.call":"Call me","email.mfa.title":"Email","email.mfa.description":"{0}Your authentication code will be sent to your registered email address.","email.button.send":"Email Me","email.code.label":"Enter Code","email.mfa.email.sent.description":"{0}Your authentication code will be sent to your registered email address.","email.code.not.received":"Haven’t received an email? To try again, click","email.button.resend":"Resend.",needhelp:"Need help?","factor.sms":"Text Message","factor.call":"Voice Call","factor.email":"Email","account.unlock.sendText":"Text Message","account.unlock.voiceCall":"Voice Call","account.unlock.sendEmail":"Email","account.unlock.email.or.username.placeholder":"Email","account.unlock.email.or.username.tooltip":"How would you like your authentication code to be sent to you?","account.unlock.emailSent.title":"Email sent","password.forgot.sendText":"Text Message","password.forgot.call":"Voice Call","password.forgot.sendEmail":"Email","password.forgot.email.or.username.placeholder":"Email","password.forgot.email.or.username.tooltip":"How would you like your authentication code to be sent to you?","password.forgot.emailSent.title":"Email sent","password.forgot.emailSent.desc":"An email has been sent to {0} with instructions on resetting your password.","password.expired.title.generic":"Create New Password","password.confirmPassword.placeholder":"Confirm New Password","password.confirmPassword.tooltip":"Confirm New Password","password.error.match":"Passwords do not match.","recoveryChallenge.sms.title":"Text Message","recoveryChallenge.call.title":"Voice Call","recovery.mobile.hint":"{0} can only be used if a mobile phone number has been provided for account authentication. To edit your authentication settings, call the Customer Resource Center at 1-800-964-2532.","account.unlock.unlocked.title":"Account Unlocked","account.unlock.unlocked.desc":"Your account has been unlocked."}},features:{registration:!0,rememberMe:!0,selfServiceUnlock:!0,multiOptionalFactorEnroll:!0,scrollOnError:!1,smsRecovery:!0,callRecovery:!0,showPasswordToggleOnSignInPage:!0},useClassicEngine:!0,baseUrl:baseUrl,clientId:clientId,redirectUri:window.location.origin+"/myalfa/AuthenticateTransition",authParams:{pkce:!1,issuer:issuer,responseType:"code",scopes:scopes,display:"page"}};let searchParams=new URL(window.location.href).searchParams;oktaConfig.state=searchParams.get("ReturnUrl");searchParams.has("recoveryToken")&&(oktaConfig.recoveryToken=searchParams.get("recoveryToken"));const oktaSignIn=new OktaSignIn(oktaConfig);oktaSignIn.on("afterError",function(n,t){t.xhr.responseJSON.errorCode!=="E0000004"||$("#okta-alfa-invalid-cred-id").length?(t.xhr.responseJSON.errorCode==="E0000014"||t.xhr.responseJSON.errorCode==="E0000080")&&$(".okta-form-subtitle").hide():($("#okta-signin-username").val(""),$("#okta-signin-password").val(""))});oktaSignIn.on("afterRender",function(n){var t=$(".o-form-explain").text();t==="Enter the email associated with your Alfa Insurance account. If you no longer use the email address associated with your Alfa Insurance account, please contact us."&&($(".o-form-explain").text("Enter the email associated with your Alfa Insurance account. If you no longer use the email address associated with your Alfa Insurance account, please"),$(".o-form-explain").append(' <a href="/about-alfa/contact-us" style="text-decoration: underline;">contact us.<\/a>'));n.controller==="password-reset"&&($(`<ul class='password-requirements'>
2		        <li class='requirement'><span>min 12 characters</span></li>
3		        <li class='requirement'><span>lowercase character</span></li>
4		        <li class='requirement'><span>number</span></li>
5                <li class='requirement'><span>uppercase character</span></li>
6                <li class='requirement'><span>symbol</span></li>
7	        </ul>`).insertAfter(".password-reset .o-form-content.o-form-theme.clearfix"),document.querySelector(".o-form-input-name-newPassword.o-form-control.okta-form-input-field.input-fix input").addEventListener("input",n=>{let t=n.target.value;t.length>=12?document.querySelector(".password-requirements li:first-child").classList.add("active"):document.querySelector(".password-requirements li:first-child").classList.remove("active");/[a-z]/.test(t)?document.querySelector(".password-requirements li:nth-child(2)").classList.add("active"):document.querySelector(".password-requirements li:nth-child(2)").classList.remove("active");/[0-9]/.test(t)?document.querySelector(".password-requirements li:nth-child(3)").classList.add("active"):document.querySelector(".password-requirements li:nth-child(3)").classList.remove("active");/[A-Z]/.test(t)?document.querySelector(".password-requirements li:nth-child(4)").classList.add("active"):document.querySelector(".password-requirements li:nth-child(4)").classList.remove("active");/[$&+,:;=?@#|'<>.^*()%!-]/.test(t)?document.querySelector(".password-requirements li:nth-child(5)").classList.add("active"):document.querySelector(".password-requirements li:nth-child(5)").classList.remove("active")}));$(".registration-link").addClass("alfa-registration-link");$(".alfa-registration-link").attr("href","/myalfa-account-support/registration");$(".alfa-registration-link").removeClass("registration-link");$(".alfa-registration-link").removeAttr("title");$('a.link.help.js-help[data-se="needhelp"]').css("display","none");$("#help-links-container").css("display","block");$(".okta-sign-in-header h1").replaceWith($(".okta-sign-in-header h1").contents())});jQuery(document).ready(function(){cookieConsent();popovers();tooltips();ariaCheckedForToggle();toggleMobileAccordionCards();syncCarouselTabs();toggleAutoCardPopovers();navigationOverlayFunctionality();onlineChatToggle();initAndroidAppBar();updateNavOnResize()});const toggleMobileAccordionCards=()=>{let t=[...document.querySelectorAll(".-mobile .accordion-card")];if(t.length){const n=n=>{n.classList.toggle("open"),n.classList.toggle("closed")};t.forEach(t=>{t.addEventListener("click",t=>{const i=t.target.closest(".accordion-card");n(i);const r=i.querySelector(".overlay");n(r);const u=i.querySelector(".accordion-card__content");n(u)})})}},syncCarouselTabs=()=>{const n=document.querySelector(".tab-carousel");
7if(n){const r=document.querySelector(".content-carousel");if(r){const u=bootstrap.Carousel.getOrCreateInstance(n),f=bootstrap.Carousel.getOrCreateInstance(r),t=n.querySelector(".carousel-control-prev"),i=n.querySelector(".carousel-control-next"),e=()=>{const r=n.querySelector(".carousel-item.carousel-item-next")??n.querySelector(".carousel-item.carousel-item-prev");t.style.display=r.previousElementSibling===null?"none":"block";i.style.display=r.nextElementSibling===null?"none":"block"},o=()=>{u.prev(),f.prev(),e()},s=()=>{u.next(),f.next(),e()};t.addEventListener("click",o);i.addEventListener("click",s)}}},toggleAutoCardPopovers=()=>{let t=document.querySelectorAll('.auto-card-container [data-bs-toggle="popover"]');const i=document.querySelectorAll(".mobile-friendly-tooltip");if(t.length){let r=window.matchMedia("(max-width: 991.98px)"),n=n=>{n.preventDefault();return},u=r=>{r.matches||navJs.isMobile()?([...t].forEach(t=>{let i=bootstrap.Popover.getOrCreateInstance(t);i.disable();t.addEventListener("show.bs.popover",n);t.addEventListener("hide.bs.popover",n)}),[...i].forEach(n=>{n.classList.remove("d-none"),n.classList.add("d-block")})):([...t].forEach(t=>{let i=bootstrap.Popover.getOrCreateInstance(t);i.enable();t.removeEventListener("show.bs.popover",n);t.removeEventListener("hide.bs.popover",n)}),[...i].forEach(n=>{n.classList.remove("d-block"),n.classList.add("d-none")}))};u(r);r.addEventListener("change",u)}},cookieConsent=()=>{const n="cookie_notice",t=$("#cookieConsentBanner"),i=$("#closeCookieConsent"),r=sessionStorage.getItem(n)!=="false";t.toggle(r);i.on("click",i=>{i.preventDefault(),sessionStorage.setItem(n,"false"),t.hide()})},ariaCheckedForToggle=function(){document.querySelectorAll("input[type='checkbox'].preference-switch").forEach(n=>n.addEventListener("click",n=>{n.target.getAttribute("aria-checked")=="true"?n.target.setAttribute("aria-checked","false"):n.target.setAttribute("aria-checked","true")}))},navJs={os:function(){return this.isIOS()?"ios":this.isAndroid()?"android":this.isWindows()?"windows":this.isUnix()?"unix":this.isMac()?"mac":this.isLinux()?"linux":this.isBlackBerry()?"blackberry":undefined},browser:function(){return this.isSafari()?"safari":this.isChrome()?"chrome":this.isIE()?"ie":this.isEdge()?"edge":this.isFirefox()?"firefox":this.isOpera()?"opera":undefined},userAgent:function(){return navigator.userAgent},browserName:function(){let i=this.userAgent(),n,t=i.match(/(fxios|opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(t[1]))return n=/\brv[ :]+(\d+)/g.exec(i)||[],"IE "+(n[1]||"");if(t[1]==="Chrome")if(n=i.match(/(edge(?=\/))\/?\s*(\d+)/i),!n){if(n=i.match(/\bOPR\/(\d+)/),n!=null)return"Opera "+n[1]}else t=n;return t=t[2]?[t[1],t[2]]:[navigator.appName,navigator.appVersion,"-?"],(n=i.match(/version\/(\d+)/i))!=null&&t.splice(1,1,n[1]),t.join(" ")},isMobile:function(){return this.userAgent().match(/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile|CRiOS|OPiOS|Mobile|FxiOS/i)!=null},isDesktop:function(){return!this.isMobile()},isSafari:function(){return this.userAgent().indexOf("Safari")!=-1&&navigator.vendor.indexOf("Apple Computer")!=-1&&!this.isChrome()&&!this.isFirefox()&&!this.isOpera()},isChrome:function(){return(this.userAgent().indexOf("Chrome")!=-1&&navigator.vendor.indexOf("Google Inc")!=-1||this.userAgent().indexOf("CriOS")!=-1)&&!this.isOpera()},isIE:function(){return this.browserName().toLowerCase().match(/ie|msie|iemobile/i)!=null},isEdge:function(){return this.browserName().toLowerCase().match(/edge/i)!=null},isFirefox:function(){return this.browserName().toLowerCase().match(/firefox|fxios/i)!=null},isOpera:function(){return this.userAgent().toLowerCase().match(/opera|opr|opera mini|opios/i)!=null||Object.prototype.toString.call(window.operamini)==="[object OperaMini]"},isMobileChrome:function(){return this.userAgent().toLowerCase().match("crios")!=null||this.isChrome()&&this.isMobile()},isMobileSafari:function(){return this.isMobile()&&this.isSafari()},isMobileIE:function(){return this.isMobile()&&this.isIE()},isMobileOpera:function(){return this.isMobile()&&this.isOpera()},isMobileFirefox:function(){return this.isMobile()&&this.isFirefox()},isIOS:function(){return this.userAgent().match(/iPhone|iPad|iPod/i)!=null},isAndroid:function(){return this.userAgent().match(/Android/i)!=null},isWindows:function(){return this.userAgent().match(/Windows/i)!=null},isUnix:function(){return this.userAgent().match(/Unix/i)!=null},isMac:function(){return this.userAgent().match(/Mac/i)!=null&&!this.isIOS()},isLinux:function(){return this.userAgent().match(/Linux/i)!=null&&!this.isAndroid()},isBlackBerry:function(){return this.userAgent().match(/BlackBerry/i)!=null},isIPad:function(){return isIPad=/ipad/gi.test(navigator.platform)},isIPhone:function(){return isIPad=/iphone/gi.test(navigator.platform)},isLandscape:function(){return window.innerHeight<window.innerWidth?!0:!1},isPortrait:function(){return this.isLandscape()},getIOSVersion:function(){if(this.isIOS()){var n=navigator.appVersion.match(/OS (\d+_\d+)/i);return n[1]?+n[1].replace("_","."):0}return!1},version:function(){return this.browserName().replace(/^\D+/g,"")}};Number.prototype.toCurrencyString=function(){return this.toFixed(2).replace(/(\d)(?=(\d{3})+\b)/g,"$1,")};const debounce=(n,t)=>{let i=null;return(...r)=>{window.clearTimeout(i),i=window.setTimeout(()=>{n.apply(null,r)},t)}},sanitizeInput=n=>n.replaceAll(/[&/\\#,+()$~%.^'":*?<>{}]/g,""),popovers=()=>{[...document.querySelectorAll('[data-bs-toggle="popover"]')].forEac
7h(n=>new bootstrap.Popover(n))},tooltips=()=>{[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].forEach(n=>new bootstrap.Tooltip(n))},navigationOverlayFunctionality=()=>{const n=()=>{const n=document.querySelectorAll(".overlay-modal.show");n.forEach(n=>{bootstrap.Collapse.getOrCreateInstance(n).hide()});document.body.style.overflow="";i()},r=()=>{document.querySelectorAll(".overlay-modal.show").forEach(n=>{n.classList.remove("show"),document.body.style.overflow=""}),i()},i=()=>{["#mainNav","#minorNav"].forEach(n=>{document.querySelectorAll(`${n} .nav-text.active`).forEach(n=>n.classList.remove("active"))}),document.querySelectorAll(".overlay-container form").forEach(n=>{n.querySelectorAll("input").forEach(n=>{n.type==="checkbox"||n.type==="radio"?n.checked=!1:n.value="",n.textContent=""}),n.querySelectorAll("select").forEach(n=>n.selectedIndex=0),n.querySelectorAll(".validation-error").forEach(n=>n.textContent=""),n.querySelectorAll(".input-validation-error").forEach(n=>n.classList.remove("input-validation-error"))})};document.querySelectorAll("[data-overlay-trigger]").forEach(t=>{t.addEventListener("click",i=>{i.preventDefault();const f=t.getAttribute("data-overlay-trigger"),u=document.getElementById(f);if(u)if(u.classList.contains("show"))n();else{r();u.classList.add("show");document.body.style.overflow="hidden";const n=t.querySelector(".nav-text");n&&n.classList.add("active")}})});document.querySelectorAll("[data-overlay-close]").forEach(t=>{t.addEventListener("click",()=>{n()})});document.addEventListener("keydown",t=>{t.key==="Escape"&&n()});const t=document.getElementById("mobileMenu");t&&(t.addEventListener("hide.bs.collapse",()=>{initAndroidAppBar(),n()}),t.addEventListener("show.bs.collapse",()=>{const n=document.getElementById("android-app-bar");n&&(n.classList.remove("d-flex"),n.classList.add("d-none"))}))};const onlineChatToggle=()=>{const n=document.getElementById("onlineChatBtn");if(!n){console.error('Online chat button not found. Make sure the element with id "onlineChatBtn" exists on the page.');return}let t=0;const r=20,i=setInterval(()=>{const u=document.getElementsByClassName("wcfs-button")[0];t++;u?(n.addEventListener("click",()=>u.click()),clearInterval(i)):t>=r&&(console.error('Online chat link not found after waiting. Make sure the element with class "wcfs-button" exists on the page.'),clearInterval(i))},500)},initAndroidAppBar=()=>{const t=localStorage.getItem("a2gBarDisabled")===null&&navJs.isMobile()&&navJs.isAndroid(),n=document.getElementById("android-app-bar");if(t&&n){n.classList.remove("d-none");n.classList.add("d-flex");const i=n.querySelector(".btn-close");i.addEventListener("click",()=>{n.classList.remove("d-flex"),n.classList.add("d-none"),localStorage.setItem("a2gBarDisabled",!0)})}},updateNavOnResize=()=>{const n=()=>{let n;const t=document.getElementById("mainNav");if(t&&t.offsetHeight!==0)n=t.offsetHeight;else{const t=document.getElementById("mobileHeader");if(t)n=t.offsetHeight;else return}document.documentElement.style.setProperty("--main-navbar-height",`${n}px`)},t=()=>{const n=document.getElementById("minorNav");n&&document.documentElement.style.setProperty("--minor-navbar-height",`${n.offsetHeight}px`)};n();t();window.addEventListener("resize",()=>{n(),t()})};

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.