1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8215],{58215:function(a,b,c){c.r(b),c.d(b,{default:function(){return w}});var d=c(47568),e=c(26042),f=c(69396),g=c(34051),h=c.n(g),i=c(85893),j=c(67294),k=c(80129),l=c.n(k),m=c(41664),n=c.n(m),o=c(25617),p=c(31344),q=c(85394),r=c(7297),s=c(19521);function t(){var a=(0,r.Z)(["\nbackground: #F7F7F7;\npadding: 70px 0;\nh2 {\n text-align: center;\n margin-bottom: 30px;\n}\n.show-more-link {\n height: 40px;\n max-width: 340px;\n border-radius: 30px;\n background-color: #E4001E;\n text-decoration: none;\n color: #FFFFFF;\n font-size: 14px;\n font-weight: bold;\n letter-spacing: 0;\n line-height: 19px;\n text-align: center;\n margin-left: auto;\n margin-right: auto;\n margin-top: 45px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]);return t=function(){return a},a}var u=s.ZP.div.withConfig({componentId:"sc-66f8d478-0"})(t()),v={price:{value:'ab <span class="price">{price}â¬</span> mtl.'}},w=function(a){var b=a.content,c=(0,j.useState)([]),g=c[0],k=c[1],m=(0,o.v9)(function(a){return a.lists.brands}),r=g.map(function(a){var b=m.find(function(b){return b.id===a.brandId});return(0,f.Z)((0,e.Z)({},a),{brandName:null==b?void 0:b.name})}),s=l().parse(decodeURIComponent(b.entity.fieldCarQueryLink.split("?")[1]));return(0,j.useEffect)(function(){var a,b=new AbortController;return(a=(0,d.Z)(h().mark(function a(){var c,d;return h().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,fetch("/api/carscon",{method:"POST",signal:b.signal,body:JSON.stringify({conditions:JSON.parse(null==s?void 0:s.conditions),limit:s.limit,orderBy:JSON.parse(null==s?void 0:s.orderBy)})});case 3:return c=a.sent,a.next=6,c.json();case 6:k((d=a.sent).cars),a.next=13;break;case 10:a.prev=10,a.t0=a.catch(0),b.signal.aborted||k([]);case 13:case"end":return a.stop()}},a,null,[[0,10]])})),function(){return a.apply(this,arguments)})(),function(){b.abort()}},[]),(0,i.jsx)(u,{id:b.entity.entityId,children:(0,i.jsxs)(p.Z,{wider:!0,children:[b.entity.fieldQueryCarListTitle&&(0,i.jsx)("h2",{className:"section-title",children:b.entity.fieldQueryCarListTitle}),(0,i.jsx)("ul",{className:"carlist list-unstyled d-flex justify-content-between flex-wrap",children:r.map(function(a){return(0,i.jsx)(q.Z,{car:a,carListContent:v},a.id)})}),(0,i.jsx)(n(),{href:'/gebrauchtwagen?offset=0&limit=11&orderBy={"property":"price","order":"ASC"}&conditions='.concat(JSON.stringify(JSON.parse(null==s?void 0:s.conditions))),children:(0,i.jsx)("a",{className:"show-more-link",children:"Alle Gebrauchtwagen anzeigen"})})]})})}}}])
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.