PageSourceSearch

https://www.delfi.ee/_nuxt/B5UmJ1sX.js

js delfi.ee collected 2026-09-24 08:36:56 UTC 6,664 bytes, 1 lines download raw bytes

1import{A as G,a as O,b as W,d as Y}from"./CSFKSCpm.js";import{P as J,R as P}from"./zIFTxbJO.js";import{aS as K,aT as X,d as $,c as h,a as p,u as c,k as b,e as _,U as k,l as R,t as A,o as u,z as I,_ as x,M as Z,q as tt,G as et,ao as at,ap as ot,v as st,h as E,bh as rt,w as it,ev as nt,al as F}from"./B5iH8GD1.js";import{d as ct,_ as ut}from"./C-WMLNBW.js";import{L as lt}from"./RGuMi1jb.js";import{u as ht,c as dt}from"./BCFuw86a.js";import{g as ft,a as mt}from"./i1bFaG5r.js";import{u as _t}from"./Dvj2AC7C.js";import{u as pt}from"./D-XmqQJv.js";import"./Df-aVrYw.js";import"./j5588ckU.js";import"./BITWCVP_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"1.13.69"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="94d7d044-58c0-41a7-8b8a-22cffd179845",e._sentryDebugIdIdentifier="sentry-dbid-94d7d044-58c0-41a7-8b8a-22cffd179845")}catch{}})();class gt extends J{_authorPathData=null;numericRegex=/^\d+$/;_authorAttributes;constructor(t,o){super({name:"AuthorPath",redirectConditions:{channel:!0,id:!0,slug:!1,...o?.redirectConditions}}),this._authorAttributes=t.attributes,this.initializeAndValidate({id:t.id,slug:t.slug})}initializeAndValidate({id:t,slug:o}){const r=!!(t&&this.numericRegex.test(String(t))&&o);this._isDataValid=r,this._authorPathData=r?{id:t,slug:o}:null,this._isDataValid||(this._error=new Error(`${this._name} initializeAndValidate: Invalid tag data - id: ${t}, slug: ${o}`))}resolveDomain(t,o){const r=this._authorAttributes?.find(l=>l.key==="channelId"),n=r?.value,s=ct.find(l=>l.id===n);let a=s?.domain,i=s?.language.toLowerCase();return r||(o==="et"?(a="www.delfi.ee",i="et"):o==="ru"&&(a="rus.delfi.ee",i="ru")),r&&o.toLowerCase()==="ru"&&(a="rus.delfi.ee",i="ru"),{domain:a||t,lang:i||o}}createAuthorPath({domain:t,lang:o,fakeDomainEnabled:r,query:n,route:s}){if(!this.isRedirectDataValid(this._authorPathData))return null;const a=this.resolveDomain(t,o);if(a.domain===t&&a.lang===o)return this._redirectStatus=P.Initial,null;const{id:i,slug:l}=this._authorPathData,y={type:"author",id:i,slug:l,channel:{language:a.lang,domain:a.domain}},v=K({pathOptions:y,domain:a.domain,fakeDomainEnabled:r}),m=X(v,{query:n,route:s})||null;return!this.isRedirectUrlValid(m,{domain:t,route:s})||!m?null:this.handleRedirectPath(m)}}const yt={class:"author-profile"},vt={class:"row"},wt={key:0,class:"col-sm-12 col-md-auto"},bt={class:"col author-profile__content-col"},St={class:"author-profile__content"},At={class:"author-profile__name"},Dt={key:0,class:"author-profile__position"},Pt=["href"],$t={key:0,class:"author-profile__separator"},Ct={key:1,class:"author-profile__description"},kt=$({__name:"AuthorProfile",props:{author:{}},setup(e){const t=e,o=I(()=>t.author?.image?.id||"");return(r,n)=>(u(),h("div",yt,[p("div",vt,[c(o)?(u(),h("div",wt,[b(ut,{author:e.author,size:250,class:"author-profile__image"},null,8,["author"])])):_("",!0),p("div",bt,[p("div",St,[p("h2",At,[b(k,{name:"author",class:"author-profile__author-icon"}),R(A(e.author.name),1)]),e.author.info.position?(u(),h("span",Dt,A(e.author.info.position),1)):_("",!0),e.author.info.email?(u(),h("a",{key:1,href:`mailto:${e.author.info.email}`,class:"author-profile__email"},[b(k,{name:"envelope",class:"author-profile__email-icon"}),R(" "+A(e.author.info.email),1)],8,Pt)):_("",!0)]),e.author.info.description?(u(),h("div",$t)):_("",!0),e.author.info.description?(u(),h("p",Ct,A(e.author.info.description),1)):_("",!0)])])]))}}),Rt=x(kt,[["__scopeId","data-v-21341cd6"]]),Et=["innerHTML"],Ft=$({__name:"AuthorHeadlinesCounter",props:{name:{},count:{}},setup(e){return(t,o)=>(u(),h("div",{class:"author-headlines-counter",innerHTML:t.$t("author.articles_from_author",{name:e.name,count:e.count})},null,8,Et))}}),It=x(Ft,[["__scopeId","data-v-039db7ec"]]);function xt({$channelConfig:e,$config:t,author:o,path:r}){const{base:n}=e("meta"),s={...n,siteName:e("settings").name,title:o?.name||n.title};if(o?.image){const i=o.image,l=i?.attributes?.cropperData?.customCrops,y=ft(l),v=i?.attributes?.cropperData?.focuspoint,m=mt(v),D=`${t.public.mediaApiCropperUrl}/${i.id}.jpg?w=1200&h=800${m}${y["16:9"]}`;s.imageData={src:D,width:1200,height:800}}return new Z(s,r)}const Vt={class:"container"},Tt={key:0,class:"row justify-content-center"},Ht={class:"col-12 col-lg-12"},Ut={class:"row justify-content-center"},zt={class:"col"},Xt=$({__name:"_id",async setup(e){let t,o;const{$channelConfig:r,$config:n}
1=tt(),s=et(),a=at(`author-${s.params.id}-page`,()=>({author:null,headlines:{items:[],pager:{offset:0,count:0}},headlineSettings:{publishDate:!0,titleComment:!1}})),{refetch:i,fetchStatus:l,startFetching:y,stopFetching:v,handleFetchError:m,watchRefetchQuery:C,addRefetchToQuery:D}=ht(),{handlePageError:V,handlePageRedirect:T,watchFetchStatus:H,watchFetchError:U}=_t(),z=I(()=>!/^\d+$/.test(s.params.id)),{refresh:L,status:N,error:B}=([t,o]=ot(async()=>pt(`author-${s.params.id}`,async()=>{const d=new G({refetchType:i.value.activeType,author:a.value.author,type:"author",useUUID:z.value}),S=new O({channel:r("config"),route:s}),g=new W(d,S);y(g.state.fetchStatus);const[f,w]=await g.handleFetch(new Y({config:n}));if(w)return m(g.state.fetchStatus,w)||V(w),!0;const{author:Q,headlines:j}=f;return a.value.author=Q,a.value.headlines=j,v(g.state.fetchStatus),q(a.value.author),!0})),t=await t,o(),t);U(B),C(L),H(N),st(()=>{const d=xt({$channelConfig:r,$config:n,author:a.value.author,path:s.path});return{title:d.title,meta:d.data,link:d.link}});function M(){D(dt.Force)}function q(d){const{domain:S,lang:g}=r("settings"),f=new gt(d);if(!f.getState("isDataValid")){F(f.getState("error"),{tags:{"process.type":"client"}});return}const w=f.createAuthorPath({domain:S,lang:g,fakeDomainEnabled:n.public.fakeDomainEnabled,query:s.query,route:s});if(f.getState("redirectStatus")===P.Error){F(f.getState("error"),{tags:{"process.type":"client"}});return}f.getState("redirectStatus")===P.Redirect&&T(w)}return(d,S)=>(u(),h("div",Vt,[c(a).author?(u(),h("div",Tt,[p("div",Ht,[b(Rt,{author:c(a).author,size:"big"},null,8,["author"])])])):_("",!0),p("div",Ut,[p("div",zt,[c(l)==="pending"?(u(),E(lt,{key:0,size:"big"})):c(a).headlines.items.length>0?(u(),E(nt,{key:c(a).headlines.pager.offset,class:"author__articles",type:"BlockType5",list:c(a).headlines,pagination:!0,settings:c(a).headlineSettings,onPageChange:M},rt({_:2},[c(a).author?.name?{name:"header",fn:it(()=>[b(It,{name:c(a).author.name,count:c(a).headlines.pager.count},null,8,["name","count"])]),key:"0"}:void 0]),1032,["list","settings"])):_("",!0)])])]))}});export{Xt 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.