1function validateDentalInput(){var n=!0;return $("div.rater-input-container.dental").find("input").each(function(){$(this).prop("required")&&($(this).val()===""?($(this).addClass("mandatory"),n=!1):$(this).addClass("filled"))}),n}function validateDate(n){var t=n.split("/"),i=new Date(t[2]+"/"+t[0]+"/"+t[1]);return i&&i.getMonth()+1==t[0]&&i.getDate()==Number(t[1])}function showError(n,t){n.show();t.css("background-color","#FFF0E8");t.css("border-color","#DA3E0F")}function hideError(n,t){n.hide();t.css("background-color","initial");t.css("border-color","initial")}function showErrorSpirit(n,t){n.show();t.css("background-color","#FFF0E8 !important");t.css("borderColor","#DA3E0F");t[0].id=="selectCovList"?(document.getElementById("selectCovList").style.setProperty("border","solid 1px","important"),document.getElementById("selectCovList").style.setProperty("border-color","#DA3E0F","important"),document.getElementById("selectCovList").style.setProperty("background-color","rgb(255, 240, 232)","important")):t[0].id=="selectCovList-bottom"&&(document.getElementById("selectCovList-bottom").style.setProperty("border","solid 1px","important"),document.getElementById("selectCovList-bottom").style.setProperty("border-color","#DA3E0F","important"),document.getElementById("selectCovList-bottom").style.setProperty("background-color","rgb(255, 240, 232)","important"))}function hideErrorSpirit(n,t){n.hide();t.css("background-color","#fff !important");window.location.href.includes("spiritdental.com/get-a-quote")?t.css("border","1px solid #e5e5e5"):t.css("border","none");t[0].id=="selectCovList"&&(document.getElementById("selectCovList").style.setProperty("border","none","important"),document.getElementById("selectCovList").style.setProperty("border-color","#DA3E0F","important"),document.getElementById("selectCovList").style.setProperty("background",'url("/assets/img/arrow.png") 95 % 50 % /10% no-repeat #fafafa',"important"));t[0].id=="selectCovList-bottom"&&(document.getElementById("selectCovList-bottom").style.setProperty("border","none","important"),document.getElementById("selectCovList-bottom").style.setProperty("border-color","#DA3E0F","important"),document.getElementById("selectCovList-bottom").style.setProperty("background",'url("/assets/img/arrow.png") 95 % 50 % /10% no-repeat #fafafa',"important"))}function addH2ToList(){var r,i,n,t,u;if($(".div-dbe-faqs").length>0)for(r=$(".div-dbe-faqs")[0].children,i=0;i<r.length;i++)for(t=r[i].children,n=0;n<t.length;n++)t[n].tagName==="A"&&(u=$("<h2>"+t[n].textContent+"<\/h2>"),t[n].textContent="",t[n].append(u[0]))}function getZipCode(){$.ajax({async:!1,cache:!1,type:"POST",datatype:"json",url:"/Exchange/GetZipCode",success:function(n){var i,t;n.success&&(n.response.ZipCode!=""&&($(".zip-input").val(n.response.ZipCode),$('#selectCovList option[value="'+n.response.Coverage+'"]').attr("selected",!0),$("#selectCovList").change()),window.location.href.includes("directbenefits.com")&&($("#birthday").val(n.response.BirthDay),setTimeout(function(){ZipCodeChange()},0),console.log("Zip callAA"),n.response.Gender==="1"?($("#gender-m-Ind").prop("checked",!0),$("#gender-f-Ind").prop("checked",!1)):($("#gender-f-Ind").prop("checked",!0),$("#gender-m-Ind").prop("checked",!1)),n.response.Smoker==="true"?($("#smoker-y-Ind").prop("checked",!0),$("#smoker-n-Ind").prop("checked",!1)):($("#smoker-n-Ind").prop("checked",!0),$("#smoker-y-Ind").prop("checked",!1)),console.log("Gender and Smoker received: "+n.response.Gender+n.response.Smoker),console.log("Zip call2"),i=n,console.log(i),t=1,$.each(i.response.Applicants,function(n,i){console.log("Applicant: "+i.Type+i.Dob);i.Type==2?($("#spouse").val(i.Dob),i.Gender==="1"?($("#gender-m-Sp").prop("checked",!0),$("#gender-f-Sp").prop("checked",!1)):($("#gender-f-Sp").prop("checked",!0),$("#gender-m-Sp").prop("checked",!1)),i.Smoker==="true"?($("#smoker-y-Sp").prop("checked",!0),$("#smoker-n-Sp").prop("checked",!1)):($("#smoker-n-Sp").prop("checked",!0),$("#smoker-y-Sp").prop("checked",!1))):i.Type==3&&($("#div-I-"+t).val(i.Dob),i.Gender==="1"?($("#gender-m-I-"+t).prop("checked",!0),$("#gender-f-I-"+t).prop("checked",!1)):($("#gender-f-I-"+t).prop("checked",!0),$("#gender-m-I-"+t).prop("checked",!1)),i.Smoker==="true"?($("#smoker-y-I-"+t).prop("checked",!0),$("#smoker-n-I-"+t).prop("checked",!1)):($("#smoker-n-I-"+t).prop("checked",!0),$("#smoker-y-I-"+t).prop("checked",!1)),t++)})))},error:function(n,t,i){alert("msg = "+n+", url = "+t+", line = "+i)}})}$(document).on("click","button.btn-search-main",function(n){var et,t,i,g,r,f,w,ut,e,b,s,h,c,l,a,v,y,p,st,rt,u,ht,ct;const lt=window.location.search,at=new URLSearchParams(lt);if(et=at.get("agent"),n.preventDefault(),ShowOrHideError(""),t=$("a.faInsType.active").data("instypeval"),(typeof t=="undefined"||t===null)&&(t=$("#inputPageProps").data("instypeval"),(typeof t=="undefined"||t===null)&&(t=1)),$("div#div-plans-container-inner").hide(),$("ul#ulPlanList").html(""),i=$("select#selectCovList :selected").val(),g="",i!=undefined?g
1=$("#selectCovList :selected")[0].innerHTML:(i=document.querySelector('input[name="coverage"]:checked').value,localStorage.setItem("coverageValue",i),g=i=="1"?"You":i=="2"?"You + one":"Family"),localStorage.setItem("selectedCoverageText",g),r=$("input#zipcode").val(),f=$("ul#effDateList li.active").data("val"),(typeof f=="undefined"||f===null||f==="")&&(f=$("ul#effDateList li:first").data("val"),$("ul#effDateList li:first").addClass("active"),$("input#effdate").val($("ul#effDateList li.active").html())),w=!1,ut=!1,window.location.href.includes("directbenefits.com/dental-insurance")){typeof r=="undefined"||r===null||r===""?(showError($(".error-zipcode"),$("input#zipcode")),w=!0):hideError($(".error-zipcode"),$("input#zipcode"));var ft="Enter as mm/dd/yyyy",ot="Enter a birthday",nt=$("input#birthday").val(),tt=!1;$("input#birthday").css("visibility")==="visible"&&(typeof nt=="undefined"||nt===null||nt==="")?($(".error-indBirthday").text(ot),tt=!0):$("input#birthday").css("visibility")!=="visible"||validateDate(nt)||($(".error-indBirthday").text(ft),tt=!0);tt?showError($(".error-indBirthday"),$("input#birthday")):hideError($(".error-indBirthday"),$("input#birthday"));e=!1;b=$("input#spouse").val();$("input#spouse").css("visibility")==="visible"&&(typeof b=="undefined"||b===null||b==="")?($(".error-spouse").text(ot),e=!0):$("input#spouse").css("visibility")!=="visible"||validateDate(b)||($(".error-spouse").text(ft),e=!0);e?(showError($(".error-spouse"),$("input#spouse")),e=!0):hideError($(".error-spouse"),$("input#spouse"));var o=!1,k=!1,it=$("input#div-I-1").val();if($("input#div-I-1").css("visibility")==="visible"&&(typeof it=="undefined"||it===null||it==="")?k=!0:$("input#div-I-1").css("visibility")!=="visible"||validateDate(it)||(k=!0,o=!0),k?($("input#div-I-1").css("background-color","#FFF0E8"),$("input#div-I-1").css("border-color","#DA3E0F")):($("input#div-I-1").css("background-color","initial"),$("input#div-I-1").css("border-color","initial")),s=!1,h=$("input#div-I-2").val(),$("input#div-I-2").css("visibility")==="visible"&&(typeof h=="undefined"||h===null||h==="")?s=!0:typeof h=="undefined"||validateDate(h)||(s=!0,o=!0),s?($("input#div-I-2").css("background-color","#FFF0E8"),$("input#div-I-2").css("border-color","#DA3E0F")):($("input#div-I-2").css("background-color","initial"),$("input#div-I-2").css("border-color","initial")),c=!1,l=$("input#div-I-3").val(),$("input#div-I-3").css("visibility")==="visible"&&(typeof l=="undefined"||l===null||l==="")?c=!0:typeof l=="undefined"||validateDate(l)||(c=!0,o=!0),c?($("input#div-I-3").css("background-color","#FFF0E8"),$("input#div-I-3").css("border-color","#DA3E0F")):($("input#div-I-3").css("background-color","initial"),$("input#div-I-3").css("border-color","initial")),a=!1,v=$("input#div-I-4").val(),$("input#div-I-4").css("visibility")==="visible"&&(typeof v=="undefined"||v===null||v==="")?a=!0:typeof v=="undefined"||validateDate(v)||(a=!0,o=!0),a?($("input#div-I-4").css("background-color","#FFF0E8"),$("input#div-I-4").css("border-color","#DA3E0F")):($("input#div-I-4").css("background-color","initial"),$("input#div-I-4").css("border-color","initial")),y=!1,p=$("input#div-I-5").val(),$("input#div-I-5").css("visibility")==="visible"&&(typeof p=="undefined"||p===null||p==="")?y=!0:typeof p=="undefined"||validateDate(p)||(y=!0,o=!0),y?($("input#div-I-5").css("background-color","#FFF0E8"),$("input#div-I-5").css("border-color","#DA3E0F")):($("input#div-I-5").css("background-color","initial"),$("input#div-I-5").css("border-color","initial")),k||s||c||a||y?($(".error-kidsBirthday").remove(),st='<span class="error error-kidsBirthday" style="font-family: Poppins !important;">Enter a birthday<\/span>',$(".div-BirthdayKids").append(st),o&&$(".error-kidsBirthday").text(ft)):$(".error-kidsBirthday").remove(),w||tt||e||k||s||c||a||y)return!1}else if(window.location.href.includes("spiritdental.com")&&$("select#selectCovList").length>0){if(typeof i=="undefined"||i===null||i===0||i==0?(showErrorSpirit($(".error-coverage"),$("select#selectCovList")),w=!0):hideErrorSpirit($(".error-coverage"),$("select#selectCovList")),typeof r=="undefined"||r===null||r===""?(showErrorSpirit($(".error-zipcode"),$("input#zipcode")),ut=!0):hideErrorSpirit($(".error-zipcode"),$("input#zipcode")),w===!0||ut===!0)return!1}else{if(typeof i=="undefined"||i===null||i===0||i==0)return ShowOrHideError("select coverage."),!1;if(typeof r=="undefined"||r===null||r==="")return ShowOrHideError("Oops! Please enter your zip code"),!1}if(rt=$("#inputMuted").data("redirect-to"),typeof rt!="undefined"&&rt!==null)return window.location.href="/"+rt+"?ZipCode="+r+"&Coverage="+i,!1;var ht=!1,ct,d="";switch(t){case"5":case 5:d="https://www.google.com";break;case"6":case 6:d="https://www.petsbest.com/DBPETS";break;case"7":case 7:d="http://business.securusid.com/?oprid=2758";break;case"10":case 10:d="https://brokers.careington.com/Index.aspx?A=544F4D444249";break;case"8":case 8:d="https://www.geobluetravelinsurance.com/DirectBenefits/"}return t==="5"||t===5?(u="Short term medical insurance gives you a plan to face the unpredictable moments in life. It provides peace of mind in temporary coverage that covers unexpected medical bills and other health expenses when you need it most.<br>We will be adding short term medical plans to the website for you to compare soon. In the meantime, fill in your contact information and weâll email you more information on short term medical plans. ",$("div.div-ins-aux span.aux-txt").html(u),displayModalDialog("Short Term Medical Insurance Quote","div.div-ins-aux"),!1):t==="8"||t===8?(u="We will be adding travel plans to the website for you to compare soon. But in the meantime, we want to make sure your trip goes off without a hitch! If you fill in your contact information, weâll email you more information right away to get you started on a travel insurance plan today!",$("div.div-ins-aux span.aux-txt").html(u),displayModalDialog("Travel Insurance Quote","div.div-ins-aux"),!1):t==="10"||t===10?(u="We will be adding discount plans to the website for you to compare soon. But we donât want you to wait too long to determine if a discount plan is a good route for you. Fill in your contact information and weâll email you more information on a discount plan to help you decide and get started today!",$("div.div-ins-aux span.aux-txt").html(u),displayModalDialog("Discount Cards Quote","div.div-ins-aux"),!1):t==="7"||t===7?(u="We will be adding ID Theft plans to the website for you to compare soon. But we donât want you to wait because we think identity protection is important. We have a plan available that can help you start securing your future today. Fill in your contact information and weâll email you more information on an ID Theft plan right away.",$("div.div-ins-aux span.aux-txt").html(u),displayModalDialog("Identity Theft protection Quote","div.div-ins-aux"),!1):(validateDentalInput()&&(isValidUSZip(r)&&$("input#zipcode").addClass("filled"),ht=!1,$.ajax({async:!1,cache:!1,type:"POST",datatype:"json",url:"/Exchange/ValidateRaterInput",data:{zip:r,coverage:i,insuranceType:t,effectiveDate:f,agent:et},success:function(n){n.success?window.location=n.response:(ht=!0,ct=n.response,ShowOrHideError(ct))},error:function(n,t,i){alert("msg = "+n+", url = "+t+", line = "+i)}})),!1)});$(document).on("click","button.btn-search-main-bottom",function(n){var ft,t,r,et,i,f,w,rt,e,b,s,h,c,l,a,v,y,p,st,it,u,ht,ct;const lt=window.location.search,at=new URLSearchParams(lt);if(ft=at.get("agent"),n.preventDefault(),ShowOrHideError(""),t=$("a.faInsType.active").data("instypeval"),(typeof t=="undefined"||t===null)&&(t=$("#inputPageProps").data("instypeval"),(typeof t=="undefined"||t===null)&&(t=1)),$("div#div-plans-container-inner").hide(),$("ul#ulPlanList").html(""),r=$("select#selectCovList-bottom :selected").val(),et=$("#selectCovList-bottom :selected")[0].innerHTML,localStorage.setItem("selectedCoverageText",et),i=$("input#zipcode-bottom").val(),f=$("ul#effDateList li.active").data("val"),(typeof f=="undefined"||f===null||f==="")&&(f=$("ul#effDateList li:first").data("val"),$("ul#effDateList li:first").addClass("active"),$("input#effdate").val($("ul#effDateList li.active").html())),w=!1,rt=!1,window.location.href.includes("directbenefits.com/dental-insurance")){typeof i=="undefined"||i===null||i===""?(showError($(".error-zipcode"),$("input#zipcode")),w=!0):hideError($(".error-zipcode"),$("input#zipcode"));var ut="Enter as mm/dd/yyyy",ot="Enter a birthday",g=$("input#birthday").val(),nt=!1;$("input#birthday").css("visibility")==="visible"&&(typeof g=="undefined"||g===null||g==="")?($(".error-indBirthday").text(ot),nt=!0):$("input#birthday").css("visibility")!=="visible"||validateDate(g)||($(".error-indBirthday").text(ut),nt=!0);nt?showError($(".error-indBirthday"),$("input#birthday")):hideError($(".error-indBirthday"),$("input#birthday"));e=!1;b=$("input#spouse").val();$("input#spouse").css("visibility")==="visible"&&(typeof b=="undefined"||b===null||b==="")?($(".error-spouse").text(ot),e=!0):$("input#spouse").css("visibility")!=="visible"||validateDate(b)||($(".error-spouse").text(ut),e=!0);e?(showError($(".error-spouse"),$("input#spouse")),e=!0):hideError($(".error-spouse"),$("input#spouse"));var o=!1,k=!1,tt=$("input#div-I-1").val();if($("input#div-I-1").css("visibility")==="visible"&&(typeof tt=="undefined"||tt===null||tt==="")?k=!0:$("input#div-I-1").css("visibility")!=="visible"||validateDate(tt)||(k=!0,o=!0),k?($("input#div-I-1").css("background-color","#FFF0E8"),$("input#div-I-1").css("border-color","#DA3E0F")):($("input#div-I-1").css("background-color","initial"),$("input#div-I-1").css("border-color","initial")),s=!1,h=$("input#div-I-2").val(),$("input#div-I-2").css("visibility")==="visible"&&(typeof h=="undefined"||h===null||h==="")?s=!0:typeof h=="undefined"||validateDate(h)||(s=!0,o=!0),s?($("input#div-I-2").css("background-color","#FFF0E8"),$("input#div-I-2").css("border-color","#DA3E0F")):($("input#div-I-2").css("background-color","initial"),$("input#div-I-2").css("border-color","initial")),c=!1,l=$("input#div-I-3").val(),$("input#div-I-3").css("visibility")==="visible"&&(typeof l=="undefined"||l===null||l==="")?c=!0:typeof l=="undefined"||validateDate(l)||(c=!0,o=!0),c?($("input#div-I-3").css("background-color","#FFF0E8"),$("input#div-I-3").css("border-color","#DA3E0F")):($("input#div-I-3").css("background-color","initial"),$("input#div-I-3").css("border-color","initial")),a=!1,v=$("input#div-I-4").val(),$("input#div-I-4").css("visibility")==="visible"&&(typeof v=="undefined"||v===null||v==="")?a=!0:typeof v=="undefined"||validateDate(v)||(a=!0,o=!0),a?($("input#div-I-4").css("background-color","#FFF0E8"),$("input#div-I-4").css("border-color","#DA3E0F")):($("input#div-I-4").css("background-color","initial"),$("input#div-I-4").css("border-color","initial")),y=!1,p=$("input#div-I-5").val(),$("input#div-I-5").css("visibility")==="visible"&&(typeof p=="undefined"||p===null||p==="")?y=!0:typeof p=="undefined"||validateDate(p)||(y=!0,o=!0),y?($("input#div-I-5").css("background-color","#FFF0E8"),$("input#div-I-5").css("border-color","#DA3E0F")):($("input#div-I-5").css("background-color","initial"),$("input#div-I-5").css("border-color","initial")),k||s||c||a||y?($(".error-kidsBirthday").remove(),st='<span class="error error-kidsBirthday" style="font-family: Poppins !important;">Enter a birthday<\/span>',$(".div-BirthdayKids").append(st),o&&$(".error-kidsBirthday").text(ut)):$(".error-kidsBirthday").remove(),w||nt||e||k||s||c||a||y)return!1}else if(window.location.href.includes("spiritdental.com")){if(typeof r=="undefined"||r===null||r===0||r==0?(showErrorSpirit($(".error-coverage-bottom"),$("select#selectCovList-bottom")),rt=!0):hideErrorSpirit($(".error-coverage-bottom"),$("select#selectCovList-bottom")),typeof i=="undefined"||i===null||i===""?(showErrorSpirit($(".error-zipcode-bottom"),$("input#zipcode-bottom")),w=!0):hideErrorSpirit($(".error-zipcode-bottom"),$("input#zipcode-bottom")),w===!0||rt===!0)return!1}else{if(typeof r=="undefined"||r===null||r===0||r==0)return ShowOrHideError("select coverage."),!1;if(typeof i=="undefined"||i===null||i==="")return ShowOrHideError("Oops! Please enter your zip code"),!1}if(it=$("#inputMuted").data("redirect-to"),typeof it!="undefined"&&it!==null)return window.location.href="/"+it+"?ZipCode="+i+"&Coverage="+r,!1;var ht=!1,ct,d="";switch(t){case"5":case 5:d="https://www.google.com";break;case"6":case 6:d="https://www.petsbest.com/DBPETS";break;case"7":case 7:d="http://business.securusid.com/?oprid=2758";break;case"10":case 10:d="https://brokers.careington.com/Index.aspx?A=544F4D444249";break;case"8":case 8:d="https://www.geobluetravelinsurance.com/DirectBenefits/"}return t==="5"||t===5?(u="Short term medical insurance gives you a plan to face the unpredictable moments in life. It provides peace of mind in temporary coverage that covers unexpected medical bills and other health expenses when you need it most.<br>We will be adding short term medical plans to the website for you to compare soon. In the meantime, fill in your contact information and weâll email you more information on short term medical plans. ",$("div.div-ins-aux span.aux-txt").html(u),displayModalDialog("Short Term Medical Insurance Quote","div.div-ins-aux"),!1):t==="8"||t===8?(u="We will be adding travel plans to the website for you to compare soon. But in the meantime, we want to make sure your trip goes off without a hitch! If you fill in your contact information, weâll email you more information right away to get you started on a travel insurance plan today!",$("div.div-ins-aux span.aux-txt").html(u),displayModalDialog("Travel Insurance Quote","div.div-ins-aux"),!1):t==="10"||t===10?(u="We will be adding discount plans to the website for you to compare soon. But we donât want you to wait too long to determine if a discount plan is a good route for you. Fill in your contact information and weâll email you more information on a discount plan to help you decide and get started today!",$("div.div-ins-aux span.aux-txt").html(u),displayModalDialog("Discount Cards Quote","div.div-ins-aux"),!1):t==="7"||t===7?(u="We will be adding ID Theft plans to the website for you to compare soon. But we donât want you to wait because we think identity protection is important. We have a plan available that can help you start securing your future today. Fill in your contact information and weâll email you more information on an ID Theft plan right away.",$("div.div-ins-aux span.aux-txt").html(u),displayModalDialog("Identity Theft protection Quote","div.div-ins-aux"),!1):(validateDentalInput()&&(isValidUSZip(i)&&$("input#zipcode").addClass("filled"),ht=!1,$.ajax({async:!1,cache:!1,type:"POST",datatype:"json",url:"/Exchange/ValidateRaterInput",data:{zip:i,coverage:r,insuranceType:t,effectiveDate:f,agent:ft},success:function(n){n.success?window.location=n.response:(ht=!0,ct=n.response,ShowOrHideError(ct))},error:function(n,t,i){alert("msg = "+n+", url = "+t+", line = "+i)}})),!1)});$(document).on("click","button.btn-search-with-applicants",function(n){var et,lt,t,r,e,ot,u,nt,h,c,l,a,v,y,p,w,vt,b,i,k,rt,ht,d,ft,yt,ct;const pt=window.location.search,wt=new URLSearchParams(pt);et=$("#inputPageProps").data("tag");console.log(et);lt=wt.get("agent");n.preventDefault();ShowOrHideError("");t=$("a.faInsType.active").data("instypeval");(typeof t=="undefined"||t===null)&&(t=$("#inputPageProps").data("instypeval"),(typeof t=="undefined"||t===null)&&(t=1));$("div#div-plans-container-inner").hide();$("ul#ulPlanList").html("");var f=$("select#selectCovList :selected").val(),bt=$("select#selectDurList :selected").val(),kt=$("#selectCovList :selected")[0].innerHTML;if(localStorage.setItem("selectedCoverageText",kt),r=$("input#zipcode").val(),e=$("ul#effDateList li.active").data("val"),(typeof e=="undefined"||e===null||e==="")&&(e=$("ul#effDateList li:first").data("val"),$("ul#effDateList li:first").addClass("active"),$("input#effdate").val($("ul#effDateList li.active").html())),typeof f=="undefined"||f===null||f===0||f==0)return ShowOrHideError("select coverage."),!1;ot=!1;typeof r=="undefined"||r===null||r===""?(showError($(".error-zipcode"),$("input#zipcode")),ot=!0):hideError($(".error-zipcode"),$("input#zipcode"));var st="Enter as mm/dd/yyyy",at="Enter a birthday",tt=$(
1"input#birthday").val(),g=!1;$("input#birthday").css("visibility")==="visible"&&(typeof tt=="undefined"||tt===null||tt==="")?($(".error-indBirthday").text(at),g=!0):$("input#birthday").css("visibility")!=="visible"||validateDate(tt)||($(".error-indBirthday").text(st),g=!0);g?showError($(".error-indBirthday"),$("input#birthday")):hideError($(".error-indBirthday"),$("input#birthday"));t!=="9"&&t!==9&&t!=="3"&&t!==3&&t!=="5"&&t!==5&&t!=="7"&&t!==7||$("#gender-m-Ind").css("visibility")!=="visible"||$("#gender-m-Ind").is(":checked")||$("#gender-f-Ind").is(":checked")?hideError($(".generic-error"),$("input#gender-m-Ind")):($(".generic-error").html("Gender needs to be set for all applicants."),showError($(".generic-error"),$("input#gender-m-Ind")),g=!0);u=!1;nt=$("input#spouse").val();$("input#spouse").css("visibility")==="visible"&&(typeof nt=="undefined"||nt===null||nt==="")?($(".error-spouse").text(at),u=!0):$("input#spouse").css("visibility")!=="visible"||validateDate(nt)||($(".error-spouse").text(st),u=!0);u?(showError($(".error-spouse"),$("input#spouse")),u=!0):hideError($(".error-spouse"),$("input#spouse"));t!=="9"&&t!==9&&t!=="3"&&t!==3&&t!=="5"&&t!==5&&t!=="7"&&t!==7||$("#gender-m-Sp").css("visibility")!=="visible"||$("#gender-m-Sp").is(":checked")||$("#gender-f-Sp").is(":checked")?!1&&hideError($(".generic-error"),$("input#gender-m-Sp")):($(".generic-error").html("Gender needs to be set for all applicants."),showError($(".generic-error"),$("input#gender-m-Sp")),u=!0);var o=!1,s=!1,it=$("input#div-I-1").val();if($("input#div-I-1").css("visibility")==="visible"&&(typeof it=="undefined"||it===null||it==="")?s=!0:$("input#div-I-1").css("visibility")!=="visible"||validateDate(it)||(s=!0,o=!0),s?($("input#div-I-1").css("background-color","#FFF0E8"),$("input#div-I-1").css("border-color","#DA3E0F")):($("input#div-I-1").css("background-color","initial"),$("input#div-I-1").css("border-color","initial")),h=!1,c=$("input#div-I-2").val(),$("input#div-I-2").css("visibility")==="visible"&&(typeof c=="undefined"||c===null||c==="")?h=!0:typeof c=="undefined"||validateDate(c)||(h=!0,o=!0),h?($("input#div-I-2").css("background-color","#FFF0E8"),$("input#div-I-2").css("border-color","#DA3E0F")):($("input#div-I-2").css("background-color","initial"),$("input#div-I-2").css("border-color","initial")),l=!1,a=$("input#div-I-3").val(),$("input#div-I-3").css("visibility")==="visible"&&(typeof a=="undefined"||a===null||a==="")?l=!0:typeof a=="undefined"||validateDate(a)||(l=!0,o=!0),l?($("input#div-I-3").css("background-color","#FFF0E8"),$("input#div-I-3").css("border-color","#DA3E0F")):($("input#div-I-3").css("background-color","initial"),$("input#div-I-3").css("border-color","initial")),v=!1,y=$("input#div-I-4").val(),$("input#div-I-4").css("visibility")==="visible"&&(typeof y=="undefined"||y===null||y==="")?v=!0:typeof y=="undefined"||validateDate(y)||(v=!0,o=!0),v?($("input#div-I-4").css("background-color","#FFF0E8"),$("input#div-I-4").css("border-color","#DA3E0F")):($("input#div-I-4").css("background-color","initial"),$("input#div-I-4").css("border-color","initial")),p=!1,w=$("input#div-I-5").val(),$("input#div-I-5").css("visibility")==="visible"&&(typeof w=="undefined"||w===null||w==="")?p=!0:typeof w=="undefined"||validateDate(w)||(p=!0,o=!0),p?($("input#div-I-5").css("background-color","#FFF0E8"),$("input#div-I-5").css("border-color","#DA3E0F")):($("input#div-I-5").css("background-color","initial"),$("input#div-I-5").css("border-color","initial")),s||h||l||v||p?($(".error-kidsBirthday").remove(),vt='<span class="error error-kidsBirthday" style="font-family: Poppins !important;">Enter a birthday<\/span>',$(".div-BirthdayKids").append(vt),o&&$(".error-kidsBirthday").text(st)):$(".error-kidsBirthday").remove(),$("div.div-BirthdayKids input.input-rater-birthday-lite").each(function(n){t!=="9"&&t!==9&&t!=="3"&&t!==3&&t!=="5"&&t!==5&&t!=="7"&&t!==7||$("div.div-BirthdayKids #gender-m-I-"+(parseInt(n)+1)).css("visibility")!=="visible"||$("div.div-BirthdayKids #gender-m-I-"+(parseInt(n)+1)).is(":checked")||$("div.div-BirthdayKids #gender-f-I-"+(parseInt(n)+1)).is(":checked")||($(".generic-error").html("Gender needs to be set for all applicants."),showError($(".generic-error"),$("#gender-m-I-"+(parseInt(n)+1))),s=!0)}),ot||g||u||s||h||l||v||p)return!1;if(typeof r=="undefined"||r===null||r==="")return ShowOrHideError("Oops! Please enter your zip code"),!1;b=[];i={};i.Zip=r;i.AgentId=lt;i.EffectiveDate=e;i.InsuranceType=t;i.CoverageCode=parseInt(f);i.CompoundCoverage=f;i.GroupingTag=et;i.Duration=parseInt(bt);k={};rt=$("#gender-m-Ind").is(":checked");k.gender=rt?"1":"2";k.dob=$("#birthday").val();k.smoker=$("#smoker-y-Ind").is(":checked");k.type="1";b.push(k);ht=$("#spouse").val();rt=$("#gender-m-Sp").is(":checked");ht!=""&&$("#spouse").is(":visible")&&(d={},d.gender=rt?"1":"2",d.dob=ht,d.smoker=$("#smoker-y-Sp").is(":checked"),d.type="2",b.push(d));$("div.div-BirthdayKids input.input-rater-birthday-lite").each(function(n){var i=$(this).val(),r=$("div.div-BirthdayKids #gender-m-I-"+parseInt(n)).is(":checked"),t;console.log(r);i!=""&&$(this).is(":visible")&&(t={},t.gender=r?"1":"2",t.dob=i,t.smoker=$("div.div-BirthdayKids #smoker-y-I-"+(parseInt(n)+1)).is(":checked"),t.type="3",b.push(t))});console.log(b);i.Applicants=b;var yt=!1,ct,ut="";switch(t){case"6":case 6:ut="https://www.petsbest.com/DBPETS";break;case"7":case 7:ut="http://business.securusid.com/?oprid=2758";break;case"10":case 10:ut="https://brokers.careington.com/Index.aspx?A=544F4D444249";break;case"8":case 8:ut="https://www.geobluetravelinsurance.com/DirectBenefits/"}return t==="8"||t===8?(ft="We will be adding travel plans to the website for you to compare soon. But in the meantime, we want to make sure your trip goes off without a hitch! If you fill in your contact information, weâll email you more information right away to get you started on a travel insurance plan today!",$("div.div-ins-aux span.aux-txt").html(ft),displayModalDialog("Travel Insurance Quote","div.div-ins-aux"),!1):t==="10"||t===10?(ft="We will be adding discount plans to the website for you to compare soon. But we donât want you to wait too long to determine if a discount plan is a good route for you. Fill in your contact information and weâll email you more information on a discount plan to help you decide and get started today!",$("div.div-ins-aux span.aux-txt").html(ft),displayModalDialog("Discount Cards Quote","div.div-ins-aux"),!1):(validateDentalInput()&&(isValidUSZip(r)&&$("input#zipcode").addClass("filled"),yt=!1),$.ajax({async:!1,cache:!1,type:"POST",datatype:"json",url:"/Exchange/ValidateShortTermMedInput",data:{stmInput:i},success:function(n){var t,i;n.success?window.location=n.response:(yt=!0,ct=n.errormsg,ShowOrHideError(ct),$(".generic-error").html(ct),showError($(".generic-error"),$("generic-error")),t=$('.sf_colsIn[data-placeholder-label="Bottom"]').css("height"),$('.sf_colsIn[data-placeholder-label="Bottom"]').css("height",parseInt(t)+70),i=$('.sf_colsIn[data-placeholder-label="MainContainer"]').css("height"),$('.sf_colsIn[data-placeholder-label="MainContainer"]').css("height",parseInt(i)+70))},error:function(n,t,i){alert("msg = "+n+", url = "+t+", line = "+i)}}),!1)});$(document).ready(function(){$(document).on("click","button.btn-send-aux",function(n){var i;n.preventDefault();ShowOrHideError("");var r=$("a.faInsType.active").data("instypetxt"),s=$("a.faInsType.active").data("instypeval"),u=$("select#selectCovList :selected").val(),f=$("input#zipcode").val(),t=$("div#dialogMsgInner input#emailadd1").val(),e=$("div#dialogMsgInner input#firstname").val(),o=$("div#dialogMsgInner input#lastname").val();return t===null||t===""||!isValidEmail(t)?($("div#dialogMsgInner div.error").html("invalid email address."),!1):(i={Type:r,Email:t,Zip:f,Coverage:u,FirstName:e,LastName:o},$.ajax({async:!1,cache:!1,type:"POST",datatype:"json",url:"/Exchange/GetAuxProductQuoteContent",data:{Input:i},success:function(n){n.success?($("div#dialogMsgInner div.content-inner").slideUp(),$("div#dialogMsgInner div.success").show()):$("div#dialogMsgInner div.error").html(n.errormsg)}
1,error:function(n,t,i){alert("msg = "+n+", url = "+t+", line = "+i)}}),!1)});addH2ToList();let n=document.getElementById("divWhiteYou");if(n){let n=localStorage.getItem("coverageValue");$(".divWhite").each(function(){$(this).removeClass("active");$(this).removeClass("activeDivWhite")});switch(n){case"2":$("#radioCoverageYouOne").prop("checked",!0);$("#divWhiteYouOne").addClass("active");$("#divWhiteYouOne").addClass("activeDivWhite");break;case"3":$("#radioCoverageFamily").prop("checked",!0);$("#divWhiteFamily").addClass("active");$("#divWhiteFamily").addClass("activeDivWhite");break;default:$("#radioCoverageYou").prop("checked",!0);$("#divWhiteYou").addClass("active");$("#divWhiteYou").addClass("activeDivWhite")}}});$(document).ready(function(){getZipCode()});
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.