1import{bv as h,a$ as y,aM as a,aN as C,aV as k,bA as w,bf as S,by as z,aS as n,aU as c,b8 as p,bF as f,aY as d,aT as _,bD as I}from"./v2.5-BMcaV3uw.js";import{d as L}from"./v2.5-DN8bt0dw.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="21f234ba-1e6d-4b07-8fda-d2cd99b77903",e._sentryDebugIdIdentifier="sentry-dbid-21f234ba-1e6d-4b07-8fda-d2cd99b77903")}catch{}const T=h({name:"PictureContact",props:{alt:{type:String,default:"ÐзобÑажение"},sizes:{type:Array,default:null}},emits:["click"],computed:{defaultCommentAvatarSrc:()=>L,image(){const e=this.sizes?.[0],t=[];if(e)return t.push(e),this.sizes?.forEach(s=>{e.width*2===s.width&&t.push(s)}),{imageSizes:t,mediaQuery:"(min-width: 0px)"}},srcsetForNoScript(){return this.sizes?.slice(0,5)?.map(t=>`${t.url} ${t.width}w`).join(", ")},lazyLoadImage(){return this.image||null}},methods:{getSrcSet(e){const t=e.imageSizes;return t.length>1?`${t[0].url} 1x, ${t[1].url} 2x`:t[0].url}}},"$gut9-Ixj79");function A(e,t,s,o,g,m){return a(),C(k("amp-img"),{class:"picture",src:e.defaultCommentAvatarSrc,srcset:e.getSrcSet(e.lazyLoadImage),alt:e.alt,width:"40",height:"40",onClick:t[0]||(t[0]=l=>e.$emit("click"))},null,8,["src","srcset","alt"])}const j=y(T,[["render",A]]),D=h({name:"AdsPageContactsList",components:{PictureContact:j},props:{elem:{type:Object,required:!0}},data:()=>({sources:{mobile:"40px"}}),computed:{items(){return this.elem.attributes.items},currentSlug(){return w((this._.provides[S]||this.$route).fullPath)}},methods:{getClassContactGroup(e,t){const s=this.getPersonContacts(e),o={};return s[t+1]&&s[t+1].length&&(o["ads-page-contacts-list__contacts-group--separator"]=!0),o},getPersonContacts(e){const{email:t,whatsapp:s,telegram:o}=e,g=[{type:"email",value:t},{type:"whatsapp",value:s},{type:"telegram",value:o}].filter(i=>i.value),[m,...l]=g;return[[m],[...l]].filter(i=>i.length>0)},getPersonInfo(e){if(!e.name&&!e.job_title)return"";const t=e.job_title?`, ${e.job_title}`:"",s=e.email||e.whatsapp||e.telegram?":":"";return`<span>${e.name??""}</span>${t}${s}`},getHrefContact(e){const t={email:s=>`mailto:${s}`,whatsapp:s=>`https://api.whatsapp.com/send?phone=${s}`,telegram:s=>`https://t.me/${s}`};return typeof t[e.type]=="function"?t[e.type](e.value):e.value},getClassContactLink(e){return{[`ads-page-contacts-list__contact-link--${e.type}`]:e.type}},onContactClick(e){},getTextContact(e){return e.type==="email"?e.value:""}}},"$U9u4B_pmAq"),P={class:"ads-page-contacts-list"},B={class:"ads-page-contacts-list__content"},N={class:"ads-page-contacts-list__avatar"},F={class:"ads-page-contacts-list__person-info"},G=["innerHTML"],H={key:1,class:"ads-page-contacts-list__contacts"},E=["href","onClick"];function M(e,t,s,o,g,m){const l=z("PictureContact");return a(),n("div",P,[t[0]||(t[0]=c("h2",{class:"ads-page-contacts-list__title"},"ÐонÑакÑÑ",-1)),c("div",B,[(a(!0),n(p,null,f(e.items,(r,i)=>(a(),n("div",{key:i,class:"ads-page-contacts-list__person"},[c("div",N,[r.image?(a(),C(l,{key:0,sizes:r.image.sizes},null,8,["sizes"])):d("",!0)]),c("div",F,[e.getPersonInfo(r)?(a(),n("div",{key:0,class:"ads-page-contacts-list__person-description",innerHTML:e.getPersonInfo(r)},null,8,G)):d("",!0),e.getPersonContacts(r)?(a(),n("div",H,[(a(!0),n(p,null,f(e.getPersonContacts(r),(b,$)=>(a(),n(p,null,[r?(a(),n("div",{key:$,class:_(["ads-page-contacts-list__contacts-group",e.getClassContactGroup(r,i)])},[(a(!0),n(p,null,f(b,(u,v)=>(a(),n("a",{key:v,class:_(["ads-page-contacts-list__contact-link",e.getClassContactLink(u)]),href:e.getHrefContact(u),target:"_blank",onClick:U=>e.onContactClick(u)},I(e.getTextContact(u)),11,E))),128))],2)):d("",!0)],64))),256))])):d("",!0)])]))),128))])])}const O=y(D,[["render",M],["__scopeId","data-v-24561237"]]);export{O as default}; 2//# sourceMappingURL=v2.5-DT8q8xoq.js.map
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.