(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71666,71469,e=>{"use strict";var t=e.i(43476),a=e.i(7670),i=e.i(12569),l=e.i(54061);let s={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},n=(0,l.g)("heading"),r=Object.freeze({heading:n,states:Object.freeze({display:`${n}--display`,hero:`${n}--hero`,h1:`${n}--h1`,h2:`${n}--h2`,h3:`${n}--h3`,h4:`${n}--h4`,h5:`${n}--h5`,h6:`${n}--h6`})}),o=({as:e,children:l,weight:n,type:o,lineClamp:c,className:d,style:u,dataQa:m,dataId:p,...h})=>{var g;let f=e||s[o]||"div",v=/^h[1-6]$/.test(f),_=(null==(g=o.match(/\d+/))?void 0:g[0])||1;return(0,t.jsx)(f,{className:(0,a.default)(r.heading,r.states[o],d),style:{...n?{fontWeight:`var(--font-weight-${n})`}:void 0,...c?{WebkitLineClamp:c,lineClamp:c,...i.l}:void 0,...u},role:v?null:"heading","aria-level":v?null:_,...h,"data-id":p,"data-qa":m,children:l})};o.displayName="Heading",e.s([],71666),e.s(["Heading",0,o],71469)},24301,e=>{"use strict";let t=["finuslugi.ru","inguru.dev","moex.com"];e.s(["insertRelToHtmlText",0,e=>e?e=e.replace(/href="(.*?)"/gi,(e,a)=>`${e}${a.includes("//")&&!t.find(e=>a&&a.indexOf(e)>=0)?' rel="nofollow"':""}`):""],24301)},6441,e=>{e.q("/service-navigator/_next/static/media/eye2.06n57tux4kq96.svg")},93645,e=>{e.q("/service-navigator/_next/static/media/arrow.1klzm52owtowv.svg")},1013,e=>{e.q("/service-navigator/_next/static/media/Bar chart vertical.1-1xdyyhijnmm.svg")},62199,e=>{e.q("/service-navigator/_next/static/media/Chart square.2q58qgbj_uq5b.svg")},24188,e=>{e.q("/service-navigator/_next/static/media/Coins percent.1inbzpeiqywpm.svg")},60498,e=>{e.q("/service-navigator/_next/static/media/Compass.3erp_tbxvvxcp.svg")},75195,e=>{e.q("/service-navigator/_next/static/media/Home.3i6knd-rj1a73.svg")},49432,e=>{e.q("/service-navigator/_next/static/media/Newspaper.0b11o8-b80652.svg")},39454,e=>{e.q("/service-navigator/_next/static/media/Play square.2_-6qb9hzwaxt.svg")},80579,e=>{e.q("/service-navigator/_next/static/media/Question square.2148e8aq_2vwn.svg")},91572,e=>{e.q("/service-navigator/_next/static/media/Safe square.10lor89vhj39s.svg")},70264,e=>{e.q("/service-navigator/_next/static/media/Shield checkmark.3lnw4mry582d7.svg")},73127,e=>{e.q("/service-navigator/_next/static/media/Star.3b5n7-akfja30.svg")},25716,e=>{e.q("/service-navigator/_next/static/media/TetraStar.1_btujbyklvjh.svg")},89805,e=>{e.q("/service-navigator/_next/static/media/Wallet.441wv3a3wndl0.svg")},2927,e=>{e.q("/service-navigator/_next/static/media/thumb-up.1jza8g0o-u773.svg")},50219,e=>{e.q("/service-navigator/_next/static/media/clock2.1xkuyqg0i_zrt.svg")},51826,e=>{e.q("/service-navigator/_next/static/media/tack.3s2sx3-nm_-bq.svg")},24110,e=>{e.q("/service-navigator/_next/static/media/app-qr.43mged6k3z4ug.svg")},15182,e=>{e.q("/service-navigator/_next/static/media/adv-apps.20sazt7s756lc.png")},95109,e=>{"use strict";e.s(["paramsToString",0,e=>{if(!e)return"";let t=new URLSearchParams;Object.entries(e).filter(([e,t])=>null!=t).forEach(([e,a])=>{Array.isArray(a)?a.forEach(a=>t.append(e,String(a))):t.append(e,String(a))});let a=t.toString();return a?`?${a}`:""}])},47694,80844,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(7670);function l(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M12.004 7.246A1.247 1.247 0 0 1 10.75 6c0-.69.558-1.253 1.25-1.253.69 0 1.25.56 1.25 1.25 0 .688-.559 1.248-1.246 1.25ZM10.75 12c0 .686.559 1.252 1.254 1.247a1.252 1.252 0 0 0 1.246-1.25c0-.69-.56-1.25-1.25-1.25-.692 0-1.25.564-1.25 1.253Zm0 6c0 .686.559 1.253 1.254 1.247a1.252 1.252 0 0 0 1.246-1.25c0-.69-.56-1.25-1.25-1.25-.692 0-1.25.564-1.25 1.253Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}e.s(["S",0,l],80844);var s=e.i(3315),n=e.i(33329),r=e.i(2404);let o=(0,e.i(54061).g)("radio"),c=Object.freeze({radio:o,input:`${o}__input`,marker:`${o}__marker`,wrapper:`${o}__wrapper`,label:`${o}__label`,caption:`${o}__caption`,icon:`${o}__icon`,iconButton:`${o}__icon-button`,states:{error:`${o}--error`,disabled:`${o}--disabled`,inverted:`${o}--inverted`},sizes:{xs:`${o}--xs`,s:`${o}--s`,m:`${o}--m`},variants:{primary:`${o}--primary`,secondary:`${o}--secondary`}}),d=(0,a.forwardRef)(({value:e,variant:o="primary",checked:d=!1,state:u="default",label:m,disabled:p=!1,caption:h,className:g,style:f,icon:v,withIcon:_=!1,size:y="m",inverted:b=!1,children:w,inputRef:x,onChange:I,onIconClick:j,dataQa:N,dataId:C,...k},S)=>{let W=(0,a.useId)(),M=w||m;return(0,t.jsxs)("label",{ref:S,htmlFor:W,"data-marker-label":"",className:(0,i.default)(g,c.radio,{[c.states.disabled]:p,[c.states.inverted]:b,[c.states.error]:"error"===u,[c.sizes[y]]:!0,[c.variants[o]]:!0}),style:f,"data-id":C,"data-qa":N,children:[(0,t.jsx)("input",{id:W,value:e,checked:d,className:c.input,type:"radio",disabled:p,onChange:e=>{null==I||I(e.target.value,e)},ref:x,...k}),(0,t.jsx)("span",{className:c.marker,children:(0,t.jsx)(n.C,{type:"radio",checked:d,inverted:b,state:u,disabled:p})}),M&&(0,t.jsxs)("span",{className:c.wrapper,children:[(0,t.jsx)("span",{className:c.label,children:M}),h&&(0,t.jsx)(s.C,{className:c.caption,withoutIcon:!0,children:h})]}),_&&(0,t.jsx)("button",{type:"button",className:(0,i.default)(c.iconButton),onClick:p?void 0:j,children:(0,t.jsx)(r.P,{className:(0,i.default)(c.icon),children:v?(0,t.jsx)(t.Fragment,{children:v}):(0,t.jsx)(l,{})})})]})});d.displayName="Radio",e.s(["Radio",0,d],47694)},8810,e=>{"use strict";let t;var a=e.i(43476),i=e.i(71645),l=e.i(60822);e.i(71666);var s=e.i(71469);e.i(8145);var n=e.i(13757),r=e.i(7670);e.i(46401);var o=e.i(34986),c=e.i(22468);let d={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},u={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},m=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function p({className:e,style:t,boxSize:a,size:l,onClick:s}){return i.default.createElement("span",{className:e,style:{...d,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},i.default.createElement(m,{viewBox:"0 0 24 24",style:u}))}p.displayName="IconFdsArrowUpRightSmallO";let h=(0,c.g)("check-all","sc"),g=Object.freeze({wrapper:`${h}__wrapper`,link:`${h}__link`,icon:`${h}__icon`,iconGray:`${h}__icon--gray`}),f=({children:e,className:t,linkClassName:i,iconGrayBackground:l,Link:s,event:n,href:c,dataLayerPush:d})=>{let u=s??o.Link;return(0,a.jsx)("div",{className:(0,r.default)(g.wrapper,t),onClick:()=>{n&&d(n)},children:(0,a.jsxs)(u,{className:(0,r.default)(g.link,i),href:c,children:[e,(0,a.jsx)("span",{className:(0,r.default)(g.icon,{[g.iconGray]:l}),children:(0,a.jsx)(p,{size:24})})]})})};var v=e.i(11512),_=e.i(57687);e.i(34348);var y=e.i(47611),b=e.i(56239),w=e.i(44323);let x=(0,e.i(54061).g)("tag"),I=Object.freeze({tag:x,label:`${x}__label`,icon:`${x}__icon`,rounded:`${x}--rounded`,variant:{primary:`${x}--primary`,secondary:`${x}--secondary`,outline:`${x}--outline`,tertiary:`${x}--tertiary`,pink:`${x}--pink`,red:`${x}--red`,green:`${x}--green`,blue:`${x}--blue`,orange:`${x}--orange`,purple:`${x}--purple`,violet:`${x}--violet`,blur:`${x}--blur`},size:{s:`${x}--s`,m:`${x}--m`,l:`${x}--l`},iconMargin:{left:`${x}__icon--left`,right:`${x}__icon--right`}}),j=(0,i.forwardRef)(({label:e,size:t="m",rounded:i,variant:l="primary",iconLeft:s,iconRight:n,onIconLeftClick:o,onIconRightClick:c,className:d,style:u,dataQa:m,dataId:p,...h},g)=>(0,a.jsx)(a.Fragment,{children:e&&(0,a.jsxs)("div",{ref:g,className:(0,r.default)(I.tag,I.variant[l],I.size[t],{[I.rounded]:i},d),style:u,...h,"data-id":p,"data-qa":m,children:[s&&(0,a.jsx)("button",{type:"button",className:(0,r.default)(I.icon,I.iconMargin.left,{[I.size.l]:"l"===t}),onClick:e=>null==o?void 0:o(e),disabled:!o,children:s}),(0,a.jsx)("span",{className:(0,r.default)(I.label,I.size[t]),children:e}),n&&(0,a.jsx)("button",{type:"button",className:(0,r.default)(I.icon,I.iconMargin.right,{[I.size.l]:"l"===t}),onClick:e=>null==c?void 0:c(e),disabled:!c,children:n})]})}));j.displayName="Tag";var N=e.i(11864),C=e.i(14087),k=e.i(85900);let S={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},W={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},M=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function $({className:e,style:t,boxSize:a,size:l,onClick:s}){return i.default.createElement("span",{className:e,style:{...S,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},i.default.createElement(M,{viewBox:"0 0 24 24",style:W}))}$.displayName="IconFdsArrowUpRightSmallO";var T=((t=T||{}).light="light",t.gray="gray",t);let Y=(0,c.g)("best-offers-banner","sc"),L=Object.freeze({bestOffersBaner:Y,wrapper:`${Y}__wrapper`,wideWrapper:`${Y}__wrapper--wide`,whiteWrapper:`${Y}__wrapper--white`,content:`${Y}__content`,header:`${Y}__header`,title:`${Y}__title`,subtitle:`${Y}__subtitle`,icon:`${Y}__icon`,iconBlack:`${Y}__icon--black`,iconWhite:`${Y}__icon--white`,image:`${Y}__image`}),O=({title:e,image:t,url:i,description:l,backgroundColor:s,textColor:o,wide:c,theme:d,handleBannerDataLayerPush:u,className:m})=>{let p=d===T.gray,h={"--bg-base":(null==s?void 0:s.base)??(p?"var(--color-white)":"var(--color-gray-400)"),"--bg-hover":(null==s?void 0:s.hover)??"var(--color-gray-500)"};return(0,a.jsxs)("div",{className:(0,r.default)(L.wrapper,m,{[L.wideWrapper]:c}),style:h,onClick:()=>{u(),window.open(i,"_blank")},children:[(0,a.jsxs)("div",{className:L.content,children:[(0,a.jsxs)("div",{className:L.header,children:[(0,a.jsx)(n.Text,{weight:"medium",size:"24",className:L.title,style:{color:o},children:e}),(0,a.jsx)("div",{className:(0,r.default)(L.icon,{[L.iconBlack]:p&&!(null!=o&&o.includes("color-white")),[L.iconWhite]:p&&!!(null!=o&&o.includes("color-white"))}),children:(0,a.jsx)($,{size:32})})]}),l&&(0,a.jsx)(n.Text,{size:"16",style:{color:o},children:l})]}),(null==t?void 0:t.url)&&(0,a.jsx)("picture",{className:L.image,children:(0,a.jsx)("img",{src:t.url,width:t.width??150,height:t.height??"auto",alt:`Баннер ${e}`,loading:"lazy"})})]})},R=(0,c.g)("offer-card","sc"),Z=Object.freeze({offerCard:R,wrapper:`${R}__wrapper`,whiteWrapper:`${R}__wrapper--white`,bankInfo:`${R}__bankInfo`,units:`${R}__units`,unitsColumn:`${R}__units--column`,unit:`${R}__unit`,unitRow:`${R}__unit--row`,unitTitleWrapper:`${R}__unitTitleWrapper`,unitTitle:`${R}__unitTitle`,tooltipIcon:`${R}__tooltipIcon`,unitValue:`${R}__unitValue`,bottomBlock:`${R}__bottomBlock`,tags:`${R}__tags`,tag:`${R}__tag`,button:`${R}__button`,buttonRounded:`${R}__button--rounded`,buttonAdditional:`${R}__button--additional`}),z={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},P={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function A(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let E=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10a9.971 9.971 0 007.071-2.929A9.97 9.97 0 0022 12c0-5.523-4.477-10-10-10zM3.5 12a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm8.872-4.977C13.657 7.18 15 8.15 15 9.761c0 .698-.179 1.238-.504 1.665-.307.401-.704.644-.98.812-.313.191-.477.293-.595.43-.083.096-.17.246-.17.584a.75.75 0 01-1.5 0c0-.66.193-1.164.531-1.558.28-.326.64-.544.89-.695l.062-.037c.287-.175.452-.29.568-.442.096-.126.198-.335.198-.759 0-.633-.532-1.158-1.309-1.252-.716-.087-1.454.236-1.717 1.2a.75.75 0 01-1.447-.394c.486-1.78 1.998-2.454 3.345-2.292zM11.999 15a1 1 0 10.002 2 1 1 0 00-.002-2z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function F({className:e,style:t,boxSize:a,size:l,onClick:s}){return i.default.createElement("span",{className:e,style:{...z,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...a&&A(a),...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},i.default.createElement(E,{viewBox:"0 0 24 24",style:P}))}F.displayName="IconFdsQuestionCircleO";let J=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M13.328 2.869a1.444 1.444 0 00-2.65 0A694.174 694.174 0 008.47 7.85a648.96 648.96 0 00-5.196.656c-1.266.165-1.673 1.722-.823 2.553a641.289 641.289 0 003.856 3.748A704.06 704.06 0 005.29 20.22c-.214 1.16.995 2.24 2.15 1.572a650.04 650.04 0 004.562-2.66c1.504.887 3.346 1.956 4.564 2.66 1.154.667 2.363-.411 2.15-1.572a702.887 702.887 0 00-1.017-5.412 664.068 664.068 0 003.856-3.748c.85-.832.443-2.389-.824-2.553-1.383-.18-3.479-.45-5.195-.657a696.41 696.41 0 00-2.208-4.982z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function V({className:e,style:t,boxSize:a,size:l,onClick:s}){return i.default.createElement("span",{className:e,style:{...z,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...a&&A(a),...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},i.default.createElement(J,{viewBox:"0 0 24 24",style:P}))}V.displayName="IconFdsStarF";let U=({title:e,value:t,tooltip:l,textColor:s,unitsAsColumn:o,isTitleUnit:c})=>{let d;return(0,a.jsxs)("div",{className:(0,r.default)(Z.unit,{[Z.unitRow]:o}),children:[(0,a.jsxs)("div",{className:Z.unitTitleWrapper,children:[(0,a.jsx)(n.Text,{size:"14",className:Z.unitTitle,children:e}),l&&(0,a.jsx)(w.Tooltip,{text:l,children:(0,a.jsx)(F,{className:Z.tooltipIcon})})]}),(0,a.jsx)(n.Text,{weight:"medium",size:c?"18":o?"16":"24",className:Z.unitValue,style:{color:s},children:e.includes("Рейтинг")?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(V,{size:16,style:{color:"var(--color-orange-400)"}}),t]}):(d=t.split("₽")).map((e,t)=>(0,a.jsxs)(i.Fragment,{children:[e,t<d.length-1&&(0,a.jsx)(n.Text,{weight:"regular",children:"₽"})]},`${e}-${t}`))})]})},B=({tags:e,isGrayTheme:t})=>{let i=t?"secondary":"primary";return(0,a.jsx)("div",{className:Z.tags,children:e.sort((e,t)=>e.order-t.order).map(e=>(0,a.jsx)(j,{className:Z.tag,label:e.label,variant:e.variant?e.variant:i,rounded:!0},e.label))})},D=({companyName:e,name:t,url:i,logo:l,units:s,tags:n,additionalButton:o,unitsAsColumn:c,dataLayerPush:d,eventCategory:u,productType:m,theme:p,buttonClassName:h,eventValueByUnitTitle:g})=>{let f=p===T.gray,v=a=>{let i={event:"data-event",eventCategory:u,eventAction:`click_button_${(0,b.t)(a)}_${m}`,eventLabel:(0,b.t)(`${e}_${t}`)};if(g){let e=s.find(e=>e.title.toLowerCase()===g.toLowerCase());e&&(i.eventValue=(0,b.t)(e.value))}d(i)};return(0,a.jsxs)("div",{className:(0,r.default)(Z.wrapper,{[Z.whiteWrapper]:f}),children:[(0,a.jsxs)("div",{className:Z.bankInfo,children:[l&&(0,a.jsx)("img",{src:l,width:56,height:56,alt:`${e} logo`,loading:"lazy"}),(0,a.jsx)(U,{title:t,value:e,isTitleUnit:!0})]}),(0,a.jsx)("div",{className:(0,r.default)(Z.units,{[Z.unitsColumn]:c}),children:s.map(e=>(0,a.jsx)(U,{title:e.title,value:e.value,tooltip:e.tooltip,textColor:e.textColor,unitsAsColumn:c},`${e.title}-${e.value}`))}),(0,a.jsxs)("div",{className:Z.bottomBlock,children:[n&&(0,a.jsx)(B,{tags:n,isGrayTheme:f}),o&&o.text.trim().length>0&&(0,a.jsx)(y.Button,{as:"a",className:(0,r.default)(Z.button,Z.buttonRounded,Z.buttonAdditional),size:"xs",label:o.text,href:null==o?void 0:o.url,variant:f?"secondary":"white",onClick:()=>v(o.text)}),(0,a.jsx)(y.Button,{as:"a",className:(0,r.default)(Z.button,h),size:"xs",label:"Подробнее",href:i,onClick:()=>v("podrobnee_o_kartochke_iz")})]})]})},X=(0,c.g)("offers-list","sc"),G=Object.freeze({offersList:X,wrapper:`${X}__wrapper`,sliderWrapper:`${X}__sliderWrapper`,offerItem:`${X}__offerItem`,compact:`${X}__offerItem--compact`,bannerItem:`${X}__bannerItem`}),H=({offers:e,banner:t,dataLayerPush:i,eventCategory:l,productType:s,theme:n,singleProduct:o})=>{let c=e.length<=2;return(0,a.jsxs)(_.Slider,{options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3e3,disableOnInteraction:!1}},breakpoints:{xl:{autoplay:!1}},className:G.sliderWrapper,pagination:!0,children:[e.slice(0,3).map(e=>(0,a.jsx)(_.SliderItem,{className:(0,r.default)(G.offerItem,{[G.compact]:o}),children:(0,a.jsx)(D,{...e,dataLayerPush:i,eventCategory:l,productType:s,theme:n})},e.id)),t&&(0,a.jsx)(_.SliderItem,{className:G.bannerItem,children:(0,a.jsx)(O,{...t,handleBannerDataLayerPush:()=>{i({event:"data-event",eventCategory:l,eventAction:"click_bnr_banner_top_predlozheniy",eventLabel:s})},wide:c,theme:n})})]},s)},q=(0,c.g)("osago-tab","sc"),Q=Object.freeze({osagoTab:q,wrapper:`${q}__wrapper`,card:`${q}__card`,whiteCard:`${q}__card--white`,image:`${q}__image`,content:`${q}__content`,inputWrapper:`${q}__inputWrapper`,select:`${q}__select`,input:`${q}__input`,buttonLinkWrapper:`${q}__buttonLinkWrapper`,button:`${q}__button`,banner:`${q}__banner`}),K={kasko:{title:"Рассчет Каско за минуту",description:"Выберите лучшие условия для оформления полиса",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}},osago:{title:"ОСАГО с экономией до 78%",description:"Предварительная цена после ввода номера ТС",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}}},ee=[{label:"Мотоцикл",value:"moto"},{label:"Автомобиль",value:"auto"}],et=Object.fromEntries(ee.map(e=>[e.value,e])),ea={auto:{mask:"a 000 aa 00",placeholder:"A 000 AA 00"},moto:{mask:"0000 aa 00",placeholder:"0000 AA 00"}},ei="АВЕКМНОРСТУХ",el=RegExp(`[${ei}]`,"i"),es=RegExp(`[^0-9${ei}]`,"gi"),en=({type:e,baseUrl:t,s3Assets:l,banner:c,dataLayerPush:d,eventCategory:u,theme:m})=>{let p="osago"===e,h=(0,k.joinURL)(t,"osago"),g=(0,k.joinURL)(h,"step-car"),f=(0,k.joinURL)(t,"kasko"),v=(0,k.joinURL)(f,"vehicle"),_=p?g:v,[w,x]=(0,i.useState)(""),[I,j]=(0,i.useState)("auto"),{mask:S,placeholder:W}=ea[I],M=m===T.gray,$=`?${new URLSearchParams({type:p?I:"auto",license:w})}`,Y=(0,k.joinURL)(_,$),L=c??{...K[e],url:p?h:f,image:l?{url:(0,k.joinURL)(l,`widgets/BestOffers/${p?"icon_osago":"icons_car"}.png`),width:204,height:160}:void 0},R=et[I].label,Z=(t,a)=>{d({event:"data-event",eventCategory:u,eventAction:t,eventLabel:a??e})};return(0,a.jsxs)("div",{className:Q.wrapper,children:[(0,a.jsxs)("div",{className:(0,r.default)(Q.card,{[Q.whiteCard]:M}),children:[l&&(0,a.jsx)("picture",{children:(0,a.jsx)("img",{src:`${l}/widgets/BestOffers/auto_bg.png`,alt:"Автомобиль",loading:"lazy",className:Q.image})}),(0,a.jsxs)("div",{className:Q.content,children:[(0,a.jsxs)(s.Heading,{as:"h3",type:"h3",children:["Онлайн калькулятор ",p?"ОСАГО":"Каско"]}),(0,a.jsxs)("div",{className:Q.inputWrapper,children:[p&&(0,a.jsx)(C.Select,{options:ee,value:et[I],label:"Тип транспорта",variant:M?"primary":"secondary",className:Q.select,onChange:e=>{x(""),j(e.value),Z(`selector_item_${(0,b.t)(e.label)}`)}}),(0,a.jsx)(N.InputMasked,{label:"Госномер",variant:M?"primary":"secondary",maskOpts:{mask:S,definitions:{a:el}},maskPlaceholder:W,value:w,className:Q.input,onChange:(e,t)=>{x(t.replace(es,"").toUpperCase())},onClick:()=>Z(`message_field_${(0,b.t)(R)}`),onBlur:()=>Z(`on_message_field_${(0,b.t)(R)}`)}),(0,a.jsxs)(n.Text,{children:["У меня"," ",(0,a.jsx)(o.Link,{href:_,onClick:()=>{Z("click_link_net_nomera",_)},children:"нет номера"})]})]}),(0,a.jsx)(y.Button,{as:"a",href:Y,size:"s",className:Q.button,onClick:()=>{Z(`click_button_rasschitat_${(0,b.t)(R)}`,Y)},children:"Рассчитать"})]})]}),(0,a.jsx)("div",{className:Q.banner,children:(0,a.jsx)(O,{...L,theme:m,handleBannerDataLayerPush:()=>{Z("click_bnr_banner_top_predlozheniy")}})})]})},er=(0,c.g)("best-offers","sc"),eo=Object.freeze({bestOffers:er,graySection:`${er}--gray`,singleProduct:`${er}--singleProduct`,titleWrapper:`${er}__title-wrapper`,singleProductTitleWrapper:`${er}__title-wrapper--singleProduct`,title:`${er}__title`,singleProductTitle:`${er}__title--singleProduct`,chips:`${er}__chips`,warning:`${er}__warning`,allOffersLink:`${er}__allOffersLink`}),ec={вклады:"вкладам",облигации:"облигациям",кредиты:"кредитам",займы:"займам","Кредитные карты":"кредитным картам",каско:"каско",осаго:"ОСАГО","дебетовые карты":"дебетовым картам",ипотека:"ипотеке",автокредиты:"автокредитам"};e.s(["BestOffers",0,({tabs:e,baseUrl:t,s3Assets:o,eventCategory:c="best-offers",dataLayerPush:d,singleProduct:u=!1,theme:m=T.light,className:p,initialActiveChipId:h})=>{var g;let _,y=m===T.gray,b=Array.isArray(e)?e.filter(({banner:e,offers:t,productType:a})=>!!e||!!(null!=t&&t.length)||"osago"===a||"kasko"===a).map(e=>({...e,offers:Array.isArray(e.offers)?e.offers:[]})):[],w=b.map(e=>({url:e.productType,title:e.name})),x=(null==(g=w[0])?void 0:g.url)??"",[I,j]=(0,i.useState)(h??x),N=I&&b.some(e=>e.productType===I)?I:x,C=b.find(e=>e.productType===N)??b[0];if(!C)return null;let k=ec[C.name.toLowerCase()],S=k?`по ${k}`:C.name,W=("kasko"===(_=null==C?void 0:C.productType)||"osago"===_)&&t?(0,a.jsx)(en,{type:C.productType,banner:C.banner,baseUrl:t,s3Assets:o,dataLayerPush:d,eventCategory:c,theme:m}):null;return(0,a.jsx)("section",{className:(0,r.default)(eo.bestOffers,p,{[eo.singleProduct]:u,[eo.graySection]:y}),children:(0,a.jsxs)(l.Container,{children:[(0,a.jsx)("div",{className:(0,r.default)(eo.titleWrapper,u&&eo.singleProductTitleWrapper),children:(0,a.jsxs)(s.Heading,{as:"h2",type:u?"h2":"display",className:(0,r.default)(eo.title,u&&eo.singleProductTitle),children:["Лучшие предложения ",u?S:"сегодня"]})}),!u&&(0,a.jsx)(v.N,{items:w,maxNumberOfLines:2,activeChipId:N,variant:y?"white":"gray",className:eo.chips,onClick:e=>{j(e);let t=b.find(t=>t.productType===e);d({event:"data-event",eventCategory:c,eventAction:"click_chip_top_predlozheniy_vybor",eventLabel:null==t?void 0:t.productType})}}),(0,a.jsxs)("div",{children:[W??(0,a.jsx)(H,{offers:C.offers,banner:C.banner,dataLayerPush:d,eventCategory:c,productType:C.productType,theme:m,singleProduct:u}),C.hasWarning&&(0,a.jsx)(n.Text,{as:"p",size:"16",className:eo.warning,children:C.warningCustomText??"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})]}),C.checkAllUrl&&(0,a.jsx)(f,{href:C.checkAllUrl,event:{event:"data-event",eventCategory:c,eventAction:"link",eventLabel:`Показать все предложения ${C.productType}`},dataLayerPush:d,iconGrayBackground:!y,className:eo.allOffersLink,linkClassName:C.checkAllLinkClassName,children:"Показать все предложения"})]})})}],8810)},38886,86969,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(74080);e.s(["Portal",0,({children:e,id:l="portal-root"})=>{let[s,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=document?.getElementById(l);if(e)n(e);else{let e=document?.createElement("div");return document?.body.appendChild(e),n(e),()=>{document?.body.removeChild(e)}}},[]),(0,t.jsx)(t.Fragment,{children:s&&(0,i.createPortal)(e,s)})}],86969),e.s([],38886)},59626,e=>{e.v({close:"ClickOutside-module-scss-module__hnbccW__close",fade:"ClickOutside-module-scss-module__hnbccW__fade","fade-out":"ClickOutside-module-scss-module__hnbccW__fade-out",open:"ClickOutside-module-scss-module__hnbccW__open",overlay:"ClickOutside-module-scss-module__hnbccW__overlay",shine:"ClickOutside-module-scss-module__hnbccW__shine"})},47384,e=>{e.v({footer:"MobileModalFooter-module-scss-module__ofBYjW__footer",footerWithoutShadow:"MobileModalFooter-module-scss-module__ofBYjW__footerWithoutShadow",shine:"MobileModalFooter-module-scss-module__ofBYjW__shine"})},70997,e=>{e.v({closeButton:"MobilePopup-module-scss-module__DZ3YPa__closeButton",closeContainer:"MobilePopup-module-scss-module__DZ3YPa__closeContainer",content:"MobilePopup-module-scss-module__DZ3YPa__content",contentContainer:"MobilePopup-module-scss-module__DZ3YPa__contentContainer",contentFull:"MobilePopup-module-scss-module__DZ3YPa__contentFull",contentLine:"MobilePopup-module-scss-module__DZ3YPa__contentLine",contentTransition:"MobilePopup-module-scss-module__DZ3YPa__contentTransition",contentTransitionOpen:"MobilePopup-module-scss-module__DZ3YPa__contentTransitionOpen",min:"MobilePopup-module-scss-module__DZ3YPa__min",mobilePopup:"MobilePopup-module-scss-module__DZ3YPa__mobilePopup",shine:"MobilePopup-module-scss-module__DZ3YPa__shine",smallContentContainer:"MobilePopup-module-scss-module__DZ3YPa__smallContentContainer",subtitle:"MobilePopup-module-scss-module__DZ3YPa__subtitle",title:"MobilePopup-module-scss-module__DZ3YPa__title"})},75182,64457,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(7670);let l=300;var s=e.i(59626);let n=({onClose:e,onToucheMove:n,isOpen:r,delay:o=l})=>{let c=(0,a.useRef)(null),d=(0,a.useCallback)(()=>{e&&(c.current=setTimeout(()=>{e()},o))},[o,e]),u=(0,a.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,a.useEffect)(()=>(r&&window.addEventListener("keydown",u),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",u)}),[r,u]),(0,t.jsx)("div",{className:(0,i.default)(s.default.overlay,{[s.default.open]:r,[s.default.close]:!r}),onTouchStart:n,onClick:d})};var r=e.i(47384);let o=({footer:e,isSmallPopup:a=!1,footerClassName:l})=>(0,t.jsx)("div",{className:(0,i.default)(r.default.footer,a&&r.default.footerWithoutShadow,l),children:"function"==typeof e?e():e});var c=e.i(70997);let d=({children:e,footer:l,isOpen:s,isSmallPopup:r,onClose:d,hasCloseButton:u=!0,full:m,touchDistance:p=100,withDisabledScroll:h=!0,contentClassName:g,className:f,title:v,subtitle:_,closeButton:y,footerClassName:b})=>{var w;let x,[I,j]=(0,a.useState)(!1),[N,C]=(0,a.useState)(!1),[k,S]=(0,a.useState)(!0),[W,M]=(0,a.useState)("120%"),$=(0,a.useRef)(null),T=(0,a.useRef)(0),Y=(0,a.useRef)(!1),L=e=>{let t=$.current?.offsetTop,a=$.current?.offsetHeight;if(Y.current=!0,S(!1),t&&a){let i=e?.touches[0]?.clientY-t,l=0;i>=0&&i<=a+30&&(l=i),i>a+30&&(l=a+30),M(`${l}px`),T.current=l}},O=()=>{Y.current&&(T.current>p&&d?d?.():M("0"),S(!0),Y.current=!1),window.removeEventListener("touchmove",L),window.removeEventListener("touchend",O)};(0,a.useEffect)(()=>{s&&setTimeout(()=>{j(!0),C(!0),M("0")},100),!s&&N&&(M("120%"),j(!1),C(!1))},[N,s]),w=s&&h,x=(0,a.useRef)(null),(0,a.useEffect)(()=>{let e=x.current,t=window.innerWidth-document.documentElement.clientWidth;w&&t&&!document.body.style.top&&(window.prevScrollPosition=window.scrollY||window.pageYOffset),w&&t&&(document.documentElement.style.setProperty("overflow-y","scroll"),document.body.classList.toggle("scroll-disable-windows",!0),document.body.style.setProperty("width",`calc(100vw - ${t}px)`),document.body.style.setProperty("top",`-${window.prevScrollPosition}px`)),w&&!t&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw")),w&&e&&e.setAttribute("data-portal","");let a=document.querySelectorAll("[data-portal]").length>1;w||a||(document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),document.body.style.removeProperty("width"),document.body.style.removeProperty("top")),w||a||void 0===window.prevScrollPosition||(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0),!w&&e&&e.removeAttribute("data-portal")},[w]);let R="function"==typeof y?y():y;return(0,t.jsxs)("div",{"data-portal":!0,className:(0,i.default)(c.default.mobilePopup,N&&c.default.mobilePopupOpen,f),children:[(0,t.jsx)(n,{onClose:()=>{s&&d?.()},onToucheMove:()=>{s&&(j(!1),window.addEventListener("touchmove",L),window.addEventListener("touchend",O))},isOpen:s,delay:0}),(0,t.jsxs)("div",{className:(0,i.default)(c.default.content,m&&c.default.contentFull,k&&c.default.contentTransition,k&&I&&c.default.contentTransitionOpen),ref:$,style:{transform:`translateY(${W})`},children:[(0,t.jsx)("div",{className:c.default.contentLine}),(0,t.jsxs)("div",{className:(0,i.default)(c.default.contentContainer,r&&c.default.smallContentContainer,{[c.default.min]:!v&&!u},g),children:[!!v&&(0,t.jsx)("div",{className:c.default.title,children:v}),!!_&&(0,t.jsx)("div",{className:(0,i.default)(c.default.title,c.default.subtitle),children:_}),u?(0,t.jsxs)("div",{className:c.default.closeContainer,children:[R,y?null:(0,t.jsx)("button",{onClick:d,className:c.default.closeButton,children:(0,t.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})})]}):null,e]}),l&&(0,t.jsx)(o,{footerClassName:b,isSmallPopup:r,footer:l})]})]})},u=({children:e,isSmallPopup:i=!1,isOpen:s=!1,...n})=>{let{mounted:r}=(({opened:e})=>{let[t,i]=(0,a.useState)(!1),s=(0,a.useRef)(null),n=(0,a.useRef)(!1);return(0,a.useEffect)(()=>(e&&!n.current?(n.current=!0,i(!0)):!e&&n.current&&(s.current=setTimeout(()=>{n.current=!1,i(!1)},l)),()=>{s.current&&clearTimeout(s.current)}),[e]),{mounted:t}})({opened:s});return r?(0,t.jsx)(d,{isSmallPopup:i,isOpen:s,...n,children:e}):null};u.displayName="UiMobilePopup",e.s(["UiMobilePopup",0,u],64457),e.s([],75182)},15612,e=>{"use strict";var t=e.i(231);let a="code_verifier",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",l=()=>{if(!globalThis.crypto?.subtle)throw Error("PKCE is not supported in this browser");return globalThis.crypto},s=async e=>{var t;let a;return t=new Uint8Array(await l().subtle.digest("SHA-256",new TextEncoder().encode(e))),a="",t.forEach(e=>{a+=String.fromCharCode(e)}),btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")},n=async()=>{let e,t,a=(e=new Uint8Array(96),l().getRandomValues(e),t="",e.forEach(e=>{t+=i.charAt(e%i.length)}),t);return{codeChallenge:await s(a),codeVerifier:a}};e.s(["createPkceKeys",0,n,"getCodeVerifier",0,()=>t.appSessionStorage.getItemRaw(a),"removeCodeVerifier",0,()=>{t.appSessionStorage.removeItem(a)},"saveCodeVerifier",0,e=>{t.appSessionStorage.setItem(a,e)}])},18524,e=>{"use strict";var t=e.i(82372);e.s(["CmsService",0,{getLayoutData:async e=>(await (0,t.callApi)({url:`/api/v1/layout/${e}`,options:{isMpScApi:!0}})).data||null,async getPageData(e,a){let i=new URLSearchParams({scLayoutName:e,scPageUrl:a}).toString();return(await (0,t.callApi)({url:`/api/v1/data/page-data?${i}`,options:{isMpScApi:!0}})).data||null},getPage:async e=>(await (0,t.callApi)({url:`/api/v1/sc-page/${e}`,options:{isMpScApi:!0}})).data||null}])},24734,44770,e=>{"use strict";var t=e.i(85900),a=e.i(15612),i=e.i(231);let l={endpoint:"https://sso-stable.beta.moex.com/auth/realms/craml-universal/protocol/openid-connect/auth",protocol:"oauth2",response_type:"code",response_mode:"query",client_id:"journal",scope:"openid+email+profile",code_challenge:"nsFRX3OPOyJ-YwsNJll07k1_xbGD5ByKGJA-Sl3ju1Q",code_challenge_method:"S256",nonce:"VXOi0Dxv.up2.uSbL9PCjeVtv9dYJhCg",state:{simple:!0,stateId:"Q_SOFRRbmY6qAhvO87JJa",fingerprintHash:"b7080a7c721d8d76781d64ba309e6521",phoneVerify:"true",cramlURL:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v5/customers",cramlProvidersURL:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v6/providers",cramlCustomersURL:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v5/customers",cramlPhoneVerificationUrl:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v6/phone-verifications/run",cramlConfirmOtpUrl:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v6/customers/create-or-find-provider-customer-by-otp",otpURL:"http://mp-sys-notifier.mp-rc.mpddev.moex.com/api/v0/notifications"}};e.s(["COMMENTS_AUTH_WIDGET_CONFIG",0,{theme:"light",view:"phone",linkTarget:"_self",primaryAuthProviders:["PHONE"],additionalAuthProviders:["TINKOFF","ALFA","SBER","MTS","SOVCOM","VTB"],primaryTextOverride:"Войти"},"DEFAULT_SERVER_CONFIG",0,{title:"Войдите по номеру телефона",description:"Чтобы оставить комментарий",availableAuthProviders:["PHONE","TINKOFF","ALFA","SBER","MTS","SOVCOM","VTB"],consents:[{key:"isPlatformRulesAccepted",title:{text:"Принимаете правила платформы",links:[]},value:!0,required:!0,hidden:!1},{key:"isProcessingPersonalDataAllowed",title:{text:"Подтверждаете актуальность персональных данных и соглашаетесь на их обработку в соответствии с политикой конфиденциальности",links:[]},value:!0,required:!0,hidden:!1},{key:"isPromotionSendAllowed",title:{text:"Соглашаетесь получать маркетинговую рассылку",links:[]},value:!0,required:!1,hidden:!1}]},"DEFAULT_SSO_PARAMS",0,l],44770);let s=e=>{let t=new TextEncoder().encode(e),a="";return t.forEach(e=>{a+=String.fromCharCode(e)}),btoa(a)},n=(e,a,i)=>{let l=(0,t.stringifyQuery)(i),s=e.includes("?")?"&":"?";return`${e}${s}scope=${a}&${l}`},r=async({data:e={},endpoint:t,redirect_uri:r,phone:o="",scope:c,includePhoneInState:d,includeResponseMode:u=!0})=>{let{codeChallenge:m,codeVerifier:p}=await (0,a.createPkceKeys)(),h=e||{},g=((e={},t,a="")=>{let n=i.appLocalStorage.getItemRaw("browserId"),r=i.appSessionStorage.getItemRaw("browserSessionId"),o={...l.state,...e,browserId:n,browserSessionId:r};return t?o.phone=a:(delete o.phone,delete o.phoneVerify),s(JSON.stringify(o))})(h.state||{},d,o);(0,a.saveCodeVerifier)(p);let{endpoint:f,scope:v,..._}={...l,...h,endpoint:t||h.endpoint||l.endpoint,redirect_uri:r,state:g,code_challenge:m,scope:c||h.scope||l.scope};return u?n(f,v,_):n(f,v,{client_id:_.client_id,redirect_uri:_.redirect_uri,response_mode:"fragment",response_type:_.response_type,prompt:"none",code_challenge:_.code_challenge,code_challenge_method:_.code_challenge_method})},o=async(e={},t,a)=>r({data:e,redirect_uri:t,phone:a,includePhoneInState:!0}),c=async(e={},t,a)=>r({data:e,endpoint:t,redirect_uri:a,scope:"openid",includePhoneInState:!1,includeResponseMode:!1});e.s(["getHiddenSsoIframeUrl",0,c,"getSsoUrl",0,o],24734)},6184,e=>{e.v({caption:"ResponsiveImage-module-scss-module__KcTWLa__caption",figureWrapper:"ResponsiveImage-module-scss-module__KcTWLa__figureWrapper",image:"ResponsiveImage-module-scss-module__KcTWLa__image",pictureWrapper:"ResponsiveImage-module-scss-module__KcTWLa__pictureWrapper",shine:"ResponsiveImage-module-scss-module__KcTWLa__shine"})},5580,e=>{e.v({caption:"ContentImage-module-scss-module__F2hwnW__caption",close:"ContentImage-module-scss-module__F2hwnW__close",debug:"ContentImage-module-scss-module__F2hwnW__debug",detailImage:"ContentImage-module-scss-module__F2hwnW__detailImage",detailImageWrapper:"ContentImage-module-scss-module__F2hwnW__detailImageWrapper",imageModal:"ContentImage-module-scss-module__F2hwnW__imageModal",imgContainer:"ContentImage-module-scss-module__F2hwnW__imgContainer",shine:"ContentImage-module-scss-module__F2hwnW__shine"})},52919,33209,72934,65854,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(57688),l=e.i(62965),s=e.i(7670);e.i(38886);var n=e.i(86969),r=e.i(65018),o=e.i(6184);let c=/%25([0-9A-Fa-f]{2})/g,d=({srcDesktop:e,srcMobile:a,alt:i,caption:l,className:n,pictureClassName:r,captionClassName:d,imageClassName:u,isLazy:m=!0})=>{let p=e.replace(c,"%$1"),h=a.replace(c,"%$1");return(0,t.jsxs)("figure",{className:(0,s.default)(o.default.figureWrapper,n),children:[(0,t.jsxs)("picture",{className:(0,s.default)(o.default.pictureWrapper,r),children:[(0,t.jsx)("source",{media:"(max-width: 1279px)",srcSet:h}),(0,t.jsx)("img",{loading:m?"lazy":void 0,className:(0,s.default)(o.default.image,u),src:p,fetchPriority:m?void 0:"high",decoding:m?void 0:"async",alt:i??"detail image"})]}),!!l&&(0,t.jsx)("figcaption",{className:(0,s.default)(o.default.caption,d),dangerouslySetInnerHTML:{__html:l}})]})};e.s(["ResponsiveImage",0,d],33209),e.s([],72934);var u=e.i(5580);let m=({src:e,onClose:s})=>{let[n,r]=(0,a.useState)(1),[o,c]=(0,a.useState)(1),[d,m]=(0,a.useState)({x:0,y:0}),[p,h]=(0,a.useState)({x:0,y:0}),g=(0,a.useRef)(null),f=(0,a.useRef)(null),v=(0,a.useRef)(1),_=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=e=>{e.preventDefault()};return document.addEventListener("touchmove",e,{passive:!1}),()=>{document.body.style.overflow="",document.body.style.height="",document.removeEventListener("touchmove",e)}},[]),(0,a.useEffect)(()=>{if(_.current){_.current=!1;let e=document.getElementById("imageModalContainerId");if(!e)return;let t=e.getBoundingClientRect(),a=t.x||0,i=t.height||0;m({x:-(a/n*1),y:-((t.y||0)/n*1)+window.innerHeight/n/2-i/n/2});let l=document.getElementById("imageModalCloseId");if(!l)return;let s=window.innerWidth/document.documentElement.getBoundingClientRect()?.width,r=l.getBoundingClientRect(),o=r.width*s||0,d=r.x||0,u=r.y||0,p=-(d/s*1)+window.innerWidth/s-o/s-16/s;c(s),h({x:p,y:-(u/s*1)+58})}},[n]);let y=e=>{let[t,a]=[e[0],e[1]],i=t.clientX-a.clientX,l=t.clientY-a.clientY;return Math.sqrt(i*i+l*l)};return(0,t.jsxs)("div",{className:u.default.imageModal,onTouchStart:e=>{e.preventDefault(),2===e.touches.length&&(g.current=y(e.touches)),1===e.touches.length&&(f.current={x:e.touches[0].clientX/n-d.x,y:e.touches[0].clientY/n-d.y})},onTouchMove:e=>{if(e.preventDefault(),2===e.touches.length&&null!==g.current){let t=n+(y(e.touches)-g.current)*5e-5;t<v.current?t=v.current:t>3&&(t=3),r(t)}1===e.touches.length&&null!==f.current&&m({x:e.touches[0].clientX/n-f.current.x,y:e.touches[0].clientY/n-f.current.y})},onTouchEnd:()=>{g.current=null,f.current=null},children:[(0,t.jsx)("div",{id:"imageModalCloseId",className:u.default.close,onClick:s,style:{transform:`scale(${o}) translate(${p.x}px, ${p.y}px)`},children:(0,t.jsx)(l.IconFdsCloseO,{size:22})}),(0,t.jsx)("div",{id:"imageModalContainerId",className:u.default.imgContainer,style:{transform:`scale(${n}) translate(${d.x}px, ${d.y}px)`},children:(0,t.jsx)(i.default,{src:e,width:0,height:0,alt:"detail image",unoptimized:!0,onLoadingComplete:()=>{let e=window.innerWidth,t=document.getElementById("imageModalContainerId");if(!t)return;let a=t.getBoundingClientRect().width||0,i=a>0?e/a:1;v.current=i,r(i),_.current=!0,document.body.style.overflow="hidden",document.body.style.height="100vh"}})})]})};e.s(["ContentImage",0,({env:e,imageFile:i,imageData:l,imageCaption:o,className:c,disableZoom:p,imageClassName:h})=>{let g=(0,r.useMedia)("lg"),[f,v]=(0,a.useState)(!1),_=e.NEXT_PUBLIC_BASE_URL,y=l||`${_}/img/posts_content/large/${i}`,b=()=>l?{mobile:l,desktop:l}:{mobile:`${_}/img/posts_content/small/${i}`,desktop:`${_}/img/posts_content/large/${i}`};return i||l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,s.default)(u.default["content-image"],c),onClick:()=>{!p&&g&&v(!0)},children:(0,t.jsx)(d,{captionClassName:u.default.caption,srcDesktop:b().desktop,srcMobile:b().mobile,caption:o,imageClassName:(0,s.default)(u.default.detailImage,h),className:u.default.detailImageWrapper})}),(0,t.jsx)(n.Portal,{children:f&&g&&(0,t.jsx)(m,{src:y,onClose:()=>v(!1)})})]}):null}],65854),e.s([],52919)},97209,52918,e=>{"use strict";let t={getItem:e=>{let t=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return t?t.split("=")[1]??null:null},setItem:(e,t,a={})=>{(a={path:"/",...a}).expires instanceof Date&&(a.expires=a.expires.toUTCString());let i=encodeURIComponent(e)+"="+encodeURIComponent(t);for(let e in a){if(!a.hasOwnProperty(e))continue;i+="; "+e;let t=a[e];!0!==t&&(i+="="+t)}document.cookie=i},removeItem:e=>{t.setItem(e,"",{"max-age":-1})}};e.s(["appCookie",0,t],52918);var a=e.i(231);let i="comments_auth_access_token",l=e=>{let t={expires:new Date(Date.now()+1e3*e),sameSite:"Strict"};return"https:"!==window.location.protocol?t:{...t,secure:!0}};e.s(["getSavedAccessToken",0,()=>{let e;return t.getItem("access_token")||("object"!=typeof(e=a.appLocalStorage.getItem(i))||null===e||"string"!=typeof e.value||"number"!=typeof e.expiresAt?null:e.expiresAt>Date.now()?e.value:(a.appLocalStorage.removeItem(i),null))},"saveCallbackTokens",0,({access_token:e,expires_in:s,refresh_expires_in:n,refresh_token:r})=>{let o=l(s),c=l(n);if(t.removeItem("access_token"),t.setItem("access_token",e,o),t.setItem("refresh_token",r,c),t.getItem("access_token")!==e){let t;return void(t={value:e,expiresAt:Date.now()+1e3*s},a.appLocalStorage.setItem(i,JSON.stringify(t)))}a.app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-b5fe-d94eff7638c0",scope:"openid auth_provider auth_flow",customer_record_state:"created"},i=async e=>{let t=await e.text();if(!t)return null;try{return JSON.parse(t)}catch{return t}},l=async e=>{let{tokenUrl:l}=e;if("authDebug"===new URLSearchParams(window.location.search).get("mode"))return{ok:!0,status:200,data:a};let s=await fetch(l,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:(({code:e,refreshToken:a,codeVerifier:i,grantType:l=t,redirectUri:s})=>{let n=new URLSearchParams;return e&&n.set("code",e),a&&n.set("refresh_token",a),l===t&&i&&n.set("code_verifier",i),n.set("response_type","code"),n.set("grant_type",l),n.set("client_id","journal"),n.set("redirect_uri",s),n})(e)}),n=await i(s);return s.ok&&"object"==typeof n&&null!==n&&"string"==typeof n.access_token&&"number"==typeof n.expires_in&&"number"==typeof n.refresh_expires_in&&"string"==typeof n.refresh_token&&"string"==typeof n.token_type?{ok:!0,status:s.status,data:n}:{ok:!1,status:s.status,data:n}};e.s(["exchangeCallbackToken",0,l])},43487,37993,e=>{"use strict";var t=e.i(67638),a=e.i(82372),i=e.i(17212);let l=e=>{if("string"!=typeof e)return"";let t=e?.split("/")?.pop()||"";return t?.startsWith("stat_")?t?.replace("stat_",""):t};e.s(["getShortUrl",0,l],37993);var s=e.i(88195);let n=()=>"true"===String((0,t.getEnvValue)().NEXT_PUBLIC_COMMENTS_V2_API_ENABLED),r=e=>e?.[0]!=="/"?`/${e}`:e,o=async e=>{let{data:t,error:i}=await (0,a.callApi)({url:`/api/v2/comments?published=true&page=0&size=1000&sort=DESC&sortBy=dt&contentUrl=${r(e)}`,options:{isMpScApi:!0}});return i?{data:{comments:[]}}:{data:{comments:(t?.content||[]).map(e=>({id:e.id,post_id:e.contentUrl,comment:e.text,user_id:e.name,date_created:e.dt,user_name:e.name}))}}},c=async e=>{let[t,l]=await Promise.allSettled([(0,a.callApi)({url:`/api/v2/posts/by-full-url?fullUrl=${e}&draft=false&showPlanned=false`,options:{isMpScApi:!0}}),n()?o(e):(0,a.callApi)({url:`/money_data/NavigatorDetailNocache.json?url=${e}`})]),r=(0,i.convertSettledData)(t,null),c=(0,i.convertSettledData)(l,null),d=c?.data?.comments||null;return{data:{article:{...(0,s.parsePost)(r?.data)||{},comments:d},tags:[],ctgs:[],actual_news:[],news_tags:[],towns_info:[],others:[]}}},d=async(e,t)=>{let i=null,s=(0,a.getApiEndpoint)(e,{isMpScApi:!0}),n=l(t);try{let e=await fetch(`${s}/api/v1/counter/view/${n}`,{method:"PUT"});if(!e.ok)throw Error(`Error: ${e.statusText}`);i=await e.json()}catch(e){console.error("Error:",e)}return i?.views},u=async(e,t,i)=>{let{data:l}=await (0,a.callApi)({url:"/api/v1/polls/votes",options:{isMpScApi:!0},config:{method:"POST",body:JSON.stringify({contentUrl:e,pollKey:t,variantKey:i}),headers:{"Content-Type":"application/json"}}});return(0,s.getSurveyStats)(l?.result?.answers)},m=async(e,t)=>{let{data:i}=await (0,a.callApi)({url:`/api/v1/polls/results?contentUrl=${e}&pollKey=${t}`,options:{isMpScApi:!0}});return(0,s.getSurveyStats)(i?.answers)},p=async(e,t,i,l)=>{if("validate"===l)return!0;let{error:s}=await (0,a.callApi)({url:"/api/v2/comments",options:{isMpScApi:!0},config:{method:"POST",body:JSON.stringify((({post_id:e,user_name:t,comment:a})=>({contentUrl:e,name:t,text:a}))({post_id:r(String(e)),user_name:t,comment:i}))}});return!s},h=async(e,t,i,l,s,r)=>{if(n())return await p(t,l,s,r);let o=null,c=(0,a.getApiEndpoint)(e,{});try{let e=await fetch(`${c}/money_data/NavigatorComments.json`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t,user_name:l,user_id:i,comment:s,secret:"g4$3in4d",type:r})});if(!e.ok)throw Error(`Error: ${e.statusText}`);o=await e.json()}catch(e){console.error("Error:",e)}return!!o?.success},g=async(e,t)=>{let i=null,s=(0,a.getApiEndpoint)(e,{isMpScApi:!0}),n=l(t);try{let e=await fetch(`${s}/api/v1/counter/like/INCREMENT/${n}`,{method:"POST"});if(i=await e.json(),!e.ok||!i?.likes)throw Error(`Error: ${e.statusText}`)}catch(e){console.error("Error:",e)}return!!i?.likes};e.s(["getNavigatorDetailData",0,c,"getSurveyVotes",0,m,"submitPostComment",0,h,"submitPostLike",0,g,"submitPostViewNoCache",0,d,"submitSurveyVote",0,u],43487)},11864,e=>{"use strict";var t=e.i(43476),a=e.i(71645);e.i(21496);var i=e.i(62383),l=e.i(91390);let s=(0,a.forwardRef)(({maskOpts:e,value:s="",autoFocus:n=!1,onChange:r,onKeyDown:o,...c},d)=>{let[u,m]=(0,a.useState)(""),{ref:p,setValue:h,unmaskedValue:g}=(0,i.useIMask)(e,{onAccept:(e,t)=>{m(e),null==r||r(t.unmaskedValue,e)}});return(0,a.useEffect)(()=>{s!==g&&(h(s),m(s))},[s,h,g]),(0,a.useImperativeHandle)(d,()=>p.current),(0,t.jsx)(l.I,{...c,autoFocus:n,inputRef:p,value:u,onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),h(""),m(""),null==r||r("","")),null==o||o(e)}})});s.displayName="InputMasked",e.s(["InputMasked",0,s])},5081,e=>{"use strict";e.s(["generateUuid",0,()=>{let e="";for(let t=0;t<36;t++)(8===t||13===t||18===t||23===t)&&(e+="-"),e+="0123456789abcdef"[Math.floor(16*Math.random())];return e}])},44323,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(43489),l=e.i(53760),s=e.i(58950),n=e.i(7670),r=e.i(2753),o=e.i(14044);let c=(0,e.i(54061).g)("tooltip"),d=Object.freeze({tooltip:c,text:`${c}__text`,wrapper:`${c}__wrapper`,inverted:`${c}--inverted`}),u=({children:e,moveToBody:a})=>a?(0,t.jsx)(i.FloatingPortal,{id:r.T,children:e}):(0,t.jsx)(t.Fragment,{children:e}),m=(0,a.forwardRef)(({position:e="top",text:r,zIndex:c=1,inverted:m,withoutTail:p,children:h,boundingOffset:g=12,boundaryPadding:f,moveToBody:v=!1,hideWhenOutOfBounds:_=!1,style:y,className:b,dataQa:w,dataId:x,...I},j)=>{let[N,C]=(0,a.useState)(!1),k=(0,a.useRef)(null),{refs:S,floatingStyles:W,context:M,middlewareData:$}=(0,i.useFloating)({open:N,onOpenChange:C,placement:e,whileElementsMounted:l.autoUpdate,middleware:[(0,s.offset)({mainAxis:g}),(0,s.flip)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==f&&{padding:f}}),(0,s.shift)({...void 0!==f&&{padding:f}}),(0,s.arrow)({element:k,padding:8}),..._?[(0,s.hide)({strategy:"escaped",padding:-24})]:[]]}),T=(0,i.useHover)(M,{delay:300}),{getReferenceProps:Y,getFloatingProps:L}=(0,i.useInteractions)([T]),O=(0,i.useTransitionStyles)(M,{duration:300});return(0,a.useImperativeHandle)(j,()=>({getActivatorElement:S.reference,getTooltipElement:S.floating})),(0,a.useEffect)(()=>{var e;(null==(e=$.hide)?void 0:e.escaped)&&C(!1)},[$.hide]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-qa":(0,o.g)(`${w}-activator`,!!w),ref:S.setReference,...Y,className:d.wrapper,children:h}),O.isMounted&&(0,t.jsx)(u,{moveToBody:v,children:(0,t.jsxs)("div",{role:"tooltip",ref:S.setFloating,style:{...W,...O.styles,...y,zIndex:c},className:(0,n.default)(d.tooltip,b,{[d.inverted]:m}),...L,...I,"data-qa":w,"data-id":x,children:[(0,t.jsx)("span",{className:(0,n.default)(d.text,{[d.inverted]:m}),children:r}),!p&&(0,t.jsx)(i.FloatingArrow,{ref:k,context:M,width:16,d:"M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z",fill:m?"var(--color-white)":"var(--color-black-500)"})]})})]})});m.displayName="Tooltip",e.s(["Tooltip",0,m],44323)},22668,e=>{"use strict";var t=e.i(71645),a=e.i(10653);e.s(["u",0,function(e,i){let[l,s]=(0,t.useState)(e);return(0,t.useEffect)(()=>{(0,a.i)(i)&&s(i)},[JSON.stringify(i)]),[l,s]}])}]);