PageSourceSearch

https://www.sportcadillac.com/resources/taggbaa/chunks/asc-listener.9806562d652b4b2bc3e4.js

js sportcadillac.com collected 2026-09-26 07:52:45 UTC 11,570 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaggbaa=self.webpackChunktaggbaa||[]).push([[483],{7873:function(e,t,n){n.r(t),n.d(t,{AscListener:function(){return s}});var i=n(1689),_=n(8754),o=n(5721),m=n(8255),r=n(2221);class s{constructor(e){this.isGtagLoaded=!1,this._environment=i.f.DEFAULT_ENVIRONMENT,this._formSubmissionToggle=!1,this._nextgenStore=e}async initialize(e){this._formSubmissionToggle=e;const t=this._nextgenStore.getStoreState(),n=[...t?.measurement_ids_non_rollup??[]];if(this._environment=t?.global?.environment??i.f.DEFAULT_ENVIRONMENT,this._measurementIds=n.join(","),"function"!=typeof window.gtag)for(const e of n)try{await(0,_.nT)(e)}catch(t){console.warn(`Error loading gtag script for: ${e}`,t),n.splice(n.indexOf(e),1)}(0,_.bZ)(),this.isGtagLoaded=!0,(0,_.Ve)(n,this._environment),window.taggingConsentDone?(this._handleExistingEvents(),this._nextgenStore.subscribe(()=>{this._handleFutureEvents()})):window.addEventListener("do.taggingConsentDelayDone",()=>{this._handleExistingEvents(),this._nextgenStore.subscribe(()=>{this._handleFutureEvents()})})}_sendEvent(e,t){"asc_form_submission"!==e?(0,_.X8)(this._environment,e,t,this._measurementIds):this._sendFormSubmission(t)}_sendFormSubmission(e){const t=300*(this._measurementIds?.split(",").length||1);if(setTimeout(()=>{(0,_.X8)(this._environment,"asc_form_submission",e,this._measurementIds)},t),window.tagToggles?.DO53100_FormSubmissionMigration){const n=this._mapAscDepartment(e.department);setTimeout(()=>{(0,_.X8)(this._environment,`asc_form_submission_${n}`,{...e},this._measurementIds)},2*t)}}_sendAscPageView(e,t){if(this._setupAscDataLayer(e),!this.isGtagLoaded)return;const n=t?.do||{},i=(0,r.Ek)(n);window.gtag?.("set",{user_properties:(0,r.a1)(n)}),this._sendEvent("asc_pageview",i),"item"!==i.page_type&&"itemlist"!==i.page_type||this._sendEvent(`asc_${i.page_type}_pageview`,i)}_handleExistingEvents(){const e=this._nextgenStore.getStoreState(),t=e?.events||[];for(const n of t)"do.init"===n.event?this._sendAscPageView(e,n):this._handleFutureEvents(n)}_handleFutureEvents(e){const t=this._nextgenStore.getStoreState(),n=e||t?.latest,_=n.event||"",o=n.do||{},m=t.datalayer||{},s={"do.click_to_call":r.Pj,"do.cta_interaction":r.CF,"do.element_configuration":r.wm,"do.element_displayed":r.Cj,"do.form_engagement":r.PN,"do.form_submission":r.CF,"do.media_interaction":r.sx,"do.menu_interaction":r.Xv,"do.nav_interaction":r.R5,"do.special_offer":r.Le,"do.retail_process":r.Ow,"do.lead_submitted":r.aj,"do.comm_engagement":r.jy,"do.comm_submission":r.kB};if(i.k.includes(_)||this._updateAscDatalayerEvents(this._transformEventName(_)),!this.isGtagLoaded||!s[_])return;if("do.comm_submission"===_){const e=this._mapAscDepartment(o.department),t=s["do.comm_submission"](o,m);return this._sendEvent("asc_comm_submission",t),void this._sendEvent(`asc_comm_submission_${e}`,t)}if("do.lead_submitted"===_)return void("-1"!=`${o.submission_id}`&&this._handleLeadSubmitted(t,s[_],o));if("do.form_submission"===_)return void this._sendEvent("asc_cta_interaction",s["do.cta_interaction"](o,m));if("do.cta_interaction"===_&&"retail_process"===o.context)return this._sendEvent("asc_retail_process",s["do.retail_process"](o,m)),void this._sendEvent("asc_cta_interaction",s["do.retail_process"](o,m));const a=s[_](o,m);this._sendEvent(this._transformEventName(_),a)}_handleLeadSubmitted(e,t,n){const i=e.datalayer||{},_=this._formSubmissionToggle?t(n,n):t(i,i);this._sendEvent("asc_form_submission",_)}applyResolvedUserId(){const e=window.asc_datalayer;e&&!e.user_id&&(e.user_id=(0,o.H)())}_transformEventName(e){return e.replace(/^do\./,"asc_")}_updateAscDatalayerEvents(e){window.asc_datalayer?.events.push(e)}_setupAscDataLayer(e){const t=e.global;window.asc_datalayer={affiliation:m.A.formatString(t.affiliation),currency:"usd",events:[],items:e.items,language:"en",measurement_ids:[...e.measurement_ids_rollup,...e.measurement_ids_non_rollup],oem_brand:m.A.formatString(t.oem_brand),oem_code:m.A.formatString(t.oem_code),oem_page_type:m.A.formatString(e.pages?.[0]?.oem_page_type),page_type:m.A.formatString(e.pages?.[0]?.page_type),platform_custom:"",store_name:m.A.formatString(t.store_name),user_type:m.A.formatString(t.user_type),website_id:m.A.formatString(t.website_id),website_industry:m.A.formatString(t.website_industry),user_id:m.A.formatString(t.user_id)||(0,o.H)(),secondary_id:m.A.formatString(t.secondary_id),secondary_id_provider:m.A.formatString(t.secondary_id_provider)}}_mapAscDepartment(e){let t="other";return/parts/i.test(e)?t="parts":"sales"===e?t="sales":"service"===e?t="service":"service_appt"===e?t="service_appt":"ev_service"===e&&(t="ev_service"),t}}},2221:function(e,t,n){n.d(t,{CF:function(){return a},Cj:function(){return c},Ek:function(){return m},Le:function(){return v},Ow:function(){return g},PN:function(){return d},Pj:function(){return s}
1,R5:function(){return y},Xv:function(){return f},a1:function(){return r},aj:function(){return u},jy:function(){return b},kB:function(){return w},sx:function(){return p},wm:function(){return l}});var i=n(1689),_=n(5897);const o=(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,_.Wr)({...o(e,e),item_results:e.item_results??"",error_code:e.error_code??""},e),r=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??""}),s=(e,t)=>(0,_.Wr)({...o(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),a=(e,t)=>(0,_.Wr)({...o(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),l=(e,t)=>({...o(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)??""}),c=(e,t)=>({...o(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,_.Wr)({...o(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),u=(e,t)=>(0,_.Wr)({...o(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),p=(e,t)=>(0,_.Wr)({...o(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),f=(e,t)=>({...o(t,e),event_action:e.event_action??"",element_text:e.element_text??"",element_type:e.element_type??"",element_subtype:e.element_subtype??""}),y=(e,t)=>({...o(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??""}),g=(e,t)=>(0,_.Wr)({...o(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),v=(e,t)=>({...o(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??""}),h=(e,t)=>({...o(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??""}),b=(e,t)=>(0,_.Wr)(h(e,t),e),w=(e,t)=>(0,_.Wr)({...h(e,t),submission_id:e.submission_id??"",flow_name:e.flow_name??""},e)},5897:function(e,t,n){n.d(t,{Wr:function(){return l},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"))??""},m=["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"],r=["item_body_type","item_color_interior","item_engine","item_fuel_efficiency_city","item_fuel_efficiency_highway","item_mileage","item_model_code","item_transmission"],s=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)},a=(e,t)=>{const n={};for(const i of m){if(Object.keys(n).length>=t)break;const _=o[i](e);s(_)&&(n[i]=_)}return n},l=(e,t)=>({...e,...a(t,25-Object.keys(e).length)}),c=e=>{const t={};for(const n of[...m,...r])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.