PageSourceSearch

https://drukarnia.com.ua/_nuxt/DL7AfStP.js

js drukarnia.com.ua collected 2026-09-24 09:34:16 UTC 4,499 bytes, 1 lines download raw bytes

1import{_ as P}from"./DDtiFam9.js";import{d as b,c as m,A as V,a0 as j,B as I,o as n,g as l,h as r,D as o,x as g,p as u,E as s,y,l as h,L as U,M as z,_ as W,aV as E,a1 as F,F as v,s as x,w as M}from"./BT-cyWfI.js";import{_ as O}from"./BZbWnjFh.js";import{_ as R}from"./D290nfKB.js";import{_ as H}from"./DGh-30Uu.js";import{_ as $}from"./CXMq1Agp.js";import{_ as q}from"./VGwTR7aY.js";const G=["aria-describedby","aria-labelledby"],J={class:"flex justify-between min-w-0"},K={class:"space-y-2 min-w-0"},Q=["id"],X={key:1,class:"text-sm text-gray-500 dark:text-gray-400 text-cut-3"},Y={class:"flex justify-between gap-2 min-w-0"},Z=["id"],ee=b({__name:"ArticlePreview",props:{article:{},showCommentNumber:{type:Boolean,default:!0},showViewNumber:{type:Boolean,default:!0},showLikeNumber:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},showMenu:{type:Boolean}},emits:["delete","pin"],setup(w){const t=w,c=m(()=>t.article.owner&&typeof t.article.owner=="object"?t.article.owner:null),a=V(),{localizePath:p}=j(),{t:_}=I(),i=m(()=>{var d;const e=typeof t.article.owner=="string"?t.article.owner:(d=t.article.owner)==null?void 0:d._id;return a.isLoggedIn&&e&&e===a.user._id}),k=m(()=>typeof t.article.externalLink=="string"&&t.article.externalLink.length>0),f=m(()=>typeof t.article.externalLink=="string"&&t.article.externalLink.length>0?t.article.externalLink:p("/articles/"+t.article.slug,a.language));return(e,d)=>{const B=P,L=U,A=O,D=R,S=H,T=z,C=$;return n(),l("article",{"aria-describedby":`${e.article._id}-description`,"aria-labelledby":`${e.article._id}-title`,class:"group flex justify-between"},[r("div",J,[r("div",K,[o(c)?(n(),g(B,{key:0,user:o(c),size:"xs"},null,8,["user"])):u("",!0),s(L,{to:`${o(f)}`,target:o(k)?"_blank":"_self",class:"flex items-baseline gap-2 hover:underline focus-visible:underline"},{default:y(()=>[r("h2",{id:`${e.article._id}-title`,class:"line-clamp-3 font-extrabold"},h(t.article.title),9,Q)]),_:1},8,["to","target"]),e.showDescription&&e.article.description?(n(),l("p",X,h(e.article.description),1)):u("",!0)]),o(i)?u("",!0):(n(),g(A,{key:0,article:e.article},null,8,["article"]))]),r("div",Y,[s(D,{created:e.article.createdAt,"read-time":e.article.readTime,sensitive:e.article.sensitive,ai:e.article.ai,class:"text-sm flex-shrink-0"},null,8,["created","read-time","sensitive","ai"]),s(C,{class:"flex min-w-0"},{default:y(({id:N})=>[r("h3",{id:N,class:"sr-only"},h(o(_)("article.topics")),9,Z),e.article.mainTag&&e.article.mainTagSlug?(n(),g(T,{key:0,padded:!1,to:o(p)(`/themes/${e.article.mainTagSlug}`,o(a).language),class:"w-full",color:"white",variant:"ghost"},{default:y(()=>[s(S,{label:e.article.mainTag,class:"block truncate whitespace-nowrap",size:"xs",variant:"subtle"},null,8,["label"])]),_:1},8,["to"])):u("",!0)]),_:1})])],8,G)}}}),te=W(ee,[["__scopeId","data-v-c7b55dce"]]),se={key:0,class:"divide-y m-0 list-none"},ne={key:1,class:"divide-y"},oe={class:"flex items-center gap-1"},ae={class:"flex justify-between"},ie={key:2,class:"m-10 text-center text-sm text-gray-500 dark:text-gray-400"},re=b({__name:"ArticlePreviewList",props:{articles:{},fallback:{},showDescription:{type:Boolean},showTags:{type:Boolean}},setup(w){const t=w,c=m(()=>E(t.articles));return(a,p)=>{var f;const _=te,i=q,k=F("track-impression");return(f=o(c))!=null&&f.length?(n(),l("ul",se,[(n(!0),l(v,null,x(o(c),e=>{var d;return n(),l("li",{key:e._id,class:"py-3"},[M(s(_,{article:e,"show-comment-number":!1,"show-description":a.showDescription,"show-like-number":!1,"show-tags":a.showTags,"show-view-number":!1},null,8,["article","show-description","show-tags"]),[[k,{id:e._id,type:"view",owner:(d=e.owner)==null?void 0:d._id}]])])}),128))])):o(c)?(n(),l("p",ie,h(a.fallback),1)):(n(),l("div",ne,[(n(),l(v,null,x(3,e=>r("div",{key:e,class:"py-4 flex flex-col gap-3"},[r("div",oe,[s(i,{class:"rounded-full h-6 w-6"}),s(i,{class:"h-3 w-44"})]),r("div",null,[s(i,{class:"w-full h-5 mb-1"}),s(i,{class:"w-14 h-5"})]),r("div",ae,[s(i,{class:"h-3 w-44"}),s(i,{class:"h-3 w-14"})])])),64))]))}}}),le=["id"],we=b({__name:"WidgetArticles",props:{articles:{},title:{},showDescription:{type:Boolean}},setup(w){return(t,c)=>{var _;const a=re,p=$;return(_=t.articles)!=null&&_.length?(n(),g(p,{key:0,class:"border p-4 rounded-xl space-y-2"},{default:y(({id:i})=>[r("h2",{id:i,class:"text-xl"},h(t.title),9,le),s(a,{articles:t.articles,"show-description":t.showDescription,fallback:""},null,8,["articles","show-description"])]),_:1})):u("",!0)}}});
1export{we as _,re 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.