1import{_ as J}from"./DRnKpprj.js";import{d as x,E as M,a as u,e as o,D as n,G as i,b as e,t as l,n as K,o as c,_ as Q,f as U,w as X,g as h,i as Y,r as Z,p as tt,x as $,y as st,s as k,F as w,v as ot,B as C}from"./CyVqXwo4.js";import{_ as et}from"./CJy1ZdWD.js";import{_ as nt}from"./CT_gbRFc.js";import{_ as at}from"./Cgpg8tMj.js";import{_ as rt}from"./Cr-Nc8si.js";import{_ as lt}from"./Do0C2Db0.js";import{_ as ct}from"./BMePfg2m.js";import it from"./BYrHnGJZ.js";import{u as A}from"./Em6DsptL.js";import{u as _t}from"./BMowew4t.js";import"./BtPmv9CL.js";import"./DUY-HjHu.js";import"./Nl7atSqz.js";import"./BwQzvdFb.js";import"./DLohiDnj.js";import"./DmsLpZ3V.js";import"./CaIOLx_f.js";import"./BqeQod_z.js";const B=x({__name:"AuthorTop",props:{columnist:{}},setup(a){const{t}=M({useScope:"local"});return(s,d)=>{const m=J;return c(),u("div",{class:n(s.$style.top)},[o("div",{class:n(["container",s.$style.wrapper])},[o("div",{class:n(["rubric-date",s.$style.dateWrapper])},[o("div",{class:n(["cm-rubric",s.$style.rubric])},i(e(t)("matters"))+": "+i(a.columnist.opinions_count),3),o("div",{class:n(["cm-date",s.$style.date])},i(s.$date("now")),3)],2),o("div",{class:n(s.$style.content)},[o("div",{style:K({backgroundImage:`url(${a.columnist.image_url})`}),class:n(s.$style.avatar)},null,6),o("div",{class:n(s.$style.text)},[o("div",{class:n(s.$style.name)},i(a.columnist.full_name),3),o("div",{class:n(s.$style.job)},i(a.columnist.occupation),3)],2),l(m,{class:"__black"})],2)],2)],2)}}}),ut="_top_g132c_2",mt="_rubric_g132c_6",pt="_date_g132c_9",dt="_avatar_g132c_12",bt="_name_g132c_17",ft="_job_g132c_22",vt="_wrapper_g132c_33",yt="_dateWrapper_g132c_36",gt="_content_g132c_47",ht="_text_g132c_53",$t={top:ut,rubric:mt,date:pt,avatar:dt,name:bt,job:ft,wrapper:vt,dateWrapper:yt,content:gt,text:ht};function L(a){const t=a;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{rus:{matters:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑеÑиалов"}}},eng:{matters:{t:0,b:{t:2,i:[{t:3}],s:"Materials"}}},bak:{matters:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑеÑиалдаÑ"}}},tat:{matters:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑеÑиаллаÑ"}}},chv:{matters:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑеÑиалÑем"}}},chm:{matters:{t:0,b:{t:2,i:[{t:3}],s:"Ðазе"}}},udm:{matters:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑеÑиал"}}}}})}const kt={$style:$t};typeof L=="function"&&L(B);const wt=Object.assign(Q(B,[["__cssModules",kt]]),{__name:"AuthorTop"}),Ct={class:"container"},At={class:"list-cols"},Lt={class:"matter-grid"},St=x({__name:"[id]",async setup(a){let t,s;const d=U(),m={columnist_id:d.params.id,kind:"opinion"},r=([t,s]=X(()=>Promise.all([A(`authors/${d.params.id}`),A("matters",{query:m})])),t=await t,s(),t);if(r[0].error.value||!r[0].data.value)throw h({statusCode:r[0].error.value?.statusCode??500});if(r[1].error.value||!r[1].data.value)throw h({statusCode:r[1].error.value?.statusCode??500});const{t:I}=M({useScope:"local"}),{$api:j}=Y(),v=r[0].data.value,{items:D,loading:N,noResults:E,loadEnabled:R,getItems:T,enableLoad:y,busy:W}=_t({initialItems:r[1].data.value.matters,params:m}),b=Z([]);return tt(async()=>{const p=await j("authors");b.value=p.map(_=>({to:`/author/${_.id}`,title:_.full_name})),b.value.unshift({to:"/opinions",title:I("all")})}),(p,_)=>
1{const V=wt,z=et,F=nt,O=at,q=rt,G=lt,P=ct,H=it;return c(),u("div",null,[l(V,{columnist:e(v)},null,8,["columnist"]),o("div",Ct,[l(z,{class:"mb-4",links:e(b),label:e(v).full_name},null,8,["links","label"]),o("section",At,[o("div",null,[o("div",Lt,[(c(!0),u(w,null,ot(e(D),(f,g)=>(c(),u(w,{key:g},[l(F,{matter:f},null,8,["matter"]),l(O,{index:g},null,8,["index"])],64))),128))]),k(l(q,null,null,512),[[C,e(N)]]),k(l(G,null,null,512),[[C,e(E)]]),e(R)?(c(),$(P,{key:0,busy:e(W),onLoad:e(T)},null,8,["busy","onLoad"])):(c(),u("div",{key:1,class:"all-matters",onClick:_[0]||(_[0]=(...f)=>e(y)&&e(y)(...f))},i(p.$t("allMatters")),1))]),p.$device.isDesktopOrTablet?(c(),$(H,{key:0})):st("",!0)])])])}}});function S(a){const t=a;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{rus:{all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе авÑоÑÑ"}}},eng:{all:{t:0,b:{t:2,i:[{t:3}],s:"All authors"}}},bak:{all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÓ©ÑÓ Ð°Ð²ÑоÑÒаÑ"}}},tat:{all:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑлÑк авÑоÑлаÑ"}}},chv:{all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÄнпÑÑ Ð°Ð²ÑоÑÑем"}}},chm:{all:{t:0,b:{t:2,i:[{t:3}],s:"ЧÑла авÑоÑ"}}},udm:{all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ°Ð½Ñ Ð³Ð¾Ð¶ÑÑÑÑÑÑ"}}}}})}typeof S=="function"&&S(St);export{St 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.