1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9785],{5224:(e,a,t)=>{"use strict";t.d(a,{AY:()=>c,E8:()=>m,UX:()=>l,Zt:()=>n,uG:()=>r});var o=t(16770);let c=e=>({eventName:"compare-cta-click",type:o.HH.ADOBE,data:{event:{name:"click",category:"Compare",action:"Compare Cars",label:"Clickthrough",value:e.map(e=>`${e.vehicleTitle}`).join(",")}}}),l=(e,a,t)=>({eventName:"compare-vehicle-removal",type:o.HH.ADOBE,data:{event:{name:"click",category:"Compare",action:"Remove Vehicle - compare bar",label:a,type:e,value:t.length-1}}}),r=e=>({eventName:"compare-bar-drawer-interaction",type:o.HH.ADOBE,data:{event:{name:"click",category:"Compare",action:e?"Open Drawer":"Close Drawer",label:"",type:"",value:""}}}),n=e=>({eventName:"compare-max-number-of-vehicles",type:o.HH.ADOBE,data:{event:{name:"click",category:"Compare",action:"Max cars alert",value:e,type:"",label:""}}}),m=({action:e,make:a,model:t,value:c})=>({eventName:"click-compare-vehicle",type:o.HH.ADOBE,data:{event:{name:"click",category:"Compare",action:e,type:a,label:t,value:c}}})},46089:e=>{e.exports={compareToggleButton:"compare-toggle-button_compareToggleButton__rXzqb",compareToggleButtonSaved:"compare-toggle-button_compareToggleButtonSaved__bDFsf",compareToggleButtonIcon:"compare-toggle-button_compareToggleButtonIcon__7Z7dE",compareToggleButtonLabel:"compare-toggle-button_compareToggleButtonLabel__uD_BU",compareText:"compare-toggle-button_compareText__zcDGR"}},59785:(e,a,t)=>{"use strict";t.r(a),t.d(a,{CompareToggleButton:()=>v});var o=t(60072),c=t(86419),l=t.n(c),r=t(31686),n=t(46089),m=t.n(n),i=t(16770),p=t(5224),g=t(8530);let v=({vehicleInventoryId:e,make:a,model:t,modelYear:c,thumbnailUrl:n,condition:v})=>{let{removeVehicle:d,addVehicle:s,comparisonVehicles:u,setShowModal:h,maxNumberOfItems:b,customerHasActiveOrder:_}=(0,r.E5)(),{trackEvent:B}=(0,i.st)(),T=u.some(a=>a.vehicleId===e),k=(e,a,t,o,c)=>{B((0,p.E8)({action:o,make:e,model:a,value:c})),g.L.addAction("Add vehicles for comparison clicked",{service:"compare",squad:"product-detail",vehicle:{vehicleInventoryId:t,make:e,model:a}})};return _?null:(0,o.jsxs)("button",{type:"button","aria-label":T?"Remove from the compare list":"Add to the compare list",onClick:()=>{let o=u.length,l={vehicleId:e,vehicleTitle:`${c||"NEW"} ${a} ${t}`,vehicleImage:n,vehicleMake:a,vehicleModel:t,vehicleCondition:v};if(o>=b&&!T)return B((0,p.Zt)(b)),g.L.addAction("Showing max compare vehicles modal",{service:"compare",squad:"product-detail",maxNumberOfVehicles:b}),h(!0);T?(d(e),k(a,t,e,"Remove Vehicle",o-1)):(s(l),k(a,t,e,"Add Vehicle",o+1))},className:l()(m().compareToggleButton,{[m().compareToggleButtonSaved]:T}),children:[(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 16 16",className:m().compareToggleButtonIcon,"aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M14 13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h9a1 1 0 1 0 0-2H3a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8a1 1 0 1 0-2 0v5Z"}),(0,o.jsx)("path",{d:"M4.262 7.452a.75.75 0 1 0-1.024 1.096l1.024-1.096ZM7.5 11.5l-.512.548a.75.75 0 0 0 1.059-.034L7.5 11.5Zm8.297-7.736a.75.75 0 0 0-1.094-1.028l1.094 1.028ZM3.238 8.548l3.75 3.5 1.024-1.096-3.75-3.5-1.024 1.096Zm4.809 3.466 7.75-8.25-1.094-1.028-7.75 8.25 1.094 1.027Z"})]}),(0,o.jsx)("span",{className:m().compareText,children:"Compare"})]})}}}]); 2//# sourceMappingURL=9785.a1f12adefe689f4e.js.map
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.