1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b7fa3148-8b78-5f7d-83b7-e3ee48acdd9a")}catch(e){}}(); 3import {r as rt$1,Z,p as p$3}from'./chunk-CdKzc91k.js';import {R as R$1,M}from'./chunk-v8D93Ocx.js';import {f}from'./chunk-BHQ9xQUT.js';import {f as f$1}from'./chunk-BhLb2ICz.js';import {y as ye,f as fe,E as Ee}from'./chunk-Bdkj6ng7.js';import {a0 as Bv,a1 as Oc,a2 as ti$1,a5 as Lo,cQ as w,z as z_,cp as Wt$2,aV as On,n as Bs,b1 as Qv,c8 as LN,q as _d,b3 as FM,D as aC,G as my,I as Ie,l as lM,d as uM,c3 as jy,iA as _c,iB as _r,p as cN,bU as Ln,b4 as CN,O as Od,cv as ze,cw as Rn,kU as Pn,c as ze$1,ag as q,dg as t,hi as tu,aS as CW,bV as kn,ad as Un,o as _y,ae as NN,af as AN,dv as xy,gA as _o,dw as kM,dx as LM,hp as Ny,g$ as yo,eB as Z_,T as TM,N as NM,e0 as Fy,de as mW,hm as _W,s as gy,b0 as xd,b2 as ma,u$ as xt$1,nf as y,nc as G$2,cA as mt$1,at as xr,c4 as jf,iP as Xf,iQ as Ff,eH as YI,iR as oc,ak as Vf,ah as be,eF as Uf,F as Fp,t as jp,ho as gN,ca as Ey,cE as Q_,dZ as g,ed as p,e as I,cz as P,aJ as G$3,bf as F,Z as Zt$1,cC as R$2,i as z,y as y$1,l_ as fs,d8 as H_,d9 as L_,ec as Nn,h2 as F$1,h3 as G$4,h6 as E,K as hy,P as Ig}from'./main-BUIS7oZx.js';import {A}from'./chunk-D3tMlRHq.js';import {w as we,_ as _e$1,a as ae$1}from'./chunk-DOYC6iBI.js';import {f as f$2,p as p$2,_,i,X,K,w as w$1}from'./chunk-BmQrgbtq.js';import {P as Pe,A as Ae}from'./chunk-SSr0DL-s.js';import {C}from'./chunk-CxM66EUF.js';import {p as p$1}from'./chunk-BC_3mrgX.js';import {S}from'./chunk-COe3A54M.js';import {n as nt$1}from'./toggle-watchlist-button.component-baNRg3ad.js';import'./chunk-C49UCyLd.js';import'./chunk-DcQB5gsr.js';import'./chunk-yA24kvZF.js';import'./chunk-DxS2mc0e.js';function Nt$1(i,n){i&1&&(Bs(0,"div",0),cN(1,"FREE vehicle report"),_d());}function Ut$1(i,n){i&1&&(Bs(0,"div",1),gy(1,"tg-icon",2),Bs(2,"div",3),cN(3,"FREE vehicle report"),_d()());}var xe=(()=>{let n=class n{constructor(){this.compact=mW(false,{transform:_W});}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=z_({type:n,selectors:[["tm-vir-badge"]],hostVars:2,hostBindings:function(e,r){e&2&&jy("tm-vir-badge__compact",r.compact());},inputs:{compact:[1,"compact"]},decls:2,vars:1,consts:[[1,"tm-vir-badge"],[1,"tm-vir-badge__compact-container"],["name","docs-page-1","alt","free vehicle report icon","size","small",1,"tm-vir-badge__icon"],[1,"tm-vir-badge__label"]],template:function(e,r){e&1&&lM(0,Nt$1,2,0,"div",0)(1,Ut$1,4,0,"div",1),e&2&&uM(r.compact()?1:0);},dependencies:[Ie],styles:["tm-vir-badge[_nghost-%COMP%]{display:block}.tm-vir-badge[_ngcontent-%COMP%]{background-color:#29a754;padding:0 8px;color:#fff;border-radius:4px}@media(max-width:767px){.tm-vir-badge[_ngcontent-%COMP%]{padding:0 4px;line-height:20px}}.tm-vir-badge__compact[_nghost-%COMP%] .tm-vir-badge__compact-container[_ngcontent-%COMP%]{font-size:.75rem;line-height:16px}.tm-vir-badge__compact[_nghost-%COMP%] .tm-vir-badge__icon[_ngcontent-%COMP%]{margin:2px 2px 2px 4px}.tm-vir-badge__compact[_nghost-%COMP%] .tm-vir-badge__label[_ngcontent-%COMP%]{margin:2px 4px 2px 0}.tm-vir-badge__compact-container[_ngcontent-%COMP%]{background-color:#e1fbea;border-radius:4px;color:#65605d;display:flex;font-size:.875rem;line-height:20px}.tm-vir-badge__icon[_ngcontent-%COMP%]{margin:1px 2px 1px 8px;bottom:0;color:#29a754}.tm-vir-badge__label[_ngcontent-%COMP%]{margin:3px 8px 3px 0;white-space:nowrap;font-size:.75rem}"]});let i=n;return i})();var G$1=(()=>{let n=class n{constructor(t){this.templateRef=t;}};n.\u0275fac=function(e){return new(e||n)(Lo(yo))},n.\u0275dir=Z_({type:n,selectors:[["","tmImageNewCarouselItemContent",""]],standalone:false});let i=n;return i})();var Lt$1=["carousel"],Ht$1=["container"],At$1=["leftButton"],jt$1=["rightButton"];function Xt$1(i,n){if(i&1&&Ey(0,15),i&2){let o=NM().$implicit;my("ngTemplateOutlet",o.template);}}function Qt$1(i,n){if(i&1&&(Bs(0,"div",12),NN(1,"async"),Bs(2,"div",13),Qv(3,Xt$1,1,1,"ng-container",14),_d()()),i&2){let o=n.$implicit,t=n.index,e=NM().ngIf,r=NM();Fy("transform",gN("translateX(",o.translateX,"%)"))("z-index",t===r.selected?1:0),jy("tm-carou
3sel__item--transition",r.isEnteringOrExitingView(e,t)&&!AN(1,10,r.isTouching$)),aC(2),Fy("aspect-ratio",r.aspectRatio),aC(),my("ngIf",o.loaded);}}function Kt$1(i,n){if(i&1&&(xd(0),Qv(1,Qt$1,4,12,"div",11),ma()),i&2){let o=NM();aC(),my("ngForOf",o.photoContainers)("ngForTrackBy",o.trackByFn);}}function qt$1(i,n){if(i&1){let o=TM();Bs(0,"button",16),NN(1,"async"),_y("keyup",function(e){Fp(o);let r=NM();return jp(r.onButtonKeyUp(e))})("click",function(e){Fp(o);let r=NM();return jp(r.onScrollClick(-1,e))}),gy(2,"tg-icon",17),_d();}if(i&2){let o=NM();jy("tm-carousel__button--inset",o.inset)("tm-carousel__button--inset-show-on-mobile",o.inset&&o.ignoreHooverForScrollButtons)("tm-carousel__button--inset-hidden",o.inset&&!AN(1,6,o.showInsetButtons$));}}function Gt$1(i,n){if(i&1){let o=TM();Bs(0,"button",18),NN(1,"async"),_y("keyup",function(e){Fp(o);let r=NM();return jp(r.onButtonKeyUp(e))})("click",function(e){Fp(o);let r=NM();return jp(r.onScrollClick(1,e))}),gy(2,"tg-icon",19),_d();}if(i&2){let o=NM();jy("tm-carousel__button--inset",o.inset)("tm-carousel__button--inset-show-on-mobile",o.inset&&o.ignoreHooverForScrollButtons)("tm-carousel__button--inset-hidden",o.inset&&!AN(1,6,o.showInsetButtons$));}}var Vt$1=(()=>{let n=class n{set selected(t){t!==this._selected&&(this._selected=t,this.selectedChange.emit(t));}get selected(){return this._selected}set inset(t){this._inset=t,t&&this.containerRef?this.registerHoverListener():(this._unlistenMouseEnter(),this._unlistenMouseLeave());}get inset(){return this._inset}constructor(t,e,r){this._renderer=t,this._changeDetectorRef=r,this.ignoreImageCountForScrollButtons=true,this.ignoreHooverForScrollButtons=true,this.aspectRatio="4 / 3",this.photoContainers=[],this._selected=0,this._inset=true,this.gestures=true,this.allowZoom=false,this.selectedChange=new mt$1,this.imageClick=new mt$1,this.showInsetButtons$=new xr(1),this._unlistenMouseEnter=()=>null,this._unlistenMouseLeave=()=>null,this._scrollClick$=new q,this._buttonKeyUp$=new q,this._destroyed$=new q,this._panStart$=new q,this._panMove$=new q,this._panEnd$=new q,this.selectedBeforeAfter$=this.selectedChange.pipe(jf(0,0),Xf(),Ff(1)),this.isTouching$=YI(this._panStart$.pipe(oc(true)),this._panEnd$.pipe(oc(false))).pipe(jf(false)),this._swipePercentageThreshold=.6,this._swipeVelocityThreshold=.2,this._isFirstUpdate=true,e.init();}fillAndUpdateContainers(t){this.photoContainers=t.map(e=>({loaded:false,translateX:0,template:e.templateRef})),this.updateContainers();}ngAfterContentInit(){this.fillAndUpdateContainers(this.carouselItems),this.carouselItems.changes.pipe(Vf(this._destroyed$)).subscribe(t=>{this.fillAndUpdateContainers(t),this._changeDetectorRef.detectChanges();});}ngOnInit(){this.selectedChange.pipe(jf(0),Vf(this._destroyed$)).subscribe(()=>this.updateContainers()),this._scrollClick$.pipe(Vf(this._destroyed$)).subscribe(e=>this.scroll(e)),this._buttonKeyUp$.pipe(Vf(this._destroyed$)).subscribe(e=>this.focusButtonAndScroll(e));let t=this._panStart$.pipe(be(e=>e.target.clientWidth));this._panEnd$.pipe(Uf(this._panMove$,t),Vf(this._destroyed$)).subscribe(([e,r,p])=>{let _=r.deltaX,$t=Math.abs(_)>p*this._swipePercentageThreshold||Math.abs(r.velocityX)>this._swipeVelocityThreshold;this.photoContainers.length>1&&$t&&(this.getCanScrollRight(this.photoContainers.length,this.selected)&&_<0?this.scroll(1):this.getCanScrollLeft(this.photoContainers.length,this.selected)&&_>0&&this.scroll(-1));}),YI(this._panMove$.pipe(be(e=>e.deltaX)),this._panEnd$.pipe(oc(0))).pipe(Uf(t),be(([e,r])=>e*100/r),Vf(this._destroyed$)).subscribe(e=>{this.photoContainers.forEach((r,p)=>{Math.abs(this.getPlacementOffset(p))>1||(r.translateX=this.getTranslateX(p)+e);});});}ngAfterViewInit(){this.inset&&this.registerHoverListener();}ngOnDestroy(){this._unlistenMouseEnter(),this._unlistenMouseLeave(),this._scrollClick$.complete(),this._destroyed$.next(),this._destroyed$.complete();}onImageClick(){this.imageClick.emit(this._selected);}onButtonKeyUp(t){this._buttonKeyUp$.next(t);}focusNextButton(){this.focusButton(this.rightButton);}focusButton(t){let e=t&&t.nativeElement;if(e){let r=e.firstElementChild;r&&r.focus();}}focusButtonAndScroll(t){let e=this.isNavigationKey(t.key,"Left"),r=this.isNavigationKey(t.key,"Right");if(!e&&!r)return;let p=e?this.leftButton:this.rightButton;this.focusButton(p),this.scroll(e?-1:1);}isNavigationKey(t,e){return t===`Arrow${e}`||t===e}getPlacementOffset(t){let e=t-this.selected;return this.selected===0&&t===this.photoContainers.length-1&&this.photoContainers.length>2&&(e=-1),this.selected===this.photoContainers.length-1&&t===0&&this.photoContainers.length>2&&(e=1),e}isCurrentOrAdjacent(t){let r=this.getPlacementOffset(t);return r<=1&&r>=0}getTranslateX(t){let e=this.getPlacementOffset(t);return t*-100+e/Math.abs(e||1)*100}trackByFn(t){return t}getCanScrollRight(t,e){return t===2&&(e===0||this.ignoreImageCountForScrollButtons)||t>=3}getCanScrollLeft(t,e){return t===2&&(e===1||this.ignoreImageCountForScrollButtons)||t>=3}onScrollClick(t,e){e&&(e.stopPropagation(),e.preventDefault()),this._scrollClick$.next(t);}getNormalisedIndex(t,e){return (t%e+e)%e}getIndexFromSkip(t){return this.getNormalisedIndex(t,this.photoContainers.length)}
3registerHoverListener(){if(this.ignoreHooverForScrollButtons){this.showInsetButtons$.next(true);return}this._renderer.listen(this.carouselRef.nativeElement,"mouseenter",t=>this.showInsetButtons$.next(true)),this._renderer.listen(this.carouselRef.nativeElement,"mouseleave",t=>this.showInsetButtons$.next(false));}scroll(t){this.selected=this.getIndexFromSkip(this.selected+t);}updateContainers(){this.photoContainers.forEach((t,e)=>{let r=this.isCurrentOrAdjacent(e);t.translateX=this.getTranslateX(e),t.loaded=t.loaded||(this._isFirstUpdate?e===this.selected:r);}),this._isFirstUpdate=false;}onPanStart(t){this.shouldHandleHammerInput(t)&&this._panStart$.next(t);}onPanMove(t){this.shouldHandleHammerInput(t)&&this._panMove$.next(t);}onPanEnd(t){this.shouldHandleHammerInput(t)&&this._panEnd$.next(t);}onPanCancel(t){this.shouldHandleHammerInput(t)&&this._panEnd$.next(t);}shouldHandleHammerInput(t){return !(!this.gestures&&t.pointerType==="mouse")}isEnteringOrExitingView(t,e){return t.indexOf(e)!==-1}};n.\u0275fac=function(e){return new(e||n)(Lo(tu),Lo(Ee),Lo(CW))},n.\u0275cmp=z_({type:n,selectors:[["tm-carousel"]],contentQueries:function(e,r,p){if(e&1&&Ny(p,G$1,5),e&2){let _;kM(_=LM())&&(r.carouselItems=_);}},viewQuery:function(e,r){if(e&1&&xy(Lt$1,5)(Ht$1,5)(At$1,5,_o)(jt$1,5,_o),e&2){let p;kM(p=LM())&&(r.carouselRef=p.first),kM(p=LM())&&(r.containerRef=p.first),kM(p=LM())&&(r.leftButton=p.first),kM(p=LM())&&(r.rightButton=p.first);}},hostVars:2,hostBindings:function(e,r){e&2&&jy("tm-carousel--round-borders",r.roundBorders);},inputs:{ignoreImageCountForScrollButtons:"ignoreImageCountForScrollButtons",ignoreHooverForScrollButtons:"ignoreHooverForScrollButtons",fitMode:"fitMode",aspectRatio:"aspectRatio",roundBorders:"roundBorders",selected:"selected",inset:"inset",gestures:"gestures",allowZoom:"allowZoom"},outputs:{selectedChange:"selectedChange",imageClick:"imageClick"},standalone:false,decls:12,vars:11,consts:[["carousel",""],["container",""],["leftButton",""],["rightButton",""],[1,"tm-carousel__body"],[1,"carousel_pan_gestures","tm-carousel__item-container",3,"tgpanstart","tgpanmove","tgpanend","tgpancancel"],[4,"ngIf"],[1,"tm-carousel__button-inset-container--left"],["tgButton2","","transparent","","class","tm-carousel__button tm-carousel__button--left",3,"tm-carousel__button--inset","tm-carousel__button--inset-show-on-mobile","tm-carou
3sel__button--inset-hidden","keyup","click",4,"ngIf"],[1,"tm-carousel__button-inset-container--right"],["tgButton2","","transparent","","class","tm-carousel__button tm-carousel__button--right",3,"tm-carousel__button--inset","tm-carousel__button--inset-show-on-mobile","tm-carousel__button--inset-hidden","keyup","click",4,"ngIf"],["class","tm-carousel__item",3,"transform","z-index","tm-carousel__item--transition",4,"ngFor","ngForOf","ngForTrackBy"],[1,"tm-carousel__item"],[1,"tm-carousel__item--aspect-ratio"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"],["tgButton2","","transparent","",1,"tm-carousel__button","tm-carousel__button--left",3,"keyup","click"],["name","basic-arrow-left","alt","Scroll left"],["tgButton2","","transparent","",1,"tm-carousel__button","tm-carousel__button--right",3,"keyup","click"],["name","basic-arrow-right","alt","Scroll right"]],template:function(e,r){e&1&&(Bs(0,"div",4,0)(2,"div",5,1),_y("tgpanstart",function(_){return r.onPanStart(_)})("tgpanmove",function(_){return r.onPanMove(_)})("tgpanend",function(_){return r.onPanEnd(_)})("tgpancancel",function(_){return r.onPanCancel(_)}),Qv(4,Kt$1,2,2,"ng-container",6),NN(5,"async"),_d(),Bs(6,"div",7,2),Qv(8,qt$1,3,8,"button",8),_d(),Bs(9,"div",9,3),Qv(11,Gt$1,3,8,"button",10),_d()()),e&2&&(jy("tm-carousel__body--inset",r.inset),aC(4),my("ngIf",AN(5,9,r.selectedBeforeAfter$)),aC(2),jy("tm-carousel__button-inset-container",r.inset),aC(2),my("ngIf",r.getCanScrollLeft(r.photoContainers.length,r.selected)),aC(),jy("tm-carousel__button-inset-container",r.inset),aC(2),my("ngIf",r.getCanScrollRight(r.photoContainers.length,r.selected)));},dependencies:[Wt$2,On,kn,ze$1,Ie,Un],styles:["tm-carousel[_nghost-%COMP%]{display:block}tm-carousel.tm-carousel--round-borders[_nghost-%COMP%] .tm-carousel__item[_ngcontent-%COMP%]{border-radius:12px}tm-carousel[_nghost-%COMP%] .tm-carousel__body[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;align-items:center}tm-carousel[_nghost-%COMP%] .tm-carousel__body--inset[_ngcontent-%COMP%]{position:relative}tm-carousel[_nghost-%COMP%] .tm-carousel__item-container[_ngcontent-%COMP%]{display:flex;overflow:visible;width:100%;height:100%;flex-grow:1;align-items:center;order:2;touch-action:pan-y pinch-zoom}tm-carousel[_nghost-%COMP%] .tm-carousel__item[_ngcontent-%COMP%]{flex:0 0 100%;margin-bottom:auto}tm-carousel[_nghost-%COMP%] .tm-carousel__item--aspect-fill[_ngcontent-%COMP%]{position:absolute;inset:0}tm-carousel[_nghost-%COMP%] .tm-carousel__item--aspect-ratio[_ngcontent-%COMP%]{width:100%}tm-carousel[_nghost-%COMP%] .tm-carousel__item--transition[_ngcontent-%COMP%]{transition:transform .2s ease}tm-carousel[_nghost-%COMP%] .tm-carousel__button[_ngcontent-%COMP%]{z-index:2;margin-bottom:0;color:#000}tm-carousel[_nghost-%COMP%] .tm-carousel__button--left[_ngcontent-%COMP%]{order:1}tm-carousel[_nghost-%COMP%] .tm-carousel__button--right[_ngcontent-%COMP%]{order:3}tm-carousel[_nghost-%COMP%] .tm-carousel__button--zoom[_ngcontent-%COMP%]{position:absolute;right:0;bottom:12px;left:0;display:flex;width:120px;align-items:center;justify-content:center;padding:8px 0;margin:0 auto;border-radius:3px;font-size:.875rem}tm-carousel[_nghost-%COMP%] .tm-carousel__button--zoom[_ngcontent-%COMP%] .o-icon[_ngcontent-%COMP%]{margin-right:4px}tm-carousel[_nghost-%COMP%] .tm-carousel__button-inset-container[_ngcontent-%COMP%]{position:absolute}tm-carousel[_nghost-%COMP%] .tm-carousel__button-inset-container--left[_ngcontent-%COMP%]{left:0}tm-carousel[_nghost-%COMP%] .tm-carousel__button-inset-container--right[_ngcontent-%COMP%]{right:0}tm-carousel[_nghost-%COMP%] .tm-carousel__button--inset[_ngcontent-%COMP%]{background-color:#0000007a;color:#fff;transition-duration:.2s;transition-property:background-color,opacity;transition-timing-function:ease-out}@media(hover:none){tm-carousel[_nghost-%COMP%] .tm-carousel__button--inset[_ngcontent-%COMP%]{visibility:hidden}}@media(hover:none){tm-carousel[_nghost-%COMP%] .tm-carousel__button--inset-show-on-mobile[_ngcontent-%COMP%]{visibility:visible}}
3tm-carousel[_nghost-%COMP%] .tm-carousel__button--inset.tm-carousel__button--left[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-top-left-radius:0}tm-carousel[_nghost-%COMP%] .tm-carousel__button--inset.tm-carousel__button--right[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-top-right-radius:0}tm-carousel[_nghost-%COMP%] .tm-carousel__button--inset-hidden[_ngcontent-%COMP%]{opacity:0}tm-carousel[_nghost-%COMP%] .tm-carousel__button--%NS%inset[_ngcontent-%COMP%]:hover{background-color:#00000052}tm-carousel[_nghost-%COMP%] .tm-carousel__button--%NS%inset[_ngcontent-%COMP%]:active{background-color:#000000a3}tm-carousel[_nghost-%COMP%] .tm-carousel__button--%NS%inset[_ngcontent-%COMP%]:focus{opacity:1}tm-carousel[_nghost-%COMP%] .tm-carousel__button[_ngcontent-%COMP%] .o-icon{pointer-events:none}"]});let i=n;return i})();var Rt$1=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Bv({type:n}),n.\u0275inj=Oc({providers:[Ee],imports:[ti$1,ze$1,Ie,Ie,Ie,ye]});let i=n;return i})();function Wt$1(i,n){if(i&1&&gy(0,"tm-progressive-image-loader",8),i&2){let o=NM(2).$implicit,t=NM(2);my("maxSize",t.maxCardSize)("loadingPriority",t.cardPositionInList<2?"prioritized":"lazy")("imageUrl",o.url);}}function Jt$1(i,n){if(i&1&&gy(0,"tm-progressive-image-loader",9),i&2){let o=NM(2).$implicit,t=NM(2);my("maxSize",t.maxCardSize)("imageUrl",o.url);}}function Yt$1(i,n){if(i&1&&Qv(0,Wt$1,1,3,"tm-progressive-image-loader",6)(1,Jt$1,1,2,"tm-progressive-image-loader",7),i&2){let o=NM().index,t=NM(2);my("ngIf",o===0),aC(),my("ngIf",o>0&&t.loadSubsequentImages);}}function te(i,n){i&1&&Qv(0,Yt$1,2,2,"ng-template",5);}function ee(i,n){if(i&1){let o=TM();Bs(0,"tm-carousel",3),_y("deferLoad",function(){Fp(o);let e=NM();return jp(e.switchCardImageLoadingPriorityDeferred())}),Qv(1,te,1,0,null,4),_d();}if(i&2){let o=NM();my("aspectRatio",o.aspectRatio),aC(),my("ngForOf",o.photos)("ngForTrackBy",o.trackByPhotoUrlFn);}}function ie(i,n){i&1&&gy(0,"tm-no-image");}function ne(i,n){if(i&1&&(Bs(0,"tm-carousel",10),Qv(1,ie,1,0,"ng-template",5),_d()),i&2){let o=NM();Fy("min-width",o.maxCardSize),my("aspectRatio",o.aspectRatio);}}var Ge=(()=>{let n=class n{constructor(t){this._imageSizeService=t,this.aspectRatio="4/3",this.motorsFrEndSearchCardsSmartCropEnabled=false,this.isSdOrGreater=false,this.loadSubsequentImages=false,this.maxCardSize="md",this._destroyed$=new q;}ngOnInit(){this.setPhotosFromPhotoUrls();}ngOnDestroy(){this._destroyed$.next();}switchCardImageLoadingPriorityDeferred(){this.loadSubsequentImages=true;}setPhotosFromPhotoUrls(){this.photoUrls?(this.photos=[this.getPhotoFromUrl(this.pictureHref)],this.hasPhotos=true,this.photos=this.photos.concat(this.photoUrls.map(t=>this.getPhotoFromUrl(t)))):this.pictureHref?(this.photos=[this.getPhotoFromUrl(this.pictureHref)],this.hasPhotos=true):this.hasPhotos=false;}getPhotoFromUrl(t$1){let e=t.cropped_480x360;return this.motorsFrEndSearchCardsSmartCropEnabled&&this.isSdOrGreater&&(t$1=t$1.replace("photoserver","motors/crop")),{url:this._imageSizeService.convertImageSize(t$1,e)}}trackByPhotoUrlFn(t,e){return e.url||t}};n.\u0275fac=function(e){return new(e||n)(Lo(w))},n.\u0275cmp=z_({type:n,selectors:[["tm-image-carousel"]],inputs:{photoUrls:"photoUrls",pictureHref:"pictureHref",cardPositionInList:"cardPositionInList",aspectRatio:"aspectRatio",tier:"tier",motorsFrEndSearchCardsSmartCropEnabled:"motorsFrEndSearchCardsSmartCropEnabled",isSdOrGreater:"isSdOrGreater"},standalone:false,decls:4,vars:2,consts:[["noPhotos",""],[1,"tm-image-carousel-container"],[3,"aspectRatio","deferLoad",4,"ngIf","ngIfElse"],[3,"deferLoad","aspectRatio"],[4,"ngFor","ngForOf","ngForTrackBy"],["tmImageNewCarouselItemContent",""],[3,"maxSize","loadingPriority","imageUrl",4,"ngIf"],[3,"maxSize","imageUrl",4,"ngIf"],[3,"maxSize","loadingPriority","imageUrl"],[3,"maxSize","imageUrl"],[3,"aspectRatio"]],template:function(e,r){if(e&1&&(Bs(0,"div",1),Qv(1,ee,2,3,"tm-carousel",2)(2,ne,2,3,"ng-template",null,0,LN),_d()),e&2){let p=FM(3);aC(),my("ngIf",r.hasPhotos)("ngIfElse",p);}},dependencies:[Wt$2,On,Vt$1,G$1,fe,f$1,M],styles:[`tm-image-carousel .tm-image-carousel-container{flex:0 0 auto;position:relative;overflow:hidden}
3tm-image-carousel .tm-image-carousel-container button.tm-carousel__button.tm-carousel__button--left.tm-carousel__button--inset,tm-image-carousel .tm-image-carousel-container button.tm-carousel__button.tm-carousel__button--right.tm-carousel__button--inset{border-radius:7px}tm-image-carousel .tm-image-carousel-container .tm-progressive-image-loader__container .tm-progressive-image-loader__full{backface-visibility:hidden} 4`],encapsulation:2});let i=n;return i})();var oi$1=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Bv({type:n}),n.\u0275inj=Oc({imports:[ti$1,Rt$1,ye,f,R$1,ye]});let i=n;return i})();function oe(i,n){if(i&1&&(xd(0),Bs(1,"div",1),cN(2),NN(3,"tgCurrency"),_d(),ma()),i&2){let o=NM();aC(2),Od("Save ",AN(3,1,o.savingAmount));}}var ci=(()=>{let n=class n{ngOnInit(){this.listingValue?.wasPrice&&this.listingValue?.startPrice&&(this.savingAmount=this.listingValue?.wasPrice-this.listingValue?.startPrice);}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=z_({type:n,selectors:[["tm-saving-amount"]],inputs:{listingValue:"listingValue"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"tm-saving-amount__badge"]],template:function(e,r){e&1&&Qv(0,oe,4,3,"ng-container",0),e&2&&my("ngIf",r.savingAmount);},dependencies:[_c,On,_r],styles:["tm-saving-amount[_nghost-%COMP%]{display:block}.tm-saving-amount__badge[_ngcontent-%COMP%]{background-color:#d93a3f;padding:0 8px;color:#fff;border-radius:4px}@media(max-width:767px){.tm-saving-amount__badge[_ngcontent-%COMP%]{padding:0 4px;line-height:20px}}"]});let i=n;return i})();function re(i,n){if(i&1&&(Bs(0,"div",6),cN(1),_d()),i&2){let o=NM(3);aC(),Od(" ",o.listingValue.priceDisplay," ");}}function se(i,n){if(i&1&&(Bs(0,"div",4),Qv(1,re,2,1,"div",5),_d()),i&2){let o=NM(2);aC(),my("ngIf",o.listingValue.priceDisplay);}}function ae(i,n){if(i&1&&(Bs(0,"div",6)(1,"div"),cN(2),_d(),Bs(3,"div"),cN(4),_d()()),i&2){let o=NM(3);aC(2),Od(" ",o.reserveStateDisplay," "),aC(2),Od(" ",o.listingValue.priceDisplay," ");}}function ce(i,n){if(i&1&&(Bs(0,"div",9),cN(1),NN(2,"tgCurrency"),_d()),i&2){let o=NM(3);my("ngClass",o.listingValue.isBuyNowOnly?"tm-search-card-price__buy-now-primary":"tm-search-card-price__buy-now-secondary"),aC(),Od(" Buy now ",AN(2,2,o.listingValue.buyNowPrice)," ");}}function le(i,n){i&1&&(Bs(0,"div",11),cN(1," excl GST "),_d());}function me(i,n){if(i&1&&(Bs(0,"div",6)(1,"div"),cN(2),_d(),Bs(3,"div"),cN(4),NN(5,"tgCurrency"),_d(),Qv(6,le,2,0,"div",10),_d()),i&2){let o=NM(3);aC(2),Od(" ",o.priceDisplayString," "),aC(2),Od(" ",AN(5,3,o.listingValue.startPrice)," "),aC(2),my("ngIf",o.listingValue.priceType===o.motorPriceType.excludingGST);}}function pe(i,n){if(i&1&&(Bs(0,"div",12),cN(1),NN(2,"tgCurrency"),_d()),i&2){let o=NM(3);aC(),Od(" ",AN(2,1,o.listingValue.wasPrice)," ");}}function de(i,n){if(i&1&&(Bs(0,"div",4),Qv(1,ae,5,2,"div",5)(2,ce,3,4,"div",7)(3,me,7,5,"div",5)(4,pe,3,3,"div",8),_d()),i&2){let o=NM(2);aC(),my("ngIf",o.showReserveState&&o.reserveStateDisplay&&o.listingValue.priceDisplay),aC(),my("ngIf",o.listingValue.hasBuyNow),aC(),my("ngIf",o.showClassifiedPrice&&o.listingValue.priceDisplay),aC(),my("ngIf",o.listingValue.wasPrice);}}function ue(i,n){if(i&1&&(xd(0,1),Qv(1,se,2,1,"div",2)(2,de,5,4,"div",3),ma()),i&2){let o=NM();my("ngSwitch",o.listingValue.priceType),aC(),my("ngSwitchCase",o.motorPriceType.priceOnApplication);}}var pi=(()=>{let n=class n{constructor(){this.motorPriceType=y;}ngOnInit(){this.priceDisplayString=this.getPricingLabel(),this.reserveStateDisplay=this.getReserveStateDisplay(),this.showClassifiedPrice=!this.listingValue?.buyNowPrice&&this.listingValue?.isClassified,this.showReserveState=!this.listingValue?.isBuyNowOnly&&!this.listingValue?.isClassified;}getPricingLabel(){let t=this.listingValue?.priceDisplay;if(t){if(t.includes("near offer"))return "Or near offer";if(t.includes("Estimated"))return "Estimated price"}return "Asking price"}getReserveStateDisplay(){return this.listingValue?.reserveState===G$2.notMet?"Reserve not met":this.listingValue?.reserveState===G$2.met?"Reserve met":"No reserve"}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=z_({type:n,selectors:[["tm-search-card-price"]],inputs:{listingValue:"listingValue"},standalone:false,decls:1,vars:1,consts:[[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],["class","tm-search-card-price__container",4,"ngSwitchCase"],["class","tm-search-card-price__container",4,"ngSwitchDefault"],[1,"tm-search-card-price__container"],["class","tm-search-card-price__price",4,"ngIf"],[1,"tm-search-card-price__price"],[3,"ngClass",4,"ngIf"],["class","tm-search-card-price__was-price",4,"ngIf"],[3,"ngClass"],["class","tm-search-card-price__gst-text",4,"ngIf"],[1,"tm-search-card-price__gst-text"],[1,"tm-search-card-price__was-price"]],template:function(e,r){e&1&&Qv(0,ue,3,2,"ng-container",0),e&2&&my("ngIf",r.listingValue);},dependencies:[Ln,On,ze,Rn,Pn,_r],styles:["tm-search-card-price[_nghost-%COMP%]{display:block}.tm-search-card-price__container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;column-gap:8px}.tm-search-card-price__container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;column-gap:4px}.tm-search-card-price__price[_ngcontent-%COMP%]{font-weight:500;color:#44413d}.tm-search-card-price__was-price[_ngcontent-%COMP%]{text-decoration:line-through;font-weight:400;
4color:#65605d}.tm-search-card-price__buy-now-primary[_ngcontent-%COMP%]{font-weight:500;color:#44413d}.tm-search-card-price__gst-text[_ngcontent-%COMP%]{padding-top:1.5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.75rem}.tm-search-card-price__buy-now-secondary[_ngcontent-%COMP%]{font-weight:400;color:#65605d;padding-left:8px}"]});let i=n;return i})();var fi=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Bv({type:n}),n.\u0275inj=Oc({imports:[ti$1,_c]});let i=n;return i})();var _e=i=>["tm-motors-search-card-title__container",i];function ge(i,n){if(i&1&&(Bs(0,"span",3),cN(1),_d()),i&2){let o=NM();aC(),Od(" ",o.modelDetails," ");}}var bi=(()=>{let n=class n{ngOnInit(){this.tierSpecificContainerClass=this.getTierSpecificContainerClass();}getTierSpecificContainerClass(){let t="tm-motors-search-card-title__container";switch(this.searchCardTier){case xt$1.tier3:case xt$1.tier4:return `${t}-top-padding ${t}-line-height`;default:return ""}}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=z_({type:n,selectors:[["tm-motors-search-card-title"]],inputs:{searchCardTier:"searchCardTier",listingTitle:"listingTitle",modelDetails:"modelDetails"},decls:4,vars:5,consts:[[3,"ngClass"],[1,"tm-motors-search-card-title__title"],["class","tm-motors-search-card-title__model-detail",4,"ngIf"],[1,"tm-motors-search-card-title__model-detail"]],template:function(e,r){e&1&&(Bs(0,"div",0)(1,"span",1),cN(2),_d(),Qv(3,ge,2,1,"span",2),_d()),e&2&&(my("ngClass",CN(3,_e,r.tierSpecificContainerClass)),aC(2),Od(" ",r.listingTitle," "),aC(),my("ngIf",r.modelDetails));},dependencies:[ti$1,Ln,On],styles:[".tm-motors-search-card-title__container[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tm-motors-search-card-title__container.tm-motors-search-card-title__container-top-padding[_ngcontent-%COMP%]{padding-top:8px}@media(max-width:479px){.tm-motors-search-card-title__container.tm-motors-search-card-title__container-top-padding[_ngcontent-%COMP%]{padding-top:4px}}@media(max-width:479px){.tm-motors-search-card-title__container.tm-motors-search-card-title__container-line-height[_ngcontent-%COMP%]{line-height:20px}}.tm-motors-search-card-title__title[_ngcontent-%COMP%]{font-weight:700;color:#44413d}.tm-motors-search-card-title__model-detail[_ngcontent-%COMP%]{padding-left:4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}"]});let i=n;return i})();var Si=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=z_({type:n,selectors:[["tm-special-offer-badge"]],standalone:false,decls:2,vars:0,consts:[[1,"tm-special-offer-badge"]],template:function(e,r){e&1&&(Bs(0,"div",0),cN(1,"Special offer"),_d());},styles:["tm-special-offer-badge[_nghost-%COMP%]{display:block}.tm-special-offer-badge[_ngcontent-%COMP%]{background-color:#d93a3f;padding:0 8px;color:#fff;border-radius:4px}@media(max-width:767px){.tm-special-offer-badge[_ngcontent-%COMP%]{padding:0 4px;line-height:20px}}"]});let i=n;return i})();var Ti=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Bv({type:n}),n.\u0275inj=Oc({imports:[ti$1]});let i=n;return i})();var G=(()=>{let r=class r{};r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=z_({type:r,selectors:[["tm-motors-instavid-spin-badge"]],standalone:false,decls:4,vars:0,consts:[[1,"tm-motors-instavid-spin-badge"],["name","spin","alt","360 spin icon","size","small"]],template:function(c,g){c&1&&(xd(0),Bs(1,"div",0),gy(2,"tg-icon",1),cN(3," 360\xB0 "),_d(),ma());},dependencies:[Ie],styles:["tm-motors-instavid-spin-badge[_nghost-%COMP%]{display:block}.tm-motors-instavid-spin-badge[_ngcontent-%COMP%]{background-color:#44413de6;padding:0 8px;color:#fff;border-radius:4px}@media(max-width:767px){.tm-motors-instavid-spin-badge[_ngcontent-%COMP%]{padding:0 4px;line-height:20px}}.tm-motors-instavid-spin-badge[_ngcontent-%COMP%] .tm-flag__container[_ngcontent-%COMP%]{padding-top:4px}"]});let e=r;return e})();var R=(()=>{let r=class r{};r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=Bv({type:r}),r.\u0275inj=Oc({imports:[ti$1,Ie]});let e=r;return e})();var rt=e=>({"background-color":e});function ot(e,r){if(e&1&&(xd(0),gy(1,"img",6),ma()),e&2){let i=NM(2);aC(),my("src",i.dealerLogoUrl,Ig),hy("loading",i.cardPositionInList<2?"eager":"lazy")("decoding",i.cardPositionInList<2?"auto":"async");}}function nt(e,r){if(e&1&&(Bs(0,"span")(1,"span",9),cN(2,"|"),_d(),Bs(3,"span",10),cN(4),_d()()),e&2){let i=NM(3);aC(4),Od(" ",i.dealerName," ");}}function at(e,r){if(e&1&&(Bs(0,"div",7),cN(1," Dealer "),Qv(2,nt,5,1,"span",8),_d()),e&2){let i=NM(2);aC(2),my("ngIf",i.dealerName&&i.showDealerName===true);}}function st(e,r){if(e&1&&(Bs(0,"div",3),Qv(1,ot,2,3,"ng-container",4)(2,at,3,1,"ng-template",5,0,LN),_d()),e&2){let i=FM(3),t=NM();jy("tm-motors-search-card__dealer-with-logo",t.dealerLogoUrl),my("ngStyle",CN(5,rt,t.dealerLogoBackgroun
4dColour)),aC(),my("ngIf",t.dealerLogoUrl&&t.showDealerLogo)("ngIfElse",i);}}function dt(e,r){e&1&&(Bs(0,"div",11),cN(1,` Private seller 5`),_d());}var U=(()=>{let r=class r{constructor(){this.showDealerLogo=false,this.showDealerName=true;}ngOnInit(){this.sellerIsDealer=this.listingValue?.isDealer,this.dealerShowroom=this.listingValue?.showroom,this.dealerName=this.listingValue?.dealerName,this.sellerIsDealer&&this.showDealerLogo&&this.setDealerLogoAndBackground();}setDealerLogoAndBackground(){let t=null;this.dealerLogoUrl=this.dealerShowroom&&this.dealerShowroom.logo,this.dealerShowroom&&this.dealerShowroom.backgroundColour&&(t="#"+this.dealerShowroom.backgroundColour),this.dealerLogoBackgroundColour=t;}};r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=z_({type:r,selectors:[["tm-seller-container"]],inputs:{listingValue:"listingValue",showDealerLogo:"showDealerLogo",showDealerName:"showDealerName"},standalone:false,decls:2,vars:2,consts:[["dealerLabel",""],["class","tm-motors-search-card__seller",3,"ngStyle","tm-motors-search-card__dealer-with-logo",4,"ngIf"],["class","tm-motors-search-card__seller tm-motors-search-card__seller-text",4,"ngIf"],[1,"tm-motors-search-card__seller",3,"ngStyle"],[4,"ngIf","ngIfElse"],[1,"tm-motors-search-card__dealer-label"],["alt","",1,"tm-motors-search-card__dealer-logo",3,"src"],[1,"tm-motors-search-card__dealer-name-dealer-text"],[4,"ngIf"],[1,"tm-motors-search-card__dealer-separator"],[1,"tm-motors-search-card__dealer-name"],[1,"tm-motors-search-card__seller","tm-motors-search-card__seller-text"]],template:function(c,g){c&1&&Qv(0,st,4,7,"div",1)(1,dt,2,0,"div",2),c&2&&(my("ngIf",g.sellerIsDealer),aC(),my("ngIf",!g.sellerIsDealer));},dependencies:[On,Nn],styles:[".tm-motors-search-card__dealer-label[_ngcontent-%COMP%]{color:#9b9591}
5.tm-motors-search-card__dealer-separator[_ngcontent-%COMP%]{margin-right:4px;margin-left:4px}.tm-motors-search-card__seller[_ngcontent-%COMP%]{font-size:.75rem;overflow:hidden;display:flex;justify-content:center;align-items:center;height:100%;vertical-align:middle;background-color:#faf9f8;line-height:16px;text-align:center;text-align:-webkit-center;text-overflow:ellipsis;white-space:nowrap}.tm-motors-search-card__dealer-logo[_ngcontent-%COMP%]{height:100%;object-fit:contain;width:auto;padding:32px}@media(max-width:767px){.tm-motors-search-card__dealer-logo[_ngcontent-%COMP%]{padding-top:4px;padding-bottom:4px}}.tm-motors-search-card__seller[_ngcontent-%COMP%] tm-motors-search-card__seller-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%}.tm-motors-search-card__dealer-name-dealer-text[_ngcontent-%COMP%]{white-space:normal;padding:32px}"]});let e=r;return e})();var H=(()=>{let r=class r{};r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=Bv({type:r}),r.\u0275inj=Oc({imports:[ti$1]});let e=r;return e})();function ct(e,r){e&1&&(Bs(0,"tg-sticker2",3),gy(1,"tm-motors-instavid-spin-badge",16),_d());}function mt(e,r){if(e&1&&gy(0,"tm-saving-amount",18),e&2){let i=NM(2);my("listingValue",i);}}function lt(e,r){e&1&&gy(0,"tm-vir-badge",19);}function pt(e,r){if(e&1&&(Bs(0,"tg-sticker2",4)(1,"div",17),lM(2,mt,1,1,"tm-saving-amount",18),lM(3,lt,1,0,"tm-vir-badge",19),_d()()),e&2){let i=NM(),t=NM();aC(2),uM(i.wasPrice?2:-1),aC(),uM(t.showVirOverlay()?3:-1);}}function gt(e,r){e&1&&(Bs(0,"div",15),gy(1,"tm-vir-badge",20),_d());}function _t(e,r){if(e&1&&(Bs(0,"div",0)(1,"tg-sticker2-wrapper",1),gy(2,"tm-image-carousel",2),lM(3,ct,2,0,"tg-sticker2",3),lM(4,pt,4,2,"tg-sticker2",4),_d(),gy(5,"tm-seller-container",5),Bs(6,"div")(7,"div")(8,"div",6),gy(9,"tm-motors-closing-time",7),_d(),gy(10,"tm-motors-search-card-title",8),Bs(11,"div",9),gy(12,"tm-search-card-attributes",10),_d()(),Bs(13,"div")(14,"div",11),gy(15,"tm-search-card-price",12),_d(),Bs(16,"div",13),gy(17,"tm-on-road-costs",14),_d()()(),lM(18,gt,2,0,"div",15),_d()),e&2){let i=r,t=NM();aC(2),my("aspectRatio",t.imageAspectRatio())("photoUrls",i.photoUrls)("pictureHref",i.pictureHref)("cardPositionInList",t.cardPositionInList()),aC(),uM(i.motorsExternalMediaOverview?.hasInstavid360Spinner?3:-1),aC(),uM(i.wasPrice||t.showVirOverlay()?4:-1),aC(),my("listingValue",i)("showDealerLogo",false)("showDealerName",false),aC(),jy("tm-motors-tier-four-search-card__listing-details-container",t.showVirInline())("tm-motors-tier-four-search-card__listing-details-container-no-franchise",!t.showVirInline()),aC(3),my("listing",i),aC(),my("searchCardTier",i.searchCardTier)("listingTitle",i.title)("modelDetails",i.modelDetail),aC(2),my("listingValue",i)("numberOfAttributesToDisplay",t.numAttributesToDisplay()),aC(3),my("listingValue",i),aC(2),my("isCompact",t.isMobile())("listingValue",i),aC(),uM(t.showVirInline()?18:-1);}}var qe=(()=>{let r=class r{constructor(){this._mediaSizeFacade=I(G$3),this._virService=I(A),this._mediaSize=F(this._mediaSizeFacade.getMediaSize()),this._isMdOrGreater=F(this._mediaSizeFacade.is.md$.or.greater$),this._isSdOrGreater=F(this._mediaSizeFacade.is.sd$.or.greater$,{initialValue:false}),this.listingValue=mW.required(),this.cardPositionInList=mW(),this.isMobile=Zt$1(()=>!this._isMdOrGreater()),this.imageAspectRatio=Zt$1(()=>this._isMdOrGreater()?"4/3":"4/2.5"),this.numAttributesToDisplay=Zt$1(()=>{let t=this._mediaSize();return t?.isSm&&!t?.isSd?3:5}),this.isVirCtaEligible=Zt$1(()=>this._virService.isVirCtaEligible(this.listingValue())),this.showVirOverlay=Zt$1(()=>this.isVirCtaEligible()&&this._isSdOrGreater()&&!this.listingValue().wasPrice),this.showVirInline=Zt$1(()=>this.isVirCtaEligible()&&(!this._isSdOrGreater()||!!this.listingValue().wasPrice));}};r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=z_({type:r,selectors:[["tm-motors-tier-four-search-card"]],inputs:{listingValue:[1,"listingValue"],cardPositionInList:[1,"cardPositionInList"]},decls:1,vars:1,consts:[[1,"tm-motors-tier-four-search-card__container"],[1,"tm-motors-tier-four-search-card__image-container"],[3,"aspectRatio","photoUrls","pictureHref","cardPositionInList"],["position","bottom-right"],["position","top-left"],[1,"tm-motors-tier-four-search-card__seller-container",3,"listingValue","showDealerLogo","showDealerName"],[1,"tm-motors-tier-four-search-card__listed-date"],[3,"listing"],[3,"searchCardTier","listingTitle","modelDetails"],[1,"tm-motors-tier-four-search-card__attributes"],[3,"listingValue","numberOfAttributesToDisplay"],[1,"tm-motors-tier-four-search-card__price"],[3,"listingValue"],[1,"tm-motors-tier-four-search-card__on-road-costs"],[3,"isCompact","listingValue"],[1,"tm-motors-tier-four-search-card__new-vehicle-availability-badges"],[1,"tm-motors-tier-four-search-card__flag"],[1,"tm-motors-tier-four-search-card__top-left-badges"],[1,"tm-motors-tier-four-search-card__flag",3,"listingValue"],[1,"tm-motors-tier-four-search-card__flag","tm-motors-tier-four-search-card__vir-overlay-badge"],["compact",""]],template:function(c,g){if(c&1&&lM(0,_t,19,23,"div",0),c&2){let C;uM((C=g.listingValue())?0:-1,C);}},dependencies:[fs,H_,L_,H,U,oi$1,Ge,ci,p$3,_e$1,ae$1,R,G,fi,pi,rt$1,Z,bi,xe],styles:["tm-motors-tier-four-search-card[_nghost-%COMP%]{display:block}tm-motors-tier-four-search-card[_nghost-%COMP%]{display:block;position:relative}.tm-motors-tier-four-search-card__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:35% 65%;grid-template-rows:auto auto}@media(max-width:767px){.tm-motors-tier-four-search-card__container[_ngcontent-%COMP%]{grid-template-columns:45% 55%;grid-template-rows:auto auto}}@media(max-width:479px){.tm-motors-tier-four-search-card__container[_ngcontent-%COMP%]{grid-template-rows:auto auto auto;grid-template-columns:auto}}.tm-motors-tier-four-search-card__seller-listing-details-container[_ngcontent-%COMP%]{display:grid}.tm-motors-tier-four-search-card__listing-details-container[_ngcontent-%COMP%], .tm-motors-tier-four-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{overflow:hidden;padding:14px 32px 14px 16px;grid-row:1;grid-column:2;display:flex;flex-direction:column;justify-content:space-between}@media(max-width:600px){.tm-motors-tier-four-search-card__listing-details-container[_ngcontent-%COMP%], .tm-motors-tier-four-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{padding:10px 12px}}@media(max-width:479px){.tm-motors-tier-four-search-card__listing-details-container[_ngcontent-%COMP%], .tm-motors-tier-four-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{grid-row:3;grid-column:1;justify-content:space-between}}.tm-motors-tier-four-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{grid-row:span 2;grid-column:2}@media(max-width:479px){.tm-motors-tier-four-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{grid-row:3;grid-column:1}}.tm-motors-tier-four-search-card__seller-container[_ngcontent-%COMP%]{grid-row:2;grid-column:1;height:50px}@media(max-width:479px){.tm-motors-tier-four-search-card__seller-container[_ngcontent-%COMP%]{grid-row:2;grid-column:1;height:32px}}.tm-motors-tier-four-search-card__image-container[_ngcontent-%COMP%]{grid-row:1;grid-column:1}@media(max-width:479px){.tm-motors-tier-four-search-card__image-container[_ngcontent-%COMP%]{grid-row:1;grid-column:1}}.tm-motors-tier-four-search-card__listed-date[_ngcontent-%COMP%]{display:flex;font-size:.75rem;line-height:16px}.tm-motors-tier-four-search-card__attributes[_ngcontent-%COMP%]{padding-top:20px}@media(max-width:767px){.tm-motors-tier-four-search-card__attributes[_ngcontent-%COMP%]{padding-top:6px}}.tm-motors-tier-four-search-card__price[_ngcontent-%COMP%]{padding-top:12px;font-weight:500;color:#44413d}@media(max-width:479px){.tm-motors-tier-four-search-card__price[_ngcontent-%COMP%]{padding-top:6px}}.tm-motors-tier-four-search-card__flag[_ngcontent-%COMP%]{padding:12px;font-size:.875rem;font-weight:400}.tm-motors-tier-four-search-card__on-road-costs[_ngcontent-%COMP%]{font-size:.75rem}.tm-motors-tier-four-search-card__new-vehicle-availability-badges[_ngcontent-%COMP%]{grid-row:2;grid-column:2;display:flex;gap:8px;margin:0 32px 12px 18px;padding-top:12px;border-top:1px #e8e6e3 solid}@media(max-width:767px){.tm-motors-tier-four-search-card__new-vehicle-availability-badges[_ngcontent-%COMP%]{margin:0 12px 12px 18px}}@media(max-width:479px){.tm-motors-tier-four-search-card__new-vehicle-availability-badges[_ngcontent-%COMP%]{grid-row:4;grid-column:1;margin:0 12px 12px}}.tm-motors-tier-four-search-card__flag[_ngcontent-%COMP%]{padding:10px;font-size:.875rem;font-weight:400}@media(max-width:479px){.tm-motors-tier-four-search-card__flag[_ngcontent-%COMP%]{font-size:12px;font-weight:500}}.tm-motors-tier-four-search-card__top-left-badges[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;border-radius:0}.tm-motors-tier-four-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-four-search-card__flag[_ngcontent-%COMP%]{padding-right:4px}.tm-motors-tier-four-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-four-search-card__vir-overlay-badge[_ngcontent-%COMP%]{padding:0}.tm-motors-tier-four-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-four-search-card__vir-overlay-badge[_ngcontent-%COMP%]:first-child{padding:12px}"]});let e=r;return e})();function ht(e,r){if(e&1&&(Bs(0,"div",4),gy(1,"img",5),_d()),e&2){let i=NM(),t=i.$implicit,c=i.isFirst,g=NM(2);aC(),my("tmSrc",t.url)("isLCPImage",c&&g.cardPositionInList()<2);}}function Ct(e,r){if(e&1&&(Bs(0,"div",6),gy(1,"img",7),_d(),Bs(2,"div",8),gy(3,"img",9),_d(),Bs(4,"div",10),gy(5,"img",9),_d()),e&2){let i=NM(),t=i.$implicit,c=i.isFirst,g=NM(2);aC(),my("tmSrc",t[0].url)("isLCPImage",c&&g.cardPositionInList()<2),aC(2),my("tmSrc",t[1].url),aC(2),my("tmSrc",t[2].url);}}function ut(e,r){if(e&1&&(Bs(0,"tm-image-viewer3-item",3),lM(1,ht,2,2,"div",4)(2,Ct,6,4),_d()),e&2){let i=r.$implicit;aC(),uM(i.url?1:i?.[0]&&i?.[1]&&i?.[2]?2:-1);}}function ft(e,r){if(e&1&&(Bs(0,"tm-image-viewer3",1),Qv(1,ut,3,1,"ng-template"),_d()),e&2){let i=NM();my("items",i.photos());}}function xt(e,r){e&1&&gy(0,"tm-no-image",2);}var $e=(()=>{var r;let i=class i{constructor(){F$1(this,r);this.photoUrls=mW(),this.pictureHref=mW(),this.motorsFrEndSearchCardsSmartCropEnabled=mW(false),this.isSdOrGreater=mW(false),this.cardPositionInList=mW(),G$4(this,r,I(w)),this.photos=Zt$1(()=>{let c=this.pictureHref(),g=this.photoUrls(),C=this.motorsFrEndSearchCardsSmartCropEnabled(),Ze
5=this.isSdOrGreater(),me=[...c?[c]:[],...g??[]],_e=me.map(he=>({url:E(this,r).convertImageSize(C&&Ze?he.replace("photoserver","motors/crop"):he,t.cropped_480x360)}));if(me.length<3)return _e;let[et,tt,it]=me;return [[{url:E(this,r).convertImageSize(et,t.fullSize)},{url:E(this,r).convertImageSize(tt,t.large_colouredBackground)},{url:E(this,r).convertImageSize(it,t.large_colouredBackground)}],..._e]});}};r=new WeakMap,i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=z_({type:i,selectors:[["tm-image-gallery-carousel"]],inputs:{photoUrls:[1,"photoUrls"],pictureHref:[1,"pictureHref"],motorsFrEndSearchCardsSmartCropEnabled:[1,"motorsFrEndSearchCardsSmartCropEnabled"],isSdOrGreater:[1,"isSdOrGreater"],cardPositionInList:[1,"cardPositionInList"]},decls:3,vars:1,consts:[[1,"tm-image-gallery-carousel-container"],[1,"tm-image-gallery-carousel__viewer",3,"items"],[1,"tm-image-gallery-carousel__viewer"],[1,"tm-image-gallery-carousel__item"],[1,"tm-image-gallery-carousel__single-image"],["sizes","(max-width: 1023px) 100vw, 50vw",3,"tmSrc","isLCPImage"],[1,"tm-image-gallery-carousel__primary-image"],["sizes","(max-width: 479px) 100vw, (max-width: 1023px) 70vw, 50vw",3,"tmSrc","isLCPImage"],[1,"tm-image-gallery-carousel__secondary-image"],["sizes","(max-width: 479px) 50vw, (max-width: 1023px) 30vw, 25vw",3,"tmSrc"],[1,"tm-image-gallery-carousel__tertiary-image"]],template:function(g,C){g&1&&(Bs(0,"div",0),lM(1,ft,2,1,"tm-image-viewer3",1)(2,xt,1,0,"tm-no-image",2),_d()),g&2&&(aC(),uM(C.photos()?.length>0?1:2));},dependencies:[f,f$1,Pe,Ae,C],styles:[".tm-image-gallery-carousel__viewer[_ngcontent-%COMP%]{aspect-ratio:4/3}@media(min-width:480px){.tm-image-gallery-carousel__viewer[_ngcontent-%COMP%]{aspect-ratio:2/1}}.tm-image-gallery-carousel__item[_ngcontent-%COMP%]{display:grid;gap:1px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));background-color:#e8e6e3}@media(min-width:480px){.tm-image-gallery-carousel__item[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}}.tm-image-gallery-carousel__item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.tm-image-gallery-carousel__single-image[_ngcontent-%COMP%]{grid-column:span 2;grid-row:span 3}@media(min-width:480px){.tm-image-gallery-carousel__single-image[_ngcontent-%COMP%]{grid-column:span 3;grid-row:span 2}}.tm-image-gallery-carousel__primary-image[_ngcontent-%COMP%]{grid-row:span 2;grid-column:span 2}.tm-image-gallery-carousel__secondary-image[_ngcontent-%COMP%], .tm-image-gallery-carousel__tertiary-image[_ngcontent-%COMP%]{display:flex}"]}
5);let e=i;return e})();function wt(e,r){e&1&&gy(0,"tm-special-offer-badge",17);}function St(e,r){if(e&1&&gy(0,"tm-saving-amount",18),e&2){let i=NM(2);my("listingValue",i);}}function Mt(e,r){e&1&&gy(0,"tm-vir-badge",19);}function bt(e,r){if(e&1&&(Bs(0,"tg-sticker2",3)(1,"div",16),lM(2,wt,1,0,"tm-special-offer-badge",17),lM(3,St,1,1,"tm-saving-amount",18),lM(4,Mt,1,0,"tm-vir-badge",19),_d()()),e&2){let i=NM(),t=NM();aC(2),uM(i.hasSpecialOffer?2:-1),aC(),uM(i.wasPrice&&!i.hasSpecialOffer?3:-1),aC(),uM(t.showVirOverlay()?4:-1);}}function yt(e,r){e&1&&(Bs(0,"tg-sticker2",4),gy(1,"tm-motors-instavid-spin-badge",17),_d());}function Tt(e,r){if(e&1&&(Bs(0,"div",10),cN(1),_d()),e&2){let i=NM();aC(),Od(" ",i.subtitle," ");}}function Ot(e,r){if(e&1&&(Bs(0,"div",11),gy(1,"tm-search-card-attributes",20),_d()),e&2){let i=NM(),t=NM();aC(),my("listingValue",i)("numberOfAttributesToDisplay",t.numAttributesToDisplay());}}function Pt(e,r){if(e&1&&gy(0,"tm-new-vehicle-badge",21),e&2){let i=NM(2),t=NM();my("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.availability)("newVehicleBadgeValue",i.newCarInformation.availability);}}function Vt(e,r){if(e&1&&gy(0,"tm-new-vehicle-badge",21),e&2){let i=NM(2),t=NM();my("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.condition)("newVehicleBadgeValue",i.newCarInformation.condition);}}function Et(e,r){e&1&&gy(0,"tm-vir-badge",22);}function It(e,r){if(e&1&&(Bs(0,"div",15),lM(1,Pt,1,2,"tm-new-vehicle-badge",21),lM(2,Vt,1,2,"tm-new-vehicle-badge",21),lM(3,Et,1,0,"tm-vir-badge",22),_d()),e&2){let i=NM(),t=NM();aC(),uM(i.newCarInformation?.availability?1:-1),aC(),uM(i.newCarInformation?.condition?2:-1),aC(),uM(t.showVirInline()?3:-1);}}function Dt(e,r){if(e&1&&(Bs(0,"div",0)(1,"tg-sticker2-wrapper",1),gy(2,"tm-image-gallery-carousel",2),lM(3,bt,5,3,"tg-sticker2",3),lM(4,yt,2,0,"tg-sticker2",4),_d(),gy(5,"tm-seller-container",5),Bs(6,"div",6)(7,"div",7),gy(8,"tm-motors-closing-time",8),_d(),gy(9,"tm-motors-search-card-title",9),lM(10,Tt,2,1,"div",10),lM(11,Ot,2,2,"div",11),Bs(12,"div",12),gy(13,"tm-search-card-price",13),_d(),gy(14,"tm-on-road-costs",14),lM(15,It,4,3,"div",15),_d()()),e&2){let i=r,t=NM();aC(2),my("photoUrls",i.photoUrls)("pictureHref",i.pictureHref)("motorsFrEndSearchCardsSmartCropEnabled",t.motorsFrEndSearchCardsSmartCropEnabled())("isSdOrGreater",t.isSdOrGreater())("cardPositionInList",t.cardPositionInList()),aC(),uM(i.hasSpecialOffer||i.wasPrice||t.showVirOverlay()?3:-1),aC(),uM(i.motorsExternalMediaOverview?.hasInstavid360Spinner?4:-1),aC(),my("listingValue",i)("showDealerLogo",true),aC(3),my("listing",i),aC(),my("searchCardTier",i.searchCardTier)("listingTitle",i.title)("modelDetails",i.modelDetail),aC(),uM(i.subtitle?10:-1),aC(),uM(i.searchResultAttributes?.length>0?11:-1),aC(2),my("listingValue",i),aC(),my("isCompact",!t.isSdOrGreater())("listingValue",i),aC(),uM(i.newCarInformation||t.showVirInline()?15:-1);}}var Je=(()=>{let r=class r{constructor(){this._mediaSizeFacade=I(G$3),this._mediaSize=F(this._mediaSizeFacade.getMediaSize()),this._virService=I(A),this.listingValue=mW.required(),this.cardPositionInList=mW(),this.motorsFrEndSearchCardsSmartCropEnabled=mW(false),this.isSdOrGreater=mW(false),this.NewVehicleBadgeTypeEnum=w$1,this.isVirCtaEligible=Zt$1(()=>this._virService.isVirCtaEligible(this.listingValue())),this.showVirOverlay=Zt$1(()=>this.isVirCtaEligible()&&this.isSdOrGreater()),this.showVirInline=Zt$1(()=>this.isVirCtaEligible()&&!this.isSdOrGreater()),this.numAttributesToDisplay=Zt$1(()=>{let t=this._mediaSize();return t?.isSm&&!t?.isSd?3:5});}};r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=z_({type:r,selectors:[["tm-motors-tier-one-search-card"]],inputs:{listingValue:[1,"listingValue"],cardPositionInList:[1,"cardPositionInList"],motorsFrEndSearchCardsSmartCropEnabled:[1,"motorsFrEndSearchCardsSmartCropEnabled"],isSdOrGreater:[1,"isSdOrGreater"]},decls:1,vars:1,consts:[[1,"tm-motors-tier-one-search-card__container"],[1,"tm-motors-tier-one-search-card__image-container"],[3,"photoUrls","pictureHref","motorsFrEndSearchCardsSmartCropEnabled","isSdOrGreater","cardPositionInList"],["position","top-left"],["position","bottom-right"],[1,"tm-motors-tier-one-search-card__seller-container",3,"listingValue","showDealerLogo"],[1,"tm-motors-tier-one-search-card__listing-details-container"],[1,"tm-motors-tier-one-search-card__listed-date"],[3,"listing"],[3,"searchCardTier","listingTitle","modelDetails"],[1,"tm-motors-tier-one-search-card__subtitle"],[1,"tm-motors-tier-one-search-card__attributes"],[1,"tm-motors-tier-one-search-card__price"],[3,"listingValue"],[1,"tm-motors-tier-one-search-card__on-road-costs",3,"isCompact","listingValue"],[1,"tm-motors-tier-one-search-card__new-vehicle-availability-badges"],[1,"tm-motors-tier-one-search-card__top-left-badges"],[1,"tm-motors-tier-one-search-card__flag"],[1,"tm-motors-tier-one-search-card__flag",3,"listingValue"],[1,"tm-motors-tier-one-search-card__flag","tm-motors-tier-one-search-card__vir-overlay-badge"],[3,"listingValue","numberOfAttributesToDisplay"],["compact","",3,"newVehicleBadgeType","newVehicleBadgeValue"],["compact",""]],template:function(c,g){if(c&1&&lM(0,Dt,16,19,"div",0),c&2){let C;uM((C=g.listingValue())?0:-1,C);}},dependencies:[fs,H_,L_,H,U,$e,ci,rt$1,Z,fi,pi,p$3,Ti,Si,R,G,_e$1,ae$1,X,K,bi,xe],styles:["tm-motors-tier-one-search-card[_nghost-%COMP%]{display:block;position:relative}.tm-motors-tier-one-search-card__link.o-card[_ngcontent-%COMP%]{margin-bottom:0;box-shadow:0 6px 4px -4px #0000001a}.tm-motors-tier-one-search-card__link.o-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #0000001a}.tm-motors-tier-one-search-card__link.o-card[_ngcontent-%COMP%]:active{box-shadow:0 1px 2px #0000001a}.tm-motors-tier-one-search-card__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:25% 75%;grid-template-rows:auto auto}@media(max-width:479px){.tm-motors-tier-one-search-card__container[_ngcontent-%COMP%]{grid-template-rows:auto auto auto;grid-template-columns:auto}}.tm-motors-tier-one-search-card__seller-listing-details-container[_ngcontent-%COMP%]{display:grid}.tm-motors-tier-one-search-card__listing-details-container[_ngcontent-%COMP%]{overflow:hidden;padding:10px 12px 14px;grid-row:2;grid-column:2}@media(max-width:479px){.tm-motors-tier-one-search-card__listing-details-container[_ngcontent-%COMP%]{grid-row:3;grid-column:1;padding:8px 12px 14px}}.tm-motors-tier-one-search-card__seller-container[_ngcontent-%COMP%]{grid-row:2;grid-column:1}@media(max-width:479px){.tm-motors-tier-one-search-card__seller-container[_ngcontent-%COMP%]{grid-row:2;grid-column:1;height:46px}}.tm-motors-tier-one-search-card__image-container[_ngcontent-%COMP%]{grid-row:1;grid-column:span 2}@media(max-width:479px){.tm-motors-tier-one-search-card__image-container[_ngcontent-%COMP%]{grid-row:1;grid-column:1}}.tm-motors-tier-one-search-card__listed-date[_ngcontent-%COMP%]{display:flex;font-size:.75rem}.tm-motors-tier-one-search-card__subtitle[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;flex-wrap:wrap}.tm-motors-tier-one-search-card__attributes[_ngcontent-%COMP%]{padding-top:12px}@media(max-width:479px){.tm-motors-tier-one-search-card__attributes[_ngcontent-%COMP%]{padding-top:4px}}.tm-motors-tier-one-search-card__price[_ngcontent-%COMP%]{padding-top:12px}@media(max-width:479px){.tm-motors-tier-one-search-card__price[_ngcontent-%COMP%]{font-size:.875rem;padding-top:4px}}.tm-motors-tier-one-search-card__on-road-costs[_ngcontent-%COMP%]{font-size:.75rem}@media(max-width:479px){.tm-motors-tier-one-search-card__on-road-costs[_ngcontent-%COMP%]{line-height:18px}}.tm-motors-tier-one-search-card__new-vehicle-availability-badges[_ngcontent-%COMP%]{border-top:1px solid #e8e6e3;margin-top:12px;padding-top:12px;padding-bottom:2px;display:flex;flex-wrap:wrap;gap:8px}.tm-motors-tier-one-search-card__flag[_ngcontent-%COMP%]{padding:12px;font-size:.875rem;font-weight:400}@media(max-width:479px){.tm-motors-tier-one-search-card__flag[_ngcontent-%COMP%]{font-size:12px;font-weight:500}}.tm-motors-tier-one-search-card__top-left-badges[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;border-radius:0}.tm-motors-tier-one-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-one-search-card__flag[_ngcontent-%COMP%]{padding-right:4px}.tm-motors-tier-one-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-one-search-card__vir-overlay-badge[_ngcontent-%COMP%]{padding:0}.tm-motors-tier-one-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-one-search-card__vir-overlay-badge[_ngcontent-%COMP%]:first-child{padding:12px}"]});let e=r;return e})();function Lt(e,r){e&1&&(Bs(0,"tg-sticker2",3),gy(1,"tm-motors-instavid-spin-badge",16),_d());}function Nt(e,r){if(e&1&&gy(0,"tm-saving-amount",18),e&2){let i=NM(2);my("listingValue",i);}}function kt(e,r){e&1&&gy(0,"tm-vir-badge",19);}function Ft(e,r){if(e&1&&(Bs(0,"tg-sticker2",4)(1,"div",17),lM(2,Nt,1,1,"tm-saving-amount",18),lM(3,kt,1,0,"tm-vir-badge",19),_d()()),e&2){let i=NM(),t=NM();aC(2),uM(i.wasPrice?2:-1),aC(),uM(t.showVirOverlay()?3:-1);}}function zt(e,r){if(e&1&&(Bs(0,"div",9),cN(1),_d()),e&2){let i=NM();aC(),Od(" ",i.subtitle," ");}}function Bt(e,r){if(e&1&&(Bs(0,"div",10),gy(1,"tm-search-card-attributes",20),_d()),e&2){let i=NM(),t=NM();aC(),my("numberOfAttributesToDisplay",t.numAttributesToDisplay())("listingValue",i);}}function At(e,r){if(e&1&&gy(0,"tm-new-vehicle-badge",22)(1,"tm-new-vehicle-badge",22),e&2){let i=NM(2),t=NM();my("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.availability)("newVehicleBadgeValue",i.newCarInformation.availability),aC(),my("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.condition)("newVehicleBadgeValue",i.newCarInformation.condition);}}function Gt(e,r){e&1&&gy(0,"tm-vir-badge",21);}function Rt(e,r){if(e&1&&(Bs(0,"div",15),lM(1,At,2,4),lM(2,Gt,1,0,"tm-vir-badge",21),_d()),e&2){let i=NM(),t=NM();aC(),uM(i.newCarInformation?1:-1),aC(),uM(t.showVirInline()?2:-1);}}function Ut(e,r){if(e&1&&(Bs(0,"div",0)(1,"tg-sticker2-wrapper",1),gy(2,"tm-image-carousel",2),lM(3,Lt,2,0,"tg-sticker2",3),lM(4,Ft,4,2,"tg-sticker2",4),_d(),gy(5,"tm-seller-container",5),Bs(6,"div")(7,"div")(8,"div",6),gy(9,"tm-motors-closing-time",7),_d(),gy(10,"tm-motors-search-card-title",8),lM(11,zt,2,1,"div",9),lM(12,Bt,2,2,"div",10),_d(),Bs(13,"div")(14,"div",11),gy(15,"tm-search-card-price",12),_d(),Bs(16,"div",13),gy(17,"tm-on-road-costs",14),_d()()(),lM(18,Rt,3,2,"div",15),_d()),e&2){let i=r,t=NM();aC(2),my("aspectRatio",t.imageAspectRatio())("photoUrls",i.photoUrls)("pictureHref",i.pictureHref)("cardPositionInList",t.cardPositionInList()),aC(),uM(i.motorsExternalMediaOverview?.hasInstavid360Spinner?3:-1),aC(),uM(i.wasPrice||t.showVirOverlay()?4:-1),aC(),my("listingValue",i)("showDealerLogo",false)("showDealerName",false),aC(),jy("tm-motors-tier-three-search-card__listing-details-container",!!i.newCarInformation||t.showVirInline())("tm-motors-tier-three-search-card__listing-details-container-no-franchise",!i.newCarInformation&&!t.showVirInline()),aC(3),my("listing",i),aC(),my("searchCardTier",i.searchCardTier)("listingTitle",i.title)("modelDetails",i.modelDetail),aC(),uM(i.subtitle?11:-1),aC(),uM(i.searchResultAttributes?.length>0?12:-1),aC(3),my("listingValue",i),aC(2),my("isCompact",t.isMobile())("listingValue",i),aC(),uM(i.newCarInformation||t.showVirInline()?18:-1);}}var Ke=(()=>
5{let r=class r{constructor(){this._mediaSizeFacade=I(G$3),this._virService=I(A),this._mediaSize=F(this._mediaSizeFacade.getMediaSize()),this._isSdOrGreater=F(this._mediaSizeFacade.is.sd$.or.greater$,{initialValue:false}),this.listingValue=mW.required(),this.cardPositionInList=mW(),this.NewVehicleBadgeTypeEnum=w$1,this.imageAspectRatio=Zt$1(()=>this._isSdOrGreater()?"4/3":"4/2.7"),this.numAttributesToDisplay=Zt$1(()=>{let t=this._mediaSize();return (t?.isSm||t?.isSd)&&!t?.isMd?3:5}),this.isMobile=Zt$1(()=>!this._isSdOrGreater()),this.isVirCtaEligible=Zt$1(()=>this._virService.isVirCtaEligible(this.listingValue())),this.showVirOverlay=Zt$1(()=>this.isVirCtaEligible()&&this._isSdOrGreater()&&!this.listingValue().wasPrice),this.showVirInline=Zt$1(()=>this.isVirCtaEligible()&&(!this._isSdOrGreater()||!!this.listingValue().wasPrice));}};r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=z_({type:r,selectors:[["tm-motors-tier-three-search-card"]],inputs:{listingValue:[1,"listingValue"],cardPositionInList:[1,"cardPositionInList"]},decls:1,vars:1,consts:[[1,"tm-motors-tier-three-search-card__container"],[1,"tm-motors-tier-three-search-card__image-container"],[3,"aspectRatio","photoUrls","pictureHref","cardPositionInList"],["position","bottom-right"],["position","top-left"],[1,"tm-motors-tier-three-search-card__seller-container",3,"listingValue","showDealerLogo","showDealerName"],[1,"tm-motors-tier-three-search-card__listed-date"],[3,"listing"],[3,"searchCardTier","listingTitle","modelDetails"],[1,"tm-motors-tier-three-search-card__subtitle"],[1,"tm-motors-tier-three-search-card__attributes"],[1,"tm-motors-tier-three-search-card__price"],[3,"listingValue"],[1,"tm-motors-tier-three-search-card__on-road-costs"],[3,"isCompact","listingValue"],[1,"tm-motors-tier-three-search-card__new-vehicle-availability-badges"],[1,"tm-motors-tier-three-search-card__flag"],[1,"tm-motors-tier-three-search-card__top-left-badges"],[1,"tm-motors-tier-three-search-card__flag",3,"listingValue"],[1,"tm-motors-tier-three-search-card__flag","tm-motors-tier-three-search-card__vir-overlay-badge"],[3,"numberOfAttributesToDisplay","listingValue"],["compact",""],["compact","true",3,"newVehicleBadgeType","newVehicleBadgeValue"]],template:function(c,g){if(c&1&&lM(0,Ut,19,23,"div",0),c&2){let C;uM((C=g.listingValue())?0:-1,C);}},dependencies:[fs,H_,L_,H,U,oi$1,Ge,ci,p$3,_e$1,ae$1,R,G,X,K,fi,pi,rt$1,Z,bi,xe],styles:["tm-motors-tier-three-search-card[_nghost-%COMP%]{display:block}.tm-motors-tier-three-search-card__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:45% 55%;grid-template-rows:auto auto}@media(max-width:479px){.tm-motors-tier-three-search-card__container[_ngcontent-%COMP%]{grid-template-rows:auto auto auto;grid-template-columns:auto}}.tm-motors-tier-three-search-card__image-container[_ngcontent-%COMP%]{grid-row:1;grid-column:1}@media(max-width:479px){.tm-motors-tier-three-search-card__image-container[_ngcontent-%COMP%]{grid-row:1;grid-column:1;overflow:hidden}}.tm-motors-tier-three-search-card__seller-container[_ngcontent-%COMP%]{grid-row:2;grid-column:1;height:50px}@media(max-width:479px){.tm-motors-tier-three-search-card__seller-container[_ngcontent-%COMP%]{grid-row:2;grid-column:1;height:32px}}.tm-motors-tier-three-search-card__listing-details-container[_ngcontent-%COMP%], .tm-motors-tier-three-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{overflow:hidden;padding:18px 32px 8px 18px;grid-row:1;grid-column:2;display:flex;flex-direction:column;justify-content:space-between}@media(max-width:767px){.tm-motors-tier-three-search-card__listing-details-container[_ngcontent-%COMP%], .tm-motors-tier-three-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{padding:18px 12px 8px 18px}}@media(max-width:479px){.tm-motors-tier-three-search-card__listing-details-container[_ngcontent-%COMP%], .tm-motors-tier-three-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{grid-row:3;grid-column:1;padding:8px 12px 0}}.tm-motors-tier-three-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{grid-row:span 2;grid-column:2}@media(max-width:479px){.tm-motors-tier-three-search-card__listing-details-container-no-franchise[_ngcontent-%COMP%]{grid-row:3;grid-column:1}}.tm-motors-tier-three-search-card__new-vehicle-availability-badges[_ngcontent-%COMP%]{grid-row:2;grid-column:2;display:flex;gap:8px;margin:0 32px 12px 18px;padding-top:12px;border-top:1px #e8e6e3 solid}@media(max-width:767px){.tm-motors-tier-three-search-card__new-vehicle-availability-badges[_ngcontent-%COMP%]{margin:0 12px 12px 18px}}@media(max-width:479px){.tm-motors-tier-three-search-card__new-vehicle-availability-badges[_ngcontent-%COMP%]{grid-row:4;grid-column:1;margin:0 12px 12px}}.tm-motors-tier-three-search-card__listed-date[_ngcontent-%COMP%]{display:flex;font-size:.75rem;line-height:16px}.tm-motors-tier-three-search-card__subtitle[_ngcontent-%COMP%]{color:#6560
55d;font-weight:400;font-size:.875rem;flex-wrap:wrap;line-height:20px}@media(max-width:479px){.tm-motors-tier-three-search-card__subtitle[_ngcontent-%COMP%]{padding-top:4px}}.tm-motors-tier-three-search-card__attributes[_ngcontent-%COMP%]{padding-top:20px}@media(max-width:767px){.tm-motors-tier-three-search-card__attributes[_ngcontent-%COMP%]{padding-top:6px}}.tm-motors-tier-three-search-card__price[_ngcontent-%COMP%]{font-weight:500}@media(max-width:767px){.tm-motors-tier-three-search-card__price[_ngcontent-%COMP%]{font-size:.875rem;line-height:20px;padding-top:6px}}.tm-motors-tier-three-search-card__on-road-costs[_ngcontent-%COMP%]{font-size:.75rem}@media(max-width:479px){.tm-motors-tier-three-search-card__on-road-costs[_ngcontent-%COMP%]{padding-bottom:8px;line-height:16px;padding-top:2px}}.tm-motors-tier-three-search-card__flag[_ngcontent-%COMP%]{padding:10px;font-size:.875rem;font-weight:400}@media(max-width:767px){.tm-motors-tier-three-search-card__flag[_ngcontent-%COMP%]{font-size:12px;font-weight:500}}.tm-motors-tier-three-search-card__top-left-badges[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;border-radius:0}.tm-motors-tier-three-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-three-search-card__flag[_ngcontent-%COMP%]{padding-right:4px}.tm-motors-tier-three-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-three-search-card__vir-overlay-badge[_ngcontent-%COMP%]{padding:0}.tm-motors-tier-three-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-three-search-card__vir-overlay-badge[_ngcontent-%COMP%]:first-child{padding:12px}"]});let e=r;return e})();function Ht(e,r){e&1&&gy(0,"tm-special-offer-badge",17);}function jt(e,r){if(e&1&&gy(0,"tm-saving-amount",18),e&2){let i=NM(2);my("listingValue",i);}}function Qt(e,r){e&1&&gy(0,"tm-vir-badge",19);}function qt(e,r){if(e&1&&(Bs(0,"tg-sticker2",3)(1,"div",16),lM(2,Ht,1,0,"tm-special-offer-badge",17),lM(3,jt,1,1,"tm-saving-amount",18),lM(4,Qt,1,0,"tm-vir-badge",19),_d()()),e&2){let i=NM(),t=NM();aC(2),uM(i.hasSpecialOffer?2:-1),aC(),uM(i.wasPrice&&!i.hasSpecialOffer?3:-1),aC(),uM(t.showVirOverlay()?4:-1);}}function $t(e,r){e&1&&(Bs(0,"tg-sticker2",4),gy(1,"tm-motors-instavid-spin-badge",17),_d());}function Wt(e,r){if(e&1&&(Bs(0,"div",10),cN(1),_d()),e&2){let i=NM();aC(),Od(" ",i.subtitle," ");}}function Jt(e,r){if(e&1&&(Bs(0,"div",11),gy(1,"tm-search-card-attributes",20),_d()),e&2){let i=NM(),t=NM();aC(),my("listingValue",i)("numberOfAttributesToDisplay",t.numAttributesToDisplay());}}function Kt(e,r){if(e&1&&gy(0,"tm-new-vehicle-badge",21),e&2){let i=NM(2),t=NM();my("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.availability)("newVehicleBadgeValue",i.newCarInformation.availability);}}function Xt(e,r){if(e&1&&gy(0,"tm-new-vehicle-badge",21),e&2){let i=NM(2),t=NM();my("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.condition)("newVehicleBadgeValue",i.newCarInformation.condition);}}function Yt(e,r){e&1&&gy(0,"tm-vir-badge",22);}function Zt(e,r){if(e&1&&(Bs(0,"div",15),lM(1,Kt,1,2,"tm-new-vehicle-badge",21),lM(2,Xt,1,2,"tm-new-vehicle-badge",21),lM(3,Yt,1,0,"tm-vir-badge",22),_d()),e&2){let i=NM(),t=NM();aC(),uM(i.newCarInformation?.availability?1:-1),aC(),uM(i.newCarInformation?.condition?2:-1),aC(),uM(t.showVirInline()?3:-1);}}function ei(e,r){if(e&1&&(Bs(0,"div",0)(1,"tg-sticker2-wrapper",1),gy(2,"tm-image-carousel",2),lM(3,qt,5,3,"tg-sticker2",3),lM(4,$t,2,0,"tg-sticker2",4),_d(),gy(5,"tm-seller-container",5),Bs(6,"div",6)(7,"div",7),gy(8,"tm-motors-closing-time",8),_d(),gy(9,"tm-motors-search-card-title",9),lM(10,Wt,2,1,"div",10),lM(11,Jt,2,2,"div",11),Bs(12,"div",12),gy(13,"tm-search-card-price",13),_d(),gy(14,"tm-on-road-costs",14),lM(15,Zt,4,3,"div",15),_d()()),e&2){let i=r,t=NM();aC(2),my("aspectRatio",t.imageAspectRatio())("photoUrls",i.photoUrls)("pictureHref",i.pictureHref)("cardPositionInList",t.cardPositionInList())("motorsFrEndSearchCardsSmartCropEnabled",t.motorsFrEndSearchCardsSmartCropEnabled())("isSdOrGreater",t.isSdOrGreater()),aC(),uM(i.hasSpecialOffer||i.wasPrice||t.showVirOverlay()?3:-1),aC(),uM(i.motorsExternalMediaOverview?.hasInstavid360Spinner?4:-1),aC(),my("listingValue",i)("showDealerLogo",true),aC(3),my("listing",i),aC(),my("searchCardTier",i.searchCardTier)("listingTitle",i.title)("modelDetails",i.modelDetail),aC(),uM(i.subtitle?10:-1),aC(),uM(i.searchResultAttributes?.length>0?11:-1),aC(2),my("listingValue",i),aC(),my("isCompact",!t.isSdOrGreater())("listingValue",i),aC(),uM(i.newCarInformation||t.showVirInline()?15:-1);}}var Xe=(()=>
5{let r=class r{constructor(){this._mediaSizeFacade=I(G$3),this._mediaSize=F(this._mediaSizeFacade.getMediaSize()),this._virService=I(A),this.listingValue=mW.required(),this.cardPositionInList=mW(),this.motorsFrEndSearchCardsSmartCropEnabled=mW(false),this.isSdOrGreater=mW(false),this.NewVehicleBadgeTypeEnum=w$1,this.isVirCtaEligible=Zt$1(()=>this._virService.isVirCtaEligible(this.listingValue())),this.showVirOverlay=Zt$1(()=>this.isVirCtaEligible()&&this.isSdOrGreater()),this.showVirInline=Zt$1(()=>this.isVirCtaEligible()&&!this.isSdOrGreater()),this.imageAspectRatio=Zt$1(()=>this.isSdOrGreater()?"4/2":"4/3"),this.numAttributesToDisplay=Zt$1(()=>{let t=this._mediaSize();return t?.isSm&&!t?.isSd?3:5});}};r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=z_({type:r,selectors:[["tm-motors-tier-two-search-card"]],inputs:{listingValue:[1,"listingValue"],cardPositionInList:[1,"cardPositionInList"],motorsFrEndSearchCardsSmartCropEnabled:[1,"motorsFrEndSearchCardsSmartCropEnabled"],isSdOrGreater:[1,"isSdOrGreater"]},decls:1,vars:1,consts:[[1,"tm-motors-tier-two-search-card__container"],[1,"tm-motors-tier-two-search-card__image-container"],[3,"aspectRatio","photoUrls","pictureHref","cardPositionInList","motorsFrEndSearchCardsSmartCropEnabled","isSdOrGreater"],["position","top-left"],["position","bottom-right"],[1,"tm-motors-tier-two-search-card__seller-container",3,"listingValue","showDealerLogo"],[1,"tm-motors-tier-two-search-card__listing-details-container"],[1,"tm-motors-tier-two-search-card__listed-date"],[3,"listing"],[3,"searchCardTier","listingTitle","modelDetails"],[1,"tm-motors-tier-two-search-card__subtitle"],[1,"tm-motors-tier-two-search-card__attributes"],[1,"tm-motors-tier-two-search-card__price"],[3,"listingValue"],[1,"tm-motors-tier-two-search-card__on-road-costs",3,"isCompact","listingValue"],[1,"tm-motors-tier-two-search-card__new-vehicle-availability-badges"],[1,"tm-motors-tier-two-search-card__top-left-badges"],[1,"tm-motors-tier-two-search-card__flag"],[1,"tm-motors-tier-two-search-card__flag",3,"listingValue"],[1,"tm-motors-tier-two-search-card__flag","tm-motors-tier-two-search-card__vir-overlay-badge"],[3,"listingValue","numberOfAttributesToDisplay"],["compact","",3,"newVehicleBadgeType","newVehicleBadgeValue"],["compact",""]],template:function(c,g){if(c&1&&lM(0,ei,16,20,"div",0),c&2){let C;uM((C=g.listingValue())?0:-1,C);}},dependencies:[fs,H_,L_,H,U,oi$1,Ge,ci,rt$1,Z,fi,pi,p$3,Ti,Si,R,G,_e$1,ae$1,X,K,bi,xe],styles:["tm-motors-tier-two-search-card[_nghost-%COMP%]{display:block;position:relative}.tm-motors-tier-two-search-card__link.o-card[_ngcontent-%COMP%]{margin-bottom:0;box-shadow:0 6px 4px -4px #0000001a}.tm-motors-tier-two-search-card__link.o-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #0000001a}.tm-motors-tier-two-search-card__link.o-card[_ngcontent-%COMP%]:active{box-shadow:0 1px 2px #0000001a}.tm-motors-tier-two-search-card__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:25% 75%;grid-template-rows:auto auto}@media(max-width:479px){.tm-motors-tier-two-search-card__container[_ngcontent-%COMP%]{grid-template-rows:auto auto auto;grid-template-columns:auto}}.tm-motors-tier-two-search-card__seller-listing-details-container[_ngcontent-%COMP%]{display:grid}.tm-motors-tier-two-search-card__listing-details-container[_ngcontent-%COMP%]{overflow:hidden;padding:14px 16px;grid-row:2;grid-column:2}@media(max-width:479px){.tm-motors-tier-two-search-card__listing-details-container[_ngcontent-%COMP%]{grid-row:3;grid-column:1;padding:10px 12px}}.tm-motors-tier-two-search-card__seller-container[_ngcontent-%COMP%]{grid-row:2;grid-column:1}@media(max-width:479px){.tm-motors-tier-two-search-card__seller-container[_ngcontent-%COMP%]{grid-row:2;grid-column:1;height:46px}}.tm-motors-tier-two-search-card__image-container[_ngcontent-%COMP%]{grid-row:1;grid-column:span 2}@media(max-width:479px){.tm-motors-tier-two-search-card__image-container[_ngcontent-%COMP%]{grid-row:1;grid-column:1}}.tm-motors-tier-two-search-card__listed-date[_ngcontent-%COMP%]{display:flex;font-size:.75rem}.tm-motors-tier-two-search-card__subtitle[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tm-motors-tier-two-search-card__attributes[_ngcontent-%COMP%]{padding-top:12px}@media(max-width:479px){.tm-motors-tier-two-search-card__attributes[_ngcontent-%COMP%]{padding-top:4px}}.tm-motors-tier-two-search-card__price[_ngcontent-%COMP%]{padding-top:12px}@media(max-width:479px){.tm-motors-tier-two-search-card__price[_ngcontent-%COMP%]{font-size:.875rem;padding-top:4px}}.tm-motors-tier-two-search-card__on-road-costs[_ngcontent-%COMP%]{font-size:.75rem}@media(max-width:479px){.tm-motors-tier-two-search-card__on-road-costs[_ngcontent-%COMP%]{line-height:18px}}.tm-motors-tier-two-search-card__new-vehicle-availability-badges[_ngcontent-%COMP%]{border-top:1px solid #e8e6e3;margin-top:12px;padding-top:14px;padding-bottom:2px;display:flex;flex-wrap:wrap;gap:8px}.tm-motors-tier-two-search-card__flag[_ngcontent-%COMP%]{padding:12px;font-size:.875rem;font-weight:400}@media(max-width:479px){.tm-motors-tier-two-search-card__flag[_ngcontent-%COMP%]{font-size:12px;font-weight:500}}.tm-motors-tier-two-search-card__top-left-badges[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;border-radius:0}.tm-motors-tier-two-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-two-search-card__flag[_ngcontent-%COMP%]{padding-right:4px}.tm-motors-tier-two-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-two-search-card__vir-overlay-badge[_ngcontent-%COMP%]{padding:0}.tm-motors-tier-two-search-card__top-left-badges[_ngcontent-%COMP%] > .tm-motors-tier-two-search-card__vir-overlay-badge[_ngcontent-%COMP%]:first-child{padding:12px}"]});let e=r;return e})();var Ye=[{tier:xt$1.tier1},{tier:xt$1.tier2},{tier:xt$1.tier3},{tier:xt$1.tier4}];function ti(e,r){if(e&1&&gy(0,"tm-motors-tier-one-search-card",1),e&2){let i=NM(),t=NM();my("listingValue",i)("cardPositionInList",t.cardPositionInList())("motorsFrEndSearchCardsSmartCropEnabled",t.motorsFrEndSearchCardsSmartCropEnabled())("isSdOrGreater",t.isSdOrGreater());}}function ii(e,r){if(e&1&&gy(0,"tm-motors-tier-two-search-card",1),e&2){let i=NM(),t=NM();my("listingValue",i)("cardPositionInList",t.cardPositionInList())("motorsFrEndSearchCardsSmartCropEnabled",t.motorsFrEndSearchCardsSmartCropEnabled())("isSdOrGreater",t.isSdOrGreater());}}function ri(e,r){if(e&1&&gy(0,"tm-motors-tier-three-search-card",2),e&2){let i=NM(),t=NM();my("listingValue",i)("cardPositionInList",t.cardPositionInList());}}function oi(e,r){if(e&1&&gy(0,"tm-motors-tier-four-search-card",2),e&2){let i=NM(),t=NM();my("listingValue",i)("cardPositionInList",t.cardPositionInList());}}function ni(e,r){if(e&1&&(Bs(0,"a",0),lM(1,ti,1,4,"tm-motors-tier-one-search-card",1)(2,ii,1,4,"tm-motors-tier-two-search-card",1)(3,ri,1,2,"tm-motors-tier-three-search-card",2)(4,oi,1,2,"tm-motors-tier-four-search-card",2),_d(),gy(5,"tm-toggle-watchlist-button",3)),e&2){let i,t=NM();my("tmListingRouterLink",t.listing())("tmListingRouterLinkQueryParams",t.computedExtraListingQueryParams())("trackingId",t.gtmTieredSearchCardTrackingId)("data",t.gtmData()),aC(),uM((i=(i=t.tierTemplate())==null?null:i.tier)===t.searchCardTierEnum.tier1?1:i===t.searchCardTierEnum.tier2?2:i===t.searchCardTierEnum.tier3?3:i===t.searchCardTierEnum.tier4?4:-1),aC(4),my("viewMode",t.viewM
5ode())("overrideRsqid",t.computedExtraListingQueryParams()?.hsqid||t.computedExtraListingQueryParams()?.rsqid)("listing",t.listing())("trackingId",t.gtmTieredSearchCardWatchlistTrackingId)("data",t.gtmData());}}var ai="MotorsFrEndSearchCardsSmartCrop",si=[2168715,2712327,3033964,3334283,3208493,4725787,2897127,3393862,5009797,4218265,3394532,6905608,2331455,8063251,3725450,8258256,4335069,3725450,2331455,2410628,7500870,5157001,8258256,8703316,8063251,4218265,4515779,6905608,4665626],Po=(()=>{let r=class r{constructor(){this._categoryService=I(P),this._searchCardService=I(we),this._mediaSizeFacade=I(G$3),this.listingType=mW("car"),this.listing=mW.required(),this.cardPositionInList=mW(),this.viewMode=mW.required(),this.extraListingQueryParams=mW(),this.abFeatures=mW(),this.compact=mW(false),this.isSdOrGreater=F(this._mediaSizeFacade.is.sd$.or.greater$,{initialValue:false}),this.computedExtraListingQueryParams=p$1(this.listing,this.extraListingQueryParams),this.searchCardTierEnum=xt$1,this.gtmTieredSearchCardTrackingId="motors_tiered_search_card",this.gtmTieredSearchCardWatchlistTrackingId="motors_tiered_search_card_watchlist",this.listingValue=Zt$1(()=>{let t=this.listing(),c=this.listingType();if(t.category){let g=R$2(t.category);if(this._categoryService.isMotorBikes(g))return f$2(t)??p$2(t);if(this._categoryService.isBoats(g))return _(t)??p$2(t);let C=i(c,t);if(C!=null)return z(y$1({},C),{title:this._searchCardService.getTitle(C)})}return p$2(t)}),this.tierTemplate=Zt$1(()=>{let c=this.listingValue()?.searchCardTier||xt$1.tier1;return Ye.find(g=>g.tier===c)}),this.motorsFrEndSearchCardsSmartCropEnabled=Zt$1(()=>{let t=this.abFeatures();return t?t.find(g=>g.name===ai&&g.value==="true")!=null&&(this._isSmartCropEnabledForDealer()||this._isTurnersListing()):false}),this.gtmData=Zt$1(()=>{let t=this.listingValue();return {action:"click",id:t?.listingId,searchCardTier:t?.searchCardTier,memberId:t?.memberId}}),this.isTopTier=Zt$1(()=>{let t=this.tierTemplate()?.tier;return t===xt$1.tier1||t===xt$1.tier2}),this.isBottomTier=Zt$1(()=>{let t=this.tierTemplate()?.tier;return t===xt$1.tier3||t===xt$1.tier4});}_isSmartCropEnabledForDealer(){let t=this.listingValue();return t?.dealerSettings==null?false:t.dealerSettings.some(c=>c.code==="PhotoCropMode"&&c.value==="SmartCrop")}_isTurnersListing(){let t=this.listingValue()?.memberId;return t!=null&&si.includes(t)}};r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=z_({type:r,selectors:[["tm-motors-tiered-search-cards"]],hostAttrs:[1,"tm-tiered-search-card__list-view"],hostVars:4,hostBindings:function(c,g){c&2&&jy("tm-tiered-search-card__container",g.isTopTier())("tm-tiered-search-card__compact-container",g.isBottomTier());},inputs:{listingType:[1,"listingType"],listing:[1,"listing"],cardPositionInList:[1,"cardPositionInList"],viewMode:[1,"viewMode"],extraListingQueryParams:[1,"extraListingQueryParams"],abFeatures:[1,"abFeatures"],compact:[1,"compact"]},decls:1,vars:1,consts:[["tgCard","","rel","nofollow","tmTrackCustomClick","",1,"tm-tiered-search-card__link",3,"tmListingRouterLink","tmListingRouterLinkQueryParams","trackingId","data"],[3,"listingValue","cardPositionInList","motorsFrEndSearchCardsSmartCropEnabled","isSdOrGreater"],[3,"listingValue","cardPositionInList"],["tmTrackCustomClick","",3,"viewMode","overrideRsqid","listing","trackingId","data"]],template:function(c,g){if(c&1&&lM(0,ni,6,10),c&2){let C;uM((C=g.listingValue())?0:-1,C);}},dependencies:[Q_,g,p,Je,Xe,Ke,qe,nt$1,S],styles:[`tm-tiered-search-card:host{display:block;position:relative}.tm-tiered-search-card__container,.tm-tiered-search-card__compact-container{position:relative;margin-bottom:24px}@media(max-width:479px){.tm-tiered-search-card__compact-container{margin-right:16px;margin-left:16px}.tm-tiered-search-card__compact-container .tm-toggle-watchlist-button__placeholder-wrapper{border-radius:0 8px 0 0!important}.tm-tiered-search-card__compact-container .o-card{border-radius:8px!important}}.tm-tiered-search-card__container>.o-card,.tm-tiered-search-card__compact-container>.o-card{overflow:hidden;margin-bottom:0;border-radius:8px 10px 8px 8px;
5transition:box-shadow .2s ease-out}.tm-tiered-search-card__container>.o-card:hover,.tm-tiered-search-card__compact-container>.o-card:hover{box-shadow:0 4px 8px #0000001a}.tm-tiered-search-card__container{position:relative;margin-bottom:24px}.tm-tiered-search-card__list-view,.tm-tiered-search-card__card-view{width:100%}.tm-tiered-search-card__container>.o-card{overflow:hidden;margin-bottom:0;border-radius:8px 10px 8px 8px;transition:box-shadow .2s ease-out}.tm-tiered-search-card__container>.o-card:hover{box-shadow:0 4px 8px #0000001a}.tm-tiered-search-card__link{color:#76716d}.tm-tiered-search-card__link:hover,.tm-tiered-search-card__link:active,.tm-tiered-search-card__link:focus{color:#76716d;text-decoration:none}.tm-tiered-search-card__link:visited{color:#76716d} 6`],encapsulation:2});let e=r;return e})();var tieredSearchCardContainer_componentC4O6GCJT=/*#__PURE__*/Object.freeze({__proto__:null,TieredSearchCardContainerComponent:Po});export{G,Po as P,R,Si as S,Ti as T,Vt$1 as V,Rt$1 as a,G$1 as b,Ge as c,ci as d,bi as e,fi as f,oi$1 as o,pi as p,tieredSearchCardContainer_componentC4O6GCJT as t,xe as x};//# sourceMappingURL=tiered-search-card-container.component-DS2CA257.js.map 7 8//# debugId=b7fa3148-8b78-5f7d-83b7-e3ee48acdd9a
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.