PageSourceSearch

https://www.trademe.co.nz/a/static/new-listing.module-BP8SpBor.js

js trademe.co.nz collected 2026-09-24 08:41:15 UTC 562,579 bytes, 27 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]="8d386cb2-f3f8-51c0-b87a-f4589a0bd8db")}catch(e){}}();
3import {u as ut,o as ot$1}from'./chunk-RGoZhyl3.js';import {r as r$3}from'./chunk-DYstuy1-.js';import {j as je,E as Ee,G as Ge$1,i as ii,_ as _i,N as Ne,C as Ce,A as At$1,r as ri}from'./chunk-B7HqSJsy.js';import {DealershipsModule as Mr}from'./dealerships.module-CVcfSZpp.js';import'./chunk-DqAeyG2j.js';import'./motors.module-zP7amvE2.js';import'./chunk-B6cFA4pf.js';import {P as Pu,b as bR,S as S5,p as Bu$1,s as Lu$1,y as yV,u as fu$1,v as Td,w as Dd,_ as _u,x as vu,C as Cu$1,N as Nd,U as Ur,z as ku,e as kV,D as DA,t as t7,V as Vr,E as EV,i as b7,r as r5,Y as YR,G as nu$1,H as Ep$1,I as wd,K as Pd,Q as jp$1,R as Fp$1,W as Ap,B as Bd,X as mu$1,M as Mu$1,g as f5,n as aV,$ as Aa$2,a0 as jn,a1 as Cp,a2 as sa$1,T as TV,o as c7,Z as ZR,q as qR,m as AK}from'./chunk-Dd6ewV2k.js';import'./chunk-DgcMxJze.js';import {i as ii$1,t as ti,u as un$1,g as gn}from'./chunk-DXI94eXR.js';import {R as Ri$1,h as hi$1}from'./chunk-Do_m6fKm.js';import {V as Va$1,t as tr,l as la$1,s as se,j as ja$1,x as xs$1,r as rs$1}from'./chunk-CPczHzbv.js';import {X as Xf$1,a as Ia$2,E as Ea$1,o as ot,A as Ai$2,j as ji$1,b as Aa$1,N as Na$1,I as It$1,s as sa$2,c as ca$2,H as Hi,B as Bi,L as Li,d as Gi,y as ya}from'./chunk-DUGtkoET.js';import {S as Sn,n as nn$2}from'./chunk-BwGiig4A.js';import'./chunk-13QUwfbp.js';import {i as ie,H,p as pe$1}from'./chunk-D0K4GKK_.js';import'./chunk-hJrV-eSq.js';import'./chunk-BgAw3AJi.js';import'./chunk-B1NKbwO5.js';import {I as It,f as ft}from'./chunk-DHrSy100.js';import {G as Ge}from'./chunk-DE8zxgjA.js';import'./chunk-Cb9Ytd9X.js';import'./chunk-CRc4dKNm.js';import'./chunk-DRakdlGJ.js';import {H as Ho,c as ca$1,J as Ja$1,K as Kt$1,u as un,R as Rd,P as Py$1,o as oa,p as pn,U as Uo,a as nn,Z as Za$2,r as rh$1,b as H0$1,E as Ey$1,n as ns$1,m as ma$1,h as ha$1,A as Ad,N as Ne$1,d as Ui$1,e as en,f as ht}from'./chunk-Beal-wO3.js';import'./chunk-mXOUu5GI.js';import {e as ee,$ as $$1,H as H$1,Q as Q$1,q as q$1,W as W$4,U as U$1,z as z$4,V as V$2,j as j$1,k as k$1}from'./chunk-CMmNEzU8.js';import {s}from'./chunk-CO7Ngy1f.js';import {a as a$1}from'./chunk-CvgIDR0j.js';import'./chunk-0jZ-lAsx.js';import'./chunk-BSHAB8F_.js';import'./chunk-2KK-MFls.js';import'./chunk-D3Z4OdWM.js';import {V as Ve$1}from'./chunk-CrswU0US.js';import {q as qe$1,j as je$2}from'./chunk-DjU1MU2P.js';import {J}from'./chunk-BNW9cWhy.js';import'./chunk-C3PPHiEW.js';import'./chunk-BC4xoQH5.js';import'./chunk-d9NReqDu.js';import'./chunk-CWuHnFT2.js';import'./chunk-BK4b4BVW.js';import'./chunk-BPQbDHCW.js';import'./chunk-hZU8FEe5.js';import {G as G$3}from'./chunk-B9bsT1q-.js';import'./chunk-C9IiW4M6.js';import'./chunk-DLVTCBhK.js';import {a0 as Za$1,a1 as _o,a2 as VO,a3 as eu,w as we,bR as X_,c as He,bS as Rb$1,j as jM$1,J as JN,X as XN,bE as Ar,P as d$1,V as Vc,T as Tr,b_ as IO,b5 as uA,ja as re,aL as Gm,aV as Vi$1,A as Ai$1,aM as Bm,aN as Wn,g$ as Kn$1,h0 as _d,b$ as rn,ar as Hb$1,H as Hr,a as jb$1,aK as Bb$1,L as Lb$1,az as br,aP as K_$1,aW as ce,aX as Eh$1,aY as Fh$1,I as Ia$1,o as kD,Q as Qx$1,p as bf$1,q as _D,K as KS,D as TD,C as X_$1,cq as fA,F as XS,fM as gA,a5 as R$2,be as pe,cr as P,aU as mO,cm as Ip,cn as yO,ed as hi,fl as yr,ad as bO,ae as yA,b1 as iD,af as DA$1,dE as o0$1,lB as _c,bM as Ob$1,d_ as g,aB as ee$1,aC as Cb$1,fS as ks$1,fW as y0,as as mc,fL as D0$1,fV as Cc,lH as _e,bP as X$1,bK as Ec,dz as O_$1,dR as Co,bO as V,aJ as G,bZ as pO,h5 as e0$1,eo as Uf$1,ep as Zb$1,eq as $f$1,er as Kb$1,eA as Zr,d4 as wf$1,v,bk as mq,f as bn,c6 as z_$1,S as zc,W as zo,Y as Hc,fb as db$1,oP as OO,lD as mr,O as rE,N as Af$1,dI as EA,c3 as lE,M as bD,c4 as tA,bh as Tf$1,bi as _f$1,cx as Q_,fz as Ke,bf as F,ah as Fe,U as Gc,s as yx$1,cf as ND,a6 as Re,bd as Te,aG as E,aR as De,by as f$1,f9 as rt,$ as hn,mD as qe$2,lk as ut$2,kQ as St,aQ as Xt,bg as U,z,y,h6 as $y$1,aj as An,ag as W$1,ak as Xp,bp as th$1,c_ as o,bq as lo$1,c9 as Jp,fs as ch$1,cu as R$3,oQ as G$1,ff as Y$1,aI as h$2,bY as D,bt as nm,a8 as ce$1,aS as mc$1,dw as 
3jD,dx as Cx$1,dy as wx$1,b0 as Mf,b2 as Ja$2,cG as Bt,cH as rn$1,cM as BD,cN as bx$1,ea as p,b4 as pA,d3 as _,eY as oA,d7 as ub,f3 as km,a$ as rD,eZ as Zo,o4 as u0$1,a4 as qc,aA as Bg,d as dr,jb as fc,oR as Qb$1,ds as Tb$1,eh as vr,fR as Ns,f1 as Bt$1,cX as $c,co as wC$1,cb as G$2,bj as L,cg as YI,dF as t0$1,ce as hA,u as nx,dp as tx,G as rx$1,oS as no$1,oT as t$1,h as dx$1,b3 as Tx$1,cc as nA,ca as s$1,j3 as o$1,ht as r$1,et as oo,ii as eu$1,go as nh,f2 as M0$1,gK as F$1,da as FO,bA as P$1,c8 as zD,e8 as S$2,gi as m,a7 as E$1,fc as ZI,fd as DO,n as nn$1,on as $$2,eu as I$1,ev as EI,e9 as EO,c2 as q,a9 as N0$1,cC as Fg$1,cD as cr,cE as R_$1,lR as ne,dS as _i$1,iB as P$2,at as so$1,gr as vc,oU as Ut,cd as wA,ir as je$3,cO as t$2,df as gq,cY as vq,E as Eo,aO as Ri$3,dr as Ki,am as dg$1,bl as SD,ba as rA,i8 as zs$1,fy as hh$1,e0 as Xa$1,cT as sn,cU as on,ab as p$2,iF as a$3,e2 as mA,fI as G_$1,mZ as lt,oV as N,oW as xq,bw as Be$1,op as ct,oo as nt,fO as vO,i7 as We,ef as ft$1,fH as I0,aF as d$3,oX as Wb$1,oY as Zs,oZ as Ks,ej as Um,ek as qm,el as ss$1,fg as Qn,eU as Nh$1,dt as Qh$1,du as As,em as Ss$1,en as xb$1,kJ as Ds,aZ as Bh$1,b as Lc,cs as Pt,jo as ph$1,o_ as r$4,iA as L$2,d5 as Gt$2,d6 as kt,bo as ru$1,cv as Wc,cV as o$2,n0 as ie$1,an as cE,ap as aE,dm as Ve$3,o$ as Le$1,oL as Be$2,eK as F$2,eL as G$4,db as Ht$2,eO as E$3,R as Ry$1,mY as G$5,dj as se$1,r as Xh$1,t as eg$1,m$ as y$1,eP as UI,br as Ui,hV as M$2,fx as m$1,hY as _$1,j2 as l$2,iD as u$1,nd as T$3,oa as l0,ob as i0$1,od as a0$1,oe as c0,of as r0$1,og as s0$1,nB as 
3LO,g3 as eb$1,dv as $g$1,kA as iA,eE as iE,fv as f$3,dJ as c$2,dK as e$1,ia as I$3,p0 as pC$1,oG as zp,jz as yr$1,nQ as Ne$2,hd as re$1,dk as Et,bc as oE,dh as kn,bu as o$3,p1 as M$3,p2 as a$4,p3 as s$2,aq as k$2,gu as ky$1,ay as f_$1,jd as Gr,ao as eA,j9 as BI,p4 as xe,p5 as pt,fE as xt,p6 as Fe$1,bU as s$3}from'./main-CAjEjBVh.js';import'./motors-marketplace-search-card.component-LKfMqTkF.js';import {K as K$2,C as Ci,c as c$1}from'./chunk-hIv0Lc48.js';import'./chunk-BU0AULcm.js';import'./basic-search-card.component-DVN35FAv.js';import {K as K$1}from'./tiered-search-card-container.component-Dg7t2XYE.js';import'./chunk-CFC3HuRe.js';import'./chunk-BVovkmCv.js';import {R,M as M$1}from'./chunk-D8j22_k-.js';import {L as Le,V as Ve$2,a as L$1,M as Me$1}from'./chunk-DlI1-RBT.js';import'./chunk-s5DdVWYO.js';import'./chunk-DzroZiVo.js';import {W as W$2,T as T$2}from'./chunk-BYpEjM3T.js';import'./chunk-DoP3HG1j.js';import'./chunk-r0IcSFbh.js';import'./chunk-DRKmUy6Q.js';import'./chunk-Cd1AT5aZ.js';import'./chunk-CPdqTY-x.js';import'./chunk-BoMalXQA.js';import'./chunk-DhtA1i2S.js';import'./chunk-BH6gTZ8y.js';import'./chunk-w07cMBwf.js';import'./chunk-B4aw-_kJ.js';import'./chunk-D4B6RK0x.js';import {$ as $i$1}from'./chunk-61wIR9EC.js';import {a as a$2}from'./chunk-TanFXPmN.js';import'./chunk-B41a0TTX.js';import {K}from'./chunk-BwXebOV2.js';import'./chunk-BpqBTxaR.js';import'./chunk-BVn1Yqp5.js';import {B}from'./chunk-Dsgs4QrS.js';import'./chunk-Ctk2b32a.js';import'./chunk-iE2_4u8g.js';import'./chunk-IhXTJZ8b.js';import {u}from'./chunk-D2OIXtKo.js';import'./chunk-IfyktX2U.js';import'./chunk-BTj3pQlu.js';import {T as T$1}from'./chunk-B2wkpN5L.js';import {H as Ht$1}from'./chunk-CoDQTM9y.js';import {r}from'./chunk-Bm7bSd3Z.js';import'./chunk-BuLTUtk0.js';import'./chunk-DHSmCeoX.js';import'./chunk-EAxg33-T.js';import'./chunk-DiLwsHzm.js';import'./chunk-BQLCmwxn.js';import'./chunk-BT6q-Mx6.js';import'./chunk-BgsPW_CV.js';import'./chunk-wDhbTTaT.js';import {_ as _t$1,$}from'./chunk-DM-WVsd5.js';import {M as Mt,B as Bt$3}from'./chunk-ijgGiIOj.js';import {j as ji,G as Gt$1,a as jt,b as bi,c as bt,R as Ri$2,p as pi$1}from'./chunk-CDrB9y2X.js';import {h}from'./chunk-DorH3_I9.js';import {A}from'./chunk-CgvBAcuf.js';import {d as d$2}from'./chunk-jetcTzsV.js';import {g as g$2,E as E$2,c}from'./chunk-BinUDUXm.js';import {M}from'./chunk-Dxo3cpYI.js';import'./chunk-BtGt8sMJ.js';import'./chunk-Bm2CZFU3.js';import'./chunk-COP3fpVD.js';import {R as R$1,u as ut$1}from'./chunk-D56l0ire.js';import'./chunk-hjAdSj8t.js';import'./chunk-BetbQZBv.js';import'./chunk-DJpSq96g.js';import'./chunk-CFZzHhwU.js';import'./chunk-DttRtAXw.js';import {o as oi}from'./chunk-Bx6thN26.js';import'./chunk-DX3AJTUQ.js';import'./chunk-BfmtI6P-.js';import'./chunk-oVhJ_x8f.js';import'./chunk-Duwj35_y.js';import {u as ui,q as qn,M as Me,f as fi,p as pi,j as jr}from'./chunk-MQ8ivf_o.js';import {h as hs$1,Q as Qa}from'./chunk-ZotpFjDk.js';import'./chunk-DV8Pih-T.js';import {j as je$1}from'./chunk-BczQQ3HJ.js';import'./chunk-D9RI3bv_.js';import'./chunk-CmqjuEU1.js';import'./chunk-CytlKgad.js';import'./chunk-CLcRP3qU.js';import {W,j}from'./chunk-CkGmAncb.js';import'./chunk-iBylMEhG.js';import'./chunk-D7XCpf05.js';import {h as h$3}from'./chunk-D08MCpDG.js';import'./chunk-Ri1cuuMB.js';import {f as f$2}from'./chunk-Ci7y9yt_.js';import {t as t$3}from'./chunk-BPlzE8us.js';import'./chunk-CXpbMIE8.js';import'./chunk-D8q8nqJo.js';import {X,z as z$2}from'./chunk-y2eU7CPs.js';import {l as l$1}from'./chunk-Cfhwhg0K.js';import'./chunk-D3EH8yTk.js';import {u as u$2}from'./chunk-4hPjuRg5.js';import'./chunk-Cf6MbvcS.js';import'./chunk-BPIyHSt7.js';import {I,v as v$1}from'./chunk-BJ1rYuXy.js';import'./chunk-L_w69pO1.js';import {w}from'./chunk-BME5YPAf.js';import'./chunk-DNvkOLVw.js';import {e as ee$2}from'./chunk-BfAIvOhM.js';import {d as de,A as At,_ as _t$2}from'./chunk-DncV6Jw4.js';import {g as g$3}from'./chunk-i014EtwU.js';import {r as r$2}from'./chunk-D0m7Qljd.js';import'./chunk-B2Gk006u.js';import'./toggle-watchlist-button.component-BfM3ThEz.js';import'./chunk-CmrFuVZd.js';import'./chunk-DO_Nfpet.js';import'./listing-note-proxy.component-w9rekZ3s.js';import'./chunk-D8yHsLT5.js';import'./chunk-BUgE3PqS.js';import'./chunk-DZYq2tvA.js';import {b as it}from'./chunk-CB8zOIjI.js';import'./chunk-DhdJECI9.js';import'./chunk-z-sGSgw8.js';import {x as x$1,S as S$1}from'./chunk-CMZ3-Ti_.js';import {V as Ve,g as ge}
3from'./youtube-player-C9MCqbh8.js';import'./chunk-DLWdaxmR.js';import'./chunk-DGvxZABl.js';import'./chunk-DFLJnTSU.js';import'./chunk-taFyP6-G.js';import {B as Be}from'./chunk-BxuABTuK.js';import'./chunk-Ye5LfOK2.js';import {g as g$1}from'./chunk-C4LE4KKN.js';import {B as Bt$2}from'./chunk-DMwH4IV5.js';import'./chunk-BezbLTUw.js';import {x as x$2}from'./chunk-CzzHOh3R.js';import'./chunk-CRxSL6nf.js';import {T,p as p$1}from'./chunk-BsB3pJ-D.js';import'./chunk-B6NfVuVK.js';import {C}from'./chunk-vKXJt4E8.js';import {V as V$1,J as J$1,X as X$2,Y,B as B$1}from'./chunk-BjkWQ8ya.js';import {Q}from'./chunk-k_qLN5U6.js';import'./chunk-BWHdPvw5.js';import'./chunk-duUtsOqS.js';import'./chunk-C3sCwHE3.js';import'./chunk-B49S5eZn.js';import'./chunk-B5-_qKyF.js';import'./chunk-troaM622.js';import {a,d}from'./chunk-4e65qauR.js';import'./chunk-CoBX9GW6.js';import'./chunk-CSYssCHv.js';import'./chunk-iBzFcQNE.js';import'./chunk-DxjTjCCI.js';import {z as z$3}from'./chunk-tZG9QK2N.js';import'./chunk-CEet3q3d.js';import {I as I$2}from'./chunk-D5BuR3PQ.js';import'./chunk-Bhd3g0be.js';import'./chunk-Dm1-07Dt.js';import'./chunk-Ck0rJN4t.js';import'./chunk-fL8Xvwe7.js';import'./chunk-BhlJSIvO.js';import {f,C as C$1}from'./chunk-DhT1TtSm.js';import'./chunk-CWEEvGwz.js';import'./chunk-BJwLckN_.js';import {h as h$1,x,k}from'./chunk-DUSEvFaX.js';import {W as W$3}from'./chunk-v5nN6aMG.js';import'./chunk-BfRDMp24.js';import {e}from'./chunk-CmnKksf1.js';import {S}from'./chunk-CCD1pcHa.js';import {s as bi$1,I as Ii,t as gi}from'./chunk-TV9Wo-_X.js';import {t}from'./chunk-BIJz1oAh.js';import'./chunk-CeKpAhvg.js';import'./chunk-BtS1Fg9g.js';import'./chunk-PlMxG_pr.js';import'./chunk-jlvpcNsF.js';import'./chunk-XpF_PgI4.js';import {z as z$1,L as L$3}from'./chunk-BpIbrwhg.js';import'./chunk-D4Eu5dFQ.js';import {l}from'./chunk-XApU2rQR.js';import'./chunk-2Ta1wvg6.js';import'./chunk-Bpp08yWl.js';import {S as Se}from'./chunk-1WcIjyO4.js';import'./chunk-jolbqQx5.js';import'./chunk-YA-QRxSh.js';import'./chunk-BhRfpHQp.js';import'./chunk-D3GcKAzz.js';import'./not-found.component-BSjQEB_S.js';import'./chunk-NwJ5fwVJ.js';import'./chunk-VwqPgL9v.js';import'./chunk-VyNqhh2Q.js';import'./chunk-Y8ySxWR_.js';import'./chunk-IU082-_v.js';import'./chunk-DUqOaRGp.js';import'./chunk-DCKMdxRV.js';import'./chunk-DK5iCNHV.js';import'./chunk-BH-JcEfy.js';import'./chunk-BzMufgj4.js';import'./chunk-CzUcL0en.js';import'./chunk-CdqQ7lLc.js';import'./chunk-DG0xYvzw.js';import'./chunk-CtpGnM0n.js';import'./chunk-CLQ7kXrG.js';import'./chunk-BJZsOqTq.js';import'./chunk-CNrKfxum.js';import'./chunk-HquBqKE6.js';import'./chunk-JYXfNJ4M.js';import'./chunk-Bl6BSha8.js';import'./chunk-DG4qhM9N.js';import'./chunk-CQAPh1Ts.js';var aa=(()=>{let i=class i{constructor(){this.weeklyPayment=mq.required(),this.trackingId=mq.required(),this.gtmDataEstimate=mq(),this.gtmDataEnquire=mq();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-default-desktop-summary"]],inputs:{weeklyPayment:[1,"weeklyPayment"],trackingId:[1,"trackingId"],gtmDataEstimate:[1,"gtmDataEstimate"],gtmDataEnquire:[1,"gtmDataEnquire"]},decls:14,vars:7,consts:[["padding","compact",1,"tm-motors-consumer-finance-default-desktop-summary__container"],[1,"tm-motors-consumer-finance-default-desktop-summary__title-wrapper"],[1,"tm-motors-consumer-finance-default-desktop-summary__title"],["alt","Driva logo","src","/images/frend/motors/driva-primary-logo.svg",1,"tm-motors-consumer-finance-default-desktop-summary__driva-logo"],["aria-label","More info about Driva","id","driva_enquiry_modal_open","queryParamsHandling","preserve","routerLink","./consumer-finance","tgButton2","","transparent","","tmTrackCustomClick","",1,"tm-motors-consumer-finance-default-desktop-summary__more-info-button",3,"trackingId","data"],[1,"tm-motors-consumer-finance-default-desktop-summary__weekly-payment"],[1,"tm-motors-consumer-finance-default-desktop-summary__more-info"],["role","presentation","name","basic-arrow-right"],["fullWidth","","id","driva_enquiry_click_through","queryParamsHandling","preserve","routerLink","./consumer-finance","tgButton2","","tmTrackCustomClick","",3,"trackingId","data"]],template:function(n,l){n&1&&(Ia$
31(0,"section")(1,"tg-box2",0)(2,"div",1)(3,"span",2),Qx$1(4," Weekly estimate "),bf$1(),_D(5,"img",3),bf$1(),Ia$1(6,"a",4)(7,"span",5),Qx$1(8),bf$1(),Ia$1(9,"span",6),Qx$1(10," About this estimate "),_D(11,"tg-icon",7),bf$1()(),Ia$1(12,"a",8),Qx$1(13," Enquire with Driva "),bf$1()()()),n&2&&(bD("aria-label",oA("Driva Finance weekly estimate ",l.weeklyPayment())),X_$1(6),TD("trackingId",l.trackingId())("data",l.gtmDataEstimate()),X_$1(2),Af$1(" ",l.weeklyPayment()," "),X_$1(4),TD("trackingId",l.trackingId())("data",l.gtmDataEnquire()));},dependencies:[rn,Ec,z_$1,He,we,g,p],styles:["tm-motors-consumer-finance-default-desktop-summary[_nghost-%COMP%]{display:block}.tm-motors-consumer-finance-default-desktop-summary__container[_ngcontent-%COMP%]{margin-bottom:0}.tm-motors-consumer-finance-default-desktop-summary__more-info-button[_ngcontent-%COMP%]{display:flex;width:100%;min-height:initial;justify-content:space-between;padding:0}@media(min-width:768px){.tm-motors-consumer-finance-default-desktop-summary__more-info-button[_ngcontent-%COMP%]{padding:16px;margin-top:8px;margin-bottom:16px;background-color:#fff}}.tm-motors-consumer-finance-default-desktop-summary__weekly-payment[_ngcontent-%COMP%]{color:#007acd;font-size:1.25rem;font-weight:500;pointer-events:none}@media(min-width:768px){.tm-motors-consumer-finance-default-desktop-summary__weekly-payment[_ngcontent-%COMP%]{color:#44413d}}.tm-motors-consumer-finance-default-desktop-summary__title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.tm-motors-consumer-finance-default-desktop-summary__title[_ngcontent-%COMP%]{align-self:flex-end;color:#44413d;font-weight:500;pointer-events:none}.tm-motors-consumer-finance-default-desktop-summary__driva-logo[_ngcontent-%COMP%]{width:95px;height:20px}.tm-motors-consumer-finance-default-desktop-summary__more-info[_ngcontent-%COMP%]{pointer-events:none}"]});let e=i;return e})();var sa=(()=>{let i=class i{constructor(){this.weeklyPayment=mq.required(),this.trackingId=mq.required(),this.gtmData=mq();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-default-mobile-summary"]],inputs:{weeklyPayment:[1,"weeklyPayment"],trackingId:[1,"trackingId"],gtmData:[1,"gtmData"]},decls:9,vars:4,consts:[["src","/images/frend/motors/driva-primary-logo.svg","alt","Driva logo",1,"tm-motors-consumer-finance-default-mobile-summary__driva-logo"],["padding","compact",1,"tm-motors-consumer-finance-default-mobile-summary__panel"],["routerLink","./consumer-finance","queryParamsHandling","preserve","id","driva_enquiry_modal_open","tgButton2","","transparent","","aria-label","More info about Driva","tmTrackCustomClick","",1,"tm-motors-consumer-finance-default-mobile-summary__more-info-button",3,"trackingId","data"],[1,"tm-motors-consumer-finance-default-mobile-summary__title"],[1,"tm-motors-consumer-finance-default-mobile-summary__weekly-payment"],["role","presentation","name","basic-arrow-right"]],template:function(n,l){n&1&&(Ia$1(0,"section"),_D(1,"img",0),Ia$1(2,"tg-box2",1)(3,"a",2)(4,"span",3),Qx$1(5," Weekly estimate: "),Ia$1(6,"span",4),Qx$1(7),bf$1()(),_D(8,"tg-icon",5),bf$1()()()),n&2&&(bD("aria-label","Driva weekly estimate "+l.weeklyPayment()),X_$1(3),TD("trackingId",l.trackingId())("data",l.gtmData()),X_$1(4),Af$1(" ",l.weeklyPayment()," "));},dependencies:[rn,Ec,z_$1,He,we,g,p],styles:["tm-motors-consumer-finance-default-mobile-summary[_nghost-%COMP%]{display:block}.tm-motors-consumer-finance-default-mobile-summary__panel[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:8px}.tm-motors-consumer-finance-default-mobile-summary__more-info-button[_ngcontent-%COMP%]{display:flex;width:100%;min-height:initial;justify-content:space-between;padding:0}@media(min-width:768px){.tm-motors-consumer-finance-default-mobile-summary__more-info-button[_ngcontent-%COMP%]{padding:16px;margin-top:8px;margin-bottom:16px;background-color:#fff}}.tm-motors-consumer-finance-default-mobile-summary__weekly-payment[_ngcontent-%COMP%]{color:#007acd;font-size:1.25rem;font-weight:500;pointer-events:none}@media(min-width:768px){.tm-motors-consumer-finance-default-mobile-summary__weekly-payment[_ngcontent-%COMP%]{color:#44413d}}.tm-motors-consumer-finance-default-mobile-summary__title[_ngcontent-%COMP%]{align-self:flex-end;color:#44413d;font-weight:500;pointer-events:none}.tm-motors-consumer-finance-default-mobile-summary__driva-logo[_ngcontent-%COMP%]{width:95px;height:20px}"]});let e=i;return e})();var la=(()=>{let i=class i{constructor(){this.weeklyPayment=mq.required(),this.trackingId=mq.required(),this.gtmData=mq();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-driva-variant-b-summary"]],inputs:{weeklyPayment:[1,"weeklyPayment"],trackingId:[1,"trackingId"],gtmData:[1,"gtmData"]},decls:12,vars:5,consts:[[1,"tm-motors-consumer-finance-driva-variant-b-summary"],[1,"tm-motors-consumer-finance-driva-variant-b-summary__estimate-row"],[1,"tm-motors-consumer-finance-driva-variant-b-summary__title"],[1,"tm-motors-consumer-finance-driva-variant-b-summary__weekly-payment"],["src","/images/frend/motors/driva-powered-by-logo.svg","alt","Powered by Driva",1,"tm-motors-consumer-finance-driva-variant-b-summary__driva-logo"],[1,"tm-motors-consumer-finance-driva-variant-b-summary__weekly-payment-label"],["fullWidth","","aria-label","Calculate your rate with Driva","i
3d","driva_enquiry_modal_open","queryParamsHandling","preserve","routerLink","./consumer-finance","tgButton2","","tmTrackCustomClick","",1,"tm-motors-consumer-finance-driva-variant-b-summary__calculate-rate-button",3,"trackingId","data"]],template:function(n,l){n&1&&(Ia$1(0,"section",0)(1,"div",1)(2,"span",2),Qx$1(3," Finance estimate "),bf$1(),Ia$1(4,"span",3),Qx$1(5),bf$1()(),Ia$1(6,"div",1),_D(7,"img",4),Ia$1(8,"span",5),Qx$1(9," Weekly "),bf$1()(),Ia$1(10,"a",6),Qx$1(11," Calculate your rate "),bf$1()()),n&2&&(bD("aria-label",oA("Driva finance estimate ",l.weeklyPayment()," weekly")),X_$1(5),Af$1(" ",l.weeklyPayment()," "),X_$1(5),TD("trackingId",l.trackingId())("data",l.gtmData()));},dependencies:[rn,He,g,p],styles:["tm-motors-consumer-finance-driva-variant-b-summary[_nghost-%COMP%]{display:block}.tm-motors-consumer-finance-driva-variant-b-summary[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:24px}.tm-motors-consumer-finance-driva-variant-b-summary__estimate-row[_ngcontent-%COMP%]{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.tm-motors-consumer-finance-driva-variant-b-summary__title[_ngcontent-%COMP%]{color:#65605d}.tm-motors-consumer-finance-driva-variant-b-summary__weekly-payment[_ngcontent-%COMP%]{color:#44413d;font-size:2rem;font-weight:700}.tm-motors-consumer-finance-driva-variant-b-summary__weekly-payment-label[_ngcontent-%COMP%]{color:#65605d;font-size:1rem}.tm-motors-consumer-finance-driva-variant-b-summary__driva-logo[_ngcontent-%COMP%]{height:24px}.tm-motors-consumer-finance-driva-variant-b-summary__calculate-rate-button[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0}"]});let e=i;return e})();var ma=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-driva-partner-logos"]],decls:5,vars:0,consts:[[1,"tm-motors-consumer-finance-driva-partner-logos"],[1,"tm-motors-consumer-finance-driva-partner-logos__label"],[1,"tm-motors-consumer-finance-driva-partner-logos__logos"],["size","compact"]],template:function(n,l){n&1&&(Ia$1(0,"div",0)(1,"span",1),Qx$1(2," Compare 15+ lenders "),bf$1(),Ia$1(3,"div",2),_D(4,"tm-motors-consumer-finance-lender-logos",3),bf$1()());},dependencies:[ee],styles:["tm-motors-consumer-finance-driva-partner-logos[_nghost-%COMP%]{display:block}.tm-motors-consumer-finance-driva-partner-logos[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:16px}.tm-motors-consumer-finance-driva-partner-logos__label[_ngcontent-%COMP%]{color:#65605d;flex-shrink:0;white-space:nowrap}.tm-motors-consumer-finance-driva-partner-logos__logos[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0;overflow:hidden}"]});let e=i;return e})();var ca=(()=>{let i=class i{constructor(){this.weeklyPayment=mq.required(),this.trackingId=mq.required(),this.gtmData=mq();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-driva-variant-c-summary"]],inputs:{weeklyPayment:[1,"weeklyPayment"],trackingId:[1,"trackingId"],gtmData:[1,"gtmData"]},decls:9,vars:5,consts:[[1,"tm-motors-consumer-finance-driva-variant-c-summary"],["src","/images/frend/motors/driva-powered-by-logo.svg","alt","Powered by Driva",1,"tm-motors-consumer-finance-driva-variant-c-summary__driva-logo"],["fullWidth","","aria-label","View finance estimate \u2014 more info about Driva","id","driva_enquiry_modal_open","queryParamsHandling","preserve","routerLink","./consumer-finance","tgButton2","","tmTrackCustomClick","",1,"tm-motors-consumer-finance-driva-variant-c-summary__more-info-button",3,"trackingId","data"],[1,"tm-motors-consumer-finance-driva-variant-c-summary__about-estimate"],[1,"tm-motors-consumer-finance-driva-variant-c-summary__weekly-payment"],["role","presentation","name","basic-arrow-right",1,"tm-motors-consumer-finance-driva-variant-c-summary__estimate-arrow"],[1,"tm-motors-consumer-finance-driva-variant-c-summary__partner-logos"]],template:function(n,l){n&1&&(Ia$1(0,"section",0),_D(1,"img",1),Ia$1(2,"a",2)(3,"span",3),Qx$1(4," View finance estimate "),bf$1(),Ia$1(5,"span",4),Qx$1(6),_D(7,"tg-icon",5),bf$1()(),_D(8,"tm-motors-consumer-finance-driva-partner-logos",6),bf$1()),n&2&&(bD("aria-label",oA("Driva weekly estimate ",l.weeklyPayment())),X_$1(2),TD("trackingId",l.trackingId())("data",l.gtmData()),X_$1(4),Af$1(" ",l.weeklyPayment()," weekly "));},dependencies:[rn,He,we,g,p,ma],styles:["tm-motors-consumer-finance-driva-variant-c-summary[_nghost-%COMP%]{display:block}.tm-motors-consumer-finance-driva-variant-c-summary[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:24px}.tm-motors-consumer-finance-driva-variant-c-summary__driva-logo[_ngcontent-%COMP%]{height:24px}.tm-motors-consumer-finance-driva-variant-c-summary__more-info-button[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:16px;margin-top:16px;margin-bottom:16px;flex-wrap:wrap}.tm-motors-consumer-finance-driva-variant-c-summary__about-estimate[_ngcontent-%COMP%]{display:flex;
3color:#65605d;font-weight:400;padding-right:24px;text-align:justify;white-space:nowrap}.tm-motors-consumer-finance-driva-variant-c-summary__weekly-payment[_ngcontent-%COMP%]{display:flex;color:#007acd;font-weight:500;white-space:nowrap}.tm-motors-consumer-finance-driva-variant-c-summary__estimate-arrow[_ngcontent-%COMP%]{color:#007acd;bottom:0;left:.3em;width:16px}.tm-motors-consumer-finance-driva-variant-c-summary__partner-logos[_ngcontent-%COMP%]{display:block}"]});let e=i;return e})();var da=(()=>{let i=class i{constructor(){this.weeklyPayment=mq.required(),this.trackingId=mq.required(),this.gtmData=mq();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-driva-variant-d-summary"]],inputs:{weeklyPayment:[1,"weeklyPayment"],trackingId:[1,"trackingId"],gtmData:[1,"gtmData"]},decls:13,vars:5,consts:[[1,"tm-motors-consumer-finance-driva-variant-d-summary"],[1,"tm-motors-consumer-finance-driva-variant-d-summary__estimate-row"],[1,"tm-motors-consumer-finance-driva-variant-d-summary__title"],[1,"tm-motors-consumer-finance-driva-variant-d-summary__weekly-payment"],["src","/images/frend/motors/driva-powered-by-logo.svg","alt","Powered by Driva",1,"tm-motors-consumer-finance-driva-variant-d-summary__driva-logo"],[1,"tm-motors-consumer-finance-driva-variant-d-summary__weekly-payment-label"],["fullWidth","","aria-label","Calculate your rate with Driva","id","driva_enquiry_modal_open","queryParamsHandling","preserve","routerLink","./consumer-finance","tgButton2","","tmTrackCustomClick","",1,"tm-motors-consumer-finance-driva-variant-d-summary__calculate-rate-button",3,"trackingId","data"],[1,"tm-motors-consumer-finance-driva-variant-d-summary__partner-logos"]],template:function(n,l){n&1&&(Ia$1(0,"section",0)(1,"div",1)(2,"span",2),Qx$1(3," Finance estimate "),bf$1(),Ia$1(4,"span",3),Qx$1(5),bf$1()(),Ia$1(6,"div",1),_D(7,"img",4),Ia$1(8,"span",5),Qx$1(9," Weekly "),bf$1()(),Ia$1(10,"a",6),Qx$1(11," Calculate your rate "),bf$1(),_D(12,"tm-motors-consumer-finance-driva-partner-logos",7),bf$1()),n&2&&(bD("aria-label",oA("Driva finance estimate ",l.weeklyPayment()," weekly")),X_$1(5),Af$1(" ",l.weeklyPayment()," "),X_$1(5),TD("trackingId",l.trackingId())("data",l.gtmData()));},dependencies:[rn,He,g,p,ma],styles:["tm-motors-consumer-finance-driva-variant-d-summary[_nghost-%COMP%]{display:block}.tm-motors-consumer-finance-driva-variant-d-summary[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:24px}.tm-motors-consumer-finance-driva-variant-d-summary__estimate-row[_ngcontent-%COMP%]{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.tm-motors-consumer-finance-driva-variant-d-summary__title[_ngcontent-%COMP%]{color:#65605d}.tm-motors-consumer-finance-driva-variant-d-summary__weekly-payment[_ngcontent-%COMP%]{color:#44413d;font-size:2rem;font-weight:700}.tm-motors-consumer-finance-driva-variant-d-summary__weekly-payment-label[_ngcontent-%COMP%]{color:#65605d;font-size:1rem}.tm-motors-consumer-finance-driva-variant-d-summary__driva-logo[_ngcontent-%COMP%]{height:24px}.tm-motors-consumer-finance-driva-variant-d-summary__calculate-rate-button[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px}.tm-motors-consumer-finance-driva-variant-d-summary__partner-logos[_ngcontent-%COMP%]{display:block}"]});let e=i;return e})();var tu=e=>({"bottom-border":e}),pa=(()=>{let i=class i{constructor(){this.weeklyPayment=mq.required(),this.isDealerListing=mq.required(),this.trackingId=mq.required(),this.gtmData=mq();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-car-listing-finance-summary"]],inputs:{weeklyPayment:[1,"weeklyPayment"],isDealerListing:[1,"isDealerListing"],trackingId:[1,"trackingId"],gtmData:[1,"gtmData"]},decls:8,vars:7,consts:[[1,"tm-motors-consumer-finance-car-listing-finance-summary",3,"ngClass"],["src","/images/frend/motors/driva-primary-logo.svg","alt","Driva logo",1,"tm-motors-consumer-finance-car-listing-finance-summary__driva-logo"],["fullWidth","","aria-label","More info about Driva","id","driva_enquiry_modal_open","queryParamsHandling","preserve","routerLink","./consumer-finance","tgButton2","","tmTrackCustomClick","",1,"tm-motors-consumer-finance-car-listing-finance-summary__more-info-button",3,"trackingId","data"],[1,"tm-motors-consumer-finance-car-listing-finance-summary__about-estimate"],[1,"tm-motors-consumer-finance-car-listing-finance-summary__weekly-payment"],["role","presentation","name","basic-arrow-right",1,"tm-motors-consumer-finance-car-listing-finance-summary__estimate-arrow"]],template:function(n,l){n&1&&(Ia$
31(0,"section",0),_D(1,"img",1),Ia$1(2,"a",2)(3,"span",3),Qx$1(4," View finance estimate "),bf$1(),Ia$1(5,"span",4),Qx$1(6),_D(7,"tg-icon",5),bf$1()()()),n&2&&(TD("ngClass",pA(5,tu,l.isDealerListing())),bD("aria-label","Driva weekly estimate "+l.weeklyPayment()),X_$1(2),TD("trackingId",l.trackingId())("data",l.gtmData()),X_$1(4),Af$1(" ",l.weeklyPayment()," weekly "));},dependencies:[pO,rn,He,we,g,p],styles:["tm-motors-consumer-finance-car-listing-finance-summary[_nghost-%COMP%]{display:block}.tm-motors-consumer-finance-car-listing-finance-summary[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:24px}@media(min-width:768px){.tm-motors-consumer-finance-car-listing-finance-summary.bottom-border[_ngcontent-%COMP%]{border-bottom:1px solid #d7d5d2}}.tm-motors-consumer-finance-car-listing-finance-summary__driva-logo[_ngcontent-%COMP%]{width:95px;height:20px}.tm-motors-consumer-finance-car-listing-finance-summary__more-info-button[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:16px;margin-top:16px;flex-wrap:wrap}.tm-motors-consumer-finance-car-listing-finance-summary__about-estimate[_ngcontent-%COMP%]{display:flex;color:#65605d;font-weight:400;padding-right:24px;text-align:justify;white-space:nowrap}.tm-motors-consumer-finance-car-listing-finance-summary__weekly-payment[_ngcontent-%COMP%]{display:flex;color:#007acd;font-weight:500;white-space:nowrap}.tm-motors-consumer-finance-car-listing-finance-summary__estimate-arrow[_ngcontent-%COMP%]{color:#007acd;bottom:0;left:.3em;width:16px}"]});let e=i;return e})();function nu(e,i){if(e&1&&(_D(0,"tm-motors-consumer-finance-driva-variant-b-summary",1),yA(1,"async")),e&2){let o=yx$1(2),t=yx$1();TD("weeklyPayment",o)("trackingId",t.dealerFinanceEstimateTrackingId)("gtmData",DA$1(1,3,t.gtmDataEstimate$));}}function ou(e,i){if(e&1&&(_D(0,"tm-motors-consumer-finance-driva-variant-c-summary",1),yA(1,"async")),e&2){let o=yx$1(2),t=yx$1();TD("weeklyPayment",o)("trackingId",t.dealerFinanceEstimateTrackingId)("gtmData",DA$1(1,3,t.gtmDataEstimate$));}}function ru(e,i){if(e&1&&(_D(0,"tm-motors-consumer-finance-driva-variant-d-summary",1),yA(1,"async")),e&2){let o=yx$1(2),t=yx$1();TD("weeklyPayment",o)("trackingId",t.dealerFinanceEstimateTrackingId)("gtmData",DA$1(1,3,t.gtmDataEstimate$));}}
3function au(e,i){if(e&1&&(_D(0,"tm-motors-consumer-finance-car-listing-finance-summary",2),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1(2),t=yx$1();TD("weeklyPayment",o)("isDealerListing",!!DA$1(1,4,t.isDealerListing$))("trackingId",t.dealerFinanceEstimateTrackingId)("gtmData",DA$1(2,6,t.gtmDataEstimate$));}}function su(e,i){if(e&1&&(JN(0,nu,2,5,"tm-motors-consumer-finance-driva-variant-b-summary",1),yA(1,"async"),yA(2,"async"),yA(3,"async"),wf$1(4,ou,2,5,"tm-motors-consumer-finance-driva-variant-c-summary",1)(5,ru,2,5,"tm-motors-consumer-finance-driva-variant-d-summary",1)(6,au,3,8,"tm-motors-consumer-finance-car-listing-finance-summary",2)),e&2){let o=yx$1(2);XN(DA$1(1,1,o.userInDrivaVariantB$)?0:DA$1(2,3,o.userInDrivaVariantC$)?4:DA$1(3,5,o.userInDrivaVariantD$)?5:6);}}function lu(e,i){if(e&1&&(_D(0,"tm-motors-consumer-finance-default-desktop-summary",0),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1(),t=yx$1();TD("weeklyPayment",o)("trackingId",t.dealerFinanceEstimateTrackingId)("gtmDataEstimate",DA$1(1,4,t.gtmDataEstimate$))("gtmDataEnquire",DA$1(2,6,t.gtmDataEnquire$));}}function mu(e,i){if(e&1&&(_D(0,"tm-motors-consumer-finance-default-mobile-summary",1),yA(1,"async")),e&2){let o=yx$1(),t=yx$1();TD("weeklyPayment",o)("trackingId",t.dealerFinanceEstimateTrackingId)("gtmData",DA$1(1,3,t.gtmDataEstimate$));}}function cu(e,i){if(e&1&&(JN(0,su,7,7),yA(1,"async"),yA(2,"async"),wf$1(3,lu,3,8,"tm-motors-consumer-finance-default-desktop-summary",0)(4,mu,2,5,"tm-motors-consumer-finance-default-mobile-summary",1)),e&2){let o=yx$1();XN(DA$1(1,1,o.isCarCategory$)?0:DA$1(2,3,o.desktopView$)?3:4);}}var qt=(()=>{let i=class i{constructor(t,n,l,C){this._motorsListingFacade=t,this._mediaSizeFacade=n,this._abFrameworkFacade=l,this._motorsGtmService=C,this.dealerFinanceEstimateTrackingId="motors_dealer_finance_estimate_click";}ngOnInit(){this.desktopView$=this._mediaSizeFacade.is.md$.or.greater$;let t=this._motorsListingFacade.getListingDetails().pipe(Xt(l=>!!l&&!!l.item),Fe(l=>l.item),o());this.consumerFinance$=t.pipe(Xt(l=>!!l.consumerFinance),Fe(l=>l.consumerFinance)),this.isCarCategory$=t.pipe(Fe(l=>!!l.carDetails)),this.isDealerListing$=t.pipe(Fe(l=>!!(l.seller&&l.seller.id))),this.weeklyPayment$=this.consumerFinance$.pipe(Fe(l=>ht.mapWeeklyPayment(l.weeklyPayment))),this.gtmDataEstimate$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click","dealer_contact_box_estimate"),this.gtmDataEnquire$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click","dealer_contact_box_enquire");let n=this._abFrameworkFacade.getFeatureByName(N).pipe(o());this.userInDrivaVariantB$=n.pipe(Fe(l=>this._abFrameworkFacade.isVariantEnabledForFeature(l,M$3)),o()),this.userInDrivaVariantC$=n.pipe(Fe(l=>this._abFrameworkFacade.isVariantEnabledForFeature(l,a$4)),o()),this.userInDrivaVariantD$=n.pipe(Fe(l=>this._abFrameworkFacade.isVariantEnabledForFeature(l,s$2)),o());}};i.\u0275fac=function(n){return new(n||i)(R$2(Kt$1),R$2(G),R$2(S$2),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-summary"]],standalone:false,decls:2,vars:3,consts:[[3,"weeklyPayment","trackingId","gtmDataEstimate","gtmDataEnquire"],[3,"weeklyPayment","trackingId","gtmData"],[3,"weeklyPayment","isDealerListing","trackingId","gtmData"]],template:function(n,l){if(n&1&&(JN(0,cu,5,5),yA(1,"async")),n&2){let C;XN((C=DA$1(1,1,l.weeklyPayment$))?0:-1,C);}},dependencies:[aa,sa,la,ca,da,pa,bO],styles:["tm-motors-consumer-finance-summary[_nghost-%COMP%]{display:block;margin-top:24px}"]});let e=i;return e})();var Ht=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,aa,sa,la,ca,da,pa]});let e=i;return e})();function du(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",3),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.showEnquiryModal=false)}),bf$1();}if(e&2){let o=yx$1();TD("selectedTab",o.contactSellerType.TradeIn);}}var wp=(()=>{let i=class i{constructor(t){this._motorsGtmService=t,this.contactSellerType=Ne$1,this.buttonText="Trade in your vehicle",this.gtmLocation="",this.motorsDealerTradeinButtonClickTrackingId=z$4;}ngOnInit(){this.gtmData$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click",this.gtmLocation);}};i.\u0275fac=function(n){return new(n||i)(R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-trade-in-button-modal"]],inputs:{buttonText:"buttonText",gtmLocation:"gtmLocation"},standalone:false,decls:6,vars:6,consts:[[1,"tm-trade-in-modal__button"],["fullWidth","","tgStyle","primary","tgButton2","","tmTrackCustomClick","",3,"click","trackingId","data"],[3,"selectedTab","close",4,"ngIf"],[3,"close","selectedTab"]],template:function(n,l){n&1&&(Mf(0),Ia$1(1,"div",0)(2,"button",1),yA(3,"async"),kD("click",function(){return l.showEnquiryModal=true}),Qx$1(4),bf$1()(),iD(5,du,1,1,"tm-contact-seller-modal",2),Ja$2()),n&2&&(X_$1(2),TD("trackingId",l.motorsDealerTradeinButtonClickTrackingId)("data",DA$1(3,4,l.gtmData$)),X_$1(2),Af$1(" ",l.buttonText," "),X_$1(),TD("ngIf",l.showEnquiryModal));},dependencies:[mO,rh$1,He,p,bO],styles:[".tm-trade-in-modal__button[_ngcontent-%COMP%]{margin-bottom:16px}"]});let e=i;return e})();var kp=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Ja$1,He,eu,g]});let e=i;return e})();var Tp=(()=>{let i=class i{constructor(t){this._store=t;}getCurrentSearchParams(){return Be$1}getSearchResults(t=void 0){return this._results$||(this._results$=this._store.select(Ui$1.dealerListingSearchState).pipe(Xt(n=>!!n),f$3(n=>{n.queryParams=y(y({},n.queryParams),t),this._store.dispatch(new c$2(n,e$1.motorsDealerListings));},this._store.select(Ui$1.dealerListingSearchResults)),o())),this._results$}getRefineViewModels(){return Be$1}};i.\u0275fac=function(n){return new(n||i)(G$2(k$2))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var uu=e=>({rsqid:e});function fu(e,i){if(e&1&&(_D(0,"tm-stripe",5),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1(2).ngIf,t=yx$1();TD("listings",o.item)("frendShowAllUrl",DA$1(1,6,t.dealerShowroomLink$))("isLoading",o.isLoading)("extraListingQueryParams",pA(10,uu,o.item==null?null:o.item.searchQueryId))("trackingId",t.gtmDealerMicrositeTrackingId)("data",DA$1(2,8,t.gtmData$));}}
3function hu(e,i){if(e&1&&(Ia$1(0,"div",3),iD(1,fu,3,12,"tm-stripe",4),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),TD("ngIf",o.item&&!o.error);}}function Cu(e,i){if(e&1&&(Mf(0),iD(1,hu,2,1,"div",2),yA(2,"async"),Ja$2()),e&2){let o=yx$1();X_$1(),TD("ngIf",DA$1(2,1,o.currentListing$));}}var Ep=(()=>{let i=class i{constructor(t,n,l,C){this._dealershipListingsFacade=t,this._dealershipService=n,this._listingFacade=l,this._motorsGtmService=C,this.results$=Be$1,this.gtmDealerMicrositeTrackingId=q$1;}ngOnInit(){this.currentListing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.dealerShowroomLink$=this.currentListing$.pipe(Fe(t=>this._dealershipService.getMoreListingsLink(t.dealership))),this.gtmData$=this.currentListing$.pipe(Xt(t=>!!t),Fe(t=>this._motorsGtmService.getGtmData("click",t)));}fetchDealersOtherListingsStripesData(){let t={user_initiated:"false"};this.results$=this._listingFacade.getCurrentListingId().pipe(lo$1(n=>{let l=y({},t);return n&&(l.exclude_listing_id=n),this._dealershipListingsFacade.getSearchResults(l)}));}};i.\u0275fac=function(n){return new(n||i)(R$2(Tp),R$2(s),R$2(pe),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-listings-stripe"]],standalone:false,decls:3,vars:4,consts:[[3,"deferLoad","preRender"],[4,"ngIf"],["class","tm-motors-dealer-listings-stripe__align-margin",4,"ngIf"],[1,"tm-motors-dealer-listings-stripe__align-margin"],["compact","","listingType","item","class","card-on-grey-background tm-motors-dealer-listings-stripe__remove-featured-features","stripeTitle","Dealer's other listings","tmTrackCustomClick","",3,"listings","frendShowAllUrl","isLoading","extraListingQueryParams","trackingId","data",4,"ngIf"],["compact","","listingType","item","stripeTitle","Dealer's other listings","tmTrackCustomClick","",1,"card-on-grey-background","tm-motors-dealer-listings-stripe__remove-featured-features",3,"listings","frendShowAllUrl","isLoading","extraListingQueryParams","trackingId","data"]],template:function(n,l){n&1&&(Ia$1(0,"div",0),kD("deferLoad",function(){return l.fetchDealersOtherListingsStripesData()}),iD(1,Cu,3,3,"ng-container",1),yA(2,"async"),bf$1()),n&2&&(TD("preRender",false),X_$1(),TD("ngIf",DA$1(2,2,l.results$)));},dependencies:[mO,Bt$2,M$1,p,bO],styles:["tm-dealer-listings-stripe[_nghost-%COMP%]{display:block}.tm-motors-dealer-listings-stripe__remove-featured-features[_ngcontent-%COMP%]     .o-card{border:none;background-color:#fff}.tm-motors-dealer-listings-stripe__align-margin[_ngcontent-%COMP%]{margin-top:24px}"]});let e=i;return e})();var Pp=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,g$1,Mr,J,R,V,g]});let e=i;return e})();var yu=e=>({rsqid:e});function xu(e,i){if(e&1&&_D(0,"tm-stripe",3),e&2){let o=yx$1().ngIf;TD("listings",o.item)("isLoading",o.isLoading)("extraListingQueryParams",pA(3,yu,o.item==null?null:o.item.recommendationsTrackingId));}}function bu(e,i){if(e&1&&(Ia$1(0,"div"),iD(1,xu,1,5,"tm-stripe",2),bf$1()),e&2){let o=i.ngIf,t=yx$1();zD("tm-recommended-listings-stripe__align-margin",t.showTopMargin&&o?.item?.totalCount>0),X_$1(),TD("ngIf",o.item&&!o.error);}}var ga=(()=>{let i=class i{constructor(t){this._relatedListingsFacade=t,this.showTopMargin=false;}fetchRecommendedListingsStripesData(){this.resultSet$=this._relatedListingsFacade.getCurrentRelatedListings$();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-recommended-listings-stripe"]],inputs:{currentListingId:"currentListingId",showTopMargin:"showTopMargin"},standalone:false,decls:3,vars:4,consts:[[3,"deferLoad","preRender"],[3,"tm-recommended-listings-stripe__align-margin",4,"ngIf"],["compact","","listingType","item","class","card-on-grey-background tm-recommended-listings-stripe__remove-featured-features","stripeTitle","Other listings you might like",3,"listings","isLoading","extraListingQueryParams",4,"ngIf"],["compact","","listingType","item","stripeTitle","Other listings you might like",1,"card-on-grey-background","tm-recommended-listings-stripe__remove-featured-features",3,"listings","isLoading","extraListingQueryParams"]],template:function(n,l){n&1&&(Ia$
31(0,"div",0),kD("deferLoad",function(){return l.fetchRecommendedListingsStripesData()}),iD(1,bu,2,3,"div",1),yA(2,"async"),bf$1()),n&2&&(TD("preRender",false),X_$1(),TD("ngIf",DA$1(2,2,l.resultSet$)));},dependencies:[mO,Bt$2,M$1,bO],styles:["tm-recommended-listings-stripe[_nghost-%COMP%]{display:block}.tm-recommended-listings-stripe__remove-featured-features[_ngcontent-%COMP%]     .o-card{border:none;background-color:#fff}.tm-recommended-listings-stripe__align-margin[_ngcontent-%COMP%]{margin-top:24px}"]});let e=i;return e})();var to=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,g$1,J,R]});let e=i;return e})();var zi=(function(e){return e.DrivechatMinimize="drivechatOnMinimize",e.DrivechatClose="drivechatOnClose",e.DrivechatChatStarted="drivechatOnStartChat",e.DrivechatMessageSent="drivechatOnMessageSent",e.DrivechatAgentMessageReceived="drivechatOnMessageReceived",e})(zi||{});var zs="motors_dealer_drivechat",Mu="close",Su="minimize",wu="interact",Lp=(()=>{let i=class i{constructor(t){this._analyticsService=t;}addDrivechatChatClosedEvent(){this._analyticsService.addEvent(zs,{action:Mu});}addDrivechatChatMinimizedEvent(){this._analyticsService.addEvent(zs,{action:Su});}addDrivechatChatInteractEvent(){this._analyticsService.addEvent(zs,{action:wu});}};i.\u0275fac=function(n){return new(n||i)(G$2(De))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Ou=["drivechatIFrame"];function Eu(e,i){if(e&1&&_D(0,"iframe",6,0),e&2){let o=i.ngIf,t=yx$1();zD("tm-drivechat-iframe-wrapper__new-ldp",t.isNewLdp),TD("src",o,ky$1);}}var _a=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e,he){this._sanitizer=t,this._windowRef=n,this._mediaFacade=l,this._motorsListingFacade=C,this._delayService=I,this._drivechatGtmTrackingService=j,this._changeDetectorRef=_e,this._loggerService=he,this.isNewLdp=false,this.showButton$=new oo(false),this.showChat$=new oo(false),this._isBreakpointMediumOrBigger=true,this._destroyed$=new W$1,this.timeToMinimizeChat=1200;}ngOnInit(){this.motorsSeller$=this._motorsListingFacade.getListingDetails().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item.seller),o()),this._windowRef.useWindow(t=>{eu$1(t,"message").pipe(Xt(n=>n.data&&n.data.toString().startsWith("drivechat")),Xp(this._destroyed$)).subscribe(n=>{this.processMessageEvent(n);});}),this.drivechatUrl$=this.motorsSeller$.pipe(Xt(t=>!!t&&!!t.liveChat&&!!t.liveChat.driveChatUrl),Fe(t=>this.getDrivechatUrl(t)),th$1(t=>this.hasLoaded=true)),this._mediaFacade.getMediaSize().pipe(Xp(this._destroyed$),Fe(t=>t.isLg||t.isLl||t.isXl)).subscribe(t=>this._isBreakpointMediumOrBigger=t),this._mediaFacade.getMediaSize().pipe(Xp(this._destroyed$),Fe(t=>t.isMd||t.isLg||t.isLl||t.isXl),ph$1(),Fe(([t,n])=>t&&!n),Jp(null),Xt(t=>t)).subscribe(()=>{this.hideChat(),this._changeDetectorRef.markForCheck();});}ngAfterViewInit(){this.hasLoaded&&eu$1(this.iFrameElement.nativeElement,"load").pipe(Xp(this._destroyed$)).subscribe(()=>this.onIFrameLoaded());}ngOnDestroy(){this._destroyed$.next();}onIFrameLoaded(){this._isBreakpointMediumOrBigger&&this.showChat$.next(true);}getDrivechatUrl(t){return t&&t.liveChat?this._sanitizer.bypassSecurityTrustResourceUrl(t.liveChat.driveChatUrl):null}openChat(){this.showButton$.next(false),this.showChat$.next(true),this.postMessage("driveChatOpen"),this._changeDetectorRef.detectChanges();}hideChat(){this.showButton$.next(true),this.showChat$.next(false);}postMessage(t){let n=this.iFrameElement.nativeElement.contentWindow;try{n.postMessage(t,"*");}catch(l){this._loggerService.logError(r$4(l));}}processMessageEvent(t){if(t&&t.data)switch(t.data){case zi.DrivechatMinimize:this.drivechatOnMinimize();break;case zi.DrivechatClose:this.drivechatOnClose();break;case zi.DrivechatChatStarted:case zi.DrivechatMessageSent:case zi.DrivechatAgentMessageReceived:this.drivechatOnInteract();break;}}drivechatOnClose(){this.hideChat(),this._drivechatGtmTrackingService.addDrivechatChatClosedEvent(),this._changeDetectorRef.detectChanges();}drivechatOnMinimize(){this._delayService.createDelay(this.timeToMinimizeChat).pipe(Xp(this._destroyed$)).subscribe(()=>{this.hideChat(),this._changeDetectorRef.detectChanges();}),this._drivechatGtmTrackingService.addDrivechatChatMinimizedEvent();}drivechatOnInteract(){this._drivechatGtmTrackingService.addDrivechatChatInteractEvent();}};i.\u0275fac=function(n){return new(n||i)(R$2(vc),R$2(rt),R$2(G),R$2(Kt$1),R$2(Ut),R$2(Lp),R$2(mc$1),R$2(f$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-drivechat-iframe-wrapper"]],viewQuery:function(n,l){if(n&1&&jD(Ou,5),n&2){let C;
3Cx$1(C=wx$1())&&(l.iFrameElement=C.first);}},inputs:{isNewLdp:"isNewLdp"},standalone:false,decls:9,vars:11,consts:[["drivechatIFrame",""],[1,"tm-drivechat-iframe-wrapper"],["class","tm-drivechat-iframe-wrapper__iframe","sandbox","allow-scripts allow-same-origin",3,"src","tm-drivechat-iframe-wrapper__new-ldp",4,"ngIf"],[1,"tm-drivechat-iframe__button-container"],[1,"tm-drivechat__button-content",3,"click"],[1,"tm-drivechat__designstudio-button-text"],["sandbox","allow-scripts allow-same-origin",1,"tm-drivechat-iframe-wrapper__iframe",3,"src"]],template:function(n,l){n&1&&(Ia$1(0,"div",1),yA(1,"async"),iD(2,Eu,2,3,"iframe",2),yA(3,"async"),bf$1(),Ia$1(4,"div",3),yA(5,"async"),Ia$1(6,"div",4),kD("click",function(){return l.openChat()}),Ia$1(7,"span",5),Qx$1(8,"Live Chat"),bf$1()()()),n&2&&(zD("hidden",!DA$1(1,5,l.showChat$)),X_$1(2),TD("ngIf",DA$1(3,7,l.drivechatUrl$)),X_$1(2),zD("hidden",!DA$1(5,9,l.showButton$)));},dependencies:[mO,bO],styles:[`@keyframes designstudio-fadeInRight{0%{right:-50px}to{right:-28px}}.designstudio-fadeInRight{-webkit-animation-name:designstudio-fadeInRight;animation-name:designstudio-fadeInRight}tm-drivechat-iframe-wrapper:host{display:block;min-height:466px}.hidden{display:none}.tm-drivechat-iframe-wrapper__iframe{position:fixed;z-index:7001;right:0%;bottom:0%;display:inline;width:19em;height:30em;border:0}@media(max-width:767px){.tm-drivechat-iframe-wrapper__iframe{width:100%;height:100%}}.tm-drivechat-iframe-wrapper__new-ldp{bottom:0}.tm-drivechat-iframe__button-container{position:fixed;z-index:3000;right:-28px;bottom:21%;
3width:91.15px;height:35.6px;animation-duration:1.5s;animation-fill-mode:both;animation-name:designstudio-fadeInRight;float:right;transform:rotate(90deg)}@media(max-width:767px){.tm-drivechat-iframe__button-container{display:none}}.tm-drivechat__button-content{position:absolute;top:0;left:0;display:block;padding:.71em;border-top:0 solid #fff;border-right:.14em solid #fff;border-bottom:.14em solid #fff;border-left:.14em solid #fff;background-color:#1083ff;border-radius:0 0 .5em .5em;color:#fff;cursor:pointer;font-size:14px;text-align:center}
4`],encapsulation:2});let e=i;return e})();var Bp=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-drivechat-mobile-button"]],standalone:false,decls:2,vars:0,consts:[["fullWidth","","tgButton2",""]],template:function(n,l){n&1&&(Ia$1(0,"button",0),Qx$1(1,` Live Chat
5`),bf$1());},dependencies:[He],encapsulation:2});let e=i;return e})();var ua=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He]});let e=i;return e})();var Lu=["thumbnail"],Bu=["contents"];function Fu(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"img",4),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.handleSpinStartImageClick())}),bf$1(),Ia$1(2,"div",5),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.handleSpinStartImageClick())}),_D(3,"tg-icon",6),Qx$1(4," 360\xB0 view "),bf$1(),Ja$2();}if(e&2){let o=yx$1(2);X_$1(),TD("src",o.spinThumbnailUrl,Ry$1);}}function Vu(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",10),kD("click",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.resetSpinPlayer())}),_D(1,"tg-icon",11),bf$1();}}function Au(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",7),iD(2,Vu,2,0,"button",8),yA(3,"async"),_D(4,"iframe",9),bf$1(),Ja$2()),e&2){let o=yx$1(2);X_$1(2),TD("ngIf",!DA$1(3,2,o.tempHideCloseButton$)),X_$1(2),TD("src",o.spinUrl,ky$1);}}function $u(e,i){if(e&1&&(Ia$1(0,"div",2),iD(1,Fu,5,1,"ng-container",3)(2,Au,5,4,"ng-container",3),bf$1()),e&2){let o=yx$1();X_$1(),TD("ngIf",!o.motorsInstavidSpinStartImageClicked),X_$1(),TD("ngIf",o.motorsInstavidSpinStartImageClicked);}}function Ru(e,i){if(e&1&&(Ia$1(0,"div",12)(1,"div",13),Qx$1(2,"360\xB0"),bf$1(),_D(3,"img",14)(4,"div"),bf$1()),e&2){let o=i.isSelectedThumbnail,t=yx$1();X_$1(3),TD("src",t.spinThumbnailUrl,Ry$1),X_$1(),zD("tm-motors-instavid-spin__thumbnail-image--selected",o);}}var Nu=`
6function(eventType,eventName,metricsSession,playerVersion,portal,spinCode,timeStamp){
7    if (eventType==="button_click") {
8        window.top.postMessage("${sa$1.MOTORS_DEALER_360_EVENTS_PREFIX}" + eventName, "*")
9    }
10}
11`,Fp=(()=>{let i=class i extends it{constructor(t){super(),this._domSanitizer=t,this.isEnabled=true,this.motorsInstavidSpinStartImageClicked=false,this.tempHideCloseButton$=new oo(false),this.componentName="motorsInstavidSpinComponent";}onPlayerIframePost(t){let n=sa$1.MOTORS_DEALER_360_EVENTS_PREFIX;(t?.data===n+"hotspot_view"||t?.data===n+"camAngles_toggle_on")&&this.tempHideCloseButton$.next(true),(t?.data===n+"hotspot_exit"||t?.data===n+"camAngles_toggle_off")&&this.tempHideCloseButton$.next(false);}ngOnInit(){let t=sa$1.MOTORS_INSTAVID_SPIN_PLAYER_URL_START+this.spinId;t+="&portal=gzqkd&cursor=none&language=en-nz&quality=h&gallery=false&gyro=false&radar=false&camAngles=false&blur-interaction=false&load-control-bar=false&cursor=false&hotspot-color=blue&angle=45&preview=none&zoom-reset=false&zoom-mobile=false",t+="&metricsReturn="+encodeURIComponent(Nu),this.spinUrl=this._domSanitizer.bypassSecurityTrustResourceUrl(t);}handleSpinStartImageClick(){this.motorsInstavidSpinStartImageClicked=true;}load(){return  true}resetSpinPlayer(){this.motorsInstavidSpinStartImageClicked=false;}};i.\u0275fac=function(n){return new(n||i)(R$2(vc))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-instavid-spin"]],viewQuery:function(n,l){if(n&1&&jD(Lu,5)(Bu,5),n&2){let C;Cx$1(C=wx$1())&&(l.thumbnailTemplate=C.first),Cx$1(C=wx$1())&&(l.contentsTemplate=C.first);}},hostBindings:function(n,l){n&1&&kD("message",function(I){return l.onPlayerIframePost(I)},f_$1);},inputs:{desiredIndex:"desiredIndex",spinId:"spinId",spinThumbnailUrl:"spinThumbnailUrl"},standalone:false,features:[rD],decls:4,vars:0,consts:[["contents",""],["thumbnail",""],[1,"tm-motors-instavid-spin__container"],[4,"ngIf"],["role","button","loading","eager","fetchpriority","high","decoding","sync","alt","360 spin of vehicle",1,"tm-motors-instavid-spin__start-image",3,"click","
11src"],["role","button",1,"tm-motors-instavid-spin__start-image-cta",3,"click"],["role","presentation","name","spin"],[1,"tm-motors-instavid-spin__iframe-wrapper"],["class","tm-motors-instavid-spin__reset-button","tgButton2","","transparent","",3,"click",4,"ngIf"],["allow","fullscreen","width","100%","height","100%",1,"tm-motors-instavid-spin__iframe",3,"src"],["tgButton2","","transparent","",1,"tm-motors-instavid-spin__reset-button",3,"click"],["alt","Close spin player","name","basic-cross"],[1,"tm-motors-instavid-spin__thumbnail-container"],[1,"tm-motors-instavid-spin__thumbnail-text"],["loading","eager","fetchpriority","high","decoding","sync","alt","360 spin of vehicle",1,"tm-motors-instavid-spin__thumbnail-image",3,"src"]],template:function(n,l){n&1&&iD(0,$u,3,2,"ng-template",null,0,wA)(2,Ru,5,3,"ng-template",null,1,wA);},dependencies:[mO,He,we,bO],styles:["tm-gallery-view[_nghost-%COMP%]{display:block;margin:0 auto}tm-gallery-view.tm-gallery-view--base[_nghost-%COMP%]{padding:0 24px}@media(min-width:768px){tm-gallery-view.tm-gallery-view--base[_nghost-%COMP%]{max-width:812px}}tm-gallery-view.tm-gallery-view--base[_nghost-%COMP%]   .tm-gallery-view__main-carousel[_ngcontent-%COMP%]{height:50vh;min-height:400px;max-height:477.5px}@media(max-width:767px){tm-gallery-view.tm-gallery-view--base[_nghost-%COMP%]   .tm-gallery-view__main-carousel[_ngcontent-%COMP%]{height:calc(56vw - 48px);min-height:200px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__main-carousel[_ngcontent-%COMP%]{height:75vh;min-height:500px;max-height:800px}@media(max-width:767px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__main-carousel[_ngcontent-%COMP%]{height:75vw;min-height:200px}}@media(min-width:768px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__carousel--premium[_ngcontent-%COMP%]{max-width:58.333%}}@media(min-width:1024px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__carousel--premium[_ngcontent-%COMP%]{max-width:66.667%}}@media(min-width:1280px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__carousel--premium[_ngcontent-%COMP%]{padding-right:36px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__ghost-container[_ngcontent-%COMP%]{margin:auto;padding:0 24px}@media(min-width:768px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__ghost-container[_ngcontent-%COMP%]{max-width:812px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__main-ghost[_ngcontent-%COMP%]{margin-bottom:16px;border-radius:12px;height:50vh;min-height:400px;max-height:477.5px}@media(max-width:767px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__main-ghost[_ngcontent-%COMP%]{height:calc(56vw - 48px);min-height:200px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail[_ngcontent-%COMP%]{width:64px;height:48px;max-height:48px;cursor:pointer;object-fit:cover}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail--selected[_ngcontent-%COMP%]{outline:solid 2px #ffda00;outline-offset:-2px}@media(max-width:767px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail[_ngcontent-%COMP%]{width:48px;height:36px;max-height:36px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail-ghost-container[_ngcontent-%COMP%]{display:flex;justify-content:stretch;padding-bottom:8px}@media(min-width:768px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail-ghost-container[_ngcontent-%COMP%]{max-width:768px;margin:auto}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail-ghost-container[_ngcontent-%COMP%] > .tm-gallery-view__thumbnail[_ngcontent-%COMP%]{margin-right:8px}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__no-photos[_ngcontent-%COMP%]{padding-top:16px}tm-motors-instavid-spin[_nghost-%COMP%]{display:block}.tm-motors-instavid-spin__container[_ngcontent-%COMP%]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;max-width:2000px;position:relative}@media(min-width:768px){.tm-motors-instavid-spin__container[_ngcontent-%COMP%]{max-height:75vw}}.tm-motors-instavid-spin__start-image[_ngcontent-%COMP%]{filter:brightness(80%);aspect-ratio:16/9;width:100%}.tm-motors-instavid-spin__iframe-wrapper[_ngcontent-%COMP%]{aspect-ratio:16/9;width:100%}@media(min-width:1024px){.tm-motors-instavid-spin__iframe-wrapper[_ngcontent-%COMP%]{aspect-ratio:unset;height:100%}}.tm-motors-instavid-spin__start-image-cta[_ngcontent-%COMP%]{color:#fff;display:inline-block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3));font-size:22pt;font-weight:700;line-height:40px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);white-space:nowrap;padding:7em}@media(min-width:768px){.tm-motors-instavid-spin__start-image-cta[_ngcontent-%COMP%]{font-size:3rem;padding:3em}}.tm-motors-instavid-spin__start-image-cta[_ngcontent-%COMP%]   tg-icon[_ngcontent-%COMP%]{margin-right:10px;margin-bottom:8px;-webkit-transform:scale(2,2)}@media(min-width:768px){.tm-motors-instavid-spin__start-image-cta[_ngcontent-%COMP%]   tg-icon[_ngcontent-%COMP%]{-webkit-transform:scale(3.2,3.2);margin-right:22px;margin-bottom:5px;font-size:3rem}}.tm-motors-instavid-spin__iframe[_ngcontent-%COMP%]{border:0}.tm-motors-instavid-spin__reset-button[_ngcontent-%COMP%]{background-color:#0009;color:#fff;cursor:pointer;display:inline-block;right:8px;margin:12px 4px 0;padding:8px;position:absolute}@media(min-width:768px){.tm-motors-instavid-spin__reset-button[_ngcontent-%COMP%]{right:16px;margin-top:24px}}.tm-motors-instavid-spin__thumbnail-container[_ngcontent-%COMP%]{color:#fff;cursor:pointer;font-weight:700;height:100%;position:relative;text-align:center}.tm-motors-instavid-spin__thumbnail-container[_ngcontent-%COMP%]   .tm-motors-instavid-spin__thumbnail-text[_ngcontent-%COMP%]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.tm-motors-instavid-spin__thumbnail-container[_ngcontent-%COMP%]   .tm-motors-instavid-spin__thumbnail-image[_ngcontent-%COMP%]{filter:brightness(60%);height:100%;object-fit:cover}.tm-motors-instavid-spin__thumbnail-image--selected[_ngcontent-%COMP%]{height:100%;border:2px solid #ffda00;position:absolute;top:0;width:100%;z-index:1}@media(max-height:480px)and (orientation:landscape){.tm-motors-instavid-spin__container[_ngcontent-%COMP%]{-webkit-transform:scale(.65,.65)}.tm-motors-instavid-spin__start-image-cta[_ngcontent-%COMP%]{font-size:3rem}}@media(max-height:480px)and (orientation:landscape)and (min-width:768px){.tm-motors-instavid-spin__start-image-cta[_ngcontent-%COMP%]   tg-icon[_ngcontent-%COMP%]{font-size:3rem;margin-right:24px}}"]});let e=i;return e})();var Vp=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,we,we]});let e=i;return e})();var Uu=["thumbnail"],Wu=["contents"];function qu(e,i){if(e&1&&(Mf(0),_D(1,"img",4)(2,"div",5)(3,"tg-icon",6),Ja$2()),e&2){let o=yx$1(2);X_$1(),TD("src",o.videoThumbnailUrl,Ry$1);}}function Hu(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"div",7),kD("visibleChange",function(n){Xh$1(o);let l=yx$1(2);return eg$1(l.visibilityChange(n.isVisible))}),Ia$1(2,"video",8),_D(3,"source",9),bf$1()(),Ja$2();}if(e&2){let o=yx$1(2);X_$1(3),TD("src",o.videoUrl);}}function zu(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"div",2),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.handleVideoStartImageClick())}),iD(2,qu,4,1,"ng-container",3)(3,Hu,4,1,"ng-container",3),bf$1(),Ja$2();}if(e&2){let o=yx$1();X_$1(2),TD("ngIf",!o.motorsInstavidVideoStartImageClicked),X_$1(),TD("ngIf",o.motorsInstavidVideoStartImageClicked);}}
11function Gu(e,i){if(e&1&&(Ia$1(0,"div",10),_D(1,"img",11)(2,"tg-icon",12)(3,"div"),bf$1()),e&2){let o=i.isSelectedThumbnail,t=yx$1();X_$1(),TD("src",t.videoThumbnailUrl,Ry$1),X_$1(2),zD("tm-motors-instavid-video__thumbnail-image--selected",o);}}var fa=(()=>{let i=class i extends it{constructor(t){super(),this.isEnabled=true,this.motorsInstavidVideoStartImageClicked=false,this.componentName="motorsInstavidVideoComponent",this._document=t;}handleVideoStartImageClick(){this.motorsInstavidVideoStartImageClicked=true;}stopPlayback(){this.motorsInstavidVideoStartImageClicked===true&&this._document.querySelectorAll(".tm-motors-instavid-video__video-player")?.forEach(n=>{n instanceof HTMLVideoElement&&n.pause();});}visibilityChange(t){t===false&&this.stopPlayback();}};i.\u0275fac=function(n){return new(n||i)(R$2(je$3))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-instavid-video"]],viewQuery:function(n,l){if(n&1&&jD(Uu,5)(Wu,5),n&2){let C;Cx$1(C=wx$1())&&(l.thumbnailTemplate=C.first),Cx$1(C=wx$1())&&(l.contentsTemplate=C.first);}},inputs:{desiredIndex:"desiredIndex",videoUrl:"videoUrl",videoThumbnailUrl:"videoThumbnailUrl"},standalone:false,features:[rD],decls:4,vars:0,consts:[["contents",""],["thumbnail",""],["role","button",1,"tm-motors-instavid-video__container",3,"click"],[4,"ngIf"],["alt","Instavid video thumbnail",1,"tm-motors-instavid-video__start-image",3,"src"],[1,"tm-motors-instavid-video__icon-circle"],["role","presentation","name","video-play",1,"tm-motors-instavid-video__icon"],["tmTrackVisible","",1,"tm-motors-instavid-video__video-wrapper",3,"visibleChange"],["controls","","autoplay","","width","100%","height","100%","playsinline","",1,"tm-motors-instavid-video__video-player"],["type","video/mp4",3,"src"],[1,"tm-motors-instavid-video__thumbnail-container"],["loading","eager","fetchpriority","high","decoding","sync","alt","Instavid video thumbnail",1,"tm-motors-instavid-video__thumbnail-image",3,"src"],["role","presentation","name","video-play",1,"tm-motors-instavid-video__thumbnail-icon"]],template:function(n,l){n&1&&iD(0,zu,4,2,"ng-template",null,0,wA)(2,Gu,4,3,"ng-template",null,1,wA);},dependencies:[mO,we,x$2],styles:["tm-gallery-view[_nghost-%COMP%]{display:block;margin:0 auto}tm-gallery-view.tm-gallery-view--base[_nghost-%COMP%]{padding:0 24px}@media(min-width:768px){tm-gallery-view.tm-gallery-view--base[_nghost-%COMP%]{max-width:812px}}tm-gallery-view.tm-gallery-view--base[_nghost-%COMP%]   .tm-gallery-view__main-carousel[_ngcontent-%COMP%]{height:50vh;min-height:400px;max-height:477.5px}@media(max-width:767px){tm-gallery-view.tm-gallery-view--base[_nghost-%COMP%]   .tm-gallery-view__main-carousel[_ngcontent-%COMP%]{height:calc(56vw - 48px);min-height:200px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__main-carousel[_ngcontent-%COMP%]{height:75vh;min-height:500px;max-height:800px}@media(max-width:767px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__main-carousel[_ngcontent-%COMP%]{height:75vw;min-height:200px}}@media(min-width:768px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__carousel--premium[_ngcontent-%COMP%]{max-width:58.333%}}@media(min-width:1024px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__carousel--premium[_ngcontent-%COMP%]{max-width:66.667%}}@media(min-width:1280px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__carousel--premium[_ngcontent-%COMP%]{padding-right:36px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__ghost-container[_ngcontent-%COMP%]{margin:auto;padding:0 24px}@media(min-width:768px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__ghost-container[_ngcontent-%COMP%]{max-width:812px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__main-ghost[_ngcontent-%COMP%]{margin-bottom:16px;border-radius:12px;height:50vh;min-height:400px;max-height:477.5px}@media(max-width:767px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__main-ghost[_ngcontent-%COMP%]{height:calc(56vw - 48px);min-height:200px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail[_ngcontent-%COMP%]{width:64px;height:48px;max-height:48px;cursor:pointer;object-fit:cover}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail--selected[_ngcontent-%COMP%]{outline:solid 2px #ffda00;outline-offset:-2px}@media(max-width:767px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail[_ngcontent-%COMP%]{width:48px;height:36px;max-height:36px}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail-ghost-container[_ngcontent-%COMP%]{display:flex;justify-content:stretch;padding-bottom:8px}@media(min-width:768px){tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail-ghost-container[_ngcontent-%COMP%]{max-width:768px;margin:auto}}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__thumbnail-ghost-container[_ngcontent-%COMP%] > .tm-gallery-view__thumbnail[_ngcontent-%COMP%]{margin-right:8px}tm-gallery-view[_nghost-%COMP%]   .tm-gallery-view__no-photos[_ngcontent-%COMP%]{padding-top:16px}tm-motors-instavid-video[_nghost-%COMP%]{display:block}.tm-motors-instavid-video__container[_ngcontent-%COMP%]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative}.tm-motors-instavid-video__icon[_ngcontent-%COMP%]{color:#fff;display:block;position:absolute;scale:250%;z-index:1}@media(min-width:768px){.tm-motors-instavid-video__icon[_ngcontent-%COMP%]{scale:530%}}
11.tm-motors-instavid-video__icon-circle[_ngcontent-%COMP%]{border-radius:50%;background-color:#000;height:100px;left:49.5%;margin-right:24px;min-width:100px;opacity:.6;position:fixed;top:50%;transform:translate(-50%,-50%)}@media(min-width:768px){.tm-motors-instavid-video__icon-circle[_ngcontent-%COMP%]{height:200px;min-width:200px}}.tm-motors-instavid-video__start-image[_ngcontent-%COMP%], .tm-motors-instavid-video__video-wrapper[_ngcontent-%COMP%]{aspect-ratio:4/3;width:100%}@media(min-width:768px){.tm-motors-instavid-video__start-image[_ngcontent-%COMP%], .tm-motors-instavid-video__video-wrapper[_ngcontent-%COMP%]{aspect-ratio:unset;height:100%;max-width:1320px}}.tm-motors-instavid-video__thumbnail-icon[_ngcontent-%COMP%]{color:#fff;position:absolute}.tm-motors-instavid-video__thumbnail-container[_ngcontent-%COMP%]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative}.tm-motors-instavid-video__thumbnail-container[_ngcontent-%COMP%]   .tm-motors-instavid-video__thumbnail-image[_ngcontent-%COMP%]{filter:brightness(60%);object-fit:cover;height:100%}.tm-motors-instavid-video__thumbnail-image--selected[_ngcontent-%COMP%]{height:100%;border:2px solid #ffda00;position:absolute;top:0;width:100%;z-index:1}"]});let e=i;return e})();var $p=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we]});let e=i;return e})();function Zu(e,i){if(e&1&&_D(0,"tm-display-ad-wrapper",1),e&2){let o=yx$1();TD("adType",o.adType);}}var ha=(()=>{let i=class i{constructor(t,n){this._categoryService=t,this._listingFacade=n;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),th$1(t=>this.adType=this.setAdType(t.category)));}setAdType(t){return this._categoryService.isCars(R$3(t))?"mrec,doubleMrec,skyscraper":"mrec"}};i.\u0275fac=function(n){return new(n||i)(R$2(P),R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-advertisement"]],standalone:false,decls:2,vars:3,consts:[["slotName","right-column-1","class","tm-advertisement__display-ad","fuseId","right-column-1",3,"adType",4,"ngIf"],["slotName","right-column-1","fuseId","right-column-1",1,"tm-advertisement__display-ad",3,"adType"]],template:function(n,l){n&1&&(iD(0,Zu,1,1,"tm-display-ad-wrapper",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));},dependencies:[mO,_i$1,bO],styles:["tm-advertisement[_nghost-%COMP%]{display:block}.tm-advertisement__display-ad[_ngcontent-%COMP%]{position:sticky;top:80px;width:300px;min-height:250px;margin:0 auto 48px}"]});let e=i;return e})();var Ca=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Co]});let e=i;return e})();function Qu(e,i){if(e&1&&(Ia$1(0,"div",1)(1,"div",2)(2,"span",3),Qx$1(3),Ia$1(4,"p",4),Qx$1(5),yA(6,"tgCurrency"),bf$1()(),Ia$1(7,"small",5),Qx$1(8),bf$1()(),Ia$1(9,"div",6)(10,"ul")(11,"li",7)(12,"span",8),_D(13,"tg-icon",9),bf$1(),Qx$1(14),bf$1(),Ia$1(15,"li",7)(16,"span",8),_D(17,"tg-icon",10),bf$1(),Qx$1(18),bf$1()()(),Ia$1(19,"div",11)(20,"a",12),Qx$1(21," View offer "),bf$1()()()),e&2){let o=i.ngIf,t=yx$1();X_$1(3),Af$1(" ",t.getOfferStatusText(o.isCounterOffer)," "),X_$1(2),rE(DA$1(6,7,o.offerPrice)),X_$1(3),Af$1(" ",t.timeUntilOfferExpires(o.expireDate)," "),X_$1(6),Af$1(" Payment: ",t.getPaymentOptionText(o.paymentMethodId)," "),X_$1(4),Af$1(" Pick up: ",t.pickupLocation," "),X_$1(2),TD("routerLink",rA(t.getRouterLink(o)));}}var Np=(()=>{let i=class i{constructor(t,n,l,C,I){this._listingFacade=t,this._currentMemberFacade=n,this._auctionOfferFacade=l,this._shippingUtil=C,this._changeDetectorRef=I,this._destroyed$=new W$1;}ngOnInit(){let t=this._listingFacade.getCurrentListing().pipe(Xt(n=>!!n&&!!n.item),Fe(n=>n.item),o());this.latestOffer$=wC$1([this._currentMemberFacade.getCurrentMember(),t]).pipe(Xt(([n,l])=>!!n&&!l.dealership),lo$1(([n,l])=>this._auctionOfferFacade.getAllOffersWithSpecificBuyer(l.listingId,n.memberId)),Ui(),Xt(n=>n.totalCount>0),Fe(n=>n.list[n.totalCount-1]),o(),Xp(this._destroyed$)),this.listing&&(this.listing.allowsPickups===M$2.allow||this.listing.allowsPickups===M$2.demand)&&(this.pickupLocation=this._shippingUtil.getShippingOrigin(this.listing));}timeUntilOfferExpires(t){let n=new Date;return this.closingCountdown(t,n,false)}closingCountdown(t,n,l){let C=c$1(t,n),I=m$1(t,n)%60,j=l?"":"Expires in ";return C<1&&I>0?`${j}${this.pluraliseIt(I,"min")}`:`${j}${this.pluraliseIt(C,"hr")}`}pluraliseIt(t,n){return `${t} ${n}${t===1?"":"s"}`}getPaymentOptionText(t){switch(t){case _$1.bankDeposit:return "NZ bank deposit";case _$1.cash:return "Cash";default:return ""}}getOfferStatusText(t){return t?un$1.COUNTER_OFFER:un$1.YOU_OFFERED}ngOnDestroy(){this._destroyed$.next();}getRouterLink(t){return t.isCounterOffer?`/my-trade-me/offers/${this.listing.listingId}/${t.receiver.memberId}`:`/my-trade-me/offers/${this.listing.listingId}/${t.member.memberId}`}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(E),R$2(It$1),R$2(se),R$2(mc$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-offer-status-container"]],inputs:{listing:"listing"},standalone:false,decls:2,vars:3,consts:[["class","tm-offer-status-container__grid",4,"ngIf"],[1,"tm-offer-status-container__grid"],[1,"tm-offer-status-container__tile-information"],[1,"tm-offer-status-container__title"],[1,"tm-offer-status-container__offer-price"],[1,"tm-expire-count-down-timer__text"],[1,"tm-offer-status-container__offer-pick-up-and-payment-information"],[1,"tm-offer-status-container__offer-pick-up-and-payment-information-text"],[1,"tm-offer-status-container__icon"],["size","small","name","shop-wallet","alt","t1"],["size","small","name","vehicle-car","alt","t"],[1,"tm-offer-status-container__link"],["queryParamsHandling","merge",1,"tm-offer-status-container__link-text",3,"routerLink"]],template:function(n,l){n&1&&(iD(0,Qu,22,9,"div",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.latestOffer$));},dependencies:[mO,rn,we,bO,mr],styles:["tm-offer-status-container[_nghost-%COMP%]{display:block}.tm-offer-status-container__grid[_ngcontent-%COMP%]{align-items:flex-start;border-top:1px solid #d7d5d2;border-bottom:1px solid #d7d5d2;display:flex;flex-direction:column;grid-template-columns:repeat(2,1fr);padding-top:16px;padding-bottom:16px}.tm-offer-status-container__title[_ngcontent-%COMP%]{color:#76716d;font-size:1rem;font-family:Story Sans,Helvetica Neue,helvetica,arial,sans-serif;font-style:normal;font-weight:400;line-height:24px}.tm-offer-status-container__tile-information[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;align-items:flex-start}.tm-offer-status-container__offer-price[_ngcontent-%COMP%]{color:#44413d;font-size:24px;font-family:Story Sans,Helvetica Neue,helvetica,arial,sans-serif;font-style:normal;font-weight:700;line-height:32px;padding-bottom:16px;margin-bottom:inherit}.tm-offer-status-container__offer-pick-up-and-payment-information[_ngcontent-%COMP%]{align-items:flex-start;display:flex;flex-direction:column}.tm-offer-status-container__offer-pick-up-and-payment-information-text[_ngcontent-%COMP%]{align-items:flex-start;
11color:#65605d;font-size:.875rem;font-family:Story Sans,Helvetica Neue,helvetica,arial,sans-serif;font-style:normal;font-weight:400;line-height:22px}.tm-expire-count-down-timer__text[_ngcontent-%COMP%]{align-content:end;color:#d93a3f;font-family:Story Sans,Helvetica Neue,helvetica,arial,sans-serif;font-size:.75rem;font-style:normal;font-weight:400;line-height:16px}.tm-offer-status-container__icon[_ngcontent-%COMP%]{padding-right:8px}.tm-offer-status-container__link[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-self:stretch}.tm-offer-status-container__link-text[_ngcontent-%COMP%]{color:#007acd;font-size:.875rem;font-family:Story Sans,Helvetica Neue,helvetica,arial,sans-serif;font-style:normal;font-weight:400;line-height:20px;padding-top:16px}"]});let e=i;return e})();var no=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,eu,we,_c,X_,we]});let e=i;return e})();var Xu=5,_t=(()=>{let i=class i{constructor(t,n){this._listingUtilervice=t,this._currentMemberFacade=n,this._destroyed$=new W$1,this._currentMemberFacade.selectCurrentMember().pipe(Xp(this._destroyed$),Xt(l=>!!l)).subscribe(l=>{this.currentMember=l.item;});}isMyListing(t){return !!(t.member&&this.currentMember&&t.member.memberId===this.currentMember.memberId)}isOpen(t){return !this._listingUtilervice.closingTimeIsPast(t)&&!t.withdrawnBySeller}canShowWatchlistButton(t){return this.isOpen(t)&&!this.isMyListing(t)}canShowBidderWatchersCount(t){return t.bidderAndWatchers>=Xu&&!this.isMyListing(t)}canBuyNow(t){return this.isOpen(t)&&t.hasBuyNow&&!t.isReserveMet}isBuyNowPurchased(t){return !!(t.bidCount&&t.bids&&t.bids.list&&t.bids.list[0]&&t.bids.list[0].isBuyNow)}isAuction(t){return !(t.reserveState&&t.reserveState===G$5.notApplicable)}relistedItemHref(t){return t&&"/listing/"+t.relistedItemId}};i.\u0275fac=function(n){return new(n||i)(G$2(Y$1),G$2(E))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();function nf(e,i){if(e&1&&(_D(0,"tm-buy-now-box",5),yA(1,"async")),e&2){let o=yx$1().ngIf,t=yx$1();TD("currentMember",DA$1(1,2,t.currentMember$))("listing",o);}}function of(e,i){if(e&1&&_D(0,"tm-sold-info-box",6),e&2){let o=yx$1().ngIf;TD("listing",o);}}function rf(e,i){if(e&1&&_D(0,"tm-listing-auction",7),e&2){let o=yx$1().ngIf,t=Tx$1(9);TD("listing",o)("turnersBidWarning",t);}}function af(e,i){if(e&1&&(Ia$1(0,"div",9)(1,"p",10),Qx$1(2,"Contact Details"),bf$1(),Ia$1(3,"p",10),Qx$1(4," Email: "),Ia$1(5,"span"),Qx$1(6),bf$1()(),Ia$1(7,"p",10),Qx$1(8," Phone: "),Ia$1(9,"span"),Qx$1(10),bf$1()(),Ia$1(11,"p",11),Qx$1(12," We may provide your contact details to Turners if you win this auction, or if you're one of the next closest bidders, so they can get in touch to complete the sale or make an offer. "),bf$1()()),e&2){let o=i.ngIf;X_$1(6),Af$1(" ",o.email," "),X_$1(4),Af$1(" ",o.mobilePhoneNumber||o.landlinePhoneNumber," ");}}function sf(e,i){if(e&1&&(iD(0,af,13,2,"div",8),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1(2);TD("ngIf",DA$1(2,3,DA$1(1,1,o.showTurnersWarning$)&&o.currentMember$));}}function lf(e,i){if(e&1&&(Mf(0),iD(1,nf,2,4,"tm-buy-now-box",2),yA(2,"async"),iD(3,of,1,1,"tm-sold-info-box",3),yA(4,"async"),iD(5,rf,1,2,"tm-listing-auction",4),yA(6,"async"),yA(7,"async"),iD(8,sf,3,5,"ng-template",null,0,wA),Ja$2()),e&2){let o=yx$1();X_$1(),TD("ngIf",DA$1(2,3,o.canBuyNow$)),X_$1(2),TD("ngIf",DA$1(4,5,o.isBuyNowPurchased$)),X_$1(2),TD("ngIf",DA$1(6,7,o.isAuction$)&&!DA$1(7,9,o.isBuyNowPurchased$));}}var jp=(()=>{let i=class i{constructor(t,n,l){this._listingFacade=t,this._currentMemberFacade=n,this._listingService=l;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.canBuyNow$=this.listing$.pipe(Fe(t=>this._listingService.canBuyNow(t))),this.isBuyNowPurchased$=this.listing$.pipe(Fe(t=>this._listingService.isBuyNowPurchased(t))),this.isAuction$=this.listing$.pipe(Fe(t=>this._listingService.isAuction(t))),this.currentMember$=this._currentMemberFacade.selectCurrentMember().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.showTurnersWarning$=wC$1([this.listing$,this.currentMember$]).pipe(Fe(([t,n])=>t&&t.renderOptions&&t.renderOptions.length&&t.renderOptions.includes(lt.canDisplayContactDetails)&&!!n));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(E),R$2(_t))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-auction-pricing"]],standalone:false,decls:2,vars:3,consts:[["turnersBidWarning",""],[4,"ngIf"],[3,"currentMember","listing",4,"ngIf"],[3,"listing",4,"ngIf"],[3,"listing","turnersBidWarning",4,"ngIf"],[3,"currentMember","listing"],[3,"listing"],[3,"listing","turnersBidWarning"],["class","tm-motors-auction-pricing__turners",4,"ngIf"],[1,"tm-motors-auction-pricing__turners"],[1,"tm-motors-auction-pricing__turners-label"],[1,"tm-motors-auction-pricing__turners_info"]],template:function(n,l){n&1&&(iD(0,lf,10,11,"ng-container",1),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));}
11,dependencies:[mO,AK,TV,rs$1,bO],styles:["tm-auction-pricing[_nghost-%COMP%]{display:block}tm-buy-now-box[_ngcontent-%COMP%] + tm-listing-auction[_ngcontent-%COMP%]{margin-top:-8px}tm-buy-now-box[_ngcontent-%COMP%]     .o-box2, tm-listing-auction[_ngcontent-%COMP%]     .o-box2{padding:0;margin-bottom:0;background-color:#fff}@media(max-width:767px){tm-buy-now-box[_ngcontent-%COMP%]     .o-box2, tm-listing-auction[_ngcontent-%COMP%]     .o-box2{padding-right:8px;padding-left:8px}}.tm-motors-auction-pricing__turners-label[_ngcontent-%COMP%]{padding-right:16px;margin-bottom:8px;color:#65605d;font-size:1rem;font-weight:500;line-height:24px}.tm-motors-auction-pricing__turners-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400}tm-buy-now-box[_ngcontent-%COMP%]{margin-bottom:48px}.tm-motors-auction-pricing__turners_info[_ngcontent-%COMP%]{margin-bottom:16px;font-size:.75rem;line-height:16px}.tm-motors-auction-pricing__turners[_ngcontent-%COMP%]{padding:0 16px}"]});let e=i;return e})();var Gn=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,_e,t7,EV,xs$1,b7,no]});let e=i;return e})();var zt=(()=>{let i=class i{constructor(t,n){this._listingUtilService=t,this._abFrameworkFacade=n,this._destroyed$=new W$1;}showBuyerTemplate(t){return this.getClosedListingComputedState(t).pipe(Fe(n=>n.currentMemberIsBuyer))}showSellerTemplate(t){return this.getClosedListingComputedState(t).pipe(Fe(n=>n.currentMemberIsSeller))}getClosedListingComputedState(t){return this._listingUtilService.getListingTransactionState(t).pipe(Xt(n=>!!n&&n.isClosed&&n.isListingSold),Xp(this._destroyed$))}isListingSold(t){return this.getClosedListingComputedState(t).pipe(Fe(n=>!!n),Xp(this._destroyed$))}isListingOpen(t){return this.getOpenListingComputedState(t).pipe(Fe(n=>!!n),Xp(this._destroyed$))}getOpenListingComputedState(t){return this._listingUtilService.getListingTransactionState(t).pipe(Xt(n=>!!n&&!n.isClosed&&!n.isListingSold),Xp(this._destroyed$))}};i.\u0275fac=function(n){return new(n||i)(G$2(Y$1),G$2(S$2))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Up=(()=>{let i=class i{constructor(){this.close=new Pt;}onClose(){this.close.emit();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-orc-info-modal"]],outputs:{close:"close"},standalone:false,decls:9,vars:0,consts:[[3,"close"]],template:function(n,l){n&1&&(Ia$1(0,"tg-modal",0),kD("close",function(){return l.onClose()}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"On Road Costs"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"p"),Qx$1(6," If a vehicle listing notes that the price excludes on road costs, the buyer may not be able to legally drive the vehicle on New Zealand roads without first having to pay additional fees or changes. Examples of on road costs are Warrant of Fitness (WoF), registration and licence, or Road User Charges (RUC) for diesel vehicles. Make sure you ask the seller what additional costs you will have to pay if you plan on using one of these vehicles on the road. "),bf$1(),Ia$1(7,"p"),Qx$1(8," If a vehicle listing notes that the price has on road costs included, as a minimum, it needs to have a current WoF, a current registration, a current licence (for at least 3 months), 1,000km of Road User Charges (for diesel vehicles) and anything else required by law to allow the vehicle to be used on the road. "),bf$1()()());},dependencies:[Hr,jb$1,Lb$1],styles:["tm-orc-info-modal[_nghost-%COMP%]{display:block}"]});let e=i;return e})();function df(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"div",4)(2,"div")(3,"div",5),Qx$1(4,"On road costs"),bf$1(),Ia$1(5,"div",6),Qx$1(6),bf$1()(),Ia$1(7,"tg-icon",7),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showInformationModal())}),bf$1()(),Ja$2();}if(e&2){let o=yx$1().ngIf;X_$1(6),Af$1(" ",o," ");}}function pf(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",8)(1,"div",9)(2,"div",10),Qx$1(3,"On road costs"),bf$1(),Ia$1(4,"tg-icon",11),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showInformationModal())}),bf$1()(),Ia$1(5,"div",6),Qx$1(6),bf$1()();}if(e&2){let o=yx$1().ngIf;X_$1(6),Af$1(" ",o," ");}}function gf(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-orc-info-modal",12),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.hideInformationModal())}),bf$1();}}function _f(e,i){if(e&1&&(Mf(0),iD(1,df,8,1,"ng-container",2),yA(2,"async"),yA(3,"async"),yA(4,"async"),iD(5,pf,7,1,"ng-template",null,0,wA)(7,gf,1,0,"tm-orc-info-modal",3),Ja$2()),e&2){let o=Tx$1(6),t=yx$1();X_$1(),TD("ngIf",!DA$1(2,3,t.isDealerListing$)&&(DA$1(3,5,t.isAuction$)||DA$1(4,7,t.listingHasSold$)))("ngIfElse",o),X_$1(6),TD("ngIf",t.isInformationModalVisible);}}var Wp=(()=>{let i=class i{constructor(t,n,l){this._listingFacade=t,this._listingService=n,this._listingSalesActivityService=l;}ngOnInit(){this.onRoadCostsText$=this._listingFacade.getCurrentListing(
11).pipe(Xt(t=>!!t&&!!t.item&&!!t.item.attributes),Fe(t=>i.getOnRoadCostsText(t.item.attributes))),this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.isAuction$=this.listing$.pipe(Fe(t=>this._listingService.isAuction(t))),this.isDealerListing$=this.listing$.pipe(Fe(t=>!!t.dealership)),this.listingHasSold$=this.listing$.pipe(lo$1(t=>this._listingSalesActivityService.isListingSold(t)));}showInformationModal(){this.isInformationModalVisible=true;}hideInformationModal(){this.isInformationModalVisible=false;}static getOnRoadCostsText(t){let n=t.find(l=>l.name==="on_road_costs");return n?n.value==="Included"?"Included":"Excluded":null}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(_t),R$2(zt))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-orc-description"]],standalone:false,decls:2,vars:3,consts:[["classified",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"close",4,"ngIf"],[1,"tm-orc-description__auction-container"],[1,"tm-orc-description__auction-header"],[1,"tm-orc-description__value"],["name","basic-info-framed","alt","On road costs status",1,"tm-orc-description__auction-info-icon",3,"click"],[1,"tm-orc-description__classified-container"],[1,"tm-orc-description__classified-header-icon-row"],[1,"tm-orc-description__header"],["size","small","name","basic-info-framed","alt","On road costs status",1,"tm-orc-description__classified-info-icon",3,"click"],[3,"close"]],template:function(n,l){n&1&&(iD(0,_f,8,9,"ng-container",1),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.onRoadCostsText$));},dependencies:[mO,Up,we,bO],styles:["tm-orc-description[_nghost-%COMP%]{display:block}.tm-orc-description__auction-container[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between}.tm-orc-description__auction-header[_ngcontent-%COMP%]{color:#94797a;font-size:.75rem}.tm-orc-description__auction-info-icon[_ngcontent-%COMP%]{margin-top:16px;color:#007acd}.tm-orc-description__classified-container[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between}.tm-orc-description__classified-header-icon-row[_ngcontent-%COMP%]{display:flex}.tm-orc-description__classified-header[_ngcontent-%COMP%]{color:#94797a;font-size:.75rem}.tm-orc-description__classified-info-icon[_ngcontent-%COMP%]{margin-top:4px;margin-left:4px;color:#007acd}"]});let e=i;return e})();var qp=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Hb$1]});let e=i;return e})();var Gt=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,qp,we]});let e=i;return e})();function ff(e,i){if(e&1&&(Ia$1(0,"div",4),Qx$1(1),yA(2,"async"),bf$1()),e&2){let o=yx$1();X_$1(),Af$1(" ",DA$1(2,1,o.priceDisplay$)," ");}}function hf(e,i){if(e&1&&(Ia$1(0,"div")(1,"div"),Qx$1(2," Asking price "),Ia$1(3,"p",5),Qx$1(4),yA(5,"async"),Ia$1(6,"span",6),Qx$1(7," excl GST "),bf$1()()(),Ia$1(8,"div",7),Qx$1(9," Incl GST price "),Ia$1(10,"span",8),Qx$1(11),yA(12,"async"),bf$1()()()),e&2){let o=yx$1();X_$1(4),Af$1(" ",DA$1(5,2,o.price$)," "),X_$1(7),Af$1(" ",DA$1(12,4,o.includeGstPrice$)," ");}}function Cf(e,i){if(e&1&&(_D(0,"tm-buy-now-box",13),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1(2);TD("currentMember",DA$1(1,2,o.currentMember$))("listing",DA$1(2,4,o.listing$));}}function vf(e,i){if(e&1&&(Ia$1(0,"div",14)(1,"div",15),Qx$1(2),yA(3,"async"),bf$1(),Ia$1(4,"div",16),Qx$1(5),yA(6,"async"),bf$1()()),e&2){let o=yx$1(2);X_$1(2),Af$1(" ",DA$1(3,2,o.priceDisplay$)," "),X_$1(3),Af$1(" ",DA$1(6,4,o.price$)," ");}}function yf(e,i){if(e&1&&(Ia$1(0,"p",17),Qx$1(1),bf$1()),e&2){let o=i.ngIf;X_$1(),Af$1(" Was ",o," ");}}function xf(e,i){if(e&1&&(Ia$1(0,"div",9),iD(1,Cf,3,6,"tm-buy-now-box",10),yA(2,"async"),iD(3,vf,7,6,"div",11),yA(4,"async"),iD(5,yf,2,1,"p",12),yA(6,"async"),yA(7,"async"),bf$1()),e&2){let o=yx$1();X_$1(),TD("ngIf",DA$1(2,3,o.canBuyNow$)),X_$1(2),TD("ngIf",!DA$1(4,5,o.canBuyNow$)),X_$1(2),TD("ngIf",DA$1(7,9,!DA$1(6,7,o.canBuyNow$)&&o.wasPrice$));}}var bf=1e3,Hp=(()=>{let i=class i{constructor(t,n,l){this._listingFacade=t,this._listingService=n,this._currentMemberFacade=l,this.motorPriceTypes=y$1;}
11ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.canBuyNow$=this.listing$.pipe(Fe(t=>this._listingService.canBuyNow(t))),this.currentMember$=this._currentMemberFacade.selectCurrentMember().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.priceDisplay$=this.listing$.pipe(Fe(t=>this.getPriceDisplay(t))),this.price$=this.listing$.pipe(Fe(t=>this.getPrice(t.startPrice))),this.wasPrice$=this.listing$.pipe(Fe(t=>this.getPrice(t.wasPrice))),this.priceType$=this.listing$.pipe(Fe(t=>t.priceType)),this.includeGstPrice$=this.listing$.pipe(Fe(t=>this.getPrice(t.includeGstStartPrice)));}getPriceDisplay(t){let n=t.priceDisplay;if(n){if(t.priceType===y$1.priceOnApplication)return n;if(n.includes("near offer"))return "Or near offer";if(n.includes("Estimated"))return "Estimated price"}return "Asking price"}getPrice(t){return t?UI(t,"en-US","$","",t<bf?"1.2-2":"1.0-0"):null}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(_t),R$2(E))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-pricing-box"]],standalone:false,decls:5,vars:5,consts:[[3,"ngSwitch"],["class","tm-motors-pricing-box__price-on-application",4,"ngSwitchCase"],[4,"ngSwitchCase"],["class","tm-pricing-box",4,"ngSwitchDefault"],[1,"tm-motors-pricing-box__price-on-application"],[1,"tm-motors-pricing-box__excl-price","p-h1"],[1,"tm-motors-pricing-box__excl-gst"],[1,"tm-motors-pricing-box__incl-price-container"],[1,"tm-motors-pricing-box__incl-price"],[1,"tm-pricing-box"],[3,"currentMember","listing",4,"ngIf"],["class","tm-motors-pricing-box__container",4,"ngIf"],["class","tm-motors-pricing-box__was-price",4,"ngIf"],[3,"currentMember","listing"],[1,"tm-motors-pricing-box__container"],[1,"tm-motors-pricing-box__price-display"],[1,"tm-motors-pricing-box__price"],[1,"tm-motors-pricing-box__was-price"]],template:function(n,l){n&1&&(Mf(0,0),yA(1,"async"),iD(2,ff,3,3,"div",1)(3,hf,13,6,"div",2)(4,xf,8,11,"div",3),Ja$2()),n&2&&(TD("ngSwitch",DA$1(1,3,l.priceType$)),X_$1(2),TD("ngSwitchCase",l.motorPriceTypes.priceOnApplication),X_$1(),TD("ngSwitchCase",l.motorPriceTypes.excludingGST));},dependencies:[mO,Ip,yO,vO,AK,bO],styles:["tm-pricing-box[_nghost-%COMP%]{display:block;width:100%}.tm-pricing-box[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:8px}.tm-motors-pricing-box__container[_ngcontent-%COMP%]{display:flex;align-items:center;line-height:40px}.tm-motors-pricing-box__price-display[_ngcontent-%COMP%]{width:100%;color:#65605d}.tm-motors-pricing-box__price[_ngcontent-%COMP%]{color:#44413d;font-size:2rem;font-weight:700;text-align:right}.tm-motors-pricing-box__was-price[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:8px;color:#f3632d;font-size:.875rem;text-align:right;text-decoration:line-through}@media(min-width:1024px){.tm-motors-pricing-box__was-price[_ngcontent-%COMP%]{font-size:1rem}}tm-buy-now-box[_ngcontent-%COMP%]     .o-box2, tm-listing-auction[_ngcontent-%COMP%]     .o-box2{padding:0;margin-bottom:0;background-color:#fff}.tm-motors-pricing-box__price-on-application[_ngcontent-%COMP%]{color:#44413d;font-size:1.5rem;font-weight:700}.tm-motors-pricing-box__excl-price[_ngcontent-%COMP%]{margin-left:4px}.tm-motors-pricing-box__excl-gst[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400}.tm-motors-pricing-box__incl-price[_ngcontent-%COMP%]{font-weight:400;text-align:right}.tm-motors-pricing-box__incl-price-container[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;margin-bottom:24px}"]});let e=i;return e})();var Fi=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,t7]});let e=i;return e})();var va=(()=>{let i=class i{constructor(t){this._auctionOfferFacade=t;}getLatestActiveOffer(t,n,l){return wC$1([t,n,l]).pipe(Xt(([C,I,j])=>!!C&&!!I&&!!j&&!!j.memberId&&!C.dealership),lo$1(([C,I,j])=>this._auctionOfferFacade.getAllOffersWithSpecificBuyer(C.listingId,j.memberId)),Fe(C=>C&&C.totalCount&&C.list&&C.totalCount>0&&C.list[C.totalCount-1]?.status===gn.CREATED?C.list[C.totalCount-1]:null))}};i.\u0275fac=function(n){return new(n||i)(G$2(It$1))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();function Sf(e,i){e&1&&_D(0,"tm-motors-consumer-finance-summary")(1,"tm-motors-dealer-finance-summary");}function wf(e,i){if(e&1&&(_D(0,"tm-offer-status-container",2),yA(1,"async")),e&2){let o=yx$1(3);TD("listing",DA$1(1,1,o.listing$));}}
11function kf(e,i){if(e&1&&(_D(0,"tm-make-an-offer-container",3),yA(1,"async")),e&2){let o=yx$1(3);TD("trackingId",o.motorsMAOModelTrackingId)("data",DA$1(1,2,o.motorsMakeAnOfferGTMData$));}}function If(e,i){if(e&1&&(_D(0,"tm-auction-pricing"),JN(1,Sf,2,0),yA(2,"async"),Ia$1(3,"div",1),JN(4,wf,2,3,"tm-offer-status-container",2),yA(5,"async"),JN(6,kf,2,4,"tm-make-an-offer-container",3),yA(7,"async"),yA(8,"async"),bf$1(),_D(9,"tm-orc-description")),e&2){let o=yx$1(2);X_$1(),XN(DA$1(2,3,o.isCarCategory$)?1:-1),X_$1(3),XN(DA$1(5,5,o.latestOfferIsActive$)?4:-1),X_$1(2),XN(!DA$1(7,7,o.latestOfferIsActive$)&&DA$1(8,9,o.shouldShowMAO$)?6:-1);}}function Tf(e,i){e&1&&_D(0,"tm-pricing-box")(1,"tm-orc-description");}function Of(e,i){if(e&1&&_D(0,"tm-sold-info-box",2)(1,"tm-orc-description"),e&2){let o=yx$1(2);TD("listing",o);}}function Ef(e,i){e&1&&_D(0,"tm-motors-consumer-finance-summary")(1,"tm-motors-dealer-finance-summary");}function Pf(e,i){if(e&1&&(_D(0,"tm-offer-status-container",2),yA(1,"async")),e&2){let o=yx$1(3);TD("listing",DA$1(1,1,o.listing$));}}function Df(e,i){if(e&1&&(_D(0,"tm-make-an-offer-container",3),yA(1,"async")),e&2){let o=yx$1(3);TD("trackingId",o.motorsMAOModelTrackingId)("data",DA$1(1,2,o.motorsMakeAnOfferGTMData$));}}function Lf(e,i){if(e&1&&(JN(0,Tf,2,0),yA(1,"async"),yA(2,"async"),yA(3,"async"),wf$1(4,Of,2,1),JN(5,Ef,2,0),yA(6,"async"),Ia$1(7,"div",1),JN(8,Pf,2,3,"tm-offer-status-container",2),yA(9,"async"),JN(10,Df,2,4,"tm-make-an-offer-container",3),yA(11,"async"),yA(12,"async"),bf$1()),e&2){let o=yx$1(2);XN(DA$1(1,4,o.isDealerListing$)||DA$1(2,6,o.listingHasOpenState$)||!DA$1(3,8,o.listingHasSold$)?0:4),X_$1(5),XN(DA$1(6,10,o.isCarCategory$)?5:-1),X_$1(3),XN(DA$1(9,12,o.latestOfferIsActive$)?8:-1),X_$1(2),XN(!DA$1(11,14,o.latestOfferIsActive$)&&DA$1(12,16,o.shouldShowMAO$)?10:-1);}}function Bf(e,i){if(e&1&&(Ia$1(0,"div",0),JN(1,If,10,11),yA(2,"async"),wf$1(3,Lf,13,18),bf$1()),e&2){let o=yx$1();X_$1(),XN(DA$1(2,1,o.isAuction$)?1:3);}}var Vi=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e,he){this._listingFacade=t,this._listingService=n,this._listingSalesActivityService=l,this._auctionOfferFacade=C,this._currentMemberFacade=I,this._motorsGtmService=j,this._makeAnOfferLatestOfferService=_e,this._categoryService=he,this._destroyed$=new W$1,this.motorsMAOModelTrackingId=sa$1.MOTORS_MAO_MODEL_TRACKING_ID;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.isAuction$=this.listing$.pipe(Fe(t=>this._listingService.isAuction(t))),this.isCarCategory$=this.listing$.pipe(Fe(t=>this._categoryService.isUsedCars(R$3(t.category)))),this.listingHasOpenState$=this.listing$.pipe(lo$1(t=>this._listingSalesActivityService.isListingOpen(t))),this.listingHasSold$=this.listing$.pipe(lo$1(t=>this._listingSalesActivityService.isListingSold(t))),this.isDealerListing$=this.listing$.pipe(Fe(t=>!!t&&!!t.dealership)),this.currentMember$=this._currentMemberFacade.selectCurrentMember().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.shouldShowMAO$=this._auctionOfferFacade.shouldShowMotorsMakeAnOffer(this.listing$).pipe(Xt(t=>!!t),Xp(this._destroyed$)),this.latestOfferIsActive$=this._makeAnOfferLatestOfferService.getLatestActiveOffer(this.listing$,this.shouldShowMAO$,this.currentMember$).pipe(Fe(t=>t!==null),Xp(this._destroyed$)),this.motorsMakeAnOfferGTMData$=this.listing$.pipe(Xt(t=>!!t),Fe(t=>this._motorsGtmService.getMakeAnOfferGTMData("click","primary_cta",t)));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(_t),R$2(zt),R$2(It$1),R$2(E),R$2($$1),R$2(va),R$2(P))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-auction-pricing-box"]],standalone:false,decls:2,vars:3,consts:[[1,"tm-auction-pricing-box"],[1,"tm-auction-pricing-box-make-an-offer-box"],[3,"listing"],["tmTrackCustomClick","",3,"trackingId","data"]],template:function(n,l){if(n&1&&(JN(0,Bf,4,3,"div",0),yA(1,"async")),n&2){let C;XN((C=DA$1(1,1,l.listing$))?0:-1,C);}},dependencies:[Hp,jp,Wp,TV,c7,Np,p,qt,aV,bO],styles:["tm-auction-pricing-box[_nghost-%COMP%]{display:block}.tm-auction-pricing-box[_ngcontent-%COMP%]{width:100%;margin-bottom:24px}.tm-auction-pricing-box-make-an-offer-box[_ngcontent-%COMP%]{margin:24px 0}"]});let e=i;return e})();var Ai=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Fi,Gn,Gt,EV,b7,no,He,g,no,R,Ht,yV]});let e=i;return e})();var Kn=(()=>{let i=class i{constructor(t,n){this.listingId=t,this.request=n,this.type=i.TYPE;}}
11;i.TYPE="[Motors/common/dealer-vir-enquiry] SendDealerVirEnquiryAction";let e=i;return e})(),xa=(()=>{let i=class i{constructor(t,n){this.listingId=t,this.response=n,this.type=i.TYPE;}};i.TYPE="[Motors/common/dealer-vir-enquiry] SendDealerVirEnquirySuccessAction";let e=i;return e})(),ba=(()=>{let i=class i{constructor(t,n){this.listingId=t,this.error=n,this.type=i.TYPE;}};i.TYPE="[Motors/common/dealer-vir-enquiry] SendDealerVirEnquiryFailAction";let e=i;return e})();var Kp=(()=>{let i=class i{constructor(t,n,l){this._actions$=t,this._listingService=n,this._notificationService=l,this.sendDealerVirEnquiry$=Gt$2(()=>this._actions$.pipe(kt(Kn.TYPE),ru$1(C=>this._listingService.sendEmailToSeller(C.listingId,C.request).pipe(Fe(I=>new xa(C.listingId,I)),th$1(()=>this._notificationService.success("Your Vehicle Information Report is on its way to your inbox.")),Wc(I=>(this._notificationService.error("Unable to process your Vehicle Information Report. Please try again later."),$c(new ba(C.listingId,I))))))));}};i.\u0275fac=function(n){return new(n||i)(G$2(Ht$2),G$2(Gr),G$2(nm))},i.\u0275prov=L({token:i,factory:i.\u0275fac});let e=i;return e})();var Ma="[Motors]DealerVirEnquiry",Ff={isLoading:false};function Zp(e,i){return t$2({[Kn.TYPE]:Vf,[xa.TYPE]:Af,[ba.TYPE]:$f},Ff)(e,i)}function Vf(e,i){return {isLoading:true,item:{listingId:i.listingId,request:i.request},error:null}}function Af(e,i){return {isLoading:false,item:z(y({},e.item),{response:i.response}),error:null}}function $f(e,i){return {isLoading:false,item:y({},e.item),error:i.error&&new o$2(i.error.message,i.error.name)}}var Yp=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[Bt.forFeature([Kp]),rn$1.forFeature(Ma,Zp)]});let e=i;return e})();var Sa;(function(e){e.dealerVirEnquiryState=Et(Ma);})(Sa||(Sa={}));var Qp=(()=>{let i=class i{constructor(t){this._store=t;}getDealerVirEnquiryState(){return this._store.select(Sa.dealerVirEnquiryState)}sendDealerVirEnquiry(t,n){this._store.dispatch(new Kn(t,n));}};i.\u0275fac=function(n){return new(n||i)(G$2(k$2))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Rf=["virEnquiryForm"];function Nf(e,i){if(e&1){let o=dx$1();Ia$1(0,"form",2,0),kD("ngSubmit",function(){Xh$1(o);let n=yx$1();return eg$1(n.trySendEnquiry())}),Ia$1(2,"h3",3),Qx$1(3,"Get the report emailed to you"),bf$1(),Ia$1(4,"tg-input-container",4)(5,"input",5),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1();return eA(l.enquiry.firstName,n)||(l.enquiry.firstName=n),eg$1(n)}),bf$1(),KS(),bf$1(),Ia$1(6,"tg-input-container",6)(7,"input",7),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1();return eA(l.enquiry.phoneNumber,n)||(l.enquiry.phoneNumber=n),eg$1(n)}),bf$1(),KS(),bf$1(),Ia$1(8,"tg-input-container",8)(9,"input",9),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1();return eA(l.enquiry.emailAddress,n)||(l.enquiry.emailAddress=n),eg$1(n)}),bf$1(),KS(),bf$1(),Ia$1(10,"p",10),Qx$1(11," Report data is generated based on the registration plate provided by the seller. Trade Me cannot guarantee the accuracy of the seller's input. "),bf$1(),Ia$1(12,"p",10),Qx$1(13," By requesting this Vehicle Information Report, you agree to share your contact details with the dealership so they can follow up about the vehicle. "),bf$1(),Ia$1(14,"p",10),Qx$1(15," This free report reflects the vehicle's details as of the date it was first generated and is not updated on subsequent views or downloads. "),bf$1(),Ia$1(16,"p",10),Qx$1(17," If you do not wish to share your details, or would like a freshly generated report, you can "),Ia$1(18,"a",11),Qx$1(19,"purchase the report here."),bf$1()()();}if(e&2){let o=yx$1();TD("id",o.DealerVirEnquiryFormComponent.FORM_ID),X_$1(5),aE("ngModel",o.enquiry.firstName),XS(),X_$1(2),aE("ngModel",o.enquiry.phoneNumber),XS(),X_$1(2),aE("ngModel",o.enquiry.emailAddress),XS(),X_$1(9),TD("href",o.motorWebUrl()??o.defaultMotorwebUrl,Ry$1);}}var ro=(()=>{let i=class i{constructor(){this.DealerVirEnquiryFormComponent=i,this.virEnquiryForm=vq("virEnquiryForm"),this.listing=mq(void 0),this.motorWebUrl=mq(null),this.currentMember=mq(null),this.submitted=gq(),this._dealerVirEnquiryFacade=v(Qp),this._motorsGtmService=v($$1),this._analyticsService=v(De),this.defaultMotorwebUrl=sa$1.MOTORWEB_URL,this.isSubmitInProgress=F(this._dealerVirEnquiryFacade.getDealerVirEnquiryState().pipe(Xt(t=>!!t),Fe(t=>!!t.isLoading)),{initialValue:false});}
11ngOnInit(){this.setDefaultEnquiryInfo();}trySendEnquiry(){let t=this.listing();if(this.virEnquiryForm()?.invalid||!t)return;let n=y({},this.enquiry);n.phoneNumber||delete n.phoneNumber,this._dealerVirEnquiryFacade.sendDealerVirEnquiry(t.listingId,n),this.trackSendReportEvent(),this.submitted.emit();}trackSendReportEvent(){let t=this._motorsGtmService.getVirClickGtmData("send_report");this._analyticsService.addEvent(Q$1,t);}setDefaultEnquiryInfo(){this.enquiry={firstName:"",emailAddress:"",phoneNumber:"",message:"-",enquiryType:ie$1.virEnquiry},this.setMemberInfo();}setMemberInfo(){let t=this.currentMember();t&&(this.enquiry.firstName=t.firstName,this.enquiry.emailAddress=t.email??"",this.enquiry.phoneNumber=t.mobilePhoneNumber?t.mobilePhoneNumber:t.landlinePhoneNumber);}};i.FORM_ID="virEnquiryForm",i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-vir-enquiry-form"]],viewQuery:function(n,l){n&1&&BD(l.virEnquiryForm,Rf,5),n&2&&bx$1();},inputs:{listing:[1,"listing"],motorWebUrl:[1,"motorWebUrl"],currentMember:[1,"currentMember"]},outputs:{submitted:"submitted"},decls:1,vars:1,consts:[["virEnquiryForm","ngForm"],[3,"id"],[3,"ngSubmit","id"],[1,"tm-dealer-vir-enquiry-form__heading"],["label","Name"],["tgTextInput","","type","text","name","firstName","required","","maxLength","100",3,"ngModelChange","ngModel"],["label","Phone number"],["tgTextInput","","type","tel","name","phoneNumber","placeholder","e.g. 0211234567",3,"ngModelChange","ngModel","tmValidatePhoneNumber"],["label","Email"],["tgTextInput","","type","email","name","emailAddress","required","","placeholder","e.g. [email protected]",3,"ngModelChange","ngModel","tmValidateEmail"],[1,"tm-dealer-vir-enquiry-form__disclaimer"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(n,l){n&1&&JN(0,Nf,20,5,"form",1),n&2&&XN(l.listing()?0:-1);},dependencies:[ee$1,Gm,Vi$1,Ai$1,Bm,Wn,Eo,Ri$3,Ki,K_$1,br,Eh$1,Fh$1,de,At,_t$2],styles:[".tm-dealer-vir-enquiry-form__heading[_ngcontent-%COMP%]{margin-bottom:16px}.tm-dealer-vir-enquiry-form__disclaimer[_ngcontent-%COMP%]{font-size:.75rem;line-height:16px;color:#65605d;margin-top:8px;margin-bottom:0}"]});let e=i;return e})();function jf(e,i){if(e&1&&(Ia$1(0,"div",6),_D(1,"img",9),bf$1()),e&2){let o=yx$1();X_$1(),TD("src",i,Ry$1)("alt",o.title);}}function Uf(e,i){if(e&1&&(Ia$1(0,"div"),Qx$1(1),bf$1()),e&2){let o=yx$1();X_$1(),rE(o.priceDisplay);}}function Wf(e,i){if(e&1&&(Ia$1(0,"div",1),JN(1,jf,2,2,"div",6),Ia$1(2,"div",7)(3,"div",8),Qx$1(4),bf$1(),JN(5,Uf,2,1,"div"),bf$1()()),e&2){let o,t=i,n=yx$1();X_$1(),XN((o=n.listingThumbnail())?1:-1,o),X_$1(3),rE(t.title),X_$1(),XN(t.priceDisplay?5:-1);}}function qf(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-dealer-vir-enquiry-form",10),kD("submitted",function(){Xh$1(o);let n=yx$1();return eg$1(n.close.emit())}),bf$1();}if(e&2){let o=yx$1();TD("listing",o.currentListing())("motorWebUrl",o.motorWebUrl())("currentMember",i);}}var wa=(()=>{let i=class i{constructor(){this.DealerVirEnquiryFormComponent=ro,this.motorWebUrl=mq(null),this.close=gq(),this.virEnquiryFormComponent=vq(ro),this._listingFacade=v(pe),this._currentMemberFacade=v(E),this.currentListing=F(this._listingFacade.getCurrentListing().pipe(Xt(t=>!t.isLoading&&!!t.item),Fe(t=>t.item))),this.currentMember=F(this._currentMemberFacade.getCurrentMember().pipe(Xt(t=>!!t))),this.listingThumbnail=bn(()=>this.currentListing()?.photos?.[0]?.value?.thumbnail??null);}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-vir-enquiry-modal"]],viewQuery:function(n,l){n&1&&BD(l.virEnquiryFormComponent,ro,5),n&2&&bx$1();},inputs:{motorWebUrl:[1,"motorWebUrl"]},outputs:{close:"close"},decls:13,vars:6,consts:[["size","medium",3,"close","stickyFooter"],[1,"tm-dealer-vir-enquiry-modal__listing-card"],[3,"listing","motorWebUrl","currentMember"],[1,"tm-dealer-vir-enquiry-modal__footer-buttons"],["type","button","tgButton2","","fullWidth","",1,"tm-dealer-vir-enquiry-modal__cancel",3,"click"],["type","submit","tgButton2","","tgStyle","primary","fullWidth","",1,"tm-dealer-vir-enquiry-modal__submit",3,"disabled","loading"],[1,"tm-dealer-vir-enquiry-modal__listing-thumbnail"],[1,"tm-dealer-vir-enquiry-modal__listing-info"],[1,"tm-dealer-vir-enquiry-modal__listing-title"],[3,"src","alt"],[3,"submitted","listing","motorWebUrl","currentMember"]],template:function(n,l){if(n&1&&(Ia$
111(0,"tg-modal",0),kD("close",function(){return l.close.emit()}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"FREE Vehicle Information Report"),bf$1(),JN(4,Wf,6,3,"div",1),bf$1(),Ia$1(5,"tg-modal-body"),JN(6,qf,1,3,"tm-dealer-vir-enquiry-form",2),bf$1(),Ia$1(7,"tg-modal-footer")(8,"div",3)(9,"button",4),kD("click",function(){return l.close.emit()}),Qx$1(10," Cancel "),bf$1(),Ia$1(11,"button",5),Qx$1(12," Send report "),bf$1()()()()),n&2){let C,I;TD("stickyFooter",true),X_$1(4),XN((C=l.currentListing())?4:-1,C),X_$1(2),XN((I=l.currentMember())?6:-1,I),X_$1(5),TD("disabled",l.virEnquiryFormComponent()?.isSubmitInProgress()??true)("loading",l.virEnquiryFormComponent()?.isSubmitInProgress()??false),bD("form",l.DealerVirEnquiryFormComponent.FORM_ID);}},dependencies:[Hb$1,Hr,jb$1,Bb$1,Lb$1,He,ro],styles:[".tm-dealer-vir-enquiry-modal__listing-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:24px;margin-top:24px;margin-right:-64px;margin-left:-24px;padding:16px 24px;background-color:#f6f5f4}.tm-dealer-vir-enquiry-modal__listing-thumbnail[_ngcontent-%COMP%]{flex-shrink:0}.tm-dealer-vir-enquiry-modal__listing-title[_ngcontent-%COMP%]{font-weight:700}.tm-dealer-vir-enquiry-modal__footer-buttons[_ngcontent-%COMP%]{display:flex;gap:16px;width:100%}.tm-dealer-vir-enquiry-modal__footer-buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-bottom:0}"]});let e=i;return e})();function zf(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-info-box",2)(1,"tg-info-box-heading"),Qx$1(2," Stolen vehicle check "),bf$1(),Ia$1(3,"p",3),Qx$1(4," This vehicle has been reported stolen. You need to contact the police directly and verify the vehicle's status. "),bf$1(),Ia$1(5,"button",4),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.isReportedStolenVisible=true)}),Qx$1(6," Learn more "),Ia$1(7,"span",5),Qx$1(8,"about the stolen vehicle check"),bf$1()()();}}function Gf(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-info-box",2)(1,"tg-info-box-heading"),Qx$1(2," Damaged import check "),bf$1(),Ia$1(3,"p",3),Qx$1(4," This vehicle was imported into New Zealand with obvious damage or deterioration. This alert will not appear if the vehicle had superficial dents to some of its body panels. "),bf$1(),Ia$1(5,"button",4),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.isDamageImportVisible=true)}),Qx$1(6," Learn more "),Ia$1(7,"span",5),Qx$1(8,"about the damaged import check"),bf$1()()();}}function Kf(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(2);Af$1(" ",o.moneyOwingCopyOverride()," ");}}function Zf(e,i){e&1&&Qx$1(0," A person or company has a financial interest in this vehicle. It\u2019s very likely that money is owing on it. If the money owed isn\u2019t repaid, the vehicle could be repossessed. ");}function Yf(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-info-box",2)(1,"tg-info-box-heading"),Qx$1(2," Money owing check "),bf$1(),Ia$1(3,"p",3),JN(4,Kf,1,1)(5,Zf,1,0),bf$1(),Ia$1(6,"button",4),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.moneyOwingVisible=true)}),Qx$1(7," Learn more "),Ia$1(8,"span",5),Qx$1(9,"about the money owing check"),bf$1()()();}if(e&2){let o=yx$1();X_$1(4),XN(o.hasMoneyOwingCopyOverride()?4:5);}}function Qf(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-info-box",2)(1,"tg-info-box-heading"),Qx$1(2," Re-registered check "),bf$1(),Ia$1(3,"p",3),Qx$1(4," This vehicle has been de-registered in the past and then registered again. The registration may have expired because the licence was not kept current or it may have been in an accident and written off by an insurance company. "),bf$1(),Ia$1(5,"button",4),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.isReRegisteredVisible=true)}),Qx$1(6," Learn more "),Ia$1(7,"span",5),Qx$1(8,"about the re-registered check"),bf$1()()();}}function Jf(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",6),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.isReportedStolenVisible=false)}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Stolen vehicle check"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"p"),Qx$1(6," This vehicle has been reported stolen. You need to contact the police directly to verify the vehicle's status. "),bf$1(),Ia$1(7,"p"),Qx$1(8," If the vehicle has been incorrectly identified as stolen, the police will need to update their database. The seller will then need to re-run the Backgroun
11d Check and send you confirmation that this has been updated. "),bf$1(),Ia$1(9,"h3"),Qx$1(10,"Police phone numbers:"),bf$1(),Ia$1(11,"p"),Qx$1(12,"Northern region: (09) 571 2800"),bf$1(),Ia$1(13,"p"),Qx$1(14,"Central region: (04) 472 3000"),bf$1(),Ia$1(15,"p"),Qx$1(16,"Southern region: (03) 363 7400"),bf$1()()();}}function Xf(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",6),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.isDamageImportVisible=false)}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Damaged import check"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"p"),Qx$1(6," This vehicle was imported into New Zealand with obvious damage or deterioration. This alert will not appear if the vehicle had superficial dents to some of its body panels. "),bf$1(),Ia$1(7,"p"),Qx$1(8," We recommend you have the vehicle inspected to make sure the damage is not going to affect the safety or operation of the vehicle (e.g. wheel alignment and steering). "),bf$1()()();}}function e1(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(2);Af$1(" ",o.moneyOwingCopyOverride()," ");}}function t1(e,i){e&1&&Qx$1(0," A person or company has a financial interest in this vehicle. It\u2019s very likely that money is owing on it. If the money owed isn\u2019t repaid, the vehicle could be repossessed. ");}function i1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",6),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.moneyOwingVisible=false)}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Money owing check"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"p"),JN(6,e1,1,1)(7,t1,1,0),bf$1(),Ia$1(8,"h3"),Qx$1(9,"What you can do"),bf$1(),Ia$1(10,"ul",7)(11,"li"),Qx$1(12," Find out who has registered the security. The people or companies are listed as 'secured parties' in the more detailed report you can buy at "),Ia$1(13,"a",8),Qx$1(14,"motorweb.co.nz."),bf$1()(),Ia$1(15,"li"),Qx$1(16," Match the details of the security (e.g. vehicle make, model, year, plate and VIN) with the vehicle description on the VIR, and against the actual vehicle. It\u2019s common for the VIN to differ by one or two digits because these long numbers are easily mistyped. "),bf$1(),Ia$1(17,"li"),Qx$1(18," Call the secured party listed on the VIR to see if money is still owing on the vehicle. If the secured party says the security has been discharged and is no longer valid, be sure to ask that the security be removed from the registry immediately, and confirmation of this be sent to you. If the secured party confirms that the security is valid, then ask them how you should proceed with the vehicle purchase. They might want the seller and the buyer to conduct the purchase at their offices so the secured party can obtain payment for the loan directly from the buyer. "),bf$1()(),Ia$1(19,"p"),Qx$1(20," If you purchase a vehicle with a valid security registered against it, you run the risk of having the vehicle repossessed without any compensation to you whatsoever. "),bf$1()()();}if(e&2){let o=yx$1();X_$1(6),XN(o.hasMoneyOwingCopyOverride()?6:7);}}function n1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",6),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.isReRegisteredVisible=false)}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Re-registered check"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"p"),Qx$1(6," This vehicle has been de-registered in the past and then registered again. It's worth discussing this with the vehicle owner. "),bf$1(),Ia$1(7,"p"),Qx$1(8,"It's likely the registration may have expired because:"),bf$1(),Ia$1(9,"ul",9)(10,"li"),Qx$1(11,"The vehicle's registration may have expired because the licence was not kept up to date."),bf$1(),Ia$1(12,"li"),Qx$1(13," The owner at the time may have asked that the licence and registration be cancelled because the vehicle wouldn't be used for some time (e.g. while overseas). "),bf$1()(),Ia$1(14,"p"),Qx$1(15,"However in some rarer instances:"),bf$1(),Ia$1(16,"ul",9)(17,"li"),Qx$1(18," The vehicle may have been in an accident and written off by an insurance company or sent to an auto wrecker for parts. "),bf$1()(),Ia$1(19,"p"),Qx$1(20," Passenger vehicles can only remain unlicensed for 12 months, or 24 months if currently owned by a vehicle trader. Non-passenger vehicles (trailers, ATVs, etc) can remain unlicensed for 24 months. "),bf$1(),Ia$1(21,"h3"),Qx$1(22,"What you can do"),bf$1(),Ia$1(23,"p"),Qx$1(24,"Contact the seller and ask them about what happened."),bf$1(),Ia$1(25,"p"),Qx$1(26," If you still have doubts, you could have an independent mechanical inspection by a reputable company e.g. VTNZ or the AA. "),bf$1()()();}}var e0=(()=>{let i=class i{constructor(){this._moneyOwingCopyOverride=null,this.isDamageImportVisible=false,this.isReportedStolenVisible=false,this.moneyOwingVisible=false,this.isReRegisteredVisible=false;}ngOnChanges(t){t&&(this.isDamageImport=this.checkIfAdvisory(this._isDamageImport),this.isReportedStolen=this.checkIfAdvisory(this._isReportedStolen),this.moneyOwing=this.checkIfAdvisory(this._moneyOwing),this.isReRegistered=this.checkIfAdvisory(this._isReRegistered));}checkIfAdvisory(t){return t==="Advisory"}hasMoneyOwingCopyOverride(){return this._moneyOwingCopyOverride!==null}moneyOwingCopyOverride(){return this._moneyOwingCopyOverride}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-background-check-info-boxes"]],inputs:{_isDamageImport:"_isDamageImport",_isReportedStolen:"_isReportedStolen",_moneyOwing:"_moneyOwing",_isReRegistered:"_isReRegistered",_moneyOwingCopyOverride:"_moneyOwingCopyOverride"},standalone:false,features:[Zr],decls:8,vars:8,consts:[["tgStyle","warning","class","tm-motors-background-check__info-box",4,"ngIf"],[3,"close",4,"ngIf"],["tgStyle","warning",1,"tm-motors-background-check__info-box"],[1,"tm-motors-background-check__info-box-text"],["compact","","tgButton2","","transparent","",1,"tm-background-check__learn-more",3,"click"],[1,"h-visually-hidden"],[3,"close"],["tgList2","","compact","","type","ordered"],["href","https://www.motorweb.co.nz/","target","_blank"],["tgList2","","compact",""]],template:function(n,l){n&1&&iD(0,zf,9,0,"tg-info-box",0)(1,Gf,9,0,"tg-info-box",0)(2,Yf,10,1,"tg-info-box",0)(3,Qf,9,0,"tg-info-box",0)(4,Jf,17,0,"tg-modal",1)(5,Xf,9,0,"tg-modal",1)(6,i1,21,1,"tg-modal",1)(7,n1,27,0,"tg-modal",1),n&2&&(TD("ngIf",l.isReportedStolen),X_$1(),TD("ngIf",l.isDamageImport),X_$1(),TD("ngIf",l.moneyOwing),X_$1(),TD("ngIf",l.isReRegistered),X_$1(),TD("ngIf",l.isReportedStolenVisible),X_$1(),TD("ngIf",l.isDamageImportVisible),X_$1(),TD("ngIf",l.moneyOwingVisible),X_$1(),TD("ngIf",l.isReRegisteredVisible));},dependencies:[mO,He,Hr,jb$1,Lb$1,Ob$1,Vc,G_$1,Tr],styles:["tm-background-check-info-boxes[_nghost-%COMP%]{display:block}.tm-motors-background-check__info-box[_ngcontent-%COMP%]{border-left:8px s
11olid #f9af2c;margin:16px 0;background:#fffae5;border-radius:8px}.tm-motors-background-check__info-box-text[_ngcontent-%COMP%]{margin-bottom:8px}.tm-background-check__learn-more[_ngcontent-%COMP%]{padding:0;text-align:left}"]});let e=i;return e})();var t0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,O_$1,He,Hb$1,Ob$1,Ec]});let e=i;return e})();var Ze=(function(e){return e.Advisory="Advisory",e.Passed="Passed",e.NzNew="NZ New",e.Unavailable="Unavailable",e})(Ze||{});var r1=(e,i,o,t)=>({"tm-background-check__passed":e,"tm-background-check__nz-new":i,"tm-background-check__advisory":o,"tm-background-check__unavailable":t});function a1(e,i){e&1&&_D(0,"tg-icon",8);}function s1(e,i){e&1&&_D(0,"tg-icon",8);}function l1(e,i){e&1&&_D(0,"tg-icon",9);}function m1(e,i){e&1&&_D(0,"tg-icon",10);}var i0=(()=>{let i=class i{constructor(){this.BackgroundCheckItemStatus=Ze;}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-background-check-box"]],inputs:{checkTitle:"checkTitle",status:"status",link:"link",linkText:"linkText"},standalone:false,decls:12,vars:12,consts:[[1,"tm-background-check__background-check-item"],[1,"tm-background-check__background-check-item-title"],[1,"tm-background-check__background-check-item-report",3,"ngClass"],[1,"tm-background-check__background-check-item-content"],["name","basic-tick-framed","alt","Passed tick","class","tm-background-check__icon tm-background-check__icon-passed",4,"ngIf"],["name","basic-info-framed","alt","Unavailable tick","class","tm-background-check__icon tm-background-check__icon-advisory",4,"ngIf"],["name","basic-question-framed","alt","Unavailable tick","class","tm-background-check__icon tm-background-check__icon-unavailable",4,"ngIf"],[1,"tm-background-check__status"],["name","basic-tick-framed","alt","Passed tick",1,"tm-background-check__icon","tm-background-check__icon-passed"],["name","basic-info-framed","alt","Unavailable tick",1,"tm-background-check__icon","tm-background-check__icon-advisory"],["name","basic-question-framed","alt","Unavailable tick",1,"tm-background-check__icon","tm-background-check__icon-unavailable"]],template:function(n,l){n&1&&(Ia$1(0,"div",0)(1,"div",1),Qx$1(2),bf$1(),Ia$1(3,"div",2)(4,"div",3)(5,"span"),iD(6,a1,1,0,"tg-icon",4)(7,s1,1,0,"tg-icon",4)(8,l1,1,0,"tg-icon",5)(9,m1,1,0,"tg-icon",6),bf$1(),Ia$1(10,"span",7),Qx$1(11),bf$1()()()()),n&2&&(X_$1(2),Af$1(" ",l.checkTitle," "),X_$1(),TD("ngClass",mA(7,r1,l.status===l.BackgroundCheckItemStatus.Passed,l.status===l.BackgroundCheckItemStatus.NzNew,l.status===l.BackgroundCheckItemStatus.Advisory,l.status===l.BackgroundCheckItemStatus.Unavailable)),X_$1(3),TD("ngIf",l.status===l.BackgroundCheckItemStatus.Passed),X_$1(),TD("ngIf",l.status===l.BackgroundCheckItemStatus.NzNew),X_$1(),TD("ngIf",l.status===l.BackgroundCheckItemStatus.Advisory),X_$1(),TD("ngIf",l.status===l.BackgroundCheckItemStatus.Unavailable),X_$1(2),Af$1(" ",l.status||"Unavailable"," "));},dependencies:[pO,mO,we],styles:[".tm-background-check__background-check-item[_ngcontent-%COMP%]{display:inline-flex;overflow:hidden;width:100%;height:100%}.tm-background-check__background-check-item-title[_ngcontent-%COMP%]{width:100%;padding:16px;font-weight:500;vertical-align:middle}.tm-background-check__background-check-item-report[_ngcontent-%COMP%]{padding:16px;font-weight:500;white-space:nowrap}@media(min-width:768px){.tm-background-check__background-check-item-report[_ngcontent-%COMP%]{border-left:1px solid #e8e6e3}}@media(min-width:768px){.tm-background-check__background-check-item-report[_ngcontent-%COMP%]{width:47%}}@media(min-width:1024px){.tm-background-check__background-check-item-report[_ngcontent-%COMP%]{width:55%}}@media(min-width:1440px){.tm-background-check__background-check-item-report[_ngcontent-%COMP%]{width:40%}}.tm-background-check__status[_ngcontent-%COMP%]{padding-left:4px}.tm-background-check__icon-unavailable[_ngcontent-%COMP%]{color:#65605d}.tm-background-check__icon-passed[_ngcontent-%COMP%]{color:#229b4b}.tm-background-check__unavailable[_ngcontent-%COMP%]{border:none;background:unset;color:#85807c}.tm-background-check__advisory[_ngcontent-%COMP%]{color:#d57800}@media(min-width:768px){.tm-background-check__advisory[_ngcontent-%COMP%]{background:#fffae5}}.tm-background-check__passed[_ngcontent-%COMP%], .tm-background-check__nz-new[_ngcontent-%COMP%]{color:#1b8840}@media(min-width:768px){.tm-background-check__passed[_ngcontent-%COMP%], .tm-background-check__nz-new[_ngcontent-%COMP%]{background:#f6f5f4}}.tm-background-check__background-check-item-content[_ngcontent-%COMP%]{margin:auto 0}"]});let e=i;return e})();var ka=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we,we,we,we]});let e=i;return e})();
11var n0="https://myautoshop.co.nz/info/pre-purchase-assessment/?utm_source=Trademe&utm_medium=TM+Web&utm_campaign=Pre-Purchase+Assessment",o0=(()=>{let i=class i{createPrePurchaseInspectionUrl(t){return t?new URL(`${n0}&registration=${t}`):new URL(n0)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();function p1(e,i){e&1&&ND(0);}function g1(e,i){if(e&1){let o=dx$1();Ia$1(0,"a",5),yA(1,"async"),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.onBookPrePurchaseInspectionClick())}),_D(2,"tg-icon",6),Qx$1(3),bf$1();}if(e&2){let o=yx$1();TD("href",DA$1(1,2,o.myAutoshopPrePurchaseInspectionLink$),Ry$1),X_$1(3),Af$1(" ",o.bookNowPpiButtonLabel," ");}}var _1="my_auto_shop_motors_ldp_entry_click",r0=(()=>{let i=class i{constructor(t,n,l){this._listingFacade=t,this._analyticsService=n,this._myAutoShopUrlsService=l,this.bookNowPpiButtonLabel="Book now";}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.myAutoshopPrePurchaseInspectionLink$=this.listing$.pipe(Fe(t=>{let n=t?.attributes?.find(l=>
11l.name==="number_plate");return this._myAutoShopUrlsService.createPrePurchaseInspectionUrl(n?.value)}));}onBookPrePurchaseInspectionClick(){this._analyticsService.addEvent(_1);}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(De),R$2(o0))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-pre-purchase-inspection-box"]],standalone:false,decls:7,vars:2,consts:[["bookPpiNow",""],[1,"tm-pre-purchase-inspection-box"],[1,"tm-pre-purchase-inspection-box__title"],[1,"tm-pre-purchase-inspection-box__link"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["target","_blank","rel","noopener noreferrer",3,"click","href"],["size","small","name","link-external","role","presentation"]],template:function(n,l){if(n&1&&(Ia$1(0,"div",1)(1,"div",2),Qx$1(2,"Pre-purchase inspection"),bf$1(),Ia$1(3,"div",3),iD(4,p1,1,0,"ng-container",4)(5,g1,4,4,"ng-template",null,0,wA),bf$1()()),n&2){let C=Tx$1(6);X_$1(4),TD("ngTemplateOutlet",C)("ngTemplateOutletContext",l.bookNowPpiButtonLabel);}},dependencies:[IO,we,bO],styles:[".tm-pre-purchase-inspection-box[_ngcontent-%COMP%]{display:inline-flex;overflow:hidden;width:100%;height:100%}.tm-pre-purchase-inspection-box__title[_ngcontent-%COMP%]{width:100%;padding:16px;font-weight:500;vertical-align:middle}.tm-pre-purchase-inspection-box__link[_ngcontent-%COMP%]{padding:16px;white-space:nowrap}@media(min-width:768px){.tm-pre-purchase-inspection-box__link[_ngcontent-%COMP%]{margin-left:1px;width:47%}}@media(min-width:1024px){.tm-pre-purchase-inspection-box__link[_ngcontent-%COMP%]{width:55%}}@media(min-width:1440px){.tm-pre-purchase-inspection-box__link[_ngcontent-%COMP%]{width:40%}}"]});let e=i;return e})();var f1=e=>[e],Ia=(()=>{let i=class i{constructor(t,n,l){this._listingFacade=t,this._motorsListingFacade=n,this._motorsGtmService=l,this.motorwebReportTrackingId=H$1,this.defaultMotorwebUrl=sa$1.MOTORWEB_URL;}ngOnInit(){this.motorsListing$=this._motorsListingFacade.getListingDetails().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.hasBackgroundCheck$=this.motorsListing$.pipe(Fe(t=>t.backgroundCheck)),this.motorWebUrl$=this.motorsListing$.pipe(Fe(t=>{if(t.backgroundCheck)return t.backgroundCheck.motorWebUrl})),this.gtmData$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>this._motorsGtmService.getGtmData("click",t.item)));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(Kt$1),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vehicle-report-box"]],decls:10,vars:11,consts:[[1,"tm-vehicle-report-box"],[1,"tm-vehicle-report-box__title"],[1,"tm-vehicle-report-box__link"],["target","_blank","rel","noopener noreferrer","tmTrackCustomClick","",3,"href","trackingId","data"],["size","small","name","link-external","role","presentation"]],template:function(n,l){n&1&&(Ia$1(0,"div",0)(1,"div",1),Qx$1(2,"Full vehicle history report"),bf$1(),Ia$1(3,"div",2)(4,"a",3),yA(5,"async"),yA(6,"async"),yA(7,"async"),_D(8,"tg-icon",4),Qx$1(9,"\xA0Buy now "),bf$1()()()),n&2&&(X_$1(4),TD("href",DA$1(5,3,l.hasBackgroundCheck$)?DA$1(6,5,l.motorWebUrl$):pA(9,f1,l.defaultMotorwebUrl),Ry$1)("trackingId",l.motorwebReportTrackingId)("data",DA$1(7,7,l.gtmData$)));},dependencies:[we,g,p,bO],styles:[".tm-vehicle-report-box[_ngcontent-%COMP%]{display:inline-flex;overflow:hidden;width:100%;height:100%}.tm-vehicle-report-box__title[_ngcontent-%COMP%]{width:100%;padding:16px;font-weight:500;vertical-align:middle}.tm-vehicle-report-box__link[_ngcontent-%COMP%]{padding:16px;white-space:nowrap}@media(min-width:768px){.tm-vehicle-report-box__link[_ngcontent-%COMP%]{margin-left:1px;width:47%}}@media(min-width:1024px){.tm-vehicle-report-box__link[_ngcontent-%COMP%]{width:55%}}@media(min-width:1440px){.tm-vehicle-report-box__link[_ngcontent-%COMP%]{width:40%}}"]});let e=i;return e})();var a0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-make-an-offer-illustration"]],decls:15,vars:0,consts:[["width","83","height","101","viewBox","0 0 83 101","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_2552_13597)"],["d","M43.9414 20.7416V62.8978H13.4336V20.7416L28.6875 7.98376L43.9414 20.7416ZM28.9648 17.4135C26.8205 17.4135 25.0821 19.1519 25.082 21.2963C25.082 23.4407 26.8204 25.179 28.9648 25.1791C31.1093 25.1791 32.8477 23.4407 32.8477 21.2963C32.8476 19.1519 31.1092 17.4135 28.9648 17.4135Z","fill","#FFEB33"],["d","M28.6687 0.772827C29.3454 0.772827 29.9837 0.922864 30.5661 1.2113C32.8958 2.37619 34.1219 5.63227 34.194 10.8851C34.2606 15.5832 33.3449 19.1275 31.6032 20.8636C30.8434 21.6234 29.9341 22.0234 28.9636 22.0179C28.4144 22.0179 27.8866 21.8903 27.3874 21.6351C26.6272 21.255 25.9644 20.6117 25.4089 19.7367C25.5968 19.309 25.8592 18.9215 26.1804 18.5912C26.6676 19.5221 27.2623 20.1839 27.948 20.5258C28.2696 20.6866 28.6083 20.7699 28.9577 20.7699C29.59 20.7699 30.1779 20.5087 30.7048 19.9818C32.1858 18.5063 32.9953 15.1889 32.9343 10.89C32.8455 4.9773 31.2924 2.96411 30.0056 2.32068C29.6063 2.12107 29.1573 2.01504 28.6804 2.01501C27.8706 2.01501 27.1716 2.29825 26.6003 2.86951C25.6851 3.77918 24.6142 5.90364 24.6862 10.8568C24.6884 11.0121 24.6946 11.1662 24.6989 11.3187L23.4773 
1112.3412C23.4478 11.8609 23.4291 11.3657 23.4216 10.8568C23.3606 6.53595 24.1263 3.55187 25.696 1.98767C26.5057 1.17793 27.5095 0.772933 28.6687 0.772827Z","fill","#A3A9E9"],["d","M37 47.5442C37 51.0758 34.3379 53.3828 30.8525 53.8954V56.9999H28.0257V53.9239C25.0617 53.6106 22.3448 52.1581 21 49.9366L23.6621 47.2309C24.7873 49.0822 26.2967 50.1929 28.0257 50.5632V44.9239C25.0343 44.2689 21.9057 43.272 21.9057 39.1708C21.9057 35.753 24.6226 33.4461 28.0257 33.0189V29.9999H30.8525V33.0473C33.5695 33.4176 35.6278 34.7562 36.7256 36.579L34.283 39.1992C33.4048 37.7182 32.307 36.7784 30.8525 36.3796V41.6201C33.8439 42.2467 37 43.272 37 47.5442ZM25.5557 38.8005C25.5557 40.0822 26.5712 40.6233 28.0257 41.022V36.2657C26.5437 36.522 25.5557 37.4049 25.5557 38.8005ZM33.4048 47.886C33.4048 46.5473 32.3345 45.9492 30.8525 45.522V50.5347C32.3619 50.2214 33.4048 49.31 33.4048 47.886Z","fill","#4854D3"],["d","M75.3795 95.7359L61.5177 69.0664L56.2482 47.4112L43.69 32.246L43.6678 53.3298C43.6678 53.3298 30.6492 40.3667 29.9447 39.9673C29.6785 39.812 25.9676 46.2575 35.3529 57.612C36.9283 63.3808 37.1723 66.6479 39.4743 71.0855C41.7818 75.5174 45.3041 77.4145 45.3041 77.4145L57.2633 100.295L75.385 95.7415L75.3795 95.7359Z","fill","#A3A9E9"],["d","M81.9138 101H53.9962L45.2876 84.4756L67.5861 72.5775L81.9138 101Z","fill","#4854D3"],["d","M52.1436 97.6052L74.4644 86.2229L67.4974 72.4166L45.2044 84.3148L52.1436 97.6052Z","fill","#0916A6"],["d","M50.9898 88.1199C50.9898 90.1834 52.6705 91.853 54.7395 91.853C56.8085 91.853 58.4893 90.1834 58.4893 88.1199C58.4893 86.0565 56.8085 84.3868 54.7395 84.3868C52.6705 84.3868 50.9898 86.0565 50.9898 88.1199Z","fill","#F2AFDC"],["d","M9.21139 6.01453H9.20584C8.68443 6.01453 8.25732 6.44164 8.25732 6.96305V10.7516C8.25732 11.273 8.68443 11.7001 9.20584 11.7001H9.21139C9.7328 11.7001 10.1599 11.273 10.1599 10.7516V6.9686C10.1599 6.44719 9.7328 6.02007 9.21139 6.02007V6.01453Z","fill","#FFEB33"],["d","M5.31746 12.3547C5.6891 12.7208 6.29372 12.7208 6.66536 12.3547C7.037 11.9886 7.037 11.384 6.66536 11.0179L3.96956 8.33878C3.59792 7.97268 2.9933 7.97268 2.62166 8.33878C2.25001 8.71042 2.25001 9.30949 2.62166 9.68113L5.31746 12.3603V12.3547Z","fill","#FFEB33"],["d","M5.05685 15.8327C5.57826 15.8327 6.00537 15.4056 6.00537 14.8842C6.00537 14.3628 5.57826 13.9357 5.05685 13.9357H1.24058C0.719166 13.9357 0.29205 14.3628 0.29205 14.8842C0.29205 15.4056 0.719166 15.8327 1.24058 15.8327H5.05685Z","fill","#FFEB33"],["id","clip0_2552_13597"],["width","82","height","100.227","fill","white","transform","translate(0.159912 0.772827)"]],template:function(n,l){n&1&&(dg$1(),Tf$1(0,"svg",0)(1,"g",1),SD(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11),_f$1(),Tf$1(12,"defs")(13,"clipPath",12),SD(14,"rect",13),_f$1()()());},styles:["tm-make-an-offer-illustration[_nghost-%COMP%]{padding:0 16px;margin-top:auto}@media(max-width:767px){tm-make-an-offer-illustration[_nghost-%COMP%]{padding-left:0}}tm-make-an-offer-illustration[_nghost-%COMP%]   svg[_ngcontent-%COMP%]{display:block}"]});let e=i;return e})();function C1(e,i){if(e&1&&(Ia$1(0,"a",3),Qx$1(1,"Make an offer"),bf$1()),e&2){let o=yx$1();TD("routerLink",rA(o.getRouterLink(i)));}}function v1(e,i){if(e&1){let o=dx$1();Ia$1(0,"a",6),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.onClickMakeAnOffer())}),Qx$1(1,"Make an offer"),bf$1();}if(e&2){let o=yx$1();TD("trackingId",o.motorsMAOModelTrackingId);}}function y1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-make-an-offer-modal",7),kD("hideModal",function(){Xh$1(o);let n=yx$1();return eg$1(n.onHideModal())}),bf$1();}if(e&2){let o=yx$1();TD("listing",o.listing);}}var Ta=(()=>{let i=class i{constructor(t,n,l){this._currentMemberFacade=t,this._makeAnOfferLatestOfferService=n,this._motorsGtmService=l,this.showMAOModal=false,this.motorsMAOModelTrackingId=sa$1.MOTORS_MAO_MODEL_TRACKING_ID;}ngOnInit(){let t=$c(this.listing),n=$c(this.shouldShowMAO);this.currentMember$=this._currentMemberFacade.selectCurrentMember().pipe(Xt(l=>!!l&&!!l.item),Fe(l=>l.item)),this.latestActiveOffer$=this._makeAnOfferLatestOfferService.getLatestActiveOffer(t,n,this.currentMember$),this.motorsMakeAnOfferGTMData$=t.pipe(Xt(l=>!!l),Fe(l=>this._motorsGtmService.getMakeAnOfferGTMData("click","background_check_cta",l)));}onClickMakeAnOffer(){this._currentMemberFacade.ensureLoggedIn().then(()=>{this.showMAOModal=true;}).catch(()=>{});}getRouterLink(t){return t.isCounterOffer?`/my-trade-me/offers/${this.listing.listingId}/${t.receiver.memberId}`:`/my-trade-me/offers/${this.listing.listingId}/${t.member.memberId}`}onHideModal(){this.showMAOModal=false;}};i.\u0275fac=function(n){return new(n||i)(R$2(E),R$2(va),R$2($$1))}
11,i.\u0275cmp=jM$1({type:i,selectors:[["tm-make-an-offer-background-re-check"]],inputs:{listing:"listing",shouldShowMAO:"shouldShowMAO"},decls:10,vars:4,consts:[[1,"tm-make-an-offer-background-re-check__body"],[1,"tm-make-an-offer-background-re-check__title"],[1,"tm-make-an-offer-background-re-check__link"],["tgButton2","","transparent","","queryParamsHandling","merge",3,"routerLink"],["tgButton2","","transparent","","tmTrackCustomClick","",3,"trackingId"],[3,"listing"],["tgButton2","","transparent","","tmTrackCustomClick","",3,"click","trackingId"],[3,"hideModal","listing"]],template:function(n,l){if(n&1&&(Ia$1(0,"div",0)(1,"div",1),Qx$1(2,"Make an offer with confidence"),bf$1(),Qx$1(3," If the seller accepts your offer, we\u2019ll re-run the money owing check and tell you the outcome before you make a final purchase. "),Ia$1(4,"div",2),JN(5,C1,2,2,"a",3),yA(6,"async"),wf$1(7,v1,2,1,"a",4),bf$1()(),_D(8,"tm-make-an-offer-illustration"),JN(9,y1,1,1,"tm-make-an-offer-modal",5)),n&2){let C;X_$1(5),XN((C=DA$1(6,2,l.latestActiveOffer$))?5:7,C),X_$1(4),XN(l.showMAOModal?9:-1);}},dependencies:[a0,ii$1,ti,He,rn,VO,b7,g,p,bO],styles:["tm-make-an-offer-background-re-check[_nghost-%COMP%]{display:flex;margin:8px 0;border:1px solid #e8e6e3;border-radius:8px}.tm-make-an-offer-background-re-check__title[_ngcontent-%COMP%]{font-weight:500}@media(max-width:767px){.tm-make-an-offer-background-re-check__title[_ngcontent-%COMP%]{margin-bottom:8px}}.tm-make-an-offer-background-re-check__body[_ngcontent-%COMP%]{padding:16px}.tm-make-an-offer-background-re-check__link[_ngcontent-%COMP%]{margin-top:8px}.tm-make-an-offer-background-re-check__link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{min-height:1.5rem;padding:0;margin-bottom:0}@media(max-width:767px){.tm-make-an-offer-background-re-check__link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:left}}"]});let e=i;return e})();function b1(e,i){if(e&1&&(Ia$1(0,"li",4),_D(1,"tg-icon",8),Qx$1(2),bf$1()),e&2){let o=i.$implicit;X_$1(2),Af$1(" ",o," ");}}var s0=(()=>{let i=class i{constructor(){this.close=gq(),this.getReport=gq(),this._motorsGtmService=v($$1),this.virClickTrackingId=Q$1,this.checklistItems=["Financial check","Ownership history","Odometer","Alerts & warnings","Safety features","WOF","Accident/Damage history","Registration history","Security","Theft history","Road user charges"];}ngOnInit(){this.gtmData$=$c(this._motorsGtmService.getVirClickGtmData("get_free_report"));}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vir-report-info-modal"]],outputs:{close:"close",getReport:"getReport"},decls:19,vars:5,consts:[["size","medium",3,"close","stickyFooter"],[1,"tm-vir-report-info-modal__subheading"],[1,"tm-vir-report-info-modal__description"],[1,"tm-vir-report-info-modal__checklist"],[1,"tm-vir-report-info-modal__checklist-item"],[1,"tm-vir-report-info-modal__footer-buttons"],["type","button","tgButton2","","fullWidth","",1,"tm-vir-report-info-modal__close",3,"click"],["tmFrendClickOverrideBasicMemberForceUpgrade","","tmTrackCustomClick","","tgButton2","","tgStyle","primary","fullWidth","",3,"onClickOverride","trackingId","data"],["name","basic-tick","size","small","role","presentation",1,"tm-vir-report-info-modal__checklist-icon"]],template:function(n,l){n&1&&(Ia$1(0,"tg-modal",0),kD("close",function(){return l.close.emit()}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Vehicle Information Report"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"h3",1),Qx$1(6,"What's inside?"),bf$1(),Ia$1(7,"p",2),Qx$1(8," A comprehensive vehicle history check within New Zealand that will alert you to important information such as hidden debts, inconsistent odometer readings or if the vehicle is reported stolen. "),bf$1(),Ia$1(9,"ul",3),nx(10,b1,3,1,"li",4,tx),bf$1()(),Ia$1(12,"tg-modal-footer")(13,"div",5)(14,"button",6),kD("click",function(){return l.close.emit()}),Qx$1(15," Close "),bf$1(),Ia$1(16,"button",7),yA(17,"async"),kD("onClickOverride",function(){return l.getReport.emit()}),Qx$1(18," Get FREE report "),bf$1()()()()),n&2&&(TD("stickyFooter",true),X_$1(10),rx$1(l.checklistItems),X_$1(6),TD("trackingId",l.virClickTrackingId)("data",DA$1(17,3,l.gtmData$)));},dependencies:[Hb$1,Hr,jb$1,Bb$1,Lb$1,we,He,_,g,p,bO],styles:[".tm-vir-report-info-modal__subheading[_ngcontent-%COMP%]{font-weight:700;font-size:1rem;color:#2f2c28}.tm-vir-report-info-modal__description[_ngcontent-%COMP%]{font-size:.875rem;color:#2f2c28;margin-bottom:24px}.tm-vir-report-info-modal__checklist[_ngcontent-%COMP%]{columns:2;column-gap:24px;list-style:none;padding:0;margin:0 0 24px}@media(max-width:1023px){.tm-vir-report-info-modal__checklist[_ngcontent-%COMP%]{columns:1}}.tm-vir-report-info-modal__checklist-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;break-inside:avoid;margin-bottom:8px;color:#2f2c28}.tm-vir-report-info-modal__checklist-icon[_ngcontent-%COMP%]{flex-shrink:0;color:#29a754}.tm-vir-report-info-modal__footer-buttons[_ngcontent-%COMP%]{display:flex;gap:16px;width:100%}.tm-vir-report-info-modal__footer-buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-bottom:0}.tm-vir-report-info-modal__close[_ngcontent-%COMP%]{display:none}@media(min-width:1024px){.tm-vir-report-info-modal__close[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}}"]});let e=i;return e})();
11function M1(e,i){if(e&1&&(Ia$1(0,"div",5),Qx$1(1),bf$1()),e&2){let o=yx$1();X_$1(),Af$1("Last updated on ",o.virReportDate());}}function S1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-vir-report-info-modal",8),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.reportInfoModalVisible.set(false))})("getReport",function(){Xh$1(o);let n=yx$1();return n.reportInfoModalVisible.set(false),eg$1(n.getReport.emit())}),bf$1();}}var Oa=(()=>{let i=class i{constructor(){this.virReportDate=mq(null),this.getReport=gq(),this.reportInfoModalVisible=hn(false),this._motorsGtmService=v($$1),this.virClickTrackingId=Q$1;}ngOnInit(){this.gtmData$=$c(this._motorsGtmService.getVirClickGtmData("get_free_report"));}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vir-cta-box"]],inputs:{virReportDate:[1,"virReportDate"]},outputs:{getReport:"getReport"},decls:13,vars:6,consts:[[1,"tm-vir-cta-box"],[1,"tm-vir-cta-box__info"],["src","/images/frend/motors/vir-page-icon.svg","width","68","height","68","alt","VIR Page Icon",1,"tm-vir-cta-box__icon"],[1,"tm-vir-cta-box__text"],[1,"tm-vir-cta-box__title"],[1,"tm-vir-cta-box__subtitle"],["type","button","aria-haspopup","dialog",1,"tm-vir-cta-box__info-link",3,"click"],["tmFrendClickOverrideBasicMemberForceUpgrade","","tmTrackCustomClick","","tgButton2","","tgStyle","primary",3,"onClickOverride","trackingId","data"],[3,"close","getReport"]],template:function(n,l){n&1&&(Ia$1(0,"div",0)(1,"div",1),_D(2,"img",2),Ia$1(3,"div",3)(4,"div",4),Qx$1(5,"Vehicle Information Report included"),bf$1(),JN(6,M1,2,1,"div",5),Ia$1(7,"button",6),kD("click",function(){return l.reportInfoModalVisible.set(true)}),Qx$1(8," What's in the report? "),bf$1()()(),Ia$1(9,"button",7),yA(10,"async"),kD("onClickOverride",function(){return l.getReport.emit()}),Qx$1(11," Get FREE report "),bf$1()(),JN(12,S1,1,0,"tm-vir-report-info-modal")),n&2&&(X_$1(6),XN(l.virReportDate()?6:-1),X_$1(3),TD("trackingId",l.virClickTrackingId)("data",DA$1(10,4,l.gtmData$)),X_$1(3),XN(l.reportInfoModalVisible()?12:-1));},dependencies:[He,_,s0,g,p,bO],styles:["tm-vir-cta-box[_nghost-%COMP%]{display:block;width:100%;padding:16px;box-sizing:border-box}.tm-vir-cta-box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;width:100%;background-color:#f6f5f4;border-radius:8px}@media(max-width:1023px){.tm-vir-cta-box[_ngcontent-%COMP%]{flex-direction:column;text-align:center;padding:16px;gap:16px}}.tm-vir-cta-box__info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}@media(max-width:1023px){.tm-vir-cta-box__info[_ngcontent-%COMP%]{flex-direction:column}}.tm-vir-cta-box__icon[_ngcontent-%COMP%]{flex-shrink:0}.tm-vir-cta-box__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:4px}@media(max-width:1023px){.tm-vir-cta-box__text[_ngcontent-%COMP%]{align-items:center;gap:8px}}.tm-vir-cta-box__title[_ngcontent-%COMP%]{font-weight:500;font-size:1rem;line-height:24px;color:#44413d}.tm-vir-cta-box__subtitle[_ngcontent-%COMP%]{font-size:.75rem;line-height:16px;color:#85807c}.tm-vir-cta-box[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-bottom:0}@media(max-width:1023px){.tm-vir-cta-box[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.tm-vir-cta-box__info-link[_ngcontent-%COMP%]{padding:0;border:none;background:none;font-size:.875rem;line-height:20px;color:#007acd;
11cursor:pointer}"]});let e=i;return e})();function k1(e,i){if(e&1&&(Qx$1(0," The data was provided for "),Ia$1(1,"strong"),Qx$1(2),yA(3,"async"),bf$1(),Qx$1(4),yA(5,"async")),e&2){let o=yx$1(2);X_$1(2),rE(DA$1(3,2,o.rego$)),X_$1(2),Af$1(" by MotorWeb on ",DA$1(5,4,o.generatedDate$),". ");}}function I1(e,i){if(e&1&&(Qx$1(0),yA(1,"async")),e&2){let o=yx$1(2);Af$1(" ",DA$1(1,1,o.unavailableText$)," ");}}function T1(e,i){if(e&1&&(_D(0,"tm-make-an-offer-background-re-check",5),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1(2);TD("listing",DA$1(1,2,o.listing$))("shouldShowMAO",DA$1(2,4,o.shouldShowMAO$));}}function O1(e,i){e&1&&_D(0,"tm-background-check-box",7),e&2&&TD("status",i);}function E1(e,i){e&1&&_D(0,"tm-background-check-box",8),e&2&&TD("status",i);}function P1(e,i){e&1&&_D(0,"tm-background-check-box",9),e&2&&TD("status",i);}function D1(e,i){if(e&1&&(_D(0,"tm-background-check-box",10),yA(1,"async")),e&2){let o=yx$1(2);TD("status",i)("link",DA$1(1,2,o.motorWebUrl$));}}function L1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-vir-cta-box",13),yA(1,"async"),kD("getReport",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.openVirModal())}),bf$1();}if(e&2){let o=yx$1(2);TD("virReportDate",DA$1(1,1,o.virReportDate$));}}function B1(e,i){e&1&&_D(0,"tm-pre-purchase-inspection-box",14)(1,"tm-vehicle-report-box",14);}function F1(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",0)(1,"h2",2),Qx$1(2),yA(3,"async"),Ia$1(4,"tg-icon",3),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.backgroundCheckModalVisible=true)}),bf$1()(),Ia$1(5,"div",4),JN(6,k1,6,6),yA(7,"async"),wf$1(8,I1,2,3),bf$1(),JN(9,T1,3,6,"tm-make-an-offer-background-re-check",5),yA(10,"async"),yA(11,"async"),Ia$1(12,"div",6),yA(13,"async"),JN(14,O1,1,1,"tm-background-check-box",7),yA(15,"async"),JN(16,E1,1,1,"tm-background-check-box",8),yA(17,"async"),JN(18,P1,1,1,"tm-background-check-box",9),yA(19,"async"),JN(20,D1,2,4,"tm-background-check-box",10),yA(21,"async"),JN(22,L1,2,3,"tm-vir-cta-box",11),yA(23,"async"),wf$1(24,B1,2,0),bf$1(),_D(25,"tm-background-check-info-boxes",12),yA(26,"async"),yA(27,"async"),yA(28,"async"),yA(29,"async"),yA(30,"async"),bf$1();}if(e&2){let o,t,n,l,C=yx$1();X_$1(2),Af$1(" ",DA$1(3,15,C.titleText$)," "),X_$1(4),XN(DA$1(7,17,C.hasBackgroundCheck$)?6:8),X_$1(3),XN(DA$1(10,19,C.eligibileForBackgroundReCheck$)&&DA$1(11,21,C.shouldShowMAO$)?9:-1),X_$1(3),zD("tm-background-check__info-container--vir",DA$1(13,23,C.showVirDesign$)),X_$1(2),XN((o=DA$1(15,25,C.stolenVehicleCheckStatus$))?14:-1,o),X_$1(2),XN((t=DA$1(17,27,C.damageImportCheckStatus$))?16:-1,t),X_$1(2),XN((n=DA$1(19,29,C.reregisteredCheckStatus$))?18:-1,n),X_$1(2),XN((l=DA$1(21,31,C.moneyOwingCheckStatus$))?20:-1,l),X_$1(2),XN(DA$1(23,33,C.showVirCtaBox$)?22:24),X_$1(3),TD("_isDamageImport",DA$1(26,35,C.damageImportCheckStatus$))("_isReportedStolen",DA$1(27,37,C.stolenVehicleCheckStatus$))("_moneyOwing",DA$1(28,39,C.moneyOwingCheckStatus$))("_moneyOwingCopyOverride",DA$1(29,41,C.moneyOwingExplanation$))("_isReRegistered",DA$1(30,43,C.reregisteredCheckStatus$));}}function V1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-dealer-vir-enquiry-modal",15),yA(1,"async"),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.virModalVisible=false)}),bf$1();}if(e&2){let o=yx$1();TD("motorWebUrl",DA$1(1,1,o.motorWebUrl$));}}function A1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",16),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.backgroundCheckModalVisible=false)}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"What is a Background Check?"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"p"),Qx$1(6," A Background Check displays information from government and private databases about whether a vehicle has been reported stolen, is a damaged import, or has been re-registered. The information is valid at the time the Background Check is generated, but may be incomplete if government or private databases are inaccurate or out of date. "),bf$1(),Ia$1(7,"p"),Qx$1(8," This info is provided by MotorWeb. For a comprehensive report, get a Vehicle Information Report from "),Ia$1(9,"a",17),Qx$1(10,"motorweb.co.nz"),bf$1(),Qx$1(11,". "),bf$1(),Ia$1(12,"h3"),Qx$1(13,"Stolen vehicle check"),bf$1(),Ia$1(14,"p"),Qx$1(15,"This checks whether or not a vehicle has been reported stolen to the New Zealand Police."),bf$1(),Ia$1(16,"p"),Qx$1(17," The stolen vehicle information displayed is a snapshot of data from the Police vehicle of interest database. The Police aren't able to guarantee the accuracy of this information because there can be a delay in stolen vehicles appearing, and in recovered vehicles being cleared from the list. "),bf$1(),Ia$1(18,"h3"),Qx$1(19,"Damaged import check"),bf$1(),Ia$1(20,"p"),Qx$1(21," This checks if the vehicle was flagged as a damaged import by the New Zealand Transport Agency (NZTA). "),bf$1(),Ia$1(22,"p"),Qx$1(23," The NZTA records whether or not inspectors identified any obvious damage or deterioration on imported used vehicles at the time of importation. The extent of that damage or any damage that may have occurred in New Zealand is not recorded. "),bf$1(),Ia$1(24,"p"),Qx$1(25," This check excludes Australian statutory write-offs. You can check this by entering the vehicle's VIN here: "),Ia$1(26,"a",18),Qx$1(27," http://www.nzta.govt.nz/vehicles/choosing-the-right-vehicle/recalls-and-damaged-vehicles/flood-and-fire-damaged-vehicles/ "),bf$1()(),Ia$1(28,"h3"),Qx$1(29,"Re-registered check"),bf$1(),Ia$1(30,"p"),Qx$1(31," This checks the New Zealand Transport Agency (NZTA) Motor Vehicle Register. It will display if a vehicle has been de-registered and then registered again. "),bf$1(),Ia$1(32,"p"),Qx$1(33,' The most common reasons for a registration being cancelled are a vehicle being "written off" by an insurance company, a vehicle being destroyed or rendered useless, or a vehicle being unlicensed for more than 1 year. '),bf$1(),Ia$1(34,"h3"),Qx$1(35,"Money owing check"),bf$1(),Ia$1(36,"p"),Qx$1(37,"Available for the seller to purchase as an additional feature to display."),bf$1(),Ia$1(38,"p"),Qx$1(39," This checks whether the vehicle has a security interest recorded on the Personal Property Securities Register (PPSR). "),bf$1(),Ia$1(40,"p"),Qx$1(41," If a finance company or a person lends money to someone to buy a motor vehicle, the lender can register a security interest over the vehicle on the Personal Property Securities Register (PPSR). This means that the lender may have proprietary rights over the vehicle, and can have it repossessed. "),bf$1()()();}}var Ea=(()=>{let i=class i{constructor(t,n,l,C,I){this._listingFacade=t,this._motorsListingFacade=n,this._categoryService=l,this._auctionOfferFacade=C,this._virService=I,this.backgroundCheckModalVisible=false,this.virModalVisible=false;}
11ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.showBackgroundCheck$=this.listing$.pipe(Fe(t=>this.getShowBackgroundCheck(t))),this.motorsListing$=this._motorsListingFacade.getListingDetails().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.hasBackgroundCheck$=this.motorsListing$.pipe(Fe(t=>t.backgroundCheck)),this.virReportDate$=this.listing$.pipe(Fe(t=>this._virService.getVirGeneratedDate(t))),this.rego$=this.motorsListing$.pipe(Fe(t=>t.backgroundCheck?t.backgroundCheck.numberplate||t.backgroundCheck.vin:null)),this.motorWebUrl$=this.motorsListing$.pipe(Fe(t=>{if(t.backgroundCheck)return t.backgroundCheck.motorWebUrl})),this.moneyOwingExplanation$=this.listing$.pipe(Fe(t=>t?.motorWebBasicReport?.moneyOwingExplanation??null)),this.generatedDate$=this.motorsListing$.pipe(Fe(t=>t.backgroundCheck?BI(t.backgroundCheck.generatedAt,"dd MMMM yyyy, h:mm a","en-NZ"):null)),this.moneyOwingCheckStatus$=this.motorsListing$.pipe(Fe(t=>t.backgroundCheck&&t.backgroundCheck.moneyOwing!==void 0&&t.backgroundCheck.moneyOwing!==null?t.backgroundCheck.moneyOwing===false?Ze.Passed:Ze.Advisory:Ze.Unavailable)),this.stolenVehicleCheckStatus$=this.motorsListing$.pipe(Fe(t=>t.backgroundCheck&&t.backgroundCheck.reportedStolen!==void 0&&t.backgroundCheck.reportedStolen!==null?t.backgroundCheck.reportedStolen?Ze.Advisory:Ze.Passed:Ze.Unavailable)),this.damageImportCheckStatus$=this.motorsListing$.pipe(Fe(t=>{if(t.backgroundCheck&&t.backgroundCheck.importStatus!==void 0&&t.backgroundCheck.importStatus!==null){if(t.backgroundCheck.importStatus===xe.damaged)return Ze.Advisory;if(t.backgroundCheck.importStatus===xe.nzNew)return Ze.NzNew;if(t.backgroundCheck.importStatus===xe.notDamaged)return Ze.Passed}return Ze.Unavailable})),this.reregisteredCheckStatus$=this.motorsListing$.pipe(Fe(t=>t.backgroundCheck&&t.backgroundCheck.reRegistered!==void 0&&t.backgroundCheck.reRegistered!==null?t.backgroundCheck.reRegistered?Ze.Advisory:Ze.Passed:Ze.Unavailable)),this.eligibileForBackgroundReCheck$=this.listing$.pipe(Fe(t=>t.backgroundRecheckEligibility===pt.subjectToMoneyOwingAndStolen)),this.shouldShowMAO$=this._auctionOfferFacade.shouldShowMotorsMakeAnOffer(this.listing$).pipe(Xt(t=>!!t),o()),this.virAbFlagEnabled$=this._virService.virAbFlagEnabled$,this.isVirCtaEligible$=this.listing$.pipe(Fe(t=>!this._virService.isNewCarListing(t)&&this._virService.hasVirCtaAttribute(t))),this.isDealerListing$=this.listing$.pipe(Fe(t=>!!t.dealership)),this.showVirDesign$=wC$1([this.virAbFlagEnabled$,this.isDealerListing$]).pipe(Fe(([t,n])=>t&&n)),this.showVirCtaBox$=wC$1([this.virAbFlagEnabled$,this.isDealerListing$,this.isVirCtaEligible$]).pipe(Fe(([t,n,l])=>t&&n&&l)),this.titleText$=this.showVirDesign$.pipe(Fe(t=>t?"Vehicle Information":"Background check")),this.unavailableText$=this.showVirDesign$.pipe(Fe(t=>t?"Information for a Vehicle Information to display on this listing is currently unavailable.":"Information for a Background Check to display on this listing is currently unavailable."));}openVirModal(){this.virModalVisible=true;}getShowBackgroundCheck(t){if(this._virService.isNewCarListing(t))return  false;let n=R$3(t.category);return this._categoryService.isUsedCars(n)}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(Kt$1),R$2(P),R$2(It$1),R$2(K$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-background-check"]],standalone:false,decls:4,vars:5,consts:[[1,"tm-background-check"],[3,"motorWebUrl"],[1,"tm-background-check__title"],["alt","Learn more about background check","size","small","name","basic-question-framed",1,"tm-background-check__popup-icon",3,"click"],[1,"tm-background-check__disclaimer"],[3,"listing","shouldShowMAO"],[1,"tm-background-check__info-container"],["checkTitle","Stolen vehicle check",1,"tm-background-check__individual-box",3,"status"],["checkTitle","Damaged import check",1,"tm-background-check__individual-box",3,"status"],["checkTitle","Re-registered check",1,"tm-background-check__individual-box",3,"status"],["checkTitle","Money owing","linkText","Buy full report",1,"tm-background-check__individual-box",3,"status","link"],[3,"virReportDate"],[3,"_isDamageImport","_isReportedStolen","_moneyOwing","_moneyOwingCopyOverride","_isReRegistered"],[3,"getReport","virReportDate"],[1,"tm-background-check__individual-box"],[3,"close","motorWebUrl"],[3,"close"],["href","https://www.motorweb.co.nz","target","_blank"],["href","http://www.nzta.govt.nz/vehicles/choosing-the-right-vehicle/recalls-and-damaged-vehicles/flood-and-fire-damaged-vehicles/","target","_blank"]],template:function(n,l){n&1&&(JN(0,F1,31,45,"div",0),yA(1,"async"),JN(2,V1,2,3,"tm-dealer-vir-enquiry-modal",1),JN(3,A1,42,0,"tg-modal")),n&2&&(XN(DA$1(1,3,l.showBackgroun
11dCheck$)?0:-1),X_$1(2),XN(l.virModalVisible?2:-1),X_$1(),XN(l.backgroundCheckModalVisible?3:-1));},dependencies:[i0,wa,we,e0,Hr,jb$1,Lb$1,r0,Ia,Ta,Oa,bO],styles:["tm-background-check[_nghost-%COMP%]{display:block}.tm-background-check[_ngcontent-%COMP%]{margin-bottom:48px}.tm-background-check__info-container[_ngcontent-%COMP%]{display:flex;overflow:hidden;width:100%;flex-wrap:wrap;border:1px solid #e8e6e3;border-radius:8px}.tm-background-check__info-container[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child){border-top:1px solid #e8e6e3}@media(min-width:1024px){.tm-background-check__info-container[_ngcontent-%COMP%]{border:none;width:calc(100% + 16px)}}.tm-background-check__info-container--%NS%vir[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child){border-top:none}@media(min-width:1024px){.tm-background-check__info-container--vir[_ngcontent-%COMP%]{border:1px solid #e8e6e3;width:100%}}.tm-background-check__disclaimer[_ngcontent-%COMP%]{margin-bottom:10px;font-size:.75rem}.tm-background-check__popup-icon[_ngcontent-%COMP%]{margin-top:-2px;color:#006ebd;cursor:pointer}.tm-background-check__individual-box[_ngcontent-%COMP%]{width:100%}@media(min-width:1024px){.tm-background-check__individual-box[_ngcontent-%COMP%]{width:calc(50% - 16px);border:1px solid #e8e6e3;margin:8px 16px 0 0;border-radius:8px}}@media(min-width:1024px){.tm-background-check__info-container--vir[_ngcontent-%COMP%]   .tm-background-check__individual-box[_ngcontent-%COMP%]{border:none;border-radius:0}}.tm-background-check__title[_ngcontent-%COMP%]{margin-bottom:0}"]});let e=i;return e})();var m0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,ka,we,He]});let e=i;return e})();var Pa=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,ka,Yp,wa,Pu,we,t0,Hb$1,we,m0,g,He,Ia,Ta,Oa]});let e=i;return e})();function R1(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",1),_D(2,"tm-listing-breadcrumbs",2),yA(3,"async"),_D(4,"tm-listing-watchlist",3),bf$1(),Ja$2()),e&2){let o=i.ngIf,t=yx$1();X_$1(2),TD("showBackButton",DA$1(3,4,t.showBreadcrumbBackbutton$))("listing",o),X_$1(2),TD("isCompactButton",true)("listing",o);}}var La=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._routerFacade=n;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.showBreadcrumbBackbutton$=this._routerFacade.selectPreviousRouteData().pipe(Fe(t=>t==null?false:t.feature.search));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(D))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-breadcrumbs-watchlist-banner"]],standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],[1,"tm-breadcrumbs-watchlist-banner__container","l-container"],["backButtonText","Back to search results",1,"tm-breadcrumbs-watchlist-banner__breadcrumbs",3,"showBackButton","listing"],[1,"tm-breadcrumbs-watchlist-banner__watchlist-button",3,"isCompactButton","listing"]],template:function(n,l){n&1&&(iD(0,R1,5,6,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));},dependencies:[mO,Ri$2,Bt$3,bO],styles:["tm-breadcrumbs-watchlist-banner[_nghost-%COMP%]{display:none}@media(min-width:1024px){tm-breadcrumbs-watchlist-banner[_nghost-%COMP%]{display:block}}.tm-breadcrumbs-watchlist-banner__container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.tm-breadcrumbs-watchlist-banner__breadcrumbs[_ngcontent-%COMP%]     .tm-listing-breadcrumbs__back-text{display:inline-block;height:100%;padding-right:8px;border-right:1px solid #85807c;font-size:.75rem;line-height:16px}.tm-breadcrumbs-watchlist-banner__breadcrumbs[_ngcontent-%COMP%]     .tm-listing-breadcrumbs__button-as-link{display:flex;min-height:100%;align-items:center}.tm-breadcrumbs-watchlist-banner__breadcrumbs[_ngcontent-%COMP%]     .tm-listing-breadcrumbs__button-as-link>tg-icon-left{width:20px;height:20px;margin-right:0}.tm-breadcrumbs-watchlist-banner__watchlist-button[_ngcontent-%COMP%]{width:24%;padding-top:8px;padding-bottom:8px}.tm-breadcrumbs-watchlist-banner__watchlist-button[_ngcontent-%COMP%]     .o-icon{width:20px;height:20px;margin-right:2px}.tm-breadcrumbs-watchlist-banner__watchlist-button[_ngcontent-%COMP%]     .o-button2--compact{margin-bottom:0}"]});let e=i;return e})();var Ba=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}
11),i.\u0275inj=_o({imports:[VO,ji,Mt]});let e=i;return e})();var Fa=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Ec,we,we,we]});let e=i;return e})();function N1(e,i){if(e&1&&(Mf(0),Ia$1(1,"span",6),Qx$1(2),yA(3,"async"),bf$1(),Ia$1(4,"span",7),Qx$1(5," | "),bf$1(),Ja$2()),e&2){let o=yx$1();X_$1(2),Af$1(" ",DA$1(3,1,o.date$)," ");}}function j1(e,i){if(e&1&&(Ia$1(0,"span",8)(1,"span",9),Qx$1(2,"\xB7"),bf$1(),Ia$1(3,"strong"),Qx$1(4),bf$1(),Qx$1(5," views "),bf$1()),e&2){let o=i.ngIf;X_$1(4),Af$1("",o," ");}}function U1(e,i){if(e&1&&(Ia$1(0,"span",10)(1,"span",9),Qx$1(2,"\xB7"),bf$1(),Ia$1(3,"span",11)(4,"strong"),Qx$1(5),yA(6,"async"),bf$1(),Qx$1(7," others watchlisted "),bf$1()()),e&2){let o=yx$1();X_$1(5),Af$1(" ",DA$1(6,1,o.biddersAndWatchers$)," ");}}var W1=5,Va=(()=>{let i=class i{constructor(t,n,l,C){this._listingFacade=t,this._datetimePipe=n,this._listingService=l,this._membershipHelperService=C;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.biddersAndWatchers$=this.listing$.pipe(Fe(t=>t.bidderAndWatchers)),this.canShowWatchers$=this.listing$.pipe(Fe(t=>t.bidderAndWatchers>=W1)),this.isAuction$=this.listing$.pipe(Fe(t=>this._listingService.isAuction(t))),this.location$=this.listing$.pipe(Fe(t=>this.getLocation(t))),this.date$=this.listing$.pipe(Fe(t=>this.getDate(t))),this.views$=this.listing$.pipe(Xt(t=>!!t.viewCount),Fe(t=>t.viewCount));}getLocation(t){if(t.dealership)return `${t.dealership.suburb?t.dealership.suburb+",":""} ${t.dealership.city}`;if(t.member)return this._membershipHelperService.isInternational(t.member)?t.member.suburb:`${t.member.suburb?t.member.suburb+",":""} ${t.member.region}`}getDate(t){return t.isClassified&&t.formattedStartDate?`Listed ${t.formattedStartDate}`:`Closes: ${this._datetimePipe.transform(t.endDate,{})}`}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(M0$1),R$2(_t),R$2(F$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-date-city"]],standalone:false,decls:11,vars:12,consts:[[1,"tm-motors-date-city-watchlist__container"],[4,"ngIf"],[1,"tm-motors-date-city-watchlist__location"],["size","small","name","location","alt","Location icon"],["class","tm-motors-date-city-watchlist__views-container",4,"ngIf"],["class","tm-motors-date-city-watchlist__watchlists-container",4,"ngIf"],[1,"tm-motors-date-city-watchlist__date"],[1,"tm-motors-date-city-watchlist__date-divider"],[1,"tm-motors-date-city-watchlist__views-container"],[1,"tm-motors-date-city-watchlist__divider","tm-motors-date-city-watchlist__divider--hide-on-mobile"],[1,"tm-motors-date-city-watchlist__watchlists-container"],[1,"tm-motors-date-city-watchlist__watchlists"]],template:function(n,l){n&1&&(Ia$1(0,"div",0),iD(1,N1,6,3,"ng-container",1),yA(2,"async"),Ia$1(3,"span",2),_D(4,"tg-icon",3),Qx$1(5),yA(6,"async"),bf$1(),iD(7,j1,6,1,"span",4),yA(8,"async"),iD(9,U1,8,3,"span",5),yA(10,"async"),bf$1()),n&2&&(X_$1(),TD("ngIf",!DA$1(2,4,l.isAuction$)),X_$1(4),Af$1(" Seller located in ",DA$1(6,6,l.location$)," "),X_$1(2),TD("ngIf",DA$1(8,8,l.views$)),X_$1(2),TD("ngIf",DA$1(10,10,l.canShowWatchers$)));},dependencies:[mO,we,bO],styles:[".tm-motors-date-city-watchlist__container[_ngcontent-%COMP%]{margin-bottom:16px;font-size:.875rem;line-height:25px}.tm-motors-date-city-watchlist__date[_ngcontent-%COMP%]{color:#65605d}.tm-motors-date-city-watchlist__divider[_ngcontent-%COMP%]{display:inline;margin:0 4px;color:#85807c;font-size:24px;font-weight:700;vertical-align:bottom}.tm-motors-date-city-watchlist__divider--hide-on-mobile[_ngcontent-%COMP%]{display:none}@media(min-width:768px){.tm-motors-date-city-watchlist__divider--hide-on-mobile[_ngcontent-%COMP%]{display:inline}}.tm-motors-date-city-watchlist__date-divider[_ngcontent-%COMP%]{margin:0 5px}.tm-motors-date-city-watchlist__watchlists[_ngcontent-%COMP%], .tm-motors-date-city-watchlist__views-container[_ngcontent-%COMP%]{display:block;color:#65605d}@media(min-width:768px){.tm-motors-date-city-watchlist__watchlists[_ngcontent-%COMP%], .tm-motors-date-city-watchlist__views-container[_ngcontent-%COMP%]{display:inline-table}}"]});let e=i;return e})();var Aa=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we,we]});let e=i;return e})();var p0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-certified-pre-owned-svg"]],standalone:false,decls:8,vars:0,consts:[["width","31","height","41","viewBox","0 0 31 41","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M24.2578 41L17.0418 34.1743V14.75H24.2578V41Z","fill","#D57800"],["d","M9.82422 41L17.0402 34.1743V14.75H9.82422V41Z","fill","#F9AF2C"],["d","M15.7975 2.84107C15.9653 2.6436 16.174 2.48501 16.4089 2.37626C16.6439 2.2675 16.8996 2.21118 17.1585 2.21118C17.4173 2.21118 17.673 2.2675 17.908 2.37626C18.143 2.48501 18.3516 2.6436 18.5194 2.84107C19.6727 4.2743 20.0995 4.34365 21.7949 3.56924C22.0289 3.46116 22.2837 3.40575 22.5413 3.40689C22.799 3.40804 23.0533 3.46572 23.2863 3.57588C23.5194 3.68604 23.7255 3.84601 23.8902 4.04455C24.055 4.24308 24.1744 4.47537 24.24 4.72508C24.6782 6.49351 24.9781 6.75935 26.8696 6.78247C27.1268 6.78028 27.3813 6.83601 27.6142 6.94553C27.847 7.05505 28.0524 7.21557 28.2151 7.41525C28.3779 7.61493 28.4938 7.84868 28.5543 8.09924C28.6149 8.34981 28.6185 8.6108 28.565 8.86297C28.1613 10.6545 28.3343 11.0128 30.0182 11.8335C30.2511 11.9418 30.4563 12.1018 30.6185 12.3012C30.7807 12.5007 30.8955 12.7345 30.9544 12.9849C31.0132 13.2354 31.0146 13.4959 30.9583 13.747C30.902 13.998 30.7896 14.233 30.6295 14.4341C29.4761 15.8789 29.4761 16.2719 30.6295 17.7167C30.7896 17.9178 30.902 18.1527 30.9583 18.4038C31.0146 18.6548 31.0132 18.9154 30.9544 19.1658C30.8955 19.4163 30.7807 19.65 30.6185 19.8495C30.4563 20.049 30.2511 20.2089 30.0182 20.3173C28.3459 21.1264 28.1613 21.4731 28.565 23.2878C28.6107 23.5367 28.6012 23.7926 28.5371 24.0373C28.4729 24.2821 28.3558 24.5097 28.1939 24.7039C28.032 24.8981 27.8295 25.0542 27.6006 25.161C27.3717 25.2679 27.1221 25.3229 26.8696 25.3221C25.3702 25.3221 24.7705 25.2412 24.24 27.3794C24.1744 27.6292 24.055 27.8614 23.8902 28.06C23.7255 28.2585 23.5194 28.4185 23.2863 28.5286C23.0533 28.6388 22.799 28.6965 22.5413 28.6976C22.2837 28.6988 22.0289 28.6434 21.7949 28.5353C20.434 27.9111 19.938 27.5644 18.5194 29.2635C18.3516 29.4609 18.143 29.6195 17.908 29.7283C17.673 29.837 17.4173 29.8933 17.1585 29.8933C16.8996 29.8933 16.6439 29.837 16.4089 29.7283C16.174 29.6195 15.9653 29.4609 15.7975 29.2635C14.6442 27.8302 14.2059 27.7609 12.522 28.5353C12.2883 28.6455 12.0332 28.7026 11.7749 28.7024C11.5165 28.7023 11.2615 28.645 11.0278 28.5345C10.7942 28.4241 10.5878 28.2633 10.4235 28.0636C10.2591 27.8639 10.1408 27.
116303 10.077 27.3794C9.63869 25.6688 9.35036 25.3914 7.44735 25.3221C7.19078 25.3221 6.93741 25.265 6.7056 25.1548C6.47379 25.0446 6.26933 24.8841 6.10705 24.685C5.94476 24.4858 5.8287 24.253 5.76728 24.0033C5.70587 23.7537 5.70062 23.4935 5.75194 23.2416C6.14407 21.4616 5.98261 21.0917 4.29873 20.2711C4.06587 20.1627 3.86061 20.0027 3.69844 19.8033C3.53627 19.6038 3.42141 19.37 3.36255 19.1196C3.30368 18.8692 3.30234 18.6086 3.35863 18.3575C3.41491 18.1065 3.52735 17.8716 3.68746 17.6704C4.8408 16.2372 4.8408 15.8327 3.68746 14.3879C3.5361 14.1876 3.43095 13.9562 3.37957 13.7103C3.32819 13.4644 3.33186 13.2101 3.39032 12.9658C3.44879 12.7215 3.56058 12.4932 3.71766 12.2974C3.87474 12.1016 4.0732 11.9432 4.29873 11.8335C5.95954 11.0244 6.15561 10.6776 5.75194 8.86297C5.70828 8.61438 5.71931 8.35923 5.78426 8.11535C5.8492 7.87148 5.96651 7.64475 6.12796 7.45102C6.28942 7.2573 6.49114 7.10123 6.71903 6.99374C6.94692 6.88625 7.19548 6.82993 7.44735 6.8287C9.35036 6.8287 9.63869 6.52818 10.077 4.77131C10.1344 4.51332 10.2492 4.27163 10.4127 4.06427C10.5763 3.85691 10.7845 3.68921 11.0217 3.57366C11.259 3.45812 11.5191 3.39772 11.7829 3.39696C12.0467 3.39619 12.3072 3.45508 12.5451 3.56924C14.1944 4.34365 14.5981 4.2743 15.7975 2.84107Z","fill","#FFCB4F"],["d","M22.9795 11.3198L14.3393 19.3487L11.0325 16.2691C10.5678 15.8379 9.81429 15.8379 9.34954 16.2691C8.88479 16.7004 8.88479 17.3997 9.34954 17.8309L13.4978 21.6804C13.9601 22.1069 14.7067 22.1069 15.1689 21.6804L24.6507 12.8816C25.1154 12.4534 25.1181 11.7566 24.6566 11.3253C24.1951 10.894 23.4443 10.8916 22.9795 11.3198Z","fill","#D57800","stroke","#D57800"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.10724 5.1639C5.37585 4.89529 5.38113 4.46506 5.11902 4.20295L3.05765 2.14157C2.79554 1.87947 2.36531 1.88474 2.09669 2.15335C1.82808 2.42197 1.82281 2.8522 2.08491 3.1143L4.14629 5.17568C4.4084 5.43779 4.83863 5.43251 5.10724 5.1639Z","fill","#52B0F0"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.07077 5.05048e-05C6.6955 0.0045788 6.38749 0.312471 6.38282 0.687747L6.34607 3.639C6.3414 4.01428 6.64183 4.31483 7.01711 4.3103C7.39238 4.30577 7.70039 3.99788 7.70506 3.62261L7.74181 0.671348C7.74648 0.296072 7.44605 -0.00447779 7.07077 5.05048e-05Z","fill","#52B0F0"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.3103 7.01711C4.31483 6.64183 4.01428 6.3414 3.639 6.34607L0.687747 6.38282C0.31247 6.38749 0.00457894 6.6955 5.05035e-05 7.07077C-0.00447772 7.44605 0.296072 7.74648 0.671347 7.74181L3.62261 7.70506C3.99788 7.70039 4.30577 7.39238 4.3103 7.01711Z","fill","#52B0F0"]],template:function(n,l){n&1&&(dg$1(),Ia$1(0,"svg",0),_D(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),bf$1());},encapsulation:2});let e=i;return e})();var z1=e=>({"tm-dealer-phone-button__button-no-style":e});function G1(e,i){e&1&&_D(0,"tg-icon",5);}function K1(e,i){e&1&&(Ia$1(0,"span"),Qx$1(1," Contact "),bf$1());}function Z1(e,i){e&1&&Qx$1(0," Contact details ");}function Y1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-modal",6),yA(1,"async"),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeModal())}),bf$1();}if(e&2){let o=yx$1();TD("gtmLocation",rA(o.gtmLocation))("dealership",DA$1(1,3,o.dealership$));}}var Kt=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._motorsGtmService=n,this.displayAsButton=false,this.displayShortText=false,this.buttonStyle="primary",this.shouldDisplayPhoneIcon=true,this.gtmLocation="",this.close=new Pt,this.dealerContactDetailsButtonClickTrackingId=W$4;}ngOnInit(){this.dealership$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!!t.item.dealership),Fe(t=>t.item.dealership),o()),this.gtmData$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click",this.gtmLocation);}closeModal(){this.showModal=false,this.close.emit();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-phone-button"]],inputs:{displayAsButton:"displayAsButton",displayShortText:"displayShortText",buttonStyle:"buttonStyle",shouldDisplayPhoneIcon:"shouldDisplayPhoneIcon",gtmLocation:"gtmLocation"},outputs:{close:"close"},standalone:false,decls:7,vars:12,consts:[["fullTextBlock",""],["tgButton2","","tmTrackCustomClick","",1,"tm-dealer-phone-button__button",3,"click","ngClass","trackingId","data","tgStyle"],["alt","Contact details","name","phone",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"dealership","gtmLocation","close",4,"ngIf"],["alt","Contact details","name","phone"],[3,"close","dealership","gtmLocation"]],template:function(n,l){if(n&1&&(Ia$
111(0,"button",1),yA(1,"async"),kD("click",function(){return l.showModal=true}),iD(2,G1,1,0,"tg-icon",2)(3,K1,2,0,"span",3)(4,Z1,1,0,"ng-template",null,0,wA),bf$1(),iD(6,Y1,2,5,"tm-contact-modal",4)),n&2){let C=Tx$1(5);TD("ngClass",pA(10,z1,l.displayAsButton===false))("trackingId",l.dealerContactDetailsButtonClickTrackingId)("data",DA$1(1,8,l.gtmData$))("tgStyle",l.buttonStyle),X_$1(2),TD("ngIf",l.shouldDisplayPhoneIcon),X_$1(),TD("ngIf",l.displayShortText)("ngIfElse",C),X_$1(3),TD("ngIf",l.showModal);}},dependencies:[pO,mO,Ce,we,He,p,bO],styles:["tm-dealer-phone-button[_nghost-%COMP%]{display:inline-block;width:100%}.tm-dealer-phone-button__button[_ngcontent-%COMP%]{width:100%;margin-bottom:0}.tm-dealer-phone-button__button-no-style[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:row;align-items:center;justify-content:center;padding-right:14px;padding-left:14px;margin-bottom:0;background-color:transparent;border-radius:0;color:#006ebd;cursor:pointer;font-size:.875rem;font-weight:400}@media(min-width:768px){.tm-dealer-phone-button__button-no-style[_ngcontent-%COMP%]{padding-right:12px;padding-left:12px}}@media(min-width:1024px){.tm-dealer-phone-button__button-no-style[_ngcontent-%COMP%]{min-width:96px;flex-direction:column;padding:0 8px}}@media(min-width:1280px){.tm-dealer-phone-button__button-no-style[_ngcontent-%COMP%]{min-width:112px}}.tm-dealer-phone-button__button-no-style[_ngcontent-%COMP%]:hover{background-color:transparent;color:#3da5eb}.tm-dealer-phone-button__button-no-style-text[_ngcontent-%COMP%]{display:none;margin-left:8px}@media(min-width:768px){.tm-dealer-phone-button__button-no-style-text[_ngcontent-%COMP%]{display:block}}@media(min-width:1024px){.tm-dealer-phone-button__button-no-style-text[_ngcontent-%COMP%]{margin-left:0}}"]});let e=i;return e})();var Tt=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Ee,we,He,Hb$1,g]});let e=i;return e})();var so=(function(e){return e.enquiry_button_clicked="motors_certified_preowned_enquiry_click",e.badge_clicked="motors_certified_preowned_learn_click",e})(so||{});function Q1(e,i){if(e&1){let o=dx$1();Ia$1(0,"div")(1,"div",15)(2,"img",16),kD("error",function(){Xh$1(o);let n=yx$1();return eg$1(n.onLogoLoadError())}),bf$1()()();}if(e&2){let o=yx$1();X_$1(2),TD("src",o.logoUrl,Ry$1);}}function J1(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",17),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeContactSellerModal())}),bf$1();}if(e&2){let o=yx$1();TD("selectedSubject",o.enquiryType.certifiedPreOwned);}}var g0=(()=>{let i=class i{constructor(t,n){this._mediaSizeFacade=t,this._analyticsService=n,this.close=new Pt,this.shouldDisplayContactSellerModal=false,this.enquiryType=ie$1,this.shouldShowLogo$=new oo(false),this.certifiedPreOwnedAnalyticsEnum=so;}
11ngOnInit(){this.isMdOrGreater$=this._mediaSizeFacade.is.md$.or.greater$,this.shouldShowLogo$.next(this.logoUrl?.length!==0);}openContactSellerModal(){this.shouldDisplayContactSellerModal=true,this._analyticsService.addEvent(this.certifiedPreOwnedAnalyticsEnum.enquiry_button_clicked);}closeContactSellerModal(){this.shouldDisplayContactSellerModal=false,this.close.emit();}closeModal(){this.close.emit();}onLogoLoadError(){this.shouldShowLogo$.next(false);}};i.\u0275fac=function(n){return new(n||i)(R$2(G),R$2(De))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-certified-pre-owned-modal"]],inputs:{logoUrl:"logoUrl"},outputs:{close:"close"},standalone:false,decls:38,vars:7,consts:[["size","wide",3,"close"],[4,"ngIf"],[1,"tm-certified-pre-owned-modal__description-desktop"],[1,"tm-certified-pre-owned-modal__description-mobile"],[1,"tm-certified-pre-owned-modal__info-container"],["name","docs-clipboard","role","presentation",1,"tm-certified-pre-owned-modal__info-icon"],[1,"tm-certified-pre-owned-modal__info-title"],["name","star","role","presentation",1,"tm-certified-pre-owned-modal__info-icon"],[1,"tm-certified-pre-owned-modal__trademe-disclaimer"],[1,"tm-certified-pre-owned-modal__footer"],[1,"tm-certified-pre-owned-modal__dealer-phone-button"],["displayAsButton","true","buttonStyle","inverted",3,"close","displayShortText"],[1,"tm-certified-pre-owned-modal__contact-seller-button"],["tgButton2","","fullWidth","","tgStyle","primary",3,"click"],[3,"selectedSubject","close",4,"ngIf"],[1,"tm-certified-pre-owned-modal__logo"],["alt","certified pre-owned logo",3,"error","src"],[3,"close","selectedSubject"]],template:function(n,l){n&1&&(Ia$1(0,"tg-modal",0),kD("close",function(){return l.closeModal()}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"What is Certified pre-owned?"),bf$1()(),iD(4,Q1,3,1,"div",1),yA(5,"async"),Ia$1(6,"tg-modal-body")(7,"div",2)(8,"div"),Qx$1(9," A Certified pre-owned vehicle is part of a manufacturer certification programme for used vehicles. "),bf$1(),Ia$1(10,"div"),Qx$1(11,"It is now available to purchase at the dealership and includes:"),bf$1()(),Ia$1(12,"div",3),Qx$1(13," A Certified pre-owned vehicle is part of a manufacturer certification programme for used vehicles. It is now available to purchase at the dealership and includes: "),bf$1(),Ia$1(14,"div",4),_D(15,"tg-icon",5),Ia$1(16,"div")(17,"div",6),Qx$1(18,"Quality inspection"),bf$1(),Ia$1(19,"div"),Qx$1(20,"Vehicle is thoroughly checked to meet specific manufacturer's high resale standards"),bf$1()()(),Ia$1(21,"div",4),_D(22,"tg-icon",7),Ia$1(23,"div")(24,"div",6),Qx$1(25,"Extra benefits"),bf$1(),Ia$1(26,"div"),Qx$1(27,"Often includes a variety of additional benefits over buying a used vehicle"),bf$1()()(),Ia$1(28,"div",8),Qx$1(29," Contact the dealer for more information about this specific programme and if you're interested in purchasing this manufacturer-approved vehicle. "),bf$1()(),Ia$1(30,"tg-modal-footer",9)(31,"div",10)(32,"tm-dealer-phone-button",11),yA(33,"async"),kD("close",function(){return l.closeModal()}),bf$1()(),Ia$1(34,"div",12)(35,"button",13),kD("click",function(){return l.openContactSellerModal()}),Qx$1(36," Email dealer "),bf$1(),iD(37,J1,1,1,"tm-contact-seller-modal",14),bf$1()()()),n&2&&(X_$1(4),TD("ngIf",DA$1(5,3,l.shouldShowLogo$)),X_$1(28),TD("displayShortText",!DA$1(33,5,l.isMdOrGreater$)),X_$1(5),TD("ngIf",l.shouldDisplayContactSellerModal));},dependencies:[mO,Hr,jb$1,Bb$1,Lb$1,Kt,rh$1,He,we,bO],styles:["tm-certified-pre-owned-modal[_nghost-%COMP%]{display:block}.tm-certified-pre-owned-modal__footer[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding-top:16px;margin-bottom:8px}.tm-certified-pre-owned-modal__dealer-phone-button[_ngcontent-%COMP%]{margin-right:8px}.tm-certified-pre-owned-modal__contact-seller-button[_ngcontent-%COMP%]{margin-left:8px}.tm-certified-pre-owned-modal__info-container[_ngcontent-%COMP%]{display:flex;padding-bottom:16px}.tm-certified-pre-owned-modal__info-title[_ngcontent-%COMP%]{font-weight:500;color:#44413d}.tm-certified-pre-owned-modal__info-icon[_ngcontent-%COMP%]{color:#007acd;margin-left:4px;margin-right:16px}.tm-certified-pre-owned-modal__description-desktop[_ngcontent-%COMP%]{padding-bottom:24px;display:none}@media(min-width:768px){.tm-certified-pre-owned-modal__description-desktop[_ngcontent-%COMP%]{display:block}}@media(min-width:768px){.tm-certified-pre-owned-modal__description-mobile[_ngcontent-%COMP%]{display:none}}.tm-certified-pre-owned-modal__trademe-disclaimer[_ngcontent-%COMP%]{padding-bottom:24px}.tm-certified-pre-owned-modal__logo[_ngcontent-%COMP%]{display:flex;height:40px;justify-content:center;border-top:1px solid #e8e6e3;border-bottom:1px solid #e8e6e3}"]});let e=i;return e})();var _0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Hb$1,Tt,Ja$1,He,we,we]});let e=i;return e})();function eh(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",2),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.openModal())}),Ia$1(1,"div",3),_D(2,"tm-certified-pre-owned-svg",4),Ia$1(3,"div",5),Qx$1(4,"Certified pre-owned"),bf$1()(),Ia$1(5,"div"),_D(6,"tg-icon",6),bf$1()();}}function th(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-certified-pre-owned-modal",7),yA(1,"async"),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeModal())}),bf$1();}if(e&2){let o=yx$1();TD("logoUrl",DA$1(1,1,o.certifiedPreOwnedLogoUrl$));}}var u0=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._analyticsService=n,this.shouldDisplayModal=false,this.certifiedPreOwnedAnalyticsEnum=so;}
11ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!t.isLoading),Fe(t=>t.item)),this.isCertifiedPreOwnedListing$=this.listing$.pipe(Fe(t=>t?.newCarInformation?.condition===P$2.certifiedPreOwned)),this.certifiedPreOwnedLogoUrl$=this.listing$.pipe(Fe(t=>t?.newCarInformation?.certifiedPreOwned?.logoUrl??""));}openModal(){this.shouldDisplayModal=true,this._analyticsService.addEvent(this.certifiedPreOwnedAnalyticsEnum.badge_clicked);}closeModal(){this.shouldDisplayModal=false;}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(De))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-certified-pre-owned-badge"]],standalone:false,decls:3,vars:4,consts:[["class","tm-certified-pre-owned-badge__container",3,"click",4,"ngIf"],[3,"logoUrl","close",4,"ngIf"],[1,"tm-certified-pre-owned-badge__container",3,"click"],[1,"tm-certified-pre-owned-badge__illustration-title-container"],[1,"tm-certified-pre-owned-badge__illustration"],[1,"tm-certified-pre-owned-badge__title"],["name","basic-question-framed","size","small","role","presentation",1,"tm-certified-pre-owned-badge__icon"],[3,"close","logoUrl"]],template:function(n,l){n&1&&(iD(0,eh,7,0,"div",0),yA(1,"async"),iD(2,th,2,3,"tm-certified-pre-owned-modal",1)),n&2&&(TD("ngIf",DA$1(1,2,l.isCertifiedPreOwnedListing$)),X_$1(2),TD("ngIf",l.shouldDisplayModal));},dependencies:[mO,we,g0,p0,bO],styles:["tm-certified-pre-owned-badge[_nghost-%COMP%]{display:block}.tm-certified-pre-owned-badge__container[_ngcontent-%COMP%]{display:flex;cursor:pointer;justify-content:space-between;border:1px solid #d7d5d2;border-radius:8px;max-width:100%;padding:8px;margin-bottom:16px;margin-top:4px}@media(min-width:1024px){.tm-certified-pre-owned-badge__container[_ngcontent-%COMP%]{width:50%}}.tm-certified-pre-owned-badge__illustration-title-container[_ngcontent-%COMP%]{display:flex;padding-left:8px}.tm-certified-pre-owned-badge__title[_ngcontent-%COMP%]{color:#44413d;font-weight:500;padding-left:12px;padding-top:8px;font-size:18px}.tm-certified-pre-owned-badge__illustration[_ngcontent-%COMP%]{height:42px}.tm-certified-pre-owned-badge__icon[_ngcontent-%COMP%]{color:#007acd;margin-top:15px;margin-right:8px}"]});let e=i;return e})();var f0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we,_0]});let e=i;return e})();var oh=["tmDescriptionBody"],rh=["tmDescriptionTopAnchor"];function ah(e,i){e&1&&(Ia$1(0,"h2",8),Qx$1(1," Description "),bf$1());}function sh(e,i){e&1&&(Ia$1(0,"span",11),Qx$1(1," Show more "),_D(2,"tg-icon-right",12),bf$1());}function lh(e,i){e&1&&(Ia$1(0,"span",11),Qx$1(1," Show less "),_D(2,"tg-icon-right",13),bf$1());}function mh(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",9),yA(1,"async"),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.toggleShowMore())}),iD(2,sh,3,0,"span",10),yA(3,"async"),iD(4,lh,3,0,"ng-template",null,2,wA),bf$1();}if(e&2){let o=Tx$1(5),t=yx$1();bD("aria-expanded",!DA$1(1,3,t.compact$)),X_$1(2),TD("ngIf",DA$1(3,5,t.compact$))("ngIfElse",o);}}var ch=200,$a=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._delayService=n,this.compact$=new oo(false),this.isDescriptionTooLong$=new oo(false),this._destroyed$=new W$1;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.shouldDisableLinks$=this.listing$.pipe(Xt(t=>!!t.renderOptions),Fe(t=>this.shouldDisableLinks(t))),this.hasDescription$=this.listing$.pipe(Xt(t=>!!t.body),Fe(t=>t.body.length>0)),this.checkDescriptionHeight();}toggleShowMore(){this.compact$.value||this.scrollToTopOfDescription(),this.compact$.next(!this.compact$.value);}scrollToTopOfDescription(){this.topAnchor.nativeElement.getBoundingClientRect().top<0&&this.topAnchor.nativeElement.scrollIntoView();}checkDescriptionHeight(){this._delayService.delay(()=>{this.tmDescriptionBody.nativeElement.clientHeight>ch?(this.isDescriptionTooLong$.next(true),this.compact$.next(true)):(this.isDescriptionTooLong$.next(false),this.compact$.next(false));},0,this._destroyed$);}shouldDisableLinks(t){return !t.renderOptions.includes(lt.canRenderUrls)}ngOnDestroy(){this._destroyed$.next();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(P$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-listing-description"]],viewQuery:function(n,l){if(n&1&&jD(oh,7,xt)(rh,5),n&2){let C;
11Cx$1(C=wx$1())&&(l.tmDescriptionBody=C.first),Cx$1(C=wx$1())&&(l.topAnchor=C.first);}},standalone:false,decls:13,vars:16,consts:[["tmDescriptionTopAnchor",""],["tmDescriptionBody",""],["showLess",""],[1,"tm-motors-listing-description"],[1,"tm-property-listing-description__anchor"],["class","tm-motors-listing-description__title",4,"ngIf"],[1,"tm-motors-listing-description__text",3,"disableLinks","text"],["class","tm-motors-listing-body__item-show-more-button","tgButton2","","transparent","",3,"click",4,"ngIf"],[1,"tm-motors-listing-description__title"],["tgButton2","","transparent","",1,"tm-motors-listing-body__item-show-more-button",3,"click"],["class","tm-motors-listing-description__show-more-button-content",4,"ngIf","ngIfElse"],[1,"tm-motors-listing-description__show-more-button-content"],["name","basic-plus","aria-hidden","true","size","small"],["name","basic-minus","aria-hidden","true","size","small"]],template:function(n,l){if(n&1&&(Ia$1(0,"div",3),_D(1,"div",4,0),iD(3,ah,2,0,"h2",5),yA(4,"async"),_D(5,"tm-certified-pre-owned-badge")(6,"tm-markdown",6,1),yA(8,"async"),yA(9,"async"),yA(10,"async"),iD(11,mh,6,7,"button",7),yA(12,"async"),bf$1()),n&2){let C;X_$1(3),TD("ngIf",DA$1(4,6,l.hasDescription$)),X_$1(3),zD("tm-motors-listing-description__text--compact",DA$1(8,8,l.compact$)),TD("disableLinks",DA$1(9,10,l.shouldDisableLinks$))("text",(C=DA$1(10,12,l.listing$))==null?null:C.body),X_$1(5),TD("ngIf",DA$1(12,14,l.isDescriptionTooLong$));}},dependencies:[mO,S$1,He,we,u0,bO],styles:['tm-motors-listing-description[_nghost-%COMP%]{display:block}.tm-motors-listing-description[_ngcontent-%COMP%]{display:grid}.tm-motors-listing-description__title[_ngcontent-%COMP%]{margin-bottom:8px}.tm-motors-listing-body__item[_ngcontent-%COMP%]{order:5;margin-bottom:24px}.tm-motors-listing-body__item[_ngcontent-%COMP%]   .o-input__body-text-area-element[_ngcontent-%COMP%]{max-width:857px}.tm-motors-listing-body__item-show-more-button[_ngcontent-%COMP%]{width:auto;padding-right:0;padding-left:0;margin-right:auto;margin-bottom:0;font-size:1rem;font-weight:400}.tm-motors-listing-description__text[_ngcontent-%COMP%]{position:relative;overflow:hidden;max-height:100%}.tm-motors-listing-description__text[_ngcontent-%COMP%]:after{content:none}.tm-motors-listing-description__text--compact[_ngcontent-%COMP%]{max-height:200px}.tm-motors-listing-description__text--%NS%compact[_ngcontent-%COMP%]:after{position:absolute;right:0;bottom:0;left:0;display:block;height:48px;background:linear-gradient(to bottom,#fff0,#fff);content:"";pointer-events:none}@media(max-width:767px){[_nghost-%COMP%]     .o-list2--bullet{padding-right:9px}}']});let e=i;return e})();var Ra=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,x$1,He,we,we,f0]});let e=i;return e})();function ph(e,i){if(e&1&&(Ia$1(0,"span",2),Qx$1(1," Page views: "),Ia$1(2,"strong"),Qx$1(3),yA(4,"async"),bf$1()()),e&2){let o=yx$1();X_$1(3),rE(DA$1(4,1,o.views$));}}var Na=(()=>{let i=class i{constructor(t){this._listingFacade=t;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.views$=this.listing$.pipe(Fe(t=>t.viewCount)),this.id$=this.listing$.pipe(Fe(t=>t.listingId));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-id-views"]],standalone:false,decls:7,vars:9,consts:[["class","tm-listing-id-views__views",4,"ngIf"],[3,"listingId"],[1,"tm-listing-id-views__views"]],template:function(n,l){n&1&&(iD(0,ph,5,3,"span",0),yA(1,"async"),Ia$1(2,"span"),Qx$1(3),yA(4,"async"),bf$1(),_D(5,"tm-community-watch",1),yA(6,"async")),n&2&&(TD("ngIf",DA$1(1,3,l.views$)),X_$1(3),Af$1(" Listing #",DA$1(4,5,l.id$)," "),X_$1(2),TD("listingId",DA$1(6,7,l.id$)));},dependencies:[mO,jt,bO],styles:['@charset "UTF-8";tm-listing-id-views[_nghost-%COMP%]{display:block;text-align:center}@media(min-width:480px){.tm-listing-id-views__views[_ngcontent-%COMP%]{display:inline-block}.tm-listing-id-views__views[_ngcontent-%COMP%]:after{padding-right:8px;padding-left:8px;content:"\\2022"}}']});let e=i;return e})();var lo=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Gt$1]});let e=i;return e})();
11function gh(e,i){if(e&1&&(Ia$1(0,"div",13),Qx$1(1),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),Af$1(" ",o.litresPer100Km,"L / 100km ");}}function _h(e,i){if(e&1&&(Ia$1(0,"div",14),Qx$1(1," Annual fuel cost of "),Ia$1(2,"strong"),Qx$1(3),yA(4,"tgCurrency"),bf$1()()),e&2){let o=yx$1().ngIf;X_$1(3),rE(DA$1(4,1,o.annualCost));}}function uh(e,i){if(e&1&&(Ia$1(0,"p"),Qx$1(1),bf$1()),e&2){let o=yx$1(2).ngIf;X_$1(),Af$1("",o.litresPer100Km,"L / 100km");}}function fh(e,i){if(e&1&&(Ia$1(0,"p"),Qx$1(1),yA(2,"tgCurrency"),bf$1()),e&2){let o=yx$1(2).ngIf;X_$1(),oE(" This vehicle has an estimated fuel cost per year of ",DA$1(2,2,o.annualCost),". ",o.disclaimer," ");}}function hh(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",15),kD("close",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.hideFuelEconomyModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.hideFuelEconomyModal())}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Energy economy"),bf$1()(),Ia$1(4,"tg-modal-body"),iD(5,uh,2,1,"p",2)(6,fh,3,4,"p",2),Ia$1(7,"p"),Qx$1(8," Energy economy information is based on World Harmonised Light Vehicles Test Procedure 3 Phase (3P WLTP) standardised data which allows consumers to directly compare the emissions and energy economy of different vehicle makes and models. Actual figures may vary due to many factors including individual driving styles, traffic and weather conditions, vehicle loading, vehicle maintenance and tyre pressures. "),bf$1(),Ia$1(9,"p"),Qx$1(10," Check out the "),Ia$1(11,"a",16),Qx$1(12,"Rightcar Website"),bf$1(),Qx$1(13," for more information about energy economy. "),bf$1()()();}if(e&2){let o=yx$1().ngIf;X_$1(5),TD("ngIf",o.litresPer100Km),X_$1(),TD("ngIf",o.disclaimer&&o.annualCost);}}function Ch(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",5)(1,"div",6)(2,"div",7),Qx$1(3," Energy economy "),Ia$1(4,"tg-icon",8),kD("click",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.showFuelEconomyModal())}),bf$1()(),_D(5,"tm-listing-ratings-star",9),bf$1(),iD(6,gh,2,1,"div",10)(7,_h,5,3,"div",11)(8,hh,14,2,"tg-modal",12),bf$1();}if(e&2){let o=i.ngIf,t=yx$1(3);X_$1(5),TD("ratingMax",o.ratingMax)("rating",o.rating),X_$1(),TD("ngIf",o.litresPer100Km),X_$1(),TD("ngIf",o.annualCost),X_$1(),TD("ngIf",t.fuelEconomyModalIsVisible);}}function vh(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",15),kD("close",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.hideSafetyRatingModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.hideSafetyRatingModal())}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Safety Ratings"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"p"),Qx$1(6," Safety ratings indicate the likely performance of your vehicle in a crash \u2013 the more stars, the safer the vehicle. "),bf$1(),Ia$1(7,"div"),Qx$1(8,"Your vehicle will have one of the following vehicle safety ratings:"),bf$1(),Ia$1(9,"ul",18)(10,"li"),Qx$1(11,"Australasian New Car Assessment Program (ANCAP)"),bf$1(),Ia$1(12,"li"),Qx$1(13,"Used car safety ratings (UCSR)"),bf$1(),Ia$1(14,"li"),Qx$1(15,"Vehicle safety risk ratings (VSRR)"),bf$1()(),Ia$1(16,"h3"),Qx$1(17,"ANCAP rating"),bf$1(),Ia$1(18,"p"),Qx$1(19," ANCAP ratings are based on lab crash test data and can only be compared to similar vehicles tested under the same protocols (year of rating). ANCAP tests assess adult and child occupant protection, vulnerable road user protection and crash avoidance technology. "),bf$1(),Ia$1(20,"h3"),Qx$1(21,"UCSR rating"),bf$1(),Ia$1(22,"p"),Qx$1(23," UCSR ratings assess the safety of vehicles already in the market. Ratings are based on real-world crash statistics of this specific make and model. This rating indicates how well the vehicle will protect its occupants and other road users in comparison to all other light vehicles on New Zealand roads. "),bf$1(),Ia$1(24,"h3"),Qx$1(25,"VSRR rating"),bf$1(),Ia$1(26,"p"),Qx$1(27," VSRR ratings are estimates based on real-world crash statistics of similar vehicles from the same year of manufacture. This rating estimates how well the vehicle will protect its occupants and other road users in comparison to all other light vehicles on New Zealand roads. "),bf$1(),Ia$1(28,"p"),Qx$1(29," Check out the "),Ia$1(30,"a",19),Qx$1(31," Rightcar website "),bf$1(),Qx$1(32," for more information about safety ratings. "),bf$1()()();}}function yh(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",5)(1,"div",6)(2,"div",7),Qx$1(3," Overall safety "),Ia$1(4,"tg-icon",17),kD("click",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.showSafetyRatingModal())}),bf$1()(),_D(5,"tm-listing-ratings-star",9),bf$1(),Ia$1(6,"div",14),Qx$1(7),bf$1(),iD(8,vh,33,0,"tg-modal",12),bf$1();}if(e&2){let o=i.ngIf,t=yx$1(3);X_$1(5),TD("ratingMax",o.ratingMax)("rating",o.rating),X_$1(2),Af$1(" ",o.disclaimer," "),X_$1(),TD("ngIf",t.safetyRatingModalIsVisible);}}
11function xh(e,i){if(e&1&&(Ia$1(0,"div",22),Qx$1(1),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),Af$1(" ",o.co2Text," ");}}function bh(e,i){if(e&1&&(Ia$1(0,"p")(1,"strong"),Qx$1(2),bf$1()()),e&2){let o=yx$1(2).ngIf;X_$1(2),rE(o.co2Text);}}function Mh(e,i){if(e&1&&(Ia$1(0,"p"),Qx$1(1," This vehicle emits an estimated "),Ia$1(2,"b"),Qx$1(3),yA(4,"number"),bf$1(),Qx$1(5," of carbon dioxide (CO2) gas based on an average driving distance of 14,000 km per year. "),bf$1()),e&2){let o=yx$1(2).ngIf;X_$1(3),Af$1("",EA(4,1,o.yearlyCo2,"1.2")," tonnes/year");}}function Sh(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",15),kD("close",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.hideCo2EmissionsModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.hideCo2EmissionsModal())}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Carbon emissions"),bf$1()(),Ia$1(4,"tg-modal-body"),iD(5,bh,3,1,"p",2)(6,Mh,6,4,"p",2),Ia$1(7,"p"),Qx$1(8," Carbon dioxide emissions information is based on World Harmonised Light Vehicle Test Procedure 3 Phase (3P WLTP) standardised data which allows consumers to directly compare the emissions and energy economy of different vehicle makes and models. Actual figures may vary due to many factors including individual driving styles, traffic and weather conditions, vehicle loading, vehicle maintenance and tyre pressures. "),bf$1(),Ia$1(9,"p"),Qx$1(10," Check out the "),Ia$1(11,"a",23),Qx$1(12," Rightcar website "),bf$1(),Qx$1(13," for more information about vehicle emissions and energy economy. "),bf$1()()();}if(e&2){let o=yx$1().ngIf;X_$1(5),TD("ngIf",o.co2Text),X_$1(),TD("ngIf",o.yearlyCo2>0);}}function wh(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",5)(1,"div",6)(2,"div",7),Qx$1(3," Carbon emissions "),Ia$1(4,"tg-icon",20),kD("click",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.showCo2EmissionsModal())}),bf$1()(),_D(5,"tm-listing-ratings-star",9),bf$1(),iD(6,xh,2,1,"div",21)(7,Sh,14,2,"tg-modal",12),bf$1();}if(e&2){let o=i.ngIf,t=yx$1(3);X_$1(5),TD("ratingMax",o.ratingMax)("rating",o.co2Stars),X_$1(),TD("ngIf",o.co2Text),X_$1(),TD("ngIf",t.co2EmissionsModalIsVisible);}}function kh(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",15),kD("close",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.hideDriverSafetyModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.hideDriverSafetyModal())}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Driver Safety"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"p"),Qx$1(6," A driver safety rating is based on real-world crash data. It considers how often drivers have been seriously or fatally injured in a crash, when driving a specific make and model. It measures your relative safety driving a vehicle, compared to other vehicles in the New Zealand and Australian fleet. The driver safety rating can be used for all occupants when there are passengers in a vehicle. "),bf$1()()();}}function Ih(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",5)(1,"div",6)(2,"div",7),Qx$1(3," Driver Safety "),Ia$1(4,"tg-icon",24),kD("click",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.showDriverSafetyModal())}),bf$1()(),_D(5,"tm-listing-ratings-star",9),bf$1(),Ia$1(6,"div",14),Qx$1(7),bf$1(),iD(8,kh,7,0,"tg-modal",12),bf$1();}if(e&2){let o=i.ngIf,t=yx$1(3);X_$1(5),TD("ratingMax",o.ratingMax)("rating",o.rating),X_$1(2),Af$1(" ",o.disclaimer," "),X_$1(),TD("ngIf",t.driverSafetyModalIsVisible);}}function Th(e,i){if(e&1&&(Mf(0),Ia$1(1,"h2"),Qx$1(2,"Ratings"),bf$1(),Ia$1(3,"div",3),iD(4,Ch,9,5,"div",4)(5,yh,9,4,"div",4)(6,wh,8,4,"div",4)(7,Ih,9,4,"div",4),bf$1(),Ja$2()),e&2){let o=yx$1().ngIf;X_$1(4),TD("ngIf",o.fuelEconomy),X_$1(),TD("ngIf",o.safety),X_$1(),TD("ngIf",o.co2Emissions),X_$1(),TD("ngIf",o.driverSafety);}}function Oh(e,i){if(e&1&&(Ia$1(0,"div",1),iD(1,Th,8,4,"ng-container",2),bf$1()),e&2){let o=i.ngIf;X_$1(),TD("ngIf",o.fuelEconomy||o.safety||o.co2Emissions);}}var ja=(()=>{let i=class i{constructor(t,n){this._motorsListingFacade=t,this._listingFacade=n;}ngOnInit(){this.motorsListing$=this._motorsListingFacade.getListingDetails().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.listing$=this._listingFacade.getCurrentListing(
11).pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.fuelEconomyBadgeTitle$=this.listing$.pipe(Fe(t=>t.title)),this.showListingRatings$=this.listing$.pipe(Fe(t=>t.newCarInformation?.availability!==L$2.availableToOrder)),this.carStatistics$=this.motorsListing$.pipe(Xt(t=>!!t.carStatistics),Fe(t=>t.carStatistics));}showFuelEconomyModal(){this.fuelEconomyModalIsVisible=true;}hideFuelEconomyModal(){this.fuelEconomyModalIsVisible=false;}showSafetyRatingModal(){this.safetyRatingModalIsVisible=true;}hideSafetyRatingModal(){this.safetyRatingModalIsVisible=false;}showCo2EmissionsModal(){this.co2EmissionsModalIsVisible=true;}hideCo2EmissionsModal(){this.co2EmissionsModalIsVisible=false;}showDriverSafetyModal(){this.driverSafetyModalIsVisible=true;}hideDriverSafetyModal(){this.driverSafetyModalIsVisible=false;}};i.\u0275fac=function(n){return new(n||i)(R$2(Kt$1),R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-ratings"]],standalone:false,decls:3,vars:5,consts:[["class","tm-listing-ratings",4,"ngIf"],[1,"tm-listing-ratings"],[4,"ngIf"],[1,"tm-motors-listing-ratings__container"],["bordered","","class","tm-motors-listing-ratings__rating-card",4,"ngIf"],["bordered","",1,"tm-motors-listing-ratings__rating-card"],[1,"tm-motors-listing-ratings__card-top-section"],[1,"tm-motors-listing-ratings__title"],["alt","Information about fuel economy","name","basic-question-framed","size","small",1,"tm-motors-listing-ratings__info-icon",3,"click"],[3,"ratingMax","rating"],["class","tm-motors-listing-ratings__fuel",4,"ngIf"],["class","tm-motors-listing-ratings__description",4,"ngIf"],[3,"close","tmOnNavigation",4,"ngIf"],[1,"tm-motors-listing-ratings__fuel"],[1,"tm-motors-listing-ratings__description"],[3,"close","tmOnNavigation"],["href","https://rightcar.govt.nz/fuel-economy","target","_blank"],["alt","Information about safety ratings","name","basic-question-framed","size","small",1,"tm-motors-listing-ratings__info-icon",3,"click"],["tgList2","","type","bullet"],["href","https://rightcar.govt.nz/safety-ratings","target","_blank"],["alt","Information about carbon emissions","name","basic-question-framed","size","small",1,"tm-motors-listing-ratings__info-icon",3,"click"],["class","tm-motors-listing-ratings__carbon",4,"ngIf"],[1,"tm-motors-listing-ratings__carbon"],["href","https://rightcar.govt.nz/environmental-ratings#carbon-emissions","target","_blank"],["alt","Information about driver safety","name","basic-question-framed","size","small",1,"tm-motors-listing-ratings__info-icon",3,"click"]],template:function(n,l){n&1&&(iD(0,Oh,2,1,"div",0),yA(1,"async"),yA(2,"async")),n&2&&TD("ngIf",DA$1(1,1,l.showListingRatings$)&&DA$1(2,3,l.carStatistics$));},dependencies:[mO,Ne,Hr,jb$1,Lb$1,we,Ob$1,bO,FO,mr],styles:["tm-listing-ratings[_nghost-%COMP%]{display:block}.tm-listing-ratings[_ngcontent-%COMP%]{margin-bottom:32px}.tm-motors-listing-ratings__container[_ngcontent-%COMP%]{display:grid;gap:16px 16px;grid-template-columns:1fr}@media(min-width:1024px){.tm-motors-listing-ratings__container[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}.tm-motors-listing-ratings__rating-card[_ngcontent-%COMP%]{display:flex;flex:1 1 100%;flex-flow:row wrap;padding:16px;border:1px solid #e8e6e3;border-radius:8px}@media(min-width:1024px){.tm-motors-listing-ratings__rating-card[_ngcontent-%COMP%]{flex:1 1 50%}}.tm-motors-listing-ratings__card-top-section[_ngcontent-%COMP%]{display:inline-block;width:100%;margin-bottom:16px}@media(min-width:1024px){.tm-motors-listing-ratings__card-top-section[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}}.tm-motors-listing-ratings__title[_ngcontent-%COMP%]{font-weight:700}.tm-motors-listing-ratings__info-icon[_ngcontent-%COMP%]{margin-left:4px;color:#007acd;
11cursor:pointer}.tm-motors-listing-ratings__fuel[_ngcontent-%COMP%], .tm-motors-listing-ratings__carbon[_ngcontent-%COMP%]{width:100%;font-size:.875rem;font-weight:700}.tm-motors-listing-ratings__description[_ngcontent-%COMP%]{width:100%;margin-top:auto;color:#76716d;font-size:.875rem}.tm-motors-listing-ratings__fuel-badge-title[_ngcontent-%COMP%]{font-weight:700;text-transform:capitalize}"]});let e=i;return e})();var Ua=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,je,_c,Hb$1,we,Ob$1]});let e=i;return e})();var Eh=e=>({"tm-motors-listing-review__title--no-margin":e});function Ph(e,i){if(e&1&&_D(0,"tm-listing-ratings-star",6),e&2){let o=yx$1().ngIf;TD("ratingDisplay",true)("ratingMax",o.ratingMax)("rating",o.rating);}}function Dh(e,i){if(e&1&&(Ia$1(0,"div",1)(1,"a",2)(2,"div",3),Qx$1(3,"Expert Review"),bf$1(),Ia$1(4,"h3",4),Qx$1(5),bf$1(),iD(6,Ph,1,3,"tm-listing-ratings-star",5),bf$1()()),e&2){let o=i.ngIf;X_$1(),TD("href",o.uRL,Ry$1),X_$1(3),TD("ngClass",pA(4,Eh,!o.rating)),X_$1(),Af$1(" ",o.title," "),X_$1(),TD("ngIf",o.rating);}}var x0=(()=>{let i=class i{constructor(t){this._motorsListingFacade=t;}ngOnInit(){this.motorsListing$=this._motorsListingFacade.getListingDetails().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.review$=this.motorsListing$.pipe(Xt(t=>!!t.carStatistics),Fe(t=>t.carStatistics.review));}};i.\u0275fac=function(n){return new(n||i)(R$2(Kt$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-review"]],standalone:false,decls:2,vars:3,consts:[["class","tm-listing-review",4,"ngIf"],[1,"tm-listing-review"],["target","_blank",1,"tm-motors-listing-review__card",3,"href"],[1,"tm-motors-listing-review__header","p-secondary-copy"],[3,"ngClass"],[3,"ratingDisplay","ratingMax","rating",4,"ngIf"],[3,"ratingDisplay","ratingMax","rating"]],template:function(n,l){n&1&&(iD(0,Dh,7,6,"div",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.review$));},dependencies:[pO,mO,Ne,bO],styles:["tm-listing-review[_nghost-%COMP%]{display:block}.tm-listing-review[_ngcontent-%COMP%]{display:grid;padding-right:56px;padding-bottom:56px;border:1px solid #d7d5d2;border-radius:6px;row-gap:8px}.tm-motors-listing-review__card[_ngcontent-%COMP%]{padding:16px;border-radius:8px;text-decoration:none}.tm-motors-listing-review__header[_ngcontent-%COMP%]{margin-bottom:8px;color:#5f6f88;font-weight:500}.tm-motors-listing-review__title--no-margin[_ngcontent-%COMP%]{margin-bottom:0}"]});let e=i;return e})();var Wa=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we,je,X_]});let e=i;return e})();function qa(e){let i=e.title,o=e.attributes?.find(n=>n.name==="model_detail")?.value;if(!o)return i;let t=i.lastIndexOf(o.substring(0,10));return t<=0?i:i.substring(0,t)}function Bh(e,i){if(e&1&&(Ia$1(0,"span",5),Qx$1(1),bf$1()),e&2){let o=i.ngIf;X_$1(),Af$1(" ",o," ");}}function Fh(e,i){if(e&1&&(Ia$1(0,"div",6),Qx$1(1),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),Af$1(" ",o.subtitle," ");}}function Vh(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",1)(2,"h1",2),Qx$1(3),yA(4,"async"),iD(5,Bh,2,1,"span",3),yA(6,"async"),bf$1(),iD(7,Fh,2,1,"div",4),bf$1(),Ja$2()),e&2){let o=i.ngIf,t=yx$1();X_$1(3),Af$1(" ",DA$1(4,3,t.title$)," "),X_$1(2),TD("ngIf",DA$1(6,5,t.modelDetail$)),X_$1(2),TD("ngIf",o.subtitle);}}var Ha=(()=>{let i=class i{constructor(t){this._listingFacade=t;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.title$=this.listing$.pipe(Xt(t=>!!t&&!!t.attributes),Fe(t=>qa(t))),this.modelDetail$=this.listing$.pipe(Xt(t=>!!t&&!!t.attributes),Fe(t=>this.getModelDetail(t)));}getModelDetail(t){return (t.attributes.find(l=>l.name==="model_detail")||{value:""}).value}};i.\u0275fac=function(n){return new(n||i)(R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-title"]],standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],[1,"tm-motors-listing__title-container"],[1,"tm-motors-listing__title"],["class","tm-motors-listing-title__model-detail",4,"ngIf"],["class","p-lead-copy",4,"ngIf"],[1,"tm-motors-listing-title__model-detail"],[1,"p-lead-copy"]],template:function(n,l){n&1&&(iD(0,Vh,8,7,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));},dependencies:[mO,bO],styles:[".tm-motors-listing__title[_ngcontent-%COMP%]{margin-bottom:4px}.tm-motors-listing-title__model-detail[_ngcontent-%COMP%]{font-weight:400}.tm-motors-listing__title-container[_ngcontent-%COMP%]{margin-bottom:24px}"]});let e=i;return e})();var za=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO]});let e=i;return e})();function Ah(e,i){e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-primary"),Qx$1(2," Contact seller to arrange payment "),bf$1()());}function $h(e,i){e&1&&(Ia$1(0,"tg-rack-item"),_D(1,"tg-rack-item-prefix"),Ia$1(2,"tg-rack-item-primary"),Qx$1(3," Pay Now by credit card "),bf$1()());}function Rh(e,i){e&1&&(Ia$1(0,"tg-rack-item-primary"),Qx$1(1," Also available "),bf$1());}function Nh(e,i){e&1&&(Ia$1(0,"tg-rack-item-primary"),Qx$1(1," Seller accepts "),bf$1());}
11function jh(e,i){if(e&1&&(Ia$1(0,"tg-rack-item"),iD(1,Rh,2,0,"tg-rack-item-primary",1)(2,Nh,2,0,"tg-rack-item-primary",1),Ia$1(3,"tg-rack-item-secondary"),Qx$1(4),bf$1()()),e&2){let o=yx$1();X_$1(),TD("ngIf",o.listing?.hasPayNow),X_$1(),TD("ngIf",!o.listing?.hasPayNow),X_$1(2),Af$1(" ",o.otherPaymentOptions," ");}}var M0=(()=>{let i=class i{constructor(){this.hasOtherPaymentOptions=false;}ngOnChanges(t){t.listing&&this.setOtherPaymentOptions();}setOtherPaymentOptions(){if(this.listing&&this.listing.paymentOptions){let t=this.nonPayNowOptions();this.hasOtherPaymentOptions=t.length>0,this.otherPaymentOptions=t.join(", ");}}nonPayNowOptions(){let n="Pay Now",l=this.listing.paymentOptions.split(", ");if(l.includes(n)){let C=l.indexOf(n,0);l.splice(C,1);}return l}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-payment-options"]],inputs:{listing:"listing"},standalone:false,features:[Zr],decls:4,vars:3,consts:[["ruled",""],[4,"ngIf"]],template:function(n,l){n&1&&(Ia$1(0,"tg-rack",0),iD(1,Ah,3,0,"tg-rack-item",1)(2,$h,4,0,"tg-rack-item",1)(3,jh,5,3,"tg-rack-item",1),bf$1()),n&2&&(X_$1(),TD("ngIf",!l.listing?.hasPayNow&&!l.hasOtherPaymentOptions),X_$1(),TD("ngIf",l.listing?.hasPayNow),X_$1(),TD("ngIf",l.otherPaymentOptions));},dependencies:[mO,zc,zo,Gc,Hc,db$1],encapsulation:2});let e=i;return e})();var S0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Ar]});let e=i;return e})();var Wh="PremiumLDP",qh="motors_boost_end_date",qe=(()=>{let i=class i{isPremium(t){return t.dealership?.product===Wh}isListingAuthor(t,n){return !!(t.member&&n&&t.member.memberId===n.memberId)}isAuction(t){return !(t&&t.isClassified)}isClassified(t){return !!(t&&t.isClassified)}isBoosted(t){let n=t?.attributes?.find(l=>
11l.name===qh)?.value;return !!n&&r$3(G$3(n))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();function zh(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",1)(2,"h2"),Qx$1(3,"Shipping & pick-up options"),bf$1(),_D(4,"tm-listing-shipping-details",2),bf$1(),Ia$1(5,"div",3)(6,"h3"),Qx$1(7,"Payment options"),bf$1(),_D(8,"tm-payment-options",2),bf$1(),Ja$2()),e&2){let o=i.ngIf;X_$1(4),TD("listing",o),X_$1(4),TD("listing",o);}}var Ga=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._motorsListingService=n;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.isAuction$=this.listing$.pipe(Fe(t=>this._motorsListingService.isAuction(t)));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(qe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-payment-pricing"]],standalone:false,decls:3,vars:5,consts:[[4,"ngIf"],[1,"tm-payment-pricing__shipping-options"],[3,"listing"],[1,"tm-payment-pricing__payment-options"]],template:function(n,l){n&1&&(iD(0,zh,9,2,"ng-container",0),yA(1,"async"),yA(2,"async")),n&2&&TD("ngIf",DA$1(2,3,DA$1(1,1,l.isAuction$)&&l.listing$));},dependencies:[mO,M0,ja$1,bO],styles:["tm-payment-pricing[_nghost-%COMP%]{display:block}.tm-payment-pricing__shipping-options[_ngcontent-%COMP%], .tm-payment-pricing__payment-options[_ngcontent-%COMP%]{margin-bottom:48px}"]});let e=i;return e})();var Ka=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,S0,tr]});let e=i;return e})();var Gh=["review"];function Kh(e,i){e&1&&(Ia$1(0,"h2"),Qx$1(1,"More model information"),bf$1());}var Za=(()=>{let i=class i{constructor(t){this._changeDetection=t,this.shouldShowMoreModelInfoSection=false;}ngAfterViewChecked(){this.reviewElement.nativeElement.childElementCount!==0&&(this.shouldShowMoreModelInfoSection=true,this._changeDetection.markForCheck());}};i.\u0275fac=function(n){return new(n||i)(R$2(mc$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-reviews-new-car-entry-point"]],viewQuery:function(n,l){if(n&1&&jD(Gh,5,xt),n&2){let C;Cx$1(C=wx$1())&&(l.reviewElement=C.first);}},standalone:false,decls:4,vars:1,consts:[["review",""],[4,"ngIf"],[1,"tm-reviews-new-car-entry-point__container"]],template:function(n,l){n&1&&(iD(0,Kh,2,0,"h2",1),Ia$1(1,"div",2),_D(2,"tm-listing-review",null,0),bf$1()),n&2&&TD("ngIf",l.shouldShowMoreModelInfoSection);},dependencies:[mO,x0],styles:["tm-reviews-new-car-entry-point[_nghost-%COMP%]{display:block}.tm-reviews-new-car-entry-point__container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:24px}@media(min-width:480px){.tm-reviews-new-car-entry-point__container[_ngcontent-%COMP%]{flex-wrap:nowrap}}h2[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:16px}"]});let e=i;return e})();var Ya=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Wa]});let e=i;return e})();var $i=(()=>{let i=class i{canEmailSeller(t){return !!t&&t.isClassified}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();function Qh(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-modal",6),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showDealerContactModal=false)}),bf$1();}if(e&2){let o=yx$1().ngIf,t=yx$1();TD("gtmLocation",rA(t.gtmLocation))("dealership",o);}}function Jh(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"button",3),yA(2,"async"),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.showDealerContactModal=true)}),_D(3,"tg-icon-left",4),Qx$1(4," Call "),bf$1(),iD(5,Qh,1,3,"tm-contact-modal",5),Ja$2();}if(e&2){let o=yx$1();X_$1(),TD("trackingId",o.dealerContactDetailsButtonClickTrackingId)("data",DA$1(2,3,o.gtmData$)),X_$1(4),TD("ngIf",o.showDealerContactModal);}}function Xh(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",8),kD("click",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.showPhoneNumbers=true)}),_D(1,"tg-icon-left",9),Qx$1(2," Contact details "),bf$1();}}
11function eC(e,i){if(e&1&&(Ia$1(0,"a",10),yA(1,"tmPhoneNumberLink"),_D(2,"tg-icon-left",11),Qx$1(3),yA(4,"tmPhoneNumber"),bf$1()),e&2){let o=yx$1().ngIf;TD("href",DA$1(1,2,o.phoneNumber),Ry$1),X_$1(3),Af$1(" ",EA(4,4,o.phoneNumber,o.isMobile?"mobile":"landline")," ");}}function tC(e,i){if(e&1&&(Mf(0),iD(1,Xh,3,0,"button",7)(2,eC,5,7,"ng-template",null,0,wA),Ja$2()),e&2){let o=Tx$1(3),t=yx$1(2);X_$1(),TD("ngIf",!t.showPhoneNumbers)("ngIfElse",o);}}function iC(e,i){if(e&1&&(Mf(0),iD(1,tC,4,2,"ng-container",1),yA(2,"async"),Ja$2()),e&2){let o=yx$1();X_$1(),TD("ngIf",DA$1(2,1,o.phoneNumber$));}}function nC(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",15),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showEmailModal=false)})("consumerFinanceOptedIn",function(n){Xh$1(o);let l=yx$1(2);return eg$1(l.toggleConsumerFinanceModal(n))}),bf$1();}}function oC(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"button",12),yA(2,"async"),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.showEmailModal=true)}),_D(3,"tg-icon-left",13),Qx$1(4," Email "),bf$1(),iD(5,nC,1,0,"tm-contact-seller-modal",14),Ja$2();}if(e&2){let o=yx$1();X_$1(),TD("trackingId",o.dealerEmailTheDealerButtonClickTrackingId)("data",DA$1(2,3,o.gtmData$)),X_$1(4),TD("ngIf",o.showEmailModal);}}function rC(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-driva-offer-modal",16),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.toggleConsumerFinanceModal(false))}),bf$1();}}var Ja=(()=>{let i=class i{constructor(t,n,l,C,I){this._listingFacade=t,this._contactSellerService=n,this.currentMemberFacade=l,this._routerFacade=C,this._motorsGtmService=I,this._transitionEnabled=true,this.gtmLocation="sticky_footer",this._destroyed$=new W$1,this.dealerContactDetailsButtonClickTrackingId=W$4,this.dealerEmailTheDealerButtonClickTrackingId=U$1;}ngOnDestroy(){this._destroyed$.next();}ngOnInit(){this._transitionEnabled=true,this._routerFacade.hasPreviousRouteFeature().pipe(Xp(this._destroyed$)).subscribe(t=>{t||(this._transitionEnabled=false);}),this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.dealership$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!!t.item.dealership),Fe(t=>t.item.dealership),o()),this.phoneNumber$=this.listing$.pipe(Xt(t=>!!t.contactDetails&&!t.dealership),Fe(t=>this.getPhoneNumber(t))),this.canSendEmail$=this.listing$.pipe(Fe(t=>this._contactSellerService.canEmailSeller(t))),this.gtmData$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click",this.gtmLocation);}getPhoneNumber(t){return t.contactDetails.mobilePhoneNumber?{phoneNumber:t.contactDetails.mobilePhoneNumber,isMobile:true}:t.contactDetails.phoneNumber?{phoneNumber:t.contactDetails.phoneNumber,isMobile:false}:null}toggleConsumerFinanceModal(t){this.showConsumerFinanceModal=t;}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2($i),R$2(E),R$2(D),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sticky-contact-footer"]],hostVars:4,hostBindings:function(n,l){n&2&&zD("visible",l.isVisible)("tm-sticky-contact-footer__transition",l._transitionEnabled);},inputs:{isVisible:"isVisible",gtmLocation:"gtmLocation"},standalone:false,decls:7,vars:10,consts:[["phoneNumberDisplay",""],[4,"ngIf"],[3,"close",4,"ngIf"],["tgButton2","","fullWidth","","tmTrackCustomClick","",1,"tm-sticky-contact-footer__button--white","tm-sticky-contact-footer__button",3,"click","trackingId","data"],["alt","Phone","name","phone",1,"tm-sticky-contact-footer__icon"],[3,"dealership","gtmLocation","close",4,"ngIf"],[3,"close","dealership","gtmLocation"],["class","tm-sticky-contact-footer__button--white tm-sticky-contact-footer__button","tgButton2","","fullWidth","",3,"click",4,"ngIf","ngIfElse"],["tgButton2","","fullWidth","",1,"tm-sticky-contact-footer__button--white","tm-sticky-contact-footer__button",3,"click"],["alt","Call","name","phone",1,"tm-sticky-contact-footer__icon"],["tgButton2","","fullWidth","",1,"tm-sticky-contact-footer__button--white","tm-sticky-contact-footer__button","tm-sticky-contact-footer__button--link",3,"href"],["alt","Phone","name","phone",1,"tm-sticky-contact-footer__icon","tm-sticky-contact-footer__icon--hide-sd"],["fullWidth","","tgButton2","","tgStyle","primary","tmTrackCustomClick","",1,"tm-sticky-contact-footer__button",3,"click","trackingId","data"],["alt","Email","name","mail"],[3,"close","consumerFinanceOptedIn",4,"ngIf"],[3,"close","consumerFinanceOptedIn"],[3,"close"]],template:function(n,l){n&1&&(iD(0,Jh,6,5,"ng-container",1),yA(1,"async"),iD(2,iC,3,3,"ng-container",1),yA(3,"async"),iD(4,oC,6,5,"ng-container",1),yA(5,"async"),iD(6,rC,1,0,"tm-driva-offer-modal",2)),n&2&&(TD("ngIf",DA$1(1,4,l.dealership$)),X_$1(2),TD("ngIf",DA$1(3,6,l.isLoggedIn$)),X_$1(2),TD("ngIf",DA$1(5,8,l.canSendEmail$)),X_$1(2),TD("ngIf",l.showConsumerFinanceModal));},dependencies:[mO,He,we,Ce,rh$1,H0$1,p,bO,E$2,c],styles:["tm-sticky-contact-footer[_nghost-%COMP%]{position:fixed;z-index:7000;bottom:-56px;display:flex;width:100%;box-shadow:0 -4px 4px #dadada}tm-sticky-contact-footer.visible[_nghost-%COMP%]{bottom:0}@media print{tm-sticky-contact-footer[_nghost-%COMP%]{display:none}}.tm-sticky-contact-footer__transition[_nghost-%COMP%]{transition:bottom .25s ease-out!important}.tm-sticky-contact-footer__button[_ngcontent-%COMP%]{display:flex;height:56px;align-items:center;justify-content:center;padding:0;margin-bottom:0;border-radius:0;font-size:.875rem;font-weight:400}
11.tm-sticky-contact-footer__button--white[_ngcontent-%COMP%]{background:#fff}.tm-sticky-contact-footer__button--%NS%white[_ngcontent-%COMP%]:hover{background:#f7f7f7}.tm-sticky-contact-footer__button--%NS%link[_ngcontent-%COMP%]:visited{color:#006ebd}.tm-sticky-contact-footer__icon[_ngcontent-%COMP%]{bottom:0}@media(max-width:479px){.tm-sticky-contact-footer__icon--hide-sd[_ngcontent-%COMP%]{display:none}}"]});let e=i;return e})();var Xa=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,we,we,g$2,Ee,Ja$1,Ho,un,g]});let e=i;return e})();function aC(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",3),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showPhoneNumbers=true)}),_D(1,"tg-icon",4),Qx$1(2," Contact details "),bf$1();}}function sC(e,i){if(e&1&&(Ia$1(0,"a",5),yA(1,"tmPhoneNumberLink"),_D(2,"tg-icon",6),Qx$1(3),yA(4,"tmPhoneNumber"),bf$1()),e&2){let o=yx$1().ngIf;TD("href",DA$1(1,2,o.phoneNumber),Ry$1),X_$1(3),Af$1(" ",EA(4,4,o.phoneNumber,o.isMobile?"mobile":"landline")," ");}}function lC(e,i){if(e&1&&(Mf(0),iD(1,aC,3,0,"button",2)(2,sC,5,7,"ng-template",null,0,wA),Ja$2()),e&2){let o=Tx$1(3),t=yx$1();X_$1(),TD("ngIf",!t.showPhoneNumbers)("ngIfElse",o);}}var T0=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this.currentMemberFacade=n;}ngOnInit(){this.isLoggedIn$=this.currentMemberFacade.isLoggedIn$,this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.phoneNumber$=this.listing$.pipe(Xt(t=>!!t.contactDetails&&!t.dealership),Fe(t=>this.getPhoneNumber(t)));}getPhoneNumber(t){return t.contactDetails.mobilePhoneNumber?{phoneNumber:t.contactDetails.mobilePhoneNumber,isMobile:true}:t.contactDetails.phoneNumber?{phoneNumber:t.contactDetails.phoneNumber,isMobile:false}:null}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(E))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-private-phone-button"]],standalone:false,decls:4,vars:5,consts:[["phoneNumberDisplay",""],[4,"ngIf"],["class","tm-private-phone-button__button","tgButton2","",3,"click",4,"ngIf","ngIfElse"],["tgButton2","",1,"tm-private-phone-button__button",3,"click"],["alt","Call","name","phone"],["tgButton2","",1,"tm-private-phone-button__button","tm-private-phone-button__button--link",3,"href"],["alt","Phone","name","phone"]],template:function(n,l){n&1&&(Mf(0),iD(1,lC,4,2,"ng-container",1),yA(2,"async"),yA(3,"async"),Ja$2()),n&2&&(X_$1(),TD("ngIf",DA$1(3,3,DA$1(2,1,l.isLoggedIn$)&&l.phoneNumber$)));},dependencies:[mO,we,He,bO,E$2,c],styles:[".tm-private-phone-button__button[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:row;align-items:center;justify-content:center;padding-right:14px;padding-left:14px;margin-bottom:0;background-color:transparent;border-radius:0;color:#006ebd;cursor:pointer;font-size:.875rem;font-weight:400}@media(min-width:768px){.tm-private-phone-button__button[_ngcontent-%COMP%]{padding-right:12px;padding-left:12px}}@media(min-width:1024px){.tm-private-phone-button__button[_ngcontent-%COMP%]{min-width:96px;flex-direction:column;padding:0 8px}}@media(min-width:1280px){.tm-private-phone-button__button[_ngcontent-%COMP%]{min-width:112px}}.tm-private-phone-button__button[_ngcontent-%COMP%]:hover{background-color:transparent;color:#3da5eb}.tm-private-phone-button__button-text[_ngcontent-%COMP%]{display:none;margin-left:8px}@media(min-width:768px){.tm-private-phone-button__button-text[_ngcontent-%COMP%]{display:block}}@media(min-width:1024px){.tm-private-phone-button__button-text[_ngcontent-%COMP%]{margin-left:0}}.tm-private-phone-button__button--%NS%link[_ngcontent-%COMP%]:visited{color:#006ebd}tm-private-phone-button[_nghost-%COMP%]{display:block}"]});let e=i;return e})();var O0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we,g$2,He]});let e=i;return e})();function cC(e,i){e&1&&_D(0,"tm-dealer-phone-button",4);}function dC(e,i){e&1&&_D(0,"tm-private-phone-button",5);}function pC(e,i){if(e&1&&(Mf(0)(1,1),yA(2,"async"),iD(3,cC,1,0,"tm-dealer-phone-button",2)(4,dC,1,0,"tm-private-phone-button",3),Ja$2()()),e&2){let o=yx$1();X_$1(),TD("ngSwitch",DA$1(2,3,o.sellerType$)),X_$1(2),TD("ngSwitchCase",o.sellerTypeEnum.dealer),X_$1(),TD("ngSwitchCase",o.sellerTypeEnum.private);}}var es=(function(e){return e[e.dealer=0]="dealer",e[e.private=1]="private",e})(es||{}),E0=(()=>{let i=class i{constructor(t){this._listingFacade=t,this.sellerTypeEnum=es;}
11ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t)),this.sellerType$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item.dealership?es.dealer:es.private));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-contact-button"]],standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],[3,"ngSwitch"],["class","tm-contact-button__phone-button","gtmLocation","sticky_header",4,"ngSwitchCase"],["class","tm-contact-button__phone-button",4,"ngSwitchCase"],["gtmLocation","sticky_header",1,"tm-contact-button__phone-button"],[1,"tm-contact-button__phone-button"]],template:function(n,l){n&1&&(iD(0,pC,5,5,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));},dependencies:[mO,Ip,yO,Kt,T0,bO],styles:["tm-contact-button[_nghost-%COMP%]{display:inline-block}.tm-contact-button__phone-button[_ngcontent-%COMP%]{height:100%}"]});let e=i;return e})();var P0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,Hb$1,Rd,eu,we,g$2,Ee,Tt,O0]});let e=i;return e})();function _C(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",3),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.showModal=false)}),bf$1();}}var D0=(()=>{let i=class i{constructor(t){this._motorsGtmService=t,this.gtmLocation="",this.dealerEmailTheDealerButtonClickTrackingId=U$1;}ngOnInit(){this.gtmData$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click",this.gtmLocation);}};i.\u0275fac=function(n){return new(n||i)(R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-email-button"]],inputs:{gtmLocation:"gtmLocation"},standalone:false,decls:5,vars:5,consts:[["tmFrendClickOverrideBasicMemberForceUpgrade","","tgButton2","","tmTrackCustomClick","",1,"tm-email-button__button",3,"onClickOverride","trackingId","data"],["alt","Email","name","mail"],[3,"close",4,"ngIf"],[3,"close"]],template:function(n,l){n&1&&(Ia$1(0,"button",0),yA(1,"async"),kD("onClickOverride",function(){return l.showModal=true}),_D(2,"tg-icon",1),Qx$1(3,` Email
12`),bf$1(),iD(4,_C,1,0,"tm-contact-seller-modal",2)),n&2&&(TD("trackingId",l.dealerEmailTheDealerButtonClickTrackingId)("data",DA$1(1,3,l.gtmData$)),X_$1(4),TD("ngIf",l.showModal));},dependencies:[mO,He,we,rh$1,_,p,bO],styles:["tm-email-button[_nghost-%COMP%]{display:inline-block}.tm-email-button__button[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:row;align-items:center;justify-content:center;padding-right:14px;padding-left:14px;margin-bottom:0;background-color:#006ebd;border-radius:0;color:#fff;cursor:pointer;font-size:.875rem;font-weight:400}@media(min-width:768px){.tm-email-button__button[_ngcontent-%COMP%]{padding-right:12px;padding-left:12px}}@media(min-width:1024px){.tm-email-button__button[_ngcontent-%COMP%]{min-width:96px;flex-direction:column;padding:0 8px}}@media(min-width:1280px){.tm-email-button__button[_ngcontent-%COMP%]{min-width:112px}}.tm-email-button__button[_ngcontent-%COMP%]:hover{background-color:#3da5eb;color:#fff}.tm-email-button__button-text[_ngcontent-%COMP%]{display:none;margin-left:8px}@media(min-width:768px){.tm-email-button__button-text[_ngcontent-%COMP%]{display:block}}@media(min-width:1024px){.tm-email-button__button-text[_ngcontent-%COMP%]{margin-left:0}}"]});let e=i;return e})();var L0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,we,Ja$1,g]});let e=i;return e})();function fC(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",5),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showModal=false)}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Share this listing"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"tm-share-listing",6),kD("printClicked",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showModal=false)})("emailModalClosed",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showModal=false)}),bf$1()()();}if(e&2){let o=yx$1().ngIf;X_$1(5),TD("lastNotRuled",true)("showCopy",true)("listing",o);}}function hC(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"button",1),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.showModal=true)}),_D(2,"tg-icon",2),Ia$1(3,"span",3),Qx$1(4," Share "),bf$1()(),iD(5,fC,6,3,"tg-modal",4),Ja$2();}if(e&2){let o=yx$1();X_$1(5),TD("ngIf",o.showModal);}}var B0=(()=>{let i=class i{constructor(t){this._listingFacade=t;}
12ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o());}};i.\u0275fac=function(n){return new(n||i)(R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-share-button"]],standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],["tgButton2","",1,"tm-share-button__button",3,"click"],["alt","Share","name","social-share"],[1,"tm-share-button__button-text"],[3,"close",4,"ngIf"],[3,"close"],[1,"tm-share-button__share-modal-body",3,"printClicked","emailModalClosed","lastNotRuled","showCopy","listing"]],template:function(n,l){n&1&&(iD(0,hC,6,1,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));},dependencies:[mO,He,Hr,jb$1,Lb$1,we,pi$1,bO],styles:["tm-share-button[_nghost-%COMP%]{display:inline-block}.tm-share-button__button[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:row;align-items:center;justify-content:center;padding-right:14px;padding-left:14px;margin-bottom:0;background-color:transparent;border-radius:0;color:#006ebd;cursor:pointer;font-size:.875rem;font-weight:400}@media(min-width:768px){.tm-share-button__button[_ngcontent-%COMP%]{padding-right:12px;padding-left:12px}}@media(min-width:1024px){.tm-share-button__button[_ngcontent-%COMP%]{min-width:96px;flex-direction:column;padding:0 8px}}@media(min-width:1280px){.tm-share-button__button[_ngcontent-%COMP%]{min-width:112px}}.tm-share-button__button[_ngcontent-%COMP%]:hover{background-color:transparent;color:#3da5eb}.tm-share-button__button-text[_ngcontent-%COMP%]{display:none;margin-left:8px}@media(min-width:768px){.tm-share-button__button-text[_ngcontent-%COMP%]{display:block}}@media(min-width:1024px){.tm-share-button__button-text[_ngcontent-%COMP%]{margin-left:0}}"]});let e=i;return e})();var F0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,Hb$1,we,bi,oi,bt]});let e=i;return e})();function vC(e,i){e&1&&_D(0,"tg-icon",2);}function yC(e,i){e&1&&_D(0,"tg-icon",3);}function xC(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",1),kD("click",function(n){Xh$1(o);let l=yx$1();return eg$1(l.toggleWatchlist(n))}),JN(1,vC,1,0,"tg-icon",2)(2,yC,1,0,"tg-icon",3),Ia$1(3,"span",4),Qx$1(4),bf$1()();}if(e&2){let o=yx$1();zD("tm-watchlist-button__button-add",!o.isOnWatchList()),TD("loading",o.isWatchlistChangeActionLoading()),X_$1(),XN(o.isOnWatchList()?1:2),X_$1(3),Af$1(" ",o.isOnWatchList()?"Watchlisted":"Watchlist"," ");}}var ts=(()=>{let i=class i extends z$3{};i.\u0275fac=(()=>{let t;return function(l){return (t||(t=km(i)))(l||i)}})(),i.\u0275cmp=jM$1({type:i,selectors:[["tm-watchlist-button"]],features:[rD],decls:1,vars:1,consts:[["tgButton2","",1,"tm-watchlist-button__button",3,"tm-watchlist-button__button-add","loading"],["tgButton2","",1,"tm-watchlist-button__button",3,"click","loading"],["alt","Remove from your Watchlist","name","binoculars-tick"],["alt","Add to your Watchlist","name","binoculars-plus"],[1,"tm-watchlist-button__button-text"]],template:function(n,l){n&1&&JN(0,xC,5,5,"button",0),n&2&&XN(l.listing()?0:-1);},dependencies:[He,we],styles:["tm-watchlist-button[_nghost-%COMP%]{display:inline-block}.tm-watchlist-button__button[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:row;align-items:center;justify-content:center;padding-right:14px;padding-left:14px;margin-bottom:0;background-color:#f9af2c;border-radius:0;color:#943900;cursor:pointer;font-size:.875rem;font-weight:400}@media(min-width:768px){.tm-watchlist-button__button[_ngcontent-%COMP%]{padding-right:12px;padding-left:12px}}@media(min-width:1024px){.tm-watchlist-button__button[_ngcontent-%COMP%]{min-width:96px;flex-direction:column;padding:0 8px}}@media(min-width:1280px){.tm-watchlist-button__button[_ngcontent-%COMP%]{min-width:112px}}.tm-watchlist-button__button[_ngcontent-%COMP%]:hover{background-color:#ffcb4f;color:#943900}.tm-watchlist-button__button-text[_ngcontent-%COMP%]{display:none;margin-left:8px}@media(min-width:768px){.tm-watchlist-button__button-text[_ngcontent-%COMP%]{display:block}}@media(min-width:1024px){.tm-watchlist-button__button-text[_ngcontent-%COMP%]{margin-left:0}}"]});let e=i;return e})();var MC=e=>({"background-color":e}),SC=e=>["/marketplace/stores",e];function wC(e,i){if(e&1&&_D(0,"img",19),e&2){let o=yx$1(2).ngIf,t=yx$1().ngIf;TD("src",o.logo,Ry$1)("alt",t.dealership.name);}}
12function kC(e,i){if(e&1&&(Ia$1(0,"a",17),yA(1,"async"),iD(2,wC,1,2,"img",18),bf$1()),e&2){let o=i.ngIf,t=yx$1().ngIf,n=yx$1(2);TD("routerLink",o)("trackingId",n.dealerShowroomTrackingId)("data",DA$1(1,4,n.gtmData$)),X_$1(2),TD("ngIf",t.logo);}}function IC(e,i){if(e&1&&(Ia$1(0,"div",15),yA(1,"async"),iD(2,kC,3,6,"a",16),yA(3,"async"),bf$1()),e&2){let o=yx$1(2);TD("ngStyle",pA(6,MC,DA$1(1,2,o.dealershipBackgroundColour$))),X_$1(2),TD("ngIf",DA$1(3,4,o.moreListingsLink$));}}function TC(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",20)(2,"a",21),_D(3,"img",22),bf$1()(),Ja$2()),e&2){let o=yx$1(2).ngIf;X_$1(2),TD("frendLink",pA(3,SC,o==null||o.store==null?null:o.store.storePath))("classicLink","stores/"+(o==null||o.store==null?null:o.store.storePath)),X_$1(),TD("src",o==null||o.store==null?null:o.store.logoImageUri,Ry$1);}}function OC(e,i){if(e&1&&(iD(0,TC,4,5,"ng-container",1),yA(1,"async")),e&2){let o=yx$1(2);TD("ngIf",DA$1(1,1,o.displayStoreBannerImage));}}function EC(e,i){e&1&&_D(0,"tm-email-button",23);}function PC(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"div",2)(2,"div",3),iD(3,IC,4,8,"div",4),yA(4,"async"),iD(5,OC,2,3,"ng-template",null,0,wA),Ia$1(7,"div",5)(8,"div",6),Qx$1(9),bf$1(),Ia$1(10,"div",7),Qx$1(11),bf$1()()(),Ia$1(12,"button",8),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.goBack())}),_D(13,"tg-icon-left",9),Qx$1(14," Back "),bf$1(),Ia$1(15,"div",10),_D(16,"tm-contact-button",11),iD(17,EC,1,0,"tm-email-button",12),yA(18,"async"),_D(19,"tm-share-button",13)(20,"tm-watchlist-button",14),bf$1()(),Ja$2();}if(e&2){let o=i.ngIf,t=Tx$1(6),n=yx$1();X_$1(3),TD("ngIf",DA$1(4,6,n.dealershipBranding$))("ngIfElse",t),X_$1(6),Af$1(" ",o.title," "),X_$1(2),Af$1(" ",o.priceDisplay," "),X_$1(6),TD("ngIf",DA$1(18,8,n.canSendEmail$)),X_$1(3),TD("listing",o);}}var is=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e,he){this._listingFacade=t,this._initialRouteService=n,this._location=l,this._router=C,this._motorsListingService=I,this._dealershipService=j,this._contactSellerService=_e,this._motorsGtmService=he,this.dealerShowroomTrackingId=q$1;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!t.isLoading),Fe(t=>t.item),o()),this.displayStoreBannerImage=this.listing$.pipe(Fe(t=>this.shouldDisplayStoreBannerImage(t))),this.dealership$=this.listing$.pipe(Fe(t=>t?.dealership)),this.dealershipBranding$=this.listing$.pipe(Fe(t=>this.getDealershipBranding(t))),this.dealershipBackgroundColour$=this.dealershipBranding$.pipe(Fe(t=>this.getBackgroundColour(t?.backgroundColour))),this.canSendEmail$=this.listing$.pipe(Fe(t=>this._contactSellerService.canEmailSeller(t))),this.moreListingsLink$=this.dealership$.pipe(Fe(t=>this._dealershipService.getMoreListingsLink(t))),this.gtmData$=this.listing$.pipe(Xt(t=>!!t),Fe(t=>this._motorsGtmService.getGtmData("click",t)));}shouldDisplayStoreBannerImage(t){return !!(t.store&&t.store.logoImageUri&&t.store.storePath&&(t.memberProfile||{}).photo&&!t?.dealership)}getDealershipBranding(t){return this._motorsListingService.isPremium(t)?t?.dealership?.showroom:null}getBackgroundColour(t){return t&&t.length>2?`#${t}`:"#fff"}goBack(){this._initialRouteService.isOnInitialRoute?this._router.navigate(["/"]):this._location.back();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(I$1),R$2(EI),R$2(ce$1),R$2(qe),R$2(s),R$2($i),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sticky-header"]],hostVars:2,hostBindings:function(n,l){n&2&&zD("visible",l.isVisible);},inputs:{isVisible:"isVisible"},standalone:false,decls:2,vars:3,consts:[["storeLogo",""],[4,"ngIf"],[1,"tm-sticky-header__container"],[1,"tm-sticky-header__image-details-container"],["class","tm-sticky-header__logo-container",3,"ngStyle",4,"ngIf","ngIfElse"],[1,"tm-sticky-header__details-container"],[1,"tm-sticky-header__title"],[1,"tm-sticky-header__price"],["tgButton2","","transparent","",1,"tm-sticky-header__mobile-back-button",3,"click"],["name","basic-arrow-left","role","presentation"],[1,"tm-sticky-header__actions-container"],[1,"tm-sticky-header__button","tm-sticky-header__button--mobile-hide","tm-sticky-header__button--contact"],["class","tm-sticky-header__button tm-sticky-header__button--mobile-hide","gtmLocation","sticky_header",4,"ngIf"],[1,"tm-sticky-header__button"],[1,"tm-sticky-header__button",3,"listing"],[1,"tm-sticky-header__logo-container",3,"ngStyle"],["tmTrackCustomClick","",3,"routerLink","trackingId","data",4,"ngIf"],["tmTrackCustomClick","",3,"routerLink","trackingId","data"],["class","tm-sticky-header__logo-image",3,"src","alt",4,"ngIf"],[1,"tm-sticky-header__logo-image",3,"src","alt"],[1,"tm-sticky-header__logo-container"],["tmForceRedirectToClassic","",3,"frendLink","classicLink"],["alt","Store Logo",1,"tm-sticky-header__logo-image",3,"src"],["gtmLocation","sticky_header",1,"tm-sticky-header__button","tm-sticky-header__button--mobile-hide"]],template:function(n,l){n&1&&(iD(0,PC,21,10,"ng-container",1),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));},dependencies:[mO,EO,He,ts,B0,D0,E0,we,rn,q,p,bO],styles:["tm-sticky-header[_nghost-%COMP%]{position:sticky;z-index:6000;top:0;display:block;width:100%;padding:0;border-bottom:1px solid #e9e9e9;background-color:#fff;box-shadow:0 5px 5px -5px #dadada}@media(min-width:1024px){tm-sticky-header[_nghost-%COMP%]{position:fixed;top:-64px;transition:top .25s ease-out!important}tm-sticky-header.visible[_nghost-%COMP%]{top:0}}.tm-sticky-header__container[_ngcontent-%COMP%]{display:flex;max-width:1720px;align-items:center;justify-content:space-between;margin-right:auto;margin-left:auto}@media(min-width:1024px){.tm-sticky-header__container[_ngcontent-%COMP%]{height:64px}}@media print{.tm-sticky-header__container[_ngcontent-%COMP%]{display:none}}.tm-sticky-header__image-details-container[_ngcontent-%COMP%]{display:none}@media(min-width:1024px){.tm-sticky-header__image-details-container[_ngcontent-%COMP%]{display:flex;height:100%}}.tm-sticky-header__details-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin-left:8px}.tm-sticky-header__mobile-back-button[_ngcontent-%COMP%]{width:auto;padding:0 0 0 8px;margin:0}@media(min-width:1024px){.tm-sticky-header__mobile-back-button[_ngcontent-%COMP%]{display:none}}.tm-sticky-header__title[_ngcontent-%COMP%]{color:#44413d;font-size:1.125rem;font-weight:500;line-height:20px}.tm-sticky-header__logo-container[_ngcontent-%COMP%]{display:flex;
12width:200px;height:100%;align-items:center;justify-content:center;border-right:#e9e9e9 1px solid}.tm-sticky-header__logo-image[_ngcontent-%COMP%]{max-height:100%}.tm-sticky-header__actions-container[_ngcontent-%COMP%]{display:flex;height:100%;border-left:#e9e9e9 1px solid}.tm-sticky-header__button[_ngcontent-%COMP%]{height:100%;flex-shrink:0}.tm-sticky-header__button--mobile-hide[_ngcontent-%COMP%]{display:none}@media(min-width:1024px){.tm-sticky-header__button--mobile-hide[_ngcontent-%COMP%]{display:block}}.tm-sticky-header__button--contact[_ngcontent-%COMP%]{border-right:#e9e9e9 1px solid}"]});let e=i;return e})();var Zn=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({providers:[s],imports:[VO,He,ts,F0,L0,P0,we,eu,_e,X$1,g]});let e=i;return e})();function LC(e,i){if(e&1&&(Mf(0),Ia$1(1,"h2"),Qx$1(2,"Video"),bf$1(),Ia$1(3,"div",1),_D(4,"tm-youtube-video",2),bf$1(),Ja$2()),e&2){let o=i.ngIf,t=yx$1();X_$1(4),TD("videoKey",o)("trackingId",t.motorsVideoTrackingId);}}var ns=(()=>{let i=class i{constructor(t){this._listingFacade=t,this.motorsVideoTrackingId="motors_video_click";}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.videoKey$=this.listing$.pipe(Fe(t=>t.embeddedContent?.youTubeVideoKey));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-video"]],standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],[1,"tm-motors-video__container"],["frameName","youtubeVideo","tmTrackCustomClick","",1,"tm-motors-video__video-frame",3,"videoKey","trackingId"]],template:function(n,l){n&1&&(iD(0,LC,5,2,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.videoKey$));},dependencies:[mO,ge,p,bO],styles:[".tm-motors-video__video-frame[_ngcontent-%COMP%]{height:100%}.tm-motors-video__container[_ngcontent-%COMP%]{width:100%;margin-bottom:48px}@media(min-width:1024px){.tm-motors-video__container[_ngcontent-%COMP%]{width:66.66%}}@media(min-width:1440px){.tm-motors-video__container[_ngcontent-%COMP%]{width:55%}}"]});let e=i;return e})();var os=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we,Ve,He,g]});let e=i;return e})();function BC(e,i){if(e&1&&_D(0,"tm-listing-watchlist",1),e&2){let o=i.ngIf;TD("listing",o);}}var rs=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._listingService=n;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.canShowWatchlistButton$=this.listing$.pipe(Fe(t=>this._listingService.canShowWatchlistButton(t)));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(_t))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-watchlist"]],standalone:false,decls:3,vars:5,consts:[["class","tm-watchlist__container",3,"listing",4,"ngIf"],[1,"tm-watchlist__container",3,"listing"]],template:function(n,l){n&1&&(iD(0,BC,1,1,"tm-listing-watchlist",0),yA(1,"async"),yA(2,"async")),n&2&&TD("ngIf",DA$1(2,3,DA$1(1,1,l.canShowWatchlistButton$)&&l.listing$));},dependencies:[mO,Ri$2,bO],styles:["tm-watchlist[_nghost-%COMP%]{display:block}"]});let e=i;return e})();var as=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,ji]});let e=i;return e})();var VC=()=>["./"];function AC(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",6),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showBookATestDriveModal=true)}),Qx$1(1),bf$1();}if(e&2){let o=yx$1(2);X_$1(),Af$1(" ",o.buttonText," ");}}function $C(e,i){if(e&1&&(Ia$1(0,"button",7),Qx$1(1),bf$1()),e&2){let o=yx$1(2);TD("routerLink",fA(3,VC))("verticalOffset",-74),X_$1(),Af$1(" ",o.buttonText," ");}}function RC(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",8),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showBookATestDriveModal=true)}),Qx$1(1),bf$1();}if(e&2){let o=yx$1(2);X_$1(),Af$1(" ",o.buttonText," ");}}function NC(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",9),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showBookATestDriveModal=false)}),bf$1();}if(e&2){let o=yx$1(2);TD("selectedTab",o.contactSellerType.BookTestDrive);}}function jC(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",1),yA(2,"async"),iD(3,AC,2,1,"button",2),yA(4,"async"),iD(5,$C,2,4,"button",3),yA(6,"async"),iD(
127,RC,2,1,"button",4),bf$1(),iD(8,NC,1,1,"tm-contact-seller-modal",5),Ja$2()),e&2){let o=yx$1();X_$1(),TD("trackingId",o.motorsDealersTestdriveTrackingId)("data",DA$1(2,6,o.gtmData$)),X_$1(2),TD("ngIf",o.compact&&!DA$1(4,8,o.isPremium$)),X_$1(2),TD("ngIf",o.compact&&DA$1(6,10,o.isPremium$)),X_$1(2),TD("ngIf",!o.compact),X_$1(),TD("ngIf",o.showBookATestDriveModal);}}var ss=(()=>{let i=class i{constructor(t,n,l,C){this._testDriveFacade=t,this._motorsListingService=n,this._listingFacade=l,this._motorsGtmService=C,this.gtmLocation="",this.contactSellerType=Ne$1,this.buttonText="Arrange a Viewing",this.motorsDealersTestdriveTrackingId=V$2;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.isBookATestDriveAvailable$=this._testDriveFacade.getTestDrive().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>!!t&&!!t.item&&!!t.item.conditions)),this.isPremium$=this.listing$.pipe(Fe(t=>this._motorsListingService.isPremium(t))),this.gtmData$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click",this.gtmLocation);}};i.\u0275fac=function(n){return new(n||i)(R$2(nn),R$2(qe),R$2(pe),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-book-a-test-drive-button-modal"]],inputs:{gtmLocation:"gtmLocation",buttonText:"buttonText",compact:"compact"},standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],["tmTrackCustomClick","",1,"tm-book-test-drive-button-modal__button",3,"trackingId","data"],["class","tm-motors-listing__btd","tgButton2","",3,"click",4,"ngIf"],["tmScrollTo","#tm-book-test-drive__container","tgButton2","",3,"routerLink","verticalOffset",4,"ngIf"],["fullWidth","","tgButton2","",3,"click",4,"ngIf"],[3,"selectedTab","close",4,"ngIf"],["tgButton2","",1,"tm-motors-listing__btd",3,"click"],["tmScrollTo","#tm-book-test-drive__container","tgButton2","",3,"routerLink","verticalOffset"],["fullWidth","","tgButton2","",3,"click"],[3,"close","selectedTab"]],template:function(n,l){n&1&&(iD(0,jC,9,12,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.isBookATestDriveAvailable$));},dependencies:[mO,rh$1,He,rn,p$1,p,bO],styles:["tm-book-a-test-drive-modal[_nghost-%COMP%]{display:block}.tm-book-test-drive-button-modal__button[_ngcontent-%COMP%]{margin-bottom:16px}"]});let e=i;return e})();var ls=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Ja$1,He,eu,T,g]});let e=i;return e})();var UC=()=>({format:"short"}),WC=()=>({format:"time"});function qC(e,i){if(e&1&&(Ia$1(0,"div",12),_D(1,"img",13),bf$1()),e&2){let o=i.ngIf;X_$1(),TD("src",o,Ry$1);}}function HC(e,i){if(e&1&&(Mf(0),Qx$1(1),Ja$2()),e&2){let o=yx$1(2);X_$1(),Af$1(" ",o.Address," ");}}function zC(e,i){if(e&1&&(Qx$1(0),_D(1,"br"),Qx$1(2)),e&2){let o=yx$1().ngIf,t=yx$1();Af$1(" ",o.dealership.name," "),X_$1(2),Af$1(" ",t.fullDealershipAddress(o.dealership)," ");}}function GC(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",2)(2,"div",3),iD(3,qC,2,1,"div",4),yA(4,"async"),Ia$1(5,"div",5)(6,"h3",6),Qx$1(7),bf$1(),Ia$1(8,"div",7),Qx$1(9),bf$1(),Ia$1(10,"div",8)(11,"div",9)(12,"strong"),Qx$1(13,"Preferred date"),bf$1(),_D(14,"br"),Qx$1(15),yA(16,"tgDateTime"),yA(17,"tgDateTime"),bf$1(),Ia$1(18,"div",10)(19,"strong"),Qx$1(20,"Viewing location"),bf$1(),_D(21,"br"),iD(22,HC,2,1,"ng-container",11)(23,zC,3,2,"ng-template",null,0,wA),bf$1()()()()(),Ja$2()),e&2){let o=i.ngIf,t=Tx$1(24),n=yx$1();X_$1(3),TD("ngIf",DA$1(4,7,n.mainPhoto$)),X_$1(4),Af$1(" ",o.title," "),X_$1(2),Af$1(" ",o.priceDisplay," "),X_$1(6),oE(" ",EA(16,9,n.BookingDate,fA(15,UC)),", ",EA(17,12,n.BookingTime,fA(16,WC))," "),X_$1(7),TD("ngIf",n.Address)("ngIfElse",t);}}var N0=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._dealershipService=n,this.Address=null;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.mainPhoto$=this.listing$.pipe(Xt(t=>!!t.photos&&!!t.photos[0]&&!!t.photos[0].value),Fe(t=>t.photos[0].value.large));}fullDealershipAddress(t){return this._dealershipService.formatFullAddress(t)}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(s))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-book-test-drive-premium-card"]],inputs:{BookingDate:"BookingDate",BookingTime:"BookingTime",Address:"Address"},standalone:false,decls:2,vars:3,consts:[["dealershipAddress",""],[4,"ngIf"],[1,"tm-book-test-drive-premium-card"],[1,"tm-book-test-drive-premium-card__listing-container"],["class","tm-book-test-drive-premium-card__image",4,"ngIf"],[1,"tm-book-test-drive-premium-card__details"],[1,"tm-book-test-drive-premium-card__title"],[1,"tm-book-test-drive-premium-card__price"],[1,"tm-book-test-drive-premium-card__date-location-container"],[1,"tm-book-test-drive-premium-card__date"],[1,"tm-book-test-drive-premium-card__location"],[4,"ngIf","ngIfElse"],[1,"tm-book-test-drive-premium-card__image"],[3,"src"]],template:function(n,l){n&1&&(iD(0,GC,25,17,"ng-container",1),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));},dependencies:[mO,bO,M0$1],styles:["tm-book-test-drive-premium-card[_nghost-%COMP%]{display:block}.tm-book-test-drive-premium-card[_ngcontent-%COMP%]{overflow:hidden;background:#fff;border-radius:8px}.tm-book-test-drive-premium-card__listing-container[_ngcontent-%COMP%]{display:flex}.tm-book-test-drive-premium-card__image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.tm-book-test-drive-premium-card__details[_ngcontent-%COMP%]{width:100%;padding:24px}.tm-book-test-drive-premium-card__title[_ngcontent-%COMP%]{margin-bottom:0;font-size:18px;font-weight:500}.tm-book-test-drive-premium-card__price[_ngcontent-%COMP%]{padding-bottom:32px;font-size:1rem}.tm-book-test-drive-premium-card__date-location-container[_ngcontent-%COMP%]{display:flex;width:100%}.tm-book-test-drive-premium-card__date[_ngcontent-%COMP%], .tm-book-test-drive-premium-card__location[_ngcontent-%COMP%]{width:50%}"]}
12);let e=i;return e})();var j0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Cc,zs$1]});let e=i;return e})();function YC(e,i){if(e&1&&(Mf(0),Ia$1(1,"label",1),Qx$1(2," Viewing Location "),bf$1(),_D(3,"tm-dealer-map",2),Ia$1(4,"div",3),Qx$1(5),bf$1(),Qx$1(6),Ja$2()),e&2){let o=i.ngIf,t=yx$1();X_$1(3),TD("dealership",o),X_$1(2),Af$1(" ",o.name," "),X_$1(),Af$1(" ",t.fullDealershipAddress(o),`
13`);}}var U0=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._dealershipService=n;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.dealership$=this.listing$.pipe(Xt(t=>!!t.dealership),Fe(t=>t.dealership));}fullDealershipAddress(t){return this._dealershipService.formatFullAddress(t)}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(s))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-book-test-drive-premium-dealer-location"]],standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],[1,"o-input__label"],[3,"dealership"],[1,"o-input__label","tm-book-test-drive-premium-dealer-location__name"]],template:function(n,l){n&1&&(iD(0,YC,7,3,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.dealership$));},dependencies:[mO,Ad,bO],styles:["tm-book-test-drive-premium-dealer-location[_nghost-%COMP%]{display:block}.tm-book-test-drive-premium-dealer-location__name[_ngcontent-%COMP%]{margin-top:8px}"]});let e=i;return e})();var W0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Rd]});let e=i;return e})();var JC=["bookATestDriveForm"],XC=()=>({required:"Please select a date for a visit."}),e2=()=>({required:"Please select a time for a visit."}),t2=()=>({format:"short"}),i2=()=>({format:"time"}),n2=()=>({message:"Please enter a valid phone number. It must be less than 30 characters."}),o2=()=>({message:"Please enter a valid phone number. It must be at least 6 characters."}),r2=()=>({message:"Please enter a valid phone number. It must only contain numbers and the characters ,._()+-."}),a2=(e,i,o)=>({phoneNumberTooLong:e,phoneNumberTooShort:i,phoneNumberNotOnlyDigits:o}),s2=()=>({message:"Please enter a valid email address."}),l2=e=>({required:"Please enter your email address.",email:e});function m2(e,i){e&1&&_D(0,"tg-icon",33);}function c2(e,i){e&1&&(Mf(0),iD(1,m2,1,0,"tg-icon",32),Ja$2());}function d2(e,i){e&1&&_D(0,"tg-icon",35);}function p2(e,i){e&1&&iD(0,d2,1,0,"tg-icon",34);}function g2(e,i){if(e&1&&(Ia$1(0,"option",36),Qx$1(1),yA(2,"tgDateTime"),bf$1()),e&2){let o=i.$implicit;TD("value",o),X_$1(),Af$1(" ",EA(2,2,o,fA(5,t2))," ");}}function _2(e,i){if(e&1&&(Ia$1(0,"option",36),Qx$1(1),yA(2,"tgDateTime"),bf$1()),e&2){let o=i.$implicit;TD("value",o),X_$1(),Af$1(" ",EA(2,2,o,fA(5,i2))," ");}}function u2(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-toggle",37),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.testDriveAppointmentLocation,n)||(l.testDriveAppointmentLocation=n),eg$1(n)}),Ia$1(1,"tg-toggle-item",36),Qx$1(2," Dealership "),bf$1(),Ia$1(3,"tg-toggle-item",36),Qx$1(4," Home visit "),bf$1()(),KS();}if(e&2){let o=yx$1(2);aE("ngModel",o.testDriveAppointmentLocation),XS(),X_$1(),TD("value",o.testDriveVisitTypeEnum.Dealership),X_$1(2),TD("value",o.testDriveVisitTypeEnum.Home);}}function f2(e,i){e&1&&(Mf(0),_D(1,"tm-book-test-drive-premium-dealer-location"),Ja$2());}function h2(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"tg-input-container",38)(2,"input",39,6),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.senderAddress1,n)||(l.senderAddress1=n),eg$1(n)}),bf$1(),KS(),bf$1(),Ia$1(4,"div",40)(5,"div",16)(6,"tg-input-container",41)(7,"input",42),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.senderSuburb,n)||(l.senderSuburb=n),eg$1(n)}),bf$1(),KS(),bf$1()(),Ia$1(8,"div",43)(9,"tg-input-container",44)(10,"input",45),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.senderCity,n)||(l.senderCity=n),eg$1(n)}),bf$1(),KS(),bf$1()()(),Ja$2();}if(e&2){let o=yx$1(2);X_$1(2),aE("ngModel",o.senderAddress1),XS(),X_$1(5),aE("ngModel",o.senderSuburb),XS(),X_$1(3),aE("ngModel",o.senderCity),XS();}}function C2(e,i){e&1&&_D(0,"tg-icon",33);}function v2(e,i){e&1&&(Mf(0),iD(1,C2,1,0,"tg-icon",32),Ja$2());}function y2(e,i){e&1&&_D(0,"tg-icon",35);}
13function x2(e,i){e&1&&iD(0,y2,1,0,"tg-icon",34);}function b2(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",46)(1,"div",47)(2,"tg-input-container",48)(3,"input",49,7),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.senderName,n)||(l.senderName=n),eg$1(n)}),bf$1(),KS(),bf$1(),Ia$1(5,"tg-input-container",50)(6,"input",51,8),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.senderPhone,n)||(l.senderPhone=n),eg$1(n)}),bf$1(),KS(),bf$1(),Ia$1(8,"tg-input-container",52)(9,"input",53,9),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.senderEmail,n)||(l.senderEmail=n),eg$1(n)}),bf$1(),KS(),bf$1()(),Ia$1(11,"div",54),Qx$1(12,"Your appointment details"),bf$1(),_D(13,"tm-book-test-drive-premium-card",55)(14,"tg-checkbox",56),KS(),_D(15,"tg-validation-summary"),Ia$1(16,"button",57),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.StepSelected=n.Step.Step1)}),Qx$1(17," Back "),bf$1(),Ia$1(18,"button",58),yA(19,"async"),yA(20,"async"),Qx$1(21," Book "),bf$1()();}if(e&2){let o=Tx$1(4),t=Tx$1(7),n=Tx$1(10),l=yx$1(2);X_$1(3),aE("ngModel",l.senderName),XS(),X_$1(3),aE("ngModel",l.senderPhone),TD("validation",gA(19,a2,fA(16,n2),fA(17,o2),fA(18,r2))),XS(),X_$1(3),aE("ngModel",l.senderEmail),TD("validation",pA(24,l2,fA(23,s2))),XS(),X_$1(4),TD("Address",l.bookedLocation)("BookingDate",l.selectedVisitDate)("BookingTime",l.selectedVisitTime),X_$1(),XS(),X_$1(4),TD("loading",DA$1(19,12,l.isSubmitInProgress$))("disabled",t.invalid||n.invalid||o.invalid)("trackingId",l.motorsDealersTestdriveTrackingId)("data",DA$1(20,14,l.gtmDataApply$));}}function M2(e,i){e&1&&_D(0,"tg-icon",33);}function S2(e,i){e&1&&(Mf(0),iD(1,M2,1,0,"tg-icon",32),Ja$2());}function w2(e,i){e&1&&_D(0,"tg-icon",35);}function k2(e,i){e&1&&iD(0,w2,1,0,"tg-icon",34);}function I2(e,i){if(e&1&&(Ia$1(0,"div",46)(1,"tg-info-box",59),_D(2,"tg-icon",60),Ia$1(3,"tg-info-box-heading"),Qx$1(4," Reservation sent! "),bf$1(),Qx$1(5," Thanks "),Ia$1(6,"strong"),Qx$1(7),bf$1(),Qx$1(8,", we\u2019ve sent your booking request through to "),Ia$1(9,"strong"),Qx$1(10),bf$1(),Qx$1(11,". They\u2019ll contact you soon at "),Ia$1(12,"strong"),Qx$1(13),bf$1(),Qx$1(14," to confirm. "),bf$1(),Ia$1(15,"div",54),Qx$1(16,"Your appointment details"),bf$1(),_D(17,"tm-book-test-drive-premium-card",55),bf$1()),e&2){let o=i.ngIf,t=yx$1(2);X_$1(7),rE(t.senderName),X_$1(3),rE(o.name),X_$1(3),rE(t.senderEmail),X_$1(4),TD("Address",t.bookedLocation)("BookingDate",t.selectedVisitDate)("BookingTime",t.selectedVisitTime);}}function T2(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"form",11,0),kD("ngSubmit",function(){Xh$1(o);let n=yx$1();return eg$1(n.onSubmit())}),Ia$1(3,"tg-step-indicator",12),cE("selectedChange",function(n){Xh$1(o);let l=yx$1();return eA(l.StepSelected,n)||(l.StepSelected=n),eg$1(n)}),Ia$1(4,"tg-step-indicator-item",13),iD(5,c2,2,0,"ng-container",14)(6,p2,1,0,"ng-template",null,1,wA),Ia$1(8,"div",15)(9,"div",16)(10,"div",17)(11,"tg-select-container",18)(12,"select",19,2),kD("ngModelChange",function(n){Xh$1(o);let l=yx$1();return eg$1(l.setSelectedVisitDate(n))}),Ia$1(14,"option",20),Qx$1(15," Select an option "),bf$1(),iD(16,g2,3,6,"option",21),bf$1(),KS(),bf$1(),Ia$1(17,"tg-select-container",22)(18,"select",23,3),kD("ngModelChange",function(n){Xh$1(o);let l=yx$1();return eg$1(l.setSelectedVisitTime(n))}),Ia$1(20,"option",20),Qx$1(21," Select an option "),bf$1(),iD(22,_2,3,6,"option",21),bf$1(),KS(),bf$1()(),Ia$1(23,"tg-input-container",24)(24,"textarea",25),Qx$1(25,"                            "),bf$1(),KS(),bf$1()(),Ia$1(26,"div",26),iD(27,u2,5,3,"tg-toggle",27),yA(28,"async"),iD(29,f2,2,0,"ng-container",10)(30,h2,11,3,"ng-container",10),bf$1()(),Ia$1(31,"button",28),yA(32,"async"),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.moveToStepTwo())}),Qx$1(33," Next "),bf$1()(),Ia$1(34,"tg-step-indicator-item",29),iD(35,v2,2,0,"ng-container",14)(36,x2,1,0,"ng-template",null,4,wA)(38,b2,22,26,"div",30),yA(39,"async"),bf$1(),Ia$1(40,"tg-step-indicator-item",31),iD(41,S2,2,0,"ng-container",14)(42,k2,1,0,"ng-template",null,5,wA)(44,I2,18,6,"div",30),yA(45,"async"),bf$1()()(),Ja$2();}if(e&2){let o=Tx$1(7),t=Tx$1(13),n=Tx$1(19),l=Tx$1(37),C=Tx$1(43),I=yx$1();X_$1(3),aE("selected",I.StepSelected),X_$1(),TD("id",I.Step.Step1)("disabled",I.step3Enabled),X_$1(),TD("ngIf",I.step2Enabled)("ngIfElse",o),X_$1(7),TD("ngModel",I.selectedVisitDate)("validation",fA(37,XC)),XS(),X_$1(2),TD("ngValue",void 0),X_$1(2),TD("ngForOf",I.visitDates),X_$1(2),TD("ngModel",I.selectedVisitTime)("validation",fA(38,e2)),XS(),X_$1(2),TD("ngValue",void 0),X_$1(2),TD("ngForOf",I.visitTimes),X_$1(2),XS(),X_$1(3),TD("ngIf",DA$1(28,29,I.dealerAllowsOtherLocation$)),X_$1(2),TD("ngIf",I.testDriveAppointmentLocation===I.testDriveVisitTypeEnum.Dealership),X_$1(),TD("ngIf",I.testDriveAppointmentLocation===I.testDriveVisitTypeEnum.Home),X_$1(),TD("disabled",t.invalid||n.invalid)("trackingId",I.motorsDealersTestdriveTrackingId)("data",DA$1(32,31,I.gtmDataClick$)),X_$1(3),TD("id",I.Step.Step2)("disabled",t.invalid||n.invalid||I.step3Enabled||!I.step2Enabled),X_$1(),TD("ngIf",I.step3Enabled)("ngIfElse",l),X_$1(3),TD("ngIf",DA$1(39,33,I.currentMember$)),X_$1(2),TD("id",I.Step.Step3)("disabled",!I.step3Enabled),X_$1(),TD("ngIf",I.step3Enabled)("ngIfElse",C),X_$1(3),TD("ngIf",DA$1(45,35,I.dealer$));}}var ms=(function(e){return e[e.Step1=0]="Step1",e[e.Step2=1]="Step2",e[e.Step3=2]="Step3",e})(ms||{}),q0=(()=>{let i=class i{constructor(t,n,l,C,I,j){this._bookATestDriveFacade=t,this._testDriveFacade=n,this._currentMemberFacade=l,this._bookATestDriveService=C,this._listingFacade=I,this._motorsGtmService=j,this.gtmLocation="dealer_test_drive_form",this.testDriveVisitTypeEnum=en,this.senderAddress1="",this.senderCity="",this.senderSuburb="",this.testDriveAppointmentLocation=en.Dealership,this.Step=ms,this.StepSelected=ms.Step1,this.bookedLocation=null,this.motorsDealersTestdriveTrackingId=V$2;}ngOnInit(){this.isSubmitInProgress$=this._bookATestDriveFacade.getBookATestDriveState().pipe(Xt(n=>!!n),Fe(n=>!!n.isLoading));let t=this._testDriveFacade.getTestDrive().pipe(Xt(n=>!!n&&!!n.item),Fe(n=>n.item),o());this.currentMember$=this._currentMemberFacade.selectCurrentMember().pipe(Xt(n=>!!n&&!!n.item),Fe(n=>n.item),th$1(n=>{this.currentMember=n,this.setDefaultSenderInfo();}
13)),this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(n=>!!n&&!!n.item),Fe(n=>n.item),th$1(n=>{this.listingId=n.listingId;}),o()),this.dealer$=this.listing$.pipe(Xt(n=>!!n.dealership),Fe(n=>n.dealership)),this.aboutTestDrive$=t.pipe(Xt(n=>!!n.conditions),Fe(n=>n.conditions)),this.dealerAllowsOtherLocation$=t.pipe(Fe(n=>n.allowsOtherLocation)),this.visitDates=this._bookATestDriveService.generateVisitDates(),this.visitTimes=this._bookATestDriveService.generateVisitTimes(),this.gtmDataClick$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click",this.gtmLocation),this.gtmDataApply$=this.listing$.pipe(Xt(n=>!!n),Fe(n=>this._motorsGtmService.getGtmData("apply",n)));}setSelectedVisitDate(t){t&&(this.selectedVisitDate=new Date(t));}setSelectedVisitTime(t){t&&(this.selectedVisitTime=new Date(t));}onSubmit(){if(this.bookATestDriveForm.invalid)return;let t=this.getTestDriveRequest();this.sendTestDriveRequest(this.listingId,t),this.step3Enabled=true,this.StepSelected=ms.Step3;}getTestDriveRequest(){let t=new Date(this.selectedVisitDate.getFullYear(),this.selectedVisitDate.getMonth(),this.selectedVisitDate.getDate(),this.selectedVisitTime.getHours(),this.selectedVisitTime.getMinutes());return {message:this.bookATestDriveForm.value.testDriveMessage?this.bookATestDriveForm.value.testDriveMessage:"-",sendCopy:!!this.bookATestDriveForm.value.copyToSelf,address:`${this.senderAddress1}, ${this.senderSuburb}, ${this.senderCity}`,email:this.senderEmail,location:this.testDriveAppointmentLocation===this.testDriveVisitTypeEnum.Dealership?Ne$2.dealership:Ne$2.other,memberId:this.currentMember.memberId,name:this.senderName,phone:this.senderPhone,preferredTime:t}}sendTestDriveRequest(t,n){this._bookATestDriveFacade.sendTestDriveRequest(t,n);}moveToStepTwo(){this.bookedLocation=null,this._currentMemberFacade.ensureLoggedIn().then(()=>{this.testDriveAppointmentLocation===this.testDriveVisitTypeEnum.Home&&(this.bookedLocation=`${this.senderAddress1}, ${this.senderSuburb}, ${this.senderCity}`),this.step2Enabled=true,this.StepSelected=this.Step.Step2;}).catch(re$1);}setDefaultSenderInfo(){this.senderName=this.currentMember?this.currentMember.firstName:"",this.senderPhone=this.currentMember?this.currentMember.mobilePhoneNumber?this.currentMember.mobilePhoneNumber:this.currentMember.landlinePhoneNumber:"",this.senderEmail=this.currentMember?this.currentMember.email:"",this.senderAddress1=this.currentMember?this.currentMember.membershipAddress.address1:"",this.senderSuburb=this.currentMember?this.currentMember.membershipAddress.suburb:"",this.senderCity=this.currentMember?this.currentMember.membershipAddress.city:"";}};i.\u0275fac=function(n){return new(n||i)(R$2(ma$1),R$2(nn),R$2(E),R$2(ha$1),R$2(pe),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-book-test-drive-premium"]],viewQuery:function(n,l){if(n&1&&jD(JC,5),n&2){let C;Cx$1(C=wx$1())&&(l.bookATestDriveForm=C.first);}},inputs:{gtmLocation:"gtmLocation"},standalone:false,decls:2,vars:3,consts:[["bookATestDriveForm","ngForm"],["step1Arrow",""],["visitDate","ngModel"],["visitTime","ngModel"],["step2Arrow",""],["step3Arrow",""],["senderAddress11","ngModel"],["name","ngModel"],["phoneNo","ngModel"],["email","ngModel"],[4,"ngIf"],["method","POST",3,"ngSubmit"],[3,"selectedChange","selected"],["title","Appointment",3,"id","disabled"],[4,"ngIf","ngIfElse"],[1,"tm-book-test-drive-premium__appointment-container","tm-book-test-drive-premium__container"],[1,"tm-book-test-drive-premium__left"],[1,"tm-book-test-drive-premium__date-times"],["label","Preferred date","showLabel","true",1,"tm-book-test-drive-premium__date"],["required","","tgSelect","","name","selectedVisitDate",3,"ngModelChange","ngModel","validation"],["hidden","",3,"ngValue"],[3,"value",4,"ngFor","ngForOf"],["label","Preferred time","showLabel","true",1,"tm-book-test-drive-premium__time"],["name","selectedVisitTime","required","","tgSelect","",3,"ngModelChange","ngModel","validation"],["label","Message"],["tgTextInput","","ngModel","","maxlength","500","rows","5","placeholder","Include a message to the dealer","name","testDriveMessage"],[1,"tm-book-test-drive-premium__right","tm-book-test-drive-premium__right-appointment"],["name","testDriveAppointmentLocation","class","tm-book-test-drive-premium__appointment-options","required","",3,"ngModel","ngModelChange",4,"ngIf"],["tgButton2","","tgStyle","primary","id","tm-book-test-drive-premium__next","tmTrackCustomClick","",3,"click","disabled","trackingId","data"],["title","Your details",3,"id","disabled"],["class","tm-book-test-drive-premium__container",4,"ngIf"],["title","Summary",3,"id","disabled"],["name","basic-tick","role","presentation","size","small",4,"tgStepIndicatorIcon"],["name","basic-tick","role","presentation","size","small"],["name","basic-arrow-right","role","presentation","size","small",4,"tgStepIndicatorIcon"],["name","basic-arrow-right","role","presentation","size","small"],[3,"value"],["name","testDriveAppointmentLocation","required","",1,"tm-book-test-drive-premium__appointment-options",3,"ngModelChange","ngModel"],["label","Your address"],["maxLength","50","name","testDriveAddress1","required","","text","","tgTextInput","","type","text",3,"ngModelChange","ngModel"],[1,"tm-book-test-drive-premium__suburb-city-container"],["label","Suburb",1,"tm-book-a-test-drive-form__suburb"],["tgTextInput","","type","text","name","testDriveSuburb","maxLength","50","required","",3,"ngModelChange","ngModel"],[1,"tm-book-test-drive-premium__right"],["label","City"],["tgTextInput","","type","text","name","testDriveCity","maxLength","50","required","",3,"ngModelChange","ngModel"],[1,"tm-book-test-drive-premium__container"],[1,"tm-book-test-drive-premium__input-container"],["label","Name"],["tgTextInput","","type","text","name","testDriveName","required","","text","",3,"ngModelChange","ngModel"],["label","Phone","showAllValidation","","showRemainingCharacters",""],["required","","name","testDrivePhone","type","tel","placeholder","e.g. 
130211234567","tgTextInput","",3,"ngModelChange","ngModel","tmValidatePhoneNumber","validation"],["label","Email","showAllValidation","","showRemainingCharacters",""],["required","","name","testDriveEmailAddress","type","email","placeholder","e.g. [email protected]","tgTextInput","",3,"ngModelChange","ngModel","tmValidateEmail","validation"],[1,"o-input__label"],[3,"Address","BookingDate","BookingTime"],["label","Email me a copy of this message","name","copyToSelf","ngModel","","ngDefaultControl","",1,"tm-book-test-drive-premium__email-copy"],["tgButton2","",1,"tm-book-test-drive-premium__back",3,"click"],["id","tm-book-test-drive-premium__book","tgButton2","","tgStyle","primary","type","submit","tmTrackCustomClick","",1,"tm-listing-contact-seller__batd-button",3,"loading","disabled","trackingId","data"],["tgStyle","success"],["name","basic-info-framed","alt","information"]],template:function(n,l){n&1&&(iD(0,T2,46,39,"ng-container",10),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listing$));},dependencies:[YI,mO,Wb$1,Zs,Ks,we,Gm,Um,qm,Vi$1,ss$1,Ai$1,Bm,Wn,Qn,Eo,Ri$3,K_$1,ce,Eh$1,Fh$1,Nh$1,Qh$1,As,Ss$1,xb$1,At,_t$2,U0,He,Ds,Bh$1,N0,Vc,G_$1,Tr,Lc,nn$1,p,bO,M0$1],styles:["tm-book-test-drive-premium[_nghost-%COMP%]{display:block}.tm-book-test-drive-premium__container[_ngcontent-%COMP%]{max-width:100%}@media(min-width:1024px){.tm-book-test-drive-premium__container[_ngcontent-%COMP%]{max-width:80%}}.tm-book-test-drive-premium__input-container[_ngcontent-%COMP%]{display:flex;width:calc(100% + 32px)}.tm-book-test-drive-premium__input-container[_ngcontent-%COMP%] > tg-input-container[_ngcontent-%COMP%]{padding-right:32px}.tm-book-test-drive-premium__appointment-container[_ngcontent-%COMP%]{display:flex}.tm-book-test-drive-premium__left[_ngcontent-%COMP%], .tm-book-test-drive-premium__right[_ngcontent-%COMP%]{width:50%}.tm-book-test-drive-premium__left[_ngcontent-%COMP%]{padding-right:8px}.tm-book-test-drive-premium__right[_ngcontent-%COMP%], .tm-book-test-drive-premium__right-appointment[_ngcontent-%COMP%]{padding-left:24px}@media(min-width:1024px){.tm-book-test-drive-premium__right-appointment[_ngcontent-%COMP%]{padding-left:80px}}.tm-book-test-drive-premium__appointment-options[_ngcontent-%COMP%]{margin-top:24px}.tm-book-test-drive-premium__date-times[_ngcontent-%COMP%]{display:flex}.tm-book-test-drive-premium__date-times[_ngcontent-%COMP%] > tg-select-container[_ngcontent-%COMP%]{width:50%}.tm-book-test-drive-premium__time[_ngcontent-%COMP%]{padding-left:8px}.tm-book-test-drive-premium__date[_ngcontent-%COMP%]{padding-right:8px}.tm-book-test-drive-premium__suburb-city-container[_ngcontent-%COMP%]{display:flex}.tm-book-test-drive-premium__email-copy[_ngcontent-%COMP%]{margin-left:-12px}.tm-book-test-drive-premium__back[_ngcontent-%COMP%]{margin-right:24px}"]});let e=i;return e})();var H0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Qb$1,we,we,br,Tb$1,vr,Cc,de,W0,He,Ns,j0,Ec,we,dr,Qb$1,g]});let e=i;return e})();function E2(e,i){e&1&&(Mf(0),_D(1,"tm-book-test-drive-premium"),Ja$2());}function P2(e,i){e&1&&(Ia$1(0,"div",5),Qx$1(1," Arrange to view this vehicle. Please select your preferred time and date, and we will be in touch to confirm your appointment. "),bf$1(),Ia$1(2,"div",6),_D(3,"tm-book-a-test-drive-button-modal",7),bf$1());}function D2(e,i){if(e&1&&(Ia$1(0,"div",2)(1,"h2",3),Qx$1(2,"Arrange a Viewing"),bf$1(),iD(3,E2,2,0,"ng-container",4),yA(4,"async"),yA(5,"async"),iD(6,P2,4,0,"ng-template",null,0,wA),bf$1()),e&2){let o=Tx$1(7),t=yx$1();X_$1(3),TD("ngIf",DA$1(4,2,t.isPremium$)&&DA$1(5,4,t.isNotMobileBreakpoint$))("ngIfElse",o);}}var z0=(()=>{let i=class i{constructor(t,n,l,C){this._testDriveFacade=t,this._motorsListingService=n,this._mediaSizeFacade=l,this._listingFacade=C;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.isPremium$=this.listing$.pipe(Fe(t=>this._motorsListingService.isPremium(t))),this.hasBookATestDrive$=this._testDriveFacade.getTestDrive().pipe(Xt(t=>!!t&&!!t.item&&!t.isLoading),Fe(t=>t.item)),this.isNotMobileBreakpoint$=this._mediaSizeFacade.is.md$.or.greater$;}};i.\u0275fac=function(n){return new(n||i)(R$2(nn),R$2(qe),R$2(G),R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-book-test-drive"]],standalone:false,decls:2,vars:3,consts:[["regular",""],["class","tm-book-test-drive__container","id","tm-book-test-drive__container",4,"ngIf"],["id","tm-book-test-drive__container",1,"tm-book-test-drive__container"],[1,"tm-book-test-drive__title"],[4,"ngIf","ngIfElse"],[1,"tm-book-test-drive__conditions"],[1,"tm-book-test-drive__button"],["buttonText","Send request","gtmLocation","dealer_test_drive_form"]],template:function(n,l){n&1&&(iD(0,D2,8,6,"div",1),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.hasBookATestDrive$));},dependencies:[mO,ss,q0,bO],styles:[".tm-book-test-drive__title[_ngcontent-%COMP%]{margin-bottom:16px}.tm-book-test-drive__conditions[_ngcontent-%COMP%]{padding-bottom:16px;
13color:#65605d;font-size:1rem}.tm-book-test-drive__button[_ngcontent-%COMP%]{max-width:250px}"]});let e=i;return e})();var G0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,ls,H0]});let e=i;return e})();function B2(e,i){e&1&&(Ia$1(0,"div",2),Qx$1(1),bf$1()),e&2&&(X_$1(),Af$1(" ",i," "));}function F2(e,i){if(e&1&&(Ia$1(0,"a",3),Qx$1(1),yA(2,"async"),bf$1()),e&2){let o=yx$1(3);TD("href",i,Ry$1),X_$1(),Af$1(" ",DA$1(2,2,o.dealerWebsiteClean$)," ");}}function V2(e,i){if(e&1&&(Ia$1(0,"div",0),JN(1,B2,2,1,"div",2),yA(2,"async"),JN(3,F2,3,4,"a",3),yA(4,"async"),bf$1()),e&2){let o,t,n=yx$1(2);X_$1(),XN((o=DA$1(2,2,n.dealerName$))?1:-1,o),X_$1(2),XN((t=DA$1(4,4,n.dealerWebsite$))?3:-1,t);}}function A2(e,i){e&1&&(Ia$1(0,"div",5),Qx$1(1),bf$1()),e&2&&(X_$1(),Af$1(" ",i," "));}function $2(e,i){if(e&1&&(Ia$1(0,"a",3),Qx$1(1),yA(2,"async"),bf$1()),e&2){let o=yx$1(3);TD("href",i,Ry$1),X_$1(),Af$1(" ",DA$1(2,2,o.dealerWebsiteClean$)," ");}}function R2(e,i){if(e&1&&(Ia$1(0,"tg-card",1)(1,"div",4),JN(2,A2,2,1,"div",5),yA(3,"async"),JN(4,$2,3,4,"a",3),yA(5,"async"),bf$1()()),e&2){let o,t,n=yx$1(2);X_$1(2),XN((o=DA$1(3,2,n.dealerName$))?2:-1,o),X_$1(2),XN((t=DA$1(5,4,n.dealerWebsite$))?4:-1,t);}}function N2(e,i){if(e&1&&(JN(0,V2,5,6,"div",0),yA(1,"async"),JN(2,R2,6,6,"tg-card",1),yA(3,"async")),e&2){let o=yx$1();XN(DA$1(1,2,o.isCarCategory$)?-1:0),X_$1(2),XN(DA$1(3,4,o.isCarCategory$)?2:-1);}}var Ri=(()=>{let i=class i{constructor(t,n,l){this._listingFacade=t,this._dealershipService=n,this._categoryService=l;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.dealership$=this.listing$.pipe(Xt(t=>!!t&&!!t.dealership),Fe(t=>t.dealership)),this.dealerName$=this.dealership$.pipe(Fe(t=>t.name)),this.dealerWebsite$=this.dealership$.pipe(Fe(t=>t.website)),this.dealerWebsiteClean$=this.dealership$.pipe(Fe(t=>this._dealershipService.cleanDealerWebsite(t.website))),this.isCarCategory$=this.listing$.pipe(Fe(t=>this._categoryService.isUsedCars(R$3(t.category))));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(s),R$2(P))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-site-link"]],decls:2,vars:3,consts:[[1,"tm-motors-dealer-site-link__dealer-info-control"],[1,"tm-motors-dealer-site-link__card"],[1,"tm-motors-dealer-site-link__name","p-lead-copy"],["rel","noopener noreferrer","target","_blank","id","tm-dealer-contact-panel__sitelink",3,"href"],[1,"tm-motors-dealer-site-link__dealer-info-variant3"],[1,"tm-motors-dealer-site-link__name"]],template:function(n,l){n&1&&(JN(0,N2,4,6),yA(1,"async")),n&2&&XN(DA$1(1,1,l.dealership$)?0:-1);},dependencies:[VO,Q_,bO],styles:[".tm-motors-dealer-site-link__name[_ngcontent-%COMP%]{margin-bottom:0}.tm-motors-dealer-site-link__card[_ngcontent-%COMP%]{overflow:hidden;border:1px solid #d7d5d2;background:#fff;border-radius:6px;margin-top:-8px}.tm-motors-dealer-site-link__dealer-info-control[_ngcontent-%COMP%]{margin-bottom:32px}.tm-motors-dealer-site-link__dealer-info-variant1[_ngcontent-%COMP%]{padding:16px}.tm-motors-dealer-site-link__dealer-info-variant2[_ngcontent-%COMP%]{padding:8px 0}.tm-motors-dealer-site-link__dealer-info-variant3[_ngcontent-%COMP%]{padding:16px}"]});let e=i;return e})();function j2(e,i){e&1&&_D(0,"tm-dealer-site-link");}function U2(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",4),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.onEmailModalClose())})("consumerFinanceOptedIn",function(n){Xh$1(o);let l=yx$1();return eg$1(l.toggleConsumerFinanceModal(n))}),bf$1();}if(e&2){let o=yx$1();TD("message",o.enquiryModalMessage)("selectedSubject",o.enquiryModalSubject);}}function W2(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-driva-offer-modal",5),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.showConsumerFinanceModal=false)}),bf$1();}}var Z0="watchlist_offer_claim",q2="Hi there! I'm wanting to claim the Watchlist offer that I received in my email for this listing",Y0="action",H2="enquiry",z2=5e3,J0=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e,he,it,nt){this._listingFacade=t,this._categoryService=n,this._motorsGtmService=l,this._routerFacade=C,this._router=I,this._changeDetectorRef=j,this._currentMemberFacade=_e,this._basicMembershipService=he,this._platformService=it,this._loggerService=nt,this.gtmLocation="dealer_contact_box",this.showConsumerFinanceModal=false,this.enquiryModalSubject=null,this.dealerEmailTheDealerButtonClickTrackingId=U$1;}
13ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.isCarCategory$=this.listing$.pipe(Fe(t=>this._categoryService.isUsedCars(R$3(t.category)))),this.gtmData$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click",this.gtmLocation),this._platformService.isBrowser&&this._checkDeepLinkEnquiryTriggers();}onEmailModalClose(){this.showEmailModal=false,this.enquiryModalMessage=void 0,this.enquiryModalSubject=null;}toggleConsumerFinanceModal(t){this.showConsumerFinanceModal=t;}_checkDeepLinkEnquiryTriggers(){return I$3(this,null,function*(){let t=yield pC$1(this._routerFacade.selectCurrentQueryParams());if(t?.[Z0]==="1"){this._removeQueryParam(Z0),this.enquiryModalMessage=q2,this.enquiryModalSubject=ie$1.general,this._autoOpenEmailModal();return}t?.[Y0]===H2&&(this._removeQueryParam(Y0),this.enquiryModalMessage=yield this._buildEnquiryDeepLinkMessage(),this.enquiryModalSubject=ie$1.general,this._autoOpenEmailModal());})}_buildEnquiryDeepLinkMessage(){return I$3(this,null,function*(){let t=yield pC$1(this.listing$.pipe(zp(z2),yr$1(null),Wc(l=>(this._loggerService.logError({name:"DealerContactPanelComponent._buildEnquiryDeepLinkMessage",message:"Failed to resolve listing for enquiry deep-link message",originalError:l}),$c(null))))),n=t?qa(t).trim():"";return n?`Hi, I'm interested in this ${n}, could you please contact me to discuss further.`:"Hi, I'm interested in this, could you please contact me to discuss further."})}_autoOpenEmailModal(){return I$3(this,null,function*(){if(!(yield pC$1(this._currentMemberFacade.isLoggedIn$.pipe(yr$1(false)))))try{yield this._currentMemberFacade.ensureLoggedIn();}catch(l){this.enquiryModalMessage=void 0,this.enquiryModalSubject=null;return}if(yield pC$1(this._currentMemberFacade.getCurrentMember().pipe(Fe(l=>l?.isBasic),yr$1(true)))){this._basicMembershipService.openUpgradeMembershipModal();return}this.showEmailModal=true,this._changeDetectorRef.markForCheck();})}_removeQueryParam(t){this._router.navigate([],{queryParams:{[t]:null},queryParamsHandling:"merge",replaceUrl:true});}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(P),R$2($$1),R$2(D),R$2(ce$1),R$2(mc$1),R$2(E),R$2(d$3),R$2(h$2),R$2(f$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-contact-panel"]],inputs:{gtmLocation:"gtmLocation"},standalone:false,decls:9,vars:9,consts:[[1,"tm-motors-dealer-contact-panel__contact"],["displayAsButton","true","buttonStyle","inverted","gtmLocation","dealer_contact_box",1,"tm-motors-dealer-contact-panel__contact-dealer"],["tmFrendClickOverrideBasicMemberForceUpgrade","","tgButton2","","fullWidth","","tgStyle","primary","tmTrackCustomClick","",1,"tm-motors-dealer-contact-panel__email-dealer",3,"onClickOverride","trackingId","data"],[3,"message","selectedSubject"],[3,"close","consumerFinanceOptedIn","message","selectedSubject"],[3,"close"]],template:function(n,l){n&1&&(JN(0,j2,1,0,"tm-dealer-site-link"),yA(1,"async"),Ia$1(2,"div",0),_D(3,"tm-dealer-phone-button",1),Ia$1(4,"button",2),yA(5,"async"),kD("onClickOverride",function(){return l.showEmailModal=true}),Qx$1(6," Email the dealer "),bf$1(),JN(7,U2,1,2,"tm-contact-seller-modal",3),bf$1(),JN(8,W2,1,0,"tm-driva-offer-modal")),n&2&&(XN(DA$1(1,5,l.isCarCategory$)?-1:0),X_$1(4),TD("trackingId",l.dealerEmailTheDealerButtonClickTrackingId)("data",DA$1(5,7,l.gtmData$)),X_$1(3),XN(l.showEmailModal?7:-1),X_$1(),XN(l.showConsumerFinanceModal?8:-1));},dependencies:[He,Kt,rh$1,_,H0$1,Ri,p,bO],styles:["tm-dealer-contact-panel[_nghost-%COMP%]{display:block}.tm-motors-dealer-contact-panel__name[_ngcontent-%COMP%]{margin-bottom:0}.tm-motors-dealer-contact-panel__contact-dealer[_ngcontent-%COMP%]{margin-bottom:16px}.tm-motors-dealer-contact-panel__email-dealer[_ngcontent-%COMP%]{margin-bottom:0}.tm-motors-dealer-contact-panel__dealer-info[_ngcontent-%COMP%]{margin-bottom:32px}"]});let e=i;return e})();var X0=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,Tt,Ja$1,un,Ri,g]});let e=i;return e})();var eg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-new-car-availability-available-to-order-badge-svg"]],standalone:false,decls:14,vars:0,consts:[["width","82","height","31","viewBox","0 0 20 22","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M37.9072 11.3128L30.1485 9.68816L23.7853 2.88599H10.3416C4.95333 2.98399 0.911133 8.27457 0.911133 15.1578H38.2968V11.5767C38.2968 11.3845 38.1216 11.3731 37.9072 11.3128Z","fill","#FAD255"],["d","M38.297 18.2998H0.969065L0.907227 15.1636H38.297V18.2998Z","fill","#F3AE0F"],["d","M6.29883 17.7077C6.29964 18.4051 6.52658 19.0866 6.95094 19.666C7.37531 20.2455 7.97804 20.6969 8.68295 20.9632C9.38786 21.2294 10.1633 21.2986 10.9112 21.162C11.6591 21.0253 12.3459 20.689 12.8848 20.1955C13.4237 19.702 13.7904 19.0734 13.9386 18.3893C14.0869 17.7053 14.01 16.9964 13.7176 16.3522C13.4253 15.7081 12.9306 15.1577 12.2962 14.7706C11.6618 14.3835 10.9161 14.1771 10.1534 14.1775C9.13057 14.179 8.15015 14.5516 7.42744 15.2135C6.70474 15.8753 6.29883 16.7724 6.29883 17.7077Z","fill","#2162B1"],["d","M8.37793 17.7079C8.37834 18.03 8.48324 18.3448 8.67937 18.6125C8.87549 18.8801 9.15403 19.0885 9.47973 19.2114C9.80543 19.3342 10.1637 19.366 10.5091 19.3026C10.8546 19.2393 11.1717 19.0836 11.4204 18.8555C11.6691 18.6273 11.8382 18.3367 11.9063 18.0207C11.9744 17.7046 11.9384 17.3771 11.8029 17.0797C11.6674 16.7824 11.4385 16.5284 11.1451 16.35C10.8517 16.1716 10.5071 16.0768 10.1548 16.0775C9.68278 16.0785 9.23054 16.2508 8.89737 16.5565C8.56421 16.8622 8.37738 17.2763 8.37793 17.7079Z","fill","#B4DEFF"],["d","M26.1934 17.7077C26.1942 18.405 26.4211 19.0864 26.8453 19.6658C27.2696 20.2453 27.8722 20.6967 28.577 20.963C29.2818 21.2293 30.0571 21.2986 30.805 21.1621C31.5528 21.0256 32.2396 20.6895 32.7786 20.1961C33.3175 19.7028 33.6844 19.0745 33.8329 18.3905C33.9814 17.7065 33.9048 16.9977 33.6128 16.3535C33.3207 15.7094 32.8264 15.1589 32.1923 14.7715C31.5581 14.3842 30.8126 14.1775 3
130.05 14.1775C29.5433 14.1777 29.0416 14.2692 28.5735 14.4468C28.1055 14.6243 27.6802 14.8844 27.3221 15.2122C26.964 15.5401 26.68 15.9291 26.4863 16.3573C26.2926 16.7855 26.1931 17.2443 26.1934 17.7077Z","fill","#2162B1"],["d","M28.2676 17.7079C28.268 18.0298 28.3728 18.3445 28.5687 18.6121C28.7647 18.8796 29.043 19.088 29.3684 19.211C29.6939 19.334 30.0519 19.3659 30.3972 19.3029C30.7426 19.2398 31.0597 19.0846 31.3086 18.8568C31.5575 18.629 31.7269 18.3388 31.7954 18.023C31.864 17.7071 31.8286 17.3798 31.6937 17.0824C31.5589 16.7849 31.3306 16.5307 31.0378 16.3518C30.7449 16.173 30.4007 16.0775 30.0485 16.0775C29.8145 16.0775 29.5827 16.1197 29.3665 16.2017C29.1503 16.2836 28.9539 16.4037 28.7885 16.5551C28.6231 16.7066 28.4919 16.8863 28.4026 17.0841C28.3132 17.2819 28.2673 17.4938 28.2676 17.7079Z","fill","#B4DEFF"],["d","M21.5603 10.3083H19.5918V11.2074H21.5603V10.3083Z","fill","#F3AE0F"],["d","M18.1643 4.40137H12.3535V9.70891H18.1643V4.40137Z","fill","#AEDEFF"],["d","M10.8618 9.70703H4.89844C4.89844 7.30016 6.91851 4.40137 10.8618 4.40137V9.70703Z","fill","#AEDEFF"],["d","M28.4893 9.69011H19.6484V4.38257H23.5257L28.4893 9.69011Z","fill","#AEDEFF"],["d","M3.97054 13.7291C3.95949 13.3175 3.84743 12.9134 3.64263 12.5467C3.43784 12.18 3.14554 11.8601 2.78736 11.6106C2.3917 11.3246 1.9288 11.1265 1.43515 11.032C1.19972 11.9176 1.04664 12.8199 0.977539 13.7291H3.97054Z","fill","#E66C69"],["d","M38.2974 13.699H36.3185C36.2092 13.699 36.1043 13.6593 36.027 13.5886C35.9497 13.5179 35.9062 13.422 35.9062 13.322V12.3325C35.9062 12.2325 35.9497 12.1367 36.027 12.066C36.1043 11.9953 36.2092 11.9556 36.3185 11.9556H38.2974","fill","#FFE8AC"],["d","M37.1049 1.14184L29.0047 9.17075L25.9046 6.09117C25.4689 5.65989 24.7625 5.65989 24.3268 6.09117C23.8911 6.52245 23.8911 7.22168 24.3268 7.65296L28.2158 11.5024C28.6492 11.9289 29.3491 11.9289 29.7825 11.5024L38.6716 2.70363C39.1073 2.27539 39.1098 1.57862 38.6771 1.14734C38.2445 0.716064 37.5406 0.713602 37.1049 1.14184Z","fill","#229B4B"]],template:function(n,l){n&1&&(dg$1(),Ia$1(0,"svg",0),_D(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13),bf$1());},encapsulation:2});let e=i;return e})();var tg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-new-car-availability-in-transit-badge-svg"]],standalone:false,decls:15,vars:0,consts:[["width","82","height","31","viewBox","0 0 44 21","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M48.9072 9.86402L41.1485 8.19076L34.7853 1.18518H21.3416C15.9533 1.28612 11.9111 6.7349 11.9111 13.8239H49.2968V10.1358C49.2968 9.93778 49.1216 9.92613 48.9072 9.86402Z","fill","#FAD255"],["d","M49.297 17.0599H11.9691L11.9072 13.8298H49.297V17.0599Z","fill","#F3AE0F"],["d","M17.2988 16.4502C17.2996 17.1684 17.5266 17.8703 17.9509 18.4671C18.3753 19.0639 18.978 19.5288 19.683 19.803C20.3879 20.0773 21.1633 20.1485 21.9112 20.0078C22.6591 19.8671 23.3459 19.5207 23.8848 19.0124C24.4237 18.5041 24.7904 17.8568 24.9386 17.1523C25.0869 16.4477 25.01 15.7176 24.7176 15.0542C24.4253 14.3909 23.9306 13.824 23.2962 13.4253C22.6618 13.0267 21.9161 12.8141 21.1534 12.8145C20.1306 12.816 19.1501 13.1997 18.4274 13.8814C17.7047 14.5631 17.2988 15.487 17.2988 16.4502V16.4502Z","fill","#2162B1"],["d","M19.3779 16.4503C19.3783 16.7821 19.4832 17.1063 19.6794 17.382C19.8755 17.6576 20.154 17.8723 20.4797 17.9988C20.8054 18.1253 21.1637 18.158 21.5091 18.0928C21.8546 18.0275 22.1717 17.8673 22.4204 17.6322C22.6691 17.3972 22.8382 17.098 22.9063 16.7725C22.9744 16.4469 22.9384 16.1097 22.8029 15.8034C22.6674 15.4972 22.4385 15.2356 22.1451 15.0519C21.8517 14.8681 21.5071 14.7705 21.1548 14.7712C20.6828 14.7723 20.2305 14.9497 19.8974 15.2645C19.5642 15.5794 19.3774 16.0059 19.3779 16.4503V16.4503Z","fill","#B4DEFF"],["d","M37.1934 16.4502C37.1942 17.1684 37.4211 17.8702 37.8453 18.4669C38.2696 19.0637 38.8722 19.5286 39.577 19.8029C40.2818 20.0771 41.0571 20.1485 41.805 20.0079C42.5528 19.8674 43.2396 19.5212 43.7786 19.0131C44.3175 18.505 44.6844 17.8579 44.8329 17.1534C44.9814 16.449 44.9048 15.719 44.6128 15.0556C44.3207 14.3922 43.8264 13.8252 43.1923 13.4263C42.5581 13.0274 41.8126 12.8145 41.05 12.8145C40.5433 12.8147 40.0416 12.909 39.5735 13.0918C39.1055 13.2747 38.6802 13.5425 38.3221 13.8801C37.964 14.2178 37.68 14.6185 37.4863 15.0595C37.2926 15.5004 37.1931 15.973 37.1934 16.4502Z","fill","#2162B1"],["d","M39.2676 16.4503C39.268 16.782 39.3728 17.106 39.5687 17.3816C39.7647 17.6571 40.043 17.8718 40.3684 17.9984C40.6939 18.1251 41.0519 18.158 41.3972 18.0931C41.7426 18.0281 42.0597 17.8683 42.3
13086 17.6336C42.5575 17.399 42.7269 17.1002 42.7954 16.7749C42.864 16.4496 42.8286 16.1125 42.6937 15.8061C42.5589 15.4998 42.3306 15.238 42.0378 15.0538C41.7449 14.8696 41.4007 14.7712 41.0485 14.7712C40.8145 14.7712 40.5827 14.8147 40.3665 14.8991C40.1503 14.9835 39.9539 15.1072 39.7885 15.2632C39.6231 15.4191 39.4919 15.6042 39.4026 15.8079C39.3132 16.0116 39.2673 16.2299 39.2676 16.4503V16.4503Z","fill","#B4DEFF"],["d","M32.5603 8.82922H30.5918V9.75515H32.5603V8.82922Z","fill","#F3AE0F"],["d","M29.1643 2.74591H23.3535V8.21216H29.1643V2.74591Z","fill","#AEDEFF"],["d","M21.8618 8.21022H15.8984C15.8984 5.73139 17.9185 2.74591 21.8618 2.74591V8.21022Z","fill","#AEDEFF"],["d","M39.4893 8.19275H30.6484V2.7265H34.5257L39.4893 8.19275Z","fill","#AEDEFF"],["d","M14.9705 12.3525C14.9595 11.9286 14.8474 11.5125 14.6426 11.1348C14.4378 10.7572 14.1455 10.4277 13.7874 10.1707C13.3917 9.87613 12.9288 9.67213 12.4351 9.57477C12.1997 10.4869 12.0466 11.4161 11.9775 12.3525H14.9705Z","fill","#E66C69"],["d","M49.2974 12.3215H47.3185C47.2092 12.3215 47.1043 12.2806 47.027 12.2078C46.9497 12.135 46.9062 12.0362 46.9062 11.9333V10.9142C46.9062 10.8112 46.9497 10.7125 47.027 10.6396C47.1043 10.5668 47.2092 10.5259 47.3185 10.5259H49.2974","fill","#FFE8AC"],["d","M7.85909 11.3769H1.14091C0.510804 11.3769 0 10.8448 0 10.1885C0 9.53209 0.510804 9 1.14091 9H7.85909C8.4892 9 9 9.53209 9 10.1885C9 10.8448 8.4892 11.3769 7.85909 11.3769Z","fill","#52B0F0"],["d","M9.01371 13.7534C9.01371 14.4098 8.5029 14.9418 7.87279 14.9418H4.14091C3.5108 14.9418 3 14.4098 3 13.7534C3 13.097 3.5108 12.5649 4.14091 12.5649L7.87279 12.5649C8.5029 12.5649 9.01371 13.097 9.01371 13.7534Z","fill","#52B0F0"]],template:function(n,l){n&1&&(dg$1(),Ia$1(0,"svg",0),_D(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14),bf$1());},encapsulation:2});let e=i;return e})();var ig=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-new-car-availability-available-to-order-modal-svg"]],standalone:false,decls:22,vars:0,consts:[["width","100%","height","auto","viewBox","0 0 326 147","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M47.1826 66.2475L30.0892 69.6241L0.446668 49.7609L16.4653 25.8557L46.1078 45.7189L49.4823 62.8013C56.4868 67.2579 74.8438 77.3746 79.4904 70.4404L81.243 73.383C75.3244 82.2156 56.0875 71.9716 47.1826 66.2475Z","fill","#6BBCF4"],["d","M279.606 86.2503L235.005 76.4501L198.427 35.4189H121.146C90.1715 36.0101 66.9351 67.9233 66.9351 109.443H281.846V87.842C281.846 86.6824 280.839 86.6142 279.606 86.2503Z","fill","#FAD255"],["d","M281.848 128.396H67.2686L66.9131 109.478H281.848V128.396Z","fill","#F3AE0F"],["d","M97.9116 124.825C97.9163 129.032 99.2208 133.143 101.66 136.638C104.1 140.134 107.565 142.857 111.617 144.463C115.669 146.069 120.126 146.486 124.426 145.662C128.725 144.838 132.673 142.809 135.771 139.832C138.868 136.855 140.977 133.064 141.829 128.937C142.681 124.811 142.239 120.535 140.558 116.649C138.878 112.764 136.034 109.444 132.388 107.109C128.741 104.774 124.454 103.529 120.07 103.531C114.19 103.54 108.554 105.788 104.399 109.78C100.245 113.773 97.9116 119.184 97.9116 124.825Z","fill","#2162B1"],["d","M109.855 124.826C109.857 126.769 110.46 128.668 111.588 130.282C112.715 131.897 114.316 133.154 116.188 133.895C118.061 134.636 120.12 134.828 122.106 134.446C124.092 134.063 125.915 133.125 127.344 131.748C128.774 130.372 129.746 128.619 130.137 126.713C130.529 124.806 130.322 122.831 129.543 121.037C128.764 119.243 127.448 117.711 125.762 116.635C124.075 115.559 122.094 114.987 120.069 114.992C117.356 114.998 114.756 116.037 112.841 117.881C110.926 119.725 109.852 122.223 109.855 124.826Z","fill","#B4DEFF"],["d","M212.266 124.825C212.271 129.032 213.575 133.142 216.014 136.637C218.453 140.132 221.917 142.855 225.968 144.462C230.02 146.068 234.477 146.486 238.776 145.663C243.075 144.84 247.023 142.812 250.121 139.836C253.219 136.86 255.328 133.07 256.182 128.944C257.035 124.819 256.595 120.543 254.916 116.657C253.238 112.772 250.396 109.451 246.751 107.114C243.105 104.778 238.82 103.531 234.436 103.531C231.523 103.533 228.639 104.085 225.948 105.155C223.258 106.226 220.813 107.795 218.755 109.773C216.696 111.75 215.063 114.097 213.95 116.68C212.837 119.263 212.265 122.031 212.266 124.825Z","fill","#2162B1"],["d","M224.198 124.826C224.201 126.768 224.803 128.666 225.93 130.28C227.056 131.894 228.656 133.151 230.527 133.893C232.398 134.635 234.456 134.828 236.441 134.447C238.426 134.067 240.249 133.131 241.68 131.756C243.11 130.382 244.084 128.632 244.478 126.727C244.872 124.822 244.669 122.847 243.894 121.053C243.118 119.259 241.806 117.725 240.123 116.646C238.44 115.567 236.461 114.992 234.436 114.992C233.091 114.992 231.759 115.246 230.516 115.74C229.273 116.235 228.144 116.959 227.193 117.873C226.242 118.786 225.488 119.87 224.974 121.063C224.461 122.256 224.197 123.535 224.198 124.826Z","fill","#B4DEFF"],["d","M185.641 80.1908H174.325V85.6138H185.641V80.1908Z","fill","#F3AE0F"],["d","M166.116 44.5599H132.713V76.5754H166.116V44.5599Z","fill","#AEDEFF"],["d","M124.133 76.5641H89.853C89.853 62.0457 101.465 44.5599 124.133 44.5599V76.5641Z","fill","#AEDEFF"],["d","M225.469 76.4619H174.648V44.4464H196.936L225.469 76.4619Z","fill","#AEDEFF"],["d","M84.5177 100.825C84.4542 98.3426 83.81 95.9052 82.6327 93.6933C81.4555 91.4814 79.7752 89.5516 77.7162 88.0465C75.4418 86.3213 72.7808 85.1265 69.943 84.5562C68.5897 89.8984 67.7097 95.3409 67.3125 100.825H84.5177Z","fill","#E66C69"],["d","M281.848 100.643H270.473C269.844 100.643 269.242 100.404 268.797 99.9775C268.353 99.5511 268.103 98.9727 268.103 98.3696V92.4008C268.103 91.7978 268.353 9
131.2194 268.797 90.793C269.242 90.3666 269.844 90.127 270.473 90.127H281.848","fill","#FFB9AC"],["d","M321.938 16.4615L286.309 6.91467C283.914 6.27283 281.452 7.69111 280.812 10.0825L267.834 58.5177C267.193 60.9091 268.615 63.368 271.011 64.0098L306.64 73.5567C309.035 74.1985 311.496 72.7802 312.137 70.3888L325.115 21.9536C325.756 19.5622 324.334 17.1033 321.938 16.4615Z","fill","#EB9600"],["d","M320.443 21.2406L285.215 11.8013L272.506 59.2307L307.734 68.6701L320.443 21.2406Z","fill","#FFF4D1"],["d","M296.42 7.65872L312.81 12.0505C313.149 12.1413 313.467 12.2979 313.745 12.5113C314.024 12.7247 314.257 12.9907 314.433 13.2942C314.609 13.5977 314.723 13.9327 314.768 14.28C314.814 14.6274 314.791 14.9803 314.701 15.3187L313.253 20.7212L291.701 14.9463L293.148 9.54379C293.332 8.86043 293.779 8.27791 294.393 7.92439C295.006 7.57088 295.735 7.47531 296.42 7.65872Z","fill","#FFC041"],["d","M305.809 5.40509C306.774 5.66357 307.597 6.29406 308.096 7.15784C308.596 8.02162 308.732 9.04794 308.474 10.011L307.501 13.6423L300.226 11.6931L301.199 8.06176C301.457 7.09868 302.088 6.27773 302.952 5.7795C303.817 5.28128 304.845 5.1466 305.809 5.40509V5.40509Z","fill","#FFC041"],["d","M308.991 35.4786L290.007 46.475L285.822 39.1848C285.233 38.1631 283.928 37.8134 282.907 38.4038C281.887 38.9942 281.536 40.3011 282.125 41.3228L287.382 50.4424C287.969 51.454 289.262 51.8004 290.276 51.2179L311.103 39.173C312.123 38.5883 312.476 37.2873 311.893 36.2671C311.31 35.2469 310.011 34.8938 308.991 35.4786Z","fill","#229B4B"],["d","M66.1094 1.67253L65.4121 4.69817C65.2167 5.54792 64.809 6.33408 64.2273 6.98296C63.6456 7.63184 62.9089 8.12219 62.0862 8.40808L60.7847 8.86193C60.4481 8.97855 60.1561 9.19736 59.9495 9.4879C59.7429 9.77845 59.6318 10.1263 59.6318 10.483C59.6318 10.8397 59.7429 11.1875 59.9495 11.4781C60.1561 11.7686 60.4481 11.9874 60.7847 12.104L62.0746 12.5532C62.8995 12.8403 63.6379 13.3326 64.2205 13.9841C64.8031 14.6355 65.2108 15.4245 65.4052 16.2771L66.1024 19.3842C66.5068 21.167 69.0448 21.167 69.4469 19.3842L70.1441 16.2771C70.3385 15.4245 70.7461 14.6355 71.3287 13.9841C71.9113 13.3326 72.6498 12.8403 73.4746 12.5532L74.7669 12.104C75.1024 11.9863 75.3932 11.7671 75.5989 11.4767C75.8046 11.1863 75.915 10.839 75.915 10.483C75.915 10.1269 75.8046 9.77969 75.5989 9.48928C75.3932 9.19887 75.1024 8.97964 74.7669 8.86193L73.463 8.40808C72.6406 8.12181 71.9041 7.63133 71.3225 6.98252C70.7408 6.3337 70.333 5.54774 70.1371 4.69817L69.4399 1.67253C69.0425 -0.100966 66.5161 -0.100965 66.1094 1.67253Z","fill","#FFC041"],["d","M94.5552 14.81L94.049 17.0067C93.9071 17.6236 93.6112 18.1943 93.1888 18.6654C92.7665 19.1365 92.2316 19.4925 91.6344 19.7001L90.6895 20.0296C90.4451 20.1143 90.2331 20.2731 90.0831 20.4841C89.9331 20.695 89.8524 20.9475 89.8524 21.2065C89.8524 21.4655 89.9331 21.718 90.0831 21.929C90.2331 22.1399 90.4451 22.2988 90.6895 22.3834L91.626 22.7095C92.2248 22.9179 92.7609 23.2754 93.1839 23.7484C93.6069 24.2213 93.9029 24.7942 94.044 25.4131L94.5502 27.6689C94.8438 28.9633 96.6864 28.9633 96.9783 27.6689L97.4845 25.4131C97.6256 24.7942 97.9216 24.2213 98.3446 23.7484C98.7676 23.2754 99.3037 22.9179 99.9026 22.7095L100.841 22.3834C101.084 22.298 101.295 22.1388 101.445 21.928C101.594 21.7171 101.674 21.465 101.674 21.2065C101.674 20.948 101.594 20.6959 101.445 20.4851C101.295 20.2742 101.084 20.1151 100.841 20.0296L99.8941 19.7001C99.297 19.4923 98.7623 19.1362 98.34 18.6651C97.9177 18.1941 97.6217 17.6235 97.4795 17.0067L96.9733 14.81C96.6847 13.5224 94.8505 13.5224 94.5552 14.81Z","fill","#FFC041"],["d","M40.6559 86.6131L40.1775 88.6887C40.0435 89.2717 39.7638 89.811 39.3647 90.2562C38.9656 90.7013 38.4603 91.0377 37.8959 91.2338L37.003 91.5452C36.7721 91.6252 36.5718 91.7753 36.43 91.9746C36.2883 92.1739 36.2121 92.4126 36.2121 92.6573C36.2121 92.902 36.2883 93.1406 36.43 93.3399C36.5718 93.5392 36.7721 93.6893 37.003 93.7693L37.8879 94.0775C38.4538 94.2744 38.9604 94.6122 39.3601 95.0591C39.7598 95.506 40.0394 96.0473 40.1728 96.6322L40.6511 98.7637C40.9285 99.9868 42.6696 99.9868 42.9455 98.7637L43.4238 96.6322C43.5571 96.0473 43.8368 95.506 44.2365 95.0591C44.6362 94.6122 45.1428 94.2744 45.7086 94.0775L46.5951 93.7693C46.8253 93.6886 47.0248 93.5382 47.1659 93.339C47.307 93.1397 47.3828 92.9015 47.3828 92.6573C47.3828 92.413 47.307 92.1748 47.1659 91.9756C47.0248 91.7763 46.8253 91.6259 46.5951 91.5452L45.7007 91.2338C45.1365 91.0374 44.6312 90.701 44.2322 90.2558C43.8332 89.8107 43.5534 89.2716 43.419 88.6887L42.9407 86.6131C42.668 85.3964 40.9349 85.3964 40.6559 86.6131Z","fill","#F3AE0F"]],template:function(n,l){n&1&&(dg$1(),Ia$1(0,"svg",0),_D(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"path",18)(19,"path",19)(20,"path",20)(21,"path",21),bf$1());},encapsulation:2});let e=i;return e})();var ng=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-new-car-availability-in-transit-modal-svg"]],standalone:false,decls:28,vars:0,consts:[["width","100%","height","auto","viewBox","0 0 282 94","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.82983 43.6803L56 43.6803","stroke","#52B0F0","stroke-width","6","stroke-linecap","round"],["d","M18.6551 58.0001L56 58","stroke","#52B0F0","stroke-width","6","stroke-linecap","round"],["d","M43 29L56 29","stroke","#52B0F0","stroke-width","6","stroke-linecap","round"],["d","M191.936 24.1226L170.77 19.4718L153.411 0H116.736C102.037 0.280559 91.01 15.4253 91.01 35.1292H192.998V24.878C192.998 24.3277 192.52 24.2953 191.936 24.1226Z","fill","#FAD255"],["d","M193 44.1234H91.1687L91 35.1455H193V44.1234Z","fill","#F3AE0F"],["d","M105.711 42.4289C105.714 44.4252 106.333 46.3761 107.49 48.0348C108.648 49.6936 110.292 50.9858 112.215 51.748C114.138 52.5102 116.254 52.7083 118.294 52.3171C120.334 51.926 122.208 50.9631 123.678 49.5504C125.148 48.1377 126.148 46.3384 126.553 44.3802C126.957 42.4219 126.747 40.3926 125.95 38.5488C125.
13152 36.7049 123.803 35.1294 122.072 34.0213C120.342 32.9132 118.307 32.3223 116.227 32.3234C113.436 32.3277 110.762 33.3942 108.79 35.2889C106.819 37.1836 105.711 39.7515 105.711 42.4289V42.4289Z","fill","#2162B1"],["d","M111.378 42.4292C111.379 43.3514 111.665 44.2526 112.2 45.0187C112.736 45.7848 113.495 46.3814 114.384 46.7331C115.272 47.0848 116.25 47.1757 117.192 46.9944C118.134 46.813 119 46.3675 119.678 45.7143C120.357 45.0611 120.818 44.2295 121.004 43.3246C121.189 42.4198 121.091 41.4825 120.722 40.6312C120.352 39.7799 119.727 39.0529 118.927 38.5422C118.127 38.0315 117.187 37.7601 116.225 37.7622C114.938 37.7651 113.704 38.2582 112.795 39.1333C111.886 40.0084 111.377 41.1938 111.378 42.4292V42.4292Z","fill","#B4DEFF"],["d","M159.979 42.4289C159.982 44.425 160.601 46.3756 161.758 48.0343C162.915 49.6929 164.559 50.9851 166.482 51.7475C168.405 52.5099 170.52 52.7082 172.56 52.3175C174.6 51.9268 176.474 50.9645 177.944 49.5523C179.414 48.1401 180.415 46.3414 180.82 44.3835C181.225 42.4256 181.016 40.3965 180.22 38.5525C179.423 36.7086 178.074 35.1326 176.345 34.0239C174.615 32.9151 172.581 32.3234 170.501 32.3234C169.118 32.3241 167.749 32.586 166.473 33.0943C165.196 33.6025 164.036 34.3471 163.059 35.2854C162.082 36.2238 161.307 37.3376 160.779 38.5633C160.25 39.789 159.979 41.1025 159.979 42.4289Z","fill","#2162B1"],["d","M165.642 42.4292C165.643 43.3509 165.929 44.2517 166.463 45.0176C166.998 45.7835 167.757 46.3801 168.645 46.7321C169.533 47.0841 170.51 47.1756 171.452 46.9952C172.394 46.8147 173.259 46.3703 173.938 45.7181C174.617 45.066 175.079 44.2354 175.266 43.3313C175.453 42.4271 175.356 41.4901 174.988 40.6386C174.621 39.7872 173.998 39.0594 173.199 38.5475C172.4 38.0355 171.461 37.7622 170.5 37.7622C169.862 37.7622 169.23 37.883 168.64 38.1176C168.05 38.3522 167.514 38.696 167.063 39.1295C166.612 39.5629 166.254 40.0774 166.01 40.6436C165.766 41.2098 165.641 41.8166 165.642 42.4292V42.4292Z","fill","#B4DEFF"],["d","M147.344 21.2471H141.974V23.8207H147.344V21.2471Z","fill","#F3AE0F"],["d","M138.078 4.33801H122.226V19.5313H138.078V4.33801Z","fill","#AEDEFF"],["d","M118.154 19.526H101.886C101.886 12.6361 107.397 4.33801 118.154 4.33801V19.526Z","fill","#AEDEFF"],["d","M166.245 19.4774H142.127V4.28406H152.704L166.245 19.4774Z","fill","#AEDEFF"],["d","M99.3541 31.0395C99.324 29.8612 99.0183 28.7045 98.4596 27.6548C97.9009 26.6052 97.1035 25.6894 96.1264 24.9751C95.047 24.1564 93.7843 23.5893 92.4376 23.3187C91.7953 25.8539 91.3777 28.4367 91.1892 31.0395H99.3541Z","fill","#E66C69"],["d","M193 30.953H187.602C187.304 30.953 187.018 30.8393 186.807 30.6369C186.596 30.4346 186.477 30.1601 186.477 29.8739V27.0414C186.477 26.7552 186.596 26.4807 186.807 26.2783C187.018 26.076 187.304 25.9623 187.602 25.9623H193","fill","#FFE8AC"],["d","M275 37.9159V71.4724C274.997 72.6726 274.322 73.8231 273.123 74.6718C271.923 75.5205 270.298 75.9981 268.602 76L80.0771 74.8587C78.4643 74.8568 76.9185 74.4021 75.779 73.5944C74.6395 72.7867 73.9995 71.6921 73.9995 70.5508V36.7746L198.566 37.9159V2H244.632L275 37.9159Z","fill","#007ACD"],["d","M266 39H217.5V8H241L266 39Z","fill","#AEDEFF"],["d","M274.999 67.8927V71.5108C274.997 72.7877 274.457 74.0117 273.497 74.914C272.538 75.8162 271.237 76.323 269.88 76.323H127.082C125.924 76.3211 124.814 75.8867 123.996 75.1151C123.178 74.3434 122.718 73.2977 122.718 72.2074V67.8927H131.024C132.22 62.7938 135.23 58.2321 139.555 54.9622C143.879 51.6923 149.26 49.9099 154.807 49.9099C160.354 49.9099 165.734 51.6923 170.059 54.9622C174.384 58.2321 177.393 62.7938 178.59 67.8927H216.681C217.878 
1362.7938 220.888 58.2321 225.212 54.9622C229.537 51.6923 234.918 49.9099 240.465 49.9099C246.011 49.9099 251.392 51.6923 255.717 54.9622C260.041 58.2321 263.051 62.7938 264.248 67.8927H274.999Z","fill","#006EBD"],["d","M171.809 73.3589C171.809 76.5193 170.814 79.6087 168.949 82.2364C167.084 84.8642 164.433 86.9123 161.332 88.1217C158.23 89.3311 154.818 89.6476 151.525 89.031C148.233 88.4144 145.209 86.8926 142.835 84.6579C140.461 82.4231 138.845 79.5759 138.19 76.4763C137.535 73.3766 137.871 70.1638 139.156 67.2439C140.44 64.3241 142.616 61.8285 145.407 60.0727C148.198 58.3169 151.48 57.3798 154.837 57.3798C157.066 57.3788 159.273 57.7915 161.333 58.5942C163.393 59.3969 165.264 60.5739 166.84 62.0579C168.417 63.5418 169.667 65.3037 170.52 67.2428C171.372 69.1819 171.81 71.2602 171.809 73.3589","fill","#00569E"],["d","M162.697 73.3588C162.699 74.8243 162.239 76.2573 161.375 77.4764C160.511 78.6956 159.282 79.646 157.844 80.2075C156.406 80.7689 154.824 80.9162 153.297 80.6307C151.77 80.3451 150.368 79.6395 149.267 78.6033C148.166 77.567 147.417 76.2466 147.113 74.8092C146.81 73.3717 146.967 71.8819 147.563 70.5282C148.159 69.1745 149.169 68.0178 150.464 67.2045C151.759 66.3912 153.281 65.9578 154.838 65.9592C156.922 65.9592 158.921 66.7388 160.395 68.1265C161.869 69.5142 162.697 71.3963 162.697 73.3588","fill","#AEDEFF"],["d","M257.459 73.3589C257.459 76.5193 256.464 79.6087 254.599 82.2364C252.734 84.8642 250.083 86.9123 246.982 88.1217C243.88 89.3311 240.468 89.6476 237.175 89.031C233.883 88.4144 230.858 86.8926 228.485 84.6579C226.111 82.4231 224.494 79.5759 223.84 76.4763C223.185 73.3766 223.521 70.1638 224.805 67.2439C226.09 64.3241 228.266 61.8285 231.057 60.0727C233.848 58.3169 237.129 57.3798 240.486 57.3798C242.716 57.3788 244.923 57.7915 246.983 58.5942C249.043 59.3969 250.914 60.5739 252.49 62.0579C254.067 63.5418 255.317 65.3037 256.169 67.2428C257.022 69.1819 257.46 71.2602 257.459 73.3589","fill","#00569E"],["d","M248.348 73.3589C248.349 74.8245 247.889 76.2574 247.025 77.4766C246.161 78.6957 244.932 79.6461 243.494 80.2076C242.056 80.7691 240.474 80.9163 238.947 80.6308C237.42 80.3452 236.018 79.6397 234.917 78.6034C233.816 77.5671 233.067 76.2467 232.764 74.8093C232.46 73.3719 232.617 71.882 233.213 70.5284C233.81 69.1747 234.819 68.018 236.114 67.2046C237.409 66.3913 238.931 65.9579 240.488 65.9594C242.572 65.9594 244.571 66.739 246.045 68.1267C247.519 69.5143 248.348 71.3965 248.348 73.3589","fill","#AEDEFF"],["d","M274.985 44.3505C273.367 44.3505 271.815 44.9556 270.671 46.0327C269.527 47.1098 268.884 48.5706 268.884 50.0939C268.884 51.6171 269.527 53.078 270.671 54.155C271.815 55.2321 273.367 55.8372 274.985 55.8372V44.3505Z","fill","#FFC041"],["d","M226.554 42H218V44.5163H226.554V42Z","fill","#0061AF"],["d","M84.9995 54.9815C84.9546 53.3061 84.5409 51.6621 83.7886 50.1701C83.0364 48.6782 81.9648 47.376 80.6524 46.3591C79.2033 45.1842 73.9995 44 73.9995 44V55L84.9995 54.9815Z","fill","#FFC041"],["d","M259.149 89.0658H69V93.7342H259.149V89.0658Z","fill","#007ACD"],["d","M281.911 89.0658H264.784V93.7342H281.911V89.0658Z","fill","#007ACD"]],template:function(n,l){n&1&&(dg$1(),Ia$1(0,"svg",0),_D(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"path",18)(19,"path",19)(20,"path",20)(21,"path",21)(22,"path",22)(23,"path",23)(24,"path",24)(25,"path",25)(26,"path",26)(27,"path",27),bf$1());},encapsulation:2});let e=i;return e})();var mo=(function(e){return e.enquiry_button_clicked="motors_nclp_availability_enquiry_click",e.learn_more_badge_clicked="motors_nclp_availability_learn_click",e})(mo||{});function J2(e,i){e&1&&(Mf(0),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"In transit"),bf$1()(),Ia$1(4,"tg-modal-body"),_D(5,"tm-new-car-availability-in-transit-modal-svg",7),Ia$1(6,"p"),Qx$1(7,"This vehicle is now in transit and is available to buy from the dealer."),bf$1(),Ia$1(8,"p"),Qx$1(9," It is headed towards the dealership and can take up to 8 weeks to arrive on average, depending on when it was sent. This number is indicative only and is subject to change. "),_D(10,"br"),Qx$1(11," Please contact the dealer to find out more information about the vehicle status and specific delivery details. "),bf$1(),Ia$1(12,"p"),Qx$1(13,"Note that Trade Me has no influence over delivery times."),bf$1()(),Ja$2());}function X2(e,i){e&1&&(Mf(0),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Available to order"),bf$1()(),Ia$1(4,"tg-modal-body"),_D(5,"tm-new-car-availability-available-to-order-modal-svg",7),Ia$1(6,"p"),Qx$1(7,"This vehicle is now available to order from the dealer, and is currently with the manufacturer."),bf$1(),Ia$1(8,"p"),Qx$1(9," Contact the dealer to reserve with a deposit and to learn about customistation, delivery options, production and shipping updates. "),bf$1(),Ia$1(10,"p"),Qx$1(11,"Note that Trade Me has no influence over delivery times."),bf$1()(),Ja$2());}function ev(e,i){if(e&1&&(Mf(0),iD(1,J2,14,0,"ng-container",1)(2,X2,12,0,"ng-container",1),Ja$2()),e&2){let o=i.ngIf,t=yx$1();X_$1(),TD("ngIf",o===t.newCarAvailabilityEnum.inTransit),X_$1(),TD("ngIf",o===t.newCarAvailabilityEnum.availableToOrder);}}function tv(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",9),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.closeContactSellerModal())}),bf$1();}if(e&2){let o=yx$1().ngIf;TD("selectedSubject",o);}}function iv(e,i){if(e&1&&(Mf(0),iD(1,tv,1,1,"tm-contact-seller-modal",8),Ja$2()),e&2){let o=yx$1();X_$1(),TD("ngIf",o.shouldDisplayContactSellerModal);}}var og=(()=>{let i=class i{constructor(t,n,l){this._listingFacade=t,this._analyticsService=n,this._mediaSizeFacade=l,this.close=new Pt,this.newCarAvailabilityEnum=L$2,this.enquiryType=ie$1,this.shouldDisplayContactSellerModal=false,this.newCarAvailabilityAnalyticsEventEnum=mo;}
13ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!t.isLoading),Fe(t=>t.item)),this.newCarAvailability$=this.listing$.pipe(Fe(t=>t?.newCarInformation?.availability)),this.enquirySubject$=this.newCarAvailability$.pipe(Fe(t=>this.mapAvailabilityToEnquirySubject(t))),this.isMdOrGreater$=this._mediaSizeFacade.is.md$.or.greater$;}mapAvailabilityToEnquirySubject(t){switch(t){case L$2.inTransit:return ie$1.inTransit;case L$2.availableToOrder:return ie$1.availableToOrder;default:return ie$1.general}}openContactSellerModal(){this._analyticsService.addEvent(this.newCarAvailabilityAnalyticsEventEnum.enquiry_button_clicked),this.shouldDisplayContactSellerModal=true;}closeContactSellerModal(){this.shouldDisplayContactSellerModal=false,this.close.emit();}closeModal(){this.close.emit();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(De),R$2(G))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-new-car-availability-modal"]],outputs:{close:"close"},standalone:false,decls:12,vars:9,consts:[["size","wide",3,"close"],[4,"ngIf"],[1,"tm-motors-new-car-availability-modal__footer"],[1,"tm-motors-new-car-availability-modal__dealer-phone-button"],["displayAsButton","true","buttonStyle","inverted",3,"close","displayShortText"],[1,"tm-motors-new-car-availability-modal__contact-seller-button"],["tgButton2","","fullWidth","","tgStyle","primary",3,"click"],[1,"tm-motors-new-car-availability-modal__illustration"],[3,"selectedSubject","close",4,"ngIf"],[3,"close","selectedSubject"]],template:function(n,l){n&1&&(Ia$1(0,"tg-modal",0),kD("close",function(){return l.closeModal()}),iD(1,ev,3,2,"ng-container",1),yA(2,"async"),Ia$1(3,"tg-modal-footer",2)(4,"div",3)(5,"tm-dealer-phone-button",4),yA(6,"async"),kD("close",function(){return l.closeModal()}),bf$1()(),Ia$1(7,"div",5)(8,"button",6),kD("click",function(){return l.openContactSellerModal()}),Qx$1(9," Email dealer "),bf$1(),iD(10,iv,2,1,"ng-container",1),yA(11,"async"),bf$1()()()),n&2&&(X_$1(),TD("ngIf",DA$1(2,3,l.newCarAvailability$)),X_$1(4),TD("displayShortText",!DA$1(6,5,l.isMdOrGreater$)),X_$1(5),TD("ngIf",DA$1(11,7,l.enquirySubject$)));},dependencies:[mO,Hr,jb$1,Bb$1,Lb$1,Kt,rh$1,He,ng,ig,bO],styles:[".tm-motors-new-car-availability-modal__illustration[_ngcontent-%COMP%]{display:block;margin:8px 80px 32px 24px;max-width:310px}@media(max-width:767px){.tm-motors-new-car-availability-modal__illustration[_ngcontent-%COMP%]{margin:8px 80px 32px 8px}}.tm-motors-new-car-availability-modal__footer[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding-top:16px;margin-bottom:8px}.tm-motors-new-car-availability-modal__dealer-phone-button[_ngcontent-%COMP%]{margin-right:8px}.tm-motors-new-car-availability-modal__contact-seller-button[_ngcontent-%COMP%]{margin-left:8px}"]});let e=i;return e})();var rg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Hb$1,Tt,Ja$1,He]});let e=i;return e})();function ov(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",4),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.openNewCarAvailabilityModal())}),Ia$1(1,"div",5)(2,"div",6),Qx$1(3,"In transit"),bf$1(),Ia$1(4,"div",7),Qx$1(5,"Find out more"),bf$1()(),Ia$1(6,"div",8),_D(7,"tm-new-car-availability-in-transit-badge-svg",9),bf$1()();}}function rv(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",4),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.openNewCarAvailabilityModal())}),Ia$1(1,"div",5)(2,"div",6),Qx$1(3,"Available to order"),bf$1(),Ia$1(4,"div",7),Qx$1(5,"Find out more"),bf$1()(),Ia$1(6,"div",8),_D(7,"tm-new-car-availability-available-to-order-badge-svg",9),bf$1()();}}function av(e,i){if(e&1&&(Mf(0,2),iD(1,ov,8,0,"button",3)(2,rv,8,0,"button",3),Ja$2()),e&2){let o=i.ngIf,t=yx$1();TD("ngSwitch",o),X_$1(),TD("ngSwitchCase",t.newCarAvailabilityEnum.inTransit),X_$1(),TD("ngSwitchCase",t.newCarAvailabilityEnum.availableToOrder);}}function sv(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-motors-new-car-availability-modal",10),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeNewCarAvailabilityModal())}),bf$1();}}var cs=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._analyticsService=n,this.shouldDisplayNewCarAvailabilityModal=false,this.newCarAvailabilityEnum=L$2,this.newCarAvailabilityAnalyticsEventEnum=mo;}
13ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!t.isLoading),Fe(t=>t.item)),this.newCarAvailability$=this.listing$.pipe(Fe(t=>t?.newCarInformation?.availability));}openNewCarAvailabilityModal(){this._analyticsService.addEvent(this.newCarAvailabilityAnalyticsEventEnum.learn_more_badge_clicked),this.shouldDisplayNewCarAvailabilityModal=true;}closeNewCarAvailabilityModal(){this.shouldDisplayNewCarAvailabilityModal=false;}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(De))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-new-car-availability-badge"]],standalone:false,decls:3,vars:4,consts:[[3,"ngSwitch",4,"ngIf"],[3,"close",4,"ngIf"],[3,"ngSwitch"],["class","tm-motors-new-car-availability-badge__container",3,"click",4,"ngSwitchCase"],[1,"tm-motors-new-car-availability-badge__container",3,"click"],[1,"tm-motors-new-car-availability-badge__title-container"],[1,"tm-motors-new-car-availability-badge__title"],[1,"tm-motors-new-car-availability-badge__subtitle"],[1,"tm-motors-new-car-availability-badge__illustration-container"],[1,"tm-motors-new-car-availability-badge__icon"],[3,"close"]],template:function(n,l){n&1&&(iD(0,av,3,3,"ng-container",0),yA(1,"async"),iD(2,sv,1,0,"tm-motors-new-car-availability-modal",1)),n&2&&(TD("ngIf",DA$1(1,2,l.newCarAvailability$)),X_$1(2),TD("ngIf",l.shouldDisplayNewCarAvailabilityModal));},dependencies:[mO,Ip,yO,og,tg,eg,bO],styles:[".tm-motors-new-car-availability-badge__container[_ngcontent-%COMP%]{border:none;border-radius:8px;display:flex;grid-template-columns:24px 1fr 48px 12px auto 12px 1fr 48px 24px;grid-template-rows:auto auto;margin-top:-8px;margin-bottom:16px;padding:24px;width:100%;justify-content:space-between;align-items:flex-end;background-color:#f3fff6}@media(min-width:768px)and (max-width:1023px){.tm-motors-new-car-availability-badge__container[_ngcontent-%COMP%]{grid-template-columns:12px 1fr 48px 12px auto 12px 1fr 48px 12px}}.tm-motors-new-car-availability-badge__title-container[_ngcontent-%COMP%]{text-align:left}.tm-motors-new-car-availability-badge__title[_ngcontent-%COMP%]{color:#44413d;font-size:18px;font-weight:500;grid-area:1/5}.tm-motors-new-car-availability-badge__subtitle[_ngcontent-%COMP%]{color:#007acd;font-weight:500;grid-row:2;grid-column:1/span 9}.tm-motors-new-car-availability-badge__illustration-container[_ngcontent-%COMP%]{height:34px}.tm-motors-new-car-availability-badge__icon[_ngcontent-%COMP%]{grid-area:1/3;height:24px}"]});let e=i;return e})();var ds=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Hb$1,we,rg]});let e=i;return e})();function lv(e,i){if(e&1&&(Ia$1(0,"a",5),yA(1,"async"),_D(2,"img",6),bf$1()),e&2){let o=yx$1(),t=yx$1();TD("routerLink",i)("trackingId",t.dealerShowroomTrackingId)("data",DA$1(1,4,t.gtmData$)),X_$1(2),TD("src",o.logo,Ry$1);}}function mv(e,i){if(e&1&&(Ia$1(0,"div",3),yA(1,"dealershipColor"),Ia$1(2,"div",4),JN(3,lv,3,6,"a",5),yA(4,"async"),bf$1()()),e&2){let o,t=yx$1();Xa$1("background-color",DA$1(1,3,i.backgroundColour)),X_$1(3),XN((o=DA$1(4,5,t.moreListingsLink$))?3:-1,o);}}function cv(e,i){e&1&&_D(0,"tm-motors-consumer-finance-summary")(1,"tm-motors-dealer-finance-summary");}function dv(e,i){e&1&&_D(0,"tm-dealer-site-link");}var lg=(()=>{let i=class i{constructor(t,n,l,C,I){this._listingFacade=t,this._motorsListingService=n,this._dealershipService=l,this._motorsGtmService=C,this._categoryService=I,this.dealerShowroomTrackingId=q$1;}ngOnInit(){let t=this._listingFacade.getCurrentListing().pipe(Xt(n=>!!n&&!!n.item&&!n.isLoading),Fe(n=>n.item),o());this.isCarCategory$=t.pipe(Fe(n=>this._categoryService.isUsedCars(R$3(n.category)))),this.dealership$=t.pipe(Fe(n=>n?.dealership)),this.dealershipBranding$=t.pipe(Fe(n=>this.getDealershipBranding(n))),this.isPremium$=t.pipe(Fe(n=>this._motorsListingService.isPremium(n))),this.moreListingsLink$=this.dealership$.pipe(Fe(n=>this._dealershipService.getMoreListingsLink(n))),this.gtmData$=this._listingFacade.getCurrentListing().pipe(Xt(n=>!!n&&!!n.item),Fe(n=>this._motorsGtmService.getGtmData("click",n.item)));}getDealershipBranding(t){return this._motorsListingService.isPremium(t)?t?.dealership?.showroom:null}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(qe),R$2(s),R$2($$1),R$2(P))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-contact-box"]],standalone:false,decls:12,vars:13,consts:[[1,"tm-motors-listing-contact-box__card"],[1,"tm-motors-listing-contact-box__branding",3,"background-color"],[1,"tm-motors-listing-contact-box__section"],[1,"tm-motors-listing-contact-box__branding"],[1,"tm-motors-listing-contact-box__image"],["tmTrackCustomClick","",3,"routerLink","trackingId","data"],["alt","The dealers logo",1,"tm-motors-listing-contact-box__branding-image",3,"src"]],template:function(n,l){if(n&1&&(Ia$
131(0,"tg-card",0),yA(1,"async"),JN(2,mv,5,7,"div",1),yA(3,"async"),Ia$1(4,"div",2),_D(5,"tm-auction-pricing-box")(6,"tm-motors-new-car-availability-badge")(7,"tm-dealer-contact-panel"),bf$1(),JN(8,cv,2,0),yA(9,"async"),bf$1(),JN(10,dv,1,0,"tm-dealer-site-link"),yA(11,"async")),n&2){let C;zD("tm-motors-listing-contact-box__premium",DA$1(1,5,l.isPremium$)),X_$1(2),XN((C=DA$1(3,7,l.dealershipBranding$))?2:-1,C),X_$1(6),XN(DA$1(9,9,l.isCarCategory$)?-1:8),X_$1(2),XN(DA$1(11,11,l.isCarCategory$)?10:-1);}},dependencies:[Q_,J0,aV,Vi,rn,qt,cs,p,Ri,bO,At$1],styles:["tm-contact-box[_nghost-%COMP%]{position:relative;z-index:2;display:block;max-width:380px}@media(min-width:960px){tm-contact-box[_nghost-%COMP%]{min-width:325px}}.tm-motors-listing-contact-box__card[_ngcontent-%COMP%]{overflow:hidden;border:1px solid #d7d5d2;background:#fff;border-radius:6px}.tm-motors-listing-contact-box__branding[_ngcontent-%COMP%]{height:60px;border-bottom:1px solid #d7d5d2}.tm-motors-listing-contact-box__image[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.tm-motors-listing-contact-box__branding-image[_ngcontent-%COMP%]{max-width:180px;max-height:100%}.tm-motors-listing-contact-box__section[_ngcontent-%COMP%]{padding:24px 16px}.tm-motors-listing-contact-box__orc[_ngcontent-%COMP%]{border-bottom:#d7d5d2 1px solid;margin-bottom:16px}.tm-motors-listing-contact-box__premium[_ngcontent-%COMP%]{margin-top:-165px}@media(min-width:768px){.tm-motors-listing-contact-box__premium[_ngcontent-%COMP%]{margin-top:-148px}}"]});let e=i;return e})();var mg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,Fi,Gt,X_,Gn,X0,yV,Ai,Ge$1,eu,Ht,R,ds,g,Ri]});let e=i;return e})();function gv(e,i){if(e&1&&(Ia$1(0,"a",3),yA(1,"async"),_D(2,"img",4),bf$1()),e&2){let o=i.ngIf,t=yx$1().ngIf,n=yx$1();TD("routerLink",o)("trackingId",n.dealerShowroomTrackingId)("data",DA$1(1,4,n.gtmData$)),X_$1(2),TD("src",t.logo,Ry$1);}}function _v(e,i){if(e&1&&(Ia$1(0,"div",1),yA(1,"dealershipColor"),iD(2,gv,3,6,"a",2),yA(3,"async"),bf$1()),e&2){let o=i.ngIf,t=yx$1();Xa$1("background-color",DA$1(1,3,o.backgroundColour)),X_$1(2),TD("ngIf",DA$1(3,5,t.moreListingsLink$));}}var cg=(()=>{let i=class i{constructor(t,n,l,C){this._listingFacade=t,this._motorsListingService=n,this._dealershipService=l,this._motorsGtmService=C,this.dealerShowroomTrackingId=q$1;}ngOnInit(){let t=this._listingFacade.getCurrentListing().pipe(Xt(n=>!!n&&!!n.item&&!n.isLoading),Fe(n=>n.item),o());this.dealership$=t.pipe(Fe(n=>n?.dealership)),this.moreListingsLink$=t.pipe(Fe(n=>this._dealershipService.getMoreListingsLink(n?.dealership))),this.dealershipBranding$=t.pipe(Fe(n=>this.getDealershipBranding(n))),this.gtmData$=this._listingFacade.getCurrentListing().pipe(Xt(n=>!!n&&!!n.item),Fe(n=>this._motorsGtmService.getGtmData("click",n.item)));}getDealershipBranding(t){return this._motorsListingService.isPremium(t)?t?.dealership?.showroom:null}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(qe),R$2(s),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-branding-mobile"]],standalone:false,decls:2,vars:3,consts:[["class","tm-dealer-branding-mobile",3,"background-color",4,"ngIf"],[1,"tm-dealer-branding-mobile"],["tmTrackCustomClick","",3,"routerLink","trackingId","data",4,"ngIf"],["tmTrackCustomClick","",3,"routerLink","trackingId","data"],["alt","The dealers logo",1,"tm-dealer-branding-mobile__image",3,"src"]],template:function(n,l){n&1&&(iD(0,_v,4,7,"div",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.dealershipBranding$));},dependencies:[mO,rn,p,bO,At$1],styles:["tm-dealer-branding-mobile[_nghost-%COMP%]{display:block}.tm-dealer-branding-mobile[_ngcontent-%COMP%]{height:60px}.tm-dealer-branding-mobile__image[_ngcontent-%COMP%]{display:block;max-width:100%;height:60px;margin:auto}"]});let e=i;return e})();var dg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Ge$1,eu,g]});let e=i;return e})();function fv(e,i){if(e&1&&(Mf(0),Ia$1(1,"a",8),Qx$1(2),bf$1(),Ja$2()),e&2){let o=i.ngIf,t=yx$1().ngIf;X_$1(),TD("routerLink",o),X_$1(),Af$1(" ",t.numberOfRatings," reviews ");}}
13function hv(e,i){if(e&1&&(Ia$1(0,"div"),Qx$1(1),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),Af$1("",o.numberOfRatings," reviews");}}function Cv(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",2),_D(2,"tm-listing-ratings-star",3),Ia$1(3,"div",4),Qx$1(4),bf$1(),Ia$1(5,"div",5),iD(6,fv,3,2,"ng-container",6),yA(7,"async"),iD(8,hv,2,1,"ng-template",null,0,wA),bf$1()(),_D(10,"img",7),Ja$2()),e&2){let o=i.ngIf,t=Tx$1(9),n=yx$1();X_$1(2),TD("ratingMax",5)("rating",o.overallScore),X_$1(2),Af$1("",o.overallScore,"/5"),X_$1(2),TD("ngIf",DA$1(7,5,n.dealerShowRoomUrl$))("ngIfElse",t);}}var pg=(()=>{let i=class i{constructor(t,n,l){this._motorsListingFacade=t,this._listingFacade=n,this._dealershipService=l;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.motorsListing$=this._motorsListingFacade.getListingDetails().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.dealerRating$=this.motorsListing$.pipe(Fe(t=>t.dealerRatingsOverview)),this.dealerShowRoomUrl$=this.listing$.pipe(Fe(t=>this._dealershipService.getMoreListingsLink(t.dealership)));}};i.\u0275fac=function(n){return new(n||i)(R$2(Kt$1),R$2(pe),R$2(s))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-buyer-score"]],standalone:false,decls:2,vars:3,consts:[["noShowroomLink",""],[4,"ngIf"],[1,"tm-buyer-score__rating-container"],["starColor","orange",3,"ratingMax","rating"],[1,"tm-buyer-score__rating"],[1,"tm-buyer-score__rating-count"],[4,"ngIf","ngIfElse"],["alt","BuyerScore logo","src","/images/frend/motors/buyerscore_logo_colored.svg",1,"tm-buyer-score__logo"],["rel","noopener noreferrer","id","tm-buyer-score__rating-count-link","target","_blank",3,"routerLink"]],template:function(n,l){n&1&&(iD(0,Cv,11,7,"ng-container",1),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.dealerRating$));},dependencies:[mO,Ne,rn,bO],styles:["tm-buyer-score[_nghost-%COMP%]{display:block}.tm-buyer-score__logo[_ngcontent-%COMP%]{width:88px;margin-top:4px}.tm-buyer-score__rating-container[_ngcontent-%COMP%]{display:flex;margin-bottom:8px}.tm-buyer-score__rating-container[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){padding-right:8px}.tm-buyer-score__rating[_ngcontent-%COMP%]{color:#65605d;font-weight:500}"]});let e=i;return e})();var gg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,je,eu]});let e=i;return e})();function yv(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-drivechat-mobile-button",10),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showLiveChatModal(true))}),bf$1();}}function xv(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",11),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showEmailModal=false)})("consumerFinanceOptedIn",function(n){Xh$1(o);let l=yx$1(2);return eg$1(l.showConsumerFinanceModal=n)}),bf$1();}}function bv(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-driva-offer-modal",12),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showConsumerFinanceModal=false)}),bf$1();}}function Mv(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",1),_D(1,"tm-dealer-map",2),Ia$1(2,"div",3)(3,"div",4),_D(4,"tm-dealer-location",5),bf$1(),JN(5,yv,1,0,"tm-drivechat-mobile-button",6),yA(6,"async"),Ia$1(7,"div",7),_D(8,"tm-dealer-phone-button",8),Ia$1(9,"button",9),yA(10,"async"),kD("onClickOverride",function(){Xh$1(o);let n=yx$1();return eg$1(n.showEmailModal=true)}),Qx$1(11," Email the dealer "),bf$1(),JN(12,xv,1,0,"tm-contact-seller-modal"),JN(13,bv,1,0,"tm-driva-offer-modal"),bf$1()()();}if(e&2){let o=i,t=yx$1();X_$1(),TD("dealership",o),X_$1(3),TD("dealership",o),X_$1(),XN(t.showDriveChat&&!DA$1(6,10,t.isMdOrGreater$)?5:-1),X_$1(3),TD("gtmLocation",rA(t.gtmLocation))("shouldDisplayPhoneIcon",false),X_$1(),TD("trackingId",t.dealerEmailTheDealerButtonClickTrackingId)("data",DA$1(10,12,t.gtmData$)),X_$1(3),XN(t.showEmailModal?12:-1),X_$1(),XN(t.showConsumerFinanceModal?13:-1);}}var _g=(()=>{let i=class i{constructor(t,n,l){this._mediaSizeFacade=t,this._listingFacade=n,this._motorsGtmService=l,this.gtmLocation="",this.showLiveChatModalEvent=new Pt,this.dealerEmailTheDealerButtonClickTrackingId=U$1;}ngOnInit(){this.dealership$=this._listingFacade.getCurrentListing(
13).pipe(Xt(t=>!!t&&!!t.item&&!!t.item.dealership),Fe(t=>t.item.dealership),o()),this.isMdOrGreater$=this._mediaSizeFacade.is.md$.or.greater$,this.gtmData$=this._motorsGtmService.getLdpDealerGtmDataWithAbFeature("click",this.gtmLocation);}showLiveChatModal(){this.showLiveChatModalEvent.emit(true);}};i.\u0275fac=function(n){return new(n||i)(R$2(G),R$2(pe),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-contact-section"]],inputs:{gtmLocation:"gtmLocation",showDriveChat:"showDriveChat"},outputs:{showLiveChatModalEvent:"showLiveChatModalEvent"},standalone:false,decls:4,vars:3,consts:[[1,"tm-contact-section__title"],[1,"tm-contact-section"],[1,"tm-contact-section__section","tm-contact-section__map",3,"dealership"],[1,"tm-contact-section__section","tm-contact-section__section-right"],[1,"tm-contact-section__location-container"],[3,"dealership"],["driveChatButton",""],[1,"tm-contact-section__buttons-container"],["displayAsButton","true","buttonStyle","inverted",1,"tm-contact-section__button",3,"shouldDisplayPhoneIcon","gtmLocation"],["tmFrendClickOverrideBasicMemberForceUpgrade","","tgButton2","","tgStyle","primary","tmTrackCustomClick","",1,"tm-contact-section__button",3,"onClickOverride","trackingId","data"],["driveChatButton","",3,"click"],[3,"close","consumerFinanceOptedIn"],[3,"close"]],template:function(n,l){if(n&1&&(Ia$1(0,"h2",0),Qx$1(1,"Contact us"),bf$1(),JN(2,Mv,14,14,"div",1),yA(3,"async")),n&2){let C;X_$1(2),XN((C=DA$1(3,1,l.dealership$))?2:-1,C);}},dependencies:[Kt,Ad,He,rh$1,ri,Bp,_,H0$1,p,bO],styles:["tm-contact-section[_nghost-%COMP%]{display:block}.tm-contact-section__title[_ngcontent-%COMP%]{padding:0 24px}.tm-contact-section[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:0 24px 16px}@media(min-width:1024px){.tm-contact-section[_ngcontent-%COMP%]{flex-wrap:nowrap;padding-bottom:24px}}.tm-contact-section__section[_ngcontent-%COMP%]{width:100%}@media(min-width:1024px){.tm-contact-section__section[_ngcontent-%COMP%]{width:50%}.tm-contact-section__section[_ngcontent-%COMP%]:first-child{margin-right:24px}}.tm-contact-section__map[_ngcontent-%COMP%]{margin-bottom:16px}@media(min-width:1024px){.tm-contact-section__map[_ngcontent-%COMP%]{margin-bottom:0}}.tm-contact-section__section-right[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tm-contact-section__location-container[_ngcontent-%COMP%]{margin-bottom:24px}@media(min-width:1024px){.tm-contact-section__location-container[_ngcontent-%COMP%]{padding-bottom:24px;border-bottom:1px solid #d7d5d2;margin-bottom:32px}}.tm-contact-section__dealer-name[_ngcontent-%COMP%]{margin-bottom:8px}.tm-contact-section__buttons-container[_ngcontent-%COMP%]{display:flex;width:100%;flex-wrap:wrap}@media(min-width:768px){.tm-contact-section__buttons-container[_ngcontent-%COMP%]{flex-wrap:nowrap}}.tm-contact-section__button[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}@media(min-width:768px){.tm-contact-section__button[_ngcontent-%COMP%]{width:50%;margin-bottom:0}.tm-contact-section__button[_ngcontent-%COMP%]:first-child{margin-right:24px}}"]});let e=i;return e})();var ug=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Tt,we,Rd,He,Ja$1,_i,ua,un,g]});let e=i;return e})();function wv(e,i){if(e&1&&(Ia$1(0,"div",6),_D(1,"tm-youtube-video",7),yA(2,"async"),bf$1()),e&2){let o=i.ngIf,t=yx$1(2);X_$1(),TD("videoKey",o==null?null:o.videoKey)("trackingId",t.motorsDealerVideoTrackingId)("data",DA$1(2,3,t.gtmData$));}}function kv(e,i){if(e&1&&(Ia$1(0,"div",1),iD(1,wv,3,5,"div",2),yA(2,"async"),Ia$1(3,"div",3)(4,"h2",4),Qx$1(5),bf$1(),_D(6,"tm-markdown",5),bf$1()()),e&2){let o=i.ngIf,t=yx$1();X_$1(),TD("ngIf",DA$1(2,5,t.dealerVideo$)),X_$1(4),Af$1("Welcome to ",o.name),X_$1(),TD("text",o.aboutUs)("removeSpacesAfterLineBreaks",true)("allowLineBreakElements",true);}}var fg=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._motorsGtmService=n,this.motorsDealerVideoTrackingId=k$1;}ngOnInit(){this.dealership$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!!t.item.dealership),Fe(t=>t.item.dealership),o()),this.dealerVideo$=this.dealership$.pipe(Fe(t=>
13t.video)),this.gtmData$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>this._motorsGtmService.getGtmData("play",t.item)));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-video-blurb"]],standalone:false,decls:2,vars:3,consts:[["class","dealer-video-blurb",4,"ngIf"],[1,"dealer-video-blurb"],["class","dealer-video-blurb__video-container",4,"ngIf"],[1,"dealer-video-blurb__blurb-container"],[1,"p-lead-copy"],[3,"text","removeSpacesAfterLineBreaks","allowLineBreakElements"],[1,"dealer-video-blurb__video-container"],["frameName","youtubeVideo","tmTrackCustomClick","",3,"videoKey","trackingId","data"]],template:function(n,l){n&1&&(iD(0,kv,7,7,"div",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.dealership$));},dependencies:[mO,S$1,ge,p,bO],styles:["tm-dealer-video-blurb[_nghost-%COMP%]{display:block;margin-bottom:16px}.dealer-video-blurb[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media(min-width:768px){.dealer-video-blurb[_ngcontent-%COMP%]{padding:0 24px}}.dealer-video-blurb__video-container[_ngcontent-%COMP%]{width:100%;order:1;margin-bottom:16px}@media(min-width:768px){.dealer-video-blurb__video-container[_ngcontent-%COMP%]{flex:1 1 0;order:0;margin-right:24px}}.dealer-video-blurb__blurb-container[_ngcontent-%COMP%]{flex:1 1 0;padding:0 24px}@media(min-width:768px){.dealer-video-blurb__blurb-container[_ngcontent-%COMP%]{padding:0}}"]});let e=i;return e})();var Tv=(e,i)=>({"tm-dealer-info--premium":e,"tm-dealer-info--with-banner-image":i});function Ov(e,i){if(e&1&&(Ia$1(0,"div",12),_D(1,"img",13),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),TD("src",o.bannerImages.original,Ry$1);}}function Ev(e,i){if(e&1&&(Ia$1(0,"a",16),yA(1,"async"),_D(2,"img",17),bf$1()),e&2){let o=i.ngIf,t=yx$1(2).ngIf,n=yx$1();TD("routerLink",o)("trackingId",n.dealerShowroomTrackingId)("data",DA$1(1,4,n.gtmData$)),X_$1(2),TD("src",t.showroom.logo,Ry$1);}}function Pv(e,i){if(e&1&&(Ia$1(0,"div",14),yA(1,"dealershipColor"),iD(2,Ev,3,6,"a",15),yA(3,"async"),bf$1()),e&2){let o=yx$1().ngIf,t=yx$1();Xa$1("background-color",DA$1(1,3,o.showroom.backgroundColour)),X_$1(2),TD("ngIf",DA$1(3,5,t.moreListingsLink$));}}function Dv(e,i){e&1&&_D(0,"tm-dealer-video-blurb");}function Lv(e,i){if(e&1&&(Ia$1(0,"h2",18),Qx$1(1),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),Af$1(" ",o.name," ");}}function Bv(e,i){if(e&1&&(Ia$1(0,"a",19)(1,"button",20),_D(2,"tg-icon",21),Qx$1(3," Dealers other listings "),bf$1()()),e&2){let o=i.ngIf,t=yx$1(2);TD("routerLink",o),X_$1(),TD("trackingId",t.dealerShowroomTrackingId);}}function Fv(e,i){if(e&1&&(Ia$1(0,"a",22)(1,"button",23),_D(2,"tg-icon",24),Qx$1(3),yA(4,"async"),bf$1()()),e&2){let o=i.ngIf,t=yx$1(2);TD("href",o,Ry$1),X_$1(3),Af$1(" ",DA$1(4,2,t.dealerWebsiteClean$)," ");}}function Vv(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",25),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.modalClosed.next())}),bf$1();}if(e&2){let o=yx$1(2);TD("selectedSubject",o.selectedSubject)("message",o.modalMessage)("selectedTab",o.selectedTab);}}function Av(e,i){if(e&1){let o=dx$1();Mf(0),iD(1,Ov,2,1,"div",1),yA(2,"async"),Ia$1(3,"div",2),yA(4,"async"),iD(5,Pv,4,7,"div",3),Ia$1(6,"h2",4),Qx$1(7,"About the dealer"),bf$1(),iD(8,Dv,1,0,"tm-dealer-video-blurb",0),yA(9,"async"),Ia$1(10,"div",5)(11,"div",6),iD(12,Lv,2,1,"h2",7),yA(13,"async"),_D(14,"tm-buyer-score"),bf$1(),Ia$1(15,"div",6),iD(16,Bv,4,2,"a",8),yA(17,"async"),iD(18,Fv,5,4,"a",9),yA(19,"async"),bf$1()(),Ia$1(20,"tm-dealer-services"),iD(21,Vv,1,3,"ng-template",10),kD("modalOpened",function(n){Xh$1(o);let l=yx$1();return eg$1(l.onModalOpened(n))}),bf$1(),Ia$1(22,"tm-contact-section",11),kD("showLiveChatModalEvent",function(n){Xh$1(o);let l=yx$1();return eg$1(l.showLiveChatModal(n))}),bf$1()(),Ja$2();}if(e&2){let o=i.ngIf,t=yx$1();X_$1(),TD("ngIf",DA$1(2,9,t.isPremium$)&&o.bannerImages),X_$1(2),TD("ngClass",hA(21,Tv,DA$1(4,11,t.isPremium$),!!o.bannerImages)),X_$1(2),TD("ngIf",o&&o.showroom&&o.showroom.logo),X_$1(3),TD("ngIf",DA$1(9,13,t.isPremium$)),X_$1(4),TD("ngIf",!DA$1(13,15,t.isPremium$)),X_$1(4),TD("ngIf",DA$1(17,17,t.moreListingsLink$)),X_$1(2),TD("ngIf",DA$1(19,19,t.dealerWebsite$)),X_$1(3),TD("modalClosed",t.modalClosed.asObservable()),X_$1(),TD("showDriveChat",t.showDriveChat);}}var hg=(()=>{let i=class i{constructor(t,n,l,C){this._listingFacade=t,this._dealershipService=n,this._motorsListingService=l,this._motorsGtmService=C,this.destroyed$=new W$1,this.modalClosed=new W$1,this.dealerShowroomTrackingId=q$1,this.showLiveChatModalEvent=ne
13w Pt;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.isPremium$=this.listing$.pipe(Fe(t=>this._motorsListingService.isPremium(t))),this.dealership$=this.listing$.pipe(Xt(t=>!!t.dealership),Fe(t=>t.dealership)),this.moreListingsLink$=this.dealership$.pipe(Fe(t=>this._dealershipService.getMoreListingsLink(t))),this.dealerWebsite$=this.dealership$.pipe(Fe(t=>t.website)),this.dealerWebsiteClean$=this.dealership$.pipe(Fe(t=>this._dealershipService.cleanDealerWebsite(t.website))),this.dealerVideo$=this.dealership$.pipe(Fe(t=>t.video)),this.gtmData$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>this._motorsGtmService.getGtmData("click",t.item)));}showLiveChatModal(t){this.showLiveChatModalEvent.emit(true);}onModalOpened(t){this.dealership$.pipe(An(1),Xp(this.destroyed$)).subscribe(n=>{this.dealershipRenderOptions=n.renderOptions;}),this.listing$.pipe(An(1),Xp(this.destroyed$)).subscribe(n=>{t?.code.toUpperCase()==="FI"&&this._motorsGtmService.addEnquiryEvent("click","dealer_services","finance",n);}),this.modalMessage=t?.toMessage(),this.selectedSubject=t?.toEnquiryTypeEnum(),this.selectedTab=t?.toContactSellerType(this.dealershipRenderOptions);}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(s),R$2(qe),R$2($$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-info"]],inputs:{showDriveChat:"showDriveChat"},outputs:{showLiveChatModalEvent:"showLiveChatModalEvent"},standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],["class","tm-dealer-info__hero-image-container",4,"ngIf"],[1,"tm-dealer-info",3,"ngClass"],["class","tm-dealer-info__branding-strip",3,"background-color",4,"ngIf"],[1,"tm-dealer-info__title"],[1,"tm-dealer-info__buyer-score-and-links"],[1,"tm-dealer-info__buyer-score-links-section"],["class","p-lead-copy",4,"ngIf"],["class","tm-dealer-info__dealer-other-listings",3,"routerLink",4,"ngIf"],["class","tm-dealer-info__dealer-links-website","rel","noopener noreferrer","target","_blank",3,"href",4,"ngIf"],["tmDealerServiceContent","",3,"modalOpened","modalClosed"],["gtmLocation","bottom_ldp",3,"showLiveChatModalEvent","showDriveChat"],[1,"tm-dealer-info__hero-image-container"],["alt","Dealership banner",3,"src"],[1,"tm-dealer-info__branding-strip"],["class","tm-dealer-info__branding-link","tmTrackCustomClick","",3,"routerLink","trackingId","data",4,"ngIf"],["tmTrackCustomClick","",1,"tm-dealer-info__branding-link",3,"routerLink","trackingId","data"],["alt","Dealership logo",1,"tm-dealer-info__branding-strip-img",3,"src"],[1,"p-lead-copy"],[1,"tm-dealer-info__dealer-other-listings",3,"routerLink"],["tmTrackCustomClick","","tgButton2","","compact","",3,"trackingId"],["alt","Dealers other listings","size","small","name","basic-arrow-right"],["rel","noopener noreferrer","target","_blank",1,"tm-dealer-info__dealer-links-website",3,"href"],["tgButton2","","compact",""],["size","small","alt","Dealer website","name","link-external"],[3,"close","selectedSubject","message","selectedTab"]],template:function(n,l){n&1&&(iD(0,Av,23,24,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.dealership$));},dependencies:[pO,mO,pg,we,He,_g,fg,rn,Ey$1,ns$1,rh$1,p,bO,At$1],styles:["tm-dealer-info[_nghost-%COMP%]{display:block}.tm-dealer-info__hero-image-container[_ngcontent-%COMP%]{max-width:1368px;max-height:128px}@media(min-width:768px){.tm-dealer-info__hero-image-container[_ngcontent-%COMP%]{max-height:208px;margin-right:-24px;margin-left:-24px}}@media(min-width:1024px){.tm-dealer-info__hero-image-container[_ngcontent-%COMP%]{overflow:hidden;max-height:288px;border-radius:8px}}.tm-dealer-info[_ngcontent-%COMP%]{position:relative;z-index:2000;overflow:hidden;width:100%;border-bottom:1px solid #e8e6e3;background:#fff;border-radius:8px}.tm-dealer-info.tm-dealer-info--premium.tm-dealer-info--with-banner-image[_ngcontent-%COMP%]{border:none;margin-top:-8px}@media(min-width:768px){.tm-dealer-info.tm-dealer-info--premium.tm-dealer-info--with-banner-image[_ngcontent-%COMP%]{border-bottom:1px solid #e8e6e3;margin-top:-64px}}.tm-dealer-info__branding-strip[_ngcontent-%COMP%]{height:49px;border-bottom:1px solid #e8e6e3;margin-bottom:24px}@media(min-width:768px){.tm-dealer-info__branding-strip[_ngcontent-%COMP%]{height:65px}}.tm-dealer-info__branding-link[_ngcontent-%COMP%]{display:flex}.tm-dealer-info__branding-strip-img[_ngcontent-%COMP%]{max-height:48px;margin:auto}@media(min-width:768px){.tm-dealer-info__branding-strip-img[_ngcontent-%COMP%]{max-height:64px}}
13.tm-dealer-info__dealer-name[_ngcontent-%COMP%]{margin-bottom:8px}.tm-dealer-info__title[_ngcontent-%COMP%]{padding:0 24px}.tm-dealer-info__container-column[_ngcontent-%COMP%]{display:block}@media(min-width:768px){.tm-dealer-info__container-column[_ngcontent-%COMP%]{display:flex}}.tm-dealer-info__container-about[_ngcontent-%COMP%]{padding-bottom:32px}@media(min-width:768px)and (max-width:959px){.tm-dealer-info__container-column-location[_ngcontent-%COMP%]{display:block}}.tm-dealer-info__buyer-score-links-section[_ngcontent-%COMP%]{flex:1 1 auto;margin-bottom:8px}@media(min-width:480px){.tm-dealer-info__buyer-score-links-section[_ngcontent-%COMP%]:first-child{margin-right:24px}}@media(min-width:768px){.tm-dealer-info__buyer-score-links-section[_ngcontent-%COMP%]{flex:1 1 0}}.tm-dealer-info__dealer-other-listings[_ngcontent-%COMP%]{display:block}.tm-dealer-info__dealer-links-website[_ngcontent-%COMP%]{font-weight:700}.tm-dealer-info__buyer-score-and-links[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding-bottom:24px;border-bottom:1px solid #d7d5d2;margin:0 24px 24px}tm-dealer-services[_ngcontent-%COMP%]{padding:0 24px}"]});let e=i;return e})();var Cg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,x$1,Ve,He,Bt$1,g]});let e=i;return e})();var vg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,gg,we,we,we,Rd,He,Tt,Ge$1,x$1,ug,Cg,eu,Py$1,Ja$1,oa,ii,g]});let e=i;return e})();var Rv=/\B(?=(\d{3})+(?!\d))/g,yg=["on_road_costs","fuel_economy_stars","Features","covid-19_availability"],Ni={kilometres:{icon:"vehicle-odometer",order:1,valTransform:e=>e?.trim().replace("km"," km")},number_of_owners:{icon:"profile",order:2},body_style:{icon:"vehicle-car",order:3},fuel_type:{icon:"vehicle-fuel",order:4},transmission:{icon:"vehicle-transmission",order:5},engine_size:{icon:"vehicle-engine",order:6,valTransform:e=>{let o=e?.replace(Rv,",").replace("cc","")??"";return o&&`${o} cc`}},doors:{icon:"vehicle-door",order:7,valTransform:e=>{let i="door",o=`${i}s`;return e?.replace(o,i).replace(i,o)}},seats:{icon:"vehicle-seat",order:8,valTransform:e=>`${e} seats`},import_history:{icon:"globe",order:9},exterior_colour:{icon:"brush",order:10,valTransform:e=>{let i="exterior";return e?.trim()?`${e.trim().replace(i,"")} ${i}`:""}}},xg={kilometres:{displayName:"Odometer",valTransform:Ni.kilometres.valTransform},engine_size:{valTransform:Ni.engine_size.valTransform},exterior_colour:{valTransform:Ni.exterior_colour.valTransform},doors:{valTransform:e=>e.replace("door","").trim()},"4wd":{displayName:"4WD",valTransform:e=>e?"Yes":""}};var ps=Le$1("[Vehicle Features] Load Vehicle Features",Be$2()),gs=Le$1("[Vehicle Features] Load Vehicle Features Success",Be$2()),_s=Le$1("[Vehicle Features] Load Vehicle Features Failure",Be$2());var us="vehicleFeatureData",Nv={},Mg=sn(Nv,on(gs,(e,{curationId:i,response:o})=>z(y({},e),{[i]:o})),on(_s,(e,{curationId:i})=>z(y({},e),{[i]:null})));var jv=Et(us),Sg=e=>Ve$3(jv,i=>i?.[e.curationId]);var Yn=(()=>{let i=class i{constructor(t,n,l,C){this._listingFacade=t,this._abFrameworkFacade=n,this._categoryService=l,this._store=C,this.VEHICLE_FEATURE_CURATION_ID="vehicle_feature_curation_id";}getVehicleFeaturesByCurationId(t){let n=Sg({curationId:t});return this._store.select(n).pipe(th$1(l=>{l===void 0&&this._store.dispatch(ps({curationId:t}));}),Xt(l=>l!==void 0),hh$1(1))}getAllSupportedDetails(t){return t.filter(n=>!yg.includes(n.name)).map(n=>{let l=xg[n.name];return z(y({},n),{displayName:l?.displayName??n.displayName,value:l?.valTransform?.(n.value)??n.value})}).sort((n,l)=>{let C=Ni[n.name]?.order??1/0,I=Ni[l.name]?.order??1/0;return C-I})}getBasicDetails(t,n){return t.filter(l=>Ni[l.name]).map(this.constructBasicDetail).sort((l,C)=>l.order-C.order).slice(0,n)}isVehicleFeaturesEnabled(){return this._abFrameworkFacade.isMemberInVariantGroupOfBooleanExperiment(this.getAbFeatureVariantName())}shouldShowExtendedComponent$(){let t=this._listingFacade.getCurrentListing().pipe(Xt(C=>!!C&&!!C.item),Fe(C=>C.item)),n=t.pipe(Fe(C=>this._categoryService.isCars(R$3(C?.category||"")))),l=t.pipe(Fe(C=>!!C?.dealership));return wC$1([this.isVehicleFeaturesEnabled(),n,l]).pipe(Fe(([C,I,j])=>C&&I&&j&&j))}getAbFeatureVariantName(){return "VehicleFeatures"}constructBasicDetail(t){let n=Ni[t.name];return y(y({},n),z(y({},t),{value:n.valTransform?.(t.value)??t.value}))}getCurationId(t){return t.hiddenAttributes?t.hiddenAttributes.find(l=>
13l.name===this.VEHICLE_FEATURE_CURATION_ID)?.value??"":""}};i.\u0275fac=function(n){return new(n||i)(G$2(pe),G$2(S$2),G$2(P),G$2(k$2))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Uv=e=>({"tm-motors-listing-features__hidden":e}),Wv=()=>["./"];function qv(e,i){if(e&1&&(Ia$1(0,"li",7),_D(1,"tg-icon",8),Qx$1(2),bf$1()),e&2){let o=i.$implicit;X_$1(2),Af$1(" ",o," ");}}function Hv(e,i){e&1&&(Ia$1(0,"span"),Qx$1(1," Show more "),_D(2,"tg-icon-right",11),bf$1());}function zv(e,i){e&1&&(Ia$1(0,"span",12),Qx$1(1," Show less "),_D(2,"tg-icon-right",13),bf$1()),e&2&&TD("routerLink",fA(2,Wv))("verticalOffset",-74);}function Gv(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",9),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.toggleShowMore())}),iD(1,Hv,3,0,"span",10)(2,zv,3,3,"ng-template",null,0,wA),bf$1();}if(e&2){let o=Tx$1(3),t=yx$1(2);X_$1(),TD("ngIf",t.compact)("ngIfElse",o);}}function Kv(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",2)(2,"h2",3),Qx$1(3," Features "),bf$1(),Ia$1(4,"ul",4),iD(5,qv,3,1,"li",5),bf$1(),iD(6,Gv,4,2,"button",6),bf$1(),Ja$2()),e&2){let o=i.ngIf,t=yx$1();X_$1(4),TD("ngClass",pA(3,Uv,t.compact&&t.featuresLong)),X_$1(),TD("ngForOf",o),X_$1(),TD("ngIf",t.featuresLong);}}var wg=(()=>{let i=class i{constructor(t){this._listingFacade=t,this.compact=true;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.features$=this.listing$.pipe(Xt(t=>!!t.attributes),Fe(t=>this.getFeatures(t)));}getFeatures(t){if(t.attributes){let{value:n}=t.attributes.find(l=>l.name==="Features")||{value:null};if(n){let l=n.split(/\r?\n/);return this.featuresLong=this.featuresIsOver20(l),l}return}}featuresIsOver20(t){if(t)return t.length>20}toggleShowMore(){this.compact=!this.compact;}};i.\u0275fac=function(n){return new(n||i)(R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-features"]],standalone:false,decls:2,vars:3,consts:[["showLess",""],[4,"ngIf"],[1,"tm-motors-listing-features"],["id","tm-motors-listing-features__title",1,"tm-motors-listing-features__title"],[1,"tm-motors-listing-features__list",3,"ngClass"],["class","tm-motors-listing-features__item",4,"ngFor","ngForOf"],["class","tm-motors-listing-features__button","tgButton2","","transparent","",3,"click",4,"ngIf"],[1,"tm-motors-listing-features__item"],["name","basic-tick-framed","alt","Tick icon",1,"tm-motors-listing-features__icon"],["tgButton2","","transparent","",1,"tm-motors-listing-features__button",3,"click"],[4,"ngIf","ngIfElse"],["name","basic-plus","aria-hidden","true","size","small"],["tmScrollTo","#tm-motors-listing-features__title",3,"routerLink","verticalOffset"],["name","basic-minus","aria-hidden","true","size","small"]],template:function(n,l){n&1&&(iD(0,Kv,7,5,"ng-container",1),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.features$));},dependencies:[pO,YI,mO,we,He,rn,p$1,bO],styles:['.tm-motors-listing-features[_ngcontent-%COMP%]{margin-bottom:48px}.tm-motors-listing-features__title[_ngcontent-%COMP%]{padding-top:48px;color:#44413d}.tm-motors-listing-features__item[_ngcontent-%COMP%]{display:flex;width:100%;padding:16px 0;color:#65605d}@media(min-width:768px){.tm-motors-listing-features__item[_ngcontent-%COMP%]{width:33%;padding-right:8px}}.no-padding-left[_ngcontent-%COMP%]{padding-left:0}.tm-motors-listing-features__list[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;max-height:100%}@media(min-width:768px){.tm-motors-listing-features__list[_ngcontent-%COMP%]{display:flex;flex-flow:wrap}}.tm-motors-listing-features__list[_ngcontent-%COMP%]:after{content:none}.tm-motors-listing-features__icon[_ngcontent-%COMP%]{margin-right:8px}.tm-motors-listing-features__hidden[_ngcontent-%COMP%]{overflow:hidden;max-height:300px}.tm-motors-listing-features__hidden[_ngcontent-%COMP%]:after{position:absolute;right:0;bottom:0;left:0;display:block;height:48px;background:linear-gradient(to bottom,#fff0,#fff);content:"";pointer-events:none}.tm-motors-listing-features__button[_ngcontent-%COMP%]{width:auto;padding-right:0;padding-left:0;margin-right:auto;margin-bottom:0;font-size:1rem;font-weight:400}']});let e=i;return e})();var co=(function(e){return e.learn_more_button_clicked="motors_special_offer_learn_more_button",e.visit_website_button_clicked="motors_special_offer_visit_website_button",e})(co||{});var Qv=(e,i)=>({"tm-special-offer-modal__enquire-button":e,"tm-special-offer-modal__solo-enquire-button":i});
13function Jv(e,i){if(e&1&&(Ia$1(0,"div",15),_D(1,"tm-image-container",16),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),TD("imageUrl",o.imageUrl);}}function Xv(e,i){if(e&1&&(Ia$1(0,"div",17),Qx$1(1),bf$1()),e&2){let o=i.ngIf;X_$1(),Af$1(" ",o.name," ");}}function ey(e,i){if(e&1&&(Ia$1(0,"div",22),Qx$1(1),bf$1()),e&2){let o=yx$1(2).ngIf;X_$1(),Af$1(" ",o.termsAndConditions," ");}}function ty(e,i){e&1&&(Mf(0),Ia$1(1,"p",22),Qx$1(2," Any finance estimate provided is intended only as a \u201Crough guide\u201D and is not a quote or offer of finance. Users will need to discuss their individual circumstances and the suitability of finance with the Dealer and the Dealer\u2019s terms, conditions and lending criteria will apply. Any special offer or estimate only applies to the listed vehicle. "),bf$1(),Ia$1(3,"p",22),Qx$1(4," If the listing shows that on road costs are excluded, any special offer or finance estimate does not include these costs and such costs would need to be paid in addition to any deposit and weekly payment (as applicable). "),bf$1(),Ja$2());}function iy(e,i){if(e&1&&iD(0,ty,5,0,"ng-container",23),e&2){let o=yx$1(2).ngIf;TD("ngIf",o.isFinance);}}function ny(e,i){e&1&&(Ia$1(0,"tg-accordion-item",19)(1,"tg-accordion-heading"),Qx$1(2," Disclaimer "),bf$1(),Ia$1(3,"p",24),Qx$1(4," The Dealer enters all information used to create this special offer. Trade Me takes no responsibility for the dealer's information and makes no warranties or representations (express or implied) that this information will be error-free, accurate or reliable. By publishing the special offer, the dealer is solely responsible for compliance with any relevant laws, regulations and industry codes (including the Credit Contracts and Consumer Finance Act 2003, the Credit Contracts and Consumer Regulations 2021, the Fair Trading Act 1986, the Responsible Lending Code and the ASA Financial Advertising Code). "),bf$1(),Ia$1(5,"p",24),Qx$1(6," For clarity, Trade Me makes no offer in connection with this Special Offer and accepts no liability for any loss or damage of any kind arising out of, or in connection with, a user's use or reliance on the information in this Special Offer. "),bf$1()());}function oy(e,i){if(e&1&&(Ia$1(0,"tg-accordion",18)(1,"tg-accordion-item",19)(2,"tg-accordion-heading"),Qx$1(3," Terms & conditions "),bf$1(),iD(4,ey,2,1,"div",20)(5,iy,1,1,"ng-template",null,0,wA),bf$1(),iD(7,ny,7,0,"tg-accordion-item",21),bf$1()),e&2){let o=Tx$1(6),t=yx$1().ngIf;X_$1(4),TD("ngIf",t.termsAndConditions)("ngIfElse",o),X_$1(3),TD("ngIf",t.isFinance);}}function ry(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",25),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.offerUrlButtonClicked())}),Ia$1(1,"a",26),Qx$1(2," Visit website "),_D(3,"tg-icon",27),bf$1()();}if(e&2){let o=yx$1().ngIf;X_$1(),TD("href",rA(o.offerUrl),Ry$1);}}function ay(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",4)(1,"div",5),Qx$1(2," Special offer for you "),bf$1(),iD(3,Jv,2,1,"div",6)(4,Xv,2,1,"div",7),yA(5,"async"),Ia$1(6,"div",8),Qx$1(7),bf$1(),Ia$1(8,"div",9),Qx$1(9),bf$1(),Ia$1(10,"div",10),Qx$1(11),bf$1(),iD(12,oy,8,3,"tg-accordion",11),Ia$1(13,"div",12)(14,"button",13),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.openContactSellerModal())}),Qx$1(15," Enquire about this offer "),bf$1(),iD(16,ry,4,2,"button",14),bf$1()();}if(e&2){let o=i.ngIf,t=yx$1();X_$1(),zD("tm-special-offer-modal__header-text--image",o.imageUrl),X_$1(2),TD("ngIf",o.imageUrl),X_$1(),TD("ngIf",DA$1(5,10,t.dealer$)),X_$1(3),Af$1(" ",o.title," "),X_$1(2),Af$1(" ",o.subtitle," "),X_$1(2),Af$1(" ",o.description," "),X_$1(),TD("ngIf",o.termsAndConditions||o.isFinance),X_$1(2),TD("ngClass",hA(12,Qv,!!o.offerUrl,!o.offerUrl)),X_$1(2),TD("ngIf",o.offerUrl);}}function sy(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",28),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeContactSellerModal())}),bf$1();}if(e&2){let o=yx$1();TD("selectedSubject",o.enquiryType.specialOffer);}}var kg=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._analyticsService=n,this.close=new Pt,this.enquiryType=ie$1,this.specialOffersAnalyticsEventEnum=co,this.shouldDisplayContactSellerModal=false;}
13ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.specialOffer$=this.listing$.pipe(Xt(t=>!!t.specialOffer),Fe(t=>t.specialOffer)),this.dealer$=this.listing$.pipe(Xt(t=>!!t.dealership),Fe(t=>t.dealership));}openContactSellerModal(){this.shouldDisplayContactSellerModal=true;}offerUrlButtonClicked(){this._analyticsService.addEvent(this.specialOffersAnalyticsEventEnum.visit_website_button_clicked);}closeContactSellerModal(){this.shouldDisplayContactSellerModal=false,this.close.emit();}closeModal(){this.close.emit();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(De))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-special-offer-modal"]],outputs:{close:"close"},standalone:false,decls:4,vars:4,consts:[["defaultFinanceTermsAndConditions",""],["size","wide",3,"close"],["class","tm-special-offer-modal__container",4,"ngIf"],[3,"selectedSubject","close",4,"ngIf"],[1,"tm-special-offer-modal__container"],[1,"tm-special-offer-modal__header-text"],["class","tm-special-offer-modal__image",4,"ngIf"],["class","tm-special-offer-modal__dealer-name",4,"ngIf"],[1,"tm-special-offer-modal__title"],[1,"tm-special-offer-modal__subtitle"],[1,"tm-special-offer-modal__description"],["multi","","class","tm-special-offer-modal__disclaimer-accordion",4,"ngIf"],[1,"tm-special-offer-modal__button-container"],["tgButton2","","tgStyle","primary",3,"click","ngClass"],["tgButton2","","class","tm-special-offer-modal__visit-website-button",3,"click",4,"ngIf"],[1,"tm-special-offer-modal__image"],["ratio","4x3",3,"imageUrl"],[1,"tm-special-offer-modal__dealer-name"],["multi","",1,"tm-special-offer-modal__disclaimer-accordion"],["expanded",""],["class","tm-special-offer-modal__terms-and-conditions",4,"ngIf","ngIfElse"],["expanded","",4,"ngIf"],[1,"tm-special-offer-modal__terms-and-conditions"],[4,"ngIf"],[1,"tm-special-offer-modal__disclaimer"],["tgButton2","",1,"tm-special-offer-modal__visit-website-button",3,"click"],["target","_blank",3,"href"],["alt","visit special offer website","name","link-external"],[3,"close","selectedSubject"]],template:function(n,l){n&1&&(Ia$1(0,"tg-modal",1),kD("close",function(){return l.closeModal()}),iD(1,ay,17,15,"div",2),yA(2,"async"),bf$1(),iD(3,sy,1,1,"tm-contact-seller-modal",3)),n&2&&(X_$1(),TD("ngIf",DA$1(2,2,l.specialOffer$)),X_$1(2),TD("ngIf",l.shouldDisplayContactSellerModal));},dependencies:[pO,mO,Hr,He,we,Fg$1,cr,R_$1,rh$1,j,bO],styles:["tm-special-offer-modal[_nghost-%COMP%]{display:block}.tm-special-offer-modal__image[_ngcontent-%COMP%]{padding-bottom:16px}.tm-special-offer-modal__container[_ngcontent-%COMP%]{padding:16px 24px}.tm-special-offer-modal__header-text[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:#44413d;padding-bottom:24px;padding-top:8px;margin-bottom:16px;border-bottom:1px solid #85807c}.tm-special-offer-modal__header-text--image[_ngcontent-%COMP%]{border-bottom:none}.tm-special-offer-modal__dealer-name[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#5f6f88;padding-bottom:16px}.tm-special-offer-modal__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;padding-bottom:8px;color:#291e1e}.tm-special-offer-modal__subtitle[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;color:#291e1e;padding-bottom:16px}.tm-special-offer-modal__description[_ngcontent-%COMP%]{font-size:.875rem;font-weight:400;padding-bottom:32px;color:#291e1e}.tm-special-offer-modal__button-container[_ngcontent-%COMP%]{background-color:#fff;padding-top:24px;display:flex;flex-wrap:wrap}@media(max-width:767px){.tm-special-offer-modal__button-container[_ngcontent-%COMP%]{bottom:0;position:sticky;width:100%}}@media(min-width:768px){.tm-special-offer-modal__enquire-button[_ngcontent-%COMP%]{margin-right:16px}}.tm-special-offer-modal__solo-enquire-button[_ngcontent-%COMP%]{width:100%}.tm-special-offer-modal__visit-website-button[_ngcontent-%COMP%]{padding-right:48px;padding-left:48px}.tm-special-offer-modal__disclaimer-accordion[_ngcontent-%COMP%]{border-top:1px solid #85807c;margin-left:0;margin-right:0}.tm-special-offer-modal__terms-and-conditions[_ngcontent-%COMP%], .tm-special-offer-modal__disclaimer[_ngcontent-%COMP%]{font-size:.875rem;color:#291e1e}"]});let e=i;return e})();
13function my(e,i){if(e&1&&(Ia$1(0,"div",10),_D(1,"tm-image-container",11),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),TD("imageUrl",o.imageUrl);}}function cy(e,i){if(e&1&&(Ia$1(0,"div",12),Qx$1(1),bf$1()),e&2){let o=i.ngIf;X_$1(),Af$1(" ",o.name," ");}}function dy(e,i){if(e&1&&(Ia$1(0,"div",13),Qx$1(1),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),Af$1(" ",o.subtitle," ");}}function py(e,i){if(e&1){let o=dx$1();Ia$1(0,"div")(1,"div",2),Qx$1(2,"Special offer"),bf$1(),Ia$1(3,"div",3),iD(4,my,2,1,"div",4),Ia$1(5,"div",5),iD(6,cy,2,1,"div",6),yA(7,"async"),Ia$1(8,"div",7),Qx$1(9),bf$1(),iD(10,dy,2,1,"div",8),Ia$1(11,"button",9),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.openSpecialOfferModal())}),Qx$1(12," Learn more "),bf$1()()()();}if(e&2){let o=i.ngIf,t=yx$1();X_$1(3),zD("tm-special-offer__parent--no-image",!o.imageUrl),X_$1(),TD("ngIf",o.imageUrl),X_$1(2),TD("ngIf",DA$1(7,6,t.dealer$)),X_$1(3),Af$1(" ",o.title," "),X_$1(),TD("ngIf",o.subtitle);}}function gy(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-special-offer-modal",14),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeSpecialOfferModal())}),bf$1();}}var Ig=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._analyticsService=n,this.shouldDisplaySpecialOfferModal=false,this.specialOffersAnalyticsEventEnum=co;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!t.isLoading),Fe(t=>t.item)),this.specialOffer$=this.listing$.pipe(Fe(t=>t?.specialOffer)),this.dealer$=this.listing$.pipe(Fe(t=>t?.dealership));}openSpecialOfferModal(){this._analyticsService.addEvent(this.specialOffersAnalyticsEventEnum.learn_more_button_clicked),this.shouldDisplaySpecialOfferModal=true;}closeSpecialOfferModal(){this.shouldDisplaySpecialOfferModal=false;}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(De))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-special-offer"]],standalone:false,decls:3,vars:4,consts:[[4,"ngIf"],[3,"close",4,"ngIf"],[1,"tm-special-offer__header-text"],[1,"tm-special-offer__parent"],["class","tm-special-offer__image",4,"ngIf"],[1,"tm-special-offer__container"],["class","tm-special-offer__dealer-name",4,"ngIf"],[1,"tm-special-offer__title"],["class","tm-special-offer__subtitle",4,"ngIf"],["tgButton2","","compact","",1,"tm-special-offer__learn-more-button",3,"click"],[1,"tm-special-offer__image"],["ratio","4x3",3,"imageUrl"],[1,"tm-special-offer__dealer-name"],[1,"tm-special-offer__subtitle"],[3,"close"]],template:function(n,l){n&1&&(iD(0,py,13,8,"div",0),yA(1,"async"),iD(2,gy,1,0,"tm-special-offer-modal",1)),n&2&&(TD("ngIf",DA$1(1,2,l.specialOffer$)),X_$1(2),TD("ngIf",l.shouldDisplaySpecialOfferModal));},dependencies:[mO,kg,He,j,bO],styles:["tm-special-offer[_nghost-%COMP%]{display:block}.tm-special-offer__parent[_ngcontent-%COMP%]{display:block;width:auto;max-width:391px;align-items:stretch;margin-bottom:32px;margin-right:16px;border:1px solid #d4d4d8;border-radius:8px;overflow:hidden}@media(min-width:1024px){.tm-special-offer__parent[_ngcontent-%COMP%]{display:flex;max-width:none}}.tm-special-offer__parent--no-image[_ngcontent-%COMP%]{max-width:391px}.tm-special-offer__image[_ngcontent-%COMP%]{flex:1 0 auto;width:auto;max-width:none;border-top-left-radius:8px;border-bottom-left-radius:8px}@media(min-width:1024px){.tm-special-offer__image[_ngcontent-%COMP%]{max-width:289px}}.tm-special-offer__header-text[_ngcontent-%COMP%]{font-size:22px;font-weight:700;color:#291e1e;padding-bottom:16px}.tm-special-offer__container[_ngcontent-%COMP%]{padding:16px;width:auto;max-width:none;flex:1 0 0%}.tm-special-offer__dealer-name[_ngcontent-%COMP%]{color:#5f6f88;font-size:.875rem;font-weight:500;padding-bottom:8px}.tm-special-offer__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;padding-bottom:4px;color:#291e1e}.tm-special-offer__subtitle[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;padding-bottom:16px;margin-bottom:32px;color:#291e1e}.tm-special-offer__learn-more-button[_ngcontent-%COMP%]{margin-bottom:0;padding-left:32px;padding-right:32px}"]});let e=i;return e})();var Js=["seats","kilometres","transmission","fuel_type","body_style","style","seats","engine_size","engine_hours"],Tg=["on_road_costs","fuel_economy_stars","Features","model_detail","motorweb_vin","motors_boost_end_date"],Og={car:"body_style",bike:"style",transmission:"transmission",fuel_type:"fuel_type",engine:"engine_size",odometer:"kilometres",seats:"seats",location:"boatlocation",engine_hours:"engine_hours"},Eg=["self_contained","lams_approved"];function uy(e,i){if(e&1&&_D(0,"tg-icon",9),e&2){let o=yx$1();TD("alt",o.alt);}}function fy(e,i){if(e&1&&_D(0,"tg-icon",10),e&2){let o=yx$1();TD("alt",o.alt);}}function hy(e,i){if(e&1&&_D(0,"tg-icon",11),e&2){let o=yx$1();TD("alt",o.alt);}}function Cy(e,i){if(e&1&&_D(0,"tg-icon",12),e&2){let o=yx$1();TD("alt",o.alt);}}function vy(e,i){if(e&1&&_D(0,"tg-icon",13),e&2){let o=yx$1();TD("alt",o.alt);}}function yy(e,i){if(e&1&&_D(0,"tg-icon",14),e&2){let o=yx$1();TD("alt",o.alt);}}function xy(e,i){if(e&1&&_D(0,"tg-icon",15),e&2){let o=yx$1();TD("alt",o.alt);}}function by(e,i){if(e&1&&_D(0,"tg-icon",16),e&2){let o=yx$1();TD("alt",o.alt);}}function My(e,i){if(e&1&&_D(0,"tg-icon",9),e&2){let o=yx$1();TD("alt",o.alt);}}var Pg=(()=>{let i=class i{constructor(){this.attributeNames=Og;}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vehicle-attribute-icon"]],inputs:{attributeName:"attributeName",alt:"alt"},standalone:false,decls:10,vars:10,consts:[[3,"ngSwitch"],["name","vehicle-odometer","size","small",3,"alt",4,"ngSwitchCase"],["name","vehicle-transmission","size","small",3,"alt",4,"ngSwitchCase"],["name","vehicle-fuel","size","small",3,"alt",4,"ngSwitchCase"],["name","vehicle-engine","size","small",3,"alt",4,"ngSwitchCase"],["name","vehicle-seat","size","small",3,"alt",4,"ngSwitchCase"],["name","vehicle-car","size","small",3,"alt",4,"ngSwitchCase"],["name","vehicle-motorbike","size","small",3,"alt",4,"ngSwitchCase"],["name","location","size","small",3,"alt",4,"ngSwitchCase"],["name","vehicle-odometer","size","small",3,"alt"],["name","vehicle-transmission","size","small",3,"alt"],["name","vehicle-fuel","size","small",3,"alt"],["name","vehicle-engine","size","small",3,"alt"],["name","vehicle-seat","size","small",3,"alt"],["name","vehicle-car","size","small",3,"alt"],["name","vehicle-motorbike","size","small",3,"alt"],["name","location","size","small",3,"alt"]],template:function(n,l){n&1&&(Mf(0,0),iD(1,uy,1,1,"tg-icon",1)(2,fy,1,1,"tg-icon",2)(3,hy,1,1,"tg-icon",3)(4,Cy,1,1,"tg-icon",4)(5,vy,1,1,"tg-icon",5)(6,yy,1,1,"tg-icon",6)(7,xy,1,1,"tg-icon",7)(8,by,1,1,"tg-icon",8)(9,My,1,1,"tg-icon",1),Ja$2()),n&2&&(TD("ngSwitch",l.attributeName),X_$1(),TD("ngSwitchCase",l.attributeNames.odometer),X_$1(),TD("ngSwitchCase",l.attributeNames.transmission),X_$1(),TD("ngSwitchCase",l.attributeNames.fuel_type),X_$1(),TD("ngSwitchCase",l.attributeNames.engine),X_$1(),TD("ngSwitchCase",l.attributeNames.seats),X_$1(),TD("ngSwitchCase",l.attributeNames.car),X_$1(),TD("ngSwitchCase",l.attributeNames.bike),X_$1(),TD("ngSwitchCase",l.attributeNames.location),X_$1(),TD("ngSwitchCase",l.attributeNames.engine_hours));},dependencies:[Ip,yO,we],styles:["tm-vehicle-attribute-icon[_nghost-%COMP%]{display:inline;line-height:8px}"]});let e=i;return e})();var Dg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we,we,we,we,we,we,we,we,we,we]});let e=i;return e})();var Lg=(()=>{let i=class i{getPrimaryAttributes(t){return t.filter(n=>Js.includes(n.name))}getSecondaryAttributes(t){return t.filter(n=>!Js.includes(n.name)&&!Tg.includes(n.name))}getBooleanAttributes(t){return t.filter(n=>Eg.includes(n.name))}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var ky=(e,i)=>({secondaryAttributes:e,booleanAttributes:i});
13function Iy(e,i){if(e&1&&(Ia$1(0,"tg-tag",6)(1,"div",7),_D(2,"tm-vehicle-attribute-icon",8),Qx$1(3),bf$1()()),e&2){let o=i.$implicit;X_$1(2),TD("alt",o.displayName)("attributeName",o.name),X_$1(),Af$1(" \xA0 ",o.value," ");}}function Ty(e,i){if(e&1&&(Ia$1(0,"div",4),iD(1,Iy,4,3,"tg-tag",5),bf$1()),e&2){let o=i.ngIf;X_$1(),TD("ngForOf",o);}}function Oy(e,i){if(e&1&&(Ia$1(0,"div",7)(1,"span"),Qx$1(2),bf$1()()),e&2){let o=yx$1().$implicit;X_$1(2),Af$1(" ",o.displayName," ");}}function Ey(e,i){if(e&1&&(Ia$1(0,"span",12),Qx$1(1),bf$1()),e&2){let o=yx$1(2).$implicit;X_$1(),Af$1(" ",o.displayName,":\xA0 ");}}function Py(e,i){if(e&1&&(Ia$1(0,"span"),Qx$1(1),bf$1()),e&2){let o=yx$1(2).$implicit;X_$1(),Af$1(" ",o.displayValue," ");}}function Dy(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(2).$implicit;Af$1(" ",o.value," ");}}function Ly(e,i){if(e&1&&(Ia$1(0,"div",7),iD(1,Ey,2,1,"span",10)(2,Py,2,1,"span",11)(3,Dy,1,1,"ng-template",null,1,wA),bf$1()),e&2){let o=Tx$1(4),t=yx$1().$implicit;X_$1(),TD("ngIf",t.displayName!==t.value),X_$1(),TD("ngIf",t.displayValue)("ngIfElse",o);}}function By(e,i){if(e&1&&(Ia$1(0,"tg-tag",6),iD(1,Oy,3,1,"div",9)(2,Ly,5,3,"ng-template",null,0,wA),bf$1()),e&2){let o=i.$implicit,t=Tx$1(3),n=yx$1().ngIf;X_$1(),TD("ngIf",n.booleanAttributes.includes(o))("ngIfElse",t);}}function Fy(e,i){if(e&1&&(Ia$1(0,"div",4),iD(1,By,4,2,"tg-tag",5),bf$1()),e&2){let o=i.ngIf;X_$1(),TD("ngForOf",o.secondaryAttributes);}}var fs=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._vehicleAttributesService=n;}ngOnInit(){this.attributes$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item&&!!t.item.attributes),Fe(t=>t.item.attributes),o()),this.primaryAttributes$=this.attributes$.pipe(Fe(t=>this._vehicleAttributesService.getPrimaryAttributes(t))),this.secondaryAttributes$=this.attributes$.pipe(Fe(t=>this._vehicleAttributesService.getSecondaryAttributes(t))),this.booleanAttributes$=this.attributes$.pipe(Fe(t=>this._vehicleAttributesService.getBooleanAttributes(t)));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(Lg))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vehicle-attributes"]],standalone:false,decls:6,vars:11,consts:[["displayAttributeNameAndValue",""],["onlyAttributeValue",""],[1,"tm-vehicle-attributes"],["class","tm-motors-vehicle-attributes__attribute-section",4,"ngIf"],[1,"tm-motors-vehicle-attributes__attribute-section"],["class","tm-motors-vehicle-attributes__tag",4,"ngFor","ngForOf"],[1,"tm-motors-vehicle-attributes__tag"],[1,"tm-motors-vehicle-attributes__tag--content"],[3,"alt","attributeName"],["class","tm-motors-vehicle-attributes__tag--content",4,"ngIf","ngIfElse"],["class","tm-motors-vehicle-attributes__attribute-name",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"tm-motors-vehicle-attributes__attribute-name"]],template:function(n,l){n&1&&(Ia$1(0,"div",2),iD(1,Ty,2,1,"div",3),yA(2,"async"),iD(3,Fy,2,1,"div",3),yA(4,"async"),yA(5,"async"),bf$1()),n&2&&(X_$1(),TD("ngIf",DA$1(2,2,l.primaryAttributes$)),X_$1(2),TD("ngIf",hA(8,ky,DA$1(4,4,l.secondaryAttributes$),DA$1(5,6,l.booleanAttributes$))));},dependencies:[YI,mO,t0$1,Pg,bO],styles:["tm-vehicle-attributes[_nghost-%COMP%]{display:block}.tm-vehicle-attributes[_ngcontent-%COMP%]{margin-bottom:24px}.tm-motors-vehicle-attributes__attribute-section[_ngcontent-%COMP%]{display:inline;vertical-align:top}@media(min-width:768px){.tm-motors-vehicle-attributes__attribute-section[_ngcontent-%COMP%]{display:block;margin-bottom:8px}}.tm-motors-vehicle-attributes__attribute-name[_ngcontent-%COMP%]{font-weight:500}.tm-motors-vehicle-attributes__tag[_ngcontent-%COMP%]{min-height:28px;margin-right:8px;margin-bottom:8px;font-weight:700}@media(min-width:768px){.tm-motors-vehicle-attributes__tag[_ngcontent-%COMP%]{min-height:32px}}.tm-motors-vehicle-attributes__tag[_ngcontent-%COMP%]  .o-tag__content{padding:0}.tm-motors-vehicle-attributes__tag--content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;font-size:.875rem}"]});let e=i;return e})();var hs=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,o0$1,Dg]});let e=i;return e})();
13function Vy(e,i){if(e&1&&(Ia$1(0,"div",1)(1,"div"),Qx$1(2),bf$1(),Ia$1(3,"div"),Qx$1(4),bf$1()()),e&2){let o=yx$1(2);X_$1(2),Af$1(" ",o.detail?.displayName," "),X_$1(2),Af$1(" ",o.detail?.value," ");}}function Ay(e,i){if(e&1&&(Ia$1(0,"div",2),_D(1,"tg-icon",3),Ia$1(2,"label"),Qx$1(3),bf$1()()),e&2){let o=yx$1(2);X_$1(),TD("alt",o.detail==null?null:o.detail.displayName)("name",o.detail==null?null:o.detail.icon),X_$1(2),Af$1(" ",o.detail?.value," ");}}function $y(e,i){if(e&1&&(Ia$1(0,"div",0),JN(1,Vy,5,2,"div",1)(2,Ay,4,3,"div",2),bf$1()),e&2){let o=yx$1();X_$1(),XN(o.useBasicFormat?1:2);}}var Cs=(()=>{let i=class i{constructor(){this.useBasicFormat=false;}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vehicle-basic-detail"]],inputs:{detail:"detail",useBasicFormat:"useBasicFormat"},decls:1,vars:1,consts:[[1,"tm-vehicle-basic-detail"],[1,"tm-vehicle-basic-detail__basic"],[1,"tm-vehicle-basic-detail__extended"],[1,"tm-vehicle-basic-detail__extended-icon",3,"alt","name"]],template:function(n,l){n&1&&JN(0,$y,3,1,"div",0),n&2&&XN(l.detail?.value?0:-1);},dependencies:[we],styles:[".tm-vehicle-basic-detail__extended[_ngcontent-%COMP%]{display:flex;gap:8px;line-height:20px}.tm-vehicle-basic-detail__extended[_ngcontent-%COMP%]   .tm-vehicle-basic-detail__extended-icon[_ngcontent-%COMP%]{flex-shrink:0}.tm-vehicle-basic-detail__extended[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:0;margin-top:2px;white-space:nowrap;text-overflow:ellipsis;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}@supports (-webkit-line-clamp: 2){.tm-vehicle-basic-detail__extended[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.tm-vehicle-basic-detail__basic[_ngcontent-%COMP%]{line-height:20px}.tm-vehicle-basic-detail__basic[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-child{color:#9b9591;font-size:.75rem}.tm-vehicle-basic-detail__basic[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{font-weight:500}"]});let e=i;return e})();function Ry(e,i){if(e&1&&(Ia$1(0,"div",1),_D(1,"tm-vehicle-basic-detail",2),bf$1()),e&2){let o=i.$implicit;X_$1(),TD("useBasicFormat",true)("detail",o);}}var Fg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-all-vehicle-basic-details-display"]],inputs:{allBasicDetails:"allBasicDetails"},decls:3,vars:0,consts:[[1,"tm-all-vehicle-basic-details-display__container"],[1,"tm-all-vehicle-basic-details-display__body-item"],[3,"useBasicFormat","detail"]],template:function(n,l){n&1&&(Ia$1(0,"div",0),nx(1,Ry,2,2,"div",1,tx),bf$1()),n&2&&(X_$1(),rx$1(l.allBasicDetails));},dependencies:[Hb$1,Cs,e0$1,O_$1],styles:["tm-all-vehicle-basic-details-display[_nghost-%COMP%]{display:block}.tm-all-vehicle-basic-details-display__body-item[_ngcontent-%COMP%]{padding:8px 24px;border-bottom:1px solid #e8e6e3}"]});let e=i;return e})();function Ny(e,i){if(e&1&&(Ia$1(0,"div",4),Qx$1(1),bf$1()),e&2){let o=yx$1(2).$implicit;X_$1(),Af$1(" ",o.description," ");}}function jy(e,i){if(e&1&&(Ia$1(0,"div",5),Qx$1(1),bf$1()),e&2){let o=i.$implicit;X_$1(),Af$1(" ",o.display??o.name," ");}}function Uy(e,i){if(e&1&&(Ia$1(0,"tg-accordion-item")(1,"tg-accordion-heading",2),_D(2,"tg-icon-left",3),Qx$1(3),bf$1(),JN(4,Ny,2,1,"div",4),nx(5,jy,2,1,"div",5,tx),bf$1()),e&2){let o=yx$1().$implicit;X_$1(2),TD("name",o.iconName),X_$1(),Af$1(" ",o.name," "),X_$1(),XN(o.description?4:-1),X_$1(),rx$1(o.features);}}function Wy(e,i){if(e&1&&JN(0,Uy,7,3,"tg-accordion-item"),e&2){let o=i.$implicit;XN(o.features?.length>0?0:-1);}}var Vg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-all-vehicle-features-display"]],inputs:{vehicleFeatures:"vehicleFeatures"},decls:4,vars:0,consts:[[1,"tm-all-vehicle-features-display__container"],["multi",""],[1,"tm-all-vehicle-basic-details-display__accordion-item-heading"],["alt","heart",3,"name"],[1,"tm-all-vehicle-features-display__accordion-item-description","p-secondary-copy"],[1,"tm-all-vehicle-features-display__accordion-item"]],template:function(n,l){n&1&&(Ia$
131(0,"div",0)(1,"tg-accordion",1),nx(2,Wy,1,1,null,null,tx),bf$1()()),n&2&&(X_$1(2),rx$1(l.vehicleFeatures.categories));},dependencies:[Fg$1,R_$1,cr,we],styles:["tm-all-vehicle-features-display[_nghost-%COMP%]{display:block}tm-all-vehicle-features-display[_nghost-%COMP%]     .o-accordion__item{padding:0 24px}tm-all-vehicle-features-display[_nghost-%COMP%]     .o-accordion__item:after{border-bottom:1px solid #e8e6e3}tm-all-vehicle-features-display[_nghost-%COMP%]     .o-accordion__item-header-secondary{margin-left:auto;font-size:1rem}tm-all-vehicle-features-display[_nghost-%COMP%]     .o-accordion__item-content{padding-bottom:0}tm-all-vehicle-features-display[_nghost-%COMP%]     .o-accordion__item:last-of-type:after{border-bottom:none}.tm-all-vehicle-features-display__accordion-item[_ngcontent-%COMP%], .tm-all-vehicle-features-display__accordion-item-description[_ngcontent-%COMP%]{padding:12px 32px;color:#5a5653}"]});let e=i;return e})();var qy=e=>({"tm-vehicle-attributes-extended__only-basic":e});function Hy(e,i){if(e&1&&(Ia$1(0,"tg-tab")(1,"tg-tab-heading",3),Qx$1(2," Features "),bf$1(),Ia$1(3,"tg-tab-content"),_D(4,"tm-all-vehicle-features-display",5),bf$1()()),e&2){let o=yx$1();X_$1(4),TD("vehicleFeatures",o.vehicleFeatures);}}var vs=(()=>{let i=class i{constructor(t,n){this._listingFacade=t,this._vehicleAttributesService=n,this.vehicleAttributesModalSelectedTab=0,this.close=new Pt;}ngOnInit(){let t=this._listingFacade.getCurrentListing().pipe(Xt(n=>!!n?.item?.attributes),Fe(n=>n?.item?.attributes??[]));this.allBasicDetails$=t.pipe(Fe(n=>this._vehicleAttributesService.getAllSupportedDetails(n)));}closeModal(){this.close.emit();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(Yn))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vehicle-attributes-extended-modal"]],inputs:{vehicleFeatures:"vehicleFeatures",vehicleAttributesModalSelectedTab:"vehicleAttributesModalSelectedTab"},outputs:{close:"close"},decls:13,vars:8,consts:[[1,"test",3,"close"],[1,"tm-vehicle-attributes-extended-modal__body"],[3,"selected","ngClass"],[1,"tm-vehicle-attributes-extended-modal__heading","p-label"],[3,"allBasicDetails"],[3,"vehicleFeatures"]],template:function(n,l){n&1&&(Ia$1(0,"tg-modal",0),kD("close",function(){return l.closeModal()}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Vehicle information"),bf$1()(),Ia$1(4,"tg-modal-body",1)(5,"tg-tabs",2)(6,"tg-tab")(7,"tg-tab-heading",3),Qx$1(8," Basic details "),bf$1(),Ia$1(9,"tg-tab-content"),_D(10,"tm-all-vehicle-basic-details-display",4),yA(11,"async"),bf$1()(),JN(12,Hy,5,1,"tg-tab"),bf$1()()()),n&2&&(X_$1(5),TD("selected",l.vehicleAttributesModalSelectedTab)("ngClass",pA(6,qy,l.vehicleFeatures==null)),X_$1(5),TD("allBasicDetails",DA$1(11,4,l.allBasicDetails$)),X_$1(2),XN(l.vehicleFeatures!=null?12:-1));},dependencies:[VO,pO,Hb$1,Hr,jb$1,Lb$1,e0$1,Uf$1,Zb$1,$f$1,Kb$1,O_$1,Fg,Vg,bO],styles:["tm-vehicle-attributes-extended-modal[_nghost-%COMP%]{display:block}  .o-tabs__nav{width:100%}  .tm-vehicle-attributes-extended-modal__body .o-tabs__tab{flex-grow:1;text-align:center}  .o-tabs{border-bottom:none;margin:0}  .o-tabs__content{border-bottom:none;padding:0}.tm-vehicle-attributes-extended__only-basic[_ngcontent-%COMP%]     .o-scrollable-container-horizontal{display:none}.tm-vehicle-attributes-extended-modal__body[_ngcontent-%COMP%]{padding:0}"]});let e=i;return e})();function zy(e,i){if(e&1&&(Ia$1(0,"div",7)(1,"div",8),_D(2,"tg-icon",9),bf$1(),Ia$1(3,"div",10),Qx$1(4),bf$1()()),e&2){let o=i.$implicit,t=i.$index,n=yx$1();Xa$1("height",t+1>=(n.isMobile?n.startIndexOfLastRowMobile:n.startIndexOfLastRowDesktop)?"auto":"40px")("max-height",t+1>=(n.isMobile?n.startIndexOfLastRowMobile:n.startIndexOfLastRowDesktop)?"40px":""),X_$1(4),Af$1(" ",o.display??o.name," ");}}function Gy(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-vehicle-attributes-extended-modal",11),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeModal())}),bf$1();}if(e&2){let o=yx$1();TD("vehicleAttributesModalSelectedTab",1)("vehicleFeatures",o.vehicleFeatures);}}var Ag=(()=>{let i=class i{constructor(){this.isMobile=false,this.displayModal=false,this.defaultNumberOfTopFeaturesDesktop=9,this.defaultNumberOfTopFeaturesMobile=8,this.desktopCols=3,this.mobileCols=2,this.startIndexOfLastRowDesktop=1,this.startIndexOfLastRowMobile=1;}ngOnInit(){this.calculateLastRowIndices();}ngOnChanges(t){let{isMobile:n}=t;n&&this.calculateLastRowIndices();}calculateLastRowIndices(){let t=Math.min(this.vehicleFeatures?.topFeatures?.length||0,this.defaultNumberOfTopFeaturesDesktop),n=Math.min(this.vehicleFeatures?.topFeatures?.length||0,this.defaultNumberOfTopFeaturesMobile);this.startIndexOfLastRowDesktop=this.calculateLastRowIndex(t,this.desktopCols),this.startIndexOfLastRowMobile=this.calculateLastRowIndex(n,this.mobileCols);}calculateLastRowIndex(t,n){return t===0?1:Math.floor((t-1)/n)*n+1}closeModal(){this.displayModal=false;}
13showBasicDetailsModal(){this.displayModal=true;}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vehicle-features"]],inputs:{vehicleFeatures:"vehicleFeatures",isMobile:"isMobile"},features:[Zr],decls:9,vars:1,consts:[[1,"tm-vehicle-features__outer-container"],[1,"tm-vehicle-features__grid-container"],[1,"tm-vehicle-features__grid-item",3,"height","max-height"],[1,"tm-vehicle-features__footer"],["tgButton2","","linkStyle","",3,"click"],["role","presentation","name","basic-arrow-right",1,"tm-vehicle-features__footer-icon"],[3,"vehicleAttributesModalSelectedTab","vehicleFeatures"],[1,"tm-vehicle-features__grid-item"],[1,"tm-vehicle-features__grid-item-icon"],["size","small","name","basic-tick-framed","alt","topfeature.name"],[1,"tm-vehicle-features__grid-item-label"],[3,"close","vehicleAttributesModalSelectedTab","vehicleFeatures"]],template:function(n,l){n&1&&(Ia$1(0,"div",0)(1,"div",1),nx(2,zy,5,5,"div",2,tx),bf$1(),Ia$1(4,"div",3)(5,"button",4),kD("click",function(){return l.showBasicDetailsModal()}),Qx$1(6," Show all features "),bf$1(),_D(7,"tg-icon",5),bf$1(),JN(8,Gy,1,2,"tm-vehicle-attributes-extended-modal",6),bf$1()),n&2&&(X_$1(2),rx$1(l.vehicleFeatures.topFeatures),X_$1(6),XN(l.displayModal?8:-1));},dependencies:[we,He,vs],styles:["tm-vehicle-features[_nghost-%COMP%]{display:block}.tm-vehicle-features__grid-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:8px;min-width:0;flex-shrink:1;align-items:flex-start;height:40px}.tm-vehicle-features__grid-item[_ngcontent-%COMP%]   .tm-vehicle-features__grid-item-icon[_ngcontent-%COMP%]{flex-shrink:0;margin-top:-2px}.tm-vehicle-features__grid-item[_ngcontent-%COMP%]   .tm-vehicle-features__grid-item-label[_ngcontent-%COMP%]{text-overflow:ellipsis;word-break:break-word;-webkit-hyphens:auto;hyphens:auto;line-height:20px;overflow:hidden;margin-top:2px}@supports (-webkit-line-clamp: 2){.tm-vehicle-features__grid-item[_ngcontent-%COMP%]   .tm-vehicle-features__grid-item-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.tm-vehicle-features__grid-container[_ngcontent-%COMP%]{display:grid;gap:8px 16px;grid-template-columns:repeat(3,1fr);grid-auto-rows:max-content;align-items:start;padding:16px 16px 24px}.tm-vehicle-features__grid-container[_ngcontent-%COMP%]   .tm-vehicle-features__grid-item[_ngcontent-%COMP%]:nth-child(n+10){display:none}@media(max-width:767px){.tm-vehicle-features__grid-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.tm-vehicle-features__grid-container[_ngcontent-%COMP%]   .tm-vehicle-features__grid-item[_ngcontent-%COMP%]:nth-child(n+9){display:none}}.tm-vehicle-features__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8e6e3;padding:0 16px;height:56px}@media(min-width:768px){.tm-vehicle-features__footer-icon[_ngcontent-%COMP%]{display:none}}"]});let e=i;return e})();function Ky(e,i){if(e&1&&_D(0,"tm-vehicle-basic-detail",7),e&2){let o=i.$implicit;TD("detail",o);}}function Zy(e,i){if(e&1&&(Ia$1(0,"div",2),nx(1,Ky,1,1,"tm-vehicle-basic-detail",7,tx),bf$1()),e&2){let o=i.$implicit;X_$1(),rx$1(o);}}function Yy(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-vehicle-attributes-extended-modal",8),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeModal())}),bf$1();}if(e&2){let o=yx$1();TD("vehicleAttributesModalSelectedTab",0)("vehicleFeatures",o.vehicleFeatures);}}var $g=(()=>{let i=class i{constructor(){this.displayModal=false;}closeModal(){this.displayModal=false;}showBasicDetailsModal(){this.displayModal=true;}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vehicle-basic-details-summary-display"]],inputs:{vehicleFeatures:"vehicleFeatures",basicDetails$:"basicDetails$"},decls:10,vars:3,consts:[[1,"tm-vehicle-basic-details-summary-display"],[1,"tm-vehicle-basic-details-summary-display__body"],[1,"tm-vehicle-basic-details-summary-display__row"],[1,"tm-vehicle-basic-details-summary-display__footer"],["tgButton2","","linkStyle","",3,"click"],["role","presentation","name","basic-arrow-right",1,"tm-vehicle-basic-detail
13s-summary-display__footer-icon"],[3,"vehicleAttributesModalSelectedTab","vehicleFeatures"],[1,"tm-vehicle-basic-details-summary-display__body-detail",3,"detail"],[3,"close","vehicleAttributesModalSelectedTab","vehicleFeatures"]],template:function(n,l){n&1&&(Ia$1(0,"div",0)(1,"div",1),nx(2,Zy,3,0,"div",2,tx),yA(4,"async"),bf$1(),Ia$1(5,"div",3)(6,"button",4),kD("click",function(){return l.showBasicDetailsModal()}),Qx$1(7," Show all basic details "),bf$1(),_D(8,"tg-icon",5),bf$1(),JN(9,Yy,1,2,"tm-vehicle-attributes-extended-modal",6),bf$1()),n&2&&(X_$1(2),rx$1(DA$1(4,1,l.basicDetails$)),X_$1(7),XN(l.displayModal?9:-1));},dependencies:[Cs,we,He,vs,bO],styles:["tm-vehicle-basic-details-summary-display[_nghost-%COMP%]{display:block}.tm-vehicle-basic-details-summary-display__body[_ngcontent-%COMP%]{padding:16px 0 24px 16px}.tm-vehicle-basic-details-summary-display__row[_ngcontent-%COMP%]{display:flex;width:100%;height:48px}.tm-vehicle-basic-details-summary-display__row[_ngcontent-%COMP%]:last-of-type{height:unset}.tm-vehicle-basic-details-summary-display__body-detail[_ngcontent-%COMP%]{width:50%;padding-right:16px}@media(min-width:768px){.tm-vehicle-basic-details-summary-display__body-detail[_ngcontent-%COMP%]{width:33.3%}}.tm-vehicle-basic-details-summary-display__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8e6e3;padding:0 16px;height:56px}@media(min-width:768px){.tm-vehicle-basic-details-summary-display__footer-icon[_ngcontent-%COMP%]{display:none}}"]});let e=i;return e})();var Rg=(()=>{var i,o;let t=class t{constructor(){F$2(this,i,v(E$1));F$2(this,o,v(kn));}getFeatures(l){return E$3(this,i).selectClientConfig().pipe(An(1),lo$1(C=>{let I=`${C.vehicleFeaturesApiUrl}/${l}`;return E$3(this,o).get(I)}))}};i=new WeakMap,o=new WeakMap,t.\u0275fac=function(C){return new(C||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ng=(()=>{var i,o;let t=class t{constructor(){F$2(this,i);F$2(this,o);G$4(this,i,v(Ht$2)),G$4(this,o,v(Rg)),this.loadVehicleFeatures$=Gt$2(()=>E$3(this,i).pipe(kt(ps),lo$1(({curationId:l})=>E$3(this,o).getFeatures(l).pipe(Fe(C=>gs({curationId:l,response:C})),Wc(()=>$c(_s({curationId:l})))))));}};i=new WeakMap,o=new WeakMap,t.\u0275fac=function(C){return new(C||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})();var jg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[rn$1.forFeature(us,Mg),Bt.forFeature([Ng])]});let e=i;return e})();var Qy=e=>({"tm-vehicle-attributes-extended__only-basic":e});function Jy(e,i){if(e&1&&(Ia$1(0,"tg-tab")(1,"tg-tab-heading"),Qx$1(2," Features "),bf$1(),Ia$1(3,"tg-tab-content"),_D(4,"tm-vehicle-features",3),yA(5,"async"),yA(6,"async"),bf$1()()),e&2){let o=yx$1(2);X_$1(4),TD("vehicleFeatures",DA$1(5,2,o.vehicleFeatures$))("isMobile",DA$1(6,4,o.isMobile$));}}function Xy(e,i){if(e&1&&(Ia$1(0,"tg-tabs",0),yA(1,"async"),Ia$1(2,"tg-tab")(3,"tg-tab-heading"),Qx$1(4," Basic Details "),bf$1(),Ia$1(5,"tg-tab-content",1),_D(6,"tm-vehicle-basic-details-summary-display",2),yA(7,"async"),bf$1()(),JN(8,Jy,7,6,"tg-tab"),yA(9,"async"),bf$1()),e&2){let o=yx$1();TD("selected",0)("ngClass",pA(11,Qy,!DA$1(1,5,o.isVehicleFeaturesPopulated$))),X_$1(6),TD("basicDetails$",o.basicDetails$)("vehicleFeatures",DA$1(7,7,o.vehicleFeatures$)),X_$1(2),XN(DA$1(9,9,o.isVehicleFeaturesPopulated$)?8:-1);}}function ex(e,i){e&1&&_D(0,"tm-vehicle-attributes");}var ys=(()=>{let i=class i{constructor(t,n,l){this._listingFacade=t,this._vehicleAttributesService=n,this._mediaSizeFacade=l,this.displayBasicDetailsModal=false,this.vehicleFeatures$=$c(null);}ngOnInit(){let t=this._listingFacade.getCurrentListing().pipe(Xt(n=>!!n?.item?.attributes),Fe(n=>n?.item?.attributes??[]));this.showNewBasicDetails$=this._vehicleAttributesService.shouldShowExtendedComponent$(),this.isMobile$=this._mediaSizeFacade.getMediaSize().pipe(Fe(n=>n.isSm),o()),this.basicDetails$=wC$1([this.showNewBasicDetails$,t,this.isMobile$]).pipe(Fe(([n,l,C])=>
13this.getVehicleBasicDetails(n,C,l)),o());}ngOnChanges(t){if(t.listing&&t.listing.currentValue){let n=this._vehicleAttributesService.getCurationId(this.listing);n?this.vehicleFeatures$=this._vehicleAttributesService.getVehicleFeaturesByCurationId(n):this.vehicleFeatures$=$c(null);}this.isVehicleFeaturesPopulated$=this.vehicleFeatures$.pipe(Fe(n=>!!n&&n.categories?.length>0),o());}closeBasicDetailsModal(){this.displayBasicDetailsModal=false;}showBasicDetailsModal(){this.displayBasicDetailsModal=true;}chunk(t,n){let l=[];for(let C=0;C<t.length;C+=n){let I=t.slice(C,C+n);l.push(I);}return l}getVehicleBasicDetails(t,n,l){return t?this.chunk(this._vehicleAttributesService.getBasicDetails(l,n?10:9),n?2:3):[]}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(Yn),R$2(G))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-vehicle-attributes-extended"]],inputs:{listing:"listing"},features:[Zr],decls:3,vars:3,consts:[[3,"selected","ngClass"],[1,"tm-vehicle-attributes-extended__basic-details-content"],[3,"basicDetails$","vehicleFeatures"],[3,"vehicleFeatures","isMobile"]],template:function(n,l){n&1&&(JN(0,Xy,10,13,"tg-tabs",0),yA(1,"async"),wf$1(2,ex,1,0,"tm-vehicle-attributes")),n&2&&XN(DA$1(1,1,l.showNewBasicDetails$)?0:2);},dependencies:[VO,pO,hs,fs,e0$1,Uf$1,Zb$1,$f$1,Kb$1,Ag,$g,jg,bO],styles:["tm-vehicle-attributes-extended[_nghost-%COMP%]{display:block;margin-bottom:24px}tm-vehicle-attributes-extended[_nghost-%COMP%]     .o-tabs__tab-heading{font-size:1rem}tm-vehicle-attributes-extended[_nghost-%COMP%]     .o-tabs__content{padding:0;border:1px solid #d7d5d2;border-radius:0 8px 8px}tm-vehicle-attributes-extended[_nghost-%COMP%]     .o-scrollable-container-horizontal{border-bottom:0}tm-vehicle-attributes-extended[_nghost-%COMP%]     .o-tabs{border-bottom:0;margin:0}tm-vehicle-attributes-extended[_nghost-%COMP%]     .o-tabs__tab-link:first-child{padding:14px 16px}.tm-vehicle-attributes-extended__only-basic[_ngcontent-%COMP%]     .o-scrollable-container-horizontal{display:none}.tm-vehicle-attributes-extended__basic-details-content[_ngcontent-%COMP%]{padding:0}"]});let e=i;return e})();var rx=e=>({"l-container":e});function ax(e,i){if(e&1&&_D(0,"tm-motors-instavid-spin",7,0),e&2){let o=yx$1();TD("spinId",o==null||o.motorsExternalMedia==null?null:o.motorsExternalMedia.instavid360SpinnerId)("spinThumbnailUrl",o==null||o.motorsExternalMedia==null?null:o.motorsExternalMedia.instavid360SpinnerThumbnailUrl);}}function sx(e,i){if(e&1&&_D(0,"tm-motors-instavid-video",8,0),e&2){let o=yx$1();TD("videoUrl",o==null||o.motorsExternalMedia==null?null:o.motorsExternalMedia.videoUrl)("videoThumbnailUrl",o==null||o.motorsExternalMedia==null?null:o.motorsExternalMedia.videoThumbnailUrl);}}function lx(e,i){e&1&&_D(0,"tm-dealer-branding-mobile");}function mx(e,i){if(e&1&&_D(0,"tm-new-vehicle-badge",11),e&2){let o=yx$1(),t=yx$1();TD("newVehicleBadgeType",t.newVehicleBadgeTypeEnum.condition)("newVehicleBadgeValue",o.newCarInformation.condition);}}function cx(e,i){e&1&&_D(0,"tm-watchlist");}function dx(e,i){e&1&&_D(0,"tm-motors-consumer-finance-summary")(1,"tm-motors-dealer-finance-summary");}function px(e,i){e&1&&_D(0,"tm-book-a-test-drive-button-modal",29);}function gx(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",28),kD("deferLoad",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.deferBookTestDrive())}),JN(1,px,1,0,"tm-book-a-test-drive-button-modal",29),bf$1();}if(e&2){let o=yx$1(2);TD("preRender",false),X_$1(),XN(o.showBookTestDrive?1:-1);}}function _x(e,i){e&1&&(Ia$1(0,"div",15),_D(1,"tm-trade-in-button-modal",30),bf$1()),e&2&&TD("preRender",false);}function ux(e,i){if(e&1&&(Ia$1(0,"div",17)(1,"h2"),Qx$1(2,"Shipping & pick-up options"),bf$1(),_D(3,"tm-listing-shipping-details",4),bf$1()),e&2){let o=yx$1();X_$1(3),TD("listing",o);}}function fx(e,i){e&1&&_D(0,"tm-listing-features");}function hx(e,i){e&1&&_D(0,"tm-advertisement");}function Cx(e,i){e&1&&(Ia$1(0,"div",19)(1,"div",3),_D(2,"tm-book-test-drive"),bf$1()()),e&2&&TD("preRender",false);}function vx(e,i){if(e&1&&_D(0,"tm-before-you-buy",20),e&2){let o=yx$1();TD("listingId",o.listingId)("headingContent","Before you buy")("headingLevel","H2");}}function yx(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",22),yA(1,"async"),Ia$1(2,"tm-dealer-info",31),yA(3,"async"),kD("showLiveChatModalEvent",function(n){Xh$1(o);let l=yx$1(2);return eg$1(l.showLiveChatModal(n))}),bf$1()();}if(e&2){let o=yx$1(2);TD("ngClass",pA(6,rx,DA$1(1,2,o.isMdOrGreater$))),X_$1(2),TD("showDriveChat",DA$1(3,4,o.showDriveChat$));}}function xx(e,i){e&1&&_D(0,"tm-dealer-listings-stripe");}function bx(e,i){e&1&&_D(0,"tm-drivechat-iframe-wrapper",26);}function Mx(e,i){if(e&1){let o=dx$1();_D(0,"tm-sticky-header",1),yA(1,"async"),Ia$1(2,"tm-breadcrumbs-watchlist-banner",2),kD("visibleChange",function(n){Xh$1(o);let l=yx$1();return eg$1(l.onBreadcrumbsWatchlistBannerVisibleChange(n.isVisible))}),bf$1(),Ia$1(3,"div",3),_D(4,"tm-listing-closed-banner",4),bf$1(),Ia$1(5,"div",5)(6,"tm-gallery-view",6),yA(7,"async"),kD("visibleChange",function(n){Xh$1(o);let l=yx$1();return eg$1(l.onGalleryViewVisibleChange(n.isVisible))})("selectedIsAGalleryViewItem",function(n){Xh$1(o);let l=yx$1();return eg$1(l.onSelectedIndexChange(n))}),JN(8,ax,2,2,"tm-motors-instavid-spin",7),JN(9,sx,2,2,"tm-motors-instavid-video",8),bf$1()(),JN(10,lx,1,0,"tm-dealer-branding-mobile"),yA(11,"async"),Ia$1(12,"div",9),kD("visibleChange",function(n){Xh$1(o);let l=yx$1();return eg$1(l.onListingContentVisibleChange(n.isVisible))}),Ia$1(13,"div",10),_D(14,"tm-listing-date-city")(15,"tm-listing-title"),JN(16,mx,1,2,"tm-new-vehicle-badge",11),JN(17,cx,1,0,"tm-watchlist"),yA(18,"async"),Ia$1(19,"div",12),_D(20,"tm-auction-pricing-box")(21,"tm-motors-new-car-availability-badge"),Ia$1(22,"div",13),kD("deferLoad",function(){Xh$1(o);let n=yx$1();return eg$1(n.deferFinanceSummaries())}),JN(23,dx,2,0),yA(24,"async"),bf$1()(),Ia$1(25,"div",14),JN(26,gx,2,2,"div",15),yA(27,"async"),JN(28,_x,2,1,"div",15),yA(29,"async"),bf$1(),_D(30,"tm-vehicle-attributes-extended",4)(31,"tm-video")(32,"tm-listing-ratings")(33,"tm-background-check")(34,"tm-motors-listing-description",16),JN(35,ux,4,1,"div",17),yA(36,"async"),JN(37,fx,1,0,"tm-listing-features"),yA(38,"async"),_D(39,"tm-reviews-new-car-entry-point")(40,"tm-special-offer"),bf$1(),Ia$1(41,"div",18),yA(42,"async"),yA(43,"async"),_D(44,"tm-contact-box"),JN(45,hx,1,0,"tm-advertisement"),yA(46,"async"),bf$1()(),Ia$1(47,"div",13),kD("deferLoad",function(){Xh$1(o);let n=yx$1();return eg$1(n.deferBookTestDrive())}),JN(48,Cx,3,1,"div",19),yA(49,"async"),bf$1(),Ia$1(50,"div",3),_D(51,"tm-payment-pricing"),JN(52,vx,1,3,"tm-before-you-buy",20),bf$1(),Ia$1(53,"div",21)(54,"div",13),kD("deferLoad",function(){Xh$1(o);let n=yx$1();return eg$1(n.deferShowDealerInfo())}),JN(55,yx,4,8,"div",22),bf$1()(),Ia$1(56,"div",23),_D(57,"tm-listing-id-views"),bf$1(),Ia$1(58,"div",24)(59,"div",3),JN(60,xx,1,0,"tm-dealer-listings-stripe"),_D(61,"tm-motors-recommended-listings-stripe",25),bf$1()(),JN(62,bx,1,0,"tm-drivechat-iframe-wrapper",26),yA(63,"async"),_D(64,"tm-sticky-contact-footer",27),yA(65,"async");}if(e&2){let o=i,t=yx$1();TD("isVisible",DA$1(1,29,t.isUpperStickyBannerLargeVisible$)),X_$1(4),TD("listing",o),X_$1(2),TD("isPremium",DA$1(7,31,t.isPremium$)),X_$1(2),XN(o?.motorsExternalMedia?.instavid360SpinnerId?8:-1),X_$1(),XN(o?.motorsExternalMedia?.videoUrl?9:-1),X_$1(),XN(DA$1(11,33,t.isMdOrGreater$)?-1:10),X_$1(6),XN(o.newCarInformation?.condition&&o.newCarInformation?.condition!==t.newCarConditionEnum.certifiedPreOwned?16:-1),X_$1(),XN(DA$1(18,35,t.isMdOrGreater$)?-1:17),X_$1(5),TD("preRender",false),X_$1(),XN(t.showFinanceSummaries&&!DA$1(24,37,t.isCarCategory$)?23:-1),X_$1(3),XN(DA$1(27,39,t.isBookATestDriveAvailable$)?26:-1),X_$1(2),XN(DA$1(29,41,t.showTradeInButton$)?28:-1),X_$1(2),TD("listing",o),X_$1(5),XN(DA$1(36,43,t.showShippingOptions$)?35:-1),X_$1(2),XN(DA$1(38,45,t.showOldVehicleFeature$)?37:-1),X_$1(4),zD("tm-motors-listing__content--moved-up",DA$1(42,47,t.contactBoxShouldBeMovedUp$))("tm-motors-listing__content--moved-down",DA$1(43,49,t.contactBoxShouldBeMovedDown$)),X_$1(4),XN(DA$1(46,51,t.isMdOrGreater$)?45:-1),X_$1(2),TD("preRender",false),X_$1(),XN(t.showBookTestDrive&&DA$1(49,53,t.isBookATestDriveAvailable$)?48:-1),X_$1(4),XN(o?.listingId?52:-1),X_$1(2),TD("preRender",false),X_$1(),XN(t.showDealerInfo?55:-1),X_$1(5),XN(o.dealership?60:-1),X_$1(),TD("showTopM
13argin",o.dealership==null),X_$1(),XN(DA$1(63,55,t.showDriveChat$)?62:-1),X_$1(2),TD("isVisible",DA$1(65,57,t.isStickyFooterVisible$));}}var Ug=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e,he,it,nt,Qi,Ts,Os){this.mediaSizeFacade=t,this._listingFacade=n,this._motorsListingService=l,this._motorsListingFacade=C,this._testDriveFacade=I,this._windowRef=j,this._shippingDetailsUtil=_e,this._platformService=he,this._routerFacade=it,this._changeDetectorRef=nt,this._dealershipSettingsService=Qi,this._vehicleAttributesService=Ts,this._categoryService=Os,this._isListingContentVisible$=new oo(false),this._isGalleryViewVisible$=new oo(false),this._isBreadcrumbsWatchlistBannerVisible$=new oo(false),this._destroyed$=new W$1,this.showDealerInfo=false,this.showBookTestDrive=false,this.showFinanceSummaries=false,this.newCarConditionEnum=P$2,this.isGalleryViewItem$=new so$1,this.contactBoxHasBeenMovedDown=false,this.newVehicleBadgeTypeEnum=L$1;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item)),this.isCarCategory$=this.listing$.pipe(Fe(t=>this._categoryService.isUsedCars(R$3(t.category)))),this.motorsListing$=this._motorsListingFacade.getListingDetails().pipe(Xt(t=>!!t&&!!t.item),o()),this.isMdOrGreater$=this.mediaSizeFacade.is.md$.or.greater$,this.isPremium$=this.listing$.pipe(Fe(t=>this._motorsListingService.isPremium(t))),this.showShippingOptions$=this.listing$.pipe(Fe(t=>this._shippingDetailsUtil.showShippingOptions(t))),this.showDriveChat$=this.motorsListing$.pipe(Fe(t=>!!t&&!!t.item&&!!t.item.seller&&!!t.item.seller.liveChat&&!!t.item.seller.liveChat.driveChatUrl)),this.isBookATestDriveAvailable$=this._testDriveFacade.getTestDrive().pipe(Fe(t=>!!t&&!!t.item&&!!t.item.conditions)),this._userHasStartedScrolling$=this._windowRef.useWindow(t=>eu$1(t,"scroll").pipe(lo$1(()=>$c(true)),An(1))),this.isUpperStickyBannerLargeVisible$=wC$1([this.mediaSizeFacade.is.lg$.or.greater$,this._isBreadcrumbsWatchlistBannerVisible$]).pipe(nh(this._userHasStartedScrolling$??$c(false)),Fe(([[t,n],l])=>t&&!n&&l)),this.isStickyFooterVisible$=wC$1([this._isListingContentVisible$,this._isGalleryViewVisible$,this._listingFacade.getCurrentListing(),this._routerFacade.hasPreviousRouteFeature()]).pipe(Fe(([t,n,l,C])=>this._platformService.isServer||!C?true:l.isLoading===true&&l.item?false:t||n)),this.contactBoxShouldBeMovedUp$=this.isGalleryViewItem$.pipe(Fe(t=>t===false&&this.contactBoxHasBeenMovedDown)),this.contactBoxShouldBeMovedDown$=this.isGalleryViewItem$.pipe(Fe(t=>t===true)),this.showTradeInButton$=this.listing$.pipe(Xt(t=>!!t&&!!t.dealership),Fe(t=>this._dealershipSettingsService.isTradeInEnquiryEnabled(t.dealership.settings))),this.showOldVehicleFeature$=this._vehicleAttributesService.shouldShowExtendedComponent$().pipe(Fe(t=>!t));}onSelectedIndexChange(t){this.isGalleryViewItem$.next(t),this.contactBoxHasBeenMovedDown=this.contactBoxHasBeenMovedDown||t===true,this.motorsInstavidVideoComponent?.isEnabled&&this.motorsInstavidVideoComponent.stopPlayback(),this._changeDetectorRef.detectChanges();}onBreadcrumbsWatchlistBannerVisibleChange(t){this._isBreadcrumbsWatchlistBannerVisible$.next(t);}onGalleryViewVisibleChange(t){this._isGalleryViewVisible$.next(t);}onListingContentVisibleChange(t){this._isListingContentVisible$.next(t);}showLiveChatModal(t){this.driveChatComponent.openChat();}deferShowDealerInfo(){this.showDealerInfo=true;}deferBookTestDrive(){this.showBookTestDrive=true;}deferFinanceSummaries(){this.showFinanceSummaries=true;}ngOnDestroy(){this._destroyed$.next(),this.isGalleryViewItem$.complete();}};i.\u0275fac=function(n){return new(n||i)(R$2(G),R$2(pe),R$2(qe),R$2(Kt$1),R$2(nn),R$2(rt),R$2(se),R$2(h$2),R$2(D),R$2(mc$1),R$2(Za$2),R$2(Yn),R$2(P))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-dealer-listing"]],viewQuery:function(n,l){if(n&1&&jD(_a,5)(fa,5),n&2){let C;Cx$1(C=wx$1())&&(l.driveChatComponent=C.first),Cx$1(C=wx$1())&&(l.motorsInstavidVideoComponent=C.first);}},standalone:false,decls:2,vars:3,consts:[["galleryItem",""],[3,"isVisible"],["tmTrackVisible","",3,"visibleChange"],[1,"l-container"],[3,"listing"],[1,"tm-dealer-listing__gallery"],["adUnitPath","150718986/tm-frend/motors/cinema-view","fuseId","motors-cinema-view","tmTrackVisible","",1,"tm-motors-gallery-view",3,"visibleChange","selectedIsAGalleryViewItem","isPremium"],["desiredIndex","1",3,"spinId","spinThumbnailUrl"],[3,"videoUrl","videoThumbnailUrl"],["tmTrackVisible","",1,"l-container","tm-motors-listing__content","tm-motors-listing__content_top",3,"visibleChange"],[1,"tm-motors-listing__content--left"],[1,"tm-motors-listing__new-vehicle-badge",3,"newVehicleBadgeType","newVehicleBadgeValue"],[1,"tm-motors-listing__pricing-box-mobile"],[3,"deferLoad","preRender"],[1,"dealer-enquiry__buttons-container"],[1,"tm-motors-listing__btd",3,"preRender"],[1,"tm-motors-listing__desc"],[1,"tm-motors-listing__so"],[1,"tm-motors-listing__content--right"],[1,"tm-motors-listing__bottom-section",3,"preRender"],[3,"listingId","headingContent","headingLevel"],[1,"tm-motors-listing__bottom-section","tm-motors-listing__bottom-section__mobile"],[3,"ngClass"],[1,"l-container","tm-dealer-listing__views-id"],[1,"tm-motors-listing__bottom-section","tm-motors-listing__bottom-section__end"],[3,"showTopM
13argin"],["isNewLdp","true"],[1,"tm-dealer-listing__sticky-footer",3,"isVisible"],[1,"tm-motors-listing__btd",3,"deferLoad","preRender"],["compact","true","gtmLocation","top_ldp",1,"tm-motors-listing__btd"],["gtmLocation","top_ldp"],[3,"showLiveChatModalEvent","showDriveChat"]],template:function(n,l){if(n&1&&(JN(0,Mx,66,59),yA(1,"async")),n&2){let C;XN((C=DA$1(1,1,l.listing$))?0:-1,C);}},dependencies:[pO,ot$1,Ep,ga,Va,Ha,ja,$a,lg,wg,z0,hg,Na,f5,Ea,ns,is,x$2,Ja,wp,aV,Vi,La,Ga,_a,ss,cg,rs,ha,Za,H,ja$1,Ig,M$1,cs,Ve$2,Fp,fa,qt,ys,bO],styles:["tm-dealer-listing[_nghost-%COMP%]{display:block}.tm-dealer-listing__breadcrumbs-container[_ngcontent-%COMP%]{display:none}@media(min-width:1024px){.tm-dealer-listing__breadcrumbs-container[_ngcontent-%COMP%]{display:block}}.tm-motors-listing__watchlist-button[_ngcontent-%COMP%]{display:none}@media(min-width:768px){.tm-motors-listing__watchlist-button[_ngcontent-%COMP%]{display:block}}.tm-motors-listing__content[_ngcontent-%COMP%]{display:flex}.tm-motors-listing__content_top[_ngcontent-%COMP%]{padding-top:24px}@media(min-width:768px){.tm-motors-listing__content--left[_ngcontent-%COMP%]{flex:1;padding-right:24px}}.tm-motors-listing__content--right[_ngcontent-%COMP%]{display:none;z-index:1}@media(min-width:768px){.tm-motors-listing__content--right[_ngcontent-%COMP%]{display:block;max-width:40%}}.tm-motors-listing__pricing-box-mobile[_ngcontent-%COMP%]{display:block;margin-bottom:32px}@media(min-width:768px){.tm-motors-listing__pricing-box-mobile[_ngcontent-%COMP%]{display:none}}.tm-motors-listing__bottom-section[_ngcontent-%COMP%]{width:100%;padding-top:48px;padding-bottom:48px;margin-bottom:32px;background-color:#f6f5f4}@media(max-width:767px){.tm-motors-listing__bottom-section__mobile[_ngcontent-%COMP%]{padding-bottom:0;background-color:unset}}.tm-motors-listing__bottom-section__end[_ngcontent-%COMP%]{margin-bottom:0}.tm-motors-gallery-view[_ngcontent-%COMP%]{background:#f6f5f4}.tm-motors-listing__subtitle[_ngcontent-%COMP%]{font-size:1.5rem}.tm-motors-listing__video-play-button[_ngcontent-%COMP%]{border:none;margin-top:8px}.tm-motors-listing__desc[_ngcontent-%COMP%], .tm-motors-listing__so[_ngcontent-%COMP%]{margin-bottom:32px}.tm-motors-listing__btd[_ngcontent-%COMP%]{margin-bottom:8px}@media(min-width:1024px){.tm-motors-listing__btd[_ngcontent-%COMP%]{width:auto}}.tm-motors-listing__new-vehicle-badge[_ngcontent-%COMP%]{display:flex;margin-bottom:32px}@media(min-width:1024px){.tm-dealer-listing__sticky-footer[_ngcontent-%COMP%]{display:none}}.tm-dealer-listing__gallery[_ngcontent-%COMP%]{width:100%;background:#f6f5f4}.tm-dealer-listing__views-id[_ngcontent-%COMP%]{padding-bottom:32px}.tm-motors-listing__content--moved-up[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_contentSlideUpAnimation .5s ease 0s 1 alternate forwards}.tm-motors-listing__content--moved-down[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_contentSlideDownAnimation .5s ease 0s 1 alternate forwards}@keyframes _ngcontent-%COMP%_contentSlideDownAnimation{0%{transform:translateY(0)}to{transform:translateY(66px)}}@keyframes _ngcontent-%COMP%_contentSlideUpAnimation{0%{transform:translateY(66px)}to{transform:translateY(0)}}.dealer-enquiry__buttons-container[_ngcontent-%COMP%]{gap:16px}@media(min-width:768px){.dealer-enquiry__buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}}"]});let e=i;return e})();var Wg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Rb$1,we,He,we,we,eu,T]});let e=i;return e})();var qg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Hb$1,He,we,O_$1,Ja$1,W]});let e=i;return e})();var Hg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Hb$1,qg,He,W]});let e=i;return e})();var zg=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({providers:[{provide:Q,useClass:Q}],imports:[VO,ut,ji,Mt,He,we,Pp,to,Gt$1,Aa,za,Rb$1,Ua,Ra,Wa,mg,Wg,G0,vg,lo,S5,Pa,os,Zn,Xa,lo,Bu$1,Fa,ca$1,kp,Lu$1,eu,yV,Ai,Gt,S5,Ba,Ka,ua,Ja$1,ls,dg,as,Ca,Ya,ie,tr,Hg,R,ds,Le,Vp,$p,Ht,ys]});let e=i;return e})();var wx=()=>({required:"Please enter your name",pattern:"Please enter a valid name"}),kx=()=>({required:"Please enter your email address",email:"Please enter a valid email address"}),Ix=()=>({message:"Please enter a valid phone number. It must be less than 30 characters."}),Tx=()=>({message:"Please enter a valid phone number. It must be at least 6 characters."}),Ox=()=>({message:"Please enter a valid phone number. It must only contain numbers and the characters ,._()+-."}),Ex=(e,i,o)=>({phoneNumberTooLong:e,phoneNumberTooShort:i,phoneNumberNotOnlyDigits:o});function Px(e,i){e&1&&(Ia$1(0,"div",9),Qx$1(1),bf$1()),e&2&&(X_$1(),Af$1(" ",i," "));}var Gg=(()=>{let i=class i{constructor(){this.activatedRoute=v(Re),this.destroyRef=v(Te),this.listingFacade=v(pe),this.currentMemberFacade=v(E),this.consumerFinanceFacade=v(pn),this.motorsGtmService=v($$1),this.analyticsService=v(De),this.logger=v(f$1),this.windowRef=v(rt),this.routedModalCloseService=v(Uo),this.metaDataFacade=v(l),this.motorsDrivaLeadsModalTrackingId="driva_finance_leads_modal",this.gtmEventOrigin="leads_modal",this.continueOnDrivaTrackingId="driva_leads_modal_direct_click_through",this.currentListingId=F(this.listingFacade.getCurrentListingId(),{initialValue:void 0}),this.latestMetaData=F(this.metaDataFacade.getMetaData(),{initialValue:void 0}),this.isSubmitting=hn(false),this.submitError=hn(void 0),this.leadForm=new qe$2({name:new ut$2("",{nonNullable:true,validators:[St.required,St.pattern(/\S/)]}),email:new ut$2("",{nonNullable:true,validators:St.required}),phone:new ut$2("",{nonNullable:true})}),this.metaDataFacade.getMetaData().pipe(Xt(n=>!n.blockRobotIndexAndFollow),U(this.destroyRef)).subscribe(n=>this.metaDataFacade.updateMetaData(z(y({},n),{blockRobotIndexAndFollow:true}))),this.destroyRef.onDestroy(()=>{let n=this.latestMetaData();n&&this.metaDataFacade.updateMetaData(z(y({},n),{blockRobotIndexAndFollow:false}));});let t=this.currentMemberFacade.currentMember();t&&(this.leadForm.patchValue({name:[t.firstName,t.lastName].filter(
13Boolean).join(" "),email:t.email??"",phone:t.mobilePhoneNumber??t.landlinePhoneNumber??""}),$y$1(()=>this.leadForm.controls.email.updateValueAndValidity())),this.analyticsService.addEvent(this.motorsDrivaLeadsModalTrackingId,this.motorsGtmService.getDrivaLeadsModalGtmData("viewed",this.gtmEventOrigin));}closeModal(){this.routedModalCloseService.closeModal(this.activatedRoute);}continueOnDriva(){if(!this.leadForm.valid){this.leadForm.markAllAsTouched();return}let t=this.currentListingId();if(!t){this.logger.logError({name:"ConsumerFinanceApplyModalComponent.continueOnDriva",message:"Attempted to submit consumer finance lead without a listing id",originalError:new Error("Missing listingId")}),this.submitError.set("Sorry, something went wrong. Please try again.");return}this.analyticsService.addEvent(this.continueOnDrivaTrackingId,this.motorsGtmService.getDrivaLeadsModalGtmData("clicked",this.gtmEventOrigin)),this.submitError.set(void 0),this.isSubmitting.set(true);let{name:n,email:l,phone:C}=this.leadForm.getRawValue(),[I,...j]=n.trim().split(/\s+/),_e={listingId:t,firstName:I,lastName:j.join(" ")||void 0,email:l||void 0,phoneNumber:C||void 0};this.consumerFinanceFacade.createConsumerFinanceLead(_e).pipe(Xt(he=>!he.isLoading),An(1),U(this.destroyRef)).subscribe(he=>{if(this.isSubmitting.set(false),he.error){let nt=new Error(he.error.errorMessage);nt.name=he.error.errorName,this.logger.logError({name:"ConsumerFinanceApplyModalComponent.continueOnDriva",message:"Failed to create consumer finance lead",originalError:nt}),this.submitError.set("Sorry, something went wrong. Please try again.");return}if(!he.item?.success){this.submitError.set(he.item?.description||"Sorry, we couldn't process your request. Please try again.");return}this.analyticsService.addEvent(this.motorsDrivaLeadsModalTrackingId,this.motorsGtmService.getDrivaLeadsModalGtmData("succeeded",this.gtmEventOrigin));let it=he.item.leadUrl;it?.startsWith("https://")?this.windowRef.useWindow(nt=>nt.open(it,"_blank","noopener,noreferrer")):it&&this.logger.logError({name:"ConsumerFinanceApplyModalComponent.continueOnDriva",message:"Received a non-https leadUrl, refusing to open it",originalError:new Error(`Invalid leadUrl scheme: ${it}`)});});}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-consumer-finance-apply-modal"]],hostAttrs:["ngSkipHydration","true"],decls:40,vars:18,consts:[["size","medium",3,"close","stickyFooter"],[1,"p-h3"],["method","POST","aria-label","Your details",3,"formGroup"],["label","Name",3,"validation"],["formControlName","name","tgTextInput","","name","name","type","text","required",""],["label","Email",3,"validation"],["formControlName","email","tmValidateEmail","","tgTextInput","","name","email","type","email","required",""],["label","Phone",3,"validation"],["formControlName","phone","tmValidatePhoneNumber","","tgTextInput","","name","phone","type","tel","placeholder","e.g. 0211234567"],["role","alert",1,"tm-motors-consumer-finance-apply-modal__error"],[1,"tm-motors-consumer-finance-apply-modal__trust-section"],[1,"tm-motors-consumer-finance-apply-modal__trust-heading"],[1,"tm-motors-consumer-finance-apply-modal__trust-badges"],["src","/images/frend/motors/driva-primary-logo.svg","width","115","height","24","alt","Driva logo",1,"tm-motors-consumer-finance-apply-modal__driva-logo"],["src","/images/frend/motors/fixed_driva_trustscore.svg","width","111","height","28","alt","Driva's Trustpilot rating badge",1,"tm-motors-consumer-finance-apply-modal__trustpilot-logo"],[1,"tm-motors-consumer-finance-apply-modal__benefits-list"],[1,"tm-motors-consumer-finance-apply-modal__benefit-item"],["role","presentation","name","basic-tick"],[1,"tm-motors-consumer-finance-apply-modal__partner-logos"],[1,"tm-motors-consumer-finance-apply-modal__footer-buttons"],["routerLink","../consumer-finance","tgButton2","","tgStyle","secondary","fullWidth","",1,"tm-motors-consumer-finance-apply-modal__cancel",3,"replaceUrl"],["type","button","tgButton2","","tgStyle","primary","fullWidth","",1,"tm-motors-consumer-finance-apply-modal__cta",3,"click","loading","disabled"],["role","presentation","name","link-external"]],template:function(n,l){if(n&1&&(Ia$
131(0,"tg-modal",0),kD("close",function(){return l.closeModal()}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Finance"),bf$1()(),Ia$1(4,"tg-modal-body")(5,"h3",1),Qx$1(6,"Let's get you the best rate"),bf$1(),Ia$1(7,"form",2)(8,"tg-input-container",3),_D(9,"input",4),KS(),bf$1(),Ia$1(10,"tg-input-container",5),_D(11,"input",6),KS(),bf$1(),Ia$1(12,"tg-input-container",7),_D(13,"input",8),KS(),bf$1()(),JN(14,Px,2,1,"div",9),Ia$1(15,"div",10)(16,"h3",11),Qx$1(17," Get personalised finance quotes in 2 minutes "),bf$1(),Ia$1(18,"div",12),_D(19,"img",13)(20,"img",14),bf$1(),Ia$1(21,"ul",15)(22,"li",16),_D(23,"tg-icon",17),Qx$1(24," No impact on credit score "),bf$1(),Ia$1(25,"li",16),_D(26,"tg-icon",17),Qx$1(27," Compare rates from 15+ lenders "),bf$1(),Ia$1(28,"li",16),_D(29,"tg-icon",17),Qx$1(30," Backed by Driva's rate promise "),bf$1()(),Ia$1(31,"div",18),_D(32,"tm-motors-consumer-finance-lender-logos"),bf$1()()(),Ia$1(33,"tg-modal-footer")(34,"div",19)(35,"a",20),Qx$1(36," Back "),bf$1(),Ia$1(37,"button",21),kD("click",function(){return l.continueOnDriva()}),Qx$1(38," Continue on Driva "),_D(39,"tg-icon",22),bf$1()()()()),n&2){let C;TD("stickyFooter",true),X_$1(7),TD("formGroup",l.leadForm),X_$1(),TD("validation",fA(9,wx)),X_$1(),XS(),X_$1(),TD("validation",fA(10,kx)),X_$1(),XS(),X_$1(),TD("validation",gA(14,Ex,fA(11,Ix),fA(12,Tx),fA(13,Ox))),X_$1(),XS(),X_$1(),XN((C=l.submitError())?14:-1,C),X_$1(21),TD("replaceUrl",true),X_$1(2),TD("loading",l.isSubmitting())("disabled",l.isSubmitting());}},dependencies:[re,Gm,Vi$1,Ai$1,Bm,Wn,Kn$1,_d,de,At,_t$2,rn,Hb$1,Hr,jb$1,Bb$1,Lb$1,He,br,K_$1,ce,Eh$1,Fh$1,we,ee],styles:["tm-motors-consumer-finance-apply-modal[_nghost-%COMP%]{display:block}tg-modal[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fade-in .15s ease-in}@keyframes _ngcontent-%COMP%_fade-in{0%{opacity:0}to{opacity:1}}.tm-motors-consumer-finance-apply-modal__error[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px;color:#d93a3f}.tm-motors-consumer-finance-apply-modal__trust-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-top:24px}.tm-motors-consumer-finance-apply-modal__trust-heading[_ngcontent-%COMP%]{margin-bottom:0;font-size:18px;font-weight:500}.tm-motors-consumer-finance-apply-modal__trust-badges[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.tm-motors-consumer-finance-apply-modal__driva-logo[_ngcontent-%COMP%]{width:115px;height:24px}.tm-motors-consumer-finance-apply-modal__trustpilot-logo[_ngcontent-%COMP%]{width:111px;height:28px}.tm-motors-consumer-finance-apply-modal__benefits-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}.tm-motors-consumer-finance-apply-modal__benefit-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding-bottom:8px;color:#65605d}.tm-motors-consumer-finance-apply-modal__partner-logos[_ngcontent-%COMP%]{margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;padding:8px 0}.tm-motors-consumer-finance-apply-modal__footer-buttons[_ngcontent-%COMP%]{display:flex;gap:16px;width:100%}.tm-motors-consumer-finance-apply-modal__footer-buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-bottom:0}.tm-motors-consumer-finance-apply-modal__cancel[_ngcontent-%COMP%]{display:none}@media(min-width:1024px){.tm-motors-consumer-finance-apply-modal__cancel[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}}"]});let e=i;return e})();function xs(e){if(!e?.title)return null;let i=e.attributes||[],o=Kg(i,"body_style"),t=Kg(i,"transmission"),l=[e.title,o,t].filter(Boolean).join(", "),C=Dx(e);return C&&(l+=`. Seller located in ${C}.`),e.isClassified&&e.priceDisplay&&(C||(l+="."),l+=` ${e.priceDisplay}.`),l}function Kg(e,i){return e.find(t=>t.name===i)?.value??null}function Dx(e){return e.suburb||e.region?[e.suburb,e.region].filter(Boolean).join(", "):e.dealership?[e.dealership.suburb,e.dealership.city].filter(Boolean).join(", "):null}var Zg="https://help.trademe.co.nz/hc/en-us/articles/16343289399439-Money-Back-Guarantee-policy";var Bx="listing-details",Fx="confirm",Vx="summary",Yg="focus",Ax="price",$x="contacts",Qg=(()=>{let i=class i{constructor(t,n){this._categoryService=t,this._appConfigFacade=n;}buildEditListingActionHref(t){return t.pipe(lo$1(n=>this.getSellUrl(n.listingId,r$2.EDIT_DEFAULT)))}buildEditPriceActionHref(t){return t.pipe(lo$1(n=>{let l=R$3(n.category),C;this._categoryService.isCars(l)?C=r$2.CAR_SELL_LISTING_EDIT_ROOT:this._categoryService.isMotorBikes(l)?C=r$2.BIKE_SELL_LISTING_EDIT_ROOT:this._categoryService.isMotorBoats(l)&&(C=r$2.BOAT_SELL_LISTING_EDIT_ROOT);let I=new se$1().set("from","FrEnd").set(Yg,Ax);
13return C?this.getSellUrl(n.listingId,C,`/${Bx}`,I):$c(void 0)}))}buildEditContactDetailsHref(t){return t.pipe(lo$1(n=>{let l=Fx,C=R$3(n.category),I;this._categoryService.isCars(C)?I=r$2.CAR_SELL_LISTING_EDIT_ROOT:this._categoryService.isMotorBikes(C)?I=r$2.BIKE_SELL_LISTING_EDIT_ROOT:this._categoryService.isMotorBoats(C)&&(I=r$2.BOAT_SELL_LISTING_EDIT_ROOT,l=Vx);let j=new se$1().set("from","FrEnd").set(Yg,$x);return I?this.getSellUrl(n.listingId,I,`/${l}`,j):$c(void 0)}))}getSellUrl(t,n,l="",C=void 0){return this._appConfigFacade.selectClientConfig().pipe(Fe(I=>{let j=`${I.tmClassicBaseUrl}${n(t)}`;return C?`${j}${l}?${C.toString()}`:`${j}${l}`}))}};i.\u0275fac=function(n){return new(n||i)(G$2(P),G$2(E$1))},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var bs=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-boosted-flag"]],decls:3,vars:0,consts:[[1,"tm-motors-boosted-flag__flag"],["name","vehicle-car-transit","role","presentation"]],template:function(n,l){n&1&&(Ia$1(0,"tg-flag",0),_D(1,"tg-icon",1),Qx$1(2,` Boosted listing
14`),bf$1());},dependencies:[ub,we],styles:["tm-motors-boosted-flag[_nghost-%COMP%]{align-self:flex-start}.tm-motors-boosted-flag__flag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin:0;background-color:#4854d3;color:#fff}.tm-motors-boosted-flag__flag[_ngcontent-%COMP%]   tg-icon[_ngcontent-%COMP%]{fill:currentColor;flex-shrink:0}"]});let e=i;return e})();function jx(e,i){e&1&&_D(0,"tm-motors-boosted-flag",5);}function Ux(e,i){e&1&&(Mf(0),Qx$1(1," \xA0 "),_D(2,"div",19),Qx$1(3," Offers "),Ja$2());}function Wx(e,i){e&1&&Qx$1(0,"1 Offer ");}function qx(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(5);Af$1("",o.auctionOfferTotal," Offers ");}}function Hx(e,i){if(e&1&&(Ia$1(0,"a",20),Mf(1,9),iD(2,Wx,1,0,"ng-template",10)(3,qx,1,1,"ng-template",11),Ja$2(),bf$1()),e&2){let o=yx$1(4);TD("routerLink",oA("/my-trade-me/sell/offers/",o.listing.listingId)),X_$1(),TD("ngPlural",o.auctionOfferTotal);}}function zx(e,i){if(e&1&&(Ia$1(0,"li"),_D(1,"tg-icon",17),iD(2,Ux,4,0,"ng-container",18)(3,Hx,4,3,"ng-template",null,0,wA),bf$1()),e&2){let o=Tx$1(4),t=yx$1(3);X_$1(2),TD("ngIf",t.auctionOfferIsLoading)("ngIfElse",o);}}function Gx(e,i){e&1&&Qx$1(0,"1 Bid ");}function Kx(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(4);Af$1("",o.sellerOptionsState.bidCount," Bids ");}}function Zx(e,i){if(e&1&&(Ia$1(0,"li"),_D(1,"tg-icon",21),Mf(2,9),iD(3,Gx,1,0,"ng-template",10)(4,Kx,1,1,"ng-template",11),Ja$2(),bf$1()),e&2){let o=yx$1(3);X_$1(2),TD("ngPlural",o.sellerOptionsState.bidCount);}}function Yx(e,i){e&1&&Qx$1(0,"1 Watchlist ");}function Qx(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(3);Af$1("",o.sellerOptionsState.biddersAndWatchersCount," Watchlists ");}}function Jx(e,i){e&1&&Qx$1(0,"1 Sale ");}function Xx(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(4);Af$1("",o.sellerOptionsState.saleCount," Sales ");}}function e3(e,i){if(e&1&&(Ia$1(0,"li"),_D(1,"tg-icon",8),Mf(2,9),iD(3,Jx,1,0,"ng-template",10)(4,Xx,1,1,"ng-template",11),Ja$2(),bf$1()),e&2){let o=yx$1(3);X_$1(2),TD("ngPlural",o.sellerOptionsState.saleCount);}}function t3(e,i){e&1&&Qx$1(0,"1 View ");}function i3(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(3);Af$1("",o.sellerOptionsState.viewCount," Views ");}}function n3(e,i){if(e&1&&(Ia$1(0,"li",24)(1,"div"),Qx$1(2,"Start price"),bf$1(),Ia$1(3,"div"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2){let o=yx$1(4);X_$1(4),Af$1(" ",DA$1(5,1,o.sellerOptionsState.startPrice)," ");}}function o3(e,i){e&1&&(Ia$1(0,"span"),Qx$1(1," No reserve "),bf$1());}function r3(e,i){if(e&1&&(Ia$1(0,"span"),Qx$1(1),yA(2,"tgCurrency"),bf$1()),e&2){let o=yx$1(5);X_$1(),Af$1(" ",DA$1(2,1,o.sellerOptionsState.reservePrice)," ");}}function a3(e,i){if(e&1&&(Ia$1(0,"li",24)(1,"div"),Qx$1(2,"Reserve price"),bf$1(),Ia$1(3,"div"),iD(4,o3,2,0,"span",1)(5,r3,3,3,"span",1),bf$1()()),e&2){let o=yx$1(4);X_$1(4),TD("ngIf",o.sellerOptionsState.hasNoReserve),X_$1(),TD("ngIf",!o.sellerOptionsState.hasNoReserve&&o.sellerOptionsState.reservePrice);}}function s3(e,i){if(e&1&&(Ia$1(0,"li",24)(1,"div"),Qx$1(2,"Buy Now"),bf$1(),Ia$1(3,"div"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2){let o=yx$1(4);X_$1(4),Af$1(" ",DA$1(5,1,o.sellerOptionsState.buyNowPrice)," ");}}function l3(e,i){e&1&&Qx$1(0,"1 item available");}function m3(e,i){if(e&1&&Qx$1(0),e&2){let o=yx$1(6);Af$1("",o.sellerOptionsState.quantity," items available");}}
14function c3(e,i){if(e&1&&(Ia$1(0,"div")(1,"span",9),iD(2,l3,1,0,"ng-template",10)(3,m3,1,1,"ng-template",11),bf$1()()),e&2){let o=yx$1(5);X_$1(),TD("ngPlural",o.sellerOptionsState.quantity);}}function d3(e,i){if(e&1&&(Ia$1(0,"li",24)(1,"div"),Qx$1(2,"Quantity"),bf$1(),iD(3,c3,4,1,"div",1),bf$1()),e&2){let o=yx$1(4);X_$1(3),TD("ngIf",o.sellerOptionsState.quantity);}}function p3(e,i){if(e&1&&(Ia$1(0,"span")(1,"strong"),Qx$1(2),yA(3,"tgCurrency"),bf$1(),_D(4,"br")(5,"tm-member-reputation",25),bf$1()),e&2){let o=yx$1(5);X_$1(2),Af$1(" ",DA$1(3,2,o.sellerOptionsState.leadingBid.bidAmount)," "),X_$1(3),TD("memberSummary",o.sellerOptionsState.leadingBid.bidder);}}function g3(e,i){e&1&&(Ia$1(0,"span"),Qx$1(1," No bids "),bf$1());}function _3(e,i){if(e&1&&(Ia$1(0,"li",24)(1,"div")(2,"strong"),Qx$1(3," Current Bid "),bf$1()(),Ia$1(4,"div"),iD(5,p3,6,4,"span",1)(6,g3,2,0,"span",1),bf$1()()),e&2){let o=yx$1(4);X_$1(5),TD("ngIf",o.sellerOptionsState.leadingBid),X_$1(),TD("ngIf",!o.sellerOptionsState.leadingBid);}}function u3(e,i){if(e&1&&(Ia$1(0,"ul",22),iD(1,n3,6,3,"li",23)(2,a3,6,2,"li",23)(3,s3,6,3,"li",23)(4,d3,4,1,"li",23)(5,_3,7,2,"li",23),bf$1()),e&2){let o=yx$1(3);X_$1(),TD("ngIf",!o.sellerOptionsState.isBuyNowOnly),X_$1(),TD("ngIf",!o.sellerOptionsState.isBuyNowOnly),X_$1(),TD("ngIf",o.sellerOptionsState.buyNowPrice),X_$1(),TD("ngIf",o.sellerOptionsState.isBuyNowOnly&&o.sellerOptionsState.isMql),X_$1(),TD("ngIf",!o.sellerOptionsState.isBuyNowOnly);}}function f3(e,i){e&1&&(Ia$1(0,"span"),Qx$1(1," or near offer "),bf$1());}function h3(e,i){if(e&1&&(Ia$1(0,"div")(1,"ul")(2,"li",24)(3,"div"),Qx$1(4,"Asking price"),bf$1(),Ia$1(5,"div"),Qx$1(6),yA(7,"tgCurrency"),iD(8,f3,2,0,"span",1),bf$1()()()()),e&2){let o=yx$1(3);X_$1(6),Af$1(" ",DA$1(7,2,o.sellerOptionsState.startPrice)," "),X_$1(2),TD("ngIf",o.sellerOptionsState.isOrNearOffer);}}function C3(e,i){if(e&1&&(Ia$1(0,"a",29),Qx$1(1," Extend listing "),bf$1()),e&2){let o=yx$1(2).ngIf;TD("href",o.extend,Ry$1);}}function v3(e,i){if(e&1&&(Ia$1(0,"a",29),Qx$1(1," Edit listing "),bf$1()),e&2){let o=yx$1(2).ngIf;TD("href",o.edit,Ry$1);}}function y3(e,i){if(e&1&&(Ia$1(0,"a",29),Qx$1(1," Promote "),bf$1()),e&2){let o=yx$1(2).ngIf;TD("href",o.promote,Ry$1);}}function x3(e,i){if(e&1&&(Mf(0),iD(1,C3,2,1,"a",28)(2,v3,2,1,"a",28)(3,y3,2,1,"a",28),Ja$2()),e&2){let o=yx$1(4);X_$1(),TD("ngIf",o.sellerOptionsState.canExtend),X_$1(),TD("ngIf",o.sellerOptionsState.canEditListing),X_$1(),TD("ngIf",o.canEditListing);}}function b3(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"button",30),kD("click",function(){Xh$1(o);let n=yx$1(5);return eg$1(n.editMarketplaceListing())}),Qx$1(2," Edit listing "),bf$1(),Ja$2();}}function M3(e,i){if(e&1&&(Ia$1(0,"div",31)(1,"a",29),_D(2,"tg-icon",33),Qx$1(3," Change price "),bf$1()()),e&2){let o=i.ngIf;X_$1(),TD("href",o,Ry$1);}}function S3(e,i){if(e&1&&(Ia$1(0,"div",31)(1,"a",29),_D(2,"tg-icon",34),Qx$1(3," Edit contact details "),bf$1()()),e&2){let o=i.ngIf;X_$1(),TD("href",o,Ry$1);}}function w3(e,i){if(e&1&&(Ia$1(0,"div",31)(1,"a",29),_D(2,"tg-icon",35),Qx$1(3," Request refund "),bf$1()()),e&2){let o=yx$1(6);X_$1(),TD("href",o.mbgRefundUrl,Ry$1);}}function k3(e,i){if(e&1&&(Ia$1(0,"a",29),_D(1,"tg-icon",36),Qx$1(2," Extend listing "),bf$1()),e&2){let o=yx$1(4).ngIf;TD("href",o.extend,Ry$1);}}function I3(e,i){if(e&1&&(Ia$1(0,"a",29),_D(1,"tg-icon",36),Qx$1(2," Extend listing "),bf$1()),e&2){let o=yx$1(7);TD("href",oA("/Sell/ExtendClassified.aspx?id=",o.listing.listingId,"&rfm=1&from=FrEnd"),Ry$1);}}function T3(e,i){if(e&1&&(Ia$1(0,"div",31),iD(1,k3,3,1,"a",28)(2,I3,3,2,"a",28),bf$1()),e&2){let o=yx$1(3).ngIf;X_$1(),TD("ngIf",o.bof),X_$1(),TD("ngIf",!o.bof);}}function O3(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",31)(2,"a",29),yA(3,"async"),_D(4,"tg-icon",32),Qx$1(5," Edit listing "),bf$1()(),iD(6,M3,4,1,"div",27),yA(7,"async"),iD(8,S3,4,1,"div",27),yA(9,"async"),iD(10,w3,4,1,"div",27)(11,T3,3,2,"div",27),Ja$2()),e&2){let o=yx$1(5);X_$1(2),TD("href",DA$1(3,5,o.editListingUrl$),Ry$1),X_$1(4),TD("ngIf",DA$1(7,7,o.editPriceUrl$)),X_$1(2),TD("ngIf",DA$1(9,9,o.editContactDetailsUrl$)),X_$1(2),TD("ngIf",o.eligibleForMbgRefund&&o.mbgRefundUrl),X_$1(),TD("ngIf",o.listing.isExtendable);}}function E3(e,i){if(e&1&&(Mf(0),iD(1,b3,3,0,"ng-container",1)(2,O3,12,11,"ng-container",1),Ja$2()),e&2){let o=yx$1(4);X_$1(),TD("ngIf",!o.isMotorsListing),X_$1(),TD("ngIf",o.isMotorsListing);}}function P3(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-remove-bid-modal",39),kD("close",function(){Xh$1(o);let n=yx$1(5);return eg$1(n.showRemoveLeadingBidModal=false)})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(5);return eg$1(n.showRemoveLeadingBidModal=false)}),bf$1();}if(e&2){let o=yx$1(5);TD("sellerOptionsState",o.sellerOptionsState);}}function D3(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"div",31)(2,"button",30),kD("click",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.showRemoveLeadingBidModal=true)}),_D(3,"tg-icon",37),Qx$1(4," Remove leading bid "),bf$1()(),iD(5,P3,1,1,"tm-remove-bid-modal",38),Ja$2();}if(e&2){let o=yx$1(4);X_$1(5),TD("ngIf",o.showRemoveLeadingBidModal);}}function L3(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-seller-withdraw-listing-modal",43),kD("close",function(){Xh$1(o);let n=yx$1(5);return eg$1(n.closeWithdrawListingModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(5);return eg$1(n.closeWithdrawListingModal())}),bf$1();}if(e&2){let o=yx$1(5);TD("listing",o.listing);}}function B3(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",31)(1,"button",40),kD("click",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.openWithdrawListingModal())}),_D(2,"tg-icon",41),Qx$1(3," Withdraw or Sold "),bf$1(),iD(4,L3,1,1,"tm-seller-withdraw-listing-modal",42),bf$1();}if(e&2){let o=yx$1(4);X_$1(4),TD("ngIf",o.showWithdrawListingModal);}}
14function F3(e,i){if(e&1&&(Ia$1(0,"div",26),iD(1,x3,4,3,"ng-container",1)(2,E3,3,2,"ng-container",1)(3,D3,6,1,"ng-container",1)(4,B3,5,1,"div",27),bf$1()),e&2){let o=i.ngIf,t=yx$1(3);X_$1(),TD("ngIf",o.bof&&!t.isMotorsListing),X_$1(),TD("ngIf",(!o.bof||t.isMotorsListing)&&t.canEditListing),X_$1(),TD("ngIf",t.sellerOptionsState.canRemoveLeadingBid),X_$1(),TD("ngIf",t.sellerOptionsState.canWithdrawListing);}}function V3(e,i){if(e&1&&(Ia$1(0,"section")(1,"div",2)(2,"div",3)(3,"h2"),Qx$1(4),bf$1(),Ia$1(5,"p",4)(6,"small"),Qx$1(7," (Only you can see this section) "),bf$1()()(),JN(8,jx,1,0,"tm-motors-boosted-flag",5),Ia$1(9,"div",6)(10,"ul",7),iD(11,zx,5,2,"li",1)(12,Zx,5,1,"li",1),Ia$1(13,"li"),_D(14,"tg-icon",8),Mf(15,9),iD(16,Yx,1,0,"ng-template",10)(17,Qx,1,1,"ng-template",11),Ja$2(),bf$1(),iD(18,e3,5,1,"li",1),Ia$1(19,"li"),_D(20,"tg-icon",12),Mf(21,9),iD(22,t3,1,0,"ng-template",10)(23,i3,1,1,"ng-template",11),Ja$2(),bf$1()()(),Ia$1(24,"div",13)(25,"div",14),iD(26,u3,6,5,"ul",15)(27,h3,9,4,"div",1),bf$1(),iD(28,F3,5,4,"div",16),yA(29,"async"),bf$1()()()),e&2){let o=yx$1(2);X_$1(4),Af$1(" ",o.sellerOptionsState.optionsTitle," "),X_$1(4),XN(o.showBoostedFlag?8:-1),X_$1(3),TD("ngIf",o.auctionOfferIsEnabled),X_$1(),TD("ngIf",!o.sellerOptionsState.isBuyNowOnly),X_$1(3),TD("ngPlural",o.sellerOptionsState.biddersAndWatchersCount),X_$1(3),TD("ngIf",o.sellerOptionsState.isBuyNowOnly),X_$1(3),TD("ngPlural",o.sellerOptionsState.viewCount),X_$1(5),TD("ngIf",!o.sellerOptionsState.isClassified),X_$1(),TD("ngIf",o.sellerOptionsState.isClassified),X_$1(),TD("ngIf",DA$1(29,10,o.sellerOptionsState.hasActions&&o.actionsRedirectState$));}}function A3(e,i){if(e&1&&(Mf(0),iD(1,V3,30,12,"section",1),Ja$2()),e&2){let o=yx$1();X_$1(),TD("ngIf",o.sellerOptionsState);}}var Xg=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e,he,it,nt,Qi,Ts,Os,Z_){this._buyerSellerOptionsService=t,this._changeDetectorRef=n,this._currentMemberFacade=l,this._listingUtilService=C,this._categoryService=I,this._router=j,this._motorsListingService=_e,this._classicRedirectFacade=he,this._appConfigFacade=it,this._urlToClassicService=nt,this._listingFacade=Qi,this._auctionOfferFacade=Ts,this._activatedRoute=Os,this._motorsSellProcessUrlBuilderService=Z_,this.showWithdrawListingModal=false,this.showRemoveLeadingBidModal=false,this.showBoostedFlag=false,this.isDevMode=xq(),this.auctionOfferIsEnabled=false,this.auctionOfferIsLoading=true,this.auctionOfferTotal=0,this.editPriceUrl$=Be$1,this.editListingUrl$=Be$1,this.editContactDetailsUrl$=Be$1,this._destroyed$=new W$1;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Fe(t=>t.item),o()),this.editPriceUrl$=this._motorsSellProcessUrlBuilderService.buildEditPriceActionHref(this.listing$),this.editListingUrl$=this._motorsSellProcessUrlBuilderService.buildEditListingActionHref(this.listing$),this.editContactDetailsUrl$=this._motorsSellProcessUrlBuilderService.buildEditContactDetailsHref(this.listing$),this.editListingUrl$=this._motorsSellProcessUrlBuilderService.buildEditListingActionHref(this.listing$),this.listing$.pipe(Fe(t=>t),Xt(t=>!!t),lo$1(t=>(this.listing=t,this.isMotorsListing=this._categoryService.isMotors(R$3(this.listing.category)),this._buyerSellerOptionsService.getSellersOptionsState(t))),Xp(this._destroyed$)).subscribe(t=>{this.sellerOptionsState=t,this.canEditListing=this.getCanEditListing(),this.isMotorsListing=this._categoryService.isMotors(R$3(this.listing.category)),this.showBoostedFlag=this.isMotorsListing&&this._motorsListingService.isBoosted(this.listing),this._changeDetectorRef.markForCheck();}),this.openOrClearWithdrawModal(),this.isMyListing$=wC$1(this.listing$,this._currentMemberFacade.getCurrentMember()).pipe(Fe(([t,n])=>this._motorsListingService.isListingAuthor(t,n))),this.actionsRedirectState$=wC$1(this.listing$.pipe(Fe(t=>t),Xt(t=>!!t)),this._classicRedirectFacade.getIsBetterOnFrendExperience()).pipe(lo$1(([t,n])=>this.getActionsRedirectState(t,n))),this.listing$.pipe(Xt(t=>t.isCounterOffersAllowed),th$1(t=>this.auctionOfferIsEnabled=true),lo$1(t=>this._auctionOfferFacade.getAvailableAuctionOfferCount(t.listingId)),An(1),Xp(this._destroyed$)).subscribe(t=>{this.auctionOfferIsLoading=false,this.auctionOfferTotal=t,this._changeDetectorRef.markForCheck();});}
14getCanEditListing(){return !this.listing.withdrawnBySeller&&!this._listingUtilService.closingTimeIsPast(this.listing)&&!this.listing.withdrawnBySeller}editMarketplaceListing(){let t={queryParams:{[t$3]:true},queryParamsHandling:"merge"};this._router.navigate(["marketplace","edit",this.listing.listingId],t);}ngOnDestroy(){this._destroyed$.next();}openWithdrawListingModal(){this.showWithdrawListingModal=true;}closeWithdrawListingModal(){this._activatedRoute.snapshot.queryParams.withdraw==="true"&&this.removeWithdrawQueryParam(),this.showWithdrawListingModal=false;}openOrClearWithdrawModal(){this._activatedRoute.snapshot.queryParams.withdraw==="true"&&(this.sellerOptionsState.canWithdrawListing?this.showWithdrawListingModal=true:this.removeWithdrawQueryParam());}removeWithdrawQueryParam(){this._router.navigate([],{queryParams:{withdraw:null},queryParamsHandling:"merge",replaceUrl:true});}getActionsRedirectState(t,n){if(!n)return $c({bof:false});let l=R$3(this.listing.category);return wC$1(this._appConfigFacade.selectClientConfig(),this._classicRedirectFacade.getBetterOnFrendTracker()).pipe(Fe(([C,I])=>{let j=this._urlToClassicService.getDefaultEditUrl(C.tmClassicBaseUrl,t.listingId);return this._categoryService.isUsedCars(l)&&(j=this._urlToClassicService.getCarsEditUrl(C.tmClassicBaseUrl,t.listingId)),{bof:n,extend:this.addBofParameterToUrl(this._urlToClassicService.getDefaultExtendUrl(C.tmClassicBaseUrl,t.listingId),I),edit:this.addBofParameterToUrl(j,I),promote:this.addBofParameterToUrl(this._urlToClassicService.getPromoteUrl(C.tmClassicBaseUrl,t.listingId),I)}}))}addBofParameterToUrl(t,n){if(!n)return t;let l=`bof=${n}`;return t.includes("?")?`${t}&${l}`:`${t}?${l}`}};i.\u0275fac=function(n){return new(n||i)(R$2(qn),R$2(mc$1),R$2(E),R$2(Y$1),R$2(P),R$2(ce$1),R$2(qe),R$2(m),R$2(E$1),R$2(g$3),R$2(pe),R$2(It$1),R$2(Re),R$2(Qg))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-seller-options-new"]],inputs:{eligibleForMbgRefund:"eligibleForMbgRefund",mbgRefundUrl:"mbgRefundUrl"},standalone:false,decls:2,vars:3,consts:[["auctionOfferLoadedInfoItem",""],[4,"ngIf"],[1,"tm-seller-options__container"],[1,"tm-seller-options__header"],[1,"p-subtitle"],[1,"tm-seller-options__boosted-flag"],[1,"tm-seller-options__stats-container"],["float","","tgList2","","type","icon",1,"tm-seller-option__stats-icons"],["name","binoculars","role","presentation"],[3,"ngPlural"],["ngPluralCase","=1"],["ngPluralCase","other"],["name","eye","role","presentation"],[1,"tm-seller-options__pricing-actions"],[1,"tm-seller-options__pricing"],["class","tm-seller-options__pricing-container",4,"ngIf"],["class","tm-seller-options__actions-container",4,"ngIf"],["name","speech-bubble","role","presentation"],[4,"ngIf","ngIfElse"],[1,"tm-seller-options__spinner"],["queryParamsHandling","merge",3,"routerLink"],["name","flag","role","presentation"],[1,"tm-seller-options__pricing-container"],["class","tm-seller-options__pricing-row",4,"ngIf"],[1,"tm-seller-options__pricing-row"],[3,"memberSummary"],[1,"tm-seller-options__actions-container"],["class","tm-seller-options__action-item-container",4,"ngIf"],["class","tm-seller-options__button-links","compact","","tgButton2","","transparent","",3,"href",4,"ngIf"],["compact","","tgButton2","","transparent","",1,"tm-seller-options__button-links",3,"href"],["compact","","tgButton2","","transparent","",1,"tm-seller-options__button-links",3,"click"],[1,"tm-seller-options__action-item-container"],["name","edit","role","presentation",1,"tm-seller-options__action-icon"],["name","speech-bubble-money","role","presentation",1,"tm-seller-options__action-icon"],["name","profile-agent","role","presentation",1,"tm-seller-options__action-icon"],["name","return","role","presentation",1,"tm-seller-options__action-icon"],["name","clock","role","presentation",1,"tm-seller-options__action-icon"],["name","basic-cross","role","presentation",1,"tm-seller-options__action-icon"],[3,"sellerOptionsState","close","tmOnNavigation",4,"ngIf"],[3,"close","tmOnNavigation","sellerOptionsState"],["compact","","tgButton2","","transparent","",1,"tm-seller-options__button-links","tm-seller-options__button-links--withdraw",3,"click"],["name","tag-tick","role","presentation",1,"tm-seller-options__action-icon-withdraw"],[3,"listing","close","tmOnNavigation",4,"ngIf"],[3,"close","tmOnNavigation","listing"]],template:function(n,l){n&1&&(iD(0,A3,2,1,"ng-container",1),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.isMyListing$));},dependencies:[mO,ZI,DO,Ob$1,nn$1,He,we,rn,C$1,z$2,sa$2,ca$2,bs,bO,mr],styles:[".tm-seller-options__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-bottom:24px}.tm-seller-options__header[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tm-seller-options__boosted-flag[_ngcontent-%COMP%]{margin-bottom:8px}.tm-seller-options__stats-container[_ngcontent-%COMP%]{padding-bottom:16px}.tm-seller-option__stats-icons[_ngcontent-%COMP%]{display:flex;flex-basis:auto;flex-wrap:wrap}.tm-seller-option__stats-icons[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding-right:24px;padding-left:8px}.tm-seller-options__spinner[_ngcontent-%COMP%]{width:1em;height:1em;border:4px solid #dadada;border-top-color:#b9b9b9;margin-top:-.5em;margin-left:-.5em;animation:spinner 1.2s cubic-bezier(.45,.14,.51,.82) infinite;border-radius:50%;display:inline-block}.tm-seller-options__pricing-actions[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap}.tm-seller-options__pricing[_ngcontent-%COMP%]{display:flex;width:66%}@media(max-width:767px){.tm-seller-options__pricing[_ngcontent-%COMP%]{width:100%}}.tm-seller-options__pricing[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;padding-right:24px}.tm-seller-options__pricing-container[_ngcontent-%COMP%]{width:100%;margin-right:24px}.tm-seller-options__pricing-row[_ngcontent-%COMP%]{display:flex;min-height:32px;flex-basis:auto;flex-direction:row;justify-content:space-between;padding-top:8px;padding-bottom:8px;border-bottom:1px solid #d7d5d2}.tm-seller-options__actions-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media(max-width:767px){.tm-seller-options__actions-container[_ngcontent-%COMP%]{margin-top:16px;width:100%}}.tm-seller-options__button-links[_ngcontent-%COMP%]{display:block;margin-bottom:0;margin-left:-4px;text-align:left}.tm-seller-options__button-links--withdraw[_ngcontent-%COMP%]{color:#c82630}.tm-seller-options__action-item-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-bottom:4px}.tm-seller-options__action-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin-left:-8px;margin-right:4px;color:#007acd}.tm-seller-options__action-icon-withdraw[_ngcontent-%COMP%]{width:24px;height:24px;margin-left:-8px;margin-right:4px;color:#c82630}"]});let e=i;return e})();var e_=()=>({format:"short"});
14function R3(e,i){if(e&1&&(Ia$1(0,"div")(1,"h2"),Qx$1(2),bf$1(),Ia$1(3,"p",14)(4,"small"),Qx$1(5," (Only you can see this section) "),bf$1()()()),e&2){let o=yx$1(2);X_$1(2),Af$1(" ",o.headerMessage," ");}}function N3(e,i){if(e&1&&(Ia$1(0,"div",15)(1,"div",16),_D(2,"tg-icon",17),Ia$1(3,"span",18),Qx$1(4),bf$1()(),Ia$1(5,"div",16),_D(6,"tg-icon",19),Ia$1(7,"span",18),Qx$1(8),bf$1()(),Ia$1(9,"div",16),_D(10,"tg-icon",20),Ia$1(11,"span",18),Qx$1(12),bf$1()()()),e&2){let o=yx$1(2);X_$1(4),Af$1(" ",o.acceptedFixedPriceOfferCount," Accepted "),X_$1(4),Af$1(" ",o.declinedFixedPriceOfferCount," Declined "),X_$1(4),Af$1(" ",o.noDecisionFixedPriceOfferCount," No decision ");}}function j3(e,i){if(e&1&&(Ia$1(0,"div"),Qx$1(1),yA(2,"tgCurrency"),_D(3,"tm-member-reputation",22),bf$1()),e&2){let o=yx$1(3);X_$1(),Af$1(" ",DA$1(2,2,o.leadingBid.bidAmount)," "),X_$1(2),TD("memberSummary",o.leadingBidder);}}function U3(e,i){e&1&&(Ia$1(0,"div"),Qx$1(1,"No bids"),bf$1());}function W3(e,i){if(e&1&&(Ia$1(0,"li",21)(1,"div"),Qx$1(2,"Top Bid:"),bf$1(),iD(3,j3,4,4,"div",0)(4,U3,2,0,"div",0),bf$1()),e&2){let o=yx$1(2);X_$1(3),TD("ngIf",o.leadingBid),X_$1(),TD("ngIf",!o.leadingBid);}}function q3(e,i){if(e&1&&(Ia$1(0,"li",21)(1,"div"),Qx$1(2,"Reserve:"),bf$1(),Ia$1(3,"div"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2){let o=yx$1(2);X_$1(4),Af$1(" ",DA$1(5,1,o.listing.reservePrice)," ");}}function H3(e,i){if(e&1&&(Ia$1(0,"li",21)(1,"div"),Qx$1(2,"Buy now:"),bf$1(),Ia$1(3,"div"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2){let o=yx$1(2);X_$1(4),Af$1(" ",DA$1(5,1,o.listing.buyNowPrice)," ");}}function z3(e,i){if(e&1&&(Ia$1(0,"li",21)(1,"div"),Qx$1(2,"Price:"),bf$1(),Ia$1(3,"div"),Qx$1(4),bf$1()()),e&2){let o=yx$1(3);X_$1(4),Af$1(" ",o.listing.priceDisplay," ");}}function G3(e,i){if(e&1&&(Ia$1(0,"ul"),iD(1,z3,5,1,"li",5),bf$1()),e&2){let o=yx$1(2);X_$1(),TD("ngIf",o.listing.priceDisplay);}}function K3(e,i){if(e&1&&(Ia$1(0,"li",21)(1,"div"),Qx$1(2,"Quantity:"),bf$1(),Ia$1(3,"div"),Qx$1(4),Ia$1(5,"small"),Qx$1(6),yA(7,"tgDateTime"),bf$1()()()),e&2){let o=yx$1(3);X_$1(4),Af$1(" ",o.listing.pendingOffer.quantity," "),X_$1(2),Af$1(" Offer expires: ",EA(7,2,o.listing.pendingOffer.offerExpiryDate,fA(5,e_)),", or when the first person accepts the offer. ");}}function Z3(e,i){if(e&1&&(Ia$1(0,"ul")(1,"li",21)(2,"div"),Qx$1(3,"Price:"),bf$1(),Ia$1(4,"div"),Qx$1(5),yA(6,"tgCurrency"),bf$1()(),iD(7,K3,8,6,"li",5),bf$1()),e&2){let o=yx$1(2);X_$1(5),Af$1(" ",DA$1(6,2,o.listing.pendingOffer.offerPrice)," "),X_$1(2),TD("ngIf",!!o.listing.hasMultiple);}}function Y3(e,i){if(e&1&&(Ia$1(0,"li"),Qx$1(1),yA(2,"tgCurrency"),bf$1()),e&2){let o=yx$1(3);X_$1(),Af$1(" You made a fixed price offer for ",DA$1(2,1,o.listing.closedOffer.offerPrice),". ");}}function Q3(e,i){if(e&1&&(Ia$1(0,"li"),Qx$1(1),yA(2,"tgDateTime"),bf$1()),e&2){let o=yx$1(3);X_$1(),Af$1(" Offer expired: ",EA(2,1,o.listing.closedOffer.offerExpiryDate,fA(4,e_)),". ");}}function J3(e,i){if(e&1&&(Ia$1(0,"div",23)(1,"h4"),Qx$1(2,"Your past activities"),bf$1(),Ia$1(3,"ul",24)(4,"li"),_D(5,"tm-seller-fixed-price-offer-responses",25),bf$1(),iD(6,Y3,3,3,"li",0)(7,Q3,3,5,"li",0),bf$1()()),e&2){let o=yx$1(2);X_$1(5),TD("listing",o.listing),X_$1(),TD("ngIf",o.showFpoDeclinedOrExpired),X_$1(),TD("ngIf",o.showOfferExpired);}}function X3(e,i){if(e&1&&(Ia$1(0,"div",26)(1,"a",27),_D(2,"tg-icon",28),Qx$1(3," Request refund "),bf$1()()),e&2){let o=yx$1(2);X_$1(),TD("href",o.mbgRefundUrl,Ry$1);}}function eb(e,i){if(e&1&&(Ia$1(0,"a",30),Qx$1(1," Relist "),bf$1()),e&2){let o=yx$1(3);TD("href",oA("/Sell/Details2.aspx?action=relist&listingid=",o.listing.listingId,"&from=FrEnd"),Ry$1);}}function tb(e,i){if(e&1&&(Ia$1(0,"a",30),Qx$1(1," Relist "),bf$1()),e&2){let o=yx$1(3);TD("href",oA("https://dev.trademe.co.nz/Sell/Details2.aspx?action=relist&listingid=",o.listing.listingId,"&from=FrEnd"),Ry$1);}}function ib(e,i){if(e&1&&(Mf(0),iD(1,eb,2,2,"a",29)(2,tb,2,2,"a",29),Ja$2()),e&2){let o=yx$1(2);X_$1(),TD("ngIf",!o.isDevMode),X_$1(),TD("ngIf",o.isDevMode);}}function nb(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",31),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.toggleFixedPriceOfferModal())}),Qx$1(1," Fixed price offer "),bf$1();}}function ob(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",32),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.openWithdrawOfferModal())}),Qx$1(1," Withdraw fixed price offer "),bf$1();}}
14function rb(e,i){if(e&1&&_D(0,"tm-seller-post-fixed-price-offer-info",25),e&2){let o=yx$1(2);TD("listing",o.listing);}}function ab(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-seller-withdraw-fixed-price-offer-modal",33),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.closeWithdrawOfferModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.closeWithdrawOfferModal())}),bf$1();}if(e&2){let o=yx$1(2);TD("listingId",o.listing.listingId);}}function sb(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-make-fixed-price-offer-modal",34),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.closeMakeFixedPriceOfferModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.closeMakeFixedPriceOfferModal())}),bf$1();}if(e&2){let o=yx$1(2);TD("listing",o.listing);}}function lb(e,i){if(e&1&&(Ia$1(0,"div"),iD(1,R3,6,1,"div",0),Ia$1(2,"div",1)(3,"div",2),iD(4,N3,13,3,"div",3),Ia$1(5,"div",4)(6,"ul"),iD(7,W3,5,2,"li",5)(8,q3,6,3,"li",5)(9,H3,6,3,"li",5),bf$1(),iD(10,G3,2,1,"ul",0)(11,Z3,8,4,"ul",0),bf$1(),iD(12,J3,8,3,"div",6),bf$1(),Ia$1(13,"div",7),iD(14,X3,4,1,"div",8)(15,ib,3,2,"ng-container",0)(16,nb,2,0,"button",9)(17,ob,2,0,"button",10),bf$1()(),iD(18,rb,1,1,"tm-seller-post-fixed-price-offer-info",11)(19,ab,1,1,"tm-seller-withdraw-fixed-price-offer-modal",12)(20,sb,1,1,"tm-make-fixed-price-offer-modal",13),bf$1()),e&2){let o=yx$1();X_$1(),TD("ngIf",o.showHeaderMessage),X_$1(3),TD("ngIf",o.showResponseSummary),X_$1(3),TD("ngIf",o.isClosedSingleItemWithoutBuyer),X_$1(),TD("ngIf",o.isClosedSingleItemWithoutBuyer&&o.listing.reservePrice),X_$1(),TD("ngIf",o.listing.buyNowPrice),X_$1(),TD("ngIf",o.listing.isClassified),X_$1(),TD("ngIf",o.showOfferOpenDetails),X_$1(),TD("ngIf",o.hasOpenOrAcceptedOffer),X_$1(2),TD("ngIf",o.eligibleForMbgRefund&&o.mbgRefundUrl),X_$1(),TD("ngIf",o.listing.canRelist),X_$1(),TD("ngIf",o.listing.canOffer),X_$1(),TD("ngIf",o.showOfferOpenDetails),X_$1(),TD("ngIf",o.hasPostFpoState),X_$1(),TD("ngIf",o.showWithdrawOfferModal),X_$1(),TD("ngIf",o.showMakeFixedPriceOfferModal);}}var t_=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e){this._listingUtilService=t,this._categoryService=n,this._changeDetectorRef=l,this._listCategoryService=C,this._classicRedirectService=I,this._activatedRoute=j,this._router=_e,this.showRelistModal=false,this.showMakeFixedPriceOfferModal=false,this.showWithdrawOfferModal=false,this.isDevMode=xq(),this.isCannotListModalVisible=false;}ngOnChanges(t){let{listing:n}=t;n&&(n.currentValue?this.updateState(n.currentValue):this.isVisible=false);}updateState(t){this.leadingBid=t.bids&&t.bids.list&&t.bids.list.length?t.bids.list[0]:null,this.leadingBidder=this.leadingBid?this.leadingBid.bidder:null,this.hasOpenOffer=!!(t.pendingOffer&&t.offerStatus===ct.active),this.hasWithdrawnOffer=!!(t.closedOffer&&t.offerStatus===ct.withdrawn),this.hasExpiredOffer=!!(t.closedOffer&&t.offerStatus===ct.expired),this.hasAcceptedOffer=!!(t.closedOffer&&t.offerStatus===ct.accepted),this.hasDeclinedOffer=!!(t.closedOffer&&t.offerStatus===ct.declined),this.showOfferOpenDetails=this.hasOpenOffer,this.showOfferExpired=this.hasExpiredOffer,this.showOfferDeclined=this.hasDeclinedOffer,this.hasPostFpoState=this.hasExpiredOffer||this.hasDeclinedOffer||this.hasWithdrawnOffer,this.showResponseSummary=this.showOfferOpenDetails||this.hasPostFpoState,this.hasOpenOrAcceptedOffer=this.hasAcceptedOffer||this.hasOpenOffer,this.isVisible=this.getIsVisible(t),this.hasBuyer=this.getHasBuyer(t),this.showBidSummary=!this.hasBuyer&&!t.isClassified,this.showAuctionDetails=this.showBidSummary&&!this.hasPostFpoState&&!this.listing.withdrawnBySeller,this.isClosedWithoutBuyer=this._listingUtilService.closingTimeIsPast(t)&&!t.isClassified&&!this.hasBuyer,this.isClosedClassified=this._listingUtilService.closingTimeIsPast(t)&&t.isClassified,this.isClosedSingleItemWithoutBuyer=this._listingUtilService.closingTimeIsPast(t)&&!t.isBuyNowOnly&&!this.hasBuyer,this.isRelistEnabled=this.getIsRelistEnabled(t),this.headerMessage=this.getHeaderMessage(),this.showHeaderMessage=!!this.headerMessage&&!t.relistedItemId,this.showFpoDeclinedOrExpired=this.showOfferExpired||this.showOfferDeclined,this.acceptedFixedPriceOfferCount=this.getAcceptedFixedPriceOfferCount(t),this.declinedFixedPriceOfferCount=this.getDeclinedFixedPriceOfferCount(t),this.noDecisionFixedPriceOfferCount=this.getNoDecisionFixedPriceOfferCount(t),this.relistRedirectState$=this._classicRedirectService.getFrendOrClassicRedirectState(r$2.RELIST_DEFAULT(t.listingId)),this.removeWithdrawModalIfPresent();}openWithdrawOfferModal(){this.showWithdrawOfferModal=true;}closeWithdrawOfferModal(){this.showWithdrawOfferModal=false;}closeMakeFixedPriceOfferModal(){this.showMakeFixedPriceOfferModal=false;}toggleRelistModal(){if(!this.isRelistEnabled){this.isCannotListModalVisible=true;return}this.showRelistModal=!this.showRelistModal,this._changeDetectorRef.detectChanges();}hideCannotListModal(){this.isCannotListModalVisible=false;}toggleFixedPriceOfferModal(){return this.showMakeFixedPriceOfferModal=!this.showMakeFixedPriceOfferModal}removeWithdrawModalIfPresent(){this._activatedRoute.snapshot.queryParams.withdraw==="true"&&this._router.navigate([],{queryParams:{withdraw:null},queryParamsHandling:"merge"});}getIsRelistEnabled(t){return this._listCategoryService.isCategorySupportedForRelist(t.category,t.isClassified)&&!this._categoryService.isMotors(R$3(t.category))}getAcceptedFixedPriceOfferCount(t){if(t.closedOffer&&t.closedOffer.recipients)return t.closedOffer.recipients.filter(n=>n.decision===nt.accepted).length;if(t.pendingOffer&&t.pendingOffer.recipients)return t.pendingOffer.recipients.filter(n=>n.decision===nt.accepted).length}getDeclinedFixedPriceOfferCount(t){if(t.closedOffer&&t.closedOffer.recipients)return t.closedOffer.recipients.filter(n=>n.decision===nt.declined).length;if(t.pendingOffer&&t.pendingOffer.recipients)return t.pendingOffer.recipients.filter(n=>n.decision===nt.declined).length}getNoDecisionFixedPriceOfferCount(t){if(t.closedOffer&&t.closedOffer.recipients)return t.closedOffer.recipients.filter(n=>n.decision===nt.noDecision).length;if(t.pendingOffer&&t.pendingOffer.recipients)return t.pendingOffer.recipients.filter(n=>n.decision===nt.noDecision).length}getHasBuyer(t){let n=!!(t.sales&&t.sales.length),l=t.bids&&t.bids.list&&t.bids.list.length&&(t.maxBidAmount>=t.reservePrice||!t.hasReserve);return !!(n||l)}getIsVisible(t){return this._listingUtilService.closingTimeIsPast(t)&&!this.hasAcceptedOffer}getHeaderMessage(){return this.hasOpenOffer?"You have made a fixed price offer":this.listing.withdrawnBySeller?"You withdrew this listing":this.hasWithdrawnOffer?"You withdrew this offer":this.hasExpiredOffer?"The offer expired without a buyer":this.hasDeclinedOffer?"Everyone declined your offer":this.isClosedWithoutBuyer?"This auction closed without a buyer":this.isClosedClassified?"This listing has expired.":""}};i.\u0275fac=function(n){return new(n||i)(R$2(Y$1),R$2(P),R$2(mc$1),R$2(ee$2),R$2($$2),R$2(Re),R$2(ce$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-seller-unsold-listing-info"]],inputs:{listing:"listing",eligibleForMbgRefund:"eligibleForMbgRefund",mbgRefundUrl:"mbgRefundUrl"},standalone:false,features:[Zr],decls:1,vars:1,consts:[[4,"ngIf"],[1,"tm-seller-unsold-listing-info__outer-container"],[1,"tm-seller-unsold-listing-info__auction-and-response-container"],["class","tm-seller-unsold-listing-info__response-summary-container",4,"ngIf"],[1,"tm-seller-unsold-listing-info__auction-pricing"],["class","tm-seller-unsold-listing-info__auction-pricing-element",4,"ngIf"],["class","tm-seller-unsold-listing-info__past-activities-container",4,"ngIf"],[1,"tm-seller-unsold-listing-info__auction-actions"],["class","tm-seller-unsold-listing-info__request-refund",4,"ngIf"],["fullWidth","","tgButton2","","tgStyle","primary",3,"click",4,"ngIf"],["fullWidth","","tgButton2","",3,"click",4,"ngIf"],[3,"listing",4,"ngIf"],[3,"listingId","close","tmOnNavigation",4,"ngIf"],[3,"listing","close","tmOnNavigation",4,"ngIf"],[1,"p-subtitle"],[1,"tm-seller-unsold-listing-info__response-summary-container"],[1,"tm-seller-unsold-listing-info__response-summary-element"],["name","basic-tick-framed","role","presentation","tgStyle","success"],[1,"tm-seller-unsold-listing-info__response-summary-element-text"],["name","basic-warning-framed","role","presentation","tgStyle","danger"],["name","basic-question-framed","role","presentation","tgStyle","warning"],[1,"tm-seller-unsold-listing-info__auction-pricing-element"],[3,"memberSummary"],[1,"tm-seller-unsold-listing-info__past-activities-container"],["tgList2","","type","bullet"],[3,"listing"],[1,"tm-seller-unsold-listing-info__request-refund"],["compact","","tgButton2","","transparent","",3,"href"],["name","return","role","presentation"],["tgButton2","","fullWidth","","tgStyle","primary",3,"href",4,"ngIf"],["tgButton2","","fullWidth","","tgStyle","primary",3,"href"],["fullWidth","","tgButton2","","tgStyle","primary",3,"click"],["fullWidth","","tgButton2","",3,"click"],[3,"close","tmOnNavigation","listingId"],[3,"close","tmOnNavigation","listing"]],template:function(n,l){n&1&&iD(0,lb,21,15,"div",0),n&2&&TD("ngIf",l.isVisible);},dependencies:[mO,Ob$1,nn$1,He,we,Qa,C$1,z$2,Me,fi,pi,mr,M0$1],styles:[`:host{display:block}.tm-seller-unsold-listing-info__outer-container{display:flex;flex-wrap:wrap}.tm-seller-unsold-listing-info__auction-and-response-container{display:flex;width:100%;flex-direction:column}@media(min-width:768px){.tm-seller-unsold-listing-info__auction-and-response-container{width:66%}}.tm-seller-unsold-listing-info__response-summary-container{display:flex;flex-wrap:wrap;margin-bottom:24px}.tm-seller-unsold-listing-info__response-summary-element{width:100%;padding-top:16px;padding-right:8px;padding-left:8px}@media(min-width:768px){.tm-seller-unsold-listing-info__response-summary-element{width:33%;padding-top:0}.tm-seller-unsold-listing-info__response-summary-element:nth-child(n+2){padding-right:8px;padding-left:8px;border-left:1px solid #d7d5d2}}.tm-seller-unsold-listing-info__response-summary-element-text{padding-left:8px}.tm-seller-unsold-listing-info__auction-pricing{display:flex;flex-direction:column}.tm-seller-unsold-listing-info__auction-pricing-element{display:flex;min-height:32px;justify-content:space-between;padding-top:8px;padding-bottom:8px;border-bottom:1px solid #d7d5d2}.tm-seller-unsold-listing-info__auction-actions{display:flex;width:100%;flex-direction:column}@media(min-width:768px){.tm-seller-unsold-listing-info__auction-actions{width:33%;padding-right:24px;padding-left:24px}}.tm-seller-unsold-listing-info__past-activities-container{padding-top:24px}.tm-seller-unsold-listing-info__request-refund .o-button2--compact{padding:24px;margin-bottom:0;min-height:0}@media(min-width:768px){.tm-seller-unsold-listing-info__request-refund .o-button2--compact{padding:0;margin-bottom:16px}}
15`],encapsulation:2});let e=i;return e})();function cb(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",5),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showEmailModal=false)})("consumerFinanceOptedIn",function(n){Xh$1(o);let l=yx$1(2);return eg$1(l.toggleConsumerFinanceModal(n))}),bf$1();}}function db(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",4),kD("onClickOverride",function(){Xh$1(o);let n=yx$1();return eg$1(n.showEmailModal=true)}),Qx$1(1," Email the seller "),bf$1(),JN(2,cb,1,0,"tm-contact-seller-modal");}if(e&2){let o=yx$1();TD("tgStyle","primary"),X_$1(2),XN(o.showEmailModal?2:-1);}}function pb(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-driva-offer-modal",6),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.toggleConsumerFinanceModal(false))}),bf$1();}}function gb(e,i){e&1&&_D(0,"tm-motors-consumer-finance-summary");}var i_=(()=>{let i=class i{constructor(t,n,l,C,I){this._listingFacade=t,this._contactSellerService=n,this._listingSalesActivityService=l,this._auctionOfferFacade=C,this._categoryService=I;}
15ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.isCarCategory$=this.listing$.pipe(Fe(t=>this._categoryService.isUsedCars(R$3(t.category)))),this.listingHasOpenState$=this.listing$.pipe(lo$1(t=>this._listingSalesActivityService.isListingOpen(t))),this.canSendEmail$=this.listing$.pipe(Fe(t=>this._contactSellerService.canEmailSeller(t)));}toggleConsumerFinanceModal(t){this.showConsumerFinanceModal=t;}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2($i),R$2(zt),R$2(It$1),R$2(P))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-contact-box"]],standalone:false,decls:12,vars:12,consts:[[1,"tm-motors-contact-box__info-card"],[1,"tm-motors-contact-box__section"],[1,"tm-motors-contact-box__fee-line-container"],[3,"listing"],["label","emailSeller","tmFrendClickOverrideBasicMemberForceUpgrade","","tgButton2","","fullWidth","",3,"onClickOverride","tgStyle"],[3,"close","consumerFinanceOptedIn"],[3,"close"]],template:function(n,l){n&1&&(Ia$1(0,"tg-card",0)(1,"div",1),_D(2,"tm-auction-pricing-box"),Ia$1(3,"div",2),_D(4,"tm-buyer-fee-line",3),yA(5,"async"),bf$1(),JN(6,db,3,2),yA(7,"async"),yA(8,"async"),bf$1(),JN(9,pb,1,0,"tm-driva-offer-modal"),JN(10,gb,1,0,"tm-motors-consumer-finance-summary"),yA(11,"async"),bf$1()),n&2&&(X_$1(4),TD("listing",DA$1(5,4,l.listing$)),X_$1(2),XN(DA$1(7,6,l.canSendEmail$)&&DA$1(8,8,l.listingHasOpenState$)?6:-1),X_$1(3),XN(l.showConsumerFinanceModal?9:-1),X_$1(),XN(DA$1(11,10,l.isCarCategory$)?-1:10));},dependencies:[Q_,qt,He,Vi,rh$1,_,H0$1,Tr,Vr,bO],styles:["tm-contact-box[_nghost-%COMP%]{display:block;max-width:380px}@media(min-width:960px){tm-contact-box[_nghost-%COMP%]{min-width:325px}}.tm-motors-contact-box__section[_ngcontent-%COMP%]{padding:24px 16px 0}.tm-motors-contact-box__info-card[_ngcontent-%COMP%]{overflow:hidden;border:1px solid #d7d5d2;background:#fff;border-radius:6px}.tm-motors-contact-box__fee-line-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-bottom:16px}.tm-motors-contact-box__fee-line-container[_ngcontent-%COMP%]:has(>tm-buyer-fee-line:empty){margin-bottom:0}"]});let e=i;return e})();var n_=(()=>{let i=class i{constructor(t){this._timeService=t;}
15transform(t){let n=t,l=this._timeService.now,C=l$2(n,l);n=u$1(n,C);let I=c$1(n,l);n=T$3(n,I);let j=m$1(n,l);return [this.getWithUnit(C,"day"),this.getWithUnit(I,"hour"),this.getWithUnit(j,"minute")].filter(_e=>!!_e).join(", ")}getWithUnit(t,n){return t?`${t} ${n}${t>1?"s":""}`:""}};i.\u0275fac=function(n){return new(n||i)(R$2(N0$1,16))},i.\u0275pipe=We({name:"tmMotorsListingTimeToClose",type:i,pure:true,standalone:false});let e=i;return e})();function fb(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",8),Qx$1(2),yA(3,"tgDateTime"),bf$1(),Ja$2()),e&2){let o=yx$1().ngIf;X_$1(2),Af$1(" ",DA$1(3,1,o)," ");}}function hb(e,i){if(e&1&&(Ia$1(0,"div",8),Qx$1(1),yA(2,"tmMotorsListingTimeToClose"),bf$1()),e&2){let o=yx$1().ngIf;X_$1(),Af$1(" ",DA$1(2,1,o)," ");}}function Cb(e,i){if(e&1&&(Mf(0),iD(1,fb,4,3,"ng-container",7),yA(2,"async"),iD(3,hb,3,3,"ng-template",null,0,wA),Ja$2()),e&2){let o=Tx$1(4),t=yx$1(2);X_$1(),TD("ngIf",DA$1(2,2,t.isClosingSoon$))("ngIfElse",o);}}function vb(e,i){if(e&1&&(Ia$1(0,"div",2),_D(1,"tg-icon",3),yA(2,"async"),Ia$1(3,"div",4),_D(4,"tm-closing-time",5),yA(5,"async"),iD(6,Cb,5,4,"ng-container",6),yA(7,"async"),yA(8,"async"),bf$1()()),e&2){let o=yx$1();X_$1(),zD("tm-listing-close-time__closing-soon",DA$1(2,5,o.isClosingSoon$)),X_$1(3),TD("shouldAlwaysRender",true)("listing",DA$1(5,7,o.listing$)),X_$1(2),TD("ngIf",DA$1(8,11,!DA$1(7,9,o.listingIsClosed$)&&o.listingEndDate$));}}var o_=(()=>{let i=class i{constructor(t,n,l,C,I,j){this._listingFacade=t,this._currentMemberFacade=n,this._listingService=l,this._listingUtilService=C,this._closingTimeService=I,this._listingSalesActivityService=j;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.isClosingSoon$=this.listing$.pipe(Fe(t=>this._closingTimeService.isClosingSoon(t.endDate))),this.listingIsClosing$=this.listing$.pipe(Fe(t=>!(this._listingUtilService.listingIsResolved(t)||t.withdrawnBySeller)&&this._listingUtilService.listingIsInClosingState(t))),this.listingIsClosed$=this.listing$.pipe(Fe(t=>this._listingUtilService.closingTimeIsPast(t))),this.listingEndDate$=this.listing$.pipe(Fe(t=>t.endDate)),this.isAuction$=this.listing$.pipe(Fe(t=>this._listingService.isAuction(t))),this.listingHasSold$=this.listing$.pipe(lo$1(t=>this._listingSalesActivityService.isListingSold(t)));}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(E),R$2(_t),R$2(Y$1),R$2(K$2),R$2(zt))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-close-time"]],standalone:false,decls:3,vars:5,consts:[["notClosingSoon",""],["class","tm-listing-close-time",4,"ngIf"],[1,"tm-listing-close-time"],["name","clock","role","presentation",1,"tm-listing-close-time__clock"],[1,"tm-listing-closing-time__details"],[3,"shouldAlwaysRender","listing"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"tm-listing-close-time__remaining"]],template:function(n,l){n&1&&(iD(0,vb,9,13,"div",1),yA(1,"async"),yA(2,"async")),n&2&&TD("ngIf",DA$1(1,1,l.isAuction$)||DA$1(2,3,l.listingHasSold$));},dependencies:[mO,we,Ci,bO,M0$1,n_],styles:["tm-listing-close-time[_nghost-%COMP%]{display:flex}
15.tm-listing-close-time[_ngcontent-%COMP%]{display:flex;margin-bottom:16px}.tm-listing-close-time__remaining[_ngcontent-%COMP%]{color:#76716d;font-size:.75rem;line-height:16px}.tm-listing-close-time__clock[_ngcontent-%COMP%]{margin-top:8px;margin-right:8px}.tm-listing-close-time__closing-soon[_ngcontent-%COMP%]{color:#e34647}.tm-closing-time__text[_ngcontent-%COMP%]{margin-top:7px}"]});let e=i;return e})();function xb(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-contact-seller-modal",11),kD("close",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.showEmailModal=false)}),bf$1();}}function bb(e,i){if(e&1){let o=dx$1();Mf(0),Ia$1(1,"button",9),kD("click",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.showEmailModal=true)}),Qx$1(2," Email the seller "),bf$1(),iD(3,xb,1,0,"tm-contact-seller-modal",10),Ja$2();}if(e&2){let o=yx$1(3);X_$1(3),TD("ngIf",o.showEmailModal);}}function Mb(e,i){if(e&1&&(Ia$1(0,"div")(1,"p",12),Qx$1(2),bf$1(),_D(3,"img",13),Ia$1(4,"p"),Qx$1(5),bf$1()()),e&2){let o=i.ngIf;X_$1(2),Af$1("This seller supports ",o.description),X_$1(),TD("alt",o.tagline)("src",o.imageSource,Ry$1)("title",o.description),X_$1(2),oE(" The success fee from this item will be rounded up to the nearest dollar and the difference donated to ",o.description,": ",o.tagline," ");}}function Sb(e,i){if(e&1&&(Ia$1(0,"tm-member-summary",3),_D(1,"tm-core-seller-details",4),Ia$1(2,"div",5),_D(3,"tm-defer-toggle-favourite-seller",6),yA(4,"async"),iD(5,bb,4,1,"ng-container",0),yA(6,"async"),bf$1(),Ia$1(7,"div",7),_D(8,"tm-help",8),bf$1(),iD(9,Mb,6,6,"div",0),yA(10,"async"),bf$1()),e&2){let o=i.ngIf,t=yx$1().ngIf,n=yx$1();TD("listing",t==null?null:t.item)("memberSummary",o),X_$1(),TD("listing",t)("loginForListings",false)("seller",o)("showLocation",!!o),X_$1(2),TD("isClassified",DA$1(4,10,n.isClassifiedOpen$))("sellerMemberId",o.memberId),X_$1(2),TD("ngIf",DA$1(6,12,n.canSendEmail$)),X_$1(4),TD("ngIf",DA$1(10,14,n.charitySupport$));}}function wb(e,i){if(e&1&&(Mf(0),Ia$1(1,"div",1),iD(2,Sb,11,16,"tm-member-summary",2),yA(3,"async"),bf$1(),Ja$2()),e&2){let o=yx$1();X_$1(2),TD("ngIf",DA$1(3,1,o.seller$));}}var r_=(()=>{let i=class i{constructor(t,n,l){this._currentMemberFacade=t,this._listingFacade=n,this._contactSellerService=l;}ngOnInit(){this.currentMember$=this._currentMemberFacade.getCurrentMember(),this.listingStoreItem$=this._listingFacade.getCurrentListing().pipe(Xt(t=>!!t&&!!t),Fe(t=>t),o()),this.listing$=this.listingStoreItem$.pipe(Xt(t=>!!t&&!!t.item),Fe(t=>t.item),o()),this.seller$=this.listing$.pipe(Fe(t=>z(y({},t.member),{photo:(t.memberProfile||{}).photo}))),this.charitySupport$=this.listing$.pipe(Fe(t=>t.donationRecipient)),this.isClassifiedOpen$=this.listing$.pipe(Fe(t=>!!t&&t.isClassified&&!this.isMotorsAndSold(t))),this.canSendEmail$=this.listing$.pipe(Fe(t=>this._contactSellerService.canEmailSeller(t)&&!this.isMotorsAndSold(t)));}isMotorsAndSold(t){return t.areaOfBusiness===ft$1.motors&&!!t.sales&&t.sales.length>0}};i.\u0275fac=function(n){return new(n||i)(R$2(E),R$2(pe),R$2($i))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-member-contact"]],standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],[1,"tm-member-contact__container"],[3,"listing","memberSummary",4,"ngIf"],[3,"listing","memberSummary"],[3,"listing","loginForListings","seller","showLocation"],[1,"tm-member-contact__seller-details-buttons"],[1,"tm-member-contact__seller-details-button",3,"isClassified","sellerMemberId"],[1,"tm-member-contact__help-wrapper"],["linkText","Read our safe buying advice","topic","587"],["fullWidth","","tgButton2","","tgStyle","primary",1,"tm-member-contact__seller-details-button",3,"click"],[3,"close",4,"ngIf"],[3,"close"],[1,"p-h3"],[1,"tm-member-contact__charity-logo",3,"alt","src","title"]],template:function(n,l){n&1&&(iD(0,wb,4,3,"ng-container",0),yA(1,"async")),n&2&&TD("ngIf",DA$1(1,1,l.listingStoreItem$));},dependencies:[mO,v$1,ft,je$2,Tr,rh$1,He,Ve$1,bO],styles:["tm-member-contact[_nghost-%COMP%]{display:block}.tm-member-contact__seller-details-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media(min-width:1024px){.tm-member-contact__seller-details-buttons[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}}.tm-member-contact__seller-details-button[_ngcontent-%COMP%]{display:block}@media(min-width:1024px){.tm-member-contact__seller-details-button[_ngcontent-%COMP%]{width:50%}.tm-member-contact__seller-details-button[_ngcontent-%COMP%]:first-child{margin-right:16px}}.tm-member-contact__help-wrapper[_ngcontent-%COMP%]{display:inline-block;width:100%;line-height:1.5rem;text-align:center}.tm-member-contact__charity-logo[_ngcontent-%COMP%]{width:50%;padding-bottom:4px;margin:auto}.tm-member-contact__container[_ngcontent-%COMP%]{width:100%}@media(min-width:768px){.tm-member-contact__container[_ngcontent-%COMP%]{width:66.66%}}"]});let e=i;return e})();var Ib=e=>["/marketplace/purchase/",e,"book-courier","welcome"],Tb=e=>["/marketplace/purchase/book-courier-booking-details/",e];
15function Ob(e,i){if(e&1&&(Ia$1(0,"a",4),Qx$1(1," Book courier "),bf$1()),e&2){let o=yx$1(2);TD("routerLink",pA(1,Ib,o.sale.purchaseId));}}function Eb(e,i){if(e&1&&(Ia$1(0,"tg-info-box",6),_D(1,"tg-icon",7),Ia$1(2,"p"),Qx$1(3),bf$1()()),e&2){let o=yx$1(3);X_$1(3),Af$1(" ",o.sale.tradeMeShippingMessage," ");}}function Pb(e,i){if(e&1&&(Ia$1(0,"span"),Qx$1(1," Courier unavailable "),bf$1(),iD(2,Eb,4,1,"tg-info-box",5)),e&2){let o=yx$1(2);X_$1(2),TD("ngIf",!o.sale.isTradeMeShippingAvailable);}}function Db(e,i){if(e&1&&(Ia$1(0,"div"),iD(1,Ob,2,3,"a",3)(2,Pb,3,1,"ng-template",null,0,wA),bf$1()),e&2){let o=Tx$1(3),t=yx$1();X_$1(),TD("ngIf",t.sale.isTradeMeShippingAvailable)("ngIfElse",o);}}function Lb(e,i){if(e&1&&(Ia$1(0,"a",4),Qx$1(1,` Track package
16`),bf$1()),e&2){let o=yx$1();TD("routerLink",pA(1,Tb,o.sale.tradeMeShippingBookingId));}}function Bb(e,i){e&1&&(Ia$1(0,"p"),Qx$1(1,"Book a courier to pick up and deliver your item."),bf$1());}var a_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-book-courier-info"]],inputs:{sale:"sale"},standalone:false,decls:3,vars:3,consts:[["notAvailable",""],[4,"ngIf"],[3,"routerLink",4,"ngIf"],[3,"routerLink",4,"ngIf","ngIfElse"],[3,"routerLink"],["class","tm-courier-info__info-box",4,"ngIf"],[1,"tm-courier-info__info-box"],["name","basic-info-framed","role","presentation"]],template:function(n,l){n&1&&iD(0,Db,4,2,"div",1)(1,Lb,2,3,"a",2)(2,Bb,2,0,"p",1),n&2&&(TD("ngIf",!l.sale.tradeMeShippingBookingId),X_$1(),TD("ngIf",l.sale.tradeMeShippingBookingId),X_$1(),TD("ngIf",l.sale.isTradeMeShippingAvailable));},dependencies:[mO,rn,we],styles:[`.tm-courier-info__info-box{margin-top:8px}
17`],encapsulation:2});let e=i;return e})();var Vb=e=>["/marketplace/purchase/book-courier-booking-details/",e];function Ab(e,i){e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4," Auction closed without a buyer "),bf$1()());}function $b(e,i){if(e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2){let o=yx$1();X_$1(4),Af$1(" Offer sent to bidders and watchers for ",DA$1(5,1,(o.listing.pendingOffer||o.listing.closedOffer).offerPrice)," ");}}function Rb(e,i){if(e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2){let o=yx$1();X_$1(4),Af$1(" Offer accepted for ",DA$1(5,1,o.listing.closedOffer.offerPrice)," ");}}function Nb(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4," Payment instructions sent "),Ia$1(5,"button",6),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.showPaymentInstructionsModal())}),Qx$1(6," (View) "),bf$1()()();}}function jb(e,i){e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4," Payment received "),bf$1()());}function Ub(e,i){e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4," Delivery address received "),bf$1()());}function Wb(e,i){if(e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary")(4,"a",7),Qx$1(5," Courier booked "),bf$1()()()),e&2){let o=yx$1();X_$1(4),TD("routerLink",pA(1,Vb,o.sale.tradeMeShippingBookingId));}}function qb(e,i){e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4," Feedback placed "),bf$1()());}function Hb(e,i){e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4," Seller has placed feedback "),Ia$1(5,"a",8),Qx$1(6," View feedback "),bf$1()()());}function zb(e,i){if(e&1&&(Mf(0),iD(1,qb,5,0,"tg-rack-item",2)(2,Hb,7,0,"tg-rack-item",2),Ja$2()),e&2){let o=yx$1();X_$1(),TD("ngIf",o.sale.hasBuyerPlacedFeedback),X_$1(),TD("ngIf",o.sale.hasSellerPlacedFeedback);}}function Gb(e,i){e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4," Feedback placed "),bf$1()());}function Kb(e,i){e&1&&(Ia$1(0,"tg-rack-item")(1,"tg-rack-item-prefix"),_D(2,"tg-icon",5),bf$1(),Ia$1(3,"tg-rack-item-primary"),Qx$1(4," Buyer has placed feedback "),Ia$1(5,"a",8),Qx$1(6," View feedback "),bf$1()()());}function Zb(e,i){if(e&1&&iD(0,Gb,5,0,"tg-rack-item",2)(1,Kb,7,0,"tg-rack-item",2),e&2){let o=yx$1();TD("ngIf",o.sale.hasSellerPlacedFeedback),X_$1(),TD("ngIf",o.sale.hasBuyerPlacedFeedback);}}function Yb(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",9),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closePaymentInstructionsModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1();return eg$1(n.closePaymentInstructionsModal())}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Payment instructions"),bf$1()(),Ia$1(4,"div",10)(5,"tg-modal-body",11),Qx$1(6),bf$1()()();}if(e&2){let o=yx$1();X_$1(6),Af$1(" ",o.sale.paymentInstructions," ");}}var Qb=e=>`members/feedback.aspx?type=b&member=${e}`,Jb=e=>`members/feedback.aspx?type=s&member=${e}`,s_=(()=>{let i=class i{constructor(t){this._currentMemberFacade=t,this.showingPaymentInstructions=false,this.offerStatuses=ct,this._destroyed$=new W$1;}ngOnInit(){this._currentMemberFacade.selectCurrentMember().pipe(Xt(t=>!!(t&&t.item)),Xp(this._destroyed$)).subscribe(t=>{this.setFeedbackClassicUrl(t.item),this.currentMember=t.item;});}showPaymentInstructionsModal(){this.showingPaymentInstructions=true;}closePaymentInstructionsModal(){this.showingPaymentInstructions=false;}setFeedbackClassicUrl(t){this.feedbackClassicUrl=t.memberId===this.sale.buyer?.memberId?Qb((t||{memberId:null}).memberId):Jb((t||{memberId:null}).memberId);}ngOnDestroy(){this._destroyed$.next(),this._destroyed$.complete();}};i.\u0275fac=function(n){return new(n||i)(R$2(E))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-past-activities"]],inputs:{sale:"sale",listing:"listing"},standalone:false,decls:14,vars:10,consts:[["sellerFeedback",""],[1,"tm-past-activities__header"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"close","tmOnNavigation",4,"ngIf"],["name","basic-tick","role","presentation","size","small"],["transparent","","tgButton2","",1,"tm-past-activities__button-as-link",3,"click"],[3,"routerLink"],["routerLink","/my-trade-me/profile"],[3,"close","tmOnNavigation"],[1,"tm-past-activities__payment-instructions"],[1,"payment-instructions"]],template:function(n,l){if(n&1&&(Ia$
171(0,"h4",1),Qx$1(1,"Your past activities"),bf$1(),Ia$1(2,"tg-rack"),iD(3,Ab,5,0,"tg-rack-item",2)(4,$b,6,3,"tg-rack-item",2)(5,Rb,6,3,"tg-rack-item",2)(6,Nb,7,0,"tg-rack-item",2)(7,jb,5,0,"tg-rack-item",2)(8,Ub,5,0,"tg-rack-item",2)(9,Wb,6,3,"tg-rack-item",2)(10,zb,3,2,"ng-container",3)(11,Zb,2,2,"ng-template",null,0,wA),bf$1(),iD(13,Yb,7,1,"tg-modal",4)),n&2){let C=Tx$1(12);X_$1(3),TD("ngIf",l.listing.offerStatus),X_$1(),TD("ngIf",l.listing.offerStatus),X_$1(),TD("ngIf",l.listing.offerStatus===l.offerStatuses.accepted),X_$1(),TD("ngIf",l.sale.paymentInstructions),X_$1(),TD("ngIf",l.sale.hasPaidByCreditCard),X_$1(),TD("ngIf",l.sale.deliveryDetailsSent),X_$1(),TD("ngIf",l.sale.tradeMeShippingBookingId),X_$1(),TD("ngIf",l.currentMember?.memberId===l.sale.buyer?.memberId)("ngIfElse",C),X_$1(3),TD("ngIf",l.showingPaymentInstructions);}},dependencies:[mO,zc,zo,Gc,Hc,we,He,Hr,jb$1,Lb$1,rn,C$1,mr],styles:[`.tm-past-activities__button-as-link{display:inline-block;width:auto;min-height:auto;padding:0;margin-bottom:0;text-align:left;vertical-align:baseline}@media(max-width:767px){.tm-past-activities__header{padding-bottom:0;margin-bottom:0}}.o-rack{margin-bottom:0}.tm-past-activities__payment-instructions{padding:8px;margin-bottom:8px}
18`],encapsulation:2});let e=i;return e})();function e4(e,i){if(e&1&&(Ia$1(0,"tg-address-suburb"),Qx$1(1),bf$1()),e&2){let o=yx$1(2);X_$1(),Af$1(" ",o.sale.deliveryAddress.suburb," ");}}function t4(e,i){if(e&1&&(Ia$1(0,"div")(1,"strong"),Qx$1(2,"Delivery Address"),bf$1(),Ia$1(3,"div",2)(4,"tg-address")(5,"tg-address-name"),Qx$1(6),bf$1(),Ia$1(7,"tg-address-street"),Qx$1(8),bf$1(),iD(9,e4,2,1,"tg-address-suburb",1),Ia$1(10,"tg-address-postcode"),Qx$1(11),bf$1(),Ia$1(12,"tg-address-city"),Qx$1(13),bf$1()()()()),e&2){let o=yx$1();X_$1(6),Af$1(" ",o.sale.deliveryAddress.name," "),X_$1(2),oE(" ",o.sale.deliveryAddress.address1,", ",o.sale.deliveryAddress.address2," "),X_$1(),TD("ngIf",o.sale.deliveryAddress.suburb),X_$1(2),Af$1(" ",o.sale.deliveryAddress.postcode," "),X_$1(2),Af$1(" ",o.sale.deliveryAddress.city," ");}}function i4(e,i){if(e&1&&(Ia$1(0,"div")(1,"strong"),Qx$1(2,"Delivery Instructions"),bf$1(),Ia$1(3,"p"),Qx$1(4),bf$1()()),e&2){let o=yx$1();X_$1(4),rE(o.sale.messageFromBuyer);}}var l_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-shipping-and-delivery"]],inputs:{sale:"sale"},standalone:false,decls:7,vars:3,consts:[["tgMarginTop",""],[4,"ngIf"],["tgMarginBottom",""]],template:function(n,l){n&1&&(Ia$1(0,"section",0)(1,"strong"),Qx$1(2,"Selected Shipping"),bf$1(),Ia$1(3,"p"),Qx$1(4),bf$1(),iD(5,t4,14,6,"div",1)(6,i4,5,1,"div",1),bf$1()),n&2&&(X_$1(4),rE(l.sale.selectedShipping),X_$1(),TD("ngIf",l.sale.deliveryAddress),X_$1(),TD("ngIf",l.sale.messageFromBuyer));},dependencies:[mO,I0,l0,i0$1,a0$1,c0,r0$1,s0$1],encapsulation:2});let e=i;return e})();function o4(e,i){e&1&&(Ia$1(0,"span"),Qx$1(1," (each) "),bf$1());}function r4(e,i){if(e&1&&(Ia$1(0,"tr")(1,"th"),Qx$1(2,"Quantity sold"),bf$1(),Ia$1(3,"td"),Qx$1(4),bf$1()()),e&2){let o=yx$1(2);X_$1(4),rE(o.sale.quantitySold);}}function a4(e,i){if(e&1&&(Ia$1(0,"tr")(1,"th"),Qx$1(2,"Shipping"),bf$1(),Ia$1(3,"td"),Qx$1(4),bf$1()()),e&2){let o=yx$1(2);X_$1(4),rE(o.shippingPrice);}}function s4(e,i){if(e&1&&(Ia$1(0,"tr")(1,"th"),Qx$1(2),yA(3,"percent"),bf$1(),Ia$1(4,"td"),Qx$1(5),yA(6,"tgCurrency"),bf$1()()),e&2){let o=i.$implicit,t=yx$1(2);X_$1(2),iE("",o.country," ",o.name," (",DA$1(3,4,o.subTotal/t.sale.totalSalePrice),")"),X_$1(3),rE(DA$1(6,6,o.subTotal));}}function l4(e,i){e&1&&(Ia$1(0,"span"),Qx$1(1," more"),bf$1());}function m4(e,i){if(e&1){let o=dx$1();Ia$1(0,"tr",12)(1,"td",9)(2,"button",13),kD("click",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.showingRefundModal=true)}),_D(3,"tg-icon-left",14),Qx$1(4," Refund "),iD(5,l4,2,0,"span",4),bf$1()()();}if(e&2){let o=yx$1(3);X_$1(5),TD("ngIf",o.sale.paymentDetails.refundCollection?.length);}}function c4(e,i){if(e&1&&(Mf(0),Ia$1(1,"tr",8)(2,"th",9)(3,"span"),Qx$1(4,"Paid with\xA0"),bf$1(),_D(5,"tm-ping-logo",10),bf$1()(),Ia$1(6,"tr")(7,"th"),Qx$1(8,"Ping fee"),bf$1(),Ia$1(9,"td"),Qx$1(10),yA(11,"tgCurrency"),bf$1()(),Ia$1(12,"tr")(13,"th"),Qx$1(14,"Added to Ping"),bf$1(),Ia$1(15,"td"),Qx$1(16),yA(17,"tgCurrency"),bf$1()(),iD(18,m4,6,1,"tr",11),Ja$2()),e&2){let o=yx$1(2);X_$1(10),rE(DA$1(11,3,o.sale.paymentDetails.paymentMethodFee||0)),X_$1(6),rE(DA$1(17,5,o.amountReceived||0)),X_$1(2),TD("ngIf",o.amountRefundable>0);}}function d4(e,i){if(e&1&&(Mf(0),Ia$1(1,"tr",8)(2,"th",9),Qx$1(3," Paid with "),_D(4,"tm-afterpay-logo",15),bf$1()(),Ia$1(5,"tr")(6,"th"),Qx$1(7,"Afterpay fee"),bf$1(),Ia$1(8,"td"),Qx$1(9),yA(10,"tgCurrency"),bf$1()(),Ia$1(11,"tr")(12,"th"),Qx$1(13,"Paid"),bf$1(),Ia$1(14,"td"),Qx$1(15),yA(16,"tgCurrency"),bf$1()(),Ja$2()),e&2){let o=yx$1(2);X_$1(9),rE(DA$1(10,2,o.sale.paymentDetails?.paymentMethodFee||0)),X_$1(6),rE(DA$1(16,4,o.amountReceived||0));}}
18function p4(e,i){if(e&1&&(Ia$1(0,"tg-box2",2)(1,"h3"),Qx$1(2,"Purchase summary"),bf$1(),Ia$1(3,"table",3)(4,"tr")(5,"th"),Qx$1(6," Price "),iD(7,o4,2,0,"span",4),bf$1(),Ia$1(8,"td"),Qx$1(9),yA(10,"tgCurrency"),bf$1()(),iD(11,r4,5,1,"tr",4)(12,a4,5,1,"tr",4)(13,s4,7,8,"tr",5),Ia$1(14,"tr",6)(15,"th"),Qx$1(16,"Total"),bf$1(),Ia$1(17,"td"),Qx$1(18),yA(19,"tgCurrency"),bf$1()(),Ia$1(20,"tfoot",7),iD(21,c4,19,7,"ng-container",4)(22,d4,17,6,"ng-container",4),bf$1()()()),e&2){let o=yx$1();X_$1(7),TD("ngIf",o.listing.isBuyNowOnly&&o.listing.hasMultiple),X_$1(2),rE(DA$1(10,9,o.sale.price||0)),X_$1(2),TD("ngIf",o.listing.isBuyNowOnly&&o.listing.hasMultiple),X_$1(),TD("ngIf",o.showShippingOption),X_$1(),TD("ngForOf",o.sale?.taxSubTotals)("ngForTrackBy",o.taxRateType),X_$1(5),rE(DA$1(19,11,o.purchaseTotal||0)),X_$1(3),TD("ngIf",o.sale.paymentDetails?.paymentType===o.paymentMethods.ping),X_$1(),TD("ngIf",o.sale.paymentDetails?.paymentType===o.paymentMethods.afterpay);}}function g4(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",16),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.showingRefundModal=false)}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3),bf$1()(),Ia$1(4,"tg-modal-body")(5,"tm-ping-refund",17),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.showingRefundModal=false)}),bf$1()()();}if(e&2){let o=yx$1();X_$1(3),Af$1("Refund ",o.sale.referenceNumber),X_$1(2),TD("listing",o.listing)("sale",o.sale);}}var m_=(()=>{let i=class i{constructor(t){this._saleHelperService=t,this.showingRefundModal=false,this.paymentMethods=_$1;}ngOnChanges(){if(this.purchaseTotal=this.sale.totalSalePrice,this.sale.paymentDetails){this.amountReceived=this.sale.paymentDetails.paymentAmount-(this.sale.paymentDetails.paymentMethodFee||0);let t=(this.sale.paymentDetails.refundCollection||[]).reduce((n,l)=>n+l.amount,0);this.amountRefundable=this.sale.paymentDetails.paymentAmount-t;}this.sale.taxSubTotals&&(this.taxesTotal=f$2.sumTaxSubtotals(this.sale.taxSubTotals),this.purchaseTotal+=this.taxesTotal,this.amountReceived-=this.taxesTotal);}taxRateType(t){return t.type}get showShippingOption(){return this._saleHelperService.showShippingOption(this.sale)}get shippingPrice(){return this._saleHelperService.getShippingPrice(this.sale)}};i.\u0275fac=function(n){return new(n||i)(R$2(Gi))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-payment-summary"]],inputs:{listing:"listing",sale:"sale"},standalone:false,features:[Zr],decls:2,vars:2,consts:[["class","mp-seller-sale-activities__purchase-summary","solid","",4,"ngIf"],[3,"close",4,"ngIf"],["solid","",1,"mp-seller-sale-activities__purchase-summary"],[1,"o-table","payment-summary__table"],[4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"payment-summary__total"],[1,"payment-summary__method"],[1,"payment-summary__method-paid-with"],["colspan","2"],["colour","","inline","","secondary",""],["class","payment-summary__refund",4,"ngIf"],[1,"payment-summary__refund"],["tgButton2","","compact","","fullWidth","",3,"click"],["name","return","role","presentation"],["inline","","secondary",""],[3,"close"],[3,"close","listing","sale"]],template:function(n,l){n&1&&iD(0,p4,23,13,"tg-box2",0)(1,g4,6,3,"tg-modal",1),n&2&&(TD("ngIf",l.listing),X_$1(),TD("ngIf",l.showingRefundModal));},dependencies:[YI,mO,z_$1,He,we,Hr,jb$1,Lb$1,u$2,nn$2,w,LO,mr],styles:[`.mp-seller-sale-activities__purchase-summary{background:#f6f5f4}.payment-summary__table{width:100%;font-size:1rem}.payment-summary__table tr th{font-size:.875rem}.payment-summary__table tr th,.payment-summary__table tr td{padding:16px 0;border-top:1px solid;border-bottom:none;border-color:#d7d5d2;font-weight:400;white-space:nowrap}.payment-summary__table td:last-of-type{text-align:right}tr.payment-summary__total td,tr.payment-summary__total th{border-top:1px solid;border-bottom:1px solid;border-color:#65605d;font-size:1rem;font-weight:500}tfoot.payment-summary__method tr td,tfoot.payment-summary__method tr th{height:auto;padding:0;border:none;font-size:.75rem}tfoot.payment-summary__method tr.payment-summary__method-paid-with td,tfoot.payment-summary__method tr.payment-summary__method-paid-with th{padding:16px 0 8px;font-size:.875rem;font-weight:500}tfoot.payment-summary__method tr.payment-summary__refund td button{margin:16px 0 0}
19`],encapsulation:2});let e=i;return e})();
19function f4(e,i){if(e&1&&(Ia$1(0,"li"),Qx$1(1," Make a "),Ia$1(2,"a",7),Qx$1(3,"fixed price offer"),bf$1(),Qx$1(4," to other bidders "),bf$1()),e&2){let o=yx$1();X_$1(2),TD("tmLinkToClassic",oA("/MyTradeMe/MakeAnOffer.aspx?id=",o.listing.listingId,"&rfm=1"));}}function h4(e,i){if(e&1){let o=dx$1();Ia$1(0,"li"),Qx$1(1," You may be entitled to a "),Ia$1(2,"button",8),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.openRefundModal())}),Qx$1(3," refund of your success fee. "),bf$1()();}}function C4(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-success-fee-refund-request-modal",9),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.closeRefundModal())}),bf$1();}if(e&2){let o=yx$1();TD("listing",o.listing)("sale",o.sale);}}var c_=(()=>{let i=class i{constructor(t){this._categoryService=t,this.showRefundModal=false,this.isCarCategory=false;}ngOnChanges(t){if(t.listing){let n=R$3(this.listing.category);this.isCarCategory=this._categoryService.isUsedCars(n);}}openRefundModal(){this.showRefundModal=true;}closeRefundModal(){this.showRefundModal=false;}};i.\u0275fac=function(n){return new(n||i)(R$2(P))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sale-falls-through"]],inputs:{listing:"listing",sale:"sale",successFeeRefund:"successFeeRefund"},standalone:false,features:[Zr],decls:14,vars:5,consts:[["name","basic-info-framed","role","presentation",1,"tm-sale-falls-through__info-icon"],[1,"tm-sale-falls-through__header"],[1,"tm-sale-falls-through__options-list-container"],["tgList2","","type","bullet"],[4,"ngIf"],["fullWidth","",3,"href"],[3,"listing","sale","close",4,"ngIf"],["fullWidth","",3,"tmLinkToClassic"],["tgButton2","","linkStyle","",3,"click"],[3,"close","listing","sale"]],template:function(n,l){n&1&&(Ia$1(0,"tg-info-box"),_D(1,"tg-icon-left",0),Ia$1(2,"b",1),Qx$1(3,"If the sale falls through"),bf$1(),Ia$1(4,"div",2)(5,"ul",3),iD(6,f4,5,2,"li",4),Ia$1(7,"li")(8,"a",5),Qx$1(9," Relist this vehicle. "),bf$1()(),Ia$1(10,"li"),Qx$1(11,"Place feedback about the buyer."),bf$1(),iD(12,h4,4,0,"li",4),bf$1()()(),iD(13,C4,1,2,"tm-success-fee-refund-request-modal",6)),n&2&&(X_$1(6),TD("ngIf",!l.listing.isClassified&&l.listing.bidderAndWatchers>0),X_$1(2),TD("href",oA("/Sell/Details2.aspx?action=relist&listingid=",l.listing.listingId,"&from=FrEnd"),Ry$1),X_$1(4),TD("ngIf",!l.listing.isClassified&&!l.isCarCategory&&l.successFeeRefund.isLoading===false&&!l.successFeeRefund.item?.successFeeRefundId),X_$1(),TD("ngIf",l.showRefundModal));},dependencies:[mO,He,Vc,Ob$1,we,ya,L$3],styles:["tm-sale-falls-through[_nghost-%COMP%]{display:block}.tm-sale-falls-through__info-icon[_ngcontent-%COMP%]{margin-right:16px}.tm-sale-falls-through__options-list-container[_ngcontent-%COMP%]{padding-left:48px;margin-right:16px}"]});let e=i;return e})();function x4(e,i){if(e&1){let o=dx$1();Ia$1(0,"div")(1,"h3"),Qx$1(2,"Payment instructions"),bf$1(),Ia$1(3,"p"),Qx$1(4),_D(5,"br"),Qx$1(6),yA(7,"tgCurrency"),_D(8,"br"),Qx$1(9),_D(10,"br"),Qx$1(11),yA(12,"async"),_D(13,"br"),Qx$1(14),bf$1(),Ia$1(15,"form",3,0),kD("ngSubmit",function(){Xh$1(o);let n=Tx$1(16),l=yx$1(2);return eg$1(l.sendPaymentInstructions(n.valid))}),Ia$1(17,"tg-input-container",4)(18,"input",5),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.paymentInstructions.subject,n)||(l.paymentInstructions.subject=n),eg$1(n)}),bf$1(),KS(),bf$1(),Ia$1(19,"div")(20,"h3",6),Qx$1(21,"Important"),bf$1(),Ia$1(22,"ul",7)(23,"li"),Qx$1(24," Banks now complete a Confirmation of Payee check to let you know if the account name and number match before you make a payment. If you get a partial or no match notification, reach out to the seller to check their bank details - "),Ia$1(25,"a",8),Qx$1(26,"Learn more"),bf$1(),Qx$1(27,". "),bf$1(),Ia$1(28,"li"),Qx$1(29),bf$1(),Ia$1(30,"li"),Qx$1(31,"It may take a couple of days for your payment to clear."),bf$1(),Ia$1(32,"li"),Qx$1(33,"Sellers normally ship the goods once payment is received."),bf$1()()(),Ia$1(34,"tg-input-container",9)(35,"textarea",10),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.paymentInstructions.body,n)||(l.paymentInstructions.body=n),eg$1(n)}),Qx$1(36,"                            "),bf$1(),KS(),bf$1(),Ia$1(37,"small"),Qx$1(38," This message has been sent to you from a Trade Me member, via the Trade Me website. Trade Me is not the author of this message and has not verified any of the message content. You are solely responsible for any actions you take as a result of this message. Replies will be sent directly to the sender of this message. "),bf$1(),Ia$1(39,"div")(40,"tg-checkbox",11),cE("ngModelChange",function(n){Xh$1(o);let l=yx$1(2);return eA(l.paymentInstructions.copySeller,n)||(l.paymentInstructions.copySeller=n),eg$1(n)}),Ia$1(41,"tg-label"),Qx$1(42," Send me a copy of this email"),bf$1()(),KS(),bf$1(),Ia$1(43,"div",12)(44,"button",13),Qx$1(45," Send "),bf$1(),Ia$1(46,"button",14),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showingInstructions=false)}),Qx$1(47," Cancel "),bf$1()()()();}if(e&2){let o=yx$1(2);X_$1(4),Af$1(" Shipping: ",o.sale.selectedShipping," "),X_$1(2),Af$1(" Total to pay: ",DA$1(7,10,o.sale.totalSalePrice)," "),X_$1(3),Af$1(" Payment options: ",o.listing.paymentOptions," "),X_$1(2),Af$1(" My email: ",DA$1(12,12,o.seller$).email," "),X_$1(3),Af$1(" To: ",o.sale.buyer.email," "),X_$1(4),aE("ngModel",o.paymentInstructions.subject),XS(),X_$1(11),Af$1(" Include the reference number (",o.sale.referenceNumber,") in your deposit details. "),X_$1(6),aE("ngModel",o.paymentInstructions.body),XS(),X_$1(5),aE("ngModel",o.paymentInstructions.copySeller),XS(),X_$1(4),TD("tgLoading",o.submitting$);}}function b4(e,i){if(e&1){let o=dx$1();Ia$1(0,"tg-modal",2),kD("close",function(){Xh$1(o);let n=yx$1();return eg$1(n.showingInstructions=false)})("tmOnNavigation",function(){Xh$1(o);let n=yx$1();return eg$1(n.showingInstructions=false)}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx$1(3,"Send payment instructions"),bf$1()(),Ia$1(4,"tg-modal-body"),JN(5,x4,48,14,"div"),bf$1()();}if(e&2){let o=yx$1();X_$1(5),XN(o.paymentInstructions?5:-1);}}var d_=(()=>{let i=class i{constructor(t,n,l,C){this._currentMemberService=t,this._paymentInstructionsFacade=n,this._notifer=l,this._cdr=C,this.showingInstructions=false,this._destroyed$=new W$1;}ngOnInit(){this.seller$=this._currentMemberService.getCurrentMember(),this._paymentInstructionsFacade.getMemberPaymentInstructions().pipe(Xt(t=>!t.isLoading),An(1),Xp(this._destroyed$)).subscribe(t=>this.paymentInstructions={copySeller:t.item.copySeller,body:t.item.template,subject:`Payment Instructions: reference #${this.sale.purchaseId}, ${this.listing.title}`});}sendPaymentInstructions(t){t&&(this.submitting$=this._paymentInstructionsFacade.sendPaymentInstructionsToBuyer(this.listing.listingId,this.sale.purchaseId,this.paymentInstructions).pipe(Xt(n=>!n.isLoading),An(1),th$1(n=>{n.error?this._notifer.error("There was a problem sending your payment instructions, please try again."):(this.showingInstructions=false,this._notifer.success(n.item.description)),this._cdr.markForCheck();})));}ngOnDestroy(){this._destroyed$.next();}};i.\u0275fac=function(n){return new(n||i)(R$2(E),R$2(T$2),R$2(nm),R$2(mc$1))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-payment-instructions"]],inputs:{listing:"listing",sale:"sale"},standalone:false,decls:5,vars:1,consts:[["instructionForm","ngForm"],["transparent","","tgButton2","","type","button",1,"tm-listing-payment-instructions__button-as-link",3,"click"],[3,"close","tmOnNavigation"],["method","POST","name","paymentInstructions.paymentInstructionsForm","novalidate","",3,"ngSubmit"],["label","Subject"],["maxlength","140","name","subject","required","","tgTextInput","",3,"ngModelChange","ngModel"],[1,"p-label"],["tgList2","","type","bullet"],["href","https://help.trademe.co.nz/hc/en-us/articles/360007000532-Ways-to-pay-the-seller"],["label","Payment instructions"],["maxlength","2000","name","body","required","","tgTextInput","",3,"ngModelChange","ngModel"],["name","sendCopy",3,"ngModelChange","ngModel"],[1,"tm-listing-payment-instructions__flex-button"],["fullWidth","","tgButton2","","tgStyle","primary","type","submit",3,"tgLoading"],["fullWidth","","tgButton2","","type","button",3,"click"]],template:function(n,l){n&1&&(Ia$
191(0,"button",1),kD("click",function(){return l.showingInstructions=true}),Qx$1(1,` Send payment instructions
20`),bf$1(),Ia$1(2,"p"),Qx$1(3,` Email the buyer to sort out shipping and payment details. You may also send and save payment instructions automatically for items you sell.
21`),bf$1(),JN(4,b4,6,1,"tg-modal")),n&2&&(X_$1(4),XN(l.showingInstructions?4:-1));},dependencies:[Gm,Vi$1,Ai$1,Bm,Wn,Qn,Eo,Ri$3,C$1,He,Hr,jb$1,Lb$1,Lc,K_$1,nn$1,eb$1,Eh$1,Fh$1,Nh$1,Bh$1,$g$1,Tr,Ob$1,bO,mr],styles:[`tm-listing-payment-instructions{display:block}.payment-instructions{white-space:pre-line}.tm-listing-payment-instructions__button-as-link{min-height:auto;padding:0;margin-bottom:0;text-align:left;vertical-align:baseline}p{margin-bottom:8px}.tm-listing-payment-instructions__flex-button{display:flex;column-gap:16px}@media(min-width:768px){.tm-listing-payment-instructions__flex-button{column-gap:24px}}
22`],encapsulation:2});let e=i;return e})();function S4(e,i){if(e&1&&_D(0,"tm-book-courier-info",22),e&2){let o=yx$1(3);TD("sale",o.sale);}}function w4(e,i){if(e&1&&_D(0,"tm-listing-payment-instructions",5),e&2){let o=yx$1(3);TD("listing",o.listing)("sale",o.sale);}}function k4(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-place-feedback-modal",25),kD("onCancelled",function(){Xh$1(o);let n=yx$1(5);return eg$1(n.closeListingFeedbackModal())})("onSuccess",function(){Xh$1(o);let n=yx$1(5);return eg$1(n.closeListingFeedbackModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(5);return eg$1(n.closeListingFeedbackModal())}),bf$1();}if(e&2){let o=yx$1(5);TD("listing",o.listing)("sale",o.sale);}}function I4(e,i){if(e&1){let o=dx$1();Ia$1(0,"div")(1,"button",23),kD("click",function(){Xh$1(o);let n=yx$1(4);return eg$1(n.showListingFeedbackModal())}),Qx$1(2," Place feedback "),bf$1(),iD(3,k4,1,2,"tm-place-feedback-modal",24),Ia$1(4,"p"),Qx$1(5,"Inform the Trade Me community of how your trade went once the sale is completed."),bf$1()();}if(e&2){let o=yx$1(4);X_$1(3),TD("ngIf",o.listingFeedbackModalVisible);}}function T4(e,i){if(e&1&&(Ia$1(0,"div"),iD(1,I4,6,1,"div",16),bf$1()),e&2){let o=yx$1(3);X_$1(),TD("ngIf",o.canStillGiveFeedback);}}function O4(e,i){if(e&1&&(Ia$1(0,"div")(1,"a",18),Qx$1(2," Contact the buyer "),bf$1(),Ia$1(3,"div",19),Qx$1(4),bf$1(),Ia$1(5,"p"),iD(6,S4,1,1,"tm-book-courier-info",20),bf$1(),iD(7,w4,1,2,"tm-listing-payment-instructions",21),yA(8,"async"),iD(9,T4,2,1,"div",16),_D(10,"tm-past-activities",5),bf$1()),e&2){let o=yx$1(2);X_$1(),TD("href",iA("mailto:",o.sale.buyer.email,"?subject=",o.listing.title),Ry$1),X_$1(3),Af$1(" Email ",o.sale.buyer.nickname," to sort out shipping and payment details. "),X_$1(2),TD("ngIf",o.canUseCourierService),X_$1(),TD("ngIf",o.canSendPaymentInstructions&&DA$1(8,9,o.canManagePaymentInstructions$)),X_$1(2),TD("ngIf",!o.sale.hasSellerPlacedFeedback),X_$1(),TD("listing",o.listing)("sale",o.sale);}}function E4(e,i){if(e&1&&(Ia$1(0,"section",2)(1,"div",3)(2,"div",4),_D(3,"tm-listing-payment-summary",5)(4,"tm-refund-summary",6),bf$1(),Ia$1(5,"div",7)(6,"strong"),Qx$1(7,"Reference"),bf$1(),Ia$1(8,"p"),Qx$1(9),bf$1(),Ia$1(10,"strong"),Qx$1(11,"Buyer"),bf$1(),Ia$1(12,"div",8),_D(13,"tm-member-reputation",9),bf$1(),Ia$1(14,"strong"),Qx$1(15,"Email"),bf$1(),Ia$1(16,"p")(17,"a",10),Qx$1(18),bf$1()()(),_D(19,"tm-shipping-and-delivery",11),bf$1(),_D(20,"hr",12),Ia$1(21,"div",13)(22,"div",14)(23,"h4",15),Qx$1(24,"Next steps"),bf$1(),iD(25,O4,11,11,"div",16),bf$1(),Ia$1(26,"div"),_D(27,"tm-sale-falls-through",17),yA(28,"async"),bf$1()()()),e&2){let o=yx$1();X_$1(3),TD("listing",o.listing)("sale",o.sale),X_$1(),TD("sale",o.sale)("refunds",o.sale==null||o.sale.paymentDetails==null?null:o.sale.paymentDetails.refundCollection)("showTaxes",true),X_$1(5),rE(o.sale.referenceNumber),X_$1(4),TD("memberSummary",o.sale.buyer),X_$1(4),TD("href",iA("mailto:",o.sale.buyer.email,"?subject=",o.listing.title),Ry$1),X_$1(),Af$1(" ",o.sale.buyer.email," "),X_$1(),TD("sale",o.sale),X_$1(6),TD("ngIf",!o.sale.hasPaymentBeenReceived||!o.sale.deliveryDetailsSent),X_$1(2),TD("listing",o.listing)("sale",o.sale)("successFeeRefund",DA$1(28,16,o.successFeeRefund$));}}function P4(e,i){e&1&&(Ia$1(0,"div",31)(1,"strong"),Qx$1(2," Pay "),bf$1(),Ia$1(3,"p"),Qx$1(4,"Arrange with the seller to pay via Cash or NZ Bank Deposit."),bf$1()());}
22function D4(e,i){if(e&1&&(Ia$1(0,"div",31)(1,"strong"),Qx$1(2," Insurance "),bf$1(),Ia$1(3,"p",32),Qx$1(4," Save 15% on your premiums as a Trade Me member. "),bf$1(),Ia$1(5,"div",33)(6,"a",34),Qx$1(7,"Get a quote"),bf$1()()()),e&2){let o=yx$1(2);X_$1(6),TD("href",o.insuranceUrl,Ry$1)("trackingId",o.tmInsuranceTrackingEvent)("data",o.gtmData);}}function L4(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-place-feedback-modal",38),kD("onCancelled",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.closeListingFeedbackModal())})("onSuccess",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.closeListingFeedbackModal())})("tmOnNavigation",function(){Xh$1(o);let n=yx$1(3);return eg$1(n.closeListingFeedbackModal())}),bf$1();}if(e&2){let o=yx$1(3);TD("listing",o.listing)("sale",o.sale);}}function B4(e,i){if(e&1){let o=dx$1();Ia$1(0,"div",31)(1,"strong"),Qx$1(2," Feedback "),bf$1(),Ia$1(3,"p",35),Qx$1(4," Inform the Trade Me community of how your trade went once the sale is completed. "),bf$1(),Ia$1(5,"button",36),kD("click",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.showListingFeedbackModal())}),Qx$1(6," Place feedback "),bf$1(),iD(7,L4,1,2,"tm-place-feedback-modal",37),bf$1();}if(e&2){let o=yx$1(2);X_$1(7),TD("ngIf",o.listingFeedbackModalVisible);}}function F4(e,i){if(e&1&&(Ia$1(0,"section",26)(1,"div",3)(2,"div",4),_D(3,"tm-buyer-purchase-summary",27),bf$1(),Ia$1(4,"div",7)(5,"strong"),Qx$1(6,"Reference"),bf$1(),Ia$1(7,"p"),Qx$1(8),bf$1(),Ia$1(9,"strong"),Qx$1(10,"Seller"),bf$1(),Ia$1(11,"div",8),_D(12,"tm-member-reputation",9),bf$1(),Ia$1(13,"strong"),Qx$1(14,"Email"),bf$1(),Ia$1(15,"p")(16,"a",10),Qx$1(17),bf$1()()(),_D(18,"tm-shipping-and-delivery",11),bf$1(),_D(19,"hr",12),Ia$1(20,"div",13)(21,"div",14)(22,"h4",15),Qx$1(23,"Next steps"),bf$1()(),Ia$1(24,"div",28),iD(25,P4,5,0,"div",29)(26,D4,8,3,"div",29)(27,B4,8,1,"div",29),bf$1(),Ia$1(28,"div",30),_D(29,"tm-past-activities",5),bf$1()()()),e&2){let o=yx$1();X_$1(3),TD("listing",o.listing)("currentSale",o.sale)("isPingSale",o.isPingSale)("isAfterpaySale",o.isAfterpaySale)("afterpayOrderUrl",o.afterpayOrderUrl),X_$1(5),rE(o.sale.referenceNumber),X_$1(4),TD("memberSummary",o.listing.member),X_$1(4),TD("href",iA("mailto:",o.listing.member.email,"?subject=",o.listing.title),Ry$1),X_$1(),Af$1(" ",o.listing.member.email," "),X_$1(),TD("sale",o.sale),X_$1(7),TD("ngIf",!o.sale.hasPaymentBeenReceived||!o.sale.deliveryDetailsSent),X_$1(),TD("ngIf",o.shouldShowInsurance),X_$1(),TD("ngIf",!o.sale.hasBuyerPlacedFeedback&&o.canStillGiveFeedback),X_$1(2),TD("listing",o.listing)("sale",o.sale);}}var p_=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e){this._listingUtilService=t,this._taxesService=n,this._successFeeRefundsFacade=l,this._motorsGtmService=C,this._categoryService=I,this._afterpayHelperService=j,this._paymentInstructionsFacade=_e,this.hasSellRestrictions=false,this.shouldShowInsurance=false,this.listingFeedbackModalVisible=false,this.tmInsuranceTrackingEvent=j$1,this.isPingSale=false,this.isAfterpaySale=false,this.afterpayOrderUrl="",this.canManagePaymentInstructions$=this._paymentInstructionsFacade.canManagePaymentInstructions$();}ngOnInit(){this.calculateBuyerComponentValues();let t=R$3(this.listing.category);this.shouldShowInsurance=(this._categoryService.isCars(t)||this._categoryService.isBoats(t))??false,this.shouldShowInsurance&&(this.insuranceUrl=this.buildInsuranceUrl()),this.gtmData=this._motorsGtmService.getInsuranceQuoteGtmData("clicked","listing_details_page","insurance_get_quote",this.listing);}ngOnChanges(t){t.listing&&(this.canStillGiveFeedback=!this._listingUtilService.feedbackTimeIsPast(this.listing),this.hasSellRestrictions=this._taxesService.hasSellRestrictions(this.listing.taxesIncluded)),t.sale&&(this.successFeeRefund$=this._successFeeRefundsFacade.getSuccessFeeRefund(this.sale.purchaseId));}get canUseCourierService(){return !this.hasSellRestrictions&&(!!this.sale.isTradeMeShippingAvailable||!!this.sale.tradeMeShippingMessage)}get canSendPaymentInstructions(){return !this.hasSellRestrictions&&!this.sale.paymentInstructions&&!this.sale.hasPaidByCreditCard&&!this.sale.hasPaymentBeenReceived}showListingFeedbackModal(){this.listingFeedbackModalVisible=true;}closeListingFeedbackModal(){this.listingFeedbackModalVisible=false;}buildInsuranceUrl(){let t="";switch(true){case this.listing.category?.startsWith("0001-0268-"):t="car";break;case this.listing.category?.startsWith("0001-0348-"):t="boat";break;default:t="unknown";break}return `https://my.trademeinsurance.co.nz/quote/bundle-builder?pt=${t}`}calculateBuyerComponentValues(){this.isPingSale=!!this.sale.paymentDetails&&this.sale.paymentDetails.paymentType===_$1.ping,this.isAfterpaySale=!!this.sale.deferredPaymentId,this.isAfterpaySale&&(this.afterpayOrderUrl=this._afterpayHelperService.getAfterpayOrderUrl(this.sale.deferredPaymentId));}};i.\u0275fac=function(n){return new(n||i)(R$2(Y$1),R$2(f$2),R$2(Hi),R$2($$1),R$2(P),R$2(h$3),R$2(T$2))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-sale-activities"]],inputs:{listing:"listing",sale:"sale",showBuyerOptions:"showBuyerOptions",showSellerOptions:"showSellerOptions"},standalone:false,features:[Zr],decls:2,vars:2,consts:[["class","tm-listing-sale-activities__seller-section",4,"ngIf"],["class","tm-listing-sale-activities__buyer-section",4,"ngIf"],[1,"tm-listing-sale-activities__seller-section"],[1,"tm-listing-sale-activities__purchase-summary-container"],[1,"tm-listing-sale-activities__purchase-summary-card"],[3,"listing","sale"],[3,"sale","refunds","showTaxes"],["tgMarginTop","",1,"tm-listing-sale-activities__purchase-summary-card"],["tgMarginBottom",""],[3,"memberSummary"],[1,"tm-listing-sale-activities__buyer-email",3,"href"],[1,"tm-listing-sale-activities__purchase-summary-card",3,"sale"],[1,"o-hr-compact"],[1,"tm-listing-sale-activities__actions-container"],[1,"tm-listing-sale-activities__next-steps-container"],[1,"tm-listing-sale-activities__full-width"],[4,"ngIf"],[1,"tm-listing-sale-activities__full-width",3,"listing","sale","successFeeRefund"],[3,"href"],[1,"tm-listing-sale-activities__
22courier-action-text"],["class","tm-listing-sale-activities__normal-text",3,"sale",4,"ngIf"],[3,"listing","sale",4,"ngIf"],[1,"tm-listing-sale-activities__normal-text",3,"sale"],["transparent","","tgButton2","","type","button",1,"tm-listing-sale-activities__button-as-link",3,"click"],["bySeller","",3,"listing","sale","onCancelled","onSuccess","tmOnNavigation",4,"ngIf"],["bySeller","",3,"onCancelled","onSuccess","tmOnNavigation","listing","sale"],[1,"tm-listing-sale-activities__buyer-section"],[3,"listing","currentSale","isPingSale","isAfterpaySale","afterpayOrderUrl"],[1,"tm-listing-sale-activities__next-steps-activities-container"],["class","tm-listing-sale-activities__child",4,"ngIf"],[1,"tm-listing-sale-activities__past-activities-container",2,"flex","1"],[1,"tm-listing-sale-activities__child"],[1,"tm-listing-sale-activities__insurance-text"],[1,"tm-listing-sale-activities__insurance-link"],["id","insurance_get_quote","name","insurance_get_quote","target","_blank","rel","noopener noreferrer","tmTrackCustomClick","",3,"href","trackingId","data"],[1,"tm-listing-sale-activities__feedback-text"],["transparent","","tgButton2","","type","button",1,"tm-listing-sale-activities__button-as-link","tm-listing-sale-activities__feedback-btn",3,"click"],["byBuyer","",3,"listing","sale","onCancelled","onSuccess","tmOnNavigation",4,"ngIf"],["byBuyer","",3,"onCancelled","onSuccess","tmOnNavigation","listing","sale"]],template:function(n,l){n&1&&iD(0,E4,29,18,"section",0)(1,F4,30,17,"section",1),n&2&&(TD("ngIf",l.showSellerOptions),X_$1(),TD("ngIf",l.showBuyerOptions));},dependencies:[mO,He,jr,I0,a_,s_,l_,m_,z$2,C$1,Bi,c_,p,d_,Li,bO],styles:["tm-listing-sale-activities[_nghost-%COMP%]{display:block}.tm-listing-sale-activities__normal-text[_ngcontent-%COMP%]{font-weight:400}.tm-listing-sale-activities__button-as-link[_ngcontent-%COMP%]{display:inline-block;width:auto;min-height:auto;padding:0;margin-bottom:0;text-align:left;vertical-align:baseline}.tm-listing-sale-activities__purchase-summary-card[_ngcontent-%COMP%]{flex:1 1 0;width:0}@media(max-width:767px){.tm-listing-sale-activities__purchase-summary-card[_ngcontent-%COMP%]{width:100%}}.tm-listing-sale-activities__buyer-email[_ngcontent-%COMP%]{overflow-wrap:break-word}.tm-listing-sale-activities__purchase-summary-container[_ngcontent-%COMP%]{display:flex}.tm-listing-sale-activities__actions-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;grid-template-rows:min-content}@media(min-width:1024px){.tm-listing-sale-activities__seller-section[_ngcontent-%COMP%]   .tm-listing-sale-activities__actions-container[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media(min-width:1440px){.tm-listing-sale-activities__seller-section[_ngcontent-%COMP%]   .tm-listing-sale-activities__actions-container[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr}}.tm-listing-sale-activities__purchase-summary-container[_ngcontent-%COMP%], .tm-listing-sale-activities__actions-container[_ngcontent-%COMP%]{column-gap:24px}@media(max-width:767px){.tm-listing-sale-activities__purchase-summary-container[_ngcontent-%COMP%], .tm-listing-sale-activities__actions-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.tm-listing-sale-activities__full-width[_ngcontent-%COMP%]{grid-column:span 2}@media(min-width:768px){.tm-listing-sale-activities__full-width[_ngcontent-%COMP%]{min-width:max-content}}.tm-listing-sale-activities__feedback-text[_ngcontent-%COMP%], .tm-listing-sale-activities__insurance-text[_ngcontent-%COMP%]{padding-bottom:8px;margin-bottom:0}@media(max-width:767px){.tm-listing-sale-activities__feedback-btn[_ngcontent-%COMP%]{padding-bottom:24px}}@media(max-width:767px){.tm-listing-sale-activities__insurance-link[_ngcontent-%COMP%]{padding-bottom:24px}}.tm-listing-sale-activities__seller-section[_ngcontent-%COMP%]   .tm-listing-sale-activities__next-steps-container[_ngcontent-%COMP%]{grid-area:1/1/2/2}@media(min-width:1440px){.tm-listing-sale-activities__seller-section[_ngcontent-%COMP%]   .tm-listing-sale-activities__next-steps-container[_ngcontent-%COMP%]{max-width:70%}}.tm-listing-sale-activities__next-steps-activities-container[_ngcontent-%COMP%]{display:flex;column-gap:24px;justify-content:space-between;grid-area:2/1/3/2}@media(max-width:767px){.tm-listing-sale-activities__next-steps-activities-container[_ngcontent-%COMP%]{padding-bottom:24px;flex-direction:column}}.tm-listing-sale-activities__past-activities-container[_ngcontent-%COMP%]{grid-area:1/2/3/3}
22.tm-listing-sale-activities__child[_ngcontent-%COMP%]{flex:1 1 0}"]});let e=i;return e})();var A4=()=>({format:"long"}),$4=()=>({format:"time"});function R4(e,i){if(e&1&&(Ia$1(0,"tg-rack")(1,"tg-rack-item-primary"),Qx$1(2),bf$1()()),e&2){let o=yx$1(2);X_$1(2),Af$1(" You're selling ",o.listing.quantityRemaining," more of these items ");}}function N4(e,i){e&1&&(Ia$1(0,"div")(1,"h2"),Qx$1(2,"Congratulations, your item was successfully sold!"),bf$1(),Ia$1(3,"p",5)(4,"small"),Qx$1(5," (Only you can see this section) "),bf$1()()());}function j4(e,i){if(e&1&&(Ia$1(0,"tg-accordion-item",6)(1,"tg-accordion-heading"),Qx$1(2),yA(3,"tgDateTime"),yA(4,"tgDateTime"),bf$1(),_D(5,"tm-listing-sale-activities",7),yA(6,"async"),bf$1()),e&2){let o=i.$implicit,t=yx$1(2);TD("expanded",t.sales?.length===1),X_$1(2),iE(" Your item was successfully sold ",EA(3,7,o.soldDate,fA(15,A4))," at ",EA(4,10,o.soldDate,fA(16,$4))," - ",o.referenceNumber," "),X_$1(3),TD("listing",t.listing)("sale",o)("showSellerOptions",DA$1(6,13,t.showSellerOptions$));}}function U4(e,i){if(e&1&&(Mf(0),iD(1,R4,3,1,"tg-rack",3)(2,N4,6,0,"ng-template",null,0,wA),Ia$1(4,"tg-accordion"),iD(5,j4,7,17,"tg-accordion-item",4),bf$1(),Ja$2()),e&2){let o=Tx$1(3),t=yx$1();X_$1(),TD("ngIf",t.listingIsStillOpen)("ngIfElse",o),X_$1(4),TD("ngForOf",t.sales)("ngForTrackBy",t.trackByPurchaseId);}}function W4(e,i){if(e&1&&(Ia$1(0,"tg-accordion-item",11),_D(1,"tm-listing-sale-activities",12),yA(2,"async"),bf$1()),e&2){let o=i.$implicit,t=yx$1(2);TD("expanded",t.sales?.length===1),X_$1(),TD("listing",t.listing)("sale",o)("showBuyerOptions",DA$1(2,4,t.showBuyerOptions$));}}function q4(e,i){if(e&1&&(Mf(0,8),Ia$1(1,"div")(2,"h2",9),Qx$1(3,"Congratulations on your purchase!"),bf$1(),Ia$1(4,"p",5)(5,"small"),Qx$1(6," (Only you can see this section) "),bf$1()()(),Ia$1(7,"tg-accordion"),iD(8,W4,3,6,"tg-accordion-item",10),bf$1(),Ja$2()),e&2){let o=yx$1();X_$1(8),TD("ngForOf",o.sales);}}var g_=(()=>{let i=class i{constructor(t,n,l,C){this._activatedRoute=t,this._timeService=n,this._listingUtilService=l,this._listingSalesActivityService=C,this._listingChanges$=new W$1,this._destroyed$=new W$1,wC$1(this._activatedRoute.params.pipe(Fe(I=>I.purchaseId),Fe(Number)),this._listingChanges$,(I,j)=>j.sales?.filter(_e=>!I||_e.purchaseId===I)).pipe(Xp(this._destroyed$)).subscribe(I=>this.sales=I);}ngOnInit(){this.showSellerOptions$=this._listingSalesActivityService.showSellerTemplate(this.listing),this.showBuyerOptions$=this._listingSalesActivityService.showBuyerTemplate(this.listing);}ngOnChanges(){this._listingChanges$.next(this.listing),this.listingIsStillOpen=this.listing.isBuyNowOnly&&this.listing.hasMultiple&&l$1(this.listing.endDate,"motors-listing").getTime()>
22this._timeService.now.getTime(),this.listingUrl=this._listingUtilService.makeListingUrl(this.listing);}trackByPurchaseId(t){return t.purchaseId}ngOnDestroy(){this._destroyed$.next();}};i.\u0275fac=function(n){return new(n||i)(R$2(Re),R$2(N0$1),R$2(Y$1),R$2(zt))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-listing-sales"]],inputs:{listing:"listing"},standalone:false,features:[Zr],decls:4,vars:6,consts:[["listingNotOpen",""],[4,"ngIf"],["class","tm-listing-sales-buyer__box",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"expanded",4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-subtitle"],[3,"expanded"],[3,"listing","sale","showSellerOptions"],[1,"tm-listing-sales-buyer__box"],[1,"tm-listing-sales__box-header"],["class","o-accordion__item",3,"expanded",4,"ngFor","ngForOf"],[1,"o-accordion__item",3,"expanded"],[3,"listing","sale","showBuyerOptions"]],template:function(n,l){n&1&&(iD(0,U4,6,4,"ng-container",1),yA(1,"async"),iD(2,q4,9,1,"ng-container",2),yA(3,"async")),n&2&&(TD("ngIf",DA$1(1,2,l.showSellerOptions$)),X_$1(2),TD("ngIf",DA$1(3,4,l.showBuyerOptions$)));},dependencies:[YI,mO,zc,Hc,Fg$1,cr,R_$1,p_,bO,M0$1],styles:[`.tm-listing-sales-buyer__box{background-color:transparent;margin-bottom:0;padding-bottom:0;display:contents}.tm-listing-sales__box-header{padding-top:10px}.o-accordion__item.o-accordion__item:after{border-bottom:none}
23`],encapsulation:2});let e=i;return e})();function z4(e,i){if(e&1&&(Ia$1(0,"div",1),_D(1,"tm-member-profile-image",2),bf$1()),e&2){let o=i.ngIf;X_$1(),TD("member",o.memberProfile)("store",o.store);}}var __=(()=>{let i=class i{constructor(t){this._listingFacade=t;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Fe(t=>t.item)),this.canShowStoreLogo$=this.listing$.pipe(Fe(t=>this.calculateCanShowStoreLogo(t)));}calculateCanShowStoreLogo(t){return !(!t||!t.store||!t.store.storePath||!t.memberProfile||!t.memberProfile.photo||!t.renderOptions||!t.renderOptions.includes(lt.canDisplayMemberImageInBuyerOptions))}};i.\u0275fac=function(n){return new(n||i)(R$2(pe))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-profile-image"]],standalone:false,decls:3,vars:5,consts:[["class","tm-profile-image",4,"ngIf"],[1,"tm-profile-image"],["size","large",3,"member","store"]],template:function(n,l){n&1&&(iD(0,z4,2,2,"div",0),yA(1,"async"),yA(2,"async")),n&2&&TD("ngIf",DA$1(2,3,DA$1(1,1,l.canShowStoreLogo$)&&l.listing$));},dependencies:[mO,ne,bO],styles:["tm-profile-image[_nghost-%COMP%]{display:block}.tm-profile-image[_ngcontent-%COMP%]{margin-bottom:8px;text-align:center}"]});let e=i;return e})();function K4(e,i){if(e&1&&_D(0,"tm-listing-buyer-fpo-status-banner",2),e&2){let o=yx$1(2);TD("listing",o.listing);}}function Z4(e,i){if(e&1&&_D(0,"tm-listing-buyer-post-fpo-status-banner",2),e&2){let o=yx$1(2);TD("listing",o.listing);}}function Y4(e,i){if(e&1&&(Mf(0),iD(1,K4,1,1,"tm-listing-buyer-fpo-status-banner",1),yA(2,"async"),iD(3,Z4,1,1,"tm-listing-buyer-post-fpo-status-banner",1),yA(4,"async"),Ja$2()),e&2){let o=yx$1();X_$1(),TD("ngIf",DA$1(2,2,o.listing.pendingOffer&&o.buyerHasPendingOffer$)),X_$1(2),TD("ngIf",DA$1(4,4,o.listing.closedOffer&&o.buyerHasClosedOffer$));}}var u_=(()=>{let i=class i{constructor(t){this._currentMemberFacade=t;}ngOnInit(){this.currentMember$=this._currentMemberFacade.getCurrentMember().pipe(Xt(t=>!!t)),this.buyerHasPendingOffer$=this.currentMember$.pipe(Fe(t=>!this.listing||!this.listing.member||!t?false:this.listing.member.memberId!==t.memberId&&!!this.listing.pendingOffer)),this.buyerHasClosedOffer$=this.currentMember$.pipe(Fe(t=>!this.listing||!this.listing.member||!t?false:this.listing.member.memberId!==t.memberId&&!!this.listing.closedOffer));}};i.\u0275fac=function(n){return new(n||i)(R$2(E))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-buyer-options"]],inputs:{listing:"listing"},standalone:false,decls:1,vars:1,consts:[[4,"ngIf"],[3,"listing",4,"ngIf"],[3,"listing"]],template:function(n,l){n&1&&iD(0,Y4,5,6,"ng-container",0),n&2&&TD("ngIf",l.listing);},dependencies:[mO,ZR,qR,bO],styles:["tm-buyer-options[_nghost-%COMP%]{display:block}"]});let e=i;return e})();function J4(e,i){if(e&1&&(_D(0,"tm-seller-options-new",19),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1(2);TD("eligibleForMbgRefund",DA$1(1,2,o.eligibleForMbgRefund$))("mbgRefundUrl",DA$1(2,4,o.mbgRefundUrl$));}}function X4(e,i){if(e&1&&(_D(0,"tm-seller-unsold-listing-info",20),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1(),t=yx$1();TD("listing",o)("eligibleForMbgRefund",DA$1(1,3,t.eligibleForMbgRefund$))("mbgRefundUrl",DA$1(2,5,t.mbgRefundUrl$));}}function eM(e,i){e&1&&_D(0,"tm-motors-consumer-finance-summary",23);}function tM(e,i){if(e&1&&(_D(0,"tm-watchlist",21)(1,"tm-listing-close-time",12)(2,"tm-auction-pricing-box",22),JN(3,eM,1,0,"tm-motors-consumer-finance-summary",23),yA(4,"async")),e&2){let o=yx$1(2);X_$1(3),XN(DA$1(4,1,o.isCarCategory$)?-1:3);}}function iM(e,i){e&1&&_D(0,"tm-listing-close-time",12);}function nM(e,i){e&1&&_D(0,"tm-advertisement");}
23function oM(e,i){if(e&1&&(Ia$1(0,"div",14),_D(1,"tm-listing-close-time")(2,"tm-profile-image")(3,"tm-contact-box"),JN(4,nM,1,0,"tm-advertisement"),yA(5,"async"),bf$1()),e&2){let o=yx$1(2);X_$1(4),XN(DA$1(5,1,o.isMdOrGreater$)?4:-1);}}function rM(e,i){if(e&1&&_D(0,"tm-before-you-buy",16),e&2){let o=yx$1();TD("listingId",o.listingId)("headingContent","Before you buy")("headingLevel","H2");}}function aM(e,i){if(e&1){let o=dx$1();_D(0,"tm-sticky-header",0),yA(1,"async"),Ia$1(2,"tm-breadcrumbs-watchlist-banner",1),kD("visibleChange",function(n){Xh$1(o);let l=yx$1();return eg$1(l.onBreadcrumbsWatchlistBannerVisibleChange(n.isVisible))}),bf$1(),Ia$1(3,"div",2),_D(4,"tm-listing-closed-banner",3),bf$1(),Ia$1(5,"div",4),_D(6,"tm-buyer-options",3),Mf(7,5),yA(8,"async"),iD(9,J4,3,6,"tm-seller-options-new",6)(10,X4,3,7,"tm-seller-unsold-listing-info",7),Ja$2(),_D(11,"tm-listing-sales",3),bf$1(),Ia$1(12,"div",8)(13,"tm-gallery-view",9),kD("visibleChange",function(n){Xh$1(o);let l=yx$1();return eg$1(l.onGalleryViewVisibleChange(n.isVisible))}),bf$1()(),Ia$1(14,"div",10),kD("visibleChange",function(n){Xh$1(o);let l=yx$1();return eg$1(l.onListingContentVisibleChange(n.isVisible))}),Ia$1(15,"div",11),_D(16,"tm-listing-date-city")(17,"tm-listing-title"),JN(18,tM,5,3),yA(19,"async"),wf$1(20,iM,1,0,"tm-listing-close-time",12),_D(21,"tm-vehicle-attributes")(22,"tm-video")(23,"tm-listing-ratings")(24,"tm-background-check")(25,"tm-motors-listing-description")(26,"tm-reviews-new-car-entry-point"),Ia$1(27,"div",13)(28,"h2"),Qx$1(29,"Questions & Answers"),bf$1(),_D(30,"tm-listing-q-and-a",3),bf$1()(),JN(31,oM,6,3,"div",14),yA(32,"async"),bf$1(),Ia$1(33,"div",2)(34,"div",15),_D(35,"tm-payment-pricing"),JN(36,rM,1,3,"tm-before-you-buy",16),bf$1(),_D(37,"tm-member-contact")(38,"tm-motors-recommended-listings-stripe"),Ia$1(39,"div",17),_D(40,"tm-listing-id-views"),bf$1()(),_D(41,"tm-sticky-contact-footer",18),yA(42,"async");}if(e&2){let o=i,t=yx$1();TD("isVisible",DA$1(1,12,t.isUpperStickyBannerLargeVisible$)),X_$1(4),TD("listing",o),X_$1(2),TD("listing",o),X_$1(),TD("ngSwitch",DA$1(8,14,t.optionsViewMode$)),X_$1(2),TD("ngSwitchCase",t.optionsViewModeEnum.Selling),X_$1(),TD("ngSwitchCase",t.optionsViewModeEnum.Unsold),X_$1(),TD("listing",o),X_$1(7),XN(DA$1(19,16,t.mediaSizeFacade.is.sm$.or.less$)?18:20),X_$1(12),TD("listing",o),X_$1(),XN(DA$1(32,18,t.isMdOrGreater$)?31:-1),X_$1(5),XN(o?.listingId?36:-1),X_$1(5),TD("isVisible",DA$1(42,20,t.isStickyFooterVisible$));}}var f_=(function(e){return e[e.Closed=0]="Closed",e[e.Selling=1]="Selling",e[e.Sold=2]="Sold",e[e.Unsold=3]="Unsold",e[e.Won=4]="Won",e})(f_||{}),h_=(()=>{let i=class i{constructor(t,n,l,C,I,j,_e,he,it,nt){this.mediaSizeFacade=t,this._listingFacade=n,this._listingUtilService=l,this._windowRef=C,this._platformService=I,this._routerFacade=j,this._notificationService=_e,this._router=he,this._listingDetailsFacade=it,this._categoryService=nt,this._isListingContentVisible$=new oo(false),this._isGalleryViewVisible$=new oo(false),this._isBreadcrumbsWatchlistBannerVisible$=new oo(false),this._destroyed$=new W$1;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Fe(t=>t.item)),this.isCarCategory$=this.listing$.pipe(Xt(t=>!!t),Fe(t=>this._categoryService.isUsedCars(R$3(t.category)))),this.eligibleForMbgRefund$=this._listingDetailsFacade.getListingDetails().pipe(Xt(t=>!!t.item&&!t.isLoading),Fe(t=>t.item?.moneyBackGuaranteeEligibility===Fe$1.eligible)),this.mbgRefundUrl$=$c(Zg),this.isMdOrGreater$=this.mediaSizeFacade.is.md$.or.greater$,this.optionsViewModeEnum=f_,this.listingComputedState$=this.listing$.pipe(Xt(t=>!!t),lo$1(t=>this._listingUtilService.getListingTransactionState(t)),Xt(t=>!!t.currentMemberIsSeller)),this.optionsViewMode$=this.listingComputedState$.pipe(Fe(t=>this.getOptionsViewMode(t))),this._userHasStartedScrolling$=this._windowRef.useWindow(t=>eu$1(t,"scroll").pipe(lo$1(()=>$c(true)),An(1))),this.isUpperStickyBannerLargeVisible$=wC$1([this.mediaSizeFacade.is.lg$.or.greater$,this._isBreadcrumbsWatchlistBannerVisible$]).pipe(nh(this._userHasStartedScrolling$??$c(false)),Fe(([[t,n],l])=>t&&!n&&l)),this.isStickyFooterVisible$=wC$1([this._isListingContentVisible$,this._isGalleryViewVisible$,this._routerFacade.hasPreviousRouteFeature
23()]).pipe(Fe(([t,n,l])=>t||n||this._platformService.isServer||!l)),this._routerFacade.selectCurrentQueryParams().pipe(Xp(this._destroyed$)).subscribe(t=>{if(t[sa$1.LISTING_EXPIRED_QUERY_PARAM]==="true"){this._notificationService.warning("Since your listing has expired, it can no longer be extended. However, you can proceed by relisting it.",{persist:true});let n={queryParams:{[sa$1.LISTING_EXPIRED_QUERY_PARAM]:null},queryParamsHandling:"merge"};this._router.navigate([],n);}});}ngOnDestroy(){this._destroyed$.next();}getOptionsViewMode(t){if(t.isClosed&&!t.currentMemberIsSeller&&!t.currentMemberIsBuyer)return this.optionsViewModeEnum.Closed;if(!t.isClosed&&t.currentMemberIsSeller)return this.optionsViewModeEnum.Selling;if(t.isClosed&&t.currentMemberIsSeller&&t.isListingSold)return this.optionsViewModeEnum.Sold;if(t.isClosed&&t.currentMemberIsSeller&&!t.isListingSold)return this.optionsViewModeEnum.Unsold;if(t.currentMemberIsBuyer)return this.optionsViewModeEnum.Won}onGalleryViewVisibleChange(t){this._isGalleryViewVisible$.next(t);}onBreadcrumbsWatchlistBannerVisibleChange(t){this._isBreadcrumbsWatchlistBannerVisible$.next(t);}onListingContentVisibleChange(t){this._isListingContentVisible$.next(t);}};i.\u0275fac=function(n){return new(n||i)(R$2(G),R$2(pe),R$2(Y$1),R$2(rt),R$2(h$2),R$2(D),R$2(nm),R$2(ce$1),R$2(Kt$1),R$2(P))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-private-listing"]],standalone:false,decls:2,vars:3,consts:[[3,"isVisible"],["tmTrackVisible","",3,"visibleChange"],[1,"l-container"],[3,"listing"],[1,"l-container","tm-motors-listing__banner-container"],[3,"ngSwitch"],[3,"eligibleForMbgRefund","mbgRefundUrl",4,"ngSwitchCase"],[3,"listing","eligibleForMbgRefund","mbgRefundUrl",4,"ngSwitchCase"],[1,"tm-motors-private-listing__gallery"],["adUnitPath","150718986/tm-frend/motors/cinema-view","fuseId","motors-cinema-view","tmTrackVisible","",1,"tm-motors-private-listing__gallery-view",3,"visibleChange"],["tmTrackVisible","",1,"l-container","tm-motors-listing__content",3,"visibleChange"],[1,"tm-motors-listing__content--left"],[1,"tm-motors-listing__listing-close-time"],[1,"tm-motors-listing__q_and_a"],[1,"tm-motors-listing__content--right"],[1,"tm-motors-listing__section"],[3,"listingId","headingContent","headingLevel"],[1,"tm-motors-listing__section","tm-motors-listing__section--centered"],[1,"tm-private-listing__sticky-footer",3,"isVisible"],[3,"eligibleForMbgRefund","mbgRefundUrl"],[3,"listing","eligibleForMbgRefund","mbgRefundUrl"],[1,"tm-motors-listing__watchlist"],[1,"tm-motors-listing__auction-pricing-box"],[1,"tm-motors-listing__motors-consumer-finance-summary"]],template:function(n,l){if(n&1&&(JN(0,aM,43,22),yA(1,"async")),n&2){let C;XN((C=DA$1(1,1,l.listing$))?0:-1,C);}},dependencies:[Ip,yO,ot$1,Va,Ha,fs,ja,Ea,$a,qt,ga,la$1,ns,Xg,t_,Na,i_,Vi,o_,is,x$2,Ja,La,r_,f5,Ga,g_,__,rs,ha,Za,u_,H,bO],styles:["tm-dealer-listing[_nghost-%COMP%]{display:block}.tm-motors-listing__content[_ngcontent-%COMP%]{display:flex;margin-bottom:24px}.tm-motors-listing__watchlist-button[_ngcontent-%COMP%]{display:none}@media(min-width:768px){.tm-motors-listing__watchlist-button[_ngcontent-%COMP%]{display:block}}.tm-motors-listing__content--left[_ngcontent-%COMP%]{overflow:hidden}@media(min-width:768px){.tm-motors-listing__content--left[_ngcontent-%COMP%]{flex:1;padding-right:24px}}.tm-motors-listing__content--right[_ngcontent-%COMP%]{display:none}@media(min-width:768px){.tm-motors-listing__content--right[_ngcontent-%COMP%]{display:block;max-width:40%}}.tm-motors-listing__section[_ngcontent-%COMP%]{margin-bottom:24px}.tm-motors-listing__section--grey-background[_ngcontent-%COMP%]{background-color:#f6f5f4}.tm-motors-listing__section--centered[_ngcontent-%COMP%]{text-align:center}.tm-motors-listing__q_and_a[_ngcontent-%COMP%]{max-width:750px;padding:48px 0}.tm-motors-listing__safe-buying[_ngcontent-%COMP%]{text-align:center}@media(min-width:768px){.tm-motors-listing__safe-buying[_ngcontent-%COMP%]{text-align:left}}.tm-motors-private-listing__gallery[_ngcontent-%COMP%]{width:100%;background:#f6f5f4}.tm-motors-private-listing__gallery-view[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:16px;background:#f6f5f4}@media(min-width:768px){.tm-motors-private-listing__gallery-view[_ngcontent-%COMP%]{margin-bottom:24px}}.tm-motors-listing__subtitle[_ngcontent-%COMP%]{font-size:1.5rem}.tm-motors-private-listing__info-card-section[_ngcontent-%COMP%]{padding:16px}.tm-motors-private-listing__contact-button[_ngcontent-%COMP%]{margin-bottom:8px}@media(min-width:1024px){.tm-private-listing__sticky-footer[_ngcontent-%COMP%]{display:none}}"]});let e=i;return e})();var tt=(function(e){return e.YEAR="year",e.COLOUR="exterior_colour",e.DOORS="doors",e.BODY_STYLE="body_style",e.ENGINE_SIZE="engine_size",e.FUEL_TYPE="fuel_type",e.MAKE="make",e.MODEL="model",e.ODOMETER="kilometres",e.SEAT="seats",e.TRANSMISSION="transmission",e.MOTORBIKE_STYLE="type",e.MOTORBOATS_HULL_TYPE="hull_type",e.CONDITION="vehicle_condition",e})(tt||{}),C_=(()=>{let i=class i{constructor(){this.type="Vehicle",this.urlLocationService=v(p$2),this.categoryService=v(P);}map(t){if(!t)return {id:null,jsonLd:null};try{let n=this.buildSchemaFromListing(t);return {id:t.listingId,jsonLd:n}}catch(n){return {id:t.listingId,jsonLd:null}}}buildSchemaFromListing(t){let n=t?.category?R$3(t.category):null;if(!n)return null;let l,C=null;switch(true){case this.categoryService.isCars(n):l=this.buildCarSchema,C=xs(t);break;case this.categoryService.isMotorBikes(n):l=this.buildMotorcycleSchema;break;
23case this.categoryService.isBoats(n):l=this.buildBoatSchema;break;case this.categoryService.isMotorHomes(n):l=this.buildMotorhomeSchema;break;default:return null}let I=this.buildBaseSchema(t,C);return l.bind(this)(I,t)}buildBaseSchema(t,n){let l={"@context":"https://schema.org","@type":"Vehicle",name:t.title,url:this.urlLocationService.getHref(),itemCondition:this.getItemCondition(t.isNew)},C=n||t.body;C&&(l.description=C);let I=t.photos?.[0]?.value?.plusSize;I&&(l.image=I);let j=this.buildCategory(t.breadcrumbs);j&&(l.category=j);let _e=this.buildOffer(t);return _e&&(l.offers=_e),l}buildCarSchema(t,n){let l=n.attributes||[],C=z(y(y({},t),this.getAutomotiveProperties(l,n)),{"@type":"Car"}),I=this.getNumericAttributeValue(l,tt.DOORS);I&&(C.numberOfDoors=I);let j=this.getNumericAttributeValue(l,tt.SEAT);return j&&(C.vehicleSeatingCapacity=j),C}buildMotorcycleSchema(t,n){let l=n.attributes||[];return z(y(y({},t),this.getAutomotiveProperties(l,n)),{"@type":"Motorcycle"})}buildBoatSchema(t,n){let l=n.attributes||[];return z(y({},t),{"@type":"Vehicle",bodyType:this.getAttributeValue(l,tt.MOTORBOATS_HULL_TYPE),vehicleModelDate:this.getAttributeValue(l,tt.YEAR),brand:this.getAttributeValue(l,tt.MAKE),model:this.getAttributeValue(l,tt.MODEL)})}buildMotorhomeSchema(t,n){let l=n.attributes||[];return y(z(y({},t),{"@type":"Vehicle"}),this.getAutomotiveProperties(l,n))}getAutomotiveProperties(t,n){let l={"@context":"https://schema.org","@type":"Vehicle"};if(t.length>0){let C=this.buildBrand(n.breadcrumbs);C&&(l.brand=C);let I=this.buildModel(n.breadcrumbs);I&&(l.model=I);let j=this.getAttributeValue(t,tt.BODY_STYLE);j&&(l.bodyType=j);let _e=this.getAttributeValue(t,tt.YEAR);_e&&(l.vehicleModelDate=_e);let he=this.buildVehicleEngine(t);he&&(l.vehicleEngine=he);let it=this.getAttributeValue(t,tt.COLOUR);it&&(l.color=it);let nt=this.getAttributeValue(t,tt.TRANSMISSION);nt&&(l.vehicleTransmission=nt);let Qi=this.buildMileage(n);Qi&&(l.mileageFromOdometer=Qi);}return l}getItemCondition(t){return t?"NewCondition":"UsedCondition"}buildVehicleEngine(t){let n=this.getNumericAttributeValue(t,tt.ENGINE_SIZE),l=this.getAttributeValue(t,tt.FUEL_TYPE),C={"@type":"EngineSpecification"};return l&&(C.fuelType=l),n&&(C.engineDisplacement={"@type":"QuantitativeValue",value:n,unitCode:"CMQ"}),l||n?C:null}buildMileage(t){let n=this.getNumericAttributeValue(t.attributes||[],tt.ODOMETER);return n!==null?{"@type":"QuantitativeValue",value:n,unitCode:"KMT"}:null}buildModel(t){return t.find(n=>n.name===tt.MODEL)?.displayName}buildCategory(t){let n=t.find(C=>C.name==="category"&&C.value!==a$3.MOTORS_ID.toString());if(!n||!n?.displayName)return null;let l={"@type":"CategoryCode",name:n.displayName};return n?.canonicalPath&&(l.url=`${this.urlLocationService.getOrigin()}/a${n?.canonicalPath}`),l}buildBrand(t){let n=t.find(l=>
23l.name===tt.MAKE);if(n&&n?.displayName){let l={"@type":"Brand",name:n.displayName};return n?.canonicalPath&&(l.url=`${this.urlLocationService.getOrigin()}/a${n?.canonicalPath}`),l}return null}buildOffer(t){let n={"@type":"Offer",availability:"InStock",price:t.startPrice,priceCurrency:"NZD"};if(t?.endDate){let C=I$2(t.endDate);C&&(n.priceValidUntil=C);}let l=this.buildSeller(t.member,t?.dealership);return l&&(n.offeredBy=l),n}buildSeller(t,n){return !t&&!n?null:n?{"@type":"AutoDealer","@id":`${this.urlLocationService.getOrigin()}/a/motors/dealer/${n.urlSlug}`,name:n?.name,url:n?.website,address:this.buildDealerAddress(n)}:{"@type":"Person","@id":`${this.urlLocationService.getOrigin()}/a/member/${t.memberId}`,name:t.nickname}}buildDealerAddress(t){return t?{"@type":"PostalAddress",streetAddress:t.address,addressLocality:t.suburb,addressRegion:t.city}:null}getAttributeValue(t,n){return t.find(C=>C.name===n)?.value??null}getNumericAttributeValue(t,n){let l=this.getAttributeValue(t,n);if(!l)return null;let C=parseInt(l.replace(/[^0-9]/g,""),10);return isNaN(C)?null:C}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();function lM(e,i){e&1&&_D(0,"tm-meta-json-ld-inline",0),e&2&&TD("json",i);}var Ms=(()=>{let i=class i{constructor(){this.motorsListingJsonLdServiceMapper=v(C_),this.listingItem=mq.required(),this.listingJsonSchema=bn(()=>{let t=this.listingItem();return this.motorsListingJsonLdServiceMapper.map(t)?.jsonLd});}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-listing-json-ld"]],inputs:{listingItem:[1,"listingItem"]},decls:1,vars:1,consts:[[3,"json"]],template:function(n,l){if(n&1&&JN(0,lM,1,1,"tm-meta-json-ld-inline",0),n&2){let C;XN((C=l.listingJsonSchema())?0:-1,C);}},dependencies:[a,d],encapsulation:2});let e=i;return e})();var cM={koruListing:S,sduiTemplate:void 0},dM="koru-motors-listing-details-wrapper",go=V$1(Y(cM),t("koru-motors-listing-details-wrapper"),T$1(),X$2((e,i=v(B))=>({fetchListing:C(o=>o.pipe(Xt(t=>!!t),th$1(()=>B$1(e,{koruListing:{isLoading:true},sduiTemplate:void 0})),lo$1(t=>i.getKoruListing(t,e.getCacheOnlyOnceFetchPolicy(dM)).pipe(Xt(n=>!n.isLoading),th$1(n=>B$1(e,pM(n)))))))})),J$1(e=>({listing:bn(()=>e.koruListing().item?.listing),isSduiEligible:bn(()=>!!e.sduiTemplate())})));function pM(e){return i=>{if(!e.item)return {koruListing:z(y({},i.koruListing),{isLoading:false,error:e.error})};let o=e.item.sduiListing?.templatedView;return {koruListing:{isLoading:e.isLoading,item:e.item,error:e.error},sduiTemplate:o?o$3(o,"FrEndListingDetailsTemplate"):void 0}}}function gM(e,i){e&1&&ND(0);}function _M(e,i){if(e&1&&(Ia$1(0,"a",1),iD(1,gM,1,0,"ng-container",3),bf$1()),e&2){let o=yx$1(),t=Tx$1(3);TD("href",o.component().linkUrl,Ry$1),X_$1(),TD("ngTemplateOutlet",t);}}function uM(e,i){e&1&&ND(0);}function fM(e,i){if(e&1&&(Ia$1(0,"a",2),iD(1,uM,1,0,"ng-container",3),bf$1()),e&2){let o=yx$1(),t=Tx$1(3);TD("compact",o.compact())("fullWidth",!o.compact())("tgStyle",o.tgButtonStyle())("href",o.component().linkUrl,Ry$1),X_$1(),TD("ngTemplateOutlet",t);}}function hM(e,i){e&1&&_D(0,"tg-icon-left",4),e&2&&TD("name",i);}function CM(e,i){if(e&1&&(JN(0,hM,1,1,"tg-icon-left",4),Qx$1(1)),e&2){let o,t=yx$1();XN((o=t.icon())?0:-1,o),X_$1(),Af$1(" ",t.component().text,`
24`);}}var v_=(()=>{let i=class i{constructor(){this.component=mq.required(),this.compact=mq(false),this.isLinkStyle=bn(()=>(this.component().style??gi.LINK)===gi.LINK),this.tgButtonStyle=bn(()=>this.component().style===gi.SECONDARY_BUTTON?Ke.secondary:Ke.primary),this.icon=bn(()=>r(this.component().icon));}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sdui-information-link"]],inputs:{component:[1,"component"],compact:[1,"compact"]},decls:4,vars:1,consts:[["content",""],["rel","noopener noreferrer","target","_blank",3,"href"],["tgButton2","","rel","noopener noreferrer","target","_blank",3,"compact","fullWidth","tgStyle","href"],[4,"ngTemplateOutlet"],["size","small","role","presentation",3,"name"]],template:function(n,l){n&1&&(JN(0,_M,2,2,"a",1)(1,fM,2,5,"a",2),iD(2,CM,2,2,"ng-template",null,0,wA)),n&2&&XN(l.isLinkStyle()?0:1);},dependencies:[IO,He,we],styles:["tm-sdui-information-link[_nghost-%COMP%]{display:block}"]});let e=i;return e})();function vM(e,i){e&1&&ND(0);}
24function yM(e,i){if(e&1&&(Ia$1(0,"a",1),iD(1,vM,1,0,"ng-container",3),bf$1()),e&2){let o=yx$1(),t=Tx$1(3);TD("routerLink",o.component().tva.relativePath),X_$1(),TD("ngTemplateOutlet",t);}}function xM(e,i){e&1&&ND(0);}function bM(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",4),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.navigate())}),iD(1,xM,1,0,"ng-container",3),bf$1();}if(e&2){let o=yx$1(),t=Tx$1(3);TD("compact",o.compact())("fullWidth",!o.compact())("tgStyle",o.tgButtonStyle()),X_$1(),TD("ngTemplateOutlet",t);}}function MM(e,i){e&1&&_D(0,"tg-icon-left",5),e&2&&TD("name",i);}function SM(e,i){if(e&1&&(JN(0,MM,1,1,"tg-icon-left",5),Qx$1(1)),e&2){let o,t=yx$1();XN((o=t.icon())?0:-1,o),X_$1(),Af$1(" ",t.component().displayText,`
25`);}}function wM(e){switch(e){case bi$1.PRIMARY_BUTTON:return Ke.primary;case bi$1.SECONDARY_BUTTON:return Ke.secondary;default:return Ke.primary}}var Ss=(()=>{let i=class i{constructor(){this.component=mq.required(),this.compact=mq(false),this.isLinkStyle=bn(()=>this.component().style===bi$1.LINK),this.tgButtonStyle=bn(()=>wM(this.component().style)),this.icon=bn(()=>r(this.component().icon)),this._router=v(ce$1);}navigate(){let t=this.component().tva.relativePath;t&&this._router.navigateByUrl(t);}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sdui-tva-link"]],inputs:{component:[1,"component"],compact:[1,"compact"]},decls:4,vars:1,consts:[["content",""],[3,"routerLink"],["tgButton2","","type","button",3,"compact","fullWidth","tgStyle"],[4,"ngTemplateOutlet"],["tgButton2","","type","button",3,"click","compact","fullWidth","tgStyle"],["size","small","role","presentation",3,"name"]],template:function(n,l){n&1&&(JN(0,yM,2,2,"a",1)(1,bM,2,4,"button",2),iD(2,SM,2,2,"ng-template",null,0,wA)),n&2&&XN(l.isLinkStyle()?0:1);},dependencies:[IO,He,we,rn],styles:["tm-sdui-tva-link[_nghost-%COMP%]{display:block}"]});let e=i;return e})();function kM(e,i){if(e&1&&(Ia$1(0,"h2",1),Qx$1(1),bf$1()),e&2){let o=yx$1();X_$1(),rE(o.component().title);}}function IM(e,i){e&1&&_D(0,"tm-sdui-tva-link",6),e&2&&TD("component",i)("compact",true);}function TM(e,i){e&1&&_D(0,"tm-sdui-information-link",6),e&2&&TD("component",i)("compact",true);}function OM(e,i){if(e&1&&(Ia$1(0,"div",5),JN(1,IM,1,2,"tm-sdui-tva-link",6),JN(2,TM,1,2,"tm-sdui-information-link",6),bf$1()),e&2){let o,t,n=yx$1();X_$1(),XN((o=n.component().showroomLink)?1:-1,o),X_$1(),XN((t=n.component().websiteLink)?2:-1,t);}}var y_=(()=>{let i=class i{constructor(){this.component=mq.required();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sdui-about-the-dealership"]],inputs:{component:[1,"component"]},decls:7,vars:3,consts:[[1,"tm-sdui-about-the-dealership"],[1,"tm-sdui-about-the-dealership__title"],[1,"tm-sdui-about-the-dealership__details"],[1,"tm-sdui-about-the-dealership__dealer"],[1,"tm-sdui-about-the-dealership__name","p-lead-copy"],[1,"tm-sdui-about-the-dealership__actions"],[3,"component","compact"]],template:function(n,l){n&1&&(Ia$1(0,"div",0),JN(1,kM,2,1,"h2",1),Ia$1(2,"div",2)(3,"div",3)(4,"h3",4),Qx$1(5),bf$1()(),JN(6,OM,3,2,"div",5),bf$1()()),n&2&&(X_$1(),XN(l.component().title?1:-1),X_$1(4),rE(l.component().name),X_$1(),XN(l.component().showroomLink||l.component().websiteLink?6:-1));},dependencies:[v_,Ss],styles:["tm-sdui-about-the-dealership[_nghost-%COMP%]{display:block}.tm-sdui-about-the-dealership[_ngcontent-%COMP%]{padding:24px}.tm-sdui-about-the-dealership__details[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start}.tm-sdui-about-the-dealership__dealer[_ngcontent-%COMP%], .tm-sdui-about-the-dealership__actions[_ngcontent-%COMP%]{flex:1 1 auto;margin-bottom:8px}@media(min-width:768px){.tm-sdui-about-the-dealership__dealer[_ngcontent-%COMP%], .tm-sdui-about-the-dealership__actions[_ngcontent-%COMP%]{flex:1 1 0}}@media(min-width:480px){.tm-sdui-about-the-dealership__dealer[_ngcontent-%COMP%]{margin-right:24px}}.tm-sdui-about-the-dealership__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]});let e=i;return e})();var x_=(()=>{let i=class i{constructor(){this.component=mq.required();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sdui-dealership-information"]],inputs:{component:[1,"component"]},decls:4,vars:1,consts:[[1,"tm-sdui-dealership-information"],[1,"l-container","tm-sdui-dealership-information__container"],[1,"tm-sdui-dealership-information__card"],[3,"components"]],template:function(n,l){n&1&&(Ia$
251(0,"div",0)(1,"div",1)(2,"div",2),_D(3,"tm-sdui-components-renderer",3),bf$1()()()),n&2&&(X_$1(3),TD("components",l.component().components));},dependencies:[k],styles:["tm-sdui-dealership-information[_nghost-%COMP%]{display:block}.tm-sdui-dealership-information[_ngcontent-%COMP%]{padding-top:48px;padding-bottom:48px;margin-bottom:32px;background-color:#f6f5f4}@media(max-width:767px){.tm-sdui-dealership-information[_ngcontent-%COMP%]{padding-bottom:0;background-color:transparent}}@media(max-width:767px){.tm-sdui-dealership-information__container[_ngcontent-%COMP%]{padding-right:0;padding-left:0}}.tm-sdui-dealership-information__card[_ngcontent-%COMP%]{overflow:hidden;width:100%;border-bottom:1px solid #e8e6e3;background:#fff;border-radius:8px}"]});let e=i;return e})();var b_={AboutTheDealershipComponent:y_,DealershipInformationComponent:x_,InformationBoxComponent:Ht$1};function EM(e,i){if(e&1&&_D(0,"tm-sdui-components-renderer",0)(1,"tm-sdui-components-renderer",0),e&2){yx$1();let o=nA(0);TD("components",o.titleBlock),X_$1(),TD("components",o.belowFold);}}var M_=(()=>{let i=class i{constructor(){this.store=v(go),this.contentSlots=bn(()=>this.store.sduiTemplate()?.contentSlots);}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-sdui-listing-details-page"]],features:[uA([{provide:x,useValue:new h$1(b_)}])],decls:2,vars:2,consts:[[3,"components"]],template:function(n,l){if(n&1&&(lE(0),JN(1,EM,2,2)),n&2){let C=tA(l.contentSlots());X_$1(),XN(C?1:-1);}},dependencies:[k],encapsulation:2});let e=i;return e})();var S_=(()=>{let i=class i{constructor(){this._sduiFormStore=v(W$3,{optional:true}),this.component=mq.required(),this.components=bn(()=>{let n=this.component().components.filter(C=>C.id!=null);return n.some(C=>Object.keys(C).length>2)?n:this._sduiFormStore?.componentsByRefs(n)??[]});}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sdui-commerce-box"]],inputs:{component:[1,"component"]},decls:3,vars:1,consts:[[1,"tm-sdui-commerce-box__card"],[1,"tm-sdui-commerce-box__section"],[3,"components"]],template:function(n,l){n&1&&(Ia$1(0,"tg-card",0)(1,"div",1),_D(2,"tm-sdui-components-renderer",2),bf$1()()),n&2&&(X_$1(2),TD("components",l.components()));},dependencies:[Q_,k],styles:["tm-sdui-commerce-box[_nghost-%COMP%]{display:block}.tm-sdui-commerce-box__card[_ngcontent-%COMP%]{overflow:hidden;border:1px solid #d7d5d2;background:#fff;border-radius:6px}.tm-sdui-commerce-box__section[_ngcontent-%COMP%]{padding:24px 16px 0}tm-sdui-commerce-box[_nghost-%COMP%]     tm-sdui-tva-link{margin-top:24px}"]});let e=i;return e})();var w_=(()=>{let i=class i{constructor(){this.component=mq.required();}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sdui-listing-price-summary"]],inputs:{component:[1,"component"]},decls:6,vars:4,consts:[[1,"tm-sdui-listing-price-summary"],[1,"tm-sdui-listing-price-summary__description"],[1,"tm-sdui-listing-price-summary__amount"]],template:function(n,l){n&1&&(Tf$1(0,"div",0)(1,"span",1),Qx$1(2),_f$1(),Tf$1(3,"span",2),Qx$1(4),yA(5,"tgCurrency"),_f$1()()),n&2&&(X_$1(2),rE(l.component().total.description),X_$1(2),rE(DA$1(5,2,l.component().total.amount.amount)));},dependencies:[_c,mr],styles:["tm-sdui-listing-price-summary[_nghost-%COMP%]{display:block;width:100%}.tm-sdui-listing-price-summary[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:16px;margin-bottom:8px;line-height:32px}.tm-sdui-listing-price-summary__description[_ngcontent-%COMP%]{width:100%;color:#65605d;font-size:1.25rem}.tm-sdui-listing-price-summary__amount[_ngcontent-%COMP%]{color:#44413d;font-size:2rem;font-weight:700;text-align:right}"]});let e=i;return e})();function PM(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-sdui-additional-info-modal",7),kD("closed",function(){Xh$1(o);let n=yx$1();return eg$1(n.shouldShowModal.set(false))}),bf$1();}if(e&2){let o=yx$1(),t=nA(8);TD("component",t)("isOpen",o.shouldShowModal());}}var k_=(()=>{let i=class i{constructor(){this._sduiFormStore=v(W$3,{optional:true}),this.component=mq.required(),this.shouldShowModal=hn(false),this.roadCostInfo=bn(()=>{let t=this.component().roadCostInfo;if(t)return "triggerText"in t||"additionalInfoBody"in t?t:this._sduiFormStore?.componentById(t.id)});}}
25;i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-sdui-motors-on-road-costs"]],inputs:{component:[1,"component"]},decls:10,vars:5,consts:[[1,"tm-sdui-motors-on-road-costs"],[1,"tm-sdui-motors-on-road-costs__header-icon-row"],[1,"tm-sdui-motors-on-road-costs__header"],["type","button",1,"tm-sdui-motors-on-road-costs__info-icon",3,"click"],["size","small","name","basic-info-framed","role","presentation"],[1,"tm-sdui-motors-on-road-costs__text"],[3,"component","isOpen"],[3,"closed","component","isOpen"]],template:function(n,l){if(n&1&&(Ia$1(0,"div",0)(1,"div",1)(2,"span",2),Qx$1(3),bf$1(),Ia$1(4,"button",3),kD("click",function(){return l.shouldShowModal.set(true)}),_D(5,"tg-icon",4),bf$1()(),Ia$1(6,"span",5),Qx$1(7),bf$1()(),lE(8),JN(9,PM,1,2,"tm-sdui-additional-info-modal",6)),n&2){X_$1(3),rE(l.component().header),X_$1(),bD("aria-label",l.component().additionalInfoTooltip),X_$1(3),rE(l.component().text),X_$1();let C=tA(l.roadCostInfo());X_$1(),XN(C?9:-1);}},dependencies:[K,we],styles:["tm-sdui-motors-on-road-costs[_nghost-%COMP%]{display:block}.tm-sdui-motors-on-road-costs[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;margin-bottom:16px}.tm-sdui-motors-on-road-costs__header-icon-row[_ngcontent-%COMP%]{display:flex}.tm-sdui-motors-on-road-costs__header[_ngcontent-%COMP%], .tm-sdui-motors-on-road-costs__text[_ngcontent-%COMP%]{color:#65605d}.tm-sdui-motors-on-road-costs__info-icon[_ngcontent-%COMP%]{background:none;border:none;padding:0;cursor:pointer;display:inline-flex;align-items:center;margin-top:4px;margin-left:4px;color:#007acd}"]});let e=i;return e})();var I_={CommerceBoxComponent:S_,ListingPriceSummaryComponent:w_,MotorsListingOnRoadCostsComponent:k_,TVALinkComponent:Ss};var DM={steps:S,hasCategory:false,submitState:S,hasSubmitted:false,visitedFormControls:new Set,stepId:void 0},T_=V$1(t("motors-koru-private-listing"),Y(DM),X$2(e=>({categoryHasLoaded(){B$1(e,{hasCategory:true});},formControlUILoaded(i){e.visitedFormControls().has(i)||B$1(e,{visitedFormControls:new Set([...e.visitedFormControls(),i])});},syncStepIdFromRoute:C(i=>i)})));function O_(e,i){return e===Ii.CLOSED?i?"This listing closed and did not sell":"This listing closed":e===Ii.WITHDRAWN?i?"You have withdrawn or sold this listing":"The seller has withdrawn or sold this listing":""}var LM=()=>({"=1":"1 Watchlist",other:"# Watchlists"}),BM=()=>({"=1":"1 View",other:"# Views"}),FM=()=>({"=1":"1 Bid",other:"# Bids"});function VM(e,i){if(e&1&&(Ia$1(0,"p",5)(1,"small"),Qx$1(2),bf$1()()),e&2){let o=yx$1();X_$1(2),rE(o.subtitle());}}function AM(e,i){if(e&1&&(Ia$1(0,"li",7),_D(1,"tg-icon",15),Qx$1(2),yA(3,"i18nPlural"),bf$1()),e&2){let o=yx$1();X_$1(2),Af$1(" ",EA(3,1,o.bidCount(),fA(4,FM))," ");}}function $M(e,i){e&1&&(Ia$1(0,"li",11)(1,"tg-rack-item-primary"),Qx$1(2,"Asking price"),bf$1(),Ia$1(3,"tg-rack-item-secondary"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2&&(X_$1(4),rE(DA$1(5,1,i)));}function RM(e,i){e&1&&(Ia$1(0,"li",11)(1,"tg-rack-item-primary"),Qx$1(2,"Start price"),bf$1(),Ia$1(3,"tg-rack-item-secondary"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2&&(X_$1(4),rE(DA$1(5,1,i)));}function NM(e,i){e&1&&(Qx$1(0),yA(1,"tgCurrency")),e&2&&Af$1(" ",DA$1(1,1,i)," ");}function jM(e,i){e&1&&Qx$1(0," No reserve ");}function UM(e,i){if(e&1&&(Ia$1(0,"li",11)(1,"tg-rack-item-primary"),Qx$1(2,"Reserve price"),bf$1(),Ia$1(3,"tg-rack-item-secondary"),JN(4,NM,2,3)(5,jM,1,0),bf$1()()),e&2){let o,t=yx$1();X_$1(4),XN((o=t.reservePrice())?4:5,o);}}function WM(e,i){e&1&&(Ia$1(0,"li",11)(1,"tg-rack-item-primary"),Qx$1(2,"Buy Now price"),bf$1(),Ia$1(3,"tg-rack-item-secondary"),Qx$1(4),yA(5,"tgCurrency"),bf$1()()),e&2&&(X_$1(4),rE(DA$1(5,1,i)));}function qM(e,i){if(e&1&&(Qx$1(0),yA(1,"tgCurrency")),e&2){let o=yx$1(2);Af$1(" ",DA$1(1,1,o.currentBidAmount())," ");}}function HM(e,i){e&1&&Qx$1(0," No bids ");}function zM(e,i){if(e&1&&(Ia$1(0,"li",11)(1,"tg-rack-item-primary",16),Qx$1(2," Current Bid "),bf$1(),Ia$1(3,"tg-rack-item-secondary",16),JN(4,qM,2,3)(5,HM,1,0),bf$1()()),e&2){let o=yx$1();X_$1(4),XN(o.bidCount()>0?4:5);}}
25function GM(e,i){if(e&1&&(Ia$1(0,"a",13),_D(1,"tg-icon",17),Qx$1(2," Edit listing "),bf$1()),e&2){let o=yx$1();TD("routerLink",o.editRouterLink());}}function KM(e,i){if(e&1){let o=dx$1();Ia$1(0,"tm-koru-remove-leading-bid-modal",21),kD("close",function(){Xh$1(o);let n=yx$1(2);return eg$1(n.closeRemoveLeadingBidModal())}),bf$1();}if(e&2){let o=yx$1(2);TD("bidToRemoveViewModel",o.bidToRemoveViewModel());}}function ZM(e,i){if(e&1){let o=dx$1();Ia$1(0,"button",18),kD("click",function(){Xh$1(o);let n=yx$1();return eg$1(n.openRemoveLeadingBidModal())}),_D(1,"tg-icon",19),Qx$1(2," Remove leading bid "),bf$1(),JN(3,KM,1,1,"tm-koru-remove-leading-bid-modal",20);}if(e&2){let o=yx$1();X_$1(3),XN(o.showRemoveLeadingBidModal()?3:-1);}}function YM(e,i){if(e&1){let o=dx$1();Ia$1(0,"a",22),kD("click",function(n){Xh$1(o);let l=yx$1();return eg$1(l.openWithdrawForm(n))}),_D(1,"tg-icon",23),Qx$1(2," Withdraw or Sold "),bf$1();}if(e&2){let o=yx$1();TD("href",o.withdrawHref(),Ry$1);}}var E_=[{outlets:{modal:[t$1]}}],ws=(()=>{let i=class i{constructor(){this._locationStrategy=v(no$1),this._router=v(ce$1),this.viewModel=mq.required(),this.header=mq.required(),this.subtitle=mq.required(),this.showRemoveLeadingBidModal=hn(false),this.watchlistCount=bn(()=>this.viewModel().watchlistCount??0),this.viewCount=bn(()=>this.viewModel().viewCount??0),this.bidCount=bn(()=>this.viewModel().bids?.length??0),this.isAuction=bn(()=>{let t=this.viewModel().method?.value;return t===Aa$2.Auction||t===Aa$2.AuctionOrBuyNow}),this.startPrice=bn(()=>this.viewModel().startPrice?.numValue),this.reservePrice=bn(()=>this.viewModel().reservePrice?.numValue),this.buyNowPrice=bn(()=>this.viewModel().buyNowPrice?.numValue),this.currentBidAmount=bn(()=>this.viewModel().currentBidAmount??0),this.canEdit=bn(()=>!!this.viewModel().editAction?.isAllowed&&!!this.viewModel().editAction?.isValid),this.canRemoveLeadingBid=bn(()=>{let t=this.viewModel().removeHighestBid;return !!t?.isAllowed&&!!t?.isValid&&!!this.bidToRemoveViewModel()}),this.bidToRemoveViewModel=bn(()=>{let t=this.viewModel().removeHighestBid?.currentHighestBid;if(t?.bidId)return {bidId:t.bidId,listingId:this.viewModel().listingId,bidAmount:t.amount?.toString(),bidDate:t.createdAt,bidder:t.bidderId&&t.bidderUsername!=null?{memberId:+t.bidderId,nickname:t.bidderUsername,feedbackCount:t.bidderFeedbackRating??0}:null}}),this.canWithdraw=bn(()=>!!this.viewModel().withdrawAction?.isAllowed&&!!this.viewModel().withdrawAction?.isValid),this.editRouterLink=bn(()=>["/motors/edit-listing",this.viewModel().listingId]),this.withdrawHref=bn(()=>this._locationStrategy.prepareExternalUrl(this._router.createUrlTree(E_).toString()));}openWithdrawForm(t){t.preventDefault(),this._router.navigate(E_,{queryParamsHandling:"preserve"});}openRemoveLeadingBidModal(){this.showRemoveLeadingBidModal.set(true);}closeRemoveLeadingBidModal(){this.showRemoveLeadingBidModal.set(false);}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-koru-motors-seller-options"]],inputs:{viewModel:[1,"viewM
25odel"],header:[1,"header"],subtitle:[1,"subtitle"]},decls:27,vars:21,consts:[["aria-labelledby","motors-seller-options-heading"],["inverse",""],[1,"tm-koru-motors-seller-options__layout"],[1,"tm-koru-motors-seller-options__main"],["id","motors-seller-options-heading"],[1,"p-subtitle"],["tgList2","",1,"tm-koru-motors-seller-options__listing-info"],[1,"tm-koru-motors-seller-options__listing-info-list-item"],["name","binoculars","role","presentation"],["name","eye","role","presentation"],["tgRack","",1,"tm-koru-motors-seller-options__pricing-list"],["ruled","","tgRackItem",""],[1,"tm-koru-motors-seller-options__actions"],["tgButton2","","transparent","","compact","",1,"tm-koru-motors-seller-options__action",3,"routerLink"],["tgButton2","","transparent","","compact","",1,"tm-koru-motors-seller-options__action","tm-koru-motors-seller-options__action--withdraw",3,"href"],["name","flag","role","presentation"],[1,"tm-koru-motors-seller-options__pricing-emphasis"],["name","edit","role","presentation",1,"tm-koru-motors-seller-options__action-icon"],["type","button","tgButton2","","transparent","","compact","",1,"tm-koru-motors-seller-options__action",3,"click"],["name","basic-cross","role","presentation",1,"tm-koru-motors-seller-options__action-icon"],[3,"bidToRemoveViewModel"],[3,"close","bidToRemoveViewModel"],["tgButton2","","transparent","","compact","",1,"tm-koru-motors-seller-options__action","tm-koru-motors-seller-options__action--withdraw",3,"click","href"],["name","tag-tick","role","presentation",1,"tm-koru-motors-seller-options__action-icon","tm-koru-motors-seller-options__action-icon--withdraw"]],template:function(n,l){if(n&1&&(Ia$1(0,"section",0)(1,"tg-box2",1)(2,"div",2)(3,"div",3)(4,"h2",4),Qx$1(5),bf$1(),JN(6,VM,3,1,"p",5),Ia$1(7,"ul",6),JN(8,AM,4,5,"li",7),Ia$1(9,"li",7),_D(10,"tg-icon",8),Qx$1(11),yA(12,"i18nPlural"),bf$1(),Ia$1(13,"li",7),_D(14,"tg-icon",9),Qx$1(15),yA(16,"i18nPlural"),bf$1()(),Ia$1(17,"ul",10),JN(18,$M,6,3,"li",11),JN(19,RM,6,3,"li",11),JN(20,UM,6,1,"li",11),JN(21,WM,6,3,"li",11),JN(22,zM,6,1,"li",11),bf$1()(),Ia$1(23,"div",12),JN(24,GM,3,1,"a",13),JN(25,ZM,4,1),JN(26,YM,3,1,"a",14),bf$1()()()()),n&2){let C,I,j;X_$1(5),rE(l.header()),X_$1(),XN(l.subtitle()?6:-1),X_$1(2),XN(l.isAuction()?8:-1),X_$1(3),Af$1(" ",EA(12,13,l.watchlistCount(),fA(19,LM))," "),X_$1(4),Af$1(" ",EA(16,16,l.viewCount(),fA(20,BM))," "),X_$1(3),XN((C=l.viewModel().askingPrice?.numValue)?18:-1,C),X_$1(),XN((I=l.startPrice())?19:-1,I),X_$1(),XN(l.isAuction()?20:-1),X_$1(),XN((j=l.buyNowPrice())?21:-1,j),X_$1(),XN(l.isAuction()?22:-1),X_$1(2),XN(l.canEdit()?24:-1),X_$1(),XN(l.canRemoveLeadingBid()?25:-1),X_$1(),XN(l.canWithdraw()?26:-1);}},dependencies:[nu$1,rn,Ec,z_$1,He,we,Ob$1,Ar,zc,zo,Hc,db$1,OO,mr],styles:[".tm-koru-motors-seller-options__layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}@media(min-width:768px){.tm-koru-motors-seller-options__layout[_ngcontent-%COMP%]{align-items:end;gap:16px;grid-template-columns:2fr 1fr}}.tm-koru-motors-seller-options__listing-info[_ngcontent-%COMP%]{padding-bottom:16px}.tm-koru-motors-seller-options__listing-info-list-item[_ngcontent-%COMP%]{display:inline-block;margin-right:24px}.tm-koru-motors-seller-options__listing-info-list-item[_ngcontent-%COMP%]   tg-icon[_ngcontent-%COMP%]{margin-right:4px}.tm-koru-motors-seller-options__pricing-list[_ngcontent-%COMP%]{margin-bottom:8px}.tm-koru-motors-seller-options__pricing-emphasis[_ngcontent-%COMP%]{font-weight:500}.tm-koru-motors-seller-options__actions[_ngcontent-%COMP%]{margin-top:24px}.tm-koru-motors-seller-options__action[_ngcontent-%COMP%]{display:block;margin-bottom:0;margin-left:-8px;text-align:left}.tm-koru-motors-seller-options__action--withdraw[_ngcontent-%COMP%]{color:#c82630}.tm-koru-motors-seller-options__action--%NS%withdraw[_ngcontent-%COMP%]:hover, .tm-koru-motors-seller-options__action--%NS%withdraw[_ngcontent-%COMP%]:focus, .tm-koru-motors-seller-options__action--%NS%withdraw[_ngcontent-%COMP%]:active, .tm-koru-motors-seller-options__action--%NS%withdraw[_ngcontent-%COMP%]:visited{color:#c82630}.tm-koru-motors-seller-options__action-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin-right:4px;color:#007acd}.tm-koru-motors-seller-options__action-icon--withdraw[_ngcontent-%COMP%]{color:#c82630}"]});let e=i;return e})();var JM=()=>({}),XM=()=>[];function eS(e,i){if(e&1&&(_D(0,"tm-breadcrumbs",2),yA(1,"async"),yA(2,"async")),e&2){let o=yx$1();TD("breadcrumbs",DA$1(1,2,o.breadcrumbs$))("mediaSize",DA$1(2,4,o.mediaSize$));}}
25function tS(e,i){if(e&1&&(Ia$1(0,"div",3),_D(1,"tm-koru-listing-finished-banner",10),yA(2,"async"),yA(3,"async"),yA(4,"async"),yA(5,"async"),bf$1()),e&2){let o=yx$1(),t=nA(1),n=nA(3),l=nA(5);X_$1(),TD("statusMessage",DA$1(2,8,o.statusMessage$)??"")("relistBaseRoute","/motors/listing")("listingStatus",DA$1(3,10,o.listingStatus$))("isMyListing",l)("relistedAs",DA$1(4,12,o.relistedAs$))("listingActionMetadata",DA$1(5,14,o.listingActionMetadata$)?.item??fA(16,JM))("listing",t?.item)("imageUrl",n?.item?.listing?.contentViews?.listingDetailsPageContentCard?.photos?.[0]?.urls?.large);}}function iS(e,i){if(e&1&&_D(0,"tm-koru-motors-seller-options",11),e&2){let o=yx$1(2);TD("viewModel",i)("header",o.header)("subtitle",o.subtitle);}}function nS(e,i){if(e&1&&(JN(0,iS,1,3,"tm-koru-motors-seller-options",11),yA(1,"async")),e&2){let o,t=yx$1(2);XN((o=DA$1(1,1,t.sellerOptionsViewModel$))?0:-1,o);}}function oS(e,i){if(e&1&&JN(0,nS,2,3),e&2){yx$1();let o=nA(5);XN(o?0:-1);}}function rS(e,i){if(e&1&&_D(0,"tm-koru-relist-action",12),e&2){let o=yx$1(),t=yx$1();TD("listing",o?.listing)("listingActions",i)("businessLine",t.BusinessLineEnum.motors);}}function aS(e,i){if(e&1&&(Ia$1(0,"p",17),Qx$1(1),bf$1()),e&2){let o=yx$1();X_$1(),Af$1(" ",o?.subtitle," ");}}function sS(e,i){if(e&1&&(Ia$1(0,"div",13)(1,"h1",13),Qx$1(2),bf$1(),JN(3,aS,2,1,"p",17),bf$1()),e&2){let o=i;X_$1(),zD("tm-motors-koru-buyer-options__ghost-block",!o?.title),X_$1(),Af$1(" ",o?.title||"\xA0"," "),X_$1(),XN(o?.subtitle?3:-1);}}function lS(e,i){if(e&1&&_D(0,"tm-koru-closing-datetime",19),e&2){let o=yx$1(2);TD("endDateString",o?.listing?.endDate)("listingStatus",o?.listing?.contentViews?.listingDetailsPageContentCard?.listingStatus);}}function mS(e,i){if(e&1&&(Ia$1(0,"tg-rack",14)(1,"tg-rack-item")(2,"tg-rack-item-prefix"),_D(3,"tg-icon",18),bf$1(),Ia$1(4,"tg-rack-item-primary"),JN(5,lS,1,2,"tm-koru-closing-datetime",19),bf$1()()()),e&2){let o=i,t=yx$1(),n=yx$1();X_$1(3),zD("tm-motors-koru-buyer-options__closing-time--closing-soon",o===n.ClosingStatus.CLOSING_SOON),X_$1(2),XN(t&&o!==n.ClosingStatus.CLOSING?5:-1);}}function cS(e,i){if(e&1&&(_D(0,"tm-koru-listing-watchlist",20),yA(1,"async")),e&2){let o=yx$1(3);TD("apiListing",DA$1(1,1,o.apiListing$)?.item);}}function dS(e,i){if(e&1&&(JN(0,cS,2,3,"tm-koru-listing-watchlist",20),yA(1,"async")),e&2){let o=yx$1(2);XN(DA$1(1,1,o.watchListStatus$)?0:-1);}}function pS(e,i){if(e&1&&(JN(0,rS,1,3,"tm-koru-relist-action",12),yA(1,"async"),JN(2,sS,4,4,"div",13),JN(3,mS,6,3,"tg-rack",14),yA(4,"async"),JN(5,dS,2,3),Ia$1(6,"div",15),_D(7,"tm-sdui-components-renderer",16),yA(8,"async"),bf$1()),e&2){let o,t,n,l=i,C=yx$1();XN((o=DA$1(1,5,C.listingActionMetadata$)?.item)?0:-1,o),X_$1(2),XN((t=l?.listing?.contentViews?.listingDetailsPageContentCard)?2:-1,t),X_$1(),XN((n=DA$1(4,7,C.closingStatus$)?.item)?3:-1,n),X_$1(2),XN(l?.listing?.contentViews?.listingDetailsPageContentCard?.listingStatus===C.listingStatusEnum.LIVE?5:-1),X_$1(2),TD("components",DA$1(8,9,C.commerceBoxSduiComponents$)??fA(11,XM));}}function gS(e,i){if(e&1&&_D(0,"tm-koru-listing-attributes-rack",21),e&2){let o=yx$1();TD("itemDetailsAttributes",o?.listing?.contentViews?.listingDetailsPageContentCard?.itemDetailsAttributes);}}function _S(e,i){if(e&1&&(Ia$1(0,"div",23),_D(1,"tm-koru-listing-shipping-details",25),bf$1()),e&2){let o=i;X_$1(),TD("deliveryOptions",o?.deliveryOptions)("region",o?.region)("suburb",o?.suburb);}}function uS(e,i){if(e&1&&(JN(0,gS,1,1,"tm-koru-listing-attributes-rack",21),_D(1,"tm-koru-listing-description",22),JN(2,_S,2,3,"div",23),yA(3,"async"),_D(4,"tm-koru-listing-q-and-a",24)),e&2){let o,t=i,n=yx$1(),l=nA(5);XN(t?.listing?.contentViews?.listingDetailsPageContentCard?.itemDetailsAttributes.length>0?0:-1),X_$1(),TD("description$",n.description$),X_$1(),XN((o=DA$1(3,6,n.shippingDetailData$))?2:-1,o),X_$1(2),TD("listing",t)("isMyListing",l)("isLive",t?.listing?.contentViews?.listingDetailsPageContentCard?.listingStatus===n.listingStatusEnum.LIVE);}}function fS(e,i){if(e&1&&(_D(0,"tm-koru-listing-seller-details",26),yA(1,"async")),e&2){let o=yx$1(2),t=nA(1);TD("listing",t)("enquiryModalPath",DA$1(1,2,o.enquiryTVAPath$));}}function hS(e,i){if(e&1&&(JN(0,fS,2,4,"tm-koru-listing-seller-details",26),Ia$1(1,"div",27),_D(2,"tm-share-listing-link",28)(3,"tm-community-watch",29),bf$1()),e&2){yx$1();let o=nA(1);XN(o.item?.member?0:-1),X_$1(2),TD("listing",o.item),X_$1(),TD("listingId",o.item?.listingId);}}var P_=(()=>{let i=class i{constructor(){this.listingStatusEnum=Ii,this.ClosingStatus=jn,this.BusinessLineEnum=s$1,this._listingFacade=v(pe),this._koruListingDetailsFacade=v(B),this._routerFacade=v(D),this._koruListingService=v(Cp),this._mediaSizeFacade=v(G),this._listingBreadcrumbsService=v(d$2);}ngOnInit(){let t=this._routerFacade.selectCurrentData().pipe(Fe(I=>I.areaOfSite===s$3.motors&&(I.feature.listingDetails??false)));
25this.apiListing$=this._listingFacade.getCurrentListing().pipe(o$1(t),o()),this.koruListing$=this._listingFacade.getCurrentListingId().pipe(lo$1(I=>this._koruListingDetailsFacade.getKoruListing(`${I}`)),o());let n=this.koruListing$.pipe(Xt(I=>!!I.item),Fe(I=>I?.item?.listing?.lister)),l=this.koruListing$.pipe(e(I=>I.listing?.contentViews.listingDetailsPageContentCard?.listingStatus));this.photos$=this.koruListing$.pipe(e(({listing:I})=>I?.contentViews?.listingDetailsPageContentCard?.photos?.map(j=>({value:j.urls})))),this.isMyListing$=n.pipe(lo$1(I=>this._koruListingService.isMyListing(I)),o()),this.watchListStatus$=wC$1([this.isMyListing$,l]).pipe(Xt(([I,j])=>!!j.item),Fe(([I,j])=>this._koruListingService.canWatchlist(I,j.item))),this.listingActionMetadata$=this.koruListing$.pipe(e(I=>I.listing?.actionMetadata)),this.description$=this.koruListing$.pipe(e(I=>I?.listing?.contentViews.listingDetailsPageContentCard?.description)),this.listingCard$=this.koruListing$.pipe(Xt(r$1),Fe(I=>{let j=I.item.listing?.contentViews.listingDetailsPageContentCard;if(j?.__typename==="MotorsLdpListingContentCardV1")return y({__typename:"MotorsLdpListingContentCardV1"},j)})),this.listingStatus$=this.listingCard$.pipe(Fe(I=>I?.listingStatus)),this.isNotLive$=this.listingStatus$.pipe(Fe(I=>I===Ii.CLOSED||I===Ii.WITHDRAWN)),this.relistedAs$=this.listingCard$.pipe(Fe(I=>I?.relistedAs??null)),this.statusMessage$=wC$1([this.listingStatus$,this.isMyListing$]).pipe(Fe(([I,j])=>O_(I,j))),this.closingStatus$=this.koruListing$.pipe(e(I=>this._koruListingService.isClosingSoon(I.listing?.endDate))),this.commerceBoxSduiComponents$=this.listingCard$.pipe(Xt(Boolean),Fe(I=>I.sduiCommerceBox?[I.sduiCommerceBox]:[])),this.enquiryTVAPath$=this.listingCard$.pipe(Xt(Boolean),Fe(I=>I.enquiryButton?.tva?.relativePath)),this.isMobileWebView$=this._routerFacade.selectCurrentQueryParams().pipe(Fe(I=>!!I.from)),this.mediaSize$=this._mediaSizeFacade.getMediaSize();let C=this.apiListing$.pipe(Fe(I=>I.item),Xt(I=>!!I));this.breadcrumbs$=this._listingBreadcrumbsService.getBreadcrumbs(C),this.deliveryOptions$=this.koruListing$.pipe(ch$1(this.apiListing$),Fe(([I,j])=>j.item?.isClassified?null:I.item?.listing?.contentViews?.listingDetailsPageContentCard?.deliveryOptions),Xt(I=>I?.__typename==="DeliveryOptionsAttributeValue")),this.member$=this.apiListing$.pipe(Fe(I=>I.item?.member),Xt(I=>!!I)),this.shippingDetailData$=this.deliveryOptions$.pipe(ch$1(this.member$),Fe(([I,j])=>({deliveryOptions:I,suburb:j.suburb??"",region:j.region??""}))),this.motorsManagementCard$=this.koruListing$.pipe(e(I=>{let j=I.listing?.contentViews?.listingManagementContentCard;return j?.__typename!=="MotorsSellerManagementContentCardV1"?null:{header:j.header,subtitle:j.subtitle??""}})),this.sellerOptionsViewModel$=this.koruListing$.pipe(ch$1(this.apiListing$),Fe(([I,j])=>this._koruListingService.toSellerOptionsViewModel(I,j)));}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-motors-koru-listing-details"]],standalone:false,features:[uA([T_])],decls:23,vars:24,consts:[[1,"l-container","tm-motors-koru-listing__wrapper"],[1,"tm-motors-koru-listing__breadcrumbs"],[3,"breadcrumbs","mediaSize"],[1,"tm-motors-koru-listing__finished-banner"],[1,"tm-motors-koru-listing__seller-options"],[1,"tm-motors-koru-listing__main"],[1,"tm-motors-koru-listing__images",3,"photos$","apiListing$","watchListStatus$"],[1,"tm-motors-buyer-options__sidebar"],[1,"tm-motors-koru-listing__body"],[1,"tm-motors-koru-listing__body-seller"],[3,"statusMessage","relistBaseRoute","listingStatus","isMyListing","relistedAs","listingActionMetadata","listing","imageUrl"],[3,"viewModel","header","subtitle"],[3,"listing","listingActions","businessLine"],[1,"tm-motors-koru-listing__title"],[1,"tm-motors-koru-buyer-options__closing-time-rack"],[1,"tm-motors-koru-listing__commerce-box"],[3,"components"],[1,"tm-motors-koru-listing__sub-title"],["name","clock","role","presentation"],[3,"endDateString","listingStatus"],[3,"apiListing"],["displayColorStamp","true",1,"tm-motors-koru-listing-body__attributes-rack",3,"itemDetailsAttributes"],[3,"de
25scription$"],[1,"tm-motors-koru-listing__shipping"],[3,"listing","isMyListing","isLive"],[3,"deliveryOptions","region","suburb"],["id","seller-details-section",1,"tm-motors-koru-listing__seller-details",3,"listing","enquiryModalPath"],[1,"tm-motors-koru-listing__share-listing-container"],[3,"listing"],[3,"listingId"]],template:function(n,l){if(n&1&&(Ia$1(0,"div",0),lE(1),yA(2,"async"),lE(3),yA(4,"async"),lE(5),yA(6,"async"),Ia$1(7,"div",1),JN(8,eS,3,6,"tm-breadcrumbs",2),yA(9,"async"),bf$1(),JN(10,tS,6,17,"div",3),yA(11,"async"),Ia$1(12,"div",4),JN(13,oS,1,1),yA(14,"async"),bf$1(),Ia$1(15,"div",5),_D(16,"tm-koru-listing-photos",6),Ia$1(17,"div",7),JN(18,pS,9,12),bf$1(),Ia$1(19,"div",8),JN(20,uS,5,8),Ia$1(21,"div",9),JN(22,hS,4,3),bf$1()()()()),n&2){let C,I,j;X_$1();let _e=tA(DA$1(2,9,l.apiListing$));X_$1(2);let he=tA(DA$1(4,12,l.koruListing$));X_$1(2),tA(DA$1(6,15,l.isMyListing$)??false),X_$1(3),XN(DA$1(9,18,l.isMobileWebView$)?-1:8),X_$1(2),XN(DA$1(11,20,l.isNotLive$)?10:-1),X_$1(3),XN((C=DA$1(14,22,l.motorsManagementCard$)?.item)?13:-1,C),X_$1(3),TD("photos$",l.photos$)("apiListing$",l.apiListing$)("watchListStatus$",l.watchListStatus$),X_$1(2),XN((I=he?.item)?18:-1,I),X_$1(2),XN((j=he?.item)?20:-1,j),X_$1(2),XN(_e?22:-1);}},dependencies:[k,Ep$1,we,zc,zo,Gc,Hc,hi$1,wd,Pd,jp$1,Fp$1,Ap,Bd,$,jt,ut$1,Ur,ws,mu$1,bO],styles:['tm-motors-koru-listing-details[_nghost-%COMP%]{display:block}@media(min-width:768px){.tm-motors-koru-listing__wrapper[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;flex-direction:row-reverse;margin-top:12px}}@media(min-width:768px){.tm-motors-koru-listing__main[_ngcontent-%COMP%]{display:grid;width:100%;grid-template:"images sidebar" "body sidebar" "body-seller .";gap:16px;grid-template-columns:2fr 1fr}}.tm-motors-koru-listing__images[_ngcontent-%COMP%]{grid-area:images}.tm-motors-buyer-options__sidebar[_ngcontent-%COMP%]{grid-area:sidebar}@media(max-width:767px){.tm-motors-buyer-options__sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column}}@media(max-width:767px){.tm-motors-koru-listing__title[_ngcontent-%COMP%], .tm-motors-koru-listing__commerce-box[_ngcontent-%COMP%]{order:-1}}.tm-motors-koru-listing__shipping[_ngcontent-%COMP%]{margin-top:16px}.tm-motors-koru-listing__title[_ngcontent-%COMP%]{margin-bottom:16px}.tm-motors-koru-listing__body-seller[_ngcontent-%COMP%]{grid-area:body-seller}.tm-motors-koru-listing__share-listing-container[_ngcontent-%COMP%]{margin-bottom:24px;text-align:center}@media(min-width:768px){.tm-motors-koru-listing__share-listing-container[_ngcontent-%COMP%]{margin-bottom:56px}}.tm-motors-koru-listing__breadcrumbs[_ngcontent-%COMP%]{height:2em;padding-bottom:3em}@media(min-width:768px){.tm-motors-koru-listing__breadcrumbs[_ngcontent-%COMP%]{flex:0 0 100%}}@media(min-width:768px){.tm-motors-koru-listing__finished-banner[_ngcontent-%COMP%]{flex:0 0 100%}}@media(min-width:768px){.tm-motors-koru-listing__seller-options[_ngcontent-%COMP%]{flex:0 0 100%}}']});let e$1=i;return e$1})();var ks=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({providers:[{provide:x,useValue:new h$1(I_)}],imports:[VO,fu$1,we,Ar,Ri$1,Td,Dd,_u,vu,Cu$1,Zn,Nd,_t$1,Gt$1,R$1,Ur,ws,ku]});let e=i;return e})();function vS(e,i){if(e&1&&(Ia$1(0,"tg-info-box",0),Qx$1(1),bf$1()),e&2){let o=yx$1();TD("tgStyle",o.StyleEnum.danger),X_$1(),rE(i.errorMessage||"Whoops! Something went wrong. Please refresh and try again.");}}function yS(e,i){e&1&&_D(0,"tm-loading-spinner");}function xS(e,i){e&1&&_D(0,"tm-motors-sdui-listing-details-page");}function bS(e,i){e&1&&ND(0,1),e&2&&TD("ngTemplateOutlet",i);}function MS(e,i){e&1&&_D(0,"tm-motors-koru-listing-details");}var Is=(()=>{let i=class i{constructor(){this.store=v(go),this.StyleEnum=Ke,this._listingId=F(v(pe).getCurrentListingId().pipe(Fe(t=>`${t}`)),{initialValue:null}),this.legacyFallback=mq(),this.hasLegacyListing=bn(()=>!!this.store.listing()),this.isSduiEligible=bn(()=>this.store.isSduiEligible()),this.isLoading=bn(()=>this.store.koruListing().isLoading),this.error=bn(()=>this.store.koruListing().error),this.store.fetchListing(this._listingId);}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=jM$1({type:i,selectors:[["tm-koru-motors-listing-details-wrapper"]],inputs:{legacyFallback:[1,"legacyFallback"]},features:[uA([go])],decls:5,vars:1,consts:[[3,"tgStyle"],[3,"ngTemplateOutlet"]],template:function(n,l){if(n&1&&JN(0,vS,2,2,"tg-info-box",0)(1,yS,1,0,"tm-loading-spinner")(2,xS,1,0,"tm-motors-sdui-listing-details-page")(3,bS,1,1,"ng-container",1)(4,MS,1,0,"tm-motors-koru-listing-details"),n&2){let C;XN((C=!l.legacyFallback()&&l.error())?0:l.isLoading()?1:l.isSduiEligible()?2:(C=l.legacyFallback())?3:l.hasLegacyListing()?4:-1,C);}},dependencies:[ks,P_,M_,d$1,Vc,Tr,IO],encapsulation:2});let e=i;return e})();function wS(e,i){e&1&&_D(0,"tm-dealer-listing");}function kS(e,i){e&1&&_D(0,"tm-private-listing");}function IS(e,i){e&1&&_D(0,"tm-koru-motors-listing-details-wrapper");}function TS(e,i){if(e&1&&_D(0,"tm-koru-motors-listing-details-wrapper",6),e&2){yx$1();let o=Tx$1(9);TD("legacyFallback",o);}}function OS(e,i){e&1&&_D(0,"tm-marketplace-koru-listing-details");}function ES(e,i){e&1&&_D(0,"tm-dealer-listing");}function PS(e,i){if(e&1&&(Mf(0,2),yA(1,"async"),iD(2,wS,1,0,"tm-dealer-listing",3)(3,kS,1,0,"tm-private-listing",3)(4,IS,1,0,"tm-koru-motors-listing-details-wrapper",3)(5,TS,1,1,"tm-koru-motors-listing-details-wrapper",4)(6,OS,1,0,"tm-marketplace-koru-listing-details",3),_D(7,"router-outlet"),Ja$2(),iD(8,ES,1,0,"ng-template",null,0,wA),_D(10,"tm-motors-listing-json-ld",5)),e&2){let o=i,t=yx$1();TD("ngSwitch",DA$1(1,7,t.sellerType$)),X_$1(2),TD("ngSwitchCase",t.sellerTypeEnum.dealer),X_$1(),TD("ngSwitchCase",t.sellerTypeEnum.private),X_$1(),TD("ngSwitchCase",t.sellerTypeEnum.privateKoru),X_$1(),TD("ngSwitchCase",t.sellerTypeEnum.dealerKoru),X_$1(),TD("ngSwitchCase",t.sellerTypeEnum.marketplaceKoru),X_$1(4),TD("listingItem",o==null?null:o.item);}}function DS(e,i){e&1&&(Mf(0),_D(1,"tm-listing-details-error"),Ja$2());}var Yi=(function(e){return e[e.dealer=0]="dealer",e[e.private=1]="private",e[e.privateKoru=2]="privateKoru",e[e.marketplaceKoru=3]="marketplaceKoru",e[e.dealerKoru=4]="dealerKoru",e})(Yi||{}),LS={description:"Trade Me Motors. Thousands of used cars, new cars, boats, motorbikes, dirt bikes, car parts, caravans, trucks, trailers and more on trademe.co.nz"},D_=(()=>{let i=class i{constructor(t,n,l,C,I){this._listingFacade=t,this._metaDataFacade=n,this._motorsListingFacade=l,this._categoryService=C,this._listingRedirectService=I,this.sellerTypeEnum=Yi,this._destroyed$=new W$1,this._koruListingFacade=v(Mu$1);}ngOnInit(){this._listingFacade.getCurrentListingId().pipe(Xp(this._destroyed$)).subscribe(t=>this._motorsListingFacade.preLoadListingDetails(t)),this.listing$=this._listingFacade.getCurrentListing(
25).pipe(Xt(t=>!!t),th$1(t=>{t?.isLoading===false&&t?.item&&t?.cachedAt&&this.updateMetaTags(t.item);}),o()),this.listing$.pipe(Xt(t=>!t.isLoading&&!!t.item&&!!t.cachedAt),Fe(t=>t.item),Xp(this._destroyed$)).subscribe(t=>{this._listingRedirectService.redirectToNewListingIfRelisted(t);}),this.isKoruListing$=this._listingFacade.getCurrentListingId().pipe(Xt(t=>!!t),lo$1(t=>this._koruListingFacade.isKoruListing(t.toString())),Fe(t=>({isLoading:false,item:t})),Jp({isLoading:true,item:false}),o()),this.listingError$=this.listing$.pipe(Fe(t=>!t.isLoading&&!!t.error)),this.sellerType$=this.listing$.pipe(Xt(t=>!!t&&!!t.item),ch$1(this.isKoruListing$),Xt(([,t])=>!t.isLoading),Fe(([t,n])=>{if(Me$1("car",t.item)?.isDealer===true||!!t.item.dealership)return n.item?Yi.dealerKoru:Yi.dealer;if(n.item){let C=R$3(t.item.category??"");return C.length>0&&this._categoryService.isMarketplace(C)?Yi.marketplaceKoru:Yi.privateKoru}return Yi.private}));}updateMetaTags(t){if(t){let n=t.category?R$3(t.category):null,C=(n&&this._categoryService.isCars(n)?xs(t):null)||t.body||LS.description,I={title:t.title,type:"product",description:C,blockRobotIndexAndFollow:false};t?.seoDrivenMetadata?.seoDrivenUrl?.robots&&(I.blockRobotIndexAndFollow=t?.seoDrivenMetadata?.seoDrivenUrl?.robots===G$1),t.photos&&t.photos.length&&(I.image=t.photos[0].value.fullSize),this._metaDataFacade.updateMetaData(I);}}ngOnDestroy(){this._destroyed$.next();}};i.\u0275fac=function(n){return new(n||i)(R$2(pe),R$2(l),R$2(Kt$1),R$2(P),R$2(kV))},i.\u0275cmp=jM$1({type:i,selectors:[["tm-new-listing"]],hostAttrs:["ngSkipHydration","true"],standalone:false,decls:4,vars:6,consts:[["dealerListingFallback",""],[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"legacyFallback",4,"ngSwitchCase"],[3,"listingItem"],[3,"legacyFallback"]],template:function(n,l){if(n&1&&(JN(0,PS,11,9),yA(1,"async"),iD(2,DS,2,0,"ng-container",1),yA(3,"async")),n&2){let C;XN((C=DA$1(1,2,l.listing$))?0:-1,C),X_$1(2),TD("ngIf",DA$1(3,4,l.listingError$));}},dependencies:[mO,Ip,yO,hi,h_,Ug,yr,Ms,DA,Is,bO],styles:["tm-new-listing[_nghost-%COMP%]{display:block}"]});let e=i;return e})();var BS=[{path:"",component:D_,children:[{path:"consumer-finance",component:Ho},{path:"consumer-finance-apply",component:Gg,canActivate:[M]}]},{path:"dealer-finance",redirectTo:"",pathMatch:"full"}],L_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[eu.forChild(BS),eu]});let e=i;return e})();var B_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,ee$1,f,He,Hb$1,Cb$1,br,dr,fc,Zo,D0$1,W$2,Ob$1]});let e=i;return e})();var F_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,eu,we,mc]});let e=i;return e})();var V_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Ar,we,He,Hb$1,we,mc,Zo,eu,D0$1,f]});let e=i;return e})();var A_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,eu,Ec,He,D0$1,we,Hb$1,mc,qc,$i$1,a$2,Sn,u,Aa$1]});let e=i;return e})();var $_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,eu,f,we,He,Hb$1,Ar,we,Ob$1,mc,f,z$1]});let e=i;return e})();var R_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,He,Bg,Ob$1,we,Na$1,z$1]});let e=i;return e})();var N_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,mc,u0$1]});let e=i;return e})();var j_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Ar,O_$1,He,Ge,D0$1,we,mc,F_,V_,$_,N_,A_,Se,X,eu,f,Ai$2,R_,Ai$2,g,B_,ji$1]});let e=i;return e})();var U_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,we,a$1,Cc]});let e=i;return e})();var W_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({providers:[A],imports:[je$1,VO,ee$1,Hb$1,Ob$1,Rb$1,Cb$1,ks$1,He,we,we,we,we,we,hs$1,y0,we,mc,eu,f,D0$1,Se,X,Ia$2,Ea$1,ui,Ar,we,we,we,we,we,ot,we,we,bs]});let e=i;return e})();var q_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,r5,YR]});let e=i;return e})();var H_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Gn,X_,Fi,Gt,Ht,He,Ai,Ja$1,un,Vr]});let e=i;return e})();var z_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,I,It,Se,qe$1,Ec,Ja$1,He,Ve$1]});let e=i;return e})();var G_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,_e]});let e=i;return e})();var K_=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[VO,Mt,ji,ut,Gt$1,we,Aa,za,hs,Ua,Pa,Ra,X_,Gt,Fi,eu,Ht,He,Se,I,to,Va$1,os,W_,Xf$1,lo,H_,Ai,U_,to,Zn,Xa,Ba,z_,Fa,S5,Ka,j_,G_,as,Ca,Ya,q_,ie]});let e=i;return e})();var xG=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=Za$1({type:i}),i.\u0275inj=_o({imports:[Xf$1,VO,L_,K_,zg,Pu,Ho,h,Be,Ms,ks,bR,Is]});let e=i;return e})();export{xG as NewListingModule};//# sourceMappingURL=new-listing.module-BP8SpBor.js.map
26
27//# debugId=8d386cb2-f3f8-51c0-b87a-f4589a0bd8db

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.