1jQuery(document).ready((function(){function center_wizard(){var top=($(window).height()-$(".build-my-system-wizard__inner").height())/2;top<20&&(top=20),$(".build-my-system-wizard__inner").css({top:top})}$(".build-your-system-trigger").click((function(e){e.preventDefault(),$(".build-my-system-wizard").css("opacity",0).show().animate({opacity:1},400),center_wizard()})),$(window).resize(center_wizard),center_wizard();var progress_total_steps=0,progress_current_step=1;function step_input_updated(){progress_total_steps=5,$('[data-step="23"] .build-my-system-wizard__next-button').data("next-step",7),progress_total_steps++}function build_my_wizard_step(step,previous_step){$(".build-my-system-wizard__step-content.active-step").animate({opacity:0},300,(function(){1!=step?$(".build-my-system-wizard__back").show():$(".build-my-system-wizard__back").hide(),$('.build-my-system-wizard__step-content[data-step="'+step+'"] .step-number').text("Step "+progress_current_step),$('.build-my-system-wizard__step-content[data-step="'+step+'"] .step-progress').css("width",Math.floor(100*progress_current_step/progress_total_steps)+"%"),$(".build-my-system-wizard__step-content.active-step").hide().removeClass("active-step"),$('.build-my-system-wizard__step-content[data-step="'+step+'"]').css({opacity:0}).show().animate({opacity:1},300,(function(){$('.build-my-system-wizard__step-content[data-step="'+step+'"]').addClass("active-step"),!1!==previous_step&&$('.build-my-system-wizard__step-content[data-step="'+step+'"]').data("previous-step",previous_step)}))}))}function objectifyForm(formArray){for(var returnArray={},i=0;i<formArray.length;i++)returnArray[formArray[i].name]=formArray[i].value;return returnArray}function add_items_to_cart(data){data=objectifyForm(data),abodeCam2Qty=0,outdoorSmartCamQty=0,motionSensorQty=0,miniDoorSensorQty=0,wideAngleCamQty=0,abodeCamQty=0,waterLeakSensorQty=0,smokeAlarmQty=0,keypadQty=0,keyfobQty=0,gateway="security-kit",looking_for=data.looking_for,abodeCam2Qty+=parseInt(data.cameras_outside),abodeCam2Qty>0&&"yes"==data.camera_used_as_doorbell&&(abodeCam2Qty--,outdoorSmartCamQty++),abodeCam2Qty+=parseInt(data.cameras_inside),miniDoorSensorQty=parseInt(data.doors),miniDoorSensorQty+=parseInt(data.windows),miniDoorSensorQty-=1,miniDoorSensorQty=Math.min(miniDoorSensorQty,5),"wifi"==data.connection_type.trim()?gateway="iota":gateway="security-kit";var products=[];abodeCam2Qty>0&&products.push({product_id:4125,quantity:abodeCam2Qty}),outdoorSmartCamQty>0&&products.push({product_id:4145,quantity:outdoorSmartCamQty}),"security_cameras"!=looking_for&&(miniDoorSensorQty>0&&products.push({product_id:4152,quantity:miniDoorSensorQty}),"security-kit"==gateway&&products.push({product_id:4111,quantity:1}),"iota"==gateway&&products.push({product_id:4112,quantity:1})),"undefined"!=typeof hj&&hj("trigger","cart_builder"),"undefined"!=typeof Intercom&&Intercom("trackEvent","cart-built"),$("#intellipse-client").hide(),setTimeout((function(){$("._hj-widget-container div").css("z-index","90000000001")}),3e3),setTimeout((function(){cart_open(),cart_add_loader()}),10);var data={action:"bulk_product_add_to_cart",products:products,empty_cart:!0};function send_data_to_klaviyo(){var data={action:"build_my_system_wizard",data:$(".build-my-system-wizard__inner-steps").serialize()};$.post(ajax_object.ajax_url,data);var _learnq=_learnq||[];_learnq.push(["identify",{$email:$("#email-address").val(),$first_name:$("#first-name").val()}]),"function"==typeof ga&&(ga("require","ec"),ga("ec:setAction","checkout",{step:1,option:$('input[name="contact-method"]').val()}),ga("send","event","Cart Builder","Completed",$('input[name="contact-method"]').val())),"function"==typeof gtag&>ag("event","Completed",{event_category:"Cart Builder",event_label:$('input[name="contact-method"]').val()})}jQuery.post(php.ajax_url,data,(function(response){cart_update_contents_html(response),cart_remove_loader()})),send_data_to_klaviyo()}$(".build-my-system-wizard__step-options-option").click((function(e){e.preventDefault(),$(this).siblings().removeClass("checked"),$(this).addClass("checked"),$(this).parents(".build-my-system-wizard__step-content").find(".build-my-system-wizard__next-button").removeClass("build-my-system-wizard__next-button-disabled"),$(this).parents(".build-my-system-wizard__step-content").find("input").val($(this).data("value")),step_input_updated()})),$(".build-my-system-wizard__close").click((function(e){e.preventDefault(),$(".build-my-system-wizard").animate({opacity:0}
1,400,(function(){$(".build-my-system-wizard").hide()}))})),$(".build-my-system-wizard__step-options-counter-minus").click((function(){var number=parseInt($(this).siblings(".build-my-system-wizard__step-options-counter-number").text());number<=$(this).siblings(".build-my-system-wizard__step-options-counter-number").data("min")||($(this).siblings(".build-my-system-wizard__step-options-counter-number").text(number-1),$(this).parents(".build-my-system-wizard__step-content").find("input").val(number-1),step_input_updated())})),$(".build-my-system-wizard__step-options-counter-plus").click((function(){var number=parseInt($(this).siblings(".build-my-system-wizard__step-options-counter-number").text());number>100||($(this).siblings(".build-my-system-wizard__step-options-counter-number").text(number+1),$(this).parents(".build-my-system-wizard__step-content").find("input").val(number+1),step_input_updated())})),$(".build-my-system-wizard__step-options-yes-no-option").click((function(e){e.preventDefault(),$(this).siblings().removeClass("selected"),$(this).addClass("selected"),$(this).parents(".build-my-system-wizard__step-content").find(".build-my-system-wizard__next-button").removeClass("build-my-system-wizard__next-button-disabled"),$(this).parents(".build-my-system-wizard__step-content").find("input").val($(this).find("p").text().trim())})),$(".build-my-system-wizard__step-options-form input").on("change keyup",(function(e){e.preventDefault();var $this=$(this),empty=!1;if($(".build-my-system-wizard__step-options-form input:visible").each((function(){if(!$(this).val())return empty=!0,!1})),$(".wizard-contact-phone input").val()){var phone_regex=/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/im,phone_number=$(".wizard-contact-phone input").val();phone_regex.test(String(phone_number))||(empty=!0)}!1===empty?$this.parents(".build-my-system-wizard__step-content").find(".build-my-system-wizard__next-button").removeClass("build-my-system-wizard__next-button-disabled"):$this.parents(".build-my-system-wizard__step-content").find(".build-my-system-wizard__next-button").addClass("build-my-system-wizard__next-button-disabled")})),$(".build-my-system-wizard__next-button").click((function(e){if(e.preventDefault(),!$(this).hasClass("build-my-system-wizard__next-button-disabled")&&!$(this).hasClass("build-my-system-wizard__final_step")){var step=$(".build-my-system-wizard__step-content.active-step").data("step"),next_step=$(this).data("next-step");if(7==step&&"none"==$('input[name="contact-method"]').val())return add_items_to_cart($(".build-my-system-wizard__inner-steps").serializeArray()),$(".build-my-system-wizard").animate({opacity:0}
1,400,(function(){$(".build-my-system-wizard").hide()})),!1;7==step&&"phone"==$('input[name="contact-method"]').val()?($(".wizard-contact-phone").show(),$(".wizard-contact-phone input").prop("required",!0)):($(".wizard-contact-phone").hide(),$(".wizard-contact-phone input").prop("required",!1)),"function"==typeof ga&&ga("send","event","Cart Builder","Step"+step),"function"==typeof gtag&>ag("event","Step"+step,{event_category:"Cart Builder"}),progress_current_step++,build_my_wizard_step(next_step,step)}})),$('.build-my-system-wizard__step-content[data-step="9"] .build-my-system-wizard__next-button').click((function(e){e.preventDefault(),$(this).hasClass("build-my-system-wizard__next-button-disabled")||$("#build-my-system-wizard__submit").click()})),$(".build-my-system-wizard__back").click((function(){var step;1!=$(".build-my-system-wizard__step-content.active-step").data("step")&&(progress_current_step--,build_my_wizard_step($(".build-my-system-wizard__step-content.active-step").data("previous-step"),!1))})),$(".build-my-system-wizard__final_step").click((function(e){var win;(e.preventDefault(),$('.build-my-system-wizard__step-content[data-step="9"] .build-my-system-wizard__next-button').text("Please wait..."),"none"==$('input[name="contact-method"]').val())?(add_items_to_cart($(".build-my-system-wizard__inner-steps").serializeArray()),$(".build-my-system-wizard").animate({opacity:0}
1,400,(function(){$(".build-my-system-wizard").hide()}))):(add_items_to_cart($(".build-my-system-wizard__inner-steps").serializeArray()),$(".build-my-system-wizard__step-content").hide(),$(".build-my-system-wizard__back").hide(),$(".build-my-system-wizard__step-thank-you").show(),center_wizard(),"phone"==$('input[name="contact-method"]').val()&&window.open("https://calendly.com/abode-sales/test","_blank").focus())}))}));
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.