1import{u as H,_ as L}from"./BkYNm7bw.js";import{w as N,_ as h,u as C,e as D}from"./BGdHWsHj.js";import{_ as M}from"./Of2t7rO_.js";import{_ as V}from"./CSer-MEL.js";import{a6 as w,ah as z,X as F,ae as U,ac as j}from"./CjMYDJB0.js";import{d as y,H as k,b as m,z as c,F as S,B as o,k as b,x as e,l,w as p,o as u,aj as I,t as v,i as R}from"./q-sCGch_.js";import{t as Y}from"./BKxljLFV.js";import"./D3TqhVce.js";import"./N30Fq56X.js";import"./B6wSMHDS.js";import"./09R4z0sA.js";import"./BzC7uc9w.js";import"./CvSa9j-_.js";import"./Bo7Lo5NY.js";import"./BD7VOouX.js";import"./Cpm6sGjf.js";import"./DrawRCiz.js";import"./DhrepIux.js";import"./CxK-cbKl.js";const E={key:0,class:"flex flex-col items-start gap-6 lg:gap-12 rounded-xl"},O={class:"w-full overflow-hidden"},W=y({__name:"Similar",props:{post:{}},setup(d){const n=d,{promotionService:i}=w(),{data:a,pending:_}=z(()=>i.getSimilar(n.post.slug),"$-52WUxYUN0"),s=k(()=>a.value?a.value.data:[]);return(x,r)=>{const t=N,f=h,g=V;return c(),m(S,null,[o(t,{active:e(_)},null,8,["active"]),!e(_)&&e(s).length>0?(c(),m("section",E,[o(f,{level:2},{default:p(()=>[...r[0]||(r[0]=[u("Ðам Ð¼Ð¾Ð¶ÐµÑ Ð¿Ð¾Ð½ÑавиÑÑÑÑ",-1)])]),_:1}),l("div",O,[o(g,{items:e(s)},null,8,["items"])])])):b("",!0)],64)}}}),X=Object.assign(W,{__name:"PromotionsSimilar"}),q={class:"prose prose-xl break-words max-w-none flex flex-col gap-12"},G=["innerHTML"],J={class:"hidden md:block"},ft=y({__name:"[slug]",async setup(d){let n,i;const a=C(),s=F().params.slug,{promotionService:x}=w(),{data:r}=([n,i]=I(()=>j(()=>x.get(s),"$iPr9L3enYf")),n=await n,i(),n);r.value?.data||Y(`Promotion with slug '${s}' not found.`);const t=k(()=>r.value.data);return U({title:()=>t.value.title,description:()=>t.value.preview,articlePublishedTime:()=>t.value.created_at,articleModifiedTime:()=>t.value.updated_at,ogTitle:()=>t.value.title,ogDescription:()=>t.value.preview,ogImage:()=>t.value.image,ogImageAlt:()=>t.value.title,ogUrl:()=>a.canonical(),ogType:"article"}),H([{text:"ÐлавнаÑ",to:"/"},{text:"ÐкÑии",to:"/promotions"},{text:t.value.title,to:a.toPromotion(t.value)}]),(f,g)=>{const T=L,B=h,$=M,P=D,A=X;return c(),m(S,null,[o(T),o(B,{level:1},{default:p(()=>[u(v(e(t).title),1)]),_:1}),l("article",q,[l("div",{class:"ck-content",innerHTML:e(t).content},null,8,G),o($,{post:e(t),class:"xl:py-5"},null,8,["post"]),e(t).related_url?(c(),R(P,{key:0,to:e(t).related_url,variant:"primary-border",class:"w-fit"},{default:p(()=>[u(v(e(t).related_action),1)]),_:1},8,["to"])):b("",!0)]),l("section",J,[o(A,{post:e(t)},null,8,["post"])])],64)}}});export{ft as default}; 2//# sourceMappingURL=Cydnh8wl.js.map
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.