1import{z as S,C as n,a2 as i,aa as E,ab as F,a9 as V,a6 as g,ar as b,a7 as C,a4 as d,D as B,y as m,a3 as D,at as W,x as X,ao as Y,a0 as Z,f as x,w as uu,ap as eu,o as tu,A as su,a8 as N,av as au,ai as nu,aC as ru,ad as iu}from"./vendor-841ae9e1.js";import{e as A,g as L}from"./CompanyMaterials.vue_vue_type_style_index_0_scoped_true_lang-47f7f5d0.js";import{_ as k}from"./plugin-vue_export-helper-c27b6911.js";import{_ as M}from"./SvgIcon-3a8dabd4.js";import{u as ou,l as T,g as lu}from"./index-ba7a78b3.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./SalmonButton-aad65f21.js";import{D as cu}from"./Dropdown-a9a8aea3.js";import{D as pu}from"./DirectoryHeader-a96fc500.js";import{_ as du}from"./Page-283e40cb.js";import{g as mu}from"./meta-7b87f0e9.js";import{c as _u}from"./socials-f5e3ab95.js";import{c as hu}from"./sentry-27444d60.js";import"./axios-f31720dc.js";import"./polyfills-c1ef29e8.js";import"./lodash-59cf2d56.js";import"./crypto-bn-fe71aef5.js";import"./elliptic-0bc42179.js";import"./consola-a319bdc8.js";import"./imask/esm-65004cd6.js";import"./PopupWrapperLago-24c75c8c.js";import"./FeedbackForm-51c01303.js";import"./BaseCheckbox-9bff6676.js";import"./FormInput-a374c02a.js";const vu={key:0,class:"companies-list"},fu=["id"],Cu={key:1,class:"companies-list__items"},yu=["href"],Du=S({__name:"CompaniesList",props:{sections:{},currentFilter:{}},setup(t){const a=t,l=_=>{if(a.currentFilter!=="industries")return;const h=_.split(" - ");if(h.length>1)return`industry-${h[0].replaceAll(".","-")}`};return(_,h)=>{var s;return(s=t.sections)!=null&&s.length?(n(),i("div",vu,[(n(!0),i(E,null,F(t.sections,e=>{var p,c;return n(),i("section",{key:e.title?e.title:"defaultKey",class:"companies-list__section",id:l(e.title)},[(p=e.title)!=null&&p.length?(n(),i("h2",{key:0,class:V(["companies-list__title",{"companies-list__title--small":e.title.length>1}])},g(b(A)(e.title," - ")),3)):C("",!0),(c=e.items)!=null&&c.length?(n(),i("ul",Cu,[(n(!0),i(E,null,F(e.items,v=>(n(),i("li",{key:v.inn,class:"companies-list__item"},[d("a",{href:v.url},[d("strong",null,[v.document.commercial?(n(),B(M,{key:0,name:"star-fill",width:"10",height:"10",color:"#4F99AF"})):C("",!0),d("span",null,g(b(L)(v)),1)]),d("span",null,g(b(A)(v.industry_activity[0]," - ")),1)],8,yu)]))),128))])):C("",!0)],8,fu)}),128))])):C("",!0)}}}),gu=k(Du,[["__scopeId","data-v-7de74534"]]);const Eu={class:"companies-industries"},Fu=S({__name:"CompaniesIndustries",props:{keywords:{},value:{}},emits:["valueChanged"],setup(t,{emit:a}){const l=t,_=a,h=m(()=>l.keywords.map(e=>({title:A(e," - "),value:e}))),s=e=>{_("valueChanged",e.value)};return(e,p)=>(n(),i("div",Eu,[D(cu,{placeholder:"ÐÑбеÑиÑе оÑÑаÑлÑ",options:h.value,value:t.value,onValueChanged:s},null,8,["options","value"])]))}}),j=k(Fu,[["__scopeId","data-v-196cb095"]]);const Au={name:"CompaniesAlphabet",props:{keywords:{default:()=>[],type:Array},value:{default:"",type:String}},computed:{activeChar(){return(this.value||"").toUpperCase()},lists(){const t=a=>a.split("").map(l=>({char:l,isEnabled:this.keywords.includes(l)}));return[{items:t("ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐРСТУФХЦЧШЩЪЫЬÐЮЯ")},{items:t("ABCDEFGHIJKLMNOPQRSTUVWXYZ")}]}},methods:{onClick({char:t,isEnabled:a}){a&&this.$emit("valueChanged",t)}}},ku={class:"companies-alphabet"},wu=["onClick"];function bu(t,a,l,_,h,s){return n(),i("div",ku,[(n(!0),i(E,null,F(s.lists,(e,p)=>(n(),i("div",{key:p,class:"companies-alphabet__list"},[d("ul",null,[(n(!0),i(E,null,F(e.items,(c,v)=>(n(),i("li",{key:v,class:V(["companies-alphabet__list-item",{"companies-alphabet__list-item--active":c.char===s.activeChar,"companies-alphabet__list-item--enabled":c.isEnabled}]),onClick:I=>s.onClick(c)},g(c.char),11,wu))),128))])]))),128))])}const R=k(Au,[["render",bu]]);const Bu={name:"CompaniesFilters",components:{CompaniesAlphabet:R,CompaniesIndustries:j},props:{filter:{default:"alphabet",type:String},keywords:{default:()=>{},type:Object},value:{default:null,type:String}},emits:["filterUpdated","valueUpdated"],computed:{component(){return this.filters[this.currentFilter].component},currentFilter(){const t=Object.keys(this.filters),[a]=t;return t.includes(this.filter)?this.filter:a},filters(){return{alphabet:{component:R,keywords:[],title:"Ðо алÑавиÑÑ"},industries:{component:j,keywords:[],title:"Ðо оÑÑаÑлÑм"}}}},methods:{onClick(t){t!==this.currentFilter&&(this.$emit("filterUpdated",t),this.onValueChanged(),this.updateURLHash(t))},onValueChanged(t){this.$emit("valueUpdated",t)},updateURLHash(t){const a=new URL(window.location.href);a.hash=t==="industries"?"industry":"",window.history.replaceState(null,"",a.toString())}}},$u={class:"companies-filters"},xu={class:"companies-filters__tabs"},Lu=["id","onClick"];function Su(t,a,l,_,h,s){return n(),i("div",$u,[d("ul",xu,[(n(!0),i(E,null,F(Object.entries(s.filters),([e,{title:p}])=>(n(),i("li",{id:e==="industries"?"industry":e,key:e,class:V(["companies-filters__tab",{"companies-filters__tab--active":e===s.currentFilter}]),onClick:c=>s.onClick(e)},g(p),11,Lu))),128))]),s.component?(n(),B(W(s.component),{key:0,keywords:l.ke
1ywords[s.currentFilter],value:l.value,onValueChanged:s.onValueChanged},null,40,["keywords","value","onValueChanged"])):C("",!0)])}const Vu=k(Bu,[["render",Su]]);const Iu={class:"companies-page__content"},Uu={class:"companies-page__search"},Pu={class:"companies-page__filter"},Nu={class:"companies-page__list"},Tu=S({__name:"PageCompanies",setup(t){const a=X(),l=Y(),_=Z(),h=ou(),s=x("alphabet"),e=x(""),p=x(""),c=m(()=>_.getters["companies/sections"]),v=m(()=>_.getters["companies/keywords"]),I=m(()=>{var u;return((u=Object.keys(c.value))==null?void 0:u.length)>0}),U=m(()=>!e.value.length),O=u=>{if(!p.value)return!0;const r=p.value.toLowerCase();if(s.value==="alphabet")return L(u).charAt(0).toLowerCase()===r;{if(u.industry_activity.length===0)return!1;const o=u.industry_activity[0];return A(o.toLowerCase()," - ")===A(r," - ")}},H=u=>{var f;if(!e.value)return!0;const r=e.value.toLowerCase(),o=L(u).toLowerCase(),y=((f=u.document.synonyms)==null?void 0:f.join(", ").toLowerCase())??"";return[o,y].some(w=>w.includes(r))},K=m(()=>{const u=c.value[s.value];return(u==null?void 0:u.reduce((r,o)=>{var w;const y=U.value?O:H,f=(w=o==null?void 0:o.items)==null?void 0:w.filter(y);return f!=null&&f.length&&r.push({...o,items:f}),r},[]))??[]}),q=u=>{s.value=u},z=u=>{p.value=u},P=async()=>{try{await _.dispatch("companies/fetchCompaniesSections")}catch(u){hu({message:"PageCompanies: fetchError",level:"error",extra:{e:u}}),l.push({name:"error",params:{pathMatch:a.path.substring(1).split("/")},query:a.query}),T("PageCompanies","/catalogue/companies",String(u),{requestMethod:"GET",pageUrl:a.fullPath})}},G=async()=>{const u=a.hash.replace("#","");(u==="industry"||u.includes("industry"))&&(s.value="industries",await J(u))},J=async u=>{await au();const r=document.getElementById(u);r&&r.scrollIntoView()};uu(()=>a.hash,u=>{u==="#industry"||u.includes("industry")?s.value="industries":u||(s.value="alphabet")}),eu(async()=>{try{I.value||await P()}catch(u){T("PageCompanies","onServerPrefetch",u.message||u)}}),tu(async()=>{var r,o;((r=c.value.alphabet)==null?void 0:r.length)||((o=c.value.industries)==null?void 0:o.length)||await P(),G()});const Q=m(()=>({title:"СпÑавоÑник компаний",sharingTitle:"СпÑавоÑник компаний",subtitle:"ÐаÑеÑÑвеннÑй конÑÐµÐ½Ñ Ð¾ бизнеÑе и Ñкономике. ÐналиÑика, ÑинанÑовÑе новоÑÑи, ÑлекÑÑÐ¾Ð½Ð½Ð°Ñ Ð²ÐµÑÑÐ¸Ñ Ð³Ð°Ð·ÐµÑÑ ÐедомоÑÑи.",keywords:"ÐизнеÑ, Ðкономика, ФинанÑÑ, ÐнениÑ, ÐолиÑика, ТеÑ
нологии, ÐедвижимоÑÑÑ, ÐвÑо, ÐенеджменÑ, СÑÐ¸Ð»Ñ Ð¶Ð¸Ð·Ð½Ð¸, ÐейÑÑвÑÑÑие лиÑа, РаÑÑледованиÑ, ÐÑомÑÑленноÑÑÑ, ТÐÐ, ТоÑÐ³Ð¾Ð²Ð»Ñ Ð¸ ÑÑлÑги, ÐгÑопÑом, ТÑанÑпоÑÑ, СпоÑÑ, ÐакÑоÑкономика, ÐÑджеÑ, ÐоÑинвеÑÑиÑии, ÐиÑÐ¾Ð²Ð°Ñ Ñкономика, Ðалоги, Ðанки, СÑÑаÑ
ование, ÐналиÑика, ÐлаÑÑÑ, ÐемокÑаÑиÑ, ÐеждÑнаÑоднÑе оÑноÑениÑ, ÐезопаÑноÑÑÑ, СоÑиалÑÐ½Ð°Ñ Ð¿Ð¾Ð»Ð¸Ñика, ÐеждÑнаÑÐ¾Ð´Ð½Ð°Ñ Ð¶Ð¸Ð·Ð½Ñ, ТелекоммÑникаÑии, ÐнÑеÑÐ½ÐµÑ Ð¸ digital, Ðедиа, ÐТ-бизнеÑ, СÑÑойки и инÑÑаÑÑÑÑкÑÑÑа, ÐÑÑ
иÑекÑÑÑа и дизайн, ТеÑÑ-дÑайвÑ, ÐÑедпÑинимаÑелÑÑÑво, ÐÑлÑÑÑÑа, ÐнÑеÑвÑÑ",image:mu(h.value),type:"website",url:`${lu()}${a.path}`})),$=m(()=>_u.call(this,Q.value,{useCDN:!1}));return su({title:m(()=>$.value.title),meta:m(()=>$.value.meta),link:m(()=>$.value.link)}),(u,r)=>(n(),B(du,{class:"companies-page"},{default:N(()=>[d("div",Iu,[D(b(pu)),d("div",Uu,[nu(d("input",{"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),type:"text",placeholder:"ÐоиÑк по ÑайÑÑ..."},null,512),[[ru,e.value,void 0,{trim:!0}]]),D(M,{name:"search",width:"20",height:"20"})]),D(iu,{name:"fade"},{default:N(()=>[d("div",Pu,[U.value?(n(),B(Vu,{key:0,filter:s.value,keywords:v.value,value:p.value,onFilterUpdated:q,onValueUpdated:z},null,8,["filter","keywords","value"])):C("",!0)])]),_:1}),d("div",Nu,[D(gu,{sections:K.value,currentFilter:s.value},null,8,["sections","currentFilter"])])]),r[1]||(r[1]=d("div",{class:"companies-page__sidebar"},null,-1))]),_:1}))}}),d4=k(Tu,[["__scopeId","data-v-50fffc63"]]);export{d4 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.