1import{aM as $,aP as A,b6 as C,bg as L,cL as B,b8 as M,aT as z,aU as G,cM as P,c$ as V,aO as F,cN as x}from"#entry";import{_ as R}from"./Cf3B1xE-.js";import{_ as D}from"./DmznVH24.js";import{d as Y,M as s,S as i,a6 as r,I as n,P as h,J as K,X as O,N as p,u as e,a3 as Q,aV as U,aM as H,Y as o,aa as y,ab as I}from"./B0e_VTBd.js";import{u as S}from"./B-IonYXx.js";import"./iSO4VrTj.js";import"./DJ99CJRY.js";import"./DM3-QKK4.js";import"./co7lUtko.js";import"./CMrc6a74.js";import"./6Mb2U4GA.js";import"./BK1LfQ-Q.js";import"./C7NxzZTp.js";import"./BmVBXUXF.js";import"./BKD5pTdW.js";import"./B671dr11.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"2ca3035ba38fc8d9dac0a3a9e66a96aa2814d297"};var c=new a.Error().stack;c&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[c]="e5d43cd3-e66b-42c6-947f-f551c4f162b8",a._sentryDebugIdIdentifier="sentry-dbid-e5d43cd3-e66b-42c6-947f-f551c4f162b8")}catch{}})();const J=["href"],X={__name:"BlogDocsSlider",props:{docs:{type:Array,default:()=>[]}},setup(a){const{$getDirectusImage:c}=$(),d=Y(null);function f(k){d.value=k}function u(){d.value?.slideNext()}function t(){d.value?.slidePrev()}return(k,b)=>{const g=A,_=B,l=C,v=M;return s(),i("div",{class:Q(["docs-slider",{"less-three-slides":a.docs.length<3,"one-slide":a.docs.length===1}])},[r("button",{class:"docs-slider__prev",onClick:t},[n(g,{name:"chevron-left"})]),n(v,{class:"docs-slider__swiper","slides-per-view":"auto","space-between":16,onSwiper:f},{default:h(()=>[(s(!0),i(K,null,O(a.docs,m=>(s(),p(l,{key:m.directus_files_id,class:"docs-slider__slide"},{default:h(()=>[r("a",{href:e(L)(e(c)(m.directus_files_id)),target:"_blank"},[n(_,{class:"docs-slider__img",hash:m.directus_files_id,alt:"",lazy:""},null,8,["hash"])],8,J)]),_:2},1024))),128))]),_:1}),r("button",{class:"docs-slider__next",onClick:u},[n(g,{name:"chevron-right"})])],2)}}},j=D(X,[["__scopeId","data-v-eb739a5a"]]),W={class:"author"},Z={class:"author__card"},ee={key:0,class:"author__avatar"},te={class:"author__info"},se={key:0,class:"author__name"},ae={key:1,class:"author__position"},oe=["href"],ne={key:0,class:"author__quote"},ie={key:1,class:"author__socials"},re={class:"author__socials-links"},_e={key:2,class:"author__articles author__block"},le={class:"author__block-title"},ce={key:3,class:"author__docs author__block"},de={class:"author__block-title"},ue={__name:"[id]",async setup(a){let c,d;const{$directusApiFetch:f}=$(),u=z(),{data:t,suspense:k}=S({queryKey:["blog-author",u.params.id],queryFn:()=>f(`/items/author/${u.params.id}`,{params:{fields:["*","docs.*"]}}),staleTime:x,select:_=>_?.data?_.data:{}}),{data:b,suspense:g}=S({queryKey:["blog-author-articles",u.params.id],queryFn:()=>f("/items/article",{params:{sort:"-date_created",limit:10,fields:"thumbnail,views_count,title,short_text,date_updated,date_created,date_updated_custom,slug",filter:{authors:{author_id:{_eq:u.params.id}}}}}),staleTime:x,select:_=>_?.data?Array.isArray(_.data)?_.data:[]:[]});return[c,d]=U(()=>Promise.all([k(),g()])),await c,d(),G({title:t.value.name,link:[{rel:"canonical",href:`https://zoloto585.ru${u.path}`}]}),(_,l)=>{const v=B,m=R,w=A,N=V,E=j,T=P,q=F;return s(),p(H,null,{fallback:h(()=>[n(q,{active:!0,"is-full-page":!0})]),default:h(()=>[r("div",W,[n(T,{size:"small"},{default:h(()=>[r("div",Z,[e(t).avatar?(s(),i("div",ee,[n(v,{hash:e(t).avatar,width:180,alt:""},null,8,["hash"])])):o("",!0),r("div",te,[e(t).name?(s(),i("h1",se,y(e(t).name),1)):o("",!0),e(t).description?(s(),i("p",ae,y(e(t).description),1)):o("",!0),e(t).email?(s(),i("a",{key:2,href:`mailto:${e(t).email}`,class:"author__email"},y(e(t).email),9,oe)):o("",!0)])]),e(t).quote?(s(),i("p",ne,y(e(t).quote),1)):o("",!0),e(t).link_vk||e(t).link_ok||e(t).link_tg?(s(),i("div",ie,[l[0]||(l[0]=r("p",{class:"author__socials-title"}," СоÑиалÑнÑе ÑеÑи авÑоÑа: ",-1)),r("div",re,[e(t).link_vk?(s(),p(m,{key:0,link:e(t).link_vk,icon:"vk-no-bg"},null,8,["link"])):o("",!0),e(t).link_ok?(s(),p(m,{key:1,link:e(t).link_ok,icon:"ok-no-bg"},null,8,["link"])):o("",!0),e(t).link_tg?(s(),p(m,{key:2,link:e(t).link_tg,icon:"telegram"},null,8,["link"])):o("",!0)])])):o("",!0),e(b).length>0?(s(),i("div",_e,[r("h2",le,[n(w,{size:"18",name:"book"}),l[1]||(l[1]=I(" СÑаÑÑи авÑоÑа "))]),n(N,{class:"author__articles-slider",articles:e(b)},null,8,["articles"])])):o("",!0),e(t).docs.length>0?(s(),i("div",ce,[r("h2",de,[n(w,{name:"award"}),l[2]||(l[2]=I(" ÐиÑензии и ÑеÑÑиÑикаÑÑ Ð°Ð²ÑоÑа "))]),n(E,{docs:e(t).docs},null,8,["docs"])])):o("",!0)]),_:1})])]),_:1})}}},De=D(ue,[["__scopeId","data-v-2ee8ea59"]]);export{De 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.