PageSourceSearch

https://www.trademe.co.nz/a/static/listing-wrapper.module-BBaLgft5.js

js trademe.co.nz collected 2026-09-24 08:41:06 UTC 157,790 bytes, 8 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed456963-faa9-5b0b-8a0a-5d94ab851794")}catch(e){}}();
3import {n as nt$1,Q}from'./chunk-h3qRh_Tn.js';import {b as bR,N as Nd,S as S5,Y as YR,r as r5,A as Ad,D as DA,E as EV,k as kd,t as t7,a as bu,y as yV,c as Ed,d as kp,M as Mu,e as kV,f as Sp,B as Bd,g as f5,q as qR,Z as ZR,L as Ld,h as Zd,i as b7,j as hp$1,T as TV,l as Sd$1,m as AK,O as Op$1,n as aV,F as Fd,J as Jd,o as c7}from'./chunk-Dd6ewV2k.js';import'./chunk-DgcMxJze.js';import {g as gn,u as un}from'./chunk-DXI94eXR.js';import {w as wt,M as Mi$1}from'./chunk-Do_m6fKm.js';import {x as xs$1,V as Va$1,t as tr,s as se,a as ar,r as rs$1,l as la,j as ja$1,K as K$1}from'./chunk-CPczHzbv.js';import {X as Xf,F as F0,I as It}from'./chunk-DUGtkoET.js';import'./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 {j as js,u as u$2,a as a$3,p as p$4,O,b as jn}from'./chunk-BgAw3AJi.js';import'./chunk-B1NKbwO5.js';import'./chunk-DHrSy100.js';import'./chunk-DE8zxgjA.js';import {f as f$1}from'./chunk-Cb9Ytd9X.js';import {X as Xe}from'./chunk-CRc4dKNm.js';import'./chunk-DRakdlGJ.js';import {R as Rd,P as Py,A as Ad$1,E as Ey,n as ns$1}from'./chunk-Beal-wO3.js';import'./chunk-mXOUu5GI.js';import'./chunk-CMmNEzU8.js';import {s}from'./chunk-CO7Ngy1f.js';import {E as E$3,I,s as s$1,c,e,A as A$1,r}from'./chunk-BnJJGNRJ.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 {PersonalisedAddressModalModule as j$1}from'./personalised-address-modal.module-FkIvk6RQ.js';import'./chunk-D3Z4OdWM.js';import {PersonalisedAddressModalComponent as Re$1}from'./personalised-address-modal.component-CqUDyi70.js';import'./chunk-CrswU0US.js';import'./chunk-DjU1MU2P.js';import'./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'./chunk-B9bsT1q-.js';import'./chunk-C9IiW4M6.js';import'./chunk-DLVTCBhK.js';import {a0 as Za$1,a1 as _o,a2 as VO,mW as Ne,a3 as eu,aB as ee,bD as Yn,dR as Co,fL as D0,bS as Rb,w as we,ar as Hb,bE as Ar,as as mc$1,bj as L,j as jM,aU as mO,ad as bO,b0 as Mf,b1 as iD,ae as yA,b2 as Ja$1,b3 as Tx,C as X_,D as TD,af as DA$1,lH as _e,bJ as pb,c as He$1,bK as Ec,d_ as g$2,dz as O_,aA as Bg,bR as X_$1,cG as Bt,cH as rn,bP as X,v,be as pe,aI as h$1,ck as R$2,ag as W,bq as lo,bp as th,ah as Fe,c_ as o,ak as Xp$1,a5 as R$3,aJ as G,ff as Y,bY as D,a6 as Re,aG as E$1,e8 as S,iM as j,cr as P,hi as A,a7 as E$2,dS as _i,fl as yr,d1 as Fb,d2 as Ab,q as _D,lB as _c$1,bN as Wc$1,lD as mr,dT as rb,a4 as qc$1,f3 as km$1,cF as Y_,cK as bs$1,ac as $c$1,cx as Q_,b$ as rn$1,b_ as IO,da as FO,a$ as rD,g2 as Dx,J as JN,X as XN,cb as G$1,cO as t,cX as $c$2,hd as re,br as Ui$1,j3 as o$1,co as wC,aQ as Xt,z as z$1,y,aj as An,cu as R$4,ct as p,go as nh,mu as gw,aS as mc$2,m9 as j$2,lR as ne,S as zc$1,W as zo,U as Gc$1,Y as Hc$1,V as Vc,fJ as lr,T as Tr,eA as Zr,I as Ia$1,Q as Qx,p as bf,c3 as lE,c8 as zD,N as Af,c4 as tA,cg as YI,ea as p$1,bA as P$1,ke as ae$1,cm as Ip,cn as yO,dw as jD,dx as Cx,dy as wx,o as kD,s as yx,aR as De,bk as mq,f as bn,h as dx,eY as oA,fe as P$2,fv as f$2,d5 as Gt$1,d6 as kt,cv as Wc$2,cV as o$2,M as bD,i7 as We,cs as Pt,mX as se$1,i0 as t$1,iT as _,mY as G$2,mZ as lt$1,m_ as X$1,c6 as z_,fH as I0,ma as N,lY as L$1,c1 as xh,cd as wA,b4 as pA,fb as db,g5 as Ex,ef as ft,ku as nb,e0 as Xa$1,r as Xh,t as eg,dd as Q$1,m$ as y$1,n0 as ie$1,hV as M$2,hS as S$2,O as rE,cf as ND,H as Hr,a as jb,L as Lb,R as Ry,bU as s$2,kv as Vr,bZ as pO,cC as Fg,cD as cr,cE as R_,fx as m,hY as _$1,ba as rA,kA as iA,cq as fA,ce as hA,bc as oE,an as cE,ap as aE,dk as Et,f5 as w$1,dm as Ve$1,db as Ht,aq as k,a9 as N0,dc as b,jd as Gr,ao as eA,fh as l$1,fE as xt,ab as p$5,cc as nA,u as nx,bv as ex,G as rx,dp as tx}from'./main-CAjEjBVh.js';import'./motors-marketplace-search-card.component-LKfMqTkF.js';import {M as Ma$1,O as Oi$1,K,v as v$1,c as c$1}from'./chunk-hIv0Lc48.js';import'./chunk-BU0AULcm.js';import'./basic-search-card.component-DVN35FAv.js';import'./tiered-search-card-container.component-Dg7t2XYE.js';import'./chunk-CFC3HuRe.js';import'./chunk-BVovkmCv.js';import {R,M}from'./chunk-D8j22_k-.js';import'./chunk-DlI1-RBT.js';import'./chunk-s5DdVWYO.js';import'./chunk-DzroZiVo.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}from'./chunk-61wIR9EC.js';import {a as a$2}from'./chunk-TanFXPmN.js';import {L as Lt}from'./chunk-B41a0TTX.js';import'./chunk-BpqBTxaR.js';import'./chunk-BVn1Yqp5.js';import'./chunk-Dsgs4QrS.js';import'./chunk-Ctk2b32a.js';import'./chunk-iE2_4u8g.js';import'./chunk-IhXTJZ8b.js';import {u as u$1}from'./chunk-D2OIXtKo.js';import'./chunk-IfyktX2U.js';import'./chunk-BTj3pQlu.js';import'./chunk-CoDQTM9y.js';import'./chunk-BuLTUtk0.js';import {S as Se$1,n as nt,z as zt,a as ae}from'./chunk-LWQIRm52.js';import'./chunk-CHXNbGII.js';import'./chunk-DiLwsHzm.js';import'./chunk-BQLCmwxn.js';import'./chunk-BT6q-Mx6.js';import'./chunk-BgsPW_CV.js';import'./chunk-wDhbTTaT.js';import {E,u}from'./chunk-DPuncooK.js';import {_ as _t,z,$,B as B$1}from'./chunk-DM-WVsd5.js';import'./chunk-ijgGiIOj.js';import {G as Gt,j as ji$1,a as jt,R as Ri}from'./chunk-CDrB9y2X.js';import {h}from'./chunk-DorH3_I9.js';import'./chunk-CgvBAcuf.js';import {d}from'./chunk-jetcTzsV.js';import {g as g$1}from'./chunk-BinUDUXm.js';import'./chunk-BtGt8sMJ.js';import'./chunk-Bm2CZFU3.js';import'./chunk-COP3fpVD.js';import {R as R$1,u as ut}from'./chunk-D56l0ire.js';import'./chunk-hjAdSj8t.js';import'./chunk-BetbQZBv.js';import'./chunk-CFZzHhwU.js';import'./chunk-DttRtAXw.js';import'./chunk-Bx6thN26.js';import'./chunk-DX3AJTUQ.js';import'./chunk-BfmtI6P-.js';import'./chunk-oVhJ_x8f.js';import'./chunk-Duwj35_y.js';import'./chunk-MQ8ivf_o.js';import {h as hs$1,E as E$4}from'./chunk-ZotpFjDk.js';import'./chunk-DV8Pih-T.js';import'./chunk-BczQQ3HJ.js';import'./chunk-D9RI3bv_.js';import'./chunk-CmqjuEU1.js';import'./chunk-CytlKgad.js';import'./chunk-CLcRP3qU.js';import {W as W$1,j as j$3}from'./chunk-CkGmAncb.js';
3import'./chunk-iBylMEhG.js';import'./chunk-D7XCpf05.js';import {h as h$2}from'./chunk-D08MCpDG.js';import'./chunk-Ri1cuuMB.js';import'./chunk-Ci7y9yt_.js';import'./chunk-CXpbMIE8.js';import'./chunk-D8q8nqJo.js';import'./chunk-y2eU7CPs.js';import {p as p$3}from'./chunk-Cfhwhg0K.js';import'./chunk-D3EH8yTk.js';import {u as u$3}from'./chunk-4hPjuRg5.js';import'./chunk-Cf6MbvcS.js';import'./chunk-BPIyHSt7.js';import'./chunk-BJ1rYuXy.js';import'./chunk-L_w69pO1.js';import {w}from'./chunk-BME5YPAf.js';import'./chunk-DNvkOLVw.js';import'./chunk-BfAIvOhM.js';import'./chunk-DncV6Jw4.js';import'./chunk-i014EtwU.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 {H as He}from'./chunk-DZYq2tvA.js';import'./chunk-CB8zOIjI.js';import'./chunk-DhdJECI9.js';import'./chunk-z-sGSgw8.js';import {x,S as S$1}from'./chunk-CMZ3-Ti_.js';import {V as Ve,g as ge}from'./youtube-player-C9MCqbh8.js';import'./chunk-DLWdaxmR.js';import'./chunk-DGvxZABl.js';import {B}from'./chunk-DsUAcXTD.js';import'./chunk-DFLJnTSU.js';import'./chunk-taFyP6-G.js';import {B as Be}from'./chunk-BxuABTuK.js';import {m as me$1}from'./chunk-Ye5LfOK2.js';import {g}from'./chunk-C4LE4KKN.js';import {B as Bt$1}from'./chunk-DMwH4IV5.js';import'./chunk-BezbLTUw.js';import {x as x$1,o as o$3}from'./chunk-CzzHOh3R.js';import'./chunk-CRxSL6nf.js';import {T,p as p$2}from'./chunk-BsB3pJ-D.js';import'./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 as d$1}from'./chunk-4e65qauR.js';import'./chunk-CoBX9GW6.js';import'./chunk-CSYssCHv.js';import'./chunk-iBzFcQNE.js';import'./chunk-DxjTjCCI.js';import {n as nt$2,z as z$2}from'./chunk-tZG9QK2N.js';import'./chunk-CEet3q3d.js';import'./chunk-BJwLckN_.js';import'./chunk-Bhd3g0be.js';import'./chunk-Dm1-07Dt.js';import'./chunk-Ck0rJN4t.js';import {m as me}from'./chunk-fL8Xvwe7.js';import'./chunk-BhlJSIvO.js';import {f,C}from'./chunk-DhT1TtSm.js';import {M as M$1}from'./chunk-CWEEvGwz.js';import'./chunk-v5nN6aMG.js';import'./chunk-BfRDMp24.js';import'./chunk-CCD1pcHa.js';import'./chunk-TV9Wo-_X.js';import'./chunk-CeKpAhvg.js';import'./chunk-BtS1Fg9g.js';import'./chunk-PlMxG_pr.js';import'./chunk-jlvpcNsF.js';import'./chunk-XpF_PgI4.js';import'./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-IU082-_v.js';import'./chunk-DUqOaRGp.js';import'./chunk-CmnKksf1.js';import'./chunk-DCKMdxRV.js';import'./chunk-vKXJt4E8.js';import'./chunk-BjkWQ8ya.js';import'./chunk-DK5iCNHV.js';import'./chunk-BIJz1oAh.js';import'./chunk-BH-JcEfy.js';import'./chunk-BzMufgj4.js';import'./chunk-CzUcL0en.js';import'./chunk-BPlzE8us.js';import'./chunk-CdqQ7lLc.js';import'./chunk-DG0xYvzw.js';import'./chunk-Bm7bSd3Z.js';import'./chunk-D5BuR3PQ.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-BhRfpHQp.js';import'./chunk-DG4qhM9N.js';import'./chunk-D0m7Qljd.js';import'./chunk-CQAPh1Ts.js';var gi=(()=>{let t=class t{transform(i){return "#"+(i||"FFFFFF")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=We({name:"dealershipBackgroundColour",type:t,pure:true,standalone:false});let e=t;return e})();var Ca=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({providers:[gi]});let e=t;return e})();function As(e,t){if(e&1&&(Ia$1(0,"a",3),_D(1,"img",4),bf()),e&2){let n=t.ngIf,i=yx().ngIf,o=yx();TD("routerLink",n)("trackingId",o.dealerShowroomTrackingId),X_(),TD("src",i.logo,Ry);}}function Ds(e,t){if(e&1&&(Ia$1(0,"div",1),yA(1,"dealershipBackgroundColour"),iD(2,As,2,3,"a",2),yA(3,"async"),bf()),e&2){let n=t.ngIf,i=yx();Xa$1("background-color",DA$1(1,3,n.showroom==null?null:n.showroom.backgroundColour)),X_(2),TD("ngIf",DA$1(3,5,i.moreListingsLink$));}}var Ns="motors_dealer_microsite",ya=(()=>{let t=class t{constructor(i){this._listingFacade=i,this.dealerShowroomTrackingId=Ns;}ngOnInit(){this.dealership$=this._listingFacade.getCurrentListing(
3).pipe(Xt(i=>!!i&&!!i.item&&!i.isLoading),Fe(i=>i?.item?.dealership),o()),this.moreListingsLink$=this.dealership$.pipe(Fe(i=>this.getMoreListingsLink(i)));}getMoreListingsLink(i){if(i&&i.showroom)return `/motors/dealer/${i.urlSlug||i.id}`}};t.\u0275fac=function(o){return new(o||t)(R$3(pe))},t.\u0275cmp=jM({type:t,selectors:[["tm-dealership-branding"]],standalone:false,decls:2,vars:3,consts:[["class","tm-dealership-branding",3,"background-color",4,"ngIf"],[1,"tm-dealership-branding"],["tmTrackCustomClick","",3,"routerLink","trackingId",4,"ngIf"],["tmTrackCustomClick","",3,"routerLink","trackingId"],["alt","Dealership logo",1,"tm-dealership-branding__image",3,"src"]],template:function(o,a){o&1&&(iD(0,Ds,4,7,"div",0),yA(1,"async")),o&2&&TD("ngIf",DA$1(1,1,a.dealership$));},dependencies:[mO,rn$1,p$1,bO,gi],styles:["tm-dealership-branding[_nghost-%COMP%]{display:block}.tm-dealership-branding[_ngcontent-%COMP%]{height:60px}.tm-dealership-branding__image[_ngcontent-%COMP%]{display:block;max-width:100%;height:60px;margin:auto}"]});let e=t;return e})();var xa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,eu,Ca,g$2]});let e=t;return e})();var va=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({});let e=t;return e})();function $s(e,t){if(e&1){let n=dx();Ia$1(0,"tg-modal",1),kD("close",function(){Xh(n);let o=yx();return eg(o.onClose())}),Ia$1(1,"tg-modal-header")(2,"h2"),Qx(3,"What's BuyerScore?"),bf()(),Ia$1(4,"tg-modal-body")(5,"p"),Qx(6,"BuyerScore is an independent rating and review service for vehicle dealers in New Zealand."),bf(),Ia$1(7,"p"),Qx(8," It collects feedback from verified vehicle purchases to ensure that future buyers know who they're buying from. "),bf()()();}}var Sa=(()=>{let t=class t{constructor(){this.dealerRatingsInfoModalIsVisible=false,this.close=new Pt;}onClose(){this.close.emit();}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=jM({type:t,selectors:[["tm-motors-dealer-ratings-info-modal"]],inputs:{dealerRatingsInfoModalIsVisible:"dealerRatingsInfoModalIsVisible"},outputs:{close:"close"},standalone:false,decls:1,vars:1,consts:[[3,"close",4,"ngIf"],[3,"close"]],template:function(o,a){o&1&&iD(0,$s,9,0,"tg-modal",0),o&2&&TD("ngIf",a.dealerRatingsInfoModalIsVisible);},dependencies:[mO,Hr,jb,Lb],styles:["tm-motors-dealer-ratings-info-modal[_nghost-%COMP%]{display:block}p[_ngcontent-%COMP%]{margin-bottom:16px}"]});let e=t;return e})();var Ma=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,Hb]});let e=t;return e})();var Vs=()=>[];function Us(e,t){e&1&&_D(0,"tg-icon",6);}function Ws(e,t){e&1&&_D(0,"tg-icon",7);}function zs(e,t){e&1&&_D(0,"tg-icon",8);}function qs(e,t){if(e&1&&(Mf(0),iD(1,Us,1,0,"tg-icon",3)(2,Ws,1,0,"tg-icon",4)(3,zs,1,0,"tg-icon",5),Ja$1()),e&2){let n=t.index,i=yx(2);X_(),TD("ngIf",i.ratingStarIsFilled(n)),X_(),TD("ngIf",i.ratingStarIsHalfFilled(n)),X_(),TD("ngIf",i.ratingStarIsEmpty(n));}}function Gs(e,t){if(e&1&&(Ia$1(0,"div",9),Qx(1),bf()),e&2){let n=yx(2);X_(),oE(" ",n.rating,"/",n.ratingMax," ");}}function Hs(e,t){if(e&1&&(Ia$1(0,"div"),iD(1,qs,4,3,"ng-container",1)(2,Gs,2,2,"div",2),bf()),e&2){let n=yx();bD("aria-label",iA("",n.rating," out of ",n.ratingMax," stars")),X_(),TD("ngForOf",fA(5,Vs).constructor(n.ratingMax)),X_(),TD("ngIf",n.displayCount);}}var Ia=(()=>{let t=class t{ratingStarIsFilled(i){return this.rating-i>=1}ratingStarIsHalfFilled(i){return this.rating-i>0&&this.rating-i<1}ratingStarIsEmpty(i){return this.rating-i<=0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=jM({type:t,selectors:[["tm-star-rating"]],inputs:{rating:"rating",ratingMax:"ratingMax",displayCount:"displayCount"},standalone:false,decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],["class","tm-star-rating__count",4,"ngIf"],["name","star-fill","role","presentation",4,"ngIf"],["name","star-fill-half","role","presentation",4,"ngIf"],["class","tm-star-rating__empty","name","star-fill","role","presentation",4,"ngIf"],["name","star-fill","role","presentation"],["name","star-fill-half","role","presentation"],["name","star-fill","role","presentation",1,"tm-star-rating__empty"],[1,"tm-star-rating__count"]],template:function(o,a){o&1&&iD(0,Hs,3,6,"div",0),o&2&&TD("ngIf",a.rating);},dependencies:[YI,mO,we],styles:["tm-star-rating[_nghost-%COMP%]{display:block;color:#00b3c8}.tm-star-rating__empty[_ngcontent-%COMP%]{color:#e8e6e3}.tm-star-rating__count[_ngcontent-%COMP%]{display:inline-block;margin-left:4px;
3color:#65605d;vertical-align:middle}"]});let e=t;return e})();var ka=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,we,we,we]});let e=t;return e})();function Qs(e,t){if(e&1&&(Ia$1(0,"a",7),Qx(1),_D(2,"tg-icon",8),bf()),e&2){let n=yx();TD("href",n.dealerShowRoomLinkToClassic,Ry),X_(),Af(" ",n.dealerRatingsOverview?.numberOfRatings," reviews ");}}var Ks=5,Ta=(()=>{let t=class t{constructor(){this.maxRating=Ks,this.dealerRatingsInfoModalIsVisible=false;}ngOnChanges(i){i.dealership&&this.dealership&&this.dealership.showroom&&this.dealership.showroom.url&&(this.dealerShowRoomLinkToClassic=this.dealership.showroom.url+"&tab=ratings");}hideModal(){this.dealerRatingsInfoModalIsVisible=false;}showModal(){this.dealerRatingsInfoModalIsVisible=true;}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=jM({type:t,selectors:[["tm-motors-dealer-ratings"]],inputs:{dealerRatingsOverview:"dealerRatingsOverview",dealership:"dealership"},standalone:false,features:[Zr],decls:13,vars:5,consts:[[1,"tm-motors-dealer_ratings__rack"],[1,"tm-motors-dealer_ratings__rack-item"],["alt","BuyerScore logo","src","/images/frend/motors/buyerscore_logo_colored.svg",1,"tm-motors-dealer_ratings__logo"],[1,"tm-motors-dealer_ratings__star-rating",3,"displayCount","ratingMax","rating"],["compact","","tgButton2","","transparent","",1,"tm-motors-dealer_ratings__whats-buyerscore",3,"click"],["class","tm-motors-dealer_ratings__reviews-link","rel","noopener noreferrer","target","_blank",3,"href",4,"ngIf"],[3,"close","tmOnNavigation","dealerRatingsInfoModalIsVisible"],["rel","noopener noreferrer","target","_blank",1,"tm-motors-dealer_ratings__reviews-link",3,"href"],["name","link-external","role","presentation","size","small"]],template:function(o,a){o&1&&(Ia$1(0,"tg-rack",0)(1,"tg-rack-item",1)(2,"tg-rack-item-primary"),_D(3,"img",2),bf(),Ia$1(4,"tg-rack-item-secondary"),_D(5,"tm-star-rating",3),bf()(),Ia$1(6,"tg-rack-item")(7,"tg-rack-item-primary")(8,"button",4),kD("click",function(){return a.showModal()}),Qx(9," What's BuyerScore? "),bf()(),Ia$1(10,"tg-rack-item-secondary"),iD(11,Qs,3,2,"a",5),bf()()(),Ia$1(12,"tm-motors-dealer-ratings-info-modal",6),kD("close",function(){return a.hideModal()})("tmOnNavigation",function(){return a.hideModal()}),bf()),o&2&&(X_(5),TD("displayCount",true)("ratingMax",a.maxRating)("rating",a.dealerRatingsOverview==null?null:a.dealerRatingsOverview.overallScore),X_(6),TD("ngIf",a.dealerShowRoomLinkToClassic),X_(),TD("dealerRatingsInfoModalIsVisible",a.dealerRatingsInfoModalIsVisible));},dependencies:[mO,zc$1,zo,Hc$1,db,Ia,He$1,Sa,we],styles:["tm-motors-dealer-ratings[_nghost-%COMP%]{display:block}.tm-motors-dealer_ratings__whats-buyerscore[_ngcontent-%COMP%]{height:24px;min-height:24px;padding:0;margin-bottom:0;text-align:left}tm-star-rating.tm-motors-dealer_ratings__star-rating[_ngcontent-%COMP%]{flex-grow:1;color:#f9af2c;text-align:right}.tm-motors-dealer_ratings__logo[_ngcontent-%COMP%]{width:120px;margin-top:4px}.tm-motors-dealer_ratings__reviews-link[_ngcontent-%COMP%]{display:block;line-height:24px}.tm-motors-dealer_ratings__rack.o-rack[_ngcontent-%COMP%]{margin-bottom:16px}.tm-motors-dealer_ratings__rack-item[_ngcontent-%COMP%]     .o-rack-item__body .o-rack-item__main{min-height:0;padding:0}"]});let e=t;return e})();var wa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,Ar,ka,He$1,Ma,we]});let e=t;return e})();var Xs=/.*?:\/\/|\/.*/gi,Zs=/\s|[()]/g,fi=(()=>{let t=class t{getWebsiteDomain(i){return i?i.replace(Xs,""):""}getDealersWithContactInfo(i){let o=i&&i.length?i.filter(a=>!!a.mobilePhoneNumber||!!a.officePhoneNumber):[];return o.length?o.map(a=>({dealerInfo:a,mobilePhone:{displayNumber:a.mobilePhoneNumber,mobileFriendlyLink:this.convertPhoneNumberToLink(a.mobilePhoneNumber),separator:a.mobilePhoneNumber&&a.officePhoneNumber?" or ":""},officePhone:{displayNumber:a.officePhoneNumber,mobileFriendlyLink:this.convertPhoneNumberToLink(a.officePhoneNumber),separator:""}})):null}convertPhoneNumbersForDisplay(i){return !i||!i.length?null:i.map((o,a,_)=>{let S=this.convertPhoneNumberToLink(o),A=_.length>2?", ":" or ";return _.length-1===a&&(A=""),{displayNumber:o,mobileFriendlyLink:S,separator:A}})}convertPhoneNumberToLink(i){return i?i.trim().toLowerCase().replace(Zs,"").replace("ext",","):""}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})();var tl=/<\/?\s*[^>]*>/gi,Oa=(()=>{let t=class t{getFormattedAddressInfo(i){return i&&(i.address||i.suburb||i.city)?{lineOne:i.address,lineTwo:[i.suburb,i.city].filter(o=>!!o).join(", ")}:null}sanitizeAboutUs(i){return i?i.replace(tl,""):""}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ol=["*"];
3function rl(e,t){if(e&1&&(Ia$1(0,"div",19),_D(1,"img",20),bf()),e&2){let n=yx(2);Xa$1("background-color",n.dealerLogoBackgroundColour),TD("trackingId",n.dealerShowroomTrackingId),X_(),TD("alt",n.dealership.name)("src",n.dealerLogoUrl,Ry);}}function al(e,t){e&1&&_D(0,"br");}function sl(e,t){if(e&1&&(Ia$1(0,"p",21),Qx(1),iD(2,al,1,0,"br",0),Qx(3),bf()),e&2){let n=yx(2);X_(),Af(" ",n.dealerAddress.lineOne," "),X_(),TD("ngIf",n.dealerAddress.lineTwo),X_(),Af(" ",n.dealerAddress.lineTwo," ");}}function ll(e,t){if(e&1&&(Ia$1(0,"p")(1,"a",24),Qx(2),bf(),Qx(3),bf()),e&2){let n=t.$implicit;X_(),TD("href",oA("tel:",n.mobileFriendlyLink),Ry),X_(),Af(" ",n.displayNumber," "),X_(),Af(" ",n.separator," ");}}function ml(e,t){if(e&1&&(Ia$1(0,"div",22),iD(1,ll,4,4,"p",23),bf()),e&2){let n=yx(2);X_(),TD("ngForOf",n.phoneNumbers);}}function cl(e,t){if(e&1&&(Ia$1(0,"p",25)(1,"a",26),Qx(2),_D(3,"tg-icon",27),bf()()),e&2){let n=yx(2);X_(),TD("href",n.dealership.website,Ry),X_(),Af(" ",n.dealerWebsiteDomain," ");}}function pl(e,t){if(e&1&&(Ia$1(0,"p",28)(1,"a",29),Qx(2," Dealer's other listings "),_D(3,"tg-icon",30),bf()()),e&2){let n=yx(2);X_(),TD("routerLink",n.moreListingsLink);}}function dl(e,t){if(e&1&&_D(0,"tm-motors-dealer-ratings",31),e&2){let n=yx(2);TD("dealership",n.dealership)("dealerRatingsOverview",n.motorsListing.dealerRatingsOverview);}}function gl(e,t){if(e&1&&(Ia$1(0,"span"),Qx(1),bf()),e&2){let n=yx().$implicit;X_(),Af(" - ",n.dealerInfo.position," ");}}function _l(e,t){if(e&1&&(Ia$1(0,"a",35),Qx(1),bf()),e&2){let n=yx().$implicit;TD("href",oA("tel:",n.mobilePhone.mobileFriendlyLink),Ry),X_(),Af(" ",n.mobilePhone.displayNumber," ");}}function fl(e,t){if(e&1&&(Ia$1(0,"a",35),Qx(1),bf()),e&2){let n=yx().$implicit;TD("href",oA("tel:",n.officePhone.mobileFriendlyLink),Ry),X_(),Af(" ",n.officePhone.displayNumber," ");}}function ul(e,t){if(e&1&&(Ia$1(0,"div",32)(1,"p",33),Qx(2),iD(3,gl,2,1,"span",0),bf(),Ia$1(4,"p"),iD(5,_l,2,3,"a",34),bf(),Ia$1(6,"p"),iD(7,fl,2,3,"a",34),bf()()),e&2){let n=t.$implicit;X_(2),Af(" ",n.dealerInfo.fullName," "),X_(),TD("ngIf",n.dealerInfo.position),X_(2),TD("ngIf",n.mobilePhone?.displayNumber),X_(2),TD("ngIf",n.officePhone?.displayNumber);}}function hl(e,t){if(e&1){let n=dx();Ia$1(0,"tm-contact-seller-modal",36),kD("close",function(){Xh(n);let o=yx(2);return eg(o.onModalClosed())}),bf();}if(e&2){let n=yx(2);TD("listing",n.listing)("typeOfSeller","dealer")("message",n.modalMessage)("selectedTab",n.selectedTab);}}function Cl(e,t){if(e&1){let n=dx();Mf(0),Ia$1(1,"div",1)(2,"div")(3,"h4"),Qx(4,"About the dealer"),bf()(),Ia$1(5,"div",2)(6,"div",3),iD(7,rl,2,5,"div",4),_D(8,"tm-dealer-map",5),Ia$1(9,"h4",6),Qx(10),bf(),Ia$1(11,"div",7)(12,"div",8),iD(13,sl,4,3,"p",9)(14,ml,2,1,"div",10)(15,cl,4,2,"p",11)(16,pl,4,1,"p",12)(17,dl,1,2,"tm-motors-dealer-ratings",13),Ex(18),bf(),Ia$1(19,"div",14),iD(20,ul,8,4,"div",15),bf()()(),Ia$1(21,"div",16)(22,"tm-dealer-services",17),iD(23,hl,1,4,"ng-template",18),kD("modalOpened",function(o){Xh(n);let a=yx();return eg(a.onModalOpened(o))}),bf()()()(),Ja$1();}if(e&2){let n=yx();X_(6),zD("dealership-summary--padding-top",!n.dealerLogoUrl),X_(),TD("ngIf",n.dealerLogoUrl),X_(),TD("dealership",n.dealership),X_(),zD("dealership-summary--padding-top",!n.isPremiumLdp),X_(),Af(" ",n.dealership.name," "),X_(3),TD("ngIf",n.dealerAddress),X_(),TD("ngIf",n.phoneNumbers),X_(),TD("ngIf",n.dealerWebsiteDomain),X_(),TD("ngIf",n.moreListingsLink),X_(),TD("ngIf",n.motorsListing?.dealerRatingsOverview),X_(3),TD("ngForOf",n.dealersWithContactInfo)("ngForTrackBy",n.trackByIndex),X_(2),TD("darkDisplay",true),X_(),TD("modalClosed",n.modalClosedbuttonClicked.asObservable());}}var yl="PremiumLDP",xl="motors_dealer_microsite",Pa=(()=>{let t=class t{constructor(i,o,a,_){this._dealerContactService=i,this._dealerShowroomService=o,this.mediaSize=a,this._dealershipService=_,this.modalClosedbuttonClicked=new W,this.dealerShowroomTrackingId=xl,this._destroyed$=new W;}ngOnChanges(i){i.listing&&this.listing&&(this.dealership=this.listing.dealership);}ngOnDestroy(){this._destroyed$.next();}trackByIndex(i,o){return i}get dealerAddress(){return this._dealerShowroomService.getFormattedAddressInfo(this.dealership)}get dealerFullAddress(){return this.dealerAddress&&this.dealerAddress.lineOne+this.dealerAddress.lineTwo}get phoneNumbers(){return this._dealerContactService.convertPhoneNumbersForDisplay(this.dealership.phoneNumbers)}get dealersWithContactInfo(){return this._dealerContactService.getDealersWithContactInfo(this.dealership.dealers)}get dealerWebsiteDomain(){return this._dealerContactService.getWebsiteDomain(this.dealership.website)}get dealerLogoUrl(){return this.dealership?.showroom?.logo}
3get dealerLogoBackgroundColour(){if(this.dealership?.showroom)return "#"+(this.dealership.showroom.backgroundColour||"FFFFFF")}get isPremiumLdp(){return this.dealership?.product===yl}get moreListingsLink(){return this.dealership?.showroom?this._dealershipService.getMoreListingsLink(this.dealership):null}onModalClosed(){this.modalClosedbuttonClicked.next();}onModalOpened(i){this.modalMessage=i?.toMessage(),this.selectedTab=i?.toContactSellerType(this.dealership.renderOptions);}};t.\u0275fac=function(o){return new(o||t)(R$3(fi),R$3(Oa),R$3(G),R$3(s))},t.\u0275cmp=jM({type:t,selectors:[["tm-dealership-summary"]],inputs:{listing:"listing",motorsListing:"motorsListing"},standalone:false,features:[Zr],ngContentSelectors:ol,decls:1,vars:1,consts:[[4,"ngIf"],[1,"dealership-grid"],[1,"dealership-container"],[1,"dealership-summary"],["tmTrackCustomClick","","class","h-text-align-center dealership-summary__logo",3,"background-color","trackingId",4,"ngIf"],[1,"dealership-summary__map",3,"dealership"],[1,"dealership-summary__name"],[1,"dealership-summary__box"],[1,"dealership-summary__dealer-details"],["class","dealership-summary__address",4,"ngIf"],["class","dealership-summary__phone",4,"ngIf"],["class","dealership-summary__website",4,"ngIf"],["class","dealership-summary__showroomLink",4,"ngIf"],[3,"dealership","dealerRatingsOverview",4,"ngIf"],[1,"dealership-summary__dealers"],["class","dealership-summary__dealer-info",4,"ngFor","ngForOf","ngForTrackBy"],[1,"dealer-services-container"],[3,"darkDisplay"],["tmDealerServiceContent","",3,"modalOpened","modalClosed"],["tmTrackCustomClick","",1,"h-text-align-center","dealership-summary__logo",3,"trackingId"],["loading","lazy",1,"dealership-summary__image",3,"alt","src"],[1,"dealership-summary__address"],[1,"dealership-summary__phone"],[4,"ngFor","ngForOf"],[3,"href"],[1,"dealership-summary__website"],["rel","noopener noreferrer","target","_blank",3,"href"],["size","small","name","link-external","role","presentation"],[1,"dealership-summary__showroomLink"],[3,"routerLink"],["size","small","name","basic-arrow-right","role","presentation"],[3,"dealership","dealerRatingsOverview"],[1,"dealership-summary__dealer-info"],[1,"p-label"],["class","mt-dealership-contact__phone",3,"href",4,"ngIf"],[1,"mt-dealership-contact__phone",3,"href"],[3,"close","listing","typeOfSeller","message","selectedTab"]],template:function(o,a){o&1&&(Dx(),iD(0,Cl,24,16,"ng-container",0)),o&2&&TD("ngIf",a.dealership);},dependencies:[YI,mO,rn$1,we,Ta,Ad$1,Ey,ns$1,Fd,p$1],styles:["tm-dealership-summary[_nghost-%COMP%]{display:block}@media(min-width:1280px){.dealership-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 3fr}}.dealership-container[_ngcontent-%COMP%]{padding:0;margin-bottom:24px}@media(min-width:768px){.dealership-container[_ngcontent-%COMP%]{border:1px solid #d7d5d2}}.dealership-summary[_ngcontent-%COMP%]{background:#fff}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__logo[_ngcontent-%COMP%], .dealership-summary[_ngcontent-%COMP%]   .dealership-summary__map[_ngcontent-%COMP%]{margin-right:-24px;margin-left:-24px}@media(min-width:768px){.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__logo[_ngcontent-%COMP%], .dealership-summary[_ngcontent-%COMP%]   .dealership-summary__map[_ngcontent-%COMP%]{margin-right:-16px;margin-left:-16px}}@media(min-width:768px){.dealership-summary[_ngcontent-%COMP%]{padding-right:16px;padding-left:16px}}.dealership-summary[_ngcontent-%COMP%]     .o-button2{margin-bottom:0}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary--padding-top[_ngcontent-%COMP%]{padding-top:16px}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__box[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:24px}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__address[_ngcontent-%COMP%], .dealership-summary[_ngcontent-%COMP%]   .dealership-summary__phone[_ngcontent-%COMP%], .dealership-summary[_ngcontent-%COMP%]   .dealership-summary__website[_ngcontent-%COMP%], .dealership-summary[_ngcontent-%COMP%]   .dealership-summary__showroomLink[_ngcontent-%COMP%], .dealership-summary[_ngcontent-%COMP%]   .dealership-summary__map[_ngcontent-%COMP%]{margin-bottom:16px}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__website[_ngcontent-%COMP%]{display:inline-block}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__phone[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__logo[_ngcontent-%COMP%]{height:60px}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__image[_ngcontent-%COMP%]{display:inline-block}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__dealer-details[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}@media(max-width:767px){.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__dealer-details[_ngcontent-%COMP%]{border-bottom:1px solid #d7d5d2}}@media(min-width:1024px){.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__dealer-details[_ngcontent-%COMP%]{width:60%;padding-right:24px;border-right:1px solid #d7d5d2}}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__dealers[_ngcontent-%COMP%]{display:flex;width:100%;flex-wrap:wrap}@media(min-width:1024px){.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__dealers[_ngcontent-%COMP%]{width:40%;padding-left:24px}}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__dealer-info[_ngcontent-%COMP%]{width:50%;margin-bottom:8px}.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__dealer-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0;overflow-wrap:break-word}@media(min-width:1024px){.dealership-summary[_ngcontent-%COMP%]   .dealership-summary__dealer-info[_ngcontent-%COMP%]{width:100%}}.dealer-services-container[_ngcontent-%COMP%]{padding:0 16px;margin-right:-24px;margin-left:-24px;background:#f6f5f4}@media(min-width:768px){.dealer-services-container[_ngcontent-%COMP%]{margin:0}}"]});let e=t;return e})();var La=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({providers:[fi],imports:[VO,eu,g$1,Ar,mc$1,we,va,Rb,wa,we,Rd,Py,Ed,g$2]});let e=t;return e})();var vl=[[["tm-stripe-title"]],[["tm-stripe-error-message"]],[["tm-stripe-placeholder"]]],Sl=["tm-stripe-title","tm-stripe-error-message","tm-stripe-placeholder"],Ea=(e,t)=>({listingInfo:e,index:t}),Ml=(e,t)=>t.listingId;function Il(e,t){if(e&1&&(Qx(0),yA(1,"number")),e&2){let n=yx(4);Af(" (",DA$1(1,1,n.totalListingCount()),") ");}}
3function kl(e,t){if(e&1&&(Ia$1(0,"a",1)(1,"h3",2),Qx(2),bf(),Ia$1(3,"div",3),Qx(4," View all "),JN(5,Il,2,3),bf()()),e&2){let n=yx(3);TD("routerLink",n.frendShowAllUrl())("queryParams",n.showAllQueryParams()),X_(),bD("id",n.id),X_(),Af(" ",n.stripeTitle()," "),X_(3),XN(n.totalListingCount()?5:-1);}}function Tl(e,t){if(e&1&&(Ia$1(0,"h3",2),Qx(1),bf()),e&2){let n=yx(3);bD("id",n.id),X_(),Af(" ",n.stripeTitle()," ");}}function wl(e,t){if(e&1&&JN(0,kl,6,5,"a",1)(1,Tl,2,2,"h3",2),e&2){let n=yx(2);XN(n.isLink()?0:1);}}function Ol(e,t){e&1&&Ex(0);}function Pl(e,t){e&1&&Ex(0,1);}function Ll(e,t){e&1&&Ex(0,2);}function El(e,t){if(e&1&&_D(0,"tm-loading-card",6),e&2){let n=yx(4);zD("tm-stripe__loading-card--compact",n.compact()),TD("compact",n.compact());}}function Fl(e,t){if(e&1&&nx(0,El,1,3,"tm-loading-card",5,ex),e&2){let n=yx(3);rx(n.loadingCardsArray());}}function Bl(e,t){e&1&&_D(0,"tm-sponsored-listings-tag",10),e&2&&TD("tagOrigin","tm_sponsored_tag_stripe");}function Al(e,t){e&1&&ND(0);}function Dl(e,t){if(e&1){let n=dx();Ia$1(0,"div",9),kD("click",function(){Xh(n);let o=yx().$implicit,a=yx(4);return eg(a.onListingClick(o))}),JN(1,Bl,1,1,"tm-sponsored-listings-tag",10),iD(2,Al,1,0,"ng-container",11),bf();}if(e&2){let n=yx(),i=n.$implicit,o=n.$index;yx(4);let a=Tx(2);X_(),XN(i?.sponsored?.topSortResolveBidId?1:-1),X_(),TD("ngTemplateOutlet",a)("ngTemplateOutletContext",hA(3,Ea,i,o));}}function Nl(e,t){if(e&1){let n=dx();Mf(0,13),kD("click",function(){Xh(n);let o=yx(2).$implicit,a=yx(4);return eg(a.onListingClick(o))}),Ja$1();}}function Rl(e,t){if(e&1&&iD(0,Nl,1,0,"ng-container",12),e&2){let n=yx(),i=n.$implicit,o=n.$index;yx(4);let a=Tx(2);TD("ngTemplateOutlet",a)("ngTemplateOutletContext",hA(2,Ea,i,o));}}function $l(e,t){if(e&1&&JN(0,Dl,3,6,"div",8)(1,Rl,1,5,"ng-container"),e&2){let n=yx(4);XN(n.hasSponsoredListingWinner()&&!n.compact()?0:1);}}function jl(e,t){if(e&1&&(Ia$1(0,"div",14)(1,"div",15)(2,"div",16),_D(3,"tg-svg",17),bf()()()),e&2){let n=t.$implicit,i=yx(4);zD("tm-stripe__carousel-card--compact",i.compact()),X_(3),TD("component",n);}}function Vl(e,t){if(e&1&&(Ia$1(0,"div",14)(1,"a",18)(2,"div",19),Qx(3),bf()()()),e&2){let n=yx(4);zD("tm-stripe__carousel-card--compact",n.compact()),X_(),TD("routerLink",n.frendShowAllUrl())("queryParams",n.showAllQueryParams()),X_(2),Af(" ",n.showAllCardText()," ");}}function Ul(e,t){if(e&1&&(nx(0,$l,2,1,null,null,Ml),nx(2,jl,4,3,"div",7,tx),JN(4,Vl,4,5,"div",7)),e&2){let n=yx(3);rx(n.stripeListings()?.list),X_(2),rx(n.placeholders()),X_(2),XN(n.showAllCardVisible()?4:-1);}}function Wl(e,t){if(e&1){let n=dx();Ia$1(0,"div")(1,"tg-carousel",4),kD("visibleChange",function(o){Xh(n);let a=yx(2);return eg(a.onStripeVisible(o.isVisible))}),JN(2,Fl,2,0)(3,Ul,5,1),bf()();}if(e&2){let n=yx(2);X_(),zD("tm-stripe__SL-carousel-content",n.hasSponsoredListingWinner()),X_(),XN(n.isLoading()?2:3);}}function zl(e,t){if(e&1&&(JN(0,wl,2,1)(1,Ol,1,0),JN(2,Pl,1,0),JN(3,Ll,1,0),JN(4,Wl,4,3,"div")),e&2){let n=yx();XN(n.stripeTitle()?0:1),X_(2),XN(!n.isLoading()&&n.hasError()?2:-1),X_(),XN(!n.isLoading()&&!n.hasError()&&!n.hasCards()?3:-1),X_(),XN(!n.hasError()&&(n.hasCards()||n.isLoading())?4:-1);}}function ql(e,t){if(e&1){let n=dx();Ia$1(0,"tm-search-card-switcher",20),kD("click",function(){let o=Xh(n),a=o.listingInfo,_=o.index,S=yx();return eg(S.onItemClick(_,a.listingId))}),bf();}if(e&2){let n=t.listingInfo,i=t.index,o=yx();zD("tm-stripe__carousel-card--default",!o.hasSponsoredListingWinner())("tm-stripe__carousel-card--compact",o.compact()),TD("id",oA("tm-stripe__carousel-card__card_index_",i))("compact",o.compact())("listingType",o.listingType())("listing",n)("extraListingQueryParams",o.extraListingQueryParams())("shouldPreloadImage",o.shouldPreloadImage(i))("showBiddingIndicators",o.showBiddingIndicators())("cardLayoutType",o.cardLayoutType())("searchCardAreaPosition",o.searchCardAreaPosition());}}var hi=(()=>{let t=class t extends Bt$1{constructor(){super(...arguments),this._analyticsService=v(De),this.currentListingId=mq(),this.sentImpressionListingId=-1,this.hasSponsoredListingWinner=bn(()=>!!this.listings()?.list?.some(o=>!!o?.sponsored?.topSortResolveBidId));}onStripeVisible(i){let o=this.currentListingId();i&&o&&this.sentImpressionListingId!==o&&(this.sentImpressionListingId=o,this._analyticsService.addEvent("impression",{business_line:"marketplace",event_origin:"other_listings_you_may_like",is_sponsored_listing_visible:this.hasS
3ponsoredListingWinner()?1:0,is_user_initiated:0,is_trade_me_created:1}));}onListingClick(i){this._analyticsService.addEvent("listing_explore",{action:"view",business_line:"marketplace",event_origin:"other_listings_you_may_like",item_topic:i.title,is_sponsored:i.sponsored?.topSortResolveBidId?1:0,listing_id:i.listingId,is_user_initiated:1,is_trade_me_created:1});}};t.\u0275fac=(()=>{let i;return function(a){return (i||(i=km$1(t)))(a||t)}})(),t.\u0275cmp=jM({type:t,selectors:[["tm-sponsored-tag-stripe"]],inputs:{currentListingId:[1,"currentListingId"]},features:[rD],ngContentSelectors:Sl,decls:3,vars:1,consts:[["stripeCardSwitcher",""],["rel","nofollow",1,"tm-stripe__header","h-link-no-visited",3,"routerLink","queryParams"],[1,"tm-stripe__title"],[1,"tm-stripe__header-secondary-item"],["tmTrackVisible","",3,"visibleChange"],["tgCarouselItem","",1,"tm-stripe__loading-card",3,"tm-stripe__loading-card--compact","compact"],["tgCarouselItem","",1,"tm-stripe__loading-card",3,"compact"],["tgCarouselItem","",1,"tm-stripe__carousel-card","tm-stripe__carousel-card--placeholder",3,"tm-stripe__carousel-card--compact"],[1,"tm-stripe__SL-card-container"],[1,"tm-stripe__SL-card-container",3,"click"],[1,"tm-stripe__sponsored-listings-tag",3,"tagOrigin"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click",4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click"],["tgCarouselItem","",1,"tm-stripe__carousel-card","tm-stripe__carousel-card--placeholder"],["bordered","","tgCard",""],[1,"tm-stripe__empty-card-illustration"],[3,"component"],["bordered","","tgCard","",3,"routerLink","queryParams"],[1,"h-link-no-visited","tm-stripe__show-more-card-link"],["tgCarouselItem","",1,"tm-stripe__carousel-card",3,"click","id","compact","listingType","listing","extraListingQueryParams","shouldPreloadImage","showBiddingIndicators","cardLayoutType","searchCardAreaPosition"]],template:function(o,a){o&1&&(Dx(vl),JN(0,zl,5,4),iD(1,ql,1,14,"ng-template",null,0,wA)),o&2&&XN(a.hasCards()||a.isLoading()?0:-1);},dependencies:[Y_,bs$1,M$1,me,$c$1,Q_,x$1,me$1,rn$1,IO,FO],styles:["tm-stripe[_nghost-%COMP%]{display:block;contain:layout}.tm-stripe__header[_ngcontent-%COMP%]{display:flex}.tm-stripe__header[_ngcontent-%COMP%]:hover{text-decoration:none}.tm-stripe__header[_ngcontent-%COMP%]   .tm-stripe__title[_ngcontent-%COMP%]{flex:1}.tm-stripe__header-secondary-item[_ngcontent-%COMP%]:hover{text-decoration:underline}.tm-stripe__loading-card[_ngcontent-%COMP%]{min-width:256px;max-width:256px;margin-right:24px;scroll-snap-align:start}.tm-stripe__loading-card[_ngcontent-%COMP%]:last-child{margin-right:0}@media(min-width:1280px){.tm-stripe__loading-card[_ngcontent-%COMP%]{max-width:none}}.tm-stripe__carousel-card[_ngcontent-%COMP%]{min-width:264px;max-width:264px;margin-right:16px;scroll-snap-align:start}.tm-stripe__carousel-card[_ngcontent-%COMP%]:last-child{margin-right:0}@media(min-width:768px){.tm-stripe__carousel-card[_ngcontent-%COMP%]{min-width:256px;max-width:256px;margin-right:24px}}@media(min-width:1280px){.tm-stripe__carousel-card[_ngcontent-%COMP%]{max-width:none;flex-basis:calc(25% - 18px);flex-grow:0;flex-shrink:0}}.tm-stripe__carousel-card--placeholder[_ngcontent-%COMP%]{padding-bottom:16px}.tm-stripe__carousel-card--placeholder[_ngcontent-%COMP%] > .o-card[_ngcontent-%COMP%]{height:100%;margin-bottom:0;border-radius:8px}.tm-stripe__carousel-card--placeholder[_ngcontent-%COMP%] > .o-card[_ngcontent-%COMP%], .tm-stripe__carousel-card--placeholder[_ngcontent-%COMP%] > .o-card[_ngcontent-%COMP%]:hover, .tm-stripe__carousel-card--placeholder[_ngcontent-%COMP%] > .o-card[_ngcontent-%COMP%]:focus{box-shadow:none}@media(min-width:768px){.tm-stripe__carousel-card--placeholder[_ngcontent-%COMP%]{padding-bottom:24px}}.tm-stripe__carousel-card--show-more[_ngcontent-%COMP%] > a.o-card[_ngcontent-%COMP%], .tm-stripe__carousel-card--show-more[_ngcontent-%COMP%] > a.o-card[_ngcontent-%COMP%]:hover, .tm-stripe__carousel-card--show-more[_ngcontent-%COMP%] > a.o-card[_ngcontent-%COMP%]:focus{box-shadow:none}.tm-stripe__loading-card--compact[_ngcontent-%COMP%], .tm-stripe__carousel-card--compact[_ngcontent-%COMP%]{min-width:184px;max-width:184px;margin-right:16px}@media(min-width:768px){.tm-stripe__loading-card--compact[_ngcontent-%COMP%], .tm-stripe__carousel-card--compact[_ngcontent-%COMP%]{min-width:176px;max-width:176px;margin-right:24px}}@media(min-width:1280px){.tm-stripe__loading-card--compact[_ngcontent-%COMP%], .tm-stripe__carousel-card--compact[_ngcontent-%COMP%]{min-width:193px;max-width:193px}}@media(min-width:1600px){.tm-stripe__loading-card--compact[_ngcontent-%COMP%], .tm-stripe__carousel-card--compact[_ngcontent-%COMP%]{min-width:200
3px;max-width:200px}}@media(min-width:1440px){.tm-stripe__card--%NS%compact[_nghost-%COMP%]   .tm-stripe__show-more-card-link[_ngcontent-%COMP%]{padding-right:48px;padding-left:48px}}.tm-stripe__card--%NS%compact[_nghost-%COMP%]     .tm-loading-card--compact{width:100%}.tm-stripe__card--%NS%compact[_nghost-%COMP%]     .tm-loading-card--compact .o-aspect-ratio__height-controller{padding-top:60%}.tm-stripe__card--%NS%compact[_nghost-%COMP%]     .tm-loading-card__body{min-height:90px}.tm-stripe__card--%NS%compact[_nghost-%COMP%]     .tm-loading-card__details{padding:8px}.tm-stripe__empty-card-illustration[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto;text-align:center}.tm-stripe__show-more-card-link[_ngcontent-%COMP%]{padding-right:48px;padding-left:48px;margin:auto;color:#007acd;text-align:center}@media(min-width:1440px){.tm-stripe__show-more-card-link[_ngcontent-%COMP%]{padding-right:80px;padding-left:80px}}@media(min-width:768px){.tm-stripe--%NS%cropped[_nghost-%COMP%]{margin-right:348px}}@media(min-width:1280px){.tm-stripe--%NS%cropped[_nghost-%COMP%]{margin-right:calc(25% + 4px)}}","tm-sponsored-tag-stripe[_nghost-%COMP%]{display:block;contain:layout}.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__SL-card-container[_ngcontent-%COMP%]{top:20px;position:relative;display:flex;flex-direction:column;margin-right:16px;min-width:264px;max-width:264px}.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__SL-card-container[_ngcontent-%COMP%]:last-child{margin-right:0}@media(min-width:768px){.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__SL-card-container[_ngcontent-%COMP%]{min-width:256px;max-width:256px;margin-right:24px}}@media(min-width:1280px){.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__SL-card-container[_ngcontent-%COMP%]{max-width:none;flex-basis:calc(25% - 18px);flex-grow:1;flex-shrink:0}}.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__SL-card-container--show-more[_ngcontent-%COMP%] > a.o-card[_ngcontent-%COMP%], .tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__SL-card-container--show-more[_ngcontent-%COMP%] > a.o-card[_ngcontent-%COMP%]:hover, .tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__SL-card-container--show-more[_ngcontent-%COMP%] > a.o-card[_ngcontent-%COMP%]:focus{box-shadow:none}.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__carousel-card--placeholder[_ngcontent-%COMP%]{position:relative;top:20px}@media(min-width:1280px){.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]   .tm-stripe__carousel-card[_ngcontent-%COMP%]{flex-grow:1}}.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]  .tg-carousel__content{overflow-y:hidden;margin-bottom:20px}@media screen and (max-width:767px){.tm-stripe__SL-carousel-content[_ngcontent-%COMP%]  .tg-carousel__content{padding-bottom:6px}}.tm-stripe__sponsored-listings-tag[_ngcontent-%COMP%]{margin-left:-8px;position:absolute;top:-28px}"]});let e=t;return e})();var Fa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,hi,X_$1]});let e=t;return e})();var Ci=(()=>{let t=class t{constructor(i){this.options=i,this.type=t.TYPE;}};t.TYPE="[Marketplace/recommended-listings/complementary-listings] GetComplementaryListingsAction";let e=t;return e})(),st=(()=>{let t=class t{constructor(i){this.options=i,this.type=t.TYPE;}};t.TYPE="[Marketplace/recommended-listings/complementary-listings] GetComplementaryListingsFromApiAction";let e=t;return e})(),yi=(()=>{let t=class t{constructor(i,o,a){this.options=i,this.response=o,this.cachedAt=a,this.type=t.TYPE;}};t.TYPE="[Marketplace/recommended-listings/complementary-listings] GetComplementaryListingsFromApiSuccessAction";let e=t;return e})(),xi=(()=>{let t=class t{constructor(i,o){this.options=i,this.error=o,this.type=t.TYPE;}};t.TYPE="[Marketplace/recommended-listings/complementary-listings] GetComplementaryListingsFromApiFailAction";let e=t;return e})();var Ze=Q$1(),bi="[marketplace]ComplementaryListings",Hl={complements:Ze.getInitialState()};function Ba(e,t$1){return t({[st.TYPE]:Yl,[yi.TYPE]:Ql,[xi.TYPE]:Kl},Hl)(e,t$1)}
3function Yl(e,t){let n=ji(t.options),i=Ze.upsertOneTM({id:n,changes:{id:n,isLoading:true}},e.complements);return z$1(y({},e),{complements:i})}function Ql(e,t){let n=ji(t.options),i=Ze.replaceOne({id:n,isLoading:false,cachedAt:t.cachedAt,item:t.response},e.complements);return z$1(y({},e),{complements:i})}function Kl(e,t){let n=ji(t.options),i=Ze.replaceOne({id:n,isLoading:false,error:t.error},e.complements);return z$1(y({},e),{complements:i})}function ji(e){return e.listingId+""}var et;(function(e){let t=Et(bi),n=w$1(t,o=>o.complements),{selectEntities:i}=Ze.getSelectors(n);e.currentComplementaryListings=w$1(i,P$2.currentListingId,(o,a)=>o[a]||{isLoading:false});})(et||(et={}));var em=1e3*60*60*24,Aa=(()=>{let t=class t{constructor(i,o,a,_,S){this._actions$=i,this._store=o,this._timeService=a,this._cacheService=_,this._api=S,this.getComplementaryListingsEffect$=Gt$1(()=>this._actions$.pipe(kt(Ci.TYPE),lo(A=>this._store.select(et.currentComplementaryListings).pipe(An(1),Xt(z=>this._cacheService.shouldFetch(z,{expiryTime:em})),Fe(()=>new st(A.options)))))),this.getComplementaryListingsFromApiEffect$=Gt$1(()=>this._actions$.pipe(kt(st.TYPE),lo(A=>this._api.getComplementaryListings(A.options.listingId,A.options.params).pipe(Fe(z=>
3new yi(A.options,z,this._timeService.now)),Wc$2(z=>$c$2(new xi(A.options,z)))))));}};t.\u0275fac=function(o){return new(o||t)(G$1(Ht),G$1(k),G$1(N0),G$1(b),G$1(Gr))},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})();var vi=(()=>{let t=class t{constructor(i,o){this._store=i,this._listingMapper=o;}getComplementaryListingsForCurrentListing(){return this._store.select(P$2.currentListingId).pipe(An(1),f$2(i=>this._store.dispatch(new Ci({listingId:i})),this._store.select(et.currentComplementaryListings)),Fe(i=>this._listingMapper.mapToMarketplaceListings(i)))}};t.\u0275fac=function(o){return new(o||t)(G$1(k),G$1(Sp))},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})();var Na=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({providers:[vi],imports:[Bt.forFeature([Aa]),rn.forFeature(bi,Ba)]});let e=t;return e})();var Si=(()=>{let t=class t{constructor(i){this.options=i,this.type=t.TYPE;}};t.TYPE="[Marketplace/recommended-listings/equivalent-listings] GetEquivalentListingsAction";let e=t;return e})(),lt=(()=>{let t=class t{constructor(i){this.options=i,this.type=t.TYPE;}};t.TYPE="[Marketplace/recommended-listings/equivalent-listings] GetEquivalentListingsFromApiAction";let e=t;return e})(),Mi=(()=>{let t=class t{constructor(i,o,a){this.options=i,this.response=o,this.cachedAt=a,this.type=t.TYPE;}};t.TYPE="[Marketplace/recommended-listings/equivalent-listings] GetEquivalentListingsFromApiSuccessAction";let e=t;return e})(),Ii=(()=>{let t=class t{constructor(i,o){this.options=i,this.error=o,this.type=t.TYPE;}};t.TYPE="[Marketplace/recommended-listings/equivalent-listings] GetEquivalentListingsFromApiFailAction";let e=t;return e})();var tt=Q$1(),ki="[marketplace]EquivalentListings",im={equivalents:tt.getInitialState()};function Ra(e,t$1){return t({[lt.TYPE]:nm,[Mi.TYPE]:om,[Ii.TYPE]:rm},im)(e,t$1)}function nm(e,t){let n=Ui(t.options),i=tt.upsertOneTM({id:n,changes:{id:n,isLoading:true}},e.equivalents);return z$1(y({},e),{equivalents:i})}function om(e,t){let n=Ui(t.options),i=tt.replaceOne({id:n,isLoading:false,cachedAt:t.cachedAt,item:t.response},e.equivalents);return z$1(y({},e),{equivalents:i})}function rm(e,t){let n=Ui(t.options),i=tt.replaceOne({id:n,isLoading:false,error:t.error&&new o$2(t.error.message,t.error.name)},e.equivalents);return z$1(y({},e),{equivalents:i})}function Ui(e){return e.listingId+""}var it;(function(e){let t=Et(ki),n=Ve$1(t,o=>o.equivalents),{selectEntities:i}=tt.getSelectors(n);e.currentEquivalentListings=Ve$1(i,P$2.currentListingId,(o,a)=>o[a]||{isLoading:false});})(it||(it={}));var am=1e3*60*60,$a=(()=>{let t=class t{constructor(i,o,a,_,S){this._actions$=i,this._store=o,this._timeService=a,this._cacheService=_,this._listingService=S,this.getEquivalentListingsEffect$=Gt$1(()=>this._actions$.pipe(kt(Si.TYPE),lo(A=>this._store.select(it.currentEquivalentListings).pipe(An(1),Xt(z=>this._cacheService.shouldFetch(z,{expiryTime:am})),Fe(()=>new lt(A.options)))))),this.getEquivalentListingsFromApiEffect$=Gt$1(()=>this._actions$.pipe(kt(lt.TYPE),lo(A=>this._listingService.getEquivalentListings(A.options.listingId,A.options.params).pipe(Fe(z=>
3new Mi(A.options,z,this._timeService.now)),Wc$2(z=>$c$2(new Ii(A.options,z)))))));}};t.\u0275fac=function(o){return new(o||t)(G$1(Ht),G$1(k),G$1(N0),G$1(b),G$1(Gr))},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})();var ja=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[Bt.forFeature([$a]),rn.forFeature(ki,Ra)]});let e=t;return e})();var Ti=(()=>{let t=class t{constructor(i,o){this.coreRelatedListings=i,this.listingUtilService=o;}getCurrentRelatedListings$(){return this.coreRelatedListings.getCurrentRelatedListings$().pipe(Fe(i=>this.listingUtilService.mapToMarketplaceListings(i)))}getRelatedListingsByListingId$(i){return this.coreRelatedListings.getRelatedListingsByListingId$(i).pipe(Fe(o=>this.listingUtilService.mapToMarketplaceListings(o)))}};t.\u0275fac=function(o){return new(o||t)(G$1(pe$1),G$1(Sp))},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})();var Va=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({providers:[Ti]});let e=t;return e})();function mm(e,t){if(e&1&&(Ia$1(0,"li")(1,"small"),_D(2,"tg-icon",10),Qx(3),bf()()),e&2){let n=yx();X_(3),Af(" ",n.offerBuyerFeeLine," ");}}function cm(e,t){if(e&1&&(Ia$1(0,"div",0)(1,"div",1)(2,"span",2),Qx(3),Ia$1(4,"p",3),Qx(5),yA(6,"tgCurrency"),bf()(),Ia$1(7,"small",4),Qx(8),bf()(),Ia$1(9,"div",5)(10,"ul")(11,"li")(12,"small"),_D(13,"tg-icon",6),Qx(14),bf()(),Ia$1(15,"li")(16,"small"),_D(17,"tg-icon",7),Qx(18),bf()(),JN(19,mm,4,1,"li"),bf()(),Ia$1(20,"div",8)(21,"button",9),Qx(22," View offer "),bf()()()),e&2){let n=t,i=yx();X_(3),Af(" ",i.getOfferStatusText(n.isCounterOffer)," "),X_(2),rE(DA$1(6,8,n.offerPrice)),X_(3),Af(" ",i.timeUntilOfferExpires(n.expireDate)," "),X_(6),Af(" Payment: ",i.getPaymentOptionText(n.paymentMethodId)," "),X_(4),Af(" Shipping: ",n.shippingMethod," "),X_(),XN(n.offerBuyerFeeLine?19:-1),X_(2),TD("routerLink",rA(i.getRouterLink(n)));}}var Wa=(()=>{let t=class t{constructor(i,o,a,_,S){this._listingFacade=i,this._currentMemberFacade=o,this._auctionOfferFacade=a,this._shippingUtil=_,this._changeDetectorRef=S,this._destroyed$=new W;}ngOnInit(){let i=this._listingFacade.getCurrentListing().pipe(Xt(o=>!!o&&!!o.item),Fe(o=>o.item),o());this.latestOffer$=wC([this._currentMemberFacade.getCurrentMember(),i]).pipe(Xt(([o])=>!!o),lo(([o,a])=>this._auctionOfferFacade.getAllOffersWithSpecificBuyer(a.listingId,o.memberId)),Ui$1(),Xt(o=>o.totalCount>0),Fe(o=>o.list[o.totalCount-1]),o(),Xp$1(this._destroyed$));}timeUntilOfferExpires(i){let o=new Date;return this.closingCountdown(i,o,false)}closingCountdown(i,o,a){let _=c$1(i,o),S=m(i,o)%60,A=a?"":"Expires in ";return _<1&&S>0?`${A}${this.pluraliseIt(S,"min")}`:`${A}${this.pluraliseIt(_,"hr")}`}pluraliseIt(i,o){return `${i} ${o}${i===1?"":"s"}`}getPaymentOptionText(i){switch(i){case _$1.none:return "None";case _$1.bankDeposit:return "NZ bank deposit";case _$1.creditCard:return "Credit Card";case _$1.cash:return "Cash";case _$1.safeTrader:return "Safe Trader";case _$1.other:return "Other";case _$1.ping:return "Ping";case _$1.afterpay:return "Afterpay";default:return ""}}getOfferStatusText(i){return i?un.COUNTER_OFFER:un.YOU_OFFERED}ngOnDestroy(){this._destroyed$.next();}getRouterLink(i){return i.isCounterOffer?`/my-trade-me/offers/${this.listing.listingId}/${i.receiver.memberId}`:`/my-trade-me/offers/${this.listing.listingId}/${i.member.memberId}`}};t.\u0275fac=function(o){return new(o||t)(R$3(pe),R$3(E$1),R$3(It),R$3(se),R$3(mc$2))},t.\u0275cmp=jM({type:t,selectors:[["tm-offer-status-container"]],inputs:{listing:"listing"},standalone:false,decls:2,vars:3,consts:[[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"],["size","small","name","shop-wallet","role","presentation"],["size","small","name","truck-delivery","role","presentation"],[1,"tm-offer-status-container__link"],["tgButton2","","queryParamsHandling","merge",1,"tm-offer-status-container__link-text",3,"routerLink"],["size","small","name","coin","role","presentation"]],template:function(o,a){if(o&1&&(JN(0,cm,23,10,"div",0),yA(1,"async")),o&2){let _;XN((_=DA$1(1,1,a.latestOffer$))?0:-1,_);}},dependencies:[rn$1,He$1,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;display:flex;flex-direction:column;grid-template-columns:repeat(2,1fr);padding-top: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;
3color:#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%]{margin-top:24px;margin-bottom:0}"]});let e=t;return e})();var wi=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,eu,He$1,we,_c$1,X_$1,we]});let e=t;return e})();function gm(e,t){e&1&&(Ia$1(0,"span",11),Qx(1," excl GST "),bf());}function _m(e,t){if(e&1&&(Ia$1(0,"p",12),Qx(1),yA(2,"tgCurrency"),bf()),e&2){let n=yx(3);X_(),Af(" Was ",DA$1(2,1,n.listing()?.wasPrice)," ");}}function fm(e,t){if(e&1&&(Ia$1(0,"div",13),Qx(1," Incl GST price "),Ia$1(2,"span",14),Qx(3),yA(4,"tgCurrency"),bf()()),e&2){let n=yx(3);X_(3),Af(" ",DA$1(4,1,n.listing()?.includeGstStartPrice));}}function um(e,t){if(e&1&&(Ia$1(0,"div",5)(1,"div",6),Qx(2," Asking price "),Ia$1(3,"p",7),Qx(4),yA(5,"tgCurrency"),iD(6,gm,2,0,"span",8),bf()(),iD(7,_m,3,3,"p",9)(8,fm,5,3,"div",10),bf()),e&2){let n=yx(2);X_(4),Af(" ",DA$1(5,4,n.listing()?.startPrice)," "),X_(2),TD("ngIf",n.listing()?.priceType===n.motorPriceTypes.excludingGST),X_(),TD("ngIf",n.listing()?.wasPrice),X_(),TD("ngIf",n.listing()?.includeGstStartPrice);}}function hm(e,t){if(e&1&&(Ia$1(0,"h3",15)(1,"strong"),Qx(2),bf()()),e&2){let n=yx(2);X_(2),Af(" ",n.listing()?.priceDisplay," ");}}function Cm(e,t){if(e&1&&(Ia$1(0,"tg-box2",2),Mf(1),iD(2,um,9,6,"div",3)(3,hm,3,1,"ng-template",null,0,wA),Ja$1(),_D(5,"tm-listing-contact-seller",4),bf()),e&2){let n=Tx(4),i=yx();X_(2),TD("ngIf",i.listing()?.priceType===i.motorPriceTypes.excludingGST||i.listing()?.priceType===i.motorPriceTypes.askingPrice||i.listing()?.wasPrice)("ngIfElse",n),X_(3),zD("tm-marketplace-classified-price-box__contact-seller--no-margin",i.isBusinessesForSale()),TD("currentMember",i.currentMember())("listing",i.listing())("selectedSubject",i.enquiryType.general);}}var za=(()=>{let t=class t{constructor(){this.listing=mq(),this.currentMember=mq(),this.motorPriceTypes=y$1,this.enquiryType=ie$1,this.isBusinessesForSale=bn(()=>{let i=this.listing()?.category;return typeof i=="string"&&t$1(R$4(i),_.BUSINESS_FOR_SALE_ID)});}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=jM({type:t,selectors:[["tm-classified-price-box"]],inputs:{listing:[1,"listing"],currentMember:[1,"currentMember"]},standalone:false,decls:1,vars:1,consts:[["priceDisplay",""],["inverse","","padding","compact","class","tm-marketplace-classified-price-box__box",4,"ngIf"],["inverse","","padding","compact",1,"tm-marketplace-classified-price-box__box"],["tgMarginBottom","","tgMarginBottomSize","base",4,"ngIf","ngIfElse"],[1,"tm-marketplace-classified-price-box__contact-seller",3,"currentMember","listing","selectedSubject"],["tgMarginBottom","","tgMarginBottomSize","base"],[1,"tm-marketplace--classified-price-box__incl-price-container"],[1,"tm-marketplace-classified-price-box__price","p-h1"],["class","tm-marketplace-classified-price-box__excl-gst",4,"ngIf"],["class","tm-motors-pricing-box__was-price",4,"ngIf"],["class","tm-marketplace--classified-price-box__incl-price-container","tgMarginTop","","tgMarginTopSize","base",4,"ngIf"],[1,"tm-marketplace-classified-price-box__excl-gst"],[1,"tm-motors-pricing-box__was-price"],["tgMarginTop","","tgMarginTopSize","base",1,"tm-marketplace--classified-price-box__incl-price-container"],[1,"tm-marketplace-classified-price-box__price"],[1,"h-text-align-center","p-h1"]],template:function(o,a){o&1&&iD(0,Cm,6,7,"tg-box2",1),o&2&&TD("ngIf",a.listing()?.isClassified);},dependencies:[mO,z_,I0,Ld,mr],styles:[".tm-marketplace-classified-price-box__box[_ngcontent-%COMP%]{margin-bottom:0;padding-right:8px;padding-left:8px}.tm-marketplace-classified-price-box__contact-seller[_ngcontent-%COMP%]     .o-button2{margin-bottom:8px}.tm-marketplace-classified-price-box__contact-seller--%NS%no-margin[_ngcontent-%COMP%]     .o-button2{margin-bottom:0}.tm-marketplace-classified-price-box__excl-price[_ngcontent-%COMP%]{margin-left:4px}.tm-marketplace-classified-price-box__excl-gst[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400}.tm-marketplace-classified-price-box__price.p-h1[_ngcontent-%COMP%]{line-height:inherit;margin-bottom:0}.tm-marketplace-classified-price-box__incl-price[_ngcontent-%COMP%]{font-weight:400;text-align:right}.tm-marketplace--classified-price-box__incl-price-container[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;margin-bottom:24px;align-items:center}
3.tm-motors-pricing-box__was-price[_ngcontent-%COMP%]{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}}"]});let e=t;return e})();var qa=e=>({observableValue:e});function bm(e,t){if(e&1&&(_D(0,"tm-marketplace-mini-summary",4),yA(1,"async")),e&2){let n=yx();TD("listing",n.listing)("showPickup",DA$1(1,2,n.showPickup$));}}function vm(e,t){e&1&&(Ia$1(0,"p",6)(1,"span",7),Qx(2,"\xA0"),bf(),Ia$1(3,"span",11),Qx(4,"\xA0"),bf()());}function Sm(e,t){if(e&1&&(Ia$1(0,"tg-box2",5)(1,"p",6)(2,"span",7),Qx(3,"\xA0"),bf(),Ia$1(4,"span",8),Qx(5,"\xA0"),bf()(),Ia$1(6,"p",6)(7,"span",7),Qx(8,"\xA0"),bf(),Ia$1(9,"span",9),Qx(10,"\xA0"),bf()(),iD(11,vm,5,0,"p",10),bf()),e&2){let n=yx();X_(11),TD("ngIf",n.showAllGhostLoading);}}function Mm(e,t){e&1&&_D(0,"tg-icon-left",20);}function Im(e,t){e&1&&_D(0,"tg-icon-left",21);}function km(e,t){if(e&1){let n=dx();Mf(0),Qx(1),Ia$1(2,"button",22),kD("click",function(){Xh(n);let o=yx(5);return eg(o.viewPersonalisationModal())}),Qx(3),_D(4,"tg-pointer",23),bf(),Ia$1(5,"tm-personalised-address-modal",24),cE("showModalChange",function(o){Xh(n);let a=yx(5);return eA(a.showModal,o)||(a.showModal=o),eg(o)}),bf(),Ja$1();}if(e&2){let n=yx().ngIf,i=yx(4);X_(),Af(" ",i.suggestedShippingViewModel.shippingDestinationToText," "),X_(2),Af(" ",i.suggestedShippingViewModel.shippingDestinationText," "),X_(2),aE("showModal",i.showModal),TD("referencingListingId",i.listing==null?null:i.listing.listingId)("currentDeliveryAddressId",n.observableValue==null?null:n.observableValue.deliveryAddressId);}}function Tm(e,t){if(e&1&&(Mf(0),iD(1,km,6,5,"ng-container",12),Ja$1()),e&2){let n=t.ngIf;yx();let i=Tx(13);X_(),TD("ngIf",(n.observableValue==null?null:n.observableValue.deliveryAddressId)!==void 0&&(n.observableValue==null?null:n.observableValue.deliveryAddressId)!==null)("ngIfElse",i);}}function wm(e,t){if(e&1&&Qx(0),e&2){let n=yx(4);oE("",n.suggestedShippingViewModel.shippingDestinationToText,"",n.suggestedShippingViewModel.shippingDestinationText);}}function Om(e,t){if(e&1&&(Ia$1(0,"div",14),_D(1,"tg-icon-left",25),Ia$1(2,"span",18),Qx(3),bf()()),e&2){let n=yx(4);X_(3),Af(" ",n.suggestedShippingViewModel.shippingDeliveryTimeText," ");}}function Pm(e,t){if(e&1&&(Ia$1(0,"div",14),_D(1,"tg-icon-left",26),Ia$1(2,"span",18),Qx(3),bf()()),e&2){let n=yx(4);X_(3),rE(n.suggestedShippingViewModel.pickupLocationText);}}function Lm(e,t){if(e&1&&(Mf(0),Ia$1(1,"tg-box2",5)(2,"div",13)(3,"div",14),Mf(4,15),iD(5,Mm,1,0,"tg-icon-left",16)(6,Im,1,0,"tg-icon-left",17),Ja$1(),Ia$1(7,"span",18)(8,"span"),Qx(9),bf(),iD(10,Tm,2,2,"ng-container",3),yA(11,"async"),iD(12,wm,1,2,"ng-template",null,2,wA),bf()(),iD(14,Om,4,1,"div",19)(15,Pm,4,1,"div",19),bf()(),Ja$1()),e&2){let n=yx(2).ngIf,i=yx();X_(4),TD("ngSwitch",i.suggestedShippingViewModel.shippingType),X_(),TD("ngSwitchCase",i.ShippingTypeEnum.Free),X_(),TD("ngSwitchCase",i.ShippingTypeEnum.Structured),X_(2),zD("tm-marketplace-commerce-box__shipping-line--free",i.suggestedShippingViewModel.shippingType===i.ShippingTypeEnum.Free),X_(),Af(" ",n.observableValue," "),X_(),TD("ngIf",pA(11,qa,DA$1(11,9,i.defaultDeliveryAddress$))),X_(4),TD("ngIf",!!i.suggestedShippingViewModel.shippingDeliveryTimeText),X_(),TD("ngIf",!!i.suggestedShippingViewModel.pickupLocationText&&!!i.suggestedShippingViewModel.shippingDestinationText);}}function Em(e,t){if(e&1&&(Mf(0),iD(1,Lm,16,13,"ng-container",12),Ja$1()),e&2){let n=yx().ngIf;yx();let i=Tx(1);X_(),TD("ngIf",n.observableValue!=="")("ngIfElse",i);}}function Fm(e,t){if(e&1&&(Mf(0),iD(1,Em,2,2,"ng-container",12),Ja$1()),e&2){let n=t.ngIf;yx();let i=Tx(3);X_(),TD("ngIf",n.observableValue!==void 0&&n.observableValue!==null)("ngIfElse",i);}}var Ga=(()=>{let t=class t{constructor(i,o,a,_,S,A){this._shippingUtil=i,this._currencyPipe=o,this._deliveryAddressFacade=a,this._deliveryPreferencesFacade=_,this._shippingParityExperimentService=S,this._listingFacade=A,this.showModal=false,this.suggestedShippingViewModel={},this.ShippingTypeEnum=v$1,this.PickupOptionsEnum=M$2,this.showAllGhostLoading=false,this.showPickup$=this._shippingParityExperimentService.isExperimentEnabled();}
3ngOnChanges(i){let{listing:o$1}=i;o$1&&o$1.currentValue&&(this.suggestedShippingViewModel.shippingType=this.getShippingType(),this.suggestedShippingViewModel.shippingDestinationText=this.getShippingDestinationText(),this.suggestedShippingViewModel.shippingDeliveryTimeText=this.getShippingDeliveryTimeText(),this.suggestedShippingViewModel.pickupLocationText=this.getPickupLocationText(),this.showAllGhostLoading=!!this.suggestedShippingViewModel.pickupLocationText&&!!this.suggestedShippingViewModel.shippingDestinationText&&!!this.suggestedShippingViewModel.shippingDeliveryTimeText,this.defaultDeliveryAddress$=this._deliveryAddressFacade.getDefaultDeliveryAddress().pipe(Wc$2(a=>$c$2(null)),Xt(a=>!a?.isLoading),Fe(a=>a?.item),o()),this.showSuggestedShipping$=this._shippingParityExperimentService.isExperimentEnabled().pipe(Fe(a=>a?this.listingHasValidStructuredShippingTemplate(o$1.currentValue):false)),this.shippingPriceText$=this.getShippingPriceText(),this.sstPriceText$=this.showSuggestedShipping$.pipe(lo(a=>{let _=this.shippingPriceText$.pipe(Fe(S=>S||""));return a?_:$c$2("")})));}viewPersonalisationModal(){this.showModal=true;}getShippingType(){let{shippingTemplateId:i,suggestedShipping:o}=this.listing?.shippingDetails||{};return this.listing.shippingOptions?.some(a=>a.type===S$2.free)||o?.price===0?v$1.Free:i&&o?.price?v$1.Structured:v$1.None}getShippingPriceText(){let{price:i}=this.listing?.shippingDetails?.suggestedShipping||{};return this.defaultDeliveryAddress$.pipe(Fe(o=>{let a=this.listing?.shippingOptions?.filter(S=>S.type===S$2.custom).filter(S=>!S.method?.toLowerCase().includes("combin")).filter(S=>!!S.price).map(S=>S.price),_="";if(a?.length>0){let S=Math.min(...a??[]);o?.deliveryAddressId!==null&&!(S<i)&&(_="cheapest ");}switch(this.suggestedShippingViewModel.shippingType){case v$1.Free:return "Free shipping";case v$1.Structured:return i?`${this._currencyPipe.transform(i)} ${_}shipping`:null;case v$1.None:default:return null}}),o())}getShippingDestinationText(){let{destination:i}=this.listing?.shippingDetails?.suggestedShipping||{};return this.suggestedShippingViewModel.shippingDestinationToText="",i?i==="New Zealand"?"Nationwide":(this.suggestedShippingViewModel.shippingDestinationToText="to ",i):null}getShippingDeliveryTimeText(){let{minValue:i,maxValue:o}=this.listing?.shippingDetails?.suggestedShipping?.deliveryTime||{};if(!i||!o)return null;let[a,_]=[i,o].map(S=>p$3(S)?.days);return a&&_?`Expected delivery in ${a}-${_} business days`:null}getPickupLocationText(){let{pickupLocation:i,allowsPickups:o}=this.listing||{};return o===M$2.allow?`Pick up available, ${i||this._shippingUtil.getShippingOrigin(this.listing)}`:null}listingHasValidStructuredShippingTemplate(i){let{shippingTemplateId:o,suggestedShipping:a}=i?.shippingDetails||{};return !!o&&!!a}};t.\u0275fac=function(o){return new(o||t)(R$3(se),R$3(mr),R$3(N),R$3(L$1),R$3(j$2),R$3(pe))},t.\u0275cmp=jM({type:t,selectors:[["tm-marketplace-suggested-shipping"]],inputs:{listing:"listing"},standalone:false,features:[Zr],decls:6,vars:5,consts:[["withoutShippingTransparency",""],["loadingState",""],["simpleDestinationText",""],[4,"ngIf"],[3,"listing","showPickup"],["padding","compact",1,"tm-marketplace-commerce-box__tg-box2"],[1,"tm-marketplace-commerce-box__loading"],[1,"tm-marketplace-commerce-box__ghost-icon"],[1,"tm-marketplace-commerce-box__ghost-text","p-secondary-copy","medium"],[1,"tm-marketplace-commerce-box__ghost-text","p-secondary-copy","long"],["class","tm-marketplace-commerce-box__loading",4,"ngIf"],[1,"tm-marketplace-commerce-box__ghost-text","p-secondary-copy","short"],[4,"ngIf","ngIfElse"],[1,"tm-marketplace-commerce-box__shipping"],[1,"tm-marketplace-commerce-box__shipping-line"],[3,"ngSwitch"],["size","small","name","truck-free","alt","Shipping",4,"ngSwitchCase"],["size","small","name","truck-delivery","alt","Shipping",4,"ngSwitchCase"],[1,"p-secondary-copy"],["class","tm-marketplace-commerce-box__shipping-line",4,"ngIf"],["size","small","name","truck-free","alt","Shipping"],["size","small","name","truck-delivery","alt","Shipping"],["tgButton2","","linkStyle","",3,"click"],["role","presentation"],[3,"showModalChange","showModal","referencingListingId","currentDeliveryAddressId"],["size","small","name","box-tick","alt","Shipping"],["size","small","name","location","alt","Shipping"]],template:function(o,a){o&1&&(iD(0,bm,2,4,"ng-template",null,0,wA)(2,Sm,12,1,"ng-template",null,1,wA)(4,Fm,2,2,"ng-container",3),yA(5,"async")),o&2&&(X_(4),TD("ngIf",pA(3,qa,DA$1(5,1,a.sstPriceText$))));},dependencies:[mO,Ip,yO,z_,He$1,we,Jd,Re$1,xh,bO],styles:["tm-suggested-shipping[_nghost-%COMP%]{display:block}.tm-marketplace-commerce-box__tg-box2[_ngcontent-%COMP%]{margin-bottom:0;padding:24px 16px;border-top:1px solid #d7d5d2;background-color:#faf9f8}.tm-marketplace-commerce-box__shipping[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0;gap:8px}.tm-marketplace-commerce-box__shipping-line[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.tm-marketplace-commerce-box__shipping-line[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}.tm-marketplace-commerce-box__shipping-line[_ngcontent-%COMP%]   tg-icon-left[_ngcontent-%COMP%]{flex:0 0 auto;margin-right:8px}.tm-marketplace-commerce-box__shipping-line--free[_ngcontent-%COMP%]{color:#00986a;font-weight:500}.tm-marketplace-commerce-box__loading[_ngcontent-%COMP%]{display:flex;height:16px;margin-bottom:8px}.tm-marketplace-commerce-box__loading[_ngcontent-%COMP%]   .tm-marketplace-commerce-box__ghost-icon[_ngcontent-%COMP%]{width:24px;background-color:#e8e6e3}.tm-marketplace-commerce-box__loading[_ngcontent-%COMP%]   .tm-marketplace-commerce-box__ghost-text[_ngcontent-%COMP%]{margin-left:8px;background-color:#e8e6e3}.tm-marketplace-commerce-box__loading[_ngcontent-%COMP%]   .tm-marketplace-commerce-box__ghost-text.long[_ngcontent-%COMP%]{width:calc(85% - 32px)}.tm-marketplace-commerce-box__loading[_ngcontent-%COMP%]   .tm-marketplace-commerce-box__ghost-text.medium[_ng
3content-%COMP%]{width:calc(80% - 32px)}.tm-marketplace-commerce-box__loading[_ngcontent-%COMP%]   .tm-marketplace-commerce-box__ghost-text.short[_ngcontent-%COMP%]{width:calc(75% - 32px)}"]});let e=t;return e})();function Am(e,t){if(e&1&&_D(0,"tm-offer-status-container",3),e&2){let n=yx();TD("listing",n.listing);}}function Dm(e,t){e&1&&_D(0,"tm-make-an-offer-container",4);}var Ha=(()=>{let t=class t{constructor(){this.latestOfferIsActive=false;}ngOnChanges(){if(this.listing&&this.currentMember&&this.buyerOffers&&this.buyerOffers.list&&this.buyerOffers.totalCount&&this.buyerOffers.totalCount>0){let i=this.buyerOffers.list[this.buyerOffers.totalCount-1];this.latestOfferIsActive=i?.status===gn.CREATED;}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=jM({type:t,selectors:[["tm-make-an-offer-box"]],inputs:{listing:"listing",currentMember:"currentMember",buyerOffers:"buyerOffers"},standalone:false,features:[Zr],decls:3,vars:2,consts:[["inverse","","padding","compact",1,"tm-marketplace-make-an-offer-box__container"],["makeAnOfferContainerSlot","",3,"listing",4,"ngIf"],["makeAnOfferContainerSlot","",4,"ngIf"],["makeAnOfferContainerSlot","",3,"listing"],["makeAnOfferContainerSlot",""]],template:function(o,a){o&1&&(Ia$1(0,"tg-box2",0),iD(1,Am,1,1,"tm-offer-status-container",1)(2,Dm,1,0,"tm-make-an-offer-container",2),bf()),o&2&&(X_(),TD("ngIf",a.latestOfferIsActive),X_(),TD("ngIf",!a.latestOfferIsActive));},dependencies:[mO,Wa,c7,z_],styles:[".tm-marketplace-make-an-offer-box__container[_ngcontent-%COMP%]{margin-bottom:0;border-top:1px solid #d7d5d2}"]});let e=t;return e})();function jm(e,t){if(e&1&&_D(0,"tm-marketplace-closing-datetime",12),e&2){let n=yx(2);TD("listing",n.listing);}}function Vm(e,t){e&1&&(Ia$1(0,"div"),Qx(1,"Closing..."),bf());}function Um(e,t){if(e&1){let n=dx();Ia$1(0,"tm-listing-watchlist",18),kD("visibleChange",function(o){Xh(n);let a=yx(2);return eg(a.onWatchlistVisibilityChange(o))}),bf();}if(e&2){let n=yx(2);TD("listing",n.listing)("addToWatchlistOptions",n.addToWatchlistDefaultOptions);}}function Wm(e,t){if(e&1&&_D(0,"tm-watchlist-reminder",12),e&2){let n=yx(2);TD("listing",n.listing);}}function zm(e,t){if(e&1&&(Ia$1(0,"p",19)(1,"strong"),Qx(2),bf(),Qx(3," others watchlisted "),bf()),e&2){let n=yx(2);X_(2),rE(n.listing?.bidderAndWatchers||0);}}function qm(e,t){if(e&1&&(Ia$1(0,"tg-rack",14)(1,"tg-rack-item")(2,"tg-rack-item-prefix"),_D(3,"tg-icon",15),bf(),Ia$1(4,"tg-rack-item-primary"),iD(5,jm,1,1,"tm-marketplace-closing-datetime",9)(6,Vm,2,0,"div",6),bf()()(),iD(7,Um,1,2,"tm-listing-watchlist",16)(8,Wm,1,1,"tm-watchlist-reminder",9)(9,zm,4,1,"p",17)),e&2){let n=yx();X_(3),zD("tm-marketplace-buyer-options__closing-time--closing-soon",n.isClosingSoon&&!n.isClosed&&!n.listingIsClosing),X_(2),TD("ngIf",n.listing&&!n.listingIsClosing),X_(),TD("ngIf",n.listingIsClosing),X_(),TD("ngIf",n.canShowWatchlistButton),X_(),TD("ngIf",n.canShowWatchlistButton),X_(),TD("ngIf",n.showBidderWatchers);}}function Gm(e,t){if(e&1&&(Ia$1(0,"div",20),_D(1,"tm-member-profile-image",21),bf()),e&2){let n=yx();X_(),TD("member",n.listing==null?null:n.listing.memberProfile)("store",n.listing==null?null:n.listing.store);}}function Hm(e,t){if(e&1&&(Ia$1(0,"p",22),Qx(1),bf()),e&2){let n=yx();X_(),Af(" ",n.listing?.subtitle,`
4`);}}function Ym(e,t){e&1&&_D(0,"tg-icon",25);}function Qm(e,t){if(e&1&&(Ia$1(0,"tg-info-box-actions")(1,"a",26),Qx(2," Learn more "),bf()()),e&2){let n=yx(2);X_(),TD("href",n.covid19ResponseLink,Ry);}}function Km(e,t){if(e&1&&(Ia$1(0,"tg-info-box",23),iD(1,Ym,1,0,"tg-icon",24),Qx(2),iD(3,Qm,3,1,"tg-info-box-actions",6),bf()),e&2){let n=yx();TD("tgStyle",n.covid19InfoBoxStyle),X_(),TD("ngIf",n.showCovid19ResponseIcon),X_(),Af(" ",n.covid19ResponseMessage," "),X_(),TD("ngIf",n.showCovid19ResponseLink);}}function Jm(e,t){e&1&&(Ia$1(0,"div"),Qx(1,"Listing was withdrawn by the seller"),bf());}function Xm(e,t){e&1&&ND(0);}function Zm(e,t){if(e&1&&(Mf(0),iD(1,Xm,1,0,"ng-container",27),Ja$1()),e&2){yx();let n=Tx(1);X_(),TD("ngTemplateOutlet",n);}}function ec(e,t){if(e&1&&_D(0,"tm-classified-price-box",28),e&2){let n=yx();TD("currentMember",n.currentMember)("listing",n.listing);}}function tc(e,t){if(e&1&&_D(0,"tm-buy-now-box",28),e&2){let n=yx();TD("currentMember",n.currentMember)("listing",n.listing);}}function ic(e,t){if(e&1&&_D(0,"tm-sold-info-box",12),e&2){let n=yx();TD("listing",n.listing);}}function nc(e,t){if(e&1&&_D(0,"tm-listing-auction",29),e&2){let n=yx();TD("isLoading",n.isLoading)("listing",n.listing);}}
4function oc(e,t){if(e&1&&(_D(0,"tm-make-an-offer-box",30),yA(1,"async")),e&2){let n=yx();TD("currentMember",n.currentMember)("listing",n.listing)("buyerOffers",DA$1(1,3,n.buyerOffers$));}}function rc(e,t){if(e&1&&_D(0,"tm-marketplace-suggested-shipping",12),e&2){let n=yx();TD("listing",n.listing);}}function ac(e,t){e&1&&_D(0,"tm-buyer-protection");}function sc(e,t){e&1&&_D(0,"tm-motors-dealer-finance-summary");}function lc(e,t){e&1&&ND(0);}function mc(e,t){if(e&1&&(Mf(0),iD(1,lc,1,0,"ng-container",27),Ja$1()),e&2){yx();let n=Tx(1);X_(),TD("ngTemplateOutlet",n);}}function cc(e,t){if(e&1){let n=dx();Ia$1(0,"button",35),kD("click",function(){Xh(n);let o=yx(2);return eg(o.showLoginModal())}),Qx(1," Login "),Ia$1(2,"span"),Qx(3," to view the advertiser's phone\xA0number. "),bf()();}}function pc(e,t){if(e&1&&_D(0,"img",33),e&2){yx();let n=nA(3);yx();let i=nA(23);TD("src",n,Ry)("alt",i.name);}}function dc(e,t){if(e&1&&_D(0,"img",37),e&2){yx(2);let n=nA(0);TD("src",n.photo,Ry)("alt",n.fullName);}}function gc(e,t){if(e&1&&(Ia$1(0,"span",39),Qx(1),bf()),e&2){yx(3);let n=nA(0);X_(),Af("Mobile: ",n.mobilePhoneNumber);}}function _c(e,t){if(e&1&&(Ia$1(0,"span",39),Qx(1),bf()),e&2){yx(3);let n=nA(0);X_(),Af("Office: ",n.officePhoneNumber);}}function fc(e,t){if(e&1&&(Ia$1(0,"div",40),JN(1,gc,2,1,"span",39),JN(2,_c,2,1,"span",39),bf()),e&2){yx(2);let n=nA(0);X_(),XN(n.mobilePhoneNumber?1:-1),X_(),XN(n.officePhoneNumber?2:-1);}}function uc(e,t){e&1&&ND(0);}function hc(e,t){if(e&1&&iD(0,uc,1,0,"ng-container",27),e&2){yx(2);let n=Tx(5);TD("ngTemplateOutlet",n);}}function Cc(e,t){if(e&1&&(Ia$1(0,"div",36),JN(1,dc,1,2,"img",37),Ia$1(2,"div")(3,"span",38),Qx(4),bf(),Ia$1(5,"span",39),Qx(6),bf()()(),JN(7,fc,3,2,"div",40)(8,hc,1,1,"ng-container")),e&2){yx();let n=nA(0),i=nA(1);yx();let o=nA(23),a=!!(n.mobilePhoneNumber||n.officePhoneNumber);X_(),XN(n.photo?1:-1),X_(3),Af(" ",n.fullName," "),X_(2),rE(o.name),X_(),XN(i&&a?7:a?8:-1);}}function yc(e,t){if(e&1&&(Ia$1(0,"div",40)(1,"span",39),Qx(2),bf()()),e&2){yx(4);let n=nA(23);X_(2),Af("Phone: ",n.phoneNumber);}}function xc(e,t){if(e&1&&JN(0,yc,3,1,"div",40),e&2){yx(3);let n=nA(23);XN(n.phoneNumber?0:-1);}}function bc(e,t){e&1&&ND(0);}function vc(e,t){if(e&1&&iD(0,bc,1,0,"ng-container",27),e&2){yx(2);let n=Tx(5);TD("ngTemplateOutlet",n);}}function Sc(e,t){if(e&1&&(Ia$1(0,"div",36)(1,"span",38),Qx(2),bf()(),JN(3,xc,1,1)(4,vc,1,1,"ng-container")),e&2){yx();let n=nA(1);yx();let i=nA(23);X_(2),Af(" ",i.name," "),X_(),XN(n?3:i.phoneNumber?4:-1);}}function Mc(e,t){if(e&1&&(lE(0)(1),yA(2,"async"),lE(3),iD(4,cc,4,0,"ng-template",null,1,wA),Ia$1(6,"section",31)(7,"div",32),JN(8,pc,1,2,"img",33),bf(),Ia$1(9,"div",34),JN(10,Cc,9,4)(11,Sc,5,2),bf()()),e&2){let n=yx(),i=nA(23),o=i.agents?.[0],a=tA(o&&o.fullName!==i.name?o:null);X_(),tA(DA$1(2,5,n.isLoggedIn$)),X_(2);let _=tA(i.logo2||i.logo);X_(4),Xa$1("background-color",i.branding?.backgroundColor),X_(),XN(_?8:-1),X_(2),XN(a?10:11);}}function Ic(e,t){if(e&1&&_D(0,"tm-seller-trust",13),e&2){let n=yx();TD("listing",n.listing)("isLoading",n.isLoading);}}function kc(e,t){e&1&&(Ia$1(0,"div"),Qx(1,"Listing was withdrawn by the seller"),bf());}var Tc=5,wc="covers you up to $2,500 on this item when you pay with Ping or Afterpay if your item doesn't show up or isn't as described.",Ya=(()=>{let t=class t{constructor(i,o,a,_,S,A,z,nt,ot){this._listingUtilService=i,this._closingTimeService=o,this._covidFacade=a,this._changeDetectorRef=_,this._currentMemberFacade=S,this.mediaSizeFacade=A,this._shippingParityExperimentService=z,this._auctionOfferFacade=nt,this._listingFacade=ot,this.watchlistVisibilityChange=new Pt,this.canShowWatchlistButton=false,this.canBuyNow=false,this.isBuyNowPurchased=false,this.isAuction=false,this.isMyListing=false,this.isBusinessesForSale=false,this.isClosed=false,this.isOpen=true,this.listingIsClosing=false,this.showBidderWatchers=false,this._destroyed$=new W,this.isEssentialListing=false,this.isInTradeSeller=false,this.covid19InfoBoxStyle=null,this.showCovid19ResponseIcon=false,this.showCovid19ResponseLink=true,this.addToWatchlistDefaultOptions={emailOption:se$1.useDefault},this.buyerProtectionCustomText=wc,this.isLoggedIn$=this._currentMemberFacade.isLoggedIn$;}ngOnInit(){this.isUserInShippingParityExperiment$=this._shippingParityExperimentService.isExperimentEnabled(),this.listing$=this._listingFacade.getCurrentListing(
4).pipe(Xt(i=>!!i&&!!i.item),Fe(i=>i.item),o()),this.currentMember$=this._currentMemberFacade.selectCurrentMember().pipe(Xt(i=>!!i&&!!i.item),Fe(i=>i.item)),this.shouldShowMaoBox$=this._auctionOfferFacade.canCurrentMemberUseMakeAnOfferOnMarketplaceListing(this.listing$),this.buyerOffers$=wC([this.shouldShowMaoBox$,this.listing$,this.currentMember$]).pipe(Xt(([i,o,a])=>i&&!!o&&!!a),lo(([i,o,a])=>this._auctionOfferFacade.getAllOffersWithSpecificBuyer(o.listingId,a.memberId)));}ngOnChanges(i){i.listingStoreItem$&&(wC([this.listingStoreItem$,this._currentMemberFacade.selectCurrentMember()]).pipe(Xp$1(this._destroyed$)).subscribe(([o,a])=>{this.calculateValues(o.item,a.item),this._changeDetectorRef.markForCheck();}),this.canShowStoreLogo$=wC([this.mediaSizeFacade.getMediaSize(),this.listingStoreItem$]).pipe(Fe(([o,a])=>!o.isSm&&this.calculateCanShowStoreLogo(a.item))));}ngOnDestroy(){this._destroyed$.next();}calculateValues(i,o){this.listing=i,this.currentMember=o,this.isClosed=false,this.isOpen=true,this.isMyListing=false,this.canBuyNow=false,this.canShowWatchlistButton=false,this.isBuyNowPurchased=false,this.isAuction=true,this.showBidderWatchers=false,this.isEligibleForBuyerProtection=false,this.isBusinessesForSale=false,i&&(this.isBusinessesForSale=typeof i.category=="string"&&t$1(R$4(i.category),_.BUSINESS_FOR_SALE_ID),this.isClosed=this._listingUtilService.listingIsResolved(i)||i.withdrawnBySeller,this.listingIsClosing=!this.isClosed&&this._listingUtilService.listingIsInClosingState(i),this.isOpen=!this.isClosed&&!this.listingIsClosing,this.isMyListing=i.member&&o&&i.member.memberId===o.memberId,this.canBuyNow=this.isOpen&&i.hasBuyNow&&!i.isReserveMet,this.canShowWatchlistButton=!this.isClosed&&!this.listingIsClosing&&!this.isMyListing,this.isBuyNowPurchased=this.getIsBuyNowPurchased(i),this.isAuction=!(i.reserveState&&i.reserveState===G$2.notApplicable),this.showBidderWatchers=i.bidderAndWatchers>=Tc&&!this.isMyListing,this.isEligibleForBuyerProtection=i.isEligibleForBuyerProtection,this.isClosingSoon=this._closingTimeService.isClosingSoon(this.listing.endDate),this.setCovid19ResponseData());}calculateCanShowStoreLogo(i){return !i||!i.store||!i.store.storePath||!i.memberProfile||!i.memberProfile.photo||!i.renderOptions||!i.renderOptions.includes(lt$1.canDisplayMemberImageInBuyerOptions)?false:!X$1.some(o=>i.memberProfile.photo.indexOf(o)>-1)}getIsBuyNowPurchased(i){let o=i.bidCount&&i.bids&&i.bids.list[0]&&i.bids.list[0].isBuyNow,a=i.hasMultiple;return o&&!a}setCovid19ResponseData(){this._covidFacade.isInLockdown().pipe(Xt(i=>!!i),lo(()=>this._covidFacade.getCovidAlertLevel()),An(1),Xp$1(this._destroyed$)).subscribe(i=>{if(!this.listing){this.showCovidNotice=false;return}switch(this.isEssentialListing=this.listing.isEssentialListing,this.isInTradeSeller=this.listing.member?this.listing.member.isInTrade:false,this.covid19InfoBoxStyle=this.listing.isClassified?null:"primary",this.showCovid19ResponseIcon=!this.listing.isClassified,this.showCovid19ResponseLink=true,this.showCovidNotice=this.isOpen,i){case K$1.level4:this.covid19ResponseMessage="Some courier services are experiencing delays. Please expect extended delivery timeframes. Please follow our Covid-19 safe trading guidelines.",this.covid19ResponseLink="https://help.trademe.co.nz/hc/en-us/articles/360041800771-COVID-19-safe-trading-guidelines";break;case K$1.level3:this.listing.isClassified?(this.covid19ResponseMessage="Please follow our COVID-19 safe trading guidelines.",this.covid19ResponseLink="https://www.trademe.co.nz/c/community/news/covid-19-update-17-august-2021"):(this.covid19ResponseMessage="This trade can be completed at the current alert level. Please follow our COVID-19 safe trading guidelines.",this.covid19ResponseLink="https://www.trademe.co.nz/c/community/news/covid-19-update-17-august-2021");break;default:this.covid19ResponseMessage=null,this.covid19ResponseLink=null;break}this._changeDetectorRef.markForCheck();});}showLoginModal(){this._currentMemberFacade.ensureLoggedIn().catch(()=>{});}onWatchlistVisibilityChange(i){this.watchlistVisibilityChange.emit(!i.isVisible&&i.elementViewportPosition===o$3.above);}};t.\u0275fac=function(o){return new(o||t)(R$3(Y),R$3(K),R$3(ar),R$3(mc$2),R$3(E$1),R$3(G),R$3(j$2),R$3(It),R$3(pe))},t.\u0275cmp=jM({type:t,selectors:[["tm-marketplace-buyer-options"]],inputs:{listingStoreItem$:"listingStoreItem$",isLoading:"isLoading"},outputs:{watchlistVisibilityChange:"watchlistVisibilityChange"},standalone:false,features:[Zr],decls:27,vars:28,consts:[["watchlistinfo",""],["loginToViewNumber",""],["class","tm-marketplace-buyer-options__profile-image",4,"ngIf"],[1,"tm-marketplace-buyer-options__listing_title"],["class","tm-marketplace-buyer-options__subtitle p-subtitle",4,"ngIf"],[3,"tgStyle",4,"ngIf"],[4,"ngIf"],[1,"tm-marketplace-buyer-options__commerce-box"],[3,"currentMember","listing",4,"ngIf"],[3,"listing",4,"ngIf"],[3,"isLoading","listing",4,"ngIf"],[3,"currentMember","listing","buyerOffers",4,"ngIf"],[3,"listing"],[3,"listing","isLoading"],[1,"tm-marketplace-buyer-options__closing-time-rack"],["name","clock","role","presentation"],["tmTrackVisible","","class","tm-marketplace-buyer-options__listing_watchlist",3,"listing","addToWatchlistOptions","visibleChange",4,"ngIf"],["class","tm-marketplace-buyer-options__watchers-count h-text-align-center p-secondary-copy",4,"ngIf"],["tmTrackVisible","",1,"tm-marketplace-buyer-options__listing_watchlist",3,"visibleChange","listing","addToWatchlistOptions"],[1,"tm-marketplace-buyer-options__watchers-count","h-text-align-center","p-secondary-copy"],[1,"tm-marketplace-buyer-options__profile-image"],["size","large",3,"member","store"],[1,"tm-marketplace-buyer-options__subtitle","p-subtitle"],[3,"tgStyle"],["name","basic-info-framed","alt","information",4,"ngIf"],["name","basic-info-framed","alt","information"],["rel","noopener noreferrer","target","_blank",3,"href"],[4,"ngTemplateOutlet"],[3,"currentMember","listing"],[3,"isLoading","listing"],[3,"currentMember","listing","buyerOffers"],["aria-label","Advert
4iser's details",1,"tm-marketplace-buyer-options__agency-trust-box"],[1,"tm-marketplace-buyer-options__agency-trust-branding"],[1,"tm-marketplace-buyer-options__agency-trust-logo",3,"src","alt"],[1,"tm-marketplace-buyer-options__agency-trust-content"],["transparent","","tgButton2","",1,"tm-marketplace-buyer-options__agency-trust-login-link",3,"click"],[1,"tm-marketplace-buyer-options__agency-trust-info"],[1,"tm-marketplace-buyer-options__agency-trust-photo",3,"src","alt"],[1,"tm-marketplace-buyer-options__agency-trust-agent-name"],[1,"p-secondary-copy"],[1,"tm-marketplace-buyer-options__agency-trust-contact"]],template:function(o,a){if(o&1&&(iD(0,qm,10,7,"ng-template",null,0,wA)(2,Gm,2,2,"div",2),yA(3,"async"),Ia$1(4,"h1",3),Qx(5),bf(),iD(6,Hm,2,1,"p",4)(7,Km,4,4,"tg-info-box",5)(8,Jm,2,0,"div",6)(9,Zm,2,1,"ng-container",6),yA(10,"async"),Ia$1(11,"div",7),iD(12,ec,1,2,"tm-classified-price-box",8)(13,tc,1,2,"tm-buy-now-box",8)(14,ic,1,1,"tm-sold-info-box",9)(15,nc,1,2,"tm-listing-auction",10)(16,oc,2,5,"tm-make-an-offer-box",11),yA(17,"async"),JN(18,rc,1,1,"tm-marketplace-suggested-shipping",12),bf(),JN(19,ac,1,0,"tm-buyer-protection"),iD(20,sc,1,0,"tm-motors-dealer-finance-summary",6)(21,mc,2,1,"ng-container",6),yA(22,"async"),lE(23),JN(24,Mc,12,9)(25,Ic,1,2,"tm-seller-trust",13),iD(26,kc,2,0,"div",6)),o&2){X_(2),TD("ngIf",DA$1(3,19,a.canShowStoreLogo$)),X_(2),zD("tm-marketplace-buyer-options__ghost-block",!a.listing),X_(),Af(" ",a.listing?.title||"\xA0",`
5`),X_(),TD("ngIf",a.listing?.subtitle),X_(),TD("ngIf",a.showCovidNotice),X_(),TD("ngIf",a.listing?.withdrawnBySeller),X_(),TD("ngIf",!DA$1(10,21,a.mediaSizeFacade.is.sm$)),X_(3),TD("ngIf",a.listing?.isClassified),X_(),TD("ngIf",a.canBuyNow),X_(),TD("ngIf",a.isBuyNowPurchased),X_(),TD("ngIf",a.isAuction&&!a.isBuyNowPurchased),X_(),TD("ngIf",DA$1(17,23,a.shouldShowMaoBox$)),X_(2),XN(a.isBusinessesForSale?-1:18),X_(),XN(a.isEligibleForBuyerProtection?19:-1),X_(),TD("ngIf",a.listing?.isClassified),X_(),TD("ngIf",DA$1(22,25,a.mediaSizeFacade.is.sm$)),X_(2);let _=tA(a.listing?.agency);X_(),XN(_?24:25),X_(2),TD("ngIf",a.listing?.withdrawnBySeller);}},dependencies:[mO,IO,za,TV,rs$1,Ri,ne,we,zc$1,zo,Gc$1,Hc$1,Sd$1,He$1,Xe,Mi$1,AK,Vc,lr,Tr,Op$1,x$1,aV,Ga,Ha,bO],styles:["tm-marketplace-buyer-options[_nghost-%COMP%]{display:flex;flex-direction:column}.tm-marketplace-buyer-options__ghost-block[_ngcontent-%COMP%]{background-color:#e6e9ef}.tm-marketplace-buyer-options__profile-image[_ngcontent-%COMP%]{margin-bottom:8px;text-align:center}.tm-marketplace-buyer-options__watchers-count[_ngcontent-%COMP%]{display:block;margin-top:-8px;margin-right:0;text-align:center}@media(min-width:768px){.tm-marketplace-buyer-options__watchers-count[_ngcontent-%COMP%]{margin-bottom:16px}}.tm-marketplace-buyer-options__closing-time--closing-soon[_ngcontent-%COMP%]{color:#e34647}.tm-marketplace-buyer-options__listing_watchlist[_ngcontent-%COMP%]     .o-button2{margin-bottom:16px}.tm-marketplace-buyer-options__listing_title[_ngcontent-%COMP%], .tm-marketplace-buyer-options__subtitle[_ngcontent-%COMP%], .tm-marketplace-buyer-options__closing-time-rack[_ngcontent-%COMP%]{margin-bottom:16px}.tm-marketplace-buyer-options__closing-time-rack[_ngcontent-%COMP%]     .o-rack-item__main{padding:0}.tm-marketplace-buyer-options__commerce-box[_ngcontent-%COMP%]{margin-bottom:16px;overflow:hidden;border:1px solid #d7d5d2;border-radius:8px;box-shadow:0 1px 2px #0000001a}tm-buy-now-box[_ngcontent-%COMP%] + tm-listing-auction[_ngcontent-%COMP%]{margin-top:-8px}.tm-marketplace-buyer-options__agency-trust-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:16px;margin-bottom:24px;overflow:hidden;border:1px solid #d7d5d2;border-radius:8px;box-shadow:0 1px 2px #0000001a}.tm-marketplace-buyer-options__agency-trust-branding[_ngcontent-%COMP%]{width:100%}.tm-marketplace-buyer-options__agency-trust-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:8px}.tm-marketplace-buyer-options__agency-trust-logo[_ngcontent-%COMP%]{display:block;max-width:100%;margin:auto;padding:4px}.tm-marketplace-buyer-options__agency-trust-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.tm-marketplace-buyer-options__agency-trust-photo[_ngcontent-%COMP%]{width:48px;height:48px;border-radius:50%;flex-shrink:0;object-fit:cover}
5.tm-marketplace-buyer-options__agency-trust-agent-name[_ngcontent-%COMP%]{display:block;font-weight:700}.tm-marketplace-buyer-options__agency-trust-login-link[_ngcontent-%COMP%]{min-height:auto;padding:0;margin-bottom:0;font-size:.875rem;vertical-align:baseline}.tm-marketplace-buyer-options__agency-trust-contact[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}"]});let e=t;return e})();var Qa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,Ec,mc$1,Ad,eu,_c$1]});let e=t;return e})();var Ka=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,wi,b7,Ec]});let e=t;return e})();var Ja=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({providers:[se,mr],imports:[VO,Ec,He$1,we,we,we,we,Zd,j$1,Wc$1,eu]});let e=t;return e})();var Xa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,Qa,a$1,EV,xs$1,ji$1,Se,_e,pb,we,we,Ar,mc$1,kd,He$1,Xe,wt,t7,Ec,eu,bu,yV,Ja,wi,Ka]});let e=t;return e})();function Pc(e,t){if(e&1&&_D(0,"tg-color-stamp",5),e&2){let n=yx().$implicit;TD("color",n.value.toLowerCase());}}function Lc(e,t){if(e&1&&(Ia$1(0,"tg-rack-item",2)(1,"tg-rack-item-primary",3),Qx(2),bf(),Ia$1(3,"tg-rack-item-secondary"),iD(4,Pc,1,1,"tg-color-stamp",4),Qx(5),bf()()),e&2){let n=t.$implicit,i=yx();X_(2),Af(" ",n.displayName,": "),X_(2),TD("ngIf",i.hasColorStamp(n)),X_(),Af(" ",n.value," ");}}var Za=(()=>{let t=class t{constructor(){this.displayColorStamp=false;}hasColorStamp(i){return this.displayColorStamp&&!!i&&(i.displayName||"").toLowerCase()==="colour"&&Vr[i.value.toLowerCase()]!=null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=jM({type:t,selectors:[["tm-listing-attributes-rack"]],inputs:{attributes:"attributes",displayColorStamp:"displayColorStamp"},standalone:false,decls:2,vars:1,consts:[["alignTop",""],["class","tm-listing-attributes-rack__rack-item",4,"ngFor","ngForOf"],[1,"tm-listing-attributes-rack__rack-item"],[1,"p-label"],["compact","",3,"color",4,"ngIf"],["compact","",3,"color"]],template:function(o,a){o&1&&(Ia$1(0,"tg-rack",0),iD(1,Lc,6,3,"tg-rack-item",1),bf()),o&2&&(X_(),TD("ngForOf",a.attributes));},dependencies:[YI,mO,zc$1,zo,Hc$1,db,nb],styles:["tm-listing-attributes-rack[_nghost-%COMP%]{display:block}.tm-listing-attributes-rack__rack-item[_ngcontent-%COMP%]   .p-label[_ngcontent-%COMP%]{padding-right:0;margin-bottom:0}@media(min-width:1024px){.tm-listing-attributes-rack__rack-item[_ngcontent-%COMP%]{display:inline-block;width:50%}.tm-listing-attributes-rack__rack-item[_ngcontent-%COMP%]:nth-child(odd){padding-right:24px}.tm-listing-attributes-rack__rack-item[_ngcontent-%COMP%]   .o-rack-item__primary[_ngcontent-%COMP%]{flex-grow:0}.tm-listing-attributes-rack__rack-item[_ngcontent-%COMP%]   .o-rack-item__secondary[_ngcontent-%COMP%]{text-align:left}}"]});let e=t;return e})();var es=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,Ar,rb]});let e=t;return e})();var ts=(()=>{let t=class t{constructor(i,o){this._variantFacade=i,this._areaOfSiteFacade=o;}getListingAttributes(i){let{variantDefinition:o,listingId:a}=i;return o?this._areaOfSiteFacade.selectCurrentAreaOfSite().pipe(lo(_=>this.getVariantAttributesForAreaOfSite(a,_))):$c$2(i.attributes||[])}getVariantAttributesForAreaOfSite(i,o){return o===s$2.motors?this._variantFacade.getVariantAttributes(i).pipe(Fe(a=>this.mapVariantAttributes(a.item))):this._variantFacade.getVariantOptions(i).pipe(Fe(a=>this.mapVariantOptions(a.item)))}mapVariantOptions(i){return i&&i.map(a=>({name:a.name,displayName:a.name,value:a.value}))||[]}mapVariantAttributes(i){return i&&i.map(a=>z$1(y({},a),{displayName:a.displayName||a.name}))||[]}};t.\u0275fac=function(o){return new(o||t)(G$1(jn),G$1(l$1))},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Bc(e,t){e&1&&(Ia$1(0,"tg-col",4)(1,"div"),_D(2,"img",5),bf(),Ia$1(3,"div",6),Qx(4,"Pay Now by credit card"),bf()());}function Ac(e,t){e&1&&(Ia$1(0,"tg-col",7),_D(1,"tm-ping-logo",8),Ia$1(2,"p"),Qx(3,"Pay instantly by card and Ping balance."),bf(),Ia$1(4,"p")(5,"a",9),Qx(6," What's Ping? "),bf()()());}function Dc(e,t){e&1&&(Ia$1(0,"tg-col",7),_D(1,"tm-afterpay-logo",10),Ia$1(2,"p"),Qx(3,"Four fortnightly interest-free payments."),bf(),Ia$1(4,"p"),_D(5,"tm-afterpay-help-link"),bf()());}function Nc(e,t){e&1&&(Ia$1(0,"p",12),Qx(1," Other options "),bf());}
5function Rc(e,t){if(e&1&&(Ia$1(0,"tg-col",7),iD(1,Nc,2,0,"p",11),Ia$1(2,"p"),Qx(3),bf()()),e&2){let n=yx(2);X_(),TD("ngIf",n.listing.hasPing||n.hasAfterpay),X_(2),Af(" ",n.otherPaymentOptions," ");}}function $c(e,t){if(e&1&&(Ia$1(0,"div",1)(1,"tg-row"),iD(2,Bc,5,0,"tg-col",2)(3,Ac,7,0,"tg-col",3)(4,Dc,6,0,"tg-col",3)(5,Rc,4,2,"tg-col",3),bf()()),e&2){let n=yx();X_(2),TD("ngIf",n.listing.hasPayNow&&!n.listing.hasPing),X_(),TD("ngIf",n.listing.hasPing),X_(),TD("ngIf",n.hasAfterpay),X_(),TD("ngIf",n.otherPaymentOptions);}}var is=(()=>{let t=class t{constructor(i,o){this._paymentOptionsUtility=i,this._afterpayHelperService=o;}ngOnInit(){this.hasAfterpay=this._afterpayHelperService.doesListingHaveAfterpay(this.listing);}get otherPaymentOptions(){let i=[];return this.listing.hasPing&&(i.push(a$3),i.push(p$4)),this.hasAfterpay&&i.push(O),this._paymentOptionsUtility.removePaymentOptions(this.listing.paymentOptions||"",i)}};t.\u0275fac=function(o){return new(o||t)(R$3(u$2),R$3(h$2))},t.\u0275cmp=jM({type:t,selectors:[["tm-listing-payment-options"]],inputs:{listing:"listing"},standalone:false,decls:1,vars:1,consts:[["summary","Payment options for this listing",4,"ngIf"],["summary","Payment options for this listing"],["lg","6","md","6","sm","12",4,"ngIf"],["lg","6","md","6","sm","12","class","tm-listing-payment-options__col",4,"ngIf"],["lg","6","md","6","sm","12"],["alt","Pay Now logo","src","/images/frend/logo-paynow.png"],[1,"h-text-align-right"],["lg","6","md","6","sm","12",1,"tm-listing-payment-options__col"],["colour","",1,"tm-listing-payment-options__ping-logo"],["href","https://help.trademe.co.nz/hc/en-us/articles/360007264471-Ping","rel","noopener noreferrer","target","_blank"],["inline",""],["class","tm-listing-payment-options__other",4,"ngIf"],[1,"tm-listing-payment-options__other"]],template:function(o,a){o&1&&iD(0,$c,6,4,"div",0),o&2&&TD("ngIf",a.listing);},dependencies:[mO,u$3,Fb,Ab,w,E$4],styles:["tm-listing-payment-options[_nghost-%COMP%]{display:block}.tm-listing-payment-options__col[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-bottom:8px}.tm-listing-payment-options__col[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-bottom:24px}.tm-listing-payment-options__ping-logo[_ngcontent-%COMP%]{display:block}.tm-listing-payment-options__other[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:700}"]});let e=t;return e})();var mt=(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})(mt||{});var Uc=(e,t)=>({"tm-special-offer-modal__enquire-button":e,"tm-special-offer-modal__solo-enquire-button":t});function Wc(e,t){if(e&1&&(Ia$1(0,"div",15),_D(1,"tm-image-container",16),bf()),e&2){let n=yx().ngIf;X_(),TD("imageUrl",n.imageUrl);}}function zc(e,t){if(e&1&&(Ia$1(0,"div",17),Qx(1),bf()),e&2){let n=t.ngIf;X_(),Af(" ",n.name," ");}}function qc(e,t){if(e&1&&(Ia$1(0,"div",22),Qx(1),bf()),e&2){let n=yx(2).ngIf;X_(),Af(" ",n.termsAndConditions," ");}}function Gc(e,t){e&1&&(Ia$1(0,"p",22),Qx(1," 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(),Ia$1(2,"p",22),Qx(3," 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());}function Hc(e,t){if(e&1&&(Ia$1(0,"tg-accordion",18)(1,"tg-accordion-item",19)(2,"tg-accordion-heading"),Qx(3," Terms & conditions "),bf(),iD(4,qc,2,1,"div",20)(5,Gc,4,0,"ng-template",null,0,wA),bf(),Ia$1(7,"tg-accordion-item",19)(8,"tg-accordion-heading"),Qx(9," Disclaimer "),bf(),Ia$1(10,"p",21),Qx(11," 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(),Ia$1(12,"p",21),Qx(13," 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()()()),e&2){let n=Tx(6),i=yx().ngIf;X_(4),TD("ngIf",i.termsAndConditions)("ngIfElse",n);}}function Yc(e,t){if(e&1){let n=dx();Ia$1(0,"button",23),kD("click",function(){Xh(n);let o=yx(2);return eg(o.offerUrlButtonClicked())}),Ia$1(1,"a",24),Qx(2," Visit website "),_D(3,"tg-icon",25),bf()();}if(e&2){let n=yx().ngIf;X_(),TD("href",rA(n.offerUrl),Ry);}}function Qc(e,t){if(e&1){let n=dx();Ia$1(0,"div",4)(1,"div",5),Qx(2," Special offer for you "),bf(),iD(3,Wc,2,1,"div",6)(4,zc,2,1,"div",7),yA(5,"async"),Ia$1(6,"div",8),Qx(7),bf(),Ia$1(8,"div",9),Qx(9),bf(),Ia$1(10,"div",10),Qx(11),bf(),iD(12,Hc,14,2,"tg-accordion",11),Ia$1(13,"div",12)(14,"button",13),kD("click",function(){Xh(n);let o=yx();return eg(o.openContactSellerModal())}),Qx(15," Enquire about this offer "),bf(),iD(16,Yc,4,2,"button",14),bf()();}if(e&2){let n=t.ngIf,i=yx();X_(),zD("tm-special-offer-modal__header-text--image",n.imageUrl),X_(2),TD("ngIf",n.imageUrl),X_(),TD("ngIf",DA$1(5,10,i.dealer$)),X_(3),Af(" ",n.title," "),X_(2),Af(" ",n.subtitle," "),X_(2),Af(" ",n.description," "),X_(),TD("ngIf",n.isFinance),X_(2),TD("ngClass",hA(12,Uc,!!n.offerUrl,!n.offerUrl)),X_(2),TD("ngIf",n.offerUrl);}}function Kc(e,t){if(e&1){let n=dx();Ia$1(0,"tm-contact-seller-modal",26),yA(1,"async"),yA(2,"async"),kD("close",function(){Xh(n);let o=yx();return eg(o.closeContactSellerModal())}),bf();}if(e&2){let n=yx();TD("listing",DA$1(1,4,n.listing$))("selectedSubject",n.enquiryType.specialOffer)("typeOfSeller","dealer")("currentMember",DA$1(2,6,n.currentMember$));}}var ns=(()=>{let t=class t{constructor(i,o,a){this._listingFacade=i,this._analyticsService=o,this._currentMemberFacade=a,this.close=new Pt,this.enquiryType=ie$1,this.specialOffersAnalyticsEventEnum=mt,this.shouldDisplayContactSellerModal=false;}
5ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(i=>!!i&&!!i.item),Fe(i=>i.item)),this.specialOffer$=this.listing$.pipe(Xt(i=>!!i.specialOffer),Fe(i=>i.specialOffer)),this.dealer$=this.listing$.pipe(Xt(i=>!!i.dealership),Fe(i=>i.dealership)),this.currentMember$=this._currentMemberFacade.getCurrentMember().pipe(Xt(i=>!!i));}openContactSellerModal(){this._currentMemberFacade.ensureLoggedIn().then(()=>this.shouldDisplayContactSellerModal=true).catch(()=>{});}offerUrlButtonClicked(){this._analyticsService.addEvent(this.specialOffersAnalyticsEventEnum.visit_website_button_clicked);}closeContactSellerModal(){this.shouldDisplayContactSellerModal=false,this.close.emit();}closeModal(){this.close.emit();}};t.\u0275fac=function(o){return new(o||t)(R$3(pe),R$3(De),R$3(E$1))},t.\u0275cmp=jM({type:t,selectors:[["tm-special-offer-modal"]],outputs:{close:"close"},standalone:false,decls:4,vars:4,consts:[["defaultTermsAndConditions",""],["size","wide",3,"close"],["class","tm-special-offer-modal__container",4,"ngIf"],[3,"listing","selectedSubject","typeOfSeller","currentMember","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"],[1,"tm-special-offer-modal__disclaimer"],[1,"tm-special-offer-modal__terms-and-conditions"],["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","listing","selectedSubject","typeOfSeller","currentMember"]],template:function(o,a){o&1&&(Ia$1(0,"tg-modal",1),kD("close",function(){return a.closeModal()}),iD(1,Qc,17,15,"div",2),yA(2,"async"),bf(),iD(3,Kc,3,8,"tm-contact-seller-modal",3)),o&2&&(X_(),TD("ngIf",DA$1(2,2,a.specialOffer$)),X_(2),TD("ngIf",a.shouldDisplayContactSellerModal));},dependencies:[pO,mO,Hr,He$1,we,Fg,cr,R_,Fd,j$3,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=t;return e})();
5function Zc(e,t){if(e&1&&(Ia$1(0,"div",5),_D(1,"tm-image-container",6),bf()),e&2){let n=yx().ngIf;X_(),TD("imageUrl",n.imageUrl);}}function ep(e,t){if(e&1&&(Ia$1(0,"div",12),Qx(1),bf()),e&2){let n=t.ngIf;X_(),Af(" ",n.name," ");}}function tp(e,t){if(e&1&&(Ia$1(0,"div",13),Qx(1),bf()),e&2){let n=yx(2).ngIf;X_(),Af(" ",n.subtitle," ");}}function ip(e,t){if(e&1){let n=dx();Ia$1(0,"div",7),iD(1,ep,2,1,"div",8),yA(2,"async"),Ia$1(3,"div",9),Qx(4),bf(),iD(5,tp,2,1,"div",10),Ia$1(6,"button",11),kD("click",function(){Xh(n);let o=yx(2);return eg(o.openSpecialOfferModal())}),Qx(7," Learn more "),bf()();}if(e&2){let n=yx().ngIf,i=yx();X_(),TD("ngIf",DA$1(2,3,i.dealer$)),X_(3),Af(" ",n.title," "),X_(),TD("ngIf",n.subtitle);}}function np(e,t){if(e&1){let n=dx();Ia$1(0,"div")(1,"h4"),Qx(2,"Special offer"),bf(),Ia$1(3,"div",2),kD("deferLoad",function(){Xh(n);let o=yx();return eg(o.showSpecialOffer())}),iD(4,Zc,2,1,"div",3)(5,ip,8,5,"div",4),bf()();}if(e&2){let n=t.ngIf,i=yx();X_(3),zD("tm-special-offer__parent--no-image",!n.imageUrl),TD("preRender",false),X_(),TD("ngIf",n.imageUrl&&i.isSpecialOfferDisplayed),X_(),TD("ngIf",i.isSpecialOfferDisplayed);}}function op(e,t){if(e&1){let n=dx();Ia$1(0,"tm-special-offer-modal",14),kD("close",function(){Xh(n);let o=yx();return eg(o.closeSpecialOfferModal())}),bf();}}var os=(()=>{let t=class t{constructor(i,o){this._listingFacade=i,this._analyticsService=o,this.shouldDisplaySpecialOfferModal=false,this.isSpecialOfferDisplayed=false,this.specialOffersAnalyticsEventEnum=mt;}ngOnInit(){this.listing$=this._listingFacade.getCurrentListing().pipe(Xt(i=>!!i&&!!i.item&&!i.isLoading),Fe(i=>i.item)),this.specialOffer$=this.listing$.pipe(Fe(i=>i?.specialOffer)),this.dealer$=this.listing$.pipe(Fe(i=>i?.dealership));}openSpecialOfferModal(){this._analyticsService.addEvent(this.specialOffersAnalyticsEventEnum.learn_more_button_clicked),this.shouldDisplaySpecialOfferModal=true;}closeSpecialOfferModal(){this.shouldDisplaySpecialOfferModal=false;}showSpecialOffer(){this.isSpecialOfferDisplayed=true;}};t.\u0275fac=function(o){return new(o||t)(R$3(pe),R$3(De))},t.\u0275cmp=jM({type:t,selectors:[["tm-special-offer"]],standalone:false,decls:3,vars:4,consts:[[4,"ngIf"],[3,"close",4,"ngIf"],[1,"tm-special-offer__parent",3,"deferLoad","preRender"],["class","tm-special-offer__image",4,"ngIf"],["class","tm-special-offer__container",4,"ngIf"],[1,"tm-special-offer__image"],["ratio","4x3",3,"imageUrl"],[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__dealer-name"],[1,"tm-special-offer__subtitle"],[3,"close"]],template:function(o,a){o&1&&(iD(0,np,6,5,"div",0),yA(1,"async"),iD(2,op,1,0,"tm-special-offer-modal",1)),o&2&&(TD("ngIf",DA$1(1,2,a.specialOffer$)),X_(2),TD("ngIf",a.shouldDisplaySpecialOfferModal));},dependencies:[mO,ns,M,He$1,j$3,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=t;return e})();var ap=["tmDescriptionBody"];
5function sp(e,t){if(e&1&&(Ia$1(0,"button",16),_D(1,"tg-icon",17),Qx(2," Video "),bf()),e&2){let n=yx(2);TD("verticalOffset",n.verticalOffset);}}function lp(e,t){if(e&1&&(Mf(0),Qx(1," Animal welfare: The seller has indicated this animal has been bred and cared for in accordance with "),Ia$1(2,"a",20),Qx(3,"Trade Me's Code of Animal Welfare"),bf(),Qx(4,". "),Ja$1()),e&2){let n=yx(3);X_(2),TD("href",rA(n.codeOfAnimalWelfarePage),Ry);}}function mp(e,t){if(e&1&&(Mf(0),Qx(1," Animal welfare: The seller hasn't indicated this animal complies with "),Ia$1(2,"a",20),Qx(3,"Trade Me's Code of Animal Welfare"),bf(),Qx(4,". We suggest you check with the seller to ensure the animal meets your animal welfare expectations. "),Ja$1()),e&2){let n=yx(3);X_(2),TD("href",rA(n.codeOfAnimalWelfarePage),Ry);}}function cp(e,t){if(e&1&&(Mf(0),Ia$1(1,"tg-info-box",18),yA(2,"async"),iD(3,lp,5,2,"ng-container",19)(4,mp,5,2,"ng-container",19),bf(),Ja$1()),e&2){let n=yx(2);X_(),TD("ngSwitch",DA$1(2,3,n.animalWelfareNoticeState$)),X_(2),TD("ngSwitchCase",n.animalWelfareNoticeStateEnum.welfareComplianceMet),X_(),TD("ngSwitchCase",n.animalWelfareNoticeStateEnum.welfareComplianceNotMet);}}function pp(e,t){e&1&&(Ia$1(0,"span"),Qx(1," Show less "),_D(2,"tg-icon-right",23),bf());}function dp(e,t){e&1&&(Ia$1(0,"span"),Qx(1," Show more "),_D(2,"tg-icon-right",24),bf());}function gp(e,t){if(e&1){let n=dx();Ia$1(0,"button",21),kD("click",function(){Xh(n);let o=yx(2);return eg(o.toggleExpandedDescription())}),iD(1,pp,3,0,"span",22)(2,dp,3,0,"ng-template",null,1,wA),bf();}if(e&2){let n=Tx(3),i=yx(2);bD("aria-expanded",i.expanded),X_(),TD("ngIf",i.expanded)("ngIfElse",n);}}function _p(e,t){if(e&1&&(Ia$1(0,"div",25),_D(1,"tm-youtube-video",26),bf()),e&2){let n=yx().ngIf;X_(),TD("videoKey",n==null||n.item==null||n.item.embeddedContent==null?null:n.item.embeddedContent.youTubeVideoKey);}}function fp(e,t){if(e&1&&(Mf(0),Ia$1(1,"tg-row")(2,"tg-col",5)(3,"h4",27),Qx(4,"Details"),bf()(),Ia$1(5,"tg-col",28),_D(6,"tm-listing-attributes-rack",29),bf()(),Ja$1()),e&2){let n=yx().ngIf;X_(6),TD("attributes",n);}}function up(e,t){if(e&1&&(Ia$1(0,"div",4),yA(1,"async"),iD(2,fp,7,1,"ng-container",9),bf()),e&2){let n=t.ngIf,i=yx(2);Xa$1("order",DA$1(1,3,i.showDescriptionFirst$)?2:1),X_(2),TD("ngIf",n?.length);}}function hp(e,t){if(e&1&&(Ia$1(0,"div",32)(1,"tg-row")(2,"tg-col",5)(3,"h4"),Qx(4,"Shipping & pick-up options"),bf()(),Ia$1(5,"tg-col",28),_D(6,"tm-listing-shipping-details",33),bf()()()),e&2){let n=yx(2).ngIf;X_(6),TD("listing",n==null?null:n.item);}}function Cp(e,t){if(e&1&&(Ia$1(0,"div",4)(1,"tg-row")(2,"tg-col",5)(3,"h4"),Qx(4,"Payment Options"),bf()(),Ia$1(5,"tg-col",28),_D(6,"tm-listing-payment-options",33),bf()()()),e&2){let n=yx(2).ngIf;X_(6),TD("listing",n==null?null:n.item);}}function yp(e,t){if(e&1&&(Ia$1(0,"div",4)(1,"tg-row")(2,"tg-col",5)(3,"h4"),Qx(4),bf()(),Ia$1(5,"tg-col",28),_D(6,"tm-listing-q-and-a",33),bf()()()),e&2){let n=yx(2).ngIf;X_(4),Af(" Questions & Answers ",n?.item?.questions?.totalCount?"("+n.item.questions.totalCount+")":""," "),X_(2),TD("listing",n==null?null:n.item);}}function xp(e,t){if(e&1&&(Mf(0),iD(1,hp,7,1,"div",30),yA(2,"async"),iD(3,Cp,7,1,"div",31)(4,yp,7,2,"div",31),yA(5,"async"),Ja$1()),e&2){let n=yx().ngIf,i=yx();X_(),TD("ngIf",DA$1(2,3,i.showShippingOptions$)),X_(2),TD("ngIf",!n?.item?.isClassified),X_(),TD("ngIf",DA$1(5,5,i.showQandA$));}}function bp(e,t){if(e&1&&(Ia$1(0,"div",3)(1,"div",4),yA(2,"async"),Ia$1(3,"tg-row")(4,"tg-col",5)(5,"h4"),Qx(6,"Description"),bf()(),Ia$1(7,"tg-col",6),yA(8,"async"),iD(9,sp,3,1,"button",7),_D(10,"tm-markdown",8,0),iD(12,cp,5,5,"ng-container",9),yA(13,"async"),bf()(),Ia$1(14,"tg-row")(15,"tg-col",10),iD(16,gp,4,3,"button",11),yA(17,"async"),bf()(),Ia$1(18,"tg-row")(19,"tg-col",12),iD(20,_p,2,1,"div",13),bf()()(),iD(21,up,3,5,"div",14),yA(22,"async"),Ia$1(23,"div",15),_D(24,"tm-special-offer"),bf(),iD(25,xp,6,7,"ng-container",9),bf()),e&2){let n=t.ngIf,i=yx();X_(),Xa$1("order",DA$1(2,11,i.showDescriptionFirst$)?1:2),X_(6),zD("tm-marketplace-listing-body__item-description--hidden",!i.expanded&&DA$1(8,13,i.showMoreButtonVisible$)),X_(2),TD("ngIf",n?.item?.embeddedContent?.youTubeVideoKey),X_(),TD("text",n==null||n.item==null?null:n.item.body),X_(2),TD("ngIf",DA$1(13,15,i.animalWelfareNoticeState$)!==i.animalWelfareNoticeStateEnum.notApplicable),X_(4),TD("ngIf",DA$1(17,17,i.showMoreButtonVisible$)),X_(4),TD("ngIf",n?.item?.embeddedContent?.youTubeVideoKey),X_(),TD("ngIf",DA$1(22,19,i.attributes$)),X_(4),TD("ngIf",n?.item);}}var vp=360,ct=(function(e){return e[e.notApplicable=0]="notApplicable",e[e.welfareComplianceMet=1]="welfareComplianceMet",e[e.welfareComplianceNotMet=2]="welfareComplianceNotMet",e})(ct||{}),rs=(()=>{let t=class t{constructor(i,o,a,_,S){this.mediaSize=i,this._delayService=o,this._domRef=a,this._listingAttributesService=_,this._shippingDetailsUtil=S,this.areaOfBusinessEnum=ft,this.verticalOffset=-56,this.animalWelfareNoticeStateEnum=ct,this.co
5deOfAnimalWelfarePage="https://help.trademe.co.nz/hc/en-us/articles/360018831911";}ngOnChanges(i){let{listing$:o$1}=i;if(o$1){let a=this.listing$.pipe(Fe(_=>_.item),Xt(_=>!!_));this.attributes$=a.pipe(lo(_=>this._listingAttributesService.getListingAttributes(_).pipe(Fe(S=>this.addConditionAttribute(S,_))))),this.mediaSize$=this.mediaSize.getMediaSize(),this.showMoreButtonVisible$=this.mediaSize$.pipe(Xt(_=>_.isSd||_.isSm),gw(a.pipe(Xt(_=>_&&!!_.body),this._delayService.delayOperator(0),Fe(_=>this.getHeightDescription()),Fe(_=>_&&_>vp)))),this.showQandA$=a.pipe(Fe(_=>_.areaOfBusiness===this.areaOfBusinessEnum.motors?!_.dealership:!_.isClassified)),this.animalWelfareNoticeState$=a.pipe(Fe(({hasListingMetCompliance:_})=>{let S=_?.hasMetAnimalWelfareCompliance;return S===void 0?ct.notApplicable:S?ct.welfareComplianceMet:ct.welfareComplianceNotMet})),this.showShippingOptions$=a.pipe(Fe(_=>this._shippingDetailsUtil.showShippingOptions(_))),this.showDescriptionFirst$=a.pipe(Fe(_$1=>_$1.isClassified&&!t$1(R$4(_$1.category),_.BUSINESS_FOR_SALE_ID)),o());}}toggleExpandedDescription(){this.expanded=!this.expanded;}getHeightDescription(){return this._domRef.useNativeElement(this.tmDescriptionBody,i=>i.clientHeight)}addConditionAttribute(i,o){if(!o.isClassified||o.isNew){let a=[...i||[]];return a.unshift({name:"Condition",displayName:"Condition",value:o.isNew?"New":"Used"}),a}return i}};t.\u0275fac=function(o){return new(o||t)(R$3(G),R$3(P$1),R$3(ae$1),R$3(ts),R$3(se))},t.\u0275cmp=jM({type:t,selectors:[["tm-marketplace-listing-body"]],viewQuery:function(o,a){if(o&1&&jD(ap,5,xt),o&2){let _;Cx(_=wx())&&(a.tmDescriptionBody=_.first);}},inputs:{listing$:"listing$"},standalone:false,features:[Zr],decls:2,vars:3,consts:[["tmDescriptionBody",""],["showMore",""],["class","tm-marketplace-listing-body__container",4,"ngIf"],[1,"tm-marketplace-listing-body__container"],[1,"tm-marketplace-listing-body__item"],["sm","12","ll","3"],["id","tm-marketplace-listing-body-item-description","sm","12","ll","9",1,"tm-marketplace-listing-body__item-description"],["tgButton2","","linkStyle","","tmScrollTo","#tm-marketplace-listing-body__item-description-video","class","tm-marketplace-listing-body__item-description-video-button",3,"verticalOffset",4,"ngIf"],[3,"text"],[4,"ngIf"],["llOffset","3"],["aria-controls","tm-marketplace-listing-body-item-description","class","tm-marketplace-listing-body__item-show-more-button","tgButton2","","transparent","",3,"click",4,"ngIf"],["sm","12","ll","9","llOffset","3"],["class","tm-marketplace-listing-body__item-description-video","id","tm-marketplace-listing-body__item-description-video",4,"ngIf"],["class","tm-marketplace-listing-body__item",3,"order",4,"ngIf"],["id","special-offers",1,"tm-marketplace-listing-body__item"],["tgButton2","","linkStyle","","tmScrollTo","#tm-marketplace-listing-body__item-description-video",1,"tm-marketplace-listing-body__item-description-video-button",3,"verticalOffset"],["name","video-play","alt","Watch video"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"href"],["aria-controls","tm-marketplace-listing-body-item-description","tgButton2","","transparent","",1,"tm-marketplace-listing-body__item-show-more-button",3,"click"],[4,"ngIf","ngIfElse"],["name","basic-minus","role","presentation","size","small"],["name","basic-plus","role","presentation","size","small"],["id","tm-marketplace-listing-body__item-description-video",1,"tm-marketplace-listing-body__item-description-video"],["frameName","youtubeVideo",3,"videoKey"],[1,"tm-marketplace-listing-body__attributes-header"],["sm","12","ll","9"],["displayColorStamp","true",1,"tm-marketplace-listing-body__attributes-rack",3,"attributes"],["class","tm-marketplace-listing-body__item","id","shipping-options",4,"ngIf"],["class","tm-marketplace-listing-body__item",4,"ngIf"],["id","shipping-options",1,"tm-marketplace-listing-body__item"],[3,"listing"]],template:function(o,a){o&1&&(iD(0,bp,26,21,"div",2),yA(1,"async")),o&2&&TD("ngIf",DA$1(1,1,a.listing$));},dependencies:[mO,Ip,yO,Fb,Ab,la,He$1,we,Za,ja$1,is,S$1,ge,p$2,Vc,os,bO],styles:["tm-marketplace-listing-body[_nghost-%COMP%]{display:block;margin-top:8px}.tm-marketplace-listing-body__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-bottom:8px;background-color:#fff}.tm-marketplace-listing-body__new-flag[_ngcontent-%COMP%]{background-color:#f3632d}.tm-marketplace-listing-body__flags[_ngcontent-%COMP%]{margin-top:-8px}.tm-marketplace-listing-body__item[_ngcontent-%COMP%]{order:5;margin-bottom:24px}.tm-marketplace-listing-body__item[_ngcontent-%COMP%]   .o-input__body-text-area-element[_ngcontent-%COMP%]{max-width:857px}
5.tm-marketplace-listing-body__item-description-video-button[_ngcontent-%COMP%]{margin-bottom:16px}.tm-marketplace-listing-body__item-description-video[_ngcontent-%COMP%]{margin-bottom:24px}@media(max-width:767px){.tm-marketplace-listing-body__item-description-video[_ngcontent-%COMP%]{margin-top:16px}}.tm-marketplace-listing-body__item-show-more-button[_ngcontent-%COMP%]{width:auto;padding-right:0;padding-left:0;margin-bottom:0;font-size:1rem;font-weight:400}.tm-marketplace-listing-body__item-description--hidden[_ngcontent-%COMP%]{overflow:hidden;max-height:360px}.tm-marketplace-listing-body__attributes-header[_ngcontent-%COMP%]{padding-top:8px}.tm-marketplace-listing-body__attributes-rack[_ngcontent-%COMP%]     .o-rack{margin-bottom:0}"]});let e=t;return e})();var as=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[qc$1]});let e=t;return e})();var ss=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[qc$1]});let e=t;return e})();var ls=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,D0,mc$1,qc$1,Lt,a$2,ss,as,$i,Rb,u$1,f$1]});let e=t;return e})();var ms=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,Hb,He$1,we,O_,Ed,W$1]});let e=t;return e})();var cs=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,Hb,ms,R,He$1,W$1]});let e=t;return e})();var ps=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,Rb,Va$1,O_,He$1,we,we,we,es,we,we,we,tr,ls,we,pb,mc$1,x,Ve,we,T,Bg,cs]});let e=t;return e})();var ds=(()=>{let t=class t{constructor(){this.type="ImageGallery";}map(i){if(!i||!i.photoId||!i.photos)return {id:null,jsonLd:null};let o=i.listingId,a=i.photos.find(z=>z.key===i.photoId),_=a?.value?.large,S=a?.value?.thumbnail;return {id:o,jsonLd:{"@context":"https://schema.org","@type":"ImageGallery",associatedMedia:{"@type":"MediaObject",contentUrl:_,thumbnailUrl:S,text:""}}}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var gs=(()=>{let t=class t{constructor(i){this._store=i;}getEquivalentListings(){return this._store.select(P$2.currentListingId).pipe(An(1),f$2(i=>this._store.dispatch(new Si({listingId:i})),this._store.select(it.currentEquivalentListings)))}};t.\u0275fac=function(o){return new(o||t)(G$1(k))},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Tp="/apple-touch-icon-57x57.png",_s=(()=>{let t=class t{constructor(i,o){this._urlLocationService=i,this._categoryService=o,this.type="Product";}map(i){if(!i||!i.hasBuyNow||!i.member?.isInTrade)return null;let o=i.quantity===null?E$3:I;i.isLive||(o=E$3);let a={"@context":e,"@type":this.type,name:`${i.title}`,offers:{"@type":"Offer",availability:o,price:`${i.buyNowPrice}`,priceCurrency:"NZD",itemCondition:i.isNew?s$1:c,seller:{"@type":"Person",address:{"@type":"PostalAddress"}}}},_=`${this._urlLocationService.getProtocol()}//${this._urlLocationService.getHost()}`,S=i.photos?.[0]?.value?.fullSize;return S?.length>0?a.image=S:a.image=_+Tp,i.endDate instanceof Date&&i.endDate&&(a.offers.availabilityEnds=i.endDate?.toISOString()),i.member?.memberId?.toString()?.length>0&&(a.offers.seller.url=`${_}/a/member/${i.member?.memberId}`),i.member?.nickname?.length>0&&(a.offers.seller.name=i.member?.nickname),i.member?.suburb?.length>0&&(a.offers.seller.address.addressLocality=i.member?.suburb.trim()),i.member?.region?.length>0&&(a.offers.seller.address.addressRegion=i.member?.region),typeof i.category=="string"&&i.category?.length>0&&(i.firearmsLicenseRequiredToBuy&&i.firearmsLicenseRequiredToBuy===true||this._categoryService.isWeaponCategory(i.category)?a.offers.hasAdultConsideration=A$1:(i.over18DeclarationRequiredToBuy&&i.over18DeclarationRequiredToBuy===true||i.category?.length>0&&this._categoryService.isR18Category(i.category))&&(a.offers.hasAdultConsideration=r)),a}};t.\u0275fac=function(o){return new(o||t)(G$1(p$5),G$1(P))},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e$1=t;return e$1})();function Op(e,t){if(e&1&&(_D(0,"tg-icon",2),Qx(1)),e&2){let n=yx(2);X_(),Af(" ",n.showButtonText()?"Watchlisted":void 0," ");}}function Pp(e,t){if(e&1&&(_D(0,"tg-icon",3),Qx(1)),e&2){let n=yx(2);X_(),Af(" ",n.showButtonText()?"Watchlist":void 0," ");}}function Lp(e,t){if(e&1){let n=dx();Ia$1(0,"button",1),kD("click",function(o){Xh(n);let a=yx();return eg(a.toggleWatchlist(o))}),JN(1,Op,2,1)(2,Pp,2,1),bf();}if(e&2){let n=yx();zD("disabled",n.isWatchlistChangeActionLoading()),TD("loading",n.isWatchlistChangeActionLoading()),bD("title",n.watchlistMessage()),X_(),XN(n.isOnWatchList()?1:2);}}var Oi=(()=>{let t=class t extends z$2{constructor(){super(...arguments),this.showButtonText=mq();}};t.\u0275fac=(()=>{let i;return function(a){return (i||(i=km$1(t)))(a||t)}})(),t.\u0275cmp=jM({type:t,selectors:[["tm-marketplace-toggle-watchlist"]],inputs:{showButtonText:[1,"showButtonText"]},features:[rD],decls:1,vars:1,consts:[["tgButton2","","transparent","",1,"tm-marketplace-toggle-watchlist__button",3,"loading","disabled"],["tgButton2","","transparent","",1,"tm-marketplace-toggle-watchlist__button",3,"click","loading"],["alt","Remove from your Watchlist","name","binoculars-tick"],["alt","Add to your Watchlist","name","binoculars-plus"]],template:function(o,a){o&1&&JN(0,Lp,3,5,"button",0),o&2&&XN(a.listing()?0:-1);},dependencies:[He$1,we],styles:["tm-marketplace-toggle-watchlist[_nghost-%COMP%]{display:block;width:100%;height:100%}tm-marketplace-toggle-watchlist[_nghost-%COMP%]   .tm-marketplace-toggle-watchlist__button[_ngcontent-%COMP%]{z-index:1;display:flex;width:100%;min-width:85px;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:0 12px;border:none;margin:0;background-color:#f9af2c;border-radius:0;color:#943900;cursor:pointer;font-size:.875rem;font-weight:400;line-height:.875rem;text-decoration:none;-webkit-user-select:none;user-select:none}tm-marketplace-toggle-watchlist[_nghost-%COMP%]   .tm-marketplace-toggle-watchlist__button[_ngcontent-%COMP%]:hover{background-color:#ffcb4f;color:#943900}tm-marketplace-toggle-watchlist[_nghost-%COMP%]   .tm-marketplace-toggle-watchlist__button.disabled[_ngcontent-%COMP%]{pointer-events:none}@media only screen and (min-width:768px)and (max-width:1023px){tm-marketplace-toggle-watchlist[_nghost-%COMP%]   .tm-marketplace-toggle-watchlist__button[_ngcontent-%COMP%]{min-width:120px;flex-direction:row}}tm-marketplace-toggle-watchlist[_nghost-%COMP%]   .tm-marketplace-toggle-watchlist__button[_ngcontent-%COMP%]     .o-icon{bottom:0;pointer-events:none}@media only screen and (min-width:768px)and (max-width:1023px){tm-marketplace-toggle-watchlist[_nghost-%COMP%]   .tm-marketplace-toggle-watchlist__button[_ngcontent-%COMP%]     tg-icon{margin-right:8px}}"]});let e=t;return e})();var Fp=e=>["/marketplace/stores",e];function Bp(e,t){if(e&1&&_D(0,"img",12),e&2){let n=yx(2);TD("src",n.listing==null||n.listing.store==null?null:n.listing.store.logoImageUri,Ry);}}function Ap(e,t){if(e&1&&_D(0,"tm-member-profile-image",13),e&2){let n=yx(2);TD("member",n.seller)("store",n.listing==null?null:n.listing.store);}}
5function Dp(e,t){if(e&1&&(Ia$1(0,"div",9)(1,"a",10),iD(2,Bp,1,1,"img",11),yA(3,"async"),bf(),iD(4,Ap,1,2,"ng-template",null,0,wA),bf()),e&2){let n=Tx(5),i=yx();X_(),TD("routerLink",pA(5,Fp,i.listing==null||i.listing.store==null?null:i.listing.store.storePath)),X_(),TD("ngIf",DA$1(3,3,i.isMdOrUp$))("ngIfElse",n);}}function Np(e,t){if(e&1){let n=dx();Ia$1(0,"tm-share-listing-modal",14),kD("close",function(){Xh(n);let o=yx();return eg(o.hideShareListingModal())})("tmOnNavigation",function(){Xh(n);let o=yx();return eg(o.hideShareListingModal())}),bf();}if(e&2){let n=yx();TD("listing",n.listing);}}var fs=(()=>{let t=class t{constructor(i){this._mediaSizeFacade=i;}ngOnChanges(i){i.listing&&this.listing&&(this.isMdOrUp$=this._mediaSizeFacade.getMediaSize().pipe(Fe(o=>!o.isSm)),this.seller=z$1(y({},this.listing.member),{photo:(this.listing.memberProfile||{}).photo}),this.displayBannerImage=!!(this.listing.store&&this.listing.store.logoImageUri&&this.listing.store.storePath&&this.seller.photo));}hideShareListingModal(){this.isShareListingModalVisible=false;}showShareListingModal(){this.isShareListingModalVisible=true;}};t.\u0275fac=function(o){return new(o||t)(R$3(G))},t.\u0275cmp=jM({type:t,selectors:[["tm-marketplace-sticky-action-banner"]],hostVars:2,hostBindings:function(o,a){o&2&&zD("visible",a.isVisible);},inputs:{isVisible:"isVisible",listing:"listing"},standalone:false,features:[Zr],decls:10,vars:4,consts:[["storeProfileImage",""],[1,"tm-marketplace-sticky-action-banner","l-container"],["class","tm-marketplace-sticky-action-banner__store-branding",4,"ngIf"],[1,"tm-marketplace-sticky-action-banner__listing-title"],[1,"tm-marketplace-sticky-action-banner__watchlist-share-container"],[1,"tm-marketplace-sticky-action-banner__share-button",3,"click"],["alt","Share this listing","name","social-share"],["showButtonText","true",3,"listing"],[3,"listing","close","tmOnNavigation",4,"ngIf"],[1,"tm-marketplace-sticky-action-banner__store-branding"],[3,"routerLink"],["class","tm-marketplace-sticky-action-banner__store-logo","alt","Store Logo",3,"src",4,"ngIf","ngIfElse"],["alt","Store Logo",1,"tm-marketplace-sticky-action-banner__store-logo",3,"src"],[1,"tm-marketplace-sticky-action-banner__store-profile-image",3,"member","store"],[3,"close","tmOnNavigation","listing"]],template:function(o,a){o&1&&(Ia$1(0,"div",1),iD(1,Dp,6,7,"div",2),Ia$1(2,"p",3),Qx(3),bf(),Ia$1(4,"div",4)(5,"button",5),kD("click",function(){return a.showShareListingModal()}),_D(6,"tg-icon",6),Qx(7," Share "),bf(),_D(8,"tm-marketplace-toggle-watchlist",7),bf()(),iD(9,Np,1,1,"tm-share-listing-modal",8)),o&2&&(X_(),TD("ngIf",a.displayBannerImage),X_(2),Af(" ",a.listing?.title," "),X_(5),TD("listing",a.listing),X_(),TD("ngIf",a.isShareListingModalVisible));},dependencies:[mO,Oi,we,B$1,C,ne,rn$1,bO],styles:["tm-marketplace-sticky-action-banner[_nghost-%COMP%]{position:fixed;z-index:7000;top:-48px;display:flex;width:100%;border-bottom:1px solid #e9e9e9;background-color:#fff;box-shadow:-2px 0 3px #dadada;transition:top .25s ease-out!important;transition-property:bottom,opacity}tm-marketplace-sticky-action-banner.visible[_nghost-%COMP%]{top:0}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner[_ngcontent-%COMP%]{display:flex;height:48px;align-items:center;justify-content:space-between}@media only screen and (min-width:1024px){tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner[_ngcontent-%COMP%]{justify-content:flex-start}}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__watchlist-share-container[_ngcontent-%COMP%]{display:flex;height:100%;margin-left:auto}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__listing-title[_ngcontent-%COMP%]{display:none;margin-bottom:0}@media only screen and (min-width:1024px){tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__listing-title[_ngcontent-%COMP%]{display:block}}@media only screen and (max-width:1023px){tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .l-container[_ngcontent-%COMP%]{padding-right:0}}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__share-button[_ngcontent-%COMP%]{min-width:80px;border-right:1px solid #e9e9e9;border-left:1px solid #e9e9e9;z-index:1;display:flex;width:100%;min-width:85px;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:0 12px;border:none;margin:0;background-color:transparent;border-radius:0;color:#006ebd;cursor:pointer;font-size:.875rem;font-weight:400;line-height:.875rem;text-decoration:none;-webkit-user-select:none;user-select:none}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__share-button[_ngcontent-%COMP%]:hover{background-color:transparent;color:#3da5eb}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__share-button.disabled[_ngcontent-%COMP%]{pointer-events:none}@media only screen and (min-width:768px)and (max-width:1023px){tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__share-button[_ngcontent-%COMP%]{min-width:120px;flex-direction:row}}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__share-button[_ngcontent-%COMP%]     .o-icon{bottom:0;pointer-events:none}@media only screen and (min-width:768px)and (max-width:1023px){tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__share-button[_ngcontent-%COMP%]     tg-icon{margin-right:8px}}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__store-branding[_ngcontent-%COMP%]{margin-right:16px}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__store-branding[_ngcontent-%COMP%], tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__store-branding[_ngcontent-%COMP%]   .tm-marketplace-sticky-action-banner__store-logo[_ngcontent-%COMP%]{height:100%}tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__store-profile-image[_ngcontent-%COMP%]     .tm-member-profile-image, tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__store-profile-image[_ngcontent-%COMP%]     .tm-member-profile-image__image, tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__store-profile-image[_ngcontent-%COMP%]     .tm-member-profile-image__icon, tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__store-profile-image[_ngcontent-%COMP%]     .tm-member-profile-image__container, tm-marketplace-sticky-action-banner[_nghost-%COMP%]   .tm-marketplace-sticky-action-banner__store-profile-image[_ngcontent-%COMP%]     .tm-member-profile-image__placeholder{width:48px;height:48px;border-radius:0;font-size:24px}"]});let e=t;return e})();var Pi=e=>({rsqid:e}),$p=(e,t)=>({listings:e,viewAllUrl:t});function jp(e,t){e&1&&_D(0,"tm-meta-json-ld-inline",3),e&2&&TD("json",t);}function Vp(e,t){e&1&&_D(0,"tm-meta-json-ld-inline",3),e&2&&TD("json",t);}function Up(e,t){e&1&&_D(0,"tm-meta-json-ld-inline",3),e&2&&TD("json",t);}function Wp(e,t){e&1&&(Mf(0),_D(1,"tm-listing-details-error"),Ja$1());}function zp(e,t){if(e&1&&_D(0,"tm-listing-buyer-fpo-status-banner",9),e&2){let n=yx(2).ngIf;TD("listing",n==null?null:n.item);}}function qp(e,t){if(e&1&&_D(0,"tm-listing-buyer-post-fpo-status-banner",9),e&2){let n=yx(2).ngIf;TD("listing",n==null?null:n.item);}}function Gp(e,t){if(e&1&&_D(0,"tm-stripe",27),e&2){let n=t.ngIf;TD("listings",n.item)("isLoading",n.isLoading)("extraListingQueryParams",pA(4,Pi,n.item==null?null:n.item.recommendationsTrackingId))("stripeTitle",n.item==null?null:n.item.title);}}function Hp(e,t){if(e&1&&(Mf(0),iD(1,Gp,1,6,"tm-stripe",26),yA(2,"async"),Ja$1()),e&2){let n=yx(3);X_(),TD("ngIf",DA$1(2,1,n.upperStripeRecommendations$));}}function Yp(e,t){if(e&1&&_D(0,"tm-marketplace-listing-body",10),e&2){let n=yx(3);TD("listing$",n.listing$);}}function Qp(e,t){e&1&&(Ia$1(0,"div",28),_D(1,"tm-display-ad-wrapper",29),bf());}function Kp(e,t){if(e&1&&_D(0,"tm-marketplace-listing-body",30),e&2){let n=yx(3);TD("listing$",n.listing$);}}function Jp(e,t){if(e&1&&_D(0,"tm-before-you-buy",31),e&2){let n=yx(2).ngIf,i=yx();TD("listingId",n.item==null?null:n.item.listingId)("headingContent",i.beforeYouBuyHeader)("headingLevel","H3");}}function Xp(e,t){if(e&1&&_D(0,"tm-koru-listing-seller-details",32),e&2){let n=yx(2).ngIf;TD("listing",n);}}function Zp(e,t){if(e&1&&_D(0,"tm-listing-contact-seller",9),e&2){let n=yx(3).ngIf;TD("listing",n==null?null:n.item);}}
5function ed(e,t){if(e&1&&(Ia$1(0,"tm-dealership-summary",33),iD(1,Zp,1,1,"tm-listing-contact-seller",8),bf()),e&2){let n=yx(2).ngIf;TD("listing",n==null?null:n.item),X_(),TD("ngIf",n?.item);}}function td(e,t){if(e&1&&_D(0,"tm-marketplace-sticky-action-banner",34),e&2){let n=yx(2).ngIf,i=yx();TD("listing",n.item)("isVisible",i.isStickyActionBannerVisible);}}function id(e,t){if(e&1&&_D(0,"tm-stripe",38),e&2){let n=yx();TD("listings",n==null||n.listings==null?null:n.listings.item)("isLoading",n==null||n.listings==null?null:n.listings.isLoading)("extraListingQueryParams",pA(5,Pi,n==null||n.listings==null||n.listings.item==null?null:n.listings.item.searchQueryId))("frendShowAllUrl",n==null||n.viewAllUrl==null?null:n.viewAllUrl.url)("showAllQueryParams",n==null||n.viewAllUrl==null?null:n.viewAllUrl.queryParams);}}function nd(e,t){e&1&&iD(0,id,1,7,"tm-stripe",39),e&2&&TD("ngIf",!t?.listings?.error);}function od(e,t){if(e&1&&_D(0,"tm-sponsored-tag-stripe",41),e&2){let n=yx().ngIf;TD("listings",n==null?null:n.item)("isLoading",n==null?null:n.isLoading)("extraListingQueryParams",pA(3,Pi,n.item==null?null:n.item.recommendationsTrackingId));}}function rd(e,t){if(e&1&&(Mf(0),iD(1,od,1,5,"tm-sponsored-tag-stripe",40),Ja$1()),e&2){let n=t.ngIf;X_(),TD("ngIf",!n.error);}}function ad(e,t){if(e&1&&_D(0,"tm-sponsored-tag-stripe",43),e&2){let n=yx().ngIf,i=yx(5).ngIf;TD("listings",n==null?null:n.item)("isLoading",n==null?null:n.isLoading)("extraListingQueryParams",pA(4,Pi,n.item==null?null:n.item.recommendationsTrackingId))("currentListingId",i==null||i.item==null?null:i.item.listingId);}}function sd(e,t){if(e&1&&(Mf(0),iD(1,ad,1,6,"tm-sponsored-tag-stripe",42),Ja$1()),e&2){let n=t.ngIf;X_(),TD("ngIf",!n.error);}}function ld(e,t){if(e&1&&(iD(0,sd,2,1,"ng-container",2),yA(1,"async")),e&2){let n=yx(5);TD("ngIf",DA$1(1,1,n.lowerStripeRecommendations$));}}function md(e,t){if(e&1&&(Ia$1(0,"aside",37)(1,"div",5),JN(2,nd,1,1,"tm-stripe",38),yA(3,"async"),yA(4,"async"),iD(5,rd,2,1,"ng-container",4),yA(6,"async"),yA(7,"async"),iD(8,ld,2,3,"ng-template",null,1,wA),bf()()),e&2){let n,i=Tx(9),o=yx(4);X_(2),XN((n=hA(11,$p,DA$1(3,3,o.sellersOtherListings$),DA$1(4,5,o.sellersOtherListingsViewAllUrl$)))?2:-1,n),X_(3),TD("ngIf",DA$1(6,7,o.equivalentListings$)?.item?.list?.length>0&&DA$1(7,9,o.equivalentListings$))("ngIfElse",i);}}function cd(e,t){if(e&1){let n=dx();Mf(0),Ia$1(1,"div",35),kD("deferLoad",function(){Xh(n);let o=yx(3);return eg(o.fetchLowerStripesData())}),iD(2,md,10,14,"aside",36),yA(3,"async"),yA(4,"async"),bf(),Ja$1();}if(e&2){let n=yx(3);X_(),TD("preRender",false),X_(),TD("ngIf",DA$1(3,2,n.sellersOtherListings$)||DA$1(4,4,n.lowerStripeRecommendations$));}}function pd(e,t){if(e&1){let n=dx();Ia$1(0,"div",5)(1,"tm-potential-r18-content",6),_D(2,"tm-breadcrumbs",7),yA(3,"async"),yA(4,"async"),iD(5,zp,1,1,"tm-listing-buyer-fpo-status-banner",8),yA(6,"async"),iD(7,qp,1,1,"tm-listing-buyer-post-fpo-status-banner",8),yA(8,"async"),_D(9,"tm-listing-closed-banner",9)(10,"tm-buyer-seller-options",10),iD(11,Hp,3,3,"ng-container",2),yA(12,"async"),Ia$1(13,"tg-row")(14,"tg-col",11),_D(15,"tm-dealership-branding")(16,"tm-listing-photos",12),iD(17,Yp,1,1,"tm-marketplace-listing-body",13),yA(18,"async"),bf(),Ia$1(19,"tg-col",14)(20,"tm-marketplace-buyer-options",15),kD("watchlistVisibilityChange",function(o){Xh(n);let a=yx(2);return eg(a.onWatchlistVisibilityChange(o))}),bf(),iD(21,Qp,2,0,"div",16),yA(22,"async"),bf()(),iD(23,Kp,1,1,"tm-marketplace-listing-body",17),yA(24,"async"),Ia$1(25,"tg-row")(26,"tg-col",18),iD(27,Jp,1,3,"tm-before-you-buy",19)(28,Xp,1,1,"tm-koru-listing-seller-details",20)(29,ed,2,2,"tm-dealership-summary",21),bf()(),Ia$1(30,"div",22),_D(31,"tm-share-listing-link",9)(32,"tm-community-watch",23),bf()(),_D(33,"tm-r18-content-warning-modal",24),bf(),iD(34,td,1,2,"tm-marketplace-sticky-action-banner",25)(35,cd,5,6,"ng-container",2),yA(36,"async");}if(e&2){let n=yx().ngIf,i=yx();X_(),TD("listing",n),X_(),TD("breadcrumbs",DA$1(3,22,i.breadcrumbs$))("mediaSize",DA$1(4,24,i.mediaSize$)),X_(3),TD("ngIf",n?.item?.pendingOffer&&DA$1(6,26,i.currentMemberDoesNotOwnListing$)),X_(2),TD("ngIf",n?.item?.closedOffer&&DA$1(8,28,i.currentMemberDoesNotOwnListing$)),X_(2),TD("listing",n==null?null:n.item),X_(),TD("listing$",i.listing$),X_(),TD("ngIf",!DA$1(12,30,i.listingIsLive$)&&!i.isCrawler),X_(5),TD("listing",n.item)("loading",n.isLoading),X_(),TD("ngIf",DA$1(18,32,i.mediaSize.is.lg$.or.xl$.or.md$)),X_(3),TD("isLoading",n.isLoading)("listingStoreItem$",i.listing$),X_(),TD("ngIf",DA$1(22,34,i.mediaSize.is.md$.or.greater$)),X_(2),TD("ngIf",DA$1(24,36,i.mediaSize.is.sm$)),X_(4),TD("ngIf",n?.item?.listingId),X_(),TD("ngIf",n?.item?.member),X_(),TD("ngIf",n?.item?.dealership&&!n?.item?.member),X_(2),TD("listing",n.item),X_(),TD("listingId",n.item==null?null:n.item.listingId),X_(2),TD("ngIf",n.item),X_(),TD("ngIf",DA$1(36,38,i.listingIsLive$)&&!i.isCrawler);}}
5function dd(e,t){if(e&1&&(Ia$1(0,"div"),JN(1,jp,1,1,"tm-meta-json-ld-inline",3),yA(2,"async"),JN(3,Vp,1,1,"tm-meta-json-ld-inline",3),yA(4,"async"),JN(5,Up,1,1,"tm-meta-json-ld-inline",3),yA(6,"async"),iD(7,Wp,2,0,"ng-container",4),yA(8,"tmIsApiTimeoutError"),iD(9,pd,37,40,"ng-template",null,0,wA),bf()),e&2){let n,i,o,a=t.ngIf,_=Tx(10),S=yx();X_(),XN((n=DA$1(2,5,S.productListingInfoJsonLd$))?1:-1,n),X_(2),XN((i=DA$1(4,7,S.imageGalleryJsonLd$))?3:-1,i),X_(2),XN((o=DA$1(6,9,S.breadcrumbsJsonLd$))?5:-1,o),X_(2),TD("ngIf",a.error&&!a.item&&!a.isLoading&&!DA$1(8,11,a.error))("ngIfElse",_);}}var zi={title:"Listing Title",description:"Want to buy or sell? Log in to Trade Me, NZ's biggest & most popular auction & classifieds site, with thousands of new & used items in a wide range of categories."},gd="SellersOtherListingsByCategory",_d="RecommendationsByListingGTIN",fd="FrEndMarketplaceLdpRecommendations",us="Inspired by your purchase",hs="Other listings you might like",ud=[2744864538,4107405395,2741147926,2683004570,2772540851,4107399521,3142690934,2454182684,4676624032,4688126354,4711402249,4711873345,4736132345,4670980860,4669880667,4671054572,4670956939,4757319095,4757538324,4757611107,4758091274,4759315809,2147519751],Cs=(()=>{let t=class t{constructor(i,o,a,_,S,A,z,nt,ot,Li,C,q,Ei,Ss,Ms,Is,ks,Ts,ws,Os,Ps,Ls,Es){this.mediaSize=i,this._listingFacade=o,this._listingRedirectService=a,this._listingUtilService=_,this._marketplaceListingUtilService=S,this._routerFacade=A,this._platformService=z,this._imageGalleryJsonLdMapperService=nt,this._breadcrumbListJsonLdMapperService=ot,this._relatedListingsFacade=Li,this._activatedRoute=C,this._currentMemberFacade=q,this._abFrameworkFacade=Ei,this._complementaryListingsStore=Ss,this._metaDataFacade=Ms,this._memberListingsFacade=Is,this._searchExperiments=ks,this._equivalentListingsFacade=Ts,this._listingBreadcrumbsService=ws,this._listingJsonLdMapperService=Os,this._categoryService=Ps,this._crawlerIdentifierService=Ls,this._appConfigFacade=Es,this._destroyed$=new W,this.of=$c$2;}ngOnInit(){this.setupSubscriptions();let{action:i}=this._activatedRoute.snapshot.queryParams;i==="feedback"&&this._currentMemberFacade.ensureLoggedIn().catch(re),this.isCrawler=this._crawlerIdentifierService.isCrawler;}setupSubscriptions(){let i=this._routerFacade.selectCurrentData().pipe(Fe(C=>C.areaOfSite===s$2.marketplace&&C.feature.listingDetails));this._listingFacade.getCurrentListingId().pipe(Xp$1(this._destroyed$),Ui$1()).subscribe(C=>this.onListingIdChanged(C));let a=this._platformService.isBrowser?this._listingFacade.getCurrentListingWithPolling():this._listingFacade.getCurrentListing();this.listing$=a.pipe(o$1(i),o()),this.currentMemberDoesNotOwnListing$=wC([this.listing$,this._currentMemberFacade.getCurrentMember()]).pipe(Fe(([C,q])=>!C.item||!C.item.member||!q?true:C.item.member.memberId!==q.memberId)),this.listing$.pipe(Xp$1(this._destroyed$),Fe(C=>C&&C.item),Xt(C=>!!C)).subscribe(C=>this.onListingLoaded(C));let _=this.listing$.pipe(Xt(C=>!C.isLoading),Xt(C=>!!C.item),Fe(C=>C.item)),S=_.pipe(Fe(C=>C&&C.breadcrumbs));this.imageGalleryJsonLd$=_.pipe(Xt(C=>!!C),Fe(C=>this._imageGalleryJsonLdMapperService.map(C)?.jsonLd),o()),this.breadcrumbsJsonLd$=S.pipe(Fe(C=>this._breadcrumbListJsonLdMapperService.map(C)?.jsonLd),o());let A=_.pipe(Ui$1((C,q)=>C.listingId!==q.listingId?false:C.sales&&q.sales?C.sales.length===q.sales.length:!C.sales&&!q.sales),lo(C=>this._listingUtilService.getListingTransactionState(C)));this.listingIsLive$=A.pipe(Fe(C=>!C.isClosed&&!C.isInClosingState)),this.productListingInfoJsonLd$=wC([this.listingIsLive$,_]).pipe(Xt(([C,q])=>!!q),Fe(([C,q])=>this._listingJsonLdMapperService.map(z$1(y({},q),{isLive:C}))),o());let z=A.pipe(Fe(C=>C.isClosed&&!C.currentMemberIsBuyer&&!C.currentMemberIsSeller)),nt=wC(this.listingIsLive$,z).pipe(lo(([C,q])=>C?this._abFrameworkFacade.isMemberInVariantGroupOfBooleanExperiment(fd).pipe(Fe(Ei=>!!Ei)):$c$2(q))),ot=A.pipe(Fe(C=>C.currentMemberIsBuyer));this._relatedListings$=nt.pipe(Xt(Boolean),lo(C=>this._relatedListingsFacade.getCurrentRelatedListings$()));let Li=ot.pipe(Xt(Boolean),lo(C=>this._complementaryListingsStore.getComplementaryListingsForCurrentListing(
5)));this._platformService.isServer===true?this.upperStripeRecommendations$=z.pipe(Fe(C=>({item:{title:C?hs:us},isLoading:true}))):this.upperStripeRecommendations$=z.pipe(lo(C=>C?wC(this._relatedListings$,$c$2(hs)):wC(Li,$c$2(us))),Fe(([C,q])=>z$1(y({},C),{item:z$1(y({},C.item||{}),{title:q})}))),this._isInSellersListingsExperiment$=this._searchExperiments.getSearchExperimentsState().pipe(Xt(C=>!!C.item),Fe(C=>C.item.features.some(q=>q.isEnabled&&q.name===gd)),Xp$1(this._destroyed$)),this._isInEquivalentListingsExperiment$=this._searchExperiments.getSearchExperimentsState().pipe(Xt(C=>!!C.item),Fe(C=>C.item.features.some(q=>q.isEnabled&&q.name===_d))),this.breadcrumbs$=this._listingBreadcrumbsService.getBreadcrumbs(_),this.mediaSize$=this.mediaSize.getMediaSize();}ngOnDestroy(){this._metaDataFacade.updateMetaData(z$1(y({},zi),{canonicalPathOverride:null,whitelistCanonical:false})),this._destroyed$.next();}onListingIdChanged(i){let o=z$1(y({},zi),{title:`Listing #${i}`});this.enableIndexingForWhitelist(i,o),this._metaDataFacade.updateMetaData(o);}getMetaData(i){let o={title:i.title,type:"product",description:i.body||zi.description,blockRobotIndexAndFollow:true};if(i.photos&&i.photos.length)o.image=i.photos[0].value.fullSize;else return $c$2(o);return this.enableIndexingForWhitelist(i.listingId,o),this.enableIndexingForCategoryWhitelist(i.category,o),this._appConfigFacade.selectClientConfig().pipe(An(1),Fe(a=>(a&&a.seoWhitelistedMember&&this.enableIndexingForStoreListings(i.member?.memberId,a.seoWhitelistedMember.split(","),o,i),o)))}enableIndexingForCategoryWhitelist(i,o){i&&hp$1.some(a=>this._categoryService.isCategoryInMcat(a,i))&&(o.blockRobotIndexAndFollow=false,o.blockRobotIndex=false,o.unavailableAfterDate=void 0);}enableIndexingForWhitelist(i,o){ud.includes(i)&&(o.blockRobotIndexAndFollow=false,o.blockRobotIndex=false);}enableIndexingForStoreListings(i,o,a,_){o&&i&&o.includes(i.toString())&&(a.blockRobotIndexAndFollow=false,a.blockRobotIndex=false,a.whitelistCanonical=true,a.canonicalPathOverride=_.originalCanonicalPath);}onListingLoaded(i){this.getMetaData(i).pipe(An(1),Xp$1(this._destroyed$)).subscribe(o=>this._metaDataFacade.updateMetaData(o)),this.beforeYouBuyHeader=this._categoryService.isFlatmatesWanted(R$4(i.category))?"Before you move in":"Before you buy",this._listingRedirectService.redirectToNewListingIfRelisted(i);}fetchLowerStripesData(){this.sellersOtherListings$=wC([this.listing$,this._isInSellersListingsExperiment$]).pipe(lo(([i,o])=>{if(!i.item||!i.item.memberId&&!i.item.member)return $c$2({isLoading:i.isLoading,item:null});let a=i.item.memberId||i.item.member.memberId,_=o?p(i.item.category):null,S={sort_order:o?"preferredcategory":null,preferred_category_id:_};return this._memberListingsFacade.fetchMemberListings(a,S,false)}),Fe(i=>this._marketplaceListingUtilService.mapToMarketplaceListings(i)),nh(this.listing$),Fe(([i,o])=>{if(!i.item)return i;let a=i.item.list.filter(_=>_.listingId!==o.item.listingId);return z$1(y({},i),{item:z$1(y({},i.item),{list:a})})}),o()),this.sellersOtherListingsViewAllUrl$=wC([this.sellersOtherListings$,this.listing$]).pipe(Fe(([i,o])=>{if(!i.item||!o.item)return null;if(o.item.store){let z=`/marketplace/stores/${o.item.store.storePath}`;return i.item.searchQueryId?{url:z,queryParams:{rsqid:i.item.searchQueryId}}:{url:z}}let a=o.item.member?o.item.member.memberId:null,_=o.item.memberId||a,S="/search",A={member_listing:_};return i.item.searchQueryId?{url:S,queryParams:z$1(y({},A),{rsqid:i.item.searchQueryId})}:{url:S,queryParams:A}})),this.lowerStripeRecommendations$=this.listingIsLive$.pipe(Xt(Boolean),gw(this._relatedListings$)),this.equivalentListings$=wC([this.listing$,this._isInEquivalentListingsExperiment$]).pipe(lo(([i,o])=>!i.item||!o?$c$2({isLoading:i.isLoading,item:null}):this._equivalentListingsFacade.getEquivalentListings()),Fe(i=>this._marketplaceListingUtilService.mapToMarketplaceListings(i)),o());}onWatchlistVisibilityChange(i){this.isStickyActionBannerVisible=i;}};t.\u0275fac=function(o){return new(o||t)(R$3(G),R$3(pe),R$3(kV),R$3(Y),R$3(Sp),R$3(D),R$3(h$1),R$3(ds),R$3(B),R$3(Ti),R$3(Re),R$3(E$1),R$3(S),R$3(vi),R$3(l),R$3(kp),R$3(j),R$3(gs),R$3(d),R$3(_s),R$3(P),R$3(A),R$3(E$2))},t.\u0275cmp=jM({type:t,selectors:[["tm-marketplace-listing"]],standalone:false,decls:2,vars:3,consts:[["listingDetails",""],["relatedListingsStripe",""],[4,"ngIf"],[3,"json"],[4,"ngIf","ngIfElse"],[1,"l-container"],["skipReset","",3,"listing"],[3,"breadcrumbs","mediaSize"],[3,"listing",4,"ngIf"],[3,"listing"],[3,"listing$"],["md","7","lg","8"],[3,"listing","loading"],[3,"listing$",4,"ngIf"],["md","5","lg","4",1,"tm-marketplace-listing__flex-column"],[3,"watchlistVisibilityChange","isLoading","listingStoreItem$"],["class","tm-marketplace-listing__display-ad-container",4,"ngIf"],["class","tm-marketplace-listing__listing-body",3,"listing$",4,"ngIf"],["sm","12","md","8","id","seller-details-section"],["class","tm-marketplace-listing__before-you-buy",3,"listingId","headingContent","headingLevel",4,"ngIf"],["class","tm-marketplace-listing__seller-details",3,"listing",4,"ngIf"],["class","tm-marketplace-listing__dealership-summary",3,"listing",4,"ngIf"],[1,"tm-marketplace-listing__share-listing-container"],[3,"listingId"],["redirectToParentOnCancel",""],[3,"listing","isVisible",4,"ngIf"],["class","tm-marketplace-listing__complementary-listings","listingType","item",3,"listings","isLoading","extraListingQueryParams","stripeTitle",4,"ngIf"],["listingType","item",1,"tm-marketplace-listing__complementary-listings",3,"listings","isLoading","extraListingQueryParams","stripeTitle"],[1,"tm-marketplace-listing__display-ad-container"],["slotName","right-column","adType","doubleMrec,skyscraper,mrec","fuseId","right-column-1",1,"tm-marketplace-listing__display-ad"],[1,"tm-marketplace-listing__listing-body",3,"listing$"],[1,"tm-marketplace-listing__before-you-buy",3,"listingId","headingContent","headingLevel"],[1,"tm-marketplace-listing__seller-details",3,"listing"],[1,"tm-marketplace-listing__dealership-summary",3,"listing"],[3,"listing","isVisible"],[1,"tm-marketplace-listing__lower-stripe-defer-load-container",3,"deferLoad","preRender"],["aria-label","related listings","class","tm-marketplace-listing__lower-stripe-container",4,"ngIf"],["aria-label","related listings",1,"tm-marketplace-listing__lower-stripe-container"],["listingType","item","stripeTitle","Seller's other listings",1,"tm-marketplace-listing__str
5ipe","card-on-grey-background",3,"listings","isLoading","extraListingQueryParams","frendShowAllUrl","showAllQueryParams"],["class","tm-marketplace-listing__stripe card-on-grey-background","listingType","item","stripeTitle","Seller's other listings",3,"listings","isLoading","extraListingQueryParams","frendShowAllUrl","showAllQueryParams",4,"ngIf"],["class","tm-marketplace-listing__stripe card-on-grey-background","listingType","item","role","region","stripeTitle","Other listings you might like",3,"listings","isLoading","extraListingQueryParams",4,"ngIf"],["listingType","item","role","region","stripeTitle","Other listings you might like",1,"tm-marketplace-listing__stripe","card-on-grey-background",3,"listings","isLoading","extraListingQueryParams"],["class","tm-marketplace-listing__stripe card-on-grey-background","listingType","item","role","region","stripeTitle","Other listings you might like",3,"listings","isLoading","extraListingQueryParams","currentListingId",4,"ngIf"],["listingType","item","role","region","stripeTitle","Other listings you might like",1,"tm-marketplace-listing__stripe","card-on-grey-background",3,"listings","isLoading","extraListingQueryParams","currentListingId"]],template:function(o,a){o&1&&(iD(0,dd,11,13,"div",2),yA(1,"async")),o&2&&TD("ngIf",DA$1(1,1,a.listing$));},dependencies:[mO,Ya,jt,Pa,_i,rs,zt,ae,Bd,F0,f5,qR,ZR,yr,Fb,Ab,Ld,Bt$1,hi,M,ut,$,fs,ya,d$1,H,Q,bO,u],styles:["tm-marketplace-listing[_nghost-%COMP%]{display:block}.tm-marketplace-listing__lower-stripe-defer-load-container[_ngcontent-%COMP%]:empty{min-height:430px;background:#f6f5f4}.tm-marketplace-listing__lower-stripe-container[_ngcontent-%COMP%]{background:#f6f5f4}.tm-marketplace-listing__lower-stripe-container[_ngcontent-%COMP%]   .tm-marketplace-listing__stripe[_ngcontent-%COMP%]:first-child{padding-top:24px}.tm-marketplace-listing__complementary-listings[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:24px}.tm-marketplace-listing__flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tm-marketplace-listing__display-ad-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1}.tm-marketplace-listing__display-ad-container[_ngcontent-%COMP%]   .tm-marketplace-listing__display-ad[_ngcontent-%COMP%]{position:sticky;top:16px;margin-top:0;margin-bottom:24px}@media(min-width:768px){.tm-marketplace-listing__display-ad-container[_ngcontent-%COMP%]   .tm-marketplace-listing__display-ad[_ngcontent-%COMP%]{top:56px}}.tm-marketplace-listing__seller-details[_ngcontent-%COMP%]{margin-bottom:24px}@media(min-width:768px){.tm-marketplace-listing__seller-details[_ngcontent-%COMP%]{margin-bottom:56px}}.tm-marketplace-listing__dealership-summary[_ngcontent-%COMP%]{margin-bottom:16px}@media(min-width:768px){.tm-marketplace-listing__dealership-summary[_ngcontent-%COMP%]{margin-bottom:24px}}.tm-marketplace-listing__share-listing-container[_ngcontent-%COMP%]{margin-bottom:24px;text-align:center}@media(min-width:768px){.tm-marketplace-listing__share-listing-container[_ngcontent-%COMP%]{margin-bottom:56px}}"]});let e=t;return e})();var ys=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({providers:[kp]});let e=t;return e})();var xs=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,ji$1,nt$2,Oi,we,z,f,_e,X]});let e=t;return e})();var bs=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({providers:[Oi$1()],imports:[VO,ee,Yn,Xa,Gt,La,hs$1,Co,ps,Se,Se$1,nt,Nd,Xf,js,S5,YR,r5,h,D0,Rb,we,we,we,Hb,Ar,mc$1,E,Ad,g,Fa,Ma$1,Be,Na,ja,Va,R,ys,R$1,_t,xs,xa,a,ie,He,nt$1]});let e=t;return e})();var Cd="from",yd="ios",xd="android",qi=(()=>{let t=class t{resolve(i,o){let a=o?.root?.queryParams?.[Cd]?.toLowerCase();return a===yd||a===xd}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})();function bd(e,t){e&1&&_D(0,"tm-marketplace-listing",4);}function vd(e,t){e&1&&_D(0,"tm-marketplace-koru-listing-details",5);}function Sd(e,t){if(e&1&&(Mf(0),iD(1,bd,1,0,"tm-marketplace-listing",2)(2,vd,1,0,"tm-marketplace-koru-listing-details",3),Ja$1()),e&2){let n=t.ngIf;X_(),TD("ngIf",n.item),X_(),TD("ngIf",!n.item);}}function Md(e,t){e&1&&_D(0,"tm-marketplace-listing");}var Gi=(()=>{let t=class t{constructor(){this._listingFacade=v(pe),this._koruListingFacade=v(Mu),this._platformService=v(h$1),this._newRelicService=v(R$2),this._destroyed$=new W;}ngOnInit(){this.isApiListing$=this._listingFacade.getCurrentListingId().pipe(lo(i=>this._koruListingFacade.isKoruListing(i.toString())),th(i=>this.handleNRIsKoruAttribute(i)),Fe(i=>({isLoading:false,item:!i}
5)),o()),this._listingFacade.getCurrentListing().pipe(Xp$1(this._destroyed$)).subscribe();}ngOnDestroy(){this._destroyed$.next();}handleNRIsKoruAttribute(i){this._platformService.isServer&&this._newRelicService.addCustomAttributes({isKoru:i});}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=jM({type:t,selectors:[["tm-listing-wrapper"]],hostAttrs:["ngSkipHydration","true"],standalone:false,decls:5,vars:4,consts:[["loadingState",""],[4,"ngIf","ngIfElse"],["data-testid","tm-listing",4,"ngIf"],["data-testid","koru-listing",4,"ngIf"],["data-testid","tm-listing"],["data-testid","koru-listing"]],template:function(o,a){if(o&1&&(Mf(0),iD(1,Sd,3,2,"ng-container",1),yA(2,"async"),iD(3,Md,1,0,"ng-template",null,0,wA),Ja$1()),o&2){let _=Tx(4);X_(),TD("ngIf",DA$1(2,2,a.isApiListing$))("ngIfElse",_);}},dependencies:[mO,Cs,DA,bO],styles:["tm-listing-wrapper[_nghost-%COMP%]{display:block}"]});let e=t;return e})();var Id=[{path:"buynow",loadChildren:()=>import('./koru-buy-now-modal-standalone.module-US8UaVTW.js').then(e=>e.KoruBuyNowModalStandaloneModule)},{path:"bid",loadChildren:()=>import('./koru-bid-modal-standalone.module-DzjsV9R_.js').then(e=>e.KoruBidModalStandaloneModule)},{path:"post-purchase",loadChildren:()=>import('./koru-post-purchase-ping-payment-modal-standalone.module-W1_eVi6D.js').then(e=>e.KoruPostPurchasePingPaymentModalStandaloneModule)},{path:"purchase/:purchaseId",component:Gi},{path:"",component:Gi,resolve:{hideHeaderAndFooter:qi}}],vs=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({providers:[qi],imports:[eu.forChild(Id),eu]});let e=t;return e})();var zC=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Za$1({type:t}),t.\u0275inj=_o({imports:[VO,vs,Ne,bs,bR]});let e=t;return e})();
6export{zC as ListingWrapperModule};//# sourceMappingURL=listing-wrapper.module-BBaLgft5.js.map
7
8//# debugId=ed456963-faa9-5b0b-8a0a-5d94ab851794

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.