!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"fb5f0903e703b2ddb94431eacd9f88bace2e1245"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9055bca2-eb0b-4d18-8ca0-db2009182470",e._sentryDebugIdIdentifier="sentry-dbid-9055bca2-eb0b-4d18-8ca0-db2009182470")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2284],{2305:(e,t,n)=>{"use strict";n.d(t,{a:()=>g});var a=n(95155),r=n(12115),i=n(95810),l=n(29427),o=n(26729),s=n(17200),c=n(52951),d=n(61485),u=n(70735),p=n(5140),h=n(25501);n(17055);let m=(0,c.g)("modal"),_=Object.freeze({modal:m,drawer:`${m}--drawer`,overlay:`${m}__overlay`,overlayDrawer:`${m}__overlay--drawer`,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`}),v=({primaryBtnText:e,onPrimary:t,secondaryBtnText:n,onSecondary:r,thirdBtnText:i,onThird:o,description:c,children:u,noContent:p,dataQa:h})=>(0,a.jsxs)("div",{"data-qa":(0,s.g)(`${h}-footer`,!!h),className:(0,l.A)(_.footer,{[_.noContent]:p}),children:[!p&&(0,a.jsx)("div",{className:(0,l.A)(_.divider,_.dividerTop)}),u||(0,a.jsxs)("div",{className:_.footerContainer,children:[i&&(0,a.jsx)(d.a,{dataQa:(0,s.g)(`${h}-footer-third-btn`,!!h),label:i,variant:"secondary",size:"s",className:_.footerBtn,onClick:o}),n&&(0,a.jsx)(d.a,{dataQa:(0,s.g)(`${h}-footer-secondary-btn`,!!h),label:n,variant:"secondary",size:"s",className:_.footerBtn,onClick:r}),e&&(0,a.jsx)(d.a,{dataQa:(0,s.g)(`${h}-footer-primary-btn`,!!h),label:e,size:"s",className:_.footerBtn,onClick:t})]}),c&&(0,a.jsx)("span",{"data-qa":(0,s.g)(`${h}-footer-description`,!!h),className:_.footerDescription,children:c})]}),f=({text:e,title:t,subtitle:n,align:r="left",backBtnVariant:i,onBack:o,onClose:c,noContent:d,dataQa:m,withoutCloseBtn:v=!1})=>(0,a.jsxs)("div",{"data-qa":(0,s.g)(`${m}-header`,!!m),className:(0,l.A)(_.header,{[_.headerStates.centered]:"center"===r||!!i,[_.headerStates.withLongBtn]:"long"===i,[_.headerStates.defaultHeight]:!e&&!t&&!n}),children:[e&&(0,a.jsx)("span",{"data-qa":(0,s.g)(`${m}-header-text`,!!m),className:_.headerText,children:e}),t&&(0,a.jsx)("span",{"data-qa":(0,s.g)(`${m}-header-title`,!!m),className:_.headerTitle,children:t}),n&&(0,a.jsx)("span",{"data-qa":(0,s.g)(`${m}-header-subtitle`,!!m),className:_.headerSubtitle,children:n}),!v&&(0,a.jsx)("button",{"data-qa":(0,s.g)(`${m}-header-close`,!!m),type:"button",className:_.closeIcon,onClick:c,children:(0,a.jsx)(h.P,{children:(0,a.jsx)(p.S,{})})}),i&&(0,a.jsxs)("button",{"data-qa":(0,s.g)(`${m}-header-back`,!!m),type:"button",className:_.backButton,onClick:o,children:[(0,a.jsx)(h.P,{children:(0,a.jsx)(u.S,{})}),"long"===i&&(0,a.jsx)("span",{className:_.backButtonText,children:"Назад"})]}),!d&&(0,a.jsx)("div",{className:(0,l.A)(_.divider,_.dividerBottom)})]}),g=(0,r.forwardRef)(({header:e,footer:t,open:n=!1,size:c="m",variant:d="modal",noPadding:u=!1,height:p="full",onClose:h,children:m,className:g,style:b,dataQa:x,dataId:y,dismissDisabled:$=!1,...w},k)=>{let[C,j]=(0,r.useState)(!1),[N,T]=(0,r.useState)(!1),[A,L]=(0,r.useState)(null),I=(0,i.SV)([k,L]),S=(0,r.useRef)(null),E=(0,r.useRef)(null),z=(0,r.useCallback)(()=>{null!==S.current&&(cancelAnimationFrame(S.current),S.current=null),null!==E.current&&(clearTimeout(E.current),E.current=null)},[]);(0,r.useEffect)(()=>(z(),n?j(!0):(T(!1),E.current=setTimeout(()=>{E.current=null,j(!1)},300)),z),[n,z]),(0,r.useEffect)(()=>{if(n&&A)return S.current=requestAnimationFrame(()=>{S.current=requestAnimationFrame(()=>{S.current=null,T(!0)})}),()=>{null!==S.current&&(cancelAnimationFrame(S.current),S.current=null)}},[n,A]);let B=()=>{z(),T(!1),E.current=setTimeout(()=>{E.current=null,null==h||h(),j(!1)},300)},{context:P}=(0,i.we)({open:C,onOpenChange:e=>{e||B()}}),R=(0,i.s9)(P,{outsidePressEvent:"mousedown",outsidePress:!$,escapeKey:!$}),O=(0,i.It)(P,{role:"dialog"}),{getFloatingProps:q}=(0,i.bv)([R,O]),[F,M]=(0,r.useState)(!1),W=(0,r.useCallback)(e=>{e&&new ResizeObserver(()=>{M(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return C?(0,a.jsx)(i.XF,{id:"drawer"===d?o.D:o.M,children:(0,a.jsx)(i.zR,{lockScroll:!0,style:{overflow:"hidden"},className:(0,l.A)(_.overlay,{[_.overlayOpen]:N,[_.overlayDrawer]:"drawer"===d}),children:(0,a.jsx)(i.s3,{context:P,children:(0,a.jsxs)("div",{ref:I,className:(0,l.A)(_.modal,_.size[c],_.height[p],{[_.drawer]:"drawer"===d,[_.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[_.open]:N},g),style:b,...q(),...w,"data-id":y,"data-qa":x,children:[(0,a.jsx)(f,{...e,dataQa:x,noContent:!m,onClose:B}),m&&(0,a.jsx)("div",{"data-qa":(0,s.g)(`${x}-content`,!!x),ref:W,className:(0,l.A)(_.content,{[_.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[_.withoutPadding]:u,[_.withScroll]:F}),children:m}),((null==t?void 0:t.primaryBtnText)||(null==t?void 0:t.children))&&(0,a.jsx)(v,{...t,dataQa:x,noContent:!m})]})})})},d):null});g.displayName="Modal"},9009:()=>{},12228:(e,t,n)=>{"use strict";n.d(t,{a:()=>l,c:()=>s,n:()=>o});var a=n(93371);let r="undefined",i=/^(utm_|gclid$|fbclid$|yclid$|gbraid$|wbraid$|_openstat$|roistat$|mc_cid$|mc_eid$|license$)/i,l=e=>{let t=typeof DOMParser>"u"?(e=>{let t=[],n=-1,a=0;for(let r=0;r<e.length;r+=1)"<"===e[r]&&-1===n&&(n=r),">"===e[r]&&-1!==n&&(t.push(e.slice(a,n)," "),a=r+1,n=-1);return t.push(e.slice(a)),t.join("")})(e).replace(/&nbsp;|&#160;|&#xA0;/gi," "):new DOMParser().parseFromString(e,"text/html").body.textContent??"";return(0,a.t)(t.replace(/\s+/g," ").trim()).toLowerCase()||r},o=e=>{let t=l(e).replace(/[^a-z0-9]+/g,"_"),n=0,a=t.length;for(;n<a&&"_"===t[n];)n+=1;for(;a>n&&"_"===t[a-1];)a-=1;return t.slice(n,a)},s=({eventCategory:e,eventAction:t,eventLabel:n,eventNameCard:a,eventHref:o,eventTargetId:s})=>({event:"data-event",eventCategory:e,eventAction:t,eventLabel:n?l(n):r,eventNameCard:a?l(a):r,eventUrl:s?l(s):(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}})(o)})},12519:()=>{},17055:()=>{},30548:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});let a=e=>{let t=new Set;return e.map(e=>{let n=e,a=1;for(;t.has(n);)a+=1,n=`${e}-${a}`;return t.add(n),n})}},33764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p}),n(83702);var a=n(95155),r=n(59092),i=n(42687),l=n(29427),o=n(51514),s=n(14745),c=n(8407);let d=(0,n(31117).g)("partner-trust","sc"),u=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`}),p=({data:e,className:t})=>{var n;return null!=(n=null==e?void 0:e.partners)&&n.length?(0,a.jsx)("section",{className:(0,l.A)(u.wrapper,t),children:(0,a.jsxs)(i.m,{className:u.container,children:[(0,a.jsx)("h2",{className:u.title,children:e.title}),(0,a.jsx)(o.S,{className:u.partners,listClassName:u.list,itemClassName:u.slide,disableFrom:"m",gap:12,children:e.partners.map(e=>{let t=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:u.icon,src:e.icon,alt:"",loading:"lazy"}),(0,a.jsxs)("span",{className:u.content,children:[(0,a.jsx)("span",{className:u.partnerTitle,children:e.title}),e.url&&(0,a.jsx)("span",{className:u.arrow,"aria-hidden":"true",children:(0,a.jsx)(r.K,{size:24})})]})]});return e.url?(0,a.jsx)("a",{className:(0,l.A)(u.partner,u.partnerLink),href:e.url,onClick:()=>(0,s.p)(c.d),children:t},`${e.url}-${e.title}`):(0,a.jsx)("div",{className:u.partner,children:t},e.title)})})]})}):null}},34891:(e,t,n)=>{"use strict";let a;n.d(t,{dX:()=>eq}),n(12519);var r=n(95155),i=n(12115),l=n(42687),o=n(29427),s=n(14745),c=n(12228),d=n(18271),u=n(53294),p=n(48822),h=n(69478),m=n(31117),_=n(51514),v=n(59092),f=n(93371),g=n(61193),b=n(48675),x=n(33151),y=n(65079),$=n(52159),w=n(66943),k=n(57471),C=n(53764);let j=(0,m.g)("best-offers-v3-navigation-chips","sc"),N=Object.freeze({wrapper:`${j}__wrapper`,gray:`${j}__variantGray`,white:`${j}__variantWhite`,scroller:`${j}__scroller`,alignmentContainer:`${j}__alignmentContainer`,container:`${j}__container`,pendingLayout:`${j}__container--pending`,chip:`${j}__chip`,active:`${j}__chip--active`,more:`${j}__chip--more`,pendingMore:`${j}__chip--pendingMore`,hidden:`${j}__hidden`,label:`${j}__label`}),T=({chip:e,hidden:t,activeChipId:n,onClick:a,refCallback:i})=>{let l=(0,o.A)(N.chip,t&&N.hidden,e.url===n&&N.active),s=(0,r.jsx)("span",{className:N.label,children:e.title});return a?(0,r.jsx)("button",{type:"button",className:l,ref:i,"aria-pressed":e.url===n,tabIndex:t?-1:void 0,onClick:()=>a(e.url),children:s}):(0,r.jsx)("a",{href:e.url,className:l,ref:i,tabIndex:t?-1:void 0,onClick:()=>(0,h.h)(p.D.chip,e.title,`${e.title}_${e.url}`),children:s})},A=(e,t,n,a)=>e===t&&n>0?n+a:0,L=({chipWidths:e,containerWidth:t,gap:n,maxLines:a,reservedLastLineWidth:r})=>{let i=1,l=0,o=0;for(let s of e){let e=A(i,a,r,n),c=0===l?s:l+n+s;if(c+e<=t-.5){l=c,o++;continue}let d=i+1;if(d>a||s+A(d,a,r,n)>t-.5)break;i=d,l=s,o++}return o},I=({items:e=[],variant:t,className:n,activeChipId:a,onClick:s,maxNumberOfLines:c})=>{let d=(0,u.qF)("xl"),m=(0,i.useRef)(null),_=(0,i.useRef)(null),v=(0,i.useRef)({}),[f,g]=(0,i.useState)(!1),[b,x]=(0,i.useState)(!1),[y,$]=(0,i.useState)(e.length),[w,k]=(0,i.useState)(!1),C=1===c,j=d?f:b,A=Math.max(c??0,0),I=d?A:2*!!C,S=C&&!j&&!w&&e.length>0,E=j||0===I,z=!E&&(y<e.length||S),B=(0,i.useCallback)(()=>{var t,n;let a=m.current;if(!a)return;let r=()=>{$(e.length),k(!0)};if(j||0===I)return r();let i=a.getBoundingClientRect().width,l=e.map(e=>{var t;return(null==(t=v.current[e.url])?void 0:t.getBoundingClientRect().width)??0}),o=(null==(t=_.current)?void 0:t.getBoundingClientRect().width)??0,s=i<=0||o<=0||l.some(e=>e<=0);if(s&&C)return;if(s)return r();let c=(({chipWidths:e,containerWidth:t,gap:n,maxLines:a,moreWidth:r})=>{let i={chipWidths:e,containerWidth:t,gap:n,maxLines:a},l=L({...i,reservedLastLineWidth:0});return l===e.length?l:L({...i,reservedLastLineWidth:r})})({chipWidths:l,containerWidth:i,gap:parseFloat(getComputedStyle(a).columnGap)||8,maxLines:I,moreWidth:o});e.findIndex(e=>v.current[e.url]===document.activeElement)>=c&&(null==(n=_.current)||n.focus({preventScroll:!0})),$(c),k(!0)},[j,C,e,I]);return(0,i.useLayoutEffect)(()=>{let e=m.current;if(!e)return;let t=0,n=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(B)},a=new ResizeObserver(n);return a.observe(e),Array.from(e.children).forEach(e=>a.observe(e)),n(),()=>{cancelAnimationFrame(t),a.disconnect()}},[B]),(0,r.jsx)("div",{className:(0,o.A)(n,N.wrapper,t&&N[t]),children:(0,r.jsx)("div",{className:N.scroller,children:(0,r.jsx)(l.m,{className:N.alignmentContainer,children:(0,r.jsxs)("div",{ref:m,className:(0,o.A)(N.container,S&&N.pendingLayout),children:[e.map((e,t)=>(0,r.jsx)(T,{chip:e,hidden:!E&&w&&t>=y,activeChipId:a,onClick:s,refCallback:t=>{v.current[e.url]=t}},e.url)),(0,r.jsx)("button",{type:"button",ref:_,className:(0,o.A)(N.chip,N.more,!z&&N.hidden,S&&N.pendingMore),"aria-label":"Ещё","aria-hidden":!z||void 0,tabIndex:z?void 0:-1,onClick:()=>{if((0,h.h)(p.D.chip,"Ещё"),d)return g(!0);x(!0)},children:(0,r.jsx)("span",{className:N.label,children:"Ещё"})})]})})})})};var S=((a=S||{}).light="light",a.gray="gray",a);let E=e=>"kasko"===e||"osago"===e,z={m:"(min-width: 768px)",l:"(min-width: 1024px)",xl:"(min-width: 1280px)"},B=(0,m.g)("best-offers-v3-banner","sc"),P=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:n,hasImage:a,isGrayTheme:i,shouldMoveIconRight:l,handleButtonClick:s})=>e.length>0?(0,r.jsxs)("a",{href:t,className:P.button,onClick:s,"aria-label":e,children:[(0,r.jsx)("span",{className:P.buttonText,children:e}),(0,r.jsx)("span",{className:P.buttonIcon,"aria-hidden":!0,children:(0,r.jsx)(v.K,{size:24})})]}):(0,r.jsx)("a",{href:t,"aria-label":"Подробнее о предложении",onClick:s,className:(0,o.A)(P.icon,{[P.iconBlack]:a||i&&!(null!=n&&n.includes("color-white")),[P.iconWhite]:!a&&i&&!!(null!=n&&n.includes("color-white")),[P.iconRight]:l}),children:(0,r.jsx)(v.K,{})}),O=({title:e,description:t,chips:n,contentTextColor:a})=>(0,r.jsxs)("div",{className:P.content,children:[(0,r.jsx)("div",{className:P.header,children:(0,r.jsx)("span",{className:P.title,style:{color:a},dangerouslySetInnerHTML:{__html:e}})}),t&&(0,r.jsx)("span",{className:P.description,style:{color:a},dangerouslySetInnerHTML:{__html:t}}),n&&n.length>0&&(0,r.jsx)("div",{className:P.chips,children:n.map(e=>(0,r.jsx)("span",{className:P.chip,children:e.label},e.label))})]}),q=({image:e,title:t,desktopBreakpoint:n})=>e?(0,r.jsxs)("picture",{className:P.image,children:[(0,r.jsx)("source",{srcSet:e.desktop,media:z[n]}),(0,r.jsx)("img",{src:e.mobile,width:348,height:220,alt:`Баннер ${t}`,loading:"lazy"})]}):null,F=({title:e,image:t,url:n,description:a,backgroundColor:i,textColor:l,wide:s,compact:c=!1,theme:d,handleBannerDataLayerPush:u,className:p,button:h,chips:m,desktopBreakpoint:_="xl"})=>{var v;let f=d===S.gray,g=(null==h?void 0:h.label.trim())??"",b=null==(v=null==h?void 0:h.link)?void 0:v.trim(),x=b&&b.length>0?b:n,y=(null==l?void 0:l.trim())||void 0,$=null==i?void 0:i.base,w=f?"var(--color-white)":"var(--color-gray-400)",k=null!=$&&$.trim()?$:w,C=null==i?void 0:i.hover,j=null!=C&&C.trim()?C:k,N=null==h?void 0:h.background,T=null==h?void 0:h.textColor,A=0===g.length&&!t,L={"--bg-base":k,"--bg-hover":j,"--button-bg":null!=N&&N.trim()?N:"var(--color-black-500)","--button-text":null!=T&&T.trim()?T:"var(--color-white)"};return(0,r.jsxs)("div",{className:(0,o.A)(P.wrapper,p,P.desktopBreakpointWrapper[_],{[P.wideWrapper]:s,[P.compact]:c}),style:L,onClick:()=>{u(n,"banner"),window.open(n,"_blank")},children:[(0,r.jsx)(O,{title:e,description:a,chips:m,contentTextColor:y}),(0,r.jsx)(q,{image:t,title:e,desktopBreakpoint:_}),(0,r.jsx)(R,{buttonLabel:g,buttonUrl:x,contentTextColor:y,hasImage:!!t,isGrayTheme:f,shouldMoveIconRight:A,handleButtonClick:e=>{e.preventDefault(),e.stopPropagation(),u(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 n=H(t);return n?`${W(e)}_${n}`: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:n,iconClassName:a})=>{let l=(0,u.qF)("xl"),[o,s]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),[p,h]=(0,i.useState)(),m=(0,i.useRef)(null),_=(0,r.jsx)(x.k,{size:n,className:a});if(l){let t=(0,r.jsx)("span",{className:V.tooltipContent,dangerouslySetInnerHTML:{__html:e}});return(0,r.jsx)(g.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),s(!0)},children:_}),c&&(0,r.jsx)(b.P,{children:(0,r.jsx)(b.U,{isOpen:o,onClose:()=>{s(!1)},title:t,children:(0,r.jsx)("div",{className:V.popupContent,style:{fontFamily:p},dangerouslySetInnerHTML:{__html:e}})})})]})},K=({title:e,value:t,tooltip:n,textColor:a,unitsAsColumn:i,isTitleUnit:l})=>(0,r.jsxs)("div",{className:(0,o.A)(V.unit,{[V.unitRow]:i}),children:[(0,r.jsxs)("div",{className:V.unitTitleWrapper,children:[(0,r.jsx)("span",{className:V.unitTitle,children:e}),n&&(0,r.jsx)(G,{html:n,title:e,iconSize:12,iconClassName:V.tooltipIcon})]}),(0,r.jsx)("span",{className:(0,o.A)(V.unitValue,{[V.titleUnitValue]:l}),style:{color:a},children:t})]}),J=({title:e,value:t,tooltip:n,textColor:a})=>(0,r.jsxs)("div",{className:V.headlineWrapper,children:[(0,r.jsx)("span",{className:V.headline,style:{color:a},children:t}),n&&(0,r.jsx)(G,{html:n,title:e,iconSize:16,iconClassName:V.headlineTooltipIcon})]}),Q=({tags:e,isGrayTheme:t})=>{let n=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:n,rounded:!0},e.label))})},Y=({companyName:e,name:t,url:n,depositLinkParams:a,logo:i,units:l,tags:d,additionalButton:u,unitsAsColumn:p,dataLayerPush:h,eventCategory:m,productType:_,theme:v,buttonClassName:g,buttonLabel:b,eventValueByUnitTitle:x})=>{var $;let w=v===S.gray,[k,...C]=l,j=((e,t,n)=>{if("deposits"!==t||!n)return e;let{amount:a,termDays:r}=n;if(!Number.isFinite(a)||a<=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:a,d_period:r}))})(n,_,a),N=C.slice(0,2),T=null==b?void 0:b.trim(),A="deposits"===_||n.includes("/vklady/")?"Открыть вклад":"Подробнее",L=T&&T.length>0?T:A,I=null==($=null==u?void 0:u.text)?void 0:$.trim(),E=!!(null!=d&&d.length),z=!!(null!=I&&I.length);return(0,r.jsxs)("div",{className:(0,o.A)(V.wrapper,{[V.whiteWrapper]:w,[V.wrapperWithExtraContent]:E}),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})]})]}),z&&(0,r.jsx)("div",{className:V.additionalChip,children:I})]}),k&&(0,r.jsx)(J,{title:k.title,value:k.value,tooltip:k.tooltip,textColor:k.textColor}),(0,r.jsx)("div",{className:(0,o.A)(V.units,{[V.unitsColumn]:p}),children:N.map(e=>(0,r.jsx)(K,{title:e.title,value:e.value,tooltip:e.tooltip,textColor:e.textColor,unitsAsColumn:p},`${e.title}-${e.value}`))}),(0,r.jsxs)("div",{className:V.bottomBlock,children:[E&&d&&(0,r.jsx)(Q,{tags:d,isGrayTheme:w}),(0,r.jsx)("a",{className:(0,o.A)(V.button,g),href:j,"aria-label":`${L}: ${t}, ${e}`,onClick:()=>(n=>{(0,s.p)(h,_);let a=D(m,_);if(a)return void h((0,c.c)({eventCategory:a,eventAction:"click_button_otkryt",eventNameCard:`${e} ${t}`,eventHref:j}));let r={event:"data-event",eventCategory:m,eventAction:`click_button_${(0,f.t)(n)}_${_}`,eventLabel:(0,f.t)(`${e}_${t}`)};if(!x)return void h(r);let i=l.find(e=>e.title.toLowerCase()===x.toLowerCase());i&&(r.eventValue=(0,f.t)(i.value)),h(r)})("podrobnee_o_kartochke_iz"),children:(0,r.jsx)("span",{className:V.buttonText,children:L})})]})]})},Z=(0,m.g)("best-offers-v3-offers-list","sc"),X=Object.freeze({offersList:Z,wrapper:`${Z}__wrapper`,withBanner:`${Z}__wrapper--withBanner`,shortListWithBanner:`${Z}__wrapper--shortListWithBanner`,singleRowWithBanner:`${Z}__wrapper--singleRowWithBanner`,singleProduct:`${Z}__wrapper--singleProduct`,slide:`${Z}__slide`,bannerOnly:`${Z}__wrapper--bannerOnly`,cards:`${Z}__cards`,offerItem:`${Z}__offerItem`,compact:`${Z}__offerItem--compact`,bannerItem:`${Z}__bannerItem`}),ee=({offers:e,banner:t,dataLayerPush:n,eventCategory:a,productType:i,theme:l,singleProduct:d})=>{let u=e.slice(0,6),p=!!t&&u.length>0&&u.length<4,h=u.map(e=>(0,r.jsx)("div",{className:(0,o.A)(X.offerItem,{[X.compact]:d}),children:(0,r.jsx)(Y,{...e,dataLayerPush:n,eventCategory:a,productType:i,theme:l})},`offer-${e.id}`));return t&&h.splice(Math.min(4,h.length),0,(0,r.jsx)("div",{className:X.bannerItem,children:(0,r.jsx)(F,{...t,compact:!0,handleBannerDataLayerPush:e=>{(0,s.p)(n,i);let r=D(a,i);r?n((0,c.c)({eventCategory:r,eventAction:"click_mini_banner",eventNameCard:null==t?void 0:t.title,eventHref:e})):n({event:"data-event",eventCategory:a,eventAction:"click_bnr_banner_top_predlozheniy",eventLabel:i})},theme:l})},"banner")),(0,r.jsx)(_.S,{className:(0,o.A)(X.wrapper,{[X.withBanner]:!!t,[X.shortListWithBanner]:p,[X.singleRowWithBanner]:!!t&&u.length<=2,[X.bannerOnly]:!!t&&0===u.length,[X.singleProduct]:d}),itemClassName:X.slide,disableFrom:"xl",gap:12,pagination:!0,children:h},i)},et={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},en={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ea=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:n,size:a,onClick:r}){return i.createElement("span",{className:e,style:{...et,...r&&{cursor:"pointer"},...a&&{fontSize:`${a}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},i.createElement(ea,{viewBox:"0 0 24 24",style:en}))}er.displayName="IconFdsCalendarO";let ei={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},el={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},eo=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 es({className:e,style:t,boxSize:n,size:a,onClick:r}){return i.createElement("span",{className:e,style:{...ei,...r&&{cursor:"pointer"},...a&&{fontSize:`${a}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},i.createElement(eo,{viewBox:"0 0 24 24",style:el}))}es.displayName="IconFdsCheckCircleO";let ec={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ed={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},eu=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 ep({className:e,style:t,boxSize:n,size:a,onClick:r}){return i.createElement("span",{className:e,style:{...ec,...r&&{cursor:"pointer"},...a&&{fontSize:`${a}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...r?{role:"button",tabIndex:"0",onClick:r}:{}},i.createElement(eu,{viewBox:"0 0 24 24",style:ed}))}ep.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 ev({className:e,style:t,boxSize:n,size:a,onClick:r}){return i.createElement("span",{className:e,style:{...eh,...r&&{cursor:"pointer"},...a&&{fontSize:`${a}px`},...n&&{width:`${n}px`,height:`${n}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}))}ev.displayName="IconFdsUserCircleO";let ef=(0,m.g)("best-offers-v3-osago-tab","sc"),eg=Object.freeze({osagoTab:ef,wrapper:`${ef}__wrapper`,promo:`${ef}__promo`,card:`${ef}__card`,whiteCard:`${ef}__card--white`,cardHeader:`${ef}__cardHeader`,cardBody:`${ef}__cardBody`,cardFooter:`${ef}__cardFooter`,heading:`${ef}__heading`,fields:`${ef}__fields`,inputWrapper:`${ef}__inputWrapper`,segment:`${ef}__segment`,segmentButton:`${ef}__segmentButton`,segmentButtonActive:`${ef}__segmentButton--active`,input:`${ef}__input`,noNumberLink:`${ef}__noNumberLink`,button:`${ef}__button`,note:`${ef}__note`,noteIcon:`${ef}__noteIcon`,noteText:`${ef}__noteText`,insurers:`${ef}__insurers`,insurersImage:`${ef}__insurersImage`,insurersCaption:`${ef}__insurersCaption`,tips:`${ef}__tips`,tipsTitle:`${ef}__tipsTitle`,tipsList:`${ef}__tipsList`,tip:`${ef}__tip`,tipIcon:`${ef}__tipIcon`,tipContent:`${ef}__tipContent`,tipTitle:`${ef}__tipTitle`,tipText:`${ef}__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:"Рассчитайте стоимость ОСАГО"},ew={kasko:"Рассчитайте стоимость КАСКО",osago:"Рассчитайте стоимость ОСАГО"},ek="widgets/BestOffersV3",eC={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:"Если вы пользуетесь автомобилем только летом, оформляйте полис на этот период"}]}}},ej={"check-circle":es,"shield-check":C.K,calendar:er,"user-circle":ev,history:ep},eN=Object.fromEntries(ey.map(e=>[e.value,e])),eT={auto:{mask:"a 000 aa 00[0]",placeholder:"A 000 AA 000"},moto:{mask:"0000 aa 00[0]",placeholder:"0000 AA 000"}},eA="АВЕКМНОРСТУХ",eL=RegExp(`[${eA}]`,"i"),eI=RegExp(`[^0-9${eA}]`,"gi"),eS=({title:e,items:t,isGrayTheme:n})=>(0,r.jsxs)("div",{className:(0,o.A)(eg.card,eg.tips,{[eg.whiteCard]:n}),children:[(0,r.jsx)("h3",{className:eg.tipsTitle,children:e}),(0,r.jsx)("ul",{className:eg.tipsList,children:t.map(e=>{let t=ej[e.icon];return(0,r.jsxs)("li",{className:eg.tip,children:[(0,r.jsx)("span",{className:eg.tipIcon,"aria-hidden":!0,children:t&&(0,r.jsx)(t,{size:22})}),(0,r.jsxs)("div",{className:eg.tipContent,children:[(0,r.jsx)("p",{className:eg.tipTitle,children:e.title}),(0,r.jsx)("p",{className:eg.tipText,children:e.text})]})]},e.title)})})]}),eE=({image:e,caption:t})=>(0,r.jsxs)("div",{className:eg.insurers,children:[e&&(0,r.jsxs)("picture",{className:eg.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:eg.insurersCaption,children:t})]}),ez=(e,t)=>(null==e?void 0:e.trim())||t,eB=({type:e,baseUrl:t,s3Assets:n,banner:a,insurance:l,dataLayerPush:d,eventCategory:u,theme:p})=>{var h,m,_,v,g,b,x,$,j;let N,T,A,L,I,E="osago"===e,z=p===S.gray,B=(0,y.oq)(t,"osago"),P=(0,y.oq)(B,"step-car"),R=(0,y.oq)(t,"kasko"),O=(0,y.oq)(R,"vehicle"),q=E?P:O,M=E?B:R,H=(null==(h=null==a?void 0:a.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:Y}=eT[V],Z=ew[e],{insurers:X,note:ee,tips:et}=(N=eC[e],T=(null==(b=null==l?void 0:l.tips)?void 0:b.items)??[],{insurers:{image:(L=null==(A=null==(j=null==l?void 0:l.insurers)?void 0:j.image)?void 0:A.mobile.trim(),I=null==A?void 0:A.desktop.trim(),L&&I?{mobile:L,desktop:I}:n.trim()?{mobile:(0,y.oq)(n,ek,"insurance-logos-m.webp"),desktop:(0,y.oq)(n,ek,"insurance-logos-d.webp")}:void 0),caption:ez(null==(x=null==l?void 0:l.insurers)?void 0:x.caption,N.caption)},note:ez(null==l?void 0:l.note,N.note),tips:{title:ez(null==($=null==l?void 0:l.tips)?void 0:$.title,N.tips.title),items:T.length>0?T:N.tips.items}}),en=`?${new URLSearchParams({type:E?V:"auto",license:D})}`,ea=(0,y.oq)(q,en),er=(null==(m=null==a?void 0:a.title)?void 0:m.trim())||ex[e].title,ei=(null==(_=null==a?void 0:a.backgroundColor)?void 0:_.base.trim())||ex[e].backgroundColor.base,el=(null==(g=null==(v=null==a?void 0:a.backgroundColor)?void 0:v.hover)?void 0:g.trim())||ei,eo=eN[V].label,es=`${W(u)}_${e}`;(0,i.useEffect)(()=>{U(""),G("auto")},[e]);let ec=(t,n)=>{d({event:"data-event",eventCategory:u,eventAction:t,eventLabel:n??e})},ed=(e,t,n,a)=>{d((0,c.c)({eventCategory:es,eventAction:e,eventNameCard:t,eventHref:n,eventTargetId:a}))},eu={title:er,url:H,description:null==a?void 0:a.description,image:null==a?void 0:a.image,backgroundColor:{base:ei,hover:el},textColor:null==a?void 0:a.textColor,className:(0,o.A)(eg.promo,null==a?void 0:a.className),button:null==a?void 0:a.button,chips:null==a?void 0:a.chips,theme:p,handleBannerDataLayerPush:(e,t)=>{var n;let r="button"===t&&!!(null!=(n=null==a?void 0:a.button)&&n.label.trim());(0,s.p)(d),ed(r?"click_button_otkryt":"click_mini_banner",er,e)},desktopBreakpoint:"xl"};return(0,r.jsxs)("div",{className:eg.wrapper,children:[(0,r.jsxs)("div",{className:(0,o.A)(eg.card,{[eg.whiteCard]:z}),children:[(0,r.jsx)("div",{className:eg.cardHeader,children:(0,r.jsx)(eE,{image:X.image,caption:X.caption})}),(0,r.jsxs)("div",{className:eg.cardBody,children:[(0,r.jsx)("h3",{className:eg.heading,children:e$[e]}),(0,r.jsxs)("div",{className:eg.fields,children:[E&&(0,r.jsx)("div",{className:eg.segment,role:"group","aria-label":"Тип транспорта",children:ey.map(e=>(0,r.jsx)("button",{type:"button",className:(0,o.A)(eg.segmentButton,{[eg.segmentButtonActive]:e.value===V}),"aria-pressed":e.value===V,onClick:()=>{var t;ed("auto"===(t=e.value)?"click_tab_avtomobil":"click_tab_mototsikl",Z,void 0,t),t!==V&&(U(""),G(t))},children:e.label},e.value))}),(0,r.jsx)("div",{className:eg.inputWrapper,children:(0,r.jsx)(w.U,{label:"Госномер",variant:"secondary",maskOpts:{mask:Q,definitions:{a:eL}},maskPlaceholder:Y,placeholder:K&&!D?Y:void 0,value:D,className:(0,o.A)(eg.input,"ym-hide-content"),rightLabel:(0,r.jsx)(k.N,{href:q,className:eg.noNumberLink,onClick:()=>{(0,s.p)(d),ed("click_button_net_nomera",Z,q)},children:"Нет номера"}),onChange:(e,t)=>{U(t.replace(eI,"").toUpperCase())},onClick:()=>ec(`message_field_${(0,f.t)(eo)}`),onFocus:()=>J(!0),onBlur:()=>{J(!1),ec(`on_message_field_${(0,f.t)(eo)}`)}})})]})]}),(0,r.jsxs)("div",{className:eg.cardFooter,children:[(0,r.jsx)("a",{href:ea,className:eg.button,onClick:()=>{(0,s.p)(d),ed("click_button_rasschitat",Z,ea)},children:"Рассчитать"}),(0,r.jsxs)("div",{className:eg.note,children:[(0,r.jsx)(C.K,{size:18,className:eg.noteIcon,"aria-hidden":!0}),(0,r.jsx)("p",{className:eg.noteText,children:ee})]})]})]}),(0,r.jsx)(eS,{title:et.title,items:et.items,isGrayTheme:z}),(0,r.jsx)(F,{...eu})]})},eP=(0,m.g)("best-offers-v3","sc"),eR=Object.freeze({bestOffers:eP,container:`${eP}__container`,graySection:`${eP}--gray`,singleProduct:`${eP}--singleProduct`,titleWrapper:`${eP}__title-wrapper`,singleProductTitleWrapper:`${eP}__title-wrapper--singleProduct`,title:`${eP}__title`,singleProductTitle:`${eP}__title--singleProduct`,warning:`${eP}__warning`,allOffersLink:`${eP}__allOffersLink`}),eO={вклады:"вкладам",облигации:"облигациям",кредиты:"кредитам",займы:"займам","кредитные карты":"кредитным картам",каско:"каско",осаго:"ОСАГО","дебетовые карты":"дебетовым картам",ипотека:"ипотеке",автокредиты:"автокредитам",фонды:"фондам",акции:"акциям"},eq=({tabs:e,baseUrl:t,s3Assets:n,eventCategory:a="best-offers",dataLayerPush:u,singleProduct:p=!1,title:h,theme:m=S.light,className:_,tagTitle:v="h2",initialActiveChipId:f})=>{var g,b;let x,y,$,w=m===S.gray,k=(0,i.useMemo)(()=>Array.isArray(e)?e.filter(({banner:e,offers:t,productType:n})=>"all"!==n&&(!!e||!!(null!=t&&t.length)||"osago"===n||"kasko"===n)).map(e=>({...e,offers:Array.isArray(e.offers)?e.offers:[]})):[],[e]),C=((e,t)=>{let n=(0,i.useRef)(null),a=(0,i.useRef)(new Map),[r,l]=(0,i.useState)(!1),o=e.length>0;return(0,i.useEffect)(()=>{let e=n.current;if(!e||r)return;if(typeof window.IntersectionObserver>"u")return void l(!0);let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(t.disconnect(),l(!0))},{rootMargin:"0px",threshold:0});return t.observe(e),()=>t.disconnect()},[o,r]),(0,i.useEffect)(()=>{if(!r)return;let n=window.matchMedia("(max-width: 768px)"),i=new Map([[n.media,n]]),l=e.flatMap(({banner:e,productType:n})=>{if(!(null!=e&&e.image))return[];let a=z[E(n)&&t?"xl":e.desktopBreakpoint??"xl"],r=i.get(a)??window.matchMedia(a);return i.set(a,r),[{image:e.image,mediaQuery:r}]}),o=()=>{n.matches||l.forEach(({image:e,mediaQuery:t})=>{((e,t,n)=>{let a=(t&&e.desktop.trim()?e.desktop:e.mobile).trim();if(!a||n.has(a))return;let r=new Image;n.set(a,r),r.src=a})(e,t.matches,a.current)})};return o(),i.forEach(e=>e.addEventListener("change",o)),()=>{i.forEach(e=>e.removeEventListener("change",o))}},[t,r,e]),n})(k,t),j=k.map(e=>({url:e.productType,title:e.name})),N=(null==(g=j[0])?void 0:g.url)??"",[T,A]=(0,i.useState)(f??N),L=T&&k.some(e=>e.productType===T)?T:N,B=k.find(e=>e.productType===L)??k[0];if(!B)return null;let P=(b=B.name,y=(x=eO[b.toLowerCase()])?`по ${x}`:b,$=p?`Лучшие предложения ${y}`:"Лучшие предложения",h??$),R=!!B.checkAllUrl,O=E(B.productType)?B.productType:null,q=O&&t?(0,r.jsx)(eB,{type:O,banner:B.banner,insurance:B.insurance,baseUrl:t,s3Assets:n,dataLayerPush:u,eventCategory:a,theme:m},O):null;return(0,r.jsxs)("section",{ref:C,className:(0,o.A)(eR.bestOffers,_,{[eR.singleProduct]:p,[eR.graySection]:w}),children:[(0,r.jsx)(l.m,{className:eR.container,children:(0,r.jsx)("div",{className:(0,o.A)(eR.titleWrapper,p&&eR.singleProductTitleWrapper),children:(0,r.jsx)(v,{className:(0,o.A)(eR.title,p&&eR.singleProductTitle),children:P})})}),!p&&(0,r.jsx)(I,{items:j,maxNumberOfLines:1,activeChipId:L,variant:w?"white":"gray",onClick:e=>{(0,s.p)(u,e),A(e);let t=k.find(t=>t.productType===e),n=t&&H(t.productType);n?u((0,c.c)({eventCategory:W(a),eventAction:`click_tab_${n}`})):u({event:"data-event",eventCategory:a,eventAction:"click_chip_top_predlozheniy_vybor",eventLabel:null==t?void 0:t.productType})}}),(0,r.jsxs)(l.m,{className:eR.container,children:[(0,r.jsxs)("div",{children:[q??(0,r.jsx)(ee,{offers:B.offers,banner:B.banner,dataLayerPush:u,eventCategory:a,productType:B.productType,theme:m,singleProduct:p},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,s.p)(u,B.productType),event:(0,c.c)({eventCategory:D(a,B.productType)??W(a),eventAction:"click_button_pokazat_vse",eventHref:B.checkAllUrl}),dataLayerPush:u,iconGrayBackground:!w,className:eR.allOffersLink,linkClassName:B.checkAllLinkClassName,children:"Все предложения"})]})]})}},40894:(e,t,n)=>{"use strict";n.d(t,{JournalV3:()=>g}),n(96090);var a=n(95155),r=n(12115),i=n(42687),l=n(29427),o=n(12228),s=n(8407),c=n(18271),d=n(31117);let u=(0,d.g)("journal-v3-post","sc"),p=Object.freeze({card:u,label:`${u}__label`,body:`${u}__body`,title:`${u}__title`,date:`${u}__date`}),h=({article:e,date:t,onClick:n})=>(0,a.jsxs)("a",{className:p.card,href:e.url,onClick:n,children:[(0,a.jsx)("span",{className:p.label,"aria-hidden":!e.label||void 0,children:e.label}),(0,a.jsxs)("span",{className:p.body,children:[(0,a.jsx)("span",{className:p.title,children:e.title}),(0,a.jsx)("span",{className:p.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`}),v="homepage_journal",f={day:"numeric",month:"long",hour:"2-digit",minute:"2-digit",hourCycle:"h23"},g=({data:e,eventCategory:t=v,className:n})=>{var d;let[u,p]=(0,r.useState)("UTC");if((0,r.useEffect)(()=>{p(Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC")},[]),!(null!=(d=null==e?void 0:e.items)&&d.length))return null;let m=e.items.slice(0,4),g=e.urlText||"Читать больше статей";return(0,a.jsx)("section",{className:(0,l.A)(_.wrapper,n),children:(0,a.jsxs)(i.m,{className:_.container,children:[(0,a.jsx)("h2",{className:_.title,children:e.title}),(0,a.jsxs)("div",{className:_.content,children:[(0,a.jsx)("div",{className:_.grid,children:m.map(e=>{let n,r;return(0,a.jsx)(h,{article:e,date:((e,t)=>{let n=/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/.exec(e);if(!n)return"";let[,a,r,i,l,o,s]=n,c=Number(a),d=Number(r),u=Number(i),p=Number(l),h=Number(o),m=Number(s),_=new Date(Date.UTC(c,d-1,u,p,h,m));if(_.getUTCFullYear()!==c||_.getUTCMonth()!==d-1||_.getUTCDate()!==u||_.getUTCHours()!==p||_.getUTCMinutes()!==h||_.getUTCSeconds()!==m)return"";let v=new Map(new Intl.DateTimeFormat("ru-RU",{...f,timeZone:t}).formatToParts(_).map(({type:e,value:t})=>[e,t])),g=`${v.get("day")} ${v.get("month")}`,b=`${v.get("hour")}:${v.get("minute")}`;return`${g}, ${b}`})(e.dt,u),onClick:(n=e.title,r=e.url,()=>{(0,s.d)((0,o.c)({eventCategory:t,eventAction:"click_button_card",eventNameCard:n,eventHref:r}))})},`${e.url}-${e.title}`)})}),(0,a.jsx)(c.C,{href:e.url,event:(0,o.c)({eventCategory:t,eventAction:"click_button_chitat_bolshe_statey",eventNameCard:e.title,eventHref:e.url}),dataLayerPush:s.d,className:_.checkAllLink,children:g})]})]})})}},48675:(e,t,n)=>{"use strict";n.d(t,{C:()=>m,P:()=>k,U:()=>y,u:()=>u});var a=n(95155),r=n(12115),i=n(69666),l=n(29427),o=n(50621),s=n(31117),c=n(47650);let d=300,u=({opened:e})=>{let[t,n]=(0,r.useState)(!1),a=(0,r.useRef)(null),i=(0,r.useRef)(!1);return(0,r.useEffect)(()=>(e&&!i.current?(i.current=!0,n(!0)):!e&&i.current&&(a.current=setTimeout(()=>{i.current=!1,n(!1)},d)),()=>{a.current&&clearTimeout(a.current)}),[e]),{mounted:t}},p=(0,s.g)("click-outside","sc"),h=Object.freeze({overlay:`${p}__overlay`,open:`${p}--open`,close:`${p}--close`}),m=({onClose:e,onToucheMove:t,isOpen:n,delay:i=d})=>{let o=(0,r.useRef)(null),s=(0,r.useCallback)(()=>{e&&(o.current=setTimeout(()=>{e()},i))},[i,e]),c=(0,r.useCallback)(e=>{"Escape"===e.key&&s()},[s]);return(0,r.useEffect)(()=>(n&&window.addEventListener("keydown",c),()=>{o.current&&clearTimeout(o.current),window.removeEventListener("keydown",c)}),[n,c]),(0,a.jsx)("div",{className:(0,l.A)(h.overlay,{[h.open]:n,[h.close]:!n}),onTouchStart:t,onClick:s})},_=(0,s.g)("mobile-modal-footer","sc"),v=Object.freeze({footer:`${_}__footer`,footerWithoutShadow:`${_}__footer--without-shadow`}),f=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,a.jsx)("div",{className:(0,l.A)(v.footer,t&&v.footerWithoutShadow,n),children:"function"==typeof e?e():e}),g=(0,s.g)("mobile-popup","sc"),b=Object.freeze({mobilePopup:`${g}`,mobilePopupOpen:`${g}--open`,content:`${g}__content`,contentFull:`${g}__content--full`,contentTransition:`${g}__content--transition`,contentTransitionOpen:`${g}__content--transition-open`,contentLine:`${g}__content-line`,contentContainer:`${g}__content-container`,smallContentContainer:`${g}__content-container--small`,min:`${g}__content-container--min`,title:`${g}__title`,closeContainer:`${g}__close-container`,closeButton:`${g}__close-button`}),x=({children:e,footer:t,isOpen:n,isSmallPopup:s,onClose:c,hasCloseButton:d=!0,full:u,touchDistance:p=100,withDisabledScroll:h=!0,contentClassName:_,className:v,title:g,closeButton:x,footerClassName:y})=>{let[$,w]=(0,r.useState)(!1),[k,C]=(0,r.useState)(!1),[j,N]=(0,r.useState)(!0),[T,A]=(0,r.useState)("120%"),L=(0,r.useRef)(null),I=(0,r.useRef)(0),S=(0,r.useRef)(!1),E=e=>{var t,n,a;let r=null==(t=L.current)?void 0:t.offsetTop,i=null==(n=L.current)?void 0:n.offsetHeight;if(S.current=!0,N(!1),r&&i){let t=(null==(a=null==e?void 0:e.touches[0])?void 0:a.clientY)-r,n=0;t>=0&&t<=i+30&&(n=t),t>i+30&&(n=i+30),A(`${n}px`),I.current=n}},z=()=>{S.current&&(I.current>p&&c?null==c||c():A("0"),N(!0),S.current=!1),window.removeEventListener("touchmove",E),window.removeEventListener("touchend",z)};return(0,r.useEffect)(()=>{n&&setTimeout(()=>{w(!0),C(!0),A("0")},100),!n&&k&&(A("120%"),w(!1),C(!1))},[k,n]),(0,o.u)(n&&h),(0,a.jsxs)("div",{"data-portal":!0,className:(0,l.A)(b.mobilePopup,k&&b.mobilePopupOpen,v),children:[(0,a.jsx)(m,{onClose:()=>{n&&(null==c||c())},onToucheMove:()=>{n&&(w(!1),window.addEventListener("touchmove",E),window.addEventListener("touchend",z))},isOpen:n,delay:0}),(0,a.jsxs)("div",{className:(0,l.A)(b.content,u&&b.contentFull,j&&b.contentTransition,j&&$&&b.contentTransitionOpen),ref:L,style:{transform:`translateY(${T})`},children:[(0,a.jsx)("div",{className:b.contentLine}),(0,a.jsxs)("div",{className:(0,l.A)(b.contentContainer,s&&b.smallContentContainer,{[b.min]:!g&&!d},_),children:[!!g&&(0,a.jsx)("div",{className:b.title,children:g}),d?(0,a.jsx)("div",{className:b.closeContainer,children:d?x?"function"==typeof x?x():x:(0,a.jsx)("button",{onClick:c,className:b.closeButton,children:(0,a.jsx)(i.a,{size:24})}):null}):null,e]}),t&&(0,a.jsx)(f,{footerClassName:y,isSmallPopup:s,footer:t})]})]})},y=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...r})=>{let{mounted:i}=u({opened:n});return i?(0,a.jsx)(x,{isSmallPopup:t,isOpen:n,...r,children:e}):null};y.displayName="UiMobilePopup";let $="data-portal-users",w=e=>Number(e.getAttribute($)??0),k=({children:e,id:t="portal-root"})=>{let[n,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=document.getElementById(t);if(e&&!e.hasAttribute($))return void a(e);let n=e??document.body.appendChild(document.createElement("div"));return n.id=t,n.setAttribute($,String(w(n)+1)),a(n),()=>{let e=w(n)-1;n.setAttribute($,String(e)),e>0||n.remove()}},[t]),n?(0,c.createPortal)(e,n):null}},50621:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var a=n(12115);let r=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},i=(e,t)=>{t.style.removeProperty("overflow-y"),e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},l=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},o=()=>document.querySelectorAll("[data-portal]").length>1,s=e=>{let t=(0,a.useRef)(null),n=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(n.current===e)return;n.current=e;let a=t.current,s=document.body,c=document.documentElement,d=window.innerWidth-c.clientWidth;if(e&&d>0)s.style.top||(window.prevScrollPosition=window.scrollY),c.style.setProperty("overflow-y","scroll"),s.classList.toggle("scroll-disable-windows",!0),s.style.setProperty("width",`calc(100vw - ${d}px)`),s.style.setProperty("top",`-${window.prevScrollPosition}px`),r(a,!0);else if(e)s.style.setProperty("overflow","hidden"),s.style.setProperty("height","100vh"),r(a,!0);else{let e=!o();e&&i(s,c),e&&l(),r(a,!1)}return()=>{let e=!o();e&&i(s,c),e&&l()}},[e]),t}},51514:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var a=n(95155),r=n(12115),i=n(29427);let l=(0,n(31117).g)("scroll-snap-slider","sc"),o={slider:l,list:`${l}__list`,item:`${l}__item`,pagination:`${l}__pagination`,dot:`${l}__dot`,activeDot:`${l}__dot--active`,disableFrom:{s:`${l}--disable-s`,m:`${l}--disable-m`,l:`${l}--disable-l`,xl:`${l}--disable-xl`}},s=({children:e,className:t,listClassName:n,itemClassName:l,disableFrom:s="m",gap:c,pagination:d=!1})=>{let u=(0,r.useRef)(null),[p,h]=(0,r.useState)([]),[m,_]=(0,r.useState)(0),v={"--scroll-snap-slider-gap":"number"==typeof c?`${c}px`:c};return(0,r.useEffect)(()=>{let e=u.current;if(!e||!d)return;let t=0,n=[],a=()=>{let t,a;return _((t=n,a=e.scrollLeft,t.reduce((e,n,r)=>Math.abs(n-a)<Math.abs(t[e]-a)?r:e,0)))},r=()=>{let t,r=getComputedStyle(e),i="contents"===r.display||"none"===r.scrollSnapType,l=e.getBoundingClientRect().left,o=parseFloat(r.scrollPaddingLeft)||0,s=Array.from(e.children,t=>t.getBoundingClientRect().left-l+e.scrollLeft-o);h(n=i?[]:(t=e.scrollWidth-e.clientWidth)<=1||0===s.length?[]:s.reduce((e,n)=>{let a=Math.max(0,Math.min(n,t)),r=e[e.length-1];return(void 0===r||Math.abs(a-r)>1)&&e.push(a),e},[])),a()},i=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(r)},l=new ResizeObserver(i);return l.observe(e),e.parentElement&&l.observe(e.parentElement),Array.from(e.children).forEach(e=>l.observe(e)),e.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",i),i(),()=>{cancelAnimationFrame(t),l.disconnect(),e.removeEventListener("scroll",a),window.removeEventListener("resize",i)}},[e,d,s,c]),(0,a.jsxs)("div",{className:(0,i.A)(o.slider,s&&o.disableFrom[s],t),style:v,children:[(0,a.jsx)("div",{ref:u,className:(0,i.A)(o.list,n),children:r.Children.map(e,e=>(0,a.jsx)("div",{className:(0,i.A)(o.item,l),children:e}))}),d&&p.length>1&&(0,a.jsx)("nav",{className:o.pagination,"aria-label":"Страницы предложений",children:p.map((e,t)=>(0,a.jsx)("button",{type:"button",className:(0,i.A)(o.dot,t===m&&o.activeDot),"aria-label":`Перейти к предложению ${t+1}`,"aria-current":t===m?"true":void 0,onClick:()=>{var t;let n;return n=window.matchMedia("(prefers-reduced-motion: reduce)").matches,void(null==(t=u.current)||t.scrollTo({left:e,behavior:n?"instant":"smooth"}))}},e))})]})}},53764:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var a=n(12115);let r={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},i={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},l=e=>a.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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 o({className:e,style:t,boxSize:n,size:s,onClick:c}){return a.createElement("span",{className:e,style:{...r,...c&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...c?{role:"button",tabIndex:"0",onClick:c}:{}},a.createElement(l,{viewBox:"0 0 24 24",style:i}))}o.displayName="IconFdsShieldCheckO"},60773:(e,t,n)=>{"use strict";n.d(t,{default:()=>r.a});var a=n(93098),r=n.n(a)},63867:(e,t,n)=>{"use strict";n.d(t,{OT:()=>b});let a=/"(?:_|\\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 l(e,t){var n;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(n=e,console.warn(`[destr] Dropping "${n}" key to prevent prototype pollution.`)):t}function o(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.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(a.test(e)||r.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,l)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var s=n(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 u(e="GET"){return d.has(e.toUpperCase())}let p=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 n of t)await n(e);else await t(e)}let _=new Set([408,409,425,429,500,502,503,504]),v=new Set([101,204,205,304]),f=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")}(),g=f.fetch?(...e)=>f.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),b=function e(t={}){let{fetch:n=globalThis.fetch,Headers:a=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:+!u(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):_.has(n))){let n="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),l(e.request,{...e.options,retry:t-1})}}let n=function(e){let t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",a=e.request?.url||String(e.request)||"/",r=`[${n}] ${JSON.stringify(a)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",l=new c(`${r}: ${i}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(l,t,{get:()=>e[t]});for(let[t,n]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(l,t,{get:()=>e.response&&e.response[n]});return l}(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,l),n}let l=async function(e,l={}){var c;let d,_,f,g={request:e,options:(c=t.defaults,f=function(e,t,n){if(!t)return new n(e);let a=new n(t);if(e)for(let[t,r]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))a.set(t,r);return a}(l?.headers??e?.headers,c?.headers,a),(c?.query||c?.params||l?.params||l?.query)&&(_={...c?.params,...c?.query,...l?.params,...l?.query}),{...c,...l,query:_,params:_,headers:f}),response:void 0,error:void 0};if(g.options.method&&(g.options.method=g.options.method.toUpperCase()),g.options.onRequest&&(await m(g,g.options.onRequest),g.options.headers instanceof a||(g.options.headers=new a(g.options.headers||{}))),"string"==typeof g.request&&(g.options.baseURL&&(g.request=(0,s.cV)(g.request,g.options.baseURL)),g.options.query&&(g.request=(0,s.VL)(g.request,g.options.query),delete g.options.query),"query"in g.options&&delete g.options.query,"params"in g.options&&delete g.options.params),g.options.body&&u(g.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))}(g.options.body)){let e=g.options.headers.get("content-type");"string"!=typeof g.options.body&&(g.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(g.options.body).toString():JSON.stringify(g.options.body)),e||g.options.headers.set("content-type","application/json"),g.options.headers.has("accept")||g.options.headers.set("accept","application/json")}else("pipeTo"in g.options.body&&"function"==typeof g.options.body.pipeTo||"function"==typeof g.options.body.pipe)&&!("duplex"in g.options)&&(g.options.duplex="half");if(!g.options.signal&&g.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)},g.options.timeout),g.options.signal=e.signal}try{g.response=await n(g.request,g.options)}catch(e){return g.error=e,g.options.onRequestError&&await m(g,g.options.onRequestError),await i(g)}finally{d&&clearTimeout(d)}if((g.response.body||g.response._bodyInit)&&!v.has(g.response.status)&&"HEAD"!==g.options.method){let e=(g.options.parseResponse?"json":g.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return h.test(t)?"json":"text/event-stream"===t?"stream":p.has(t)||t.startsWith("text/")?"text":"blob"}(g.response.headers.get("content-type")||"");switch(e){case"json":{let e=await g.response.text(),t=g.options.parseResponse||o;g.response._data=t(e);break}case"stream":g.response._data=g.response.body||g.response._bodyInit;break;default:g.response._data=await g.response[e]()}}return(g.options.onResponse&&await m(g,g.options.onResponse),!g.options.ignoreResponseError&&g.response.status>=400&&g.response.status<600)?(g.options.onResponseError&&await m(g,g.options.onResponseError),await i(g)):g.response},d=async function(e,t){return(await l(e,t))._data};return d.raw=l,d.native=(...e)=>n(...e),d.create=(n={},a={})=>e({...t,...a,defaults:{...t.defaults,...a.defaults,...n}}),d}({fetch:g,Headers:f.Headers,AbortController:f.AbortController})},65909:(e,t,n)=>{"use strict";n.d(t,{D:()=>f}),n(9009);var a=n(95155),r=n(12115),i=n(99700),l=n(42687),o=n(29427),s=n(30548),c=n(14745),d=n(12228),u=n(18271),p=n(97571);let h=(0,n(31117).g)("faq-block-v3","sc"),m=Object.freeze({faqBlock:h,title:`${h}__title`,titleInner:`${h}__title--inner`,accordionItems:`${h}__accordion-items`,accordionItem:`${h}__accordion-item`,accordionItemContent:`${h}__accordion-item-content`,checkAllLink:`${h}__check-all-link`,states:{primary:`${h}--primary`,secondary:`${h}--secondary`,gray:`${h}--gray`}}),_=({question:e,eventCategory:t,dataLayerPush:n,className:l,isActive:s,...d})=>{let u=(0,r.useRef)(null);return(0,r.useEffect)(()=>{var e;null==(e=u.current)||e.toggleAttribute("inert",!s)},[s]),(0,a.jsx)(i.A,{...d,isActive:s,className:(0,o.A)(m.accordionItem,l),title:e.question,children:(0,a.jsx)("div",{ref:u,className:m.accordionItemContent,onClick:e=>{e.target instanceof HTMLAnchorElement&&n({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,c.p)(n)},children:"string"==typeof e.answer?(0,a.jsx)(p.F,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})})},v=({sectionTitle:e="Ответим на вопросы",innerTitle:t,questions:n=[],href:p,checkAllText:h,Link:v,className:f,eventCategory:g="cb-faq",multiple:b=!1,variant:x="secondary",dataLayerPush:y,tagTitle:$})=>{let w=Array.isArray(n)?n:[],[k,C]=(0,r.useState)([]);if(!w.length)return null;let j=(0,s.g)(w.map(e=>`faq-v3-${e.question}`));return(0,a.jsx)("section",{className:(0,o.A)(m.faqBlock,m.states[x],f),children:(0,a.jsxs)(l.m,{children:[t?(0,a.jsx)("h3",{className:(0,o.A)(m.title,m.titleInner),children:t}):(0,a.jsx)("h2",{className:m.title,children:e}),(0,a.jsx)("div",{className:m.accordionItems,children:(0,a.jsx)(i.n,{activeIndex:k,variant:"gray"===x?"primary":"secondary",withoutOutline:!0,onTabToggle:e=>{let t=e.find(e=>!k.includes(e)),n=t??k.find(t=>!e.includes(t));if(void 0===n)return;let a=String(n).replace(/^faq-v3-/,"");y((0,d.c)({eventCategory:"cb-faq"===g?"homepage_faq":g,eventAction:`click_dropdown_${(0,d.n)(a)}`,eventLabel:void 0!==t?"on":"off"})),C(e);let r=document.querySelector(`[data-accordion-index="${n}"]`);r&&setTimeout(()=>{let{top:e}=r.getBoundingClientRect();e<80&&r.scrollIntoView({behavior:"smooth",block:"start"})},300)},multiple:b,children:w.map((e,t)=>{let n=j[t];return(0,a.jsx)(_,{id:n,question:e,dataLayerPush:y,eventCategory:g,tagTitle:$},n)})})}),p&&h&&(0,a.jsx)(u.C,{href:p,onClick:()=>(0,c.p)(y),event:{event:"data-event",eventCategory:g,eventAction:"сlick_link_answer-link",eventLabel:p},dataLayerPush:y,...null!=v?{Link:v}:{},iconGrayBackground:!0,className:m.checkAllLink,children:h})]})})};v.displayName="FAQBlockV3";let f=v},69666:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var a=n(12115);let r={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},i={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},l=e=>a.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function o({className:e,style:t,boxSize:n,size:s,onClick:c}){return a.createElement("span",{className:e,style:{...r,...c&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...c?{role:"button",tabIndex:"0",onClick:c}:{}},a.createElement(l,{viewBox:"0 0 24 24",style:i}))}o.displayName="IconFdsCloseO"},70475:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var a=n(10286);let r=e=>{let t=(0,a.i)();return t?(0,a.g)(t,window.location.pathname)??e:e}},74157:(e,t,n)=>{"use strict";n.d(t,{ms:()=>a.D,n5:()=>a.g,pm:()=>a.a,uu:()=>a.h});var a=n(72101)},77318:(e,t,n)=>{"use strict";n.d(t,{R:()=>y}),n(98710);var a=n(95155),r=n(42687),i=n(29427),l=n(48822),o=n(31117),s=n(10286),c=n(70475),d=n(12228),u=n(8407),p=n(12115);let h=(0,o.g)("support-v3","sc"),m=Object.freeze({support:h,hideAppBannerOnMobile:`${h}--hide-app-banner-on-mobile`,title:`${h}__title`,cards:`${h}__cards`,card:`${h}__card`,appCard:`${h}__app-card`,contactCard:`${h}__contact-card`,assistantCard:`${h}__assistant-card`,socialCard:`${h}__social-card`,appTitle:`${h}__app-title`,phoneImageContainer:`${h}__phone-image-container`,phoneImage:`${h}__phone-image`,qrCode:`${h}__qr-code`,appCardLink:`${h}__app-card-link`,action:`${h}__action`,cardInfo:`${h}__card-info`,cardTitle:`${h}__card-title`,nonBreakingText:`${h}__non-breaking-text`,cardDescription:`${h}__card-description`,supportDescription:`${h}__support-description`,phones:`${h}__phones`,phone:`${h}__phone`,socialLinks:`${h}__social-links`,socialLink:`${h}__social-link`,socialIcon:`${h}__social-icon`}),_=({title:e,background:t,textColor:n,phoneImage:r,qrCode:i,action:o})=>{let d=(0,s.u)({target:s.h,fallbackHref:o.href}),u=(0,s.u)({target:s.j,fallbackHref:o.href}),p=(0,c.u)(i.src),h=t=>n=>{n.stopPropagation(),t.onClick(n),(0,l.h)({eventCategory:"cb-support",eventActionType:l.D.banner,eventActionText:e,eventLabel:t.getHref()??o.href})};return(0,a.jsxs)("article",{className:`${m.card} ${m.appCard}`,style:{"--support-v3-app-background":t,"--support-v3-app-text-color":n},children:[(0,a.jsx)("h3",{className:m.appTitle,dangerouslySetInnerHTML:{__html:e}}),(0,a.jsxs)("picture",{className:m.phoneImageContainer,children:[(0,a.jsx)("source",{media:"(min-width: 1280px)",srcSet:r.desktop}),(0,a.jsx)("img",{className:m.phoneImage,src:r.mobile,alt:r.alt,loading:"lazy"})]}),(0,a.jsx)("img",{className:m.qrCode,src:p,alt:i.alt,loading:"lazy"}),(0,a.jsx)("a",{className:m.appCardLink,href:d.href,"aria-label":`${o.label}: ${e}`,onClick:h(d)}),(0,a.jsx)("a",{className:m.action,href:u.href,onClick:h(u),children:o.label})]})},v="AI-ассистент",f=({title:e,description:t,action:n})=>(0,a.jsxs)("article",{className:`${m.card} ${m.assistantCard}`,children:[(0,a.jsxs)("div",{className:m.cardInfo,children:[(0,a.jsx)("h3",{className:m.cardTitle,children:(e=>{let t=e.indexOf(v);if(-1===t)return e;let n=t+v.length;return(0,a.jsxs)(a.Fragment,{children:[e.slice(0,t),(0,a.jsx)("span",{className:m.nonBreakingText,children:v}),e.slice(n)]})})(e)}),(0,a.jsx)("p",{className:m.cardDescription,children:t})]}),(0,a.jsx)("a",{className:m.action,href:n.href,onClick:()=>{(0,u.d)((0,d.c)({eventCategory:"homepage_na_svyazi",eventAction:"click_button_zadat_vopros",eventNameCard:e,eventHref:n.href}))},children:n.label})]}),g=({title:e,description:t,phones:n,buttonLabel:r})=>{let i=(0,p.useCallback)(()=>{var t,n,a;null==(a=null==(n=null==(t=null==window?void 0:window.supportWidget)?void 0:t.craftTalk)?void 0:n.open)||a.call(n),(0,u.d)((0,d.c)({eventCategory:"homepage_na_svyazi",eventAction:"click_button_napisat_v_chat",eventNameCard:e,eventTargetId:"crafttalk"}))},[e]);return(0,a.jsxs)("article",{className:`${m.card} ${m.contactCard}`,children:[(0,a.jsxs)("div",{className:m.cardInfo,children:[(0,a.jsx)("h3",{className:m.cardTitle,children:e}),(0,a.jsx)("p",{className:m.supportDescription,children:t})]}),(0,a.jsx)("div",{className:m.phones,children:n.map(e=>(0,a.jsx)("a",{className:m.phone,href:e.href,onClick:()=>{var t;return t=e.label,void(0,u.d)((0,d.c)({eventCategory:"homepage_na_svyazi",eventAction:"click_link_phone",eventLabel:t.replace(/[^\d+]/g,"")}))},children:e.label},`${e.href}-${e.label}`))}),(0,a.jsx)("button",{className:m.action,type:"button",onClick:i,children:r})]})},b=({title:e,description:t,links:n})=>(0,a.jsxs)("article",{className:`${m.card} ${m.socialCard}`,children:[(0,a.jsxs)("div",{className:m.cardInfo,children:[(0,a.jsx)("h3",{className:m.cardTitle,children:e}),(0,a.jsx)("p",{className:m.cardDescription,children:t})]}),(0,a.jsx)("div",{className:m.socialLinks,children:n.map(e=>(0,a.jsxs)("a",{className:m.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,u.d)((0,d.c)({eventCategory:"homepage_na_svyazi",eventAction:t}))},children:[(0,a.jsx)("img",{className:m.socialIcon,src:e.iconUrl,alt:e.iconAlt,loading:"lazy"}),(0,a.jsx)("span",{children:e.label})]},`${e.href}-${e.label}`))})]}),x=({className:e,title:t="Мы всегда на связи",hideAppBannerOnMobile:n=!1,appCard:l,supportCard:o,assistantCard:s,socialCard:c})=>l&&o&&s&&c?(0,a.jsx)("section",{className:(0,i.A)(m.support,e,{[m.hideAppBannerOnMobile]:n}),children:(0,a.jsxs)(r.m,{children:[(0,a.jsx)("h2",{className:m.title,children:t}),(0,a.jsxs)("div",{className:m.cards,children:[(0,a.jsx)(_,{...l}),(0,a.jsx)(g,{...o}),(0,a.jsx)(f,{...s}),(0,a.jsx)(b,{...c})]})]})}):null;x.displayName="SupportV3";let y=x},80874:()=>{},83702:()=>{},93098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={default:function(){return d},getImageProps:function(){return c}};for(var r in a)Object.defineProperty(t,r,{enumerable:!0,get:a[r]});let i=n(42174),l=n(51314),o=n(59642),s=i._(n(60658));function c(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:s.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,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let d=o.Image},96090:()=>{},97571:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var a=n(95155),r=n(29427),i=n(31117);let l=e=>{e.data.forEach((t,n)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[n-1].type&&(e.banner=e.data.splice(n-1,1)),"banner"===e.data[n+1].type&&(e.banner=e.data.splice(n+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(n,0,e.banner[0]))})},o=(0,i.g)("faq-content-block","sc"),s=Object.freeze({contentBlocks:`${o}__content-blocks`,blockLink:`${o}__block-link`,keynoteWrapper:`${o}__keynote-wrapper`,keynote:`${o}__keynote`,annotation:`${o}__annotation`,contentTableWrapper:`${o}__content-table-wrapper`}),c=({className:e,data:t})=>{let n,i,o,c;if(!Array.isArray(t))return null;let d=(n=[],i=1,l(o={data:t,headerBlocksCount:0,banner:[]}),l(o),c={},t.forEach(e=>{var t,r,l,o;let d,u=(d=(null==(t=e.data)?void 0:t.text)??(null==(r=e.data)?void 0:r.url)??(null==(l=e.data)?void 0:l.html)??(null!=(o=e.data)&&o.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":n.push((0,a.jsx)("h2",{id:`content_header_${i}`,role:"header",children:e.data.text||""},u)),i++;break;case"sub_header":n.push((0,a.jsx)("h3",{role:"sub-header",children:e.data.text||""},u));break;case"paragraph":n.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"paragraph"},u));break;case"link":n.push((0,a.jsx)("div",{className:s.blockLink,children:(0,a.jsx)("a",{target:"_blank",href:e.data.url||"",role:"link",rel:"noreferrer",children:e.data.text||""})},u));break;case"dossier":n.push((0,a.jsxs)("div",{children:[(0,a.jsx)("span",{role:"dossier-year",children:e.data.year||""}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"dossier-text"})]},u));break;case"html":n.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.html||""},role:"html"},u));break;case"annotation":n.push((0,a.jsx)("div",{className:s.annotation,dangerouslySetInnerHTML:{__html:e.data.text||""},role:"annotation"},u));break;case"company-annotation":n.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"company-annotation"},u));break;case"keynote":n.push((0,a.jsx)("div",{className:s.keynoteWrapper,children:(0,a.jsx)("p",{className:s.keynote,dangerouslySetInnerHTML:{__html:e.data.text||""},role:"keynote"})},u));break;case"image":n.push((0,a.jsx)("img",{src:e.data.url||"",alt:"image",loading:"lazy"},u))}}),n);return(0,a.jsx)("div",{className:(0,r.A)(s.contentBlocks,e),role:"blocks",children:d})}},98710:()=>{},99700:(e,t,n)=>{"use strict";n.d(t,{A:()=>f,n:()=>m});var a=n(95155),r=n(12115),i=n(29427),l=n(80441),o=n(52951),s=n(73324),c=n(25501);n(80874);let d=(0,o.g)("accordion"),u=(0,o.g)("accordion-item"),p=Object.freeze({accordionItem:u,accordionItemInner:`${u}__inner`,body:`${u}__body`,header:`${u}__header`,content:`${u}__content`,contentInner:`${u}__content-inner`,controlIcon:`${u}__control-icon`,titleWrapper:`${u}__title-wrapper`,title:`${u}__title`,icon:`${u}__icon`,toggleIcon:`${u}__toggle-icon`,subTitle:`${u}__subtitle`,caption:`${u}__caption`,states:{disabled:`${u}--disabled`,active:`${u}--active`,focused:`${u}--focused`,withControl:`${u}--with-control`,withIcon:`${u}--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:n,defaultActiveIndex:o=[],className:s,variant:c="primary",withoutOutline:d=!1,style:u,dataQa:p,dataId:m,onTabToggle:_,...v},f)=>{let[g,b]=(0,r.useState)(o),x=(0,l.i)(n),y=x?n:g,$=(e,t,n)=>n?e.includes(t)?e.filter(e=>e!==t):[...e,t]:e.includes(t)?[]:[t];return(0,a.jsx)("div",{ref:f,className:(0,i.A)(s,h.accordion,h.variants[c],{[h.withoutOutline]:d}),style:u,...v,"data-id":m,"data-qa":p,children:r.Children.map(t,t=>(0,r.isValidElement)(t)?(0,r.cloneElement)(t,{isActive:y.includes(t.props.id),onToggle:n=>{var a=t.props.id;if(x){let t=$(y,a,e);null==_||_(t,n)}else b(t=>$(t,a,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 v=e=>{let t=Array.from(document.querySelectorAll("[data-accordion-index]"));if(0===t.length)return;let n=t.findIndex(e=>e===document.activeElement),a=n;switch(e){case"next":a=(n+1)%t.length;break;case"previous":a=(n-1+t.length)%t.length}let r=0;for(;r++<t.length;){let n=t[a];if("true"!==n.getAttribute("data-disabled"))return void n.focus();a=(a+("next"===e?1:-1)+t.length)%t.length}},f=(0,r.forwardRef)(({id:e,title:t,tagTitle:n="span",subTitle:l,disabled:o=!1,isActive:d=!1,icon:u,controlIcon:h,errorMessage:m,children:f,className:g,style:b,dataQa:x,dataId:y,onControlClick:$,onToggle:w,...k},C)=>{let j=(0,r.useRef)(null),N=(0,r.useRef)(null),T=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=j.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 n=new ResizeObserver(()=>{d&&(e.style.minHeight=t.scrollHeight+"px",e.style.height=t.scrollHeight+"px")});return n.observe(t),()=>n.disconnect()},[d]);let A=!h&&!!u;return(0,a.jsxs)("div",{ref:C,className:(0,i.A)(g,p.accordionItem),style:b,...k,"data-id":y,"data-qa":x,children:[(0,a.jsx)("div",{className:(0,i.A)(p.accordionItemInner),children:(0,a.jsxs)("div",{className:(0,i.A)(p.body,[{[p.states.disabled]:o}]),children:[(0,a.jsxs)("button",{type:"button","aria-expanded":d,"aria-disabled":o,"data-disabled":o,"data-accordion-index":e,className:(0,i.A)(p.header,[{[p.states.active]:d}]),tabIndex:o?-1:0,onClick:o?void 0:w,ref:T,disabled:o,onKeyDown:e=>{if(!o)switch(e.key){case"Enter":case" ":e.preventDefault(),null==w||w(e);break;case"ArrowDown":e.preventDefault(),v("next");break;case"ArrowUp":e.preventDefault(),v("previous")}},children:[(0,a.jsxs)("div",{className:(0,i.A)(p.titleWrapper),children:[A&&(0,a.jsx)("span",{className:p.icon,children:u}),(0,a.jsx)(n,{className:(0,i.A)(p.title,{[p.states.withControl]:h}),children:t}),(0,a.jsx)(c.P,{className:(0,i.A)(p.toggleIcon,[{[p.states.active]:d},{[p.states.withControl]:h}]),children:(0,a.jsx)(_,{})}),h&&(0,a.jsx)(c.P,{className:p.controlIcon,onClick:e=>{var t;h&&e.stopPropagation(),null==(t=T.current)||t.blur(),null==$||$(e)},children:h})]}),l&&(0,a.jsx)("span",{className:(0,i.A)(p.subTitle,[{[p.states.withIcon]:A}]),children:l})]}),(0,a.jsx)("div",{className:(0,i.A)(p.content),style:{overflow:"hidden"},"aria-hidden":!d,ref:j,children:(0,a.jsx)("div",{className:p.contentInner,ref:N,children:f})})]})}),m&&(0,a.jsx)(s.C,{withoutIcon:!0,state:"error",text:m})]})});f.displayName="AccordionItem"}}]);
//# debugId=9055bca2-eb0b-4d18-8ca0-db2009182470