(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3151],{10335:(e,t,n)=>{"use strict";n.d(t,{D:()=>g});var o=n(95155),l=n(60445),r=n(12115),s=n(2821),i=n(61995),c=n(79576),a=n(1611);let d=(0,a.g)("drawer-footer","sc"),u=Object.freeze({footer:`${d}__footer`,hasScroll:`${d}__footer--has-scroll`}),m=({footer:e,hasScroll:t,className:n})=>(0,o.jsx)("div",{className:(0,s.A)(u.footer,{[u.hasScroll]:t},n),children:"function"==typeof e?e():e}),p=(0,a.g)("drawer-content","sc"),h=Object.freeze({container:`${p}__container`,open:`${p}--open`,close:`${p}--close`,header:`${p}__header`,rowHeader:`${p}__header--row`,title:`${p}__title`,center:`${p}__title--center`,left:`${p}__title--left`,right:`${p}__title--right`,controlContainer:`${p}__control-container`,content:`${p}__content`,footer:`${p}__footer`}),v=({onClose:e,onContentClick:t,children:n,title:l,rowTitle:i,titleAlign:a,isCloseable:d,footer:u,closeButton:p,isOpen:v,contentClassName:_,footerClassName:x,contentStyle:f,width:g})=>{let b=(0,r.useRef)(null),j=(0,r.useRef)(null),[w,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e;if(!j.current||!b.current)return;let t=(null==(e=null==j?void 0:j.current)?void 0:e.getBoundingClientRect().top)||0,n=null==b?void 0:b.current,o=()=>{let e=null==j?void 0:j.current;e&&N(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let C=f||g?{width:g,...f||{}}:void 0;return(0,o.jsxs)("div",{ref:b,style:C,className:(0,s.A)(h.container,{[h.open]:v,[h.close]:!v},_),children:[l||d?(0,o.jsxs)("div",{className:(0,s.A)(h.header,{[h.rowHeader]:i}),children:[d?p?"function"==typeof p?p():p:(0,o.jsx)("button",{type:"button",className:h.controlContainer,onClick:e,children:(0,o.jsx)(c.a,{size:24})}):null,l?(0,o.jsx)("h3",{className:(0,s.A)(h.title,{[h[a]]:!0}),children:l}):null]}):null,(0,o.jsx)("div",{ref:j,className:h.content,onClick:t,children:n}),u&&(0,o.jsx)(m,{className:(0,s.A)(h.footer,x),footer:u,hasScroll:w})]})},_=(0,a.g)("drawer-layout","sc"),x=Object.freeze({window:`${_}__window`}),f=({onClose:e,isOpen:t,children:n,withDisabledScroll:c,className:a,...d})=>{let u=(0,r.useCallback)(e=>e.stopPropagation(),[]);return(0,i.u)(t&&c),(0,o.jsxs)("div",{"data-portal":!0,className:(0,s.A)(x.window,a),children:[(0,o.jsx)(l.C,{onClose:e,isOpen:t,delay:0}),(0,o.jsx)(v,{onContentClick:u,onClose:e,isOpen:t,...d,children:n})]})},g=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:r=!0,withDisabledScroll:s=!0,...i})=>{let{mounted:c}=(0,l.u)({opened:e});return c?(0,o.jsx)(f,{titleAlign:n,isCloseable:r,isOpen:e,withDisabledScroll:s,...i,children:t}):null};g.displayName="Drawer"},22191:(e,t,n)=>{"use strict";n.d(t,{S:()=>d}),n(48839);var o=n(95155),l=n(12115),r=n(79576),s=n(2821),i=n(30753);let c=(0,n(1611).g)("cookies-plate","sc"),a=Object.freeze({wrapper:"".concat(c,"__wrapper"),contentWrapper:"".concat(c,"__content-wrapper"),visible:"".concat(c,"--visible"),hidden:"".concat(c,"--hidden"),content:"".concat(c,"__content"),text:"".concat(c,"__text"),link:"".concat(c,"__link"),button:"".concat(c,"__button")}),d=e=>{let{className:t,mountDelay:n=3e3,href:c="https://assets.finuslugi.ru/mp-assets/pravila-ispolzovanija-cookie-pao-moskovskaja-birzh.doc",children:d,closeIcon:u,onMount:m,onLinkClick:p,onClose:h,mountAfterScroll:v=!0}=e,[_,x]=(0,l.useState)(!1),[f,g]=(0,l.useState)(!1),[b,j]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),i.a.getItem("Allow-Cookie")||(j(!0),setTimeout(()=>{x(!0),null==m||m()},n))};return v?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let w=(0,l.useCallback)(()=>{i.a.setItem("Allow-Cookie","1"),g(!0),null==h||h(),setTimeout(()=>j(!1),1e3)},[h]);return b?(0,o.jsx)("div",{className:a.wrapper,children:(0,o.jsx)("div",{className:(0,s.A)(a.contentWrapper,{[a.visible]:_,[a.hidden]:f}),children:(0,o.jsxs)("div",{className:(0,s.A)(t,a.content),children:[d||(0,o.jsxs)("p",{className:a.text,children:["Мы используем"," ",(0,o.jsx)("a",{className:a.link,href:c,target:"_blank",rel:"noreferrer",onClick:p,children:"cookie"})," ","для лучшей работы сайта"]}),(0,o.jsx)("button",{className:a.button,onClick:w,children:u||(0,o.jsx)(r.a,{})})]})})}):(0,o.jsx)(o.Fragment,{})}},33974:(e,t,n)=>{"use strict";n.d(t,{w:()=>Q}),n(90608);var o=n(95155),l=n(95633),r=n(2821),s=n(69465),i=n(81637),c=n(1611),a=n(53548),d=n(93372),u=n(42195),m=n(98910),p=n(91482),h=n(12115),v=n(13860),_=n(10335),x=n(60445);let f=(0,c.g)("footer-contacts-block","sc"),g=Object.freeze({contactsWrapper:"".concat(f,"__contacts-wrapper"),gray:"".concat(f,"__gray"),phones:"".concat(f,"__phones"),contactsButtons:"".concat(f,"__contacts-buttons"),vkIcon:"".concat(f,"__vk-icon"),tgIcon:"".concat(f,"__tg-icon"),dzenIcon:"".concat(f,"__dzen-icon"),maxIcon:"".concat(f,"__max-icon"),link:"".concat(f,"__link")}),b=(0,c.g)("footer","sc"),j=Object.freeze({wrapper:"".concat(b,"__wrapper"),section:"".concat(b,"__section"),container:"".concat(b,"__container"),top:"".concat(b,"__top"),main:"".concat(b,"__main"),links:"".concat(b,"__links"),disclaimer:"".concat(b,"__disclaimer"),bottom:"".concat(b,"__bottom"),bottomLinks:"".concat(b,"__bottom-links"),bottomDisclaimer:"".concat(b,"__bottom-disclaimer"),compact:"".concat(b,"__wrapper--compact"),white:"".concat(b,"__wrapper--white")}),w="finkit-widgets-sc-footer",N=[{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"}],C=[...N,{title:"Онлайн чат",url:void 0}],k=[{type:"vk",className:g.vkIcon,iconName:"vk"},{type:"telegramChannel",className:g.tgIcon,iconName:"telegram"},{type:"dzen",className:g.dzenIcon,iconName:"dzen"},{type:"max",className:g.maxIcon,iconName:"max"}],y=(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 - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),A=e=>{let{onClick:t,eventActionText:n,eventLabel:l,...r}=e;return(0,o.jsx)(a.$,{onClick:e=>{null==t||t(e),(0,d.h)({eventCategory:w,eventActionType:d.D.button,eventActionText:n||"",eventLabel:l})},...r})},T=e=>{let{onClick:t,eventActionType:n,eventActionText:l,eventLabel:r,chat:s,...i}=e;return(0,o.jsx)(u.N,{onClick:e=>{var o,i,c;null==t||t(e),s&&(null==e||e.preventDefault(),null==(c=null==(i=null==(o=null==window?void 0:window.supportWidget)?void 0:o.craftTalk)?void 0:i.open)||c.call(i)),(0,d.h)({eventCategory:w,eventActionType:n||d.D.link,eventActionText:l||"",eventLabel:r})},...i})},S=e=>{let{minioUrl:t,blogs:n}=e;return(0,o.jsxs)("div",{className:g.contactsWrapper,children:[(0,o.jsx)(s.E,{className:g.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,o.jsx)("div",{className:g.phones,children:C.map(e=>{let{title:t,url:n}=e;return(0,o.jsx)(T,{href:n,eventActionText:t,chat:!n,children:t},t)})}),(0,o.jsx)(s.E,{className:g.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,o.jsx)("div",{className:g.contactsButtons,children:k.map(e=>{let{type:l,className:r,iconName:s}=e;return(0,o.jsx)(A,{as:"a",href:null==n?void 0:n[l],target:"_blank",className:r,iconRight:(0,o.jsx)("img",{width:24,height:24,src:(0,i.oq)(t,"/widgets/footer/".concat(s,".svg")),alt:l,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:l,eventLabel:null==n?void 0:n[l]},l)})}),(0,o.jsx)(s.E,{className:g.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,o.jsx)("div",{className:g.contactsButtons,children:(0,o.jsxs)(T,{href:null==n?void 0:n.investTg,target:"_blank",className:g.link,eventActionText:"telegram",eventLabel:null==n?void 0:n.investTg,children:[(0,o.jsx)(A,{className:g.tgIcon,iconRight:(0,o.jsx)("img",{width:24,height:24,src:(0,i.oq)(t,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==n?void 0:n.investTg}),"Финуслуги Инвест"]})})]})},E=(0,c.g)("footer-disclaimer","sc"),L=Object.freeze({disclaimer:"".concat(E)}),z=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,d.h)({eventCategory:w,eventActionType:d.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,o.jsx)("div",{className:(0,r.A)(e.className,L.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,o.jsx)("div",{className:(0,r.A)(e.className,L.disclaimer),onClick:t,children:e.children})},$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t,n]=(0,h.useState)(e);return(0,h.useEffect)(()=>{let t=(()=>{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})();if(!t||0===t.size)return;let[o,l=""]=e.split("?"),r=new URLSearchParams(l);t.forEach((e,t)=>{r.has(t)||r.set(t,e)});let s=r.toString();n(s?"".concat(o,"?").concat(s):o)},[e]),t},O=(0,c.g)("footer-modal-body","sc"),U=Object.freeze({wrapper:"".concat(O,"__wrapper"),title:"".concat(O,"__title"),item:"".concat(O,"__item"),label:"".concat(O,"__label"),button:"".concat(O,"__button"),description:"".concat(O,"__description")}),D=e=>{let{directions:t}=e;return(0,o.jsxs)("div",{className:U.wrapper,children:[(0,o.jsx)("div",{className:U.title,children:"Направления"}),t.map(e=>(0,o.jsxs)(T,{className:U.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:"".concat(e.name,"_").concat(e.url),children:[(0,o.jsxs)("div",{className:U.label,children:[(0,o.jsx)("span",{children:e.name}),(0,o.jsx)(A,{className:U.button,iconRight:(0,o.jsx)(m.K,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,o.jsx)("p",{className:U.description,children:e.description})]},e.url))]})},R=(0,c.g)("footer-popup","sc"),B=Object.freeze({wrapper:"".concat(R,"__wrapper"),button:"".concat(R,"__button"),icon:"".concat(R,"__icon"),buttonWrapper:"".concat(R,"__button-wrapper")}),P=e=>{let{directions:t}=e,n=(0,v.qF)("l"),[l,r]=(0,h.useState)(!1),s=()=>{r(!1)};return(0,o.jsxs)("div",{className:B.wrapper,children:[(0,o.jsx)("div",{className:B.buttonWrapper,children:(0,o.jsx)(A,{className:B.button,appearance:"ghost",variant:"white",onClick:()=>{r(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,o.jsx)("div",{className:B.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,o.jsx)("div",{},e))})})}),(0,o.jsxs)(x.P,{children:[!n&&(0,o.jsx)(x.U,{isOpen:l,onClose:s,full:!0,children:(0,o.jsx)(D,{directions:t})}),n&&(0,o.jsx)(_.D,{isOpen:l,onClose:s,width:"804px",children:(0,o.jsx)(D,{directions:t})})]})]})},I=(0,c.g)("footer-left-column","sc"),W=Object.freeze({leftColumn:"".concat(I,"__left-column"),logoWrapper:"".concat(I,"__logo-wrapper"),banner:"".concat(I,"__banner"),mobAppLink:"".concat(I,"__mob-app-link"),br:"".concat(I,"__br")}),M=e=>{let{showcaseUrl:t,minioUrl:n,directions:l,mobAppUrl:r}=e,c=$(r);return(0,o.jsxs)("div",{className:W.leftColumn,children:[(0,o.jsx)(T,{className:W.logoWrapper,href:t,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:(0,o.jsx)("img",{src:(0,i.oq)(n,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,o.jsx)(P,{directions:null!=l?l:[]}),(0,o.jsx)(T,{href:c,target:"_blank",eventActionType:d.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:c,className:W.mobAppLink,children:(0,o.jsxs)(p.Z,{className:W.banner,children:[(0,o.jsxs)(s.E,{weight:"medium",children:["Управляйте финансами",(0,o.jsx)("br",{}),"через приложение",(0,o.jsx)("br",{className:W.br})," Финуслуг"]}),(0,o.jsx)(A,{iconRight:(0,o.jsx)(m.K,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcSet:(0,i.oq)(n,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,o.jsx)("img",{src:(0,i.oq)(n,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},F=(0,c.g)("footer-logo","sc"),H=Object.freeze({wrapper:"".concat(F,"__wrapper"),link:"".concat(F,"__link"),fromMoex:"".concat(F,"__from-moex"),logo:"".concat(F,"__logo"),white:"".concat(F,"__wrapper--white")}),K=e=>{let{showcaseUrl:t,minioUrl:n,isWhite:l}=e;return(0,o.jsx)("div",{className:(0,r.A)(H.wrapper,{[H.white]:l}),children:(0,o.jsxs)(T,{className:H.link,href:t,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:[(0,o.jsx)("img",{className:H.logo,src:"".concat(n,"/images/logo-brandmark-common-finuslugi.svg"),loading:"lazy"}),(0,o.jsx)("img",{className:H.fromMoex,src:"".concat(n,"/images/fromMoex.svg"),loading:"lazy"})]})})};var q=(e=>(e.BLACK="black",e.GRAY="gray",e))(q||{});let G=(0,c.g)("footer-warning","sc"),Y=Object.freeze({reservedSpace:"".concat(G,"__reserved-space"),wrapper:"".concat(G,"__wrapper"),wrapperGray:"".concat(G,"__wrapper--gray"),fixed:"".concat(G,"__wrapper--fixed"),container:"".concat(G,"__container"),text:"".concat(G,"__text"),invisibleText:"".concat(G,"__text--invisible")}),Z=e=>{let{text:t,variant:n,fixed:s,isPlaceholder:i}=e;return(0,o.jsx)("div",{className:(0,r.A)(Y.wrapper,{[Y.wrapperGray]:"gray"===n,[Y.fixed]:s&&!i}),children:(0,o.jsx)(l.m,{className:Y.container,children:(0,o.jsx)("div",{className:(0,r.A)(Y.text,{[Y.invisibleText]:i}),dangerouslySetInnerHTML:{__html:t}})})})},J=e=>{var t,n;let{warning:l}=e,r="string"==typeof l?{text:l}:l,s={text:r.text,fixed:null==(t=r.fixed)||t,variant:null!=(n=r.variant)?n:q.BLACK};return(0,o.jsxs)("div",{className:Y.reservedSpace,children:[(0,o.jsx)(Z,{...s,isPlaceholder:s.fixed}),s.fixed&&(0,o.jsx)(Z,{...s,fixed:!0})]})},Q=e=>{var t,n;let{data:s,showcaseUrl:i="https://finuslugi.ru",minioUrl:c="https://assets.finuslugi.ru/mp-assets",customDisclaimer:a,variant:d="default",className:u}=e,m=!a&&null!=s&&s.disclaimer?s.disclaimer:void 0,p=d.includes("compact"),h=d.includes("white"),v=null==(t=null==s?void 0:s.bottom)?void 0:t.concat(p?N:[]),_=s&&"warning"in s?s.warning:void 0;return s?(0,o.jsx)("footer",{className:(0,r.A)(j.wrapper,u,{[j.compact]:p,[j.white]:h}),children:(0,o.jsxs)("section",{className:j.section,children:[(0,o.jsxs)(l.m,{className:j.container,children:[!p&&(0,o.jsx)(M,{showcaseUrl:i,minioUrl:c,directions:null==s?void 0:s.directions,mobAppUrl:null==s?void 0:s.mobAppUrl}),(0,o.jsx)("div",{className:j.wrapper,children:(0,o.jsxs)("div",{className:j.top,children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:j.main,children:[!p&&(0,o.jsx)("div",{className:j.links,children:null==(n=null==s?void 0:s.top)?void 0:n.map(e=>(0,o.jsx)(T,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),p&&(0,o.jsx)(K,{showcaseUrl:i,minioUrl:c,isWhite:h}),(0,o.jsx)(z,{className:j.disclaimer,disclaimer:m,children:a||y})]}),(0,o.jsxs)("div",{className:j.bottom,children:[(0,o.jsx)("div",{className:j.bottomLinks,children:null==v?void 0:v.map(e=>(0,o.jsx)(T,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,o.jsx)(z,{className:j.bottomDisclaimer,disclaimer:null==s?void 0:s.bottomDisclaimer})]})]}),!p&&(0,o.jsx)(S,{minioUrl:c,blogs:null==s?void 0:s.blogs})]})})]}),p&&!!_&&(0,o.jsx)(J,{warning:_})]})}):null}},48839:()=>{},60445:(e,t,n)=>{"use strict";n.d(t,{C:()=>h,P:()=>C,U:()=>j,u:()=>u});var o=n(95155),l=n(12115),r=n(79576),s=n(2821),i=n(61995),c=n(1611),a=n(47650);let d=300,u=({opened:e})=>{let[t,n]=(0,l.useState)(!1),o=(0,l.useRef)(null),r=(0,l.useRef)(!1);return(0,l.useEffect)(()=>(e&&!r.current?(r.current=!0,n(!0)):!e&&r.current&&(o.current=setTimeout(()=>{r.current=!1,n(!1)},d)),()=>{o.current&&clearTimeout(o.current)}),[e]),{mounted:t}},m=(0,c.g)("click-outside","sc"),p=Object.freeze({overlay:`${m}__overlay`,open:`${m}--open`,close:`${m}--close`}),h=({onClose:e,onToucheMove:t,isOpen:n,delay:r=d})=>{let i=(0,l.useRef)(null),c=(0,l.useCallback)(()=>{e&&(i.current=setTimeout(()=>{e()},r))},[r,e]),a=(0,l.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,l.useEffect)(()=>(n&&window.addEventListener("keydown",a),()=>{i.current&&clearTimeout(i.current),window.removeEventListener("keydown",a)}),[n,a]),(0,o.jsx)("div",{className:(0,s.A)(p.overlay,{[p.open]:n,[p.close]:!n}),onTouchStart:t,onClick:c})},v=(0,c.g)("mobile-modal-footer","sc"),_=Object.freeze({footer:`${v}__footer`,footerWithoutShadow:`${v}__footer--without-shadow`}),x=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,o.jsx)("div",{className:(0,s.A)(_.footer,t&&_.footerWithoutShadow,n),children:"function"==typeof e?e():e}),f=(0,c.g)("mobile-popup","sc"),g=Object.freeze({mobilePopup:`${f}`,mobilePopupOpen:`${f}--open`,content:`${f}__content`,contentFull:`${f}__content--full`,contentTransition:`${f}__content--transition`,contentTransitionOpen:`${f}__content--transition-open`,contentLine:`${f}__content-line`,contentContainer:`${f}__content-container`,smallContentContainer:`${f}__content-container--small`,min:`${f}__content-container--min`,title:`${f}__title`,closeContainer:`${f}__close-container`,closeButton:`${f}__close-button`}),b=({children:e,footer:t,isOpen:n,isSmallPopup:c,onClose:a,hasCloseButton:d=!0,full:u,touchDistance:m=100,withDisabledScroll:p=!0,contentClassName:v,className:_,title:f,closeButton:b,footerClassName:j})=>{let[w,N]=(0,l.useState)(!1),[C,k]=(0,l.useState)(!1),[y,A]=(0,l.useState)(!0),[T,S]=(0,l.useState)("120%"),E=(0,l.useRef)(null),L=(0,l.useRef)(0),z=(0,l.useRef)(!1),$=e=>{var t,n,o;let l=null==(t=E.current)?void 0:t.offsetTop,r=null==(n=E.current)?void 0:n.offsetHeight;if(z.current=!0,A(!1),l&&r){let t=(null==(o=null==e?void 0:e.touches[0])?void 0:o.clientY)-l,n=0;t>=0&&t<=r+30&&(n=t),t>r+30&&(n=r+30),S(`${n}px`),L.current=n}},O=()=>{z.current&&(L.current>m&&a?null==a||a():S("0"),A(!0),z.current=!1),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",O)};return(0,l.useEffect)(()=>{n&&setTimeout(()=>{N(!0),k(!0),S("0")},100),!n&&C&&(S("120%"),N(!1),k(!1))},[C,n]),(0,i.u)(n&&p),(0,o.jsxs)("div",{"data-portal":!0,className:(0,s.A)(g.mobilePopup,C&&g.mobilePopupOpen,_),children:[(0,o.jsx)(h,{onClose:()=>{n&&(null==a||a())},onToucheMove:()=>{n&&(N(!1),window.addEventListener("touchmove",$),window.addEventListener("touchend",O))},isOpen:n,delay:0}),(0,o.jsxs)("div",{className:(0,s.A)(g.content,u&&g.contentFull,y&&g.contentTransition,y&&w&&g.contentTransitionOpen),ref:E,style:{transform:`translateY(${T})`},children:[(0,o.jsx)("div",{className:g.contentLine}),(0,o.jsxs)("div",{className:(0,s.A)(g.contentContainer,c&&g.smallContentContainer,{[g.min]:!f&&!d},v),children:[!!f&&(0,o.jsx)("div",{className:g.title,children:f}),d?(0,o.jsx)("div",{className:g.closeContainer,children:d?b?"function"==typeof b?b():b:(0,o.jsx)("button",{onClick:a,className:g.closeButton,children:(0,o.jsx)(r.a,{size:24})}):null}):null,e]}),t&&(0,o.jsx)(x,{footerClassName:j,isSmallPopup:c,footer:t})]})]})},j=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...l})=>{let{mounted:r}=u({opened:n});return r?(0,o.jsx)(b,{isSmallPopup:t,isOpen:n,...l,children:e}):null};j.displayName="UiMobilePopup";let w="data-portal-users",N=e=>Number(e.getAttribute(w)??0),C=({children:e,id:t="portal-root"})=>{let[n,o]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let e=document.getElementById(t);if(e&&!e.hasAttribute(w))return void o(e);let n=e??document.body.appendChild(document.createElement("div"));return n.id=t,n.setAttribute(w,String(N(n)+1)),o(n),()=>{let e=N(n)-1;n.setAttribute(w,String(e)),e>0||n.remove()}},[t]),n?(0,a.createPortal)(e,n):null}},88992:(e,t,n)=>{"use strict";n.d(t,{tH:()=>s});var o=n(12115);let l=(0,o.createContext)(null),r={didCatch:!1,error:null};class s extends o.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){for(var e,t,n=arguments.length,o=Array(n),l=0;l<n;l++)o[l]=arguments[l];let{error:s}=this.state;null!==s&&(null==(e=(t=this.props).onReset)||e.call(t,{args:o,reason:"imperative-api"}),this.setState(r))}componentDidCatch(e,t){var n,o;null==(n=(o=this.props).onError)||n.call(o,e,t)}componentDidUpdate(e,t){var n,o;let{didCatch:l}=this.state,{resetKeys:s}=this.props;l&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,s)&&(null==(n=(o=this.props).onReset)||n.call(o,{next:s,prev:e.resetKeys,reason:"keys"}),this.setState(r))}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:s,error:i}=this.state,c=e;if(s){let e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)c=t(e);else if(n)c=(0,o.createElement)(n,e);else if(void 0!==r)c=r;else throw i}return(0,o.createElement)(l.Provider,{value:{didCatch:s,error:i,resetErrorBoundary:this.resetErrorBoundary}},c)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=r}}},90608:()=>{}}]);