"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7991],{10855:function(e,t,a){a.d(t,{C:function(){return o}});var s=a(57437),n=a(80684),l=a(75461),r=a(54365);let i=(0,a(52074).g)("check-all","sc"),c=Object.freeze({wrapper:`${i}__wrapper`,link:`${i}__link`,icon:`${i}__icon`,iconGray:`${i}__icon--gray`}),o=({children:e,className:t,linkClassName:a,iconGrayBackground:i,Link:o,event:d,href:p,dataLayerPush:u})=>{let h=o??l.rU;return(0,s.jsx)("div",{className:(0,r.Z)(c.wrapper,t),onClick:()=>{d&&u(d)},children:(0,s.jsxs)(h,{className:(0,r.Z)(c.link,a),href:p,children:[e,(0,s.jsx)("span",{className:(0,r.Z)(c.icon,{[c.iconGray]:i}),children:(0,s.jsx)(n.IconFdsArrowUpRightSmallO,{size:24})})]})})}},20777:function(e,t,a){let s;a.d(t,{MJ:function(){return F}});var n=a(57437),l=a(35563),r=a(75461),i=a(54365),c=a(2265),o=a(10855),d=a(59535),p=a(80684),u=a(52074),h=a(31620),m=a(77337),_=((s=_||{}).light="light",s.gray="gray",s);let v=e=>"kasko"===e||"osago"===e,g=(0,u.g)("best-offers-banner","sc"),b=Object.freeze({bestOffersBaner:g,wrapper:`${g}__wrapper`,wideWrapper:`${g}__wrapper--wide`,whiteWrapper:`${g}__wrapper--white`,content:`${g}__content`,header:`${g}__header`,title:`${g}__title`,subtitle:`${g}__subtitle`,icon:`${g}__icon`,iconBlack:`${g}__icon--black`,iconWhite:`${g}__icon--white`,image:`${g}__image`}),x=({title:e,image:t,url:a,description:s,backgroundColor:r,textColor:c,wide:o,theme:d,handleBannerDataLayerPush:u,className:h})=>{let m=d===_.gray,v={"--bg-base":(null==r?void 0:r.base)??(m?"var(--color-white)":"var(--color-gray-400)"),"--bg-hover":(null==r?void 0:r.hover)??"var(--color-gray-500)"};return(0,n.jsxs)("div",{className:(0,i.Z)(b.wrapper,h,{[b.wideWrapper]:o}),style:v,onClick:()=>{u(),window.open(a,"_blank")},children:[(0,n.jsxs)("div",{className:b.content,children:[(0,n.jsxs)("div",{className:b.header,children:[(0,n.jsx)(l.xv,{weight:"medium",size:"24",className:b.title,style:{color:c},children:e}),(0,n.jsx)("div",{className:(0,i.Z)(b.icon,{[b.iconBlack]:m&&!(null!=c&&c.includes("color-white")),[b.iconWhite]:m&&!!(null!=c&&c.includes("color-white"))}),children:(0,n.jsx)(p.IconFdsArrowUpRightSmallO,{size:32})})]}),s&&(0,n.jsx)(l.xv,{size:"16",style:{color:c},children:s})]}),(null==t?void 0:t.url)&&(0,n.jsx)("picture",{className:b.image,children:(0,n.jsx)("img",{src:t.url,width:t.width??150,height:t.height??"auto",alt:`Баннер ${e}`,loading:"lazy"})})]})},y=(0,u.g)("offer-card","sc"),j=Object.freeze({offerCard:y,wrapper:`${y}__wrapper`,whiteWrapper:`${y}__wrapper--white`,bankInfo:`${y}__bankInfo`,units:`${y}__units`,unitsColumn:`${y}__units--column`,unit:`${y}__unit`,unitRow:`${y}__unit--row`,unitTitleWrapper:`${y}__unitTitleWrapper`,unitTitle:`${y}__unitTitle`,tooltipIcon:`${y}__tooltipIcon`,unitValue:`${y}__unitValue`,bottomBlock:`${y}__bottomBlock`,tags:`${y}__tags`,tag:`${y}__tag`,button:`${y}__button`,buttonRounded:`${y}__button--rounded`,buttonAdditional:`${y}__button--additional`}),f=e=>{let t=e.split("₽");return t.map((e,a)=>(0,n.jsxs)(c.Fragment,{children:[e,a<t.length-1&&(0,n.jsx)(l.xv,{fontFamily:"primary",weight:"regular",children:"₽"})]},`${e}-${a}`))},k=({title:e,value:t,tooltip:a,textColor:s,unitsAsColumn:c,isTitleUnit:o})=>(0,n.jsxs)("div",{className:(0,i.Z)(j.unit,{[j.unitRow]:c}),children:[(0,n.jsxs)("div",{className:j.unitTitleWrapper,children:[(0,n.jsx)(l.xv,{size:"14",className:j.unitTitle,children:e}),a&&(0,n.jsx)(r.u,{text:a,children:(0,n.jsx)(p.IconFdsQuestionCircleO,{className:j.tooltipIcon})})]}),(0,n.jsx)(l.xv,{weight:"medium",size:o?"18":c?"16":"24",className:j.unitValue,style:{color:s},children:e.includes("Рейтинг")?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.IconFdsStarF,{size:16,style:{color:"var(--color-orange-400)"}}),t]}):f(t)})]}),N=({tags:e,isGrayTheme:t})=>{let a=t?"secondary":"primary";return(0,n.jsx)("div",{className:j.tags,children:e.sort((e,t)=>e.order-t.order).map(e=>(0,n.jsx)(r.Vp,{className:j.tag,label:e.label,variant:e.variant?e.variant:a,rounded:!0},e.label))})},w=({companyName:e,name:t,url:a,logo:s,units:l,tags:c,additionalButton:o,unitsAsColumn:d,dataLayerPush:p,eventCategory:u,productType:m,theme:v,buttonClassName:g,eventValueByUnitTitle:b})=>{let x=v===_.gray,y=a=>{let s={event:"data-event",eventCategory:u,eventAction:`click_button_${(0,h.t)(a)}_${m}`,eventLabel:(0,h.t)(`${e}_${t}`)};if(b){let e=l.find(e=>e.title.toLowerCase()===b.toLowerCase());e&&(s.eventValue=(0,h.t)(e.value))}p(s)};return(0,n.jsxs)("div",{className:(0,i.Z)(j.wrapper,{[j.whiteWrapper]:x}),children:[(0,n.jsxs)("div",{className:j.bankInfo,children:[s&&(0,n.jsx)("img",{src:s,width:56,height:56,alt:`${e} logo`}),(0,n.jsx)(k,{title:t,value:e,isTitleUnit:!0})]}),(0,n.jsx)("div",{className:(0,i.Z)(j.units,{[j.unitsColumn]:d}),children:l.map(e=>(0,n.jsx)(k,{title:e.title,value:e.value,tooltip:e.tooltip,textColor:e.textColor,unitsAsColumn:d},`${e.title}-${e.value}`))}),(0,n.jsxs)("div",{className:j.bottomBlock,children:[c&&(0,n.jsx)(N,{tags:c,isGrayTheme:x}),o&&o.text.trim().length>0&&(0,n.jsx)(r.zx,{as:"a",className:(0,i.Z)(j.button,j.buttonRounded,j.buttonAdditional),size:"xs",label:o.text,href:null==o?void 0:o.url,variant:x?"secondary":"white",onClick:()=>y(o.text)}),(0,n.jsx)(r.zx,{as:"a",className:(0,i.Z)(j.button,g),size:"xs",label:"Подробнее",href:a,onClick:()=>y("podrobnee_o_kartochke_iz")})]})]})},$=(0,u.g)("offers-list","sc"),C=Object.freeze({offersList:$,wrapper:`${$}__wrapper`,sliderWrapper:`${$}__sliderWrapper`,offerItem:`${$}__offerItem`,compact:`${$}__offerItem--compact`,bannerItem:`${$}__bannerItem`}),A=({offers:e,banner:t,dataLayerPush:a,eventCategory:s,productType:l,theme:c,singleProduct:o})=>{let d=e.length<=2;return(0,n.jsxs)(r.iR,{options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3e3,disableOnInteraction:!1}},breakpoints:{xl:{autoplay:!1}},className:C.sliderWrapper,pagination:!0,children:[e.slice(0,3).map(e=>(0,n.jsx)(r.wI,{className:(0,i.Z)(C.offerItem,{[C.compact]:o}),children:(0,n.jsx)(w,{...e,dataLayerPush:a,eventCategory:s,productType:l,theme:c})},e.id)),t&&(0,n.jsx)(r.wI,{className:C.bannerItem,children:(0,n.jsx)(x,{...t,handleBannerDataLayerPush:()=>{a({event:"data-event",eventCategory:s,eventAction:"click_bnr_banner_top_predlozheniy",eventLabel:l})},wide:d,theme:c})})]},l)},T=(0,u.g)("osago-tab","sc"),L=Object.freeze({osagoTab:T,wrapper:`${T}__wrapper`,card:`${T}__card`,whiteCard:`${T}__card--white`,image:`${T}__image`,content:`${T}__content`,inputWrapper:`${T}__inputWrapper`,select:`${T}__select`,input:`${T}__input`,buttonLinkWrapper:`${T}__buttonLinkWrapper`,button:`${T}__button`,banner:`${T}__banner`}),z={kasko:{title:"Рассчет Каско за минуту",description:"Выберите лучшие условия для оформления полиса",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}},osago:{title:"ОСАГО с экономией до 78%",description:"Предварительная цена после ввода номера ТС",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}}},W=[{label:"Мотоцикл",value:"moto"},{label:"Автомобиль",value:"auto"}],S=Object.fromEntries(W.map(e=>[e.value,e])),I={auto:{mask:"a 000 aa 00",placeholder:"A 000 AA 00"},moto:{mask:"0000 aa 00",placeholder:"0000 AA 00"}},P="АВЕКМНОРСТУХ",O=RegExp(`[${P}]`,"i"),B=RegExp(`[^0-9${P}]`,"gi"),Z=({type:e,baseUrl:t,s3Assets:a,banner:s,dataLayerPush:o,eventCategory:d,theme:p})=>{let u="osago"===e,v=(0,m.xn)(t,"osago"),g=(0,m.xn)(v,"step-car"),b=(0,m.xn)(t,"kasko"),y=(0,m.xn)(b,"vehicle"),j=u?g:y,[f,k]=(0,c.useState)(""),[N,w]=(0,c.useState)("auto"),{mask:$,placeholder:C}=I[N],A=p===_.gray,T=`?${new URLSearchParams({type:u?N:"auto",license:f})}`,P=(0,m.xn)(j,T),Z=s??{...z[e],url:u?v:b,image:a?{url:(0,m.xn)(a,`pl-common-blocks-renderer/topOffers/${u?"icon_osago":"icons_car"}.png`),width:204,height:160}:void 0},U=S[N].label,D=(t,a)=>{o({event:"data-event",eventCategory:d,eventAction:t,eventLabel:a??e})};return(0,n.jsxs)("div",{className:L.wrapper,children:[(0,n.jsxs)("div",{className:(0,i.Z)(L.card,{[L.whiteCard]:A}),children:[a&&(0,n.jsx)("picture",{children:(0,n.jsx)("img",{src:`${a}/pl-common-blocks-renderer/topOffers/auto_bg.png`,alt:"Автомобиль",loading:"lazy",className:L.image})}),(0,n.jsxs)("div",{className:L.content,children:[(0,n.jsxs)(l.X6,{as:"h3",type:"h3",children:["Онлайн калькулятор ",u?"ОСАГО":"Каско"]}),(0,n.jsxs)("div",{className:L.inputWrapper,children:[u&&(0,n.jsx)(r.Ph,{options:W,value:S[N],label:"Тип транспорта",variant:A?"primary":"secondary",className:L.select,onChange:e=>{k(""),w(e.value),D(`selector_item_${(0,h.t)(e.label)}`)}}),(0,n.jsx)(r.An,{label:"Госномер",variant:A?"primary":"secondary",maskOpts:{mask:$,definitions:{a:O}},maskPlaceholder:C,value:f,className:L.input,onChange:(e,t)=>{k(t.replace(B,"").toUpperCase())},onClick:()=>D(`message_field_${(0,h.t)(U)}`),onBlur:()=>D(`on_message_field_${(0,h.t)(U)}`)}),(0,n.jsxs)(l.xv,{children:["У меня"," ",(0,n.jsx)(r.rU,{href:j,onClick:()=>{D("click_link_net_nomera",j)},children:"нет номера"})]})]}),(0,n.jsx)(r.zx,{as:"a",href:P,size:"s",className:L.button,onClick:()=>{D(`click_button_rasschitat_${(0,h.t)(U)}`,P)},children:"Рассчитать"})]})]}),(0,n.jsx)("div",{className:L.banner,children:(0,n.jsx)(x,{...Z,theme:p,handleBannerDataLayerPush:()=>{D("click_bnr_banner_top_predlozheniy")}})})]})},U=(0,u.g)("best-offers","sc"),D=Object.freeze({bestOffers:U,graySection:`${U}--gray`,singleProduct:`${U}--singleProduct`,title:`${U}__title`,singleProductTitle:`${U}__title--singleProduct`,chips:`${U}__chips`,warning:`${U}__warning`,allOffersLink:`${U}__allOffersLink`}),R={вклады:"вкладам",облигации:"облигациям",кредиты:"кредитам",займы:"займам","Кредитные карты":"кредитным картам",каско:"каско",осаго:"ОСАГО","дебетовые карты":"дебетовым картам",ипотека:"ипотеке",автокредиты:"автокредитам"},F=({tabs:e,baseUrl:t,s3Assets:a,eventCategory:s="best-offers",dataLayerPush:p,singleProduct:u=!1,theme:h=_.light,className:m})=>{let g=h===_.gray,b=e.map(e=>({url:e.productType,title:e.name})),[x,y]=(0,c.useState)(b[0].url),j=e.find(e=>e.productType===x)??e[0],f=(0,r._m)("xl"),k=R[j.name.toLowerCase()],N=k?`по ${k}`:j.name,w=v(null==j?void 0:j.productType)&&t?(0,n.jsx)(Z,{type:j.productType,banner:j.banner,baseUrl:t,s3Assets:a,dataLayerPush:p,eventCategory:s,theme:h}):null;return(0,n.jsx)("section",{className:(0,i.Z)(D.bestOffers,m,{[D.singleProduct]:u,[D.graySection]:g}),children:(0,n.jsxs)(l.W2,{children:[(0,n.jsxs)(l.X6,{as:"h2",type:u?"h2":"display",className:(0,i.Z)(D.title,!u&&(f?"mb-8":"mb-6"),u&&(0,i.Z)("mb-0",D.singleProductTitle)),children:["Лучшие предложения ",u?N:"сегодня"]}),!u&&(0,n.jsx)(d.N,{items:b,maxNumberOfLines:2,activeChipId:x,variant:g?"white":"gray",className:D.chips,onClick:t=>{y(t);let a=e.find(e=>e.productType===t);p({event:"data-event",eventCategory:s,eventAction:"click_chip_top_predlozheniy_vybor",eventLabel:null==a?void 0:a.productType})}}),(0,n.jsxs)("div",{children:[w??(0,n.jsx)(A,{offers:j.offers,banner:j.banner,dataLayerPush:p,eventCategory:s,productType:j.productType,theme:h,singleProduct:u}),j.hasWarning&&(0,n.jsx)(l.xv,{as:"p",size:"16",className:D.warning,children:j.warningCustomText??"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})]}),j.checkAllUrl&&(0,n.jsx)(o.C,{href:j.checkAllUrl,event:{event:"data-event",eventCategory:s,eventAction:"link",eventLabel:`Показать все предложения ${j.productType}`},dataLayerPush:p,iconGrayBackground:!g,className:D.allOffersLink,linkClassName:j.checkAllLinkClassName,children:"Показать все предложения"})]})})}},90422:function(e,t,a){a.d(t,{t:function(){return y}});var s=a(57437),n=a(35563),l=a(75461),r=a(54365),i=a(2265),c=a(10992),o=a(31620),d=a(10855),p=a(52074);let u=e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let a=t.getDate(),s=t.getMonth();return"".concat(a," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][s])},h=e=>!!e&&/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),m=(0,p.g)("subscribe-block","sc"),_=Object.freeze({block:"".concat(m,"__block"),title:"".concat(m,"__title"),form:"".concat(m,"__form"),input:"".concat(m,"__input"),button:"".concat(m,"__button"),checkbox:"".concat(m,"__checkbox"),checkboxLabel:"".concat(m,"__checkbox-label"),success:"".concat(m,"__success"),error:"".concat(m,"__error")}),v=e=>{var t,a,n,o;let{data:d,eventCategory:p}=e,[u,m]=(0,i.useState)(!1),[v,g]=(0,i.useState)(!1),[b,x]=(0,i.useState)(""),[y,j]=(0,i.useState)(""),[f,k]=(0,i.useState)(!1),[N,w]=(0,i.useState)(!1),[$,C]=(0,i.useState)(!1),A=(null==d?void 0:d.title)||"Подписка на рассылку",T=(null==(t=null==d?void 0:d.params)?void 0:t.inputPlaceholder)||"Электронная почта",L=!v&&!b;return(0,s.jsxs)("div",{className:(0,r.Z)(_.block),children:[(0,s.jsx)("div",{className:_.title,children:A}),L&&(0,s.jsxs)("div",{className:_.form,children:[(0,s.jsx)(l.MA,{className:_.input,label:T,variant:"secondary",size:"s",value:y,onChange:e=>{f&&k(!(h(e)||!e)),j(e)},onClick:()=>{(0,c.h)({eventCategory:p,eventActionType:c.D.block,eventActionText:T})},state:f?"error":void 0,caption:f?"Неверный e-mail":void 0}),(0,s.jsx)(l.zx,{className:_.button,label:(null==(a=null==d?void 0:d.buttons)?void 0:a.tile)||"Подписаться",style:{background:null==(n=null==d?void 0:d.buttons)?void 0:n.background},size:"xs",onClick:()=>{var e;(0,c.h)({eventCategory:p,eventActionType:c.D.button,eventActionText:(null==(e=null==d?void 0:d.buttons)?void 0:e.tile)||"Подписаться"}),k(!h(y)),C(!N),h(y)&&N&&(m(!0),fetch("https://forms.dashamail.ru/subscribe.php?list_id=56713Embedded",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({merge_:y})}).then(e=>{!e||200===e.status||e.ok?(window.localStorage.setItem("subscribed","1"),g(!0)):x(409===e.status?'Кажется, вы уже подписаны на нашу рассылку. Если письма не приходят, рекомендуем обратиться в поддержу по телефону <span class="nowrap">8\xa0800\xa0505-32-32</span>.':401===e.status?"Неверный формат e-mail адреса":"Возникла ошибка, повторите попытку позднее")}).catch(()=>x("Возникла ошибка, повторите попытку позднее")))},disabled:f,pending:u}),(0,s.jsx)(l.XZ,{className:_.checkbox,checked:N,onChange:e=>{(0,c.d)({eventCategory:p,eventAction:"click_check_box_soglashenie_blok_check_box_soglashenie"}),$&&C(!1),w(e)},state:$?"error":"default",children:(0,s.jsx)("span",{className:_.checkboxLabel,dangerouslySetInnerHTML:{__html:(null==(o=null==d?void 0:d.params)?void 0:o.agreement)||'Я принимаю <a href="https://assets.finuslugi.ru/mp-assets/privacy-policy.pdf">условия политики</a> обработки моих данных и даю <a href="https://assets.finuslugi.ru/mp-assets/privacy-policy.pdf">согласие</a> ПАО Московская биржа на их обработку'},onClick:e=>{let t=e.target;if(!(null!=t&&t.href))return;let a=t.textContent||"";a.includes("условия")&&(a="politiki_obrabotki_personalnyh_dannyh_pao_moskovskaya_birzha"),a.includes("согласие")&&(a="dayu_soglasie_na_obrabotku_pao_moskovskaya_birzha_moih_personalnyh_dannyh"),(0,c.h)({eventCategory:p,eventActionType:c.D.link,eventActionText:a,eventLabel:t.href})}})})]}),v&&(0,s.jsx)("div",{className:_.success,children:"Подтвердите подписку по ссылке, отправленной на указанную электронную почту."}),b&&(0,s.jsx)("div",{className:_.error,dangerouslySetInnerHTML:{__html:b}})]})},g=(0,p.g)("journal","sc"),b=Object.freeze({wrapper:"".concat(g,"__wrapper"),title:"".concat(g,"__title"),subtitle:"".concat(g,"__subtitle"),scrollableWrapper:"".concat(g,"__scrollable-wrapper"),chipsWrapper:"".concat(g,"__chips-wrapper"),sliderWrapper:"".concat(g,"__slider-wrapper"),slider:"".concat(g,"__slider"),sliderItem:"".concat(g,"__slider-item"),fixed:"".concat(g,"__slider-item--fixed"),article:"".concat(g,"__article"),imgWrapper:"".concat(g,"__img-wrapper"),articleBody:"".concat(g,"__article-body"),articleTitle:"".concat(g,"__article-title"),articleDate:"".concat(g,"__article-date"),checkAllLink:"".concat(g,"__check-all-link")}),x="https://assets.finuslugi.ru/mp-assets/pl-common-blocks-renderer/journal/default_post_image.png",y=e=>{var t;let{data:a,eventCategory:p="finkit-widgets-sc-journal",className:h}=e,m=(0,l._m)("xl"),[_,g]=(0,i.useState)(!0),[y,j]=(0,i.useState)(0),f=a.chips||[],k=(null==(t=null==f?void 0:f[Number(y)])?void 0:t.items)||[];if((0,i.useEffect)(()=>{g(!m)},[m]),0===f.length||0===k.length)return null;let N=(e,t)=>()=>{(0,c.h)({eventCategory:p,eventActionType:c.D.block,eventActionText:e||"",eventLabel:t})},w=e=>{e.target.src!==x&&(e.target.src=x)};return(0,s.jsxs)("div",{className:(0,r.Z)(b.wrapper,h),children:[(0,s.jsxs)(n.W2,{children:[(0,s.jsx)("h2",{className:b.title,children:null==a?void 0:a.title}),(0,s.jsx)("div",{className:b.subtitle,children:null==a?void 0:a.description})]}),(0,s.jsx)("div",{className:b.scrollableWrapper,children:(0,s.jsx)(n.W2,{children:(0,s.jsx)("div",{className:b.chipsWrapper,children:f.length>1&&(0,s.jsx)(l.cL,{chips:f,value:y,variant:"secondary",size:_?"m":"l",onChipClick:e=>{var t;let a=(null==(t=f[Number(e)])?void 0:t.label)||"";(0,c.h)({eventCategory:p,eventActionType:c.D.tab,eventActionText:a}),j(e)}})})})}),(0,s.jsxs)(n.W2,{children:[a.subscribeBlock&&(0,s.jsx)("div",{className:b.sliderWrapper,children:(0,s.jsx)(l.wI,{className:(0,r.Z)(b.sliderItem,b.fixed),children:(0,s.jsx)("div",{className:b.article,children:(0,s.jsx)(v,{data:a.subscribeBlock,eventCategory:p})})})}),(0,s.jsxs)(l.iR,{className:b.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:[k.map(e=>(0,s.jsx)(l.wI,{className:b.sliderItem,children:(0,s.jsxs)("a",{className:b.article,href:e.url,onClick:N(e.title,e.url),children:[(0,s.jsx)("div",{className:b.imgWrapper,children:(0,s.jsx)("img",{src:e.img,alt:"изображение: ".concat(e.title),onError:w})}),(0,s.jsxs)("div",{className:b.articleBody,children:[(0,s.jsx)("div",{className:b.articleTitle,children:e.title}),(0,s.jsx)("div",{className:b.articleDate,children:u(e.dt)})]})]})},e.title)),a.subscribeBlock&&_&&(0,s.jsx)(l.wI,{className:b.sliderItem,children:(0,s.jsx)("div",{className:b.article,children:(0,s.jsx)(v,{data:a.subscribeBlock,eventCategory:p})})})]},y),(0,s.jsx)(d.C,{href:(null==a?void 0:a.url)||"",event:{event:"data-event",eventCategory:p,eventAction:"link_".concat((0,o.t)((null==a?void 0:a.urlText)||"Показать все статьи")),eventLabel:(null==a?void 0:a.url)||""},dataLayerPush:c.d,className:b.checkAllLink,children:(null==a?void 0:a.urlText)||"Показать все статьи"})]})]})}},17730:function(e,t,a){a.d(t,{B:function(){return y}});var s=a(57437),n=a(35563),l=a(54365),r=a(80684),i=a(75461),c=a(10992),o=a(52074),d=a(2265);let p=(0,o.g)("support","sc"),u=Object.freeze({support:p,title:`${p}__title`,cardsContainer:`${p}__cards-container`}),h="cb-support",m=(0,o.g)("support-app-card","sc"),_=Object.freeze({supportAppCard:m,textWrapper:`${m}__text-wrapper`,imageContainer:`${m}__image-container`,title:`${m}__title`,description:`${m}__description`,icon:`${m}__icon`,imageWrapper:`${m}__image-wrapper`,image:`${m}__image`}),v=({title:e,linkUrl:t,s3Assets:a,description:n})=>{let l=(0,i.aF)("s");return(0,s.jsxs)("div",{className:_.supportAppCard,onClick:()=>{l&&((0,c.h)({eventCategory:h,eventActionType:c.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,s.jsx)(r.IconFdsArrowUpRightSmallO,{className:_.icon,size:32}),(0,s.jsxs)("div",{className:_.textWrapper,children:[(0,s.jsx)("div",{className:_.title,children:e}),!!n&&(0,s.jsx)("div",{className:_.description,children:n})]}),(0,s.jsx)("div",{className:_.imageContainer,children:(0,s.jsxs)("picture",{className:_.imageWrapper,children:[(0,s.jsx)("source",{media:"(max-width: 767px)",srcSet:`${a}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${a}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,s.jsx)("img",{className:_.image,loading:"lazy",src:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},g=(0,o.g)("support-phone-card","sc"),b=Object.freeze({supportPhoneCard:g,contacts:`${g}__contacts`,phone:`${g}__phone`,chat:`${g}__chat`,info:`${g}__info`,image:`${g}__image`}),x=({phones:e,description:t,s3Assets:a})=>{let n=(0,d.useCallback)(()=>{var e,t,a;null==(a=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||a.call(t),(0,c.h)({eventCategory:h,eventActionType:c.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),l=e=>{let t=e.replace(/[\s-]/g,"");(0,c.h)({eventCategory:h,eventActionType:c.D.link,eventActionText:"phone",eventLabel:t})};return(0,s.jsxs)("div",{className:b.supportPhoneCard,children:[(0,s.jsxs)("div",{className:b.contacts,children:[e.map(e=>(0,s.jsx)("a",{className:b.phone,href:e.href,onClick:()=>l(e.label),children:e.label},e.label)),(0,s.jsx)("span",{className:b.chat,onClick:n,children:"Онлайн чат"})]}),(0,s.jsx)("div",{className:b.info,children:t}),(0,s.jsx)("img",{className:b.image,src:`${a}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},y=({className:e,phoneCard:t,appCard:a,s3Assets:r})=>(0,s.jsx)("section",{className:(0,l.Z)(u.support,e),children:(0,s.jsxs)(n.W2,{children:[(0,s.jsx)(n.X6,{as:"h2",type:"display",weight:"bold",className:(0,l.Z)(u.title,"mb-6"),children:"Поддержка"}),(0,s.jsxs)("div",{className:u.cardsContainer,children:[(0,s.jsx)(x,{s3Assets:r,...t}),(0,s.jsx)(v,{s3Assets:r,...a})]})]})});y.displayName="Support"}}]);