(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58282,e=>{e.s(["f",0,function(e){typeof window>"u"||(Array.isArray(window.dataLayer)?window.dataLayer.push({...{event:"data_event",...window.browserId?{browser_id:window.browserId}:{},...window.sessionId?{session_id:window.browserSessionId}:{},...window.customerId?{customer_id:window.customerId}:{}},...e}):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}])},2404,54061,89485,e=>{var t=e.i(43476),n=e.i(7670);function i(e){return`finkit-modular-${e}`}e.s(["g",0,i],54061);let l=Object.freeze({privateIcon:i("private-icon")}),o=({children:e,className:i,style:o,...r})=>(0,t.jsx)("span",{className:(0,n.f)(l.privateIcon,i),style:o,...r,children:e});o.displayName="PrivateIcon",e.s(["P",0,o],2404);let r=Object.freeze(Object.keys(Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})})));Object.freeze(r.filter(e=>"xs"!==e)),Object.freeze(r.filter(e=>"3xl"!==e)),e.s(["B",0,r],89485)},12569,e=>{e.s(["l",0,{display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden"}])},71121,e=>{let t=Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})}),n=Object.freeze(Object.keys(t));Object.freeze(n.filter(e=>"xs"!==e)),Object.freeze(n.filter(e=>"3xl"!==e));var i=e.i(71645);function l(){return"u"<typeof window}let o=l()?i.useLayoutEffect:i.useEffect;function r(e,t=!1){return l()?t:window.matchMedia(e).matches}function s(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){let[l,a]=(0,i.useState)(()=>n?r(e,t):t??!1);function c(){a(r(e))}return o(()=>{let t=window.matchMedia(e);return c(),"function"==typeof t.addListener?t.addListener(c):t.addEventListener("change",c),()=>{"function"==typeof t.removeListener?t.removeListener(c):t.removeEventListener("change",c)}},[e]),l}e.s(["k",0,function(e){let{maxWidth:n}=t[e];return s(`screen and (max-width: ${n}px)`)},"f",0,function(e){let{minWidth:n}=t[e];return s(`screen and (min-width: ${n}px)`)}],71121)},57029,34650,83657,e=>{var t=e.i(71645),n=e.i(43476),i=e.i(63687),l=e.i(24359);let o=(0,e.i(22468).g)("header","sc"),r=Object.freeze({header:`${o}`,fixed:`${o}__fixed`,hidden:`${o}__fixed--hidden`,transparent:`${o}--transparent`,navigationOpen:`${o}__navigation-open`,container:`${o}__container`,leftRow:`${o}__left-row`,logo:`${o}__logo`,menuItems:`${o}__menu-items`,menuItemActive:`${o}__menu-item-active`,tabletMenuButton:`${o}__tablet-menu-button`,buttonGroup:`${o}__button-group`,chips:`${o}__chips`,menuButton:`${o}__menu-button`,moreButtons:`${o}__more-buttons`,auth:`${o}__auth`,whiteIcons:`${o}__white-icons`,close:`${o}__close`,removed:`${o}__removed`,overlay:`${o}__overlay`,overlayOpening:`${o}__overlay--opening`,overlayClosing:`${o}__overlay--closing`}),s="user_region",a="user_town",c=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],d=c.reduce((e,t)=>(e[t.id]=t.label,e),{}),u=Object.freeze({mobile:56,desktop:80});e.s(["F",0,u,"H",0,"cb-header","U",0,s,"a",0,d,"b",0,c,"c",0,a,"s",0,r],34650);let m={userRegion:s,userTown:a,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},p={userRegion:s,userTown:a,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},f=(e=!1)=>e?p:m,h=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},w=e=>Array.isArray(e.towns)?e.towns:[],g=(e,t)=>{if(!e||!t)return!1;if(e.url!==t.url)return!0;let n=w(e);return n.length>1||n.some(({main:e})=>!e)},v=(e,t,n=!1)=>{if(typeof document>"u")return;let i=f(n);if(!e&&!t){l.a.removeItem(i.userRegion),l.a.removeItem(i.userTown);return}l.a.setItem(i.userRegion,JSON.stringify((e=>{if(!e)return null;let t=w(e).find(({main:e})=>!!e);return{...e,towns:t?[t]:[]}})(e))||"",{"max-age":31536e3}),l.a.setItem(i.userTown,JSON.stringify(t)||"",{"max-age":31536e3})},_=e=>{if(typeof document>"u")return null;let t=l.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},b=function(e){if(typeof window>"u"||!window.localStorage)return null;let t=window.localStorage.getItem(e);if(!t||"undefined"===t)return null;try{return JSON.parse(t)}catch(t){console.warn(`Invalid object in localStorage for key "${e}": ${t}`)}return null},x=(e=!1)=>{if(typeof window>"u")return[];let t=((e=!1)=>e?window.allRegionsNewApi:window.allRegions)(e);if(Array.isArray(t)&&t.length>0)return t;let n=b(f(e).allRegions)||[];return h(n,e),n},y=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),j=(e,t=!1)=>!(e.length<1)&&(!t||y(e)),$=e=>{let t={};return e.map(({id:e,name:n,towns:i})=>(i.forEach(i=>{i.parentId=e,t[i.name]=t[i.name]||{},t[i.name][i.id]=n}),i)).reduce((e,n)=>(n.forEach(e=>{Object.keys(t[e.name]).length>1&&(e.parentName=t[e.name][e.id])}),[...e,...n]),[])},N=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,k=(e,t)=>N(e||"https://finuslugi.ru",t),C=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},S=(e,t=!1)=>{if(e.length<1)return;let n=f(t);h(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},A=(e,t,n)=>{let i=null,l=null;return n&&e.some(e=>{let t=e.towns.find(e=>e.id===n.id)??null;return!!t&&(i=e,l=t,!0)}),{region:i??(t?e.find(e=>e.url===t.url)??e.find(e=>e.region_id===t.region_id)??null:null)??t,town:l??n}},I=(e,t)=>(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId),T=(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),O=async e=>{let t=await C(k(e,"/money_data/Root.json?short=1")),n=Array.isArray(null==t?void 0:t.regions)?t.regions:[];return S(n),n},z=async e=>{let t,n,[i,l]=await Promise.all([C(N(e,"/sc/api/v1/cities?all=true&isActive=true")),C(N(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==i?void 0:i.content)||!Array.isArray(null==l?void 0:l.content))return[];let o=i.content,r=(n=(t=l.content.filter(e=>e.isActive).map(e=>({id:e.geoRegionId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,region_id:e.geoRegionId,enabled:+!!e.isActive,fiasId:e.fiasId,towns:[]}))).reduce((e,t)=>(e[t.id]=t,e),{}),o.forEach(e=>{let t=n[e.geoRegionId];t&&t.towns.push({id:e.legacyId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,main:+!!e.isRegionalCenter,newId:e.id,fiasId:e.fiasId})}),t);return y(r)?(S(r,!0),r):[]},R=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?z(e):O(e),L=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},E=(e,t,n)=>{(0,i.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})};e.s(["a",0,$,"b",0,A,"c",0,T,"d",0,k,"e",0,f,"f",0,_,"g",0,x,"h",0,E,"i",0,j,"j",0,I,"k",0,g,"l",0,R,"m",0,L,"p",0,b,"s",0,v],83657);let U={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},P={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},W=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function B({className:e,style:n,boxSize:i,size:l,onClick:o}){return t.default.createElement("span",{className:e,style:{...U,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&{width:`${i}px`,height:`${i}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...o?{role:"button",tabIndex:"0",onClick:o}:{}},t.default.createElement(W,{viewBox:"0 0 24 24",style:P}))}B.displayName="IconFdsLocationO";let D=x(),M=$(D),J={regions:D,towns:M,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},V=(0,t.createContext)(J);e.s(["C",0,({children:e,initialRegion:l,initialTown:o,showStartGeoPopup:r=!0,lastRegionsUpdateUnixTimestamp:s,showcaseUrl:a="",dadataUrl:c=k(a,"/backend/money/dadata"),useNewCitiesApi:d=!1})=>{let u=f(d),m=Number(b(u.lastRegionsUpdateUnixTimestamp)||0),p=Number(s||0)>m,[h,w]=(0,t.useState)(x(d)),y=(0,t.useRef)(h),[{startRegion:N,startTown:C},S]=(0,t.useState)({startRegion:J.startRegion,startTown:J.startTown}),O=l??J.region,z=o??J.town,[{region:U,town:P},W]=(0,t.useState)({region:O,town:z}),[B,D]=(0,t.useState)(J.startPopupVisible),[M,F]=(0,t.useState)(J.popupVisible),H=(0,t.useRef)(""),G=(0,t.useRef)(!1),K=(0,t.useMemo)(()=>$(h),[h]);(0,t.useEffect)(()=>{y.current=h},[h]);let Y=(0,t.useCallback)((e,t)=>{window.sessionStorage.setItem("start_popup_opened","1"),window.localStorage.setItem("auto_town",JSON.stringify(t)||""),window.localStorage.setItem("auto_region",JSON.stringify(e)||""),D(!0),S({startRegion:e,startTown:t})},[D,S]),q=(0,t.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||Y(e,t)},[Y]),X=(0,t.useCallback)(()=>{if(H.current&&!U&&!P){let e=K.find(e=>e.name===H.current)??null;return q(h.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}q(U,P)},[U,P,K,h,q]),Q=(0,t.useCallback)(e=>{F(e)},[F]),Z=(0,t.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(u.allRussiaSelected,"1"),window.localStorage.setItem(u.userRegion,""),window.localStorage.setItem(u.userTown,""),v(null,null,d);return}window.localStorage.setItem(u.allRussiaSelected,"0"),window.localStorage.setItem(u.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(u.userTown,JSON.stringify(t)||""),v(e||null,t||null,d)},[u,d]),ee=(0,t.useCallback)(e=>{e?E(i.D.icon,"location"):E(i.D.button,(null==P?void 0:P.name)||"Вся Россия"),!r||window.sessionStorage.getItem("start_popup_opened")?Q(!0):X()},[r,P,Q,X]),et=(0,t.useCallback)((e,t)=>{Z(e,t),W({region:e||null,town:t||null}),D(!1),Q(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[Q,Z]),en=()=>{let e=_(u.userRegion),t=e??b(u.userRegion),n=_(u.userTown)??b(u.userTown),i=A(y.current,t,n),l=d&&I(t,n);g(e,i.region)&&v(i.region,i.town,d),l&&(G.current=!0),l&&T(i.region,i.town)&&(Z(i.region,i.town),G.current=!1),W(i);let o=async({coords:{latitude:e,longitude:t}})=>{let n=`${c}?lat=${e}&lon=${t}`,i=await L(n);null!=i&&i.location&&(H.current=i.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&r)try{navigator.geolocation.getCurrentPosition(o,()=>null)}catch{}};return(0,t.useEffect)(()=>{(!j(h,d)||p)&&R({showcaseUrl:a,useNewCitiesApi:d}).then(e=>{e.length<1||w(e)})},[]),(0,t.useEffect)(()=>{let e=A(h,U,P);G.current&&T(e.region,e.town)&&(Z(e.region,e.town),G.current=!1),W(e)},[h,U,Z,P]),(0,t.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{en(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{en()},0)},[]),(0,n.jsx)(V.Provider,{value:{regions:h,towns:K,region:U,town:P,startPopupVisible:B,setStartPopupVisible:D,popupVisible:M,handleToggleModal:Q,selectCity:et,handleButtonClick:ee,startRegion:N,startTown:C},children:e})},"Y",0,B,"a",0,e=>{let[n,i]=(0,t.useState)(e);return(0,t.useEffect)(()=>{e&&i(!0)},[e]),e||n},"u",0,function(){return(0,t.useContext)(V)}],57029)},35206,e=>{var t=e.i(43476),n=e.i(23123),i=e.i(71645),l=e.i(7670),o=e.i(40383),r=e.i(30382),s=e.i(22468);let a=(0,s.g)("drawer-footer","sc"),c=Object.freeze({footer:`${a}__footer`,hasScroll:`${a}__footer--has-scroll`}),d=({footer:e,hasScroll:n,className:i})=>(0,t.jsx)("div",{className:(0,l.f)(c.footer,{[c.hasScroll]:n},i),children:"function"==typeof e?e():e}),u=(0,s.g)("drawer-content","sc"),m=Object.freeze({container:`${u}__container`,open:`${u}--open`,close:`${u}--close`,header:`${u}__header`,rowHeader:`${u}__header--row`,title:`${u}__title`,center:`${u}__title--center`,left:`${u}__title--left`,right:`${u}__title--right`,controlContainer:`${u}__control-container`,content:`${u}__content`,footer:`${u}__footer`}),p=({onClose:e,onContentClick:n,children:o,title:s,rowTitle:a,titleAlign:c,isCloseable:u,footer:p,closeButton:f,isOpen:h,contentClassName:w,footerClassName:g,contentStyle:v,width:_})=>{let b=(0,i.useRef)(null),x=(0,i.useRef)(null),[y,j]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e;if(!x.current||!b.current)return;let t=(null==(e=null==x?void 0:x.current)?void 0:e.getBoundingClientRect().top)||0,n=null==b?void 0:b.current,i=()=>{let e=null==x?void 0:x.current;e&&j(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",i,!1),()=>{null==n||n.removeEventListener("scroll",i,!1)}},[]);let $=v||_?{width:_,...v||{}}:void 0;return(0,t.jsxs)("div",{ref:b,style:$,className:(0,l.f)(m.container,{[m.open]:h,[m.close]:!h},w),children:[s||u?(0,t.jsxs)("div",{className:(0,l.f)(m.header,{[m.rowHeader]:a}),children:[u?f?"function"==typeof f?f():f:(0,t.jsx)("button",{type:"button",className:m.controlContainer,onClick:e,children:(0,t.jsx)(r.a,{size:24})}):null,s?(0,t.jsx)("h3",{className:(0,l.f)(m.title,{[m[c]]:!0}),children:s}):null]}):null,(0,t.jsx)("div",{ref:x,className:m.content,onClick:n,children:o}),p&&(0,t.jsx)(d,{className:(0,l.f)(m.footer,g),footer:p,hasScroll:y})]})},f=(0,s.g)("drawer-layout","sc"),h=Object.freeze({window:`${f}__window`}),w=({onClose:e,isOpen:r,children:s,withDisabledScroll:a,className:c,...d})=>{let u=(0,i.useCallback)(e=>e.stopPropagation(),[]);return(0,o.u)(r&&a),(0,t.jsxs)("div",{"data-portal":!0,className:(0,l.f)(h.window,c),children:[(0,t.jsx)(n.C,{onClose:e,isOpen:r,delay:0}),(0,t.jsx)(p,{onContentClick:u,onClose:e,isOpen:r,...d,children:s})]})},g=({isOpen:e=!1,children:i,titleAlign:l="center",isCloseable:o=!0,withDisabledScroll:r=!0,...s})=>{let{mounted:a}=(0,n.u)({opened:e});return a?(0,t.jsx)(w,{titleAlign:l,isCloseable:o,isOpen:e,withDisabledScroll:r,...s,children:i}):null};g.displayName="Drawer",e.s(["D",0,g])},23123,e=>{var t=e.i(43476),n=e.i(71645),i=e.i(30382),l=e.i(7670),o=e.i(40383),r=e.i(22468),s=e.i(74080);let a=300,c=({opened:e})=>{let[t,i]=(0,n.useState)(!1),l=(0,n.useRef)(null),o=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e&&!o.current?(o.current=!0,i(!0)):!e&&o.current&&(l.current=setTimeout(()=>{o.current=!1,i(!1)},a)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}},d=(0,r.g)("click-outside","sc"),u=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),m=({onClose:e,onToucheMove:i,isOpen:o,delay:r=a})=>{let s=(0,n.useRef)(null),c=(0,n.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},r))},[r,e]),d=(0,n.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,n.useEffect)(()=>(o&&window.addEventListener("keydown",d),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",d)}),[o,d]),(0,t.jsx)("div",{className:(0,l.f)(u.overlay,{[u.open]:o,[u.close]:!o}),onTouchStart:i,onClick:c})},p=(0,r.g)("mobile-modal-footer","sc"),f=Object.freeze({footer:`${p}__footer`,footerWithoutShadow:`${p}__footer--without-shadow`}),h=({footer:e,isSmallPopup:n=!1,footerClassName:i})=>(0,t.jsx)("div",{className:(0,l.f)(f.footer,n&&f.footerWithoutShadow,i),children:"function"==typeof e?e():e}),w=(0,r.g)("mobile-popup","sc"),g=Object.freeze({mobilePopup:`${w}`,mobilePopupOpen:`${w}--open`,content:`${w}__content`,contentFull:`${w}__content--full`,contentTransition:`${w}__content--transition`,contentTransitionOpen:`${w}__content--transition-open`,contentLine:`${w}__content-line`,contentContainer:`${w}__content-container`,smallContentContainer:`${w}__content-container--small`,min:`${w}__content-container--min`,title:`${w}__title`,closeContainer:`${w}__close-container`,closeButton:`${w}__close-button`}),v=({children:e,footer:r,isOpen:s,isSmallPopup:a,onClose:c,hasCloseButton:d=!0,full:u,touchDistance:p=100,withDisabledScroll:f=!0,contentClassName:w,className:v,title:_,closeButton:b,footerClassName:x})=>{let[y,j]=(0,n.useState)(!1),[$,N]=(0,n.useState)(!1),[k,C]=(0,n.useState)(!0),[S,A]=(0,n.useState)("120%"),I=(0,n.useRef)(null),T=(0,n.useRef)(0),O=(0,n.useRef)(!1),z=e=>{var t,n,i;let l=null==(t=I.current)?void 0:t.offsetTop,o=null==(n=I.current)?void 0:n.offsetHeight;if(O.current=!0,C(!1),l&&o){let t=(null==(i=null==e?void 0:e.touches[0])?void 0:i.clientY)-l,n=0;t>=0&&t<=o+30&&(n=t),t>o+30&&(n=o+30),A(`${n}px`),T.current=n}},R=()=>{O.current&&(T.current>p&&c?null==c||c():A("0"),C(!0),O.current=!1),window.removeEventListener("touchmove",z),window.removeEventListener("touchend",R)};return(0,n.useEffect)(()=>{s&&setTimeout(()=>{j(!0),N(!0),A("0")},100),!s&&$&&(A("120%"),j(!1),N(!1))},[$,s]),(0,o.u)(s&&f),(0,t.jsxs)("div",{"data-portal":!0,className:(0,l.f)(g.mobilePopup,$&&g.mobilePopupOpen,v),children:[(0,t.jsx)(m,{onClose:()=>{s&&(null==c||c())},onToucheMove:()=>{s&&(j(!1),window.addEventListener("touchmove",z),window.addEventListener("touchend",R))},isOpen:s,delay:0}),(0,t.jsxs)("div",{className:(0,l.f)(g.content,u&&g.contentFull,k&&g.contentTransition,k&&y&&g.contentTransitionOpen),ref:I,style:{transform:`translateY(${S})`},children:[(0,t.jsx)("div",{className:g.contentLine}),(0,t.jsxs)("div",{className:(0,l.f)(g.contentContainer,a&&g.smallContentContainer,{[g.min]:!_&&!d},w),children:[!!_&&(0,t.jsx)("div",{className:g.title,children:_}),d?(0,t.jsx)("div",{className:g.closeContainer,children:d?b?"function"==typeof b?b():b:(0,t.jsx)("button",{onClick:c,className:g.closeButton,children:(0,t.jsx)(i.a,{size:24})}):null}):null,e]}),r&&(0,t.jsx)(h,{footerClassName:x,isSmallPopup:a,footer:r})]})]})},_=({children:e,isSmallPopup:n=!1,isOpen:i=!1,...l})=>{let{mounted:o}=c({opened:i});return o?(0,t.jsx)(v,{isSmallPopup:n,isOpen:i,...l,children:e}):null};_.displayName="UiMobilePopup";let b="data-portal-users",x=e=>Number(e.getAttribute(b)??0);e.s(["C",0,m,"P",0,({children:e,id:t="portal-root"})=>{let[i,l]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.getElementById(t);if(e&&!e.hasAttribute(b))return void l(e);let n=e??document.body.appendChild(document.createElement("div"));return n.id=t,n.setAttribute(b,String(x(n)+1)),l(n),()=>{let e=x(n)-1;n.setAttribute(b,String(e)),e>0||n.remove()}},[t]),i?(0,s.createPortal)(e,i):null},"U",0,_,"u",0,c])},86473,e=>{var t=e.i(71645);let n={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},i={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},l=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M21.309 22.765a6.932 6.932 0 01-2.016.233c-1.156-.04-2.62-.39-3.927-1.58A9.985 9.985 0 0112 22a9.97 9.97 0 01-7.071-2.929A9.97 9.97 0 012 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.958 9.958 0 01-1.233 4.814c.07 1.607.354 2.81.617 3.606a7.784 7.784 0 00.424 1.04c.125.248.251.497.15.787-.103.296-.366.44-.65.52zM12 3.5a8.5 8.5 0 103.258 16.353.75.75 0 01.834.178c1.06 1.124 2.278 1.436 3.252 1.469.304.01.584-.007.824-.035a10.45 10.45 0 01-.208-.574c-.317-.96-.641-2.374-.7-4.237a.75.75 0 01.1-.4A8.5 8.5 0 0012 3.5zm-4.209 7.794a1 1 0 10.003-.002l-.003.002zm3.5 0a1 1 0 10.003-.002l-.003.002zm3.502 1.414a1 1 0 01-.002-1.414l.003-.002a1 1 0 110 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function o({className:e,style:r,boxSize:s,size:a,onClick:c}){return t.default.createElement("span",{className:e,style:{...n,...c&&{cursor:"pointer"},...a&&{fontSize:`${a}px`},...s&&{width:`${s}px`,height:`${s}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...r},...c?{role:"button",tabIndex:"0",onClick:c}:{}},t.default.createElement(l,{viewBox:"0 0 24 24",style:i}))}o.displayName="IconFdsChatDotsCircleO",e.s(["G",0,o])},30382,e=>{var t=e.i(71645);let n={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},i={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},l=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function o({className:e,style:r,boxSize:s,size:a,onClick:c}){return t.default.createElement("span",{className:e,style:{...n,...c&&{cursor:"pointer"},...a&&{fontSize:`${a}px`},...s&&{width:`${s}px`,height:`${s}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...r},...c?{role:"button",tabIndex:"0",onClick:c}:{}},t.default.createElement(l,{viewBox:"0 0 24 24",style:i}))}o.displayName="IconFdsCloseO",e.s(["a",0,o])},22468,e=>{e.s(["g",0,function(e,t){return`finkit-widgets-${t}-${e}`}])},24359,e=>{let t={getItem:e=>{if(typeof document>"u")return null;let t=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return t?t.split("=")[1]??null:null},setItem:(e,t,n={})=>{if(typeof document>"u")return;(n={path:"/",...n}).expires instanceof Date&&(n.expires=n.expires.toUTCString());let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in n){if(!n.hasOwnProperty(e))continue;i+=`; ${e}`;let t=n[e];!0!==t&&(i+=`=${t}`)}document.cookie=i},removeItem:e=>{t.setItem(e,"",{"max-age":-1})}};e.s(["a",0,t])},63687,56239,93247,e=>{let t,n={а:"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"},i=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in n?n[t]:e}).replaceAll(/[ \u00A0]/g,"_");e.s(["t",0,i],56239);var l=e.i(58282);let o=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),i=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=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||!o){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,l.f)(e)}};e.s(["d",0,o],93247);var r=((t=r||{}).icon="icon",t.chip="chip",t.accordion="accordion",t.button="button",t.checkbox="checkbox",t.radio="radio",t.select="select",t.toggle="toggle",t.tooltip="tooltip",t.link="link",t.banner="banner",t.tag="tag",t.date="date",t.field="field",t.offer="offer",t.tab="tab",t.submitButton="submitButton",t.popup="popup",t.block="block",t.show="show",t.close="close",t);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_",show:"show_",close:"close_"};e.s(["D",0,r,"h",0,({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:l})=>{let r={event:"data-event",eventCategory:e,eventAction:s[t]+i(n)};void 0!==l&&(r.eventLabel=i("string"==typeof l?l:l.toString())),o(r)}],63687)},40383,e=>{var t=e.i(71645);let n=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},i=(e,t)=>{t.style.removeProperty("overflow-y"),e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},l=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},o=()=>document.querySelectorAll("[data-portal]").length>1;e.s(["u",0,e=>{let r=(0,t.useRef)(null),s=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{if(s.current===e)return;s.current=e;let t=r.current,a=document.body,c=document.documentElement,d=window.innerWidth-c.clientWidth;if(e&&d>0)a.style.top||(window.prevScrollPosition=window.scrollY),c.style.setProperty("overflow-y","scroll"),a.classList.toggle("scroll-disable-windows",!0),a.style.setProperty("width",`calc(100vw - ${d}px)`),a.style.setProperty("top",`-${window.prevScrollPosition}px`),n(t,!0);else if(e)a.style.setProperty("overflow","hidden"),a.style.setProperty("height","100vh"),n(t,!0);else{let e=!o();e&&i(a,c),e&&l(),n(t,!1)}return()=>{let e=!o();e&&i(a,c),e&&l()}},[e]),r}])},32200,e=>{var t=e.i(43476),n=e.i(71645),i=e.i(30382),l=e.i(7670),o=e.i(24359),r=e.i(22468);let s="https://assets.finuslugi.ru/mp-assets/pravila-ispolzovanija-cookie-pao-moskovskaja-birzh.doc",a=(0,r.g)("cookies-plate","sc"),c=Object.freeze({wrapper:`${a}__wrapper`,contentWrapper:`${a}__content-wrapper`,visible:`${a}--visible`,hidden:`${a}--hidden`,content:`${a}__content`,text:`${a}__text`,link:`${a}__link`,button:`${a}__button`});e.s(["CookiesPlate",0,({className:e,mountDelay:r=3e3,href:a=s,children:d,closeIcon:u,onMount:m,onLinkClick:p,onClose:f,mountAfterScroll:h=!0})=>{let[w,g]=(0,n.useState)(!1),[v,_]=(0,n.useState)(!1),[b,x]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),o.a.getItem("Allow-Cookie")||(x(!0),setTimeout(()=>{g(!0),null==m||m()},r))};return h?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let y=(0,n.useCallback)(()=>{o.a.setItem("Allow-Cookie","1"),_(!0),null==f||f(),setTimeout(()=>x(!1),1e3)},[f]);return b?(0,t.jsx)("div",{className:c.wrapper,children:(0,t.jsx)("div",{className:(0,l.f)(c.contentWrapper,{[c.visible]:w,[c.hidden]:v}),children:(0,t.jsxs)("div",{className:(0,l.f)(e,c.content),children:[d||(0,t.jsxs)("p",{className:c.text,children:["Мы используем"," ",(0,t.jsx)("a",{className:c.link,href:a,target:"_blank",rel:"noreferrer",onClick:p,children:"cookie"})," ","для лучшей работы сайта"]}),(0,t.jsx)("button",{className:c.button,onClick:y,children:u||(0,t.jsx)(i.a,{})})]})})}):(0,t.jsx)(t.Fragment,{})}])},53076,8145,13757,e=>{let t;var n=e.i(43476),i=e.i(60822),l=e.i(7670),o=e.i(12569);let r=Object.freeze({text:(0,e.i(54061).g)("text")});function s({as:e,className:t,style:i,children:a,size:c,weight:d,lineClamp:u,dataQa:m,dataId:p,...f}){return(0,n.jsx)(e||"span",{className:(0,l.f)(r.text,t),style:{...c&&{fontSize:`var(--font-size-${c})`,lineHeight:`var(--font-line-height-${c})`},...d&&{fontWeight:`var(--font-weight-${d})`},...u&&{WebkitLineClamp:u,lineClamp:u,...o.l},...i},...f,"data-id":p,"data-qa":m,children:a})}s.displayName="Text",e.s([],8145),e.s(["f",0,s],13757);var a=e.i(85900);e.i(46401);var c=e.i(34986),d=e.i(63687);let u=({minioUrl:e,iconName:t,alt:i})=>(0,n.jsx)("img",{width:24,height:24,src:(0,a.W)(e,`/widgets/footer/${t}.svg`),alt:i,loading:"lazy"}),m=({onClick:e,eventCategory:t,eventActionType:i,eventActionText:l,eventLabel:o,chat:r,onKeyDown:s,...a})=>{let u=()=>{(0,d.h)({eventCategory:t,eventActionType:i||d.D.link,eventActionText:l||"",eventLabel:o})},m=()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)};return(0,n.jsx)(c.f,{onClick:t=>{null==e||e(t),r&&(null==t||t.preventDefault(),m()),u()},onKeyDown:e=>{null==s||s(e),!(!r||"Enter"!==e.key&&" "!==e.key)&&(e.preventDefault(),e.repeat||(m(),u()))},...a})};var p=e.i(22468);e.i(34348);var f=e.i(47611),h=e.i(93562),w=e.i(65019),g=e.i(71645),v=e.i(71121),_=e.i(35206),b=e.i(23123);let x=(0,p.g)("footer-contacts-block","sc"),y=Object.freeze({contactsWrapper:`${x}__contacts-wrapper`,gray:`${x}__gray`,phones:`${x}__phones`,contactsButtons:`${x}__contacts-buttons`,vkIcon:`${x}__vk-icon`,tgIcon:`${x}__tg-icon`,dzenIcon:`${x}__dzen-icon`,maxIcon:`${x}__max-icon`,link:`${x}__link`}),j=(0,p.g)("footer","sc"),$=Object.freeze({wrapper:`${j}__wrapper`,section:`${j}__section`,container:`${j}__container`,top:`${j}__top`,main:`${j}__main`,links:`${j}__links`,disclaimer:`${j}__disclaimer`,bottom:`${j}__bottom`,bottomLinks:`${j}__bottom-links`,bottomDisclaimer:`${j}__bottom-disclaimer`,compact:`${j}__wrapper--compact`,white:`${j}__wrapper--white`}),N="finkit-widgets-sc-footer",k=[{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=[...k,{title:"Онлайн чат",url:void 0}],S=[{type:"vk",label:"ВКонтакте",className:y.vkIcon,iconName:"vk"},{type:"telegramChannel",label:"Telegram",className:y.tgIcon,iconName:"telegram"},{type:"dzen",label:"Дзен",className:y.dzenIcon,iconName:"dzen"},{type:"max",label:"MAX",className:y.maxIcon,iconName:"max"}],A=(0,n.jsxs)("p",{children:["На сайте finuslugi.ru предоставляются услуги оператора финансовой платформы ПАО Московская Биржа, а также услуги ООО «МБ Маркетплейс», организации, не являющейся оператором финансовой платформы в соответствии с Федеральным законом от 20.07.2020 №211-ФЗ «О совершении финансовых сделок с использованием финансовой платформы». Услуги оператора финансовой платформы ПАО Московская Биржа обозначены пометкой «Открытие онлайн на Финуслугах». Иная информация на сайте www.finuslugi.ru считается размещенной ООО «МБ Маркетплейс», если иное явно не следует из существа размещаемой информации. ООО «МБ Маркетплейс» входит в Группу «Московская Биржа».",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Группа «Московская Биржа» - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),I=({onClick:e,eventActionText:t,eventLabel:i,...l})=>(0,n.jsx)(f.f,{onClick:n=>{null==e||e(n),(0,d.h)({eventCategory:N,eventActionType:d.D.button,eventActionText:t||"",eventLabel:i})},...l}),T=e=>(0,n.jsx)(m,{eventCategory:N,...e}),O=({minioUrl:e,blogs:t})=>(0,n.jsxs)("div",{className:y.contactsWrapper,children:[(0,n.jsx)(s,{className:y.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,n.jsx)("div",{className:y.phones,children:C.map(({title:e,url:t})=>(0,n.jsx)(T,{href:t,role:t?void 0:"button",eventActionText:e,chat:!t,children:e},e))}),(0,n.jsx)(s,{className:y.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,n.jsx)("div",{className:y.contactsButtons,children:S.map(({type:i,label:l,className:o,iconName:r})=>(0,n.jsx)(I,{as:"a",href:null==t?void 0:t[i],target:"_blank","aria-label":l,className:o,iconRight:(0,n.jsx)(u,{minioUrl:e,iconName:r,alt:l}),shape:"circle-icon",variant:"white",eventActionText:i,eventLabel:null==t?void 0:t[i]},i))}),(0,n.jsx)(s,{className:y.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,n.jsx)("div",{className:y.contactsButtons,children:(0,n.jsxs)(T,{href:null==t?void 0:t.investTg,target:"_blank",className:y.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,n.jsx)(I,{as:"span",tabIndex:-1,"aria-hidden":!0,className:y.tgIcon,iconRight:(0,n.jsx)(u,{minioUrl:e,iconName:"telegram",alt:""}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),z=(0,p.g)("footer-disclaimer","sc"),R=Object.freeze({disclaimer:`${z}`}),L=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,d.h)({eventCategory:N,eventActionType:d.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,n.jsx)("div",{className:(0,l.f)(e.className,R.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,n.jsx)("div",{className:(0,l.f)(e.className,R.disclaimer),onClick:t,children:e.children})},E=(0,p.g)("footer-modal-body","sc"),U=Object.freeze({wrapper:`${E}__wrapper`,title:`${E}__title`,item:`${E}__item`,label:`${E}__label`,button:`${E}__button`,description:`${E}__description`}),P=({directions:e})=>(0,n.jsxs)("div",{className:U.wrapper,children:[(0,n.jsx)("div",{className:U.title,children:"Направления"}),e.map(e=>(0,n.jsxs)(T,{className:U.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,n.jsxs)("div",{className:U.label,children:[(0,n.jsx)("span",{children:e.name}),(0,n.jsx)(I,{className:U.button,iconRight:(0,n.jsx)(h.K,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,n.jsx)("p",{className:U.description,children:e.description})]},e.url))]}),W=(0,p.g)("footer-popup","sc"),B=Object.freeze({wrapper:`${W}__wrapper`,button:`${W}__button`,icon:`${W}__icon`,buttonWrapper:`${W}__button-wrapper`}),D=({directions:e})=>{let t=(0,v.f)("l"),[i,l]=(0,g.useState)(!1),o=()=>{l(!1)};return(0,n.jsxs)("div",{className:B.wrapper,children:[(0,n.jsx)("div",{className:B.buttonWrapper,children:(0,n.jsx)(I,{className:B.button,appearance:"ghost",variant:"white",onClick:()=>{l(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,n.jsx)("div",{className:B.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,n.jsx)("div",{},e))})})}),(0,n.jsxs)(b.P,{children:[!t&&(0,n.jsx)(b.U,{isOpen:i,onClose:o,full:!0,children:(0,n.jsx)(P,{directions:e})}),t&&(0,n.jsx)(_.D,{isOpen:i,onClose:o,width:"804px",children:(0,n.jsx)(P,{directions:e})})]})]})},M=(0,p.g)("footer-left-column","sc"),J=Object.freeze({leftColumn:`${M}__left-column`,logoWrapper:`${M}__logo-wrapper`,banner:`${M}__banner`,bannerButton:`${M}__banner-button`,mobAppLink:`${M}__mob-app-link`,br:`${M}__br`}),V=({showcaseUrl:e,minioUrl:t,directions:i,mobAppUrl:l})=>{let o=((e="")=>{let[t,n]=(0,g.useState)(e);return(0,g.useEffect)(()=>{let t,i,l=(t=new URL(window.location.href),i=new URLSearchParams,t.searchParams.forEach((e,t)=>{/^utm_/i.test(t)&&i.set(t,e)}),i);if(!l||0===l.size)return;let[o,r=""]=e.split("?"),s=new URLSearchParams(r);l.forEach((e,t)=>{s.has(t)||s.set(t,e)});let a=s.toString();n(a?`${o}?${a}`:o)},[e]),t})(l);return(0,n.jsxs)("div",{className:J.leftColumn,children:[(0,n.jsx)(T,{className:J.logoWrapper,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,n.jsx)("img",{src:(0,a.W)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,n.jsx)(D,{directions:i??[]}),(0,n.jsx)(T,{href:o,target:"_blank",eventActionType:d.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:o,className:J.mobAppLink,children:(0,n.jsxs)(w.f,{className:J.banner,children:[(0,n.jsxs)(s,{weight:"medium",children:["Управляйте финансами",(0,n.jsx)("br",{}),"через приложение",(0,n.jsx)("br",{className:J.br})," Финуслуг"]}),(0,n.jsx)(I,{as:"span",tabIndex:-1,"aria-hidden":!0,className:J.bannerButton,iconRight:(0,n.jsx)(h.K,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcSet:(0,a.W)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,n.jsx)("img",{src:(0,a.W)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},F=(0,p.g)("footer-logo","sc"),H=Object.freeze({wrapper:`${F}__wrapper`,link:`${F}__link`,fromMoex:`${F}__from-moex`,logo:`${F}__logo`,white:`${F}__wrapper--white`}),G=({showcaseUrl:e,minioUrl:t,isWhite:i})=>(0,n.jsx)("div",{className:(0,l.f)(H.wrapper,{[H.white]:i}),children:(0,n.jsxs)(T,{className:H.link,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,n.jsx)("img",{className:H.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`,loading:"lazy"}),(0,n.jsx)("img",{className:H.fromMoex,src:`${t}/images/fromMoex.svg`,loading:"lazy"})]})});var K=((t=K||{}).BLACK="black",t.GRAY="gray",t);let Y=(0,p.g)("footer-warning","sc"),q=Object.freeze({reservedSpace:`${Y}__reserved-space`,wrapper:`${Y}__wrapper`,wrapperGray:`${Y}__wrapper--gray`,fixed:`${Y}__wrapper--fixed`,container:`${Y}__container`,text:`${Y}__text`,invisibleText:`${Y}__text--invisible`}),X=({text:e,variant:t,fixed:o,isPlaceholder:r})=>(0,n.jsx)("div",{className:(0,l.f)(q.wrapper,{[q.wrapperGray]:"gray"===t,[q.fixed]:o&&!r}),children:(0,n.jsx)(i.f,{className:q.container,children:(0,n.jsx)("div",{className:(0,l.f)(q.text,{[q.invisibleText]:r}),dangerouslySetInnerHTML:{__html:e}})})}),Q=({warning:e})=>{let t="string"==typeof e?{text:e}:e,i={text:t.text,fixed:t.fixed??!0,variant:t.variant??K.BLACK};return(0,n.jsxs)("div",{className:q.reservedSpace,children:[(0,n.jsx)(X,{...i,isPlaceholder:i.fixed}),i.fixed&&(0,n.jsx)(X,{...i,fixed:!0})]})};e.s(["Footer",0,({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:o="https://assets.finuslugi.ru/mp-assets",customDisclaimer:r,variant:s="default",className:a})=>{var c,d;let u=!r&&null!=e&&e.disclaimer?e.disclaimer:void 0,m=s.includes("compact"),p=s.includes("white"),f=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(m?k:[]),h=e&&"warning"in e?e.warning:void 0;return e?(0,n.jsx)("footer",{className:(0,l.f)($.wrapper,a,{[$.compact]:m,[$.white]:p}),children:(0,n.jsxs)("section",{className:$.section,children:[(0,n.jsxs)(i.f,{className:$.container,children:[!m&&(0,n.jsx)(V,{showcaseUrl:t,minioUrl:o,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,n.jsx)("div",{className:$.wrapper,children:(0,n.jsxs)("div",{className:$.top,children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:$.main,children:[!m&&(0,n.jsx)("div",{className:$.links,children:null==(d=null==e?void 0:e.top)?void 0:d.map(e=>(0,n.jsx)(T,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),m&&(0,n.jsx)(G,{showcaseUrl:t,minioUrl:o,isWhite:p}),(0,n.jsx)(L,{className:$.disclaimer,disclaimer:u,children:r||A})]}),(0,n.jsxs)("div",{className:$.bottom,children:[(0,n.jsx)("div",{className:$.bottomLinks,children:null==f?void 0:f.map(e=>(0,n.jsx)(T,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,n.jsx)(L,{className:$.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!m&&(0,n.jsx)(O,{minioUrl:o,blogs:null==e?void 0:e.blogs})]})})]}),m&&!!h&&(0,n.jsx)(Q,{warning:h})]})}):null}],53076)},7670,e=>{e.s(["f",0,function(){for(var e,t,n=0,i="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=function e(t){var n,i,l="";if("string"==typeof t||"number"==typeof t)l+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=e(t[n]))&&(l&&(l+=" "),l+=i)}else for(i in t)t[i]&&(l&&(l+=" "),l+=i);return l}(e))&&(i&&(i+=" "),i+=t);return i}])}])})();

//# sourceMappingURL=34_mr0r-e_cgw.js.map