(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9207],{22661:(e,t,r)=>{Promise.resolve().then(r.bind(r,93619)),Promise.resolve().then(r.bind(r,26159)),Promise.resolve().then(r.bind(r,79433)),Promise.resolve().then(r.bind(r,75241)),Promise.resolve().then(r.bind(r,52581)),Promise.resolve().then(r.bind(r,49989))},49989:(e,t,r)=>{"use strict";r.d(t,{UserParamsProvider:()=>c,f:()=>m});var o=r(95155),n=r(12115),s=r(98668);function i(e){return sessionStorage.getItem(e)??void 0}let u=(0,n.createContext)(void 0),a="browserId",d="browserSessionId";function c({children:e}){let[t,r]=(0,n.useState)({});return(0,n.useEffect)(()=>{let{[a]:e,[d]:t,"auth.gtm_customer_id":o,_ym_uid:n}=Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")));r({browserId:e??s.A.getItem(a)??void 0,sessionId:t??i(d)??i(a),customerId:o,yandexId:n})},[]),(0,o.jsx)(u.Provider,{value:t,children:e})}function m(){let e=(0,n.useContext)(u);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}},52581:(e,t,r)=>{"use strict";r.d(t,{BinomParamsProvider:()=>u,v:()=>a});var o=r(95155),n=r(12115),s=r(73321);let i=(0,n.createContext)(void 0);function u({children:e}){let t=(0,s.useSearchParams)(),r=(0,s.usePathname)(),a=t.get("utm_source")?.toString(),d=t.get("utm_campaign")?.toString(),c=t.get("utm_content")?.toString(),m=t.get("utm_medium")?.toString(),l=t.get("utm_term")?.toString(),h=t.get("click_id")?.toString(),v=(0,n.useMemo)(()=>({pathname:r,utmSource:a,utmMedium:m,utmCampaign:d,utmTerm:l,utmContent:c,clickId:h}),[r,a,m,d,l,c,h]);return(0,o.jsx)(i.Provider,{value:v,children:e})}function a(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("The context of the binom params is used outside of the provider");return e}},73321:(e,t,r)=>{"use strict";var o=r(74645);r.o(o,"notFound")&&r.d(t,{notFound:function(){return o.notFound}}),r.o(o,"usePathname")&&r.d(t,{usePathname:function(){return o.usePathname}}),r.o(o,"useRouter")&&r.d(t,{useRouter:function(){return o.useRouter}}),r.o(o,"useSearchParams")&&r.d(t,{useSearchParams:function(){return o.useSearchParams}})},75241:(e,t,r)=>{"use strict";r.d(t,{UserParamsProvider:()=>c,f:()=>m});var o=r(95155),n=r(12115),s=r(98668);function i(e){return sessionStorage.getItem(e)??void 0}let u=(0,n.createContext)(void 0),a="browserId",d="browserSessionId";function c({children:e}){let[t,r]=(0,n.useState)({});return(0,n.useEffect)(()=>{let{[a]:e,[d]:t,"auth.gtm_customer_id":o,_ym_uid:n}=Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")));r({browserId:e??s.A.getItem(a)??void 0,sessionId:t??i(d)??i(a),customerId:o,yandexId:n})},[]),(0,o.jsx)(u.Provider,{value:t,children:e})}function m(){let e=(0,n.useContext)(u);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}},79433:(e,t,r)=>{"use strict";r.d(t,{BinomParamsProvider:()=>u,v:()=>a});var o=r(95155),n=r(12115),s=r(73321);let i=(0,n.createContext)(void 0);function u({children:e}){let t=(0,s.useSearchParams)(),r=(0,s.usePathname)(),a=t.get("utm_source")?.toString(),d=t.get("utm_campaign")?.toString(),c=t.get("utm_content")?.toString(),m=t.get("utm_medium")?.toString(),l=t.get("utm_term")?.toString(),h=t.get("click_id")?.toString(),v=(0,n.useMemo)(()=>({pathname:r,utmSource:a,utmMedium:m,utmCampaign:d,utmTerm:l,utmContent:c,clickId:h}),[r,a,m,d,l,c,h]);return(0,o.jsx)(i.Provider,{value:v,children:e})}function a(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("The context of the binom params is used outside of the provider");return e}},98668:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o={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=o.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch{console.warn(`invalid object in localStorage by key: ${e}`)}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}}}},e=>{e.O(0,[8465,8441,3794,7358],()=>e(e.s=22661)),_N_E=e.O()}]);