1import{u as m,a as v,f as u}from"./QxJr17T0.js";import{d as g,u as p,b as k,k as y,l as f,c as d,h as t,e as s,F as l,r,o as i,m as b,t as n,T as E,_ as A}from"./CH5a0IXq.js";const S={class:"w"},x={class:"w__head"},B=["href"],D={key:0,class:"w__grid"},L={key:1,class:"w__grid"},M=["href"],N={class:"wc__media"},z=["src","alt","width","height"],F={class:"wc__badge"},H={class:"wc__body"},P=["datetime"],T={class:"wc__title"},U={class:"wc__excerpt"},V={key:2,class:"w__empty"},$=g({__name:"widget",setup(C){const c=m(),h=p(),{data:_,pending:w}=v(()=>({page:1,limit:4}));return k({bodyAttrs:{style:"background: transparent"}}),y(()=>{const a=()=>window.parent?.postMessage({type:"blog-widget:height",height:document.documentElement.scrollHeight},"*");a();const o=new ResizeObserver(a);o.observe(document.documentElement),window.addEventListener("load",a),f(()=>{o.disconnect(),window.removeEventListener("load",a)})}),(a,o)=>(i(),d("section",S,[t("header",x,[o[0]||(o[0]=t("h2",{class:"w__title"},"ÐÑбликаÑии, новоÑÑи, ÑобÑÑиÑ",-1)),t("a",{href:s(c)("/digest"),target:"_top",class:"w__all"},"ÐÑе пÑбликаÑии â",8,B)]),s(w)?(i(),d("div",D,[(i(),d(l,null,r(4,e=>t("div",{key:e,class:"wc wc--skel"},[...o[1]||(o[1]=[b('<div class="wc__media skel" data-v-a6817202></div><div class="wc__body" data-v-a6817202><div class="skel skel__line" style="width:40%;" data-v-a6817202></div><div class="skel skel__line" style="width:90%;height:18px;" data-v-a6817202></div><div class="skel skel__line" style="width:100%;" data-v-a6817202></div></div>',2)])])),64))])):s(_)?.items?.length?(i(),d("div",L,[(i(!0),d(l,null,r(s(_).items,e=>(i(),d("a",{key:e.id,href:s(c)(`/${e.slug}-${e.id}`),target:"_top",class:"wc"},[t("div",N,[t("img",{src:s(h)(e.cover.url),alt:e.cover.alt,width:e.cover.width,height:e.cover.height,loading:"lazy"},null,8,z),t("span",F,n(s(E)[e.type]),1)]),t("div",H,[t("time",{class:"wc__date",datetime:e.publishedAt},n(("formatDateShort"in a?a.formatDateShort:s(u))(e.publishedAt)),9,P),t("h3",T,n(e.title),
11),t("p",U,n(e.excerpt),1)])],8,M))),128))])):(i(),d("p",V,"ÐÑбликаÑий пока неÑ."))]))}}),R=A($,[["__scopeId","data-v-a6817202"]]);export{R 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.