1/*! For license information please see main-1ade826acd3c489d.js.LICENSE.txt */ 2(self.webpackChunk=self.webpackChunk||[]).push([[2930],{74655:(t,e,r)=>{"use strict";r.d(e,{Z:()=>d});var n=r(26082),o=(r(55013),r(85726)),i=r(30500),a=r.n(i),c=r(53046),u=r(36008);var l=r(26671),s="object"===("undefined"==typeof document?"undefined":(0,n.Z)(document))?document:void 0,f=function t(e){var r=e.className,n=e.children,i=e.alignContent;return(0,c.Z)(),null!=s&&s.body?(0,o.createPortal)((0,l.jsx)("div",{className:a()(r,"overlay___XXuo2"),"data-qa-selector":"full-screen-loader-overlay",children:(0,l.jsxs)(u.Row,{className:a()("wrapper___cMniQ","ui-fs-loader--wrapper"),direction:"column",alignItems:"alignItemsCenter",flexWrap:"noWrap",children:[(0,l.jsx)(u.BrandLoader,{size:"lg"}),"string"==typeof n?(0,l.jsx)(t.Content,{alignContent:i,children:n}):n]})}),s.body):null};f.Content=function(t){var e=t.children,r=t.alignContent,n=void 0===r?"center":r;return(0,l.jsx)(u.Text.P,{className:a()("ui-fs-loader--content","content___v7W9x"),
2color:"secondary",align:n,children:e})};const d=s?f:function(){return null}},30593:(t,e,r)=>{"use strict";r.d(e,{wg:()=>f,rG:()=>d});var n=r(55376),o=r.n(n),i=r(32030),a=r.n(i),c=r(79521),u=r(10866),l=r(36175),s=r(44059),f=(0,s.zB)({id:o()("adId"),adId:o()("adId"),manufacturer:o()("manufacturer"),model:o()("model"),builtYear:o()("builtYear"),mainImageUrl:o()("mainImageUrl"),countryCode:o()("countryCode"),fuelType:o()("fuelType"),gearType:o()("gearType"),mileage:o()("mileage"),subType:o()("subType"),subTypeExtra:o()("subTypeExtra"),discountedWarranty:o()("discountedWarranty"),firstRegistrationYear:a()(o()("registration"),(function(t){if(t){var e=(0,c.Z)(new Date,"yyyy-MM-dd")(t);if((0,u.Z)(e))return Number((0,l.Z)("yyyy")(e))}})),offerPrice:o()("price"),published:o()("published"),seller:o()("seller"),offerPriceAfterTradeInDiscount:o()("priceAfterTradeInDiscount"),retailAdState:o()("state"),financedPrice:o()("financedPrice"),isComingSoon:o()("isComingSoon"),co2Value:o()("co2Value"),fuelConsumption:o()("fuelConsumption"),downPriceMargin:o()("downPriceMargin"),firstPrice:o()("firstPrice"),firstFinancedPrice:o()("firstFinancedPrice"),warrantyPrice:o()("warrantyPrice")}),d=(0,s.zB)({monthlyPayment:o()("price")})},90724:(t,e,r)=>{"use strict";r.d(e,{z:()=>u});var n=r(14039),o=(r(55013),r(30500)),i=r.n(o),a=r(36008);var c=r(26671),u=function(t){var e,r=t.onClick,o=t.isClose,u=t.isHidden,l=t.qaSelector,s=t.className;return(0,c.jsx)(a.Button,{onClick:r,className:i()(s,"removeButton___TRkt4",(e={},(0,n.Z)(e,"close___csRfG",o),(0,n.Z)(e,"hidden___KU2YO",u),e)),brand:"plain",qaSelector:l})}},64084:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var n="FAVOURITE_PAGE_VIEW"},60907:(t,e,r)=>{"use strict";r.d(e,{_:()=>P});var n,o=r(26082),i=r(14039),a=r(41116),c=r(58978),u=r(44272),l=r(55013),s=r(81418),f=r(76628),d=r(50215);function p(){var t=j(),e=t.m(p),r=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===r||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function i(t){var e,r;return function(n){e||(e={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(t,e){return r(n.a,o[t],e)},delegateYield:function(t,o,i){return e.resultName=o,r(n.d,v(t),i)},finish:function(t){return r(n.f,t)}},r=function(t,r,o){n.p=e.prev,n.n=e.next;try{return t(r,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return t.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(p=function(){return{wrap:function(e,r,n,o){return t.w(i(e),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:t.m,awrap:function(t,e){return new _(t,e)},AsyncIterator:b,async:function(t,e,r,o,a){return(n(e)?m:y)(i(t),e,r,o,a)},keys:h,values:v}})()}function v(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError((0,o.Z)(t)+" is not iterable")}function h(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}}function y(t,e,r,n,o){var i=m(t,e,r,n,o);return i.next().then((function(t){return t.done?t.value:i.next()}))}function m(t,e,r,n,o){return new b(j().w(t,e,r,n),o||Promise)}function b(t,e){function r(n,o,i,a){try{var c=t[n](o),u=c.value;return u instanceof _?e.resolve(u.v).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,a)}))}catch(t){a(t)}}var n;this.next||(g(b.prototype),g(b.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),g(this,"_invoke",(function(t,o,i){function a(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(a,a):a()}),!0)}function j(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,l=Object.create(u.prototype);return g(l,"_invoke",function(r,n,o){var i,c,u,l=0,s=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,c=0,u=t,d.n=r,a}};function p(r,n){for(c=r,u=n,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],p=d.p,v=i[2];r>3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(c=0,d.v=n,d.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,d.n=v,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),c=s,u=v;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,u)):d.n=u:d.v=u);
2try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?u:r.call(n,d))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(r,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][n]?e(e([][n]())):(g(e={},n,(function(){return this})),e),f=l.prototype=c.prototype=Object.create(s);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,g(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,g(f,"constructor",l),g(l,"constructor",u),u.displayName="GeneratorFunction",g(l,o,"GeneratorFunction"),g(f),g(f,o,"Generator"),g(f,n,(function(){return this})),g(f,"toString",(function(){return"[object Generator]"})),(j=function(){return{w:i,m:d}})()}function g(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}g=function(t,e,r,n){function i(e,r){g(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},g(t,e,r,n)}function _(t,e){this.v=t,this.k=e}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){(0,i.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var x=(0,s.gql)(n||(n=(0,u.Z)(["\n query publicSearchWarrantiesBatch($adIds: [UUID]!, $country: String!) {\n publicSearchWarrantiesBatch(search: { adIds: $adIds, country: $country }) {\n warranties\n }\n }\n"]))),P=function(t){var e=t.adData,r=(0,f.Z)(),n=(0,l.useRef)(new Set),o=(0,l.useState)({}),i=(0,c.Z)(o,2),u=i[0],v=i[1],h=(0,d.sc)(),y=(0,s.useLazyQuery)(x),m=(0,c.Z)(y,1)[0],b=(0,l.useCallback)(function(){var t=(0,a.Z)(p().mark((function t(e){var o,i,a,c;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:if((i=e.filter((function(t){return t.discountedWarranty&&!n.current.has(t.adId)})).map((function(t){return t.adId}))).length){t.next=5;break}return t.abrupt("return");case 5:return i.forEach(n.current.add,n.current),t.next=8,m({variables:{adIds:i,country:r}});case 8:if(a=t.sent,null!=(c=a.data)&&null!==(o=c.publicSearchWarrantiesBatch)&&void 0!==o&&o.warranties){t.next=12;break}return t.abrupt("return");case 12:v((function(t){return O(O({},t),c.publicSearchWarrantiesBatch.warranties)}));case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[r,m]);return(0,l.useEffect)((function(){b(e)}),[e,b]),(0,l.useMemo)((function(){return u?e.map((function(t){var e=null==u?void 0:u[t.adId];if(!e)return t;var r=e.find((function(t){var e=t.level,r=t.price,n=t.discount,o=t.customDiscount,i=((null==n?void 0:n.amountMinorUnits)||0)+((null==o?void 0:o.amountMinorUnits)||0),a=((null==r?void 0:r.grossPriceMinorUnits)||0)-i;return"PREMIUM"===e&&i&&0===a}));return null!=r&&r.price?O(O({},t),{},{warrantyPrice:h({amountMinorUnits:r.price.grossPriceMinorUnits})}):t})):e}),[e,h,u])}},72930:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>Rt});var n=r(58978),o=r(55013),i=r.n(o),a=r(99999),c=r(31417),u=r(52266),l=r(76628),s=r(58383),f=r(29510),d=r(31454),p=r(15170),v=r(23195),h=r(74655),y=r(50540),m=r(48740),b=r(28307),j=r(22356),g=r(36008),_=r(41346),w=r(10720),O=r(56133),x=r(76652);var P=r(26671);const S=function(t){var e=t.contents;return e?(0,P.jsx)(g.Row,{className:"row___vWGyB",children:e.map((function(t,e){var r=t.title,n=t.description;return(0,P.jsxs)(g.Col,{"data-qa-selector":r,xs:12,lg:4,xl:4,children:[(0,P.jsxs)("div",{className:"titleContent___B5V2j",children:[(0,P.jsx)("div",{className:"icon___OUP7Q",children:(0,P.jsx)(x.r,{})}),(0,P.jsx)(g.Text,{className:"title___Pd4PD",color:"secondary",children:r})]}),(0,P.jsx)(g.Text,{className:"description___JcBM1",children:n})]},e)}))}):null},k=function(t){var e=t.uspHeadline,r=t.uspContents,n=t.handleButtonClick,o=t.children,i=t.qaSelector,a=(0,j.$G)().t;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(_.ql,{cmsMeta:(0,O.r)({})}),(0,P.jsx)(w.Z,{hideSideBar:!0,children:(0,P.jsxs)("div",{className:"board___u1VaY",children:[(0,P.jsxs)("div",{className:"uspContent___cj_1J",children:[(0,P.jsx)(g.Text,{color:"secondary",weight:"bold",className:"title___RxFzd",children:e}),(0,P.jsx)(S,{contents:r}),(0,P.jsx)(g.Button,{onClick:n,className:"button___KJlSZ",variant:"outlined",children:(0,P.jsx)(g.Text,{"data-qa-selector":"sign-in-".concat(i,"-button"),className:"buttonContent___LNsZS",color:"secondary",children:a("common.auth.signInOrSignUp")})})]}),o]})})]})};var I=r(64084),C=r(14039),N=r(14712),T=r.n(N),D=r(76241),Z=r.n(D),E=r(40288),A=r(30593),R=r(56418);function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?F(Object(r),!0).forEach((function(e){(0,C.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var G=r(29836),M=function(){return G.kD},W=r(53891),U=r(60907),q=r(30500),z=r.n(q);const Y=function(t){var e=t.className,r=t.children;return(0,P.jsx)("div",{className:z()("tiles___vjpFI",e),children:r})};var V=r(44348),H=["title","titleId"];function K(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?K(Object(r),!0).forEach((function(e){(0,C.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function L(t){var e=t.title,r=t.titleId,n=(0,V.Z)(t,H);return(0,P.jsxs)("svg",$($({xmlns:"http://www.w3.org/2000/svg",width:65,height:64,fillRule:"evenodd","aria-labelledby":r},n),{},{children:[e?(0,P.jsx)("title",{id:r,children:e}):null,(0,P.jsx)("circle",{fill:"#d8d8d8",cx:32.5,cy:32,r:32}),(0,P.jsx)("path",{fill:"#fff",fillRule:"nonzero",d:"M27.649 36.59H14.722v-9.472H27.65v-12.97h9.347v12.97h12.926v9.471H36.996v12.758h-9.347z"})]}))}r.p;const J=function(t){var e=t.dashedBorder,r=t.children;return(0,P.jsx)("div",{className:z()("tile___fMOhr",(0,C.Z)({},"dashedBorder___mfhm2",e)),children:r})},Q=function(t){var e=t.titleKey,r=t.titleVariables,n=t.trackId,o=t.url,i=t.className,a=t.qaSelector,c=void 0===a?"add-new-button":a,u=(0,j.$G)().t,l=(0,f.ed)().track,s=(0,y.WY)().getUrl;return(0,P.jsx)(J,{dashedBorder:!0,children:(0,P.jsxs)(g.Anchor,{"data-qa-selector":c,href:s(o),onClick:function(){return l(n,{action:"add-new"})},className:z()("content___G8lhp",i),children:[(0,P.jsx)(L,{}),(0,P.jsx)("p",{className:"title___lclJ5",children:u(e,r)})]})})},X=function(t){var e=t.titleKey,r=t.titleVariables;return(0,P.jsx)(Q,{titleKey:e,titleVariables:r,url:"CAR_SEARCH",qaSelector:"add-favorites-button",trackId:"preaccount-favourites-click",className:"content___YPW__"})};var tt=r(98895),et=r.n(tt),rt=r(94793),nt=r(44774),ot=r(18421),it=r(58992),at=r(15183),ct=r(80031),ut=r(44805),lt=r(85014),st=r(70599),ft=r(90724),dt=r(66308);const pt=function(t){var e=t.data,r=t.removeItem,n=(0,j.$G)().t,o=(0,f.ed)().track,i=(0,rt.w)(e),a=(0,rt.Y)(e),c=(0,nt.Z)(e,i),u=(0,ot.c)(e),l=(0,it.h)(et()(e,"offerPriceAfterDiscount")),s=l.mainPrice,d=l.monthlyPaymentAfterDiscount,p=l.monthlyPrice,v=l.payoutPrice,h=l.bottomCashPrice,y=l.downPriceMargin,m=l.discountedPrice,b=l.withDownPrice,_=(0,at.Bz)(e),w=(0,st.GR)().isFinancingDisclaimerEnabled&&!!p,O=(0,ct.F)(e),x=_?"secondaryOutlined":"primary",S=_?"common.ad.cta.viewSimilarOptions":"userProfile.notifications.card.viewCar",k=function(){r(null==e?void 0:e.adId)};return(0,P.jsxs)(dt.nv,{className:z()("card___aRWDT",(0,C.Z)({},"unpublished___azaCQ",_)),children:[(0,P.jsx)(ft.z,{className:"remove___TMyD0",onClick:k,qaSelector:"remove-subscription",isClose:!0}),(0,P.jsx)(J,{children:(0,P.jsxs)("div",{className:"link___VVupU",children:[(0,P.jsx)(ut.Q,{downPriceMargin:y,withWatermark:!0,adId:null==e?void 0:e.adId,image:c,withFavorite:!_,gaPathName:G.Cx.PREACCOUNT_FAVOURITES,retailAdState:null==e?void 0:e.retailAdState,unpublished:!(null!=e&&e.published),onFavoriteButtonClick:k,onRemoveUnavailableClick:k}),(0,P.jsx)("div",{className:"infoContainer___F5Yhg",children:(0,P.jsx)(lt.F,{withDownPrice:b,payoutPrice:v,monthlyPrice:p,monthlyPaymentAfterDiscount:d,mainPrice:s,discountedPrice:m,formattedSpecs:O,carTitle:i,carSubTitle:a,bottomCashPrice:h,withDiscountedWarranty:e.discountedWarranty,warrantyPrice:e.warrantyPrice,financingData:{adId:e.adId,carPrice:e.offerPrice,withFinancingCalculator:w},retailAdState:e.retailAdState})}),(0,P.jsx)("div",{className:"seeCarButtonContainer___k9K5k",children:(0,P.jsx)(g.Button,{href:u,qaSelector:"view-details",className:"seeCarButton___SEWhi",onClick:function(){return o("preaccount-favourites-click",{action:"view-car-details"})},textAlignCenter:!0,size:"sm",variant:x,children:n(S)})})]})})]})};var vt=["title","titleId"];function ht(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?ht(Object(r),!0).forEach((function(e){(0,C.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mt(t){var e=t.title,r=t.titleId,n=(0,V.Z)(t,vt);return(0,P.jsxs)("svg",yt(yt({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:48,height:44,"aria-labelledby":r},n),{},{children:[e?(0,P.jsx)("title",{id:r,children:e}):null,(0,P.jsx)("defs",{children:(0,P.jsx)("path",{id:"icon-heart_svg__a",d:"M0 0h48v43.779H0z"})}),(0,P.jsxs)("g",{fillRule:"evenodd",children:[(0,P.jsx)("mask",{id:"icon-heart_svg__b",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#icon-heart_svg__a"})}),(0,P.jsx)("path",{d:"M35.054 0c-4.593 0-8.807 2.492-11.095 6.326C21.307 2.289 17.348 0 12.938 0 5.803 0 0 5.809 0 12.949c0 1.247.178 2.474.528 3.649 1.075 6.08 8.605 13.148 15.889 19.985 2.528 2.373 4.916 4.615 6.953 6.738a1.491 1.491 0 002.404-.353c2.96-3.595 6.384-6.92 9.698-10.137 6.139-5.963 11.448-11.118 12.052-16.333.32-1.228.476-2.39.476-3.55C48 5.809 42.192 0 35.054 0",fill:"#f27121",mask:"url(#icon-heart_svg__b)"})]})]}))}r.p;const bt=function(){var t=(0,f.ed)().track,e=(0,j.$G)().t,r=(0,y.WY)().getUrl;return(0,P.jsx)(J,{dashedBorder:!0,children:(0,P.jsxs)("div",{className:"content___J3BgB",children:[(0,P.jsx)(mt,{}),(0,P.jsx)("p",{className:"title___qNh0s",children:e("userProfile.preAccount.favorites.noFavorites")}),(0,P.jsx)(g.Button,{href:r("CAR_SEARCH"),size:"sm",onClick:function(){return t("preaccount-favourites-click",{action:"find-car"})},children:e("common.getStarted")})]})})};var jt=function(t){var e=t.limit;return(0,P.jsx)(X,{titleKey:"userProfile.preAccount.favorites.limitWithAmount",titleVariables:{amount:e}})},gt=[function(){return(0,P.jsx)(bt,{})},jt,jt];const _t=function(t){var e=t.data,r=t.removeItem,n=M(),o=Math.max(e.length,gt.length),i=Math.min(n,o);return(0,P.jsxs)(Y,{className:"favoritesTiles___qObGX",children:[Array.from({length:i},(function(t,o){var i=e[o];if(i)return(0,P.jsx)(pt,{removeItem:r,data:i},i.id);var a=gt[o%gt.length];return(0,P.jsx)(a,{limit:n},o)})),i<n&&e.length===i&&(0,P.jsx)(jt,{limit:n})]})};var wt=r(26082),Ot=r(41116);function xt(){var t=Nt(),e=t.m(xt),r=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===r||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function i(t){var e,r;return function(n){e||(e={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(t,e){return r(n.a,o[t],e)},delegateYield:function(t,o,i){return e.resultName=o,r(n.d,Pt(t),i)},finish:function(t){return r(n.f,t)}},r=function(t,r,o){n.p=e.prev,n.n=e.next;try{return t(r,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return t.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(xt=function(){return{wrap:function(e,r,n,o){return t.w(i(e),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:t.m,awrap:function(t,e){return new Dt(t,e)},AsyncIterator:Ct,async:function(t,e,r,o,a){return(n(e)?It:kt)(i(t),e,r,o,a)},keys:St,values:Pt}})()}function Pt(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError((0,wt.Z)(t)+" is not iterable")}function St(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}}function kt(t,e,r,n,o){var i=It(t,e,r,n,o);return i.next().then((function(t){return t.done?t.value:i.next()}))}function It(t,e,r,n,o){return new Ct(Nt().w(t,e,r,n),o||Promise)}function Ct(t,e){function r(n,o,i,a){try{var c=t[n](o),u=c.value;return u instanceof Dt?e.resolve(u.v).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,a)}))}catch(t){a(t)}}var n;this.next||(Tt(Ct.prototype),Tt(Ct.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),Tt(this,"_invoke",(function(t,o,i){function a(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(a,a):a()}),!0)}function Nt(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,l=Object.create(u.prototype);return Tt(l,"_invoke",function(r,n,o){var i,c,u,l=0,s=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,c=0,u=t,d.n=r,a}};function p(r,n){for(c=r,u=n,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],p=d.p,v=i[2];r>3?(o=v===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(c=0,d.v=n,d.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,d.n=v,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),c=s,u=v;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,u)):d.n=u:d.v=u);
2try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?u:r.call(n,d))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(r,o,i),!0),l}var a={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][n]?e(e([][n]())):(Tt(e={},n,(function(){return this})),e),f=l.prototype=c.prototype=Object.create(s);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Tt(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,Tt(f,"constructor",l),Tt(l,"constructor",u),u.displayName="GeneratorFunction",Tt(l,o,"GeneratorFunction"),Tt(f),Tt(f,o,"Generator"),Tt(f,n,(function(){return this})),Tt(f,"toString",(function(){return"[object Generator]"})),(Nt=function(){return{w:i,m:d}})()}function Tt(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Tt=function(t,e,r,n){function i(e,r){Tt(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},Tt(t,e,r,n)}function Dt(t,e){this.v=t,this.k=e}var Zt=function(t){return(0,s.y)(a.jY,{})[t]||[]};var Et=i().memo((function(t){var e=t.data,i=(0,j.$G)().t,c=function(t){var e=(0,l.Z)(),i=(0,f.ed)().track,c=(0,d.I)(),u=(0,o.useState)(Zt(e)),s=(0,n.Z)(u,2),p=s[0],v=s[1],h=(0,o.useCallback)(function(){var n=(0,Ot.Z)(xt().mark((function n(o){var u;return xt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=p.filter((function(t){return o!==t})),i("preaccount-favourites-click",{action:"removed"}),l=(0,C.Z)({},e,u),s=void 0,null===(s=r.g.localStorage)||void 0===s||s.setItem(a.jY,JSON.stringify(l)),v(Zt(e)),t.updateCounter(a.jY,u.length),n.next=7,c("PREACCOUNT_BOOKMARK_REMOVED",{adId:o});case 7:case"end":return n.stop()}var l,s}),n)})));return function(t){return n.apply(this,arguments)}}(),[p,i,e,t,c]);return{localFavorites:p,removeLocalItem:h}}((0,W.I)()),u=c.localFavorites,s=c.removeLocalItem,p=null==e?void 0:e.filter((function(t){var e=t.adId;return u.includes(e)})),v=((null==p?void 0:p.length)||0)>=M(),h=(0,U._)({adData:null!=p?p:[]});return(0,P.jsxs)(P.Fragment,{children:[v&&(0,P.jsx)(g.Text,{weight:"bold",className:"limitExceededWarning___qIAEu",children:i("search.preaccount.limitReached.favourites.header")}),(0,P.jsx)(_t,{removeItem:s,data:h})]})}));const At="loader___cntlW",Rt=function(){var t=(0,y.s0)(),e=(0,y.WY)().getUrl,r=(0,b.f)().openAuthModal,i=(0,f.ed)().track,j=(0,d.I)(),g=(0,c.kN)({url:"@favorites",template:"favorites"}).content||{},_=g.uspContents,w=g.uspHeadline,O=(0,l.Z)(),x=(0,o.useRef)();x.current||(x.current="undefined"!=typeof window&&(0,s.y)(a.jY,{})[O]||[]);var S=function(t){var e=(0,E.S)("abTestData"),r=(0,n.Z)(e,1)[0],o=(0,R.kzd)({variables:{adIds:t,abTest:null!=r&&r.viewParams?{viewParams:r.viewParams}:null},skip:0===t.length,errorPolicy:"all"}),i=o.data,a=o.loading,c=[];if(!Z()(i)){var u=T()(null==i?void 0:i.getCarDetailsStoreAdsByIds,"adId"),l=T()(null==i?void 0:i.adsMonthlyPayment,"adId");c=null==t?void 0:t.map((function(t){return B(B({},(0,A.wg)(u[t])),(0,A.rG)(l[t]))}))}return{data:c,loading:a}}(x.current||[]),C=S.data,N=S.loading,D=(0,u.T)(),F=(0,n.Z)(D,1)[0];return(0,m.Z)((function(){j(I.A)})),(0,o.useEffect)((function(){F||t("".concat(e("PROFILE_FAVORITES")).concat(window.location.search))}),[F,t,e]),F?(0,P.jsx)(k,{uspHeadline:w,uspContents:_,handleButtonClick:function(){i("preaccount-favourites-click",{action:"go-auth"}),(0,p.uE)(v.Fx),r({postAuthRedirectUrl:e("PROFILE_FAVORITES")})},qaSelector:"favorites",children:N?(0,P.jsx)(h.Z,{alignContent:"center",className:At}):(0,P.jsx)(Et,{data:C})}):(0,P.jsx)(h.Z,{alignContent:"center",className:At})}},56133:(t,e,r)=>{"use strict";r.d(e,{r:()=>l});var n=r(88085),o=r.n(n),i=r(42620),a=r(44059),c=function(t){var e=t.htmlTitle;return void 0===e?"Autohero":e},u=function(t){return t.metaDescription},l=(0,i.PW)((0,a.zB)({htmlTitle:c,metaDescription:u,metaRobots:function(t){var e=t.metaRobots;return void 0===e?"noindex, nofollow":e},ogDescription:u,ogSiteName:o()("Autohero.com"),ogTitle:c}))},76652:(t,e,r)=>{"use strict";r.d(e,{r:()=>l});
2var n=r(14039),o=r(44348),i=(r(55013),r(26671)),a=["title","titleId"];function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t){var e=t.title,r=t.titleId,n=(0,o.Z)(t,a);return(0,i.jsxs)("svg",u(u({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fillRule:"evenodd","aria-labelledby":r},n),{},{children:[e?(0,i.jsx)("title",{id:r,children:e}):null,(0,i.jsx)("ellipse",{fill:"#f37121",cx:9.881,cy:9.901,rx:9.881,ry:9.901}),(0,i.jsx)("path",{d:"M15.763 7.616a.743.743 0 00-.2-.508l-.97-1.016a.676.676 0 00-.485-.21.676.676 0 00-.485.21L8.943 11 6.846 8.797a.676.676 0 00-.485-.21.676.676 0 00-.485.21l-.97 1.016a.743.743 0 000 1.016l3.552 3.721c.129.135.307.21.485.21a.676.676 0 00.485-.21l6.135-6.426a.743.743 0 00.2-.508z",fill:"#fff"})]}))}r.p},36175:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(55243);const o=(0,r(56105).Z)(n.Z,2)},79521:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(51107);const o=(0,r(56105).Z)(n.Z,3)},14712:(t,e,r)=>{var n=r(84423),o=r(26522)((function(t,e,r){n(t,r,e)}));t.exports=o}}]); 3//# sourceMappingURL=main-1ade826acd3c489d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.