1"use strict";(self.webpackChunktaggbaa=self.webpackChunktaggbaa||[]).push([[899],{8879:function(e,t,n){n.r(t),n.d(t,{NextgenListener:function(){return l}});var i=n(1689),_=n(8754),o=n(2221),r=n(5897);class m{static getBase(e,t){return{event_owner:e.event_owner??i.f.DEFAULT_EVENT_OWNER,page_type:e.page_type??"",product_name:t.product_name??i.f.DEFAULT_PRODUCT_NAME}}static getNgLocation(e){return{card_name:e.card_name??"",event_location:e.event_location??""}}static getNgPromotion(e){return{promotion_name:e.promotion_name??"",promotion_id:e.promotion_id??"",promotion_type:e.promotion_type??""}}static MapToUserProperties(e){return o.a1(e)}static MapToPageView(e){return{...o.Ek(e),...(0,r.i7)(e),event_action:e.event_action??"",event_action_result:e.event_action_result??"",page_layout:e.page_layout??"",page_template_style:e.page_template_style??""}}static MapToClickToCall(e,t){return{...o.Pj(e,t),...m.getNgLocation(e),...(0,r.i7)(e),element_color:e.element_color??"",element_position:e.element_position??"",element_text:e.element_text??"",element_type:e.element_type??"",event_action:e.event_action??"",event_action_result:e.event_action_result??"",item_recommended:e.item_recommended??""}}static MapToCtaInteraction(e,t){return{...o.CF(e,t),...m.getNgLocation(e),...(0,r.i7)(e),...m.getNgPromotion(e),audience:e.audience??"",element_title:e.element_title??"",item_recommended:e.item_recommended??""}}static MapToElementConfiguration(e,t){return{...o.wm(e,t),...m.getNgLocation(e),link_url:e.link_url??""}}static MapToElementDisplay(e,t){return{...o.Cj(e,t),element_type:e.element_type??""}}static MapToFilterChange(e,t){return{...m.getBase(t,e),...m.getNgLocation(e),element_value:e.element_value??"",filter_action:e.filter_action??"",itemlist_filter:e.itemlist_filter??""}}static MapToFilterSuccess(e,t){return{...m.getBase(t,e),...(0,r.i7)(e),filter_body_type:e.filter_body_type??"",filter_category:e.filter_category??"",filter_color:e.filter_color??"",filter_color_interior:e.filter_color_interior??"",filter_condition:e.filter_condition??"",filter_drivetrain:e.filter_drivetrain??"",filter_engine:e.filter_engine??"",filter_fuel_efficiency_city:e.filter_fuel_efficiency_city??"",filter_fuel_efficiency_highway:e.filter_fuel_efficiency_highway??"",filter_fuel_type:e.filter_fuel_type??"",filter_id:e.filter_id??"",filter_inventory_date:e.filter_inventory_date??"",filter_location:e.filter_location??"",filter_make:e.filter_make??"",filter_mileage:e.filter_mileage??"",filter_model:e.filter_model??"",filter_model_code:e.filter_model_code??"",filter_number:e.filter_number??"",filter_odometer:e.filter_odometer??"",filter_payment:e.filter_payment??"",filter_price:e.filter_price??"",filter_recommended:e.filter_recommended??"",filter_status:e.filter_status??"",filter_transmission:e.filter_transmission??"",filter_type:e.filter_type??"",filter_variant:e.filter_variant??"",filter_year:e.filter_year??"",total_results:e.total_results??""}}static MapToFormEngagement(e,t){return{...o.PN(e,t),...m.getNgLocation(e),...(0,r.i7)(e),element_type:e.element_type??"",event_action:e.event_action??"",event_action_result:e.event_action_result??""}}static MapToFormSubmission(e,t,n){return n?{...o.aj(e,e),...m.getNgLocation(e),...(0,r.i7)(e),comm_outcome:e.comm_outcome??"",element_type:e.element_type??"",event_action:e.event_action??"",event_action_result:e.event_action_result??"",item_recommended:e.item_recommended??""}:{...o.aj(t,t),...m.getNgLocation(t),...(0,r.i7)(t),comm_outcome:t.comm_outcome??"",element_type:t.element_type??"",event_action:t.event_action??"",event_action_result:t.event_action_result??"",item_recommended:t.item_recommended??""}}static MapToMediaInteraction(e,t){return{...o.sx(e,t),...m.getNgLocation(e),...(0,r.i7)(e),element_order:e.element_order??"",element_subtype:e.element_subtype??"",element_type:e.element_type??"",item_recommended:e.item_recommended??"",media_subtype:e.media_subtype??""}}static MapToMenuInteraction(e,t){return{...o.Xv(e,t),...m.getNgLocation(e),event_action_result:e.event_action_result??"",link_url:e.link_url??"",element_color:e.element_c
1olor??"",element_position:e.element_position??"",element_order:e.element_order??"",element_title:e.element_title??""}}static MapToNavInteraction(e,t){return o.R5(e,t)}static MapToRetailProcess(e,t){return{...o.Ow(e,t),...m.getNgLocation(e),...(0,r.i7)(e),department:e.department??"",element_type:e.element_type??""}}static MapToSpecialOffer(e,t){return{...o.Le(e,t),...m.getNgLocation(e),...m.getNgPromotion(e),event_action:e.event_action??"",event_action_result:e.event_action_result??"",flow_name:e.flow_name??"",flow_stage:e.flow_stage??"",element_title:e.element_title??"",element_type:e.element_type??"",audience:e.audience??""}}static MapToCommEngagement(e,t){return{...o.jy(e,t),...(0,r.i7)(e)}}static MapToCommSubmission(e,t){return{...o.kB(e,t),...(0,r.i7)(e),element_type:e.element_type??""}}}var a=n(8970);class l{constructor(e,t){this.isGtagLoaded=!1,this._environment=i.f.DEFAULT_ENVIRONMENT,this._formSubmissionToggle=!1,this._nextgenStore=e,this._logger=t}async initialize(e){this._formSubmissionToggle=e;const t=this._nextgenStore.getStoreState(),n=[...t?.measurement_ids_rollup??[]];if(this._environment=t?.global?.environment??i.f.DEFAULT_ENVIRONMENT,this._measurementIds=n.join(","),!this.isGtagLoaded)if(0!==n.length){if("function"!=typeof window.gtag){for(const e of n)try{await(0,_.nT)(e);break}catch(t){this._logger.warn(`Error loading gtag script for: ${e}`,t),n.splice(n.indexOf(e),1)}(0,_.bZ)()}this.isGtagLoaded=!0,(0,_.Ve)(n,this._environment,!0),window.taggingConsentDone?(this._handleExistingEvents(),this._nextgenStore.subscribe(()=>{this._handleFutureEvents()})):window.addEventListener("do.taggingConsentDelayDone",()=>{this._handleExistingEvents(),this._nextgenStore.subscribe(()=>{this._handleFutureEvents()})})}else this._logger.error(a.h.App,"Rollup measurement id is not available.")}_handleExistingEvents(){const e=this._nextgenStore.getStoreState(),t=e?.events||[];for(const e of t)"do.init"===e.event?this._sendAscPageView(e):this._handleFutureEvents(e)}_sendEvent(e,t){(0,_.X8)(this._environment,e,t,this._measurementIds,!0)}_sendAscPageView(e){if(!this.isGtagLoaded)return;const t=e?.do||{};window.gtag?.("set",{user_properties:m.MapToUserProperties(t)}),this._sendEvent("asc_pageview",m.MapToPageView(t))}_handleFutureEvents(e){const t=this._nextgenStore.getStoreState(),n=e||t?.latest,_=n.event||"",o=n.do||{},r=t.datalayer||{},a=i.k.includes(_)?_.replace(/^do\./,""):_.replace(/^do\./,"asc_"),l={"do.click_to_call":m.MapToClickToCall,"do.cta_interaction":m.MapToCtaInteraction,"do.element_configuration":m.MapToElementConfiguration,"do.element_displayed":m.MapToElementDisplay,"do.filter_change":m.MapToFilterChange,"do.filter_success":m.MapToFilterSuccess,"do.form_engagement":m.MapToFormEngagement,"do.form_submission":m.MapToCtaInteraction,"do.lead_submitted":m.MapToFormSubmission,"do.media_interaction":m.MapToMediaInteraction,"do.menu_interaction":m.MapToMenuInteraction,"do.nav_interaction":m.MapToNavInteraction,"do.popup_open":m.MapToPageView,"do.retail_process":m.MapToRetailProcess,"do.special_offer":m.MapToSpecialOffer,"do.comm_engagement":m.MapToCommEngagement,"do.comm_submission":m.MapToCommSubmission};if(this.isGtagLoaded&&l[_])if("do.lead_submitted"!==_){if("do.form_submission"!==_)return"do.cta_interaction"===_&&"retail_process"===r.context?(this._sendEvent("asc_retail_process",l["do.retail_process"](o,r)),void this._sendEvent("asc_cta_interaction",l["do.retail_process"](o,r))):void("do.popup_open"!==_?this._sendEvent(a,l[_](o,r)):this._sendEvent("asc_pageview",l["do.popup_open"](o,r)));this._sendEvent("asc_cta_interaction",l["do.cta_interaction"](o,r))}else{if("-1"==`${r.submission_id}`)return;this._sendEvent("asc_form_submission",l["do.lead_submitted"](o,r,this._formSubmissionToggle))}}}},2221:function(e,t,n){n.d(t,{CF:function(){return s},Cj:function(){return u},Ek:function(){return m},Le:function(){return h},Ow:function(){return v},PN:function(){return d},Pj:function(){return l},R5:function(){return g},Xv:function(){return y},a1:function(){return a},aj:function(){return p},jy:function(){return w},kB:function(){return T},sx:function(){return f},wm:function(){return c}});var i=n(1689),_=n(7543),o=n(5897);const r=(e,t)=>({event_owner:e.event_owner??i.f.DEFAULT_EVENT_OWNER,page_type:e.page_type??"",product_name:t.product_name??i.f.DEFAULT_PRODUCT_NAME}),m=e=>(0,o.Wr)({...r(e,e),item_results:e.item_results??"",error_code:e.error_code??""},e),a=e=>({oem_code:e.oem_code??"",user_type:e.user_type??"",store_name:e.store_name??"",oem_brand:e.oem_brand??"",website_id:e.website_id??"",website_industry:e.website_industry??"",user_id:e.user_id??"",secondary_id:e.secondary_id??"",secondary_id_provider:e.secondary_id_provider??"",do_user_id:e.do_user_id??"",...(0,_.he)()}),l=(e,t)=>
1(0,o.Wr)({...r(t,e),affiliation:e.affiliation??"",comm_phone_number:e.comm_phone_number??"",comm_type:e.comm_type??"",department:e.department??"",element_type:e.element_type??""},e),s=(e,t)=>(0,o.Wr)({...r(t,e),affiliation:e.affiliation??"",element_color:e.element_color??"",element_order:e.element_order??"",element_position:e.element_position??"",element_subtype:e.element_subtype??"",element_text:e.element_text??"",element_type:e.element_type??"",event_action:e.event_action??"",event_action_result:e.event_action_result??"",link_url:e.link_url??""},e),c=(e,t)=>({...r(t,e),element_color:e.element_color??"",element_order:e.element_order??"",element_position:e.element_position??"",element_state:e.element_state??"",element_subtype:e.element_subtype??"",element_text:e.element_text??"",element_title:e.element_title??"",element_type:e.element_type??"",element_value:e.element_value??"",event_action:e.event_action??"",event_action_result:e.event_action_result??"",item_id:(e.item_id||e.item_id_list)??""}),u=(e,t)=>({...r(t,e),department:e.department??"",element_position:e.element_position??"",event_action:e.event_action??"",flow_name:e.flow_name??"",flow_outcome:e.flow_outcome??"",flow_stage:e.flow_stage??"",promotion_name:e.promotion_name??"",element_type:e.element_type??""}),d=(e,t)=>(0,o.Wr)({...r(t,e),comm_status:e.comm_status??"",comm_type:e.comm_type??"",department:e.department??"",element_text:e.element_text??"",form_name:e.form_name??"",form_type:e.form_type??"",element_type:e.element_type??""},e),p=(e,t)=>(0,o.Wr)({...r(t,e),comm_status:e.comm_status??"",comm_type:e.comm_type??"",department:e.department??"",element_text:e.element_text??"",form_name:e.form_name??"",form_type:e.form_type??"",comm_outcome:e.comm_outcome??"",submission_id:e.submission_id??"",flow_name:e.flow_name??"",element_type:e.element_type??""},e),f=(e,t)=>(0,o.Wr)({...r(t,e),affiliation:e.affiliation??"",creative_name:e.element_text??"",element_order:e.element_order??"",element_position:e.element_position??"",element_text:e.element_text??"",event_action:e.event_action??"",event_action_result:e.event_action_result??"",link_url:e.link_url??"",media_type:e.media_type??"",element_type:e.element_type??""},e),y=(e,t)=>({...r(t,e),event_action:e.event_action??"",element_text:e.element_text??"",element_type:e.element_type??"",element_subtype:e.element_subtype??""}),g=(e,t)=>({...r(t,e),element_color:e.element_color??"",element_position:e.element_position??"",element_subtype:e.element_subtype??"",element_text:e.element_text??"",element_type:e.element_type??"",event_action:e.event_action??"",event_action_result:e.event_action_result??"",link_url:e.link_url??""}),v=(e,t)=>(0,o.Wr)({...r(t,e),element_title:e.element_title??"",element_value:e.element_value??"",event_action:e.event_action??"",event_action_result:e.event_action_result??"",flow_name:e.flow_name??"",flow_outcome:e.flow_outcome??"",flow_stage:e.flow_stage??"",element_type:e.element_type??""},e),h=(e,t)=>({...r(t,e),department:e.department??"",element_position:e.element_position??"",flow_outcome:e.flow_outcome??"",promotion_name:e.promotion_name??"",element_type:e.element_type??""}),b=(e,t)=>({...r(t,e),comm_type:e.comm_type??"",affiliation:e.affiliation??"",element_position:e.element_position??"",department:e.department??"",affiliation_id:e.affiliation_id??"",comm_status:e.comm_status??"",element_type:e.element_type??""}),w=(e,t)=>(0,o.Wr)(b(e,t),e),T=(e,t)=>(0,o.Wr)({...b(e,t),submission_id:e.submission_id??"",flow_name:e.flow_name??""},e)},5897:function(e,t,n){n.d(t,{Wr:function(){return s},i7:function(){return c}});const i=(e,t)=>{const n=`${t}_min`,i=`${t}_max`;return e[n]&&e[i]?`${e[n]}-${e[i]}`:""},_=e=>t=>(t[e]||t[`${e}_list`])??"",o={item_battery_life_percent:_("item_battery_life_percent"),item_body_type:_("item_body_type"),item_category:_("item_category"),item_charge_duration_level1:_("item_charge_duration_level1"),item_charge_duration_level2:_("item_charge_duration_level2"),item_charge_duration_level3:_("item_charge_duration_level3"),item_color:_("item_color"),item_color_interior:_("item_color_interior"),item_condition:e=>(e.item_condition||e.item_condition_list)?.toLowerCase()??"",item_drivetrain:_("item_drivetrain"),item_engine:_("item_engine"),item_fuel_efficiency_city:_("item_fuel_efficiency_city"),item_fuel_efficiency_highway:_("item_fuel_efficiency_highway"),item_fuel_type:_("item_fuel_type"),item_id:_("item_id"),item_inventory_date:e=>(e.item_inventory_date||i(e,"item_inventory_date"))??"",item_location:_("item_location"),item_make:_("item_make"),item_mileage:_("item_mileage"),item_model:_("item_model"),item_model_code:_("item_model_code"),item_number:_("item_number"),item_odometer:_("item_odometer"),item_payment:_("item_payment"),item_price:e=>(e.item_price||i(e,"price"))??"",item_range:_("item_range"),item_status:_("item_status"),item_transmission:_("item_transmission"),item_type:_("item_type"),item_variant:_("item_variant"),item_year:e=>(e.item_year||i(e,"item_year"))??""},r=["item_id","item_number","item_category","item_make","item_model","item_color","item_year","item_condition","item_type","item_price","item_variant","item_status","item_fuel_type","item_odometer","item_range","item_inventory_date","item_location","item_battery_life_percent","item_charge_duration_level1","item_charge_duration_level2","item_charge_duration_level3","item_payment","item_drivetrain"],m=["item_body_type","item_color_interior","item_engine","item_fuel_efficiency_city","item_fuel_efficiency_highway","item_mileage","item_model_code","item_transmission"],a=e=>
1{if("number"==typeof e)return Number.isFinite(e)&&0!==e;if("string"!=typeof e)return!1;const t=e.trim();return""!==t&&0!==Number(t)},l=(e,t)=>{const n={};for(const i of r){if(Object.keys(n).length>=t)break;const _=o[i](e);a(_)&&(n[i]=_)}return n},s=(e,t)=>({...e,...l(t,25-Object.keys(e).length)}),c=e=>{const t={};for(const n of[...r,...m])t[n]=o[n](e);return 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.