(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[572],{6582:function(e,t,a){Promise.resolve().then(a.bind(a,3417)),Promise.resolve().then(a.bind(a,9767)),Promise.resolve().then(a.bind(a,156))},3090:function(e,t,a){"use strict";a.d(t,{W:function(){return f}});var n=a(7437),l=a(1994),r=a(2265),o=a(3114),s=a.n(o);let i=e=>{let{maxHeight:t=300,className:a,style:o,children:i,...c}=e,[d,_]=(0,r.useState)(t),[h,u]=(0,r.useState)(!1),f=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=()=>{f.current&&f.current.scrollHeight>t&&u(!0)};return e(),window&&window.addEventListener("resize",e),window.removeEventListener("resize",e)},[t]),(0,n.jsxs)("div",{...c,ref:f,className:(0,l.Z)(s().container,{[s().containerOverflow]:h,[s().containerOpen]:h&&d===t},a),style:{height:h?d:"auto",...o},children:[i,h&&(0,n.jsx)("button",{className:s().button,onClick:()=>{_(e=>e===t?"auto":t)},children:d===t?"Показать ещё":"Скрыть"})]})};var c=a(2165),d=a.n(c);let _=e=>e?e.replace(/(\d+)\.(\d+)/g,(e,t,a)=>"".concat(t,",").concat(a)):"",h=e=>{let{text:t}=e;return(0,n.jsx)(i,{className:d().rowValue,children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:_(t)}})})},u=e=>{let{title:t,text:a}=e;return(0,n.jsxs)("li",{className:d().row,children:[(0,n.jsx)("div",{className:d().rowLabel,children:t}),Array.isArray(a)?(0,n.jsx)("div",{className:d().rowValue,children:a.map(e=>(0,n.jsx)(h,{text:e},e))}):(0,n.jsx)(h,{text:a})]},t)},f=e=>{let{params:t,terms:a,aboutBank:r,actualInfo:o}=e;return(0,n.jsxs)("div",{className:d().content,children:[[t,a,r].map(e=>{var t;return(null==e?void 0:null===(t=e.rows)||void 0===t?void 0:t.length)>0&&(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:d().listTitle,children:e.title}),(0,n.jsx)("ul",{className:d().list,children:e.rows.map(u)})]},e.title)}),!!o&&(0,n.jsx)("span",{className:(0,l.Z)(d().actualDateOffer,d().actualDate),children:o})]})}},156:function(e,t,a){"use strict";a.d(t,{default:function(){return D}});var n=a(7437),l=a(2265),r=a(5563),o=a(5461),s=a(1132),i=a(1994),c=a(684),d=a(8683),_=a(5843),h=a(7375),u=a(7627),f=a.n(u);let k=(e,t,a)=>{let n="",l="";switch(e){case"tg":n="https://telegram.me/share/url?text=".concat(a,"&url=").concat(t),l="IconFdsTelegramF";break;case"ok":n="https://connect.ok.ru/offer?url=".concat(t,"&title=").concat(a),l="IconFdsOdnoklassnikiF";break;case"vk":n="https://vk.com/share.php?url=".concat(t,"&title=").concat(a),l="IconFdsVkontakteF";break;default:n=""}(0,h.Q)({eventCategory:_.wm,eventActionType:h.i.icon,eventActionText:l,eventLabel:n}),window.open(n,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300")},v=e=>{let{className:t,title:a,url:l}=e,r=(0,d.SJ)("NEXT_PUBLIC_BASE_URL"),o=e=>{k(e.currentTarget.getAttribute("data-alt"),"".concat(r).concat(l),a)};return(0,n.jsxs)("div",{className:(0,i.Z)(f().soc,t),children:[(0,n.jsx)("div",{"data-alt":"tg",onClick:o,children:(0,n.jsx)(c.IconFdsTelegramF,{className:f().icon,size:16})}),(0,n.jsx)("div",{"data-alt":"ok",onClick:o,children:(0,n.jsx)(c.IconFdsOdnoklassnikiF,{className:f().icon,size:18})}),(0,n.jsx)("div",{"data-alt":"vk",onClick:o,children:(0,n.jsx)(c.IconFdsVkontakteF,{className:f().icon,size:18})})]})};var m=a(3090),x=a(2502),p=a(5763),j=a(9464),w=a(5074),b=a(7730),N=a(5038),O=a.n(N),D=e=>{let{rkoDetailData:t,otherOffers:a,supportBlockData:u}=e,{region:f,town:k}=(0,p.S)({initialRegion:null,initialTown:null}),[N,D]=(0,l.useState)(!1),[g,S]=(0,l.useState)(null),T=!!(null==t?void 0:t.link),C=(0,d.SJ)("NEXT_PUBLIC_S3_ASSETS"),B=()=>{(0,h.Q)({eventCategory:_.wm,eventActionType:h.i.button,eventActionText:"Отправить заявку",eventLabel:null==t?void 0:t.link})};return(0,n.jsxs)("main",{className:O().page,children:[(0,n.jsx)(w.g,{offer:t}),(0,n.jsxs)(r.W2,{children:[(0,n.jsx)(o.Oo,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{href:"/rko",label:"РКО"},{label:"".concat(null==t?void 0:t.title)}]}),(0,n.jsxs)("section",{className:O().topSection,children:[(0,n.jsxs)("div",{className:O().headerWrapper,children:[(0,n.jsxs)("div",{className:O().header,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:O().headerTitle,children:null==t?void 0:t.fkName}),(0,n.jsxs)("div",{className:O().headerInfo,children:[(0,n.jsxs)("div",{className:O().headerSubtitle,children:["Тариф ",null==t?void 0:t.title]}),(0,n.jsx)("div",{className:O().headerBadge,children:"РКО"})]})]}),(0,n.jsx)("div",{className:O().headerLogo,children:(0,n.jsx)(s.D,{altLogo:t.altLogo,url:t.bic||t.url||"",backupImage:"",type:"bank",width:36,height:36})})]}),(0,n.jsx)("div",{className:(0,i.Z)("desktopOnly",O().shareContainer),children:(0,n.jsxs)("div",{className:O().shareWrapper,children:[(0,n.jsx)("button",{className:O().shareButton,onClick:()=>{(0,h.Q)({eventCategory:_.wm,eventActionType:h.i.button,eventActionText:"IconFdsShareO",eventLabel:"".concat((null==t?void 0:t.fkName)||"","_").concat((null==t?void 0:t.title)||"")}),D(e=>!e)},children:(0,n.jsx)(c.IconFdsShareO,{size:16})}),(0,n.jsx)(v,{className:(0,i.Z)(O().soc,{[O().show]:N}),title:"Тариф ".concat(null==t?void 0:t.title),url:null==t?void 0:t.url})]})})]}),(0,n.jsxs)("div",{className:O().formBanner,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:O().formBannerTitle,children:"Заполните форму онлайн"}),(0,n.jsxs)("div",{className:O().formBannerSubtitle,children:["После заполнения онлайн-заявки с вами свяжется оператор и поможет все оформить"," "]})]}),T&&(0,n.jsx)(o.zx,{as:"a",href:(null==t?void 0:t.link)||"",target:"_blank",label:"Отправить заявку",onClick:B}),!T&&(0,n.jsx)(o.zx,{label:"Отправить заявку",onClick:()=>{B(),S(t)}})]}),(0,n.jsx)("div",{className:O().offerDetailsWrapper,children:!!t.modalData&&(0,n.jsx)(m.W,{...t.modalData})})]})]}),(0,n.jsx)(x.FormModal,{offer:g,isOpen:!!g,onClose:()=>S(null),region:f,town:k}),(0,n.jsx)("section",{className:O().otherOffersSection,children:(0,n.jsxs)(r.W2,{children:[(0,n.jsx)("div",{className:O().otherOffersTitle,children:"Другие предложения"}),(0,n.jsx)("div",{className:O().otherOffersSubtitle,children:"Предложения на Финуслугах"}),(0,n.jsx)(j.N,{offers:a,handleButtonClick:e=>{window.open(e.url,"_blank")},handlePrimaryButtonClick:e=>{setTimeout(()=>{e.link?window.open(e.link,"_blank"):S(e)},500)},eventCategory:_.wm}),(0,n.jsx)("div",{className:O().linkWrapper,children:(0,n.jsxs)("a",{href:"/rko",target:"_blank",onClick:()=>{(0,h.Q)({eventCategory:_.wm,eventActionType:h.i.link,eventActionText:"Все предложения РКО",eventLabel:"/rko"})},children:["Все предложения РКО",(0,n.jsx)("span",{className:O().linkIconWrapper,children:(0,n.jsx)(c.IconFdsArrowUpRightSmallO,{size:24})})]})})]})}),u&&(0,n.jsx)(b.B,{...u,s3Assets:C})]})}},2165:function(e){e.exports={content:"BankOfferModalContent_content__KSO0f",listTitle:"BankOfferModalContent_listTitle__bVv6c",list:"BankOfferModalContent_list___Q5vR",row:"BankOfferModalContent_row__GqOlV",rowValue:"BankOfferModalContent_rowValue__wzrn9",rowLabel:"BankOfferModalContent_rowLabel__c1NyQ",actualDateOffer:"BankOfferModalContent_actualDateOffer__MfGG0"}},7627:function(e){e.exports={soc:"SocShareButtons_soc___GiVh",icon:"SocShareButtons_icon__4HBqe"}},3114:function(e){e.exports={container:"TextOverflow_container__puWoy",containerOverflow:"TextOverflow_containerOverflow__m3OAq",containerOpen:"TextOverflow_containerOpen__PcOja",button:"TextOverflow_button__a720J"}},5038:function(e){e.exports={page:"RkoDetail_page__TqnHe",topSection:"RkoDetail_topSection__kzzTe",headerWrapper:"RkoDetail_headerWrapper__1AZYD",header:"RkoDetail_header__jKGeJ",headerTitle:"RkoDetail_headerTitle__0_Rts",headerInfo:"RkoDetail_headerInfo__kwM_S",headerSubtitle:"RkoDetail_headerSubtitle__9umjQ",headerBadge:"RkoDetail_headerBadge__fIEoD",headerLogo:"RkoDetail_headerLogo___P64S",shareContainer:"RkoDetail_shareContainer__8Xt9K",shareWrapper:"RkoDetail_shareWrapper__22CDY",shareButton:"RkoDetail_shareButton__eBTCf",soc:"RkoDetail_soc__CcdMd",show:"RkoDetail_show__DstMu",formBanner:"RkoDetail_formBanner__d6VRD",formBannerTitle:"RkoDetail_formBannerTitle__mkqPy",formBannerSubtitle:"RkoDetail_formBannerSubtitle__IL2Z3",offerDetailsWrapper:"RkoDetail_offerDetailsWrapper__OcrDP",otherOffersSection:"RkoDetail_otherOffersSection__eJD5t",otherOffersTitle:"RkoDetail_otherOffersTitle__SjRLg",otherOffersSubtitle:"RkoDetail_otherOffersSubtitle__KhHz0",linkWrapper:"RkoDetail_linkWrapper__jN5XD",linkIconWrapper:"RkoDetail_linkIconWrapper__W9GY5"}}},function(e){e.O(0,[679,544,501,207,811,43,472,31,502,971,117,744],function(){return e(e.s=6582)}),_N_E=e.O()}]);