(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71666,71469,e=>{"use strict";var t=e.i(43476),i=e.i(7670),a=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",_=/^h[1-6]$/.test(f),v=(null==(g=o.match(/\d+/))?void 0:g[0])||1;return(0,t.jsx)(f,{className:(0,i.default)(r.heading,r.states[o],d),style:{...n?{fontWeight:`var(--font-weight-${n})`}:void 0,...c?{WebkitLineClamp:c,lineClamp:c,...a.l}:void 0,...u},role:_?null:"heading","aria-level":_?null:v,...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,i)=>`${e}${i.includes("//")&&!t.find(e=>i&&i.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,i])=>{Array.isArray(i)?i.forEach(i=>t.append(e,String(i))):t.append(e,String(i))});let i=t.toString();return i?`?${i}`:""}])},47694,80844,e=>{"use strict";var t=e.i(43476),i=e.i(71645),a=e.i(7670);function l(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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,i.forwardRef)(({value:e,variant:o="primary",checked:d=!1,state:u="default",label:m,disabled:p=!1,caption:h,className:g,style:f,icon:_,withIcon:v=!1,size:y="m",inverted:b=!1,children:x,inputRef:w,onChange:I,onIconClick:j,dataQa:C,dataId:N,...k},W)=>{let S=(0,i.useId)(),M=x||m;return(0,t.jsxs)("label",{ref:W,htmlFor:S,"data-marker-label":"",className:(0,a.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":N,"data-qa":C,children:[(0,t.jsx)("input",{id:S,value:e,checked:d,className:c.input,type:"radio",disabled:p,onChange:e=>{null==I||I(e.target.value,e)},ref:w,...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})]}),v&&(0,t.jsx)("button",{type:"button",className:(0,a.default)(c.iconButton),onClick:p?void 0:j,children:(0,t.jsx)(r.P,{className:(0,a.default)(c.icon),children:_?(0,t.jsx)(t.Fragment,{children:_}):(0,t.jsx)(l,{})})})]})});d.displayName="Radio",e.s(["Radio",0,d],47694)},8810,e=>{"use strict";let t;var i=e.i(43476),a=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=>a.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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:i,size:l,onClick:s}){return a.default.createElement("span",{className:e,style:{...d,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&{width:`${i}px`,height:`${i}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},a.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:a,iconGrayBackground:l,Link:s,event:n,href:c,dataLayerPush:d})=>{let u=s??o.Link;return(0,i.jsx)("div",{className:(0,r.default)(g.wrapper,t),onClick:()=>{n&&d(n)},children:(0,i.jsxs)(u,{className:(0,r.default)(g.link,a),href:c,children:[e,(0,i.jsx)("span",{className:(0,r.default)(g.icon,{[g.iconGray]:l}),children:(0,i.jsx)(p,{size:24})})]})})};var _=e.i(11512),v=e.i(57687);e.i(34348);var y=e.i(47611),b=e.i(56239),x=e.i(44323);let w=(0,e.i(54061).g)("tag"),I=Object.freeze({tag:w,label:`${w}__label`,icon:`${w}__icon`,rounded:`${w}--rounded`,variant:{primary:`${w}--primary`,secondary:`${w}--secondary`,outline:`${w}--outline`,tertiary:`${w}--tertiary`,pink:`${w}--pink`,red:`${w}--red`,green:`${w}--green`,blue:`${w}--blue`,orange:`${w}--orange`,purple:`${w}--purple`,violet:`${w}--violet`,blur:`${w}--blur`},size:{s:`${w}--s`,m:`${w}--m`,l:`${w}--l`},iconMargin:{left:`${w}__icon--left`,right:`${w}__icon--right`}}),j=(0,a.forwardRef)(({label:e,size:t="m",rounded:a,variant:l="primary",iconLeft:s,iconRight:n,onIconLeftClick:o,onIconRightClick:c,className:d,style:u,dataQa:m,dataId:p,...h},g)=>(0,i.jsx)(i.Fragment,{children:e&&(0,i.jsxs)("div",{ref:g,className:(0,r.default)(I.tag,I.variant[l],I.size[t],{[I.rounded]:a},d),style:u,...h,"data-id":p,"data-qa":m,children:[s&&(0,i.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,i.jsx)("span",{className:(0,r.default)(I.label,I.size[t]),children:e}),n&&(0,i.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 C=e.i(11864),N=e.i(14087),k=e.i(85900);let W={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},S={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},M=e=>a.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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:i,size:l,onClick:s}){return a.default.createElement("span",{className:e,style:{...W,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&{width:`${i}px`,height:`${i}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},a.default.createElement(M,{viewBox:"0 0 24 24",style:S}))}$.displayName="IconFdsArrowUpRightSmallO";var Y=((t=Y||{}).light="light",t.gray="gray",t);let T=(0,c.g)("best-offers-banner","sc"),L=Object.freeze({bestOffersBaner:T,wrapper:`${T}__wrapper`,wideWrapper:`${T}__wrapper--wide`,whiteWrapper:`${T}__wrapper--white`,content:`${T}__content`,header:`${T}__header`,title:`${T}__title`,subtitle:`${T}__subtitle`,icon:`${T}__icon`,iconBlack:`${T}__icon--black`,iconWhite:`${T}__icon--white`,image:`${T}__image`}),Z=({title:e,image:t,url:a,description:l,backgroundColor:s,textColor:o,wide:c,theme:d,handleBannerDataLayerPush:u,className:m})=>{let p=d===Y.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,i.jsxs)("div",{className:(0,r.default)(L.wrapper,m,{[L.wideWrapper]:c}),style:h,onClick:()=>{u(),window.open(a,"_blank")},children:[(0,i.jsxs)("div",{className:L.content,children:[(0,i.jsxs)("div",{className:L.header,children:[(0,i.jsx)(n.Text,{weight:"medium",size:"24",className:L.title,style:{color:o},children:e}),(0,i.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,i.jsx)($,{size:32})})]}),l&&(0,i.jsx)(n.Text,{size:"16",style:{color:o},children:l})]}),(null==t?void 0:t.url)&&(0,i.jsx)("picture",{className:L.image,children:(0,i.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`}),O={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},P={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function F(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let J=e=>a.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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 A({className:e,style:t,boxSize:i,size:l,onClick:s}){return a.default.createElement("span",{className:e,style:{...O,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&F(i),...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},a.default.createElement(J,{viewBox:"0 0 24 24",style:P}))}A.displayName="IconFdsQuestionCircleO";let V=e=>a.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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 E({className:e,style:t,boxSize:i,size:l,onClick:s}){return a.default.createElement("span",{className:e,style:{...O,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&F(i),...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},a.default.createElement(V,{viewBox:"0 0 24 24",style:P}))}E.displayName="IconFdsStarF";let U=({title:e,value:t,tooltip:l,textColor:s,unitsAsColumn:o,isTitleUnit:c})=>{let d;return(0,i.jsxs)("div",{className:(0,r.default)(z.unit,{[z.unitRow]:o}),children:[(0,i.jsxs)("div",{className:z.unitTitleWrapper,children:[(0,i.jsx)(n.Text,{size:"14",className:z.unitTitle,children:e}),l&&(0,i.jsx)(x.Tooltip,{text:l,children:(0,i.jsx)(A,{className:z.tooltipIcon})})]}),(0,i.jsx)(n.Text,{weight:"medium",size:c?"18":o?"16":"24",className:z.unitValue,style:{color:s},children:e.includes("Рейтинг")?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E,{size:16,style:{color:"var(--color-orange-400)"}}),t]}):(d=t.split("₽")).map((e,t)=>(0,i.jsxs)(a.Fragment,{children:[e,t<d.length-1&&(0,i.jsx)(n.Text,{weight:"regular",children:"₽"})]},`${e}-${t}`))})]})},B=({tags:e,isGrayTheme:t})=>{let a=t?"secondary":"primary";return(0,i.jsx)("div",{className:z.tags,children:e.sort((e,t)=>e.order-t.order).map(e=>(0,i.jsx)(j,{className:z.tag,label:e.label,variant:e.variant?e.variant:a,rounded:!0},e.label))})},X=({companyName:e,name:t,url:a,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===Y.gray,_=i=>{let a={event:"data-event",eventCategory:u,eventAction:`click_button_${(0,b.t)(i)}_${m}`,eventLabel:(0,b.t)(`${e}_${t}`)};if(g){let e=s.find(e=>e.title.toLowerCase()===g.toLowerCase());e&&(a.eventValue=(0,b.t)(e.value))}d(a)};return(0,i.jsxs)("div",{className:(0,r.default)(z.wrapper,{[z.whiteWrapper]:f}),children:[(0,i.jsxs)("div",{className:z.bankInfo,children:[l&&(0,i.jsx)("img",{src:l,width:56,height:56,alt:`${e} logo`,loading:"lazy"}),(0,i.jsx)(U,{title:t,value:e,isTitleUnit:!0})]}),(0,i.jsx)("div",{className:(0,r.default)(z.units,{[z.unitsColumn]:c}),children:s.map(e=>(0,i.jsx)(U,{title:e.title,value:e.value,tooltip:e.tooltip,textColor:e.textColor,unitsAsColumn:c},`${e.title}-${e.value}`))}),(0,i.jsxs)("div",{className:z.bottomBlock,children:[n&&(0,i.jsx)(B,{tags:n,isGrayTheme:f}),o&&o.text.trim().length>0&&(0,i.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:()=>_(o.text)}),(0,i.jsx)(y.Button,{as:"a",className:(0,r.default)(z.button,h),size:"xs",label:"Подробнее",href:a,onClick:()=>_("podrobnee_o_kartochke_iz")})]})]})},D=(0,c.g)("offers-list","sc"),G=Object.freeze({offersList:D,wrapper:`${D}__wrapper`,sliderWrapper:`${D}__sliderWrapper`,offerItem:`${D}__offerItem`,compact:`${D}__offerItem--compact`,bannerItem:`${D}__bannerItem`}),H=({offers:e,banner:t,dataLayerPush:a,eventCategory:l,productType:s,theme:n,singleProduct:o})=>{let c=e.length<=2;return(0,i.jsxs)(v.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,i.jsx)(v.SliderItem,{className:(0,r.default)(G.offerItem,{[G.compact]:o}),children:(0,i.jsx)(X,{...e,dataLayerPush:a,eventCategory:l,productType:s,theme:n})},e.id)),t&&(0,i.jsx)(v.SliderItem,{className:G.bannerItem,children:(0,i.jsx)(Z,{...t,handleBannerDataLayerPush:()=>{a({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])),ei={auto:{mask:"a 000 aa 00",placeholder:"A 000 AA 00"},moto:{mask:"0000 aa 00",placeholder:"0000 AA 00"}},ea="АВЕКМНОРСТУХ",el=RegExp(`[${ea}]`,"i"),es=RegExp(`[^0-9${ea}]`,"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"),_=(0,k.joinURL)(f,"vehicle"),v=p?g:_,[x,w]=(0,a.useState)(""),[I,j]=(0,a.useState)("auto"),{mask:W,placeholder:S}=ei[I],M=m===Y.gray,$=`?${new URLSearchParams({type:p?I:"auto",license:x})}`,T=(0,k.joinURL)(v,$),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,i)=>{d({event:"data-event",eventCategory:u,eventAction:t,eventLabel:i??e})};return(0,i.jsxs)("div",{className:Q.wrapper,children:[(0,i.jsxs)("div",{className:(0,r.default)(Q.card,{[Q.whiteCard]:M}),children:[l&&(0,i.jsx)("picture",{children:(0,i.jsx)("img",{src:`${l}/widgets/BestOffers/auto_bg.png`,alt:"Автомобиль",loading:"lazy",className:Q.image})}),(0,i.jsxs)("div",{className:Q.content,children:[(0,i.jsxs)(s.Heading,{as:"h3",type:"h3",children:["Онлайн калькулятор ",p?"ОСАГО":"Каско"]}),(0,i.jsxs)("div",{className:Q.inputWrapper,children:[p&&(0,i.jsx)(N.Select,{options:ee,value:et[I],label:"Тип транспорта",variant:M?"primary":"secondary",className:Q.select,onChange:e=>{w(""),j(e.value),z(`selector_item_${(0,b.t)(e.label)}`)}}),(0,i.jsx)(C.InputMasked,{label:"Госномер",variant:M?"primary":"secondary",maskOpts:{mask:W,definitions:{a:el}},maskPlaceholder:S,value:x,className:Q.input,onChange:(e,t)=>{w(t.replace(es,"").toUpperCase())},onClick:()=>z(`message_field_${(0,b.t)(R)}`),onBlur:()=>z(`on_message_field_${(0,b.t)(R)}`)}),(0,i.jsxs)(n.Text,{children:["У меня"," ",(0,i.jsx)(o.Link,{href:v,onClick:()=>{z("click_link_net_nomera",v)},children:"нет номера"})]})]}),(0,i.jsx)(y.Button,{as:"a",href:T,size:"s",className:Q.button,onClick:()=>{z(`click_button_rasschitat_${(0,b.t)(R)}`,T)},children:"Рассчитать"})]})]}),(0,i.jsx)("div",{className:Q.banner,children:(0,i.jsx)(Z,{...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=Y.light,className:p,initialActiveChipId:h})=>{var g;let v,y=m===Y.gray,b=Array.isArray(e)?e.filter(({banner:e,offers:t,productType:i})=>!!e||!!(null!=t&&t.length)||"osago"===i||"kasko"===i).map(e=>({...e,offers:Array.isArray(e.offers)?e.offers:[]})):[],x=b.map(e=>({url:e.productType,title:e.name})),w=(null==(g=x[0])?void 0:g.url)??"",[I,j]=(0,a.useState)(h??w),C=I&&b.some(e=>e.productType===I)?I:w,N=b.find(e=>e.productType===C)??b[0];if(!N)return null;let k=ec[N.name.toLowerCase()],W=k?`по ${k}`:N.name,S=("kasko"===(v=null==N?void 0:N.productType)||"osago"===v)&&t?(0,i.jsx)(en,{type:N.productType,banner:N.banner,baseUrl:t,s3Assets:o,dataLayerPush:d,eventCategory:c,theme:m}):null;return(0,i.jsx)("section",{className:(0,r.default)(eo.bestOffers,p,{[eo.singleProduct]:u,[eo.graySection]:y}),children:(0,i.jsxs)(l.Container,{children:[(0,i.jsx)("div",{className:(0,r.default)(eo.titleWrapper,u&&eo.singleProductTitleWrapper),children:(0,i.jsxs)(s.Heading,{as:"h2",type:u?"h2":"display",className:(0,r.default)(eo.title,u&&eo.singleProductTitle),children:["Лучшие предложения ",u?W:"сегодня"]})}),!u&&(0,i.jsx)(_.N,{items:x,maxNumberOfLines:2,activeChipId:C,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,i.jsxs)("div",{children:[S??(0,i.jsx)(H,{offers:N.offers,banner:N.banner,dataLayerPush:d,eventCategory:c,productType:N.productType,theme:m,singleProduct:u}),N.hasWarning&&(0,i.jsx)(n.Text,{as:"p",size:"16",className:eo.warning,children:N.warningCustomText??"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})]}),N.checkAllUrl&&(0,i.jsx)(f,{href:N.checkAllUrl,event:{event:"data-event",eventCategory:c,eventAction:"link",eventLabel:`Показать все предложения ${N.productType}`},dataLayerPush:d,iconGrayBackground:!y,className:eo.allOffersLink,linkClassName:N.checkAllLinkClassName,children:"Показать все предложения"})]})})}],8810)},38886,86969,e=>{"use strict";var t=e.i(43476),i=e.i(71645),a=e.i(74080);e.s(["Portal",0,({children:e,id:l="portal-root"})=>{let[s,n]=(0,i.useState)(null);return(0,i.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,a.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),i=e.i(71645),a=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,i.useRef)(null),d=(0,i.useCallback)(()=>{e&&(c.current=setTimeout(()=>{e()},o))},[o,e]),u=(0,i.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,i.useEffect)(()=>(r&&window.addEventListener("keydown",u),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",u)}),[r,u]),(0,t.jsx)("div",{className:(0,a.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:i=!1,footerClassName:l})=>(0,t.jsx)("div",{className:(0,a.default)(r.default.footer,i&&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:_,subtitle:v,closeButton:y,footerClassName:b})=>{var x;let w,[I,j]=(0,i.useState)(!1),[C,N]=(0,i.useState)(!1),[k,W]=(0,i.useState)(!0),[S,M]=(0,i.useState)("120%"),$=(0,i.useRef)(null),Y=(0,i.useRef)(0),T=(0,i.useRef)(!1),L=e=>{let t=$.current?.offsetTop,i=$.current?.offsetHeight;if(T.current=!0,W(!1),t&&i){let a=e?.touches[0]?.clientY-t,l=0;a>=0&&a<=i+30&&(l=a),a>i+30&&(l=i+30),M(`${l}px`),Y.current=l}},Z=()=>{T.current&&(Y.current>p&&d?d?.():M("0"),W(!0),T.current=!1),window.removeEventListener("touchmove",L),window.removeEventListener("touchend",Z)};(0,i.useEffect)(()=>{s&&setTimeout(()=>{j(!0),N(!0),M("0")},100),!s&&C&&(M("120%"),j(!1),N(!1))},[C,s]),x=s&&h,w=(0,i.useRef)(null),(0,i.useEffect)(()=>{let e=w.current,t=window.innerWidth-document.documentElement.clientWidth;x&&t&&!document.body.style.top&&(window.prevScrollPosition=window.scrollY||window.pageYOffset),x&&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`)),x&&!t&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw")),x&&e&&e.setAttribute("data-portal","");let i=document.querySelectorAll("[data-portal]").length>1;x||i||(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")),x||i||void 0===window.prevScrollPosition||(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0),!x&&e&&e.removeAttribute("data-portal")},[x]);let R="function"==typeof y?y():y;return(0,t.jsxs)("div",{"data-portal":!0,className:(0,a.default)(c.default.mobilePopup,C&&c.default.mobilePopupOpen,f),children:[(0,t.jsx)(n,{onClose:()=>{s&&d?.()},onToucheMove:()=>{s&&(j(!1),window.addEventListener("touchmove",L),window.addEventListener("touchend",Z))},isOpen:s,delay:0}),(0,t.jsxs)("div",{className:(0,a.default)(c.default.content,m&&c.default.contentFull,k&&c.default.contentTransition,k&&I&&c.default.contentTransitionOpen),ref:$,style:{transform:`translateY(${S})`},children:[(0,t.jsx)("div",{className:c.default.contentLine}),(0,t.jsxs)("div",{className:(0,a.default)(c.default.contentContainer,r&&c.default.smallContentContainer,{[c.default.min]:!_&&!u},g),children:[!!_&&(0,t.jsx)("div",{className:c.default.title,children:_}),!!v&&(0,t.jsx)("div",{className:(0,a.default)(c.default.title,c.default.subtitle),children:v}),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:a=!1,isOpen:s=!1,...n})=>{let{mounted:r}=(({opened:e})=>{let[t,a]=(0,i.useState)(!1),s=(0,i.useRef)(null),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>(e&&!n.current?(n.current=!0,a(!0)):!e&&n.current&&(s.current=setTimeout(()=>{n.current=!1,a(!1)},l)),()=>{s.current&&clearTimeout(s.current)}),[e]),{mounted:t}})({opened:s});return r?(0,t.jsx)(d,{isSmallPopup:a,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 i="code_verifier",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",l=()=>{if(!globalThis.crypto?.subtle)throw Error("PKCE is not supported in this browser");return globalThis.crypto},s=async e=>{var t;let i;return t=new Uint8Array(await l().subtle.digest("SHA-256",new TextEncoder().encode(e))),i="",t.forEach(e=>{i+=String.fromCharCode(e)}),btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")},n=async()=>{let e,t,i=(e=new Uint8Array(96),l().getRandomValues(e),t="",e.forEach(e=>{t+=a.charAt(e%a.length)}),t);return{codeChallenge:await s(i),codeVerifier:i}};e.s(["createPkceKeys",0,n,"getCodeVerifier",0,()=>t.appSessionStorage.getItemRaw(i),"removeCodeVerifier",0,()=>{t.appSessionStorage.removeItem(i)},"saveCodeVerifier",0,e=>{t.appSessionStorage.setItem(i,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,i){let a=new URLSearchParams({scLayoutName:e,scPageUrl:i}).toString();return(await (0,t.callApi)({url:`/api/v1/data/page-data?${a}`,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),i=e.i(15612),a=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),i="";return t.forEach(e=>{i+=String.fromCharCode(e)}),btoa(i)},n=(e,i,a)=>{let l=(0,t.stringifyQuery)(a),s=e.includes("?")?"&":"?";return`${e}${s}scope=${i}&${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,i.createPkceKeys)(),h=e||{},g=((e={},t,i="")=>{let n=a.appLocalStorage.getItemRaw("browserId"),r=a.appSessionStorage.getItemRaw("browserSessionId"),o={...l.state,...e,browserId:n,browserSessionId:r};return t?o.phone=i:(delete o.phone,delete o.phoneVerify),s(JSON.stringify(o))})(h.state||{},d,o);(0,i.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,_,{client_id:v.client_id,redirect_uri:v.redirect_uri,response_mode:"fragment",response_type:v.response_type,prompt:"none",code_challenge:v.code_challenge,code_challenge_method:v.code_challenge_method})},o=async(e={},t,i)=>r({data:e,redirect_uri:t,phone:i,includePhoneInState:!0}),c=async(e={},t,i)=>r({data:e,endpoint:t,redirect_uri:i,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),i=e.i(71645),a=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:i,alt:a,caption:l,className:n,pictureClassName:r,captionClassName:d,imageClassName:u,isLazy:m=!0})=>{let p=e.replace(c,"%$1"),h=i.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:a??"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,i.useState)(1),[o,c]=(0,i.useState)(1),[d,m]=(0,i.useState)({x:0,y:0}),[p,h]=(0,i.useState)({x:0,y:0}),g=(0,i.useRef)(null),f=(0,i.useRef)(null),_=(0,i.useRef)(1),v=(0,i.useRef)(!1);(0,i.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,i.useEffect)(()=>{if(v.current){v.current=!1;let e=document.getElementById("imageModalContainerId");if(!e)return;let t=e.getBoundingClientRect(),i=t.x||0,a=t.height||0;m({x:-(i/n*1),y:-((t.y||0)/n*1)+window.innerHeight/n/2-a/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,i]=[e[0],e[1]],a=t.clientX-i.clientX,l=t.clientY-i.clientY;return Math.sqrt(a*a+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<_.current?t=_.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)(a.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 i=t.getBoundingClientRect().width||0,a=i>0?e/i:1;_.current=a,r(a),v.current=!0,document.body.style.overflow="hidden",document.body.style.height="100vh"}})})]})};e.s(["ContentImage",0,({env:e,imageFile:a,imageData:l,imageCaption:o,className:c,disableZoom:p,imageClassName:h})=>{let g=(0,r.useMedia)("lg"),[f,_]=(0,i.useState)(!1),v=e.NEXT_PUBLIC_BASE_URL,y=l||`${v}/img/posts_content/large/${a}`,b=()=>l?{mobile:l,desktop:l}:{mobile:`${v}/img/posts_content/small/${a}`,desktop:`${v}/img/posts_content/large/${a}`};return a||l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,s.default)(u.default["content-image"],c),onClick:()=>{!p&&g&&_(!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:()=>_(!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,i={})=>{(i={path:"/",...i}).expires instanceof Date&&(i.expires=i.expires.toUTCString());let a=encodeURIComponent(e)+"="+encodeURIComponent(t);for(let e in i){if(!i.hasOwnProperty(e))continue;a+="; "+e;let t=i[e];!0!==t&&(a+="="+t)}document.cookie=a},removeItem:e=>{t.setItem(e,"",{"max-age":-1})}};e.s(["appCookie",0,t],52918);var i=e.i(231);let a="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=i.appLocalStorage.getItem(a))||null===e||"string"!=typeof e.value||"number"!=typeof e.expiresAt?null:e.expiresAt>Date.now()?e.value:(i.appLocalStorage.removeItem(a),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},i.appLocalStorage.setItem(a,JSON.stringify(t)))}i.appLocalStorage.removeItem(a)}],97209)},11615,e=>{"use str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ow",customer_record_state:"created"},a=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:i};let s=await fetch(l,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:(({code:e,refreshToken:i,codeVerifier:a,grantType:l=t,redirectUri:s})=>{let n=new URLSearchParams;return e&&n.set("code",e),i&&n.set("refresh_token",i),l===t&&a&&n.set("code_verifier",a),n.set("response_type","code"),n.set("grant_type",l),n.set("client_id","journal"),n.set("redirect_uri",s),n})(e)}),n=await a(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])},11864,e=>{"use strict";var t=e.i(43476),i=e.i(71645);e.i(95919);var a=e.i(62383),l=e.i(91390);let s=(0,i.forwardRef)(({maskOpts:e,value:s="",autoFocus:n=!1,onChange:r,onKeyDown:o,...c},d)=>{let[u,m]=(0,i.useState)(""),{ref:p,setValue:h,unmaskedValue:g}=(0,a.useIMask)(e,{onAccept:(e,t)=>{m(e),null==r||r(t.unmaskedValue,e)}});return(0,i.useEffect)(()=>{s!==g&&(h(s),m(s))},[s,h,g]),(0,i.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),i=e.i(71645),a=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:i})=>i?(0,t.jsx)(a.FloatingPortal,{id:r.T,children:e}):(0,t.jsx)(t.Fragment,{children:e}),m=(0,i.forwardRef)(({position:e="top",text:r,zIndex:c=1,inverted:m,withoutTail:p,children:h,boundingOffset:g=12,boundaryPadding:f,moveToBody:_=!1,hideWhenOutOfBounds:v=!1,style:y,className:b,dataQa:x,dataId:w,...I},j)=>{let[C,N]=(0,i.useState)(!1),k=(0,i.useRef)(null),{refs:W,floatingStyles:S,context:M,middlewareData:$}=(0,a.useFloating)({open:C,onOpenChange:N,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}),...v?[(0,s.hide)({strategy:"escaped",padding:-24})]:[]]}),Y=(0,a.useHover)(M,{delay:300}),{getReferenceProps:T,getFloatingProps:L}=(0,a.useInteractions)([Y]),Z=(0,a.useTransitionStyles)(M,{duration:300});return(0,i.useImperativeHandle)(j,()=>({getActivatorElement:W.reference,getTooltipElement:W.floating})),(0,i.useEffect)(()=>{var e;(null==(e=$.hide)?void 0:e.escaped)&&N(!1)},[$.hide]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-qa":(0,o.g)(`${x}-activator`,!!x),ref:W.setReference,...T,className:d.wrapper,children:h}),Z.isMounted&&(0,t.jsx)(u,{moveToBody:_,children:(0,t.jsxs)("div",{role:"tooltip",ref:W.setFloating,style:{...S,...Z.styles,...y,zIndex:c},className:(0,n.default)(d.tooltip,b,{[d.inverted]:m}),...L,...I,"data-qa":x,"data-id":w,children:[(0,t.jsx)("span",{className:(0,n.default)(d.text,{[d.inverted]:m}),children:r}),!p&&(0,t.jsx)(a.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),i=e.i(10653);e.s(["u",0,function(e,a){let[l,s]=(0,t.useState)(e);return(0,t.useEffect)(()=>{(0,i.i)(a)&&s(a)},[JSON.stringify(a)]),[l,s]}])}]);