1import{T as $}from"./oPXR4t5U.js";import{ad as k,ah as v,aD as S,eC as w,ba as T,u as t,am as r,an as u,ap as s,ao as c,aA as C,c as a,c1 as b,ay as N,aL as E,ar as L,aN as V}from"./DcvMS2TM.js";const D={key:0,class:"text-xl md:text-2xl font-semibold mb-4"},H={key:1,class:"text-xl md:text-2xl font-semibold mb-4"},j={key:0},z={key:1},q=k({__name:"Header",props:{type:{},categories:{},category:{}},setup(e){const i=v(),{t:l}=S(),f=w(),d=a(()=>f.getH1),x=T(),y=a(()=>x.getCurrentLocation),n=a(()=>({sdam:"ÐÑенда жилÑÑ",prodam:"ÐÑодажа жилÑÑ",snimu:"ÐÑÑ Ð¶Ð¸Ð»Ñе"})),m=a(()=>{if(i.params.property_type)return n.value[i.params.property_type];if(e.type==="drivers")return e.category?e.category==="owners"?"ÐвнеÑам":"Local":"";if(!e.category||!e.categories)return"";let g=[];e.type==="drivers-corner"?g=e.categories.find(p=>p.slug==="truck-business")?.child||[]:g=e.categories;for(const o of g){if(o.slug===e.category)return o.name;if(o.child){const p=o.child.find(B=>B.slug===e.category);if(p)return p.name}}return""}),h=a(()=>m.value||e.type==="drivers"?m.value:$[e.type]||"");return(g,o)=>t(d)?(r(),u("h1",D,s(t(d)),1)):(r(),u("h1",H,[c("span",null,s(t(l)(t(h))),1),o[0]||(o[0]=C()),c("span",null,s(t(l)("в")),1),o[1]||(o[1]=C()),t(y)?.slug?(r(),u("span",j,s(t(y).name),1)):(r(),u("span",z,s(t(l)("СШÐ")),1
1))]))}}),A={class:"w-full flex flex-col items-center justify-center p-5 bg-card rounded-xl gap-8"},F={class:"flex flex-col items-center gap-3"},I={class:"text-center text-xl md:text-2xl font-semibold"},O={class:"text-center text-base text-muted-foreground md:max-w-75"},G=k({__name:"EmptyBlock",props:{title:{},description:{},buttonText:{},hideButton:{type:Boolean}},setup(e){const i=e,l=v(),f=T(),d=a(()=>!!l.params.category),x=a(()=>i.title||(d.value?"СÑанÑÑе пеÑвÑм в каÑегоÑии":"СÑанÑÑе пеÑвÑм в Ñазделе")),y=a(()=>i.description||(d.value?"Ð ÑÑой каÑегоÑии пока Ð½ÐµÑ Ð¾Ð±ÑÑвлений. ÐÑдÑÑе пеÑвÑм - ÑазмеÑÑиÑе ÑвоÑ.":"Ð ÑÑом Ñазделе пока Ð½ÐµÑ Ð¾Ð±ÑÑвлений. ÐÑдÑÑе пеÑвÑм - ÑазмеÑÑиÑе ÑвоÑ."));return(n,m)=>{const h=E;return r(),u("div",A,[c("div",F,[m[0]||(m[0]=c("img",{alt:"empty-block-image",src:"https://d3hr4p3ycp9vo6.cloudfront.net/images/media/2026/6/17/6a324a0968268.webp"},null,-1)),b(n.$slots,"title",{},()=>[c("h3",I,s(t(x)),1)]),b(n.$slots,"description",{},()=>[c("p",O,s(t(y)),1)])]),b(n.$slots,"button",{},()=>[e.hideButton?V("",!0):(r(),N(h,{key:0,class:"w-full md:max-w-77",size:"lg",onClick:t(f).showSubmitFormsPopup},{default:L(()=>[C(s(n.$t(e.buttonText||"ÐобавиÑÑ Ð¾Ð±ÑÑвление")),1)]),_:1},8,["onClick"]))])])}}});export{q as _,G as a};
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.