(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5867],{15213:function(e,t,n){"use strict";var r=n(49079);Object.defineProperty(t,"__esModule",{value:!0}),t.allEnv=void 0;let o=n(26764);t.allEnv=function(){return(0,o.isBrowser)()?window.__ENV:r.env}},29169:function(e,t,n){"use strict";var r=n(49079);Object.defineProperty(t,"__esModule",{value:!0}),t.env=void 0;let o=n(26764);t.env=function(e){return(0,o.isBrowser)()?window.__ENV[e]:r.env[e]}},20564:function(e,t,n){"use strict";t.OB=t.JH=void 0;var r=n(15213);Object.defineProperty(t,"JH",{enumerable:!0,get:function(){return r.allEnv}});var o=n(29169);Object.defineProperty(t,"OB",{enumerable:!0,get:function(){return o.env}})},26764:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0,t.isBrowser=function(){return!!("undefined"!=typeof window&&window.__ENV)}},47907:function(e,t,n){"use strict";var r=n(15313);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},49079:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(13127)},13472:function(e,t,n){"use strict";Object.defineProperty(t,"$",{enumerable:!0,get:function(){return o}});let r=n(15355);function o(e){let{createServerReference:t}=n(6671);return t(e,r.callServer)}},13127:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c=[],s=!1,l=-1;function f(){s&&r&&(s=!1,r.length?c=r.concat(c):l=-1,c.length&&d())}function d(){if(!s){var e=u(f);s=!0;for(var t=c.length;t;){for(r=c,c=[];++l<t;)r&&r[l].run();l=-1,t=c.length}r=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function _(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new v(e,t)),1!==c.length||s||u(d)},v.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},66056:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(57437),o=n(52116),i=n(99623),a=n(84842),u=n(91895),c=n(2265),s=n(21822),l=n(508);let f=e=>(0,l.p)(e);var d=n(16243);let v=(e,t)=>{let n=f(e);if(n&&n.aggregator_id){let e={...n,create_date:new Date().toISOString()},o={payload:[]};try{var r;o=JSON.parse((null===(r=(0,s.$1)())||void 0===r?void 0:r.cpa_click)||"{}")}catch(e){return}o.payload||(o.payload=[]),o.payload.push(e);let i={event:"data-event",eventCategory:String(n.aggregator_id),eventAction:"CPA_click",eventLabel:window.location.pathname,eventValue:String(n.utm_term||n.click_id),utm_source:String(n.utm_source),utm_campaign:String(n.utm_campaign),utm_medium:String(n.utm_medium)};t[String(n.aggregator_id)]&&((0,s.LM)("cpa_click",o,30),(0,d.lQ)(i))}};var _=n(13107),p=n(36816);let m="".concat(u.S$,"/mp-assets");function g(e){let{children:t,aggregatorIds:n,headerData:c,footerData:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h,{aggregatorIds:n}),(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsx)(a.h4,{data:c,showcaseUrl:u._n,minioUrl:m,lkUrl:u._S}),t,s&&(0,r.jsx)(i.$,{data:s,showcaseUrl:u._n,minioUrl:m})]}),(0,r.jsx)(p.h,{children:(0,r.jsx)(o.z,{})})]})}function h(e){return!function(e){let{asPath:t}=(0,_.P)();(0,c.useEffect)(()=>{(0,d.yr)(t),v(t,e)},[e,t])}(e.aggregatorIds),null}},74059:function(e,t,n){"use strict";n.d(t,{t:function(){return u}});var r=n(57437),o=n(34734),i=n(96765),a=n.n(i);let u=e=>{let{children:t,className:n}=e;return(0,r.jsx)("div",{className:(0,o.Z)(a().mainContainer,n),children:t})};u.displayName="MainContainer"},36816:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(2265),o=n(54887);let i=e=>{let{children:t}=e,[n,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{var e;let t=null===(e=document)||void 0===e?void 0:e.getElementById("portal-root");t&&i(t)},[]),n&&(0,o.createPortal)(t,n)}},91895:function(e,t,n){"use strict";n.d(t,{S$:function(){return c},Yy:function(){return u},_S:function(){return i},_n:function(){return a},dX:function(){return s}});var r=n(20564);let o=e=>{var t;return null!==(t=(0,r.OB)(e))&&void 0!==t?t:""},i=o("NEXT_PUBLIC_MOEX_AD_URI"),a=o("NEXT_PUBLIC_BASE_URL"),u=o("NEXT_PUBLIC_LK_API_URL");o("NEXT_PUBLIC_API_URL"),o("NEXT_PUBLIC_NEW_API_URL"),o("NEXT_PUBLIC_MP_SC_API_URL"),o("NEXT_PUBLIC_MP_SC_URL"),o("NEXT_PUBLIC_PROD_CAT_CORE_API_URL"),o("NEXT_PUBLIC_PRODUCT_TAGS_API_URL"),o("NEXT_PUBLIC_HEADLESS_CMS_API_URL"),o("NEXT_PUBLIC_SEO_API_URL");let c=o("NEXT_PUBLIC_ASSETS_BASE_URL"),s=(e=>{let t=(0,r.OB)(e);return void 0!==t&&("string"==typeof t?"true"===t.toLowerCase():!!t)})("FEATURE_TOGGLE_USE_GLOBAL_SUSPENSE")},21822:function(e,t,n){"use strict";n.d(t,{$1:function(){return l},LM:function(){return f}});var r=n(20564);let o=e=>/^https:\/\//gi.test(e),i=e=>["",...e.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."),a=()=>window.location.host.indexOf("localhost")>=0,u=e=>('"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)),c=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),s=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[(]/g,"%28").replace(/[)]/g,"%29"),l=()=>{if("undefined"!=typeof document&&document.cookie)return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")).map(e=>e.map(e=>u(e))))},f=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,u=(0,r.OB)("NEXT_PUBLIC_BASE_URL");if(!u)throw Error("Не определена переменная окружения NEXT_PUBLIC_BASE_URL");let l=a()?"":"; domain=".concat(i(u)),f=new Date(new Date().getTime()+864e5*n).toUTCString();document.cookie="".concat(s(e),"=").concat(c("string"==typeof t?t:JSON.stringify(t)),"; SameSite=Strict").concat(o(u)?"; Secure":"").concat(l,"; expires=").concat(f,"; path=/;")}},508:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});let r=function(e){var t,n,r,o;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"?",a=null!==(o=null===(r=e.split(i))||void 0===r?void 0:null===(n=r[1])||void 0===n?void 0:null===(t=n.split("?"===i?"#":"?")[0])||void 0===t?void 0:t.split("&"))&&void 0!==o?o:[],u={};return a.forEach(e=>{let[t,n]=e.split("="),r=null!=n?n:"";if(t in u){let e=u[t];if(Array.isArray(e)){u[t]=[...e,r];return}if(!Array.isArray(e)&&e){u[t]=[e,r];return}}u[t]=r}),u}},16243:function(e,t,n){"use strict";n.d(t,{lQ:function(){return i},yr:function(){return a}});var r=n(60915);let o=[{path:"banki",category:"service_bank"},{path:"strahovanie_kompanija",category:"service_sk"},{path:"adresa_sk",category:"service_sk"},{path:"adresa_mfo",category:"service_mfo"},{path:"adresa",category:"service_bank"},{path:"mfo",category:"service_mfo"},{path:"navigator",category:"service_navigator"},{path:"stat_",category:"service_navigator"}],i=(e,t)=>{let n=sessionStorage.getItem("pushedEvents"),o=n?JSON.parse(n):[];e.event=e.event?e.event:"data-event",e.eventValue=e.eventValue?e.eventValue:null,e.eventAction=e.eventAction&&"string"==typeof e.eventAction?e.eventAction.toLowerCase().replaceAll(/[ \xa0]/g,"_"):"",e.eventLabel=e.eventLabel&&"string"==typeof e.eventLabel?e.eventLabel.toLowerCase().replaceAll(/[ \xa0]/g,"_"):"";let i=o.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!i){if(t){let t={...e};t.url=window.location.pathname,o.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(o))}(0,r.AB)(e)}},a=e=>{for(let t of o)if(e.indexOf(t.path)>=0){let n=e.match(/str_(\d+)/),r=Array.isArray(n)&&n[1]?Number(n[1]):1;setTimeout(()=>{i({event:"data-event",eventCategory:t.category,eventAction:"stay_15_seconds",eventLabel:e,eventValue:r})},15e3);return}}},13107:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(47907),o=n(2265),i=n(508);function a(){let e=(0,r.usePathname)(),t=(0,r.useSearchParams)(),n=(0,o.useMemo)(()=>{if(!e)return"";let n=location.hash,r=null==t?void 0:t.toString();return(null==r?void 0:r.length)?e+"?"+r+n:e+n},[t,e]),a=(0,o.useMemo)(()=>(0,i.p)(n,"?"),[n]),u=(0,o.useMemo)(()=>(0,i.p)(n,"#"),[n]),c=(0,o.useCallback)(e=>{history.pushState({url:e},"",e)},[]),s=(0,o.useCallback)(e=>{history.replaceState({url:e},"",e)},[]);return(0,o.useMemo)(()=>({asPath:n,query:a,hash:u,push:c,replace:s}),[u,n,c,a,s])}},96615:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(2265);n(15355);var o=(0,n(13472).$)("edcfe1999a77c8cb1e1508cd0ef81ed1a01abfae");function i(){let[e,t]=(0,r.useState)({}),[n,i]=(0,r.useState)({});return(0,r.useEffect)(()=>{(async()=>{let{layout:e,aggregatorIds:n}=await o();t(e),i(n)})()},[]),{layout:e,aggregatorIds:n}}},96765:function(e){e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}}}]);