(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[322],{4798:function(e,t,o){"use strict";var n,r=o(2601);let l="/service-rko",i={PORT:r.env.PORT||3e3,HOSTNAME:r.env.HOSTNAME||"localhost",APP_VERSION:null!==(n=r.env.APP_VERSION)&&void 0!==n?n:String(Math.random()).slice(2),REDIS_PORT:r.env.REDIS_PORT||"63739",REDIS_HOST:r.env.REDIS_HOST||"localhost",REDIS_PASSWORD:r.env.REDIS_PASSWORD,CACHE_TTL:r.env.REDIS_TTL||300};e.exports={APP_PREFIX:l,WHITELIST:["".concat(l,"/_next"),"".concat(l,"/api"),"/_next","/api","/favicon.ico","/.well-known"],PAGES_PRELOADING:["/rko"],SERVER_CONFIG:i}},9470:function(e,t,o){"use strict";o.d(t,{t9:function(){return d}});var n=o(7639),r=o(4409),l=o(4798),i=o(263).Buffer,a=o(2601);let c=e=>!0!==e,s=e=>{let t="dev"===(0,n.SJ)("NEXT_PUBLIC_VERSION"),o=(0,n.SJ)("SKIP_PROXY"),r=(0,n.SJ)("NEXT_PUBLIC_COMMON_BLOCKS_SERVICE_URL"),i=(0,n.SJ)("NEXT_PUBLIC_BFF_API_URL"),a=(0,n.SJ)("NEXT_PUBLIC_HEADLESS_CMS"),s=(0,n.SJ)("NEXT_PUBLIC_NEW_API_URL"),u=(0,n.SJ)("NEXT_PUBLIC_RKO_API_URL"),d=(0,n.SJ)("NEXT_PUBLIC_BASE_URL");(0,n.SJ)("NEXT_PUBLIC_API_URL");let{isNew:_,isBFF:p,isCommonBlocks:f,isHeadlessCMS:v,isRko:m}=e,h=t?"":l.APP_PREFIX,w="";return(_&&(w="new"),p&&(w="bff"),m&&(w="rko"),c("true"===o))?"".concat(h,"/api/proxy").concat(w):f?r:p?i:v?a:_?s:m?u:d},u=e=>{let t=(0,n.SJ)("COMMON_BLOCKS_SERVICE_USER_NAME"),o=(0,n.SJ)("NEXT_PUBLIC_NEW_USER_NAME"),r=(0,n.SJ)("NEXT_PUBLIC_USER_NAME"),l=(0,n.SJ)("COMMON_BLOCKS_SERVICE_USER_PASSWORD"),a=(0,n.SJ)("NEXT_PUBLIC_NEW_PASSWORD"),c=(0,n.SJ)("NEXT_PUBLIC_PASSWORD"),{isCommonBlocks:s,isNew:u,isHeadlessCMS:d}=e,_={common:{userName:t,password:l},new:{userName:o,password:a},default:{userName:r,password:c}},p=_.default;return(s||d)&&(p=_.common),u&&(p=_.new),"Basic ".concat(i.from("".concat(p.userName,":").concat(p.password)).toString("base64"))},d=async e=>{let{url:t,options:o={},config:l}=e,i=(0,n.SJ)("NEXT_PUBLIC_NEW_API_KEY"),c="dev"===(0,n.SJ)("NEXT_PUBLIC_VERSION"),{isNew:d}=o,_=s(o),p=0,f="";try{c&&console.log("Запрос url","".concat(_).concat(t)),p=performance.now();let{status:e,_data:n}=await r.Wg.raw(t,{baseURL:_,method:(null==l?void 0:l.method)||"GET",headers:{...null==l?void 0:l.headers,Authorization:u(o),...d?{"X-Gravitee-Api-Key":i||""}:{}},...l});return f=e,{data:n,error:null}}catch(e){return c&&console.error("Ошибка запроса","".concat(e,": ").concat(_).concat(t)),{data:null,error:e||"Unknown error"}}finally{var v;null===(v=a.outgoingHTTPRequestHistogram)||void 0===v||v.labels((null==l?void 0:l.method)||"GET",t,String(f)).observe(Number(performance.now()-p))}}},7446:function(e,t,o){"use strict";o.d(t,{z:function(){return n}});let n=300},4713:function(e,t,o){"use strict";o.d(t,{L:function(){return s}});var n=o(7437),r=o(7042),l=o(2265),i=o(7446),a=o(6691),c=o.n(a);let s=e=>{let{onClose:t,onToucheMove:o,isOpen:a,delay:s=i.z}=e,u=(0,l.useRef)(null),d=(0,l.useCallback)(()=>{t&&(u.current=setTimeout(()=>{t()},s))},[s,t]),_=(0,l.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,l.useEffect)(()=>(a&&window.addEventListener("keydown",_),()=>{u.current&&clearTimeout(u.current),window.removeEventListener("keydown",_)}),[a,_]),(0,n.jsx)("div",{className:(0,r.Z)(c().overlay,{[c().open]:a,[c().close]:!a}),onTouchStart:o,onClick:d})}},1249:function(e,t,o){"use strict";o.d(t,{j:function(){return v}});var n=o(7437),r=o(7042),l=o(2265),i=o(8541),a=o(5209),c=o(4713),s=o(900),u=o.n(s);let d=e=>{let{footer:t,isSmallPopup:o=!1,footerClassName:l}=e;return(0,n.jsx)("div",{className:(0,r.Z)(u().footer,o&&u().footerWithoutShadow,l),children:"function"==typeof t?t():t})};var _=o(6203),p=o.n(_);let f=e=>{let{children:t,footer:o,isOpen:a,isSmallPopup:s,onClose:u,hasCloseButton:_=!0,full:f,touchDistance:v=100,withDisabledScroll:m=!0,contentClassName:h,className:w,title:b,closeButton:g,footerClassName:S}=e,[y,C]=(0,l.useState)(!1),[k,O]=(0,l.useState)(!1),[x,E]=(0,l.useState)(!0),[N,I]=(0,l.useState)("120%"),B=(0,l.useRef)(null),P=(0,l.useRef)(0),L=(0,l.useRef)(!1),T=e=>{var t,o,n;let r=null===(t=B.current)||void 0===t?void 0:t.offsetTop,l=null===(o=B.current)||void 0===o?void 0:o.offsetHeight;if(L.current=!0,E(!1),r&&l){let t=(null==e?void 0:null===(n=e.touches[0])||void 0===n?void 0:n.clientY)-r,o=0;t>=0&&t<=l+30&&(o=t),t>l+30&&(o=l+30),I("".concat(o,"px")),P.current=o}},R=()=>{L.current&&(P.current>v&&u?null==u||u():I("0"),E(!0),L.current=!1),window.removeEventListener("touchmove",T),window.removeEventListener("touchend",R)};return(0,l.useEffect)(()=>{a&&setTimeout(()=>{C(!0),O(!0),I("0")},100),!a&&k&&(I("120%"),C(!1),O(!1))},[k,a]),(0,i.o)(a&&m),(0,n.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(p().mobilePopup,k&&p().mobilePopupOpen,w),children:[(0,n.jsx)(c.L,{onClose:()=>{a&&(null==u||u())},onToucheMove:()=>{a&&(C(!1),window.addEventListener("touchmove",T),window.addEventListener("touchend",R))},isOpen:a,delay:0}),(0,n.jsxs)("div",{className:(0,r.Z)(p().content,f&&p().contentFull,x&&p().contentTransition,x&&y&&p().contentTransitionOpen),ref:B,style:{transform:"translateY(".concat(N,")")},children:[(0,n.jsx)("div",{className:p().contentLine}),(0,n.jsxs)("div",{className:(0,r.Z)(p().contentContainer,s&&p().smallContentContainer,{[p().min]:!b&&!_},h),children:[!!b&&(0,n.jsx)("div",{className:p().title,children:b}),_?(0,n.jsx)("div",{className:p().closeContainer,children:(0,n.jsx)("div",{className:p().closeContainer,children:_?g?"function"==typeof g?g():g:(0,n.jsx)("button",{onClick:u,className:p().closeButton,children:(0,n.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null})}):null,t]}),o&&(0,n.jsx)(d,{footerClassName:S,isSmallPopup:s,footer:o})]})]})},v=e=>{let{children:t,isSmallPopup:o=!1,isOpen:r=!1,...l}=e,{mounted:i}=(0,a.b)({opened:r});return i?(0,n.jsx)(f,{isSmallPopup:o,isOpen:r,...l,children:t}):null};v.displayName="UiMobilePopup"},9393:function(e,t,o){"use strict";o.d(t,{N:function(){return I}});var n=o(7437),r=o(2265),l=o(629),i=o(1518),a=o(7042),c=o(8572),s=o(8392),u=o(3915),d=o(1227),_=o(5285),p=o.n(_),f=o(7716),v=o.n(f);let m=e=>(0,n.jsx)("span",{className:v().tooltipText,dangerouslySetInnerHTML:{__html:e||""}}),h=e=>{let{label:t,preposition:o,value:r,isTitle:c,tooltip:s,postfix:u,onTooltipClick:d}=e,_=o?"".concat(o," ").concat(r):r;return(0,n.jsxs)("div",{className:(0,a.Z)(v().group,c&&v().titleGroup),children:[(0,n.jsxs)("button",{className:v().groupSub,title:c&&"string"==typeof t?t:"",onClick:s?e=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),null==d||d()}:void 0,children:[t,s?(0,n.jsx)(i.Tooltip,{className:v().tooltip,text:m(s),children:(0,n.jsx)(l.IconFdsQuestionCircleO,{className:v().tooltipIcon})}):null]}),(0,n.jsxs)("p",{className:v().groupContent,title:c&&"string"==typeof r?_:"",children:[o&&(0,n.jsx)("span",{className:v().preposition,children:o})," ",r,u&&(0,n.jsx)("span",{className:v().postfix,children:u})]})]})},w=e=>{var t,o;let{offer:r,handleOpenDetailInfo:_,isWhiteCard:f=!1,onCardPrimaryButtonClick:v,onOfferClick:m,onTooltipClick:w,eventCategory:b="BankOffersList",handleExpandOffers:g,highlight:S,className:y}=e,{title:C,fields:k,chips:O,url:x}=r,E="Ещё ".concat(null===(t=r.subOffers)||void 0===t?void 0:t.length," ").concat((0,u._6)((null===(o=r.subOffers)||void 0===o?void 0:o.length)||0,...d.bt)),N=(0,n.jsx)("div",{className:p().chipsRow,children:O.map(e=>(0,n.jsx)("div",{className:p().chipWrapper,children:(0,n.jsx)(i.Tag,{label:e.text,variant:e.color,className:p().chip,style:e.style,rounded:!0,iconLeft:e.iconLeft})},e.text))}),I=()=>{(0,s.Q)({eventCategory:b,eventActionType:s.i.icon,eventActionText:"IconFdsQuestionCircleO",eventLabel:"".concat(r.fkName||"","_").concat(r.title||"")}),null==w||w(r)};return(0,n.jsxs)("div",{className:(0,a.Z)(p().cardWrapper,y),children:[(0,n.jsxs)("a",{className:(0,a.Z)(p().card,p().fullWidthCard,{[p().paddingForButton]:g,[p().whiteCard]:f,[p().highlighted]:S}),href:x,target:"_blank",onClick:()=>{(0,s.Q)({eventCategory:b,eventActionType:s.i.offer,eventActionText:"".concat(r.fkName||"","_").concat(r.title||""),eventLabel:r.url}),null==m||m(r)},children:[(0,n.jsxs)("div",{className:p().topRow,children:[(0,n.jsxs)("div",{className:p().topRowContent,children:[(0,n.jsxs)("div",{className:p().bankInfo,children:[(0,n.jsx)("div",{className:p().icon,children:(0,n.jsx)(c.D,{url:r.bic||r.url||"",backupImage:r.fkLogo,type:"bank",width:56,height:56})}),(0,n.jsx)(h,{label:C,value:r.fkName,isTitle:!0})]}),(0,n.jsx)("div",{className:p().groups,children:k.map(e=>e.value?(0,n.jsx)(h,{label:e.label,preposition:e.preposition,value:e.value,tooltip:e.tooltip,postfix:e.postfix,onTooltipClick:I},e.name):null)}),(0,n.jsx)("div",{className:p().mobileOnly,children:N})]}),(0,n.jsxs)("div",{className:p().topRowButtons,children:[(0,n.jsx)("button",{className:p().iconButton,onClick:e=>{e.preventDefault(),e.stopPropagation(),_(r)},children:(0,n.jsx)(l.IconFdsInfoCircleO,{className:p().iconDetail,size:24})}),(0,n.jsx)(i.Button,{className:p().detailButton,size:"xs",label:"Подробнее",onClick:e=>{e.preventDefault(),e.stopPropagation(),(0,s.Q)({eventCategory:b,eventActionType:s.i.button,eventActionText:"Подробнее",eventLabel:r.url}),null==v||v(r),window.open(x,"_blank")}})]})]}),(0,n.jsx)("div",{className:p().desktopOnly,children:N}),g&&(0,n.jsx)("div",{className:p().lastOfferCornerGradient})]}),g&&(0,n.jsx)(i.Button,{className:p().showMoreButton,variant:"purple",appearance:"ghost",label:E,onClick:g,iconRight:(0,n.jsx)(l.IconFdsChevronDownSmallO,{className:p().showMoreIcon})})]})},b=()=>{let e="";for(let t=0;t<36;t++){let o=16*Math.random()|0;[8,13,18,23].includes(t)&&(e+="-"),e+=(14===t?"4":19===t?3&o|8:o).toString(16)}return e};var g=o(346),S=o.n(g);let y=e=>{let{params:t,children:o,className:l,config:i}=e,[c,s]=(0,r.useState)(!1),[u,d]=(0,r.useState)(""),_=(0,r.useRef)(null),p=(0,r.useRef)("");return(0,r.useEffect)(()=>{p.current&&(null==i?void 0:i.yaContextCb)&&(null==i?void 0:i.Ya)&&i.yaContextCb.push(()=>{i.Ya.adfoxCode.destroy(p.current)}),d(b())},[null==i?void 0:i.Ya,null==i?void 0:i.yaContextCb,t.pp]),(0,r.useEffect)(()=>{if(p.current===u)return;if(!i){s(!0);return}let e=()=>{var e,t;let o=null===(e=_.current)||void 0===e?void 0:e.querySelector("iframe");o?o.style.height="".concat(null===(t=o.contentWindow)||void 0===t?void 0:t.document.body.scrollHeight,"px"):console.warn("ads blocked"),s(!o)};i.yaContextCb&&i.yaContextCb.push(()=>{i.Ya.adfoxCode.create({ownerId:i.ownerId,containerId:"adfox_".concat(u),params:t,onRender:e})}),setTimeout(e,5e3),p.current=u},[u,i,t]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,a.Z)(c&&S().hide,l),ref:_,id:"adfox_".concat(u)},u),c&&o]})},C=()=>{let[e,t]=(0,r.useState)();return(0,r.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&t({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),e};var k=o(8811),O=o.n(k),x=o(7521),E=o.n(x);let N=O()(()=>o.e(288).then(o.bind(o,8288)).then(e=>e.BankOfferModal),{loadableGenerated:{webpack:()=>[8288]},ssr:!1}),I=e=>{let{offers:t,handleButtonClick:o,handlePrimaryButtonClick:l,onOpenDetailInfo:i,onCardPrimaryButtonClick:c,onOfferClick:u,onTooltipClick:d,eventCategory:_="BankOffersList",highlightedOfferId:p,adfoxBanners:f}=e,[v,m]=(0,r.useState)(!1),[h,b]=(0,r.useState)(null),[g,S]=(0,r.useState)([]),k=C(),O=e=>{S(t=>[...t,e])},x=e=>{var t;return null==f?void 0:null===(t=f.find(t=>(null==t?void 0:t.position)===e))||void 0===t?void 0:t.params},I={handleOpenDetailInfo:e=>{b(e),m(!0),(0,s.Q)({eventCategory:_,eventActionType:s.i.button,eventActionText:"IconFdsInfoCircleO",eventLabel:"".concat(e.fkName||"","_").concat(e.title||"")}),null==i||i(e)},onCardPrimaryButtonClick:c,onOfferClick:u,onTooltipClick:d,eventCategory:_};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:E().offersList,children:[t.map((e,t)=>{var o,l;let i=!(null===(o=e.subOffers)||void 0===o?void 0:o.length)||g.includes(Number(e.id));return(0,n.jsxs)(r.Fragment,{children:[!!x(t)&&(0,n.jsx)(y,{config:k,params:x(t)}),(0,n.jsx)(w,{offer:e,...I,handleExpandOffers:i?void 0:()=>O(Number(e.id)),highlight:p===e.id}),null===(l=e.subOffers)||void 0===l?void 0:l.map(e=>(0,n.jsx)(w,{offer:e,...I,className:(0,a.Z)({collapsed:!i})},e.id))]},"".concat(e.id,"-").concat(t))}),!!x(t.length)&&(0,n.jsx)(y,{config:k,params:x(t.length)})]}),v&&(0,n.jsx)(N,{isOpen:v,onClose:()=>{m(!1)},offer:h,handleButtonClick:o,handlePrimaryButtonClick:l,eventCategory:_})]})}},5792:function(e,t,o){"use strict";o.d(t,{g:function(){return a}});var n=o(7437),r=o(7639),l=o(5950),i=o(2265);let a=e=>{let{offer:t}=e,o=(0,r.SJ)("NEXT_PUBLIC_BASE_URL"),a=(0,i.useMemo)(()=>{let e=[{"@type":"ListItem",position:1,name:"Главная",item:o},{"@type":"ListItem",position:2,name:"РКО",item:(0,l.xn)(o,"rko")}];return t&&e.push({"@type":"ListItem",position:3,name:t.title,item:(0,l.xn)(o,"rko",t.url)}),JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e})},[o,t]);return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:a}})}},8572:function(e,t,o){"use strict";o.d(t,{D:function(){return s}});var n=o(7437),r=o(9240),l=o.n(r),i=o(2265),a=o(1177),c={src:"/service-rko/_next/static/media/bank-placeholder.d924b4ac.svg",height:108,width:108,blurWidth:0,blurHeight:0};let s=e=>{var t;let[o,r]=(0,i.useState)(0),s="insurance"===e.type?"sk":e.type||"bank",u=(0,a.S)("NEXT_PUBLIC_S3_ASSETS"),d="".concat(u,"/mp-assets/images/").concat(s,"/logo-brandmark-").concat(s,"-").concat(e.url,".svg");(0,i.useEffect)(()=>{r(0)},[d]);let _=(t=e.backupImage,0===o?d:1===o&&t?t:c);return(0,n.jsx)(l(),{className:e.className,src:_,width:e.width,height:e.height,alt:"logo",unoptimized:!0,onError:()=>r(e=>e+1),suppressHydrationWarning:!0})}},3391:function(e,t,o){"use strict";o.d(t,{h:function(){return l}});var n=o(2265),r=o(4887);let l=e=>{let{children:t,id:o="portal-root"}=e,[l,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.getElementById(o);if(e){i(e);return}let t=document.createElement("div");return t.id=o,document.body.appendChild(t),i(t),()=>{document.body.removeChild(t)}},[o]),l?(0,r.createPortal)(t,l):null}},1616:function(e,t,o){"use strict";o.d(t,{L:function(){return i}});var n=o(7437),r=o(7639),l=o(3217);let i=()=>{let e=(0,r.SJ)("NEXT_PUBLIC_S3_ASSETS");return(0,n.jsx)(l.B,{s3Assets:e,phoneCard:{phones:[{label:"8 800 505-32-32",href:"tel:88005053232"},{label:"+7 495 145-32-32",href:"tel:+74951453232"}],description:"Виртуальный ассистент доступен 24/7, операторы — с 6:00 до 23:59 мск"},appCard:{title:"Управляйте финансами через приложение Финуслуг",linkUrl:"https://promo.finuslugi.ru/mobapp"}})}},8541:function(e,t,o){"use strict";o.d(t,{o:function(){return r}});var n=o(2265);let r=e=>{let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let o=t.current,n=window.innerWidth-document.documentElement.clientWidth;e&&n&&!document.body.style.top&&(window.prevScrollPosition=window.scrollY||window.pageYOffset),e&&n&&(document.documentElement.style.setProperty("overflow-y","scroll"),document.body.classList.toggle("scroll-disable-windows",!0),document.body.style.setProperty("width","calc(100vw - ".concat(n,"px)")),document.body.style.setProperty("top","-".concat(window.prevScrollPosition,"px"))),e&&!n&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw")),e&&o&&o.setAttribute("data-portal","");let r=document.querySelectorAll("[data-portal]").length>1;return e||r||(document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),document.body.style.removeProperty("width"),document.body.style.removeProperty("top")),e||r||void 0===window.prevScrollPosition||(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0),!e&&o&&o.removeAttribute("data-portal"),()=>{document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)}},[e]),t}},5209:function(e,t,o){"use strict";o.d(t,{b:function(){return l}});var n=o(2265),r=o(7446);let l=e=>{let{opened:t}=e,[o,l]=(0,n.useState)(!1),i=(0,n.useRef)(null),a=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(t&&!a.current?(a.current=!0,l(!0)):!t&&a.current&&(i.current=setTimeout(()=>{a.current=!1,l(!1)},r.z)),()=>{i.current&&clearTimeout(i.current)}),[t]),{mounted:o}}},3361:function(e,t,o){"use strict";o.d(t,{S:function(){return a}});var n=o(2265);let r={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let t=r.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch(t){console.warn("invalid object in localStorage by key: ".concat(e))}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}};var l=o(7639),i=o(3303);let a=e=>{let{initialRegion:t,initialTown:o}=e,[{region:a,town:c},s]=(0,n.useState)({region:t,town:o}),u=(0,i.useCitySelectContext)(),d=(0,l.SJ)("NEXT_PUBLIC_REACT_HEADER");return(0,n.useEffect)(()=>{var e,n,l,i,a,c,_,p,f;let v=r.getItem("user_region"),m=r.getItem("user_town"),h=null===(l=window)||void 0===l?void 0:null===(n=l.Alpine)||void 0===n?void 0:null===(e=n.store("citySelect"))||void 0===e?void 0:e.region,w=null===(c=window)||void 0===c?void 0:null===(a=c.Alpine)||void 0===a?void 0:null===(i=a.store("citySelect"))||void 0===i?void 0:i.town,b=h||v||t||null,g=w||m||o||null;s({region:b,town:g}),d?u.selectCity(b,g):null===(f=window)||void 0===f||null===(p=f.Alpine)||void 0===p||null===(_=p.store("citySelect"))||void 0===_||_.selectCity(b,g),document.addEventListener("onRegionChange",e=>{var t,o;let n=null==e?void 0:null===(t=e.detail)||void 0===t?void 0:t.region,r=null==e?void 0:null===(o=e.detail)||void 0===o?void 0:o.town;s({region:n,town:r})})},[t,o]),{region:a,town:c,handleOpenCityModal:()=>{if(d)u.handleToggleModal(!0);else{var e,t,o;null===(o=window)||void 0===o||null===(t=o.Alpine)||void 0===t||null===(e=t.store("citySelect"))||void 0===e||e.handleToggleModal(!0)}}}}},1227:function(e,t,o){"use strict";o.d(t,{K0:function(){return n},aP:function(){return r},bt:function(){return l},wm:function(){return i}});let n=[{label:"Все",value:"BOTH"},{label:"ИП",value:"SOLE_PROPRIETOR"},{label:"ООО",value:"LEGAL_ENTITY"}],r=[{label:"По популярности",value:"POPULAR"},{label:"По обслуживанию",value:"COST"}],l=["предложение","предложения","предложений"],i="rko"},1177:function(e,t,o){"use strict";o.d(t,{S:function(){return r}});var n=o(3261);function r(e){let t="",o=!1;try{t=(0,n.env)(e),o="dev"===(0,n.env)("NEXT_PUBLIC_VERSION")}catch(e){}let r=void 0===t&&window.__ENV&&Object.keys(window.__ENV).length>0;if(r&&o)throw Error("".concat(e," is undefined"));return r&&!o&&console.error("".concat(e," is undefined")),t||""}},7639:function(e,t,o){"use strict";o.d(t,{p6:function(){return l},SJ:function(){return i.S}});var n=o(7453),r=o(5298);function l(e,t){let{format:o="dd.MM.yy"}=null!=t?t:{};try{if("string"==typeof e)return(0,n.Z)(new Date(e),o,{locale:r.Z});return(0,n.Z)(e,o,{locale:r.Z})}catch(t){return e}}var i=o(1177)},8392:function(e,t,o){"use strict";o.d(t,{i:function(){return r},Q:function(){return c}});var n,r,l=o(5833);let i={а:"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"},a=e=>e?e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in i?i[t]:e}).replaceAll(" ","_").replaceAll("\xa0","_"):"";(n=r||(r={})).icon="icon",n.chip="chip",n.accordion="accordion",n.button="button",n.checkbox="checkbox",n.radio="radio",n.select="select",n.toggle="toggle",n.tooltip="tooltip",n.link="link",n.banner="banner",n.tag="tag",n.date="date",n.field="field",n.offer="offer",n.tab="tab",n.submit_button="submit_button",n.popup="popup",n.block="block";let c=e=>{let{eventCategory:t,eventActionType:o,eventActionText:n="",eventLabel:r}=e,i={event:"data-event",eventCategory:t,eventAction:{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_",submit_button:"form_button_",popup:"show_pop_up_",block:"click_block_"}[o]+a(n)};void 0!==r&&(i.eventLabel=a("string"==typeof r?r:r.toString())),(0,l.l)(i)}},5833:function(e,t,o){"use strict";o.d(t,{l:function(){return r}});var n=o(2067);let r=(e,t)=>{let o=sessionStorage.getItem("pushedEvents"),r=o?JSON.parse(o):[];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(" ","_"));let l=r.find(o=>o.eventCategory===e.eventCategory&&o.eventAction===e.eventAction&&o.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===o.url));if(!t||!l){if(t){let t={...e};t.url=window.location.pathname,r.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(r))}(0,n.AB)(e)}}},6691:function(e){e.exports={overlay:"ClickOutside_overlay__YQi9L",open:"ClickOutside_open__bmtsz",fade:"ClickOutside_fade__io1xj",close:"ClickOutside_close__AC078","fade-out":"ClickOutside_fade-out__wJ_pJ"}},6203:function(e){e.exports={mobilePopup:"MobilePopup_mobilePopup__NCFCK",content:"MobilePopup_content__B5iF0",contentFull:"MobilePopup_contentFull__DBrvo",contentLine:"MobilePopup_contentLine__eykLy",contentContainer:"MobilePopup_contentContainer___ZbOq",min:"MobilePopup_min__D0Hml",contentTransition:"MobilePopup_contentTransition__7_kGL",contentTransitionOpen:"MobilePopup_contentTransitionOpen__GDGpr",title:"MobilePopup_title__IEYZk",closeContainer:"MobilePopup_closeContainer__HSRUL",closeButton:"MobilePopup_closeButton__Bse_M",smallContentContainer:"MobilePopup_smallContentContainer__8jHeS"}},900:function(e){e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},346:function(e){e.exports={hide:"YaAdFoxBanner_hide__EEjEP"}},7521:function(e){e.exports={offersList:"BankOffersList_offersList__XZ5q_"}},5285:function(e){e.exports={cardWrapper:"BankOffer_cardWrapper__YNvcv",card:"BankOffer_card__ICGdJ",iconButton:"BankOffer_iconButton__WAmKS",paddingForButton:"BankOffer_paddingForButton__U1cqr",highlighted:"BankOffer_highlighted__dCM6d",fullWidthCard:"BankOffer_fullWidthCard__n4WOI",chipsRow:"BankOffer_chipsRow___YdEC",topRow:"BankOffer_topRow__c3UpD",topRowContent:"BankOffer_topRowContent__oR_ad",topRowButtons:"BankOffer_topRowButtons__iO3fh",detailButton:"BankOffer_detailButton__rnCze",bankInfo:"BankOffer_bankInfo__I_4hS",groups:"BankOffer_groups__RjfiS",group:"BankOffer_group__E3ykC",titleGroup:"BankOffer_titleGroup___ZwEg",whiteCard:"BankOffer_whiteCard__xrXK3",preposition:"BankOffer_preposition__VyoEq",iconDetail:"BankOffer_iconDetail__xygTi",chip:"BankOffer_chip__cGpbc",icon:"BankOffer_icon__VnoPt",lastOfferCornerGradient:"BankOffer_lastOfferCornerGradient__te_WF",mobileOnly:"BankOffer_mobileOnly__B2sek",desktopOnly:"BankOffer_desktopOnly__rbRt2",showMoreButton:"BankOffer_showMoreButton__T5LL_",showMoreIcon:"BankOffer_showMoreIcon__BPwVs"}},7716:function(e){e.exports={preposition:"BankOfferInfoGroup_preposition__dlRBI",postfix:"BankOfferInfoGroup_postfix___1auU",group:"BankOfferInfoGroup_group__bvFrt",titleGroup:"BankOfferInfoGroup_titleGroup__eEKRh",groupSub:"BankOfferInfoGroup_groupSub__v9OO_",groupContent:"BankOfferInfoGroup_groupContent__ERVJ4",tooltip:"BankOfferInfoGroup_tooltip__wBh_G",tooltipIcon:"BankOfferInfoGroup_tooltipIcon___8f8u",tooltipText:"BankOfferInfoGroup_tooltipText__V5ST6"}}}]);