(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7601],{86684:function(e,t,n){Promise.resolve().then(n.bind(n,77487))},12119:function(e,t,n){"use strict";Object.defineProperty(t,"$",{enumerable:!0,get:function(){return i}});let r=n(83079);function i(e){let{createServerReference:t}=n(6671);return t(e,r.callServer)}},77487:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(57437),i=n(5426),a=n(33145),s=n(22240),l=n(28819),o=n(32544),c=n.n(o);let _=e=>{let{layout:t,aggregatorIds:n,reset:o}=e;return(0,r.jsx)(s.default,{aggregatorIds:n,headerData:t.headerData,footerData:t.footer,ssr:!1,children:(0,r.jsx)(l.t,{children:(0,r.jsxs)("div",{className:c().wrapper,children:[(0,r.jsx)(a.default,{className:c().img,src:"https://finuslugi.ru/icons/404.png",width:464,height:278,alt:"cats",unoptimized:!0}),(0,r.jsx)(a.default,{className:c().imgM,src:"https://finuslugi.ru/icons/404m.png",width:316,height:191,alt:"cats",unoptimized:!0}),(0,r.jsxs)("div",{className:c().main,children:[(0,r.jsxs)("div",{className:c().text,children:[(0,r.jsx)("h1",{children:"Ой, что-то не работает"}),(0,r.jsx)("p",{children:"Зайдите, пожалуйста, позже"})]}),(0,r.jsx)(i.zx,{label:"Обновить страницу",onClick:()=>{if(o){o();return}window.location.reload()}})]})]})})})};var u=n(2265);n(83079);var d=(0,n(12119).$)("edcfe1999a77c8cb1e1508cd0ef81ed1a01abfae");function m(e){let{error:t,reset:n}=e,{layout:i,aggregatorIds:a}=function(){let[e,t]=(0,u.useState)({}),[n,r]=(0,u.useState)({});return(0,u.useEffect)(()=>{(async()=>{let{layout:e,aggregatorIds:n}=await d();t(e),r(n)})()},[]),{layout:e,aggregatorIds:n}}();return(0,r.jsx)(_,{layout:i,aggregatorIds:a,error:t,reset:n})}},22240:function(e,t,n){"use strict";n.d(t,{CpaParams:function(){return d},default:function(){return u}});var r=n(57437),i=n(16715),a=n(27194),s=n(87467),l=n(14862),o=n(34039),c=n(38050);let _="".concat(l.m.ASSETS_URL,"/mp-assets");function u(e){let{children:t,aggregatorIds:n,headerData:o,footerData:u}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{aggregatorIds:n}),(0,r.jsxs)(r.Fragment,{children:[o&&(0,r.jsx)(s.H,{data:o,showcaseUrl:l.m.BASE_URL,minioUrl:_,lkUrl:l.m.LK_URL}),t,u&&(0,r.jsx)(a.F,{data:u,showcaseUrl:l.m.BASE_URL,minioUrl:_})]}),(0,r.jsx)(c.h,{children:(0,r.jsx)(i.z,{})})]})}function d(e){return(0,o.Z)(e.aggregatorIds),null}},28819:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(57437),i=n(54365),a=n(41315),s=n.n(a);let l=e=>{let{children:t,className:n}=e;return(0,r.jsx)("div",{className:(0,i.Z)(s().mainContainer,n),children:t})};l.displayName="MainContainer"},38050:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(2265),i=n(54887);let a=e=>{let{children:t}=e,[n,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{var e;let t=null===(e=document)||void 0===e?void 0:e.getElementById("portal-root");t&&a(t)},[]),n&&(0,i.createPortal)(t,n)}},14862:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(50666),i=n(64900);let a=()=>i.ZP.enum(["true","false"]).optional().transform(e=>"true"===e),s=i.ZP.object({ASSETS_URL:i.ZP.string().url(),BACKEND_API:i.ZP.string().url(),BASE_URL:i.ZP.string().url(),BFF_SHOWCASE_API:i.ZP.string().url(),COMMON_BLOCKS_API:i.ZP.string().url(),HEADLESS_CMS_API:i.ZP.string().url(),LK_API:i.ZP.string().url(),LK_URL:i.ZP.string().url(),MP_SC_API_DIRECT:i.ZP.string().url(),MP_SC_API:i.ZP.string().url(),PAGE_CONTENT_API:i.ZP.string().url(),PROD_CAT_API:i.ZP.string().url(),PRODUCT_TAGS_API:i.ZP.string().url(),SEO_API:i.ZP.string().url(),REDIRECTS_API:i.ZP.string().url(),FEATURE_TOGGLE_USE_GLOBAL_SUSPENSE:a(),FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED:a()}),l=function(){let e={ASSETS_URL:(0,r.env)("NEXT_PUBLIC_ASSETS_BASE_URL"),BACKEND_API:(0,r.env)("NEXT_PUBLIC_API_URL"),BASE_URL:(0,r.env)("NEXT_PUBLIC_BASE_URL"),BFF_SHOWCASE_API:(0,r.env)("NEXT_PUBLIC_NEW_API_URL"),COMMON_BLOCKS_API:(0,r.env)("NEXT_PUBLIC_COMMON_BLOCKS_URL"),HEADLESS_CMS_API:(0,r.env)("NEXT_PUBLIC_HEADLESS_CMS_API_URL"),LK_API:(0,r.env)("NEXT_PUBLIC_LK_API_URL"),LK_URL:(0,r.env)("NEXT_PUBLIC_MOEX_AD_URI"),MP_SC_API_DIRECT:(0,r.env)("NEXT_PUBLIC_MP_SC_URL"),MP_SC_API:(0,r.env)("NEXT_PUBLIC_MP_SC_API_URL"),PAGE_CONTENT_API:(0,r.env)("NEXT_PUBLIC_PAGE_CONTENT_API"),PROD_CAT_API:(0,r.env)("NEXT_PUBLIC_PROD_CAT_CORE_API_URL"),PRODUCT_TAGS_API:(0,r.env)("NEXT_PUBLIC_PRODUCT_TAGS_API_URL"),SEO_API:(0,r.env)("NEXT_PUBLIC_SEO_API_URL"),REDIRECTS_API:(0,r.env)("NEXT_PUBLIC_MP_SC_REDIRECTS_API"),FEATURE_TOGGLE_USE_GLOBAL_SUSPENSE:(0,r.env)("NEXT_PUBLIC_FEATURE_TOGGLE_USE_GLOBAL_SUSPENSE"),FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED:(0,r.env)("NEXT_PUBLIC_FEATURE_TOGGLE_CUSTOM_TERMS_ENABLED")},t=s.safeParse(e);return t.success?t.data:(console.error("Invalid public env config:",t.error.format()),e)}()},53931:function(e,t,n){"use strict";n.d(t,{$1:function(){return _},LM:function(){return u}});var r=n(50666);let i=e=>/^https:\/\//gi.test(e),a=e=>["",...e.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."),s=()=>window.location.host.indexOf("localhost")>=0,l=e=>('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)),o=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),c=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),_=()=>{if("undefined"!=typeof document&&document.cookie)return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")).map(e=>e.map(e=>l(e))))},u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,l=(0,r.env)("NEXT_PUBLIC_BASE_URL");if(!l)throw Error("Не определена переменная окружения NEXT_PUBLIC_BASE_URL");let _=s()?"":"; domain=".concat(a(l)),u=new Date(new Date().getTime()+864e5*n).toUTCString();document.cookie="".concat(c(e),"=").concat(o("string"==typeof t?t:JSON.stringify(t)),"; SameSite=Strict").concat(i(l)?"; Secure":"").concat(_,"; expires=").concat(u,"; path=/;")}},91220:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});let r=function(e){var t,n,r,i;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"?",s=null!==(i=null===(r=e.split(a))||void 0===r?void 0:null===(n=r[1])||void 0===n?void 0:null===(t=n.split("?"===a?"#":"?")[0])||void 0===t?void 0:t.split("&"))&&void 0!==i?i:[],l={};return s.forEach(e=>{let[t,n]=e.split("="),r=null!=n?n:"";if(t in l){let e=l[t];if(Array.isArray(e)){l[t]=[...e,r];return}if(!Array.isArray(e)&&e){l[t]=[e,r];return}}l[t]=r}),l}},72151:function(e,t,n){"use strict";n.d(t,{lQ:function(){return a},yr:function(){return s}});var r=n(30631);let i=[{path:"banki",category:"service_bank"},{path:"strahovanie_kompanija",category:"service_sk"},{path:"adresa_sk",category:"service_sk"},{path:"adresa_mfo",category:"service_mfo"},{path:"adresa",category:"service_bank"},{path:"mfo",category:"service_mfo"},{path:"navigator",category:"service_navigator"},{path:"stat_",category:"service_navigator"}],a=(e,t)=>{let n=sessionStorage.getItem("pushedEvents"),i=n?JSON.parse(n):[];e.event=e.event?e.event:"data-event",e.eventValue=e.eventValue?e.eventValue:null,e.eventAction=e.eventAction&&"string"==typeof e.eventAction?e.eventAction.toLowerCase().replaceAll(/[ \xa0]/g,"_"):"",e.eventLabel=e.eventLabel&&"string"==typeof e.eventLabel?e.eventLabel.toLowerCase().replaceAll(/[ \xa0]/g,"_"):"";let a=i.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!a){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,r.AB)(e)}},s=e=>{for(let t of i)if(e.indexOf(t.path)>=0){let n=e.match(/str_(\d+)/),r=Array.isArray(n)&&n[1]?Number(n[1]):1;setTimeout(()=>{a({event:"data-event",eventCategory:t.category,eventAction:"stay_15_seconds",eventLabel:e,eventValue:r})},15e3);return}}},14441:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(99376),i=n(2265),a=n(91220);function s(){let e=(0,r.usePathname)(),t=(0,r.useSearchParams)(),n=(0,i.useMemo)(()=>{if(!e)return"";let n=location.hash,r=null==t?void 0:t.toString();return(null==r?void 0:r.length)?e+"?"+r+n:e+n},[t,e]),s=(0,i.useMemo)(()=>(0,a.p)(n,"?"),[n]),l=(0,i.useMemo)(()=>(0,a.p)(n,"#"),[n]),o=(0,i.useCallback)(e=>{history.pushState({url:e},"",e)},[]),c=(0,i.useCallback)(e=>{history.replaceState({url:e},"",e)},[]);return(0,i.useMemo)(()=>({asPath:n,query:s,hash:l,push:o,replace:c}),[l,n,o,s,c])}},34039:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(2265),i=n(53931),a=n(91220);let s=e=>(0,a.p)(e);var l=n(72151);let o=(e,t)=>{let n=s(e);if(n&&n.aggregator_id){let e={...n,create_date:new Date().toISOString()},a={payload:[]};try{var r;a=JSON.parse((null===(r=(0,i.$1)())||void 0===r?void 0:r.cpa_click)||"{}")}catch(e){return}a.payload||(a.payload=[]),a.payload.push(e);let s={event:"data-event",eventCategory:String(n.aggregator_id),eventAction:"CPA_click",eventLabel:window.location.pathname,eventValue:String(n.utm_term||n.click_id),utm_source:String(n.utm_source),utm_campaign:String(n.utm_campaign),utm_medium:String(n.utm_medium)};t[String(n.aggregator_id)]&&((0,i.LM)("cpa_click",a,30),(0,l.lQ)(s))}};var c=n(14441);function _(e){let{asPath:t}=(0,c.P)();(0,r.useEffect)(()=>{(0,l.yr)(t),o(t,e)},[e,t])}},41315:function(e){e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},32544:function(e){e.exports={main:"Err503_main__yNIg3",text:"Err503_text__JAU0z",wrapper:"Err503_wrapper__2DWge",img:"Err503_img__HCFaZ",imgM:"Err503_imgM__kLgWd",button:"Err503_button__19N_H"}},27194:function(e,t,n){"use strict";let r;n.d(t,{F:function(){return H}});var i=n(57437),a=n(35563),s=n(54365),l=n(77337),o=n(52074),c=n(75461),_=n(6554),u=n(80684),d=n(2265),m=n(94246);let p=(0,o.g)("footer-contacts-block","sc"),v=Object.freeze({contactsWrapper:`${p}__contacts-wrapper`,gray:`${p}__gray`,phones:`${p}__phones`,contactsButtons:`${p}__contacts-buttons`,vkIcon:`${p}__vk-icon`,tgIcon:`${p}__tg-icon`,dzenIcon:`${p}__dzen-icon`,maxIcon:`${p}__max-icon`,link:`${p}__link`}),g=(0,o.g)("footer","sc"),h=Object.freeze({wrapper:`${g}__wrapper`,section:`${g}__section`,container:`${g}__container`,top:`${g}__top`,main:`${g}__main`,links:`${g}__links`,disclaimer:`${g}__disclaimer`,bottom:`${g}__bottom`,bottomLinks:`${g}__bottom-links`,bottomDisclaimer:`${g}__bottom-disclaimer`,compact:`${g}__wrapper--compact`,white:`${g}__wrapper--white`}),f="finkit-widgets-sc-footer",x=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"}],A=[...x,{title:"Онлайн чат",url:void 0}],E=[{type:"vk",className:v.vkIcon,iconName:"vk"},{type:"telegramChannel",className:v.tgIcon,iconName:"telegram"},{type:"dzen",className:v.dzenIcon,iconName:"dzen"},{type:"max",className:v.maxIcon,iconName:"max"}],j=(0,i.jsxs)("p",{children:["На сайте finuslugi.ru предоставляются услуги оператора финансовой платформы ПАО Московская Биржа, а также услуги ООО \xabМБ Маркетплейс\xbb, организации, не являющейся оператором финансовой платформы в соответствии с Федеральным законом от 20.07.2020 №211-ФЗ \xabО совершении финансовых сделок с использованием финансовой платформы\xbb. Услуги оператора финансовой платформы ПАО Московская Биржа обозначены пометкой \xabОткрытие онлайн на Финуслугах\xbb. Иная информация на сайте www.finuslugi.ru считается размещенной ООО \xabМБ Маркетплейс\xbb, если иное явно не следует из существа размещаемой информации. ООО \xabМБ Маркетплейс\xbb входит в Группу \xabМосковская Биржа\xbb.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),b=({onClick:e,eventActionText:t,eventLabel:n,...r})=>(0,i.jsx)(c.zx,{onClick:r=>{null==e||e(r),(0,_.h)({eventCategory:f,eventActionType:_.D.button,eventActionText:t||"",eventLabel:n})},...r}),N=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:r,chat:a,...s})=>(0,i.jsx)(c.rU,{onClick:i=>{var s,l,o;null==e||e(i),a&&(null==i||i.preventDefault(),null==(o=null==(l=null==(s=null==window?void 0:window.supportWidget)?void 0:s.craftTalk)?void 0:l.open)||o.call(l)),(0,_.h)({eventCategory:f,eventActionType:t||_.D.link,eventActionText:n||"",eventLabel:r})},...s}),S=({minioUrl:e,blogs:t})=>(0,i.jsxs)("div",{className:v.contactsWrapper,children:[(0,i.jsx)(a.xv,{className:v.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,i.jsx)("div",{className:v.phones,children:A.map(({title:e,url:t})=>(0,i.jsx)(N,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,i.jsx)(a.xv,{className:v.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,i.jsx)("div",{className:v.contactsButtons,children:E.map(({type:n,className:r,iconName:a})=>(0,i.jsx)(b,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:r,iconRight:(0,i.jsx)("img",{width:24,height:24,src:(0,l.xn)(e,`/widgets/footer/${a}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:null==t?void 0:t[n]},n))}),(0,i.jsx)(a.xv,{className:v.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,i.jsx)("div",{className:v.contactsButtons,children:(0,i.jsxs)(N,{href:null==t?void 0:t.investTg,target:"_blank",className:v.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,i.jsx)(b,{className:v.tgIcon,iconRight:(0,i.jsx)("img",{width:24,height:24,src:(0,l.xn)(e,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),L=(0,o.g)("footer-disclaimer","sc"),w=Object.freeze({disclaimer:`${L}`}),C=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,_.h)({eventCategory:f,eventActionType:_.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,i.jsx)("div",{className:(0,s.Z)(e.className,w.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,i.jsx)("div",{className:(0,s.Z)(e.className,w.disclaimer),onClick:t,children:e.children})},P=()=>{let e=new URL(window.location.href),t=new URLSearchParams;return e.searchParams.forEach((e,n)=>{/^utm_/i.test(n)&&t.set(n,e)}),t},T=(e="")=>{let[t,n]=(0,d.useState)(e);return(0,d.useEffect)(()=>{let t=P();if(!t||0===t.size)return;let[r,i=""]=e.split("?"),a=new URLSearchParams(i);t.forEach((e,t)=>{a.has(t)||a.set(t,e)});let s=a.toString();n(s?`${r}?${s}`:r)},[e]),t},U=(0,o.g)("footer-modal-body","sc"),I=Object.freeze({wrapper:`${U}__wrapper`,title:`${U}__title`,item:`${U}__item`,label:`${U}__label`,button:`${U}__button`,description:`${U}__description`}),y=({directions:e})=>(0,i.jsxs)("div",{className:I.wrapper,children:[(0,i.jsx)("div",{className:I.title,children:"Направления"}),e.map(e=>(0,i.jsxs)(N,{className:I.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,i.jsxs)("div",{className:I.label,children:[(0,i.jsx)("span",{children:e.name}),(0,i.jsx)(b,{className:I.button,iconRight:(0,i.jsx)(u.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,i.jsx)("p",{className:I.description,children:e.description})]},e.url))]}),k=(0,o.g)("footer-popup","sc"),R=Object.freeze({wrapper:`${k}__wrapper`,button:`${k}__button`,icon:`${k}__icon`,buttonWrapper:`${k}__button-wrapper`}),O=({directions:e})=>{let t=(0,c._m)("l"),[n,r]=(0,d.useState)(!1),a=()=>{r(!1)};return(0,i.jsxs)("div",{className:R.wrapper,children:[(0,i.jsx)("div",{className:R.buttonWrapper,children:(0,i.jsx)(b,{className:R.button,appearance:"ghost",variant:"white",onClick:()=>{r(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,i.jsx)("div",{className:R.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,i.jsx)("div",{},e))})})}),(0,i.jsxs)(m.P,{children:[!t&&(0,i.jsx)(m.U,{isOpen:n,onClose:a,full:!0,children:(0,i.jsx)(y,{directions:e})}),t&&(0,i.jsx)(m.D,{isOpen:n,onClose:a,width:"804px",children:(0,i.jsx)(y,{directions:e})})]})]})},$=(0,o.g)("footer-left-column","sc"),B=Object.freeze({leftColumn:`${$}__left-column`,logoWrapper:`${$}__logo-wrapper`,banner:`${$}__banner`,mobAppLink:`${$}__mob-app-link`,br:`${$}__br`}),D=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:r})=>{let s=T(r);return(0,i.jsxs)("div",{className:B.leftColumn,children:[(0,i.jsx)(N,{className:B.logoWrapper,href:e,eventActionType:_.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,i.jsx)("img",{src:(0,l.xn)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,i.jsx)(O,{directions:n??[]}),(0,i.jsx)(N,{href:s,target:"_blank",eventActionType:_.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:s,className:B.mobAppLink,children:(0,i.jsxs)(a.Zb,{className:B.banner,children:[(0,i.jsxs)(a.xv,{weight:"medium",children:["Управляйте финансами",(0,i.jsx)("br",{}),"через приложение",(0,i.jsx)("br",{className:B.br})," Финуслуг"]}),(0,i.jsx)(b,{iconRight:(0,i.jsx)(u.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,l.xn)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,i.jsx)("img",{src:(0,l.xn)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},M=(0,o.g)("footer-logo","sc"),z=Object.freeze({wrapper:`${M}__wrapper`,link:`${M}__link`,fromMoex:`${M}__from-moex`,logo:`${M}__logo`,white:`${M}__wrapper--white`}),Z=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,i.jsx)("div",{className:(0,s.Z)(z.wrapper,{[z.white]:n}),children:(0,i.jsxs)(N,{className:z.link,href:e,eventActionType:_.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,i.jsx)("img",{className:z.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,i.jsx)("img",{className:z.fromMoex,src:`${t}/images/fromMoex.svg`})]})});var F=((r=F||{}).BLACK="black",r.GRAY="gray",r);let G=(0,o.g)("footer-warning","sc"),X=Object.freeze({reservedSpace:`${G}__reserved-space`,wrapper:`${G}__wrapper`,wrapperGray:`${G}__wrapper--gray`,fixed:`${G}__wrapper--fixed`,container:`${G}__container`,text:`${G}__text`,invisibleText:`${G}__text--invisible`}),W=({text:e,variant:t,fixed:n,isPlaceholder:r})=>(0,i.jsx)("div",{className:(0,s.Z)(X.wrapper,{[X.wrapperGray]:"gray"===t,[X.fixed]:n&&!r}),children:(0,i.jsx)(a.W2,{className:X.container,children:(0,i.jsx)("div",{className:(0,s.Z)(X.text,{[X.invisibleText]:r}),dangerouslySetInnerHTML:{__html:e}})})}),K=({warning:e})=>{let t="string"==typeof e?{text:e}:e,n={text:t.text,fixed:t.fixed??!0,variant:t.variant??F.BLACK};return(0,i.jsxs)("div",{className:X.reservedSpace,children:[(0,i.jsx)(W,{...n,isPlaceholder:n.fixed}),n.fixed&&(0,i.jsx)(W,{...n,fixed:!0})]})},H=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:r,variant:l="default",className:o})=>{var c,_;let u=!r&&null!=e&&e.disclaimer?e.disclaimer:void 0,d=l.includes("compact"),m=l.includes("white"),p=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(d?x:[]),v=e&&"warning"in e?e.warning:void 0;return e?(0,i.jsx)("footer",{className:(0,s.Z)(h.wrapper,o,{[h.compact]:d,[h.white]:m}),children:(0,i.jsxs)("section",{className:h.section,children:[(0,i.jsxs)(a.W2,{className:h.container,children:[!d&&(0,i.jsx)(D,{showcaseUrl:t,minioUrl:n,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,i.jsx)("div",{className:h.wrapper,children:(0,i.jsxs)("div",{className:h.top,children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:h.main,children:[!d&&(0,i.jsx)("div",{className:h.links,children:null==(_=null==e?void 0:e.top)?void 0:_.map(e=>(0,i.jsx)(N,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),d&&(0,i.jsx)(Z,{showcaseUrl:t,minioUrl:n,isWhite:m}),(0,i.jsx)(C,{className:h.disclaimer,disclaimer:u,children:r||j})]}),(0,i.jsxs)("div",{className:h.bottom,children:[(0,i.jsx)("div",{className:h.bottomLinks,children:null==p?void 0:p.map(e=>(0,i.jsx)(N,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,i.jsx)(C,{className:h.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!d&&(0,i.jsx)(S,{minioUrl:n,blogs:null==e?void 0:e.blogs})]})})]}),d&&!!v&&(0,i.jsx)(K,{warning:v})]})}):null}},16715:function(e,t,n){"use strict";n.d(t,{z:function(){return _}});var r=n(57437),i=n(2265),a=n(80684),s=n(54365),l=n(55487);let o=(0,n(52074).g)("cookies-plate","sc"),c=Object.freeze({wrapper:"".concat(o,"__wrapper"),contentWrapper:"".concat(o,"__content-wrapper"),visible:"".concat(o,"--visible"),hidden:"".concat(o,"--hidden"),content:"".concat(o,"__content"),text:"".concat(o,"__text"),link:"".concat(o,"__link"),button:"".concat(o,"__button")}),_=e=>{let{className:t,mountDelay:n=3e3,href:o="https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",children:_,closeIcon:u,onMount:d,onLinkClick:m,onClose:p,mountAfterScroll:v=!0}=e,[g,h]=(0,i.useState)(!1),[f,x]=(0,i.useState)(!1),[A,E]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),l.a.getItem("Allow-Cookie")||(E(!0),setTimeout(()=>{h(!0),null==d||d()},n))};return v?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let j=(0,i.useCallback)(()=>{l.a.setItem("Allow-Cookie","1"),x(!0),null==p||p(),setTimeout(()=>E(!1),1e3)},[p]);return A?(0,r.jsx)("div",{className:c.wrapper,children:(0,r.jsx)("div",{className:(0,s.Z)(c.contentWrapper,{[c.visible]:g,[c.hidden]:f}),children:(0,r.jsxs)("div",{className:(0,s.Z)(t,c.content),children:[_||(0,r.jsxs)("p",{className:c.text,children:["Мы используем"," ",(0,r.jsx)("a",{className:c.link,href:o,target:"_blank",rel:"noreferrer",onClick:m,children:"cookie"})," ","для лучшей работы сайта"]}),(0,r.jsx)("button",{className:c.button,onClick:j,children:u||(0,r.jsx)(a.IconFdsCloseO,{})})]})})}):(0,r.jsx)(r.Fragment,{})}}},function(e){e.O(0,[582,5501,5458,207,3544,5346,871,8401,3145,5234,7467,2971,2117,1744],function(){return e(e.s=86684)}),_N_E=e.O()}]);