PageSourceSearch

https://rentmotors.ru/assets/js/cars.js

js rentmotors.ru collected 2026-10-01 15:41:35 UTC 4,078 bytes, 1 lines download raw bytes

1import{m as G}from"./chunks/index.js";import{d as K,u as O,s as u,a as U,c as W,w as H,o as J,b as a,e as l,f as c,g as z,n as Q,F as f,r as X,t as E,h as Y,i as r,j as Z,k as B,l as ee,m as te,p as _}from"./chunks/vendor.js";import{T as F,S as I}from"./chunks/Select.js";import{_ as ae}from"./chunks/PlaceDateComponent.vue_vue_type_script_setup_true_lang.js";import{u as se,a as oe,_ as ne,b as le}from"./chunks/CarCardComponent.vue_vue_type_script_setup_true_lang.js";import{u as re,a as ie}from"./chunks/carsStore.js";import{u as ce,P as de}from"./chunks/PreloaderComponent.js";import{u as ue}from"./chunks/orderStore.js";import"./chunks/SelectPlaceComponent.js";import"./chunks/_plugin-vue_export-helper.js";import"./chunks/currencyStore.js";import"./chunks/DateRangeComponent.js";import"./chunks/priceFormat.js";const me={key:0,class:"container"},pe={class:"flex flex-col items-center justify-center"},fe=["href"],_e=["src"],ve={key:1,class:"mt-4 xl:mt-6"},ge={class:"container flex flex-col items-center text-center"},he={class:"text-xl font-semibold mb-2 lg:mb-4"},we={class:"text-sm text-gray-1"},be=K({__name:"CatalogComponent",setup(e){const{width:t}=O(),n=se(),o=re(),w=ce(),V=ie(),b=oe(),N=ue(),{typeView:M}=u(n),{cars:y,error:S,isPending:k}=u(o),{carTypeList:R}=u(w),{banner:$}=u(b),{t:p,locale:q}=U(),C=W(()=>t.value<1024?"table-view":`${M.value}-view`);H(C,(i,L)=>{const s=document.querySelector(".view_type-js");s==null||s.classList.toggle(i),s==null||s.classList.toggle(L)}),V.$subscribe(async()=>{await o.fetchCars()},{detached:!1}),J(async()=>{k.value=!1,N.removeState(),b.fetchBanner(),await w.fetchCarTypeList()});const A=i=>{window.ym(34148780,"reachGoal",`${q.value}-Lokatsii-Klik-na-podrobnee-v-klyuboy-kartochke`,()=>window.location.href=i.carInfo.pageUrl)};return(i,L)=>a(k)?(r(),l("div",me,[c("div",pe,[z(de)])])):(r(),l(f,{key:1},[a(y).length&&a(S)===!1?(r(),l("div",{key:0,class:Q(["with-button mb-4 md:mb-6 xl:mb-8",C.value])},[(r(!0),l(f,null,X(a(y),(s,D)=>{var x,j;return r(),l(f,{key:s.carId},[z(ne,{car:s,"car-type-list":a(R),"button-title":a(p)("message.more"),onSelect:ye=>A(s)},null,8,["car","car-type-list","button-title","onSelect"]),D===2?(r(),l("a",{key:0,href:(x=a($))==null?void 0:x.link,target:"_blank",class:"col-span-full row-start-2 rounded overflow-hidden"},[c("img",{src:(j=a($))==null?void 0:j.image,alt:"banner",class:"w-full"},null,8,_e)],8,fe)):Z("",!0)],64)}),128))],2)):a(S)?(r(),l("section",ve,[c("div",ge,[c("div",he,E(a(p)("message.catalog.notFound.title")),1),c("p",we,E(a(p)("message.catalog.notFound.description")),1)])])):Y(i.$slots,"default",{key:2})],64))}}),m=B.get("locale")??"ru",P=new F(".js-tabs__country"),T=new F(".js-tabs__city"),d=new I(".js-select__country"),v=new I(".js-select__city");P.addEventListener("change",e=>{var t;d.setSelect((t=e.detail)==null?void 0:t.dataset.value)});T.addEventListener("change",e=>{var t;v.setSelect((t=e.detail)==null?void 0:t.dataset.value)});d.addEventListener("change",e=>{var t,n,o;P.setSelect((t=e.detail)==null?void 0:t.dataset.value),window.location.pathname.split("/")[2]=="avtomobili-na-prodazhu"?window.location.pathname=`/${m}/avtomobili-na-prodazhu/${(n=e.detail)==null?void 0:n.dataset.value}`:window.location.pathname=`/${m}/catalog/${(o=e.detail)==null?void 0:o.dataset.value}`});v.addEventListener("change",e=>{var t,n,o;T.setSelect((t=e.detail)==null?void 0:t.dataset.value),window.location.pathname.split("/")[2]=="avtomobili-na-prodazhu"?window.location.pathname=`/${m}/avtomobili-na-prodazhu/${d.value}/${(n=e.detail)==null?void 0:n.dataset.value}`:window.location.pathname=`/${m}/catalog/${d.value}/${(o=e.detail)==null?void 0:o.dataset.value}`});document.addEventListener("click",e=>{d.handleCloseSelect(e),v.handleCloseSelect(e)});const g=ee(),h=te({locale:B.get("locale")??"ru",messages:G,pluralRules:{ru:function(e){return e=Math.abs(e),e%=100,e>=5&&e<=20?2:(e%=10,e==1?0:e>=2&&e<=4?1:e)}}});_(ae).use(g).use(h).mount("#v-place-date");_(le).use(g).use(h).mount("#v-car-filter");_({components:{"v-catalog":be}}).use(g).use(h).mount("#v-catalog");

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.