"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2848],{52848:function(e,t,n){let o;n.d(t,{F:function(){return J}});var l=n(57437),i=n(35563),r=n(61994),s=n(77337),c=n(52074),a=n(75461),u=n(6554),d=n(80684),p=n(2265),m=n(94246);let h=(0,c.g)("footer-contacts-block","sc"),f=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`}),v=(0,c.g)("footer","sc"),_=Object.freeze({wrapper:`${v}__wrapper`,section:`${v}__section`,container:`${v}__container`,top:`${v}__top`,main:`${v}__main`,links:`${v}__links`,disclaimer:`${v}__disclaimer`,bottom:`${v}__bottom`,bottomLinks:`${v}__bottom-links`,bottomDisclaimer:`${v}__bottom-disclaimer`,compact:`${v}__wrapper--compact`,white:`${v}__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:f.vkIcon,iconName:"vk"},{type:"telegramChannel",className:f.tgIcon,iconName:"telegram"},{type:"dzen",className:f.dzenIcon,iconName:"dzen"},{type:"max",className:f.maxIcon,iconName:"max"}],j=(0,l.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,l.jsx)("br",{}),(0,l.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),y=({onClick:e,eventActionText:t,eventLabel:n,...o})=>(0,l.jsx)(a.zx,{onClick:o=>{null==e||e(o),(0,u.h)({eventCategory:g,eventActionType:u.D.button,eventActionText:t||"",eventLabel:n})},...o}),$=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:o,chat:i,...r})=>(0,l.jsx)(a.rU,{onClick:l=>{var r,s,c;null==e||e(l),i&&(null==l||l.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,u.h)({eventCategory:g,eventActionType:t||u.D.link,eventActionText:n||"",eventLabel:o})},...r}),N=({minioUrl:e,blogs:t})=>(0,l.jsxs)("div",{className:f.contactsWrapper,children:[(0,l.jsx)(i.xv,{className:f.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,l.jsx)("div",{className:f.phones,children:w.map(({title:e,url:t})=>(0,l.jsx)($,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,l.jsx)(i.xv,{className:f.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,l.jsx)("div",{className:f.contactsButtons,children:b.map(({type:n,className:o,iconName:i})=>(0,l.jsx)(y,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:o,iconRight:(0,l.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,l.jsx)(i.xv,{className:f.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,l.jsx)("div",{className:f.contactsButtons,children:(0,l.jsxs)($,{href:null==t?void 0:t.investTg,target:"_blank",className:f.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,l.jsx)(y,{className:f.tgIcon,iconRight:(0,l.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,u.h)({eventCategory:g,eventActionType:u.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,l.jsx)("div",{className:(0,r.Z)(e.className,C.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,l.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},S=(e="")=>{let[t,n]=(0,p.useState)(e);return(0,p.useEffect)(()=>{let t=L();if(!t||0===t.size)return;let[o,l=""]=e.split("?"),i=new URLSearchParams(l);t.forEach((e,t)=>{i.has(t)||i.set(t,e)});let r=i.toString();n(r?`${o}?${r}`:o)},[e]),t},T=(0,c.g)("footer-modal-body","sc"),O=Object.freeze({wrapper:`${T}__wrapper`,title:`${T}__title`,item:`${T}__item`,label:`${T}__label`,button:`${T}__button`,description:`${T}__description`}),z=({directions:e})=>(0,l.jsxs)("div",{className:O.wrapper,children:[(0,l.jsx)("div",{className:O.title,children:"Направления"}),e.map(e=>(0,l.jsxs)($,{className:O.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,l.jsxs)("div",{className:O.label,children:[(0,l.jsx)("span",{children:e.name}),(0,l.jsx)(y,{className:O.button,iconRight:(0,l.jsx)(d.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,l.jsx)("p",{className:O.description,children:e.description})]},e.url))]}),P=(0,c.g)("footer-popup","sc"),R=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,o]=(0,p.useState)(!1),i=()=>{o(!1)};return(0,l.jsxs)("div",{className:R.wrapper,children:[(0,l.jsx)("div",{className:R.buttonWrapper,children:(0,l.jsx)(y,{className:R.button,appearance:"ghost",variant:"white",onClick:()=>{o(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,l.jsx)("div",{className:R.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,l.jsx)("div",{},e))})})}),(0,l.jsxs)(m.P,{children:[!t&&(0,l.jsx)(m.U,{isOpen:n,onClose:i,full:!0,children:(0,l.jsx)(z,{directions:e})}),t&&(0,l.jsx)(m.D,{isOpen:n,onClose:i,width:"804px",children:(0,l.jsx)(z,{directions:e})})]})]})},E=(0,c.g)("footer-left-column","sc"),I=Object.freeze({leftColumn:`${E}__left-column`,logoWrapper:`${E}__logo-wrapper`,banner:`${E}__banner`,mobAppLink:`${E}__mob-app-link`,br:`${E}__br`}),D=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:o})=>{let r=S(o);return(0,l.jsxs)("div",{className:I.leftColumn,children:[(0,l.jsx)($,{className:I.logoWrapper,href:e,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,l.jsx)("img",{src:(0,s.xn)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,l.jsx)(U,{directions:n??[]}),(0,l.jsx)($,{href:r,target:"_blank",eventActionType:u.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:r,className:I.mobAppLink,children:(0,l.jsxs)(i.Zb,{className:I.banner,children:[(0,l.jsxs)(i.xv,{weight:"medium",children:["Управляйте финансами",(0,l.jsx)("br",{}),"через приложение",(0,l.jsx)("br",{className:I.br})," Финуслуг"]}),(0,l.jsx)(y,{iconRight:(0,l.jsx)(d.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,l.jsxs)("picture",{children:[(0,l.jsx)("source",{srcSet:(0,s.xn)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,l.jsx)("img",{src:(0,s.xn)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},B=(0,c.g)("footer-logo","sc"),Z=Object.freeze({wrapper:`${B}__wrapper`,link:`${B}__link`,fromMoex:`${B}__from-moex`,logo:`${B}__logo`,white:`${B}__wrapper--white`}),W=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,l.jsx)("div",{className:(0,r.Z)(Z.wrapper,{[Z.white]:n}),children:(0,l.jsxs)($,{className:Z.link,href:e,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,l.jsx)("img",{className:Z.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,l.jsx)("img",{className:Z.fromMoex,src:`${t}/images/fromMoex.svg`})]})});var F=((o=F||{}).BLACK="black",o.GRAY="gray",o);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:o})=>(0,l.jsx)("div",{className:(0,r.Z)(H.wrapper,{[H.wrapperGray]:"gray"===t,[H.fixed]:n&&!o}),children:(0,l.jsx)(i.W2,{className:H.container,children:(0,l.jsx)("div",{className:(0,r.Z)(H.text,{[H.invisibleText]:o}),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,l.jsxs)("div",{className:H.reservedSpace,children:[(0,l.jsx)(Y,{...n,isPlaceholder:n.fixed}),n.fixed&&(0,l.jsx)(Y,{...n,fixed:!0})]})},J=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:o,variant:s="default",className:c})=>{var a,u;let d=!o&&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:[]),f=e&&"warning"in e?e.warning:void 0;return e?(0,l.jsx)("footer",{className:(0,r.Z)(_.wrapper,c,{[_.compact]:p,[_.white]:m}),children:(0,l.jsxs)("section",{className:_.section,children:[(0,l.jsxs)(i.W2,{className:_.container,children:[!p&&(0,l.jsx)(D,{showcaseUrl:t,minioUrl:n,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,l.jsx)("div",{className:_.wrapper,children:(0,l.jsxs)("div",{className:_.top,children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:_.main,children:[!p&&(0,l.jsx)("div",{className:_.links,children:null==(u=null==e?void 0:e.top)?void 0:u.map(e=>(0,l.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),p&&(0,l.jsx)(W,{showcaseUrl:t,minioUrl:n,isWhite:m}),(0,l.jsx)(A,{className:_.disclaimer,disclaimer:d,children:o||j})]}),(0,l.jsxs)("div",{className:_.bottom,children:[(0,l.jsx)("div",{className:_.bottomLinks,children:null==h?void 0:h.map(e=>(0,l.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,l.jsx)(A,{className:_.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!p&&(0,l.jsx)(N,{minioUrl:n,blogs:null==e?void 0:e.blogs})]})})]}),p&&!!f&&(0,l.jsx)(G,{warning:f})]})}):null}},94246:function(e,t,n){n.d(t,{D:function(){return T},P:function(){return D},U:function(){return I},u:function(){return b}});var o=n(57437),l=n(2265),i=n(61994),r=n(80684),s=n(52074),c=n(54887);let a=300,u=({opened:e})=>{let[t,n]=(0,l.useState)(!1),o=(0,l.useRef)(null),i=(0,l.useRef)(!1);return(0,l.useEffect)(()=>(e&&!i.current?(i.current=!0,n(!0)):!e&&i.current&&(o.current=setTimeout(()=>{i.current=!1,n(!1)},a)),()=>{o.current&&clearTimeout(o.current)}),[e]),{mounted:t}},d=(0,s.g)("click-outside","sc"),p=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),m=({onClose:e,onToucheMove:t,isOpen:n,delay:r=a})=>{let s=(0,l.useRef)(null),c=(0,l.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},r))},[r,e]),u=(0,l.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,l.useEffect)(()=>(n&&window.addEventListener("keydown",u),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",u)}),[n,u]),(0,o.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"))},f=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},v=(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`)},_=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,l.useRef)(null),n=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{if(n.current===e)return;n.current=e;let o=t.current,l=document.body,i=document.documentElement,r=window.innerWidth-i.clientWidth,s=r>0;if(e&&s)f(l),v(l,i,r),h(o,!0);else if(e)_(l),h(o,!0);else{let e=!w();e&&g(l),e&&x(),h(o,!1)}return()=>{let e=!w();e&&g(l),e&&x()}},[e]),t},j=(0,s.g)("drawer-footer","sc"),y=Object.freeze({footer:`${j}__footer`,hasScroll:`${j}__footer--has-scroll`}),$=({footer:e,hasScroll:t,className:n})=>(0,o.jsx)("div",{className:(0,i.Z)(y.footer,{[y.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:u,footer:d,closeButton:p,isOpen:m,contentClassName:h,footerClassName:f,contentStyle:v,width:_})=>{let g=(0,l.useRef)(null),x=(0,l.useRef)(null),[w,b]=(0,l.useState)(!1);(0,l.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,o=()=>{let e=null==x?void 0:x.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let j=v||_?{width:_,...v||{}}:void 0;return(0,o.jsxs)("div",{ref:g,style:j,className:(0,i.Z)(k.container,{[k.open]:m,[k.close]:!m},h),children:[s||u?(0,o.jsxs)("div",{className:(0,i.Z)(k.header,{[k.rowHeader]:c}),children:[u?p?"function"==typeof p?p():p:(0,o.jsx)("button",{type:"button",className:k.controlContainer,onClick:e,children:(0,o.jsx)(r.IconFdsCloseO,{size:24})}):null,s?(0,o.jsx)("h3",{className:(0,i.Z)(k.title,{[k[a]]:!0}),children:s}):null]}):null,(0,o.jsx)("div",{ref:x,className:k.content,onClick:t,children:n}),d&&(0,o.jsx)($,{className:(0,i.Z)(k.footer,f),footer:d,hasScroll:w})]})},A=(0,s.g)("drawer-layout","sc"),L=Object.freeze({window:`${A}__window`}),S=({onClose:e,isOpen:t,children:n,withDisabledScroll:r,className:s,...c})=>{let a=(0,l.useCallback)(e=>e.stopPropagation(),[]);return b(t&&r),(0,o.jsxs)("div",{"data-portal":!0,className:(0,i.Z)(L.window,s),children:[(0,o.jsx)(m,{onClose:e,isOpen:t,delay:0}),(0,o.jsx)(C,{onContentClick:a,onClose:e,isOpen:t,...c,children:n})]})},T=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:l=!0,withDisabledScroll:i=!0,...r})=>{let{mounted:s}=u({opened:e});return s?(0,o.jsx)(S,{titleAlign:n,isCloseable:l,isOpen:e,withDisabledScroll:i,...r,children:t}):null};T.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,o.jsx)("div",{className:(0,i.Z)(z.footer,t&&z.footerWithoutShadow,n),children:"function"==typeof e?e():e}),R=(0,s.g)("mobile-popup","sc"),U=Object.freeze({mobilePopup:`${R}`,mobilePopupOpen:`${R}--open`,content:`${R}__content`,contentFull:`${R}__content--full`,contentTransition:`${R}__content--transition`,contentTransitionOpen:`${R}__content--transition-open`,contentLine:`${R}__content-line`,contentContainer:`${R}__content-container`,smallContentContainer:`${R}__content-container--small`,min:`${R}__content-container--min`,title:`${R}__title`,closeContainer:`${R}__close-container`,closeButton:`${R}__close-button`}),E=({children:e,footer:t,isOpen:n,isSmallPopup:s,onClose:c,hasCloseButton:a=!0,full:u,touchDistance:d=100,withDisabledScroll:p=!0,contentClassName:h,className:f,title:v,closeButton:_,footerClassName:g})=>{let[x,w]=(0,l.useState)(!1),[j,y]=(0,l.useState)(!1),[$,N]=(0,l.useState)(!0),[k,C]=(0,l.useState)("120%"),A=(0,l.useRef)(null),L=(0,l.useRef)(0),S=(0,l.useRef)(!1),T=e=>{var t,n,o;let l=null==(t=A.current)?void 0:t.offsetTop,i=null==(n=A.current)?void 0:n.offsetHeight;if(S.current=!0,N(!1),l&&i){let t=(null==(o=null==e?void 0:e.touches[0])?void 0:o.clientY)-l,n=0;t>=0&&t<=i+30&&(n=t),t>i+30&&(n=i+30),C(`${n}px`),L.current=n}},O=()=>{S.current&&(L.current>d&&c?null==c||c():C("0"),N(!0),S.current=!1),window.removeEventListener("touchmove",T),window.removeEventListener("touchend",O)};return(0,l.useEffect)(()=>{n&&setTimeout(()=>{w(!0),y(!0),C("0")},100),!n&&j&&(C("120%"),w(!1),y(!1))},[j,n]),b(n&&p),(0,o.jsxs)("div",{"data-portal":!0,className:(0,i.Z)(U.mobilePopup,j&&U.mobilePopupOpen,f),children:[(0,o.jsx)(m,{onClose:()=>{n&&(null==c||c())},onToucheMove:()=>{n&&(w(!1),window.addEventListener("touchmove",T),window.addEventListener("touchend",O))},isOpen:n,delay:0}),(0,o.jsxs)("div",{className:(0,i.Z)(U.content,u&&U.contentFull,$&&U.contentTransition,$&&x&&U.contentTransitionOpen),ref:A,style:{transform:`translateY(${k})`},children:[(0,o.jsx)("div",{className:U.contentLine}),(0,o.jsxs)("div",{className:(0,i.Z)(U.contentContainer,s&&U.smallContentContainer,{[U.min]:!v&&!a},h),children:[!!v&&(0,o.jsx)("div",{className:U.title,children:v}),a?(0,o.jsx)("div",{className:U.closeContainer,children:a?_?"function"==typeof _?_():_:(0,o.jsx)("button",{onClick:c,className:U.closeButton,children:(0,o.jsx)(r.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,o.jsx)(P,{footerClassName:g,isSmallPopup:s,footer:t})]})]})},I=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...l})=>{let{mounted:i}=u({opened:n});return i?(0,o.jsx)(E,{isSmallPopup:t,isOpen:n,...l,children:e}):null};I.displayName="UiMobilePopup";let D=({children:e,id:t="portal-root"})=>{let[n,o]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let e=document.getElementById(t);if(e){o(e);return}let n=document.createElement("div");return n.id=t,document.body.appendChild(n),o(n),()=>{document.body.removeChild(n)}},[t]),n?(0,c.createPortal)(e,n):null}},52074:function(e,t,n){n.d(t,{g:function(){return o}});function o(e,t){return`finkit-widgets-${t}-${e}`}},6554:function(e,t,n){let o;n.d(t,{D:function(){return r},h:function(){return c}});var l=n(31620),i=n(56891),r=((o=r||{}).icon="icon",o.chip="chip",o.accordion="accordion",o.button="button",o.checkbox="checkbox",o.radio="radio",o.select="select",o.toggle="toggle",o.tooltip="tooltip",o.link="link",o.banner="banner",o.tag="tag",o.date="date",o.field="field",o.offer="offer",o.tab="tab",o.submitButton="submitButton",o.popup="popup",o.block="block",o);let s={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_"},c=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:o})=>{let r={event:"data-event",eventCategory:e,eventAction:s[t]+(0,l.t)(n)};void 0!==o&&(r.eventLabel=(0,l.t)("string"==typeof o?o:o.toString())),(0,i.d)(r)}},56891:function(e,t,n){n.d(t,{d:function(){return l}});var o=n(30631);let l=(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 i=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||!i){if(t){let t={...e};t.url=window.location.pathname,l.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(l))}(0,o.AB)(e)}}},31620:function(e,t,n){n.d(t,{t:function(){return l}});let o={а:"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"},l=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in o?o[t]:e}).replaceAll(/[ \u00A0]/g,"_")},77337:function(e,t,n){n.d(t,{jb:function(){return x},xn:function(){return w}});let o=/#/g,l=/&/g,i=/\//g,r=/=/g,s=/\+/g,c=/%5e/gi,a=/%60/gi,u=/%7c/gi,d=/%20/gi;function p(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(u,"|").replace(s,"%2B").replace(d,"+").replace(o,"%23").replace(l,"%26").replace(a,"`").replace(c,"^").replace(i,"%2F")}function m(e){return p(e).replace(r,"%3D")}function h(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let f=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,v=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_=/^([/\\]\s*){2,}[^/\\]/,g=/^\.?\//;function x(e,t){let n=function e(t="",n){let o=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(o){let[,e,t=""]=o;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!function(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?f.test(e):v.test(e)||!!t.acceptRelative&&_.test(e)}(t,{acceptRelative:!0}))return n?e(n+t):j(t);let[,l="",i,r=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",c=""]=r.match(/([^#/?]*)(.*)?/)||[],{pathname:a,search:u,hash:d}=j(c.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:l.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:s,pathname:a,search:u,hash:d,[b]:!l}}(e),o={...function(e=""){let t={};for(let n of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let o=h(e[1].replace(s," "));if("__proto__"===o||"constructor"===o)continue;let l=h((e[2]||"").replace(s," "));void 0===t[o]?t[o]=l:Array.isArray(t[o])?t[o].push(l):t[o]=[t[o],l]}return t}(n.search),...t};return n.search=Object.keys(o).filter(e=>void 0!==o[e]).map(e=>{var t;return(("number"==typeof(t=o[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${m(e)}=${p(t)}`).join("&"):`${m(e)}=${p(t)}`:m(e)}).filter(Boolean).join("&"),function(e){let t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",o=e.hash||"",l=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[b]?(e.protocol||"")+"//":"")+l+i+t+n+o}(n)}function w(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(g,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}let b=Symbol.for("ufo:protocolRelative");function j(e=""){let[t="",n="",o=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:o}}}}]);