1import{_ as B}from"./bsA1EQZ_.js";import{_ as M}from"./Do0tQJHw.js";import{s as b,a as V}from"./aMzmhx2g.js";import{e as D,s as I,C as L,c as a,a as t,t as u,b as m,w as g,d as l,j as P,g as h,D as W,l as p,q as _,o}from"./BCQA6FGy.js";import{u as z}from"./Blg2xJwA.js";import{u as A}from"./D8XFVOnI.js";import{_ as H}from"./DlAUqK2U.js";const $={class:"relative py-24 bg-cover bg-center",style:{"background-image":"url('/images/about/SitiMed-bg-header_6.webp')"}},j={class:"relative max-w-[1222px] mx-auto px-4 text-center"},q={class:"font-heading text-[32px] md:text-[40px] font-bold text-white leading-tight"},E={class:"font-body text-[14px] text-gray-300 mt-4"},R={class:"py-12 md:py-16 bg-white"},F={class:"max-w-[900px] mx-auto px-4"},G={key:0,class:"space-y-5","aria-label":"ÐагÑÑзка пÑедложениÑ"},J={key:1,class:"rounded-lg bg-[#ecf6f7] px-6 py-10 text-center"},K={class:"font-body text-[14px] text-gray-600 mt-3"},O={key:2},Q={class:"font-body text-[13px] text-gray-500 mb-6"},U=["src","alt"],X=["innerHTML"],Y={key:3,class:"rounded-lg bg-[#ecf6f7] px-6 py-10 text-center"},Z={class:"mt-10"},tt=D({__name:"[slug]",async setup(et){let i,f;const v=I(),{fetchPosts:w,getPostImage:k,formatDate:C}=z(),s=p(null),r=p(""),y=p(!0),c=p("");try{const d=([i,f]=L(()=>w({slug:String(v.params.slug||"")})),i=await i,f(),i);d.posts.length&&(s.value=d.posts[0],r.value=k(d.posts[0],"full"))}catch{c.value="Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð¿Ñедложение. ÐопÑобÑйÑе оÑкÑÑÑÑ ÑÑÑаниÑÑ Ð¿Ð¾Ð·Ð¶Ðµ."}finally{y.value=!1}const n=_(()=>b(s.value?.title.rendered||"")),S=_(()=>V(s.value?.content.rendered||"")),N=_(()=>b(s.value?.excerpt.rendered||"",160));return A({title:()=>n.value?`${n.value} | СиÑиÐед`:"СпеÑиалÑное пÑедложение | СиÑиÐед",description:()=>N.value||"ÐкÑии и ÑпеÑиалÑнÑе пÑÐµÐ´Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ð¸ СиÑиÐед.",image:()=>r.value||"",path:()=>`/special/${String(v.params.slug||"")}`,type:"article"}),(d,e)=>{const x=B,T=M;return o(),a("div",null,[t("section",$,[e[4]||(e[4]=t("div",{class:"absolute inset-0 bg-[#000f1e]/60"},null,-1)),t("div",j,[t("h1",q,u(n.value||"СпеÑиалÑное пÑедложение"),1),t("p",E,[m(x,{to:"/",class:"hover:text-white"},{default:g(()=>[...e[0]||(e[0]=[l("ÐлавнаÑ",-1)])]),_:1}),e[2]||(e[2]=l(" ⺠",-1)),m(x,{to:"/special",class:"hover:text-white"},{default:g(()=>[...e[1]||(e[1]=[l("ÐкÑии",-1)])]),_:1}),e[3]||(e[3]=l(" ⺠",-1)),t("span",null,u(n.value||"ÐÑедложение"),1)])])]),t("section",R,[t("div",F,[y.value?(o(),a("div",G,[...e[5]||(e[5]=[t("div",{class:"h-4 w-32 bg-gray-100 rounded animate-pulse"},null,-1),t("div",{class:"aspect-[16/9] w-full bg-gray-100 rounded-lg animate-pulse"},null,-1),t("div",{class:"h-4 w-full bg-gray-100 rounded animate-pulse"},null,-1),t("div",{class:"h-4 w-4/5 bg-gray-100 rounded animate-pulse"},null,-1)])])):c.value?(o(),a("div",J,[e[6]||(e[6]=t("h2",{class:"font-heading text-[22px] font-bold text-[#242424]"},"ÐÑедложение недоÑÑÑпно",-1)),t("p",K,u(c.value),1)])):s.value?(o(),a("article",O,[t("p",Q,u(P(C)(s.value.date)),1),r.value?(o(),a("img",{key:0,src:r.value,alt:n.value,class:"w-full h-auto rounded-lg mb-8",loading:"lazy"},null,8,U)):h("",!0),t("div",{class:"wp-content font-body text-[15px] text-gray-700 leading-relaxed",innerHTML:S.value},null,8,X)])):(o(),a("div",Y,[...e[7]||(e[7]=[t("h2",{class:"font-heading text-[22px] font-bold text-[#242424]"},"ÐÑедложение не найдено",-1),t("p",{class:"font-body text-[14px] text-gray-600 mt-3"},"Ðозможно, акÑÐ¸Ñ Ð·Ð°Ð²ÐµÑÑена или адÑÐµÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸Ð»ÑÑ.",-1)])])),t("div",Z,[m(x,{to:"/special",class:"inline-block rounded-btn bg-primary px-6 py-3 font-heading text-[13px] font-semibold text-white transition hover:opacity-90 active:scale-[0.98]"},{default:g(()=>[...e[8]||(e[8]=[l(" ÐÑе акÑии ",-1)])]),_:1})])]),s.value?(o(),W(T,{key:0})):h("",!0)])])}}}),dt=H(tt,[["__scopeId","data-v-2e3128e9"]]);export{dt 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.