1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3632],{4331:()=>{},80361:(e,n,i)=>{"use strict";i.d(n,{A:()=>d});var t=i(54606),a=i(27961),l=i.n(a);i(4331);var o=i(55729),r=i(19205),s=i(62696);function d(){var e,n=(0,o.useState)(!1),i=n[0],a=n[1],d=(0,o.useState)(),c=d[0],p=d[1],m=(e=(0,t.A)(l().mark(function e(){var n,i,t;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.prev=1,n=s.iM.getItem("mindboxDeviceUUID"),i="/mindbox/balance",n&&(i+="?deviceUUID=".concat(n)),e.next=7,r.L.get(i);case 7:var l;"object"==typeof(l=t=e.sent.data)&&null!==l&&"balance"in l&&"object"==typeof l.level&&null!==l.level&&"number"==typeof l.level.level&&"percentage"in l.level&&"name"in l.level?p(t):console.log("invalid data"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),console.log("Unable to retrieve user addresses",e.t0);case 15:return e.prev=15,a(!1),e.finish(15);case 18:case"end":return e.stop()}},e,null,[[1,12,15,18]])})),function(){return e.apply(this,arguments)});return(0,o.useEffect)(function(){m()},[]),{data:c,loading:i}}},82269:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>$});var t=i(81278),a=i(55729),l=i(9664),o=i(54606),r=i(27961),s=i.n(r),d=i(97302),c=i(53220),p=c.Ay.div.withConfig({displayName:"styled__MenuWrapper",componentId:"sc-1gl7db8-0"})(["display:flex;min-height:600px;flex-direction:column;max-width:360px;min-width:360px;border-right:1px solid #E3E3E3;border-bottom:1px solid #E3E3E3;background:#F7F7F7;height:100%;overflow-y:auto;flex:1;@media(max-width:769px){width:100% !important;max-width:unset;min-width:unset;}"]),m=c.Ay.div.withConfig({displayName:"styled__GreetingContainer",componentId:"sc-1gl7db8-1"})(["display:flex;flex-direction:column;@media(max-width:769px){margin-bottom:28px;}"]),x=c.Ay.div.withConfig({displayName:"styled__Greeting",componentId:"sc-1gl7db8-2"})(["font-weight:200;margin-bottom:8px;.non-comma{display:none;}@media(max-width:769px){.non-comma{display:none;}.comma{display:inline-block;}}"]),u=c.Ay.div.withConfig({displayName:"styled__Name",componentId:"sc-1gl7db8-3"})(["text-transform:uppercase;@media(max-width:769px){font-size:18px;}"]),h=c.Ay.div.withConfig({displayName:"styled__Header",componentId:"sc-1gl7db8-4"})(["display:flex;align-items:center;@media(min-width:769px){& > div:not(:last-child){margin-right:20px !important;}}@media(max-width:769px){flex-direction:column;text-align:center;padding:0;}background:#F7F7F7;padding-left:21px;flex-shrink:0;"]),g=c.Ay.div.withConfig({displayName:"styled__Footer",componentId:"sc-1gl7db8-5"})(["height:100%;flex:1;background:#F7F7F7;padding-top:50px;padding-left:21px;font-weight:200;font-size:16px;line-height:160%;text-decoration-line:underline;color:#757575;.item{margin-bottom:16px;cursor:pointer;}.logout{color:#FF506E;text-decoration-line:underline;cursor:pointer;margin-bottom:27.5%;}@media(max-width:769px){display:none;}"]),f=c.Ay.div.withConfig({displayName:"styled__NameShort",componentId:"sc-1gl7db8-6"})(["color:",";text-transform:uppercase;font-size:24px;line-height:29px;margin-top:30px;@media(max-width:769px){font-size:40px;margin-top:45px;margin-right:32px;margin-left:32px;}"],d.J.main),v=c.Ay.div.withConfig({displayName:"styled__ProfilePic",componentId:"sc-1gl7db8-7"})(["border-radius:50%;background:#E3E3E3;width:88px;height:88px;margin-top:32px;margin-bottom:32px;text-align:center;@media(max-width:769px){width:120px;height:120px;}"]),w=c.Ay.div.withConfig({displayName:"styled__LinkSection",componentId:"sc-1gl7db8-8"})(["@media(min-width:769px){display:none;}.logout{padding:16px 20px;background:white;color:#FF506E;font-weight:200;box-shadow:inset 0px -1px 0px #e3e3e3;}display:flex;flex-direction:column;margin-top:24px;div.header{display:flex;flex-direction:column;margin-left:20px;font-size:15px;font-weight:200;line-height:160%;p{color:#757575;}margin-bottom:12px;}margin-bottom:",";"],function(e){return e.margined?"77px":"0px"}),b=c.Ay.div.withConfig({displayName:"styled__BonusProgram",componentId:"sc-1gl7db8-9"})(["line-height:22px;color:#757575;font-weight:200;font-size:14px;padding-left:29px;margin-bottom:23px;& .bonuses{display:flex;margin-top:10px;}& .value{font-weight:400;font-size:18px;line-height:29px;color:#000;}& .bonusValue{margin-left:16px;display:flex;align-items:center;}& .bonusValue .value{font-size:14px;line-height:22px;margin-left:6px;}"]),y=c.Ay.nav.withConfig({displayName:"styled__Nav",componentId:"sc-1gb9ctc-0"})(["display:flex;flex-direction:column;"]),_=i(82203),N=i.n(_),j=i(8588),k=i.n(j),I=i(52190),A=i(6029),E=function(e){return e.$active?d.J.main:"#222222"},C=(0,c.Ay)(N()).withConfig({displayName:"RoutingItem__Item",componentId:"sc-d3w5be-0"})(['display:flex;height:52px;background:white;text-transform:uppercase;font-size:12px;line-height:14px;svg{width:24px;height:24px;}& > *:first-child{margin-right:12px;}& > div:not(:last-child){margin-right:12px !important;}
1box-shadow:inset 0px -1px 0px #E3E3E3;cursor:pointer;padding-top:16px;padding-left:20px;padding-bottom:16px;font-weight:200;align-items:center;flex-shrink:0;svg{path[fill="#222222"]{fill:','}path[stroke="#222222"],circle,g{stroke:',"}}&.cert{g > path{fill:","}}span.label{color:",";@media(max-width:769px){margin-right:auto;}}div.arrow{display:none;@media(max-width:769px){display:",";}margin-right:20px;}"],E,E,function(e){return e.$active?d.J.main:"unset"},E,function(e){return e.$displayArrow?"flex":"none"});function z(e){var n=e.svg,i=e.text,t=e.route,a=e.className,l=e.pathname,o=e.displayArrow,r=(0,I.c)().t;return(0,A.jsxs)(C,{href:t,$active:l===t,className:a,$displayArrow:void 0===o||o,children:[n?n():null,(0,A.jsx)("span",{className:"label",children:r(i)}),(0,A.jsx)("div",{className:"arrow",children:(0,A.jsx)(k(),{alt:"",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJMMTAgOEw2IDQiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMS4zIi8+Cjwvc3ZnPgo=",width:16,height:16})})]})}function F(e){var n=e.routes,i=(0,I.c)().currentLanguage,l=(0,t.useRouter)(),o=(0,a.useMemo)(function(){var e;return e=l.pathname,n.filter(function(e){return"en"===i?!e.hideInEng:"ru"}).map(function(n){return(0,A.jsx)(z,{className:n.className,svg:n.svg,text:n.name,route:n.url,pathname:e},n.url)})},[l.pathname]);return(0,A.jsx)(y,{children:o})}var M=i(76968),D=i(19205),P=i(38822),Z=i.n(P),S=i(82565),T=i(18249),L=i(80361),H=i(83628);function J(e){var n,i,a,r,d,c=e.routes,y=e.hidden,_=(0,t.useRouter)(),j=(0,l.e3)(M.e),k=(0,L.A)(),E=k.data,C=k.loading,P=(null==E||null==(i=E.balance)?void 0:i.available)||0,J=null==E||null==(a=E.artBalance)?void 0:a.available,R=null==E||null==(r=E.level)?void 0:r.percentage,W=(0,I.c)().t,G=(n=(0,o.A)(s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D.L.get("/auth/logout");case 2:(0,M.ri)(),(0,S.D)(j.email),_.push("/");case 5:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});if(void 0!==y&&y||!(null!=j&&j.id))return null;var U=j.name&&j.name.split(" ").map(function(e){return e[0]}).join("").slice(0,2);return(0,A.jsxs)(p,{children:[(0,A.jsxs)(h,{children:[(0,A.jsx)(v,{children:(0,A.jsx)(f,{children:U})}),(0,A.jsxs)(m,{children:[(0,A.jsxs)(x,{children:[(0,A.jsx)("span",{className:"non-comma",children:W("irn_web_lk_title")}),(0,A.jsxs)("span",{className:"comma",children:[W("irn_web_lk_title"),","]})]}),(0,A.jsx)(u,{children:null==j?void 0:j.name})]})]}),E&&(0,A.jsx)(H.C,{langs:["ru"],children:C?(0,A.jsx)(T.kt,{}):(0,A.jsxs)(b,{children:[(0,A.jsx)("div",{className:"level",children:null==E||null==(d=E.level)?void 0:d.name}),(0,A.jsxs)("div",{className:"bonuses",children:[(0,A.jsxs)("span",{className:"value",children:[R,"%"]}),(0,A.jsxs)("span",{className:"bonusValue",children:["ÐонÑÑÑ"," ",(0,A.jsx)("span",{className:"value",children:P})]}),!Z()(J)&&(0,A.jsxs)("span",{className:"bonusValue",children:["ÐÑÑ-бонÑÑÑ"," ",(0,A.jsx)("span",{className:"value",children:J})]})]})]})}),(0,A.jsx)(F,{routes:c}),(0,A.jsxs)(w,{children:[(0,A.jsx)(z,{text:W("irn_web_lk_help"),route:"/faq",displayArrow:!1}),(0,A.jsx)("div",{className:"logout",onClick:G,children:W("irn_web_lk_logout_button")})]}),(0,A.jsxs)(g,{children:[(0,A.jsx)(N(),{href:"/faq/dostavka",className:"item",children:W("irn_web_lk_link_for_clients")}),(0,A.jsx)("div",{className:"logout",onClick:G,children:W("irn_web_lk_logout_button")})]})]})}var R=c.Ay.div.withConfig({displayName:"styled__PersonalPageWrapper",componentId:"sc-kni2r9-0"})(["display:flex;flex:1;position:relative;overflow:hidden;"]),W=i(8768),G=i(96868),U=i(95669),Y=i.n(U);function $(e){var n=e.children,i=(0,l.e3)(M.uf),o=(0,t.useRouter)(),r=(0,G.A)()&&"/personal"!==o.pathname;return(0,a.useEffect)(function(){i?(0,M.Sk)():o.push("/?login")},[]),(0,A.jsxs)(R,{children:[(0,A.jsx)(Y(),{children:(0,A.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,A.jsx)(J,{routes:W.J,hidden:r}),n]})}},82565:(e,n,i)=>{"use strict";i.d(n,{D:()=>l});var t=i(97772),a=i(48585),l=function(e){(0,t._)("logout",{user_name:e?(0,a.t)(e):""},!0)}},93921:(e,n,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/personal",function(){return i(82269)}])},96868:(e,n,i)=>{"use strict";i.d(n,{A:()=>a});var t=i(55729);let a=function(){var e=(0,t.useState)(void 0),n=e[0],i=e[1];return(0,t.useEffect)(function(){function e(){i(window.innerWidth)}return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}},[]),n?n<=812:void 0}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=93921)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.