"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2848],{52848:function(e,t,n){let l;n.d(t,{F:function(){return J}});var o=n(57437),i=n(35563),r=n(61994),s=n(77337),c=n(52074),a=n(75461),d=n(49750),u=n(80684),p=n(2265),m=n(94246);let h=(0,c.g)("footer-contacts-block","sc"),v=Object.freeze({contactsWrapper:`${h}__contacts-wrapper`,gray:`${h}__gray`,phones:`${h}__phones`,contactsButtons:`${h}__contacts-buttons`,vkIcon:`${h}__vk-icon`,tgIcon:`${h}__tg-icon`,dzenIcon:`${h}__dzen-icon`,maxIcon:`${h}__max-icon`,link:`${h}__link`}),_=(0,c.g)("footer","sc"),f=Object.freeze({wrapper:`${_}__wrapper`,section:`${_}__section`,container:`${_}__container`,top:`${_}__top`,main:`${_}__main`,links:`${_}__links`,disclaimer:`${_}__disclaimer`,bottom:`${_}__bottom`,bottomLinks:`${_}__bottom-links`,bottomDisclaimer:`${_}__bottom-disclaimer`,compact:`${_}__wrapper--compact`,white:`${_}__wrapper--white`}),g="finkit-widgets-sc-footer",x=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"8 (800) 700-64-94",url:"tel:88007006494"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"},{title:"+7 (495) 787-64-94",url:"tel:+74957876494"}],w=[...x,{title:"Онлайн чат",url:void 0}],b=[{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,o.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,o.jsx)("br",{}),(0,o.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),$=({onClick:e,eventActionText:t,eventLabel:n,...l})=>(0,o.jsx)(a.zx,{onClick:l=>{null==e||e(l),(0,d.h)({eventCategory:g,eventActionType:d.D.button,eventActionText:t||"",eventLabel:n})},...l}),y=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:l,chat:i,...r})=>(0,o.jsx)(a.rU,{onClick:o=>{var r,s,c;null==e||e(o),i&&(null==o||o.preventDefault(),null==(c=null==(s=null==(r=null==window?void 0:window.supportWidget)?void 0:r.craftTalk)?void 0:s.open)||c.call(s)),(0,d.h)({eventCategory:g,eventActionType:t||d.D.link,eventActionText:n||"",eventLabel:l})},...r}),N=({minioUrl:e,blogs:t})=>(0,o.jsxs)("div",{className:v.contactsWrapper,children:[(0,o.jsx)(i.xv,{className:v.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,o.jsx)("div",{className:v.phones,children:w.map(({title:e,url:t})=>(0,o.jsx)(y,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,o.jsx)(i.xv,{className:v.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,o.jsx)("div",{className:v.contactsButtons,children:b.map(({type:n,className:l,iconName:i})=>(0,o.jsx)($,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:l,iconRight:(0,o.jsx)("img",{width:24,height:24,src:(0,s.xn)(e,`/widgets/footer/${i}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:null==t?void 0:t[n]},n))}),(0,o.jsx)(i.xv,{className:v.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,o.jsx)("div",{className:v.contactsButtons,children:(0,o.jsxs)(y,{href:null==t?void 0:t.investTg,target:"_blank",className:v.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,o.jsx)($,{className:v.tgIcon,iconRight:(0,o.jsx)("img",{width:24,height:24,src:(0,s.xn)(e,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),k=(0,c.g)("footer-disclaimer","sc"),C=Object.freeze({disclaimer:`${k}`}),A=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,d.h)({eventCategory:g,eventActionType:d.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,o.jsx)("div",{className:(0,r.Z)(e.className,C.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,o.jsx)("div",{className:(0,r.Z)(e.className,C.disclaimer),onClick:t,children:e.children})},L=()=>{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,p.useState)(e);return(0,p.useEffect)(()=>{let t=L();if(!t||0===t.size)return;let[l,o=""]=e.split("?"),i=new URLSearchParams(o);t.forEach((e,t)=>{i.has(t)||i.set(t,e)});let r=i.toString();n(r?`${l}?${r}`:l)},[e]),t},S=(0,c.g)("footer-modal-body","sc"),O=Object.freeze({wrapper:`${S}__wrapper`,title:`${S}__title`,item:`${S}__item`,label:`${S}__label`,button:`${S}__button`,description:`${S}__description`}),z=({directions:e})=>(0,o.jsxs)("div",{className:O.wrapper,children:[(0,o.jsx)("div",{className:O.title,children:"Направления"}),e.map(e=>(0,o.jsxs)(y,{className:O.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,o.jsxs)("div",{className:O.label,children:[(0,o.jsx)("span",{children:e.name}),(0,o.jsx)($,{className:O.button,iconRight:(0,o.jsx)(u.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,o.jsx)("p",{className:O.description,children:e.description})]},e.url))]}),P=(0,c.g)("footer-popup","sc"),E=Object.freeze({wrapper:`${P}__wrapper`,button:`${P}__button`,icon:`${P}__icon`,buttonWrapper:`${P}__button-wrapper`}),U=({directions:e})=>{let t=(0,a._m)("l"),[n,l]=(0,p.useState)(!1),i=()=>{l(!1)};return(0,o.jsxs)("div",{className:E.wrapper,children:[(0,o.jsx)("div",{className:E.buttonWrapper,children:(0,o.jsx)($,{className:E.button,appearance:"ghost",variant:"white",onClick:()=>{l(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,o.jsx)("div",{className:E.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,o.jsx)("div",{},e))})})}),(0,o.jsxs)(m.P,{children:[!t&&(0,o.jsx)(m.U,{isOpen:n,onClose:i,full:!0,children:(0,o.jsx)(z,{directions:e})}),t&&(0,o.jsx)(m.D,{isOpen:n,onClose:i,width:"804px",children:(0,o.jsx)(z,{directions:e})})]})]})},R=(0,c.g)("footer-left-column","sc"),D=Object.freeze({leftColumn:`${R}__left-column`,logoWrapper:`${R}__logo-wrapper`,banner:`${R}__banner`,mobAppLink:`${R}__mob-app-link`,br:`${R}__br`}),I=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:l})=>{let r=T(l);return(0,o.jsxs)("div",{className:D.leftColumn,children:[(0,o.jsx)(y,{className:D.logoWrapper,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,o.jsx)("img",{src:(0,s.xn)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,o.jsx)(U,{directions:n??[]}),(0,o.jsx)(y,{href:r,target:"_blank",eventActionType:d.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:r,className:D.mobAppLink,children:(0,o.jsxs)(i.Zb,{className:D.banner,children:[(0,o.jsxs)(i.xv,{weight:"medium",children:["Управляйте финансами",(0,o.jsx)("br",{}),"через приложение",(0,o.jsx)("br",{className:D.br})," Финуслуг"]}),(0,o.jsx)($,{iconRight:(0,o.jsx)(u.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcSet:(0,s.xn)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,o.jsx)("img",{src:(0,s.xn)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},Z=(0,c.g)("footer-logo","sc"),B=Object.freeze({wrapper:`${Z}__wrapper`,link:`${Z}__link`,fromMoex:`${Z}__from-moex`,logo:`${Z}__logo`,white:`${Z}__wrapper--white`}),W=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,o.jsx)("div",{className:(0,r.Z)(B.wrapper,{[B.white]:n}),children:(0,o.jsxs)(y,{className:B.link,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,o.jsx)("img",{className:B.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,o.jsx)("img",{className:B.fromMoex,src:`${t}/images/fromMoex.svg`})]})});var F=((l=F||{}).BLACK="black",l.GRAY="gray",l);let M=(0,c.g)("footer-warning","sc"),H=Object.freeze({reservedSpace:`${M}__reserved-space`,wrapper:`${M}__wrapper`,wrapperGray:`${M}__wrapper--gray`,fixed:`${M}__wrapper--fixed`,container:`${M}__container`,text:`${M}__text`,invisibleText:`${M}__text--invisible`}),Y=({text:e,variant:t,fixed:n,isPlaceholder:l})=>(0,o.jsx)("div",{className:(0,r.Z)(H.wrapper,{[H.wrapperGray]:"gray"===t,[H.fixed]:n&&!l}),children:(0,o.jsx)(i.W2,{className:H.container,children:(0,o.jsx)("div",{className:(0,r.Z)(H.text,{[H.invisibleText]:l}),dangerouslySetInnerHTML:{__html:e}})})}),G=({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,o.jsxs)("div",{className:H.reservedSpace,children:[(0,o.jsx)(Y,{...n,isPlaceholder:n.fixed}),n.fixed&&(0,o.jsx)(Y,{...n,fixed:!0})]})},J=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:l,variant:s="default",className:c})=>{var a,d;let u=!l&&null!=e&&e.disclaimer?e.disclaimer:void 0,p=s.includes("compact"),m=s.includes("white"),h=null==(a=null==e?void 0:e.bottom)?void 0:a.concat(p?x:[]),v=e&&"warning"in e?e.warning:void 0;return e?(0,o.jsx)("footer",{className:(0,r.Z)(f.wrapper,c,{[f.compact]:p,[f.white]:m}),children:(0,o.jsxs)("section",{className:f.section,children:[(0,o.jsxs)(i.W2,{className:f.container,children:[!p&&(0,o.jsx)(I,{showcaseUrl:t,minioUrl:n,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,o.jsx)("div",{className:f.wrapper,children:(0,o.jsxs)("div",{className:f.top,children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:f.main,children:[!p&&(0,o.jsx)("div",{className:f.links,children:null==(d=null==e?void 0:e.top)?void 0:d.map(e=>(0,o.jsx)(y,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),p&&(0,o.jsx)(W,{showcaseUrl:t,minioUrl:n,isWhite:m}),(0,o.jsx)(A,{className:f.disclaimer,disclaimer:u,children:l||j})]}),(0,o.jsxs)("div",{className:f.bottom,children:[(0,o.jsx)("div",{className:f.bottomLinks,children:null==h?void 0:h.map(e=>(0,o.jsx)(y,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,o.jsx)(A,{className:f.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!p&&(0,o.jsx)(N,{minioUrl:n,blogs:null==e?void 0:e.blogs})]})})]}),p&&!!v&&(0,o.jsx)(G,{warning:v})]})}):null}},94246:function(e,t,n){n.d(t,{D:function(){return S},P:function(){return I},U:function(){return D},u:function(){return b}});var l=n(57437),o=n(2265),i=n(61994),r=n(80684),s=n(52074),c=n(54887);let a=300,d=({opened:e})=>{let[t,n]=(0,o.useState)(!1),l=(0,o.useRef)(null),i=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(e&&!i.current?(i.current=!0,n(!0)):!e&&i.current&&(l.current=setTimeout(()=>{i.current=!1,n(!1)},a)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}},u=(0,s.g)("click-outside","sc"),p=Object.freeze({overlay:`${u}__overlay`,open:`${u}--open`,close:`${u}--close`}),m=({onClose:e,onToucheMove:t,isOpen:n,delay:r=a})=>{let s=(0,o.useRef)(null),c=(0,o.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},r))},[r,e]),d=(0,o.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,o.useEffect)(()=>(n&&window.addEventListener("keydown",d),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",d)}),[n,d]),(0,l.jsx)("div",{className:(0,i.Z)(p.overlay,{[p.open]:n,[p.close]:!n}),onTouchStart:t,onClick:c})},h=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},v=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},_=(e,t,n)=>{t.style.setProperty("overflow-y","scroll"),e.classList.toggle("scroll-disable-windows",!0),e.style.setProperty("width",`calc(100vw - ${n}px)`),e.style.setProperty("top",`-${window.prevScrollPosition}px`)},f=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vh")},g=e=>{e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},x=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},w=()=>document.querySelectorAll("[data-portal]").length>1,b=e=>{let t=(0,o.useRef)(null),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(n.current===e)return;n.current=e;let l=t.current,o=document.body,i=document.documentElement,r=window.innerWidth-i.clientWidth,s=r>0;if(e&&s)v(o),_(o,i,r),h(l,!0);else if(e)f(o),h(l,!0);else{let e=!w();e&&g(o),e&&x(),h(l,!1)}return()=>{let e=!w();e&&g(o),e&&x()}},[e]),t},j=(0,s.g)("drawer-footer","sc"),$=Object.freeze({footer:`${j}__footer`,hasScroll:`${j}__footer--has-scroll`}),y=({footer:e,hasScroll:t,className:n})=>(0,l.jsx)("div",{className:(0,i.Z)($.footer,{[$.hasScroll]:t},n),children:"function"==typeof e?e():e}),N=(0,s.g)("drawer-content","sc"),k=Object.freeze({container:`${N}__container`,open:`${N}--open`,close:`${N}--close`,header:`${N}__header`,rowHeader:`${N}__header--row`,title:`${N}__title`,center:`${N}__title--center`,left:`${N}__title--left`,right:`${N}__title--right`,controlContainer:`${N}__control-container`,content:`${N}__content`,footer:`${N}__footer`}),C=({onClose:e,onContentClick:t,children:n,title:s,rowTitle:c,titleAlign:a,isCloseable:d,footer:u,closeButton:p,isOpen:m,contentClassName:h,footerClassName:v,contentStyle:_,width:f})=>{let g=(0,o.useRef)(null),x=(0,o.useRef)(null),[w,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{var e;if(!x.current||!g.current)return;let t=(null==(e=null==x?void 0:x.current)?void 0:e.getBoundingClientRect().top)||0,n=null==g?void 0:g.current,l=()=>{let e=null==x?void 0:x.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",l,!1),()=>{null==n||n.removeEventListener("scroll",l,!1)}},[]);let j=_||f?{width:f,..._||{}}:void 0;return(0,l.jsxs)("div",{ref:g,style:j,className:(0,i.Z)(k.container,{[k.open]:m,[k.close]:!m},h),children:[s||d?(0,l.jsxs)("div",{className:(0,i.Z)(k.header,{[k.rowHeader]:c}),children:[d?p?"function"==typeof p?p():p:(0,l.jsx)("button",{type:"button",className:k.controlContainer,onClick:e,children:(0,l.jsx)(r.IconFdsCloseO,{size:24})}):null,s?(0,l.jsx)("h3",{className:(0,i.Z)(k.title,{[k[a]]:!0}),children:s}):null]}):null,(0,l.jsx)("div",{ref:x,className:k.content,onClick:t,children:n}),u&&(0,l.jsx)(y,{className:(0,i.Z)(k.footer,v),footer:u,hasScroll:w})]})},A=(0,s.g)("drawer-layout","sc"),L=Object.freeze({window:`${A}__window`}),T=({onClose:e,isOpen:t,children:n,withDisabledScroll:r,className:s,...c})=>{let a=(0,o.useCallback)(e=>e.stopPropagation(),[]);return b(t&&r),(0,l.jsxs)("div",{"data-portal":!0,className:(0,i.Z)(L.window,s),children:[(0,l.jsx)(m,{onClose:e,isOpen:t,delay:0}),(0,l.jsx)(C,{onContentClick:a,onClose:e,isOpen:t,...c,children:n})]})},S=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:o=!0,withDisabledScroll:i=!0,...r})=>{let{mounted:s}=d({opened:e});return s?(0,l.jsx)(T,{titleAlign:n,isCloseable:o,isOpen:e,withDisabledScroll:i,...r,children:t}):null};S.displayName="Drawer";let O=(0,s.g)("mobile-modal-footer","sc"),z=Object.freeze({footer:`${O}__footer`,footerWithoutShadow:`${O}__footer--without-shadow`}),P=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,l.jsx)("div",{className:(0,i.Z)(z.footer,t&&z.footerWithoutShadow,n),children:"function"==typeof e?e():e}),E=(0,s.g)("mobile-popup","sc"),U=Object.freeze({mobilePopup:`${E}`,mobilePopupOpen:`${E}--open`,content:`${E}__content`,contentFull:`${E}__content--full`,contentTransition:`${E}__content--transition`,contentTransitionOpen:`${E}__content--transition-open`,contentLine:`${E}__content-line`,contentContainer:`${E}__content-container`,smallContentContainer:`${E}__content-container--small`,min:`${E}__content-container--min`,title:`${E}__title`,closeContainer:`${E}__close-container`,closeButton:`${E}__close-button`}),R=({children:e,footer:t,isOpen:n,isSmallPopup:s,onClose:c,hasCloseButton:a=!0,full:d,touchDistance:u=100,withDisabledScroll:p=!0,contentClassName:h,className:v,title:_,closeButton:f,footerClassName:g})=>{let[x,w]=(0,o.useState)(!1),[j,$]=(0,o.useState)(!1),[y,N]=(0,o.useState)(!0),[k,C]=(0,o.useState)("120%"),A=(0,o.useRef)(null),L=(0,o.useRef)(0),T=(0,o.useRef)(!1),S=e=>{var t,n,l;let o=null==(t=A.current)?void 0:t.offsetTop,i=null==(n=A.current)?void 0:n.offsetHeight;if(T.current=!0,N(!1),o&&i){let t=(null==(l=null==e?void 0:e.touches[0])?void 0:l.clientY)-o,n=0;t>=0&&t<=i+30&&(n=t),t>i+30&&(n=i+30),C(`${n}px`),L.current=n}},O=()=>{T.current&&(L.current>u&&c?null==c||c():C("0"),N(!0),T.current=!1),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",O)};return(0,o.useEffect)(()=>{n&&setTimeout(()=>{w(!0),$(!0),C("0")},100),!n&&j&&(C("120%"),w(!1),$(!1))},[j,n]),b(n&&p),(0,l.jsxs)("div",{"data-portal":!0,className:(0,i.Z)(U.mobilePopup,j&&U.mobilePopupOpen,v),children:[(0,l.jsx)(m,{onClose:()=>{n&&(null==c||c())},onToucheMove:()=>{n&&(w(!1),window.addEventListener("touchmove",S),window.addEventListener("touchend",O))},isOpen:n,delay:0}),(0,l.jsxs)("div",{className:(0,i.Z)(U.content,d&&U.contentFull,y&&U.contentTransition,y&&x&&U.contentTransitionOpen),ref:A,style:{transform:`translateY(${k})`},children:[(0,l.jsx)("div",{className:U.contentLine}),(0,l.jsxs)("div",{className:(0,i.Z)(U.contentContainer,s&&U.smallContentContainer,{[U.min]:!_&&!a},h),children:[!!_&&(0,l.jsx)("div",{className:U.title,children:_}),a?(0,l.jsx)("div",{className:U.closeContainer,children:a?f?"function"==typeof f?f():f:(0,l.jsx)("button",{onClick:c,className:U.closeButton,children:(0,l.jsx)(r.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,l.jsx)(P,{footerClassName:g,isSmallPopup:s,footer:t})]})]})},D=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...o})=>{let{mounted:i}=d({opened:n});return i?(0,l.jsx)(R,{isSmallPopup:t,isOpen:n,...o,children:e}):null};D.displayName="UiMobilePopup";let I=({children:e,id:t="portal-root"})=>{let[n,l]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let e=document.getElementById(t);if(e){l(e);return}let n=document.createElement("div");return n.id=t,document.body.appendChild(n),l(n),()=>{document.body.removeChild(n)}},[t]),n?(0,c.createPortal)(e,n):null}},52074:function(e,t,n){n.d(t,{g:function(){return l}});function l(e,t){return`finkit-widgets-${t}-${e}`}},49750:function(e,t,n){let l;n.d(t,{D:function(){return s},h:function(){return a}});var o=n(31620),i=n(30631);let r=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),l=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let o=l.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||!o){if(t){let t={...e};t.url=window.location.pathname,l.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(l))}(0,i.AB)(e)}};var s=((l=s||{}).icon="icon",l.chip="chip",l.accordion="accordion",l.button="button",l.checkbox="checkbox",l.radio="radio",l.select="select",l.toggle="toggle",l.tooltip="tooltip",l.link="link",l.banner="banner",l.tag="tag",l.date="date",l.field="field",l.offer="offer",l.tab="tab",l.submitButton="submitButton",l.popup="popup",l.block="block",l);let c={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"},a=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:l})=>{let i={event:"data-event",eventCategory:e,eventAction:c[t]+(0,o.t)(n)};void 0!==l&&(i.eventLabel=(0,o.t)("string"==typeof l?l:l.toString())),r(i)}},31620:function(e,t,n){n.d(t,{t:function(){return o}});let l={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},o=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in l?l[t]:e}).replaceAll(/[ \u00A0]/g,"_")}}]);