1import{aN as e,aO as l,br as n,eo as t,ep as i,eq as o,er as a,es as r,et as d,j as s,a as u,a8 as c,r as v,a0 as m,bD as f,a1 as h,g as p,o as g,T as C,d3 as y,am as _,B as b,e as k,f as x,af as D,ai as N,q as M,F as w,s as F,aj as E,d as L,X as I,a9 as R,a7 as $,c as A,aw as S,aa as B,eu as O,ay as T,_ as P,a4 as V,ar as j,ba as H,A as U,m as q,ac as Z,I as W,i as Y,aE as G,ap as z,u as X,V as J,c9 as K,bd as Q,H as ee,b1 as le,b5 as ne,D as te,aG as ie,aH as oe,aI as ae,E as re,aJ as de,w as se,av as ue,a5 as ce,K as ve,M as me,Q as fe}from"./index.fce3d490.js";import{C as he}from"./cursor-pagination.5adf798e.js";import{c as pe}from"./index.498f108e.js";import{B as ge}from"./index.5ce4198c.js";import{T as Ce}from"./index.3c75d1cb.js";import{M as ye,a as _e}from"./modal-company-detail.a5ac2ca1.js";function be(n,t){return e(2,arguments),l(n).getTime()-l(t).getTime()}var ke={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function xe(e){return e?ke[e]:ke.trunc}function De(i){e(1,arguments);var o=l(i);return n(o).getTime()===t(o).getTime()}function Ne(n,t){e(2,arguments);var o,a=l(n),r=l(t),d=pe(a,r),s=Math.abs(i(a,r));if(s<1)o=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-d*s);var u=pe(a,r)===-d;De(l(n))&&1===s&&1===pe(n,r)&&(u=!1),o=d*(s-Number(u))}return 0===o?0:o}function Me(l,n,t){e(2,arguments);var i=be(l,n)/1e3;return xe(null==t?void 0:t.roundingMethod)(i)}function we(e){return o({},e)}const Fe=e=>{var l,n;const{availableData:t}=e,i=(null==(l=null==t?void 0:t[0])?void 0:l.common)||0,o=(null==(n=null==t?void 0:t[0])?void 0:n.full)||0;return s("div",{className:"checking-foreign__available-info",children:["Ð¡ÐµÐ³Ð¾Ð´Ð½Ñ Ð²Ð°Ð¼ доÑÑÑпно: ",u("span",{children:i}),` ${c(i,["обÑÐ°Ñ ÑпÑавка","обÑиÑ
ÑпÑавки","обÑиÑ
ÑпÑавок"])} и `,u("span",{children:o}),` ${c(o,["Ð¿Ð¾Ð»Ð½Ð°Ñ ÑпÑавка","полнÑÑ
ÑпÑавки","полнÑÑ
ÑпÑавок"])}`]})};function Ee(e){return v.exports.createElement("svg",Object.assign({},e,{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{d:"M9.99476 19.0051C14.9689 19.0051 19.0012 14.9728 19.0012 9.99866C19.0012 5.02453 14.9689 0.992188 9.99476 0.992188C5.02062 0.992188 0.988281 5.02453 0.988281 9.99866C0.988281 14.9728 5.02062 19.0051 9.99476 19.0051Z",fill:"#9DEDF0"}),v.exports.createElement("path",{d:"M14.7197 6.03946C14.7197 6.03946 12.7778 6.44088 12.0825 6.06848C12.0825 6.06848 11.6187 5.46632 10.314 5.98251C10.314 5.98251 8.02427 7.3586 7.99446 8.73464C7.99446 8.73464 7.35693 11.459 9.76299 11.8315C9.76299 11.8315 12.2846 11.0002 12.6037 11.9748C12.6037 11.9748 12.6913 13.1793 12.9228 13.4372C12.9228 13.4372 13.2996 13.9912 13.2707 14.3257C13.2707 14.3257 13.0094 15.444 13.3578 16.3043C13.3578 16.3043 13.5893 17.0496 13.5605 17.2791C13.5605 17.2791 15.7639 16.6482 16.4594 14.5842C16.4594 14.5842 16.8651 13.1501 16.8941 12.7775C16.8941 12.7775 17.4739 11.1145 17.6192 10.5983C17.6192 10.5983 18.1408 9.05015 17.2709 9.25126C17.2709 9.25126 16.6622 8.67726 16.2271 8.24746C15.7923 7.81714 14.952 6.18276 14.7197 6.03946Z",fill:"#12C473"}),v.exports.createElement("path",{d:"M16.6661 8.18919L14.2311 5.95244C14.2311 5.95244 14.7527 5.49363 14.5789 5.23594C14.4052 4.97766 14.0284 5.32191 13.7093 5.32191C13.3906 5.32191 12.9556 5.57982 12.7818 5.3505C12.6077 5.12096 12.4918 5.17877 12.318 5.32191C12.1439 5.46526 11.8252 5.69459 11.7964 5.55102C11.7672 5.40788 11.2454 5.46526 11.2166 5.32191C11.1878 5.17856 11.303 4.77692 11.0421 4.86311C10.782 4.94886 10.4047 5.23594 10.3465 5.37929C10.2888 5.52265 10.0864 5.95249 9.88314 5.95249C9.67999 5.95249 9.15841 6.06726 9.07164 5.89532C8.98449 5.72301 8.81074 5.1496 8.98449 4.97766C9.15825 4.80551 10.0091 4.98728 9.96969 4.77692C9.93069 4.56678 9.83035 4.10536 9.95831 4.03959C10.0864 3.974
119 10.4335 3.22868 10.6658 3.14255C10.8973 3.05658 11.5065 3.37187 11.5937 3.17135C11.5937 3.17135 11.6227 2.5694 11.5066 2.48322C11.3902 2.39725 11.3026 2.13934 11.1013 2.16777C10.8973 2.19657 10.8104 2.3973 10.9555 2.48322C11.1013 2.56956 11.2164 2.91307 11.1297 2.91307C11.0419 2.91307 10.2596 2.97045 10.2308 2.77014C10.2016 2.5694 10.3179 2.0818 10.5779 1.90965C10.84 1.73792 11.3902 1.76608 11.5643 1.85205C11.7384 1.93839 11.9412 1.76608 11.9993 1.62316C12.0571 1.4798 11.1755 1 10.9142 1C10.9142 1 17.7837 1.51239 18.9631 8.53589C18.9631 8.53589 18.2313 6.12443 17.7385 5.98129C17.7385 5.98129 17.4776 6.15344 17.3035 6.12465C17.1298 6.09563 16.2601 5.55086 16.2023 5.69459C16.1441 5.83815 16.608 6.32511 17.1012 6.38234C17.5932 6.43972 17.6228 6.49711 17.6513 6.75517C17.6804 7.01287 17.7673 7.41472 17.7099 7.67262C17.6518 7.93069 17.3037 8.70543 16.6661 8.18919Z",fill:"#12C473"}),v.exports.createElement("path",{d:"M9.47555 3.08594C9.47555 3.08594 9.24403 3.22966 9.12766 3.42981C9.01172 3.63092 9.01172 3.80286 9.01172 3.80286C9.01172 3.80286 9.15844 3.8884 9.3074 3.88921C9.45615 3.88958 9.85298 3.74564 9.85298 3.54496C9.85282 3.34406 9.47555 3.08594 9.47555 3.08594Z",fill:"#12C473"}),v.exports.createElement("path",{d:"M9.13027 1.36467C9.13027 1.36467 8.43472 2.19593 8.08727 2.28212C7.73901 2.36846 7.1594 2.65458 7.01466 2.76972C6.8697 2.88427 6.3767 2.68375 6.66677 2.45443C6.95684 2.22473 7.73896 1.70849 7.5652 1.65132C7.39145 1.59415 6.60859 2.13871 6.28988 2.36825C5.97079 2.59735 5.70968 2.94102 5.56558 3.17093C5.41982 3.40025 5.44921 4.00262 5.13055 4.11718C4.81109 4.23194 3.41982 4.80493 2.95637 5.20678C2.49254 5.60804 1.99313 5.90431 1.78961 6.30573C1.5869 6.70699 1.89236 5.66499 2.07151 5.28035C2.07151 5.28035 3.30383 3.0848 6.11596 1.70833C6.11601 1.70854 8.26059 1.16414 9.13027 1.36467Z",fill:"#12C473"}),v.exports.createElement("path",{d:"M1.01167 11.4622C1.01167 11.4622 0.721166 9.91356 1.04025 9.7702C1.35934 9.62685 1.4553 9.59645 1.73639 9.88497C2.01626 10.1731 2.40256 10.6591 2.54709 10.917C2.69301 11.1751 3.2148 11.4902 3.2148 11.6911C3.2148 11.892 3.09843 12.3792 3.2148 12.6085C3.33037 12.8381 3.50408 12.867 3.76578 12.9814C4.02668 13.0957 4.51909 13.2681 4.80879 13.5266C5.09848 13.7847 5.50493 14.0998 5.41757 14.4438C5.33042 14.7883 5.15667 15.3041 5.21486 15.5048C5.27224 15.7055 5.47575 16.0494 5.24403 16.1927C5.01171 16.3363 4.83796 16.3076 4.86676 16.5652C4.89636 16.8233 5.18664 17.6254 5.27357 17.7687C5.27357 17.7687 1.65903 16.2305 1.01167 11.4622Z",fill:"#12C473"}),v.exports.createElement("path",{d:"M1.40827 8.26623C1.46603 8.06592 1.61099 7.0625 1.43648 7.0625C1.0964 8.31704 1.1088 8.30101 0.972656 9.24143",fill:"#12C473"}))}const Le=e=>{var l,n;const{countryCode:t}=e;return!t||(null==t?void 0:t.includes("*"))?null:u("img",{src:`https://flagcdn.com/48x36/${null==(n=null==(l=null==t?void 0:t.toLowerCase())?void 0:l.split("-"))?void 0:n[0]}.png`,alt:" "})},Ie=e=>k({search:e?x():x().required()}),Re=e=>{const{changeFilter:l,withoutSearchRequiered:n=!1}=e,[t,i]=v.exports.useState(""),o=m(),[a,r]=f(),d=a.get("search"),c=d?JSON.parse(d):{},k=h(o,"tnved/foreign-counterparty/countries"),x=v.exports.useMemo((()=>{var e;return[{id:"all",name:"ÐÑе ÑÑиÑдикÑии"},...void 0!==k&&Object.entries(k)?null==(e=Object.entries(k))?void 0:e.map((([e,l])=>{var n;return{id:null==(n=null==l?void 0:l.code)?void 0:n.toLowerCase(),name:(null==l?void 0:l.name_ru)||(null==l?void 0:l.name)}})):[]]}),[k]),D=v.exports.useMemo((()=>x.filter((e=>e.name.toLowerCase().includes(t.toLowerCase())))),[t,x]),[N,M]=v.exports.useState((null==c?void 0:c.countryCode)||null),{control:w,formState:{errors:F},handleSubmit:E}=p({resolver:g(Ie(n)),defaultValues:{search:null==c?void 0:c.search,countryCode:null==c?void 0:c.countryCode}});return s("form",{className:"checking-foreign-filter",onSubmit:E((e=>{l(e)}),(e=>{})),children:[u(C,{name:"search",control:w,errors:F,placeholder:"ÐведиÑе ÑегиÑÑÑаÑионнÑй Ð½Ð¾Ð¼ÐµÑ Ð¸Ð»Ð¸ название",isSearch:!0}),s(y,{text:"",hint:"",errors:F,additionalClasses:["country-select-with-flag"],children:[u("div",{className:"phone-code-flag-wrapper",children:N?"all"===N?u(Ee,{}):u(Le,{countryCode:N}):null}),u(_,{name:"countryCode",control:w,errors:F,label:"",options:D,onInputChange:i,classNamePrefix:"country-with-flag",customChange:e=>{M(e.id)},isClearable:!0,formatOptionLabel:e=>function(e){return s("div",{style:{display:"flex",alignItems:"center"},children:[u("div",{className:"phone-with-code__flag-wrapper",children:"all"===e.id?u(Ee,{}):u(Le,{countryCode:e.id})}),u("span",{children:`${e.label}`})]})}(e)})]}
1),u(b,{isSubmit:!0,title:"ÐайÑи",additionalClassname:"checking-foreign-filter__btn"})]})};const $e=e=>{const{count:l}=e;return u("div",{className:"checking-foreign__result-count",children:`Ðайдено вÑего: ${l} ${c(l,["ÑезÑлÑÑаÑ","ÑезÑлÑÑаÑа","ÑезÑлÑÑаÑов"])}`})};const Ae=e=>u(D,{content:"ÐÑовеÑÑйÑе иноÑÑÑаннÑе компании под ÐаÑи нÑÐ¶Ð´Ñ Ð¼Ð³Ð½Ð¾Ð²ÐµÐ½Ð½Ð¾! ÐлгоÑиÑÐ¼Ñ Ð¿Ð¾Ð¸Ñка и меÑÐ¾Ð´Ñ Ð²Ð¸Ð·ÑализаÑии даннÑÑ
, позволÑÑÑ Ð»ÑбомÑ, даже неÑеÑ
ниÑеÑÐºÐ¾Ð¼Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ, полÑÑиÑÑ Ð½ÑжнÑÑ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð² кÑаÑÑайÑее вÑемÑ."}),Se=e=>{const{page:l,perPage:n,handleChangeCurrentPage:t,data:i}=e,o=n||10,a=(l||1)*o,r=a-o>0?String(a-o):null,d=v.exports.useMemo((()=>void 0!==(null==i?void 0:i.length)&&(null==i?void 0:i.length)<o?null:String(a+o)),[i,o,a]);return r||d?u(he,{prevCursor:r,nextCursor:d,changeCurrentCursor:e=>{const l=Number(e)/o||1;t(l,o)}}):null},Be=[{source:"name",label:""},{source:"country_code",label:"",renderComponent:function(e){const l=String(e.cellData).split("-")[0],n=m(),t=h(n,"tnved/foreign-counterparty/countries"),i=v.exports.useMemo((()=>{var e,n;const i=null==(n=null==(e=Object.values(t))?void 0:e.filter((e=>(null==e?void 0:e.code)===(null==l?void 0:l.toLowerCase()))))?void 0:n[0];return(null==i?void 0:i.name_ru)||(null==i?void 0:i.name)}),[t,l]);return u(S,{cellData:s("div",{className:"checking-foreign__country-cell",children:[u("div",{className:"checking-foreign__country-cell-flag",children:u(Le,{countryCode:l})}),u("span",{children:i})]}),item:e.item},e.cellData)}},{source:"international_number",label:""}],Oe=`${A}/staticfiles/lk/docs/%D0%9E%D0%B1%D1%80%D0%B0%D0%B7%D0%B5%D1%86%20%D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B8%20%D0%B7%D0%B0%D1%80%D1%83%D0%B1%D0%B5%D0%B6%D0%BD%D0%BE%D0%B3%D0%BE%20%D0%BA%D0%BE%D0%BD%D1%82%D1%80%D0%B0%D0%B3%D0%B5%D0%BD%D1%82%D0%B0.pdf`,Te=e=>{const{availableData:l,changeFilter:n,loading:t,data:i,errorsRequest:o,handleChangeCurrentPage:a,page:r}=e,d=N(),{videoInstruction:c}=M(),v=e=>{d(e)};return s(w,{children:[u(F,{title:"ÐвÑопÑовеÑка заÑÑбежнÑÑ
конÑÑагенÑов",children:u(E,{linkVideoInstruction:null==c?void 0:c.checkingForeignCounterparty,listItems:[{type:"openIndex",onClick:()=>{v("openindex")},dataCy:"open_index"},{type:"exampleReport",onClick:()=>{L(Oe)},dataCy:"example_report"},{type:"myCompanies",onClick:()=>{v("my-companies")},dataCy:"my_companies_page"}]})}),u(Ae,{}),u(Re,{changeFilter:n}),s("div",{className:"checking-foreign__info",children:[u(Fe,{availableData:l}),i&&(null==i?void 0:i.length)>0?u($e,{count:null==i?void 0:i.length}):null]}),t?u(I,{}):null,t||i?i&&(null==i?void 0:i.length)>0?u(R,{fullWidth:!0,tableData:i,onClick:e=>{d(`/checking-foreign-counterparty/detail/${e.country_code}/${encodeURIComponent(e.international_number)}`)},config:Be}):u($,r>1?{message:"ÐонÑÑагенÑÑ Ð½Ðµ найденÑ. ÐеÑейдиÑе на пÑедÑдÑÑÑÑ ÑÑÑаниÑÑ Ð¸Ð»Ð¸ ÑÑоÑниÑе паÑамеÑÑÑ Ð¿Ð¾Ð¸Ñка."}:{message:"Ðо даннÑм запÑоÑа ниÑего не найдено. УÑоÑниÑе паÑамеÑÑÑ Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка"}):null,!t&&!o&&void 0!==i&&u(Se,{handleChangeCurrentPage:a,page:r,data:i})]})};const Pe=new RegExp("(%[a-f0-9]{2})|([^%]+?)","gi"),Ve=new RegExp("(%[a-f0-9]{2})+","gi");function je(e,l){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;l=l||1;const n=e.slice(0,l),t=e.slice(l);return Array.prototype.concat.call([],je(n),je(t))}function He(e){try{return decodeURIComponent(e)}catch{let l=e.match(Pe)||[];for(let n=1;n<l.length;n++)l=(e=je(l,n).join("")).match(Pe)||[];return e}}function Ue(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const l={"%FE%FF":"��","%FF%FE":"��"};let n=Ve.exec(e);for(;n;){try{l[n[0]]=decodeURIComponent(n[0])}catch{const e=He(n[0]);e!==n[0]&&(l[n[0]]=e)}n=Ve.exec(e)}l["%C2"]="�";const t=Object.keys(l);for(const i of t)e=e.replace(new RegExp(i,"g"),l[i]);return e}(e)}}function qe(e,l){const n={};if(Array.isArray(l))for(const t of l){const l=Object.getOwnPropertyDescriptor(e,t);(null==l?void 0:l.enumerable)&&Object.defineProperty(n,t,l)}else for(const t of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,t);if(i.enumerable){l(t,e[t],e)&&Object.defineProperty(n,t,i)}}return n}function Ze(e,l){if("string"!=typeof e||"string"!=typeof l)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===l)return[];const n=e.indexOf(l);return-1===n?[]:[e.slice(0,n),e.slice(n+l.length)]}const We=Symbol("encodeFragmentIdentifier");function Ye(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Ge(e,l){return l.encode?l.strict?encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)):encodeURIComponent(e):e}function ze(e,l){return l.decode?Ue(e):e}function Xe(e){return Array.isArray(e)?e.sort():"object"==typeof e?Xe(Object.keys(e)).sort(((e,l)=>Number(e)-Number(l))).map((l=>e[l])):e}function Je(e){const l=e.indexOf("#");return-1!==l&&(e=e.slice(0,l)),e}function Ke(e,l,n){return"string"===n&&"string"==typeof e?e:"function"==typeof n&&"string"==typeof e?n(e):!l.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==n||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?l.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function Qe(e){const l=(e=Je(e)).indexOf("?");return-1===l?"":e.slice(l+1)}
1function el(e,l){Ye((l={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...l}).arrayFormatSeparator);const n=function(e){let l;switch(e.arrayFormat){case"index":return(e,n,t)=>{l=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),l?(void 0===t[e]&&(t[e]={}),t[e][l[1]]=n):t[e]=n};case"bracket":return(e,n,t)=>{l=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),l?void 0!==t[e]?t[e]=[...t[e],n]:t[e]=[n]:t[e]=n};case"colon-list-separator":return(e,n,t)=>{l=/(:list)$/.exec(e),e=e.replace(/:list$/,""),l?void 0!==t[e]?t[e]=[...t[e],n]:t[e]=[n]:t[e]=n};case"comma":case"separator":return(l,n,t)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&ze(n,e).includes(e.arrayFormatSeparator);n=o?ze(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((l=>ze(l,e))):null===n?n:ze(n,e);t[l]=a};case"bracket-separator":return(l,n,t)=>{const i=/(\[])$/.test(l);if(l=l.replace(/\[]$/,""),!i)return void(t[l]=n?ze(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((l=>ze(l,e)));void 0!==t[l]?t[l]=[...t[l],...o]:t[l]=o};default:return(e,l,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),l]:n[e]=l}}}(l),t=Object.create(null);if("string"!=typeof e)return t;if(!(e=e.trim().replace(/^[?#&]/,"")))return t;for(const i of e.split("&")){if(""===i)continue;const e=l.decode?i.replaceAll("+"," "):i;let[o,a]=Ze(e,"=");void 0===o&&(o=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(l.arrayFormat)?a:ze(a,l),n(ze(o,l),a,t)}for(const[i,o]of Object.entries(t))if("object"==typeof o&&null!==o&&"string"!==l.types[i])for(const[e,n]of Object.entries(o)){const t=l.types[i]?l.types[i].replace("[]",""):void 0;o[e]=Ke(n,l,t)}else"object"==typeof o&&null!==o&&"string"===l.types[i]?t[i]=Object.values(o).join(l.arrayFormatSeparator):t[i]=Ke(o,l,l.types[i]);return!1===l.sort?t:(!0===l.sort?Object.keys(t).sort():Object.keys(t).sort(l.sort)).reduce(((e,l)=>{const n=t[l];return e[l]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?Xe(n):n,e}),Object.create(null))}function ll(e,l){if(!e)return"";Ye((l={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...l}).arrayFormatSeparator);const n=n=>l.skipNull&&null==e[n]||l.skipEmptyString&&""===e[n],t=function(e){switch(e.arrayFormat){case"index":return l=>(n,t)=>{const i=n.length;return void 0===t||e.skipNull&&null===t||e.skipEmptyString&&""===t?n:null===t?[...n,[Ge(l,e),"[",i,"]"].join("")]:[...n,[Ge(l,e),"[",Ge(i,e),"]=",Ge(t,e)].join("")]};case"bracket":return l=>(n,t)=>void 0===t||e.skipNull&&null===t||e.skipEmptyString&&""===t?n:null===t?[...n,[Ge(l,e),"[]"].join("")]:[...n,[Ge(l,e),"[]=",Ge(t,e)].join("")];case"colon-list-separator":return l=>(n,t)=>void 0===t||e.skipNull&&null===t||e.skipEmptyString&&""===t?n:null===t?[...n,[Ge(l,e),":list="].join("")]:[...n,[Ge(l,e),":list=",Ge(t,e)].join("")];case"comma":case"separator":case"bracket-separator":{const l="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(t,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?t:(i=null===i?"":i,0===t.length?[[Ge(n,e),l,Ge(i,e)].join("")]:[[t,Ge(i,e)].join(e.arrayFormatSeparator)])}default:return l=>(n,t)=>void 0===t||e.skipNull&&null===t||e.skipEmptyString&&""===t?n:null===t?[...n,Ge(l,e)]:[...n,[Ge(l,e),"=",Ge(t,e)].join("")]}}(l),i={};for(const[a,r]of Object.entries(e))n(a)||(i[a]=r);const o=Object.keys(i);return!1!==l.sort&&o.sort(l.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?Ge(n,l):Array.isArray(i)?0===i.length&&"bracket-separator"===l.arrayFormat?Ge(n,l)+"[]":i.reduce(t(n),[]).join("&"):Ge(n,l)+"="+Ge(i,l)})).filter((e=>e.length>0)).join("&")}function nl(e,l){var n,t;l={decode:!0,...l};let[i,o]=Ze(e,"#");return void 0===i&&(i=e),{url:null!=(t=null==(n=null==i?void 0:i.split("?"))?void 0:n[0])?t:"",query:el(Qe(e),l),...l&&l.parseFragmentIdentifier&&o?{fragmentIdentifier:ze(o,l)}:{}}}function tl(e,l){l={encode:!0,strict:!0,[We]:!0,...l};const n=Je(e.url).split("?")[0]||"";let t=ll({...el(Qe(e.url),{sort:!1}),...e.query},l);t&&(t=`?${t}`);let i=function(e){let l="";const n=e.indexOf("#");return-1!==n&&(l=e.slice(n)),l}(e.url);if("string"==typeof e.fragmentIdentifier){const t=new URL(n);t.hash=e.fragmentIdentifier,i=l[We]?t.hash:`#${e.fragmentIdentifier}`}return`${n}${t}${i}`}function il(e,l,n){n={parseFragmentIdentifier:!0,[We]:!1,...n};const{url:t,query:i,fragmentIdentifier:o}=nl(e,n);return tl({url:t,query:qe(i,l),fragmentIdentifier:o},n)}var ol=Object.freeze(Object.defineProperty({__proto__:null,extract:Qe,parse:el,stringify:ll,parseUrl:nl,stringifyUrl:tl,pick:il,exclude:function(e,l,n){return il(e,Array.isArray(l)?e=>!l.includes(e):(e,n)=>!l(e,n),n)}},Symbol.toStringTag,{value:"Module"}));const al=(e,l)=>{let n={...e,page:(null==e?void 0:e.page)||1,perPage:(null==e?void 0:e.perPage)||
110};return"all"!==(null==n?void 0:n.countryCode)&&""!==(null==n?void 0:n.countryCode)||null==n||delete n.countryCode,`/tnved/foreign-counterparty/company/search?${ol.stringify(n)}`},rl=e=>{const{getCount:l,data:n}=B();v.exports.useEffect((()=>{l([O])}),[l]);const{listRequest:t,filter:i,changeFilter:o,loading:a,errors:r}=T(al,["id","desc"],!0,100,!1),d=v.exports.useCallback(((e,l)=>{o({...i,page:e,perPage:l})}),[i,o]),s=v.exports.useMemo((()=>(null==i?void 0:i.page)||1),[i]);return u(Te,{availableData:n,changeFilter:o,loading:a,data:t,errorsRequest:r,handleChangeCurrentPage:d,page:s})};function dl(){const{data:e,loading:l,errors:n,search:t}=P();return{getPaymentLink:v.exports.useCallback(((e,l,n,i,o)=>new Promise(((a,r)=>{t("/lk/v1/profile/payment-foreign-counterparty","POST",{payment_method:i,skip_generate_link:n,international_number:e,country_code:l,...o}).then((e=>a(e))).catch((e=>r(e)))}))),[t]),dataPaymentLink:e,loadingPaymentLink:l,errorsPaymentLink:n}}function sl(n,t){return(null==n?void 0:n.includes("*"))?n:t?`${j(new Date(n),"dd MMM yyyy",{locale:H})}`:`${j(new Date(n),"dd MMM yyyy",{locale:H})} (${function(n,t,i){var s,u;e(2,arguments);var c=d(),v=null!==(s=null!==(u=null==i?void 0:i.locale)&&void 0!==u?u:c.locale)&&void 0!==s?s:a;if(!v.formatDistance)throw new RangeError("locale must contain formatDistance property");var m=pe(n,t);if(isNaN(m))throw new RangeError("Invalid time value");var f,h,p=o(we(i),{addSuffix:Boolean(null==i?void 0:i.addSuffix),comparison:m});m>0?(f=l(t),h=l(n)):(f=l(n),h=l(t));var g,C=Me(h,f),y=(r(h)-r(f))/1e3,_=Math.round((C-y)/60);if(_<2)return null!=i&&i.includeSeconds?C<5?v.formatDistance("lessThanXSeconds",5,p):C<10?v.formatDistance("lessThanXSeconds",10,p):C<20?v.formatDistance("lessThanXSeconds",20,p):C<40?v.formatDistance("halfAMinute",0,p):C<60?v.formatDistance("lessThanXMinutes",1,p):v.formatDistance("xMinutes",1,p):0===_?v.formatDistance("lessThanXMinutes",1,p):v.formatDistance("xMinutes",_,p);if(_<45)return v.formatDistance("xMinutes",_,p);if(_<90)return v.formatDistance("aboutXHours",1,p);if(_<1440){var b=Math.round(_/60);return v.formatDistance("aboutXHours",b,p)}if(_<2520)return v.formatDistance("xDays",1,p);if(_<43200){var k=Math.round(_/1440);return v.formatDistance("xDays",k,p)}if(_<86400)return g=Math.round(_/43200),v.formatDistance("aboutXMonths",g,p);if((g=Ne(h,f))<12){var x=Math.round(_/43200);return v.formatDistance("xMonths",x,p)}var D=g%12,N=Math.floor(g/12);return D<3?v.formatDistance("aboutXYears",N,p):D<9?v.formatDistance("overXYears",N,p):v.formatDistance("almostXYears",N+1,p)}(new Date(n),new Date,{addSuffix:!0,locale:H})})`}function ul(e){var l,n,t,i;return"1"===(null==e?void 0:e.providerId)||"ÐейÑÑвÑÑÑÐ°Ñ Ð¾ÑганизаÑиÑ"===(null==e?void 0:e.providerId)||"Normale toestand"===(null==e?void 0:e.providerId)||"ÐкÑивен"===(null==e?void 0:e.providerId)||"Active/Owes Current Year AR"===(null==e?void 0:e.providerId)||"ÐкÑивнÑй"===(null==(l=null==e?void 0:e.translation)?void 0:l.ru)||"СÑÑеÑÑвÑÑÑий"===(null==(n=null==e?void 0:e.translation)?void 0:n.ru)||"ÐбÑÑное ÑоÑÑоÑние"===(null==(t=null==e?void 0:e.translation)?void 0:t.ru)||"Active"===(null==(i=null==e?void 0:e.translation)?void 0:i.en)||"Active"===(null==e?void 0:e.providerId)||"registered"===(null==e?void 0:e.providerId)||"0"===(null==e?void 0:e.providerId)||"EXISTIEREND"===(null==e?void 0:e.providerId)||void 0===e}function cl(e){var l,n,t,i;return"2"===(null==e?void 0:e.providerId)||"ÐÑекÑаÑила РабоÑÑ"===(null==e?void 0:e.providerId)||"Active - Proposal to Strike off"===(null==e?void 0:e.providerId)||"ÐÑекÑаÑено"===(null==(l=null==e?void 0:e.translation)?void 0:l.ru)||"ÐеакÑивнÑй"===(null==(n=null==e?void 0:e.translation)?void 0:n.ru)||"ÐкÑивное пÑедложение о ликвидаÑии"===(null==(t=null==e?void 0:e.translation)?void 0:t.ru)||"ÐедейÑÑвÑÑÑаÑ"===(null==(i=null==e?void 0:e.translation)?void 0:i.ru)||"Cessée"===(null==e?void 0:e.providerId)||"Inactive"===(null==e?void 0:e.providerId)||"NEAKTIVAN"===(null==e?void 0:e.providerId)||"dissolved"===(null==e?void 0:e.providerId)||"Dissolved"===(null==e?void 0:e.providerId)}const vl=e=>{const{country:l,dateCreated:n,statuses:t,dateUpdate:i,externalLogo:o}=e,a=null==t?void 0:t.slice(-1);
1return u(U,{additionalClassname:"checking-foreign-detail__short-info",children:s("div",{className:"checking-foreign-detail__short-info-content",children:[o?u("div",{className:"checking-foreign-detail__short-info-img-wrap",children:u("img",{className:"checking-foreign-detail__short-info-img",src:`https://cdn.b2bhint.com/${o}`})}):null,s("div",{style:{flexGrow:1},children:[l?u(ml,{title:"СÑÑана",content:l}):null,n?u(ml,{title:"ÐÑнована",content:sl(n)}):null]}),u(fl,{status:null==a?void 0:a[0],dateUpdate:i})]})})};function ml({title:e,content:l}){return s("div",{className:"checking-foreign-detail__row-info",children:[s("span",{className:"checking-foreign-detail__row-info-title",children:[e,":"]}),u("span",{children:l})]})}function fl({status:e,dateUpdate:l}){const n=q("checking-foreign-detail__status-block",{"checking-foreign-detail__status-block_inactive":!!e&&cl(e),"checking-foreign-detail__status-block_active":!!e&&ul(e)});return u("div",{className:n,children:e&&cl(e)?"ÐедейÑÑвÑÑÑаÑ":e&&ul(e)?"не наÑ
одиÑÑÑ Ð² пÑоÑеÑÑе пÑекÑаÑениÑ"+(l?" на "+sl(l,!0):""):""})}const hl=[{title:"Ðо обоÑоÑÑ",valueField:"turnoverRank",oldValueField:"turnoverRankLastYear"},{title:"Ðо деÑÑелÑноÑÑи",valueField:"mainActivityTurnoverRank",oldValueField:"mainActivityTurnoverRankLastYear"},{title:"Ðо пÑибÑли",valueField:"profitRank",oldValueField:"profitRankLastYear"}],pl=e=>{const l=v.exports.useMemo((()=>hl.filter((l=>null==e?void 0:e[l.valueField]))),[e]);return s(U,{additionalClassname:"checking-counterparty-rating-block",children:[u("h2",{className:"checking-counterparty-rating-block__main-title",children:"РейÑинг компании"}),u("div",{className:"checking-counterparty-rating-block__items",children:l.map((l=>v.exports.createElement(gl,{...e,key:l.title,item:l})))})]})};function gl(e){var l,n,t;const{item:i}=e,{title:o}=i,a=null==e?void 0:e[i.valueField],r=null==e?void 0:e[i.oldValueField],d=r&&a?r-a:null,c=q("checking-counterparty-rating-block__item-diff",{"checking-counterparty-rating-block__item-diff_positive":"number"==typeof d&&d>=0,"checking-counterparty-rating-block__item-diff_negative":d&&d<0});return s("div",{className:"checking-counterparty-rating-block__item",children:[u("h3",{className:"checking-counterparty-rating-block__title",children:o}),s("div",{className:"checking-counterparty-rating-block__item-value",children:[u("div",{className:"checking-counterparty-rating-block__item-rank",children:`#${(null==(l=null==a?void 0:a.includes)?void 0:l.call(a,"*"))?a:Z(a)}`}),s("div",{className:c,children:[null===d?null:u(W,{iconName:null==(n=Y)?void 0:n.ArrowChangeValue,color:"number"==typeof d&&d>=0?G.green:null==(t=G)?void 0:t.red}),u("span",{children:"number"!=typeof d?null:"number"==typeof d&&isNaN(d)?"*":d>=0?Z(d):"-"+Z(Math.abs(d))})]})]})]})}const Cl=e=>{var l,n,t,i,o,a,r,d,v,m,f,h;const{name:p,shortName:g,brandName:C,alternateNames:y,localNumber:_,europeanNumber:b,statuses:k,country:x,internationalNumber:D,dateCreated:N,companiesRegisteredSameDate:M,dateDisolved:F,activities:E,leiString:L,paidShareCapital:I,type:R,vatNumber:$,historicalNames:A,categories:S,parentCountry:B,authorizedCapital:O,subscribedShareCapital:T,sharesValue:P,sharesIssued:V,activityDescription:j}=e,H=null==k?void 0:k.slice(-1),Z=q("checking-foreign-detail__row-status",{"checking-foreign-detail__row-status_active":!!(null==H?void 0:H[0])&&ul(null==H?void 0:H[0]),"checking-foreign-detail__row-status_close":!!(null==H?void 0:H[0])&&cl(null==H?void 0:H[0])});return s(w,{children:[(null==e?void 0:e.turnoverRank)||(null==e?void 0:e.mainActivityTurnoverRank)||(null==e?void 0:e.profitRank)?u(pl,{...e}):null,s(U,{children:[u("h2",{id:"summary-section-info",children:"Сводка"}),u(z,{title:"Ðазвание",content:p,type:"small"}),u(z,{title:"ÐÑаÑкое название",content:g,type:"small"}),u(z,{title:"Ðазвание бÑенда",content:C,type:"small"}),(null==y?void 0:y.length)?u(z,{title:"ÐлÑÑеÑнаÑивнÑе имена",content:u("div",{className:"checking-foreign-detail__multi-line",children:null==y?void 0:y.map(((e,l)=>u("span",{children:e},"alternateName-"+l)))}),type:"small"}):null,A&&(null==A?void 0:A.length)>0?u(z,{title:"ÐÑÑоÑиÑеÑкие названиÑ",content:u("div",{className:"checking-foreign-detail__multi-line",children:null==A?void 0:A.map(((e,l)=>u("span",{children:e},"historical-name-"+l)))}),type:"small"}):null,H&&(null==H?void 0:H.length)>0?u(z,{title:"СÑаÑÑÑ",content:u("span",{className:Z,children:(null==(n=null==(l=null==H?void 0:H[0])?void 0:l.translation)?void 0:n.ru)||(null==(t=null==H?void 0:H[0])?void 0:t.providerName)}),type:"small"}):null,u(z,{title:"ЮÑиÑдикÑиÑ",content:s("div",{className:"checking-foreign-detail__jurisdiction",children:[(null==(i=null==B?void 0:B.translation)?void 0:i.ru)||(null==B?void 0:B.name)?null:u("div",{className:"checking-foreign-detail__jurisdiction-flag",children:u(Le,{countryCode:null==x?void 0:x.code})}),null==(o=null==x?void 0:x.translation)?void 0:o.ru]}),type:"small"}),(null==(a=null==B?void 0:B.translation)?void 0:a.ru)||(null==B?void 0:B.name)?u(z,{title:"СÑÑана",content:s("div",{className:"checking-foreign-detail__jurisdiction",children:[u("div",{className:"checking-foreign-detail__jurisdiction-flag",children:u(Le,{countryCode:null==x?void 0:x.code})}),(null==(r=null==B?void 0:B.translation)?void 0:r.ru)||(null==B?void 0:B.name)]}),type:"small"}):null,u(z,{title:"РегиÑÑÑаÑионнÑй номеÑ",content:D,type:"small"}),u(z,{title:"ÐеÑÑнÑй номеÑ",content:_,type:"small"}),u(z,{title:"ÐвÑопейÑкий ÑникалÑнÑй иденÑиÑикаÑÐ¾Ñ (EUID)",content:b,type:"small"}),u(z,{title:"ÐÐÐ",content:$,type:"small"}),L?u(z,{title:"Ðод LEI",type:"small",content:L}):null,N?u(z,{title:"ÐаÑа ÑегиÑÑÑаÑии",content:s("div",{children:[`${sl(N)}`,M?s(w,{children:[" / ",u("span",{children:`${M} ${c(M,["компаниÑ","компании","компаний"])}`})," Ñ Ð¾Ð´Ð¸Ð½Ð°ÐºÐ¾Ð²Ð¾Ð¹ даÑой"]}):null]}),type:"small"}
1):null,u(z,{title:"УÑÑавной капиÑал",content:O,type:"small"}),F?u(z,{title:"ÐаÑа ÑаÑÑоÑжениÑ",content:u("div",{className:"checking-foreign-detail__text-red",children:`${sl(F)}`}),type:"small"}):null,I?u(z,{title:"ÐплаÑено в ÑÑÑавном капиÑале",content:I,type:"small"}):null,T?u(z,{title:"ÐодпиÑной акÑионеÑнÑй капиÑал",content:T,type:"small"}):null,P?u(z,{title:"СÑоимоÑÑÑ Ð°ÐºÑий",content:P,type:"small"}):null,V?u(z,{title:"ÐÑпÑÑеннÑе акÑии",content:V,type:"small"}):null,R&&((null==(d=R.translation)?void 0:d.ru)||(null==R?void 0:R.name)||(null==R?void 0:R.type))?u(z,{title:"ÐÑганизаÑионно-пÑÐ°Ð²Ð¾Ð²Ð°Ñ ÑоÑма",content:(null==(v=R.translation)?void 0:v.ru)||(null==R?void 0:R.name)||(null==R?void 0:R.type),type:"small"}):null,S&&(null==S?void 0:S.length)>0?u(z,{title:"ÐодÑип",content:(null==(f=null==(m=null==S?void 0:S[0])?void 0:m.translation)?void 0:f.ru)||(null==(h=null==S?void 0:S[0])?void 0:h.name),type:"small"}):null,E&&(null==E?void 0:E.length)>0?u(z,{title:"ÐÐ¸Ð´Ñ Ð´ÐµÑÑелÑноÑÑи",content:u(yl,{activities:E}),type:"small"}):j?u(z,{title:"ÐÐ¸Ð´Ñ Ð´ÐµÑÑелÑноÑÑи",content:`ÐпиÑание: ${j}`,type:"small"}):null]})]})};function yl({activities:e}){const l=v.exports.useMemo((()=>e.filter((e=>{var l;return 1===(null==(l=e.type)?void 0:l.id)}))),[e]),n=v.exports.useMemo((()=>e.filter((e=>{var l;return 2===(null==(l=e.type)?void 0:l.id)}))),[e]);return s("div",{className:"checking-foreign-detail__activity",children:[(null==l?void 0:l.length)>0?u(_l,{activities:l,title:"ÐÑновнÑе"}):null,(null==n?void 0:n.length)>0?u(_l,{activities:n,title:"ÐополниÑелÑнÑе"}):null]})}function _l({activities:e,title:l}){return s(w,{children:[u("h6",{className:"checking-foreign-detail__subtitle",children:`${l}:`}),null==e?void 0:e.map(((e,l)=>u(bl,{activity:e},"activity-"+l)))]})}function bl({activity:e}){var l,n,t;return s("p",{children:[u("span",{children:`#${(null==(l=null==e?void 0:e.nace)?void 0:l.code)||(null==e?void 0:e.providerId)||""} - `}),u("span",{children:(null==(t=null==(n=null==e?void 0:e.nace)?void 0:n.translation)?void 0:t.ru)||(null==e?void 0:e.providerName)||""})]})}const kl=e=>{const{clickHandler:l,title:n="ÐÑоÑмоÑÑеÑÑ Ð²Ñе"}=e;return u(b,{title:n,type:"bordered",onClick:l})},xl=e=>{const{fullData:l,data:n,handleFullContacts:t,loadedFullData:i,loadingFullData:o,hideMoreBtn:a}=e,r=v.exports.useMemo((()=>i?(null==i?void 0:i.address)||(null==l?void 0:l.address):null==n?void 0:n.address),[l,n,i]),d=v.exports.useMemo((()=>{var e,t,o;return i?(null==(e=null==i?void 0:i.companyContacts)?void 0:e.email)||(null==(t=null==l?void 0:l.companyContacts)?void 0:t.email):null==(o=null==n?void 0:n.companyContacts)?void 0:o.email}),[n,l,i]),c=v.exports.useMemo((()=>{var e,t,o;return i?(null==(e=null==i?void 0:i.companyContacts)?void 0:e.phone)||(null==(t=null==l?void 0:l.companyContacts)?void 0:t.phone):null==(o=null==n?void 0:n.companyContacts)?void 0:o.phone}
1),[n,l,i]),m=v.exports.useMemo((()=>{var e,t,o;return i?(null==(e=null==i?void 0:i.companyContacts)?void 0:e.fax)||(null==(t=null==l?void 0:l.companyContacts)?void 0:t.fax):null==(o=null==n?void 0:n.companyContacts)?void 0:o.fax}),[n,l,i]),f=v.exports.useMemo((()=>{var e,t,o;return i?(null==(e=null==i?void 0:i.companyContacts)?void 0:e.website)||(null==(t=null==l?void 0:l.companyContacts)?void 0:t.website):null==(o=null==n?void 0:n.companyContacts)?void 0:o.website}),[n,l,i]),h=v.exports.useMemo((()=>i?(null==i?void 0:i.companyContactPersons)||(null==l?void 0:l.companyContactPersons):null==n?void 0:n.companyContactPersons),[n,l,i]),p=v.exports.useMemo((()=>{let e=!1;return null==d||d.forEach((l=>{l.includes("*")&&(e=!0)})),null==c||c.forEach((l=>{l.includes("*")&&(e=!0)})),null==m||m.forEach((l=>{l.includes("*")&&(e=!0)})),null==f||f.forEach((l=>{l.includes("*")&&(e=!0)})),null==h||h.forEach((l=>{var n;null==(n=Object.keys(l))||n.forEach((n=>{var t,i;if(Array.isArray(null==l?void 0:l[n]))null==(t=null==l?void 0:l[n])||t.forEach((l=>{"string"==typeof l&&(null==l?void 0:l.includes("*"))&&(e=!0)}));else if("string"==typeof(null==l?void 0:l[n])&&(null==(i=null==l?void 0:l[n])?void 0:i.includes("*")))return void(e=!0)}))})),e}
1),[d,c,m,f,h]);return s(U,{additionalClassname:"checking-foreign-detail__contacts",children:[u("h2",{id:"contacts-section-info",children:"ÐонÑакÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ"}),o?u(I,{}):s("div",{className:"checking-foreign-detail__contacts",children:[u(z,{title:"ЮÑидиÑеÑкий адÑеÑ",content:r,type:"small"}),d&&(null==d?void 0:d.length)>0?u(z,{title:"ÐлекÑÑÐ¾Ð½Ð½Ð°Ñ Ð¿Ð¾ÑÑа",content:u("div",{className:"checking-foreign-detail__multi-line",children:null==d?void 0:d.map(((e,l)=>u(Dl,{text:e,prefix:"mailto:"},"email-"+l)))}),type:"small"}):null,c&&(null==c?void 0:c.length)>0?u(z,{title:"ТелеÑон",content:u("div",{className:"checking-foreign-detail__multi-line",children:null==c?void 0:c.map(((e,l)=>u(Dl,{text:e,prefix:"tel:"},"phone-"+l)))}),type:"small"}):null,m&&(null==m?void 0:m.length)>0?u(z,{title:"ФакÑ",content:u("div",{className:"checking-foreign-detail__multi-line",children:null==m?void 0:m.map(((e,l)=>u(Dl,{text:e,prefix:"fax:"},"fax-"+l)))}),type:"small"}):null,f&&(null==f?void 0:f.length)>0?u(z,{title:"Ðеб-ÑайÑ",content:u("div",{className:"checking-foreign-detail__multi-line",children:null==f?void 0:f.map(((e,l)=>u(Dl,{text:e,prefix:"http://"},"site-"+l)))}),type:"small"}):null,h&&(null==h?void 0:h.length)>0?u(z,{title:"ÐÑди",content:u("span",{className:"checking-foreign-detail__multi-line",children:null==h?void 0:h.map(((e,l)=>{var n,t,i;return s("span",{className:"checking-foreign-detail__multi-line",children:[u("span",{style:{fontWeight:600},children:e.name}),(null==(t=null==(n=null==e?void 0:e.contacts)?void 0:n.email)?void 0:t.length)>0?null==(i=null==e?void 0:e.contacts)?void 0:i.email.map((e=>u("span",{children:e},"email-"+e))):null]},l)}))}),type:"small"}):null]}),!p||i||a?null:u(kl,{title:"ÐоказаÑÑ Ð¿Ð¾Ð»Ð½Ñе даннÑе",clickHandler:()=>{t()}})]})};function Dl({text:e,prefix:l=""}){return e.includes("*")?u("span",{children:e}):u("span",{children:u("a",{href:`${l}${e}`,target:"_blank",children:e})})}function Nl(e){return v.exports.createElement("svg",Object.assign({},e,{width:40,height:40,viewBox:"0 0 272 355",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M137 167.316C178.809 167.316 212.26 134.026 212.26 93.5C212.26 52.9745 178.809 19.6842 137 19.6842C95.1911 19.6842 61.7403 52.9745 61.7403 93.5C61.7403 134.026 95.1911 167.316 137 167.316ZM137 187C189.467 187 232 145.139 232 93.5C232 41.8614 189.467 0 137 0C84.5329 0 42 41.8614 42 93.5C42 145.139 84.5329 187 137 187Z",fill:"#808080"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7818 309.87C19.7879 309.886 19.7975 309.911 19.812 309.943C19.8416 310.009 19.8953 310.118 19.987 310.27C20.3751 310.91 21.3795 312.199 23.6587 313.926C28.3964 317.518 36.4575 321.373 48.1079 324.808C71.1822 331.61 103.143 335.274 136 335.274C168.857 335.274 200.818 331.61 223.892 324.808C235.543 321.373 243.604 317.518 248.341 313.926C250.621 312.199 251.625 310.91 252.013 310.27C252.105 310.118 252.158 310.009 252.188 309.943C252.202 309.911 252.212 309.886 252.218 309.87C252.203 246.374 200.275 194.726 136 194.726C71.725 194.726 19.7974 246.374 19.7818 309.87ZM0 309.898C0 370.034 272 370.034 272 309.898C272 235.396 211.111 175 136 175C60.8893 175 0 235.396 0 309.898Z",fill:"#808080"}))}function Ml(e){return v.exports.createElement("svg",Object.assign({},e,{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{d:"M22 22L2 22",stroke:"#808080",strokeWidth:1.5,strokeLinecap:"round"}),v.exports.createElement("path",{d:"M17 22V6C17 4.11438 17 3.17157 16.4142 2.58579C15.8284 2 14.8856 2 13 2H11C9.11438 2 8.17157 2 7.58579 2.58579C7 3.17157 7 4.11438 7 6V22",stroke:"#808080",strokeWidth:1.5}),v.exports.createElement("path",{d:"M21 22V11.5C21 10.0955 21 9.39331 20.6629 8.88886C20.517 8.67048 20.3295 8.48298 20.1111 8.33706C19.6067 8 18.9045 8 17.5 8",stroke:"#808080",strokeWidth:1.5}),v.exports.createElement("path",{d:"M3 22V11.5C3 10.0955 3 9.39331 3.33706 8.88886C3.48298 8.67048 3.67048 8.48298 3.88886 8.33706C4.39331 8 5.09554 8 6.5 8",stroke:"#808080",strokeWidth:1.5}),v.exports.createElement("path",{d:"M12 22V19",stroke:"#808080",strokeWidth:1.5,strokeLinecap:"round"}),v.exports.createElement("path",{d:"M10 5H14",stroke:"#808080",strokeWidth:1.5,strokeLinecap:"round"}),v.exports.createElement("path",{d:"M10 8H14",stroke:"#808080",strokeWidth:1.5,strokeLinecap:"round"}),v.exports.createElement("path",{d:"M10 11H14",stroke:"#808080",strokeWidth:1.5,strokeLinecap:"round"}),v.exports.createElement("path",{d:"M10 14H14",stroke:"#808080",strokeWidth:1.5,strokeLinecap:"round"}))}const wl=e=>{const{persons:l}=e;return s(w,{children:[u("h2",{children:"ÐолжноÑÑнÑе лиÑа"}),u("div",{className:"checking-foreign-detail__persons-modal-list",children:null==l?void 0:l.map(((e,l)=>u(Sl,{person:e},"person-"+l)))})]})},Fl=e=>{const{countryCode:l,countryName:n}=e;
1return l||n?s("div",{className:"checking-foreign-detail__country",children:[l?u("div",{className:"checking-foreign-detail__country-flag",children:u(Le,{countryCode:l})}):null,n?u("div",{children:n}):null]}):null};const El=e=>{var l,n,t,i;const{person:o,withoutMarginBottom:a}=e,{showModal:r}=X();return u("span",{style:{display:"inline-block",marginBottom:a?"0px":"10px"},children:(null==(n=null==(l=null==o?void 0:o.person)?void 0:l.name)?void 0:n.includes("*"))?u("span",{className:"checking-foreign-detail__false-link",children:null==(t=null==o?void 0:o.person)?void 0:t.name}):u(J,{style:{textTransform:"capitalize"},to:"#",onClick:e=>{e.preventDefault(),r(u(Il,{person:o}))},children:null==(i=null==o?void 0:o.person)?void 0:i.name})})},Ll=[{source:"shortName",label:"Ðазвание компании"},{source:"roleName",label:"Ð Ð¾Ð»Ñ Ð² компании"},{source:"amount",label:"ÐплаÑеннÑй ÑÑÑавнÑй капиÑал"},{source:"percentage",label:"ÐплаÑеннÑй ÑÑÑавнÑй капиÑал",renderComponent:e=>u(K,{...e})}],Il=({person:e})=>{var l,n,t,i,o,a,r;const{data:d,loading:c,errors:m,search:f}=P(),h=v.exports.useMemo((()=>{var l,n,t;return null==(t=null==(n=null==(l=null==d?void 0:d.filter((l=>{var n;return(null==l?void 0:l.number)===(null==(n=null==e?void 0:e.person)?void 0:n.number)})))?void 0:l[0])?void 0:n.companies)?void 0:t.map((e=>{var l,n,t,i,o,a,r;return{...e,roleName:(null==(n=null==(l=null==e?void 0:e.role)?void 0:l.translation)?void 0:n.ru)&&""!==(null==(i=null==(t=null==e?void 0:e.role)?void 0:t.translation)?void 0:i.ru)?null==(a=null==(o=null==e?void 0:e.role)?void 0:o.translation)?void 0:a.ru:(null==(r=null==e?void 0:e.role)?void 0:r.name)||"-"}}))}),[d,e]);return v.exports.useEffect((()=>{var l,n;f&&(null==(l=null==e?void 0:e.person)?void 0:l.name)&&f(`tnved/foreign-counterparty/person/search?search=${null==(n=null==e?void 0:e.person)?void 0:n.name}`)}),[f,e]),s("div",{className:"person-link__wrap",children:[u("h4",{className:"person-link__person-name",children:null==(l=null==e?void 0:e.person)?void 0:l.name}),u(Fl,{countryName:(null==(t=null==(n=null==e?void 0:e.person)?void 0:n.countryTranslation)?void 0:t.ru)||(null==(o=null==(i=null==e?void 0:e.fromCompany)?void 0:i.countryTranslation)?void 0:o.ru),countryCode:(null==(a=null==e?void 0:e.person)?void 0:a.countryCode)||(null==(r=null==e?void 0:e.fromCompany)?void 0:r.countryCode)}),u("h5",{className:"person-link__subtitle",children:"СвÑзаннÑе компании"}),c?u(I,{}):h&&(null==h?void 0:h.length)>0?u(R,{tableData:h,config:Ll,withoutBackground:!0,fullWidth:!0}):null]})},Rl=e=>u("div",{className:"checking-foreign-detail__icon-with-circle",children:e.children}),$l=e=>{const{prefix:l,additionalClassName:n}=e,[t,i]=v.exports.useState(!1),[o,a]=v.exports.useState(null),[r,d]=v.exports.useState(null);v.exports.useEffect((()=>{const e=document.querySelector(`.block-with-horizontal-scroll-${l}`),n=l=>{i(!0),e&&a(e.scrollLeft),d(l.pageX)},t=()=>{i(!1)};return e&&(e.addEventListener("mousedown",n),e.addEventListener("mouseleave",t),e.addEventListener("mouseup",t)),()=>{e&&(e.removeEventListener("mousedown",n),e.removeEventListener("mouseleave",t),e.removeEventListener("mouseup",t))}}),[l]),v.exports.useEffect((()=>{const e=document.querySelector(`.block-with-horizontal-scroll-${l}`),n=l=>{if(!t)return;l.preventDefault();let n=r?r-l.pageX:l.pageX;e&&(e.scrollLeft=n+o)};return e&&e.addEventListener("mousemove",n),()=>{e&&e.removeEventListener("mousemove",n)}}),[t,r,o,l]);const s=q(`block-with-horizontal-scroll-${l}`,n);return u("div",{className:s,children:e.children})},Al=e=>{const{fullData:l,data:n,handleLoadFullData:t,loading:i,setLoadedFullData:o}=e,{showModal:a}=X(),r=v.exports.useMemo((()=>(null==l?void 0:l.persons)||(null==n?void 0:n.persons)||[]),[l,n]),d=v.exports.useMemo((()=>(null==n?void 0:n.personsCount)||0),[n]),c=v.exports.useCallback((e=>{a(u(wl,{persons:null==e?void 0:e.persons}),"popup--large")}),[a]),m=v.exports.useCallback((e=>{o(e),c(e)}),[c,o]),f=v.exports.useMemo((()=>null==r?void 0:r.slice(0,3)),[r]);return 0===(null==f?void 0:f.length)?null:s(U,{children:[u("h2",{id:"events-section-info",children:"ÐолжноÑÑнÑе лиÑа"}),u("div",{className:"checking-foreign-detail__persons",children:u($l,{prefix:"persons",additionalClassName:"checking-foreign-detail__persons-content",children:null==f?void 0:f.map(((e,l)=>u(Sl,{person:e},"person-"+l)))})}),Number(d)>
1(null==f?void 0:f.length)?u(kl,{clickHandler:()=>{t(c,m)}}):null]})};function Sl({person:e}){var l,n,t,i,o,a,r,d,c,v,m,f,h,p,g,C,y,_,b,k,x,D,N,M,w,F;return s("div",{className:"checking-foreign-detail__person-item",children:[s("div",{className:"checking-foreign-detail__person-item-header",children:[u(Rl,{children:(null==(l=null==e?void 0:e.fromCompany)?void 0:l.name)?u(Ml,{}):u(Nl,{})}),u(Fl,{countryName:(null==(t=null==(n=null==e?void 0:e.person)?void 0:n.countryTranslation)?void 0:t.ru)||(null==(o=null==(i=null==e?void 0:e.fromCompany)?void 0:i.countryTranslation)?void 0:o.ru),countryCode:(null==(a=null==e?void 0:e.person)?void 0:a.countryCode)||(null==(r=null==e?void 0:e.fromCompany)?void 0:r.countryCode)})]}),u("div",{className:"checking-foreign-detail__person-name",children:(null==(d=null==e?void 0:e.fromCompany)?void 0:d.internationalNumber)&&(null==(c=null==e?void 0:e.fromCompany)?void 0:c.name)?u(J,{to:"/checking-foreign-counterparty"+((null==(v=null==e?void 0:e.fromCompany)?void 0:v.internationalNumber)?`?search={"search":"${null==(m=null==e?void 0:e.fromCompany)?void 0:m.internationalNumber}"}`:""),children:null==(f=null==e?void 0:e.fromCompany)?void 0:f.name}):(null==(h=null==e?void 0:e.person)?void 0:h.name)?u(El,{person:e,withoutMarginBottom:!0}):null}),u("div",{children:(null==(g=null==(p=null==e?void 0:e.role)?void 0:p.translation)?void 0:g.ru)||(null==(C=null==e?void 0:e.role)?void 0:C.name)||""}),(null==e?void 0:e.appointedOn)||(null==e?void 0:e.resignedOn)||(null==e?void 0:e.sharesValue)||(null==e?void 0:e.sharesCount)||(null==e?void 0:e.percentage)||(null==e?void 0:e.amount)||(null==(_=null==(y=null==e?void 0:e.person)?void 0:y.countryTranslation)?void 0:_.ru)||(null==(b=null==e?void 0:e.person)?void 0:b.countryOfResidence)?s("div",{className:"checking-foreign-detail__shares",children:[(null==(x=null==(k=null==e?void 0:e.person)?void 0:k.countryTranslation)?void 0:x.ru)||(null==(D=null==e?void 0:e.person)?void 0:D.countryOfResidence)?u(Bl,{title:"СÑÑана пÑоживаниÑ",content:(null==(M=null==(N=null==e?void 0:e.person)?void 0:N.countryTranslation)?void 0:M.ru)||(null==(w=null==e?void 0:e.person)?void 0:w.countryOfResidence)||""}):null,(null==e?void 0:e.sharesValue)&&u(Bl,{title:"ÐолиÑеÑÑво акÑий",content:null==e?void 0:e.sharesValue}),(null==e?void 0:e.sharesCount)&&u(Bl,{title:"СÑоимоÑÑÑ Ð°ÐºÑий",content:null==(F=null==e?void 0:e.sharesCount)?void 0:F.toString()}),(null==e?void 0:e.appointedOn)&&u(Bl,{title:"ÐÑÑÑпил в должноÑÑÑ",content:sl(null==e?void 0:e.appointedOn,!0)}),(null==e?void 0:e.resignedOn)&&u(Bl,{title:"УÑел в оÑÑÑавкÑ",content:sl(null==e?void 0:e.resignedOn,!0),contententDangerText:!0}),(null==e?void 0:e.percentage)&&u(Bl,{title:"ÐолÑ",content:`${null==e?void 0:e.percentage}%`}),(null==e?void 0:e.amount)&&u(Bl,{title:"ÐплаÑеннÑй ÑÑÑавнÑй капиÑал",content:`${null==e?void 0:e.amount}`})]}):null]})}const Bl=({title:e,content:l,contententDangerText:n})=>{const t=q({"checking-foreign-detail__text-red":n});return s("div",{className:"checking-foreign-detail__shares-wrap",children:[u("div",{className:"checking-foreign-detail__shares-title",children:e}),u("div",{className:t,children:l})]})},Ol=e=>{const{accountingAuthority:l,hasPublicDebt:n,paysVat:t,vatNumber:i,financialYear:o,publicDebtAmount:a,currentEmployeesNumber:r,paysExcise:d,vatDate:c,vatCancelDate:v,annualAssembly:m,endDateFinancialYear:f}=e,h=q({"checking-foreign-detail__danger-text":!0===n});return s(U,{children:[u("h2",{id:"tax-section-info",children:"ÐÐ°Ð»Ð¾Ð³Ð¾Ð²Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ"}),u(z,{title:"ФинанÑовÑй год",content:o,type:"small"}),u(z,{title:"СоÑÑÑдники (Ðол-во)",content:r,type:"small"}),"boolean"==typeof n?u(z,{title:"ÐоÑ. задолженноÑÑи",content:u("span",{className:h,children:n?"Ðа":"ÐеÑ"}),type:"small"}):null,u(z,{title:"СÑмма налогового обÑзаÑелÑÑÑва",content:a,type:"small"}),u(z,{title:"ÐÑÑ
галÑеÑÑкий оÑган",content:null==l?void 0:l.providerName,type:"small"}),u(z,{title:"Ðжегодное ÑобÑание",content:m,type:"small"}
1),u(z,{title:"ÐаÑа оконÑÐ°Ð½Ð¸Ñ ÑинанÑового года",content:f,type:"small"}),!0===t||!1===t||i?u(z,{title:"ÐÐС",content:s("div",{children:[!0===t||!1===t?u(Bl,{title:"ÐлаÑÐ¸Ñ ÐÐС",content:t?"Ðа":"ÐеÑ"}):null,i?u(Bl,{title:"РегиÑÑÑаÑионнÑй номеÑ",content:i}):null,c?u(Bl,{title:"ÐаÑа ÑегиÑÑÑаÑии",content:sl(c,!0)}):null,v?u(Bl,{title:"ÐаÑа оÑменÑ",content:sl(v,!0),contententDangerText:!0}):null]}),type:"small"}):null,"boolean"==typeof d?u(z,{title:"ÐкÑизÑ",content:u("div",{children:!0===d||!1===d?u(Bl,{title:"ÐлаÑÐ¸Ñ Ð°ÐºÑизÑ",content:d?"Ðа":"ÐеÑ"}):null}),type:"small"}):null]})},Tl=e=>{const{withRedText:l}=e,n=e.cellData,t=q({"date-with-month__red-text":l});if(!n)return u(S,{cellData:"-",item:e.item});try{return u(S,{className:t,cellData:`${j(new Date(n),"dd MMM yyyy",{locale:H})}`,item:e.item},e.cellData)}catch(i){return null}};function Pl({data:e,config:l}){const n=v.exports.useMemo((()=>function(e,l){if(!l)return e;return e.filter((e=>{for(let n=0;n<=l.length;n++)if(Array.isArray(e.source)){let t;if(e.source.forEach((e=>{Vl(l[n],e)&&(t=!0)})),t)return!0}else if(Q(l[n],e.source))return!0;return!1}))}(l,e)),[e,l]);return u(R,{tableData:e,withoutBackground:!0,fullWidth:!0,className:"checking-foreign-detail__table",config:n})}const Vl=(e,l)=>Q(e,l);const jl=e=>{const{data:l=[],title:n,config:t}=e;return s(w,{children:[u("h2",{children:n}),u(Pl,{data:l,config:t})]})},Hl=e=>{const{data:l,fullData:n,setLoadedFullData:t,handleLoadFullData:i,config:o,field:a,fieldCount:r,title:d}=e,{showModal:c}=X(),m=v.exports.useMemo((()=>(null==n?void 0:n[a])||(null==l?void 0:l[a])),[n,l,a]),f=v.exports.useMemo((()=>(null==l?void 0:l[r])||0),[r,l]),h=v.exports.useMemo((()=>null==m?void 0:m.slice(0,3)),[m]),p=v.exports.useCallback((e=>{c(u(jl,{data:e[a],title:d,config:o}),"popup--large")}),[c,a,o,d]),g=v.exports.useCallback((e=>{t(e),p(e)}),[p,t]);return s(U,{children:[u("h2",{className:"checking-foreign-detail__history-title",id:"filings-info",children:d}),u(Pl,{data:h,config:o}),f>(null==h?void 0:h.length)?u(kl,{clickHandler:()=>{i(p,g)}}):null]})};function Ul(e){const{item:l,fieldName:n}=e;return u(S,{item:e.item,children:u("a",{href:null==l?void 0:l[n],target:"_blank",children:"ÐÑоÑмоÑÑеÑÑ"})})}function ql({participant:e}){var l,n,t;const i=null==e?void 0:e.name;return u("div",{children:s("span",{children:[(null==(n=null==(l=null==e?void 0:e.role)?void 0:l.translation)?void 0:n.ru)||(null==(t=null==e?void 0:e.role)?void 0:t.name)," -"," ",u(J,{className:"checking-foreign-detail__link-400",to:"/checking-foreign-counterparty"+(i?`?search={"search":"${encodeURIComponent(i.replaceAll('"',""))}"}`:""),children:i})]})})}const Zl=[{source:"caseNumber",label:"â дела"},{source:"date",label:"ÐаÑа",renderComponent:Tl},{source:"judge",label:"СÑдÑÑ"},{source:"participants",label:"УÑаÑÑники",renderComponent:e=>{var l,n,t;return(null==(l=null==e?void 0:e.item)?void 0:l.participants)?u(S,{item:e.item,children:u("div",{children:null==(t=null==(n=null==e?void 0:e.item)?void 0:n.participants)?void 0:t.map(((e,l)=>u(ql,{participant:e},"participant-"+l)))})},e.cellData):u("div",{children:"-"})}},{source:"decision",label:"РеÑение"},{source:"courtType",label:"Тип"},{source:"courtName",label:"Ðазвание ÑÑда"},{source:"file",label:"ÐокÑменÑ",renderComponent:e=>u(Ul,{...e,fieldName:"file"})}],Wl=e=>u(Hl,{...e,field:"courtCases",fieldCount:"courtCasesCount",title:"СÑдебнÑе дела",config:Zl}),Yl=[{source:"number",label:"ÐомеÑ"},{source:"type",label:"Тип"},{source:"date",label:"ÐаÑа вÑдаÑи",renderComponent:Tl},{source:"endDate",label:"ÐаÑа иÑÑеÑениÑ",renderComponent:e=>u(Tl,{...e,withRedText:!0})},{source:"status",label:"СÑаÑÑÑ"},{source:"description",label:"ÐпиÑание"},{source:"issuer",label:"ÐмиÑенÑ"}],Gl=e=>u(Hl,{...e,field:"licenses",fieldCount:"licensesCount",title:"ÐиÑензии",config:Yl}),zl=e=>{const{events:l}=e;return s(w,{children:[u("h2",{children:"СобÑÑиÑ"}),s("div",{className:"checking-foreign-detail__events",children:[s("div",{className:"checking-foreign-detail__event-row",children:[u("div",{className:"checking-foreign-detail__event-date"}),u("div",{className:"checking-foreign-detail__event-dot-wrap"}),u("div",{className:"checking-foreign-detail__event-old-value",children:"СÑаÑое знаÑение"})]}),null==l?void 0:l.map(((e,l)=>u(Jl,{event:e,idx:l},"event-"+l)))]})]})},Xl=e=>{const{fullData:l,data:n,handleLoadFullData:t,loading:i,setLoadedFullData:o}=e,{showModal:a}=X(),r=v.exports.useMemo((()=>(null==l?void 0:l.events)||(null==n?void 0:n.events)||[]),[l,n]),d=v.exports.useMemo((()=>(null==n?void 0:n.eventsCount)||0),[n]),c=v.exports.useCallback((e=>{a(u(zl,{events:null==e?void 0:e.events}),"popup--large")}
1),[a]),m=v.exports.useCallback((e=>{o(e),c(e)}),[c,o]),f=v.exports.useMemo((()=>null==r?void 0:r.slice(0,3)),[r]);return 0===(null==f?void 0:f.length)?null:s(U,{children:[u("h2",{id:"events-section-info",children:"СобÑÑиÑ"}),s("div",{className:"checking-foreign-detail__events",children:[s("div",{className:"checking-foreign-detail__event-row",children:[u("div",{className:"checking-foreign-detail__event-date"}),u("div",{className:"checking-foreign-detail__event-dot-wrap"}),s("div",{className:"checking-foreign-detail__event-old-value checking-foreign-detail__event-value-wrap",children:[u("div",{style:{width:"49%"}}),u("div",{style:{width:"49%"},children:"СÑаÑое знаÑение"})]})]}),null==f?void 0:f.map(((e,l)=>u(Jl,{event:e,idx:l},"event-"+l)))]}),d>(null==f?void 0:f.length)?u(kl,{clickHandler:()=>{t(c,m)}}):null]})};function Jl({event:e,idx:l}){var n,t,i;const o=q("checking-foreign-detail__event-dot",{"checking-foreign-detail__event-dot_big":0===l});return s("div",{className:"checking-foreign-detail__event-row",children:[u("div",{className:"checking-foreign-detail__event-date",children:(null==e?void 0:e.date)?sl(null==e?void 0:e.date,!0):"-"}),u("div",{className:"checking-foreign-detail__event-dot-wrap",children:u("div",{className:o})}),s("div",{className:"checking-foreign-detail__event-value checking-foreign-detail__event-value-wrap",children:[s("div",{style:{width:"49%"},children:[u("div",{className:"checking-foreign-detail__event-name",children:(null==(t=null==(n=null==e?void 0:e.type)?void 0:n.translation)?void 0:t.ru)||(null==(i=null==e?void 0:e.type)?void 0:i.name)}),u("div",{children:null==e?void 0:e.newValue})]}),u("div",{style:{width:"49%"},children:null==e?void 0:e.oldValue})]})]})}const Kl=e=>{const{leiData:l}=e;return s(U,{children:[u("h2",{id:"identification-numbers-info",className:"checking-foreign-detail__title",children:"ÐденÑиÑикаÑионнÑе номеÑа"}),u("div",{className:"checking-foreign-detail__lei-info",children:null==l?void 0:l.map((e=>u(en,{item:e},e.lei)))})]})},Ql=e=>(null==e?void 0:e.shortName)||(null==e?void 0:e.brandName)||(null==e?void 0:e.name)||"";function en({item:e}){var l,n,t,i,o,a,r,d,c,v,m;return u("div",{className:"checking-foreign-detail__lei-item",children:u(z,{type:"200px",title:"ÐаннÑе из ÑегиÑÑÑа LEI",withBorder:!1,content:s("div",{className:"checking-foreign-detail__lei-item-content",children:[u("div",{children:e.lei}),s("div",{children:[u(ln,{title:"ЮÑидиÑеÑкое название",content:e.legalName}),e.registrationInitialRegistrationDate?u(ln,{title:"ÐаÑа ÑегиÑÑÑаÑии",content:sl(e.registrationInitialRegistrationDate,!0)}):null,u(ln,{title:"СÑаÑÑÑ",content:u("div",{className:q("checking-foreign-detail__row-status",{"checking-foreign-detail__row-status_active":1===(null==(l=null==e?void 0:e.status)?void 0:l.statusId),"checking-foreign-detail__row-status_close":3===(null==(n=null==e?void 0:e.status)?void 0:n.statusId)}),children:(null==(i=null==(t=e.status)?void 0:t.translation)?void 0:i.ru)||(null==(o=null==e?void 0:e.status)?void 0:o.name)})}),e.otherEntityNames&&(null==(a=e.otherEntityNames)?void 0:a.length)>0?u(ln,{title:"ÐÑÑгие названиÑ",content:null==(r=e.otherEntityNames)?void 0:r.map((e=>e.name)).join(", ")}):null,u(ln,{title:"ÐмиÑенÑ",content:s("div",{className:"checking-foreign-detail__issuer",children:[u("div",{className:"checking-foreign-detail__jurisdiction-flag",children:u(Le,{countryCode:null==(d=null==e?void 0:e.issuer)?void 0:d.countryCode})}),u(J,{to:"/checking-foreign-counterparty"+((null==(c=null==e?void 0:e.issuer)?void 0:c.shortName)?`?search={"search":"${(null==(v=null==e?void 0:e.issuer)?void 0:v.internationalNumber)?null==(m=null==e?void 0:e.issuer)?void 0:m.internationalNumber:encodeURIComponent(Ql(null==e?void 0:e.issuer).replaceAll('"',""))}"}`:""),children:Ql(null==e?void 0:e.issuer)})]})}),e.registrationLastUpdateDate?u(ln,{title:"ÐоÑледнее обновление",content:sl(e.registrationLastUpdateDate,!0)}):null,e.registrationNextRenewalDate?u(ln,{title:"СледÑÑÑее обновление",content:sl(e.registrationNextRenewalDate,!0)}):null]})]})})})}function ln({title:e,content:l}){return u(z,{title:e,content:l,type:"200px",withBorder:!1})}const nn=e=>{const{config:l,tabPrefix:n,classesContent:t,tabsClasses:i,footerContent:o,footerSubmenu:a}=e,[r,d]=v.exports.useState(l[0].title),[s,c]=v.exports.useState(!1),m=v.exp
1orts.useMemo((()=>l.map((e=>{var l,t,i;return{...e,offsetTop:(null==(l=document.getElementById(`${n}-${e.code}`))?void 0:l.offsetTop)||0,offsetBottom:((null==(t=document.getElementById(`${n}-${e.code}`))?void 0:t.offsetTop)||0)+((null==(i=document.getElementById(`${n}-${e.code}`))?void 0:i.clientHeight)||0)}}))),[l,n]),f=q("tabs-vertical-scroll",i);return u(ge,{classNameBlock:f,mainContentWithoutPaperElement:!0,stickyBlockWithoutPaperElement:!0,stickyBlockContent:u(tn,{config:m,setActiveTab:d,activeTab:r,tabPrefix:n,setIsNoListenerScrollActiveTab:c,footerSubmenu:a}),mainContent:u(an,{config:m,tabPrefix:n,setActiveTab:d,isNoListenerScroll:s,classesContent:t,footerContent:o}),reverseOrder:!0})};function tn({config:e,setActiveTab:l,setIsNoListenerScrollActiveTab:n,activeTab:t,tabPrefix:i,footerSubmenu:o}){const a=e=>{var t,o;l(e.title);const a=document.getElementById(`${i}-${e.code}`),r=null==(t=null==a?void 0:a.getBoundingClientRect())?void 0:t.top;if(r){const e=(null==(o=document.querySelector(".top"))?void 0:o.clientHeight)||0,l=r+window.pageYOffset-e;n(!0),window.scrollTo({top:l,behavior:"smooth"}),setTimeout((()=>{n(!1)}),2500)}};return s("div",{id:`tabs-vertical-scroll-sidebar-${i}`,children:[u("div",{className:"tabs-vertical-scroll-sidebar__btns-wrap",children:e.map((e=>u(on,{activeTab:t,item:e,handleClick:a},e.code)))}),o]})}function on({activeTab:e,item:l,handleClick:n}){const t=q("tabs-vertical-scroll__sidebar-item",{"tabs-vertical-scroll__sidebar-item_active":e===l.title});return u("div",{onClick:()=>{n(l)},className:t,children:l.title},l.title)}function an({config:e,tabPrefix:l,setActiveTab:n,isNoListenerScroll:t,classesContent:i,footerContent:o}){v.exports.useEffect((()=>{const i=document.getElementById(`tabs-vertical-scroll-content-${l}`),o=document.getElementById(`tabs-vertical-scroll-sidebar-${l}`),a=l=>{var a,r,d;if(o&&i&&!t){const l=(null==(a=null==o?void 0:o.getBoundingClientRect())?void 0:a.top)-(null==(r=null==i?void 0:i.getBoundingClientRect())?void 0:r.top),t=e.filter((e=>e.offsetBottom>=l)),s=null==(d=null==t?void 0:t[0])?void 0:d.title;n(s)}};return document.addEventListener("scroll",a),()=>{document.removeEventListener("scroll",a)}}),[l,e,n,t]);const a=q("tabs-vertical-scroll__content",i);return s("div",{className:a,id:`tabs-vertical-scroll-content-${l}`,children:[u("div",{children:e.map((e=>u(rn,{item:e,tabPrefix:l},e.code)))}),o]})}function rn({item:e,tabPrefix:l}){return u("div",{className:"tabs-vertical-scroll__content-item",id:`${l}-${e.code}`,children:e.content})}const dn=e=>{const{title:l,items:n}=e,{countryCode:t,numberBase:i=""}=ee(),o=v.exports.useMemo((()=>decodeURI(i)),[i]),a=null==n?void 0:n.findIndex((e=>(null==e?void 0:e.internationalNumber)===o)),r=a-2>=0?a-2:0,d=v.exports.useMemo((()=>n.slice(r,r+5>(null==n?void 0:n.length)-1?(null==n?void 0:n.length)-1:r+5)),[n,r]);return s(U,{additionalClassname:"closest-company__item-wrap",children:[u("h3",{className:"closest-company__title",children:l}),d.map((e=>u(sn,{item:e,activeNumber:o,countryCode:t},null==e?void 0:e.internationalNumber)))]})};function sn({item:e,activeNumber:l,countryCode:n}){const t=q("closest-company__item",{"closest-company__item_active":(null==e?void 0:e.internationalNumber)===l});return u("div",{className:t,children:s("div",{className:"closest-company__item_content",children:[u("div",{className:"closest-company__item-rank",children:null==e?void 0:e.rank}),(null==e?void 0:e.internationalNumber)&&n&&(null==e?void 0:e.internationalNumber)!==l?u(J,{to:`/checking-foreign-counterparty/detail/${n}/${encodeURIComponent(null==e?void 0:e.internationalNumber)}`,className:"closest-company__item-link ",children:null==e?void 0:e.name}):u("div",{children:null==e?void 0:e.name})]})})}const un=e=>{const{config:l,setCurrentValue:n,value:t}=e;return u(le,{value:t,options:l,onChange:e=>{n(e.value)},inModal:!0,isClearable:!1})};const cn=e=>{const{title:l,config:n,tableData:t}=e;return s("div",{className:"full-financial-report__block",children:[u("h4",{className:"full-financial-report__main-title",children:l}),u("div",{children:u(R,{className:"full-financial-report__table",config:n,tableData:t,withoutBackgroun
1d:!0,fullWidth:!0,renderRow:e=>u(Ce,{...e,fieldNameCellWithIcon:"title",withArrowIcon:!0,classesForParentRow:"full-financial-report__table-row-parent",defaultOpened:!0})})})]})};const vn=e=>{const{item:l,year:n,prevYear:t,exchangeRate:i,withoutCurrencyCode:o=!1}=e,a=null==l?void 0:l.currencyCode,r=t?null==l?void 0:l[t]:null,d=n?null==l?void 0:l[n]:null,c=d&&r?Math.floor(100*(d-r)/Math.abs(r)):null,v="number"==typeof i&&1!==i?Math.round(d/i):d,m=q("full-financial-cell__diff-fill",{"full-financial-cell__diff-fill_alert":c&&c<0}),f=q("full-financial-cell__diff-text",{"full-financial-cell__diff-text_alert":c&&c<0}),h=q("full-financial-cell__diff-arrow-icon",{"full-financial-cell__diff-arrow-icon_alert":c&&c<-100}),p=q("full-financial-cell__value",{"full-financial-cell__value_alert":v&&v<0});return u(S,{item:e.item,children:(null==e?void 0:e.cellData)?s("div",{className:"full-financial-cell",children:[u("div",{className:p,children:`${v>=0?"":"-"} ${Z(Math.abs(v))} ${o?"":a}`}),c||0===c?s("div",{className:"full-financial-cell__diff",children:[u("div",{className:f,children:`${c}%`}),s("div",{className:"full-financial-cell__diff-content",children:[u("div",{className:"full-financial-cell__diff-wrap",children:u("div",{className:m,style:"number"==typeof c&&(null==Math?void 0:Math.abs(c))?{width:`${null==Math?void 0:Math.abs(c)}%`}:{}})}),c>100||c<-100?u("div",{className:h,children:u(W,{iconName:Y.DoubleArrow,color:c>100?G.green:G.red})}):null]})]}):null]}):u("span",{dangerouslySetInnerHTML:{__html:"—"}})},e.cellData)},mn=(e,l)=>{let n={};return null==e||e.forEach((e=>{var t;let i;null==(t=null==l?void 0:l.field)||t.forEach((l=>{var n,t;if(null==l?void 0:l.includes("otherData.")){const o=null==l?void 0:l.split("otherData.");(null==(n=null==e?void 0:e.otherData)?void 0:n[`${o[1]}`])&&(i=null==(t=null==e?void 0:e.otherData)?void 0:t[o[1]])}else(null==e?void 0:e[l])&&(i=null==e?void 0:e[l])})),n={...n,[String(null==e?void 0:e.year)]:i}})),n};function fn(e,l){let n=!1;return null==l||l.forEach((l=>{(null==e?void 0:e[l])&&(n=!0)})),n}function hn(e,l,n,t){const i=null==e?void 0:e.map((e=>{var t,i;let o={};const a=mn(l,e);if(o={...o,title:null==e?void 0:e.title,currencyCode:n,...a},(null==e?void 0:e.children)&&(null==(t=null==e?void 0:e.children)?void 0:t.length)>0){const t=null==(i=null==e?void 0:e.children)?void 0:i.map((e=>{let t={};const i=mn(l,e);return t={...t,title:null==e?void 0:e.title,currencyCode:n,...i},t}));o={...o,children:t,parent:!0}}return o}));return null==i?void 0:i.map((e=>{var l;const n=null==(l=null==e?void 0:e.children)?void 0:l.filter((e=>fn(e,t)));return{...e,children:n,parent:(null==n?void 0:n.length)>0}})).filter((e=>{var l;return fn(e,t)||(null==(l=null==e?void 0:e.children)?void 0:l.length)>0}))}const pn=(e,l,n,t,i)=>[{source:"title",label:"ФинанÑовÑй показаÑелÑ"},{source:String(e),label:String(e),renderComponent:n=>u(vn,{...n,year:e,prevYear:l,exchangeRate:t,withoutCurrencyCode:i})},...l?[{source:String(l),label:String(l),renderComponent:e=>u(vn,{...e,year:l,prevYear:n,exchangeRate:t,withoutCurrencyCode:i})}]:[]],gn=e=>{const{fullData:l}=e,n=v.exports.useMemo((()=>l),[l]),[t,i]=v.exports.useState(null),[o,a]=v.exports.useState(null),r=v.exports.useMemo((()=>{var e;return null==(e=null==n?void 0:n.financialReports)?void 0:e.map((e=>null==e?void 0:e.year))}),[n]),d=v.exports.useMemo((()=>null==r?void 0:r.map((e=>({value:e,label:e})))),[r]),c=v.exports.useMemo((()=>{var e,l,t;let i=[];const o=null==(t=null==(l=null==(e=null==n?void 0:n.financialReports)?void 0:e[0])?void 0:l.currency)?void 0:t.code;return o&&i.push(o),["USD","EUR"].forEach((e=>{e!==o&&i.push(e)})),i}
1),[n]),m=v.exports.useMemo((()=>null==c?void 0:c.map((e=>({value:e,label:e})))),[c]),f=v.exports.useMemo((()=>null==r?void 0:r.findIndex((e=>e===t))),[r,t]),h=v.exports.useMemo((()=>(null==r?void 0:r[f+1])||null),[r,f]),p=v.exports.useMemo((()=>(null==r?void 0:r[f+2])||null),[r,f]),g=v.exports.useMemo((()=>{var e,l;const t=null==(l=null==(e=null==n?void 0:n.financialReports)?void 0:e[f])?void 0:l.currency;return o===(null==t?void 0:t.code)?1:"USD"===o&&(null==t?void 0:t.exchangeRateUSD)?null==t?void 0:t.exchangeRateUSD:"EUR"===o&&(null==t?void 0:t.exchangeRateEUR)?null==t?void 0:t.exchangeRateEUR:1}),[n,o,f]),C=v.exports.useMemo((()=>[{title:"ÐоÑ
од Ð¾Ñ Ð¿Ñодаж",field:Cn,children:[{title:"CебеÑÑоимоÑÑÑ Ð¿Ñодаж",field:["f2120"]},{title:"Ð¾Ñ ÑвÑзаннÑÑ
пÑедпÑиÑÑий",field:["A_J"]},{title:"ЧиÑÑÐ°Ñ Ð²ÑÑÑÑка Ð¾Ñ Ð¿Ñодажи ÑоваÑов",field:["A_I"]},{title:"Ðзменение в баланÑе пÑодÑкÑии",field:["A_II"]},{title:"СÑоимоÑÑÑ Ð¸Ð·Ð³Ð¾ÑÐ¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿ÑодÑкÑии Ð´Ð»Ñ ÑобÑÑвеннÑÑ
нÑжд",field:["A_III"]},{title:"ЧиÑÑÐ°Ñ Ð²ÑÑÑÑка Ð¾Ñ Ð¿Ñодажи ÑоваÑов и маÑеÑиалов",field:["A_IV"]},{title:"СебеÑÑоимоÑÑÑ ÑеализованнÑÑ
ÑоваÑов",field:["costOfGoodsSold"]}]},{title:"ÐоÑ
од Ð¾Ñ Ð¿Ñодаж",field:["ProfitLoss_II"]},{title:"СебеÑÑоимоÑÑÑ ÑеализованнÑÑ
ÑоваÑов",field:["f2_011"]},{title:"ЧиÑÑÑй обоÑоÑ",field:["netTurnover"],children:[{title:"СебеÑÑоимоÑÑÑ ÑеализованнÑÑ
ÑоваÑов",field:["byFunctionCostOfGoodsSold"]}]},{title:"ÐÐ°Ð»Ð¾Ð²Ð°Ñ Ð¿ÑибÑлÑ",field:["f2_012","f2100","byFunctionGrossProfit","I","grossProfit"],children:[{title:"ÐоммеÑÑеÑкие ÑаÑÑ
одÑ",field:["f2_013","f2210","byFunctionSellingExpenses","distributionExpenses"]},{title:"ÐдминиÑÑÑаÑивнÑе ÑаÑÑ
одÑ",field:["f2_014","f2220","byFunctionAdministrativeExpenses","administrativeExpenses"]},{title:"РаÑÑ
Ð¾Ð´Ñ Ð½Ð° маÑеÑиалÑ",field:["byNatureMaterialExpenses"]},{title:"ÐаÑÑаÑÑ Ð½Ð° пеÑÑонал",field:["byNatureLabourExpenses"]},{title:"ÐоÑÑекÑиÑовки на обеÑÑенение",field:["byNatureDepreciationExpenses"]},{title:"ÐÑоÑие ÑаÑÑ
одÑ",field:["f2_015"]},{title:"ÐÑоÑие доÑ
одÑ",field:["f2_016"]},{title:"ÐÑоÑие опеÑаÑионнÑе доÑ
одÑ",field:["byFunctionOtherOperatingRevenues","otherOperatingIncome"]},{title:"ÐÑоÑие опеÑаÑионнÑе ÑаÑÑ
одÑ",field:["otherOperatingExpenses"]},{title:"ФинанÑовÑй доÑ
од",field:["otherInterestRevenues"]},{title:"ФинанÑовÑе ÑаÑÑ
одÑ",field:["interestExpenses"]},{title:"ÐÑедваÑиÑелÑнÑе ÑаÑÑ
одÑ",field:["upfrontExpenditure"]}]},{title:"ÐÑибÑÐ»Ñ Ð¾Ñ Ð¿Ñодаж",field:["f2200","C"],children:[{title:"ÐÑоÑие ÑаÑÑ
Ð¾Ð´Ñ Ð¸ ÑбÑÑки",field:["f2350"]},{title:"ÐÑоÑÐ°Ñ Ð¿ÑибÑÐ»Ñ Ð¸ доÑ
одÑ",field:["f2340"]},{title:"ÐÑоÑенÑнÑй доÑ
од Ð¾Ñ ÑовмеÑÑнÑÑ
пÑедпÑиÑÑий",field:["f2310"]},{title:"ÐÑоÑенÑÑ Ðº полÑÑÐµÐ½Ð¸Ñ Ð¸ аналогиÑнÑе доÑ
одÑ",field:["f2320"]},{title:"ÐÑоÑенÑÑ Ðº ÑплаÑе и аналогиÑнÑе ÑаÑÑ
одÑ",field:["f2330"]},{title:"ÐмоÑÑизаÑÐ¸Ñ Ð¸ ÑпиÑÐ°Ð½Ð¸Ñ Ð¿Ð¾ ÑаÑÑ
одам на ÑоÑмиÑование ÑаÑÑ
одов на ÑоÑмиÑование ÑаÑÑ
одов, немаÑеÑиалÑнÑÑ
и маÑеÑиалÑнÑÑ
акÑивов маÑеÑиалÑнÑе акÑивÑ",field:["otherData.TangibleFixedAssetsDepreciationsAmountWrittenDownRecorded"]},{title:"ÐÑоÑие опеÑаÑионнÑе ÑаÑÑ
одÑ",field:["otherData.MiscellaneousOperatingCharges"]}]},{title:"ÐпеÑаÑÐ¸Ð¾Ð½Ð½Ð°Ñ Ð¿ÑибÑлÑ",field:["f2_020","otherData.OperatingProfitLoss","F","operatingProfit","ProfitLoss_OR"],children:[{title:"ÐоÑ
од Ð¾Ñ ÑинанÑиÑованиÑ",field:["f2_021"]},{title:"РаÑÑ
Ð¾Ð´Ñ Ð½Ð° ÑинанÑиÑование",field:["f2_022"]},{title:"ÐÐ¾Ð»Ñ Ð¾ÑганизаÑии в пÑибÑли (ÑбÑÑке) аÑÑоÑииÑованнÑÑ
компаний и ÑовмеÑÑнÑÑ
пÑедпÑиÑÑий, ÑÑиÑÑваемÑÑ
по меÑÐ¾Ð´Ñ Ð´Ð¾Ð»ÐµÐ²Ð¾Ð³Ð¾ ÑÑаÑÑиÑ",field:["f2_023"]},{title:"ФинанÑÐ¾Ð²Ð°Ñ Ð¿ÑибÑÐ»Ñ Ð¾Ñ Ð¾Ð¿ÐµÑаÑионной деÑÑелÑноÑÑи",field:["financialProfitFromOperatingActivity"]},{title:"ÐпеÑаÑии Ñ Ð¾ÑновнÑми и иÑклÑÑиÑелÑнÑми акÑивами",field:["operationsWithFixedAndExceptionalAssets"]}]},{title:"РаÑÑ
Ð¾Ð´Ñ Ð½Ð° опеÑаÑионнÑÑ Ð´ÐµÑÑелÑноÑÑÑ",field:["B"],children:[{title:"ÐмоÑÑизаÑиÑ",field:["B_I"]},{title:"РаÑÑ
од маÑеÑиалов и ÑнеÑгии",field:["B_II"]},{title:"УÑлÑги аÑÑÑоÑÑинга",field:["B_III"]},{title:"Ðалоги и ÑбоÑÑ",field:["B_IV"]},{title:"ÐознагÑаждениÑ",field:["B_V"]},{title:"СоÑиалÑное ÑÑÑаÑ
ование и дÑÑгие вÑплаÑÑ",field:["B_VI"]},{title:"ÐÑоÑие ÑаÑÑ
Ð¾Ð´Ñ Ð¿Ð¾ Ñ
аÑакÑеÑÑ",field:["B_VII"]},{title:"СÑоимоÑÑÑ Ð¿ÑоданнÑÑ
ÑоваÑов и маÑеÑиалов",field:["B_VIII"]}]},{title:"ÐÑоÑие опеÑаÑионнÑе доÑ
одÑ",field:["D"],children:[{title:"СÑбÑидии",field:["D_II"]},{title:"ÐÑоÑие опеÑаÑионнÑе доÑ
одÑ",field:["D_IV"]}]},{title:"ÐÑоÑие опеÑаÑионнÑе ÑаÑÑ
одÑ",field:["E"],children:[{title:"УбÑÑок Ð¾Ñ Ð²ÑбÑÑÐ¸Ñ Ð½ÐµÑинанÑовÑÑ
маÑеÑиалÑнÑÑ
акÑивов",field:["E_I"]},{title:"ÐеÑеоÑенка неÑинанÑовÑÑ
акÑивов",field:["E_II"]},{title:"ÐÑоÑие опеÑаÑионнÑе ÑаÑÑ
одÑ",field:["E_III"]}]},{title:"ФинанÑовÑй доÑ
од",field:["otherData.FinancialIncome","G"],children:[{title:"ÐовÑоÑÑÑÑиеÑÑ ÑиÐ
1½Ð°Ð½ÑовÑе доÑ
одÑ",field:["otherData.FinancialIncomeNonRecurringFinancialIncomeIncluded"]},{title:"ÐÑоÑенÑÑ",field:["G_II"]},{title:"ÐеÑеоÑенка ÑинанÑовÑÑ
акÑивов",field:["G_IV"]},{title:"ÐÑоÑее",field:["G_V"]},{title:"ÐÑоÑенÑÑ",field:["F_II"]}]},{title:"ФинанÑовÑе ÑаÑÑ
одÑ",field:["otherData.FinancialChargesNonRecurringFinancialChargesIncluded"],children:[{title:"ÐовÑоÑÑÑÑиеÑÑ ÑинанÑовÑе доÑ
одÑ",field:["otherData.FinancialCharges"]}]},{title:"ФинанÑовÑе заÑÑаÑÑ",field:["H"],children:[{title:"ÐÑоÑенÑÑ",field:["H_I","G_I"]},{title:"ÐеÑеоÑенка ÑинанÑовÑÑ
акÑивов",field:["H_III"]},{title:"ÐÑоÑее",field:["H_IV"]}]},{title:"ÐÑибÑÐ»Ñ Ð´Ð¾ налогообложениÑ",field:["f2_100","f2300","otherData.GainLossBeforeTaxes","incomeBeforeIncomeTaxes","profitBeforeTaxation"],children:[{title:"РаÑÑ
Ð¾Ð´Ñ Ð¿Ð¾ подоÑ
Ð¾Ð´Ð½Ð¾Ð¼Ñ Ð½Ð°Ð»Ð¾Ð³Ñ",field:["f2_101"]},{title:"Ðалог на пÑибÑлÑ",field:["f2410"]},{title:"ÐÑоÑее",field:["f2460"]},{title:"ÐодоÑ
однÑй налог",field:["otherData.IncomeTaxes"]},{title:"ÐоÑпоÑаÑивнÑй подоÑ
однÑй налог",field:["provisionForIncomeTaxes"]},{title:"РаÑÑ
Ð¾Ð´Ñ Ð½Ð° коÑпоÑаÑивнÑй налог",field:["expenditureOnCorporationTax"]}]},{title:"Ðалог на пÑибÑлÑ",field:["J"]},{title:"ЧиÑÑÐ°Ñ Ð¿ÑибÑлÑ",field:yn},{title:"ÐÑоÑÐ°Ñ Ð¿ÑибÑÐ»Ñ Ð¸ доÑ
одÑ",field:["f2_400"],children:[{title:"ÐкÑÑаÑнÑе пÑибÑли (ÑбÑÑки) по пенÑионнÑм обÑзаÑелÑÑÑвам",field:["f2_413"]},{title:"ÐалоговÑй ÑÑÑÐµÐºÑ ÐºÐ¾Ð¼Ð¿Ð¾Ð½ÐµÐ½Ñов пÑоÑего ÑовокÑпного доÑ
ода",field:["f2_420"]}]},{title:"ÐоÑÑекÑиÑовки ÑÑоимоÑÑи и ÑезеÑÐ²Ñ Ð² ÑинанÑовой ÑÑеÑе",field:["ProfitLoss_I"]},{title:"ÐÑоговÑй доÑ
од",field:["totalRevenue"],children:[{title:"ÐÑого ÑаÑÑ
одов",field:["totalExpenditure"]}]},{title:"ÐÑого ÑовокÑпнÑй доÑ
од",field:["f2_500"]}]),[]),y=v.exports.useMemo((()=>[{title:"ТекÑÑие акÑивÑ",field:["f1_100","currentAssets"],children:[{title:"ÐенежнÑе ÑÑедÑÑва и пÑоÑие ÑинанÑовÑе акÑивÑ",field:["f1_010"]},{title:"ÐенежнÑе ÑÑедÑÑва",field:["cash"]},{title:"ÐÑоÑие кÑаÑкоÑÑоÑнÑе ÑинанÑовÑе акÑивÑ",field:["f1_015"]},{title:"ÐÑаÑкоÑÑоÑÐ½Ð°Ñ ÑоÑÐ³Ð¾Ð²Ð°Ñ Ð¸ пÑоÑÐ°Ñ Ð´ÐµÐ±Ð¸ÑоÑÑÐºÐ°Ñ Ð·Ð°Ð´Ð¾Ð»Ð¶ÐµÐ½Ð½Ð¾ÑÑÑ",field:["f1_016"]},{title:"ТекÑÑий налог на пÑибÑлÑ",field:["f1_017"]},{title:"ÐапаÑÑ",field:["f1_018"]},{title:"ÐебиÑоÑÑÐºÐ°Ñ Ð·Ð°Ð´Ð¾Ð»Ð¶ÐµÐ½Ð½Ð¾ÑÑÑ",field:["receivables"]},{title:"ÐÑоÑие кÑаÑкоÑÑоÑнÑе акÑивÑ",field:["f1_019"]}]},{title:"ÐкÑÐ¸Ð²Ñ (или гÑÑÐ¿Ð¿Ñ Ð²ÑбÑÑиÑ), пÑедназнаÑеннÑе Ð´Ð»Ñ Ð¿Ñодажи",field:["f1_101"]},{title:"ÐнеобоÑоÑнÑе акÑивÑ",field:["f1_200"],children:[{title:"ФинанÑовÑе акÑивÑ, имеÑÑиеÑÑ Ð² налиÑии Ð´Ð»Ñ Ð¿Ñодажи",field:["f1_110"]},{title:"ÐÑоÑие внеобоÑоÑнÑе ÑинанÑовÑе акÑивÑ",field:["f1_114"]},{title:"ÐолгоÑÑоÑÐ½Ð°Ñ ÑоÑÐ³Ð¾Ð²Ð°Ñ Ð¸ пÑоÑÐ°Ñ Ð´ÐµÐ±Ð¸ÑоÑÑÐºÐ°Ñ Ð·Ð°Ð´Ð¾Ð»Ð¶ÐµÐ½Ð½Ð¾ÑÑÑ",field:["f1_115"]},{title:"ÐнвеÑÑиÑии, ÑÑиÑÑваемÑе по меÑÐ¾Ð´Ñ Ð´Ð¾Ð»ÐµÐ²Ð¾Ð³Ð¾ ÑÑаÑÑиÑ",field:["f1_116"]},{title:"ÐÑновнÑе ÑÑедÑÑва",field:["f1_118"]},{title:"ÐемаÑеÑиалÑнÑе акÑивÑ",field:["f1_121"]},{title:"ÐÑложеннÑе налоговÑе акÑивÑ",field:["f1_122"]},{title:"ÐÑоÑие внеобоÑоÑнÑе акÑивÑ",field:["f1_123"]}]},{title:"ÐÑего акÑивов",field:["otherData.Assets","totalAssets","Aktywa","assets"],children:[{title:"ÐнеобоÑоÑнÑе акÑивÑ",field:["otherData.FixedAssetsFormationExpensesExcluded","totalNonCurrentAssets","nonCurrentAssets"]},{title:"ТекÑÑие акÑивÑ",field:["otherData.CurrentsAssets","totalCurrentAssets","Aktywa_B"]},{title:"ÐÑновнÑе ÑÑедÑÑва",field:["Aktywa_A"]}]},{title:"ÐÑновнÑе ÑÑедÑÑва",field:["fixedAssets"],children:[{title:"ÐаÑеÑиалÑнÑе акÑивÑ",field:["tangibleAssets"]}]},{title:"ЧиÑÑÑе ÑекÑÑие акÑÐ¸Ð²Ñ Ð¸Ð»Ð¸ обÑзаÑелÑÑÑва",field:["netCurrentAssetsLiabilities"],children:[{title:"ÐÑедиÑоÑÑ ÑÑммÑ, подлежаÑие погаÑÐµÐ½Ð¸Ñ Ð² ÑеÑение одного года",field:[""]}]},{title:"ЧиÑÑÑе акÑÐ¸Ð²Ñ Ð¸Ð»Ð¸ обÑзаÑелÑÑÑва",field:["netAssetsLiabilities"],children:[{title:"ÐÑого акÑÐ¸Ð²Ñ Ð·Ð° вÑÑеÑом ÑекÑÑиÑ
обÑзаÑелÑÑÑв",field:["totalAssetsLessCurrentLiabilities"]}]}
1,{title:"ÐапиÑал и ÑезеÑвÑ",field:[],children:[{title:"УÑÑавной капиÑал",field:["shareCapital"]},{title:"РезеÑÐ²Ñ Ð¿ÑибÑлей и ÑбÑÑков",field:["profitLossReserves"]}]},{title:"РезеÑвÑ",field:["provisions"]},{title:"ÐбÑий капиÑал",field:["totalEquity"]},{title:"ÐплаÑеннÑй ÑÑÑавной капиÑал",field:["paidShareCapital"]}]),[]),_=v.exports.useMemo((()=>[{title:"СоÑÑÑдники",field:["numberOfEmployees","employees"]}]),[]),b=v.exports.useMemo((()=>[{title:"ÐпеÑаÑионнÑй денежнÑй поÑок по коÑÐ²ÐµÐ½Ð½Ð¾Ð¼Ñ Ð¼ÐµÑодÑ",field:[""],children:[{title:"ЧиÑÑÑй опеÑаÑионнÑй денежнÑй поÑок",field:["cfoImNetOperatingCashFlow"]},{title:"ÐÑибÑÐ»Ñ Ð¸Ð»Ð¸ ÑбÑÑок до коÑÑекÑиÑовки влиÑÐ½Ð¸Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ð¹ в обоÑоÑном капиÑале и кÑаÑкоÑÑоÑной кÑедиÑоÑÑкой задолженноÑÑи",field:["cfoImIncomeBeforeChangesInWorkingCapital"]},{title:"ÐÑибÑÐ»Ñ Ð¸Ð»Ð¸ ÑбÑÑок до ÑплаÑÑ ÐºÐ¾ÑпоÑаÑивного налога",field:["cfoImIncomeBeforeIncomeTaxes"]}]},{title:"ЧиÑÑÑй денежнÑй поÑок Ð¾Ñ Ð¸Ð½Ð²ÐµÑÑиÑионной деÑÑелÑноÑÑи",field:["cfiNetInvestingCashFlow"],children:[{title:"ÐолÑÑеннÑе пÑоÑенÑÑ",field:["cfiInterestReceived"]},{title:"ÐÑÑÑÑка Ð¾Ñ Ð¿Ð¾Ð³Ð°ÑÐµÐ½Ð¸Ñ ÐºÑедиÑов",field:["cfiRepaymentsOfLoansReceived"]},{title:"ÐÑданнÑе кÑедиÑÑ",field:["cfiLoansMade"]},{title:"ÐоÑÑÑÐ¿Ð»ÐµÐ½Ð¸Ñ Ð¾Ñ Ð¿Ñодажи оÑновнÑÑ
ÑÑедÑÑв и немаÑеÑиалÑнÑÑ
акÑивов",field:["cfiSaleProceedsFromFixedAssetsIntangibleAssets"]},{title:"ÐÑиобÑеÑение оÑновнÑÑ
ÑÑедÑÑв и немаÑеÑиалÑнÑÑ
акÑивов",field:["cfiAcquisitionOfFixedAssetsIntangibleAssets"]}]},{title:"ЧиÑÑÑй денежнÑй поÑок Ð¾Ñ ÑинанÑовой деÑÑелÑноÑÑи",field:["cffNetFinancingCashFlow"],children:[{title:"ÐаймÑ",field:["cffLoansReceived"]},{title:"ÐÑплаÑеннÑе дивидендÑ",field:["cffDividendsPaid"]},{title:"РаÑÑ
Ð¾Ð´Ñ Ð½Ð° погаÑение займов",field:["cffRepaymentsOfLoansMade"]},{title:"РаÑÑ
Ð¾Ð´Ñ Ð½Ð° вÑкÑп аÑендованного акÑива",field:["cffRepaymentsOfLeaseObligations"]}]},{title:"ÐÐ±Ð·Ð¾Ñ Ð´ÐµÐ½ÐµÐ¶Ð½ÑÑ
ÑÑедÑÑв",field:[""],children:[{title:"РезÑлÑÑÐ°Ñ ÐºÐ¾Ð»ÐµÐ±Ð°Ð½Ð¸Ð¹ валÑÑнÑÑ
кÑÑÑов",field:["effectOfExchangeRateChange"]},{title:"ЧиÑÑое ÑвелиÑение или ÑменÑÑение денежнÑÑ
ÑÑедÑÑв и иÑ
ÑквиваленÑов",field:["netIncrease"]},{title:"ÐенежнÑе ÑÑедÑÑва и иÑ
ÑквиваленÑÑ Ð½Ð° наÑало оÑÑеÑного года",field:["atBeginningOfYear"]},{title:"ÐенежнÑе ÑÑедÑÑва и иÑ
ÑквиваленÑÑ Ð½Ð° ÐºÐ¾Ð½ÐµÑ Ð¾ÑÑеÑного года",field:["atEndOfYear"]}]}]),[]),k=v.exports.useMemo((()=>[{title:"Opening balance of equity",field:["Capital_I"]},{title:"Opening balance of equity after adjustments",field:["Capital_IA"],children:[{title:"Opening balance of share capital (fund) / subscribed capital",field:["Capital_IA_1"]}]}]),[]),x=v.exports.useMemo((()=>[{title:"ÐÑаÑкоÑÑоÑнÑе обÑзаÑелÑÑÑва",field:["f1_300"],children:[{title:"ÐÑедиÑÑ",field:["f1_210"]},{title:"ÐÑоÑие кÑаÑкоÑÑоÑнÑе ÑинанÑовÑе обÑзаÑелÑÑÑва",field:["f1_212"]},{title:"ÐÑаÑкоÑÑоÑÐ½Ð°Ñ ÑоÑÐ³Ð¾Ð²Ð°Ñ Ð¸ пÑоÑÐ°Ñ ÐºÑедиÑоÑÑÐºÐ°Ñ Ð·Ð°Ð´Ð¾Ð»Ð¶ÐµÐ½Ð½Ð¾ÑÑÑ",field:["f1_213"]},{title:"ÐÑаÑкоÑÑоÑнÑе ÑезеÑвÑ",field:["f1_214"]},{title:"ТекÑÑие обÑзаÑелÑÑÑва по подоÑ
Ð¾Ð´Ð½Ð¾Ð¼Ñ Ð½Ð°Ð»Ð¾Ð³Ñ",field:["f1_215"]},{title:"ÐÑоÑие кÑаÑкоÑÑоÑнÑе обÑзаÑелÑÑÑва",field:["f1_217"]}]},{title:"ÐбÑзаÑелÑÑÑва гÑÑпп вÑбÑÑиÑ, пÑедназнаÑеннÑÑ
Ð´Ð»Ñ Ð¿Ñодажи",field:["f1_301"]},{title:"ÐолгоÑÑоÑнÑе обÑзаÑелÑÑÑва",field:["f1_400"],children:[{title:"ÐÑедиÑÑ",field:["f1_310"]},{title:"ÐÑоÑие долгоÑÑоÑнÑе ÑинанÑовÑе обÑзаÑелÑÑÑва",field:["f1_312"]},{title:"ÐолгоÑÑоÑнÑе ÑезеÑвÑ",field:["f1_314"]},{title:"ÐÑложеннÑе налоговÑе обÑзаÑелÑÑÑва",field:["f1_315"]},{title:"ÐÑоÑие долгоÑÑоÑнÑе обÑзаÑелÑÑÑва",field:["f1_316"]}]}
1,{title:"СобÑÑвеннÑй капиÑал",field:["f1_500"],children:[{title:"УÑÑавной капиÑал",field:["f1_410"]},{title:"РезеÑвÑ",field:["f1_413"]},{title:"ÐеÑаÑпÑÐµÐ´ÐµÐ»ÐµÐ½Ð½Ð°Ñ Ð¿ÑибÑÐ»Ñ (непокÑÑÑÑй ÑбÑÑок)",field:["f1_414"]},{title:"ÐÑого капиÑал, пÑиÑ
одÑÑийÑÑ Ð½Ð° владелÑÑев маÑеÑинÑкой компании",field:["f1_420"]},{title:"ÐÐ¾Ð»Ñ Ð½ÐµÐºÐ¾Ð½ÑÑолиÑÑÑÑиÑ
ÑобÑÑвенников",field:["f1_421"]}]},{title:"Ðолги",field:["debts"]},{title:"ÐÑого капиÑал и обÑзаÑелÑÑÑва",field:["otherData.EquityLiabilities","totalEquities"],children:[{title:"СобÑÑвеннÑй капиÑал",field:["otherData.Equity","equity"]},{title:"Ðолги",field:["otherData.AmountsPayable"]},{title:"РезеÑвÑ",field:["provisions","reserve"]},{title:"РезеÑÐ²Ñ Ð¿ÑибÑлей и ÑбÑÑков",field:["profitLossReserve"]}]},{title:"ÐÑого обÑзаÑелÑÑÑв",field:["Pasywa"],children:[{title:"СобÑÑвеннÑй капиÑал",field:["Pasywa_A"]},{title:"ÐбÑзаÑелÑÑÑва и ÑезеÑÐ²Ñ Ð¿Ð¾ обÑзаÑелÑÑÑвам",field:["Pasywa_B"]},{title:"ÐÑаÑкоÑÑоÑнÑе обÑзаÑелÑÑÑва",field:["shortTermLiabilities"]},{title:"ÐолгоÑÑоÑнÑе обÑзаÑелÑÑÑва",field:["longTermLiabilities"]},{title:"РезеÑвÑ",field:["totalProvisions"]}]}]),[]);let D=v.exports.useMemo((()=>hn(C,null==n?void 0:n.financialReports,o,r)),[C,null==n?void 0:n.financialReports,o,r]),N=v.exports.useMemo((()=>hn(y,null==n?void 0:n.financialReports,o,r)),[y,null==n?void 0:n.financialReports,o,r]),M=v.exports.useMemo((()=>hn(x,null==n?void 0:n.financialReports,o,r)),[x,null==n?void 0:n.financialReports,o,r]),w=v.exports.useMemo((()=>hn(b,null==n?void 0:n.financialReports,o,r)),[b,null==n?void 0:n.financialReports,o,r]),F=v.exports.useMemo((()=>hn(k,null==n?void 0:n.financialReports,o,r)),[k,null==n?void 0:n.financialReports,o,r]),E=v.exports.useMemo((()=>hn(_,null==n?void 0:n.financialReports,o,r)),[_,null==n?void 0:n.financialReports,o,r]);return v.exports.useEffect((()=>{var e;i(null==(e=null==d?void 0:d[0])?void 0:e.value)}),[d]),v.exports.useEffect((()=>{var e;a(null==(e=m[0])?void 0:e.value)}),[m]),s("div",{children:[u("h3",{className:"full-financial-report__title",children:"ÐолнÑй оÑÑеÑ"}),s("div",{className:"full-financial-report__switchers",children:[(null==d?void 0:d.length)>0?u(un,{config:d,setCurrentValue:i,value:t}):null,(null==c?void 0:c.length)>0?u(un,{config:m,setCurrentValue:a,value:o}):null]}),D&&(null==D?void 0:D.length)>0?u(cn,{title:"ÐоÑ
одÑ",config:pn(t,h,p,g),tableData:D}):null,N&&(null==N?void 0:N.length)>0?u(cn,{title:"ÐкÑивÑ",config:pn(t,h,p,g),tableData:N}):null,M&&(null==M?void 0:M.length)>0?u(cn,{title:"ÐапиÑал и обÑзаÑелÑÑÑва",config:pn(t,h,p,g),tableData:M}):null,w&&(null==w?void 0:w.length)>0?u(cn,{title:"ÐенежнÑй поÑок",config:pn(t,h,p,g),tableData:w}):null,F&&(null==F?void 0:F.length)>0?u(cn,{title:"Changes in equity",config:pn(t,h,p,g),tableData:F}):null,E&&(null==E?void 0:E.length)>0?u(cn,{title:"ÐÑоÑее",config:pn(t,h,p,g,!0),tableData:E}):null]})},Cn=["f2_010","salesRevenue","f2110","netSales","A","ProfitLoss_I"],yn=["f2_300","netProfit","netIncome","f2400","L"],_n=[{source:"year",label:"Ðод"},{source:["f2_010","netTurnover"],label:"ЧиÑÑÑй обоÑоÑ",renderComponent:e=>u(xn,{...e})},{source:Cn,label:"ЧиÑÑÑе пÑодажи",renderComponent:e=>u(xn,{...e})},{source:yn,label:"ЧиÑÑÐ°Ñ Ð¿ÑибÑлÑ",renderComponent:e=>u(xn,{...e})},{source:["f1_100","f1200"],label:"ÐбоÑоÑнÑе акÑивÑ",renderComponent:e=>u(xn,{...e})},{source:["fixedAssets"],label:"ÐÑновнÑе ÑÑедÑÑва",renderComponent:e=>u(xn,{...e})},{source:["assets","totalAssets","Aktywa"],label:"ÐÑего акÑивов",renderComponent:e=>u(xn,{...e})},{source:["employees"],label:"ÐолиÑеÑÑво ÑоÑÑÑдников"}
1,{source:["totalEquity"],label:"ÐбÑий капиÑал",renderComponent:e=>u(xn,{...e})}],bn=e=>{const{data:l,fullData:n,handleLoadFullData:t,setLoadedFullData:i}=e,{showModal:o}=X(),a=v.exports.useMemo((()=>(null==n?void 0:n.financialReports)||(null==l?void 0:l.financialReports)||[]),[n,l]),r=v.exports.useMemo((()=>null==l?void 0:l.closestCompaniesByMainActivityTurnover),[l]),d=v.exports.useMemo((()=>null==l?void 0:l.closestCompaniesByProfit),[l]),c=v.exports.useCallback((e=>{o(u(gn,{fullData:e}),"popup--large")}),[o]),m=v.exports.useCallback((e=>{i(e),c(e)}),[c,i]);return s(w,{children:[s(U,{children:[u("h2",{id:"tax-section-info",children:"ФинанÑовÑе оÑÑеÑÑ"}),u(Pl,{data:null==a?void 0:a.slice(0,3),config:_n}),u(kl,{clickHandler:()=>{t(c,m)}})]}),r&&(null==r?void 0:r.length)>0||d&&(null==d?void 0:d.length)>0?s("div",{className:"checking-foreign-detail__closest-companies",children:[(null==r?void 0:r.length)>0?u(dn,{items:r,title:"РейÑинг по Ð²Ð¸Ð´Ñ Ð´ÐµÑÑелÑноÑÑи"}):null,(null==d?void 0:d.length)>0?u(dn,{items:d,title:"РейÑинг по пÑибÑли"}):null]}):null]})},kn=e=>"number"==typeof e&&isNaN(e)?"*":e>=0?Z(e):`-${Z(-1*e)}`,xn=e=>{var l,n,t,i,o,a,r,d,c,v,m,f;if("0"===e.cellData)return u("td",{className:"ved-table__cell",children:"-"});const h=Number(null==e?void 0:e.cellData),p=q("ved-table__cell checking-foreign-detail__financial-cell",{"checking-foreign-detail__financial-cell_danger":h<0}),g=(null==(n=null==(l=null==e?void 0:e.item)?void 0:l.currency)?void 0:n.code)&&"USD"!==(null==(i=null==(t=null==e?void 0:e.item)?void 0:t.currency)?void 0:i.code)?Math.round(h/(null==(a=null==(o=null==e?void 0:e.item)?void 0:o.currency)?void 0:a.exch
1angeRateUSD)):h;return s("td",{className:p,children:[u("div",{className:"checking-foreign-detail__financial-cell_currency",children:`${kn(h)||""} ${(null==(d=null==(r=null==e?void 0:e.item)?void 0:r.currency)?void 0:d.code)||""}`}),(null==(v=null==(c=null==e?void 0:e.item)?void 0:c.currency)?void 0:v.code)&&"USD"!==(null==(f=null==(m=null==e?void 0:e.item)?void 0:m.currency)?void 0:f.code)?u("div",{className:"checking-foreign-detail__financial-cell_usd",children:`(~${g<0?"-":""}$${kn(Math.abs(g))||""})`}):null]})},Dn=e=>{const{shortName:l,address:n,mainActivity:t,dateCreated:i,lei:o,currentEmployeesNumber:a,financialReports:r}=e,d=v.exports.useMemo((()=>r&&(null==r?void 0:r.length)>0&&Array.isArray(r)?Cn.find((e=>Object.hasOwn(r[0],e))):void 0),[r]),c=v.exports.useMemo((()=>r&&(null==r?void 0:r.length)>0&&Array.isArray(r)?yn.find((e=>Object.hasOwn(r[0],e))):void 0),[r]),m=v.exports.useMemo((()=>d&&r?r[0][d]:void 0),[d,r]),f=v.exports.useMemo((()=>c&&r?r[0][c]:void 0),[c,r]),h=v.exports.useMemo((()=>{var e;return r&&(null==r?void 0:r.length)>0&&Array.isArray(r)?null==(e=r[0])?void 0:e.employees:void 0}),[r]),p=v.exports.useMemo((()=>{var e,l;return r&&(null==r?void 0:r.length)>0&&Array.isArray(r)?null==(l=null==(e=r[0])?void 0:e.currency)?void 0:l.exchangeRateUSD:void 0}),[r]),g=v.exports.useMemo((()=>{var e,l;return r&&(null==r?void 0:r.length)>0&&Array.isArray(r)?null==(l=null==(e=r[0])?void 0:e.currency)?void 0:l.code:void 0}),[r]),C=v.exports.useMemo((()=>"USD"===g?m:m&&p?Math.round(m/p):void 0),[m,p,g]),y=v.exports.useMemo((()=>"USD"===g?f:f&&p?Math.round(f/p):void 0),[f,p,g]),_=v.exports.useMemo((()=>[...l&&n?[{question:`Ðде наÑ
одиÑÑÑ ÑÑаб-кваÑÑиÑа ${l}?`,answer:`ШÑаб-кваÑÑиÑа ${l} наÑ
одиÑÑÑ Ð¿Ð¾ адÑеÑÑ ${n}`}]:[],...l&&t?[{question:`Ðакова оÑÑаÑÐ»Ñ ${l}?`,answer:`ÐÑÑаÑÐ»Ñ ${l} - ${t}.`}]:[],...l&&a?[{question:`СколÑко ÑоÑÑÑдников ÑабоÑÐ°ÐµÑ Ð² ${l}?`,answer:`${l} Ð¸Ð¼ÐµÐµÑ ${a} ÑоÑÑÑдников.`}]:[],...l&&i?[{question:`Ркаком Ð³Ð¾Ð´Ñ Ð±Ñла оÑнована ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ ${l}?`,answer:`${l} бÑла оÑнована в ${(null==i?void 0:i.includes("*"))?i:j(new Date(i),"yyyy",{locale:H})} годÑ`}]:[],...l&&o?[{question:`Ðакой Ð½Ð¾Ð¼ÐµÑ LEI Ñ ${l}?`,answer:`${l} ÐÐ¾Ð¼ÐµÑ LEI - ${o}`}]:[],...l&&C?[{question:`Ðакой обÑем пÑодаж Ñ ${l}?`,answer:`ÐбÑем пÑодаж ${l} ÑоÑÑавлÑÐµÑ ${C<0?"-":""}$${Z(Math.abs(C))}`}]:[],...l&&h?[{question:`СколÑко ÑоÑÑÑдников ÑабоÑÐ°ÐµÑ Ð² ${l}?`,answer:`${l} Ð¸Ð¼ÐµÐµÑ ${h} ÑоÑÑÑдников`}]:[],...l&&y?[{question:`СколÑко пÑибÑли пÑиноÑÐ¸Ñ ${l}?`,answer:`ÐÑибÑÐ»Ñ ${l} ÑоÑÑавлÑÐµÑ ${y<0?"-":""}$${Z(Math.abs(y))}`}]:[]]),[l,n,t,i,o,a,C,y,h]);return s(U,{children:[u("h2",{id:"faq-info",children:"FAQ"}),u("div",{className:"checking-foreign-detail__faq-elements",children:_.map(((e,l)=>u(Nn,{item:e},"faq-"+l)))})]})};function Nn({item:e}){return u(ne,{title:e.question,withoutBackground:!0,children:e.answer})}const Mn=e=>{let l=!1;return null==e||e.forEach((e=>{var n,t;(null==(n=null==e?void 0:e.companies)?void 0:n.length)&&(null==(t=null==e?void 0:e.companies)?void 0:t.length)>0&&(l=!0)})),l},wn=e=>{const{addresses:l,persons:n,personsCount:t,country:i,loadedFullData:o,handleFullContacts:a}=e,r=v.exports.useMemo((()=>Mn(n)),[n]),d=v.exports.useMemo((()=>Mn(l)),[l]),c=v.exports.useMemo((()=>t&&(null==n?void 0:n.length)&&Number(t)&&Number(t)>(null==n?void 0:n.length)),[t,n]);return s("div",{className:"checking-foreign-detail__related-companies",id:"related-info",children:[d?u("div",{children:l&&(null==l?void 0:l.length)>0?u(Fn,{title:"СвÑзаннÑе компании по адÑеÑÑ",content:l.map(((e,l)=>{var n,t;return(null==e?void 0:e.companies)&&(null==(n=null==e?void 0:e.companies)?void 0:n.length)>0?s("div",{className:"related-company__content-block",children:[u(Ln,{type:"address",countryCode:null==i?void 0:i.code,countryName:(null==(t=null==i?void 0:i.translation)?void 0:t.ru)||(null==i?void 0:i.name),children:u("div",{className:"related-company__address",children:null==e?void 0:e.address})}),u(En,{links:null==e?void 0:e.companies})]},"addresses-"+l):null}))}):null}):null,r||(null==n?void 0:n.length)&&Number(t)&&Number(t)>
1(null==n?void 0:n.length)?u("div",{children:n&&(null==n?void 0:n.length)>0?u(Fn,{title:"СвÑзаннÑе компании по должноÑÑнÑм лиÑам",content:s(w,{children:[n.map(((e,l)=>{var n,t,i,o,a,r,d;return(null==e?void 0:e.companies)&&(null==(n=null==e?void 0:e.companies)?void 0:n.length)>0?s("div",{className:"related-company__content-block",children:[u(Ln,{type:"person",countryCode:null==(t=null==e?void 0:e.person)?void 0:t.countryCode,countryName:null==(o=null==(i=null==e?void 0:e.person)?void 0:i.countryTranslation)?void 0:o.ru,children:s(w,{children:[u(El,{person:e}),u("div",{children:(null==(r=null==(a=null==e?void 0:e.role)?void 0:a.translation)?void 0:r.ru)||(null==(d=null==e?void 0:e.role)?void 0:d.name)})]})},"persons-"+l),u(En,{links:null==e?void 0:e.companies})]},l):null})),c&&!o?u("div",{style:{marginTop:"30px"},children:u(kl,{title:"ÐоказаÑÑ Ð¿Ð¾Ð»Ð½Ñе даннÑе",clickHandler:()=>{a()}})}):null]})}):null}):null]})};function Fn({title:e,content:l,links:n}){return s(U,{children:[u("h3",{className:"related-company__title",children:e}),l]})}const En=e=>{const{links:l}=e;return l?u("div",{className:"related-company__links",children:null==l?void 0:l.map(((e,l)=>{var n;return u("div",{className:"related-company__link",children:(null==(n=null==e?void 0:e.internationalNumber)?void 0:n.includes("*"))?u("span",{className:"checking-foreign-detail__false-link",children:null==e?void 0:e.name}):u(J,{to:"/checking-foreign-counterparty"+((null==e?void 0:e.internationalNumber)?`?search={"search":"${null==e?void 0:e.internationalNumber}"}`:""),children:null==e?void 0:e.name})},"link"+l)}))}):null},Ln=e=>{const{type:l,countryCode:n,countryName:t}=e;return s("div",{className:"related-company__header",children:[s("div",{className:"related-company__header-type",children:[u(Rl,{children:"address"===l?u(Ml,{}):"person"===l?u(Nl,{}):null}),u(Fl,{countryCode:n,countryName:t})]}),e.children]})},In=e=>{const{fullData:l,data:n,handleFullContacts:t,loadedFullData:i,loadingFullData:o}=e,a=v.exports.useMemo((()=>(null==l?void 0:l.affiliates)||(null==n?void 0:n.affiliates)||[]),[null==l?void 0:l.affiliates,null==n?void 0:n.affiliates]),r=v.exports.useMemo((()=>{let e=!1;return null==a||a.forEach((l=>{var n;(null==(n=null==l?void 0:l.name)?void 0:n.includes("*"))&&(e=!0)})),e}),[a]);return s(U,{additionalClassname:"checking-foreign-detail__affiliates",children:[u("h2",{id:"affiliates",children:"ÐÑÑилиаÑÑ"}),o?u(I,{}):s("div",{className:"checking-foreign-detail-affiliates",children:[u("h4",{className:"checking-foreign-detail-affiliates__subtitle",children:"ÐеÑÑнÑе ÑвÑзи"}),u($l,{prefix:"affiliates",additionalClassName:"checking-foreign-detail-affiliates__list",children:a.map(((e,l)=>u(Rn,{affiliat:e},"affiliat-"+l)))})]}),r&&!i?u(kl,{title:"ÐоказаÑÑ Ð¿Ð¾Ð»Ð½Ñе даннÑе",clickHandler:()=>{t()}}):null]})},Rn=({affiliat:e})=>{var l,n;return s("div",{className:"checking-foreign-detail-affiliates-item",children:[u("div",{className:"checking-foreign-detail-affiliates-item__name",children:(null==e?void 0:e.internationalNumber)&&!(null==(l=null==e?void 0:e.name)?void 0:l.includes("*"))?u(J,{to:"/checking-foreign-counterparty"+((null==e?void 0:e.internationalNumber)?`?search={"search":"${null==e?void 0:e.internationalNumber}"}`:""),children:null==e?void 0:e.name}):u("p",{children:null==e?void 0:e.name})}),u(Fl,{countryName:(null==(n=null==e?void 0:e.countryTranslation)?void 0:n.ru)||(null==e?void 0:e.countryName),countryCode:null==e?void 0:e.countryCode})]})},$n=e=>{const{histories:l=[]}=e;return s(w,{children:[u("h2",{className:"checking-foreign-detail__history-title",children:"ÐÑÑоÑиÑ"}),u(Sn,{histories:l,isVertical:!0})]})},An=e=>{const{fullData:l,data:n,handleLoadFullData:t,loading:i,setLoadedFullData:o}=e,{showModal:a}=X();v.exports.useMemo((()=>(null==l?void 0:l.history)||(null==n?void 0:n.history)||[]),[l,n]);const r=v.exports.useMemo((()=>(null==n?void 0:n.historyCount)||0),[n]),d=v.exports.useCallback((e=>{a(u($n,{histories:null==e?void 0:e.history}),"popup--large")}),[a]),c=v.exports.useCallback((e=>{o(e),d(e)}
1),[d,o]),m=v.exports.useMemo((()=>null==n?void 0:n.history.slice(0,3)),[n]);return 0===(null==m?void 0:m.length)?null:s(U,{children:[u("h2",{className:"checking-foreign-detail__history-title",id:"history-info",children:"ÐÑÑоÑиÑ"}),u($l,{prefix:"history-list",children:u(Sn,{histories:[...m].reverse()})}),r>(null==m?void 0:m.length)?u(kl,{clickHandler:()=>{t(d,c)}}):null]})};function Sn({histories:e,isVertical:l}){const n=q("checking-foreign-detail__history-list",{"checking-foreign-detail__history-list_vertical":l});return s("div",{className:n,children:[u("div",{style:{width:"10px",height:"10px"}}),u("div",{className:"checking-foreign-detail__history-dots-wrap"}),u("div",{}),null==e?void 0:e.map(((e,l)=>u(Bn,{history:e,idx:l},"history-"+l)))]})}function Bn({history:e,idx:l}){var n,t,i;const o=l%2==0,a=q("checking-foreign-detail__history-item-content",{"checking-foreign-detail__history-item-content_reverse":!o});return s(w,{children:[o?null:s(w,{children:[u("div",{}),u("div",{className:"checking-foreign-detail__history-dots-wrap",children:u("div",{className:"checking-foreign-detail__history-dots"})})]}),s("div",{className:a,children:[s("div",{className:"checking-foreign-detail__history-event",children:[u("span",{className:"checking-foreign-detail__history-name",children:(null==(t=null==(n=null==e?void 0:e.type)?void 0:n.translation)?void 0:t.ru)||(null==(i=null==e?void 0:e.type)?void 0:i.name)||""}),u("span",{className:"checking-foreign-detail__history-value",children:null==e?void 0:e.value})]}),u("span",{className:"checking-foreign-detail__history-time",children:`${(null==e?void 0:e.startDate)?sl(null==e?void 0:e.startDate,!0):""} - ${(null==e?void 0:e.endDate)?sl(null==e?void 0:e.endDate,!0):""}`})]}),o?s(w,{children:[u("div",{className:"checking-foreign-detail__history-dots-wrap",children:u("div",{className:"checking-foreign-detail__history-dots"})}),u("div",{})]}):null]})}const On=e=>{const{data:l}=e,{shares:n}=l;return s(U,{children:[u("h2",{id:"shares-info",children:"ÐкÑии"}),null==n?void 0:n.map(((e,l)=>u(Tn,{sharesItem:e},"shares-"+l)))]})};function Tn({sharesItem:e}){var l,n,t;return u(z,{title:(null==(n=null==(l=null==e?void 0:e.type)?void 0:l.translation)?void 0:n.ru)||(null==(t=null==e?void 0:e.type)?void 0:t.name)||"",content:s("div",{className:"checking-foreign-detail__multi-line",children:[(null==e?void 0:e.sharesIssued)?u(Pn,{title:"ÐÑпÑÑеннÑе акÑии",content:(null==e?void 0:e.sharesIssued)||""}):null,(null==e?void 0:e.shareParValue)?u(Pn,{title:"СÑоимоÑÑÑ Ð°ÐºÑий",content:(null==e?void 0:e.shareParValue)||""}):null]}),type:"small"})}function Pn({title:e,content:l,fontSize:n,titleBlackColor:t}){const i=q("checking-foreign-detail__shares-item-block",{"checking-foreign-detail__shares-item-block_14":14===n,"checking-foreign-detail__shares-item-block_title-black":t});return s("span",{className:i,children:[u("span",{className:"checking-foreign-detail__shares-subtitle",children:e}),u("span",{className:"checking-foreign-detail__shares-value",children:l})]})}const Vn=e=>{const{data:l}=e,n=null==l?void 0:l.links,t=l.id,i=v.exports.useMemo((()=>n.map((e=>{var l,n,i,o,a,r,d,s,u,c,v,m,f;const h=(null==e?void 0:e.parentId)===t?"child":(null==e?void 0:e.childId)===t?"parent":void 0;return{type:(null==(n=null==(l=null==e?void 0:e.type)?void 0:l.translation)?void 0:n.ru)||(null==(i=null==e?void 0:e.type)?void 0:i.name),name:h?(null==(o=null==e?void 0:e[h])?void 0:o.brandName)||(null==(a=null==e?void 0:e[h])?void 0:a.shortName)||(null==(r=null==e?void 0:e[h])?void 0:r.name):void 0,internationalNumber:h?null==e?void 0:e[h].internationalNumber:void 0,countryCode:h?null==(s=null==(d=null==e?void 0:e[h])?void 0:d.country)?void 0:s.code:void 0,contryName:h?(null==(v=null==(c=null==(u=null==e?void 0:e[h])?void 0:u.country)?void 0:c.translation)?void 0:v.ru)||(null==(f=null==(m=null==e?void 0:e[h])?void 0:m.country)?void 0:f.name):void 0}}))),[n,t]);return s(U,{children:[u("h2",{className:"checking-foreign-detail__history-title",id:"history-info",children:"СвÑзи Ð¼ÐµÐ¶Ð´Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñми"}
1),u(R,{tableData:i,withoutBackground:!0,fullWidth:!0,className:"checking-foreign-detail__table",config:[{source:"type",label:"Тип"},{source:"name",label:"Ðазвание",renderComponent:jn},{source:"countryName",label:"СÑÑана",renderComponent:Hn}]})]})};function jn(e){var l;const{item:n}=e;return u(S,{item:e.item,children:(null==n?void 0:n.countryCode)&&(null==n?void 0:n.internationalNumber)&&(null==n?void 0:n.name)?(null==(l=null==n?void 0:n.internationalNumber)?void 0:l.includes("*"))?u("span",{className:"checking-foreign-detail__false-link",children:n.name}):u(J,{to:`/checking-foreign-counterparty/detail/${n.countryCode}/${encodeURIComponent(n.internationalNumber)}`,children:n.name}):"-"})}function Hn(e){const{item:l}=e;return u(S,{item:e.item,children:(null==l?void 0:l.countryCode)&&(null==l?void 0:l.contryName)?u(Fl,{countryCode:null==l?void 0:l.countryCode,countryName:null==l?void 0:l.contryName}):"-"})}const Un=[{source:"publishDate",label:"ÐаÑа",renderComponent:Tl},{source:"documentName",label:"Ðазвание"},{source:"type",label:"Тип"},{source:"providerUrl",label:"ÐокÑменÑ",renderComponent:e=>u(Ul,{...e,fieldName:"providerUrl"})}],qn=e=>u(Hl,{...e,field:"companyDocuments",fieldCount:"companyDocumentsCount",title:"ÐокÑменÑÑ",config:Un}),Zn=e=>{const{title:l,content:n}=e,{hideModal:t}=X();return s("div",{children:[u("h2",{className:"checking-foreign-detail__risk-modal_title",children:l}),n,u(b,{title:"ÐакÑÑÑÑ",onClick:t})]})},Wn=e=>{const{listTagsFullInfo:l,listTags:n,loadedFullData:t,handleFullContacts:i}=e,{showModal:o}=X(),a=v.exports.useMemo((()=>l||n),[l,n]),r=v.exports.useMemo((()=>null==a?void 0:a.filter((e=>{var l;return"Activities"===(null==(l=null==e?void 0:e.category)?void 0:l.name)}))),[a]),d=v.exports.useMemo((()=>null==a?void 0:a.filter((e=>{var l;return"Procurement"===(null==(l=null==e?void 0:e.category)?void 0:l.name)}))),[a]),c=v.exports.useMemo((()=>null==a?void 0:a.filter((e=>{var l;return"Bankruptcy"===(null==(l=null==e?void 0:e.category)?void 0:l.name)}))),[a]),m=v.exports.useMemo((()=>null==a?void 0:a.filter((e=>{var l;return"Financial Organizations"===(null==(l=null==e?void 0:e.category)?void 0:l.name)}))),[a]),f=v.exports.useMemo((()=>null==a?void 0:a.filter((e=>{var l;return"Public Benefit Organization"===(null==(l=null==e?void 0:e.category)?void 0:l.name)}))),[a]),h=v.exports.useMemo((()=>null==a?void 0:a.filter((e=>{var l;return"Polluting activity"===(null==(l=null==e?void 0:e.category)?void 0:l.name)}))),[a]),p=e=>{var l,n,a,r,d,c,v,m,f;t?o(u(Zn,{title:(null==(l=null==e?void 0:e.translation)?void 0:l.ru)||(null==e?void 0:e.name)||"",content:(null==e?void 0:e.tagEntries)&&0===(null==(n=null==e?void 0:e.tagEntries)?void 0:n.length)?s(w,{children:[u("p",{className:"checking-foreign-detail__risk-modal_text checking-foreign-detail__risk-modal_text-no-contains",children:`Ðе вклÑÑен в ÑпиÑок "${(null==(a=null==e?void 0:e.translation)?void 0:a.ru)||(null==e?void 0:e.name)||""}"`}),u("p",{className:"checking-foreign-detail__risk-modal_text",children:`Ðа Ð¼Ð¾Ð¼ÐµÐ½Ñ Ð¿ÑовеÑки ${m=null==e?void 0:e.updatedAt,f=!0,`${sl(m,f)}, ${new Date(m).toLocaleTimeString("ru-RU",{hour:"2-digit",minute:"2-digit"})}`} даннÑе в ÑпеÑиализиÑованном гоÑÑдаÑÑÑвенном ÑееÑÑÑе оÑÑÑÑÑÑвÑÑÑ`})]}):(null==e?void 0:e.tagEntries)&&(null==(r=null==e?void 0:e.tagEntries)?void 0:r.length)>0?u("div",{className:"checking-foreign-detail__risk-modal_values",children:null==(v=null==(c=null==(d=null==e?void 0:e.tagEntries)?void 0:d[0])?void 0:c.values)?void 0:v.map(((e,l)=>{var n;return u(z,{title:(null==(n=null==e?void 0:e.translation)?void 0:n.ru)||(null==e?void 0:e.name)||"",content:null==e?void 0:e.value,type:"small"},"tag-"+l)}))}):null})):i()};return s("div",{className:"checking-foreign-detail__submenu-footer",children:[c&&(null==c?void 0:c.length)>0||r&&(null==r?void 0:r.length)>0||d&&(null==d?void 0:d.length)>0?s(w,{children:[u("h4",{className:"checking-foreign-detail__risk-title",children:"ФакÑоÑÑ ÑиÑка"}),c&&(null==c?void 0:c.length)>0?u(Yn,{title:"ÐанкÑоÑÑÑво",items:c,loadedFullData:t,handleItem
1Click:p}):null,r&&(null==r?void 0:r.length)>0?u(Yn,{title:"ÐеÑÑелÑноÑÑÑ",items:r,loadedFullData:t,handleItemClick:p}):null,d&&(null==d?void 0:d.length)>0?u(Yn,{title:"ÐакÑпки",items:d,loadedFullData:t,handleItemClick:p}):null]}):null,m&&(null==m?void 0:m.length)>0?s(w,{children:[u("h4",{className:"checking-foreign-detail__risk-title",children:"СпеÑиализиÑованнÑе оÑганизаÑии"}),m&&(null==m?void 0:m.length)>0?u(Yn,{title:"ФинанÑовÑе оÑганизаÑии",items:m,loadedFullData:t,handleItemClick:p,withoutColor:!0}):null]}):null,f&&(null==f?void 0:f.length)>0||h&&(null==h?void 0:h.length)>0?s(w,{children:[u("h4",{className:"checking-foreign-detail__risk-title",children:"ÐÑÑгое"}),h&&(null==h?void 0:h.length)>0?u(Yn,{title:"ÐагÑÑзнÑÑÑÐ°Ñ Ð´ÐµÑÑелÑноÑÑÑ",items:h,loadedFullData:t,handleItemClick:p,withoutColor:!0}):null,f&&(null==f?void 0:f.length)>0?u(Yn,{title:"ÐÑганизаÑÐ¸Ñ Ð¾Ð±ÑеÑÑвенной полÑзÑ",items:f,loadedFullData:t,handleItemClick:p,withoutColor:!0}):null]}):null]})};function Yn({title:e,items:l,loadedFullData:n,handleItemClick:t,withoutColor:i}){const o=v.exports.useMemo((()=>{var e;return null==(e=l.filter((e=>{var l,n;return(null==(l=null==e?void 0:e.tagEntries)?void 0:l.length)&&(null==(n=null==e?void 0:e.tagEntries)?void 0:n.length)>0})))?void 0:e.length}),[l]);return u(ne,{title:e,withoutBackground:!0,withGreyArrow:!0,isOpenByDef:!0,additionalClasses:"checking-foreign-detail__risk-group",contentWithTitle:u(zn,{loadedFullData:n,count:null==l?void 0:l.length,countWithYes:o}),children:null==l?void 0:l.map(((e,l)=>u(Gn,{item:e,loadedFullData:n,handleItemClick:t,withoutColor:i},"item"+l)))})}function Gn({item:e,loadedFullData:l,handleItemClick:n,withoutColor:t}){var i,o,a,r;const d=q("checking-foreign-detail__risk-item-status",{"checking-foreign-detail__risk-item-status_yes":(null==e?void 0:e.tagEntries)&&(null==(i=null==e?void 0:e.tagEntries)?void 0:i.length)>0&&!t,"checking-foreign-detail__risk-item-status_no":(null==e?void 0:e.tagEntries)&&0===(null==(o=null==e?void 0:e.tagEntries)?void 0:o.length)&&!t});return s("div",{className:"checking-foreign-detail__risk-item",onClick:()=>{n(e)},children:[u("div",{className:"checking-foreign-detail__risk-item-name",children:(null==(a=null==e?void 0:e.translation)?void 0:a.ru)||(null==e?void 0:e.name)||""}),u("div",{children:l?u("div",{className:d,children:(null==e?void 0:e.tagEntries)&&(null==(r=null==e?void 0:e.tagEntries)?void 0:r.length)>0?"Ðа":"ÐеÑ"}):u(W,{iconName:Y.QuestionWithCircleBackground})})]})}function zn({loadedFullData:e,count:l,countWithYes:n}){return u("div",{className:"checking-foreign-detail__risk-item-count",children:`[${e?n:"?"}/${l}]`})}const Xn=e=>{const{email:l}=e,{hideModal:n}=X();return s("div",{children:[u("h2",{className:"modal-choose-payment__title",children:"УважаемÑй клиенÑ"}),u("p",{children:`Ðа поÑÑÑ â${l}â оÑпÑавлен ÑÑÐµÑ Ð½Ð° полÑÑение инÑоÑмаÑии по компании. ÐоÑле поÑÑÑÐ¿Ð»ÐµÐ½Ð¸Ñ Ð´ÐµÐ½ÐµÐ¶Ð½ÑÑ
ÑÑедÑÑв инÑоÑмаÑÐ¸Ñ Ð±ÑÐ´ÐµÑ Ð´Ð¾ÑÑÑпна в Ñазделе "Ðои компании"`}),u(b,{title:"Ðк",onClick:n})]})},Jn=[{code:"best2pay",name:"ÐаÑÑой"},{code:"email_with_bill",name:"Ðо ÑÑеÑÑ Ð¾Ñ ÑÑ. лиÑа"}],Kn=e=>{const{countryCode:l,number:n,direction:t="row",blocksList:i=""}=e,{getPaymentLink:o,dataPaymentLink:a}=dl(),{getPaymentLink:r}=dl(),{getPaymentLink:d}=dl(),{showModal:c}=X(),m=v.exports.useMemo((()=>null==a?void 0:a.price),[a]),f=v.exports.useCallback((()=>{c(u(ye,{title:"ÐолÑÑиÑÑ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¿Ð¾ компании",paymentMethods:Jn,paymentDefaultValues:{payment_method:"best2pay"},handleSubmit:e=>{if("best2pay"===(null==e?void 0:e.payment_method)&&n&&l&&r(n,l,!1,"best2pay").then((e=>{var l,n;(null==(l=null==e?void 0:e.link)?void 0:l.link)&&L(null==(n=null==e?void 0:e.link)?void 0:n.link)})),"email_with_bill"===(null==e?void 0:e.payment_method)&&n&&l){const e=e=>{d(n,l,!1,"email_with_bill",e).then((e=>{var l;(null==e?void 0:e.email)&&"Link sent to email"===(null==(l=null==e?void 0:e.link)?void 0:l.link)&&c(u(Xn,{email:null==e?void 0:e.email}),"popup--small")})).catch((e=>{}))};c(u(_e,{handleSubmit:e,title:"ÐолÑÑиÑÑ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¿Ð¾ компании"}),"popup--small")}}}),"popup--small")}),[c,n,l,r,d]);if(v.exports.useEffect((()=>{l&&n&&o(n,l,!0,"best2pay")}),[l,n,o]),!m)return null;const h=q("checking-foreign-error__content",{"checking-foreign-error__content_column":"column"===t});return s("div",{className:h,children:[s("div",{className:"checking-foreign-error__info",children:[u("p",{children:"У ÐÐ°Ñ Ð½ÐµÑ Ð´Ð¾ÑÑÑпнÑÑ
лимиÑов Ð´Ð»Ñ Ð¾ÑкÑÑÑÐ¸Ñ Ð¸Ð½ÑоÑмаÑии по компании."}),i?u("p",{children:`ÐÑ Ð½Ð°Ñли ÑледÑÑÑие даннÑе по ÑÑой компании: ${i}`}):null,u("p",{children:`СÑоимоÑÑÑ Ð¾ÑкÑÑÑÐ¸Ñ Ð´Ð°Ð½Ð½ÑÑ
: ${te(m)}`})]}),u(b,{title:"ÐÑпиÑÑ",onClick:f})]})},Qn=e=>{const{handleConfirm:l,number:n,countryCode:t,blocksList:i}=e,{getCount:o,data:a,loading:r}=B(),d=v.exports.useMemo((()=>{var e;return null==(e=null==a?void 0:a[0])?void 0:e.full}),[a]);return v.exports.useEffect((()=>{o([O])}),[o]),s(w,{children:[u("h2",{style:{marginBottom:"30px"},children:"РазблокиÑÑйÑе вÑе даннÑе о компании"}),r?u(I,{}):d?s(w,{children:[u("p",{children:`У Ð²Ð°Ñ Ð¾ÑÑалоÑÑ ÐµÑе ${d} ${c(d,["ÑазблокиÑовка","ÑазблокиÑовки","ÑазблокиÑовок"])}.`}),u(b,{title:"РазблокиÑоваÑÑ Ð´Ð°Ð½Ð½Ñе",onClick:l,disabled:!d})]}):u(Kn,{number:n,countryCode:t,direction:"column",blocksList:i})]})},et=[{source:"name",label:"Ðазвание"},{source:"number",label:"РегиÑÑÑаÑионнÑй номеÑ"},{source:"type",label:"Тип"},{source:"address",label:"ÐдÑеÑ"},{source:"locality",label:"ÐоÑод"},{source:"date",label:"ÐаÑа ÑегиÑÑÑаÑии",renderComponent:Tl},{source:"phones",label:"ТелеÑон",renderComponent:e=>u(nt,{...e,type:"phone"})},{source:"emails",label:"ÐлекÑÑÐ¾Ð½Ð½Ð°Ñ ÐоÑÑа",renderComponent:e=>u(nt,{...e,type:"email"})}],lt=e=>u(Hl,{...e,field:"subdivisions",fieldCount:"subdivisionsCount",title:"ÐодÑазделениÑ",config:et});function nt(e){var l;return u(S,{item:e.item,children:u("span",{className:"checking-foreign-detail__multi-line",children:null==(l=null==e?void 0:e.cellData)?void 0:l.map((l=>
1u("span",{children:u("a",{href:`${"phone"===e.type?"tel":"mailto"}:${l}`,target:"_blank",children:l})},l)))})},JSON.stringify(e.cellData))}const tt=[{source:"name",label:"Ðазвание"},{source:"number",label:"ÐомеÑ"},{source:"type",label:"Тип"},{source:"date",label:"ÐаÑа",renderComponent:Tl},{source:"effectiveDate",label:"ÐаÑа вÑÑÑÐ¿Ð»ÐµÐ½Ð¸Ñ Ð² ÑилÑ",renderComponent:Tl}],it=e=>u(Hl,{...e,field:"filings",fieldCount:"filingsCount",title:"ÐеклаÑаÑии",config:tt}),ot=[{source:"number",label:"ÐомеÑ"},{source:"type",label:"Тип"},{source:"date",label:"ÐаÑа вÑдаÑи",renderComponent:Tl},{source:"address",label:"ÐдÑеÑ"}],at=e=>u(Hl,{...e,field:"permits",fieldCount:"permitsCount",title:"РазÑеÑениÑ",config:ot}),rt=e=>{const{additionalData:l}=e;return s(U,{children:[u("h2",{id:"additional-data-info",className:"checking-foreign-detail__title",children:"ÐополниÑелÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ"}),(null==l?void 0:l.accountsAccountCategory)||(null==l?void 0:l.accountsLastMadeUpDate)||(null==l?void 0:l.accountsRefDate)||(null==l?void 0:l.accountsNextDueDate)||(null==l?void 0:l.accountsRefDate)?u(z,{title:"ÐÑÑ
галÑеÑÑÐºÐ°Ñ Ð¾ÑÑÑÑноÑÑÑ",type:"200px",content:s("div",{className:"checking-foreign-detail__multi-line ",children:[(null==l?void 0:l.accountsRefDate)?u(z,{title:"ÐеÑвÑе ÑÑеÑа, ÑоÑÑавленнÑе до",type:"200px",withBorder:!1,content:s("div",{className:"checking-foreign-detail__multi-line",children:[(null==l?void 0:l.accountsRefDate)?u("div",{children:sl(null==l?void 0:l.accountsRefDate,!0)}):null,(null==l?void 0:l.accountsNextDueDate)?u("div",{children:`ÑÑок иÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð´Ð¾ ${sl(null==l?void 0:l.accountsNextDueDate,!0)}`}):null]})}):null,(null==l?void 0:l.accountsLastMadeUpDate)?u(Pn,{fontSize:14,titleBlackColor:!0,title:"ÐоÑледнÑÑ Ð¾ÑÑеÑноÑÑÑ Ð¿Ð¾ ÑоÑÑоÑÐ½Ð¸Ñ Ð½Ð°",content:sl(null==l?void 0:l.accountsLastMadeUpDate,!0)}):null,(null==l?void 0:l.accountsAccountCategory)?u(Pn,{fontSize:14,titleBlackColor:!0,title:"ÐаÑегоÑиÑ",content:null==l?void 0:l.accountsAccountCategory}):null]})}):null,(null==l?void 0:l.confStmtLastMadeUpDate)||(null==l?void 0:l.accountsNextDueDate)||(null==l?void 0:l.confStmtNextDueDate)?u(z,{title:"ÐодÑвеÑждаÑÑее заÑвление",type:"200px",content:s("div",{className:"checking-foreign-detail__multi-line",children:[(null==l?void 0:l.accountsNextDueDate)||(null==l?void 0:l.confStmtNextDueDate)?u(z,{title:"ÐаÑа ÑледÑÑÑей вÑпиÑки",withBorder:!1,type:"200px",content:s("div",{className:"checking-foreign-detail__multi-line ",children:[(null==l?void 0:l.accountsNextDueDate)?u("div",{children:sl(null==l?void 0:l.accountsNextDueDate,!0)}):null,(null==l?void 0:l.confStmtNextDueDate)?u("div",{children:`ÑÑок иÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð´Ð¾ ${sl(null==l?void 0:l.confStmtNextDueDate,!0)}`}):null]})}):null,(null==l?void 0:l.confStmtLastMadeUpDate)?u(Pn,{fontSize:14,titleBlackColor:!0,title:"ÐоÑледнее заÑвление оÑ",content:sl(null==l?void 0:l.confStmtLastMadeUpDate,!0)}):null]})}):null,(null==l?void 0:l.returnsNextDueDate)||(null==l?void 0:l.returnsLastMadeUpDate)?u(z,{title:"ФинанÑÐ¾Ð²Ð°Ñ Ð´Ð¾Ñ
одноÑÑÑ",type:"200px",content:s("div",{className:"checking-foreign-detail__multi-line",children:[(null==l?void 0:l.returnsNextDueDate)?u(Pn,{fontSize:14,titleBlackColor:!0,title:"ÐаÑа ÑледÑÑÑей ÑинанÑовой доÑ
одноÑÑи",content:`ÑÑок иÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð´Ð¾ ${sl(null==l?void 0:l.returnsNextDueDate,!0)}`}):null,(null==l?void 0:l.returnsLastMadeUpDate)?u(Pn,{titleBlackColor:!0,title:"ÐоÑледнее заÑвление ÑинанÑовÑй доÑ
одноÑÑи",content:`${sl(null==l?void 0:l.returnsLastMadeUpDate,!0)}`,fontSize:14}):null]})}):null,u(z,{type:"small",title:"Ðод ÑеÑÑиÑоÑиалÑнÑÑ
админиÑÑÑаÑивнÑÑ
единиÑ",content:null==l?void 0:l.administrativeTerritorialUnitCode})]})},dt=[{source:"vehicleBrand",label:"ÐÑенд"},{source:"vehicleModel",label:"ÐоделÑ"},{source:"vehicleRegistrationDate",label:"ÐаÑа ÑегиÑÑÑаÑии",renderComponent:Tl},{source:"isOwner",label:"ЯвлÑеÑÑÑ Ð²Ð»Ð°Ð´ÐµÐ»ÑÑем",renderComponent:e=>u(S,{cellData:!0===e.cellData?"Ðа":"-",item:e.item},e.cellData)}],st=e=>u(Hl,{...e,field:"vehicles",fieldCount:"companyVehiclesCount",title:"ТÑанÑпоÑÑнÑе ÑÑедÑÑва",config:dt}),ut=[{source:"documentNumber",label:"ÐÐ¾Ð¼ÐµÑ Ð´Ð¾ÐºÑменÑа"},{source:"type",label:"Тип"},{source:"dateFrom",label:"ÐÑ",renderComponent:Tl},{source:"deadlineDate",label:"Ðо",renderComponent:Tl}],ct=e=>u(Hl,{...e,field:"insolvencies",fieldCount:"insolvenciesCount",title:"ÐеплаÑежеÑпоÑобноÑÑÑ",config:ut}),vt=[{source:"assetUnderCharge",label:"ÐкÑÐ¸Ð²Ñ Ð¿Ð¾Ð´ залог"},{source:"status",label:"СÑаÑÑÑ"},{source:"chargeAmount",label:"СÑмма плаÑежа",renderComponent:e=>u(xn,{...e})},{source:"dateOfCreation",label:"ÐаÑа",renderComponent:Tl}],mt=e=>u(Hl,{...e,field:"charges",fieldCount:"chargesCount",title:"ÐбÑзанноÑÑи",config:vt}),ft=[{source:"contractTitle",label:"Ðазвание"},{source:"contractNumber",label:"ÐомеÑ"},{source:"providerId",label:"ÐденÑиÑикаÑÐ¾Ñ Ð¿Ð¾ÑÑавÑика"},{source:"contractDate",label:"ÐаÑа",renderComponent:Tl},{source:"value",label:"ÐнаÑение",renderComponent:function(e){var l,n,t,i;return u(S,{item:e.item,children:`${e.cellData}${(null==(n=null==(l=null==e?void 0:e.item)?void 0:l.country)?void 0:n.currency)?" "+(null==(i=null==(t=null==e?void 0:e.item)?void 0:t.country)?void 0:i.currency):""}`})}},{source:"authority",label:"ÐенеÑиÑиаÑ",renderComponent:e=>u(pt,{...e,field:"authority"})},{source:"winnerCompany",label:"ÐоÑÑавÑик",renderComponent:e=>u(pt,{...e,field:"winnerCompany"})},{source:"description",label:"ÐпиÑание"}],ht=e=>u(Hl,{...e,field:"acquisitions",fieldCount:"acquisitionsCount",title:"ÐоÑ. ÐакÑпки",config:ft});function pt(e){var l,n,t,i,o,a,r,d;const s=null==(n=null==(l=null==e?void 0:e.item)?void 0:l[null==e?void 0:e.field])?void 0:n.internationalNumber,c=null==(i=null==(t=null==e?void 0:e.item)?void 0:t[null==e?void 0:e.field])?void 0:i.countryCode,v=(null==(a=null==(o=null==e?void 0:e.item)?void 0:o[null==e?void 0:e.field])?void 0:a.shortName)||(null==(d=null==(r=null==e?void 0:e.item)?void 0:r[null==e?void 0:e.field])?void 0:d.name);return u(S,{item:e.item,children:c&&s&&v?u(J,{to:`/checking-foreign-counterparty/detail/${c}/${encodeURIComponent(s)}`,children:v}):"-"})}const gt=[{source:"year",label:"Ðод"},{source:"institution.name",label:"УÑÑеждение"},{source:"type.name",label:"Тип"},{source:"address",label:"ÐдÑеÑ"},{source:"inspectionObject",label:"ÐбÑÐµÐºÑ Ð¾ÑмоÑÑа"},{source:"quarter",label:"ÐваÑÑал"}
1],Ct=e=>u(Hl,{...e,field:"inspections",fieldCount:"inspectionsCount",title:"ÐнÑпекÑии",config:gt}),yt=[{source:"note",label:"ÐÑимеÑание"},{source:"type",label:"Тип"},{source:"dateFrom",label:"ÐÑ",renderComponent:Tl},{source:"dateTo",label:"Ðо",renderComponent:Tl}],_t=e=>u(Hl,{...e,field:"restrictions",fieldCount:"restrictionsCount",title:"ÐгÑаниÑениÑ",config:yt}),bt=[{source:"caseNumber",label:"â дела"},{source:"imposerName",label:"УÑÑановлено"},{source:"note",label:"ÐÑимеÑание"},{source:"type",label:"Тип"},{source:"dateFrom",label:"ÐÑ",renderComponent:Tl},{source:"dateTo",label:"Ðо",renderComponent:Tl}],kt=e=>u(Hl,{...e,field:"securityMeasures",fieldCount:"securityMeasuresCount",title:"ÐеÑÑ Ð±ÐµÐ·Ð¾Ð¿Ð°ÑноÑÑи",config:bt}),xt=e=>u(U,{additionalClassname:"checking-foreign-error",children:u(Kn,{...e})}),Dt="ÐаÑе колиÑеÑÑво доÑÑÑпнÑÑ
запÑоÑов за ÑÐµÐ³Ð¾Ð´Ð½Ñ Ð¸ÑÑекло. ÐожалÑйÑÑа, попÑобÑйÑе запÑоÑиÑÑ ÑпÑÐ°Ð²ÐºÑ Ð·Ð°Ð²ÑÑа",Nt="COMPANY_DOESNT_EXIST",Mt=e=>{var l,n,t,i,o,a,r,d,c,m,f,h,p,g,C,y,_,b,k,x,D,N,M,L,R,A,S,B,T,j,H;const{countryCode:U="",numberBase:q=""}=ee(),Z=v.exports.useMemo((()=>decodeURI(q)),[q]),[W,Y]=v.exports.useState(!1),{showModal:G,hideModal:z}=X(),{getCheckingForeignCounterparty:J,data:K,loading:Q,errors:le}=function(){const{data:e,search:l,loading:n,errors:t}=P(),{add:i}=V();return{getCheckingForeignCounterparty:v.exports.useCallback((async(e,n)=>{try{await l("/lk/v1/profile/available-services","POST",{service_id:O,payload:{international_number:e,country_code:n,full:!1}}).then((e=>{if(e.error)throw new Error(e.message)}))}catch(t){i({text:"ÐÑоизоÑла оÑибка!",secondaryText:t.message===Nt?"ÐожалÑйÑÑа, попÑобÑйÑе повÑоÑиÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ Ð·Ð°Ð²ÑÑа.":t.message})}}),[l,i]),data:e,loading:n,errors:t}}(),ne=v.exports.useMemo((()=>"ÐаÑе колиÑеÑÑво доÑÑÑпнÑÑ
запÑоÑов за ÑÐµÐ³Ð¾Ð´Ð½Ñ Ð¸ÑÑекло. ÐожалÑйÑÑа, попÑобÑйÑе запÑоÑиÑÑ ÑпÑÐ°Ð²ÐºÑ Ð·Ð°Ð²ÑÑа"===(null==K?void 0:K.errors)?null==K?void 0:K.data:K),[K]),te=v.exports.useMemo((()=>"ÐаÑе колиÑеÑÑво доÑÑÑпнÑÑ
запÑоÑов за ÑÐµÐ³Ð¾Ð´Ð½Ñ Ð¸ÑÑекло. ÐожалÑйÑÑа, попÑобÑйÑе запÑоÑиÑÑ ÑпÑÐ°Ð²ÐºÑ Ð·Ð°Ð²ÑÑа"===(null==K?void 0:K.errors)),[K]),{getCheckingForeignCounterpartyFullInfo:se,fullData:ue,loadingFullData:ce,errorsFullData:ve}=function(){const{data:e,search:l,loading:n,errors:t}=P(),{add:i}=V(),o=v.exports.useCallback((async(e,n,t)=>{await l("/lk/v1/profile/available-services","POST",{service_id:O,payload:{international_number:e,country_code:n,full:!0}}).then((e=>{t(e)}))}),[l]);return v.exports.useEffect((()=>{var e,l;t&&i((null==(l=null==(e=null==t?void 0:t.data)?void 0:e.errors)?void 0:l[0])===Dt?{text:"ÐимиÑÑ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ Ð¿Ð¾Ð»Ð½Ð¾Ð¹ ÑпÑавки иÑÑеÑпанÑ!",secondaryText:"ÐожалÑйÑÑа, попÑобÑйÑе повÑоÑиÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ Ð·Ð°Ð²ÑÑа."}:{text:"ÐÑоизоÑла оÑибка!",secondaryText:"ÐожалÑйÑÑа, попÑобÑйÑе еÑÑ Ñаз позже."})}),[t,i]),{getCheckingForeignCounterpartyFullInfo:o,fullData:e,loadingFullData:n,errorsFullData:t}}();v.exports.useEffect((()=>{U&&Z&&J&&J(Z,U)}),[U,Z,J]),v.exports.useEffect((()=>{(null==ne?void 0:ne.eus_full_flag)&&Y(ne)}),[ne,Y]);const{favorites:me}=ie(oe.checkingForeignCounterparty.typeId),{clickAddToFavorites:fe,clickRemoveFromFavorites:he}=ae(),pe=v.exports.useMemo((()=>{var e;return null==(e=null==ne?void 0:ne.addresses)?void 0:e.reduce(((e,l)=>{var n;return e+((null==(n=null==l?void 0:l.companies)?void 0:n.length)||0)}),0)}),[ne]),ge=v.exports.useMemo((()=>{var e;return null==(e=null==ne?void 0:ne.persons)?void 0:e.reduce(((e,l)=>{var n;return e+((null==(n=null==l?void 0:l.companies)?void 0:n.length)||0)}),0)}),[ne]),Ce=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.affiliates)&&(null==(e=null==ne?void 0:ne.affiliates)?void 0:e.length)>0&&Number(null==ne?void 0:ne.affiliatesCount)>0}),[ne]),ye=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.shares)&&(null==(e=null==ne?void 0:ne.shares)?void 0:e.length)>0}
1),[ne]),_e=v.exports.useMemo((()=>{var e,l,n,t,i,o,a,r,d,s,u,c,v,m,f,h,p,g,C;return(null==(l=null==(e=null==ne?void 0:ne.companyContacts)?void 0:e.phone)?void 0:l.length)&&(null==(t=null==(n=null==ne?void 0:ne.companyContacts)?void 0:n.phone)?void 0:t.length)>0||(null==(o=null==(i=null==ne?void 0:ne.companyContacts)?void 0:i.email)?void 0:o.length)&&(null==(r=null==(a=null==ne?void 0:ne.companyContacts)?void 0:a.email)?void 0:r.length)>0||(null==(d=null==ne?void 0:ne.address)?void 0:d.length)&&(null==(s=null==ne?void 0:ne.address)?void 0:s.length)>0||(null==(c=null==(u=null==ne?void 0:ne.companyContacts)?void 0:u.fax)?void 0:c.length)&&(null==(m=null==(v=null==ne?void 0:ne.companyContacts)?void 0:v.fax)?void 0:m.length)>0||(null==(h=null==(f=null==ne?void 0:ne.companyContacts)?void 0:f.website)?void 0:h.length)&&(null==(g=null==(p=null==ne?void 0:ne.companyContacts)?void 0:p.website)?void 0:g.length)>0||(null==ne?void 0:ne.companyContactPersons)&&(null==(C=null==ne?void 0:ne.companyContactPersons)?void 0:C.length)>0}),[ne]),be=v.exports.useMemo((()=>(null==ne?void 0:ne.accountingAuthority)||"boolean"==typeof(null==ne?void 0:ne.hasPublicDebt)||(null==ne?void 0:ne.vatNumber)||(null==ne?void 0:ne.paysVat)||(null==ne?void 0:ne.currentEmployeesNumber)||(null==ne?void 0:ne.paysExcise)||(null==ne?void 0:ne.vatDate)||(null==ne?void 0:ne.vatCancelDate)),[ne]),ke=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.financialReports)&&(null==(e=null==ne?void 0:ne.financialReports)?void 0:e.length)>0&&Array.isArray(null==ne?void 0:ne.financialReports)}),[ne]),xe=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.courtCases)&&(null==(e=null==ne?void 0:ne.courtCases)?void 0:e.length)>0||(null==ne?void 0:ne.courtCasesCount)&&(null==ne?void 0:ne.courtCasesCount)>0}),[ne]),De=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.inspections)&&(null==(e=null==ne?void 0:ne.inspections)?void 0:e.length)>0||(null==ne?void 0:ne.inspectionsCount)&&(null==ne?void 0:ne.inspectionsCount)>0}),[ne]),Ne=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.vehicles)&&(null==(e=null==ne?void 0:ne.vehicles)?void 0:e.length)>0}),[ne]),Me=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.events)&&(null==(e=null==ne?void 0:ne.events)?void 0:e.length)>0}),[ne]),we=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.companyDocuments)&&(null==(e=null==ne?void 0:ne.companyDocuments)?void 0:e.length)>0||(null==ne?void 0:ne.companyDocumentsCount)&&(null==ne?void 0:ne.companyDocumentsCount)>0}),[ne]),Fe=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.acquisitions)&&(null==(e=null==ne?void 0:ne.acquisitions)?void 0:e.length)>0||(null==ne?void 0:ne.acquisitionsCount)&&(null==ne?void 0:ne.acquisitionsCount)>0}),[ne]),Ee=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.persons)&&(null==(e=null==ne?void 0:ne.persons)?void 0:e.length)>0||(null==ne?void 0:ne.permitsCount)&&(null==ne?void 0:ne.permitsCount)>0}),[ne]),Le=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.insolvencies)&&(null==(e=null==ne?void 0:ne.insolvencies)?void 0:e.length)>0||(null==ne?void 0:ne.insolvenciesCount)&&(null==ne?void 0:ne.insolvenciesCount)>0}),[ne]),Ie=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.charges)&&(null==(e=null==ne?void 0:ne.charges)?void 0:e.length)>0||(null==ne?void 0:ne.chargesCount)&&(null==ne?void 0:ne.chargesCount)>0}),[ne]),Re=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.licenses)&&(null==(e=null==ne?void 0:ne.licenses)?void 0:e.length)>0||(null==ne?void 0:ne.licensesCount)&&(null==ne?void 0:ne.licensesCount)>0}),[ne]),$e=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.permits)&&(null==(e=null==ne?void 0:ne.permits)?void 0:e.length)>0||(null==ne?void 0:ne.permitsCount)&&(null==ne?void 0:ne.permitsCount)>0}),[ne]),Ae=v.exports.useMemo((()=>{var e,l,n,t,i,o,a,r,d,s,u;return(null==ne?void 0:ne.additionalData)&&(null==(e=null==ne?void 0:ne.additionalData)?void 0:e.accountsAccountCategory)||(null==(l=null==ne?void 0:ne.additionalData)?void 0:l.accountsLastMadeUpDate)||(null==(n=null==ne?void 0:ne.additionalData)?void 0:n.accountsRefDate)||(null==(t=null==ne?void 0:ne.additionalData)?void 0:t.accountsNextDueDate)||(null==(i=null==ne?void 0:ne.additionalData)?void 0:i.accountsRefDate)||(null==(o=null==ne?void 0:ne.additionalData)?void 0:o.confStmtLastMadeUpDate)||(null==(a=null==ne?void 0:ne.additionalData)?void 0:a.accountsNextDueDate)||(null==(r=null==ne?void 0:ne.additionalData)?void 0:r.confStmtNextDueDate)||(null==(d=null==ne?void 0:ne.additionalData)?void 0:d.returnsNextDueDate)||(null==(s=null==ne?void 0:ne.additionalData)?void 0:s.returnsLastMadeUpDate)||(null==(u=null==ne?void 0:ne.additionalData)?void 0:u.administrativeTerritorialUnitCode)}),[ne]),Se=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.LEI)&&(null==(e=null==ne?void 0:ne.LEI)?void 0:e.length)>0}),[ne]),Be=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.history)&&(null==(e=null==ne?void 0:ne.history)?void 0:e.length)>0}),[ne]),Oe=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.links)&&(null==(e=null==ne?void 0:ne.links)?void 0:e.length)>0||(null==ne?void 0:ne.linksCount)&&(null==ne?void 0:ne.linksCount)>0}
1),[ne]),Te=v.exports.useMemo((()=>{var e;return pe&&pe>0||ge&&ge>0||Number(null==ne?void 0:ne.personsCount)&&Number(null==ne?void 0:ne.personsCount)>(null==(e=null==ne?void 0:ne.persons)?void 0:e.length)}),[ne,pe,ge]),Pe=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.filings)&&(null==(e=null==ne?void 0:ne.filings)?void 0:e.length)>0||(null==ne?void 0:ne.filingsCount)&&(null==ne?void 0:ne.filingsCount)>0}),[ne]),Ve=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.subdivisions)&&(null==(e=null==ne?void 0:ne.subdivisions)?void 0:e.length)>0||(null==ne?void 0:ne.subdivisionsCount)&&(null==ne?void 0:ne.subdivisionsCount)>0}),[ne]),je=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.restrictions)&&(null==(e=null==ne?void 0:ne.restrictions)?void 0:e.length)>0||(null==ne?void 0:ne.restrictionsCount)&&(null==ne?void 0:ne.restrictionsCount)>0}),[ne]),He=v.exports.useMemo((()=>{var e;return(null==ne?void 0:ne.securityMeasures)&&(null==(e=null==ne?void 0:ne.securityMeasures)?void 0:e.length)>0||(null==ne?void 0:ne.securityMeasuresCount)&&(null==ne?void 0:ne.securityMeasuresCount)>0}),[ne]),Ue=v.exports.useMemo((()=>{var e,l,n;return null==(n=null==(l=null==(e=[{key:"ÐÑÑилиаÑÑ",value:Ce},{key:"ÐкÑии",value:ye},{key:"ÐонÑакÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ",value:_e},{key:"ÐÐ°Ð»Ð¾Ð³Ð¾Ð²Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ",value:be},{key:"ФинанÑÑ",value:ke},{key:"СÑдебнÑе дела",value:xe},{key:"ÐнÑпекÑии",value:De},{key:"ТÑанÑпоÑÑнÑе ÑÑедÑÑва",value:Ne},{key:"СобÑÑиÑ",value:Me},{key:"ÐокÑменÑÑ",value:we},{key:"ÐоÑ. ÐакÑпки",value:Fe},{key:"ÐолжноÑÑнÑе лиÑа",value:Ee},{key:"ÐеплаÑежеÑпоÑобноÑÑÑ",value:Le},{key:"ÐбÑзанноÑÑи",value:Ie},{key:"ÐиÑензии",value:Re},{key:"РазÑеÑениÑ",value:$e},{key:"ÐополниÑелÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ",value:Ae},{key:"ÐденÑиÑикаÑионнÑе номеÑа",value:Se},{key:"ÐÑÑоÑиÑ",value:Be},{key:"СвÑзи Ð¼ÐµÐ¶Ð´Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñми",value:Oe},{key:"СвÑзаннÑе компании",value:Te},{key:"ÐеклаÑаÑии",value:Pe},{key:"ÐодÑазделениÑ",value:Ve},{key:"ÐгÑаниÑениÑ",value:je},{key:"ÐеÑÑ Ð±ÐµÐ·Ð¾Ð¿Ð°ÑноÑÑи",value:He}])?void 0:e.filter((e=>null==e?void 0:e.value)))?void 0:l.map((e=>null==e?void 0:e.key)))?void 0:n.join(", ")}),[Ce,ye,_e,be,ke,xe,De,Ne,Me,we,Fe,Ee,Le,Ie,Re,$e,Ae,Se,Be,Oe,Te,Pe,Ve,je,He]),qe=v.exports.useCallback((()=>{G(u(Qn,{handleConfirm:()=>{se(Z,U,(e=>Y(e))).finally((()=>{z()}))},countryCode:U,number:Z,blocksList:Ue}),"popup--small")}),[Z,U,Y,se,G,z,Ue]),Ze=v.exports.useCallback(((e,l)=>{W?e(W):G(u(Qn,{handleConfirm:()=>{se(Z,U,l)},countryCode:U,number:Z,blocksList:Ue}),"popup--small")}),[W,U,Z,se,G,Ue]);return s(w,{children:[u(re,{}),Q?u(I,{}):(null==(n=null==(l=null==le?void 0:le.data)?void 0:l.errors)?void 0:n[0])===Dt?u($,{message:Dt}):ne?(null==ne?void 0:ne.error)?u($,{message:(null==ne?void 0:ne.message)===Nt?"ÐÑоизоÑла оÑибка! ÐожалÑйÑÑа, попÑобÑйÑе повÑоÑиÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ Ð·Ð°Ð²ÑÑа.":null==ne?void 0:ne.message}):s(w,{children:[u(F,{title:(null==ne?void 0:ne.brandName)||(null==ne?void 0:ne.shortName)||(null==ne?void 0:ne.name)||"",children:u(E,{listItems:[(null==me?void 0:me.includes(String(Z)))?{type:"deleteFromFavorites",onClick:()=>{he({id:Z,favorite_id:Z},oe.checkingForeignCounterparty.typeId)},dataCy:"DELL_TO_FAVORITES"}:{type:"addToFavorites",onClick:()=>{fe({favorite_id:Z,favorites_type_id:oe.checkingForeignCounterparty.typeId,payload:{countryCode:U,nameOrganization:(null==ne?void 0:ne.brandName)||(null==ne?void 0:ne.shortName)||(null==ne?void 0:ne.name)||""}},de)},dataCy:"ADD_TO_FAVORITES"}]})}),te?u(xt,{number:Z,countryCode:U,blocksList:Ue}):u(vl,{country:(null==(i=null==(t=null==ne?void 0:ne.country)?void 0:t.translation)?void 0:i.ru)||(null==(a=null==(o=null==ne?void 0:ne.country)?void 0:o.translation)?void 0:a.en),dateCreated:null==ne?void 0:ne.dateCreated,statuses:null==ne?void 0:ne.statuses,dateUpdate:null==ne?void 0:ne.updatedAt,externalLogo:null==ne?void 0:ne.externalLogo}),u(nn,{tabsClasses:"checking-foreign-detail__tabs",classesContent:"checking-foreign-detail-tabs",tabPrefix:"cheking-foreign",config:[{code:"summary-section-info",title:"Сводка",content:u(Cl,{authorizedCapital:null==ne?void 0:ne.authorizedCapital,name:null==ne?void 0:ne.name,shortName:null==ne?void 0:ne.shortName,brandName:(null==ne?void 0:ne.brandName)||"",localNumber:null==ne?void 0:ne.localNumber,europeanNumber:null==ne?void 0:ne.europeanNumber,alternateNames:null==ne?void 0:ne.alternateNames,statuses:null==ne?void 0:ne.statuses,country:null==ne?void 0:ne.country,internationalNumber:null==ne?void 0:ne.internationalNumber,dateCreated:null==ne?void 0:ne.dateCreated,companiesRegisteredSameDate:null==ne?void 0:ne.companiesRegisteredSameDate,dateDisolved:null==ne?void 0:ne.dateDisolved,activities:null==ne?void 0:ne.activities,leiString:null==(d=null==(r=null==ne?void 0:ne.LEI)?void 0:r[0])?void 0:d.lei,paidShareCapital:null==ne?void 0:ne.paidShareCapital,type:null==ne?void 0:ne.type,vatNumber:null==ne?void 0:ne.vatNumber,historicalNames:null==ne?void 0:ne.historicalNames,categories:null==ne?void 0:ne.categories,parentCountry:null==ne?void 0:ne.parentCountry,turnoverRank:null==ne?void 0:ne.turnoverRank,profitRank:null==ne?void 0:ne.profitRank,turnoverRankLastYear:null==ne?void 0:ne.turnoverRankLastYear,profitRankLastYear:null==ne?void 0:ne.profitRankLastYear,mainActivityId:null==ne?void 0:ne.mainActivityId,mainActivityTurnoverRank:null==ne?void 0:ne.mainActivityTurnoverRank,mainActivityTurnoverRankLastYear:null==ne?void 0:ne.mainActivityTurnoverRankLastYear,subscribedShareCapital:null==ne?void 0:ne.subscribedShareCapital,sharesValue:null==ne?void 0:ne.sharesValue,sharesIssued:null==ne?void 0:ne.sharesIssued,activityDescription:null==ne?void 0:ne.activityDescription})},...Ce?[{code:"affiliates",title:"ÐÑÑилиаÑÑ",content:u(In,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleFullContacts:qe,loading:Q,loadingFullData:ce})}]:[],...ye?[{code:"shares",title:"ÐкÑии",content:u(On,{data:ne})}]:[],..._e?[{code:"contacts-section-info",title:"ÐонÑакÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ",content:u(xl,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleFullContacts:qe,loading:Q,loadingFullData:ce,hideMoreBtn:te})}]:[],...be?[{code:"tax-section-info",title:"ÐÐ°Ð»Ð¾Ð³Ð¾Ð²Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ",content:u(Ol,{accountingAuthority:null==ne?void 0:ne.accountingAuthority,hasPublicDebt:null==ne?void 0:ne.hasPublicDebt,vatNumber:null==ne?void 0:ne.vatNumber,paysVat:null==ne?void 0:ne.paysVat,financialYear:null==ne?void 0:ne.financialYear,publicDebtAmount:null==ne?void 0:ne.publicDebtAmount,currentEmployeesNumber:null==ne?void 0:ne.currentEmployeesNumber,paysExcise:null==ne?void 0:ne.paysExcise,vatDate:null==ne?void 0:ne.vatDate,vatCancelDate:null==ne?void 0:ne.vatCancelDate,annualAssembly:null==ne?void 0:ne.annualAssembly,endDateFinancialYear:null==ne?void 0:ne.endDateFinancialYear})}]:[],...ke?[{code:"financial-report-info",title:"ФинанÑÑ",content:u(bn,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...xe?[{code:"courts-section-info",title:"СÑдебнÑе дела",content:u(Wl,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...De?[{code:"inspections-section-info",title:"ÐнÑпекÑии",content:u(Ct,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Ne?[{code:"vehicles-section-info",title:"ТÑанÑпоÑÑнÑе ÑÑедÑÑва",content:u(st,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Me?[{code:"events-section-info",title:"СобÑÑиÑ",content:u(Xl,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...we?[{code:"documents-section-info",title:"ÐокÑменÑÑ",content:u(qn,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Fe?[{code:"acquisitions-section-info",title:"ÐоÑ. ÐакÑпки",content:u(ht,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Ee?[{code:"persons-info",title:"ÐолжноÑÑнÑе лиÑа",content:u(Al,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Le?[{code:"insolvencies-section-info",title:"ÐеплаÑежеÑпоÑобноÑÑÑ",content:u(ct,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Ie?[{code:"charges-section-info",title:"ÐбÑзанноÑÑи",content:u(mt,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Re?[{code:"licenses-section-info",title:"ÐиÑензии",content:u(Gl,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...$e?[{code:"permits-section-info",title:"РазÑеÑениÑ",content:u(at,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Ae?[{code:"additional-data-info",title:"ÐополниÑелÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ",content:u(rt,{additionalData:null==ne?void 0:ne.additionalData})}]:[],...Se?[{code:"identification-numbers-info",title:"ÐденÑиÑикаÑионнÑе номеÑа",content:u(Kl,{leiData:null==ne?void 0:ne.LEI})}]:[],...Be?[{code:"history-info",title:"ÐÑÑоÑиÑ",content:u(An,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Te?[{code:"related-info",title:"СвÑзаннÑе компании",content:u(wn,{addresses:(null==ue?void 0:ue.addresses)||(null==ne?void 0:ne.addresses),persons:(null==ue?void 0:ue.persons)||(null==ne?void 0:ne.persons),personsCount:null==ne?void 0:ne.personsCount,country:null==ne?void 0:ne.country,handleFullContacts:qe,loadedFullData:W})}]:[],...Oe?[{code:"links-info",title:"СвÑзи Ð¼ÐµÐ¶Ð´Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñми",content:u(Vn,{data:ne})}]:[],...Pe?[{code:"filings-info",title:"ÐеклаÑаÑии",content:u(it,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...Ve?[{code:"subdivisions-section-info",title:"ÐодÑазделениÑ",content:u(lt,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...je?[{code:"restrictions-section-info",title:"ÐгÑаниÑениÑ",content:u(_t,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...He?[{code:"security-measures-section-info",title:"ÐеÑÑ Ð±ÐµÐ·Ð¾Ð¿Ð°ÑноÑÑи",content:u(kt,{loadedFullData:W,fullData:ue,data:ne,setLoadedFullData:Y,handleLoadFullData:Ze,loading:Q})}]:[],...(null==ne?void 0:ne.shortName)||(null==ne?void 0:ne.brandName)||(null==ne?void 0:ne.name)&&((null==(m=null==(c=null==ne?void 0:ne.addresses)?void 0:c[0])?void 0:m.address)||(null==(g=null==(p=null==(h=null==(f=null==ne?void 0:ne.activities)?void 0:f[0])?void 0:h.nace)?void 0:p.translation)?void 0:g.ru)||(null==(y=null==(C=null==ne?void 0:ne.activities)?void 0:C[0])?void 0:y.providerName)||(null==ne?void 0:ne.dateCreated)||(null==(b=null==(_=null==ne?void 0:ne.LEI)?void 0:_[0])?void 0:b.lei)||(null==ne?void 0:ne.currentEmployeesNumber)||(null==ne?void 0:ne.financialReports)&&(null==(k=null==ne?void 0:ne.financialReports)?void 0:k.length)>0)?[{code:"faq-info",title:"FAQ",content:u(Dn,{address:null==(D=null==(x=null==ne?void 0:ne.addresses)?void 0:x[0])?void 0:D.address,shortName:(null==ne?void 0:ne.shortName)||(null==ne?void 0:ne.brandName)||(null==ne?void 0:ne.name)||"",mainActivity:(null==(R=null==(L=null==(M=null==(N=null==ne?void 0:ne.activities)?void 0:N[0])?void 0:M.nace)?void 0:L.translation)?void 0:R.ru)||(null==(S=null==(A=null==ne?void 0:ne.activities)?void 0:A[0])?void 0:S.providerName),dateCreated:null==ne?void 0:ne.dateCreated,lei:null==(T=null==(B=null==ne?void 0:ne.LEI)?void 0:B[0])?void 0:T.lei,currentEmployeesNumber:null==ne?void 0:ne.currentEmployeesNumber,financialReports:null==ne?void 0:ne.financialReports})}]:[]],footerContent:u(wt,{sources:null==(j=null==ne?void 0:ne.country)?void 0:j.sources}),footerSubmenu:(null==ne?void 0:ne.listTags)&&(null==(H=null==ne?void 0:ne.listTags)?void 0:H.length)>0?u(Wn,{listTagsFullInfo:null==ue?void 0:ue.listTags,listTags:null==ne?void 0:ne.listTags,loadedFullData:W,handleFullContacts:qe}):null})]}):null]})};function wt({sources:e}){return e&&(null==e?void 0:e.length)>0?s("div",{children:["ÐÑÑоÑники:"," ",e.map(((e,l)=>{var n;return s(se.Fragment,{children:[(null==(n=null==e?void 0:e.url)?void 0:n.includes("*"))?u
1("span",{className:"checking-foreign-detail__false-link",children:e.name}):u("a",{href:e.url||"#",target:"blank",children:e.name})," "]},"link-"+l)}))]}):null}const Ft=e=>u("div",{children:"Content"}),Et=e=>{const{data:l,loading:n,changeFilter:t,amountPage:i,currentPage:o,changeCurrentPage:a}=e,r=N();return s(w,{children:[u(re,{}),u(F,{title:"Ðои компании"}),n&&u(I,{}),!n&&l&&(null==Array?void 0:Array.isArray(l))?s(w,{children:[u(Re,{changeFilter:t,withoutSearchRequiered:!0}),u(R,{fullWidth:!0,tableData:l,onClick:e=>{r(`/checking-foreign-counterparty/detail/${e.country_code}/${encodeURIComponent(e.international_number)}`)},config:Be}),u(ue,{pagesQuantity:i,currentPage:o,handlePageClick:a})]}):null,Array.isArray(l)&&0===(null==l?void 0:l.length)?u($,{message:"У ÐÐ°Ñ Ð¿Ð¾ÐºÐ° Ð½ÐµÑ ÑоÑ
ÑаненнÑÑ
компаний"}):null]})},Lt=(e,l,n)=>{let t={...e,country_code:null==e?void 0:e.countryCode};return"all"!==(null==t?void 0:t.countryCode)&&""!==(null==t?void 0:t.countryCode)&&void 0!==(null==t?void 0:t.countryCode)||null==t||delete t.country_code,null==t||delete t.countryCode,`/lk/v1/profile/available-services/foreign_companies?range=${JSON.stringify(l)}${(null==e?void 0:e.search)||(null==e?void 0:e.countryCode)?"&filter="+JSON.stringify(t):""}${n?"&sort="+JSON.stringify(n):""}`},It=e=>{const{add:l}=V(),{listRequest:n,errors:t,loading:i,amountPage:o,currentPage:a,changeFilter:r,changeCurrentPage:d}=T(Lt,["created_at","desc"],!0,10);return v.exports.useEffect((()=>{t&&l({text:"ÐÑоизоÑла оÑибка!",secondaryText:"ÐожалÑйÑÑа, повÑоÑиÑе попÑÑÐºÑ Ð¿Ð¾Ð·Ð¶Ðµ"})}),[t,l]),u(Et,{data:n,loading:i,changeFilter:r,amountPage:o,currentPage:a,changeCurrentPage:d})},Rt=[{title:"ÐÑоÑÐµÐ½Ñ (напÑ. 30,54%)",description:"ÐÑÐ¾Ñ Ð¿ÑоÑÐµÐ½Ñ Ð¿Ð¾ÐºÐ°Ð·ÑÐ²Ð°ÐµÑ ÐºÐ¾Ð»Ð¸ÑеÑÑво компаний ÑодеÑжаÑиÑ
даннÑе из обÑего ÑиÑла компаний",isBoldText:!0},{title:"СеÑÑй ÑвеÑ",description:"ознаÑÐ°ÐµÑ ÑÑо в ÑÑой каÑегоÑии Ð½ÐµÑ Ð´Ð°Ð½Ð½ÑÑ
",beforeColor:"gray"},{title:"ÐÑаÑнÑй ÑвеÑ",description:"ознаÑÐ°ÐµÑ ÑÑо даннÑе в ÑÑой каÑегоÑии ÑÑÑеÑÑвÑÑÑ Ð´Ð»Ñ Ð½ÐµÐ±Ð¾Ð»ÑÑого ÑиÑла компаний",beforeColor:"red"},{title:"ÐÑлÑÑй ÑвеÑ",description:"ознаÑаеÑ, ÑÑо даннÑе в ÑÑой каÑегоÑии ÑÑÑеÑÑвÑÑÑ Ð´Ð»Ñ ÑÑеднего ÑиÑла компаний",beforeColor:"yellow"},{title:"Синий ÑвеÑ",description:"ознаÑÐ°ÐµÑ ÑÑо даннÑе в ÑÑой каÑегоÑии ÑÑÑеÑÑвÑÑÑ Ð´Ð»Ñ Ð±Ð¾Ð»ÑÑинÑÑва компаний",beforeColor:"blue"},{title:"ÐелÑнÑй ÑвеÑ",description:"ознаÑÐ°ÐµÑ ÑÑо даннÑе в ÑÑой каÑегоÑии ÑÑÑеÑÑвÑÑÑ Ð´Ð»Ñ Ð²ÑеÑ
компаний",beforeColor:"green"},{title:"ФинанÑовÑе оÑÑеÑÑ",description:"ÑÑо ÑпиÑок ÑинанÑовÑÑ
оÑÑеÑов Ð´Ð»Ñ ÐºÐ°Ð¶Ð´Ð¾Ð¹ компании"},{title:"ÐолжноÑÑнÑе лиÑа - базовÑе даннÑе",description:"ÑÑо оÑновнÑе даннÑе Ð´Ð»Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¾ÑÑнÑÑ
лиÑ, Ñакие как Ð¸Ð¼Ñ Ð¸ должноÑÑÑ"},{title:"ÐонÑакÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ",description:"ÑÑо ÑпиÑок конÑакÑнÑÑ
даннÑÑ
компании, ÑакиÑ
как ÑлекÑÑÐ¾Ð½Ð½Ð°Ñ Ð¿Ð¾ÑÑа, Ð½Ð¾Ð¼ÐµÑ ÑелеÑона, ÑакÑ"},{title:"СÑдебнÑе дела",description:"ÑÑо ÑпиÑок ÑÑдебнÑÑ
дел, в коÑоÑÑÑ
ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ Ð²ÑÑÑÑÐ¿Ð°ÐµÑ Ð² каÑеÑÑве ÑÑаÑÑника"},{title:"ÐкÑии",description:"ÑÑо кÑиÑеÑий, пÑи коÑоÑом ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ Ð¸Ð¼ÐµÐµÑ, по кÑайней меÑе, колиÑеÑÑво акÑий, или ÑÑоимоÑÑÑ Ð°ÐºÑий, или Ñип акÑий"},{title:"ÐеÑÑелÑноÑÑи",description:"ÑÑо ÑпиÑок видов деÑÑелÑноÑÑи компании"},{title:"ÐиÑензии",description:"ÑÑо лиÑензии компании, напÑимеÑ, ÑÑанÑпоÑÑÐ½Ð°Ñ Ð»Ð¸ÑензиÑ"},{title:"ÐÑÑоÑиÑ",description:"ÑÑо ÑпиÑок ÑобÑÑий компании, пÑоизоÑедÑиÑ
в опÑеделеннÑй пеÑиод вÑемени"}],$t=e=>u(U,{additionalClassname:"openindex__legend",padding:"0-0",children:Rt.map((e=>u(At,{item:e},null==e?void 0:e.title)))});function At({item:e}){const l=q("legend-row",{"legend-row__bold":null==e?void 0:e.isBoldText});return s("div",{className:l,children:[s("div",{className:"legend-row__title",children:[(null==e?void 0:e.beforeColor)?u("span",{className:`legend-row__color-block legend-row__color-block_${null==e?void 0:e.beforeColor}`}):null,u("span",{children:e.title})]}),u("div",{className:"legend-row__description",children:null==e?void 0:e.description})]})}function St(e){return v.exports.createElement("svg",Object.assign({},e,{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{d:"M14.5 12.75C14.5 11.7835 13.6046 11 12.5 11C11.3954 11 10.5 11.7835 10.5 12.75C10.5 13.7165 11.3954 14.5 12.5 14.5C13.6046 14.5 14.5 15.2835 14.5 16.25C14.5 17.2165 13.6046 18 12.5 18C11.3954 18 10.5 17.2165 10.5 16.25",strokeWidth:1.5,strokeLinecap:"round"}),v.exports.createElement("path",{d:"M12.5 9.5V11",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),v.exports.createElement("path",{d:"M12.5 18V19.5",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),v.exports.createElement("path",{d:"M6.13246 11.1026C6.94914 8.65258 9.24197 7 11.8246 7H13.1754C15.758 7 18.0509 8.65258 18.8675 11.1026L19.8675 14.1026C21.1626 17.9878 18.2708 22 14.1754 22H10.8246C6.72921 22 3.83739 17.9878 5.13246 14.1026L6.13246 11.1026Z",strokeWidth:1.5,strokeLinejoin:"round"}),v.exports.createElement("path",{d:"M14.5859 7L10.4141 7L9.01303 5.39296C7.63959 3.81763 9.24185 1.46298 11.2471 2.10985L12.1748 2.40914C12.3861 2.47728 12.6139 2.47728 12.8252 2.40914L13.7
1529 2.10985C15.7582 1.46298 17.3604 3.81763 15.987 5.39296L14.5859 7Z",strokeWidth:1.5,strokeLinejoin:"round"}))}function Bt(e){return v.exports.createElement("svg",Object.assign({},e,{width:25,height:24,viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4986 2.75C10.4539 2.75 8.80859 4.40311 8.80859 6.44C8.80859 8.42302 10.3577 10.032 12.3135 10.1189C12.4321 10.1106 12.5574 10.1102 12.6756 10.1188C14.6295 10.031 16.1795 8.42308 16.1886 6.43847C16.1878 4.40339 14.5339 2.75 12.4986 2.75ZM7.30859 6.44C7.30859 3.57689 9.62328 1.25 12.4986 1.25C15.3628 1.25 17.6886 3.57579 17.6886 6.44L17.6886 6.44313C17.6769 9.24352 15.4695 11.5259 12.6838 11.6196C12.6505 11.6207 12.6171 11.6196 12.584 11.6163C12.5357 11.6115 12.4637 11.6108 12.3965 11.6169C12.3655 11.6197 12.3345 11.6206 12.3034 11.6196C9.51819 11.526 7.30859 9.24337 7.30859 6.44Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6713 12.4375C14.5995 12.4375 16.5657 12.9214 18.0853 13.9363C19.4512 14.8454 20.2338 16.1198 20.2338 17.4913C20.2338 18.8626 19.4513 20.1393 18.086 21.0532L18.0858 21.0533C16.5616 22.0732 14.5928 22.56 12.6638 22.56C10.735 22.56 8.76666 22.0734 7.24257 21.0539C5.87646 20.1448 5.09375 18.8703 5.09375 17.4987C5.09375 16.1274 5.87619 14.8507 7.24154 13.9368L7.24429 13.9349L7.24429 13.9349C8.77273 12.9215 10.7428 12.4375 12.6713 12.4375ZM8.07458 15.1842C7.02094 15.89 6.59375 16.7429 6.59375 17.4987C6.59375 18.2544 7.02076 19.1047 8.07418 19.8056L8.07582 19.8067C9.30161 20.6268 10.9628 21.06 12.6638 21.06C14.3646 21.06 16.0258 20.6269 17.2515 19.8068C18.3062 19.1007 18.7338 18.2474 18.7338 17.4913C18.7338 16.7355 18.3067 15.8853 17.2533 15.1844L17.2522 15.1837C16.0318 14.3686 14.3731 13.9375 12.6713 13.9375C10.9703 13.9375 9.30602 14.3682 8.07458 15.1842Z"}))}function Ot(e){return v.exports.createElement("svg",Object.assign({},e,{width:25,height:24,viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.53033 3.53033C5.01884 4.04182 4.75 4.99464 4.75 7V18C4.75 18.4142 4.41421 18.75 4 18.75C3.58579 18.75 3.25 18.4142 3.25 18V7C3.25 5.00536 3.48116 3.45818 4.46967 2.46967C5.45818 1.48116 7.00536 1.25 9 1.25H16C17.9946 1.25 19.5418 1.48116 20.5303 2.46967C21.5188 3.45818 21.75 5.00536 21.75 7V17.01C21.75 17.1437 21.75 17.3065 21.7381 17.4734C21.7086 17.8866 21.3497 18.1976 20.9366 18.1681C20.5234 18.1386 20.2124 17.7797 20.2419 17.3666C20.2497 17.2577 20.25 17.1444 20.25 17V7C20.25 4.99464 19.9812 4.04182 19.4697 3.53033C18.9582 3.01884 18.0054 2.75 16 2.75H9C6.99464 2.75 6.04182 3.01884 5.53033 3.53033Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.85 15.75C5.69421 15.75 4.75 16.6942 4.75 17.85V18.5C4.75 20.0158 5.98421 21.25 7.5 21.25H17.5C19.0158 21.25 20.25 20.0158 20.25 18.5V15.75H6.85ZM3.25 17.85C3.25 15.8658 4.86579 14.25 6.85 14.25H21C21.4142 14.25 21.75 14.5858 21.75 15V18.5C21.75 20.8442 19.8442 22.7
15 17.5 22.75H7.5C5.15579 22.75 3.25 20.8442 3.25 18.5V17.85Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.75 7C7.75 6.58579 8.08579 6.25 8.5 6.25H16.5C16.9142 6.25 17.25 6.58579 17.25 7C17.25 7.41421 16.9142 7.75 16.5 7.75H8.5C8.08579 7.75 7.75 7.41421 7.75 7Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.75 10.5C7.75 10.0858 8.08579 9.75 8.5 9.75H13.5C13.9142 9.75 14.25 10.0858 14.25 10.5C14.25 10.9142 13.9142 11.25 13.5 11.25H8.5C8.08579 11.25 7.75 10.9142 7.75 10.5Z"}))}function Tt(e){return v.exports.createElement("svg",Object.assign({},e,{width:25,height:24,viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 0.25C12.9142 0.25 13.25 0.585786 13.25 1V19.75H17C17.4142 19.75 17.75 20.0858 17.75 20.5C17.75 20.9142 17.4142 21.25 17 21.25H8C7.58579 21.25 7.25 20.9142 7.25 20.5C7.25 20.0858 7.58579 19.75 8 19.75H11.75V1C11.75 0.585786 12.0858 0.25 12.5 0.25ZM1.5 12.25C1.08579 12.25 0.75 12.5858 0.75 13C0.75 14.035 1.16364 14.9894 1.92725 15.6784C2.68826 16.3651 3.75202 16.75 5 16.75C6.24798 16.75 7.31174 16.3651 8.07275 15.6784C8.83636 14.9894 9.25 14.035 9.25 13C9.25 12.5858 8.91421 12.25 8.5 12.25H1.5ZM2.93213 14.5647C2.68034 14.3375 2.49318 14.0614 2.37923 13.75H7.62077C7.50682 14.0614 7.31966 14.3375 7.06787 14.5647C6.62576 14.9637 5.93952 15.25 5 15.25C4.06048 15.25 3.37424 14.9637 2.93213 14.5647ZM16.5 12.25C16.0858 12.25 15.75 12.5858 15.75 13C15.75 14.035 16.1636 14.9894 16.9272 15.6784C17.6883 16.3651 18.752 16.75 20 16.75C21.248 16.75 22.3117 16.3651 23.0728 15.6784C23.8364 14.9894 24.25 14.035 24.25 13C24.25 12.5858 23.9142 12.25 23.5 12.25H16.5ZM17.9321 14.5647C17.6803 14.3375 17.4932 14.0614 17.3792 13.75H22.6208C22.5068 14.0614 22.3197 14.3375 22.0679 14.5647C21.6258 14.9637 20.9395 15.25 20 15.25C19.0605 15.25 18.3742 14.9637 17.9321 14.5647ZM11.2379 3.86584C11.312 4.27338 11.0417 4.66381 10.6342 4.73791C9.01244 5.03277 5.75 6.69215 5.75 11C5.75 11.4142 5.41421 11.75 5 11.75C4.58579 11.75 4.25 11.4142 4.25 11C4.25 5.70786 8.32089 3.63391 10.3658 3.26211C10.7734 3.18801 11.1638 3.45831 11.2379 3.86584ZM14.3658 4.73791C13.9583 4.66381 13.688 4.27338 13.7621 3.86584C13.8362 3.45831 14.2266 3.18801 14.6342 3.26211C16.6791 3.63391 20.75 5.70786 20.75 11C20.75 11.4142 20.4142 11.75 20 11.75C19.5858 11.75 19.25 11.4142 19.25 11C19.25 6.69215 15.9876 5.03277 14.3658 4.73791Z"}))}function Pt(e){return v.exports.createElement("svg",Object.assign({},e,{width:25,height:24,viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 22C1.75 21.5858 2.08579 21.25 2.5 21.25H22.5C22.9142 21.25 23.25 21.5858 23.25 22C23.25 22.4142 22.9142 22.75 22.5 22.75H2.5C2.08579 22.75 1.75 22.4142 1.75 22Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0512 2.12775C10.5025 1.54608 11.1931 1.25 12.05 1.25H12.95C13.8069 1.25 14.4975 1.54608 14.9488 2.12775C15.3734 2.67498 15.5 3.36648 15.5 4V22C15.5 22.4142 15.1642 22.75 14.75 22.75H10.25C9.83579 22.75 9.5 22.4142 9.5 22V4C9.5 3.36648 9.62661 2.67498 10.0512 2.12775ZM11.2363 3.04725C11.0984 3.22502 11 3.53352 11 4V21.25H14V4C14 3.53352 13.9016 3.22502 13.7637 3.04725C13.6525 2.90392 13.4431 2.75 12.95 2.75H12.05C11.5569 2.75 11.3475 2.90392 11.2363 3.04725Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.23259 8.1617C3.63881 7.57267 4.28345 7.25 5.1 7.25H5.9C6.71655 7.25 7.36119 7.57267 7.76741 8.1617C8.14103 8.70345 8.25 9.3804 8.25 10V22C8.25 22.4142 7.91421 22.75 7.5 22.75H3.5C3.08579 22.75 2.75 22.4142 2.75 22V10C2.75 9.3804 2.85897 8.70345 3.23259 8.1617ZM4.46741 9.0133C4.34103 9.19655 4.25 9.5196 4.25 10V21.25H6.75V10C6.75 9.5196 6.65897 9.19655 6.53259 9.0133C6.43881 8.87733 6.28345 8.75 5.9 8.75H5.1C4.71655 8.75 4.56119 8.87733 4.46741 9.0133Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2326 13.1617C17.6388 12.5727 18.2835 12.25 19.1 12.25H19.9C20.7165 12.25 21.3612 12.5727 21.7674 13.1617C22.141 13.7035 22.25 14.3804 22.25 15V22C22.25 22.4142 21.9142 22.75 21.5 22.75H17.5C17.0858 22.7
15 16.75 22.4142 16.75 22V15C16.75 14.3804 16.859 13.7035 17.2326 13.1617ZM18.4674 14.0133C18.341 14.1965 18.25 14.5196 18.25 15V21.25H20.75V15C20.75 14.5196 20.659 14.1965 20.5326 14.0133C20.4388 13.8773 20.2835 13.75 19.9 13.75H19.1C18.7165 13.75 18.5612 13.8773 18.4674 14.0133Z"}))}function Vt(e){return v.exports.createElement("svg",Object.assign({},e,{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{d:"M22.5 20L21 18.5M7.5 14H2.5M7.5 9H2.5M15.5 4H2.5M22.5 14C22.5 17.3137 19.8137 20 16.5 20C13.1863 20 10.5 17.3137 10.5 14C10.5 10.6863 13.1863 8 16.5 8C19.8137 8 22.5 10.6863 22.5 14Z",strokeWidth:1.5,strokeLinecap:"round"}))}function jt(e){return v.exports.createElement("svg",Object.assign({},e,{width:25,height:24,viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{d:"M20.75 12C20.75 7.44365 17.0563 3.75 12.5 3.75C9.71981 3.75 7.30178 5.12612 5.8184 7.24467L7.9978 7.23828C8.41201 7.23707 8.74878 7.57187 8.75 7.98608C8.75121 8.4003 8.41641 8.73706 8.0022 8.73828L4.55094 8.74839C4.51826 8.75065 4.48531 8.75076 4.45232 8.74868L4.0022 8.75C3.80291 8.75058 3.61158 8.67182 3.47045 8.53111C3.32932 8.39039 3.25 8.19929 3.25 8L3.25 4C3.25 3.58579 3.58579 3.25 4 3.25C4.41422 3.25 4.75 3.58579 4.75 4L4.75 6.16237C6.51057 3.79113 9.29958 2.25 12.5 2.25C17.8848 2.25 22.25 6.61522 22.25 12C22.25 17.3848 17.8848 21.75 12.5 21.75C8.66461 21.75 5.42007 19.5367 3.82836 16.3338C3.64403 15.9628 3.79529 15.5127 4.16623 15.3284C4.53716 15.144 4.9873 15.2953 5.17164 15.6662C6.52534 18.3902 9.26795 20.25 12.5 20.25C17.0563 20.25 20.75 16.5563 20.75 12Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 7.25C12.9142 7.25 13.25 7.58579 13.25 8V11.5858C13.25 11.6521 13.2763 11.7157 13.3232 11.7626L15.0303 13.4697C15.3232 13.7626 15.3232 14.2374 15.0303 14.5303C14.7374 14.8232 14.2626 14.8232 13.9697 14.5303L12.2626 12.8232C11.9344 12.495 11.75 12.0499 11.75 11.5858V8C11.75 7.58579 12.0858 7.25 12.5 7.25Z"}))}function Ht(e){return v.exports.createElement("svg",Object.assign({},e,{width:25,height:24,viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4288 1.25015C10.4534 1.25022 10.4771 1.25029 10.5 1.25029H14.5C14.5229 1.25029 14.5466 1.25022 14.5712 1.25015C15.0142 1.24889 15.722 1.24688 16.291 1.62625C16.9753 2.08246 17.25 2.90124 17.25 4.00029C17.25 4.02316 17.2501 4.04691 17.2501 4.07147C17.2514 4.51445 17.2534 5.22226 16.874 5.79131C16.4178 6.47562 15.599 6.75029 14.5 6.75029H10.5C10.4771 6.75029 10.4534 6.75036 10.4288 6.75043C9.98584 6.75169 9.27803 6.7537 8.70897 6.37433C8.02467 5.91812 7.75 5.09934 7.75 4.00029C7.75 2.90124 8.02467 2.08246 8.70897 1.62625C9.27803 1.24688 9.98584 1.24889 10.4288 1.25015ZM9.54103 2.87433C9.47533 2.91812 9.25 3.09934 9.25 4.00029C9.25 4.90124 9.47533 5.08246 9.54103 5.12625C9.69042 5.22585 9.93524 5.25029 10.5 5.25029H14.5C15.401 5.25029 15.5822 5.02496 15.626 4.95926C15.7256 4.80987 15.75 4.56505 15.75 4.00029C15.75 3.09934 15.5247 2.91812 15.459 2.87433C15.3096 2.77473 15.0648 2.75029 14.5 2.75029H10.5C9.93524 2.75029 9.69042 2.77473 9.54103 2.87433Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24891 3.98298C9.27126 4.39659 8.95409 4.75001 8.54048 4.77236C6.93434 4.85918 5.93333 5.19666 5.30215 5.87989C4.6626 6.57218 4.25 7.78425 4.25 10.0035V16.0035C4.25 17.9902 4.51132 19.2346 5.18943 20.0096C5.84587 20.7598 7.06467 21.2535 9.5 21.2535H16.5C16.9142 21.2535 17.25 21.5892 17.25 22.0035C17.25 22.4177 16.9142 22.7535 16.5 22.7535H9.5C6.93533 22.7535 5.15413 22.2471 4.06057 20.9973C2.98868 19.7723 2.75 18.0167 2.75 16.0035V10.0035C2.75 7.66267 3.1724 5.97474 4.20035 4.86203C5.23667 3.74025 6.73566 3.36773 8.45952 3.27455C8.87313 3.25219 9.22655 3.56937 9.24891 3.98298ZM15.7511 3.98298C15.7735 3.56937 16.1269 3.25219 16.5405 3.27455C18.2631 3.36767 19.7626 3.73723 20.7993 4.85789C21.8278 5.96966 22.25 7.65817 22.25 10.0035V12.5039C22.25 12.9181 21.9142 13.2539 21.5 13.2539C21.0858 13.2539 20.75 12.9181 20.75 12.5039V10.0035C20.75 7.77874 20.3372 6.56725 19.6982 5.87652C19.0674 5.19469 18.0669 4.85925 16.4595 4.77236C16.0459 4.75001 15.7287 4.39659 15.7511 3.98298Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75C17.7051 12.75 16.25 14.2051 16.25 16C16.25 17.7949 17.7051 19.25 19.5 19.25C21.2949 19.25 22.75 17.7949 22.75 16C22.75 14.2051 21.2949 12.75 19.5 12.75ZM14.75 16C14.75 13.3766 16.8766 11.25 19.5 11.25C22.1234 11.25 24.25 13.3766 24.25 16C24.25 18.6234 22.1234 20.75 19.5 20.75C16.8766 20.75 14.75 18.6234 14.75 16Z"}),v.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 18.75C17.4142 18.75 17.75 19.0858 17.75 19.5V22.1421L18.8174 21.447C18.8421 21.431 18.8677 21.4164 18.894 21.4033C19.1008 21.301 19.3218 21.2711 19.4967 21.2711C19.6715 21.2711 19.8926 21.301 20.0993 21.4033C20.1251 21.4161 20.1502 21.4304 20.1744 21.4461L21.25 22.1429V19.5C21.25 19.0858 21.5858 18.75 22 18.75C22.4142 18.75 22.75 19.0858 22.7
15 19.5V22.2734C22.75 22.7423 22.5762 23.2334 22.1425 23.5265C21.7013 23.8247 21.1762 23.7935 20.7451 23.5941C20.7129 23.5792 20.6819 23.5621 20.6522 23.5428L19.497 22.7945L18.3493 23.5419C18.3203 23.5608 18.29 23.5776 18.2587 23.5923C17.8255 23.7957 17.296 23.8306 16.8516 23.5267C16.4184 23.2304 16.25 22.737 16.25 22.2734V19.5C16.25 19.0858 16.5858 18.75 17 18.75Z"}))}const Ut=e=>{const{changeFilter:l}=e,{onSubmit:n,control:t,errors:i}=ce(l,{},{allowEmptyFilter:!0,skipChangeLocation:!0,dateWithInnerObjectKeys:[],additionalIgnoredKeys:[],dateFields:[],selects:[]});return s("form",{onSubmit:n,className:"openindex__filter",children:[u(C,{control:t,errors:i,name:"search",placeholder:"ÐоиÑк",isSearch:!0}),u(b,{title:"ÐайÑи",isSubmit:!0})]})},qt=e=>{const{openIndexList:l,loading:n,changeFilter:t}=e;return s(w,{children:[u(F,{title:"ÐÐ½Ð´ÐµÐºÑ Ð¾ÑкÑÑÑоÑÑи"}),u($t,{}),u(Ut,{changeFilter:t}),n?u(I,{}):l?0===(null==l?void 0:l.length)?u($,{message:"СпиÑок пÑÑÑ"}):null==l?void 0:l.map((e=>u(Yt,{item:e},null==e?void 0:e.id))):null]})},Zt=[{icon:e=>u(St,{stroke:e||G.darkGray}),field:"financial_reports",title:"ФинанÑовÑе оÑÑеÑÑ"},{icon:e=>u(Bt,{fill:e||G.darkGray}),field:"officials_basic_data",title:"ÐолжноÑÑнÑе лиÑа"},{icon:e=>u(Ot,{fill:e||G.darkGray}),field:"contact_info",title:"ÐонÑакÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑиÑ"},{icon:e=>u(Tt,{fill:e||G.darkGray}),field:"legal_cases",title:"СÑдебнÑе дела"},{icon:e=>u(Pt,{fill:e||G.darkGray}),field:"stocks",title:"ÐкÑии"},{icon:e=>u(Vt,{stroke:e||G.darkGray}),field:"activity",title:"ÐеÑÑелÑноÑÑи"},{icon:e=>u(jt,{fill:e||G.darkGray}),field:"history",title:"ÐÑÑоÑиÑ"},{icon:e=>u(Ht,{fill:e||G.darkGray}),field:"licenses",title:"ÐиÑензии"}],Wt=[{field:"companies",text:["компаниÑ","компании","компаний"]},{field:"contacts",text:["конÑакÑ","конÑакÑа","конÑакÑов"]},{field:"officials",text:["должноÑÑное лиÑо","должноÑÑнÑÑ
лиÑа","должноÑÑнÑÑ
лиÑ"]}];function Yt({item:e}){return s(U,{margin:"m30",children:[s("div",{className:"openindex__country",children:[u("div",{className:"openindex__country-flag",children:u(Le,{countryCode:e.country_short_code})}),u("span",{className:"openindex__country-name",children:e.country_name})]}),s("div",{className:"openindex__content",children:[u("div",{className:"openindex__indicators",children:Zt.map((l=>u(Gt,{indicator:l,item:e},l.field)))}),u("div",{className:"openindex__values",children:Wt.map((l=>s("div",{className:`openindex-values__item openindex-values__item_${l.field}`,children:[u("div",{className:"openindex-values__item-value",children:Z(e[l.field])}),u("div",{children:c(Number(e[l.field]),l.text)})]},l.field)))})]})]})}function Gt({indicator:e,item:l}){var n;const t=function(e){var l;const n=Number(null==(l=null==e?void 0:e.split("%"))?void 0:l[0]);return n>=95?G.green:n>=41&&n<95?G.blue:n>=21&&n<41?G.yellow:n>0&&n<21?G.red:G.grayDark}(null==l?void 0:l[e.field]);return s("div",{className:"openindex__indicator",children:[u("div",{className:`openindex__indicator-icon openindex__indicator-icon_${null==(n=t.split("#"))?void 0:n[1]}`,children:e.icon(t)}),u("div",{className:"openindex__indicator-value",children:null==l?void 0:l[e.field]}),u("div",{className:"openindex__indicator-title",children:e.title})]})}const zt=(e,l,n)=>"tnved/openindex",Xt=e=>{const[l,n]=v.exports.useState(null),{listRequest:t,loading:i}=T(zt);return v.exports.useEffect((()=>{t&&n(t)}),[t]),u(qt,{openIndexList:l||void 0,loading:i,changeFilter:e=>{var l;const i=(null==(l=e.search)?void 0:l.trim())?null==t?void 0:t.filter((l=>{var n,t;return null==(t=null==l?void 0:l.country_name)?void 0:t.toLowerCase().includes(null==(n=e.search)?void 0:n.trim().toLowerCase())})):t;n(i)}})},Jt=e=>s(ve,{children:[u(me,{index:!0,element:u(rl,{})}),u(me,{path:"/detail/:countryCode/:numberBase",element:u(Mt,{})}),u(me,{path:"/other",element:u(Ft,{})}),u(me,{path:"/my-companies",element:u(It,{})}),u(me,{path:"/openindex",element:u(Xt,{})}),u(me,{path:"*",element:u(fe,{})})]});
1export{Jt 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.