var cashout_max_index=0,cashout_selected_index=0,slider1,slider2,slider4,_slider_values=["$80,000 or less","$80,001 to $85,000","$85,001 to $90,000","$90,001 to $95,000","$95,001 to $100,000","$100,001 to $120,000","$120,001 to $140,000","$140,001 to $160,000","$160,001 to $180,000","$180,001 to $200,000","$200,001 to $220,000","$220,001 to $240,000","$240,001 to $260,000","$260,001 to $280,000","$280,001 to $300,000","$300,001 to $320,000","$320,001 to $340,000","$340,001 to $360,000","$360,001 to $380,000","$380,001 to $400,000","$400,001 to $420,000","$420,001 to $440,000","$440,001 to $460,000","$460,001 to $480,000","$480,001 to $500,000","$500,001 to $520,000","$520,001 to $540,000","$540,001 to $560,000","$560,001 to $580,000","$580,001 to $600,000","$600,001 to $620,000","$620,001 to $640,000","$640,001 to $660,000","$660,001 to $680,000","$680,001 to $700,000","$700,001 to $720,000","$720,001 to $740,000","$740,001 to $760,000","$760,001 to $780,000","$780,001 to $800,000","$800,001 to $820,000","$820,001 to $840,000","$840,001 to $860,000","$860,001 to $880,000","$880,001 to $900,000","$900,001 to $920,000","$920,001 to $940,000","$940,001 to $960,000","$960,001 to $980,000","$980,001 to $1,000,000","$1,000,001 to $1,100,000","$1,100,001 to $1,200,000","$1,200,001 to $1,300,000","$1,300,001 to $1,400,000","$1,400,001 to $1,500,000","$1,500,001 to $1,600,000","$1,600,001 to $1,700,000","$1,700,001 to $1,800,000","$1,800,001 to $1,900,000","$1,900,001 to $2M","Over $2,000,000"],_home_values=[8e4,85e3,9e4,95e3,1e5,12e4,14e4,16e4,18e4,2e5,22e4,24e4,26e4,28e4,3e5,32e4,34e4,36e4,38e4,4e5,42e4,44e4,46e4,48e4,5e5,52e4,54e4,56e4,58e4,6e5,62e4,64e4,66e4,68e4,7e5,72e4,74e4,76e4,78e4,8e5,82e4,84e4,86e4,88e4,9e5,92e4,94e4,96e4,98e4,1e6,11e5,12e5,13e5,14e5,15e5,16e5,17e5,18e5,19e5,2e6],_slider_values2=["0 to $10,000","$10,001 to $20,000","$20,001 to $30,000","$30,001 to $40,000","$40,001 to $50,000","$50,001 to $60,000","$60,001 to $70,000","$70,001 to $80,000","$80,001 to $90,000","$90,001 to $100,000","$100,001 to $120,000","$120,001 to $140,000","$140,001 to $160,000","$160,001 to $180,000","$180,001 to $200,000","$200,001 to $220,000","$220,001 to $240,000","$240,001 to $260,000","$260,001 to $280,000","$280,001 to $300,000","$300,001 to $320,000","$320,001 to $340,000","$340,001 to $360,000","$360,001 to $380,000","$380,001 to $400,000","$400,001 to $420,000","$420,001 to $440,000","$440,001 to $460,000","$460,001 to $480,000","$480,001 to $500,000","$500,001 to $520,000","$520,001 to $540,000","$540,001 to $560,000","$560,001 to $580,000","$580,001 to $600,000","$600,001 to $620,000","$620,001 to $640,000","$640,001 to $660,000","$660,001 to $680,000","$680,001 to $700,000","$700,001 to $720,000","$720,001 to $740,000","$740,001 to $760,000","$760,001 to $780,000","$780,001 to $800,000","$800,001 to $820,000","$820,001 to $840,000","$840,001 to $860,000","$860,001 to $880,000","$880,001 to $900,000","$900,001 to $920,000","$920,001 to $940,000","$940,001 to $960,000","$960,001 to $980,000","$980,001 to $1,000,000","$1,000,001 to $1,100,000","$1,100,001 to $1,200,000","$1,200,001 to $1,300,000","$1,300,001 to $1,400,000","$1,400,001 to $1,500,000","$1,500,001 to $1,600,000","$1,600,001 to $1,700,000","$1,700,001 to $1,800,000","$1,800,001 to $1,900,000","$1,900,001 to $2,000,000","$2,000,001 to $2,100,000","$2,100,001 to $2,200,000","$2,200,001 to $2,300,000","$2,300,001 to $2,400,000","$2,400,001 to $2,500,000","Over $2,500,000"],_mortgage_values=[1e4,2e4,3e4,4e4,5e4,6e4,7e4,8e4,9e4,1e5,12e4,14e4,16e4,18e4,2e5,22e4,24e4,26e4,28e4,3e5,32e4,34e4,36e4,38e4,4e5,42e4,44e4,46e4,48e4,5e5,52e4,54e4,56e4,58e4,6e5,62e4,64e4,66e4,68e4,7e5,72e4,74e4,76e4,78e4,8e5,82e4,84e4,86e4,88e4,9e5,92e4,94e4,96e4,98e4,1e6,11e5,12e5,13e5,14e5,15e5,16e5,17e5,18e5,19e5,2e6,21e5,22e5,23e5,24e5,25e5,26e5],mortgage_selected_index=0,_slider_values4=["$0 (No Cash)","$0 to $5,000","$5,000 to $10,000","$10,001 to $15,000","$15,001 to $20,000","$20,001 to $25,000","$25,001 to $30,000","$30,001 to $35,000","$35,001 to $40,000","$40,001 to $45,000","$45,001 to $50,000","$50,001 to $55,000","$55,001 to $60,000","$60,001 to $65,000","$65,001 to $70,000","$70,001 to $75,000","$75,001 to $80,000","$80,001 to $85,000","$85,001 to $90,000","$90,001 to $95,000","$95,001 to $100,000","$100,001 to $120,000","$120,001 to $140,000","$140,001 to $160,000","$160,001 to $180,000","$180,001 to $200,000","$200,001 to $220,000","$220,001 to $240,000","$240,001 to $260,000","$260,001 to $280,000","$280,001 to $300,000","$300,001 to $320,000","$320,001 to $340,000","$340,001 to $360,000","$360,001 to $380,000","$380,001 to $400,000","$400,001 to $420,000","$420,001 to $440,000","$440,001 to $460,000","$460,001 to $480,000","$480,001 to $500,000","$500,001 to $520,000","$520,001 to $540,000","$540,001 to $560,000","$560,001 to $580,000","$580,001 to $600,000","$600,001 to $620,000","$620,001 to $640,000","$640,001 to $660,000","$660,001 to $680,000","$680,001 to $700,000","$700,001 to $720,000","$720,001 to $740,000","$740,001 to $760,000","$760,001 to $780,000","$780,001 to $800,000","$800,001 to $820,000","$820,001 to $840,000","$840,001 to $860,000","$860,001 to $880,000","$880,001 to $900,000","$900,001 to $920,000","$920,001 to $940,000","$940,001 to $960,000","$960,001 to $980,000","$980,001 to $1,000,000","$1,000,001 to $1,100,000","$1,100,001 to $1,200,000","$1,200,001 to $1,300,000","$1,300,001 to $1,400,000","$1,400,001 to $1,500,000","$1,500,001 to $1,600,000","$1,600,001 to $1,700,000","$1,700,001 to $1,800,000","$1,800,001 to $1,900,000","$1,900,001 to $2M","Over $2,000,000"],_cashout_values=[0,5e3,1e4,15e3,2e4,25e3,3e4,35e3,4e4,45e3,5e4,55e3,6e4,65e3,7e4,75e3,8e4,85e3,9e4,95e3,1e5,12e4,14e4,16e4,18e4,2e5,22e4,24e4,26e4,28e4,3e5,32e4,34e4,36e4,38e4,4e5,42e4,44e4,46e4,48e4,5e5,52e4,54e4,56e4,58e4,6e5,62e4,64e4,66e4,68e4,7e5,72e4,74e4,76e4,78e4,8e5,82e4,84e4,86e4,88e4,9e5,92e4,94e4,96e4,98e4,1e6,11e5,12e5,13e5,14e5,15e5,16e5,17e5,18e5,19e5,2e6],cash_selected_index=0,verify_email_flag=!1,verify_phone_flag=!1;function countLines(e){var t=document.getElementById("item-header").offsetHeight,i=parseInt(e.height());return parseInt(t/i)}function animateTitle(e,t,i,n,a){TweenMax.set(e,{y:t,opacity:0,lazy:!0}),TweenMax.to(e,.4,{y:i,rotationZ:.05,opacity:1,delay:a,ease:Power4.easeOut,force3D:!0,onComplete:enableBackBtn})}function enableBackBtn(){$(".back-button").removeClass("disable-btn")}function animateTitleUp(e,t,i,n,a){TweenMax.set(e,{y:t,opacity:a,lazy:!0}),TweenMax.to(e,n,{y:i,rotationZ:.05,opacity:0,delay:.75,ease:Power4.easeOut,force3D:!0})}function animateField(e,t,i,n,a){TweenLite.set(e,{left:t,opacity:0,lazy:!0,transformOrigin:"0% 0%"}),TweenLite.to(e,n,{left:i,opacity:1,onComplete:leadLine,onCompleteParams:[a],ease:Power3.easeOut,force3D:!0})}function animateOptions(e,t,i,n,a,s,o){"computer"==funnel.device_type&&(detectIE()||o.length&&o.find("input").length&&(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||o.find("input").first().select())),TweenMax.set(e,{left:t,opacity:1,lazy:!0,onStart:endResize}),TweenMax.to(e,n,{left:i,opacity:1,delay:a,ease:s,force3D:!0,onComplete:startResize,onCompleteParams:[o]})}function animateOptionScrollbar(e,t,i,n,a,s,o){TweenLite.set(e,{right:t,opacity:1,lazy:!0,onStart:endResize}),TweenLite.to(e,n,{right:i,opacity:1,delay:a,ease:s,force3D:!0,onComplete:hideScrollContent,onCompleteParams:[o]})}function hideScrollContent(e){e.length&&e.hasClass("scrollbar")&&e.removeClass("block")}function leadLine(e){var t=jQuery(".content-subtitle"),i=jQuery(".content-title");"next"==e&&(detectIE()?(TweenMax.set(i,{y:"-20px",opacity:0,lazy:!0,transformOrigin:"50% 0%"}),TweenMax.to(i,2,{y:"0.0",rotationZ:.05,opacity:1,ease:Power3.easeOut,force3D:!0}),TweenMax.set(t,{y:"-20px",opacity:0,lazy:!0,transformOrigin:"50% 0%"}),TweenMax.to(t,2,{y:"0.0",rotationZ:.05,opacity:1,ease:Power3.easeOut,force3D:!0})):(TweenLite.set(i,{y:"-20px",opacity:0,lazy:!0,transformOrigin:"0% 0%"}),TweenLite.to(i,2,{y:"0.0",rotationY:.01,opacity:1,ease:Power3.easeOut,force3D:!0}),TweenLite.set(t,{y:"-20px",opacity:0,lazy:!0,transformOrigin:"0% 0%"}),TweenLite.to(t,2,{y:"0.0",rotationY:.01,opacity:1,ease:Power3.easeOut,force3D:!0})))}function isLoSelected(){var e=$(".select_fields").not(".hide"),t=e.find(".loan-officer").val(),i=e.find(".loan-officer").attr("title"),n=e.find(".loan-officer").find(":selected").attr("data-address"),a=e.find(".loan-officer").find(":selected").val(),s='Please select '+i+"";return""==t?($(".question.current").find(".error-container").prepend(s),!1):($(".question.current").find(".error").remove(),$(".question.current").find("#lo_name").val(a),$(".question.current").find("#lo_address").val(n),$("#manager_address").val(n),!0)}function IsValidDate(){var e=$("#birth-month").val(),t=$("#birth-day").val(),i=$("#birth-year").val();if(""==e||""==t||""==i)return showErrorMessage(),!1;var n=parseInt(e,10),a=parseInt(t,10),s=parseInt(i,10),o=new Date(s,n-1,a);if(o.getFullYear()!=s||o.getMonth()+1!=n||o.getDate()!=a)return _error='Please enter a valid date of birth.',$(".error-container").find(".error").remove(),$(".error-container").prepend(_error),!1;$(".error-container").find(".error").remove();var r=n+"/"+a+"/"+s;return $("#birthdate").val(r),$("#primarybirthdate").val(r),!0}function showErrorMessage(){var n='Please enter a ',a="",s="";$(".selectParent").find("select").each(function(e,t){if(""==$(t).val()){var i=$(t).attr("name").replace("birth","");n+=s+i,s=" and a ",a++}}),3==a&&(n='Please enter a date'),n+=".",$(".error-container").find(".error").remove(),$(".error-container").prepend(n)}function resizer(){$("#f-p2-item").css("width","100%"),$(".question.current").find(".option").each(function(e,t){$(t).css("left","50%")})}function init_mask(){"computer"!=funnel.device_type?(selector=$(".phonenumber"),selector.mask("(999) 999-9999")):(selector=$(".phonenumber"),new Inputmask("(999) 999-9999").mask(selector))}function startResize(e){if($(window).resize(resizer),e.length&&e.find("input").length)if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||e.find("input").first().select(),e.find("input").hasClass("firstname")&&e.hasClass("current")&&$(".privacy-image").css({display:"block"}),"1"==funnel.current_client.is_fairway)"Primary Phone"!=e.find("input").attr("rel")&&"Primary Email"!=e.find("input").attr("rel")&&($(".helping_text").css({display:"none"}),$(".mortgage_tcpa_text").css({display:"none"})),"Primary Email"!=e.find("input").attr("rel")&&"Primary Phone"!=e.find("input").attr("rel")||($(".helping_text").css({display:"none"}),$(".mortgage_tcpa_text").css({display:"block"}));else if("Primary Phone"==e.find("input").attr("rel")){if(("1"==funnel.current_client.is_mm||"1"==funnel.current_client.is_thrive||1==funnel.variables.helping_text_active&&""!=funnel.variables.helping_text)&&($(".mortgage_tcpa_text").css({display:"block"}),$(".helping_text").css({display:"block"})),0<$("#tcpa").length&&$("#tcpa").removeClass("hide").addClass("show"),"computer"!=funnel.device_type)selector=$(".phonenumber"),selector.mask("(999) 999-9999");else selector=$(".phonenumber"),new Inputmask("(999) 999-9999").mask(selector)}}function endResize(){$(window).off("resize",resizer)}function cursorAnimation(){$("#enteryourzipcode.cursor").animate({opacity:0},"fast","swing").animate({opacity:1},"fast","swing")}function findDuplicates(e,t){return e.filter(function(e){return-1!=t.indexOf(e)})}function debounce(n,a,s){var o;return function(){var e=this,t=arguments,i=s&&!o;clearTimeout(o),o=setTimeout(function(){o=null,s||n.apply(e,t)},a),i&&n.apply(e,t)}}function setwidth(){is_ada_mode()||(current_question=jQuery(".question.current"),$(window).width()<=320?item_width=270:$(window).width()<=380?item_width=300:380<$(window).width()&&(item_width=334),jQuery(".question").each(function(e,t){_length=$(t).find(".option").length,0<$(t).find(".scrollbar").length||$(t).hasClass("multiselect")?_top=0:(_top=90,$(window).width()<=1024&&(_top=110));for(var i=1;i<=_length;i++){$(this).find("#option-"+i).css({top:_top,width:item_width}),_top+=70}jQuery(".multiselect .btn-mvp-wrapper.next-button, .singleselectcta .btn-mvp-wrapper.next-button").css({width:item_width,left:"50%",display:"none"}),current_question.find(".btn-mvp-wrapper.next-button").css("display","block"),jQuery("a.micro-logo").css({bottom:"0",right:"0"})}))}function setBackGround(){var e=$(document).height();$(window).height()Please enter valid email address');$("."+i+"-box .check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("hidden").addClass("visible"),$("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("visible").addClass("hidden"),$("."+i+"-box .check-wrapp").find("span.message-error").remove(),t.find("input").blur()}else{if(!validateEmail($(".question.current input."+i).val()))return $("."+i+"-box").removeClass("validate").addClass("focus"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("visible").addClass("hidden"),void $("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible");$("."+i+"-box .check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("hidden").addClass("visible"),$("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("visible").addClass("hidden"),$("."+i+"-box .check-wrapp").find("span.message-error").remove(),t.find("input").blur()}else if("phonenumber"===i||"phone"===i)if("0"!=funnel.client.xverify_flag){if(!xverifycheckIfPhone(i,_question_id))return $("."+i+"-box .check-wrapp").parent("div.inputwrapper").removeClass("validate").addClass("focus"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("visible").addClass("hidden"),$("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible"),$("."+i+"-box .check-wrapp").find("span.message-error").remove(),void $("."+i+"-box .check-wrapp").append('Please enter valid phone number');$("."+i+"-box .check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("hidden").addClass("visible"),$("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("visible").addClass("hidden"),$("."+i+"-box .check-wrapp").find("span.message-error").remove(),t.find("input").blur()}else{if(LEADPOP.validatePhone($(".question.current input."+i).val()))return $("."+i+"-box .check-wrapp").parent("div.inputwrapper").removeClass("validate").addClass("focus"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("visible").addClass("hidden"),void $("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible");$("."+i+"-box .check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("hidden").addClass("visible"),$("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("visible").addClass("hidden"),t.find("input").blur()}else if("fullname"===i){var n=t.find("input").val().split(" ");if(!(2<=n.length&&""!=n[1]))return $("."+i+"-box .check-wrapp").parent("div.inputwrapper").removeClass("validate").addClass("focus"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("visible").addClass("hidden"),void $("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible");$("."+i+"-box .check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),$("."+i+"-box .check-wrapp").find(".checked").removeClass("hidden").addClass("visible"),$("."+i+"-box .check-wrapp").find(".cross-checked").removeClass("visible").addClass("hidden")}else if("enteryourzipcode"===i||"zipcode"===i){var a=jQuery("#enteryourzipcode").closest("#step-2");LEADPOP.validateField("enteryourzipcode","required~zip")?(jQuery("#enteryourzipcode").parent(".inputwrapper").removeClass("focus").addClass("validate"),jQuery("#enteryourzipcode").parent(".inputwrapper").find("input.f-input").blur(),a.find(".check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),a.find(".check-wrapp").find(".checked").removeClass("hidden").addClass("visible"),a.find(".check-wrapp").find(".cross-checked").removeClass("visible").addClass("hidden")):(a.find(".check-wrapp").parent("div.inputwrapper").removeClass("validate").addClass("focus"),a.find(".check-wrapp").find(".checked").removeClass("visible").addClass("hidden"),a.find(".check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible"))}ConditionalLogic.trigger(),"youremail"!==i&&"email"!==i&&"phonenumber"!==i&&"phone"!==i||t.find("input").attr("autocomplete","on"),$(".current .btn-clicks .ring").removeClass("turn"),$(e).find(".ring").addClass("turn"),selecteditem=$(e).parents(".option").attr("id"),is_ada_mode()||disableItems(t);var s=t.attr("data-id");if(3417==funnel.client.client_id&&"welcome.juliearagon.com"==funnel.SERVER_NAME){event_id=s,event_id++,_prefix="",event_id<10&&(_prefix="0"),event_id=_prefix+event_id;var o=t.find(".option.selected").find(".q-text").data("field");ga("send","event",{eventCategory:"Lead",eventAction:event_id+"-leadPops-Add : "+o})}if(t.hasClass("input_fields")||t.hasClass("slider_fields")||t.hasClass("date_fields")||t.hasClass("select_fields")||(t.find(".btn-mvp-wrapper").removeClass("flip").removeClass("selected"),$(e).closest(".btn-mvp-wrapper").addClass("flip").addClass("selected")),slast_four&&(selected_index=last_four,next_selected=lastindex),i.find(".scrollbar")?e>=selected_index&&e<=next_selected&&(a+=.08):a+=.08}),a=.5,(i.hasClass("multiselect")||i.hasClass("singleselectcta"))&&i.find(".next-button").length&&(i.find(".next-button").css("display","block"),animateOptions(i.find(".next-button"),-2e3,opt_margin,.5,a,easing,"")),i.hasClass("scrollbar")&&(i.addClass("block"),answer_count=i.find(".option").length,scrollheight=70*answer_count,i.find(".mCSB_container").css("height",scrollheight)),i.find(".mCSB_scrollTools_vertical").each(function(e){animateOptionScrollbar($(this),2e3,opt_margin_scroll,.5,a,easing,""),a+=50}),jQuery(".question").removeClass("current"),i.addClass("current"),0<=t.find(".btn-mvp-wrapper.flip").length&&(cnt_bar=Object.keys(BrowserStorage.getLeadInfo()).length-1,calculationProgressBar11(cnt_bar))}else 1==n&&($(window).width()<=1024&&setContentHeight(void 0),jQuery(".question.current").find(".option").each(function(e,t){$(t).find(".btn-mvp-wrapper").removeClass("selected").removeClass("flip"),$(t).find(".ring").removeClass("turn"),$(t).find(".ring").hasClass("square_check")&&$(t).find(".ring").removeClass("uncheck").addClass("uncheck")}),jQuery(".question.current").removeClass("current"),$(".lock").css({opacity:"1",left:"12px"}),_box=$("#step-1").width(),per_width=percentToPixel(_box,50),$("#step-2").delay(500).animate({left:"2900px"},500,function(){animateField($("#step-1"),-1e3,per_width,.3,"back")}),$(this).removeClass("block"),cnt_bar=0,calculationProgressBar11(cnt_bar),jQuery(".question").removeClass("current"),jQuery("#card").removeClass("block"),$(".fw-custom-tcpa").css({display:"block"}));ConditionalLogic.rollbackCL(),leadStack.removeIndexInfo(),setTimeout(function(){inputfield_hide_mobile()},1e3)},animateNextHandler=function(e){e.preventDefault(),ConditionalLogic.trigger();var t=(r=$(".question.current")).data("ajax-load-target");if(void 0!==t){var i=r.data("ajax-route"),n=r.data("opt-field"),a=r.data("opt-rel"),s=r.data("id");getDataList(r.find(".selected .q-text").html(),i,s,t,n,a,!0)}if(is_ada_mode()){var o=r.nextAll(".question:not(.hide):first");return jQuery(".question").removeClass("current"),o.addClass("current"),animateAdaScreen("#"+o.attr("id")),void userway_keyboard_tab_focus()}if(1==validateMultiSelect(r)){var r;if(disableItems(r=$(".question.current")),r.attr("data-id") Success")},error:function(e){console.error("Request failed on route->save_contact_data ")},cache:!1,async:!1})},saveQuestionData:function(e){var i=zip="",t=jQuery("#leadpopquoteform").serializeArray();t&&s.each(t,function(e,t){zip="cityzipcode"==t.name?"enteryourzipcode":t.name,step=s("#"+t.name).data("step"),i=(i+=s("label[for="+zip+"]").text())+"="+t.value+"~~~"+t.name+"~~~"+step+"&"}),funnel.JS_CONSOLE&&console.log("QA Data 1 ==>",i),"mvp elements"==e&&s("#replacedivtwo").find(".question").not(".hide,.input_fields").find(".option.selected").each(function(){if(s(this).find(".q-text")){if(qvalues=s(this).find(".q-text").val(),""!=qvalues&&null!=qvalues||(qvalues=s(this).find(".q-text").html()),qhtml="Excellent 740+"==s(this).find(".q-text").html()?encodeURIComponent(s(this).find(".q-text").html()):(qhtml=s(this).find(".q-text").html(),qhtml=qhtml.replace(">","#1#"),qhtml.replace("<","#2#")),qrel=s(this).find(".q-text").attr("rel"),qfield=s(this).find(".q-text").data("field"),qstep=s(this).find(".q-text").data("step"),-1",i),s.ajax({type:"POST",url:"/ajax-router.php",data:i,success:function(e){funnel.JS_CONSOLE&&console.info("saveQuestionData ==> Success")},error:function(e){console.error("Request failed on route->saveQuestionData ")},cache:!1,async:!1}),leadStack.saveLead()},getFirstName:function(e){var t=(e=e.trim()).match(/^(\S+)\s(.*)/).slice(1);return 1===t.length?t[0]:t.slice(0,-1).join(" ")},getLastName:function(e,t){var i=(e=e.trim()).match(/^(\S+)\s(.*)/).slice(1);return 1===i.length?t||"":i.slice(-1).join(" ")},goAfterSlide:function(e,t){"last"==e&&(funnel.JS_CONSOLE&&jQuery.each(leadStack.getInfo(),function(e,t){console.log(e,t)}),saveInputsData(),LEADPOP.saveQuestionData(t),LEADPOP.saveContactData()),jQuery("#replacedivtwo").html(""),jQuery("#replacediv").html(""),jQuery("#replacediv").html('

Saving...

'),4277!=funnel.client.client_id&&setTimeout(function(){LEADPOP.getStepHtml(e)},1e3)},inIframe:function(){try{return window.self!==window.top}catch(e){return!0}},getStepHtml:function(e){var t=this;s.ajax({type:"POST",url:"/ajax-router.php",data:"step="+e+"&lps="+funnel.session_id+"&route=submit_lead",dataType:"json",success:function(e){funnel.JS_CONSOLE&&console.log("lead Saved => Redirect Response => ",e),e.success?e.refresh?document.location.reload(!0):(9==e.case&&(jQuery("#pleasewait").dialog({modal:!0,autoOpen:!1,width:550,height:200}),jQuery("#pleasewait").dialog("open").siblings(".ui-dialog-titlebar").remove()),4==e.case&&1==funnel.isFbPixelAddedForTY&&"undefined"!=typeof fbq&&"function"==typeof fbq&&fbq("track","Lead"),t.inIframe()?window.location.assign(e.redirect_url+"?lpPhpSessionId="+Lp.phpSessionId):window.location.assign(e.redirect_url)):console.error(e.error)},error:function(e,t,i){console.error("Request failed on getStepHtml",i)},cache:!1,async:!1})},validateZillowForm:function(){return 1==s("#cityzipcode").length?(console.info("hereadsfasdfasd"),1==LEADPOP.validateField("cityzipcode","required~none")||(s(".check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible"),!1)):1==LEADPOP.validateZillow("enteryourzipcode","required~zip","zipid")},validateZillow:function(e,t,i,n){var a=t.split("~");if("required"==a[0]&&"zip"==a[1]){if(""==s("#"+e).val())return s(".check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible"),!1;if(""!=s("#"+e).val())return 1!=this.validateZip(s("#"+e).val())}},validateField:function(e,t){var i=t.split("~");if("required"==i[0]&&"zip"==i[1]){if(""==s("#"+e).val())return!1;if(""!=s("#"+e).val())return 1!=this.validateZip(s("#"+e).val())}if("required"==i[0]&&"email"==i[1]){if(""==s("#"+e).val())return void 0!==i[2]&&s("#"+i[2]).addClass("makeitred"),!1;if(""!=s("#"+e).val())return 1==LEADPOP.validateEmail(s("#"+e).val())?(void 0!==i[2]&&s("#"+i[2]).addClass("makeitred"),!1):(void 0!==i[2]&&s("#"+i[2]).removeClass("makeitred"),!0)}if("required"==i[0]&&"phone"==i[1]){if(""==s("#"+e).val())return void 0!==i[2]&&s("#"+i[2]).addClass("makeitred"),!1;if(""!=s("#"+e).val())return 1==LEADPOP.validatePhone(s("#"+e).val())?(void 0!==i[2]&&s("#"+i[2]).addClass("makeitred"),!1):(void 0!==i[2]&&s("#"+i[2]).removeClass("makeitred"),!0)}if("required"==i[0]&&"none"==i[1])return""==s("#"+e).val()?(void 0!==i[2]&&s("#"+i[2]).addClass("makeitred"),s(".check-wrapp").find(".checked").removeClass("visible").addClass("hidden"),!1):s("#"+e).val().match(/[a-z]/i)?(s(".check-wrapp").parent(".codebox").find(".checked").removeClass("hidden").addClass("visible"),s(".check-wrapp").parent(".codebox").find(".cross-checked").removeClass("visible").addClass("hidden"),s(".codebox .check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),!0):s("#"+e).val().length<5||1==this.validateZip(s("#"+e).val())?(s(".check-wrapp").find(".checked").removeClass("visible").addClass("hidden"),s(".check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible"),!1):(s(".check-wrapp").parent(".codebox").find(".checked").removeClass("hidden").addClass("visible"),s(".check-wrapp").parent(".codebox").find(".cross-checked").removeClass("visible").addClass("hidden"),s(".codebox .check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),!0)},validatePhone:function(e){var t=!1,i=e.replace(/[\(\)\.\-\_\ ]/g,"");return"0000000000"==i||isNaN(parseInt(i))?t=!0:10!=i.length&&(t=!0),t},validateEmail:function(e){var t=!1;return/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)||(t=!0),t},validateZip:function(e){var i=!1,t=e.replace(/[\-\ ]/g,"");return isNaN(parseInt(t))&&(i=!0),0==i&&s.ajax({type:"POST",url:"/ajax-router.php",data:"route=validzipcode&zipcode="+e,success:function(t){"found"!=t?i=!0:0a.length&&$.each(i,function(e,t){if(-1===a.indexOf($(t).attr("data-id"))){if(!$(t).hasClass("slider_fields"))return $(t).hasClass("input_fields")&&$(t).find("input").val(),animateAdaScreen("#ques"+$(t).attr("data-id")),!(o=!0);$(t).find(".option").addClass("selected"),leadStack.addInfo($(t).attr("data-id"),$(t).attr("data-key"),$(t).find(".q-text").attr("rel"),$(t).find(".q-text").html(),$(t))}}),!1===o&&$.each($(".question.input_fields"),function(e,t){if(""==$(t).find("input").val())return!(o=!0)}),o)return}if("0"!=funnel.client.xverify_flag){var r=$(".question.current input").attr("id");if(!xverifycheckIfPhone(r,_question_id))return $("."+r+"-box .check-wrapp").parent("div.inputwrapper").removeClass("validate").addClass("focus"),$("."+r+"-box .check-wrapp").find(".checked").removeClass("visible").addClass("hidden"),$("."+r+"-box .check-wrapp").find(".cross-checked").removeClass("hidden").addClass("visible"),$("."+r+"-box .check-wrapp").find(".message-error").remove(),void $("."+r+"-box .check-wrapp").append('Please enter valid phone number');$("."+r+"-box .check-wrapp").parent("div.inputwrapper").removeClass("focus").addClass("validate"),$("."+r+"-box .check-wrapp").find(".checked").removeClass("hidden").addClass("visible"),$("."+r+"-box .check-wrapp").find(".cross-checked").removeClass("visible").addClass("hidden"),$("."+r+"-box .check-wrapp").find(".message-error").remove(),$(".lock").animate({left:"-2000px"},1500),$("#replacedivtwo").animate({right:"2000px"},t,function(){calculationProgressBar11($(".question:not(.hide)").size()+1),is_ada_mode()&&$("html, body").animate({scrollTop:0});LEADPOP.goAfterSlide("last","mvp elements"),jQuery("#card").flip(!0)})}else{var l=$(".question.current input").attr("name");if("phone"===l&&LEADPOP.validatePhone($(".question.current input").val()))return;if("email"===l&&LEADPOP.validateEmail($(".question.current input").val()))return;$(".lock").animate({left:"-2000px"},1500),$("#replacedivtwo").animate({right:"2000px"},t,function(){calculationProgressBar11($(".question:not(.hide)").size()+1),is_ada_mode()&&$("html, body").animate({scrollTop:0});LEADPOP.goAfterSlide("last","mvp elements"),jQuery("#card").flip(!0)})}if(3417==funnel.client.client_id&&"welcome.juliearagon.com"==funnel.SERVER_NAME&&ga("send","event",{eventCategory:"Lead",eventAction:"LeadPop Submit"}),5111==funnel.client.client_id&&"fbpurchase.mdlquote.com"==funnel.SERVER_NAME||"interestonly.mdlquote.com"==funnel.SERVER_NAME||"purchase.mdlquote.com"==funnel.SERVER_NAME){var d=$(".q-text[data-field=purchaseprice],.q-text[data-field=firstmortgagebalance],.q-text[data-field=currentmortgagebalance]"),c=/([\d]+)/g,u=d.length,p=0;if(u){for(var f=0;ft.find(".option").length-1&&(keyboard_obj.menuOptionIndex=t.find(".option").length-1),t.find(".option").removeClass("option_focused"),t.find(".option:eq("+keyboard_obj.menuOptionIndex+")").addClass("option_focused"),3t.find(".option").length-1&&(keyboard_obj.menuOptionIndex=t.find(".option").length-1),t.find(".option").removeClass("option_focused"),t.find(".option:eq("+keyboard_obj.menuOptionIndex+")").addClass("option_focused"),2>> FIRST TIME"):console.log("Log Disabled");var e=BrowserStorage.isLeadsStorageActive();if(is_ada_mode()&&loadAdaBundleQuestion(),loadSlideOnFunnelLoad(e||0),is_ada_mode()&&enableAccessibilityMode(),setBackGround(),n("#step-1").find(".scrollbar")){n("#step-1").find(".scrollbar").addClass("block");var t=70*n("#step-1").find(".option").length;n("#step-1").find(".mCSB_container").css("height",t),n("#step-1").find(".option .btn-clicks").bind("click.lp1",listItemClickHandler)}}),jQuery("#getfreeinsurancequotestext span").length){var t=n("#getfreeinsurancequotestext span").attr("style");void 0!==t&&-1!=t.search("line-height")||n("#getfreeinsurancequotestext span").css("line-height","1.42857143")}if(jQuery("#getfreeratequotestext span").length){var i=n("#getfreeratequotestext span").attr("style");void 0!==i&&-1!=i.search("line-height")||n("#getfreeratequotestext span").css("line-height","1.42857143")}function a(){n(window).width()<650?jQuery("#getfreeratequotestext span").length&&-1!=n("#getfreeratequotestext span").html().search("
")&&n("#getfreeratequotestext span br").hide():jQuery("#getfreeratequotestext span").length&&n("#getfreeratequotestext span br ").show()}if(a(),n(window).resize(function(){a()}),450$(".main-content").outerHeight()){var e=new Number($("#step-1").outerHeight())+25;$(".main-content").height(e)}},400),$(window).width()<=1024&&(content_height=jQuery("#singleton").height(),440>> Field-id: "+this.fieldId+" >>> Has Conditional-Logic? "+funnel.conditions.hasOwnProperty(this.fieldId)),self.__questionHasConditionalFlow()&&jQuery.each(self.currentQuestionConditions,function(k,condition){jQuery.each(condition.terms,function(i,term){funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log("Rule # "+(k+1),term);var isTermValid=!1,isValidOperator=!0;switch(term.operator){case"isEqual":case"isEqualTo":isTermValid=self.__questionValue().toLowerCase()===term.value.toLowerCase(),funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(self.logKey,"Rule # "+(k+1),">>> ["+term.operator+"] "+self.__questionValue()+" === "+term.value+" ==> Condtion: "+isTermValid);break;case"isNotEqual":case"isNotEqualTo":isTermValid=self.__questionValue().toLowerCase()!==term.value.toLowerCase(),funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(self.logKey,"Rule # "+(k+1),">>> ["+term.operator+"] "+self.__questionValue()+" !== "+term.value+" ==> Condtion: "+isTermValid);break;case"isFilled":isTermValid=""!==self.__questionValue(),funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(self.logKey,"Rule # "+(k+1),">>> ["+term.operator+"] "+self.__questionValue()+" !== '' ==> Condtion: "+isTermValid);break;case"isEmpty":isTermValid=""===self.__questionValue(),funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(self.logKey,"Rule # "+(k+1),">>> ["+term.operator+"] "+self.__questionValue()+" === '' ==> Condtion: "+isTermValid);break;case"Contains":var isContains=!1;if("object"==typeof term.value){if("string"==typeof self.__questionValue())var questionValue=self.__questionValue().split(",");else var questionValue=self.__questionValue();var intersectArr=findDuplicates(term.value,questionValue);isContains=0>> ["+term.operator+"] ==> Condtion: "+isTermValid);break;case"DoesNotContain":var isContains=!0;if("object"==typeof term.value){if("string"==typeof self.__questionValue())var questionValue=self.__questionValue().split(",");else var questionValue=self.__questionValue();var intersectArr=findDuplicates(term.value,questionValue);isContains=0>> ["+term.operator+"] ==> Condtion: "+isTermValid);break;case"lessThan":case"lessThanOrEqualTo":var operator="";if("lessThan"===term.operator?operator=" < ":"lessThanOrEqualTo"===term.operator&&(operator=" <= "),self.currentQuestion.hasClass("slider_fields")&&"slider-numeric"===self.currentQuestion.find(".option .q-text").data("slider-type")){var isRangeValue=-1>> ["+term.operator+"] ==> Condtion: "+isTermValid)}break;case"greaterThan":case"greaterThanOrEqualTo":var operator="";if("greaterThan"===term.operator?operator=" > ":"greaterThanOrEqualTo"===term.operator&&(operator=" >= "),self.currentQuestion.hasClass("slider_fields")&&"slider-numeric"===self.currentQuestion.find(".option .q-text").data("slider-type")){var isRangeValue=-1>> ["+term.operator+"] ==> Condtion: "+isTermValid)}break;default:isValidOperator=!1,funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(self.logKey,"Rule # "+(k+1),">>>",term.operator+" - Invalid Operator.")}funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(self.logKey,"Rule # "+(k+1),">>>","DO ACTION => Logical Condition: "+isTermValid),isValidOperator&&self.__doActions(condition.action,term,isTermValid)})})},__questionValue:function(){if(1===this.currentQuestion.find(".zipcodeinput").length)return jQuery("#"+this.fieldId).val();if(this.currentQuestion.hasClass("input_fields"))return this.currentQuestion.find(".f-input").val();if(this.currentQuestion.hasClass("multiselect")){var e=this.currentQuestion.find(".option.selected"),i=[];return jQuery.each(e,function(e,t){i.push(jQuery(t).find(".q-text").html())}),i}return this.currentQuestion.hasClass("date_fields")?this.currentQuestion.find("input[type=hidden]").val():this.currentQuestion.hasClass("select_fields")&&this.currentQuestion.find(".mvp-loan-officer")?this.currentQuestion.find(".option.selected .q-text").val():this.currentQuestion.find(".option.selected .q-text").html()},__questionLabel:function(){if(1===this.currentQuestion.find(".zipcodeinput").length)return jQuery("#"+this.fieldId).attr("data-rel");if(this.currentQuestion.hasClass("multiselect")){var e=this.currentQuestion.find(".option.selected"),i=[];return jQuery.each(e,function(e,t){i.push(jQuery(t).find(".q-text").attr("rel"))}),i}return this.currentQuestion.find(".option.selected .q-text").attr("rel")},__doActions:function(e,t,s){var o=this;jQuery.each(e,function(e,n){var t=[],a=n.visibility;"HideMultiple"===a?(a="Hide",t=n["conditional-field-id"]):"ShowMultiple"===a?(a="Show",t=n["conditional-field-id"]):t.push(n["conditional-field-id"]),funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(o.logKey,"__doActions() >>> Condition: "+s,"-|- Visibility: "+a,"for => "+t),jQuery.each(t,function(e,t){var i=jQuery("[data-field='"+t+"']").parents(".question");0>> Invalid Step - Action Failed"):console.log(o.logKey,">>> Field ("+n["conditional-field-id"]+") not found. - Action Failed"))})})},__questionHasConditionalFlow:function(){return!!funnel.conditions.hasOwnProperty(this.fieldId)&&(this.__set("currentQuestionConditions",funnel.conditions[this.fieldId]),!0)},__stepExists:function(e){var t=null;t=1===this.currentQuestion.find(".zipcodeinput").length?0:this.currentQuestion.data("id");var i=e.data("id")>t;return funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&(i||console.log(this.logKey,"__stepExists >>> IN VALID >>","CurrentStep: "+t+" - ActionStep: "+e.data("id")+" -- is valid step ? "+i)),i},__hideShowStep:function(e,t,i){var n="none",a="";"Hide"===t?(funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(this.logKey,"__hideShowStep() >>> ","CSS-Classes: "+e.attr("class")),this.__has_triggered_cl_action(e)?e.hasClass("show")?n="Case-1.2":e.hasClass("show")||(e.addClass("hide"),a="hide",n="Case-2.2"):i&&(e.addClass("hide"),a="hide",n="Case-2.1")):"Show"===t&&(this.__has_triggered_cl_action(e)||(n=i?(e.addClass("show"),a="show","Case-1.1"):(e.addClass("hide"),a="hide","Case-3"))),a?(this.__trackActionList(this.fieldId,e.attr("id"),a),e.addClass(this.action_class),funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(this.logKey,"__hideShowStep() >>> ["+this.fieldId+"] => "+a.toUpperCase()+" question# ["+e.attr("id")+"] becasue of "+n)):funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(this.logKey,"__hideShowStep() >>> NO ACTION on ["+e.attr("id")+"] becasue of "+n),this.currentQuestion.addClass(this.trigger_class),this.currentQuestion.removeClass(this.rollback_trigger_class),e.hasClass(this.rollback_action_class)&&(e.removeClass(this.rollback_action_class),e.removeClass("cl-hide-rb"),e.removeClass("cl-show-rb")),is_ada_mode()&&($(".question").removeClass(this.ada_class),this.rollbackADA())},__has_triggered_cl_action:function(e){return e.hasClass(this.action_class)},rollbackCL:function(){var s=this;s.__initSelectors();var e=s.currentQuestion.attr("id");!0===s.currentQuestion.hasClass(s.trigger_class)&&(s.currentQuestion.removeClass(s.trigger_class),BrowserStorage.removeTriggerContainerIds("#"+e)),funnel.JS_CONSOLE&&ConditionalLogic.enable_log&&console.log(this.logKey,"rollbackCL() >>> actionList",s.actionList),null!=s.actionList&&s.actionList.hasOwnProperty(s.fieldId)&&(jQuery.each(s.actionList[s.fieldId],function(e,t){var i=t.targetContainerId,n=t.action,a=jQuery("#"+i);0>>",this.actionList),lpLocalStorage.setItem("actionList"+BrowserStorage.__getFunnelKey(),JSON.stringify(this.actionList)))},reinit:function(){this.actionList=JSON.parse(lpLocalStorage.getItem("actionList"+BrowserStorage.__getFunnelKey())),$(lpLocalStorage.getItem("triggers"+BrowserStorage.__getFunnelKey())).addClass(this.trigger_class),null!==lpLocalStorage.getItem("actions_hide"+BrowserStorage.__getFunnelKey())&&$(lpLocalStorage.getItem("actions_hide"+BrowserStorage.__getFunnelKey())).addClass(this.action_class+" hide"),null!==lpLocalStorage.getItem("actions_show"+BrowserStorage.__getFunnelKey())&&$(lpLocalStorage.getItem("actions_show"+BrowserStorage.__getFunnelKey())).addClass(this.action_class+" show")},rollbackADA:function(){0<$(".question."+ConditionalLogic.action_class).length&&($.each($(".question."+ConditionalLogic.action_class),function(e,t){if(0<$(t).find(".option.selected").length){var i=$(t).attr("data-id"),n=$(t).find(".option.selected");n.find(".btn-mvp-wrapper").removeClass("flip selected"),n.find(".btn-mvp-wrapper .ring").removeClass("turn"),delete leadStack.lead_info[i]}}),BrowserStorage.updateLeadInfo(leadStack.lead_info))},__resetADAclick:function(){this.ada_click_by=null},__setADAclick:function(e){this.ada_click_by=e}}}(jQuery),leadStack=function(e){return{lead_info:{},redis_lead_id:"",is_partial:!0,enableSyncFeature:!1,autosave:!1,autosave_delay:3e4,__set:function(e,t){leadStack[e]=t},addInfo:function(e,t,i,n,a){var s="";s="object"==typeof i?i[0]:i;var o=a.find(".q-text").attr("data-field");this.lead_info[String(e)]={field:o,label:s,value:n,"ques-key":t},funnel.JS_CONSOLE&&console.debug("leadStack >",this.lead_info),BrowserStorage.updateLeadInfo(this.lead_info),this.autosave?1===Object.keys(this.lead_info).length&&this.autosaveInit():this.syncLead()},removeIndexInfo:function(){var e=new Number(Object.keys(this.lead_info).pop());delete this.lead_info[e],BrowserStorage.updateLeadInfo(this.lead_info),funnel.JS_CONSOLE&&console.debug("leadStack <",Object.keys(this.lead_info))},getInfo:function(){return this.lead_info},syncLead:function(){visitor_identity=BrowserStorage.getFingerprint(),this.enableSyncFeature?e.ajax({type:"POST",url:"/ajax-router.php",data:{info:JSON.stringify(leadStack.lead_info),route:"syncleads",id:leadStack.redis_lead_id,partial_lead:leadStack.is_partial?1:0,visitor_id:visitor_identity?visitor_identity.fingerprint_id:0},dataType:"json",success:function(e){funnel.JS_CONSOLE&&console.info("lead sync ==> Success",e),201===e.status&&(leadStack.__set("redis_lead_id",e.id),BrowserStorage.setLeadStorageExpiry(e.id))},error:function(e,t){console.error("Request failed on lead sync => ",t),BrowserStorage.resetKeys()},cache:!1,async:!1}).always(function(){leadStack.autosave&&setTimeout(leadStack.syncLead,leadStack.autosave_delay)}):BrowserStorage.setLeadStorageExpiry(0)},saveLead:function(){this.__set("is_partial",!1),this.syncLead(),visitor_identity=BrowserStorage.getFingerprint(),e.ajax({type:"POST",url:"/ajax-router.php",data:{id:leadStack.redis_lead_id,info:JSON.stringify(leadStack.lead_info),route:"saveLeads",fingerprint:visitor_identity?visitor_identity.fingerprint:"",visitor_id:visitor_identity?visitor_identity.fingerprint_id:0},dataType:"json",success:function(e){funnel.JS_CONSOLE&&console.info("lead saved ==> Success",e)},error:function(e){console.error("Request failed on lead saved")},cache:!1,async:!1}).always(function(){BrowserStorage.resetKeys()})},autosaveInit:function(){setTimeout(this.syncLead,this.autosave_delay)}}}(jQuery),BrowserStorage=function(C){return{enableFeature:!0,__getFunnelKey:function(){var e=window.location.origin.replace(/(^\w+:|^)\/\//,"");return"_"+(e=e.replace(/\W/g,""))},getFingerprint:function(){return JSON.parse(lpLocalStorage.getItem("fingerprint"))},initBlankLeadIfNotExist:function(){null===lpLocalStorage.getItem("leadStack"+BrowserStorage.__getFunnelKey())&&lpLocalStorage.setItem("leadStack"+BrowserStorage.__getFunnelKey(),"{}")},updateLeadInfo:function(e){lpLocalStorage.setItem("leadStack"+BrowserStorage.__getFunnelKey(),JSON.stringify(e))},setLeadStorageExpiry:function(e){var t=new Date;t.setTime(t.getTime()+18e5),lpLocalStorage.setItem("leadStackExpire"+BrowserStorage.__getFunnelKey(),t),0i.length&&C.each(e,function(e,t){if(-1===i.indexOf(C(t).attr("data-id"))&&!C(t).hasClass("slider_fields"))return a=C(t).attr("data-id"),!!0}),a},resetKeys:function(){lpLocalStorage.removeItem("leadStackExpire"+BrowserStorage.__getFunnelKey()),lpLocalStorage.removeItem("leadStackLeadId"+BrowserStorage.__getFunnelKey()),lpLocalStorage.removeItem("leadStack"+BrowserStorage.__getFunnelKey()),lpLocalStorage.removeItem("actionList"+BrowserStorage.__getFunnelKey()),lpLocalStorage.removeItem("triggers"+BrowserStorage.__getFunnelKey()),lpLocalStorage.removeItem("actions_hide"+BrowserStorage.__getFunnelKey()),lpLocalStorage.removeItem("actions_show"+BrowserStorage.__getFunnelKey()),lpLocalStorage.removeItem("fingerprint"+BrowserStorage.__getFunnelKey())},getLeadInfo:function(){var e=lpLocalStorage.getItem("leadStack"+BrowserStorage.__getFunnelKey());return null===e&&(e="{}"),JSON.parse(e)},getLeadId:function(){return lpLocalStorage.getItem("leadStackLeadId"+BrowserStorage.__getFunnelKey())},__preSelectPreviousSlides:function(){if(!1===BrowserStorage.enableFeature)return!1;leadStack.__set("redis_lead_id",BrowserStorage.getLeadId());var e=BrowserStorage.getLeadInfo();leadStack.lead_info=e,funnel.JS_CONSOLE&&console.log(leadStack.redis_lead_id+" => leadStack",Object.keys(leadStack.lead_info)),jQuery.each(e,function(e,n){var t=n["ques-key"].toString();if(0> ",'span.q-text[data-field="'+n.field+'"]:contains("'+n.value+'")',C('span.q-text[data-field="'+n.field+'"]:contains("'+n.value+'")').length,typeof n.value),"slider"===a&&1===C('.q-text[data-field="'+n.field+'"]').length)if(C('.q-text[data-field="'+n.field+'"]').parents(".option").addClass("selected"),1==C('.q-text[data-field="'+n.field+'"]').parent().hasClass("two-puck-slider")){C('.q-text[data-field="'+n.field+'"]').html(n.value);var i=(c=C('.q-text[data-field="'+n.field+'"]').parent().attr("data-values").split("#")).length-1,s=n.value.split("-"),o=s[0].trim(),r=s[1].trim(),l=c.indexOf(o),d=c.indexOf(r);C('.q-text[data-field="'+n.field+'"]').parent().find(".slider").slider("destroy"),C('.q-text[data-field="'+n.field+'"]').parent().find(".slider").slider({range:!0,values:[l,d],min:0,max:i,step:1})}else{C('.q-text[data-field="'+n.field+'"]').html(n.value);var c,u=(c=C('.q-text[data-field="'+n.field+'"]').next(".field_slider").attr("data-values").split("#")).indexOf(n.value),p=u/(c.length-1)*100;C('.q-text[data-field="'+n.field+'"]').next(".field_slider").attr("data-values",u),C('.q-text[data-field="'+n.field+'"]').next(".field_slider").find("span").css("left",p+"%"),C('.q-text[data-field="'+n.field+'"]').next(".field_slider").find("div").css("width",p+"%"),C('.q-text[data-field="'+n.field+'"]').next(".field_slider").parents(".option").addClass("selected")}else if(1===C("input[data-field='"+n.field+"']").length)C("input[data-field='"+n.field+"']").val(n.value),C("input[data-field='"+n.field+"']").parents(".option").addClass("selected");else if(1===C("input#"+n.field).length)C("input#"+n.field).val(n.value);else if(0> ",'span.q-text[data-field="'+n.field+'"]:contains("'+n.value+'")',C('span.q-text[data-field="'+n.field+'"]:contains("'+n.value+'")').length,typeof n.value," >>> "),jQuery.each(n.value,function(e,t){if("true"==funnel.JS_CONSOLE&&console.log(a+" >> ",'span.q-text[data-field="'+n.field+'"]:contains("'+t+'")',C('span.q-text[data-field="'+n.field+'"]:contains("'+t+'")').length,typeof t),0$(".question.current").data("id")){var n=$("#ques"+$(t).data("condition-question")).find(".option.selected"),a=n.find(".q-text").val();""!=a&&null!=a||(a=n.find(".q-text").html()),null!=a&&(-1$(".question.current").data("id")){var n=$("#ques"+$(t).data("condition-question")).find(".option.selected"),a=n.find(".q-text").html();""!=a&&null!=a||(a=n.find(".q-text").html()),null!=a&&(-1 div.labels:visible").attr("id"))var n="pur-ques";else n="refi-ques";if(i.data("id")>$(".question.current").data("id")){var a=$("#"+n+$(t).data("condition-question")).find(".option.selected"),s=a.find(".q-text").html();""!=s&&null!=s||(s=a.find(".q-text").html()),null!=s&&(-1