PageSourceSearch

https://www.trademe.co.nz/a/static/tiered-search-card-container.component-Dg7t2XYE.js

js trademe.co.nz collected 2026-09-24 08:42:19 UTC 79,600 bytes, 8 lines download raw bytes

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]="1ac61da6-21f7-574b-9ed3-6b637c0d213b")}catch(e){}}();
3import {l as lt,i as it,Y as Y$1}from'./chunk-CFC3HuRe.js';import {V as Ve$1,j as je,J as Je}from'./chunk-BVovkmCv.js';import {R as R$1,M}from'./chunk-D8j22_k-.js';import {c as ct,I as Ie,T as Te,O as Oe,M as Me,e as et,Z as Ze,L as Le$1,V as Ve,a as L}from'./chunk-DlI1-RBT.js';import {p as p$1}from'./chunk-CNrKfxum.js';import {f}from'./chunk-iBylMEhG.js';import {f as f$1}from'./chunk-D7XCpf05.js';import {y as ye,E as Ee,f as fe}from'./chunk-DhdJECI9.js';import {n as nt,a as ai}from'./chunk-tZG9QK2N.js';import {j as jM,cx as Q_,d_ as g,ea as p,J as JN,X as XN,c8 as zD,v,cr as P,aJ as G,bk as mq,bf as F,uW as xt,f as bn,cu as R,z,y,lJ as fs,d8 as H_,d9 as L_,a0 as Za,a1 as _o,a2 as VO,c as He,w as we,aU as mO,e9 as EO,b1 as iD,D as TD,C as X_,I as Ia,p as bf,lB as _c,lD as mr$1,bZ as pO,cm as Ip,cn as yO,fO as vO,Q as Qx,b0 as Mf,q as _D,b2 as Ja,b4 as pA,N as Af,s as yx,a5 as R$2,cJ as w,cg as YI,cd as wA,b3 as Tx,iq as In,aS as mc,b_ as IO,ad as bO,o as kD,ae as yA,af as DA,dw as jD,fE as xt$1,dx as Cx,dy as wx,iR as PD,ig as ut,gn as Ae,bj as L$1,eK as F$1,eL as G$1,eO as E,dg as t,m$ as y$1,mY as G$2,iO as hi$1,ag as W$1,h as dx,e0 as Xa,cs as Pt,at as so,c9 as Jp,jo as ph,fy as hh,gq as UC,kC as nu,ak as Xp,ah as Fe,go as nh,r as Xh,t as eg,e8 as S,uX as O,j9 as BI,M as bD,eY as oA,cf as ND,R as Ry}from'./main-CAjEjBVh.js';import'./chunk-PlMxG_pr.js';var q=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,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(o,a){o&1&&(Mf(0),Ia(1,"div",0),_D(2,"tg-icon",1),Qx(3," 360\xB0 "),bf(),Ja());},dependencies:[we],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=i;return e})();var X=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=Za({type:i}),i.\u0275inj=_o({imports:[VO,we]});let e=i;return e})();function si(e,i){e&1&&(Ia(0,"div",0),Qx(1,"FREE vehicle report"),bf());}function ci(e,i){e&1&&(Ia(0,"div",1),_D(1,"tg-icon",2),Ia(2,"div",3),Qx(3,"FREE vehicle report"),bf()());}var W=(()=>{let i=class i{constructor(){this.compact=mq(false,{transform:hi$1});}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,selectors:[["tm-vir-badge"]],hostVars:2,hostBindings:function(o,a){o&2&&zD("tm-vir-badge__compact",a.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(o,a){o&1&&JN(0,si,2,0,"div",0)(1,ci,4,0,"div",1),o&2&&XN(a.compact()?1:0);},dependencies:[we],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;
3color:#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 e=i;return e})();var K=(()=>{let i=class i{constructor(){this._abFrameworkFacade=v(S),this.virAbFlagEnabled$=this._abFrameworkFacade.isMemberInVariantGroupOfBooleanExperiment(O),this._motorsFreeVirEnabled=F(this.virAbFlagEnabled$,{initialValue:false});}isAbFlagEnabled(){return this._motorsFreeVirEnabled()}isNewCarListing(t){return !!t?.newCarInformation}hasVirCtaAttribute(t){return !!t?.hiddenAttributes?.some(o=>o.name==="vircta_eligible"&&o.value==="true")}isVirCtaEligible(t){return this.isAbFlagEnabled()&&!this.isNewCarListing(t)&&this.hasVirCtaAttribute(t)}getVirGeneratedDate(t){let o=t?.hiddenAttributes?.find(_=>_.name==="free_vir_date_generated");if(!o?.value)return null;let a=o.value.replace(" ","T");try{return BI(a,"d MMMM yyyy","en-NZ")}catch(_){return null}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=L$1({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Le=(()=>{let i=class i{constructor(t){this.templateRef=t;}};i.\u0275fac=function(o){return new(o||i)(R$2(ut))},i.\u0275dir=Ae({type:i,selectors:[["","tmImageNewCarouselItemContent",""]],standalone:false});let e=i;return e})();var mi=["carousel"],di=["container"],pi=["leftButton"],gi=["rightButton"];function _i(e,i){if(e&1&&ND(0,15),e&2){let r=yx().$implicit;TD("ngTemplateOutlet",r.template);}}function hi(e,i){if(e&1&&(Ia(0,"div",12),yA(1,"async"),Ia(2,"div",13),iD(3,_i,1,1,"ng-container",14),bf()()),e&2){let r=i.$implicit,t=i.index,o=yx().ngIf,a=yx();Xa("transform",oA("translateX(",r.translateX,"%)"))("z-index",t===a.selected?1:0),zD("tm-carousel__item--transition",a.isEnteringOrExitingView(o,t)&&!DA(1,10,a.isTouching$)),X_(2),Xa("aspect-ratio",a.aspectRatio),X_(),TD("ngIf",r.loaded);}}function ui(e,i){if(e&1&&(Mf(0),iD(1,hi,4,12,"div",11),Ja()),e&2){let r=yx();X_(),TD("ngForOf",r.photoContainers)("ngForTrackBy",r.trackByFn);}}function Ci(e,i){if(e&1){let r=dx();Ia(0,"button",16),yA(1,"async"),kD("keyup",function(o){Xh(r);let a=yx();return eg(a.onButtonKeyUp(o))})("click",function(o){Xh(r);let a=yx();return eg(a.onScrollClick(-1,o))}),_D(2,"tg-icon",17),bf();}if(e&2){let r=yx();zD("tm-carousel__button--inset",r.inset)("tm-carousel__button--inset-show-on-mobile",r.inset&&r.ignoreHooverForScrollButtons)("tm-carousel__button--inset-hidden",r.inset&&!DA(1,6,r.showInsetButtons$));}}function fi(e,i){if(e&1){let r=dx();Ia(0,"button",18),yA(1,"async"),kD("keyup",function(o){Xh(r);let a=yx();return eg(a.onButtonKeyUp(o))})("click",function(o){Xh(r);let a=yx();return eg(a.onScrollClick(1,o))}),_D(2,"tg-icon",19),bf();}if(e&2){let r=yx();zD("tm-carousel__button--inset",r.inset)("tm-carousel__button--inset-show-on-mobile",r.inset&&r.ignoreHooverForScrollButtons)("tm-carousel__button--inset-hidden",r.inset&&!DA(1,6,r.showInsetButtons$));}}var Xt=(()=>{let i=class i{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,o,a){this._renderer=t,this._changeDetectorRef=a,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 Pt,this.imageClick=new Pt,this.showInsetButtons$=new so(1),this._unlistenMouseEnter=()=>null,this._unlistenMouseLeave=()=>null,this._scrollClick$=new W$1,this._buttonKeyUp$=new W$1,this._destroyed$=new W$1,this._panStart$=new W$1,this._panMove$=new W$1,this._panEnd$=new W$1,this.selectedBeforeAfter$=this.selectedChange.pipe(Jp(0,0),ph(),hh(1)),this.isTouching$=UC(this._panStart$.pipe(nu(true)),this._panEnd$.pipe(nu(false))).pipe(Jp(false)),this._swipePercentageThreshold=.6,this._swipeVelocityThreshold=.2,this._isFirstUpdate=true,o.init();}fillAndUpdateContainers(t){this.photoContainers=t.map(o=>({loaded:false,translateX:0,template:o.templateRef})),this.updateContainers();}ngAfterContentInit(){this.fillAndUpdateContainers(this.carouselItems),this.carouselItems.changes.pipe(Xp(this._destroyed$)).subscribe(t=>{this.fillAndUpdateContainers(t),this._changeDetectorRef.detectChanges();});}
3ngOnInit(){this.selectedChange.pipe(Jp(0),Xp(this._destroyed$)).subscribe(()=>this.updateContainers()),this._scrollClick$.pipe(Xp(this._destroyed$)).subscribe(o=>this.scroll(o)),this._buttonKeyUp$.pipe(Xp(this._destroyed$)).subscribe(o=>this.focusButtonAndScroll(o));let t=this._panStart$.pipe(Fe(o=>o.target.clientWidth));this._panEnd$.pipe(nh(this._panMove$,t),Xp(this._destroyed$)).subscribe(([o,a,_])=>{let y=a.deltaX,Je=Math.abs(y)>_*this._swipePercentageThreshold||Math.abs(a.velocityX)>this._swipeVelocityThreshold;this.photoContainers.length>1&&Je&&(this.getCanScrollRight(this.photoContainers.length,this.selected)&&y<0?this.scroll(1):this.getCanScrollLeft(this.photoContainers.length,this.selected)&&y>0&&this.scroll(-1));}),UC(this._panMove$.pipe(Fe(o=>o.deltaX)),this._panEnd$.pipe(nu(0))).pipe(nh(t),Fe(([o,a])=>o*100/a),Xp(this._destroyed$)).subscribe(o=>{this.photoContainers.forEach((a,_)=>{Math.abs(this.getPlacementOffset(_))>1||(a.translateX=this.getTranslateX(_)+o);});});}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 o=t&&t.nativeElement;if(o){let a=o.firstElementChild;a&&a.focus();}}focusButtonAndScroll(t){let o=this.isNavigationKey(t.key,"Left"),a=this.isNavigationKey(t.key,"Right");if(!o&&!a)return;let _=o?this.leftButton:this.rightButton;this.focusButton(_),this.scroll(o?-1:1);}isNavigationKey(t,o){return t===`Arrow${o}`||t===o}getPlacementOffset(t){let o=t-this.selected;return this.selected===0&&t===this.photoContainers.length-1&&this.photoContainers.length>2&&(o=-1),this.selected===this.photoContainers.length-1&&t===0&&this.photoContainers.length>2&&(o=1),o}isCurrentOrAdjacent(t){let a=this.getPlacementOffset(t);return a<=1&&a>=0}getTranslateX(t){let o=this.getPlacementOffset(t);return t*-100+o/Math.abs(o||1)*100}trackByFn(t){return t}getCanScrollRight(t,o){return t===2&&(o===0||this.ignoreImageCountForScrollButtons)||t>=3}getCanScrollLeft(t,o){return t===2&&(o===1||this.ignoreImageCountForScrollButtons)||t>=3}onScrollClick(t,o){o&&(o.stopPropagation(),o.preventDefault()),this._scrollClick$.next(t);}getNormalisedIndex(t,o){return (t%o+o)%o}getIndexFromSkip(t){return this.getNormalisedIndex(t,this.photoContainers.length)}registerHoverListener(){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,o)=>{let a=this.isCurrentOrAdjacent(o);t.translateX=this.getTranslateX(o),t.loaded=t.loaded||(this._isFirstUpdate?o===this.selected:a);}),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,o){return t.indexOf(o)!==-1}};i.\u0275fac=function(o){return new(o||i)(R$2(In),R$2(Ee),R$2(mc))},i.\u0275cmp=jM({type:i,selectors:[["tm-carousel"]],contentQueries:function(o,a,_){if(o&1&&PD(_,Le,5),o&2){let y;Cx(y=wx())&&(a.carouselItems=y);}},viewQuery:function(o,a){if(o&1&&jD(mi,5)(di,5)(pi,5,xt$1)(gi,5,xt$1),o&2){let _;Cx(_=wx())&&(a.carouselRef=_.first),Cx(_=wx())&&(a.containerRef=_.first),Cx(_=wx())&&(a.leftButton=_.first),Cx(_=wx())&&(a.rightButton=_.first);}},hostVars:2,hostBindings:function(o,a){o&2&&zD("tm-carousel--round-borders",a.roundBorders);},inputs:{ignoreImageCountForScrollButtons:"ignoreImageCountForScrollButtons",ignoreHooverForScrollButtons:"ignoreHooverForScrollButtons",fitMode:"fitMode",aspectRatio:"aspectRatio",roundBorders:"roun
3dBorders",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-carousel__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(o,a){o&1&&(Ia(0,"div",4,0)(2,"div",5,1),kD("tgpanstart",function(y){return a.onPanStart(y)})("tgpanmove",function(y){return a.onPanMove(y)})("tgpanend",function(y){return a.onPanEnd(y)})("tgpancancel",function(y){return a.onPanCancel(y)}),iD(4,ui,2,2,"ng-container",6),yA(5,"async"),bf(),Ia(6,"div",7,2),iD(8,Ci,3,8,"button",8),bf(),Ia(9,"div",9,3),iD(11,fi,3,8,"button",10),bf()()),o&2&&(zD("tm-carousel__body--inset",a.inset),X_(4),TD("ngIf",DA(5,9,a.selectedBeforeAfter$)),X_(2),zD("tm-carousel__button-inset-container",a.inset),X_(2),TD("ngIf",a.getCanScrollLeft(a.photoContainers.length,a.selected)),X_(),zD("tm-carousel__button-inset-container",a.inset),X_(2),TD("ngIf",a.getCanScrollRight(a.photoContainers.length,a.selected)));},dependencies:[YI,mO,IO,He,we,bO],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}
3tm-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}}tm-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 e=i;return e})();var Wt=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=Za({type:i}),i.\u0275inj=_o({providers:[Ee],imports:[VO,He,we,we,we,ye]});let e=i;return e})();function bi(e,i){if(e&1&&_D(0,"tm-progressive-image-loader",8),e&2){let r=yx(2).$implicit,t=yx(2);TD("maxSize",t.maxCardSize)("loadingPriority",t.cardPositionInList<2?"prioritized":"lazy")("imageUrl",r.url);}}function wi(e,i){if(e&1&&_D(0,"tm-progressive-image-loader",9),e&2){let r=yx(2).$implicit,t=yx(2);TD("maxSize",t.maxCardSize)("imageUrl",r.url);}}function Si(e,i){if(e&1&&iD(0,bi,1,3,"tm-progressive-image-loader",6)(1,wi,1,2,"tm-progressive-image-loader",7),e&2){let r=yx().index,t=yx(2);TD("ngIf",r===0),X_(),TD("ngIf",r>0&&t.loadSubsequentImages);}}function yi(e,i){e&1&&iD(0,Si,2,2,"ng-template",5);}function Mi(e,i){if(e&1){let r=dx();Ia(0,"tm-carousel",3),kD("deferLoad",function(){Xh(r);let o=yx();return eg(o.switchCardImageLoadingPriorityDeferred())}),iD(1,yi,1,0,null,4),bf();}if(e&2){let r=yx();TD("aspectRatio",r.aspectRatio),X_(),TD("ngForOf",r.photos)("ngForTrackBy",r.trackByPhotoUrlFn);}}function Pi(e,i){e&1&&_D(0,"tm-no-image");}function Oi(e,i){if(e&1&&(Ia(0,"tm-carousel",10),iD(1,Pi,1,0,"ng-template",5),bf()),e&2){let r=yx();Xa("min-width",r.maxCardSize),TD("aspectRatio",r.aspectRatio);}}var _e=(()=>{let i=class i{constructor(t){this._imageSizeService=t,this.aspectRatio="4/3",this.motorsFrEndSearchCardsSmartCropEnabled=false,this.isSdOrGreater=false,this.loadSubsequentImages=false,this.maxCardSize="md",this._destroyed$=new W$1;}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 o=t.cropped_480x360;return this.motorsFrEndSearchCardsSmartCropEnabled&&this.isSdOrGreater&&(t$1=t$1.replace("photoserver","motors/crop")),{url:this._imageSizeService.convertImageSize(t$1,o)}}trackByPhotoUrlFn(t,o){return o.url||t}};i.\u0275fac=function(o){return new(o||i)(R$2(w))},i.\u0275cmp=jM({type:i,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"],["tmImageNewCarou
3selItemContent",""],[3,"maxSize","loadingPriority","imageUrl",4,"ngIf"],[3,"maxSize","imageUrl",4,"ngIf"],[3,"maxSize","loadingPriority","imageUrl"],[3,"maxSize","imageUrl"],[3,"aspectRatio"]],template:function(o,a){if(o&1&&(Ia(0,"div",1),iD(1,Mi,2,3,"tm-carousel",2)(2,Oi,2,3,"ng-template",null,0,wA),bf()),o&2){let _=Tx(3);X_(),TD("ngIf",a.hasPhotos)("ngIfElse",_);}},dependencies:[YI,mO,Xt,Le,fe,f$1,M],styles:[`tm-image-carousel .tm-image-carousel-container{flex:0 0 auto;position:relative;overflow:hidden}tm-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 e=i;return e})();var he=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=Za({type:i}),i.\u0275inj=_o({imports:[VO,Wt,ye,f,R$1,ye]});let e=i;return e})();function Ti(e,i){if(e&1&&(Mf(0),Ia(1,"div",1),Qx(2),yA(3,"tgCurrency"),bf(),Ja()),e&2){let r=yx();X_(2),Af("Save ",DA(3,1,r.savingAmount));}}var Z=(()=>{let i=class i{ngOnInit(){this.listingValue?.wasPrice&&this.listingValue?.startPrice&&(this.savingAmount=this.listingValue?.wasPrice-this.listingValue?.startPrice);}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,selectors:[["tm-saving-amount"]],inputs:{listingValue:"listingValue"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"tm-saving-amount__badge"]],template:function(o,a){o&1&&iD(0,Ti,4,3,"ng-container",0),o&2&&TD("ngIf",a.savingAmount);},dependencies:[_c,mO,mr$1],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 e=i;return e})();function Ii(e,i){if(e&1&&(Ia(0,"div",6),Qx(1),bf()),e&2){let r=yx(3);X_(),Af(" ",r.listingValue.priceDisplay," ");}}function Vi(e,i){if(e&1&&(Ia(0,"div",4),iD(1,Ii,2,1,"div",5),bf()),e&2){let r=yx(2);X_(),TD("ngIf",r.listingValue.priceDisplay);}}function Ei(e,i){if(e&1&&(Ia(0,"div",6)(1,"div"),Qx(2),bf(),Ia(3,"div"),Qx(4),bf()()),e&2){let r=yx(3);X_(2),Af(" ",r.reserveStateDisplay," "),X_(2),Af(" ",r.listingValue.priceDisplay," ");}}function Di(e,i){if(e&1&&(Ia(0,"div",9),Qx(1),yA(2,"tgCurrency"),bf()),e&2){let r=yx(3);TD("ngClass",r.listingValue.isBuyNowOnly?"tm-search-card-price__buy-now-primary":"tm-search-card-price__buy-now-secondary"),X_(),Af(" Buy now ",DA(2,2,r.listingValue.buyNowPrice)," ");}}function Fi(e,i){e&1&&(Ia(0,"div",11),Qx(1," excl GST "),bf());}function ki(e,i){if(e&1&&(Ia(0,"div",6)(1,"div"),Qx(2),bf(),Ia(3,"div"),Qx(4),yA(5,"tgCurrency"),bf(),iD(6,Fi,2,0,"div",10),bf()),e&2){let r=yx(3);X_(2),Af(" ",r.priceDisplayString," "),X_(2),Af(" ",DA(5,3,r.listingValue.startPrice)," "),X_(2),TD("ngIf",r.listingValue.priceType===r.motorPriceType.excludingGST);}}function Bi(e,i){if(e&1&&(Ia(0,"div",12),Qx(1),yA(2,"tgCurrency"),bf()),e&2){let r=yx(3);X_(),Af(" ",DA(2,1,r.listingValue.wasPrice)," ");}}function Ni(e,i){if(e&1&&(Ia(0,"div",4),iD(1,Ei,5,2,"div",5)(2,Di,3,4,"div",7)(3,ki,7,5,"div",5)(4,Bi,3,3,"div",8),bf()),e&2){let r=yx(2);X_(),TD("ngIf",r.showReserveState&&r.reserveStateDisplay&&r.listingValue.priceDisplay),X_(),TD("ngIf",r.listingValue.hasBuyNow),X_(),TD("ngIf",r.showClassifiedPrice&&r.listingValue.priceDisplay),X_(),TD("ngIf",r.listingValue.wasPrice);}}function Li(e,i){if(e&1&&(Mf(0,1),iD(1,Vi,2,1,"div",2)(2,Ni,5,4,"div",3),Ja()),e&2){let r=yx();TD("ngSwitch",r.listingValue.priceType),X_(),TD("ngSwitchCase",r.motorPriceType.priceOnApplication);}}var J=(()=>{let i=class i{constructor(){this.motorPriceType=y$1;}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;
4if(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"}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,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(o,a){o&1&&iD(0,Li,3,2,"ng-container",0),o&2&&TD("ngIf",a.listingValue);},dependencies:[pO,mO,Ip,yO,vO,mr$1],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;color:#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 e=i;return e})();var Y=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=Za({type:i}),i.\u0275inj=_o({imports:[VO,_c]});let e=i;return e})();var zi=e=>["tm-motors-search-card-title__container",e];function Ri(e,i){if(e&1&&(Ia(0,"span",3),Qx(1),bf()),e&2){let r=yx();X_(),Af(" ",r.modelDetails," ");}}var ee=(()=>{let i=class i{ngOnInit(){this.tierSpecificContainerClass=this.getTierSpecificContainerClass();}getTierSpecificContainerClass(){let t="tm-motors-search-card-title__container";switch(this.searchCardTier){case xt.tier3:case xt.tier4:return `${t}-top-padding  ${t}-line-height`;default:return ""}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,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(o,a){o&1&&(Ia(0,"div",0)(1,"span",1),Qx(2),bf(),iD(3,Ri,2,1,"span",2),bf()),o&2&&(TD("ngClass",pA(3,zi,a.tierSpecificContainerClass)),X_(2),Af(" ",a.listingTitle," "),X_(),TD("ngIf",a.modelDetails));},dependencies:[VO,pO,mO],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 e=i;return e})();var Ai=e=>({"background-color":e});function Gi(e,i){if(e&1&&(Mf(0),_D(1,"img",6),Ja()),e&2){let r=yx(2);X_(),TD("src",r.dealerLogoUrl,Ry),bD("loading",r.cardPositionInList<2?"eager":"lazy")("decoding",r.cardPositionInList<2?"auto":"async");}}
4function Ui(e,i){if(e&1&&(Ia(0,"span")(1,"span",9),Qx(2,"|"),bf(),Ia(3,"span",10),Qx(4),bf()()),e&2){let r=yx(3);X_(4),Af(" ",r.dealerName," ");}}function $i(e,i){if(e&1&&(Ia(0,"div",7),Qx(1," Dealer "),iD(2,Ui,5,1,"span",8),bf()),e&2){let r=yx(2);X_(2),TD("ngIf",r.dealerName&&r.showDealerName===true);}}function Hi(e,i){if(e&1&&(Ia(0,"div",3),iD(1,Gi,2,3,"ng-container",4)(2,$i,3,1,"ng-template",5,0,wA),bf()),e&2){let r=Tx(3),t=yx();zD("tm-motors-search-card__dealer-with-logo",t.dealerLogoUrl),TD("ngStyle",pA(5,Ai,t.dealerLogoBackgroundColour)),X_(),TD("ngIf",t.dealerLogoUrl&&t.showDealerLogo)("ngIfElse",r);}}function ji(e,i){e&1&&(Ia(0,"div",11),Qx(1,` Private seller
5`),bf());}var te=(()=>{let i=class i{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;}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,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(o,a){o&1&&iD(0,Hi,4,7,"div",1)(1,ji,2,0,"div",2),o&2&&(TD("ngIf",a.sellerIsDealer),X_(),TD("ngIf",!a.sellerIsDealer));},dependencies:[mO,EO],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=i;return e})();var ie=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=Za({type:i}),i.\u0275inj=_o({imports:[VO]});let e=i;return e})();function Qi(e,i){e&1&&(Ia(0,"tg-sticker2",3),_D(1,"tm-motors-instavid-spin-badge",16),bf());}function qi(e,i){if(e&1&&_D(0,"tm-saving-amount",18),e&2){let r=yx(2);TD("listingValue",r);}}function Xi(e,i){e&1&&_D(0,"tm-vir-badge",19);}function Wi(e,i){if(e&1&&(Ia(0,"tg-sticker2",4)(1,"div",17),JN(2,qi,1,1,"tm-saving-amount",18),JN(3,Xi,1,0,"tm-vir-badge",19),bf()()),e&2){let r=yx(),t=yx();X_(2),XN(r.wasPrice?2:-1),X_(),XN(t.showVirOverlay()?3:-1);}}function Ki(e,i){e&1&&(Ia(0,"div",15),_D(1,"tm-vir-badge",20),bf());}function Zi(e,i){if(e&1&&(Ia(0,"div",0)(1,"tg-sticker2-wrapper",1),_D(2,"tm-image-carousel",2),JN(3,Qi,2,0,"tg-sticker2",3),JN(4,Wi,4,2,"tg-sticker2",4),bf(),_D(5,"tm-seller-container",5),Ia(6,"div")(7,"div")(8,"div",6),_D(9,"tm-motors-closing-time",7),bf(),_D(10,"tm-motors-search-card-title",8),Ia(11,"div",9),_D(12,"tm-search-card-attributes",10),bf()(),Ia(13,"div")(14,"div",11),_D(15,"tm-search-card-price",12),bf(),Ia(16,"div",13),_D(17,"tm-on-road-costs",14),bf()()(),JN(18,Ki,2,0,"div",15),bf()),e&2){let r=i,t=yx();X_(2),TD("aspectRatio",t.imageAspectRatio())("photoUrls",r.photoUrls)("pictureHref",r.pictureHref)("cardPositionInList",t.cardPositionInList()),X_(),XN(r.motorsExternalMediaOverview?.hasInstavid360Spinner?3:-1),X_(),XN(r.wasPrice||t.showVirOverlay()?4:-1),X_(),TD("listingValue",r)("showDealerLogo",false)("showDealerName",false),X_(),zD("tm-motors-tier-four-search-card__listing-details-container",t.showVirInline())("tm-motors-tier-four-search-card__listing-details-container-no-franchise",!t.showVirInline()),X_(3),TD("listing",r),X_(),TD("searchCardTier",r.searchCardTier)("listingTitle",r.title)("modelDetails",r.modelDetail),X_(2),TD("listingValue",r)("numberOfAttributesToDisplay",t.numAttributesToDisplay()),X_(3),TD("listingValue",r),X_(2),TD("isCompact",t.isMobile())("listingValue",r),X_(),XN(t.showVirInline()?18:-1);}}var Kt=(()=>{let i=class i{constructor(){this._mediaSizeFacade=v(G),this._virService=v(K),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=mq.required(),this.cardPositionInList=mq(),this.isMobile=bn(()=>!this._isMdOrGreater()),this.imageAspectRatio=bn(()=>this._isMdOrGreater()?"4/3":"4/2.5"),this.numAttributesToDisplay=bn(()=>{let t=this._mediaSize();return t?.isSm&&!t?.isSd?3:5}),this.isVirCtaEligible=bn(()=>this._virService.isVirCtaEligible(this.listingValue())),this.showVirOverlay=bn(()=>this.isVirCtaEligible()&&this._isSdOrGreater()&&!this.listingValue().wasPrice),this.showVirInline=bn(()=>this.isVirCtaEligible()&&(!this._isSdOrGreater()||!!this.listingValue().wasPrice));}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,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(o,a){if(o&1&&JN(0,Zi,19,23,"div",0),o&2){let _;XN((_=a.listingValue())?0:-1,_);}},dependencies:[fs,H_,L_,ie,te,he,_e,Z,Y$1,et,Ze,X,q,Y,J,lt,it,ee,W],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=i;return e})();var Ge=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,selectors:[["tm-special-offer-badge"]],standalone:false,decls:2,vars:0,consts:[[1,"tm-special-offer-badge"]],template:function(o,a){o&1&&(Ia(0,"div",0),Qx(1,"Special offer"),bf());},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 e=i;return e})();var Ue=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=Za({type:i}),i.\u0275inj=_o({imports:[VO]});let e=i;return e})();
5function Ji(e,i){if(e&1&&(Ia(0,"div",4),_D(1,"img",5),bf()),e&2){let r=yx(),t=r.$implicit,o=r.isFirst,a=yx(2);X_(),TD("tmSrc",t.url)("isLCPImage",o&&a.cardPositionInList()<2);}}function Yi(e,i){if(e&1&&(Ia(0,"div",6),_D(1,"img",7),bf(),Ia(2,"div",8),_D(3,"img",9),bf(),Ia(4,"div",10),_D(5,"img",9),bf()),e&2){let r=yx(),t=r.$implicit,o=r.isFirst,a=yx(2);X_(),TD("tmSrc",t[0].url)("isLCPImage",o&&a.cardPositionInList()<2),X_(2),TD("tmSrc",t[1].url),X_(2),TD("tmSrc",t[2].url);}}function er(e,i){if(e&1&&(Ia(0,"tm-image-viewer3-item",3),JN(1,Ji,2,2,"div",4)(2,Yi,6,4),bf()),e&2){let r=i.$implicit;X_(),XN(r.url?1:r?.[0]&&r?.[1]&&r?.[2]?2:-1);}}function tr(e,i){if(e&1&&(Ia(0,"tm-image-viewer3",1),iD(1,er,3,1,"ng-template"),bf()),e&2){let r=yx();TD("items",r.photos());}}function ir(e,i){e&1&&_D(0,"tm-no-image",2);}var Jt=(()=>{var i;let r=class r{constructor(){F$1(this,i);this.photoUrls=mq(),this.pictureHref=mq(),this.motorsFrEndSearchCardsSmartCropEnabled=mq(false),this.isSdOrGreater=mq(false),this.cardPositionInList=mq(),G$1(this,i,v(w)),this.photos=bn(()=>{let o=this.pictureHref(),a=this.photoUrls(),_=this.motorsFrEndSearchCardsSmartCropEnabled(),y=this.isSdOrGreater(),$e=[...o?[o]:[],...a??[]],Ye=$e.map(et=>({url:E(this,i).convertImageSize(_&&y?et.replace("photoserver","motors/crop"):et,t.cropped_480x360)}));if($e.length<3)return Ye;let[oi,ni,ai]=$e;return [[{url:E(this,i).convertImageSize(oi,t.fullSize)},{url:E(this,i).convertImageSize(ni,t.large_colouredBackground)},{url:E(this,i).convertImageSize(ai,t.large_colouredBackground)}],...Ye]});}};i=new WeakMap,r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=jM({type:r,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(a,_){a&1&&(Ia(0,"div",0),JN(1,tr,2,1,"tm-image-viewer3",1)(2,ir,1,0,"tm-no-image",2),bf()),a&2&&(X_(),XN(_.photos()?.length>0?1:2));},dependencies:[f,f$1,Ve$1,je,Je],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=r;return e})();function rr(e,i){e&1&&_D(0,"tm-special-offer-badge",17);}function or(e,i){if(e&1&&_D(0,"tm-saving-amount",18),e&2){let r=yx(2);TD("listingValue",r);}}function nr(e,i){e&1&&_D(0,"tm-vir-badge",19);}function ar(e,i){if(e&1&&(Ia(0,"tg-sticker2",3)(1,"div",16),JN(2,rr,1,0,"tm-special-offer-badge",17),JN(3,or,1,1,"tm-saving-amount",18),JN(4,nr,1,0,"tm-vir-badge",19),bf()()),e&2){let r=yx(),t=yx();X_(2),XN(r.hasSpecialOffer?2:-1),X_(),XN(r.wasPrice&&!r.hasSpecialOffer?3:-1),X_(),XN(t.showVirOverlay()?4:-1);}}function sr(e,i){e&1&&(Ia(0,"tg-sticker2",4),_D(1,"tm-motors-instavid-spin-badge",17),bf());}function cr(e,i){if(e&1&&(Ia(0,"div",10),Qx(1),bf()),e&2){let r=yx();X_(),Af(" ",r.subtitle," ");}}function lr(e,i){if(e&1&&(Ia(0,"div",11),_D(1,"tm-search-card-attributes",20),bf()),e&2){let r=yx(),t=yx();X_(),TD("listingValue",r)("numberOfAttributesToDisplay",t.numAttributesToDisplay());}}function mr(e,i){if(e&1&&_D(0,"tm-new-vehicle-badge",21),e&2){let r=yx(2),t=yx();TD("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.availability)("newVehicleBadgeValue",r.newCarInformation.availability);}}function dr(e,i){if(e&1&&_D(0,"tm-new-vehicle-badge",21),e&2){let r=yx(2),t=yx();TD("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.condition)("newVehicleBadgeValue",r.newCarInformation.condition);}}function pr(e,i){e&1&&_D(0,"tm-vir-badge",22);}function gr(e,i){if(e&1&&(Ia(0,"div",15),JN(1,mr,1,2,"tm-new-vehicle-badge",21),JN(2,dr,1,2,"tm-new-vehicle-badge",21),JN(3,pr,1,0,"tm-vir-badge",22),bf()),e&2){let r=yx(),t=yx();X_(),XN(r.newCarInformation?.availability?1:-1),X_(),XN(r.newCarInformation?.condition?2:-1),X_(),XN(t.showVirInline()?3:-1);}}function _r(e,i){if(e&1&&(Ia(0,"div",0)(1,"tg-sticker2-wrapper",1),_D(2,"tm-image-gallery-carousel",2),JN(3,ar,5,3,"tg-sticker2",3),JN(4,sr,2,0,"tg-sticker2",4),bf(),_D(5,"tm-seller-container",5),Ia(6,"div",6)(7,"div",7),_D(8,"tm-motors-closing-time",8),bf(),_D(9,"tm-motors-search-card-title",9),JN(10,cr,2,1,"div",10),JN(11,lr,2,2,"div",11),Ia(12,"div",12),_D(13,"tm-search-card-price",13),bf(),_D(14,"tm-on-road-costs",14),JN(15,gr,4,3,"div",15),bf()()),e&2){let r=i,t=yx();X_(2),TD("photoUrls",r.photoUrls)("pictureHref",r.pictureHref)("motorsFrEndSearchCardsSmartCropEnabled",t.motorsFrEndSearchCardsSmartCropEnabled())("isSdOrGreater",t.isSdOrGreater())("cardPositionInList",t.cardPositionInList()),X_(),XN(r.hasSpecialOffer||r.wasPrice||t.showVirOverlay()?3:-1),X_(),XN(r.motorsExternalMediaOverview?.hasInstavid360Spinner?4:-1),X_(),TD("listingValue",r)("showDealerLogo",true),X_(3),TD("listing",r),X_(),TD("searchCardTier",r.searchCardTier)("listingTitle",r.title)("modelDetails",r.modelDetail),X_(),XN(r.subtitle?10:-1),X_(),XN(r.searchResultAttributes?.length>0?11:-1),X_(2),TD("listingValue",r),X_(),TD("isCompact",!t.isSdOrGreater())("listingValue",r),X_(),XN(r.newCarInformation||t.showVirInline()?15:-1);}}var ei=(()=>{let i=class i{constructor(){this._mediaSizeFacade=v(G),this._mediaSize=F(this._mediaSizeFacade.getMediaSize()),this._virService=v(K),this.listingValue=mq.required(),this.cardPositionInList=mq(),this.motorsFrEndSearchCardsSmartCropEnabled=mq(false),this.isSdOrGreater=mq(false),this.NewVehicleBadgeTypeEnum=L,this.isVirCtaEligible=bn(()=>this._virService.isVirCtaEligible(this.listingValue())),this.showVirOverlay=bn(()=>this.isVirCtaEligible()&&this.isSdOrGreater()),this.showVirInline=bn(()=>this.isVirCtaEligible()&&!this.isSdOrGreater()),this.numAttributesToDisplay=bn(()=>{let t=this._mediaSize();return t?.isSm&&!t?.isSd?3:5});}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,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(o,a){if(o&1&&JN(0,_r,16,19,"div",0),o&2){let _;XN((_=a.listingValue())?0:-1,_);}},dependencies:[fs,H_,L_,ie,te,Jt,Z,lt,it,Y,J,Y$1,Ue,Ge,X,q,et,Ze,Le$1,Ve,ee,W],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=i;return e})();function hr(e,i){e&1&&(Ia(0,"tg-sticker2",3),_D(1,"tm-motors-instavid-spin-badge",16),bf());}
5function ur(e,i){if(e&1&&_D(0,"tm-saving-amount",18),e&2){let r=yx(2);TD("listingValue",r);}}function Cr(e,i){e&1&&_D(0,"tm-vir-badge",19);}function fr(e,i){if(e&1&&(Ia(0,"tg-sticker2",4)(1,"div",17),JN(2,ur,1,1,"tm-saving-amount",18),JN(3,Cr,1,0,"tm-vir-badge",19),bf()()),e&2){let r=yx(),t=yx();X_(2),XN(r.wasPrice?2:-1),X_(),XN(t.showVirOverlay()?3:-1);}}function xr(e,i){if(e&1&&(Ia(0,"div",9),Qx(1),bf()),e&2){let r=yx();X_(),Af(" ",r.subtitle," ");}}function vr(e,i){if(e&1&&(Ia(0,"div",10),_D(1,"tm-search-card-attributes",20),bf()),e&2){let r=yx(),t=yx();X_(),TD("numberOfAttributesToDisplay",t.numAttributesToDisplay())("listingValue",r);}}function br(e,i){if(e&1&&_D(0,"tm-new-vehicle-badge",22)(1,"tm-new-vehicle-badge",22),e&2){let r=yx(2),t=yx();TD("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.availability)("newVehicleBadgeValue",r.newCarInformation.availability),X_(),TD("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.condition)("newVehicleBadgeValue",r.newCarInformation.condition);}}function wr(e,i){e&1&&_D(0,"tm-vir-badge",21);}function Sr(e,i){if(e&1&&(Ia(0,"div",15),JN(1,br,2,4),JN(2,wr,1,0,"tm-vir-badge",21),bf()),e&2){let r=yx(),t=yx();X_(),XN(r.newCarInformation?1:-1),X_(),XN(t.showVirInline()?2:-1);}}function yr(e,i){if(e&1&&(Ia(0,"div",0)(1,"tg-sticker2-wrapper",1),_D(2,"tm-image-carousel",2),JN(3,hr,2,0,"tg-sticker2",3),JN(4,fr,4,2,"tg-sticker2",4),bf(),_D(5,"tm-seller-container",5),Ia(6,"div")(7,"div")(8,"div",6),_D(9,"tm-motors-closing-time",7),bf(),_D(10,"tm-motors-search-card-title",8),JN(11,xr,2,1,"div",9),JN(12,vr,2,2,"div",10),bf(),Ia(13,"div")(14,"div",11),_D(15,"tm-search-card-price",12),bf(),Ia(16,"div",13),_D(17,"tm-on-road-costs",14),bf()()(),JN(18,Sr,3,2,"div",15),bf()),e&2){let r=i,t=yx();X_(2),TD("aspectRatio",t.imageAspectRatio())("photoUrls",r.photoUrls)("pictureHref",r.pictureHref)("cardPositionInList",t.cardPositionInList()),X_(),XN(r.motorsExternalMediaOverview?.hasInstavid360Spinner?3:-1),X_(),XN(r.wasPrice||t.showVirOverlay()?4:-1),X_(),TD("listingValue",r)("showDealerLogo",false)("showDealerName",false),X_(),zD("tm-motors-tier-three-search-card__listing-details-container",!!r.newCarInformation||t.showVirInline())("tm-motors-tier-three-search-card__listing-details-container-no-franchise",!r.newCarInformation&&!t.showVirInline()),X_(3),TD("listing",r),X_(),TD("searchCardTier",r.searchCardTier)("listingTitle",r.title)("modelDetails",r.modelDetail),X_(),XN(r.subtitle?11:-1),X_(),XN(r.searchResultAttributes?.length>0?12:-1),X_(3),TD("listingValue",r),X_(2),TD("isCompact",t.isMobile())("listingValue",r),X_(),XN(r.newCarInformation||t.showVirInline()?18:-1);}}var ti=(()=>{let i=class i{constructor(){this._mediaSizeFacade=v(G),this._virService=v(K),this._mediaSize=F(this._mediaSizeFacade.getMediaSize()),this._isSdOrGreater=F(this._mediaSizeFacade.is.sd$.or.greater$,{initialValue:false}),this.listingValue=mq.required(),this.cardPositionInList=mq(),this.NewVehicleBadgeTypeEnum=L,this.imageAspectRatio=bn(()=>this._isSdOrGreater()?"4/3":"4/2.7"),this.numAttributesToDisplay=bn(()=>{let t=this._mediaSize();return (t?.isSm||t?.isSd)&&!t?.isMd?3:5}),this.isMobile=bn(()=>!this._isSdOrGreater()),this.isVirCtaEligible=bn(()=>this._virService.isVirCtaEligible(this.listingValue())),this.showVirOverlay=bn(()=>this.isVirCtaEligible()&&this._isSdOrGreater()&&!this.listingValue().wasPrice),this.showVirInline=bn(()=>this.isVirCtaEligible()&&(!this._isSdOrGreater()||!!this.listingValue().wasPrice));}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,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(o,a){if(o&1&&JN(0,yr,19,23,"div",0),o&2){let _;XN((_=a.listingValue())?0:-1,_);}},dependencies:[fs,H_,L_,ie,te,he,_e,Z,Y$1,et,Ze,X,q,Le$1,Ve,Y,J,lt,it,ee,W],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=i;return e})();function Mr(e,i){e&1&&_D(0,"tm-special-offer-badge",17);}function Pr(e,i){if(e&1&&_D(0,"tm-saving-amount",18),e&2){let r=yx(2);TD("listingValue",r);}}function Or(e,i){e&1&&_D(0,"tm-vir-badge",19);}function Tr(e,i){if(e&1&&(Ia(0,"tg-sticker2",3)(1,"div",16),JN(2,Mr,1,0,"tm-special-offer-badge",17),JN(3,Pr,1,1,"tm-saving-amount",18),JN(4,Or,1,0,"tm-vir-badge",19),bf()()),e&2){let r=yx(),t=yx();X_(2),XN(r.hasSpecialOffer?2:-1),X_(),XN(r.wasPrice&&!r.hasSpecialOffer?3:-1),X_(),XN(t.showVirOverlay()?4:-1);}}function Ir(e,i){e&1&&(Ia(0,"tg-sticker2",4),_D(1,"tm-motors-instavid-spin-badge",17),bf());}function Vr(e,i){if(e&1&&(Ia(0,"div",10),Qx(1),bf()),e&2){let r=yx();X_(),Af(" ",r.subtitle," ");}}function Er(e,i){if(e&1&&(Ia(0,"div",11),_D(1,"tm-search-card-attributes",20),bf()),e&2){let r=yx(),t=yx();X_(),TD("listingValue",r)("numberOfAttributesToDisplay",t.numAttributesToDisplay());}}function Dr(e,i){if(e&1&&_D(0,"tm-new-vehicle-badge",21),e&2){let r=yx(2),t=yx();TD("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.availability)("newVehicleBadgeValue",r.newCarInformation.availability);}}function Fr(e,i){if(e&1&&_D(0,"tm-new-vehicle-badge",21),e&2){let r=yx(2),t=yx();TD("newVehicleBadgeType",t.NewVehicleBadgeTypeEnum.condition)("newVehicleBadgeValue",r.newCarInformation.condition);}}function kr(e,i){e&1&&_D(0,"tm-vir-badge",22);}function Br(e,i){if(e&1&&(Ia(0,"div",15),JN(1,Dr,1,2,"tm-new-vehicle-badge",21),JN(2,Fr,1,2,"tm-new-vehicle-badge",21),JN(3,kr,1,0,"tm-vir-badge",22),bf()),e&2){let r=yx(),t=yx();X_(),XN(r.newCarInformation?.availability?1:-1),X_(),XN(r.newCarInformation?.condition?2:-1),X_(),XN(t.showVirInline()?3:-1);}}function Nr(e,i){if(e&1&&(Ia(0,"div",0)(1,"tg-sticker2-wrapper",1),_D(2,"tm-image-carousel",2),JN(3,Tr,5,3,"tg-sticker2",3),JN(4,Ir,2,0,"tg-sticker2",4),bf(),_D(5,"tm-seller-container",5),Ia(6,"div",6)(7,"div",7),_D(8,"tm-motors-closing-time",8),bf(),_D(9,"tm-motors-search-card-title",9),JN(10,Vr,2,1,"div",10),JN(11,Er,2,2,"div",11),Ia(12,"div",12),_D(13,"tm-search-card-price",13),bf(),_D(14,"tm-on-road-costs",14),JN(15,Br,4,3,"div",15),bf()()),e&2){let r=i,t=yx();X_(2),TD("aspectRatio",t.imageAspectRatio())("photoUrls",r.photoUrls)("pictureHref",r.pictureHref)("cardPositionInList",t.cardPositionInList())("motorsFrEndSearchCardsSmartCropEnabled",t.motorsFrEndSearchCardsSmartCropEnabled())("isSdOrGreater",t.isSdOrGreater()),X_(),XN(r.hasSpecialOffer||r.wasPrice||t.showVirOverlay()?3:-1),X_(),XN(r.motorsExternalMediaOverview?.hasInstavid360Spinner?4:-1),X_(),TD("listingValue",r)("showDealerLogo",true),X_(3),TD("listing",r),X_(),TD("searchCardTier",r.searchCardTier)("listingTitle",r.title)("modelDetails",r.modelDetail),X_(),XN(r.subtitle?10:-1),X_(),XN(r.searchResultAttributes?.length>0?11:-1),X_(2),TD("listingValue",r),X_(),TD("isCompact",!t.isSdOrGreater())("listingValue",r),X_(),XN(r.newCarInformation||t.showVirInline()?15:-1);}}var ii=(()=>{let i=class i{constructor(){this._mediaSizeFacade=v(G),this._mediaSize=F(this._mediaSizeFacade.getMediaSize()),this._virService=v(K),this.listingValue=mq.required(),this.cardPositionInList=mq(),this.motorsFrEndSearchCardsSmartCropEnabled=mq(false),this.isSdOrGreater=mq(false),this.NewVehicleBadgeTypeEnum=L,this.isVirCtaEligible=bn(()=>this._virService.isVirCtaEligible(this.listingValue())),this.showVirOverlay=bn(()=>this.isVirCtaEligible()&&this.isSdOrGreater()),this.showVirInline=bn(()=>this.isVirCtaEligible()&&!this.isSdOrGreater()),this.imageAspectRatio=bn(()=>this.isSdOrGreater()?"4/2":"4/3"),this.numAttributesToDisplay=bn(()=>{let t=this._mediaSize();return t?.isSm&&!t?.isSd?3:5});}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,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(o,a){if(o&1&&JN(0,Nr,16,20,"div",0),o&2){let _;XN((_=a.listingValue())?0:-1,_);}},dependencies:[fs,H_,L_,ie,te,he,_e,Z,lt,it,Y,J,Y$1,Ue,Ge,X,q,et,Ze,Le$1,Ve,ee,W],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=i;return e})();var ri=[{tier:xt.tier1},{tier:xt.tier2},{tier:xt.tier3},{tier:xt.tier4}];function Lr(e,i){if(e&1&&_D(0,"tm-motors-tier-one-search-card",1),e&2){let r=yx(),t=yx();TD("listingValue",r)("cardPositionInList",t.cardPositionInList())("motorsFrEndSearchCardsSmartCropEnabled",t.motorsFrEndSearchCardsSmartCropEnabled())("isSdOrGreater",t.isSdOrGreater());}}function zr(e,i){if(e&1&&_D(0,"tm-motors-tier-two-search-card",1),e&2){let r=yx(),t=yx();TD("listingValue",r)("cardPositionInList",t.cardPositionInList())("motorsFrEndSearchCardsSmartCropEnabled",t.motorsFrEndSearchCardsSmartCropEnabled())("isSdOrGreater",t.isSdOrGreater());}}function Rr(e,i){if(e&1&&_D(0,"tm-motors-tier-three-search-card",2),e&2){let r=yx(),t=yx();TD("listingValue",r)("cardPositionInList",t.cardPositionInList());}}
5function Ar(e,i){if(e&1&&_D(0,"tm-motors-tier-four-search-card",2),e&2){let r=yx(),t=yx();TD("listingValue",r)("cardPositionInList",t.cardPositionInList());}}function Gr(e,i){if(e&1&&(Ia(0,"a",0),JN(1,Lr,1,4,"tm-motors-tier-one-search-card",1)(2,zr,1,4,"tm-motors-tier-two-search-card",1)(3,Rr,1,2,"tm-motors-tier-three-search-card",2)(4,Ar,1,2,"tm-motors-tier-four-search-card",2),bf(),_D(5,"tm-toggle-watchlist-button",3)),e&2){let r,t=yx();TD("tmListingRouterLink",t.listing())("tmListingRouterLinkQueryParams",t.computedExtraListingQueryParams())("trackingId",t.gtmTieredSearchCardTrackingId)("data",t.gtmData()),X_(),XN((r=(r=t.tierTemplate())==null?null:r.tier)===t.searchCardTierEnum.tier1?1:r===t.searchCardTierEnum.tier2?2:r===t.searchCardTierEnum.tier3?3:r===t.searchCardTierEnum.tier4?4:-1),X_(4),TD("viewMode",t.viewMode())("overrideRsqid",t.computedExtraListingQueryParams()?.hsqid||t.computedExtraListingQueryParams()?.rsqid)("listing",t.listing())("trackingId",t.gtmTieredSearchCardWatchlistTrackingId)("data",t.gtmData());}}var Ur="MotorsFrEndSearchCardsSmartCrop",$r=[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],Cs=(()=>{let i=class i{constructor(){this._categoryService=v(P),this._searchCardService=v(ct),this._mediaSizeFacade=v(G),this.listingType=mq("car"),this.listing=mq.required(),this.cardPositionInList=mq(),this.viewMode=mq.required(),this.extraListingQueryParams=mq(),this.abFeatures=mq(),this.compact=mq(false),this.isSdOrGreater=F(this._mediaSizeFacade.is.sd$.or.greater$,{initialValue:false}),this.computedExtraListingQueryParams=p$1(this.listing,this.extraListingQueryParams),this.searchCardTierEnum=xt,this.gtmTieredSearchCardTrackingId="motors_tiered_search_card",this.gtmTieredSearchCardWatchlistTrackingId="motors_tiered_search_card_watchlist",this.listingValue=bn(()=>{let t=this.listing(),o=this.listingType();if(t.category){let a=R(t.category);if(this._categoryService.isMotorBikes(a))return Ie(t)??Te(t);if(this._categoryService.isBoats(a))return Oe(t)??Te(t);let _=Me(o,t);if(_!=null)return z(y({},_),{title:this._searchCardService.getTitle(_)})}return Te(t)}),this.tierTemplate=bn(()=>{let o=this.listingValue()?.searchCardTier||xt.tier1;return ri.find(a=>a.tier===o)}),this.motorsFrEndSearchCardsSmartCropEnabled=bn(()=>{let t=this.abFeatures();return t?t.find(a=>a.name===Ur&&a.value==="true")!=null&&(this._isSmartCropEnabledForDealer()||this._isTurnersListing()):false}),this.gtmData=bn(()=>{let t=this.listingValue();return {action:"click",id:t?.listingId,searchCardTier:t?.searchCardTier,memberId:t?.memberId}}),this.isTopTier=bn(()=>{let t=this.tierTemplate()?.tier;return t===xt.tier1||t===xt.tier2}),this.isBottomTier=bn(()=>{let t=this.tierTemplate()?.tier;return t===xt.tier3||t===xt.tier4});}_isSmartCropEnabledForDealer(){let t=this.listingValue();return t?.dealerSettings==null?false:t.dealerSettings.some(o=>o.code==="PhotoCropMode"&&o.value==="SmartCrop")}_isTurnersListing(){let t=this.listingValue()?.memberId;return t!=null&&$r.includes(t)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=jM({type:i,selectors:[["tm-motors-tiered-search-cards"]],hostAttrs:[1,"tm-tiered-search-card__list-view"],hostVars:4,hostBindings:function(o,a){o&2&&zD("tm-tiered-search-card__container",a.isTopTier())("tm-tiered-search-card__compact-container",a.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(o,a){if(o&1&&JN(0,Gr,6,10),o&2){let _;XN((_=a.listingValue())?0:-1,_);}},dependencies:[Q_,g,p,ei,ii,ti,Kt,nt,ai],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=i;return e})();var tieredSearchCardContainer_componentRP663UJA=/*#__PURE__*/Object.freeze({__proto__:null,TieredSearchCardContainerComponent:Cs});export{Cs as C,Ge as G,K,Le as L,Ue as U,Wt as W,X,Xt as a,q,tieredSearchCardContainer_componentRP663UJA as t};//# sourceMappingURL=tiered-search-card-container.component-Dg7t2XYE.js.map
7
8//# debugId=1ac61da6-21f7-574b-9ed3-6b637c0d213b

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.