(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[945],{2740:function(e,t,a){Promise.resolve().then(a.bind(a,2778)),Promise.resolve().then(a.bind(a,7883))},3090:function(e,t,a){"use strict";a.d(t,{W:function(){return f}});var n=a(7437),l=a(1994),r=a(2265),i=a(3114),s=a.n(i);let o=e=>{let{maxHeight:t=300,className:a,style:i,children:o,...c}=e,[d,_]=(0,r.useState)(t),[u,h]=(0,r.useState)(!1),f=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=()=>{let e=f.current;if(!e){h(!1);return}h(e.scrollHeight>t)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,n.jsxs)("div",{...c,ref:f,className:(0,l.Z)(s().container,{[s().containerOverflow]:u,[s().containerOpen]:u&&d===t},a),style:{height:u?d:"auto",...i},children:[o,u&&(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)):"",u=e=>{let{text:t}=e;return(0,n.jsx)(o,{className:d().rowValue,children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:_(t)}})})},h=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)(u,{text:e},e))}):(0,n.jsx)(u,{text:a})]},t)},f=e=>{let{params:t,terms:a,aboutBank:r,actualInfo:i}=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(h)})]},e.title)}),!!i&&(0,n.jsx)("span",{className:(0,l.Z)(d().actualDateOffer,d().actualDate),children:i})]})}},7883:function(e,t,a){"use strict";a.d(t,{default:function(){return T}});var n=a(7437),l=a(5563),r=a(5461),i=a(3090),s=a(5074),o=a(1132),c=a(166),d=a(6295),_=a(9306);let u={async getPageData(e,t){let a=new URLSearchParams({scLayoutName:e,scPageUrl:t}).toString();return(await (0,_.t)({url:"/api/v1/data/page-data?".concat(a),options:{isHeadlessCMS:!0}})).data||null}},h=(0,c.default)(()=>a.e(438).then(a.bind(a,8438)).then(e=>e.RkoDetailSupport),{loadableGenerated:{webpack:()=>[8438]},ssr:!1}),f=async()=>{let e=await u.getPageData("SupportWidget","general");if(!e)return null;let{NEXT_PUBLIC_S3_ASSETS:t}=(0,d.S)();return(0,n.jsx)(h,{...e.value,s3Assets:t})};var p=a(2265),k=a(5763),m=a(5843),x=a(7375);let v=(0,c.default)(()=>Promise.all([a.e(907),a.e(502)]).then(a.bind(a,2502)).then(e=>e.FormModal),{loadableGenerated:{webpack:()=>[2502]},ssr:!1}),j=e=>{let{offer:t}=e,{region:a,town:l}=(0,k.S)({initialRegion:null,initialTown:null}),[i,s]=(0,p.useState)(null),o=()=>{(0,x.Q)({eventCategory:m.wm,eventActionType:x.i.button,eventActionText:"Отправить заявку",eventLabel:null==t?void 0:t.link})},c=!!(null==t?void 0:t.link);return(0,n.jsxs)(n.Fragment,{children:[c?(0,n.jsx)(r.zx,{as:"a",href:t.link||"",target:"_blank",label:"Отправить заявку",onClick:o}):(0,n.jsx)(r.zx,{label:"Отправить заявку",onClick:()=>{o(),s(t)}}),(0,n.jsx)(v,{offer:i,isOpen:!!i,onClose:()=>s(null),region:a,town:l})]})};var b=a(684),w=a(9464),D=a(5038),O=a.n(D);let g=(0,c.default)(()=>Promise.all([a.e(907),a.e(502)]).then(a.bind(a,2502)).then(e=>e.FormModal),{loadableGenerated:{webpack:()=>[2502]},ssr:!1}),N=e=>{let{offers:t}=e,{region:a,town:r}=(0,k.S)({initialRegion:null,initialTown:null}),[i,s]=(0,p.useState)(null);return(0,n.jsxs)("section",{className:O().otherOffersSection,children:[(0,n.jsxs)(l.W2,{children:[(0,n.jsx)("div",{className:O().otherOffersTitle,children:"Другие предложения"}),(0,n.jsx)("div",{className:O().otherOffersSubtitle,children:"Предложения на Финуслугах"}),(0,n.jsx)(w.N,{offers:t,handleButtonClick:e=>{window.open(e.url,"_blank")},handlePrimaryButtonClick:e=>{setTimeout(()=>{if(e.link){window.open(e.link,"_blank");return}s(e)},500)},eventCategory:m.wm}),(0,n.jsx)("div",{className:O().linkWrapper,children:(0,n.jsxs)("a",{href:"/rko",target:"_blank",onClick:()=>{(0,x.Q)({eventCategory:m.wm,eventActionType:x.i.link,eventActionText:"Все предложения РКО",eventLabel:"/rko"})},rel:"noreferrer",children:["Все предложения РКО",(0,n.jsx)("span",{className:O().linkIconWrapper,children:(0,n.jsx)(b.IconFdsArrowUpRightSmallO,{size:24})})]})})]}),(0,n.jsx)(g,{offer:i,isOpen:!!i,onClose:()=>s(null),region:a,town:r})]})};var S=a(1994);let R=(0,c.default)(()=>Promise.all([a.e(306),a.e(180)]).then(a.bind(a,4180)).then(e=>e.SocShareButtons),{loadableGenerated:{webpack:()=>[4180]},ssr:!1}),C=e=>{let{fkName:t,title:a,url:l}=e,[r,i]=(0,p.useState)(!1);return(0,n.jsx)("div",{className:(0,S.Z)("desktopOnly",O().shareContainer),children:(0,n.jsxs)("div",{className:O().shareWrapper,children:[(0,n.jsx)("button",{className:O().shareButton,onClick:()=>{(0,x.Q)({eventCategory:m.wm,eventActionType:x.i.button,eventActionText:"IconFdsShareO",eventLabel:"".concat(t||"","_").concat(a||"")}),i(e=>!e)},children:(0,n.jsx)(b.IconFdsShareO,{size:16})}),(0,n.jsx)(R,{className:(0,S.Z)(O().soc,{[O().show]:r}),title:"Тариф ".concat(a),url:l||""})]})})};var T=e=>{let{rkoDetailData:t,otherOffers:a}=e;return(0,n.jsxs)("main",{className:O().page,children:[(0,n.jsx)(s.g,{offer:t}),(0,n.jsxs)(l.W2,{children:[(0,n.jsx)(r.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)(o.D,{altLogo:t.altLogo,url:t.bic||t.url||"",backupImage:"",type:"bank",width:36,height:36})})]}),(0,n.jsx)(C,{fkName:null==t?void 0:t.fkName,title: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:["После заполнения онлайн-заявки с вами свяжется оператор и поможет все оформить"," "]})]}),(0,n.jsx)(j,{offer:t})]}),(0,n.jsx)("div",{className:O().offerDetailsWrapper,children:!!t.modalData&&(0,n.jsx)(i.W,{...t.modalData})})]})]}),(0,n.jsx)(N,{offers:a}),(0,n.jsx)(f,{})]})}},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"}},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,[907,976,544,501,207,870,754,603,961,971,117,744],function(){return e(e.s=2740)}),_N_E=e.O()}]);