!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"721d496d7d9e9a892aa890e361982b6cdcd51ec1"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="58b04ad0-8af2-41a4-9307-b4feab6a11a1",e._sentryDebugIdIdentifier="sentry-dbid-58b04ad0-8af2-41a4-9307-b4feab6a11a1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2284],{2305:(e,t,a)=>{"use strict";a.d(t,{a:()=>f});var n=a(95155),r=a(12115),i=a(95810),s=a(29427),l=a(92487),o=a(17200),c=a(52951),d=a(61485),p=a(70735),u=a(5140),h=a(25501);a(17055);let m=(0,c.g)("modal"),_=Object.freeze({modal:m,overlay:`${m}__overlay`,withoutFooter:`${m}--without-footer`,noContent:`${m}--no-content`,open:`${m}--open`,overlayOpen:`${m}__overlay--open`,height:{medium:`${m}--height-medium`,full:`${m}--height-full`},size:{s:`${m}--s`,m:`${m}--m`,l:`${m}--l`,xl:`${m}--xl`},header:`${m}__header`,headerText:`${m}__header-text`,headerTitle:`${m}__header-title`,headerSubtitle:`${m}__header-subtitle`,closeIcon:`${m}__close-icon`,backButton:`${m}__back-button`,backButtonText:`${m}__back-button-text`,headerStates:{centered:`${m}__header--centered`,withLongBtn:`${m}__header--with-long-btn`,defaultHeight:`${m}__header--default-height`},content:`${m}__content`,withoutPadding:`${m}__content--without-padding`,withScroll:`${m}__content--with-scroll`,footer:`${m}__footer`,footerContainer:`${m}__footer-container`,footerBtn:`${m}__footer-btn`,footerDescription:`${m}__footer-description`,divider:`${m}__divider`,dividerTop:`${m}__divider--top`,dividerBottom:`${m}__divider--bottom`}),g=({primaryBtnText:e,onPrimary:t,secondaryBtnText:a,onSecondary:r,thirdBtnText:i,onThird:l,description:c,children:p,noContent:u,dataQa:h})=>(0,n.jsxs)("div",{"data-qa":(0,o.g)(`${h}-footer`,!!h),className:(0,s.A)(_.footer,{[_.noContent]:u}),children:[!u&&(0,n.jsx)("div",{className:(0,s.A)(_.divider,_.dividerTop)}),p||(0,n.jsxs)("div",{className:_.footerContainer,children:[i&&(0,n.jsx)(d.a,{dataQa:(0,o.g)(`${h}-footer-third-btn`,!!h),label:i,variant:"secondary",size:"s",className:_.footerBtn,onClick:l}),a&&(0,n.jsx)(d.a,{dataQa:(0,o.g)(`${h}-footer-secondary-btn`,!!h),label:a,variant:"secondary",size:"s",className:_.footerBtn,onClick:r}),e&&(0,n.jsx)(d.a,{dataQa:(0,o.g)(`${h}-footer-primary-btn`,!!h),label:e,size:"s",className:_.footerBtn,onClick:t})]}),c&&(0,n.jsx)("span",{"data-qa":(0,o.g)(`${h}-footer-description`,!!h),className:_.footerDescription,children:c})]}),v=({text:e,title:t,subtitle:a,align:r="left",backBtnVariant:i,onBack:l,onClose:c,noContent:d,dataQa:m,withoutCloseBtn:g=!1})=>(0,n.jsxs)("div",{"data-qa":(0,o.g)(`${m}-header`,!!m),className:(0,s.A)(_.header,{[_.headerStates.centered]:"center"===r||!!i,[_.headerStates.withLongBtn]:"long"===i,[_.headerStates.defaultHeight]:!e&&!t&&!a}),children:[e&&(0,n.jsx)("span",{"data-qa":(0,o.g)(`${m}-header-text`,!!m),className:_.headerText,children:e}),t&&(0,n.jsx)("span",{"data-qa":(0,o.g)(`${m}-header-title`,!!m),className:_.headerTitle,children:t}),a&&(0,n.jsx)("span",{"data-qa":(0,o.g)(`${m}-header-subtitle`,!!m),className:_.headerSubtitle,children:a}),!g&&(0,n.jsx)("button",{"data-qa":(0,o.g)(`${m}-header-close`,!!m),type:"button",className:_.closeIcon,onClick:c,children:(0,n.jsx)(h.P,{children:(0,n.jsx)(u.S,{})})}),i&&(0,n.jsxs)("button",{"data-qa":(0,o.g)(`${m}-header-back`,!!m),type:"button",className:_.backButton,onClick:l,children:[(0,n.jsx)(h.P,{children:(0,n.jsx)(p.S,{})}),"long"===i&&(0,n.jsx)("span",{className:_.backButtonText,children:"Назад"})]}),!d&&(0,n.jsx)("div",{className:(0,s.A)(_.divider,_.dividerBottom)})]}),f=(0,r.forwardRef)(({header:e,footer:t,open:a=!1,size:c="m",noPadding:d=!1,height:p="full",onClose:u,children:h,className:m,style:f,dataQa:b,dataId:x,dismissDisabled:y=!1,...$},k)=>{let[w,j]=(0,r.useState)(!1),[C,N]=(0,r.useState)(!1),A=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{A.current&&cancelAnimationFrame(A.current)},[]),(0,r.useEffect)(()=>{if(A.current&&cancelAnimationFrame(A.current),a)return j(!0),A.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{N(!0)})}),()=>{A.current&&cancelAnimationFrame(A.current)};{N(!1);let e=setTimeout(()=>{j(!1)},300);return()=>{clearTimeout(e),A.current&&cancelAnimationFrame(A.current)}}},[a]);let T=()=>{N(!1);let e=setTimeout(()=>{null==u||u(),j(!1)},300);return()=>clearTimeout(e)},{context:I}=(0,i.we)({open:w,onOpenChange:e=>{e||T()}}),L=(0,i.s9)(I,{outsidePressEvent:"mousedown",outsidePress:!y,escapeKey:!y}),S=(0,i.It)(I,{role:"dialog"}),{getFloatingProps:z}=(0,i.bv)([L,S]),[E,B]=(0,r.useState)(!1),q=(0,r.useCallback)(e=>{e&&new ResizeObserver(()=>{B(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return w?(0,n.jsx)(i.XF,{id:l.M,children:(0,n.jsx)(i.zR,{lockScroll:!0,className:(0,s.A)(_.overlay,{[_.overlayOpen]:C}),children:(0,n.jsx)(i.s3,{context:I,children:(0,n.jsxs)("div",{ref:k,className:(0,s.A)(_.modal,_.size[c],_.height[p],{[_.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[_.open]:C},m),style:f,...z(),...$,"data-id":x,"data-qa":b,children:[(0,n.jsx)(v,{...e,dataQa:b,noContent:!h,onClose:T}),h&&(0,n.jsx)("div",{"data-qa":(0,o.g)(`${b}-content`,!!b),ref:q,className:(0,s.A)(_.content,{[_.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[_.withoutPadding]:d,[_.withScroll]:E}),children:h}),((null==t?void 0:t.primaryBtnText)||(null==t?void 0:t.children))&&(0,n.jsx)(g,{...t,dataQa:b,noContent:!h})]})})})}):null});f.displayName="Modal"},9009:()=>{},12228:(e,t,a)=>{"use strict";a.d(t,{a:()=>s,c:()=>o,n:()=>l});var n=a(93371);let r="undefined",i=/^(utm_|gclid$|fbclid$|yclid$|gbraid$|wbraid$|_openstat$|roistat$|mc_cid$|mc_eid$|license$)/i,s=e=>{let t=typeof DOMParser>"u"?(e=>{let t=[],a=-1,n=0;for(let r=0;r<e.length;r+=1)"<"===e[r]&&-1===a&&(a=r),">"===e[r]&&-1!==a&&(t.push(e.slice(n,a)," "),n=r+1,a=-1);return t.push(e.slice(n)),t.join("")})(e).replace(/&nbsp;|&#160;|&#xA0;/gi," "):new DOMParser().parseFromString(e,"text/html").body.textContent??"";return(0,n.t)(t.replace(/\s+/g," ").trim()).toLowerCase()||r},l=e=>{let t=s(e).replace(/[^a-z0-9]+/g,"_"),a=0,n=t.length;for(;a<n&&"_"===t[a];)a+=1;for(;n>a&&"_"===t[n-1];)n-=1;return t.slice(a,n)},o=({eventCategory:e,eventAction:t,eventLabel:a,eventNameCard:n,eventHref:l,eventTargetId:o})=>({event:"data-event",eventCategory:e,eventAction:t,eventLabel:a?s(a):r,eventNameCard:n?s(n):r,eventUrl:o?s(o):(e=>{let t=null==e?void 0:e.trim();if(!t||"#"===t)return r;try{let e=new URL(t,typeof window>"u"?"https://finuslugi.ru":window.location.origin);if("http:"!==e.protocol&&"https:"!==e.protocol)return r;for(let t of Array.from(e.searchParams.keys()))i.test(t)&&e.searchParams.delete(t);return`${e.host}${e.pathname}${e.search}${e.hash}`}catch{return r}})(l)})},12519:()=>{},17055:()=>{},33764:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u}),a(83702);var n=a(95155),r=a(59092),i=a(42687),s=a(29427),l=a(51514),o=a(14745),c=a(8407);let d=(0,a(31117).g)("partner-trust","sc"),p=Object.freeze({wrapper:d,container:`${d}__container`,title:`${d}__title`,partners:`${d}__partners`,list:`${d}__list`,slide:`${d}__slide`,partner:`${d}__partner`,partnerLink:`${d}__partner--link`,icon:`${d}__icon`,content:`${d}__content`,partnerTitle:`${d}__partner-title`,arrow:`${d}__arrow`}),u=({data:e,className:t})=>{var a;return null!=(a=null==e?void 0:e.partners)&&a.length?(0,n.jsx)("section",{className:(0,s.A)(p.wrapper,t),children:(0,n.jsxs)(i.m,{className:p.container,children:[(0,n.jsx)("h2",{className:p.title,children:e.title}),(0,n.jsx)(l.S,{className:p.partners,listClassName:p.list,itemClassName:p.slide,disableFrom:"m",gap:12,children:e.partners.map(e=>{let t=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{className:p.icon,src:e.icon,alt:"",loading:"lazy"}),(0,n.jsxs)("span",{className:p.content,children:[(0,n.jsx)("span",{className:p.partnerTitle,children:e.title}),e.url&&(0,n.jsx)("span",{className:p.arrow,"aria-hidden":"true",children:(0,n.jsx)(r.K,{size:24})})]})]});return e.url?(0,n.jsx)("a",{className:(0,s.A)(p.partner,p.partnerLink),href:e.url,onClick:()=>(0,o.p)(c.d),children:t},`${e.url}-${e.title}`):(0,n.jsx)("div",{className:p.partner,children:t},e.title)})})]})}):null}},34891:(e,t,a)=>{"use strict";let n;a.d(t,{dX:()=>eP}),a(12519);var r=a(95155),i=a(12115),s=a(42687),l=a(29427),o=a(14745),c=a(12228),d=a(18271),p=a(45822),u=a(48822),h=a(69478),m=a(31117),_=a(51514),g=a(59092),v=a(93371),f=a(61193),b=a(48675),x=a(33151),y=a(65079),$=a(52159),k=a(66943),w=a(57471),j=a(53764);let C=(0,m.g)("best-offers-v3-navigation-chips","sc"),N=Object.freeze({wrapper:`${C}__wrapper`,gray:`${C}__variantGray`,white:`${C}__variantWhite`,scroller:`${C}__scroller`,alignmentContainer:`${C}__alignmentContainer`,container:`${C}__container`,pendingLayout:`${C}__container--pending`,chip:`${C}__chip`,active:`${C}__chip--active`,more:`${C}__chip--more`,pendingMore:`${C}__chip--pendingMore`,hidden:`${C}__hidden`,label:`${C}__label`}),A=({chip:e,hidden:t,activeChipId:a,onClick:n,refCallback:i})=>{let s=(0,l.A)(N.chip,t&&N.hidden,e.url===a&&N.active),o=(0,r.jsx)("span",{className:N.label,children:e.title});return n?(0,r.jsx)("button",{type:"button",className:s,ref:i,"aria-pressed":e.url===a,tabIndex:t?-1:void 0,onClick:()=>n(e.url),children:o}):(0,r.jsx)("a",{href:e.url,className:s,ref:i,tabIndex:t?-1:void 0,onClick:()=>(0,h.h)(u.D.chip,e.title,`${e.title}_${e.url}`),children:o})},T=(e,t,a,n)=>e===t&&a>0?a+n:0,I=({chipWidths:e,containerWidth:t,gap:a,maxLines:n,reservedLastLineWidth:r})=>{let i=1,s=0,l=0;for(let o of e){let e=T(i,n,r,a),c=0===s?o:s+a+o;if(c+e<=t-.5){s=c,l++;continue}let d=i+1;if(d>n||o+T(d,n,r,a)>t-.5)break;i=d,s=o,l++}return l},L=({items:e=[],variant:t,className:a,activeChipId:n,onClick:o,maxNumberOfLines:c})=>{let d=(0,p.qF)("xl"),m=(0,i.useRef)(null),_=(0,i.useRef)(null),g=(0,i.useRef)({}),[v,f]=(0,i.useState)(!1),[b,x]=(0,i.useState)(!1),[y,$]=(0,i.useState)(e.length),[k,w]=(0,i.useState)(!1),j=1===c,C=d?v:b,T=Math.max(c??0,0),L=d?T:2*!!j,S=j&&!C&&!k&&e.length>0,z=C||0===L,E=!z&&(y<e.length||S),B=(0,i.useCallback)(()=>{var t,a;let n=m.current;if(!n)return;let r=()=>{$(e.length),w(!0)};if(C||0===L)return r();let i=n.getBoundingClientRect().width,s=e.map(e=>{var t;return(null==(t=g.current[e.url])?void 0:t.getBoundingClientRect().width)??0}),l=(null==(t=_.current)?void 0:t.getBoundingClientRect().width)??0,o=i<=0||l<=0||s.some(e=>e<=0);if(o&&j)return;if(o)return r();let c=(({chipWidths:e,containerWidth:t,gap:a,maxLines:n,moreWidth:r})=>{let i={chipWidths:e,containerWidth:t,gap:a,maxLines:n},s=I({...i,reservedLastLineWidth:0});return s===e.length?s:I({...i,reservedLastLineWidth:r})})({chipWidths:s,containerWidth:i,gap:parseFloat(getComputedStyle(n).columnGap)||8,maxLines:L,moreWidth:l});e.findIndex(e=>g.current[e.url]===document.activeElement)>=c&&(null==(a=_.current)||a.focus({preventScroll:!0})),$(c),w(!0)},[C,j,e,L]);return(0,i.useLayoutEffect)(()=>{let e=m.current;if(!e)return;let t=0,a=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(B)},n=new ResizeObserver(a);return n.observe(e),Array.from(e.children).forEach(e=>n.observe(e)),a(),()=>{cancelAnimationFrame(t),n.disconnect()}},[B]),(0,r.jsx)("div",{className:(0,l.A)(a,N.wrapper,t&&N[t]),children:(0,r.jsx)("div",{className:N.scroller,children:(0,r.jsx)(s.m,{className:N.alignmentContainer,children:(0,r.jsxs)("div",{ref:m,className:(0,l.A)(N.container,S&&N.pendingLayout),children:[e.map((e,t)=>(0,r.jsx)(A,{chip:e,hidden:!z&&k&&t>=y,activeChipId:n,onClick:o,refCallback:t=>{g.current[e.url]=t}},e.url)),(0,r.jsx)("button",{type:"button",ref:_,className:(0,l.A)(N.chip,N.more,!E&&N.hidden,S&&N.pendingMore),"aria-label":"Ещё","aria-hidden":!E||void 0,tabIndex:E?void 0:-1,onClick:()=>{if((0,h.h)(u.D.chip,"Ещё"),d)return f(!0);x(!0)},children:(0,r.jsx)("span",{className:N.label,children:"Ещё"})})]})})})})};var S=((n=S||{}).light="light",n.gray="gray",n);let z=e=>"kasko"===e||"osago"===e,E={m:"(min-width: 768px)",l:"(min-width: 1024px)",xl:"(min-width: 1280px)"},B=(0,m.g)("best-offers-v3-banner","sc"),q=Object.freeze({bestOffersBaner:B,wrapper:`${B}__wrapper`,wideWrapper:`${B}__wrapper--wide`,whiteWrapper:`${B}__wrapper--white`,desktopBreakpointWrapper:{m:`${B}__wrapper--desktop-m`,l:`${B}__wrapper--desktop-l`,xl:`${B}__wrapper--desktop-xl`},compact:`${B}__wrapper--compact`,buttonText:`${B}__buttonText`,buttonIcon:`${B}__buttonIcon`,content:`${B}__content`,header:`${B}__header`,title:`${B}__title`,description:`${B}__description`,subtitle:`${B}__subtitle`,chips:`${B}__chips`,chip:`${B}__chip`,button:`${B}__button`,icon:`${B}__icon`,iconBlack:`${B}__icon--black`,iconWhite:`${B}__icon--white`,iconRight:`${B}__icon--right`,image:`${B}__image`}),R=({buttonLabel:e,buttonUrl:t,contentTextColor:a,hasImage:n,isGrayTheme:i,shouldMoveIconRight:s,handleButtonClick:o})=>e.length>0?(0,r.jsxs)("a",{href:t,className:q.button,onClick:o,"aria-label":e,children:[(0,r.jsx)("span",{className:q.buttonText,children:e}),(0,r.jsx)("span",{className:q.buttonIcon,"aria-hidden":!0,children:(0,r.jsx)(g.K,{size:24})})]}):(0,r.jsx)("a",{href:t,"aria-label":"Подробнее о предложении",onClick:o,className:(0,l.A)(q.icon,{[q.iconBlack]:n||i&&!(null!=a&&a.includes("color-white")),[q.iconWhite]:!n&&i&&!!(null!=a&&a.includes("color-white")),[q.iconRight]:s}),children:(0,r.jsx)(g.K,{})}),O=({title:e,description:t,chips:a,contentTextColor:n})=>(0,r.jsxs)("div",{className:q.content,children:[(0,r.jsx)("div",{className:q.header,children:(0,r.jsx)("span",{className:q.title,style:{color:n},dangerouslySetInnerHTML:{__html:e}})}),t&&(0,r.jsx)("span",{className:q.description,style:{color:n},dangerouslySetInnerHTML:{__html:t}}),a&&a.length>0&&(0,r.jsx)("div",{className:q.chips,children:a.map(e=>(0,r.jsx)("span",{className:q.chip,children:e.label},e.label))})]}),P=({image:e,title:t,desktopBreakpoint:a})=>e?(0,r.jsxs)("picture",{className:q.image,children:[(0,r.jsx)("source",{srcSet:e.desktop,media:E[a]}),(0,r.jsx)("img",{src:e.mobile,width:348,height:220,alt:`Баннер ${t}`,loading:"lazy"})]}):null,F=({title:e,image:t,url:a,description:n,backgroundColor:i,textColor:s,wide:o,compact:c=!1,theme:d,handleBannerDataLayerPush:p,className:u,button:h,chips:m,desktopBreakpoint:_="xl"})=>{var g;let v=d===S.gray,f=(null==h?void 0:h.label.trim())??"",b=null==(g=null==h?void 0:h.link)?void 0:g.trim(),x=b&&b.length>0?b:a,y=(null==s?void 0:s.trim())||void 0,$=null==i?void 0:i.base,k=v?"var(--color-white)":"var(--color-gray-400)",w=null!=$&&$.trim()?$:k,j=null==i?void 0:i.hover,C=null!=j&&j.trim()?j:w,N=null==h?void 0:h.background,A=null==h?void 0:h.textColor,T=0===f.length&&!t,I={"--bg-base":w,"--bg-hover":C,"--button-bg":null!=N&&N.trim()?N:"var(--color-black-500)","--button-text":null!=A&&A.trim()?A:"var(--color-white)"};return(0,r.jsxs)("div",{className:(0,l.A)(q.wrapper,u,q.desktopBreakpointWrapper[_],{[q.wideWrapper]:o,[q.compact]:c}),style:I,onClick:()=>{p(a,"banner"),window.open(a,"_blank")},children:[(0,r.jsx)(O,{title:e,description:n,chips:m,contentTextColor:y}),(0,r.jsx)(P,{image:t,title:e,desktopBreakpoint:_}),(0,r.jsx)(R,{buttonLabel:f,buttonUrl:x,contentTextColor:y,hasImage:!!t,isGrayTheme:v,shouldMoveIconRight:T,handleButtonClick:e=>{e.preventDefault(),e.stopPropagation(),p(x,"button"),window.open(x,"_blank")}})]})},M={deposits:"vklad",bonds:"obligatsii",credits:"kredity",microCredits:"zaymy",cards:"kreditniy_karty",kasko:"kasko",osago:"osago",debitCards:"debetovyye_karty",mortgages:"ipoteka",autoCredits:"avtokredity",funds:"fonds",stocks:"aktsii"},W=e=>"best-offers"===e?"homepage_fin_predlozheniya":e,H=e=>M[e],D=(e,t)=>{let a=H(t);return a?`${W(e)}_${a}`:null},U=(0,m.g)("best-offers-v3-offer-card","sc"),V=Object.freeze({offerCard:U,wrapper:`${U}__wrapper`,wrapperWithExtraContent:`${U}__wrapper--withExtraContent`,whiteWrapper:`${U}__wrapper--white`,bankInfo:`${U}__bankInfo`,descriptionContainer:`${U}__descriptionContainer`,logo:`${U}__logo`,description:`${U}__description`,additionalChip:`${U}__additionalChip`,companyName:`${U}__companyName`,productName:`${U}__productName`,buttonText:`${U}__buttonText`,headlineWrapper:`${U}__headlineWrapper`,headline:`${U}__headline`,headlineTooltipIcon:`${U}__headlineTooltipIcon`,units:`${U}__units`,unitsColumn:`${U}__units--column`,unit:`${U}__unit`,unitRow:`${U}__unit--row`,unitTitleWrapper:`${U}__unitTitleWrapper`,unitTitle:`${U}__unitTitle`,tooltipIcon:`${U}__tooltipIcon`,tooltip:`${U}__tooltip`,tooltipButton:`${U}__tooltipButton`,tooltipContent:`${U}__tooltipContent`,popupContent:`${U}__popupContent`,unitValue:`${U}__unitValue`,titleUnitValue:`${U}__unitValue--title`,bottomBlock:`${U}__bottomBlock`,tags:`${U}__tags`,tag:`${U}__tag`,button:`${U}__button`}),G=({html:e,title:t,iconSize:a,iconClassName:n})=>{let s=(0,p.qF)("xl"),[l,o]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),[u,h]=(0,i.useState)(),m=(0,i.useRef)(null),_=(0,r.jsx)(x.k,{size:a,className:n});if(s){let t=(0,r.jsx)("span",{className:V.tooltipContent,dangerouslySetInnerHTML:{__html:e}});return(0,r.jsx)(f.m,{text:t,moveToBody:!0,zIndex:100,className:V.tooltip,children:_})}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{ref:m,type:"button",className:V.tooltipButton,"aria-label":`Подсказка: ${t}`,onClick:()=>{m.current&&h(getComputedStyle(m.current).fontFamily),d(!0),o(!0)},children:_}),c&&(0,r.jsx)(b.P,{children:(0,r.jsx)(b.U,{isOpen:l,onClose:()=>{o(!1)},title:t,children:(0,r.jsx)("div",{className:V.popupContent,style:{fontFamily:u},dangerouslySetInnerHTML:{__html:e}})})})]})},K=({title:e,value:t,tooltip:a,textColor:n,unitsAsColumn:i,isTitleUnit:s})=>(0,r.jsxs)("div",{className:(0,l.A)(V.unit,{[V.unitRow]:i}),children:[(0,r.jsxs)("div",{className:V.unitTitleWrapper,children:[(0,r.jsx)("span",{className:V.unitTitle,children:e}),a&&(0,r.jsx)(G,{html:a,title:e,iconSize:12,iconClassName:V.tooltipIcon})]}),(0,r.jsx)("span",{className:(0,l.A)(V.unitValue,{[V.titleUnitValue]:s}),style:{color:n},children:t})]}),J=({title:e,value:t,tooltip:a,textColor:n})=>(0,r.jsxs)("div",{className:V.headlineWrapper,children:[(0,r.jsx)("span",{className:V.headline,style:{color:n},children:t}),a&&(0,r.jsx)(G,{html:a,title:e,iconSize:16,iconClassName:V.headlineTooltipIcon})]}),Q=({tags:e,isGrayTheme:t})=>{let a=t?"secondary":"primary";return(0,r.jsx)("div",{className:V.tags,children:e.sort((e,t)=>e.order-t.order).map(e=>(0,r.jsx)($.v,{className:V.tag,label:e.label,variant:e.variant?e.variant:a,rounded:!0},e.label))})},Z=({companyName:e,name:t,url:a,depositLinkParams:n,logo:i,units:s,tags:d,additionalButton:p,unitsAsColumn:u,dataLayerPush:h,eventCategory:m,productType:_,theme:g,buttonClassName:f,buttonLabel:b,eventValueByUnitTitle:x})=>{var $;let k=g===S.gray,[w,...j]=s,C=((e,t,a)=>{if("deposits"!==t||!a)return e;let{amount:n,termDays:r}=a;if(!Number.isFinite(n)||n<=0||!Number.isFinite(r)||r<=0)return e;try{let t=new URL(e,"https://finuslugi.ru");if("http:"!==t.protocol&&"https:"!==t.protocol||!t.pathname.startsWith("/vklady/")||"/vklady/"===t.pathname)return e}catch{return e}return(0,y.p2)(e,(0,y._b)({amount:n,d_period:r}))})(a,_,n),N=j.slice(0,2),A=null==b?void 0:b.trim(),T="deposits"===_||a.includes("/vklady/")?"Открыть вклад":"Подробнее",I=A&&A.length>0?A:T,L=null==($=null==p?void 0:p.text)?void 0:$.trim(),z=!!(null!=d&&d.length),E=!!(null!=L&&L.length);return(0,r.jsxs)("div",{className:(0,l.A)(V.wrapper,{[V.whiteWrapper]:k,[V.wrapperWithExtraContent]:z}),children:[(0,r.jsxs)("div",{className:V.bankInfo,children:[(0,r.jsxs)("div",{className:V.descriptionContainer,children:[i&&(0,r.jsx)("img",{src:i,width:40,height:40,alt:`${e} logo`,className:V.logo,loading:"lazy"}),(0,r.jsxs)("div",{className:V.description,children:[(0,r.jsx)("span",{className:V.companyName,children:e}),(0,r.jsx)("span",{className:V.productName,children:t})]})]}),E&&(0,r.jsx)("div",{className:V.additionalChip,children:L})]}),w&&(0,r.jsx)(J,{title:w.title,value:w.value,tooltip:w.tooltip,textColor:w.textColor}),(0,r.jsx)("div",{className:(0,l.A)(V.units,{[V.unitsColumn]:u}),children:N.map(e=>(0,r.jsx)(K,{title:e.title,value:e.value,tooltip:e.tooltip,textColor:e.textColor,unitsAsColumn:u},`${e.title}-${e.value}`))}),(0,r.jsxs)("div",{className:V.bottomBlock,children:[z&&d&&(0,r.jsx)(Q,{tags:d,isGrayTheme:k}),(0,r.jsx)("a",{className:(0,l.A)(V.button,f),href:C,"aria-label":`${I}: ${t}, ${e}`,onClick:()=>(a=>{(0,o.p)(h,_);let n=D(m,_);if(n)return void h((0,c.c)({eventCategory:n,eventAction:"click_button_otkryt",eventNameCard:`${e} ${t}`,eventHref:C}));let r={event:"data-event",eventCategory:m,eventAction:`click_button_${(0,v.t)(a)}_${_}`,eventLabel:(0,v.t)(`${e}_${t}`)};if(!x)return void h(r);let i=s.find(e=>e.title.toLowerCase()===x.toLowerCase());i&&(r.eventValue=(0,v.t)(i.value)),h(r)})("podrobnee_o_kartochke_iz"),children:(0,r.jsx)("span",{className:V.buttonText,children:I})})]})]})},X=(0,m.g)("best-offers-v3-offers-list","sc"),Y=Object.freeze({offersList:X,wrapper:`${X}__wrapper`,withBanner:`${X}__wrapper--withBanner`,shortListWithBanner:`${X}__wrapper--shortListWithBanner`,singleRowWithBanner:`${X}__wrapper--singleRowWithBanner`,singleProduct:`${X}__wrapper--singleProduct`,slide:`${X}__slide`,bannerOnly:`${X}__wrapper--bannerOnly`,cards:`${X}__cards`,offerItem:`${X}__offerItem`,compact:`${X}__offerItem--compact`,bannerItem:`${X}__bannerItem`}),ee=({offers:e,banner:t,dataLayerPush:a,eventCategory:n,productType:i,theme:s,singleProduct:d})=>{let p=e.slice(0,6),u=!!t&&p.length>0&&p.length<4,h=p.map(e=>(0,r.jsx)("div",{className:(0,l.A)(Y.offerItem,{[Y.compact]:d}),children:(0,r.jsx)(Z,{...e,dataLayerPush:a,eventCategory:n,productType:i,theme:s})},`offer-${e.id}`));return t&&h.splice(Math.min(4,h.length),0,(0,r.jsx)("div",{className:Y.bannerItem,children:(0,r.jsx)(F,{...t,compact:!0,handleBannerDataLayerPush:e=>{(0,o.p)(a,i);let r=D(n,i);r?a((0,c.c)({eventCategory:r,eventAction:"click_mini_banner",eventNameCard:null==t?void 0:t.title,eventHref:e})):a({event:"data-event",eventCategory:n,eventAction:"click_bnr_banner_top_predlozheniy",eventLabel:i})},theme:s})},"banner")),(0,r.jsx)(_.S,{className:(0,l.A)(Y.wrapper,{[Y.withBanner]:!!t,[Y.shortListWithBanner]:u,[Y.singleRowWithBanner]:!!t&&p.length<=2,[Y.bannerOnly]:!!t&&0===p.length,[Y.singleProduct]:d}),itemClassName:Y.slide,disableFrom:"xl",gap:12,pagination:!0,children:h},i)},et={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ea={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},en=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M7.75 1.75a.75.75 0 10-1.5 0v.492c-.397.09-.763.214-1.11.391a5.749 5.749 0 00-2.513 2.512c-.336.658-.484 1.385-.556 2.265C2 8.267 2 9.332 2 10.687v2.632c0 1.356 0 2.42.07 3.278.073.88.221 1.607.557 2.265a5.749 5.749 0 002.513 2.512c.658.335 1.385.483 2.265.555.864.071 1.94.071 3.311.071h2.568c1.371 0 2.447 0 3.311-.07.88-.073 1.607-.221 2.265-.556a5.748 5.748 0 002.513-2.512c.336-.658.485-1.385.556-2.265.07-.858.071-1.924.071-3.28V10.69c0-1.357 0-2.422-.07-3.28-.072-.88-.221-1.607-.557-2.265a5.748 5.748 0 00-2.513-2.512 4.661 4.661 0 00-1.11-.39V1.75a.75.75 0 10-1.5 0v.303c-.802-.046-1.772-.046-2.966-.046h-.534V1.75a.75.75 0 10-1.5 0v.257h-.534c-1.194 0-2.164 0-2.966.046V1.75zM5.82 3.97a2.77 2.77 0 01.431-.176.75.75 0 001.499-.045v-.193c.761-.049 1.716-.05 3-.05h.5v.243a.75.75 0 101.5 0v-.242h.5c1.284 0 2.239 0 3 .049v.193a.75.75 0 001.499.045c.157.05.299.108.43.175a4.25 4.25 0 011.858 1.857c.21.411.333.919.397 1.706.065.796.066 1.81.066 3.222v2.499c0 1.412 0 2.426-.066 3.222-.064.787-.188 1.294-.397 1.705a4.25 4.25 0 01-1.857 1.857c-.412.21-.92.333-1.707.397-.796.066-1.81.066-3.223.066h-2.5c-1.412 0-2.427 0-3.223-.066-.787-.064-1.295-.187-1.707-.397a4.249 4.249 0 01-1.857-1.857c-.21-.411-.333-.918-.397-1.705-.065-.796-.066-1.81-.066-3.222v-2.5c0-1.411 0-2.425.066-3.221.064-.787.188-1.295.397-1.706A4.25 4.25 0 015.82 3.97zm-.07 8.04c0 .687.555 1.253 1.25 1.248a1.255 1.255 0 001.25-1.25 1.25 1.25 0 10-2.5.003zm5 0c0 .687.555 1.253 1.25 1.248a1.255 1.255 0 001.25-1.25 1.25 1.25 0 10-2.5.003zm5 0c0 .687.555 1.253 1.25 1.248a1.255 1.255 0 001.25-1.25 1.25 1.25 0 10-2.5.003zm-10 4c0 .687.555 1.253 1.25 1.248a1.255 1.255 0 001.25-1.25 1.25 1.25 0 10-2.5.003zm5 0c0 .687.555 1.253 1.25 1.248a1.255 1.255 0 001.25-1.25 1.25 1.25 0 10-2.5.003zm5 0c0 .687.555 1.253 1.25 1.248a1.255 1.255 0 001.25-1.25 1.25 1.25 0 10-2.5.003z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function er({className:e,style:t,boxSize:a,size:n,onClick:r}){return i.createElement("span",{className:e,style:{...et,...r&&{cursor:"pointer"},...n&&{fontSize:`${n}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},i.createElement(en,{viewBox:"0 0 24 24",style:ea}))}er.displayName="IconFdsCalendarO";let ei={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},es={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},el=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12zm1.5 0a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm12.28-1.72l-4.25 4.25a.722.722 0 01-.53.22.722.722 0 01-.53-.22l-2.25-2.25a.743.743 0 010-1.06.743.743 0 011.06 0L11 12.94l3.72-3.72a.743.743 0 011.06 0 .743.743 0 010 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eo({className:e,style:t,boxSize:a,size:n,onClick:r}){return i.createElement("span",{className:e,style:{...ei,...r&&{cursor:"pointer"},...n&&{fontSize:`${n}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},i.createElement(el,{viewBox:"0 0 24 24",style:es}))}eo.displayName="IconFdsCheckCircleO";let ec={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ed={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ep=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M5.5 3.75l.022 2a8.93 8.93 0 012.337-1.741q.756-.39 1.586-.636a8.97 8.97 0 011.77-.34q.736-.065 1.484-.006a8.96 8.96 0 013.058.798 8.923 8.923 0 012.677 1.882A8.928 8.928 0 0120.21 8.32a8.887 8.887 0 01.776 3.179 8.928 8.928 0 01-.384 3.137 8.917 8.917 0 01-1.509 2.903 8.965 8.965 0 01-2.354 2.109 8.967 8.967 0 01-3.047 1.192 8.927 8.927 0 01-3.16.037 8.951 8.951 0 01-5.482-3.161 8.974 8.974 0 01-1.587-2.861 8.98 8.98 0 01-.346-1.397q-.14-.852-.114-1.73a.743.743 0 01.772-.727c.42.012.74.352.728.772a7.53 7.53 0 00.098 1.466q.097.578.285 1.14a7.44 7.44 0 001.323 2.385c.313.38.656.724 1.029 1.031q.457.376.974.679.512.3 1.058.513a7.48 7.48 0 001.507.41c.486.08.97.114 1.454.1q.592-.018 1.18-.13a7.422 7.422 0 002.539-.995 7.503 7.503 0 001.962-1.756 7.416 7.416 0 001.257-2.42 7.441 7.441 0 00-.328-5.263 7.51 7.51 0 00-1.48-2.179 7.417 7.417 0 00-2.231-1.567 7.509 7.509 0 00-2.548-.666 7.419 7.419 0 00-2.712.29 7.51 7.51 0 00-1.34.539q-.53.276-1.016.637A7.481 7.481 0 006.407 7H9.25c.42 0 .75.33.75.75s-.33.75-.75.75h-4.5q-.375 0-.563-.188C4.063 8.188 4 8.001 4 7.751v-4c0-.42.33-.75.75-.75s.75.33.75.75zm7 5.998v2.014a1.245 1.245 0 00.69 1.118l1.395.697c.376.188.523.63.336 1.007a.743.743 0 01-1.007.335l-1.394-.697a2.736 2.736 0 01-.627-.428 2.74 2.74 0 01-.482-.586 2.74 2.74 0 01-.309-.694Q11 12.153 11 11.762V9.748c0-.42.33-.75.75-.75s.75.33.75.75z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eu({className:e,style:t,boxSize:a,size:n,onClick:r}){return i.createElement("span",{className:e,style:{...ec,...r&&{cursor:"pointer"},...n&&{fontSize:`${n}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},i.createElement(ep,{viewBox:"0 0 24 24",style:ed}))}eu.displayName="IconFdsClockRotateCounterclockwiseO";let eh={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},em={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},e_=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.983 9.983 0 01-3.745 7.803A9.961 9.961 0 0112 22a9.961 9.961 0 01-6.255-2.197A9.983 9.983 0 012 12zm10-8.5a8.5 8.5 0 00-6.118 14.401c.175-.424.37-.787.629-1.11a4.747 4.747 0 011.948-1.45C9.31 15 10.297 15 11.832 15h.336c1.535 0 2.52 0 3.373.341a4.747 4.747 0 011.948 1.45c.258.323.454.686.629 1.11A8.5 8.5 0 0012 3.5zM8 10a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5zm4.906 11.442c-.21-.61-.378-.95-.59-1.217a3.258 3.258 0 00-1.333-.992c-.55-.22-1.22-.233-2.983-.233-1.763 0-2.434.013-2.983.233a3.25 3.25 0 00-1.333.992c-.212.266-.38.607-.59 1.217A8.459 8.459 0 0012 20.5c1.828 0 3.52-.576 4.906-1.558z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eg({className:e,style:t,boxSize:a,size:n,onClick:r}){return i.createElement("span",{className:e,style:{...eh,...r&&{cursor:"pointer"},...n&&{fontSize:`${n}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},i.createElement(e_,{viewBox:"0 0 24 24",style:em}))}eg.displayName="IconFdsUserCircleO";let ev=(0,m.g)("best-offers-v3-osago-tab","sc"),ef=Object.freeze({osagoTab:ev,wrapper:`${ev}__wrapper`,promo:`${ev}__promo`,card:`${ev}__card`,whiteCard:`${ev}__card--white`,cardHeader:`${ev}__cardHeader`,cardBody:`${ev}__cardBody`,cardFooter:`${ev}__cardFooter`,heading:`${ev}__heading`,fields:`${ev}__fields`,inputWrapper:`${ev}__inputWrapper`,segment:`${ev}__segment`,segmentButton:`${ev}__segmentButton`,segmentButtonActive:`${ev}__segmentButton--active`,input:`${ev}__input`,noNumberLink:`${ev}__noNumberLink`,button:`${ev}__button`,note:`${ev}__note`,noteIcon:`${ev}__noteIcon`,noteText:`${ev}__noteText`,insurers:`${ev}__insurers`,insurersImage:`${ev}__insurersImage`,insurersCaption:`${ev}__insurersCaption`,tips:`${ev}__tips`,tipsTitle:`${ev}__tipsTitle`,tipsList:`${ev}__tipsList`,tip:`${ev}__tip`,tipIcon:`${ev}__tipIcon`,tipContent:`${ev}__tipContent`,tipTitle:`${ev}__tipTitle`,tipText:`${ev}__tipText`}),eb="linear-gradient(126deg, rgba(105, 130, 192, 0.00) 21.6%, #A7A0BF 87.09%), linear-gradient(0deg, #7C47FF 0%, #7C47FF 100%), radial-gradient(127.98% 79.03% at 106.27% 112.54%, #14171F 19%, rgba(73, 112, 255, 0.00) 100%), linear-gradient(114deg, rgba(243, 245, 247, 0.54) 21.59%, rgba(222, 244, 255, 0.00) 90.81%), linear-gradient(264deg, #4C5D91 -13.15%, #9982DE 43.14%, #9C97FF 95.25%)",ex={kasko:{title:"Получите лучшие условия для оформления полиса КАСКО",backgroundColor:{base:eb,hover:eb}},osago:{title:"Рассчитайте стоимость полиса ОСАГО с экономией до 78%",backgroundColor:{base:eb,hover:eb}}},ey=[{label:"Автомобиль",value:"auto"},{label:"Мотоцикл",value:"moto"}],e$={kasko:"Рассчитайте стоимость Каско",osago:"Рассчитайте стоимость ОСАГО"},ek={kasko:"Рассчитайте стоимость КАСКО",osago:"Рассчитайте стоимость ОСАГО"},ew="widgets/BestOffersV3",ej={kasko:{caption:"Более 15 страховых",note:"Получите расчёт за минуту от 16 страховых компаний",tips:{title:"Как сэкономить на страховке каско",items:[{icon:"check-circle",title:"Выберите нужные покрытия",text:"Оставьте защиту только от угона и гибели или выберите ремонт на универсальной СТОА"},{icon:"shield-check",title:"Подключите франшизу",text:"Если готовы оплачивать мелкий ремонт сами, франшиза снизит стоимость полиса каско"},{icon:"calendar",title:"Продлите полис заранее",text:"Купите новый до окончания текущего — это поможет зафиксировать цену и получить скидку от страховой"}]}},osago:{caption:"Более 20 страховых",note:"Сравните цены в 21 страховой компании для автомобиля или мотоцикла",tips:{title:"Как сэкономить на страховке ОСАГО",items:[{icon:"user-circle",title:"Ограничьте список водителей",text:"Страховка для фиксированного числа водителей всегда дешевле безлимитной"},{icon:"history",title:"Продлите полис заранее",text:"При досрочном продлении можно получить лучшую цену, а при переходе в другую страховую — бонусы"},{icon:"calendar",title:"Оформите полис на сезон",text:"Если вы пользуетесь автомобилем только летом, оформляйте полис на этот период"}]}}},eC={"check-circle":eo,"shield-check":j.K,calendar:er,"user-circle":eg,history:eu},eN=Object.fromEntries(ey.map(e=>[e.value,e])),eA={auto:{mask:"a 000 aa 00[0]",placeholder:"A 000 AA 000"},moto:{mask:"0000 aa 00[0]",placeholder:"0000 AA 000"}},eT="АВЕКМНОРСТУХ",eI=RegExp(`[${eT}]`,"i"),eL=RegExp(`[^0-9${eT}]`,"gi"),eS=({title:e,items:t,isGrayTheme:a})=>(0,r.jsxs)("div",{className:(0,l.A)(ef.card,ef.tips,{[ef.whiteCard]:a}),children:[(0,r.jsx)("h3",{className:ef.tipsTitle,children:e}),(0,r.jsx)("ul",{className:ef.tipsList,children:t.map(e=>{let t=eC[e.icon];return(0,r.jsxs)("li",{className:ef.tip,children:[(0,r.jsx)("span",{className:ef.tipIcon,"aria-hidden":!0,children:t&&(0,r.jsx)(t,{size:22})}),(0,r.jsxs)("div",{className:ef.tipContent,children:[(0,r.jsx)("p",{className:ef.tipTitle,children:e.title}),(0,r.jsx)("p",{className:ef.tipText,children:e.text})]})]},e.title)})})]}),ez=({image:e,caption:t})=>(0,r.jsxs)("div",{className:ef.insurers,children:[e&&(0,r.jsxs)("picture",{className:ef.insurersImage,"aria-hidden":!0,children:[(0,r.jsx)("source",{srcSet:e.desktop,media:"(min-width: 1280px)"}),(0,r.jsx)("img",{src:e.mobile,width:110,height:32,alt:"",loading:"lazy"})]}),(0,r.jsx)("span",{className:ef.insurersCaption,children:t})]}),eE=(e,t)=>(null==e?void 0:e.trim())||t,eB=({type:e,baseUrl:t,s3Assets:a,banner:n,insurance:s,dataLayerPush:d,eventCategory:p,theme:u})=>{var h,m,_,g,f,b,x,$,C;let N,A,T,I,L,z="osago"===e,E=u===S.gray,B=(0,y.oq)(t,"osago"),q=(0,y.oq)(B,"step-car"),R=(0,y.oq)(t,"kasko"),O=(0,y.oq)(R,"vehicle"),P=z?q:O,M=z?B:R,H=(null==(h=null==n?void 0:n.url)?void 0:h.trim())||M,[D,U]=(0,i.useState)(""),[V,G]=(0,i.useState)("auto"),[K,J]=(0,i.useState)(!1),{mask:Q,placeholder:Z}=eA[V],X=ek[e],{insurers:Y,note:ee,tips:et}=(N=ej[e],A=(null==(b=null==s?void 0:s.tips)?void 0:b.items)??[],{insurers:{image:(I=null==(T=null==(C=null==s?void 0:s.insurers)?void 0:C.image)?void 0:T.mobile.trim(),L=null==T?void 0:T.desktop.trim(),I&&L?{mobile:I,desktop:L}:a.trim()?{mobile:(0,y.oq)(a,ew,"insurance-logos-m.webp"),desktop:(0,y.oq)(a,ew,"insurance-logos-d.webp")}:void 0),caption:eE(null==(x=null==s?void 0:s.insurers)?void 0:x.caption,N.caption)},note:eE(null==s?void 0:s.note,N.note),tips:{title:eE(null==($=null==s?void 0:s.tips)?void 0:$.title,N.tips.title),items:A.length>0?A:N.tips.items}}),ea=`?${new URLSearchParams({type:z?V:"auto",license:D})}`,en=(0,y.oq)(P,ea),er=(null==(m=null==n?void 0:n.title)?void 0:m.trim())||ex[e].title,ei=(null==(_=null==n?void 0:n.backgroundColor)?void 0:_.base.trim())||ex[e].backgroundColor.base,es=(null==(f=null==(g=null==n?void 0:n.backgroundColor)?void 0:g.hover)?void 0:f.trim())||ei,el=eN[V].label,eo=`${W(p)}_${e}`;(0,i.useEffect)(()=>{U(""),G("auto")},[e]);let ec=(t,a)=>{d({event:"data-event",eventCategory:p,eventAction:t,eventLabel:a??e})},ed=(e,t,a,n)=>{d((0,c.c)({eventCategory:eo,eventAction:e,eventNameCard:t,eventHref:a,eventTargetId:n}))},ep={title:er,url:H,description:null==n?void 0:n.description,image:null==n?void 0:n.image,backgroundColor:{base:ei,hover:es},textColor:null==n?void 0:n.textColor,className:(0,l.A)(ef.promo,null==n?void 0:n.className),button:null==n?void 0:n.button,chips:null==n?void 0:n.chips,theme:u,handleBannerDataLayerPush:(e,t)=>{var a;let r="button"===t&&!!(null!=(a=null==n?void 0:n.button)&&a.label.trim());(0,o.p)(d),ed(r?"click_button_otkryt":"click_mini_banner",er,e)},desktopBreakpoint:"xl"};return(0,r.jsxs)("div",{className:ef.wrapper,children:[(0,r.jsxs)("div",{className:(0,l.A)(ef.card,{[ef.whiteCard]:E}),children:[(0,r.jsx)("div",{className:ef.cardHeader,children:(0,r.jsx)(ez,{image:Y.image,caption:Y.caption})}),(0,r.jsxs)("div",{className:ef.cardBody,children:[(0,r.jsx)("h3",{className:ef.heading,children:e$[e]}),(0,r.jsxs)("div",{className:ef.fields,children:[z&&(0,r.jsx)("div",{className:ef.segment,role:"group","aria-label":"Тип транспорта",children:ey.map(e=>(0,r.jsx)("button",{type:"button",className:(0,l.A)(ef.segmentButton,{[ef.segmentButtonActive]:e.value===V}),"aria-pressed":e.value===V,onClick:()=>{var t;ed("auto"===(t=e.value)?"click_tab_avtomobil":"click_tab_mototsikl",X,void 0,t),t!==V&&(U(""),G(t))},children:e.label},e.value))}),(0,r.jsx)("div",{className:ef.inputWrapper,children:(0,r.jsx)(k.U,{label:"Госномер",variant:"secondary",maskOpts:{mask:Q,definitions:{a:eI}},maskPlaceholder:Z,placeholder:K&&!D?Z:void 0,value:D,className:(0,l.A)(ef.input,"ym-hide-content"),rightLabel:(0,r.jsx)(w.N,{href:P,className:ef.noNumberLink,onClick:()=>{(0,o.p)(d),ed("click_button_net_nomera",X,P)},children:"Нет номера"}),onChange:(e,t)=>{U(t.replace(eL,"").toUpperCase())},onClick:()=>ec(`message_field_${(0,v.t)(el)}`),onFocus:()=>J(!0),onBlur:()=>{J(!1),ec(`on_message_field_${(0,v.t)(el)}`)}})})]})]}),(0,r.jsxs)("div",{className:ef.cardFooter,children:[(0,r.jsx)("a",{href:en,className:ef.button,onClick:()=>{(0,o.p)(d),ed("click_button_rasschitat",X,en)},children:"Рассчитать"}),(0,r.jsxs)("div",{className:ef.note,children:[(0,r.jsx)(j.K,{size:18,className:ef.noteIcon,"aria-hidden":!0}),(0,r.jsx)("p",{className:ef.noteText,children:ee})]})]})]}),(0,r.jsx)(eS,{title:et.title,items:et.items,isGrayTheme:E}),(0,r.jsx)(F,{...ep})]})},eq=(0,m.g)("best-offers-v3","sc"),eR=Object.freeze({bestOffers:eq,container:`${eq}__container`,graySection:`${eq}--gray`,singleProduct:`${eq}--singleProduct`,titleWrapper:`${eq}__title-wrapper`,singleProductTitleWrapper:`${eq}__title-wrapper--singleProduct`,title:`${eq}__title`,singleProductTitle:`${eq}__title--singleProduct`,warning:`${eq}__warning`,allOffersLink:`${eq}__allOffersLink`}),eO={вклады:"вкладам",облигации:"облигациям",кредиты:"кредитам",займы:"займам","кредитные карты":"кредитным картам",каско:"каско",осаго:"ОСАГО","дебетовые карты":"дебетовым картам",ипотека:"ипотеке",автокредиты:"автокредитам",фонды:"фондам",акции:"акциям"},eP=({tabs:e,baseUrl:t,s3Assets:a,eventCategory:n="best-offers",dataLayerPush:p,singleProduct:u=!1,title:h,theme:m=S.light,className:_,tagTitle:g="h2",initialActiveChipId:v})=>{var f,b;let x,y,$,k=m===S.gray,w=(0,i.useMemo)(()=>Array.isArray(e)?e.filter(({banner:e,offers:t,productType:a})=>"all"!==a&&(!!e||!!(null!=t&&t.length)||"osago"===a||"kasko"===a)).map(e=>({...e,offers:Array.isArray(e.offers)?e.offers:[]})):[],[e]),j=((e,t)=>{let a=(0,i.useRef)(null),n=(0,i.useRef)(new Map),[r,s]=(0,i.useState)(!1),l=e.length>0;return(0,i.useEffect)(()=>{let e=a.current;if(!e||r)return;if(typeof window.IntersectionObserver>"u")return void s(!0);let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(t.disconnect(),s(!0))},{rootMargin:"0px",threshold:0});return t.observe(e),()=>t.disconnect()},[l,r]),(0,i.useEffect)(()=>{if(!r)return;let a=window.matchMedia("(max-width: 768px)"),i=new Map([[a.media,a]]),s=e.flatMap(({banner:e,productType:a})=>{if(!(null!=e&&e.image))return[];let n=E[z(a)&&t?"xl":e.desktopBreakpoint??"xl"],r=i.get(n)??window.matchMedia(n);return i.set(n,r),[{image:e.image,mediaQuery:r}]}),l=()=>{a.matches||s.forEach(({image:e,mediaQuery:t})=>{((e,t,a)=>{let n=(t&&e.desktop.trim()?e.desktop:e.mobile).trim();if(!n||a.has(n))return;let r=new Image;a.set(n,r),r.src=n})(e,t.matches,n.current)})};return l(),i.forEach(e=>e.addEventListener("change",l)),()=>{i.forEach(e=>e.removeEventListener("change",l))}},[t,r,e]),a})(w,t),C=w.map(e=>({url:e.productType,title:e.name})),N=(null==(f=C[0])?void 0:f.url)??"",[A,T]=(0,i.useState)(v??N),I=A&&w.some(e=>e.productType===A)?A:N,B=w.find(e=>e.productType===I)??w[0];if(!B)return null;let q=(b=B.name,y=(x=eO[b.toLowerCase()])?`по ${x}`:b,$=u?`Лучшие предложения ${y}`:"Лучшие предложения",h??$),R=!!B.checkAllUrl,O=z(B.productType)?B.productType:null,P=O&&t?(0,r.jsx)(eB,{type:O,banner:B.banner,insurance:B.insurance,baseUrl:t,s3Assets:a,dataLayerPush:p,eventCategory:n,theme:m},O):null;return(0,r.jsxs)("section",{ref:j,className:(0,l.A)(eR.bestOffers,_,{[eR.singleProduct]:u,[eR.graySection]:k}),children:[(0,r.jsx)(s.m,{className:eR.container,children:(0,r.jsx)("div",{className:(0,l.A)(eR.titleWrapper,u&&eR.singleProductTitleWrapper),children:(0,r.jsx)(g,{className:(0,l.A)(eR.title,u&&eR.singleProductTitle),children:q})})}),!u&&(0,r.jsx)(L,{items:C,maxNumberOfLines:1,activeChipId:I,variant:k?"white":"gray",onClick:e=>{(0,o.p)(p,e),T(e);let t=w.find(t=>t.productType===e),a=t&&H(t.productType);a?p((0,c.c)({eventCategory:W(n),eventAction:`click_tab_${a}`})):p({event:"data-event",eventCategory:n,eventAction:"click_chip_top_predlozheniy_vybor",eventLabel:null==t?void 0:t.productType})}}),(0,r.jsxs)(s.m,{className:eR.container,children:[(0,r.jsxs)("div",{children:[P??(0,r.jsx)(ee,{offers:B.offers,banner:B.banner,dataLayerPush:p,eventCategory:n,productType:B.productType,theme:m,singleProduct:u},B.productType),B.hasWarning&&(0,r.jsx)("p",{className:eR.warning,children:B.warningCustomText??"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})]}),R&&(0,r.jsx)(d.C,{href:B.checkAllUrl??"",onClick:()=>(0,o.p)(p,B.productType),event:(0,c.c)({eventCategory:D(n,B.productType)??W(n),eventAction:"click_button_pokazat_vse",eventHref:B.checkAllUrl}),dataLayerPush:p,iconGrayBackground:!k,className:eR.allOffersLink,linkClassName:B.checkAllLinkClassName,children:"Все предложения"})]})]})}},40894:(e,t,a)=>{"use strict";a.d(t,{JournalV3:()=>f}),a(96090);var n=a(95155),r=a(12115),i=a(42687),s=a(29427),l=a(12228),o=a(8407),c=a(18271),d=a(31117);let p=(0,d.g)("journal-v3-post","sc"),u=Object.freeze({card:p,label:`${p}__label`,body:`${p}__body`,title:`${p}__title`,date:`${p}__date`}),h=({article:e,date:t,onClick:a})=>(0,n.jsxs)("a",{className:u.card,href:e.url,onClick:a,children:[(0,n.jsx)("span",{className:u.label,"aria-hidden":!e.label||void 0,children:e.label}),(0,n.jsxs)("span",{className:u.body,children:[(0,n.jsx)("span",{className:u.title,children:e.title}),(0,n.jsx)("span",{className:u.date,children:t})]})]}),m=(0,d.g)("journal-v3","sc"),_=Object.freeze({wrapper:m,container:`${m}__container`,title:`${m}__title`,content:`${m}__content`,grid:`${m}__grid`,checkAllLink:`${m}__check-all-link`}),g="homepage_journal",v={day:"numeric",month:"long",hour:"2-digit",minute:"2-digit",hourCycle:"h23"},f=({data:e,eventCategory:t=g,className:a})=>{var d;let[p,u]=(0,r.useState)("UTC");if((0,r.useEffect)(()=>{u(Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC")},[]),!(null!=(d=null==e?void 0:e.items)&&d.length))return null;let m=e.items.slice(0,4),f=e.urlText||"Читать больше статей";return(0,n.jsx)("section",{className:(0,s.A)(_.wrapper,a),children:(0,n.jsxs)(i.m,{className:_.container,children:[(0,n.jsx)("h2",{className:_.title,children:e.title}),(0,n.jsxs)("div",{className:_.content,children:[(0,n.jsx)("div",{className:_.grid,children:m.map(e=>{let a,r;return(0,n.jsx)(h,{article:e,date:((e,t)=>{let a=/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/.exec(e);if(!a)return"";let[,n,r,i,s,l,o]=a,c=Number(n),d=Number(r),p=Number(i),u=Number(s),h=Number(l),m=Number(o),_=new Date(Date.UTC(c,d-1,p,u,h,m));if(_.getUTCFullYear()!==c||_.getUTCMonth()!==d-1||_.getUTCDate()!==p||_.getUTCHours()!==u||_.getUTCMinutes()!==h||_.getUTCSeconds()!==m)return"";let g=new Map(new Intl.DateTimeFormat("ru-RU",{...v,timeZone:t}).formatToParts(_).map(({type:e,value:t})=>[e,t])),f=`${g.get("day")} ${g.get("month")}`,b=`${g.get("hour")}:${g.get("minute")}`;return`${f}, ${b}`})(e.dt,p),onClick:(a=e.title,r=e.url,()=>{(0,o.d)((0,l.c)({eventCategory:t,eventAction:"click_button_card",eventNameCard:a,eventHref:r}))})},`${e.url}-${e.title}`)})}),(0,n.jsx)(c.C,{href:e.url,event:(0,l.c)({eventCategory:t,eventAction:"click_button_chitat_bolshe_statey",eventNameCard:e.title,eventHref:e.url}),dataLayerPush:o.d,className:_.checkAllLink,children:f})]})]})})}},51514:(e,t,a)=>{"use strict";a.d(t,{S:()=>o});var n=a(95155),r=a(12115),i=a(29427);let s=(0,a(31117).g)("scroll-snap-slider","sc"),l={slider:s,list:`${s}__list`,item:`${s}__item`,pagination:`${s}__pagination`,dot:`${s}__dot`,activeDot:`${s}__dot--active`,disableFrom:{s:`${s}--disable-s`,m:`${s}--disable-m`,l:`${s}--disable-l`,xl:`${s}--disable-xl`}},o=({children:e,className:t,listClassName:a,itemClassName:s,disableFrom:o="m",gap:c,pagination:d=!1})=>{let p=(0,r.useRef)(null),[u,h]=(0,r.useState)([]),[m,_]=(0,r.useState)(0),g={"--scroll-snap-slider-gap":"number"==typeof c?`${c}px`:c};return(0,r.useEffect)(()=>{let e=p.current;if(!e||!d)return;let t=0,a=[],n=()=>{let t,n;return _((t=a,n=e.scrollLeft,t.reduce((e,a,r)=>Math.abs(a-n)<Math.abs(t[e]-n)?r:e,0)))},r=()=>{let t,r=getComputedStyle(e),i="contents"===r.display||"none"===r.scrollSnapType,s=e.getBoundingClientRect().left,l=parseFloat(r.scrollPaddingLeft)||0,o=Array.from(e.children,t=>t.getBoundingClientRect().left-s+e.scrollLeft-l);h(a=i?[]:(t=e.scrollWidth-e.clientWidth)<=1||0===o.length?[]:o.reduce((e,a)=>{let n=Math.max(0,Math.min(a,t)),r=e[e.length-1];return(void 0===r||Math.abs(n-r)>1)&&e.push(n),e},[])),n()},i=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(r)},s=new ResizeObserver(i);return s.observe(e),e.parentElement&&s.observe(e.parentElement),Array.from(e.children).forEach(e=>s.observe(e)),e.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",i),i(),()=>{cancelAnimationFrame(t),s.disconnect(),e.removeEventListener("scroll",n),window.removeEventListener("resize",i)}},[e,d,o,c]),(0,n.jsxs)("div",{className:(0,i.A)(l.slider,o&&l.disableFrom[o],t),style:g,children:[(0,n.jsx)("div",{ref:p,className:(0,i.A)(l.list,a),children:r.Children.map(e,e=>(0,n.jsx)("div",{className:(0,i.A)(l.item,s),children:e}))}),d&&u.length>1&&(0,n.jsx)("nav",{className:l.pagination,"aria-label":"Страницы предложений",children:u.map((e,t)=>(0,n.jsx)("button",{type:"button",className:(0,i.A)(l.dot,t===m&&l.activeDot),"aria-label":`Перейти к предложению ${t+1}`,"aria-current":t===m?"true":void 0,onClick:()=>{var t;let a;return a=window.matchMedia("(prefers-reduced-motion: reduce)").matches,void(null==(t=p.current)||t.scrollTo({left:e,behavior:a?"instant":"smooth"}))}},e))})]})}},53764:(e,t,a)=>{"use strict";a.d(t,{K:()=>l});var n=a(12115);let r={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},i={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},s=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function l({className:e,style:t,boxSize:a,size:o,onClick:c}){return n.createElement("span",{className:e,style:{...r,...c&&{cursor:"pointer"},...o&&{fontSize:`${o}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...c?{role:"button",tabIndex:"0",onClick:c}:{}},n.createElement(s,{viewBox:"0 0 24 24",style:i}))}l.displayName="IconFdsShieldCheckO"},60773:(e,t,a)=>{"use strict";a.d(t,{default:()=>r.a});var n=a(93098),r=a.n(n)},63867:(e,t,a)=>{"use strict";a.d(t,{OT:()=>b});let n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(e,t){var a;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(a=e,console.warn(`[destr] Dropping "${a}" key to prevent prototype pollution.`)):t}function l(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let a=e.trim();if(a.length<=9)switch(a.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!i.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||r.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,s)}return JSON.parse(e)}catch(a){if(t.strict)throw a;return e}}var o=a(65079);class c extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let d=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function p(e="GET"){return d.has(e.toUpperCase())}let u=new Set(["image/svg","application/xml","application/xhtml","application/html"]),h=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function m(e,t){if(t)if(Array.isArray(t))for(let a of t)await a(e);else await t(e)}let _=new Set([408,409,425,429,500,502,503,504]),g=new Set([101,204,205,304]),v=function(){if("u">typeof globalThis)return globalThis;if("u">typeof self)return self;if("u">typeof window)return window;if("u">typeof global)return global;throw Error("unable to locate global object")}(),f=v.fetch?(...e)=>v.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),b=function e(t={}){let{fetch:a=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function i(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!p(e.options.method);let a=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(a):_.has(a))){let a="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return a>0&&await new Promise(e=>setTimeout(e,a)),s(e.request,{...e.options,retry:t-1})}}let a=function(e){let t=e.error?.message||e.error?.toString()||"",a=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",r=`[${a}] ${JSON.stringify(n)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=new c(`${r}: ${i}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(s,t,{get:()=>e[t]});for(let[t,a]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,t,{get:()=>e.response&&e.response[a]});return s}(e);throw Error.captureStackTrace&&Error.captureStackTrace(a,s),a}let s=async function(e,s={}){var c;let d,_,v,f={request:e,options:(c=t.defaults,v=function(e,t,a){if(!t)return new a(e);let n=new a(t);if(e)for(let[t,r]of Symbol.iterator in e||Array.isArray(e)?e:new a(e))n.set(t,r);return n}(s?.headers??e?.headers,c?.headers,n),(c?.query||c?.params||s?.params||s?.query)&&(_={...c?.params,...c?.query,...s?.params,...s?.query}),{...c,...s,query:_,params:_,headers:v}),response:void 0,error:void 0};if(f.options.method&&(f.options.method=f.options.method.toUpperCase()),f.options.onRequest&&(await m(f,f.options.onRequest),f.options.headers instanceof n||(f.options.headers=new n(f.options.headers||{}))),"string"==typeof f.request&&(f.options.baseURL&&(f.request=(0,o.cV)(f.request,f.options.baseURL)),f.options.query&&(f.request=(0,o.VL)(f.request,f.options.query),delete f.options.query),"query"in f.options&&delete f.options.query,"params"in f.options&&delete f.options.params),f.options.body&&p(f.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(f.options.body)){let e=f.options.headers.get("content-type");"string"!=typeof f.options.body&&(f.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(f.options.body).toString():JSON.stringify(f.options.body)),e||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")}else("pipeTo"in f.options.body&&"function"==typeof f.options.body.pipeTo||"function"==typeof f.options.body.pipe)&&!("duplex"in f.options)&&(f.options.duplex="half");if(!f.options.signal&&f.options.timeout){let e=new r;d=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},f.options.timeout),f.options.signal=e.signal}try{f.response=await a(f.request,f.options)}catch(e){return f.error=e,f.options.onRequestError&&await m(f,f.options.onRequestError),await i(f)}finally{d&&clearTimeout(d)}if((f.response.body||f.response._bodyInit)&&!g.has(f.response.status)&&"HEAD"!==f.options.method){let e=(f.options.parseResponse?"json":f.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return h.test(t)?"json":"text/event-stream"===t?"stream":u.has(t)||t.startsWith("text/")?"text":"blob"}(f.response.headers.get("content-type")||"");switch(e){case"json":{let e=await f.response.text(),t=f.options.parseResponse||l;f.response._data=t(e);break}case"stream":f.response._data=f.response.body||f.response._bodyInit;break;default:f.response._data=await f.response[e]()}}return(f.options.onResponse&&await m(f,f.options.onResponse),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600)?(f.options.onResponseError&&await m(f,f.options.onResponseError),await i(f)):f.response},d=async function(e,t){return(await s(e,t))._data};return d.raw=s,d.native=(...e)=>a(...e),d.create=(a={},n={})=>e({...t,...n,defaults:{...t.defaults,...n.defaults,...a}}),d}({fetch:f,Headers:v.Headers,AbortController:v.AbortController})},65909:(e,t,a)=>{"use strict";a.d(t,{D:()=>g}),a(9009);var n=a(95155),r=a(12115),i=a(99700),s=a(42687),l=a(29427),o=a(14745),c=a(12228),d=a(18271),p=a(97571);let u=(0,a(31117).g)("faq-block-v3","sc"),h=Object.freeze({faqBlock:u,title:`${u}__title`,titleInner:`${u}__title--inner`,accordionItems:`${u}__accordion-items`,accordionItem:`${u}__accordion-item`,accordionItemContent:`${u}__accordion-item-content`,checkAllLink:`${u}__check-all-link`,states:{primary:`${u}--primary`,secondary:`${u}--secondary`,gray:`${u}--gray`}}),m=({question:e,eventCategory:t,dataLayerPush:a,className:s,isActive:c,...d})=>{let u=(0,r.useRef)(null);return(0,r.useEffect)(()=>{var e;null==(e=u.current)||e.toggleAttribute("inert",!c)},[c]),(0,n.jsx)(i.A,{...d,isActive:c,className:(0,l.A)(h.accordionItem,s),title:e.question,children:(0,n.jsx)("div",{ref:u,className:h.accordionItemContent,onClick:e=>{e.target instanceof HTMLAnchorElement&&a({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},onClickCapture:e=>{let t=e.target instanceof Element?e.target.closest("a[href]"):null;t&&e.currentTarget.contains(t)&&(0,o.p)(a)},children:"string"==typeof e.answer?(0,n.jsx)(p.F,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})})},_=({sectionTitle:e="Ответим на вопросы",innerTitle:t,questions:a=[],href:p,checkAllText:u,Link:_,className:g,eventCategory:v="cb-faq",multiple:f=!1,variant:b="secondary",dataLayerPush:x,tagTitle:y})=>{let $=Array.isArray(a)?a:[],[k,w]=(0,r.useState)([]);return $.length?(0,n.jsx)("section",{className:(0,l.A)(h.faqBlock,h.states[b],g),children:(0,n.jsxs)(s.m,{children:[t?(0,n.jsx)("h3",{className:(0,l.A)(h.title,h.titleInner),children:t}):(0,n.jsx)("h2",{className:h.title,children:e}),(0,n.jsx)("div",{className:h.accordionItems,children:(0,n.jsx)(i.n,{activeIndex:k,variant:"gray"===b?"primary":"secondary",withoutOutline:!0,onTabToggle:e=>{let t=e.find(e=>!k.includes(e)),a=t??k.find(t=>!e.includes(t));if(void 0===a)return;let n=String(a).replace(/^faq-v3-/,"");x((0,c.c)({eventCategory:"cb-faq"===v?"homepage_faq":v,eventAction:`click_dropdown_${(0,c.n)(n)}`,eventLabel:void 0!==t?"on":"off"})),w(e);let r=document.querySelector(`[data-accordion-index="${a}"]`);r&&setTimeout(()=>{let{top:e}=r.getBoundingClientRect();e<80&&r.scrollIntoView({behavior:"smooth",block:"start"})},300)},multiple:f,children:$.map(e=>{let t=`faq-v3-${e.question}`;return(0,n.jsx)(m,{id:t,question:e,dataLayerPush:x,eventCategory:v,tagTitle:y},t)})})}),p&&u&&(0,n.jsx)(d.C,{href:p,onClick:()=>(0,o.p)(x),event:{event:"data-event",eventCategory:v,eventAction:"сlick_link_answer-link",eventLabel:p},dataLayerPush:x,...null!=_?{Link:_}:{},iconGrayBackground:!0,className:h.checkAllLink,children:u})]})}):null};_.displayName="FAQBlockV3";let g=_},74157:(e,t,a)=>{"use strict";a.d(t,{ms:()=>n.D,n5:()=>n.g,pm:()=>n.a,uu:()=>n.h});var n=a(94605)},77318:(e,t,a)=>{"use strict";a.d(t,{R:()=>b}),a(98710);var n=a(95155),r=a(42687),i=a(29427),s=a(48822),l=a(31117),o=a(12228),c=a(8407),d=a(12115);let p=(0,l.g)("support-v3","sc"),u=Object.freeze({support:p,hideAppBannerOnMobile:`${p}--hide-app-banner-on-mobile`,title:`${p}__title`,cards:`${p}__cards`,card:`${p}__card`,appCard:`${p}__app-card`,contactCard:`${p}__contact-card`,assistantCard:`${p}__assistant-card`,socialCard:`${p}__social-card`,appTitle:`${p}__app-title`,phoneImageContainer:`${p}__phone-image-container`,phoneImage:`${p}__phone-image`,qrCode:`${p}__qr-code`,appCardLink:`${p}__app-card-link`,action:`${p}__action`,cardInfo:`${p}__card-info`,cardTitle:`${p}__card-title`,nonBreakingText:`${p}__non-breaking-text`,cardDescription:`${p}__card-description`,supportDescription:`${p}__support-description`,phones:`${p}__phones`,phone:`${p}__phone`,socialLinks:`${p}__social-links`,socialLink:`${p}__social-link`,socialIcon:`${p}__social-icon`}),h=({title:e,background:t,textColor:a,phoneImage:r,qrCode:i,action:l})=>{let o=t=>{t.stopPropagation(),(0,s.h)({eventCategory:"cb-support",eventActionType:s.D.banner,eventActionText:e,eventLabel:l.href})};return(0,n.jsxs)("article",{className:`${u.card} ${u.appCard}`,style:{"--support-v3-app-background":t,"--support-v3-app-text-color":a},children:[(0,n.jsx)("h3",{className:u.appTitle,dangerouslySetInnerHTML:{__html:e}}),(0,n.jsxs)("picture",{className:u.phoneImageContainer,children:[(0,n.jsx)("source",{media:"(min-width: 1280px)",srcSet:r.desktop}),(0,n.jsx)("img",{className:u.phoneImage,src:r.mobile,alt:r.alt,loading:"lazy"})]}),(0,n.jsx)("img",{className:u.qrCode,src:i.src,alt:i.alt,loading:"lazy"}),(0,n.jsx)("a",{className:u.appCardLink,href:l.href,"aria-label":`${l.label}: ${e}`,onClick:o}),(0,n.jsx)("a",{className:u.action,href:l.href,onClick:o,children:l.label})]})},m="AI-ассистент",_=({title:e,description:t,action:a})=>(0,n.jsxs)("article",{className:`${u.card} ${u.assistantCard}`,children:[(0,n.jsxs)("div",{className:u.cardInfo,children:[(0,n.jsx)("h3",{className:u.cardTitle,children:(e=>{let t=e.indexOf(m);if(-1===t)return e;let a=t+m.length;return(0,n.jsxs)(n.Fragment,{children:[e.slice(0,t),(0,n.jsx)("span",{className:u.nonBreakingText,children:m}),e.slice(a)]})})(e)}),(0,n.jsx)("p",{className:u.cardDescription,children:t})]}),(0,n.jsx)("a",{className:u.action,href:a.href,onClick:()=>{(0,c.d)((0,o.c)({eventCategory:"homepage_na_svyazi",eventAction:"click_button_zadat_vopros",eventNameCard:e,eventHref:a.href}))},children:a.label})]}),g=({title:e,description:t,phones:a,buttonLabel:r})=>{let i=(0,d.useCallback)(()=>{var t,a,n;null==(n=null==(a=null==(t=null==window?void 0:window.supportWidget)?void 0:t.craftTalk)?void 0:a.open)||n.call(a),(0,c.d)((0,o.c)({eventCategory:"homepage_na_svyazi",eventAction:"click_button_napisat_v_chat",eventNameCard:e,eventTargetId:"crafttalk"}))},[e]);return(0,n.jsxs)("article",{className:`${u.card} ${u.contactCard}`,children:[(0,n.jsxs)("div",{className:u.cardInfo,children:[(0,n.jsx)("h3",{className:u.cardTitle,children:e}),(0,n.jsx)("p",{className:u.supportDescription,children:t})]}),(0,n.jsx)("div",{className:u.phones,children:a.map(e=>(0,n.jsx)("a",{className:u.phone,href:e.href,onClick:()=>{var t;return t=e.label,void(0,c.d)((0,o.c)({eventCategory:"homepage_na_svyazi",eventAction:"click_link_phone",eventLabel:t.replace(/[^\d+]/g,"")}))},children:e.label},`${e.href}-${e.label}`))}),(0,n.jsx)("button",{className:u.action,type:"button",onClick:i,children:r})]})},v=({title:e,description:t,links:a})=>(0,n.jsxs)("article",{className:`${u.card} ${u.socialCard}`,children:[(0,n.jsxs)("div",{className:u.cardInfo,children:[(0,n.jsx)("h3",{className:u.cardTitle,children:e}),(0,n.jsx)("p",{className:u.cardDescription,children:t})]}),(0,n.jsx)("div",{className:u.socialLinks,children:a.map(e=>(0,n.jsxs)("a",{className:u.socialLink,href:e.href,onClick:()=>{let t;(t=(e=>{try{let t=new URL(e).hostname.toLowerCase();return"max.ru"===t||t.endsWith(".max.ru")?"click_messenger_max":"t.me"===t||"telegram.me"===t?"click_messenger_telegram":null}catch{return null}})(e.href))&&(0,c.d)((0,o.c)({eventCategory:"homepage_na_svyazi",eventAction:t}))},children:[(0,n.jsx)("img",{className:u.socialIcon,src:e.iconUrl,alt:e.iconAlt,loading:"lazy"}),(0,n.jsx)("span",{children:e.label})]},`${e.href}-${e.label}`))})]}),f=({className:e,title:t="Мы всегда на связи",hideAppBannerOnMobile:a=!1,appCard:s,supportCard:l,assistantCard:o,socialCard:c})=>s&&l&&o&&c?(0,n.jsx)("section",{className:(0,i.A)(u.support,e,{[u.hideAppBannerOnMobile]:a}),children:(0,n.jsxs)(r.m,{children:[(0,n.jsx)("h2",{className:u.title,children:t}),(0,n.jsxs)("div",{className:u.cards,children:[(0,n.jsx)(h,{...s}),(0,n.jsx)(g,{...l}),(0,n.jsx)(_,{...o}),(0,n.jsx)(v,{...c})]})]})}):null;f.displayName="SupportV3";let b=f},80874:()=>{},83702:()=>{},93098:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return d},getImageProps:function(){return c}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let i=a(42174),s=a(51314),l=a(59642),o=i._(a(60658));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let d=l.Image},96090:()=>{},97571:(e,t,a)=>{"use strict";a.d(t,{F:()=>c});var n=a(95155),r=a(29427),i=a(31117);let s=e=>{e.data.forEach((t,a)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[a-1].type&&(e.banner=e.data.splice(a-1,1)),"banner"===e.data[a+1].type&&(e.banner=e.data.splice(a+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(a,0,e.banner[0]))})},l=(0,i.g)("faq-content-block","sc"),o=Object.freeze({contentBlocks:`${l}__content-blocks`,blockLink:`${l}__block-link`,keynoteWrapper:`${l}__keynote-wrapper`,keynote:`${l}__keynote`,annotation:`${l}__annotation`,contentTableWrapper:`${l}__content-table-wrapper`}),c=({className:e,data:t})=>{let a,i,l,c;if(!Array.isArray(t))return null;let d=(a=[],i=1,s(l={data:t,headerBlocksCount:0,banner:[]}),s(l),c={},t.forEach(e=>{var t,r,s,l;let d,p=(d=(null==(t=e.data)?void 0:t.text)??(null==(r=e.data)?void 0:r.url)??(null==(s=e.data)?void 0:s.html)??(null!=(l=e.data)&&l.year?String(e.data.year):""),c[e.type]=(c[e.type]??0)+1,`${e.type}-${String(d).slice(0,80)}-${c[e.type]}`);switch(e.type){case"header":a.push((0,n.jsx)("h2",{id:`content_header_${i}`,role:"header",children:e.data.text||""},p)),i++;break;case"sub_header":a.push((0,n.jsx)("h3",{role:"sub-header",children:e.data.text||""},p));break;case"paragraph":a.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"paragraph"},p));break;case"link":a.push((0,n.jsx)("div",{className:o.blockLink,children:(0,n.jsx)("a",{target:"_blank",href:e.data.url||"",role:"link",rel:"noreferrer",children:e.data.text||""})},p));break;case"dossier":a.push((0,n.jsxs)("div",{children:[(0,n.jsx)("span",{role:"dossier-year",children:e.data.year||""}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"dossier-text"})]},p));break;case"html":a.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.html||""},role:"html"},p));break;case"annotation":a.push((0,n.jsx)("div",{className:o.annotation,dangerouslySetInnerHTML:{__html:e.data.text||""},role:"annotation"},p));break;case"company-annotation":a.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"company-annotation"},p));break;case"keynote":a.push((0,n.jsx)("div",{className:o.keynoteWrapper,children:(0,n.jsx)("p",{className:o.keynote,dangerouslySetInnerHTML:{__html:e.data.text||""},role:"keynote"})},p));break;case"image":a.push((0,n.jsx)("img",{src:e.data.url||"",alt:"image",loading:"lazy"},p))}}),a);return(0,n.jsx)("div",{className:(0,r.A)(o.contentBlocks,e),role:"blocks",children:d})}},98710:()=>{},99700:(e,t,a)=>{"use strict";a.d(t,{A:()=>v,n:()=>m});var n=a(95155),r=a(12115),i=a(29427),s=a(80441),l=a(52951),o=a(73324),c=a(25501);a(80874);let d=(0,l.g)("accordion"),p=(0,l.g)("accordion-item"),u=Object.freeze({accordionItem:p,accordionItemInner:`${p}__inner`,body:`${p}__body`,header:`${p}__header`,content:`${p}__content`,contentInner:`${p}__content-inner`,controlIcon:`${p}__control-icon`,titleWrapper:`${p}__title-wrapper`,title:`${p}__title`,icon:`${p}__icon`,toggleIcon:`${p}__toggle-icon`,subTitle:`${p}__subtitle`,caption:`${p}__caption`,states:{disabled:`${p}--disabled`,active:`${p}--active`,focused:`${p}--focused`,withControl:`${p}--with-control`,withIcon:`${p}--with-icon`}}),h=Object.freeze({accordion:d,withoutOutline:`${d}--without-outline`,variants:{primary:`${d}--primary`,secondary:`${d}--secondary`}}),m=(0,r.forwardRef)(({multiple:e=!1,children:t,activeIndex:a,defaultActiveIndex:l=[],className:o,variant:c="primary",withoutOutline:d=!1,style:p,dataQa:u,dataId:m,onTabToggle:_,...g},v)=>{let[f,b]=(0,r.useState)(l),x=(0,s.i)(a),y=x?a:f,$=(e,t,a)=>a?e.includes(t)?e.filter(e=>e!==t):[...e,t]:e.includes(t)?[]:[t];return(0,n.jsx)("div",{ref:v,className:(0,i.A)(o,h.accordion,h.variants[c],{[h.withoutOutline]:d}),style:p,...g,"data-id":m,"data-qa":u,children:r.Children.map(t,t=>(0,r.isValidElement)(t)?(0,r.cloneElement)(t,{isActive:y.includes(t.props.id),onToggle:a=>{var n=t.props.id;if(x){let t=$(y,n,e);null==_||_(t,a)}else b(t=>$(t,n,e))}}):t)})});function _(e){return r.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"m17.03 11.28-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 1 1 1.06-1.06L12 14.19l3.97-3.97a.75.75 0 1 1 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}m.displayName="Accordion";let g=e=>{let t=Array.from(document.querySelectorAll("[data-accordion-index]"));if(0===t.length)return;let a=t.findIndex(e=>e===document.activeElement),n=a;switch(e){case"next":n=(a+1)%t.length;break;case"previous":n=(a-1+t.length)%t.length}let r=0;for(;r++<t.length;){let a=t[n];if("true"!==a.getAttribute("data-disabled"))return void a.focus();n=(n+("next"===e?1:-1)+t.length)%t.length}},v=(0,r.forwardRef)(({id:e,title:t,tagTitle:a="span",subTitle:s,disabled:l=!1,isActive:d=!1,icon:p,controlIcon:h,errorMessage:m,children:v,className:f,style:b,dataQa:x,dataId:y,onControlClick:$,onToggle:k,...w},j)=>{let C=(0,r.useRef)(null),N=(0,r.useRef)(null),A=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=C.current,t=N.current;if(!e||!t)return;e.style.minHeight=d?t.scrollHeight+"px":"0",e.style.height=d?t.scrollHeight+"px":"0";let a=new ResizeObserver(()=>{d&&(e.style.minHeight=t.scrollHeight+"px",e.style.height=t.scrollHeight+"px")});return a.observe(t),()=>a.disconnect()},[d]);let T=!h&&!!p;return(0,n.jsxs)("div",{ref:j,className:(0,i.A)(f,u.accordionItem),style:b,...w,"data-id":y,"data-qa":x,children:[(0,n.jsx)("div",{className:(0,i.A)(u.accordionItemInner),children:(0,n.jsxs)("div",{className:(0,i.A)(u.body,[{[u.states.disabled]:l}]),children:[(0,n.jsxs)("button",{type:"button","aria-expanded":d,"aria-disabled":l,"data-disabled":l,"data-accordion-index":e,className:(0,i.A)(u.header,[{[u.states.active]:d}]),tabIndex:l?-1:0,onClick:l?void 0:k,ref:A,disabled:l,onKeyDown:e=>{if(!l)switch(e.key){case"Enter":case" ":e.preventDefault(),null==k||k(e);break;case"ArrowDown":e.preventDefault(),g("next");break;case"ArrowUp":e.preventDefault(),g("previous")}},children:[(0,n.jsxs)("div",{className:(0,i.A)(u.titleWrapper),children:[T&&(0,n.jsx)("span",{className:u.icon,children:p}),(0,n.jsx)(a,{className:(0,i.A)(u.title,{[u.states.withControl]:h}),children:t}),(0,n.jsx)(c.P,{className:(0,i.A)(u.toggleIcon,[{[u.states.active]:d},{[u.states.withControl]:h}]),children:(0,n.jsx)(_,{})}),h&&(0,n.jsx)(c.P,{className:u.controlIcon,onClick:e=>{var t;h&&e.stopPropagation(),null==(t=A.current)||t.blur(),null==$||$(e)},children:h})]}),s&&(0,n.jsx)("span",{className:(0,i.A)(u.subTitle,[{[u.states.withIcon]:T}]),children:s})]}),(0,n.jsx)("div",{className:(0,i.A)(u.content),style:{overflow:"hidden"},"aria-hidden":!d,ref:C,children:(0,n.jsx)("div",{className:u.contentInner,ref:N,children:v})})]})}),m&&(0,n.jsx)(o.C,{withoutIcon:!0,state:"error",text:m})]})});v.displayName="AccordionItem"}}]);
//# debugId=58b04ad0-8af2-41a4-9307-b4feab6a11a1