"use strict";window.isGAEnabled=function(){return"function"==typeof window.createEventJs},window.execIfjQueryIsAvailable(function(e){function n(e){return window.gaObjects&&e in window.gaObjects}function o(e){return window.gaObjects[e]}function t(){e(document).on("SearchByFeatures:ShowMoreFeatures",function(){window.createEventJs("SearchbyFeaturesMod","ShowMoreFeatures","MoreFeatures")}),e(document).on("SearchByFeatures:FeatureSelect",function(e,n){window.createEventJs("SearchbyFeaturesMod","FeatureSelect",n.featureName)})}function i(){e(document).on("Coupon:View Coupon:Print",function(t,i){var a=t.type.split(":")[1],c=i&&i.isCouponShownInPopup,_=c?"CouponsFeaturedPopup":"CouponsList";n(_)&&e.each(o(_),function(e,n){createEventJs("Coupon",a,{CouponObject:n})})})}function a(){var n="IncentivesMod",o={_mod_vehicle_price_opens_slide_out_panel:"ViewIncentives",_mod_vehicle_price_cash_open:"CashOpen",_mod_vehicle_price_cash_close:"CashClose",_mod_vehicle_price_cash_details:"CashDetails",_mod_vehicle_price_conditional_open:"ConditionalOpen",_mod_vehicle_price_conditional_close:"ConditionalClose",_mod_vehicle_price_conditional_details:"ConditionalDetails",_mod_vehicle_price_dealer_open:"DealerOpen",_mod_vehicle_price_dealer_close:"DealerClose",_mod_vehicle_price_dealer_details:"DealerDetails"};e(document).on(Object.keys(o).join(" "),function(e){var t=o[e.type];window.createEventJs(n,t)})}function c(){var n="AnnouncementBar",o={_mod_promotions_announcement_bar_display:"View",_mod_promotions_announcement_bar_click:"Click"};e(document).on(Object.keys(o).join(" "),function(t){var i=o[t.type],a=e(".mod-promotions-responsive2"),c=window.dealerfireExtensionSettings[a.data("extension-id")],_=void 0!==c?c.promotionName:"";_&&window.createEventJs(n,i,_)})}function _(){var n=e(document),o="PaymentConfig";n.on("_mod_customize_payment_show_panel",function(){var e=window.gaDataLayer.pageType?window.gaDataLayer.pageType:"Undefined";window.createEventJs(o,"CustomizePayment",e)}),n.on("_mod_customize_payment_apr_changed",function(e,n){n=n.replace(/ /g,"")+"Credit",window.createEventJs(o,"AdjustCredit",n)}),n.on("_mod_customize_payment_term_changed",function(e,n,t){var i=t?"AdjustAdvertisedTermLength":"AdjustDealerTermLength";window.createEventJs(o,i,n+" months")}),n.on("_mod_customize_payment_down_payment_changed",function(e,n){var t=5e3;n=Math.round(n/t)*t,window.createEventJs(o,"AdjustDown",n)}),n.on("_mod_customize_payment_changed",function(){window.createEventJs(o,"UpdatePricing",window.location.href)}),n.on("_mod_customize_payment_save_open_form",function(){window.createEventJs(o,"LaunchSavePayment",window.location.href)}),n.on("_mod_customize_payment_show_panel",function(){window.createEventJs(o,"click","LaunchFinanceCalculatorMod")}),n.on("_mod_customize_payment_rebates_selected",function(e,n){window.createEventJs(o,"RebatesSelection",n)}),n.on("_mod_customize_payment_launch_save_payment",function(){window.createEventJs(o,"LaunchSavePayment")}),n.on("_mod_customize_payment_save_payment_submit",function(e,n){window.createEventJs(o,"SubmitSavePayment",n)})}e(document).ready(function(){window.isGAEnabled()&&(a(),t(),i(),c(),_())})});