PageSourceSearch

https://www.7detalei.ru/_nuxt/DQMK4ITR.js

js 7detalei.ru collected 2026-10-06 17:02:47 UTC 3,824 bytes, 1 lines download raw bytes

1import{_ as $}from"./Q0e0z3y0.js";import{m as S,ak as C,az as H,av as M,a9 as N,c as s,d as n,f as _,b as i,C as p,ab as v,e as o,t as f,g as b,i as x,I as y,J as k,y as c,D as W,K as A}from"./CR8s69Ls.js";import{a as D}from"./yAL-WZjV.js";import{u as j}from"./dKyZVMbZ.js";const J={class:"container px-3 lg:!px-0"},V={key:0,class:"mb-10 text-3xl font-bold"},z={key:1,class:"mb-10 text-3xl font-bold"},F={class:"uppercase"},I=["innerHTML"],O={key:3,class:"mb-10"},U={class:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-4"},E={key:4,class:"mb-10"},K={class:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4"},P=["href"],R={class:"flex-col flex items-center w-full"},q={class:"flex items-center justify-center mb-3"},G={class:"text-sm font-semibold text-dark-2 group-hover:text-primary transition-colors"},Q=["innerHTML"],ae=S({__name:"index",setup(X){const t=C(),{data:u,pending:w}=H("/api/motors/marks/"+t.params.slug,{server:!0}),e=M(`page-meta-${t.path}`,()=>null),m=c(()=>!e.value?.blocks||!Array.isArray(e.value.blocks)?null:e.value.blocks.find(a=>a.id==="top_text")?.content||null),g=c(()=>!e.value?.blocks||!Array.isArray(e.value.blocks)?null:e.value.blocks.find(a=>a.id==="bottom_text")?.content||null),L=c(()=>{let a=t.path;t.path==="/"?a="":t.path.endsWith("/")&&(a=t.path.slice(0,-1));const l=e.value?.canonical_url||`https://www.7detalei.ru${a}`,d=e.value?.h1||`Контрактные двигатели ${String(t.params.slug)}`;return D({pageUrl:l,pageName:d})});N(()=>{if(!e.value)return{};let a=t.path;t.path==="/"?a="":t.path.endsWith("/")&&(a=t.path.slice(0,-1));const l=e.value.canonical_url||`https://www.7detalei.ru${a}`;return{title:e.value.title||"Каталог запчастей",meta:[{name:"description",content:e.value.description||""},{name:"keywords",content:e.value.keywords||""},{property:"og:title",content:e.value.title||""},{property:"og:description",content:e.value.description||""},{property:"og:url",content:l},{property:"og:type",content:"website"},...e.value.image?[{property:"og:image",content:e.value.image.startsWith("http")?e.value.image:`https://www.7detalei.ru${e.value.image}`}]:[]],link:[{rel:"canonical",href:l}],script:[{key:"schema-catalog-dvigatelei-slug",type:"application/ld+json",innerHTML:JSON.stringify(L.value)}]}});const T=c(()=>u.value?.data?u.value.data:u.value||[]);return j(),(a,l)=>{const d=$,h=W,B=A;return s(),n("div",J,[_(d,{class:"mb-3",items:[{text:"Подобрать контрактный двигатель",link:"/catalog-dvigatelei"},{text:i(e)?.h1||`Контрактные двигатели ${i(t).params.slug} с разборки 7Деталей`}]},null,8,["items"]),i(e)?.h1?(s(),n("h1",V,p(i(e)?.h1),1)):(s(),n("h1",z,[l[0]||(l[0]=v("Контрактные двигатели ",-1)),o("span",F,p(i(t).params.slug),1),l[1]||(l[1]=v(" с разборки 7Деталей",-1))])),m.value?(s(),f(h,{key:2,class:"mb-10"},{default:b(()=>[o("div",{class:"text-[13px] lg:text-sm",innerHTML:m.value},null,8,I)]),_:1})):x("",!0),i(w)||a.isLoadingFilters?(s(),n("div",O,[o("div",U,[(s(),n(y,null,k(12,r=>o("div",{key:r,class:"bg-light-2 rounded h-24"})),64))])])):(s(),n("div",E,[o("div",K,[(s(!0),n(y,null,k(T.value,r=>(s(),n("a",{href:`/product/${r?.slug}`,class:"flex flex-col items-center justify-start p-4 border border-light-3 rounded-xl cursor-pointer hover:border-primary hover:shadow-md transition-all h-full text-center group bg-white"},[o("div",R,[o("div",q,[_(B,{"show-background":!1,width:"100%",src:r?.images[0]?.sizes?.thumbnail,alt:r?.full_title,"image-class":"w-full h-full object-contain min-h-[170px]"},null,8,["src","alt"])]),o("div",G,p(r?.full_title),1)])],8,P))),256))])])),g.value?(s(),f(h,{key:5,class:"mb-10 mt-10"},{default:b(()=>[o("div",{innerHTML:g.value},null,8,Q)]),_:1})):x("",!0)])}}});export{ae as default};

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.