(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8466],{10027:(e,t,a)=>{"use strict";a.d(t,{I:()=>l});var s=a(37876),r=a(77328),n=a.n(r),o=a(89099),i=a(33126),c=a(3187);function l(e){let{title:t,description:a,productId:r}=e,{basePath:l,mainBaseUrl:p}=(0,i.UK)(),{asPath:u}=(0,o.useRouter)(),d=(0,c.m)(u);return(0,s.jsxs)(n(),{children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("meta",{name:"description",content:a}),(0,s.jsx)("meta",{property:"og:title",content:t}),(0,s.jsx)("meta",{property:"og:description",content:a}),(0,s.jsx)("meta",{property:"og:site_name",content:"Финуслуги"}),(0,s.jsx)("meta",{property:"og:image",content:"".concat(l,"/icons/favicon-32x32.png")}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:url",content:"".concat(p).concat(d)}),(0,s.jsx)("link",{rel:"icon",href:"".concat(l,"/icons/favicon-32x32.png")}),(0,s.jsx)("link",{rel:"manifest",href:"".concat(l,"/manifest.json"),type:"application/manifest+json"}),(0,s.jsx)("link",{rel:"canonical",href:"".concat(p).concat(d)}),r&&(0,s.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(r,"'\n          }];")})]})}l.displayName="HeadMeta"},12771:(e,t,a)=>{"use strict";a.d(t,{x6:()=>d,zy:()=>c,pY:()=>u,aB:()=>p,QV:()=>l,Cw:()=>i});var s=a(33126);class r{start(){this.startTime=performance.now()}setStatus(e){this.status=e}observe(){if(!this.startTime)throw Error("Prometheus metric of outgoing request is not observed: startTime is not defined");!function(e,t,s,r){try{var n,o;null==(n=a.g.outgoingHTTPRequestHistogram)||n.labels(e,t,void 0!==s?String(s):"unknown").observe((o=r,performance.now()-o))}catch(e){console.warn("Prometheus metric of outgoing request is not observed:",e)}}(this.method,this.url,this.status,this.startTime)}constructor(e,t){this.method=e,this.url=t}}var n=a(3187),o=a(63273);function i(){return"".concat((0,s.zj)().basePath,"/api")}function c(e,t){return d("".concat("".concat((0,s.zj)().mainApiUrl,"/money_data"),"/").concat(e),t)}function l(e,t){return d("".concat("".concat((0,s.zj)().savingsApiUrl,"/api/v1"),"/").concat(e),t)}function p(e,t){return d("".concat("".concat((0,s.zj)().mpScApiUrl,"/api/v1"),"/").concat(e),t)}function u(e,t){return d("".concat(i(),"/").concat(e),t)}async function d(e,t){let a=await A(e,t);try{return JSON.parse(a)}catch(e){throw Error("Failed to parse JSON: ".concat(a),{cause:e})}}async function A(e,t){var a;(0,o.oc)()||console.debug("Fetch data: ".concat(e));let i={},c=(0,s.zj)().apiUsername,l=(0,s.zj)().apiPassword;c&&l&&(i.Authorization="Basic ".concat((0,o.WG)("".concat(c,":").concat(l))));let p=new r(null!=(a=null==t?void 0:t.method)?a:"GET",(0,n.m)(e));try{p.start();let a=await fetch(e,{...t,headers:{...i,...null==t?void 0:t.headers}});if(p.setStatus(a.status),!a.ok)throw Error("Response wasn't OK. The response status code is ".concat(a.status));return await a.text()}catch(t){throw Error("Failed to fetch data: ".concat(e),{cause:t})}finally{p.observe()}}},16891:(e,t,a)=>{"use strict";a.d(t,{J:()=>i});var s=a(37876),r=a(49995),n=a(53934),o=a.n(n);let i=e=>{let{children:t,className:a}=e;return(0,s.jsx)("div",{className:(0,r.A)(o().mainContainer,a),children:t})}},21159:e=>{e.exports={stolotoCaption:"stoloto-rules_stolotoCaption__Hc1Br",link:"stoloto-rules_link__5XLqK"}},28875:e=>{e.exports={wrapper:"stoloto-banner_wrapper__zeoGr",background:"stoloto-banner_background__xib8J",foreground:"stoloto-banner_foreground__fm55O",text:"stoloto-banner_text__g_UuS",money:"stoloto-banner_money__Lj_mA",title:"stoloto-banner_title__JGMj3",info:"stoloto-banner_info__YvkTb",button:"stoloto-banner_button__s34m4"}},37105:(e,t,a)=>{"use strict";a.d(t,{h:()=>s});var s=function(e){return e.POTREBITELSKIE="potrebitelskie_kredity",e.KARTY="kreditnye_karty",e.MICROZAJMY="mikrozajmy",e.AUTOCREDIT="avtokredity",e.IPOTEKA="ipoteka",e.CALCULATOR="kreditniy_kalkulyator",e}({})},45717:(e,t,a)=>{"use strict";a.d(t,{Q:()=>o});var s=a(37876),r=a(21159),n=a.n(r);let o=()=>(0,s.jsxs)("div",{className:n().stolotoCaption,children:["*Срок проведения акции: с 19.11.25 по 31.12.25. С информацией об организаторе акции, о правилах её проведения, количестве призов или выигрышей по результатам акции, сроках, месте и порядке их получения можно ознакомиться"," ",(0,s.jsx)("a",{className:n().link,href:"https://assets.finuslugi.ru/mp-assets/docs/bonus-program-rules/promokod-stoloto/promokod-stoloto.pdf",target:"_blank",rel:"noreferrer",children:"по ссылке"})]})},53934:e=>{e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},73584:(e,t,a)=>{"use strict";a.d(t,{A:()=>r,B:()=>s});class s{getOrUpdate(){var e;return null!=(e=this.get())?e:this.update()}get(){if(this.expires>Date.now())return this.value}update(){let e=this.getValue();return this.value=e,this.expires=Date.now()+this.duration,e}constructor(e,t){this.expires=0,this.getValue=e,this.duration=null!=t?t:3e5}}class r{getOrUpdate(e,t){var a;return null!=(a=this.get(e))?a:this.update(e,t)}get(e){var t;if((null!=(t=this.expires.get(e))?t:0)>Date.now())return this.values.get(e)}update(e,t){this.clear();let a=this.getValue(t);return this.values.set(e,a),this.expires.set(e,Date.now()+this.duration),a}clear(){let e=Date.now();this.expires.forEach((t,a)=>{t<e&&(this.values.delete(a),this.expires.delete(a))})}constructor(e,t){this.values=new Map,this.expires=new Map,this.getValue=e,this.duration=null!=t?t:3e5}}},80490:(e,t,a)=>{"use strict";a.d(t,{E:()=>w});var s=a(37876),r=a(25972),n=a(49995),o=a(25904),i=a(20988),c=a(8452),l=a(21827),p=a(14232);let u=(0,l.g)("support","sc"),d=Object.freeze({support:u,title:`${u}__title`,cardsContainer:`${u}__cards-container`}),A="cb-support",m=(0,l.g)("support-app-card","sc"),h=Object.freeze({supportAppCard:m,textWrapper:`${m}__text-wrapper`,imageContainer:`${m}__image-container`,title:`${m}__title`,description:`${m}__description`,icon:`${m}__icon`,imageWrapper:`${m}__image-wrapper`,image:`${m}__image`}),g=({title:e,linkUrl:t,s3Assets:a,description:r})=>{let n=(0,i.nu)("s");return(0,s.jsxs)("div",{className:h.supportAppCard,onClick:()=>{n&&((0,c.h)({eventCategory:A,eventActionType:c.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,s.jsx)(o.IconFdsArrowUpRightSmallO,{className:h.icon,size:32}),(0,s.jsxs)("div",{className:h.textWrapper,children:[(0,s.jsx)("div",{className:h.title,children:e}),!!r&&(0,s.jsx)("div",{className:h.description,children:r})]}),(0,s.jsx)("div",{className:h.imageContainer,children:(0,s.jsxs)("picture",{className:h.imageWrapper,children:[(0,s.jsx)("source",{media:"(max-width: 767px)",srcSet:`${a}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${a}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,s.jsx)("img",{className:h.image,loading:"lazy",src:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${a}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},_=(0,l.g)("support-phone-card","sc"),v=Object.freeze({supportPhoneCard:_,contacts:`${_}__contacts`,phone:`${_}__phone`,chat:`${_}__chat`,info:`${_}__info`,image:`${_}__image`}),b=({phones:e,description:t,s3Assets:a})=>{let r=(0,p.useCallback)(()=>{var e,t,a;null==(a=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||a.call(t),(0,c.h)({eventCategory:A,eventActionType:c.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]);return(0,s.jsxs)("div",{className:v.supportPhoneCard,children:[(0,s.jsxs)("div",{className:v.contacts,children:[e.map(e=>(0,s.jsx)("a",{className:v.phone,href:e.href,onClick:()=>(e=>{let t=e.replace(/[\s-]/g,"");(0,c.h)({eventCategory:A,eventActionType:c.D.link,eventActionText:"phone",eventLabel:t})})(e.label),children:e.label},e.label)),(0,s.jsx)("span",{className:v.chat,onClick:r,children:"Онлайн чат"})]}),(0,s.jsx)("div",{className:v.info,children:t}),(0,s.jsx)("img",{className:v.image,src:`${a}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},x=({className:e,phoneCard:t,appCard:a,s3Assets:o})=>(0,s.jsx)("section",{className:(0,n.A)(d.support,e),children:(0,s.jsxs)(r.mc,{children:[(0,s.jsx)(r.DZ,{as:"h2",type:"display",weight:"bold",className:(0,n.A)(d.title,"mb-6"),children:"Поддержка"}),(0,s.jsxs)("div",{className:d.cardsContainer,children:[(0,s.jsx)(b,{s3Assets:o,...t}),(0,s.jsx)(g,{s3Assets:o,...a})]})]})});x.displayName="Support";var f=a(33126);function w(e){let{value:t}=e,{assetsBaseUrl:a}=(0,f.zj)();return(0,s.jsx)(x,{s3Assets:a,phoneCard:t.phoneCard,appCard:t.appCard})}},81078:(e,t,a)=>{"use strict";a.d(t,{w:()=>o});var s=a(37876),r=a(81983),n=a(33126);function o(e){let{className:t,data:a,variant:o}=e,i=(0,n.UK)();return(0,s.jsx)("div",{className:t,children:(0,s.jsx)(r.F,{data:a,showcaseUrl:i.mainBaseUrl,variant:o})})}},87087:(e,t,a)=>{"use strict";a.d(t,{y:()=>r});let s={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},r=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();if(t in s){let a=s[t];return t===e?a:a.charAt(0).toUpperCase()+a.slice(1)}return e})},91063:(e,t,a)=>{"use strict";a.d(t,{o:()=>r});var s=a(35656);function r(e){e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),e.eventLabel&&"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),(0,s.Fj)(e)}},98044:(e,t,a)=>{"use strict";a.d(t,{n:()=>m});var s=a(37876),r=a(20988),n=a(54587),o=a.n(n),i=a(5552);let c={src:"/kredity/assets/_next/static/media/stoloto-background.11f61093.webp",height:256,width:5664,blurDataURL:"data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACQAQCdASoIAAEAAkA4JaACdLoAA5gA/vXPv/8Gd/7+q/7+q/4M7+rsT4UOQAAA",blurWidth:8,blurHeight:1},l={src:"/kredity/assets/_next/static/media/stoloto-background-m.430fd42b.webp",height:696,width:984,blurDataURL:"data:image/webp;base64,UklGRloAAABXRUJQVlA4IE4AAAAQAgCdASoIAAYAAkA4JbACdLoAAzpSUpkAAPKnlWq6q182hToBbkPL//2gxR1NYXQv/2+HcXFB//e+H+6P/yYr5WB3K/nccMWPzJYAAAA=",blurWidth:8,blurHeight:6},p={src:"/kredity/assets/_next/static/media/stoloto-foreground.364c4462.webp",height:495,width:3951,blurDataURL:"data:image/webp;base64,UklGRloAAABXRUJQVlA4WAoAAAAQAAAABwAAAAAAQUxQSAkAAAAAOgAJABcAAAsAVlA4ICoAAACwAQCdASoIAAEAAkA4JYwCdAEO+mBgAP79IT0CaCJ4vTM7lXJ7ysWAAAA=",blurWidth:8,blurHeight:1},u={src:"/kredity/assets/_next/static/media/stoloto-foreground-m.ea022da3.webp",height:499,width:234,blurDataURL:"data:image/webp;base64,UklGRpQAAABXRUJQVlA4WAoAAAAQAAAAAwAABwAAQUxQSCEAAAAADv77LQB83SkABzgAAACYAAAAAAAAAAAAN5EAAIhcAAAAVlA4IEwAAADwAQCdASoEAAgAAkA4JbACdGuAAstWnAAA/qnpq3mKTgnnD2BXN84VRBDvTQLXQon/k89/mxlPlvgn383lxNdO5b6FzBzmlN+LAAAA",blurWidth:4,blurHeight:8};var d=a(28875),A=a.n(d);let m=e=>{let{onButtonClick:t}=e,a=(0,i.sw)();return(0,s.jsxs)("div",{className:A().wrapper,children:[(0,s.jsxs)("div",{className:A().text,children:[(0,s.jsxs)("div",{className:A().title,children:["Суперприз ",(0,s.jsx)("span",{className:A().money,children:"от 300 000 ₽"})]}),(0,s.jsx)("div",{className:A().info,children:"Участвуйте в розыгрыше от \xabСтолото\xbb* и получите промокод за заполненную анкету"}),(0,s.jsx)(r.$n,{onClick:t,size:"xs",className:A().button,children:"Участвовать"})]}),(0,s.jsx)(o(),{className:A().foreground,alt:"Монеты",src:a?u:p}),(0,s.jsx)(o(),{className:A().background,alt:"Акция столото",src:a?l:c})]})}},99388:(e,t,a)=>{"use strict";a.d(t,{ch:()=>l,eg:()=>u});var s=a(89099),r=a(14232),n=a(82065),o=a(17092),i=a(91063),c=function(e){return e.Source="utm_source",e.Campaign="utm_campaign",e.Medium="utm_medium",e.Term="utm_term",e}(c||{}),l=function(e){return e.Credit="credit",e.CreditCard="credit_card",e.Microloan="micro_loan",e}({});function p(e,t,a,s,r){let n=Object.fromEntries(t);n.product_type=a,n.aggregator_id=s,n.create_date=new Date().toISOString();let c=function(e){try{let t=e.cpa_click;if(t)return JSON.parse(t)}catch(e){}return{payload:[]}}(e);c.payload.push(n),(0,o.u)("cpa_click",c,30);let l={event:"data-event",eventCategory:s,eventAction:"CPA_click",eventLabel:window.location.pathname,eventValue:r,utm_source:t.get("utm_source"),utm_campaign:t.get("utm_campaign"),utm_medium:t.get("utm_medium")};return(0,i.o)(l),!0}function u(e){let{asPath:t}=(0,s.useRouter)(),a=(0,n.l)();(0,r.useEffect)(()=>{var s=a,r=t,n=e;let[o,i]=r.split("?"),c=new URLSearchParams(i);(function(e,t,a){var s;let r=t.get("aggregator_id");if(!r)return!1;if("agents"!==r)throw Error('The query parameter "aggregator_id" should be equal to "agents"');let n=null!=(s=t.get("click_id"))?s:void 0;return p(e,t,a,r,n)})(s,c,n)||function(e,t,a){var s;let r=t.get("utm_source");if(!r)return;let n=null!=(s=t.get("utm_term"))?s:void 0;p(e,t,a,r,n)}(s,c,n)},[a,t,e])}}}]);