1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6412],{11908:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(37876);t(14232);let s=e=>(0,l.jsxs)("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M20.5002 14.9883L15.4902 20.0083",stroke:"#171717",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M3.5 14.9883H20.5",stroke:"#171717",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M3.5 9.00828L8.51 3.98828",stroke:"#171717",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M20.5 9.01172H3.5",stroke:"#171717",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})},16208:(e,a,t)=>{"use strict";t.d(a,{A:()=>c});var l=t(37876);t(14232);var s=t(26332),i=t(24146),n=t(91238),r=t.n(n),o=t(96557);function c(e){let{currentPage:a,pageCount:t,handlePageClick:n,className:c,returnPageUrl:d}=e,m=(0,o.Ub)({maxWidth:820});return(0,l.jsx)("div",{className:c||"",children:(0,l.jsx)(r(),{breakLabel:"...",pageCount:t,nextLabel:m?(0,l.jsx)(s.ZPM,{size:18}):(0,l.jsx)(i.ZK4,{size:20}),onPageChange:e=>{n(e.selected)},pageRangeDisplayed:m?1:2,previousLabel:m?(0,l.jsx)(s.AiM,{size:18}):(0,l.jsx)(i.pRN,{size:20}),renderOnZeroPageCount:null,className:"pagination",pageClassName:"page-item",forcePage:a-1,hrefAllControls:!0,hrefBuilder:(e,a,t)=>d(e,a,t),selectedPageRel:"null"})})}},18847:(e,a,t)=>{e.exports=t(52496)},21986:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/araclar/[[...slug]]",function(){return t(32434)}])},25585:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(37876);function s(e){let{children:a,isOpen:t,setIsOpen:s,fit:i}=e;return(0,l.jsxs)("div",{className:"fixed left-0 top-0 flex h-full w-full transform items-end justify-end pt-10 ".concat(t?"translate-y-0 opacity-100":"translate-y-full opacity-0"," shadow-lg transition-all duration-500"),style:{zIndex:5e3},children:[(0,l.jsx)("div",{className:"absolute bottom-0 left-0 h-full w-full bg-black-primary bg-opacity-40 transition-all duration-500",style:{zIndex:-1},onClick:()=>s(!1)}),(0,l.jsx)("div",{className:"".concat(i?"h-fit":"h-full"," w-full rounded-tl-lg rounded-tr-lg bg-white"),children:a})]})}t(14232)},32434:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>eM,default:()=>eP});var l=t(37876),s=t(944),i=t(14232),n=t(94703),r=t(54260),o=t(26487),c=t(31192),d=t(51358),m=t(80915),u=t(92965),x=t(40734),p=t(89099),h=t(80807),f=t(99739);let g=["brandName","vehicleTypeName","modelName","serialName","page","size","sorting"],v={bodyTypeName:"Kasa Tipi",cityName:"Åehir",colorName:"Renk",districtName:"İl\xe7e",enginePowerName:"Motor G\xfcc\xfc",fuelTypeName:"Yakıt Tipi",gearboxTypeName:"Vites Tipi",hasPhoto:"FotoÄraf Var",hasVideo:"Video Var",isOwn:"Kimden",maturity:"Vade",maxInstallment:"Max Taksit",maxKm:"Max Km",maxPrice:"Max Fiyat",maxUpfront:"Max PeÅinat",maxYear:"Max Yıl",minInstallment:"Min Taksit",minKm:"Min Km",minPrice:"Min Fiyat",minUpfront:"Min PeÅinat",minYear:"Min Yıl",enginePowerName:"Motor G\xfcc\xfc",motorVolumeName:"Motor Hacmi",tractionName:"\xc7ekiÅ",warranty:"Garanti"};function j(e){var a,t,s,j,b,N,w,k,_;let{filtersTemp:C,setFiltersTemp:A,isBottomSheet:T,isMobile:L,setIsFilterOpen:S,vehicleQuery:M,isSubFooterLink:P}=e,E=(0,p.useRouter)(),[I,O]=(0,i.useState)([]),[F,V]=(0,i.useState)([]),[z,R]=(0,i.useState)([]),[B,Y]=(0,i.useState)([]),[D,W]=(0,i.useState)(),[q,K]=(0,i.useState)([]),[H,U]=(0,i.useState)(!1),[G,Z]=(0,i.useState)({}),[Q,X]=(0,i.useState)(!1),[J,$]=(0,i.useState)(!1),[ee,ea]=(0,i.useState)(!1),et=()=>{let e=Object.fromEntries(Object.entries(C).map(e=>{let[a,t]=e;return[a,"number"==typeof t?t:""]}));A(e),E.push("/araclar"+(0,r.z9)(e))};(0,i.useEffect)(()=>{ea(Object.values(G).some(e=>e))},[G]),(0,i.useEffect)(()=>{null!==C&&(Object.keys(C).some(e=>"sorting"!==e&&"page"!==e&&"size"!==e&&""!==C[e])?ea(!0):ea(!1))},[C]);let[el,{data:es}]=(0,o.yq)(),ei=(0,i.useCallback)(async()=>{await el({vehicleTypeName:C.vehicleTypeName,brandName:C.brandName,serialName:C.serialName,modelName:C.modelName})},[C,el]);(0,i.useEffect)(()=>{ei()},[ei]),(0,i.useEffect)(()=>
1{if(null==es?void 0:es.data){var e,a,t,l,s,i;let n=[{label:"T\xfcm\xfcn\xfc G\xf6ster",value:"all"},...null==es||null==(e=es.data)?void 0:e.vehicleTypes.map(e=>({label:"".concat(e.name),value:e.slug,original:e.name}))],r=[{label:"T\xfcm\xfcn\xfc G\xf6ster",value:"all"},...null==es||null==(a=es.data)?void 0:a.brands.map(e=>({label:"".concat(e.name),value:e.slug,original:e.name}))],o=[{label:"T\xfcm\xfcn\xfc G\xf6ster",value:"all"},...null==es||null==(t=es.data)?void 0:t.serials.map(e=>({label:"".concat(e.name),value:e.slug,original:e.name}))],c=[{label:"T\xfcm\xfcn\xfc G\xf6ster",value:"all"},...null==es||null==(l=es.data)?void 0:l.models.map(e=>({label:"".concat(e.name),value:e.slug,original:e.name}))],d=[{label:"T\xfcm\xfcn\xfc G\xf6ster",value:"all"},...null==es||null==(s=es.data)?void 0:s.cities.map(e=>({label:e.name,value:e.name}))],m=[...null==es||null==(i=es.data)?void 0:i.enginePowers].sort((e,a)=>parseInt(e.name.split(" - ")[0])-parseInt(a.name.split(" - ")[0]));O(n),V(r),R(o),Y(c),W(d),K(m)}},[es]);let en=(e,a,t)=>{A(l=>{let s=l[e]?l[e].split(","):[];if(t){if(!s.includes(a)){let t=[...s,a];return{...l,[e]:t.join(",")}}}else{let t=s.filter(e=>e!==a);return{...l,[e]:t.join(",")}}return l})},er=(e,a)=>{A({...C,[e]:a.value});let t="";if(P){let e=(e=>{let a=["page","size","sorting","vehicleTypeName"];return Object.entries(e).filter(e=>{let[t,l]=e;return""!==l&&!a.includes(t)}).map(e=>{let[a,t]=e;return"?".concat(a,"=").concat(t)})})(C);t="all"===a.value?"/araclar/all".concat(e):"/araclar/".concat(null==a?void 0:a.value).concat(e)}else if("vehicleTypeName"===e)if(E.asPath.includes("?")&&!E.query.page)if("all"===a.value){A(e=>({...e,vehicleTypeName:"all"}));let e=E.asPath.split("?"),a=(0,r.Cw)(e[1]);t="/araclar/all".concat(a)}else if(E.asPath.includes("modelName"))t="/araclar/".concat(null==a?void 0:a.value);else{let e=E.asPath.split("?");t="/araclar/".concat(null==a?void 0:a.value,"?").concat(e[1])}else t="all"===a.value?"/araclar/all":"/araclar/".concat(null==a?void 0:a.value);else if("brandName"===e)if(E.asPath.includes("?")&&!E.query.page)if("all"===a.value){let e=E.asPath.split("?"),a=(0,r.Cw)(e[1]);t="/araclar/".concat(C.vehicleTypeName).concat(a)}else if(E.asPath.includes("modelName"))t="/araclar/".concat(C.vehicleTypeName,"/").concat(null==a?void 0:a.value);else{let e=E.asPath.split("?");t="/araclar/".concat(C.vehicleTypeName,"/").concat(null==a?void 0:a.value,"?").concat(e[1])}else"all"===a.value?t="/araclar/".concat(C.vehicleTypeName):(E.query.slug[0],t="/araclar/".concat(C.vehicleTypeName,"/").concat(null==a?void 0:a.value));
1else if("serialName"===e)if(E.asPath.includes("?")&&!E.query.page)if("all"===a.value){let e=E.asPath.split("?"),a=(0,r.Cw)(e[1]);t="/araclar/".concat(C.vehicleTypeName,"/").concat(C.brandName).concat(a)}else if(E.asPath.includes("modelName"))t="/araclar/".concat(C.vehicleTypeName,"/").concat(C.brandName,"-").concat(null==a?void 0:a.value);else{let e=E.asPath.split("?");t="/araclar/".concat(C.vehicleTypeName,"/").concat(C.brandName,"-").concat(null==a?void 0:a.value,"?").concat(e[1])}else t="all"===a.value?"/araclar/".concat(C.vehicleTypeName,"/").concat(C.brandName):"/araclar/".concat(C.vehicleTypeName,"/").concat(C.brandName,"-").concat(null==a?void 0:a.value);else if("modelName"===e)if(E.asPath.includes("?")&&!E.query.page)if("all"===a.value){let e=E.asPath.split("?"),a=(0,r.Cw)(e[1]);t="/araclar/".concat(C.vehicleTypeName,"/").concat(C.brandName,"-").concat(C.serialName).concat(a)}else t="/araclar/".concat(C.vehicleTypeName,"/").concat(C.brandName,"-").concat(C.serialName,"?modelName=").concat(null==a?void 0:a.value);else t="all"===a.value?E.asPath:"/araclar/".concat(C.vehicleTypeName,"/").concat(C.brandName,"-").concat(C.serialName,"?modelName=").concat(null==a?void 0:a.value);E.push(t)};(0,i.useEffect)(()=>{Z((e=>{let a=[e.vehicleTypeName,e.brandName,e.serialName,e.modelName],t=[e.bodyTypeName,e.minPrice,e.maxPrice,e.minYear,e.maxYear,e.minKm,e.maxKm,e.gearboxTypeName,e.fuelTypeName,e.colorName],l=[e.minUpfront,e.maxUpfront,e.minInstallment,e.maxInstallment,e.maturity],s=[e.cityName,e.isOwn],i=[e.motorVolumeName,e.enginePowerName,e.tractionName];return{dropdownFilter:a.some(e=>""!==e.trim()),vehicleFilter:t.some(e=>""!==e.trim()),paymentFilter:l.some(e=>""!==e.trim()),locationFilter:s.some(e=>"string"==typeof e&&""!==e.trim()||"boolean"==typeof e),technicalFilter:i.some(e=>""!==e.trim())}})(M))},[M]),(0,i.useEffect)(()=>{E.query.city&&A(e=>({...e,cityName:E.query.city}))},[E]),(0,i.useEffect)(()=>{J&&Q?A(e=>({...e,isOwn:""})):J&&!Q?A(e=>({...e,isOwn:!0})):Q&&!J&&A(e=>({...e,isOwn:!1}))},[J,Q]),(0,i.useEffect)(()=>{M.isOwn?$(!0):!1===M.isOwn?X(!0):($(!1),X(!1))},[M]);let[eo,ec]=(0,i.useState)({vehicleTypeName:"",brandName:"",modelName:""});(0,i.useEffect)(()=>{let e=(0,r.c9)(C),a=(0,r.BO)(C);(null==e?void 0:e.stepOne)&&(0,f.HW)(a.stepOne),(null==e?void 0:e.stepTwo)&&(0,f.HW)(a.stepTwo),(null==e?void 0:e.stepThree)&&(0,f.HW)(a.stepThree),(null==e?void 0:e.stepFour)&&(0,f.HW)(a.stepFour)},[E]);let ed=Object.entries(M).filter(e=>{let[a,t]=e;return!g.includes(a)&&""!==t&&null!==t}).flatMap(e=>{let[a,t]=e,l=v[a]||a;return"isOwn"===a?{label:a,title:l,value:t?"OtoSOR'dan":"Galeriden"}:["maxPrice","minPrice","maxInstallment","minInstallment","maxUpfront","minUpfront"].includes(a)?{label:a,title:l,value:"".concat((0,r.up)(t)," TL")}:"maturity"===a?"string"==typeof t&&t.includes(",")?t.split(",").map(e=>({label:a,title:l,value:"".concat(e.trim()," AY")})):{label:a,title:l,value:"".concat(t," AY")}:"string"==typeof t&&t.includes(",")?t.split(",").map(e=>({label:a,title:l,value:e.trim()})):{label:a,title:l,value:t}}).sort((e,a)=>e.label<a.label?-1:+(e.label>a.label));return(0,l.jsxs)("div",{className:"w-full ".concat(T?"h-full max-w-full":"max-w-[284px]"," "),children:[(0,l.jsxs)("div",{className:"relative flex w-full items-center justify-center py-4 lg:hidden",children:[(0,l.jsx)("p",{className:"text-16 font-bold leading-6 text-main-dark",children:"Filtre"}),(0,l.jsx)("button",{className:"absolute right-4 text-16 font-medium leading-6 text-accent",onClick:()=>{S(!1)},children:(0,l.jsx)(h.zhF,{size:24,className:"text-icon-grey-primary"})})]}),(0,l.jsxs)("div",{className:"filter-section sticky bottom-20 border-b border-t border-border-grey-primary px-4 py-[1px] md:border-none lg:px-0",children:[(0,l.jsxs)("div",{className:"".concat(L?"scrollbar-hide":""," flex h-[calc(100vh-290px)] max-h-min flex-col gap-4 overflow-y-auto overflow-x-hidden pb-6 pr-0 pt-6 md:pr-4 md:pt-0 lg:h-full lg:max-h-[650px]"),children:[(0,l.jsxs)("div",{className:"hidden items-center justify-between lg:flex",children:[(0,l.jsx)("p",{className:"text-22 font-bold leading-8 text-main-dark",children:"Filtrele"}),ee&&(0,l.jsx)("button",{className:"text-16 font-medium leading-6 text-accent",onClick:et,children:"Temizle"})]}),ed.length>0&&(0,l.jsx)("div",{className:"flex flex-wrap gap-2",children:ed.map((e,a)=>(0,l.jsxs)("div",{className:"flex w-fit items-center gap-1 whitespace-nowrap rounded-lg border border-border-grey-secondary p-1 text-14 leading-6 text-grey-primary",onClick:()=>{P?E.push("/araclar"):((e,a)=>{let t=a;if(a.includes("AY")?t=a.replace(/[.,AY]/g,"").trim():a.includes("TL")&&(t=a.replace(/[.,TL]/g,"").trim()),C[e]===t||"isOwn"===e)C[e]="";
1else if(C[e]&&String(C[e]).includes(",")){let a=String(C[e]).split(",").map(e=>e.trim()).filter(e=>e!==t);C[e]=a.join(",")}let l=E.asPath.includes("?")?E.asPath.split("?")[0]:E.asPath,s=(0,r.z9)(C);E.push("".concat(l,"?").concat(s))})(e.label,e.value.split(".").join(""))},children:[(0,l.jsxs)("span",{children:[e.title,": "]}),(0,l.jsx)("span",{children:e.value}),(0,l.jsx)(h.zhF,{size:12,className:"cursor-pointer"})]},a))}),(0,l.jsx)(d.A,{className:"hidden lg:block"}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(n.A,{placeholder:"Ara\xe7 Tipi",options:I,value:""!==C.vehicleTypeName&&I.find(e=>e.value===C.vehicleTypeName),onChange:e=>{L?A(a=>({...a,vehicleTypeName:e.value,brandName:"",serialName:"",modelName:""})):er("vehicleTypeName",e),ec(a=>({...a,vehicleTypeName:e.original})),(0,f.HW)({event:"filter_select",arac_tipi:e.original,filter_step:1})}}),(0,l.jsx)(n.A,{placeholder:"Marka",options:F,value:""!==C.brandName&&F.find(e=>e.value===C.brandName),onChange:e=>{L?A(a=>({...a,brandName:e.value,serialName:"",modelName:""})):er("brandName",e),ec(a=>({...a,brandName:e.original})),(0,f.HW)({event:"filter_select",arac_tipi:eo.vehicleTypeName,marka:e.original,filter_step:1})}}
1),(0,l.jsx)(n.A,{placeholder:"Seri",options:z,value:""!==C.serialName&&z.find(e=>e.value===C.serialName),onChange:e=>{L?A(a=>({...a,serialName:e.value,modelName:""})):er("serialName",e),ec(a=>({...a,serialName:e.original})),(0,f.HW)({event:"filter_select",arac_tipi:eo.vehicleTypeName,marka:eo.brandName,seri:e.original,filter_step:1})}}),(0,l.jsx)(n.A,{placeholder:"Model",options:B,value:""!==C.modelName&&B.find(e=>e.value===C.modelName),onChange:e=>{L?A(a=>({...a,modelName:e.value})):er("modelName",e),(0,f.HW)({event:"filter_select",arac_tipi:eo.vehicleTypeName,marka:eo.brandName,seri:eo.serialName,model:e.value,filter_step:1})}})]}),(0,l.jsx)(d.A,{}),(0,l.jsx)(x.A,{title:"Ara\xe7 Bilgilerine G\xf6re",shouldClose:H,isOpen:T||G.vehicleFilter,children:(0,l.jsx)("div",{className:"flex flex-col gap-4",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Kasa Tipi"}),(0,l.jsx)(n.A,{placeholder:"Kasa Tipi",options:(0,r.wb)(null==es||null==(a=es.data)?void 0:a.bodyTypes),value:(0,r.yb)(C.bodyTypeName),getOptionValue:e=>e.value,getOptionLabel:e=>e.label,isMulti:!0,onChange:e=>{A(a=>({...a,bodyTypeName:(0,r.lC)(e)}))}})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Fiyat"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(m.A,{placeholder:"Min. âº",type:"text",name:"minPrice",value:"0"===C.minPrice?"":""!==C.minPrice?(0,r.up)(C.minPrice):"",onChange:e=>A(a=>({...a,minPrice:""===e?e:(0,r.up)(e)}))}),(0,l.jsx)(m.A,{placeholder:"Maks. âº",type:"text",name:"maxPrice",value:"0"===C.maxPrice?"":""!==C.maxPrice?(0,r.up)(C.maxPrice):"",onChange:e=>A(a=>({...a,maxPrice:""===e?e:(0,r.up)(e)}))})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Model Yılı"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(m.A,{placeholder:"Min. Yıl",type:"number",name:"minYear",value:C.minYear,maxLength:4,onChange:e=>A(a=>({...a,minYear:e}))}),(0,l.jsx)(m.A,{placeholder:"Maks. Yıl",type:"number",name:"maxYear",value:C.maxYear,maxLength:4,onChange:e=>A(a=>({...a,maxYear:e}))})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Kilometre"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(m.A,{placeholder:"Min. KM",type:"text",name:"minKm",value:"
10"===C.minKm?"":""!==C.minKm?(0,r.up)(C.minKm):"",errorMessage:"Required",touched:!1,onChange:e=>A(a=>({...a,minKm:""===e?e:(0,r.up)(e)}))}),(0,l.jsx)(m.A,{placeholder:"Maks. KM",type:"text",name:"maxKm",value:"0"===C.maxKm?"":""!==C.maxKm?(0,r.up)(C.maxKm):"",errorMessage:"Required",touched:!1,onChange:e=>A(a=>({...a,maxKm:""===e?e:(0,r.up)(e)}))})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Vites"}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsx)("div",{className:"flex w-full cursor-pointer justify-start rounded-lg border p-3 transition-all ".concat(C.gearboxTypeName.includes("Manuel")&&C.gearboxTypeName.includes("Otomatik")?"border-main-dark":"border-border-grey-primary"),children:(0,l.jsx)(u.A,{checked:C.gearboxTypeName.includes("Manuel")&&C.gearboxTypeName.includes("Otomatik"),onChange:e=>A(a=>e?{...a,gearboxTypeName:"Manuel,Otomatik"}:{...a,gearboxTypeName:""}),label:"T\xfcm\xfc"})}),null==es||null==(s=es.data)||null==(t=s.gearboxTypes)?void 0:t.map((e,a)=>(0,l.jsx)("div",{className:"flex w-full cursor-pointer justify-start rounded-lg border p-3 transition-all ".concat(C.gearboxTypeName.includes(e.name)?"border-main-dark":"border-border-grey-primary"),children:(0,l.jsx)(u.A,{checked:C.gearboxTypeName.includes(e.name),onChange:a=>en("gearboxTypeName",e.name,a),label:e.name})},a))]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Yakıt"}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-2",children:null==es||null==(b=es.data)||null==(j=b.fuelTypes)?void 0:j.map((e,a)=>(0,l.jsx)("div",{className:"flex w-full cursor-pointer justify-start rounded-lg border p-3 transition-all ".concat(!0===C.fuelTypeName[e.name]?"border-main-dark":"border-border-grey-primary"),children:(0,l.jsx)(u.A,{checked:C.fuelTypeName.includes(e.name),onChange:a=>en("fuelTypeName",e.name,a),label:e.name})},a))})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Renk"}),(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(n.A,{placeholder:"Renk",isMulti:!0,options:(0,r.wb)(null==es||null==(N=es.data)?void 0:N.colors),value:(0,r.yb)(C.colorName),getOptionValue:e=>e.value,getOptionLabel:e=>e.label,onChange:e=>A(a=>({...a,colorName:(0,r.lC)(e)}))})})]})]})})}),(0,l.jsx)(d.A,{}),(0,l.jsx)(x.A,{title:"\xd6deme Bilgilerine G\xf6re",isOpen:T||G.paymentFilter,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"PeÅinat"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(m.A,{placeholder:"Min. âº",type:"text",name:"minUpfront",value:"0"===C.minUpfront?"":""!==C.minUpfront?(0,r.up)(C.minUpfront):"",onChange:e=>A(a=>({...a,minUpfront:""===e?e:(0,r.up)(e)}))}),(0,l.jsx)(m.A,{placeholder:"Maks. âº",type:"text",name:"maxUpfront",value:"0"===C.maxUpfront?"":""!==C.maxUpfront?(0,r.up)(C.maxUpfront):"",onChange:e=>A(a=>({...a,maxUpfront:""===e?e:(0,r.up)(e)}))})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Taksit Tutarı"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(m.A,{placeholder:"Min. âº",type:"text",name:"minInstallment",value:"0"===C.minInstallment?"":""!==C.minInstallment?(0,r.up)(C.minInstallment):"",onChange:e=>A(a=>({...a,minInstallment:""===e?e:(0,r.up)(e)}))}),(0,l.jsx)(m.A,{placeholder:"Maks. âº",type:"text",name:"maxInstallment",value:"0"===C.maxInstallment?"":""!==C.maxInstallment?(0,r.up)(C.maxInstallment):"",onChange:e=>{A(a=>({...a,maxInstallment:""===e?e:(0,r.up)(e)}))}})]}),(0,l.jsx)(n.A,{placeholder:"Vade Sayısı",options:y,isMulti:!0,value:(0,r.yb)(C.maturity),onChange:e=>{A(a=>({...a,maturity:(0,r.lC)(e)}))}})]})]})}),(0,l.jsx)(d.A,{}),(0,l.jsx)(x.A,{title:"Satıcı / Lokasyona G\xf6re",isOpen:T||G.locationFilter,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Lokasyon"}),(0,l.jsx)(n.A,{placeholder:"İl",options:D,isMulti:!0,value:(0,r.yb)(C.cityName),onChange:e=>{"all"===e.value?A(e=>({...e,cityName:""})):A(a=>({...a,cityName:(0,r.lC)(e)}))}})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Kimden"}),(0,l.jsxs)("div",{className:"flex w-fit gap-2",children:[(0,l.jsx)("div",{className:"flex w-full cursor-pointer justify-start rounded-lg border p-3 transition-all ".concat(C.isOwn?"border-main-dark font-medium":"border-border-grey-primary"),children:(0,l.jsx)(u.A,{checked:J,onChange:e=>{e?($(!0),X(!1)):($(!1),A(e=>({...e,isOwn:""})))},label:"OtoSOR'dan"})}),(0,l.jsx)("div",{className:"flex w-full cursor-pointer justify-start rounded-lg border p-3 transition-all ".concat(""===C.isOwn||C.isOwn?"border-border-grey-primary":"border-main-dark font-medium"),children:(0,l.jsx)(u.A,{checked:Q,onChange:e=>{e?(X(!0),$(!1)):(X(!1),A(e=>({...e,isOwn:""})))},label:"AnlaÅmalı Galeriden"})})]})]})]})}),(0,l.jsx)(d.A,{}),(0,l.jsx)(x.A,{title:"Ara\xe7 Teknik Bilgilerine G\xf6re",isOpen:T||G.technicalFilter,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Motor G\xfcc\xfc"}),(0,l.jsx)("div",{className:"flex max-h-[168px] flex-col gap-3 overflow-auto pr-1",children:null==q?void 0:q.map((e,a)=>(0,l.jsx)("div",{className:"flex w-full cursor-pointer justify-start rounded-lg transition-all",children:(0,l.jsx)(u.A,{checked:C.enginePowerName.includes(e.name),onChange:a=>en("enginePowerName",e.name,a),label:e.name})},a))})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"Motor Hacmi"}),(0,l.jsx)("div",{className:"flex max-h-[168px] flex-col gap-3 overflow-auto pr-1",children:null==es||null==(k=es.data)||null==(w=k.motorVolumes)?void 0:w.map((e,a)=>(0,l.jsx)("div",{className:"flex w-full cursor-pointer justify-start rounded-lg transition-all",children:(0,l.jsx)(u.A,{checked:C.motorVolumeName.includes(e.name),onChange:a=>en("motorVolumeName",e.name,a),label:e.name})},a))})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-14 font-medium leading-5 text-main-dark",children:"\xc7ekiÅ"}),(0,l.jsx)(n.A,{placeholder:"\xc7ekiÅ Se\xe7in",isMulti:!0,options:(0,r.wb)(null==es||null==(_=es.data)?void 0:_.tractions),value:(0,r.yb)(C.tractionName),getOptionValue:e=>e.value,getOptionLabel:e=>e.label,onChange:e=>A(a=>({...a,tractionName:(0,r.lC)(e)}))})]})]})})]}),(0,l.jsx)("div",{className:"pr-4",children:(0,l.jsx)(c.A,{primary:!0,className:"!hidden !w-full !bg-main-dark lg:!flex",onClick:()=>
1{if(P)E.push("/araclar?"+(0,r.z9)(C));else{let e=E.asPath.includes("?")?E.asPath.split("?")[0]:E.asPath;E.push(e+"?"+(0,r.z9)(C)),L&&S(!1)}},children:"Filtrele"})})]}),(0,l.jsx)("div",{className:"flex w-full px-4 pt-2 lg:hidden",children:(0,l.jsxs)("div",{className:"flex w-full gap-2 lg:!static",children:[ee&&(0,l.jsx)(c.A,{secondary:!0,className:"!w-full",onClick:et,children:"Temizle"}),(0,l.jsx)(c.A,{primary:!0,className:"!w-full !bg-main-dark",onClick:()=>{let e={...C};"all"===e.brandName?(e.brandName="",e.serialName="",e.modelName=""):"all"===e.serialName?(e.serialName="",e.modelName=""):"all"===e.modelName&&(e.modelName=""),A(e),E.push((0,r.z9)(e,!0)),S(!1)},children:"Filtrele"})]})})]})}let y=[{label:"12 Ay",value:"12"},{label:"24 Ay",value:"24"},{label:"36 Ay",value:"36"},{label:"48 Ay",value:"48"}];var b=t(84634),N=t(96557),w=t(1412),k=t(16208);let _=e=>(0,l.jsx)("svg",{...e,width:"25",height:"24",viewBox:"0 0 25 24",fill:e.fill||"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("g",{id:"vuesax/linear/filter",children:(0,l.jsxs)("g",{id:"filter",children:[(0,l.jsx)("path",{id:"Vector",d:"M5.6499 2.09961H18.8499C19.9499 2.09961 20.8499 2.99961 20.8499 4.09961V6.29961C20.8499 7.09961 20.3499 8.09961 19.8499 8.59961L15.5499 12.3996C14.9499 12.8996 14.5499 13.8996 14.5499 14.6996V18.9996C14.5499 19.5996 14.1499 20.3996 13.6499 20.6996L12.2499 21.5996C10.9499 22.3996 9.1499 21.4996 9.1499 19.8996V14.5996C9.1499 13.8996 8.7499 12.9996 8.3499 12.4996L4.5499 8.49961C4.0499 7.99961 3.6499 7.09961 3.6499 6.49961V4.19961C3.6499 2.99961 4.5499 2.09961 5.6499 2.09961Z",stroke:e.stroke||"#171717",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{id:"Vector_2",d:"M11.18 2.09961L6.25 9.99961",stroke:e.stroke||"#171717",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),C=e=>(0,l.jsx)("svg",{...e,width:"25",height:"24",viewBox:"0 0 25 24",fill:e.fill||"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("g",{id:"vuesax/linear/sort",children:(0,l.jsxs)("g",{id:"sort",children:[(0,l.jsx)("path",{id:"Vector",d:"M3.25 7H21.25",stroke:e.stroke||"#171717",strokeWidth:"1.5",strokeLinecap:"round"}),(0,l.jsxs)("g",{id:"Vector_2",children:[(0,l.jsx)("path",{d:"M6.25 12H18.25H6.25Z",fill:e.fill||"#6B7280"}),(0,l.jsx)("path",{d:"M6.25 12H18.25",stroke:e.stroke||"#171717",strokeWidth:"1.5",strokeLinecap:"round"})]}),(0,l.jsx)("path",{id:"Vector_3",d:"M10.25 17H14.25",stroke:e.stroke||"#171717",strokeWidth:"1.5",strokeLinecap:"round"})]})})}),A=e=>(0,l.jsx)("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:e.fill||"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("g",{id:"vuesax/linear/row-vertical",children:(0,l.jsxs)("g",{id:"row-vertical",children:[(0,l.jsx)("path",{id:"Vector",d:"M19.9 13.5H4.1C2.6 13.5 2 14.14 2 15.73V19.77C2 21.36 2.6 22 4.1 22H19.9C21.4 22 22 21.36 22 19.77V15.73C22 14.14 21.4 13.5 19.9 13.5Z",stroke:e.stroke||"#171717",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{id:"Vector_2",d:"M19.9 2H4.1C2.6 2 2 2.64 2 4.23V8.27C2 9.86 2.6 10.5 4.1 10.5H19.9C21.4 10.5 22 9.86 22 8.27V4.23C22 2.64 21.4 2 19.9 2Z",stroke:e.stroke||"#171717",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})});var T=t(67284),L=t(93663),S=t(29783),M=t(31777),P=t(11908),E=t(25585);function I(e){let{filtersTemp:a,setFiltersTemp:t,vehicleQuery:s,isMobile:n,sortingValues:o,setShowSlideListing:d}=e,m=(0,N.Ub)({maxWidth:500}),u=(0,p.useRouter)(),{height:x}=(0,L.A)(),[h,f]=(0,i.useState)(!1),[g,v]=(0,i.useState)(!1),y=(0,M.d4)(e=>e.vehicleComparison);return(0,i.useEffect)(()=>{{let e=(0,r.XJ)();h?(document.body.classList.add("overflowHidden"),n||(document.body.style.paddingRight="".concat(e,"px"))):(document.body.classList.remove("overflowHidden"),document.body.style.paddingRight="0px")}},[h]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4 md:gap-8",children:[(0,l.jsxs)("div",{className:"flex justify-between gap-4 px-4",children:[(0,l.jsxs)(c.A,{secondary:!0,className:"!h-full !w-full !py-4",onClick:()=>f(!0),children:[(0,l.jsx)(_,{}),(0,l.jsx)("span",{className:"text-16 font-medium leading-6 text-grey-primary",children:"Filtrele"})]}
1),(0,l.jsx)(T.A,{snapPoints:["".concat(x/3+210,"px")],isOpen:g,setIsOpen:v,className:"!w-full",buttonChildren:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C,{}),(0,l.jsx)("span",{className:"text-16 font-medium leading-6 text-grey-primary",children:"Sırala"})]}),button:"flex !w-full items-center justify-center gap-2 rounded-lg border border-border-grey-secondary p-4",buttonTitle:"Open Drawer",content:(0,l.jsx)(O,{sortingValues:o,setIsSortingOpen:v,vehicleQuery:s})}),m&&(0,l.jsx)("button",{className:"flex w-fit items-center justify-center gap-2 rounded-lg border border-border-grey-secondary p-4",onClick:()=>d(!0),children:(0,l.jsx)(A,{})})]}),y.length>0&&(0,l.jsx)("div",{className:"cursor-pointer px-4",onClick:()=>u.push("/araclar/ilan-karsilastirma"),children:(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border-grey-primary px-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(P.A,{className:"text-main-dark"}),(0,l.jsxs)("span",{className:"text-16 font-medium leading-6 text-grey-primary",children:[y.length," Ara\xe7 Se\xe7ildi"]})]}),(0,l.jsx)(w.L2n,{size:24,className:"text-main-dark"})]})})]}),(0,l.jsx)(E.A,{isOpen:h,setIsOpen:f,children:(0,l.jsx)(j,{isBottomSheet:!0,filtersTemp:a,setFiltersTemp:t,vehicleQuery:s,setIsFilterOpen:f,isMobile:n})})]})}let O=e=>{let{setIsSortingOpen:a,sortingValues:t,vehicleQuery:s}=e,n=(0,p.useRouter)(),[r,o]=(0,i.useState)(null==s?void 0:s.sorting);return(0,l.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("h2",{className:"text-16 font-bold leading-6 text-main-dark",children:"Sırala"}),(0,l.jsx)("button",{className:"absolute right-4 text-16 font-medium leading-6 text-accent",onClick:()=>{a(!1)},children:(0,l.jsx)(h.zhF,{size:24,className:"text-icon-grey-primary"})})]}),(0,l.jsx)(d.A,{}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)("div",{className:"flex flex-col gap-4",children:t.map((e,a)=>(0,l.jsx)(S.A,{label:e.label,value:e.value,checked:r===e.value,onChange:e=>{o(e)}},a))}),(0,l.jsx)(c.A,{primary:!0,className:"!w-full !bg-main-dark",onClick:()=>{let[e,t]=n.asPath.split("?"),l=new URLSearchParams(t||"");l.has("sorting")?l.set("sorting",r):l.append("sorting",r);let s="".concat(e,"?").concat(l.toString());n.push(s),a(!1)},children:"Kaydet"})]})]})};var F=t(40479),V=t(49813),z=t(54587),R=t.n(z),B=t(53887),Y=t(48230),D=t.n(Y),W=t(6247),q=t(35373),K=t(798),H=t(26435),U=t(95682),G=t(62088);function Z(e){let{vehicle:a}=e,t=(0,N.Ub)({maxWidth:767}),{height:s}=(0,L.A)(),[n,o]=(0,i.useState)(!1),[m,u]=(0,i.useState)(!1),[x,g]=(0,i.useState)(""),[v,j]=(0,i.useState)(!1),y=(0,p.useRouter)(),b=(0,M.wA)(),{user:w}=(0,M.d4)(e=>e.user),[k,_]=(0,i.useState)(!1),[C,A]=(0,i.useState)({code:"",message:""}),[S,P]=(0,i.useState)(!1),[E,I]=(0,i.useState)(!1),[O,F]=(0,q.B8)(),[V]=(0,q.sB)(),[z]=(0,q.H7)(),Y=async()=>{await O({vehicleId:a.portalId,authorization:null==w?void 0:w.token})};(0,i.useEffect)(()=>{(null==w?void 0:w.token)&&Y()},[w]),(0,i.useEffect)(()=>{var e,a;(null==F||null==(a=F.currentData)||null==(e=a.data)?void 0:e.data)?o(!0):o(!1)},[F]);let Z=()=>{n?X():J()},X=async()=>{P(!0),"S"===(await z({vehicleId:a.portalId,authorization:null==w?void 0:w.token})).data.data.type?(P(!1),o(!1),Y()):(P(!1),_(!0),A({code:"",message:data.data.errorMessage||"Bir sorun oluÅtu. L\xfctfen daha sonra tekrar deneyin."}))},J=async()=>{P(!0);let e=await V({vehicleId:a.portalId,authorization:null==w?void 0:w.token});"S"===e.data.data.type?(P(!1),o(!0),Y()):(P(!1),_(!0),A({code:"",message:e.data.data.errorMessage||"Bir sorun oluÅtu. L\xfctfen daha sonra tekrar deneyin."}))};(0,i.useEffect)(()=>{g("/ilan/".concat((0,r.dp)("".concat(a.brand,"-").concat(a.serial,"-").concat(a.model,"-").concat(a.gearBoxType,"-").concat(a.fuelType,"-").concat(a.modelYear,"-").concat(a.portalId))))},[a]);let $=()=>{(0,f.Qz)(a,"Ara\xe7lar")};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative flex h-full w-full cursor-pointer flex-col items-end justify-end overflow-hidden rounded-lg bg-white",style:{boxShadow:" 0px 2px 10px 0px rgba(1, 18, 34, 0.1), 0px 1px 5px 0px rgba(1, 18, 34, 0.08)"},children:[(0,l.jsxs)(D(),{href:x,className:"h-full w-full",onClick:$,children:[(0,l.jsx)(R(),{src:a.showcaseImage,width:2e3,height:2e3,alt:"".concat(a.brand+" "+a.serial+" "+a.model),onLoad:()=>I(!0),loading:"lazy",className:"aspect-square h-full max-h-[280px] w-full object-cover object-top md:max-h-[240px]"}),!E&&(0,l.jsx)("div",{className:"skeleton absolute left-0 top-0 aspect-square h-full max-h-[280px] w-full object-cover object-top md:max-h-[240px]"})]}),(0,l.jsxs)("div",{className:"flex h-full w-full flex-grow flex-col justify-between gap-4 px-4 py-6",children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-between gap-1",children:[(0,l.jsx)(D(),{href:x,onClick:$,children:(0,l.jsx)("h4",{className:"text-16 font-medium leading-6 text-main-dark",children:a.brand+" "+a.serial+" "+a.model})}),t?(0,l.jsx)(l.Fragment,{children:(null==w?void 0:w.token)?(0,l.jsx)("div",{className:"w-fit",onClick:()=>Z(),children:n?(0,l.jsx)(H.eS$,{size:24,className:"cursor-pointer text-main-dark"}):(0,l.jsx)(H.Lrx,{size:24,className:"cursor-pointer text-main-dark"})}):(0,l.jsx)(T.A,{snapPoints:["".concat(s/3-20,"px")],isOpen:m,setIsOpen:u,className:"!w-fit",buttonChildren:(0,l.jsx)(H.Lrx,{size:24,className:"cursor-pointer text-main-dark",onClick:()=>u(!0)}),button:"flex w-fit items-center justify-center gap-2 rounded-lg",buttonTitle:"Open Drawer",content:(0,l.jsx)(Q,{setIsOpen:u,url:x})})}):(0,l.jsx)("div",{className:"w-fit",children:n?(0,l.jsx)(H.eS$,{size:24,className:"cursor-pointer text-main-dark",onClick:()=>Z()}):(0,l.jsx)(H.Lrx,{size:24,className:"cursor-pointer text-main-dark",onClick:()=>{(null==w?void 0:w.token)?Z():j(!0)}})})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,l.jsxs)("p",{className:"text-16 font-bold leading-7 text-main-dark",children:["⺠",(0,r.up)(a.amount)]}),a.amount<2e6&&(0,l.jsx)("div",{className:"rounded-lg bg-main-primary p-2",children:(0,l.jsxs)("p",{className:"text-16 font-bold leading-6 text-white",children:["âº",(0,r.up)(a.installmentAmount)," x ",a.maturity," ","ay"]})})]}),(0,l.jsxs)("div",{className:"vehicle-listing-card-footer flex w-full items-center justify-between gap-1",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(R(),{width:24,height:24,src:"/assets/images/gearshift.png",alt:"gearshift icon"}),(0,l.jsx)("p",{className:"text-12 leading-4 text-main-dark lg:text-14",children:a.gearBoxType})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(R(),{width:24,height:24,src:"/assets/images/tire.png",alt:"tire icon"}),(0,l.jsxs)("p",{className:"text-12 leading-4 text-main-dark lg:text-14",children:[(0,r.up)(a.km)," KM"]}
1)]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(R(),{width:24,height:24,src:"/assets/images/car-frame.png",alt:"car icon"}),(0,l.jsx)("p",{className:"text-12 leading-4 text-main-dark lg:text-14",children:a.modelYear})]})]})]}),(0,l.jsxs)("div",{className:"absolute left-0 top-0 flex h-full max-h-8 w-full justify-between p-4",children:[(0,l.jsxs)("div",{className:"shadow-1 flex h-fit max-h-8 w-fit items-center justify-between gap-2 rounded-lg !border-0 bg-white px-2 py-1",children:[(0,l.jsx)(B.A,{stroke:"#081F2C"}),(0,l.jsx)("p",{className:"text-12 font-medium leading-4 text-main-dark",children:a.city})]}),a.isOwn&&(0,l.jsx)("div",{className:"h-fit max-h-8 w-fit rounded-lg bg-main-dark px-2 py-1",children:(0,l.jsx)(R(),{width:100,height:100,src:"/assets/icons/logo-white.svg",alt:"white logo",className:"h-full"})})]})]}),(0,l.jsx)(W.A,{visible:v,onClose:()=>j(!1),children:(0,l.jsxs)("div",{className:"mx-auto flex max-w-sm flex-col gap-4 rounded-lg bg-white p-6",children:[(0,l.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,l.jsx)("h2",{className:"text-center text-16 font-bold leading-6 text-main-dark",children:"Favori Ekle"}),(0,l.jsx)(h.zhF,{size:24,className:"absolute right-0 top-0 cursor-pointer text-icon-grey-primary",onClick:()=>j(!1)})]}),(0,l.jsx)(d.A,{}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)("span",{className:"text-14 leading-5 text-main-dark",children:"Favoriye ekleyebilmek i\xe7in giriŠyapmanız gerekmektedir."}),(0,l.jsx)(c.A,{primary:!0,className:"!w-full !bg-main-dark",onClick:()=>{b((0,U.Pd)(x)),y.push("/giris-yap")},children:"GiriŠYap"})]})]})}),k&&(0,l.jsx)(K.A,{errorMessage:C,showErrorMessageModal:k,setShowErrorMessageModal:_}),S&&(0,l.jsx)(G.A,{})]})}let Q=e=>{let{setIsOpen:a,url:t}=e,s=(0,M.wA)(),i=(0,p.useRouter)();return(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("h2",{className:"text-16 font-bold leading-6 text-main-dark",children:"Favoriye Ekle"}),(0,l.jsx)("button",{className:"absolute right-4 text-16 font-medium leading-6 text-accent",onClick:()=>{a(!1)},children:(0,l.jsx)(h.zhF,{size:24,className:"text-icon-grey-primary"})})]}),(0,l.jsx)(d.A,{}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)("div",{className:"flex flex-col gap-4",children:(0,l.jsx)("p",{className:"text-14 leading-5 text-main-dark",children:"Favoriye ekleyebilmek i\xe7in giriŠyapmanız gerekmektedir."})}),(0,l.jsx)(c.A,{primary:!0,className:"!w-full !bg-main-dark",onClick:()=>{s((0,U.Pd)(t)),i.push("/giris-yap")},children:"GiriŠYap"})]})]})};function X(e){let{vehicles:a}=e;return(0,l.jsx)("div",{className:"flex h-full grid-cols-1 flex-col gap-8 px-0 sm:px-4 md:grid md:grid-cols-2 lg:px-0 lg:pl-4 xl:grid-cols-3",children:null==a?void 0:a.map(e=>(0,l.jsx)(Z,{vehicle:e},e.id))})}var J=t(84022);t(60058);var $=t(32935),ee=t(10282);function ea(e){let{value:a,isOpen:t,setIsOpen:s,url:n,height:r}=e,o=(0,M.wA)(),c=(0,N.Ub)({maxWidth:767}),[d,m]=(0,i.useState)(["".concat(r/2+100,"px")]),{title:u,desc:x}=a,h=(0,p.useRouter)();return(0,i.useEffect)(()=>{c?m(["".concat(r/2+250,"px")]):m(["".concat(r/2+100,"px")])},[c]),(0,l.jsx)(l.Fragment,{children:n?(0,l.jsxs)("button",{className:"flex w-full min-w-[343px] items-center gap-3 rounded-lg border-0 border-border-highlight-secondary px-4 py-6 transition-all hover:border-main-primary md:min-w-fit lg:border",onClick:()=>{h.push(n),o((0,ee.iX)([])),o((0,ee.th)())},children:[(0,l.jsx)("div",{className:"h-fit w-fit rounded-lg bg-main-dark p-2",children:(0,l.jsx)($.k,{src:a.icon,beforeInjection:e=>{e.setAttribute("style","width: 24px; height: 24px;")}})}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[(0,l.jsx)("span",{className:"text-left text-16 font-bold leading-6 text-main-dark",children:u}),(0,l.jsx)("span",{className:"text-left text-12 leading-4 text-main-dark",children:x})]}),(0,l.jsx)(w.L2n,{})]})]}):(0,l.jsxs)("button",{className:"flex w-full min-w-[343px] items-center gap-3 rounded-lg border-0 border-border-highlight-secondary px-4 py-6 transition-all hover:border-main-primary md:min-w-fit lg:border",onClick:()=>{s(!0)}
1,children:[(0,l.jsx)("div",{className:"h-fit w-fit rounded-lg bg-main-dark p-2",children:(0,l.jsx)($.k,{src:a.icon,beforeInjection:e=>{e.setAttribute("style","width: 24px; height: 24px;")}})}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[(0,l.jsx)("span",{className:"text-left text-16 font-bold leading-6 text-main-dark",children:u}),(0,l.jsx)("span",{className:"text-left text-12 leading-4 text-main-dark",children:x})]}),(0,l.jsx)(w.L2n,{})]})]})})}function et(e){let{data:a,elementWidth:t,pageData:s,setIsOpen:n,isOpen:r}=e,{height:o}=(0,L.A)(),c=["".concat(o/2+180,"px"),1],d=(0,i.useRef)(null),[m,u]=(0,i.useState)(0);(0,i.useEffect)(()=>{d.current.splide.refresh()},[a]);let x=e=>{d.current.go(e),u(e)};return(0,l.jsxs)("div",{className:"flex w-full flex-col items-center justify-center overflow-hidden rounded-lg border border-border-highlight-secondary",children:[(0,l.jsx)("div",{className:"mx-auto flex w-full flex-col items-center justify-end gap-8",children:(0,l.jsx)("div",{className:"splide relative w-full",children:(0,l.jsx)(J.eB,{ref:d,onMoved:e=>{u(e.index)},options:{perPage:1,perMove:1,drag:!0,pagination:!1,arrows:!1},children:s.map((e,a)=>(0,l.jsx)(J.Nn,{className:"md:justify-center",children:(0,l.jsx)(ea,{value:{title:e.title,desc:e.description,icon:e.picture_file},url:e.url||null,snapPoints:c,isOpen:r,setIsOpen:n,height:o})},a))})})}),(0,l.jsx)("div",{className:"pagination-container flex flex-row items-center gap-3 pb-2",style:{width:t-50},children:(()=>{let e=[];for(let a=0;a<2;a++){let t=a===m;e.push((0,l.jsx)("button",{className:"w-full ".concat(t?"h-1 bg-main-dark":"h-[2px] bg-primary100"," pagination-button rounded-full"),onClick:()=>x(a)},a))}return e})()})]})}var el=t(41639),es=t(69623);function ei(e){let{showShortcut:a,data:t,elementWidth:s}=e,n=(0,p.useRouter)(),r=(0,i.useRef)(null),o=(0,i.useRef)([]),[d,m]=(0,i.useState)(!1),[u,x]=(0,i.useState)(0),[h,f]=(0,i.useState)(0),{width:g}=(0,L.A)(),[v,j]=(0,i.useState)(0),y=()=>{m(!1)};return((0,i.useEffect)(()=>{g>=1280?j(s+(g-1280)/2):g>=1024&&g<1280?j(s+16):g<1024&&j(s)},[g,s]),(0,i.useEffect)(()=>{let e=n.asPath,a=t.findIndex(a=>a.url===e);-1!==a&&o.current[a]&&o.current[a].scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},[n.asPath,t]),a)?(0,l.jsx)("div",{className:"h-9 w-full",children:(0,l.jsx)("div",{className:"absolute left-0 flex items-center gap-1",style:{width:v},children:(0,l.jsx)("div",{className:"active:cursor-grabbin scrollbar-hide flex cursor-grab justify-start gap-4 overflow-x-auto scroll-smooth whitespace-nowrap text-white pb-1 ".concat("pl-4"," "),ref:r,onMouseDown:e=>{r.current&&(m(!0),x(e.pageX-r.current.offsetLeft),f(r.current.scrollLeft))},onMouseMove:e=>{if(!d||!r.current)return;e.preventDefault();let a=e.pageX-r.current.offsetLeft;r.current.scrollLeft=h-(a-u)*2},onMouseLeave:y,onMouseUp:y,children:t.map((e,a)=>{let s=e.url===n.asPath;return(0,l.jsx)("div",{ref:e=>o.current[a]=e,href:e.url,style:{userSelect:"none",marginRight:16*(a===t.length-1)},className:"".concat(n.asPath===e.url?"hidden":""),children:(0,l.jsx)(c.A,{secondary:!0,url:e.url,draggable:"false",className:"relative flex items-center justify-center rounded-lg !border-main-dark !px-3 !py-1 leading-none active:!bg-main-dark ".concat(s?"!bg-main-dark !text-white":""," "),style:{userSelect:"none"},onClick:a=>{if(d)return void a.preventDefault();n.push(e.url)},children:(0,l.jsx)("span",{className:"text-16",children:e.title})},a)},a)})})})}):null}var en=t(82673);function er(e){let{elementWidth:a,featuredVehicles:t}=e,{width:s}=(0,L.A)(),[n,r]=(0,i.useState)(0);return(0,i.useEffect)(()=>{s>=1280?r(a+(s-1280)/2):s>=1024&&s<1280?r(a+16):s<1024&&r(a)},[s,a]),(0,l.jsx)("div",{className:"h-[480px] w-full mt-4 md:mt-0 mb-6 lg:mb-0",children:(0,l.jsx)("div",{className:"absolute left-0 flex items-center gap-1",style:{width:n},children:(0,l.jsxs)("div",{className:"w-full flex-col active:cursor-grabbin scrollbar-hide flex cursor-grab justify-start gap-6 md:gap-8 overflow-x-auto scroll-smooth whitespace-nowrap text-white",children:[(0,l.jsx)("div",{className:"px-4 flex flex-col gap-6",children:(0,l.jsx)("h2",{className:"text-24 font-bold leading-8 text-main-dark",children:"\xd6nerilen Ara\xe7lar"})}),(0,l.jsx)(en.A,{data:t.vehicles,light:!0,listname:"\xd6nerilen Ara\xe7lar",isNoVehicles:!0,left:null,resetSlide:null})]})})})}function eo(e){let{featuredVehicles:a}=e,{offsetLeft:t}=(0,M.d4)(e=>e.generalControl),[s,n]=(0,i.useState)(0);return(0,l.jsxs)("div",{className:"md:y-16 flex flex-col gap-6 bg-primary50 py-8 md:gap-8",children:[(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-[1280px] flex-col gap-6 pl-4 md:gap-8",children:[(0,l.jsx)("p",{className:"text-22 font-bold leading-10 text-main-dark md:text-28",children:"\xd6nerilen Ara\xe7lar"}),(0,l.jsx)("div",{className:"scrollbar-hide flex items-center justify-between overflow-auto",children:(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)("button",{className:"transition-all ".concat(0===s?"button-primary !bg-main-dark":"button-tertiary"),onClick:()=>n(0),children:"\xd6ne \xc7ıkanlar"})})})]}),(0,l.jsx)("div",{className:"flex flex-col items-center justify-center gap-6",children:(0,l.jsx)(en.A,{data:null==a?void 0:a.vehicles,light:!0,left:t,listname:"Ara\xe7lar Benzer İlanlar"})})]})}let ec=e=>"Sırala (".concat(e,")");function ed(e){let{data:a,filtersTemp:t,setFiltersTemp:s,vehicleQuery:n,isMobile:r,setShowSlideListing:o,pageData:c,noVehicles:d,settings:m,article:u,isSubFooterLink:x,shortcutItems:h,showShortcut:g,metaData:v,isForcedSuccess:j,featuredVehicles:y}=e,b=(0,i.useRef)(),N=(0,i.useRef)(),w=(0,i.useRef)(null),{width:_,height:C}=(0,L.A)(),A=(0,p.useRouter)(),T=["".concat(C/2+180,"px"),1],[S,P]=(0,i.useState)(!1),[E,O]=(0,i.useState)(null),[F,V]=(0,i.useState)(!1);(0,i.useEffect)(()=>{b.current&&O(b.current.clientWidth),N.current&&O(N.current.clientWidth)},[_]);let z=(0,M.d4)(e=>e.vehicleComparison),{isSuggestionSurveySubmit:R,pathHistory:B}=(0,M.d4)(e=>e.generalControl),Y=(0,i.useRef)(null);return(0,i.useEffect)(()=>
1{if(sessionStorage.getItem("suggest_survey_auto_shown"))return;let e=()=>{clearTimeout(w.current),clearInterval(Y.current);let e=55e3;Y.current=setInterval(()=>{(e-=1e3)<=0&&clearInterval(Y.current)},1e3),w.current=setTimeout(()=>{sessionStorage.getItem("suggest_survey_auto_shown")||(sessionStorage.setItem("suggest_survey_auto_shown","true"),P(!0),(0,f.fD)())},55e3)},a=["mousemove","mousedown","keydown","touchstart","scroll"];return a.forEach(a=>window.addEventListener(a,e,{passive:!0})),e(),()=>{clearTimeout(w.current),clearInterval(Y.current),a.forEach(a=>window.removeEventListener(a,e))}},[]),(0,i.useEffect)(()=>{var e;let t=null==a||null==(e=a.vehicles)?void 0:e.map((e,a)=>({item_id:e.portalId,item_name:"".concat(e.brand," ").concat(e.model),price:e.amount.toLocaleString("tr-TR"),index:a,item_list_name:"Ara\xe7lar",item_variant:e.model.split(" ")[0],item_brand:e.brand,item_category:e.brand,item_category1:e.model,item_category2:e.modelYear,item_category3:e.gearBoxType,item_category4:e.enginePower,item_category5:e.motorVolume,km:e.km,yakit_turu:e.fuelType,kasa_tipi:e.bodyType,marka:e.brand,seri:e.serial,cekis_tipi:e.traction,renk:e.color,ilk_gorsel:e.showcaseImage||""}));(0,f.vi)(t)},[a]),(0,i.useEffect)(()=>{R&&(A.asPath!==B&&d?V(!0):V(!1))},[R,d,A]),(0,i.useEffect)(()=>{d?(0,f.o)({event:"hata",errorType:"Ara\xe7 listesi",errorMessage:"AradıÄınız kriterlere uygun ara\xe7 bulunamadı!",pageURL:window.location.href}):sessionStorage.removeItem("itemListId")},[d]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative flex h-full w-full flex-col gap-4 md:gap-8",children:[(0,l.jsx)("div",{className:"w-full px-4 lg:px-0",ref:b,children:r?(0,l.jsx)(et,{elementWidth:E,pageData:c,setIsOpen:P,isOpen:S}):(0,l.jsx)(eu,{pageData:c,isOpen:S,setIsOpen:P,snapPoints:T,height:C})}),r?(0,l.jsx)(I,{filtersTemp:t,setFiltersTemp:s,vehicleQuery:n,isMobile:r,sortingValues:eg,setShowSlideListing:o}):(0,l.jsx)(ep,{noVehicles:d,settings:m,isSubFooterLink:x,article:u,totalItemCount:null==a?void 0:a.totalItemCount,sortingValues:eg,vehicleQuery:n,setFiltersTemp:s,vehiclesLength:null==z?void 0:z.length,router:A,metaData:v,isForcedSuccess:j}),(0,l.jsx)(ei,{showShortcut:g,data:h,elementWidth:E}),d?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex w-full flex-col items-start gap-4 px-4 ml-0 mt-4 lg:mt-0",children:(0,l.jsx)("div",{className:"w-full p-4 bg-[#F4F4F2] rounded-lg",children:(0,l.jsx)("p",{className:"w-full text-left text-18 font-bold leading-24 text-main-dark md:text-28 md:leading-40 flex flex-col max-w-[750px]",children:"AradıÄınız kriterlere uygun ara\xe7 bulunamadı! Alternatif ara\xe7larımızı inceleyebilirsiniz."})})}),(0,l.jsx)(er,{elementWidth:E,featuredVehicles:y})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(X,{vehicles:null==a?void 0:a.vehicles}),(0,l.jsx)(k.A,{currentPage:a.pageNumber,pageCount:a.totalPageCount,handlePageClick:e=>{let[a,t]=A.asPath.split("?"),l=new URLSearchParams(t||"");l.has("page")?l.set("page",e+1):l.append("page",e+1);let s="".concat(a,"?").concat(l.toString());if(0===e){let e=s.replace(/[\?&]page=\d+(&|$)/,(e,a)=>a?"?":"").replace(/\?$/,"");A.push(e)}else A.push(s)},className:"px-4 md:px-0",returnPageUrl:(e,a,t)=>{let l=A.asPath.split("?");if(1===e){let e=el.A.parse(l[1]);return(delete e.page,delete e.sorting,Object.keys(e).length>0)?"".concat(l[0],"?").concat(el.A.stringify(e)):"".concat(l[0],"?page=1")}if(e>1&&e<=a){let a=el.A.parse(l[1]);return a.page=e,delete a.sorting,"".concat(l[0],"?").concat(el.A.stringify(a))}}})]})]}),(0,l.jsx)(em,{isOpen:S,setIsOpen:P,pageData:c,height:C,showSuggestionWarningModal:F,setShowSuggestionWarningModal:V})]})}let em=e=>{let{isOpen:a,setIsOpen:t,pageData:s,height:n,showSuggestionWarningModal:r,setShowSuggestionWarningModal:o}=e,d=(0,M.wA)();return(0,i.useEffect)(()=>{o(!1)},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eh,{isOpen:a,setIsOpen:t,data:s,height:n}),(0,l.jsx)(W.A,{visible:r,onClose:()=>o(!1),children:(0,l.jsxs)("div",{className:"mx-auto flex max-w-sm flex-col gap-6 rounded-lg bg-white p-6",children:[(0,l.jsx)("div",{className:"relative mb-4 flex items-center justify-center",children:(0,l.jsx)(h.zhF,{size:24,className:"absolute right-0 top-0 cursor-pointer text-icon-grey-primary",onClick:()=>{o(!1),d((0,es.VS)(!1))}})}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)("span",{className:"text-center text-14 leading-5 text-main-dark",children:"AradıÄınız kriterlere uygun ara\xe7 bulunamadı"}),(0,l.jsx)(c.A,{primary:!0,className:"!w-full !bg-main-dark",onClick:()=>{o(!1),d((0,es.VS)(!1)),t(!0)},children:"Yeni anket doldurun"})]})]})})]})},eu=e=>{let{pageData:a,isOpen:t,setIsOpen:s,height:i,snapPoints:n}=e;return(0,l.jsx)("div",{className:"flex w-full gap-0 overflow-auto rounded-lg border border-border-highlight-secondary md:gap-8 md:border-0 lg:rounded-none pl-4",children:(0,l.jsx)(l.Fragment,{children:null==a?void 0:a.map((e,a)=>
1(0,l.jsx)(ea,{value:{title:e.title,desc:e.description,icon:e.picture_file},url:e.url,snapPoints:n,isOpen:t,setIsOpen:s,height:i},a))})})},ex=e=>{let{settings:a,isSubFooterLink:t,article:s,metaData:i,isForcedSuccess:n}=e,r=(0,p.useRouter)();if("/araclar/elektrikli-arabalar"===r.asPath.split("?")[0]||"/araclar/elektrik-arabalar"===r.asPath.split("?")[0])return(0,l.jsx)("h1",{className:"heading-1 pl-4 text-22 font-bold leading-8 text-main-dark",children:"İkinci El Elektrikli Ara\xe7"});if(n&&!(null==i?void 0:i.c_page_title))return(0,l.jsx)("h1",{className:"heading-1 pl-4 text-22 font-bold leading-8 text-main-dark",children:"İkinci El Arabalar"});if(t&&((null==i?void 0:i.c_page_title)||(null==i?void 0:i.c_meta_title)||(null==s?void 0:s.c_name))){let e=(e=>e?e.replace(/^İkinci El\s*/i,"").split(" Araba")[0].split(" Modelleri")[0].split(" Fiyatları")[0].trim():"")(null==i?void 0:i.c_meta_title),a=null==i?void 0:i.c_meta_title.split(" ")[0],t=e.split(" ").length>2?"".concat(a," İkinci El Araba"):"İkinci El ".concat(e," Araba");return(0,l.jsx)(l.Fragment,{children:i.c_page_title?(0,l.jsx)("h1",{className:"heading-1 pl-4 text-22 font-bold leading-8 text-main-dark",children:i.c_page_title}):(0,l.jsx)("h1",{className:"heading-1 pl-4 text-22 font-bold leading-8 text-main-dark",children:t})})}{if(a.series.slug||a.brandName.slug)return(0,l.jsxs)("h1",{className:"heading-2 pl-4 text-22 font-bold leading-8 text-main-dark",children:["İkinci El ",a.brandName.name," ",a.series.name," ",a.model.name," ","all"!==a.vehicleType.slug&&"Otomobil"!==a.vehicleType.name?a.vehicleType.name+" Ara\xe7lar":"Modelleri"," "]});if(a.vehicleType.name&&(!a.series.slug||!a.brandName.slug))return(0,l.jsx)(l.Fragment,{children:"all"===a.vehicleType.slug?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("h1",{className:"heading-3 pl-4 text-22 font-bold leading-8 text-main-dark",children:["İkinci El"," ","Otomobil"!==a.vehicleType.name?a.vehicleType.name+" Ara\xe7lar":a.vehicleType.name+" Modelleri"," ",a.series.name]})});if(""!==a.vehicleType.slug||null===i||(null==i||!i.c_meta_title)&&(null==i||!i.c_page_title))return null;let e=null==i?void 0:i.c_meta_title.split(" ")[0];return(0,l.jsx)(l.Fragment,{children:(null==i?void 0:i.c_page_title)?(0,l.jsx)("h1",{className:"heading-4 pl-4 text-22 font-bold leading-8 text-main-dark",children:null==i?void 0:i.c_page_title}):(0,l.jsxs)("h1",{className:"heading-4 pl-4 text-22 font-bold leading-8 text-main-dark",children:[e," İkinci El Araba"]})})}},ep=e=>{let{noVehicles:a,settings:t,isSubFooterLink:s,article:i,totalItemCount:n,sortingValues:o,vehicleQuery:c,setFiltersTemp:d,vehiclesLength:m,router:u,metaData:x,isForcedSuccess:p}=e;return(0,l.jsx)(l.Fragment,{children:a?(0,l.jsx)(ex,{settings:t,isSubFooterLink:s,article:i,metaData:x,isForcedSuccess:p}):(0,l.jsxs)("div",{className:"flex w-full flex-col gap-8",children:[(0,l.jsxs)("div",{className:"flex w-full items-start justify-between",children:[(0,l.jsxs)("div",{className:"w-fit flfex flex-col items-center justify-between",children:[(0,l.jsx)(ex,{settings:t,isSubFooterLink:s,article:i,metaData:x,isForcedSuccess:p}),(0,l.jsxs)("span",{className:"pl-4 text-16 leading-6 text-main-dark",children:[(0,r.up)(n)," Ara\xe7 Listeleniyor"]})]}),(0,l.jsx)(ef,{sortingValues:o,vehicleQuery:c,setFiltersTemp:d,vehiclesLength:m,router:u})]}),m>0&&(0,l.jsx)("div",{className:"cursor-pointer",onClick:()=>u.push("/araclar/ilan-karsilastirma"),children:(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border-grey-primary px-4 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(P.A,{className:"text-main-dark"}),(0,l.jsxs)("span",{className:"text-16 font-medium leading-6 text-grey-primary",children:[m," Ara\xe7 Se\xe7ildi"]})]}),(0,l.jsx)(w.L2n,{size:24,className:"text-main-dark"})]})})]})})},eh=e=>{let{isOpen:a,setIsOpen:t,data:s,height:i}=e;return(0,l.jsx)(E.A,{isOpen:a,setIsOpen:t,fit:!0,children:(0,l.jsxs)("div",{className:"flex h-fit flex-col gap-3 py-6",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("p",{className:"text-16 font-bold leading-6 text-main-dark",children:"Ara\xe7 \xd6neri Formu"}),(0,l.jsx)("button",{className:"absolute right-4 text-16 font-medium leading-6 text-accent",onClick:()=>t(!1),children:(0,l.jsx)(h.zhF,{size:24,className:"text-icon-grey-primary"})})]}),(0,l.jsx)(d.A,{}),(0,l.jsxs)("div",{className:"flex flex-col items-start justify-start gap-1 px-4 md:items-center md:justify-center",children:[(0,l.jsx)("p",{className:"text-22 font-bold leading-8 text-main-dark",children:s[0].title}),(0,l.jsxs)("p",{className:"text-16 leading-6 text-main-dark",children:[" ",s[0].description]})]}),(0,l.jsx)(F.A,{data:V.S6,className:"!px-0",onClose:()=>t(!1),isInModal:!0})]})})},ef=e=>{let{sortingValues:a,vehicleQuery:t,router:s,setFiltersTemp:i}=e;return(0,l.jsx)("div",{className:"w-full max-w-[385px]",children:(0,l.jsx)(n.A,{placeholder:"Sırala",options:a,value:(null==t?void 0:t.sorting)!==""&&(null==a?void 0:a.find(e=>e.value===(null==t?void 0:t.sorting))),defaultValue:a[2],customValue:ec,onChange:e=>{i(a=>({...a,sorting:e.value}));let[a,t]=s.asPath.split("?"),l=new URLSearchParams(t||"");l.has("sorting")?l.set("sorting",e.value):l.append("sorting",e.value);let n="".concat(a,"?").concat(l.toString());s.push(n)}})})},eg=[{value:"price-lowest",label:"En D\xfcÅ\xfck Fiyat"},{value:"price-highest",label:"En Y\xfcksek Fiyat"},{value:"newest",label:"Eklenme Tarihi Yeniden Eskiye"},{value:"oldest",label:"Eklenme Tarihi Eskiden Yeniye"}
1,{value:"km-lowest",label:"KM D\xfcÅ\xfckten Y\xfckseÄe"},{value:"km-highest",label:"KM Y\xfcksekten D\xfcÅ\xfcÄe"},{value:"year-newest",label:"Model Yılı Yeniden Eskiye"},{value:"year-oldest",label:"Model Yılı Eskiden Yeniye"}];var ev=t(37190),ej=t(69241);function ey(e){let{data:a,noVehicles:t}=e,s=(0,i.useRef)(),[n,r]=(0,i.useState)(!1);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:(0,ej.A)("mx-auto flex h-fit w-full max-w-[1280px] flex-col items-start gap-1 px-4 py-8 md:py-16 ".concat(!(null==a?void 0:a.c_content)&&"hidden"),t?"bg-[#F4F4F2] lg:bg-white":"bg-white"),ref:s,children:[(0,l.jsx)("div",{className:"h-full ".concat(n?"max-h-full":"max-h-[215px]"," overflow-hidden"),children:(0,l.jsx)("div",{className:"article-content mt-2 h-full text-16 font-regular leading-24 text-main-dark md:mt-4 md:text-18 md:leading-28",dangerouslySetInnerHTML:{__html:null==a?void 0:a.c_content}})}),n?(0,l.jsx)("button",{className:"mt-2 text-16 font-medium leading-6 text-main-primary underline",onClick:()=>{if(r(!1),s.current){let e=s.current.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:e-72,behavior:"smooth"})}},children:"Daha Az G\xf6r"}):(0,l.jsx)("button",{className:"mt-2 text-16 font-medium leading-6 text-main-primary underline",onClick:()=>{r(!0)},children:"Daha Fazla G\xf6r"})]})})}var eb=t(77328),eN=t.n(eb),ew=t(64366);t(75663);var ek=t(85847);function e_(e){let{forwardedRef:a,data:t,currentIndex:s,setCurrentIndex:n,setShowSlideListing:o,handleToggleFavorite:c,user:d,isFavorite:m,setIsFavoriteModalOpen:u}=e,[x,p]=(0,i.useState)(!1),[h,f]=(0,i.useState)("");return(0,i.useEffect)(()=>{0===s&&a.current&&a.current.splide.go(0)},[s]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"relative flex h-full items-center justify-center",children:[(0,l.jsx)("div",{className:"absolute left-0 top-0 flex h-20 w-full p-4",style:{zIndex:600},children:(0,l.jsx)("div",{className:"flex h-10 w-10 cursor-pointer items-center justify-center rounded-full bg-black-primary bg-opacity-40 p-2",children:(0,l.jsx)(ew.A,{className:"cursor-pointer text-white",onClick:()=>o(!1)})})}),(0,l.jsx)("div",{className:"splide relative !h-full w-full",children:(0,l.jsx)(J.eB,{ref:a,onMoved:e=>{n(e.index)},options:{type:"vertical",direction:"ttb",perPage:1,perMove:1,drag:!0,pagination:!1,arrows:!1,height:"calc(100vh - 72px)"},className:"!h-full",children:null==t?void 0:t.map((e,a)=>(0,l.jsxs)(J.Nn,{className:"flex h-full flex-col",children:[(0,l.jsxs)("div",{className:"relative flex h-full w-full flex-col items-end justify-between overflow-auto bg-white",children:[(0,l.jsx)(D(),{href:"/ilan/".concat((0,r.dp)("".concat(e.brand,"-").concat(e.serial,"-").concat(e.model,"-").concat(e.gearBoxType,"-").concat(e.fuelType,"-").concat(e.modelYear,"-").concat(e.portalId))),target:"_blank",className:"h-full w-full",children:(0,l.jsx)(R(),{src:e.showcaseImage,width:1e3,height:600,alt:"slider 1",className:"h-full object-cover"})}),(0,l.jsx)("div",{className:"absolute bottom-0 flex w-full flex-col items-end",children:(0,l.jsxs)("div",{className:"relative flex h-fit w-full flex-col justify-between gap-4 rounded-tl-lg rounded-tr-lg bg-black-primary bg-opacity-40 px-4 py-6",children:[(0,l.jsx)("div",{className:"absolute bottom-0 left-0 h-full w-full",style:{background:"linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%)",zIndex:1}}),(0,l.jsxs)("div",{className:"flex h-full w-full flex-col gap-4",style:{zIndex:100},children:[(0,l.jsx)("div",{className:"flex w-full flex-col",children:(0,l.jsx)("p",{className:"text-16 font-medium leading-6 text-white",children:e.brand+" "+e.serial+" "+e.model})}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between gap-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(R(),{width:24,height:24,src:"/assets/images/gearshift.png",alt:"gearshift icon",className:"invert"}),(0,l.jsx)("p",{className:"text-14 leading-4 text-white",children:e.gearBoxType})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(R(),{width:24,height:24,src:"/assets/images/tire.png",alt:"tire icon",className:"invert"}),(0,l.jsxs)("p",{className:"text-14 leading-4 text-white",children:[(0,r.up)(e.km)," KM"]}
1)]}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(R(),{width:24,height:24,src:"/assets/images/car-frame.png",alt:"car frame icon",className:"invert"}),(0,l.jsx)("p",{className:"text-14 leading-4 text-white",children:e.modelYear})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,l.jsxs)("p",{className:"text-16 font-bold leading-7 text-white",children:["⺠",(0,r.up)(e.amount)]}),(0,l.jsx)("div",{className:"rounded-lg bg-main-primary p-2",children:(0,l.jsxs)("p",{className:"text-16 font-bold leading-6 text-white",children:["âº",(0,r.up)(e.installmentAmount)," x"," ",e.maturity," ay"]})})]})]})]})})]}),(0,l.jsx)("div",{className:"h-[100px] bg-black-primary"})]},a))})})]})}),(0,l.jsx)(W.A,{visible:x,onClose:()=>p(!1),children:(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-sm flex-col gap-4 rounded-lg bg-white p-6",children:[(0,l.jsxs)("div",{className:"relative flex items-center justify-between",children:[(0,l.jsx)("h2",{className:"text-center text-22 font-medium leading-9 text-main-dark",children:"PaylaÅ"}),(0,l.jsx)(ew.A,{onClick:()=>p(!1),className:"absolute right-0 top-0 cursor-pointer text-main-dark"})]}),(0,l.jsx)(ek.A,{url:h})]})})]})}var eC=t(91040),eA=t(73680);function eT(e){let{isMobile:a,vehicleQuery:t,setShowSlideListing:s}=e,n=(0,M.wA)(),{user:r}=(0,M.d4)(e=>e.user),{allVehicles:o}=(0,M.d4)(e=>e.vehicleListing),c=(0,i.useRef)(null),[d,m]=(0,i.useState)(0),[u,x]=(0,i.useState)(0),[p,h]=(0,i.useState)({}),[f,g]=(0,i.useState)(!1),[v,j]=(0,i.useState)(!1),[y,b]=(0,i.useState)(null),[N,w]=(0,q.B8)(),[k]=(0,q.sB)(),[_]=(0,q.H7)(),C=async(e,a)=>{await N({vehicleId:e,authorization:a})};(0,i.useEffect)(()=>{(null==r?void 0:r.token)&&null!==y&&C(y.portalId,null==r?void 0:r.token)},[r,y]),(0,i.useEffect)(()=>{var e,a;(null==w||null==(a=w.currentData)||null==(e=a.data)?void 0:e.data)?j(!0):j(!1)},[w]);let A=async(e,a)=>{"S"===(await _({vehicleId:e,authorization:a})).data.data.type?(j(!1),C(e,a)):(setShowErrorMessageModal(!0),setErrorMessage({code:"",message:data.data.errorMessage?data.data.errorMessage:""}))},T=async(e,a)=>{let t=await k({vehicleId:e,authorization:a});"S"===t.data.data.type?(j(!0),C(e,a)):(setShowErrorMessageModal(!0),setErrorMessage({code:"",message:t.data.data.errorMessage||"Bir sorun oluÅtu. L\xfctfen daha sonra tekrar deneyin."}))},L=async e=>{let a={...t,page:e},l=await eC.A.get("".concat(eA.rd,"/vehicles"),{params:a});l.data.data.vehicles.length>0&&n((0,ev.vc)(l.data.data.vehicles))};return(0,i.useEffect)(()=>{d>0&&L(d)},[d]),(0,i.useEffect)(()=>{setTimeout(()=>{m(1)},300)},[]),(0,i.useEffect)(()=>{o.length>0&&(b(o[u]),h(o[u+1]),u===o.length-2&&m(d+1))},[u,o]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"fixed top-[72px] flex h-[calc(100vh_-_72px)] w-full flex-col justify-between",children:(0,l.jsx)(e_,{forwardedRef:c,data:o,currentIndex:u,setCurrentIndex:x,setShowSlideListing:s,user:r,isFavorite:v,handleToggleFavorite:(e,a)=>{v?A(e,a):T(e,a)},setIsFavoriteModalOpen:g})})})}var eL=t(12282);let eS=e=>e?e.replace(/^İkinci El\s*/i,"").split(" Araba")[0].split(" Modelleri")[0].split(" Fiyatları")[0].trim():"";var eM=!0;function eP(e){var a;let{notFound:t,vehicles:n,settings:o,vehicleQuery:c,featuredVehicles:d,article:m,metaData:u,pageData:x,noVehicles:h,showArticle:g,isSubFooterLink:v,shortcutItems:y,showShortcut:w,isForcedSuccess:k,isVehiclePage404:_}=e;if(t)return(0,l.jsx)(b.default,{});let C=(0,eL.w)(),A=(0,p.useRouter)(),T=!v&&(null==o||null==(a=o.vehicleType)?void 0:a.slug)?(e=>{var a,t,l,s,i,n,r,o;let c=[{label:"",href:"/",type:"home"},{label:"Ara\xe7lar",href:"/araclar",type:"vehicles"}],d=[];return e?((null==(a=e.vehicleType)?void 0:a.slug)&&(null==(t=e.vehicleType)?void 0:t.name)&&d.push({label:e.vehicleType.name,href:"/araclar/".concat(e.vehicleType.slug),type:"vehicleType",slug:e.vehicleType.slug}),(null==(l=e.brandName)?void 0:l.slug)&&(null==(s=e.brandName)?void 0:s.name)&&d.push({label:e.brandName.name,href:"/araclar/".concat(e.vehicleType.slug,"/").concat(e.brandName.slug),type:"brandName",slug:e.brandName.slug}),(null==(i=e.series)?void 0:i.slug)&&(null==(n=e.series)?void 0:n.name)&&d.push({label:e.series.name,type:"series",href:"/araclar/".concat(e.vehicleType.slug,"/").concat(e.series.combinedSlug),slug:e.series.slug}),(null==(r=e.model)?void 0:r.slug)&&(null==(o=e.model)?void 0:o.name)&&d.push({label:e.model.name,type:"model",slug:e.model.slug}),[...c,...d]):c})(o):(()=>{let e=(null==u?void 0:u.c_breadcrumb_head_title)&&(null==u?void 0:u.c_breadcrumb_head_url)?{label:u.c_breadcrumb_head_title,href:u.c_breadcrumb_head_url}:null;if(null==u?void 0:u.c_breadcrumb_title)return(0,r.Lr)(null==u?void 0:u.c_url,null==u?void 0:u.c_breadcrumb_title,e);if(null==u?void 0:u.c_page_title)return(0,r.Lr)(null==u?void 0:u.c_url,null==u?void 0:u.c_page_title,e);if(null==u?void 0:u.c_meta_title){let a=eS(null==u?void 0:u.c_meta_title),t=null==u?void 0:u.c_meta_title.split(" ")[0],l=a.split(" ").length>2?"".concat(t," İkinci El Araba"):"İkinci El ".concat(a," Araba");return"/araclar"===A.asPath?[{label:"",href:"/",type:"home"},{label:"Ara\xe7lar",href:"/araclar"}]:(0,r.Lr)(null==u?void 0:u.c_url,l,e)}if(k)return(0,r.Lr)(A.asPath,"İkinci El Arabalar",e);return[{label:"",href:"/",type:"home"},{label:"Ara\xe7lar",href:"/araclar"}]})();(0,i.useEffect)(()=>{L((0,es.C7)(_))},[_]),(0,i.useEffect)(()=>{"/araba-almak-istiyorum"===C&&(0,f.sN)("urunDetayFirstStep")},[C]);let L=(0,M.wA)(),S=(0,N.Ub)({maxWidth:1024}),[P,E]=(0,i.useState)({bodyTypeName:"",brandName:"",cityName:"",colorName:"",districtName:"",enginePowerName:"",fuelTypeName:"",gearboxTypeName:"",hasPhoto:"",hasVideo:"",isOwn:"",maturity:"",maxInstallment:"",maxKm:"",maxPrice:"",maxUpfront:"",maxYear:"",minInstallment:"",minKm:"",minPrice:"",minUpfront:"",minYear:"",modelName:"",motorVolumeName:"",page:1,searchText:"",serialName:"",size:12,sorting:"newest",tractionName:"",vehicleTypeName:"",warranty:""}),[I,O]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{E(c)},[c]),(0,i.useEffect)(()=>{S&&I?L((0,ev.sr)(!0)):(L((0,ev.sr)(!1)),O(!1))},[I,S]),(0,i.useEffect)(()=>{{let e=(0,r.XJ)();I?(document.body.classList.add("overflowHidden"),S||(document.body.style.paddingRight="".concat(e,"px"))):(document.body.classList.remove("overflowHidden"),document.body.style.paddingRight="0px")}},[I]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eE,{data:u,settings:o,noVehicles:h,isForcedSuccess:k,isSubFooterLink:v}),(0,l.jsxs)("div",{children:[(0,l.jsx)(s.Q,{items:T||[]}),(0,l.jsx)("div",{className:"mx-auto flex w-full max-w-[1280px] flex-col gap-16 px-0 py-6 md:py-16 lg:px-4",children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-8 md:flex-row md:items-start ",children:[!S&&(0,l.jsx)("div",{className:"max-w-[284px] w-full sticky top-[80px] self-start",children:(0,l.jsx)(j,{filtersTemp:P,setFiltersTemp:E,vehicleQuery:c,isMobile:S,isSubFooterLink:v})}),(0,l.jsx)(ed,{data:n,filtersTemp:P,setFiltersTemp:E,vehicleQuery:c,isMobile:S,setShowSlideListing:O,pageData:x,shortcutItems:y,showShortcut:w,noVehicles:h,settings:o,isSubFooterLink:v,article:m,metaData:u,isForcedSuccess:k,featuredVehicles:d})]})}),!h&&(0,l.jsx)(eo,{featuredVehicles:d}),g&&(0,l.jsx)(ey,{data:m,noVehicles:h}),I&&(0,l.jsx)(eT,{vehicles:n.vehicles,vehicleQuery:c,isMobile:S,showSlideListing:I,setShowSlideListing:O})]})]})}let eE=e=>{let{data:a,settings:t,noVehicles:s,isForcedSuccess:n,isSubFooterLink:r}=e,o=(0,p.useRouter)(),[c,d]=(0,i.useState)(""),[m,u]=(0,i.useState)(""),[x,h]=(0,i.useState)("");return(0,i.useEffect)(()=>
1{if(null!==a)if(r)if(null==a?void 0:a.c_breadcrumb_title)d(null==a?void 0:a.c_breadcrumb_title);else if(null==a?void 0:a.c_page_title)d(null==a?void 0:a.c_page_title);else{let e=eS(null==a?void 0:a.c_meta_title),t=null==a?void 0:a.c_meta_title.split(" ")[0];d(e.split(" ").length>2?"".concat(t," İkinci El Araba"):"İkinci El ".concat(e," Araba"))}else d(a.c_meta_title),u(a.c_meta_description),o.query.page?h("".concat(a.c_url,"?page=").concat(o.query.page)):h(a.c_url);else{var e,l,s,i;d("Satılık İkinci El ".concat((null==t||null==(e=t.brandName)?void 0:e.name)+" "+(null==t||null==(l=t.series)?void 0:l.name)," Fiyatları ve Modelleri")),u("Åimdi tıklayın, 2. el ".concat(null==t||null==(s=t.brandName)?void 0:s.name,"\n ").concat(null==t||null==(i=t.series)?void 0:i.name," modelleri ve fiyatlarını OtoSOR'da inceleyin. DilediÄiniz\n modeli 48 aya varan vade imkanıyla satın alın!"));let a=o.asPath.split("?")[0],n=a.includes("all")?a.replace("/all","/otomobil"):a;h(o.query.page?"".concat(n,"?page=").concat(o.query.page):n)}},[a,o]),(0,l.jsxs)(eN(),{children:[(0,l.jsxs)("title",{children:[c," ",o.query.page?"| Sayfa ".concat(o.query.page):""]}),(0,l.jsx)("meta",{name:"description",content:"".concat(m," ").concat(o.query.page?"| Sayfa ".concat(o.query.page):"")}),(0,l.jsx)("meta",{name:"og:title",contect:c||"Senetle Ara\xe7 | Ara\xe7lar"}),(0,l.jsx)("meta",{name:"og:description",content:m||""}),(0,l.jsx)("meta",{name:"twitter:title",content:c||"Senetle Ara\xe7 | Ara\xe7lar"}),(0,l.jsx)("meta",{name:"twitter:description",content:m||""}),(0,l.jsx)("link",{rel:"canonical",href:"".concat("https://www.otosor.com.tr").concat(x)}),(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(()=>t.model.slug?'\n{\n"@context": "https://schema.org",\n"@type": "BreadcrumbList",\n"itemListElement": [\n{\n"@type": "ListItem",\n"position": 1,\n"name": "Anasayfa",\n"item":"https://www.otosor.com.tr/"\n},\n{\n"@type" : "ListItem",\n"position" : "2",\n"name" : "Ara\xe7lar",\n"item" : "https://www.otosor.com.tr/araclar"\n},\n{\n"@type" : "ListItem",\n"position" : "3",\n"name" : "'.concat(t.vehicleType.name,'",\n"item" : "https://www.otosor.com.tr/araclar/').concat(t.vehicleType.slug,'"\n},\n{\n"@type" : "ListItem",\n"position" : "4",\n"name" : "').concat(t.brandName.name,'",\n"item" :\n\n"https://www.otosor.com.tr/araclar/').concat(t.vehicleType.slug,"/").concat(t.brandName.slug,'"\n\n},\n{\n"@type" : "ListItem",\n"position" : "5",\n"name" : "').concat(t.series.name,'",\n"item" :\n\n"https://www.otosor.com.tr/araclar/').concat(t.vehicleType.slug,"/").concat(t.series.combinedSlug,'"\n},\n{\n"@type" : "ListItem",\n"position" : "6",\n"name" : "').concat(t.brandName.name," ").concat(t.series.name,"\n\n").concat(t.model.name,'"\n}\n]\n}\n'):t.series.slug?'\n{\n"@context": "https://schema.org",\n"@type": "BreadcrumbList",\n"itemListElement": [\n{\n"@type": "ListItem",\n"position": 1,\n"name": "Anasayfa",\n"item":"https://www.otosor.com.tr/"\n},\n{\n"@type" : "ListItem",\n"position" : "2",\n"name" : "Ara\xe7lar",\n"item" : "https://www.otosor.com.tr/araclar"\n},\n{\n"@type" : "ListItem",\n"position" : "3",\n"name" : "'.concat(t.vehicleType.name,'",\n"item" : "https://www.otosor.com.tr/araclar/').concat(t.vehicleType.slug,'"\n},\n{\n"@type" : "ListItem",\n"position" : "4",\n"name" : "').concat(t.brandName.name,'",\n"item" :\n\n"https://www.otosor.com.tr/araclar/').concat(t.vehicleType.slug,"/").concat(t.brandName.slug,'"\n\n},\n{\n"@type" : "ListItem",\n"position" : "5",\n"name" : "').concat(t.series.name,'"\n}\n]\n}\n'):t.brandName.slug?'\n{\n"@context": "https://schema.org",\n"@type": "BreadcrumbList",\n"itemListElement": [\n{\n"@type": "ListItem",\n"position": 1,\n"name": "Anasayfa",\n"item":"https://www.otosor.com.tr/"\n},\n{\n"@type" : "ListItem",\n"position" : "2",\n"name" : "Ara\xe7lar",\n"item" : "https://www.otosor.com.tr/araclar"\n},\n\n{\n"@type" : "ListItem",\n"position" : "3",\n"name" : "'.concat(t.vehicleType.name,'",\n"item" : "https://www.otosor.com.tr/araclar/').concat(t.vehicleType.slug,'"\n},\n{\n"@type" : "ListItem",\n"position" : "4",\n"name" : "').concat(t.brandName.name,'"\n}\n]\n}\n'):t.vehicleType.slug?'\n{\n"@context": "https://schema.org",\n"@type": "BreadcrumbList",\n"itemListElement": [\n{\n"@type": "ListItem",\n"position": 1,\n"name": "Anasayfa",\n"item":"https://www.otosor.com.tr/"\n},\n{\n"@type" : "ListItem",\n"position" : "2",\n"name" : "Ara\xe7lar",\n"item" : "https://www.otosor.com.tr/araclar"\n},\n{\n"@type" : "ListItem",\n"position" : "3",\n"name" : "'.concat(t.vehicleType.name,'",\n\n"item":"https://www.otosor.com.tr/araclar/').concat(t.vehicleType.name.toLowerCase(),'"\n\n}\n]\n}\n'):r?'\n{\n"@context": "https://schema.org",\n"@type": "BreadcrumbList",\n"itemListElement": [\n{\n"@type": "ListItem",\n"position": 1,\n"name": "Anasayfa",\n"item":"https://www.otosor.com.tr/"\n},\n{\n"@type" : "ListItem",\n"position" : "2",\n"name" : "Ara\xe7lar",\n"item" : "https://www.otosor.com.tr/araclar"\n},\n{\n"@type" : "ListItem",\n"position" : "3",\n"name" : "'.concat(c,'"\n}\n]\n}\n'):'\n{\n"@context": "https://schema.org",\n"@type": "BreadcrumbList",\n"itemListElement": [\n{\n"@type": "ListItem",\n"position": 1,\n"name": "Anasayfa",\n"item":"https://www.otosor.com.tr/"\n},\n{\n"@type" : "ListItem",\n\n"position" : "2",\n"name" : "Ara\xe7lar",\n"item" : "https://www.otosor.com.tr/araclar"\n}\n]\n}\n')()}})]})}},35373:(e,a,t)=>{"use strict";t.d(a,{B8:()=>s,H7:()=>n,sB:()=>i});let{useGetApiV2PortalFavoriteAdvertV1ByVehicleIdQuery:l,useLazyGetApiV2PortalFavoriteAdvertV1ByVehicleIdQuery:s,usePostApiV2PortalFavoriteAdvertV1ByVehicleIdMutation:i,useDeleteApiV2PortalFavoriteAdvertV1ByVehicleIdMutation:n,useGetApiV2PortalFavoriteAdvertV1Query:r,useLazyGetApiV2PortalFavoriteAdvertV1Query:o}=t(14559).F.injectEndpoints({endpoints:e=>({getApiV2PortalFavoriteAdvertV1ByVehicleId:e.query({query:e=>({url:"/api/v2/portal/favorite-advert/v1/".concat(e.vehicleId),headers:{authorization:e.authorization}})}),postApiV2PortalFavoriteAdvertV1ByVehicleId:e.mutation({query:e=>({url:"/api/v2/portal/favorite-advert/v1/".concat(e.vehicleId),headers:{authorization:e.authorization},method:"POST"})}),deleteApiV2PortalFavoriteAdvertV1ByVehicleId:e.mutation({query:e=>({url:"/api/v2/portal/favorite-advert/v1/".concat(e.vehicleId),headers:{authorization:e.authorization},method:"DELETE"})}),getApiV2PortalFavoriteAdvertV1:e.query({query:e=>({url:"/api/v2/portal/favorite-advert/v1",headers:{authorization:e.authorization}})})}),overrideExisting:!1})},40479:(e,a,t)=>{"use strict";t.d(a,{A:()=>j});
1var l=t(37876),s=t(14232),i=t(27888);t(30346),t(9572);var n=t(23748),r=t(89099),o=t(51358),c=t(29783),d=t(71460),m=t(31777),u=t(93663),x=t(31192),p=t(1412),h=t(54260),f=t(96557),g=t(69623),v=t(99739);function j(e){let{data:a,onClose:t,isInModal:j}=e,y=(0,f.Ub)({maxWidth:767}),b=(0,s.useRef)(null),N=(0,r.useRouter)(),[w,k]=(0,s.useState)(0),{width:_}=(0,u.A)(),C=(0,s.useRef)(null),A=(0,m.wA)(),[T,L]=(0,s.useState)({}),[S,M]=(0,s.useState)({width:0,height:0}),[P,E]=(0,s.useState)(!0),{answers:I}=(0,m.d4)(e=>e.suggestionVehicle),[O,F]=(0,s.useState)(!1);(0,s.useEffect)(()=>{C.current&&M({width:C.current.getBoundingClientRect().width,height:C.current.getBoundingClientRect().height})},[a,_,y]);let V=()=>{let e=a[w],t=I["question".concat(w+1)],l=e.options.find(e=>Array.isArray(t)?t.includes(e.value):t===e.value);l&&(0,v.Oq)("Bana Ara\xe7 \xd6ner",String(w+1),e.question,l.answer)};return(0,s.useEffect)(()=>{L(Object.values(I))},[I]),(0,s.useEffect)(()=>{let e=T[w];E(""===e||void 0===e||Array.isArray(e)&&0===e.length)},[T,w,a]),(0,s.useEffect)(()=>{4===w&&""!==I.question5?F(!0):F(!1)},[I,w]),(0,l.jsx)("div",{className:"w-full px-4 md:px-0",children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 border border-primary100 bg-white pb-4 md:gap-8 md:border-none md:bg-transparent md:pb-0",children:[(0,l.jsx)("div",{className:"flex w-full flex-col justify-center gap-6 overflow-hidden",children:(0,l.jsx)("div",{className:"mx-auto flex h-fit w-full flex-col items-center justify-end gap-8 md:justify-center",children:(0,l.jsx)(i.RC,{ref:b,slidesPerView:1,centeredSlides:!0,loop:!0,spaceBetween:70,grabCursor:!0,pagination:{clickable:!1},draggable:!1,allowTouchMove:!1,simulateTouch:!1,modules:[n.dK,n.Vx],navigation:{nextEl:".suggest-swiper-button-next"},onSlideChange:e=>k(e.realIndex),className:"swiper-slider !h-full w-full",style:{paddingLeft:y?0:_?_/4:360,paddingRight:y?0:_?_/4:360},children:null==a?void 0:a.map((e,t)=>(0,l.jsx)(i.qr,{children:(0,l.jsxs)("div",{className:"".concat(0!==w&&""===e.question&&"hidden"," relative flex h-full min-h-[290px] w-full flex-col gap-4 roun
1ded-lg bg-white p-6 transition-all ").concat(w===t?"opacity-100":"opacity-100 md:opacity-50"," ").concat(j?"border border-transparent md:border-border-grey-primary":""," "),ref:C,children:[(0,l.jsxs)("div",{className:"flex w-full justify-between border-b border-primary100 pb-1 text-16 font-medium leading-6 text-grey-primary",children:[(0,l.jsx)("p",{children:e.question}),(0,l.jsxs)("span",{className:"".concat(w===t?"opacity-100":"opacity-0"),children:[t+1,"/",a.length-1]})]}),(0,l.jsx)("div",{className:"flex flex-col gap-3",children:e.options.map((a,s)=>(0,l.jsx)(c.A,{label:a.answer,value:a.value,checked:Array.isArray(T[t])?T[t].includes(a.value):T[t]===a.value,onChange:l=>{var s,i;s=a.value,i=e.multiple,A((0,d.JY)({questionId:"question".concat(t+1),answer:s,multiple:i}))},disabled:w!==t},s))})]})},t))})})}),(0,l.jsx)(o.A,{color:"#D3DFE9",className:"mb-6 block md:hidden"}),(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl gap-6 px-4 md:px-0",style:{width:S.width&&!y?S.width:"auto"},children:[(0,l.jsxs)(x.A,{secondary:w>0,disabled:0===w,className:"!w-full gap-2 !border-grey-secondary",onClick:()=>{if(w>0){var e;null==(e=b.current)||e.swiper.slidePrev()}},children:[(0,l.jsx)(p.AqJ,{}),"Geri D\xf6n"]}),O?(0,l.jsxs)(x.A,{disabled:P,primary:!P,className:"!w-full gap-2 ".concat(P?"!bg-surface-primary-disable":"!bg-main-dark"," "),onClick:()=>{var e;let a=(0,h.p8)(I),l=(0,h.dg)(a);N.push("/araclar?".concat(l)),A((0,g.VS)(!0)),A((0,g.m4)(N.asPath)),A((0,d.TJ)()),null==(e=b.current)||e.swiper.slideTo(0),t()},onMouseDown:V,children:["Devam Et",(0,l.jsx)(p.L2n,{})]}):(0,l.jsxs)(x.A,{disabled:P,primary:!P,className:"suggest-swiper-button-next !w-full gap-2 ".concat(P?"!bg-surface-primary-disable":"!bg-main-dark"," "),onMouseDown:V,children:["Devam Et",(0,l.jsx)(p.L2n,{})]})]})]})})}},40734:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var l=t(37876),s=t(14232),i=t(9966),n=t(1412),r=t(97388);let o=s.forwardRef((e,a)=>{let{setIsVisible:t,close:o,setAccordionValue:c,children:d,className:m,title:u,isOpen:x,icon:p,...h}=e,[f,g]=(0,s.useState)(x);return(0,s.useEffect)(()=>{setTimeout(()=>{g(x)},310)},[x]),(0,s.useEffect)(()=>{f?(c(u),setTimeout(()=>{t(!0)},200)):(t(!1),setTimeout(()=>{c("")},200))},[f]),(0,s.useEffect)(()=>{o&&(t(!1),setTimeout(()=>{c("")},200))},[o]),(0,l.jsx)(i.Y9,{className:"AccordionHeader",asChild:!0,children:(0,l.jsx)("div",{children:(0,l.jsxs)(i.l9,{className:"AccordionTrigger text-16 font-bold",...h,ref:a,onClick:()=>{g(!f)},children:[(0,l.jsx)("p",{className:"w-full",children:d}),p?(0,l.jsx)("div",{className:"AccordionChevron",children:f?(0,l.jsx)(r.a0T,{size:24,"aria-hidden":!0,className:"!text-main-dark"}):(0,l.jsx)(r.tEr,{size:24,"aria-hidden":!0,className:"!text-main-dark"})}):(0,l.jsx)("div",{className:"AccordionChevron",children:f?(0,l.jsx)(n.YJZ,{size:24,"aria-hidden":!0,className:"!text-main-dark"}):(0,l.jsx)(n.K0m,{size:24,"aria-hidden":!0,className:"!text-main-dark"})})]})})})});o.displayName="AccordionTrigger";let c=s.forwardRef((e,a)=>{let{isVisible:t,isOpen:s,children:n,className:r,...o}=e;return(0,l.jsx)(i.UC,{className:"AccordionContent ".concat(t?"!overflow-visible":"!overflow-hidden"),...o,ref:a,children:(0,l.jsx)("div",{className:"AccordionContentText",children:n})})}),d=e=>{let{children:a,title:t,shouldClose:n,isOpen:r,icon:d}
1=e,[m,u]=(0,s.useState)(""),[x,p]=(0,s.useState)(!1);return(0,l.jsx)(i.bL,{className:"AccordionRoot scrollbar-hide",type:"single",collapsible:!0,value:m,children:(0,l.jsxs)(i.q7,{className:"AccordionItem scrollbar-hide ".concat(x?"!overflow-visible":"!overflow-hidden"),value:t,children:[(0,l.jsx)(o,{title:t,setAccordionValue:u,close:n,isVisible:x,setIsVisible:p,isOpen:r,icon:d,children:t}),(0,l.jsx)(c,{isOpen:r,isVisible:x,children:a})]})})}},52496:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),!function(e,a){for(var t in a)Object.defineProperty(e,t,{enumerable:!0,get:a[t]})}(a,{default:function(){return r},noSSR:function(){return n}});let l=t(64252);t(37876),t(14232);let s=l._(t(90295));function i(e){return{default:(null==e?void 0:e.default)||e}}function n(e,a){return delete a.webpack,delete a.modules,e(a)}function r(e,a){let t=s.default,l={loading:e=>{let{error:a,isLoading:t,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e});let r=(l={...l,...a}).loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?t({...l,loader:()=>null!=r?r().then(i):Promise.resolve(i(()=>null))}):(delete l.webpack,delete l.modules,n(t,l))}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),e.exports=a.default)},67284:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var l=t(37876),s=t(94297),i=t.n(s),n=t(14232),r=t(95601);function o(e){let{button:a,buttonTitle:t,buttonChildren:s,content:o,snapPoints:c,isOpen:d,setIsOpen:m,showHandle:u,className:x,disabled:p,dismissible:h}=e,f=["250px"],[g,v]=(0,n.useState)(0);return(0,n.useEffect)(()=>{c?v(c[0]):v(f[0])},[c,f]),(0,l.jsx)("div",{className:"".concat(x&&x," flex w-fit items-center justify-center !font-montserrat"),children:(0,l.jsxs)(r._s.Root,{open:d,onOpenChange:m,snapPoints:c,activeSnapPoint:g,setActiveSnapPoint:v,dismissible:h,children:[(0,l.jsx)(r._s.Trigger,{asChild:!0,children:(0,l.jsx)("button",{"data-testid":"trigger",className:"".concat(a||"h-fit w-fit text-16"," "),disabled:p,children:s||t})}),(0,l.jsx)(r._s.Overlay,{"data-testid":"overlay",className:"bottom-sheet-overlay bg-black/40 fixed inset-0 h-screen"}),(0,l.jsx)(r._s.Portal,{children:(0,l.jsxs)(r._s.Content,{"data-testid":"content",className:"bottom-sheet-content border-b-none fixed bottom-0 left-0 right-0 mx-[-1px] flex h-full max-h-[97%] flex-col rounded-t-[10px] border border-border-grey-primary bg-white",children:[u&&(0,l.jsx)("div",{className:"flex w-full justify-center pt-3",children:(0,l.jsx)("div",{className:"h-1 w-10 cursor-pointer rounded-full bg-main-primary"})}),(0,l.jsx)("div",{className:"mx-auto flex h-full w-full flex-col p-4 py-5 ".concat(i().variable),children:o})]})})]})})}},75663:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(37876);t(14232);let s=e=>(0,l.jsx)("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:e.fill||"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsxs)("g",{id:"share-2 1",children:[(0,l.jsx)("path",{id:"Vector",d:"M15 6.66675C16.3807 6.66675 17.5 5.54746 17.5 4.16675C17.5 2.78604 16.3807 1.66675 15 1.66675C13.6193 1.66675 12.5 2.78604 12.5 4.16675C12.5 5.54746 13.6193 6.66675 15 6.66675Z",stroke:e.stroke||"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{id:"Vector_2",d:"M5 12.5C6.38071 12.5 7.5 11.3807 7.5 10C7.5 8.61929 6.38071 7.5 5 7.5C3.61929 7.5 2.5 8.61929 2.5 10C2.5 11.3807 3.61929 12.5 5 12.5Z",stroke:e.stroke||"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{id:"Vector_3",d:"M15 18.3333C16.3807 18.3333 17.5 17.214 17.5 15.8333C17.5 14.4525 16.3807 13.3333 15 13.3333C13.6193 13.3333 12.5 14.4525 12.5 15.8333C12.5 17.214 13.6193 18.3333 15 18.3333Z",stroke:e.stroke||"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{id:"Vector_4",d:"M7.1582 11.2583L12.8499 14.575",stroke:e.stroke||"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{id:"Vector_5",d:"M12.8415 5.42505L7.1582 8.74172",stroke:e.stroke||"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})},85847:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});
1var l=t(37876),s=t(18108),i=t(14232);let n=e=>(0,l.jsxs)("svg",{...e,width:"49",height:"48",viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("g",{id:"Brand / Colored / Whatsapp/round",children:(0,l.jsxs)("g",{"clip-path":"url(#clip0_6088_136595)",children:[(0,l.jsx)("rect",{id:"Logo Container",x:"0.5",width:"48",height:"48",fill:"#00D95F"}),(0,l.jsx)("path",{id:"Vector",d:"M12.5 35.1112L14.2219 28.7086C12.8332 26.2144 12.392 23.304 12.9793 20.5113C13.5665 17.7186 15.1429 15.231 17.419 13.505C19.6951 11.7789 22.5184 10.9302 25.3707 11.1146C28.2231 11.299 30.9131 12.5041 32.9473 14.5088C34.9815 16.5135 36.2233 19.1833 36.4449 22.0283C36.6665 24.8732 35.853 27.7026 34.1537 29.9971C32.4544 32.2916 29.9832 33.8974 27.1937 34.5197C24.4042 35.1421 21.4835 34.7393 18.9675 33.3853L12.5 35.1112ZM19.2793 30.9894L19.6793 31.2263C21.5017 32.3047 23.6303 32.751 25.7333 32.4955C27.8362 32.2401 29.7955 31.2974 31.3058 29.8142C32.8161 28.331 33.7925 26.3907 34.0828 24.2957C34.3732 22.2007 33.9613 20.0686 32.9112 18.2317C31.8611 16.3948 30.2318 14.9563 28.2774 14.1404C26.3229 13.3245 24.1529 13.1769 22.1056 13.7207C20.0584 14.2645 18.2488 15.4692 16.9589 17.147C15.669 18.8247 14.9713 20.8813 14.9744 22.9963C14.9727 24.75 15.4585 26.4697 16.3778 27.9641L16.6286 28.3769L15.6659 31.9505L19.2793 30.9894Z",fill:"white"}),(0,l.jsx)("path",{id:"Vector_2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M28.9884 24.6404C28.754 24.4516 28.4794 24.3187 28.1857 24.2519C27.892 24.185 27.5869 24.186 27.2936 24.2547C26.853 24.4374 26.5682 25.1277 26.2835 25.4729C26.2235 25.5557 26.1352 25.6137 26.0354 25.6361C25.9355 25.6586 25.8309 25.6438 25.7412 25.5947C24.1279 24.9639 22.7757 23.8071 21.9041 22.3122C21.8297 22.2189 21.7945 22.1005 21.8059 21.9818C21.8173 21.8632 21.8744 21.7535 21.9651 21.676C22.2826 21.3622 22.5158 20.9734 22.643 20.5458C22.6712 20.074 22.563 19.6041 22.3312 19.1921C22.1519 18.6145 21.8108 18.1002 21.3482 17.7099C21.1095 17.6028 20.8449 17.5669 20.5863 17.6065C20.3277 17.6461 20.0861 17.7596 19.8906 17.9333C19.5513 18.2256 19.2819 18.5901 19.1024 19.0001C18.9229 19.41 18.8378 19.855 18.8534 20.3021C18.8544 20.5532 18.8863 20.8032 18.9483 21.0466C19.1057 21.6313 19.3478 22.1899 19.6669 22.7048C19.8971 23.0992 20.1483 23.481 20.4194 23.8486C21.3004 25.056 22.4078 26.0811 23.6802 26.8671C24.3187 27.2666 25.0012 27.5913 25.714 27.835C26.4545 28.1701 27.2722 28.2987 28.08 28.2072C28.5403 28.1377 28.9764 27.9562 29.35 27.6789C29.7235 27.4015 30.0231 27.0368 30.2223 26.6167C30.3393 26.363 30.3748 26.0793 30.324 25.8046C30.2019 25.2428 29.4494 24.9112 28.9884 24.6404Z",fill:"white"})]})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_6088_136595",children:(0,l.jsx)("rect",{x:"0.5",width:"48",height:"48",rx:"16",fill:"white"})})})]});var r=t(8719);function o(e){let{url:a}=e,[t,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t&&setTimeout(()=>{o(!1)},2e3)},[t]),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,l.jsx)(s.Kz,{url:a,title:"",separator:"",children:(0,l.jsx)(n,{})}),(0,l.jsxs)("div",{className:"relative flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg border border-border-grey-primary px-5 py-2",onClick:()=>{o(!0),navigator.clipboard.writeText(a)},children:[(0,l.jsx)("p",{className:"w-full text-16 leading-6 text-grey-primary",children:a}),(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(r.EMF,{size:16,className:"rotate-90 text-grey-primary"})}),t&&(0,l.jsx)("div",{className:"absolute -top-10 right-0",children:(0,l.jsxs)("div",{className:"relative rounded-lg bg-primary50 px-3 py-1",children:[(0,l.jsx)("span",{className:"text-12 text-grey-primary",children:"Kopyalandı"}),(0,l.jsx)("div",{className:"absolute -bottom-2 right-2 h-5 w-5 rotate-180 bg-primary50",style:{clipPath:" polygon(50% 0%, 100% 50%, 0% 50%)"}})]})})]})]})}},86581:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"LoadableContext",{enumerable:!0,get:function(){return l}});let l=t(64252)._(t(14232)).default.createContext(null)},90295:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return u}});let l=t(64252)._(t(14232)),s=t(86581),i=[],n=[],r=!1;function o(e){let a=e(),t={loading:!0,loaded:null,error:null};return t.promise=a.then(e=>(t.loading=!1,t.loaded=e,e)).catch(e=>{throw t.loading=!1,t.error=e,e}),t}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:a}=this;e.loading&&("number"==typeof a.delay&&(0===a.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},a.delay)),"number"==typeof a.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},a.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e}
1,this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,a){this._loadFn=e,this._opts=a,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,a){let t=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},a),i=null;function o(){if(!i){let a=new c(e,t);i={getCurrentValue:a.getCurrentValue.bind(a),subscribe:a.subscribe.bind(a),retry:a.retry.bind(a),promise:a.promise.bind(a)}}return i.promise()}if(!r){let e=t.webpack&&1?t.webpack():t.modules;e&&n.push(a=>{for(let t of e)if(a.includes(t))return o()})}function d(e,a){o();let n=l.default.useContext(s.LoadableContext);n&&Array.isArray(t.modules)&&t.modules.forEach(e=>{n(e)});let r=l.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return l.default.useImperativeHandle(a,()=>({retry:i.retry}),[]),l.default.useMemo(()=>{var a;return r.loading||r.error?l.default.createElement(t.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:i.retry}):r.loaded?l.default.createElement((a=r.loaded)&&a.default?a.default:a,e):null},[e,r])}return d.preload=()=>o(),d.displayName="LoadableComponent",l.default.forwardRef(d)}(o,e)}function m(e,a){let t=[];for(;e.length;){let l=e.pop();t.push(l(a))}return Promise.all(t).then(()=>{if(e.length)return m(e,a)})}d.preloadAll=()=>new Promise((e,a)=>{m(i).then(e,a)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(a=>{let t=()=>(r=!0,a());m(n,e).then(t,t)})),window.__NEXT_PRELOADREADY=d.preloadReady;let u=d}},e=>{e.O(0,[9897,2517,9756,4987,1734,1815,9966,5601,4265,8108,711,3154,2673,8649,5565,636,6593,8792],()=>e(e.s=21986)),_N_E=e.O()}]);
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.