1import{u as S,e as A,m as B,c as C,y as L}from"./BV6Pkiit.js";import{M as z}from"./B4x-9Oq6.js";import{O as E,_ as N}from"./DSkQwH5H.js";import{S as f}from"./Fa5wGPmM.js";import{_ as T}from"./kp0iZPJI.js";import{u as $}from"./CfI25MTE.js";import{A as M,ae as V,$ as s,P as i,W as y,a5 as a,z as e,G as o,X as g,ab as m,S as _,a9 as j,a6 as F,aa as H,c as x}from"./CLFN9GXV.js";const P={class:"mt-4"},G={class:"px-4 px-md-0"},O={key:0},R={key:1,class:"mt-4"},I=["src","alt","height"],W={key:0,class:"d-flex justify-end pt-4"},X={class:"text-color--primary text-size--1 my-auto"},q={class:""},J={class:"text-size--1 text-color--primary"},K=["innerHTML"],oe=M({__name:"[slug]",async setup(Q){let r,p;const c=S(),{isDesktop:l}=A(),{data:t,status:k}=([r,p]=V(async()=>C(`getNewsPage_${c.params.slug}`,async()=>{const d=await $().getDetail(c.params.slug);let n=!1;d.isSuccess()||(n=!0);const u=d.getData();return n&&v(),{record:u,hasFatalError:n}})),r=await r,p(),r),v=()=>{L({statusCode:404,fatal:!0})},b=x(()=>k.value!=="success"),w=x(()=>t.value?[{title:"Ðлог",link:"/posts",isDisabled:!1},{title:t.value.record.header,link:c.path,isDisabled:!0}]:[]);return(d,n)=>{const u=B;return s(),i(N,{"seo-params":{key:"post",value:e(c).fullPath},"open-graph-type":e(E).ARTICLE},{default:y(()=>[a("div",P,[e(l)?(s(),i(T,{key:1,items:e(w)},null,8,["items"])):(s(),i(z,{key:0,title:"Ðлог",class:"px-4"})),a("div",G,[e(b)?(s(),o("div",O,[g(f,{width:"100%",height:"150",class:"mb-4"}),g(f,{width:"100%",height:"400"})])):e(t)?.record?(s(),o("div",R,[a("img",{src:e(l)?e(t).record.img:e(t).record.img_mobile,alt:e(t).record.header,width:"100%",style:{"object-fit":"cover"},height:e(l)?490:200},null,8,I),e(t).record.author?(s(),o("div",W,[a("span",X,m(e(t).record.author.name),1)])):_("",!0),a("div",q,[(s(!0),o(j,null,F(e(t).record.categories,(h,D)=>(s(),i(u,{key:D,class:"text-color--red text-size--1 text-no-decoration",to:`/posts/tag/${h._id}`},{default:y(()=>[H(" #"+m(h.name),1)]),_:2},1032,["to"]))),128)),a("span",J," ⢠"+m(e(t).record.createdAt.split("-").reverse().join(".")),1)]),e(t).record.content?(s(),o("div",{key:1,class:"text-color--main mb-4",innerHTML:e(t).record.content},null,8,K)):_("",!0)])):_("",!0)])])]),_:1},8,["seo-params","open-graph-type"])}}});export{oe 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.