(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2670],{7050:function(e,t,r){Promise.resolve().then(r.bind(r,87334)),Promise.resolve().then(r.bind(r,95777))},99376:function(e,t,r){"use strict";var n=r(35475);r.o(n,"notFound")&&r.d(t,{notFound:function(){return n.notFound}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},87334:function(e,t,r){"use strict";r.d(t,{BinomParamsProvider:function(){return s},u:function(){return c}});var n=r(57437),o=r(99376),u=r(2265);let i=(0,u.createContext)(void 0);function s(e){var t,r,s,c,a,d;let{children:l}=e,m=(0,o.useSearchParams)(),v=(0,o.usePathname)(),f=null===(t=m.get("utm_source"))||void 0===t?void 0:t.toString(),h=null===(r=m.get("utm_campaign"))||void 0===r?void 0:r.toString(),g=null===(s=m.get("utm_content"))||void 0===s?void 0:s.toString(),S=null===(c=m.get("utm_medium"))||void 0===c?void 0:c.toString(),w=null===(a=m.get("utm_term"))||void 0===a?void 0:a.toString(),P=null===(d=m.get("click_id"))||void 0===d?void 0:d.toString(),_=(0,u.useMemo)(()=>({pathname:v,utmSource:f,utmMedium:S,utmCampaign:h,utmTerm:w,utmContent:g,clickId:P}),[v,f,S,h,w,g,P]);return(0,n.jsx)(i.Provider,{value:_,children:l})}function c(){let e=(0,u.useContext)(i);if(void 0===e)throw Error("The context of the binom params is used outside of the provider");return e}},95777:function(e,t,r){"use strict";r.d(t,{UserParamsProvider:function(){return d},z:function(){return l}});var n=r(57437),o=r(38856),u=r(2265);function i(e){var t;return null!==(t=sessionStorage.getItem(e))&&void 0!==t?t:void 0}let s=(0,u.createContext)(void 0),c="browserId",a="browserSessionId";function d(e){let{children:t}=e,[r,d]=(0,u.useState)({});return(0,u.useEffect)(()=>{var e,t;let{[c]:r,[a]:n,"auth.gtm_customer_id":u,_ym_uid:s}=Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")));d({browserId:null!=r?r:null!==(t=o.A.getItem(c))&&void 0!==t?t:void 0,sessionId:null!==(e=null!=n?n:i(a))&&void 0!==e?e:i(c),customerId:u,yandexId:s})},[]),(0,n.jsx)(s.Provider,{value:r,children:t})}function l(){let e=(0,u.useContext)(s);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}},38856:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});let n={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let t=n.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch(t){console.warn("invalid object in localStorage by key: ".concat(e))}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}}}},function(e){e.O(0,[2971,2117,1744],function(){return e(e.s=7050)}),_N_E=e.O()}]);