(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73477,e=>{e.v({bestOffersWrapper:"BestOffersSection-module-scss-module__2HfRwq__bestOffersWrapper",shine:"BestOffersSection-module-scss-module__2HfRwq__shine"})},81911,e=>{e.v({author:"AuthorQuote-module-scss-module__CRcRmW__author",authorLink:"AuthorQuote-module-scss-module__CRcRmW__authorLink",image:"AuthorQuote-module-scss-module__CRcRmW__image",name:"AuthorQuote-module-scss-module__CRcRmW__name",position:"AuthorQuote-module-scss-module__CRcRmW__position",quote:"AuthorQuote-module-scss-module__CRcRmW__quote",shine:"AuthorQuote-module-scss-module__CRcRmW__shine",wrapper:"AuthorQuote-module-scss-module__CRcRmW__wrapper"})},99008,e=>{e.v({fade:"AuthTooltip-module-scss-module__thXgRa__fade",mobilePopup:"AuthTooltip-module-scss-module__thXgRa__mobilePopup",shine:"AuthTooltip-module-scss-module__thXgRa__shine",text:"AuthTooltip-module-scss-module__thXgRa__text",tooltip:"AuthTooltip-module-scss-module__thXgRa__tooltip",wrapper:"AuthTooltip-module-scss-module__thXgRa__wrapper"})},20152,e=>{e.v({actionButton:"Sort-module-scss-module__U9h0XG__actionButton",icon:"Sort-module-scss-module__U9h0XG__icon",iconButton:"Sort-module-scss-module__U9h0XG__iconButton",iconInverted:"Sort-module-scss-module__U9h0XG__iconInverted",modal:"Sort-module-scss-module__U9h0XG__modal",modalButton:"Sort-module-scss-module__U9h0XG__modalButton",newSortRadioModal:"Sort-module-scss-module__U9h0XG__newSortRadioModal",shine:"Sort-module-scss-module__U9h0XG__shine",sortType:"Sort-module-scss-module__U9h0XG__sortType",sortTypeButton:"Sort-module-scss-module__U9h0XG__sortTypeButton",sortTypeDesktop:"Sort-module-scss-module__U9h0XG__sortTypeDesktop",sortTypeHead:"Sort-module-scss-module__U9h0XG__sortTypeHead",sortTypeRadio:"Sort-module-scss-module__U9h0XG__sortTypeRadio",sortTypeTooltip:"Sort-module-scss-module__U9h0XG__sortTypeTooltip",sortTypeTrigger:"Sort-module-scss-module__U9h0XG__sortTypeTrigger",text:"Sort-module-scss-module__U9h0XG__text",wrapper:"Sort-module-scss-module__U9h0XG__wrapper"})},1177,e=>{e.v({author:"Comments-module-scss-module__g4SbPG__author",caption:"Comments-module-scss-module__g4SbPG__caption",comment:"Comments-module-scss-module__g4SbPG__comment",commentBody:"Comments-module-scss-module__g4SbPG__commentBody",commentControls:"Comments-module-scss-module__g4SbPG__commentControls",commentHeaderText:"Comments-module-scss-module__g4SbPG__commentHeaderText",comments:"Comments-module-scss-module__g4SbPG__comments",date:"Comments-module-scss-module__g4SbPG__date",dislike:"Comments-module-scss-module__g4SbPG__dislike",form:"Comments-module-scss-module__g4SbPG__form",header:"Comments-module-scss-module__g4SbPG__header",input:"Comments-module-scss-module__g4SbPG__input",letter:"Comments-module-scss-module__g4SbPG__letter",more:"Comments-module-scss-module__g4SbPG__more",replyBtn:"Comments-module-scss-module__g4SbPG__replyBtn",shine:"Comments-module-scss-module__g4SbPG__shine",submitBtn:"Comments-module-scss-module__g4SbPG__submitBtn",submitBtnArrow:"Comments-module-scss-module__g4SbPG__submitBtnArrow",title:"Comments-module-scss-module__g4SbPG__title",unit:"Comments-module-scss-module__g4SbPG__unit",wrapper:"Comments-module-scss-module__g4SbPG__wrapper"})},55104,e=>{e.v({button:"SocShareButtons-module-scss-module__xOlMva__button",copy:"SocShareButtons-module-scss-module__xOlMva__copy",item:"SocShareButtons-module-scss-module__xOlMva__item",max:"SocShareButtons-module-scss-module__xOlMva__max",maxIcon:"SocShareButtons-module-scss-module__xOlMva__maxIcon",ok:"SocShareButtons-module-scss-module__xOlMva__ok",shine:"SocShareButtons-module-scss-module__xOlMva__shine",soc:"SocShareButtons-module-scss-module__xOlMva__soc",tg:"SocShareButtons-module-scss-module__xOlMva__tg",visuallyHidden:"SocShareButtons-module-scss-module__xOlMva__visuallyHidden",vk:"SocShareButtons-module-scss-module__xOlMva__vk"})},54663,e=>{e.v({chip:"PostActions-module-scss-module__JB_0oq__chip",icons:"PostActions-module-scss-module__JB_0oq__icons",links:"PostActions-module-scss-module__JB_0oq__links",shareWrapper:"PostActions-module-scss-module__JB_0oq__shareWrapper",shine:"PostActions-module-scss-module__JB_0oq__shine",show:"PostActions-module-scss-module__JB_0oq__show",soc:"PostActions-module-scss-module__JB_0oq__soc",unit:"PostActions-module-scss-module__JB_0oq__unit",wrapper:"PostActions-module-scss-module__JB_0oq__wrapper"})},20378,e=>{e.v({bgImage:"QrAd-module-scss-module__GKP0jG__bgImage",button:"QrAd-module-scss-module__GKP0jG__button",buttonMobile:"QrAd-module-scss-module__GKP0jG__buttonMobile",container:"QrAd-module-scss-module__GKP0jG__container",qr:"QrAd-module-scss-module__GKP0jG__qr",qrContainer:"QrAd-module-scss-module__GKP0jG__qrContainer",right:"QrAd-module-scss-module__GKP0jG__right",shine:"QrAd-module-scss-module__GKP0jG__shine",title:"QrAd-module-scss-module__GKP0jG__title",titleSmall:"QrAd-module-scss-module__GKP0jG__titleSmall"})},76357,39002,47865,e=>{"use strict";let t={src:e.i(24110).default,width:256,height:256,blurWidth:0,blurHeight:0};e.s(["default",0,t],76357);var s=e.i(43476),a=e.i(71645),l=e.i(7670);let o=e=>(0,s.jsx)("a",{...e});var n=e.i(20378);let r="Управляйте финансами через приложение Финуслуг",i="https://promo.finuslugi.ru/mobapp/",d=(0,a.memo)(({Link:e=o,text:t=r,className:a,BgImage:d,QrImage:u,isSmall:c,href:m=i,hideButtons:_})=>(0,s.jsxs)(e,{className:(0,l.default)(n.default.container,a),target:"_blank",href:m,children:[(0,s.jsx)("div",{className:(0,l.default)(n.default.title,c&&n.default.titleSmall),dangerouslySetInnerHTML:{__html:t}}),(0,s.jsxs)("div",{className:n.default.right,children:[u&&(0,s.jsx)("div",{className:n.default.qrContainer,children:(0,s.jsx)(u,{className:n.default.qr})}),!_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:n.default.button,children:"Отсканируйте QR"}),(0,s.jsx)("div",{className:(0,l.default)(n.default.button,n.default.buttonMobile),children:"Подробнее"})]}),d&&(0,s.jsx)(d,{className:n.default.bgImage})]})]}));d.displayName="UiQrAd",e.s(["UiQrAd",0,d],39002),e.s([],47865)},75331,e=>{e.v({blockTitle:"ReadMore-module-scss-module__EHKVGa__blockTitle",card:"ReadMore-module-scss-module__EHKVGa__card",container:"ReadMore-module-scss-module__EHKVGa__container",icons:"ReadMore-module-scss-module__EHKVGa__icons",image:"ReadMore-module-scss-module__EHKVGa__image",imageWrapper:"ReadMore-module-scss-module__EHKVGa__imageWrapper",shine:"ReadMore-module-scss-module__EHKVGa__shine",title:"ReadMore-module-scss-module__EHKVGa__title",unit:"ReadMore-module-scss-module__EHKVGa__unit",wrapper:"ReadMore-module-scss-module__EHKVGa__wrapper"})},61167,e=>{e.v({hide:"YaAdFoxBanner-module-scss-module__mudSjG__hide",shine:"YaAdFoxBanner-module-scss-module__mudSjG__shine"})},13168,e=>{e.v({body:"InfoBlock-module-scss-module__0zS1UW__body",button:"InfoBlock-module-scss-module__0zS1UW__button",component:"InfoBlock-module-scss-module__0zS1UW__component",description:"InfoBlock-module-scss-module__0zS1UW__description",image:"InfoBlock-module-scss-module__0zS1UW__image",isOutside:"InfoBlock-module-scss-module__0zS1UW__isOutside",shine:"InfoBlock-module-scss-module__0zS1UW__shine",title:"InfoBlock-module-scss-module__0zS1UW__title"})},27464,e=>{e.v({"adfox-banner":"ContentBlocks-module-scss-module__iOSIeW__adfox-banner",annotation:"ContentBlocks-module-scss-module__iOSIeW__annotation",arrow:"ContentBlocks-module-scss-module__iOSIeW__arrow","arrow-left":"ContentBlocks-module-scss-module__iOSIeW__arrow-left","arrow-right":"ContentBlocks-module-scss-module__iOSIeW__arrow-right","block-link":"ContentBlocks-module-scss-module__iOSIeW__block-link","block-link-old":"ContentBlocks-module-scss-module__iOSIeW__block-link-old","blog-slider":"ContentBlocks-module-scss-module__iOSIeW__blog-slider","brain-banner":"ContentBlocks-module-scss-module__iOSIeW__brain-banner","card-banner":"ContentBlocks-module-scss-module__iOSIeW__card-banner","content-blocks":"ContentBlocks-module-scss-module__iOSIeW__content-blocks","content-image":"ContentBlocks-module-scss-module__iOSIeW__content-image","content-image-element":"ContentBlocks-module-scss-module__iOSIeW__content-image-element","content-slider-counter":"ContentBlocks-module-scss-module__iOSIeW__content-slider-counter","content-slider-list":"ContentBlocks-module-scss-module__iOSIeW__content-slider-list","content-slider-pager":"ContentBlocks-module-scss-module__iOSIeW__content-slider-pager","content-slider-wrapper":"ContentBlocks-module-scss-module__iOSIeW__content-slider-wrapper","content-table-wrapper":"ContentBlocks-module-scss-module__iOSIeW__content-table-wrapper",controls:"ContentBlocks-module-scss-module__iOSIeW__controls","credit-widget":"ContentBlocks-module-scss-module__iOSIeW__credit-widget",date:"ContentBlocks-module-scss-module__iOSIeW__date",disableContentBlocksStyles:"ContentBlocks-module-scss-module__iOSIeW__disableContentBlocksStyles","doc-file":"ContentBlocks-module-scss-module__iOSIeW__doc-file","doc-files":"ContentBlocks-module-scss-module__iOSIeW__doc-files","dossier-date-item":"ContentBlocks-module-scss-module__iOSIeW__dossier-date-item","feedback-widget":"ContentBlocks-module-scss-module__iOSIeW__feedback-widget","i-arrow-right":"ContentBlocks-module-scss-module__iOSIeW__i-arrow-right","i-chain":"ContentBlocks-module-scss-module__iOSIeW__i-chain","image-opened":"ContentBlocks-module-scss-module__iOSIeW__image-opened",infoBlock:"ContentBlocks-module-scss-module__iOSIeW__infoBlock","investor-banner":"ContentBlocks-module-scss-module__iOSIeW__investor-banner",keynote:"ContentBlocks-module-scss-module__iOSIeW__keynote","keynote-wrapper":"ContentBlocks-module-scss-module__iOSIeW__keynote-wrapper","list-with-counter":"ContentBlocks-module-scss-module__iOSIeW__list-with-counter","main-p":"ContentBlocks-module-scss-module__iOSIeW__main-p",notice:"ContentBlocks-module-scss-module__iOSIeW__notice",postAuthor:"ContentBlocks-module-scss-module__iOSIeW__postAuthor",qrAd:"ContentBlocks-module-scss-module__iOSIeW__qrAd",shine:"ContentBlocks-module-scss-module__iOSIeW__shine",short:"ContentBlocks-module-scss-module__iOSIeW__short","slider-item":"ContentBlocks-module-scss-module__iOSIeW__slider-item","text-styles":"ContentBlocks-module-scss-module__iOSIeW__text-styles","text-styles__small":"ContentBlocks-module-scss-module__iOSIeW__text-styles__small",warning:"ContentBlocks-module-scss-module__iOSIeW__warning"})},25581,29883,15825,29151,92446,56331,81230,64619,46660,50056,31484,75727,7326,8237,e=>{"use strict";var t,s,a=((t=a||{}).Company="company",t.CompanyInsurance="company_insurance",t.Finuslugi="finuslugi",t.Industry="industry",t.IndustryInsurance="industry_insurance",t),l=((s={}).Annotation="annotation",s.HTML="html",s.Header="header",s.Keynote="keynote",s.SubHeader="sub_header",s.DocumentFile="document-file",s);e.s(["ContentType",()=>l],25581);var o=e.i(43476),n=e.i(8810),r=e.i(67638),i=e.i(94246),d=e.i(73477);e.s(["BestOffersSection",0,({tab:e,category:t})=>{let s={...e,banner:void 0},a=(0,r.getEnvValue)(),l=["best-offers",s.productType];return t&&l.push(t),(0,o.jsx)("div",{className:d.default.bestOffersWrapper,children:(0,o.jsx)(n.BestOffers,{tabs:[s],baseUrl:a.NEXT_PUBLIC_BASE_URL,s3Assets:a.NEXT_PUBLIC_S3_ASSETS,dataLayerPush:i.dataLayerPush,singleProduct:!0,eventCategory:l.join("_"),theme:"gray"})})},"getBestOffersTab",0,(e,t)=>{if(Array.isArray(e))return e.find(e=>e.productType===t)}],29883),e.s([],15825);var u=e.i(71645),c=e.i(70703),m=e.i(57688),_=e.i(22016),h=e.i(62965),p=e.i(7670),f=e.i(43487),g=e.i(76357),b=e.i(24301),x=e.i(81911);let v=({quote:e,name:t,position:s,img:a,url:l})=>{if(!e)return null;let n=l?.trim(),r=(0,o.jsxs)(o.Fragment,{children:[a&&(0,o.jsx)("div",{className:x.default.image,children:(0,o.jsx)("img",{src:a,alt:"portrait"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:x.default.name,children:t}),(0,o.jsx)("div",{className:x.default.position,children:s})]})]});return(0,o.jsxs)("div",{className:(0,p.default)(x.default.wrapper,"disableContentBlocksStyles"),children:[t&&n&&(0,o.jsx)("a",{className:(0,p.default)(x.default.author,x.default.authorLink),href:n,rel:(0,b.isLinkNoFollow)(n)?"nofollow":void 0,children:r}),t&&!n&&(0,o.jsx)("div",{className:x.default.author,children:r}),(0,o.jsx)("div",{className:x.default.quote,children:e})]})};e.i(34348);var S=e.i(47611);e.i(881);var k=e.i(43748),y=e.i(62798),j=e.i(97209);let C=e=>"object"==typeof e&&null!==e,A=e=>{let t;return"string"!=typeof e?null:(t=e.trim().split(/\s+/))[0]?1===t.length?t[0]:t[1]||null:null},w=e=>{let t,s=(0,j.getSavedAccessToken)(),a=s?(e=>{try{let t=e.split(".")[1];if(!t)return null;let s=t.replace(/-/g,"+").replace(/_/g,"/"),a=s.padEnd(s.length+(4-s.length%4)%4,"="),l=atob(a),o=Uint8Array.from(l,e=>e.charCodeAt(0));return JSON.parse(new TextDecoder().decode(o))}catch{return null}})(s):null;if(!C(a))return e;let l=C(t=a.authz_attrs)?A(t.given_name):null;return l||A(a.given_name)||e};var I=e.i(21047),T=e.i(11615),N=e.i(52918);let B=new Map,L=()=>{let e=window.location.href?.includes("state=")?"true":null;return(e=>{if(!e)return null;let t=e.includes("state=")?"true":null,{hash:s,search:a}=new URL(e,"https://www.finuslugi.ru"),l=new URLSearchParams(a).get("state");if(l)return l;let o=s.indexOf("?"),n=o>=0?s.slice(o+1):s.slice(1);return n&&new URLSearchParams(n).get("state")||t})(window.location.href)||e},O=async(e,t,s)=>{let a=[e,t,s].join("\n"),l=B.get(a);if(l)return l;let o=(0,T.exchangeCallbackToken)({tokenUrl:e,refreshToken:t,redirectUri:s,grantType:"refresh_token"}).then(e=>e.ok?((0,j.saveCallbackTokens)(e.data),e.data.access_token):(N.appCookie.removeItem("refresh_token"),null)).catch(()=>(N.appCookie.removeItem("refresh_token"),null)).finally(()=>{B.delete(a)});return B.set(a,o),o},E=async(e,t,s,a={})=>{let{ignoreCustomerIdCookie:l=!1}=a,o=l?null:N.appCookie.getItem("auth.gtm_customer_id");if(o)return o;if(!e)return null;let n=(0,j.getSavedAccessToken)();if(n)return n;let r=N.appCookie.getItem("refresh_token");return r&&t&&s?O(t,r,s):null},R=e=>{let t=window.cookieStore||null;if(!t)return()=>void 0;let s=t=>{let s;(!(s=[...t.changed||[],...t.deleted||[]]).length||s.some(e=>{let t;return"auth.gtm_customer_id"===(t=e.name)||"access_token"===t||"refresh_token"===t}))&&e()};return t.addEventListener("change",s),()=>{t.removeEventListener("change",s)}};e.s(["getCurrentAuthRedirectState",0,L,"getCurrentCommentAuthCookieUserId",0,E,"subscribeToCommentAuthCookieChange",0,R],29151);var U=e.i(5081),W=e.i(59260),G=e.i(231),P=e.i(37819),$=e.i(30855),M=e.i(83625);let H=["#5bce95","#ff696b","#c8df77","#ffb74d","#81d4fa","#aed581","#f06292","#4db6ac","#9575cd","#7986cb","#64b5f6","#4fc3f7","#4dd0e1","#4db6ac","#81c784","#dce775","#fff176","#ffd54f","#ffb74d","#ff8a65"],D="unsent_comments",F="comments_should_send_after_auth",z=()=>G.appLocalStorage.getItem(D)||{},q=e=>!0===(G.appLocalStorage.getItem(F)||{})[String(e)];var X=e.i(24734),V=e.i(18524);let K=async()=>{try{let e=await V.CmsService.getLayoutData("LoginWidget");return e?.custom||null}catch{return null}};e.i(38886);var Q=e.i(86969);e.i(75182);var J=e.i(64457),Y=e.i(65018),Z=e.i(79335),ee=e.i(99008);let et="Войдите, чтобы отправить комментарий",es=({isOpen:e,onClose:t,postId:s})=>{let a=(0,Y.useMedia)("lg"),l=window.location.href.split("#")[0],n=`${Z.LK}?returnTo=${l}#comments${s}`;return!a&&e?(0,o.jsx)("div",{className:"disableContentBlocksStyles",children:(0,o.jsx)("div",{className:ee.default.wrapper,children:(0,o.jsxs)("div",{className:ee.default.tooltip,children:[(0,o.jsx)("div",{children:et}),(0,o.jsx)(S.Button,{as:"a",label:"Войти",href:n,target:"_self",onClick:()=>{(0,W.newHandelDataLayerPush)({eventCategory:`${(0,P.translit)("журнал")}_${location.pathname}`,eventActionType:W.DataLayerActionType.button,eventActionText:(0,P.translit)("войти"),eventLabel:""})}})]})})}):(0,o.jsx)(Q.Portal,{children:(0,o.jsx)("div",{className:"disableContentBlocksStyles",children:(0,o.jsxs)(J.UiMobilePopup,{className:ee.default.mobilePopup,isOpen:e,onClose:t,hasCloseButton:!1,children:[(0,o.jsx)("div",{className:ee.default.text,children:et}),(0,o.jsx)(S.Button,{as:"a",label:"Войти",href:n,target:"_self"})]})})})};var ea=e.i(80844),el=e.i(3315);e.i(89485);var eo=e.i(22668),en=e.i(33329),er=e.i(2404);let ei=(0,e.i(54061).g)("checkbox"),ed=Object.freeze({checkbox:ei,input:`${ei}__input`,marker:`${ei}__marker`,wrapper:`${ei}__wrapper`,label:`${ei}__label`,caption:`${ei}__caption`,icon:`${ei}__icon`,iconButton:`${ei}__icon-button`,states:{error:`${ei}--error`,disabled:`${ei}--disabled`,inverted:`${ei}--inverted`},sizes:{xs:`${ei}--xs`,s:`${ei}--s`,m:`${ei}--m`},variants:{primary:`${ei}--primary`,secondary:`${ei}--secondary`}}),eu=(0,u.forwardRef)(({value:e=!1,variant:t="primary",state:s="default",label:a,disabled:l=!1,caption:n,className:r,icon:i,withIcon:d=!1,size:c="m",style:m,inverted:_=!1,children:h,inputRef:f,dataQa:g,dataId:b,onChange:x,onIconClick:v,...S},k)=>{let[y,j]=(0,eo.u)(!1,e),C=(0,u.useId)(),A=h||a;return(0,o.jsxs)("label",{ref:k,htmlFor:C,"data-marker-label":"",className:(0,p.default)(r,ed.checkbox,{[ed.states.inverted]:_,[ed.states.disabled]:l,[ed.states.error]:"error"===s,[ed.sizes[c]]:!0,[ed.variants[t]]:!0}),style:m,"data-id":b,"data-qa":g,children:[(0,o.jsx)("input",{id:C,ref:f,value:String(y),className:ed.input,type:"checkbox","aria-invalid":"error"===s,disabled:l,onChange:e=>{let t="string"==typeof y?!!y:!y;j(t),null==x||x(t,e)},...S}),(0,o.jsx)("span",{className:ed.marker,children:(0,o.jsx)(en.C,{type:"checkbox",checked:y,inverted:_,state:s,disabled:l})}),A&&(0,o.jsxs)("span",{className:ed.wrapper,children:[(0,o.jsx)("span",{className:(0,p.default)(ed.label),children:A}),n&&(0,o.jsx)(el.C,{className:ed.caption,withoutIcon:!0,children:n})]}),d&&(0,o.jsx)("button",{type:"button",className:(0,p.default)(ed.iconButton),onClick:l?void 0:v,children:(0,o.jsx)(er.P,{className:(0,p.default)(ed.icon),children:i?(0,o.jsx)(o.Fragment,{children:i}):(0,o.jsx)(ea.S,{})})})]})});eu.displayName="Checkbox";var ec=e.i(23179);e.i(47694);var em=e.i(20152);let e_=[{label:"По дате",value:"date"},{label:"По популярности",value:"likes",shortLabel:"По лайкам"}],eh=({onChangeSort:e,isIncreaseSort:t})=>(0,o.jsxs)("div",{className:(0,p.default)(em.default.sortTypeHead),children:[(0,o.jsx)("button",{style:{marginLeft:"0px",marginRight:"8px"},className:(0,p.default)(em.default.sortTypeButton),onClick:e,children:t?(0,o.jsx)(h.IconFdsSortDescendingO,{size:22}):(0,o.jsx)(h.IconFdsSortAscendingO,{size:22})}),"Сортировать"]}),ep=({isIncreaseSort:e,setIsIncreaseSort:t,sortType:s,setSortType:a,chipView:l,className:n})=>{let r=e_.find(e=>e.value===s),i=(0,u.useCallback)(()=>{t(e=>(G.appLocalStorage.setItem("comments_sort",JSON.stringify(!e)),!e))},[t]),d=(0,u.useCallback)(e=>{let t=e_.find(t=>t.value===e);t&&(G.appLocalStorage.setItem("comments_sort_type",JSON.stringify(t.value)),a(t.value))},[a]);return(0,o.jsxs)("div",{className:(0,p.default)(em.default.wrapper,n,{[em.default.chip]:l}),children:[(0,o.jsx)("button",{className:(0,p.default)(em.default.icon,em.default.iconButton),onClick:l?()=>null:i,children:e?(0,o.jsx)(h.IconFdsSortDescendingO,{size:24}):(0,o.jsx)(h.IconFdsSortAscendingO,{size:24})}),(0,o.jsxs)(ec.D,{children:[(0,o.jsx)(ec.h,{children:(0,o.jsx)("div",{role:"button",className:(0,p.default)(em.default.text,em.default.actionButton),"data-qa":s,children:r?.shortLabel||r?.label||"Сортировка"})}),(0,o.jsxs)(ec.a,{children:[(0,o.jsx)(eh,{onChangeSort:i,isIncreaseSort:e}),(0,o.jsx)(ec.c,{}),e_.map(e=>(0,o.jsx)("div",{"data-qa":`${e.value}_radio`,className:em.default.sortType,children:(0,o.jsx)(eu,{onChange:()=>{d(e.value)},value:e.value===s,label:e.label})},e.value))]})]})]})};var ef=e.i(1177);let eg="Гость",eb=(0,c.default)(()=>e.A(55589).then(({AuthWidgetModal:e})=>e),{loadableGenerated:{modules:[35651]}}),ex=async({isCallbackPageEnabled:e,ignoreCustomerIdCookie:t,tokenUrl:s,redirectUri:a})=>{let l=await E(e,s,a,{ignoreCustomerIdCookie:t});return l||(e?null:G.appLocalStorage.getItemRaw("partialAuth")||L())},ev=({env:e,postId:t,comments:s,inputRef:a})=>{let l=(0,I.useDisplayTimeZone)(),n=Array.isArray(s)?s:[],[r,i]=(0,u.useState)(""),[d,c]=(0,u.useState)([]),[m,_]=(0,u.useState)(3),[g,b]=(0,u.useState)(!1),[x,v]=(0,u.useState)(null),[j,C]=(0,u.useState)(!1),[A,T]=(0,u.useState)(!1),[N,B]=(0,u.useState)(!1),[L,O]=(0,u.useState)(!1),[E,V]=(0,u.useState)(!1),Q=(0,u.useRef)(!1),[J,Y]=(0,u.useState)(!1),[Z,ee]=(0,u.useState)("date"),et="false"!==String(e.NEXT_PUBLIC_COMMENTS_AUTH_WIDGET_ENABLED),ea="false"!==String(e.NEXT_PUBLIC_CALLBACK_PAGE_ENABLED),el="false"!==String(e.NEXT_PUBLIC_COMMENTS_AUTH_HIDDEN_IFRAME_ENABLED),eo=`${e.NEXT_PUBLIC_AUTH_WIDGET_SSO_TOKEN_URL}/token`,en=`${window.location.origin}/callback`,er=(({enabled:e,endpoint:t,redirectUri:s})=>{let a=(0,u.useRef)(null),l=(0,u.useRef)(null),o=(0,u.useCallback)(()=>{l.current&&(window.clearTimeout(l.current),l.current=null),a.current?.remove(),a.current=null},[]),n=(0,u.useCallback)(e=>{e?.target&&e.target!==a.current||(l.current&&window.clearTimeout(l.current),l.current=window.setTimeout(o,15e3))},[o]),r=(0,u.useCallback)(async()=>{if(e&&t&&s&&"u">typeof document&&document.body)try{let e=await K(),l=await (0,X.getHiddenSsoIframeUrl)(e,t,s),r=document.createElement("iframe");o(),r.hidden=!0,r.tabIndex=-1,r.setAttribute("aria-hidden","true"),r.style.display="none",r.style.width="0",r.style.height="0",r.style.border="0",r.addEventListener("load",n),r.addEventListener("error",n),a.current=r,r.src=l,document.body.appendChild(r)}catch{o()}},[e,t,s,o,n]);return(0,u.useEffect)(()=>o,[o]),r})({enabled:el,endpoint:`${e.NEXT_PUBLIC_AUTH_WIDGET_SSO_TOKEN_URL}/auth`,redirectUri:en});(0,u.useEffect)(()=>{let e=z()[String(t)]||"",s=q(t);i(e),O(s),Y(!0===G.appLocalStorage.getItem("comments_sort")),ee(G.appLocalStorage.getItem("comments_sort_type")||"date"),ex({isCallbackPageEnabled:ea,ignoreCustomerIdCookie:el,tokenUrl:eo,redirectUri:en}).then(e=>{v(e)})},[en,eo,ea,el,t]);let ei=[...n].sort((e,t)=>J&&"likes"===Z?new Date(t.date_created).getTime()-new Date(e.date_created).getTime():J||"likes"===Z?new Date(e.date_created).getTime()-new Date(t.date_created).getTime():new Date(t.date_created).getTime()-new Date(e.date_created).getTime()),ed=ei.length-m,eu=(0,y.pluralize)(ed,"комментарий","комментария","комментариев"),ec=(0,u.useCallback)(()=>{let e;e=G.appLocalStorage.getItem(F)||{},delete e[String(t)],G.appLocalStorage.setItem(F,JSON.stringify(e)),O(!1)},[t]),em=(0,u.useCallback)(()=>{let e;(e=G.appLocalStorage.getItem(F)||{})[String(t)]=!0,G.appLocalStorage.setItem(F,JSON.stringify(e)),O(!0)},[t]),e_=(0,u.useCallback)(async()=>{let e=await ex({isCallbackPageEnabled:ea,ignoreCustomerIdCookie:el,tokenUrl:eo,redirectUri:en});e&&(v(e),T(!1),B(!1),O(q(t)))},[en,eo,ea,el,t]),eh=(0,u.useCallback)(async e=>{let s;if(!r)return!1;let a=w(eg);if(!await (0,f.submitPostCommentV2)(t,a,r,"send"))return!1;let l={id:(0,U.generateUuid)(),comment:r,date_created:new Date().toISOString(),user_name:a,post_id:String(t),user_id:e};return c(e=>[...e,l]),i(""),s=z(),delete s[String(t)],G.appLocalStorage.setItem(D,JSON.stringify(s)),ec(),!0},[ec,r,t]),ev=(0,u.useCallback)(async(e=x)=>{if(e&&r&&!Q.current){Q.current=!0,V(!0);try{let s=w(eg);if(await (0,f.submitPostCommentV2)(t,s,r,"validate")){let t=await eh(e);b(!t),t||ec();return}b(!0),ec()}catch{return}finally{Q.current=!1,V(!1)}}},[ec,x,eh,r,t]),eS=(0,u.useCallback)(()=>{T(!1),ec()},[ec]),ek=(0,u.useCallback)(()=>!!G.appLocalStorage.getItemRaw("comments_auth_callback_token_failed")&&(G.appLocalStorage.removeItem("comments_auth_callback_token_failed"),eS(),B(!0),!0),[eS]);(0,u.useEffect)(()=>{ek()||e_();let e=()=>{ek()||e_()},t=()=>{"visible"===document.visibilityState&&e()},s=R(e);return window.addEventListener("focus",e),window.addEventListener("storage",e),document.addEventListener("visibilitychange",t),()=>{window.removeEventListener("focus",e),window.removeEventListener("storage",e),document.removeEventListener("visibilitychange",t),s()}},[ek,e_]),(0,u.useEffect)(()=>{if(L&&x&&!Q.current){if(!q(t))return void O(!1);if(!r)return void ec();ev(x)}},[ec,x,ev,r,t,L]);let ey=async()=>{if(!r)return;let e=await ex({isCallbackPageEnabled:ea,ignoreCustomerIdCookie:el,tokenUrl:eo,redirectUri:en});if(v(e),!e){er(),em(),B(!1),et?T(!0):C(!0),(0,W.newHandelDataLayerPush)({eventCategory:`${(0,P.translit)("журнал")}_${location.pathname}`,eventActionType:W.DataLayerActionType.button,eventActionText:(0,P.translit)("войти"),eventLabel:""});return}await ev(e)};return(0,o.jsxs)("div",{id:`comments${t}`,className:ef.default.wrapper,children:[(0,o.jsxs)("div",{className:ef.default.header,children:[(0,o.jsxs)("div",{className:ef.default.title,children:[(0,o.jsx)("label",{children:"Комментарии"}),(0,o.jsx)("span",{children:ei.length})]}),(0,o.jsx)(ep,{isIncreaseSort:J,setIsIncreaseSort:Y,sortType:Z,setSortType:ee})]}),(0,o.jsxs)("div",{className:ef.default.formBlock,children:[(0,o.jsxs)("div",{className:ef.default.form,children:[(0,o.jsx)(k.InputBase,{ref:a,size:"l",className:ef.default.input,label:"Написать комментарий",value:r,onClick:()=>{(0,W.newHandelDataLayerPush)({eventCategory:`${(0,P.translit)("журнал")}_${location.pathname}`,eventActionType:W.DataLayerActionType.click_field,eventActionText:(0,P.translit)("написать комментарий"),eventLabel:""})},onChange:e=>{let s;i(e),g&&e&&b(!1),N&&B(!1),(s=z())[String(t)]=e,G.appLocalStorage.setItem(D,JSON.stringify(s))}}),(0,o.jsx)(S.Button,{className:ef.default.submitBtn,size:"s",disabled:!r||E||!et&&j,onClick:ey,shape:"circle-icon",iconLeft:(0,o.jsx)(h.IconFdsArrowUpSmallO,{size:36})}),!et&&(0,o.jsx)(es,{isOpen:j,onClose:()=>C(!1),postId:t})]}),g&&(0,o.jsxs)("div",{className:ef.default.caption,children:["Не допускается использование ненормативной лексики. ",(0,o.jsx)("br",{}),"Отредактируйте комментарий и попробуйте снова."]}),!g&&N&&(0,o.jsx)("div",{className:ef.default.caption,children:"Авторизация не удалась."}),!!d.length&&!g&&!N&&(0,o.jsxs)("div",{className:ef.default.caption,children:["Спасибо, что оставили комментарий. ",(0,o.jsx)("br",{}),"После модерации вы сможете увидеть его на странице"]})]}),!!ei.length&&(0,o.jsx)("div",{className:ef.default.comments,children:ei.slice(0,m).map(e=>{let t,s="1"===e.user_id?eg:e.user_id,a=e.user_name||eg;return(0,o.jsxs)("div",{className:ef.default.comment,children:[(0,o.jsx)("div",{className:ef.default.letter,style:{background:(t=Math.abs((e=>{let t=0;for(let s=0;s<e.length;s++)t=(t<<5)-t+e.charCodeAt(s)|0;return t})(String(s)))%H.length,H[t])},children:a.slice(0,1)}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:ef.default.commentHeaderText,children:[(0,o.jsx)("div",{className:ef.default.author,children:a}),(0,o.jsx)("div",{className:ef.default.date,children:((e,t=M.MOSCOW_TIME_ZONE)=>{if(!e)return"";let s=(0,M.parseDisplayDate)(e);if(!(0,$.isValid)(s))return"";let a=(0,M.toZonedWallClock)(s,t),l=a.getDate().toString(),o=(a.getMonth()+1).toString().padStart(2,"0"),n=a.getFullYear(),r=a.getHours().toString().padStart(2,"0"),i=a.getMinutes().toString().padStart(2,"0");return`${l}.${o}.${n}, ${r}:${i}`})(e.date_created,l)})]}),(0,o.jsx)("div",{className:ef.default.commentBody,children:e.comment}),(0,o.jsxs)("div",{className:ef.default.commentControls,children:[(0,o.jsxs)("div",{className:ef.default.unit,children:[(0,o.jsx)(h.IconFdsThumbUpO,{}),(0,o.jsx)("span",{children:"23"})]}),(0,o.jsxs)("div",{className:(0,p.default)(ef.default.unit,ef.default.dislike),children:[(0,o.jsx)(h.IconFdsThumbDownO,{}),(0,o.jsx)("span",{children:"23"})]}),(0,o.jsx)("div",{className:(0,p.default)(ef.default.unit,ef.default.replyBtn),children:"Ответить"})]})]})]},e.id)})}),m<ei.length&&(0,o.jsxs)("div",{className:ef.default.more,onClick:()=>_(e=>e+ed),children:[`Еще ${ed} ${eu}`,(0,o.jsx)("span",{children:(0,o.jsx)(h.IconFdsChevronDownSmallO,{size:24})})]}),et&&A&&(0,o.jsx)(eb,{env:e,isOpen:A,onClose:eS,postId:t,onAuthSuccess:e=>{e&&(v(e),T(!1),B(!1),O(q(t)))}})]})};var eS=e.i(44323),ek=e.i(55104);let ey=[{network:"tg",tooltip:"Telegram",ariaLabel:"Поделиться в Telegram",Icon:h.IconFdsTelegramF,iconSize:20},{network:"ok",tooltip:"Одноклассники",ariaLabel:"Поделиться в Одноклассниках",Icon:h.IconFdsOdnoklassnikiF,iconSize:22},{network:"vk",tooltip:"ВКонтакте",ariaLabel:"Поделиться во ВКонтакте",Icon:h.IconFdsVkontakteF,iconSize:22},{network:"max",tooltip:"MAX",ariaLabel:"Поделиться в MAX",Icon:({className:e,size:t=24})=>{let s=(0,r.getEnvValue)();return(0,o.jsx)("img",{className:(0,p.default)(ek.default.maxIcon,e),src:`${s.NEXT_PUBLIC_S3_ASSETS}/mp-assets/widgets/footer/max.svg`,alt:"",width:t,height:t})},iconSize:19}],ej="Ссылка скопирована",eC=({url:e})=>{let[t,s]=(0,u.useState)(!1),a=(0,u.useRef)(null);(0,u.useEffect)(()=>()=>{a.current&&clearTimeout(a.current)},[]);let l=()=>{a.current&&clearTimeout(a.current),s(!0),a.current=setTimeout(()=>s(!1),2e3)},n=t?ej:"Скопировать ссылку",r=t?h.IconFdsCheckO:h.IconFdsCopyO;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eS.Tooltip,{text:n,position:"left",moveToBody:!0,zIndex:20,children:(0,o.jsx)("button",{type:"button",className:(0,p.default)(ek.default.button,ek.default.copy),"aria-label":n,onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(e).then(l).catch(()=>s(!1))},children:(0,o.jsx)(r,{size:20})})}),(0,o.jsx)("span",{className:ek.default.visuallyHidden,"aria-live":"polite",children:t?ej:""})]})},eA=({className:e,id:t,isOpen:s,title:a,url:l})=>{let n=(0,r.getEnvValue)(),i=`${n.NEXT_PUBLIC_BASE_URL}${l}`;return(0,o.jsxs)("ul",{id:t,className:(0,p.default)(ek.default.soc,e),inert:!s,children:[ey.map(({network:e,tooltip:t,ariaLabel:s,Icon:l,iconSize:n})=>(0,o.jsx)("li",{className:ek.default.item,children:(0,o.jsx)(eS.Tooltip,{text:t,position:"left",moveToBody:!0,zIndex:20,children:(0,o.jsx)("button",{type:"button",className:(0,p.default)(ek.default.button,ek.default[e]),"aria-label":s,onClick:()=>{let t,s;window.open((t=encodeURIComponent(i),s=encodeURIComponent(a),({tg:`https://telegram.me/share/url?url=${t}&text=${s}`,ok:`https://connect.ok.ru/offer?url=${t}&title=${s}`,vk:`https://vk.com/share.php?url=${t}&title=${s}`,max:`https://max.ru/:share?text=${encodeURIComponent(`${a}
${i}`)}`})[e]),"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300")},children:(0,o.jsx)(l,{size:n})})})},e)),(0,o.jsx)("li",{className:ek.default.item,children:(0,o.jsx)(eC,{url:i})})]})};e.s(["SocShareButtons",0,eA],92446),e.s([],56331);var ew=e.i(86853),eI=e.i(54663);let eT=({socProps:e,comments:t,focusCommentsInput:s,likes:a,submitLike:l})=>{let[n,r]=(0,u.useState)(!1),[i,d]=(0,u.useState)(!1),c=(0,u.useId)(),m=e.url.slice(1);return(0,u.useEffect)(()=>{"liked"===(0,ew.getStorageLikeState)(m)&&d(!0)},[m]),(0,o.jsx)("div",{className:(0,p.default)(eI.default.wrapper,"disableContentBlocksStyles"),children:(0,o.jsxs)("div",{className:eI.default.icons,children:[(0,o.jsxs)("div",{className:eI.default.unit,onClick:()=>{(0,ew.getStorageLikeState)(m)||l(),(0,ew.setStorageLikeState)(m),d(!i)},children:[i?(0,o.jsx)(h.IconFdsThumbUpF,{size:24}):(0,o.jsx)(h.IconFdsThumbUpO,{size:24}),Number(a)+ +!!i]}),(0,o.jsxs)("div",{className:eI.default.unit,onClick:s,children:[(0,o.jsx)(h.IconFdsChatDotsSquareO,{size:24}),t]}),(0,o.jsxs)("div",{className:eI.default.shareWrapper,children:[(0,o.jsxs)("button",{type:"button",className:eI.default.unit,"aria-expanded":n,"aria-controls":c,onClick:()=>{(0,W.newHandelDataLayerPush)({eventCategory:`${(0,P.translit)("журнал")}_${location.pathname}`,eventActionType:W.DataLayerActionType.button,eventActionText:(0,P.translit)("поделиться"),eventLabel:""}),r(e=>!e)},children:[(0,o.jsx)(h.IconFdsArrowForwardO,{size:24}),"Поделиться"]}),(0,o.jsx)(eA,{id:c,isOpen:n,className:(0,p.default)(eI.default.soc,{[eI.default.show]:n}),...e})]})]})})};e.i(47865);var eN=e.i(39002),eB=e.i(45106),eL=e.i(12377);e.i(72745);var eO=e.i(46176),eE=e.i(96934),eR=e.i(23459),eU=e.i(94341),eW=e.i(75331);let eG=({env:e,articles:t})=>t.length?(0,o.jsxs)("div",{className:(0,p.default)(eW.default.wrapper,"disableContentBlocksStyles"),children:[(0,o.jsx)("h2",{className:eW.default.blockTitle,children:"Читайте также"}),t.map(t=>(0,o.jsx)(eP,{env:e,data:t},t.id))]}):null,eP=({env:e,data:t})=>{let s=(0,I.useDisplayTimeZone)(),a=(0,eO.useLikes)(t?.url,t?.likes);return(0,o.jsxs)("a",{className:eW.default.card,href:`/${t?.url}`,target:"_self",children:[(0,o.jsx)("div",{className:eW.default.imageWrapper,children:(0,o.jsx)("div",{className:eW.default.image,style:(0,eR.getCardImageStyle)(t?.image?.file,t?.imageVariants,e.NEXT_PUBLIC_BASE_URL)})}),(0,o.jsxs)("div",{className:eW.default.container,children:[(0,o.jsx)("div",{className:eW.default.title,children:t?.title}),(0,o.jsxs)("div",{className:eW.default.icons,children:[!!a&&(0,o.jsxs)("div",{className:eW.default.unit,children:[(0,o.jsx)(m.default,{src:eL.default,alt:"likes",unoptimized:!0}),a]}),(0,o.jsxs)("div",{className:eW.default.unit,children:[(0,o.jsx)(m.default,{src:eB.default,alt:"views",unoptimized:!0}),(0,o.jsx)("span",{suppressHydrationWarning:!0,children:(0,eU.getPostViews)(t?.url||"",t?.views||0,0)})]}),(0,o.jsx)("div",{className:eW.default.unit,children:(0,o.jsx)("span",{children:(0,eE.formatDate)(String(t?.public_date||t?.update_time||t?.publ_time),!0,s)})})]})]})]})};var e$=e.i(61167);let eM=({params:e,children:t,className:s,config:a})=>{let[l,n]=(0,u.useState)(!1),[r,i]=(0,u.useState)(""),d=(0,u.useRef)(null),c=(0,u.useRef)("");return(0,u.useEffect)(()=>{c.current&&a?.yaContextCb&&a?.Ya&&a.yaContextCb.push(()=>{a.Ya.adfoxCode.destroy(c.current)}),i((0,U.generateUuid)())},[a?.Ya,a?.yaContextCb,e.pp]),(0,u.useEffect)(()=>{if(c.current===r)return;if(!a)return void n(!0);let t=()=>{let e=d.current?.querySelector("iframe");e?e.style.height=`${e.contentWindow?.document.body.scrollHeight}px`:console.warn("ads blocked"),n(!e)};a.yaContextCb&&a.yaContextCb.push(()=>{a.Ya.adfoxCode.create({ownerId:a.ownerId,containerId:`adfox_${r}`,params:e,onRender:t})}),setTimeout(t,5e3),c.current=r},[r,a,e]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:(0,p.default)(l&&e$.default.hide,s),ref:d,id:`adfox_${r}`},r),l&&t]})};e.s(["YaAdFoxBanner",0,eM],81230),e.s([],64619);let eH=()=>{let[e,t]=(0,u.useState)();return(0,u.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&t({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),e};e.s(["useAdFox",0,eH],46660),e.i(52919);var eD=e.i(65854),eF=e.i(82372),ez=e.i(88195);function eq(e,t){if(e&&t&&Object.hasOwn(e,t))return e[t]}let eX={BUTTON:"withButton",FORM:"withForm"},eV=e=>e&&"createdAt"in e?{...e,image_mobile:e.imageMobile,type:eX[e.type],button_text:e.buttonText}:e,eK=async e=>{let t=await (0,eF.callApi)({url:`/api/v1/product-banners?page=0&limit=100&categoryNavigator=${e}`,options:{isMpScNavigator:!0}});return{data:{blocks:t?.data?.banners?.map(eV)||[]}}};e.i(59309);var eQ=e.i(95782);let eJ=["а-ля","без","безо","в","вне","во","для","до","за","и","из","из-за","из-под","изо","к","ко","меж","на","над","не","ниже","о","об","обо","от","ото","по","под","пред","предо","при","про","ради","с","со","у"],eY=e=>{if("string"!=typeof e)return"";let t=e.replace(/\s\s+/g," ");return eJ.forEach(e=>{let s=RegExp(`\\s${e}\\s`,"g");t=t.replace(s,` ${e}\u00A0`)}),t=t.replace(/\s-\s/g," — ")};e.s(["applyTypographyRules",0,eY],50056);var eZ=e.i(80453),e0=e.i(13168);let e1=({block:e,categoryId:t,isOutside:s,contentImageVariants:a})=>{let l=(0,r.getEnvValue)(),n=eV(e),[i,d]=(0,u.useState)(n),{asPath:c}=(0,eQ.useRouter)();if((0,u.useEffect)(()=>{l&&!n&&t&&eK(t).then(e=>{if(e.data?.blocks&&e.data.blocks.length>0){let t=Math.floor(Math.random()*e.data.blocks.length);d(e.data.blocks[t])}})},[l,n,t]),!i||!i.title)return null;let{button_text:m,text:_,title:h,url:f,background:g}=i,b=i.image?(0,eZ.getImageVariantUrl)(eq(a,i.image),"detail",i.image):void 0,{textColor:x,buttonColor:v}=i,k=g?{background:g}:void 0,y=x?{color:x}:k?{color:"var(--color-white)"}:void 0;return(0,o.jsxs)("div",{style:k,className:(0,p.default)(e0.default.component,{[e0.default.isOutside]:s},"disableContentBlocksStyles"),children:[(0,o.jsx)("picture",{className:e0.default.image,children:b&&(0,o.jsx)("img",{loading:"lazy",src:b,alt:h})}),(0,o.jsxs)("div",{className:e0.default.body,children:[h&&(0,o.jsx)("div",{style:y,className:e0.default.title,dangerouslySetInnerHTML:{__html:h}}),_&&(0,o.jsx)("div",{style:y,className:e0.default.description,dangerouslySetInnerHTML:{__html:eY(_)}}),(0,o.jsx)(S.Button,{target:"_blank",className:(0,p.default)(e0.default.button,`info-block-id-${i.id}`),variant:v||(k?"white":"primary"),as:"a",size:"s",onClick:e=>{e.preventDefault(),(0,W.newHandelDataLayerPush)({eventCategory:`${(0,P.translit)("журнал")}__${l.NEXT_PUBLIC_BASE_URL}${c}`,eventActionType:W.DataLayerActionType.button,eventActionText:h||"",eventLabel:m||""}),window.open(f,"_blank")},href:f,children:m})]})]})};e.s(["InfoBlock",0,e1],31484),e.s([],75727);var e4=e.i(37993);let e2=/(<img\b[^>]*?\bsrc\s*=\s*)(["'])(.*?)\2/gi;function e5(e,t){return e&&t?e.replace(e2,(e,s,a,l)=>{let o=eq(t,l.replace(/&amp;/g,"&"));return o?.detail?`${s}${a}${(0,eZ.getImageVariantUrl)(o,"detail",l)}${a}`:e}):e}var e6=e.i(27464);let e7={src:e.i(15182).default,width:210,height:132,blurWidth:8,blurHeight:5,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAsElEQVR42gGlAFr/AAAAAAA1Nzwdr7DCbb610HN+jNhJrsb5tKm563YyN1kXAAAAAAA8PkQgxcfajs27zJGrs+M5uMTwRJWe0i2QnMJhAAAAAAAMDQ4Gg4aPQtHY6D7S3/VN1ePwZtrh9EC+z/iHAAEBAQApKi4VhIiSRM7W60e42vNzstXRquHj71WjqLc2AAICAgF6fYlAl5yqpcjM2XvI1PNMy9PwYbrB4zaWmqk632NSU6nGL64AAAAASUVORK5CYII="},e3=(0,c.default)(()=>e.A(55632).then(({TaxCalculator:e})=>e),{loadableGenerated:{modules:[36680]}}),e8=(0,c.default)(()=>e.A(26922).then(({NavigatorContentSlider:e})=>e),{loadableGenerated:{modules:[31518]}}),e9=(0,c.default)(()=>e.A(97322).then(({NavigatorVideo:e})=>e),{loadableGenerated:{modules:[15047]}}),te=(0,c.default)(()=>e.A(95537).then(({CreditsOffers:e})=>e),{loadableGenerated:{modules:[58451]}}),tt=(0,c.default)(()=>e.A(84216).then(({DebitCardsOffers:e})=>e),{loadableGenerated:{modules:[44446]}}),ts=(0,c.default)(()=>e.A(28880).then(({DepositsOffers:e})=>e),{loadableGenerated:{modules:[4612]}}),ta=(0,c.default)(()=>e.A(67513).then(({OsagoOffers:e})=>e),{loadableGenerated:{modules:[48172]}}),tl=(0,c.default)(()=>e.A(91063).then(({OsagoWidget:e})=>e),{loadableGenerated:{modules:[5076]}}),to=(0,c.default)(()=>e.A(62477).then(({Survey:e})=>e),{loadableGenerated:{modules:[29877]}}),tn={info_bl:!0,osago:!0,deposits:!0,savings:!0,premium:!0,credits:!0,debit_cards:!0,post_offer:!0};e.s(["ContentBlocks",0,({env:e,className:t,data:s,params:a,post:l,tags:n,contentImageVariants:r})=>{let i=eH(),{NEXT_PUBLIC_S3_ASSETS:d,NEXT_PUBLIC_BASE_URL:c}=e,x=(0,u.useRef)(null),S=(0,u.useRef)(null),k=()=>x.current?.focus(),y=l?.filter_ids?.[0]||null,j=e=>{e.target&&"innerText"in e.target&&"string"==typeof e.target.innerText&&(0,W.newHandelDataLayerPush)({eventCategory:`${(0,P.translit)("журнал")}_${location.pathname}`,eventActionType:W.DataLayerActionType.link,eventActionText:(0,P.translit)(`${e.target.innerText} text_novost`),eventLabel:""})};if((0,u.useEffect)(()=>{let e=S.current;if(!e)return;e.querySelectorAll("a").forEach(e=>{e.classList.contains("button")||/button/i.test(e.className)||e.addEventListener("mousedown",j)});let t=S.current;return()=>{t?.querySelectorAll("a").forEach(e=>{e.removeEventListener("mousedown",j)})}},[]),!Array.isArray(s))return null;let C=()=>{(0,f.submitPostLike)(e,l?.url||"")},A=(()=>{let t,p=[],f=1,S=0,j=0,A=tn[s[s.length-1]?.type||""],w=!1;if(s.forEach((e,a)=>{"header"===e.type&&(3==++S&&(s[a-1]?.type==="banner"&&(t=s.splice(a-1,1)),s[a+1]?.type==="banner"&&(t=s.splice(a+1,1))),t&&4===S&&s.splice(a,0,t[0])),"info_bl"===e.type&&e.data?.block?.title&&j++,"widget_osago"===e.type&&(w=!0)}),s.forEach((t,s)=>{switch(t.type){case"banner":a&&p.push((0,o.jsx)(eM,{config:i,params:a},s));break;case"header":t.data?.text&&p.push((0,o.jsx)("h2",{id:`${l?.id}_content_header_${f}`,dangerouslySetInnerHTML:{__html:eY(t.data.text)}},s)),f++;break;case"sub_header":t.data?.text&&p.push((0,o.jsx)("h3",{dangerouslySetInnerHTML:{__html:eY(t.data.text)}},s));break;case"paragraph":t.data?.text&&p.push((0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:eY(t.data.text)}},s));break;case"link":t.data?.text&&p.push((0,o.jsx)("div",{className:e6.default["block-link"],children:(0,o.jsxs)("a",{target:"_blank",href:t.data.url,rel:"noreferrer",children:[t.data.text,(0,o.jsx)(h.IconFdsArrowUpRightSmallO,{size:20})]})},s));break;case"dossier":t.data?.text&&p.push((0,o.jsxs)("div",{className:e6.default["dossier-date-item"],children:[(0,o.jsx)("span",{className:e6.default.date,children:t.data.year}),(0,o.jsx)("div",{className:e6.default.text,dangerouslySetInnerHTML:{__html:eY(t.data.text)}})]},s));break;case"html":t.data?.html&&p.push((0,o.jsx)("div",{className:e6.default["html-block"],dangerouslySetInnerHTML:{__html:(0,b.insertRelToHtmlText)(eY(e5(t.data.html,r)))}},s));break;case"annotation":t.data?.text&&p.push((0,o.jsx)("div",{className:e6.default.annotation,dangerouslySetInnerHTML:{__html:(0,b.insertRelToHtmlText)(eY(e5(t.data.text,r)))}},s));break;case"company-annotation":t.data?.text&&p.push((0,o.jsx)("div",{className:e6.default["company-annotation"],dangerouslySetInnerHTML:{__html:eY(t.data.text)}},s));break;case"keynote":t.data?.text&&p.push((0,o.jsx)("div",{className:e6.default["keynote-wrapper"],children:(0,o.jsx)("div",{className:e6.default.keynote,dangerouslySetInnerHTML:{__html:eY(t.data.text)}})},s));break;case"document-file":p.push((0,o.jsxs)(_.default,{className:e6.default["doc-file"],href:function(e,t=""){return e?e.startsWith("http")?e:`${t}/doc/post_docs/${e}`:""}(t?.data?.file),target:"_blank",children:[(0,o.jsx)(h.IconFile,{size:22}),(0,o.jsx)("label",{className:e6.default["doc-title"],children:t?.data?.title}),(0,o.jsx)(h.IconFdsChevronRightO,{size:22})]},s));break;case"table":t.data&&p.push((0,o.jsxs)("div",{className:e6.default["content-table-wrapper"],children:[t.data.title?(0,o.jsx)("h4",{children:t.data.title}):"",(0,o.jsx)("div",{className:e6.default["content-table-content"],dangerouslySetInnerHTML:{__html:(0,b.insertRelToHtmlText)(t.data.html||"")}})]},s));break;case"image":t.data&&p.push((0,o.jsx)(eD.ContentImage,{env:e,imageFile:t.data.imageFile,imageCaption:t.data.imageCaption,imageData:t.data.imageData,imageVariants:eq(r,t.data.imageData),className:e6.default["content-image"],imageClassName:e6.default["content-image-element"]},s));break;case"info_bl":p.push((0,o.jsx)(e1,{block:t.data.block,contentImageVariants:r},s));break;case"incoming-tax-calculator":p.push((0,o.jsx)(e3,{className:"disableContentBlocksStyles",assets:{desktop:`${d}/mp-assets/widgets/IncomeTaxCalculator/bannerWidget.png`,mobile:`${d}/mp-assets/widgets/IncomeTaxCalculator/bannerWidget.png`},bannerButtonUrl:t.data.url??""},s));break;case"osago":p.push((0,o.jsx)(ta,{small:!0},s));break;case"widget_osago":l?.id&&p.push((0,o.jsx)(tl,{id:l.id},s));break;case"deposits":p.push((0,o.jsx)(ts,{},s));break;case"savings":p.push((0,o.jsx)(ts,{savings:!0},s));break;case"premium":p.push((0,o.jsx)(ts,{premium:!0},s));break;case"credits":p.push((0,o.jsx)(te,{},s));break;case"debit_cards":p.push((0,o.jsx)(tt,{},s));break;case"post_quote":t.data?.quote&&p.push((0,o.jsx)(v,{name:t.data.auth,position:t.data.position,img:t.data.imageData,url:t.data.url,quote:eY(t.data.quote)},s));break;case"post_offer":t.data&&p.push((0,o.jsxs)(u.default.Fragment,{children:[(1===t.data.type||12===t.data.type||13===t.data.type)&&(0,o.jsx)(ts,{content:{amount:t.data.amount,term:t.data.term},savings:12===t.data.type,premium:13===t.data.type},"depositsOffers"),2===t.data.type&&(0,o.jsx)(te,{content:{amount:t.data.amount,term:t.data.term}},"creditsOffers"),11===t.data.type&&(0,o.jsx)(tt,{},"debitCardsOffers"),9===t.data.type&&!w&&(0,o.jsx)(ta,{small:!0},"osagoOffers")]},s));break;case"post_author":t.data?.name&&p.push((0,o.jsxs)("a",{className:e6.default.postAuthor,href:`/navigator/author/${t.data.url}`,target:"_self",children:[t.data.imageData&&(0,o.jsx)(m.default,{src:(0,eZ.getImageUrl)(t.data.imageData,"original",c),alt:"portrait",width:48,height:48,unoptimized:!0}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{children:t.data.name}),(0,o.jsx)("span",{children:t.data.position})]})]},s));break;case"warning":t.data?.title&&p.push((0,o.jsxs)("div",{className:e6.default.warning,children:[(0,o.jsx)(h.IconFdsExclamationTriangleO,{size:22}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{children:t.data.title}),(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:eY(t.data.text)}})]})]},s));break;case"mobile_app_banner":p.push((0,o.jsx)(eN.UiQrAd,{className:e6.default.qrAd,QrImage:({className:e})=>(0,o.jsx)(m.default,{alt:"qr",unoptimized:!0,src:g.default,className:e}),BgImage:({className:e})=>(0,o.jsx)(m.default,{alt:"qr",unoptimized:!0,src:e7,className:e})},s));break;case"poll":{let a=(0,e4.getShortUrl)(l?.url);t.data&&p.push((0,o.jsx)(to,{env:e,data:t.data,postId:a,stats:l?.polls?.[t.data.key||""]},s));break}case"read_more":var n;p.push((0,o.jsx)(eG,{env:e,articles:(n=t.data,Array.isArray(n)?n:Array.isArray(n?.articles)&&"fullUrl"in(n?.articles[0]||{})?n.articles.map(e=>(0,ez.parsePost)({...e,imageVariants:e.imageVariants??eq(r,e.imageUrl)})):[])},s));break;case"slider":p.push((0,o.jsx)(e8,{env:e,data:t.data},s));break;case"video":p.push((0,o.jsx)(e9,{url:t.data.url,text:t.data.text},s))}}),(l?.ads_banner||0===j&&y)&&p.push((0,o.jsx)(e1,{env:e,block:l?.ads_banner,categoryId:y},"add-extra-banner")),l&&p.push((0,o.jsx)(eT,{socProps:{title:l.title,url:`/${l.url}`},comments:String(l.comments?.length||0),focusCommentsInput:k,likes:String(l.likes||0),submitLike:C},"author")),l?.comments){let t=l.url;p.push((0,o.jsx)(ev,{env:e,postId:t,comments:l.comments,inputRef:x},"comments"))}let I=l?.tag_ids?.[0],T=n?.find(e=>e.id===I)?.url;return A||w||"navigator/zastrahovat"!==T||p.push((0,o.jsx)(ta,{small:!0},"osago")),A||"navigator/nakopit-i-sohranit"!==T&&"navigator/analitika"!==T||p.push((0,o.jsx)(ts,{},"deposits")),A||"navigator/kredity"!==T||p.push((0,o.jsx)(te,{},"credits")),A||"6"!==T||p.push((0,o.jsx)(tt,{},"debit cards")),p})();return(0,o.jsx)("div",{ref:S,className:(0,p.default)(e6.default["content-blocks"],"content-blocks",t),children:A})}],7326),e.s([],8237)},92229,e=>{e.v({footnoteAnchor:"Footnote-module-scss-module__R5THkW__footnoteAnchor",footnoteTop:"Footnote-module-scss-module__R5THkW__footnoteTop",popup:"Footnote-module-scss-module__R5THkW__popup",shine:"Footnote-module-scss-module__R5THkW__shine"})},45757,56547,e=>{"use strict";var t=e.i(43476),s=e.i(71645);e.i(38886);var a=e.i(86969);e.i(75182);var l=e.i(64457),o=e.i(65018),n=e.i(92229);let r=/<([^>]+)>$/,i=e=>{let t=(e=>{let t=e.getAttribute("href");if(!t)return null;let s=(e=>{try{return decodeURIComponent(e)}catch{return e}})(t).match(r);return s?.[1]||null})(e);return t?(e.dataset.pseudoContent=t,e.classList.add(n.default.footnoteAnchor),t):(delete e.dataset.pseudoContent,e.classList.remove(n.default.footnoteAnchor),e.classList.remove(n.default.footnoteTop),null)},d=(e,t)=>{if(!t||!(e instanceof Element))return null;let s=e.closest("a[href]");if(!(s instanceof HTMLAnchorElement)||!t.contains(s))return null;let a=i(s);return a?{anchorElement:s,text:a}:null};e.s(["Footnote",0,({articleRef:e})=>{let r=(0,o.useMedia)("lg"),[u,c]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let t=e.current;if(!t)return;let s=()=>{t.querySelectorAll("a[href]").forEach(i)},a=e=>{let s=d(e.target,t);if(!s)return;let a=s.anchorElement.getBoundingClientRect();s.anchorElement.classList.toggle(n.default.footnoteTop,a.bottom>window.innerHeight/2)},l=e=>{let s=d(e.target,t);s&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),c(s.text))};s();let o=new MutationObserver(s);return o.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["href"]}),t.addEventListener("mouseover",a),t.addEventListener("click",l,!0),()=>{o.disconnect(),t.removeEventListener("mouseover",a),t.removeEventListener("click",l,!0)}},[]),(0,t.jsx)(a.Portal,{children:(0,t.jsx)(l.UiMobilePopup,{className:n.default.popup,isOpen:r&&!!u,onClose:()=>c(null),children:u})})}],56547),e.s([],45757)},99228,e=>{"use strict";e.s(["calcAbsTop",0,e=>{let t=0;do t+=e.offsetTop;while(e=e.offsetParent)return t},"scrollAnimation",0,(e,t)=>{let s=document.documentElement.scrollTop||document.body.scrollTop;t&&(s=t.scrollTop);let a=e-110*!t,l=a>s?a-s:s-a,o=0!==Math.round(l/25)?Math.round(l/25):1,n=a>s?s+o:s-o,r=0;if(a===s)return void setTimeout("window.scrollTo(0, "+a+")",10);if(a>s){for(let e=s;e<a;e+=o)t?setTimeout(function(){t.scrollTop+=o},10*r):setTimeout("window.scrollTo(0, "+n+")",10*r),(n+=o)>a&&(n=a),r++;return}for(let e=s;e>a;e-=o)t?setTimeout(function(){t.scrollTop-=o},10*r):setTimeout("window.scrollTo(0, "+n+")",10*r),(n-=o)<a&&(n=a),r++}])}]);