"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7991],{5771:function(e,t,a){a.d(t,{C:function(){return o}});var s=a(7437),n=a(684),r=a(5461),l=a(4365);let i=(0,a(2074).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=r.rU,event:d,href:p,dataLayerPush:u})=>(0,s.jsx)("div",{className:(0,l.Z)(c.wrapper,t),onClick:()=>{d&&u(d)},children:(0,s.jsxs)(o,{className:(0,l.Z)(c.link,a),href:p,children:[e,(0,s.jsx)("span",{className:(0,l.Z)(c.icon,{[c.iconGray]:i}),children:(0,s.jsx)(n.IconFdsArrowUpRightSmallO,{size:24})})]})})},777:function(e,t,a){let s;a.d(t,{MJ:function(){return F}});var n=a(7437),r=a(5563),l=a(5461),i=a(4365),c=a(2265),o=a(5771),d=a(1626),p=a(684),u=a(2074),h=a(1620),m=a(7337),_=((s=_||{}).light="light",s.gray="gray",s);let v=e=>"kasko"===e||"osago"===e,g=(0,u.g)("best-offers-banner","sc"),x=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`,image:`${g}__image`}),b=({title:e,image:t,url:a,description:s,backgroundColor:l,textColor:c,wide:o,theme:d,handleBannerDataLayerPush:u,className:h})=>{let m=d===_.gray,v={"--bg-base":(null==l?void 0:l.base)??(m?"var(--color-white)":"var(--color-gray-400)"),"--bg-hover":(null==l?void 0:l.hover)??"var(--color-gray-500)"};return(0,n.jsxs)("div",{className:(0,i.Z)(x.wrapper,h,{[x.wideWrapper]:o}),style:v,onClick:()=>{u(),window.open(a,"_blank")},children:[(0,n.jsxs)("div",{className:x.content,children:[(0,n.jsxs)("div",{className:x.header,children:[(0,n.jsx)(r.xv,{weight:"medium",size:"24",className:x.title,style:{color:c},children:e}),(0,n.jsx)("div",{className:(0,i.Z)(x.icon,{[x.iconBlack]:m}),children:(0,n.jsx)(p.IconFdsArrowUpRightSmallO,{size:32})})]}),s&&(0,n.jsx)(r.xv,{size:"16",style:{color:c},children:s})]}),(null==t?void 0:t.url)&&(0,n.jsx)("picture",{className:x.image,children:(0,n.jsx)("img",{src:t.url,width:t.width??150,height:t.height??"auto",alt:`Баннер ${e}`,loading:"lazy"})})]})},j=(0,u.g)("offer-card","sc"),y=Object.freeze({offerCard:j,wrapper:`${j}__wrapper`,whiteWrapper:`${j}__wrapper--white`,bankInfo:`${j}__bankInfo`,units:`${j}__units`,unitsColumn:`${j}__units--column`,unit:`${j}__unit`,unitRow:`${j}__unit--row`,unitTitleWrapper:`${j}__unitTitleWrapper`,unitTitle:`${j}__unitTitle`,tooltipIcon:`${j}__tooltipIcon`,unitValue:`${j}__unitValue`,bottomBlock:`${j}__bottomBlock`,tags:`${j}__tags`,tag:`${j}__tag`,button:`${j}__button`,buttonRounded:`${j}__button--rounded`}),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)(r.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)(y.unit,{[y.unitRow]:c}),children:[(0,n.jsxs)("div",{className:y.unitTitleWrapper,children:[(0,n.jsx)(r.xv,{size:"14",className:y.unitTitle,children:e}),a&&(0,n.jsx)(l.u,{text:a,children:(0,n.jsx)(p.IconFdsQuestionCircleO,{className:y.tooltipIcon})})]}),(0,n.jsx)(r.xv,{weight:"medium",size:o?"18":c?"16":"24",className:y.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:y.tags,children:e.sort((e,t)=>e.order-t.order).map(e=>(0,n.jsx)(l.Vp,{className:y.tag,label:e.label,variant:e.variant?e.variant:a,rounded:!0},e.label))})},$=({companyName:e,name:t,url:a,logo:s,units:r,tags:c,additionalButton:o,unitsAsColumn:d,dataLayerPush:p,eventCategory:u,productType:m,theme:v,buttonClassName:g,eventValueByUnitTitle:x})=>{let b=v===_.gray,j=a=>{let s={event:"data-event",eventCategory:u,eventAction:`click_button_${(0,h.t)(a)}_${m}`,eventLabel:(0,h.t)(`${e}_${t}`)};if(x){let e=r.find(e=>e.title.toLowerCase()===x.toLowerCase());e&&(s.eventValue=(0,h.t)(e.value))}p(s)};return(0,n.jsxs)("div",{className:(0,i.Z)(y.wrapper,{[y.whiteWrapper]:b}),children:[(0,n.jsxs)("div",{className:y.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)(y.units,{[y.unitsColumn]:d}),children:r.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:y.bottomBlock,children:[c&&(0,n.jsx)(N,{tags:c,isGrayTheme:b}),o&&(0,n.jsx)(l.zx,{as:"a",className:(0,i.Z)(y.button,y.buttonRounded),size:"xs",label:o.text,href:o.url,variant:"white",onClick:()=>j(o.text)}),(0,n.jsx)(l.zx,{as:"a",className:(0,i.Z)(y.button,g),size:"xs",label:"Подробнее",href:a,onClick:()=>j("podrobnee_o_kartochke_iz")})]})]})},w=(0,u.g)("offers-list","sc"),C=Object.freeze({offersList:w,wrapper:`${w}__wrapper`,sliderWrapper:`${w}__sliderWrapper`,offerItem:`${w}__offerItem`,compact:`${w}__offerItem--compact`,bannerItem:`${w}__bannerItem`}),A=({offers:e,banner:t,dataLayerPush:a,eventCategory:s,productType:r,theme:c,singleProduct:o})=>{let d=e.length<=2;return(0,n.jsxs)(l.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)(l.wI,{className:(0,i.Z)(C.offerItem,{[C.compact]:o}),children:(0,n.jsx)($,{...e,dataLayerPush:a,eventCategory:s,productType:r,theme:c})},e.id)),t&&(0,n.jsx)(l.wI,{className:C.bannerItem,children:(0,n.jsx)(b,{...t,handleBannerDataLayerPush:()=>{a({event:"data-event",eventCategory:s,eventAction:"click_bnr_banner_top_predlozheniy",eventLabel:r})},wide:d,theme:c})})]},r)},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"}}},S=[{label:"Мотоцикл",value:"moto"},{label:"Автомобиль",value:"auto"}],W=Object.fromEntries(S.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"),x=(0,m.xn)(t,"kasko"),j=(0,m.xn)(x,"vehicle"),y=u?g:j,[f,k]=(0,c.useState)(""),[N,$]=(0,c.useState)("auto"),{mask:w,placeholder:C}=I[N],A=p===_.gray,T=`?${new URLSearchParams({type:u?N:"auto",license:f})}`,P=(0,m.xn)(y,T),Z=s??{...z[e],url:u?v:x,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=W[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)(r.X6,{as:"h3",type:"h3",children:["Онлайн калькулятор ",u?"ОСАГО":"Каско"]}),(0,n.jsxs)("div",{className:L.inputWrapper,children:[u&&(0,n.jsx)(l.Ph,{options:S,value:W[N],label:"Тип транспорта",variant:A?"primary":"secondary",className:L.select,onChange:e=>{k(""),$(e.value),D(`selector_item_${(0,h.t)(e.label)}`)}}),(0,n.jsx)(l.An,{label:"Госномер",variant:A?"primary":"secondary",maskOpts:{mask:w,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)(r.xv,{children:["У меня"," ",(0,n.jsx)(l.rU,{href:y,onClick:()=>{D("click_link_net_nomera",y)},children:"нет номера"})]})]}),(0,n.jsx)(l.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)(b,{...Z,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})=>{let m=h===_.gray,g=e.map(e=>({url:e.productType,title:e.name})),[x,b]=(0,c.useState)(g[0].url),j=e.find(e=>e.productType===x)??e[0],y=(0,l._m)("xl"),f=R[j.name.toLowerCase()],k=f?`по ${f}`:j.name,N=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,{[D.singleProduct]:u,[D.graySection]:m}),children:(0,n.jsxs)(r.W2,{children:[(0,n.jsxs)(r.X6,{as:"h2",type:u?"h2":"display",className:(0,i.Z)(D.title,!u&&(y?"mb-8":"mb-6"),u&&(0,i.Z)("mb-0",D.singleProductTitle)),children:["Лучшие предложения ",u?k:"сегодня"]}),!u&&(0,n.jsx)(d.N,{items:g,maxNumberOfLines:2,activeChipId:x,variant:m?"white":"gray",className:D.chips,onClick:t=>{b(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:[N??(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)(r.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:!m,className:D.allOffersLink,linkClassName:j.checkAllLinkClassName,children:"Показать все предложения"})]})})}},422:function(e,t,a){a.d(t,{t:function(){return j}});var s=a(7437),n=a(5563),r=a(5461),l=a(4365),i=a(2265),c=a(992),o=a(1620),d=a(5771),p=a(2074);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),[x,b]=(0,i.useState)(""),[j,y]=(0,i.useState)(""),[f,k]=(0,i.useState)(!1),[N,$]=(0,i.useState)(!1),[w,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&&!x;return(0,s.jsxs)("div",{className:(0,l.Z)(_.block),children:[(0,s.jsx)("div",{className:_.title,children:A}),L&&(0,s.jsxs)("div",{className:_.form,children:[(0,s.jsx)(r.MA,{className:_.input,label:T,variant:"secondary",size:"s",value:j,onChange:e=>{f&&k(!(h(e)||!e)),y(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)(r.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(j)),C(!N),h(j)&&N&&(m(!0),fetch("https://forms.dashamail.ru/subscribe.php?list_id=56713Embedded",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({merge_:j})}).then(e=>{!e||200===e.status||e.ok?(window.localStorage.setItem("subscribed","1"),g(!0)):b(409===e.status?'Кажется, вы уже подписаны на нашу рассылку. Если письма не приходят, рекомендуем обратиться в поддержу по телефону <span class="nowrap">8\xa0800\xa0505-32-32</span>.':401===e.status?"Неверный формат e-mail адреса":"Возникла ошибка, повторите попытку позднее")}).catch(()=>b("Возникла ошибка, повторите попытку позднее")))},disabled:f,pending:u}),(0,s.jsx)(r.XZ,{className:_.checkbox,checked:N,onChange:e=>{(0,c.d)({eventCategory:p,eventAction:"click_check_box_soglashenie_blok_check_box_soglashenie"}),w&&C(!1),$(e)},state:w?"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:"Подтвердите подписку по ссылке, отправленной на указанную электронную почту."}),x&&(0,s.jsx)("div",{className:_.error,dangerouslySetInnerHTML:{__html:x}})]})},g=(0,p.g)("journal","sc"),x=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")}),b="https://assets.finuslugi.ru/mp-assets/pl-common-blocks-renderer/journal/default_post_image.png",j=e=>{var t,a,p;let{data:h,eventCategory:m="finkit-widgets-sc-journal"}=e,_=(0,r._m)("xl"),[g,j]=(0,i.useState)(!0),[y,f]=(0,i.useState)(0);(0,i.useEffect)(()=>{j(!_)},[_]);let k=(null==(t=null==h?void 0:h.chips)?void 0:t.map((e,t)=>({id:t,label:e.name||""})))||[],N=(null==(p=null==(a=null==h?void 0:h.chips)?void 0:a[Number(y)])?void 0:p.items)||[],$=(e,t)=>()=>{(0,c.h)({eventCategory:m,eventActionType:c.D.block,eventActionText:e||"",eventLabel:t})},w=e=>{e.target.src!==b&&(e.target.src=b)};return(0,s.jsxs)("div",{className:x.wrapper,children:[(0,s.jsxs)(n.W2,{children:[(0,s.jsx)("h2",{className:x.title,children:null==h?void 0:h.title}),(0,s.jsx)("div",{className:x.subtitle,children:null==h?void 0:h.description})]}),(0,s.jsx)("div",{className:x.scrollableWrapper,children:(0,s.jsx)(n.W2,{children:(0,s.jsx)("div",{className:x.chipsWrapper,children:(0,s.jsx)(r.cL,{chips:k,value:y,variant:"secondary",size:g?"m":"l",onChipClick:e=>{let t=k[Number(e)].label;(0,c.h)({eventCategory:m,eventActionType:c.D.tab,eventActionText:t}),f(e)}})})})}),(0,s.jsxs)(n.W2,{children:[(0,s.jsx)("div",{className:x.sliderWrapper,children:(0,s.jsx)(r.wI,{className:(0,l.Z)(x.sliderItem,x.fixed),children:(0,s.jsx)("div",{className:x.article,children:(0,s.jsx)(v,{data:null==h?void 0:h.items,eventCategory:m})})})}),(0,s.jsxs)(r.iR,{className:x.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:[N.map(e=>(0,s.jsx)(r.wI,{className:x.sliderItem,children:(0,s.jsxs)("a",{className:x.article,href:e.url,onClick:$(e.title,e.url),children:[(0,s.jsx)("div",{className:x.imgWrapper,children:(0,s.jsx)("img",{src:e.img,alt:"изображение: ".concat(e.title),onError:w})}),(0,s.jsxs)("div",{className:x.articleBody,children:[(0,s.jsx)("div",{className:x.articleTitle,children:e.title}),(0,s.jsx)("div",{className:x.articleDate,children:u(e.dt)})]})]})},e.title)),g&&(0,s.jsx)(r.wI,{className:x.sliderItem,children:(0,s.jsx)("div",{className:x.article,children:(0,s.jsx)(v,{data:null==h?void 0:h.items,eventCategory:m})})})]}),(0,s.jsx)(d.C,{href:(null==h?void 0:h.url)||"",event:{event:"data-event",eventCategory:m,eventAction:"link_".concat((0,o.t)((null==h?void 0:h.urlText)||"Показать все статьи")),eventLabel:(null==h?void 0:h.url)||""},dataLayerPush:c.d,className:x.checkAllLink,children:(null==h?void 0:h.urlText)||"Показать все статьи"})]})]})}},7730:function(e,t,a){a.d(t,{B:function(){return j}});var s=a(7437),n=a(5563),r=a(4365),l=a(684),i=a(5461),c=a(992),o=a(2074),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 r=(0,i.aF)("s");return(0,s.jsxs)("div",{className:_.supportAppCard,onClick:()=>{r&&((0,c.h)({eventCategory:h,eventActionType:c.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,s.jsx)(l.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"),x=Object.freeze({supportPhoneCard:g,contacts:`${g}__contacts`,phone:`${g}__phone`,chat:`${g}__chat`,info:`${g}__info`,image:`${g}__image`}),b=({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"})},[]),r=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:x.supportPhoneCard,children:[(0,s.jsxs)("div",{className:x.contacts,children:[e.map(e=>(0,s.jsx)("a",{className:x.phone,href:e.href,onClick:()=>r(e.label),children:e.label},e.label)),(0,s.jsx)("span",{className:x.chat,onClick:n,children:"Онлайн чат"})]}),(0,s.jsx)("div",{className:x.info,children:t}),(0,s.jsx)("img",{className:x.image,src:`${a}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},j=({className:e,phoneCard:t,appCard:a,s3Assets:l})=>(0,s.jsx)("section",{className:(0,r.Z)(u.support,e),children:(0,s.jsxs)(n.W2,{children:[(0,s.jsx)(n.X6,{as:"h2",type:"display",weight:"bold",className:(0,r.Z)(u.title,"mb-6"),children:"Поддержка"}),(0,s.jsxs)("div",{className:u.cardsContainer,children:[(0,s.jsx)(b,{s3Assets:l,...t}),(0,s.jsx)(v,{s3Assets:l,...a})]})]})});j.displayName="Support"}}]);