"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1342,5228],{45228:function(e,t,n){n.r(t);var o=n(35944),a=n(84677),r=n(67294);let i={root:{minHeight:"unset",borderRadius:6,boxShadow:"none","&:disabled":{backgroundColor:"background.section",color:"text.primary"}},large:{padding:"16px 32px",fontSize:"14px",lineHeight:"18px"},small:{padding:"8px 16px",fontSize:"12px",lineHeight:"16px"},text:{backgroundColor:"inherit",color:"inherit","&:hover":{backgroundColor:"inherit",color:"inherit"}},primary:{backgroundColor:"primary.main",color:"text.primary","&:hover":{backgroundColor:"background.subordinate",color:"text.primary"}},secondary:{backgroundColor:"background.section",color:"text.primary","&:hover":{backgroundColor:"background.container"}},white:{backgroundColor:"text.primary",color:"primary.main","&:hover":{backgroundColor:"background.subordinate",color:"text.primary"}},red:{backgroundColor:"error.main",color:"text.primary","&:hover":{backgroundColor:"error.main"}}},l=(0,r.forwardRef)(function(e,t){var n,r;let{variant:l="primary",size:d="small",sx:c,...s}=e;return(0,o.tZ)(a.Z,{ref:t,variant:"text"===l?"text":"outlined"===l?"outlined":"contained",sx:[i.root,null!==(n=i[d])&&void 0!==n?n:{},null!==(r=i[l])&&void 0!==r?r:{},...c?Array.isArray(c)?c:[c]:[]],...s})});t.default=l},87054:function(e,t,n){var o=n(35944),a=n(86018),r=n(87262),i=n(34381),l=n(9729),d=n(84166),c=n(31589),s=n(96788),h=n(5152),p=n.n(h),b=n(41664),u=n.n(b),g=n(54490);let x=p()(()=>n.e(1232).then(n.bind(n,71232)),{loadableGenerated:{webpack:()=>[71232]}}),f={root:{backgroundColor:"text.primary",borderRadius:"50px",padding:"2px",width:"100%"},balanceText:{padding:"0 6px"},depositIcon:{alignItems:"center",backgroundColor:"primary.main",borderRadius:"48px",display:"flex",justifyContent:"center",padding:"2px",width:"40px","> svg":{...(0,a.V)(24)}}};t.Z=e=>{let{sx:t}=e,{currencyCode:n}=(0,r.K)(),a=(0,i.KQ)();return(0,o.BX)(d.Z,{component:u(),href:"/account/deposit/",direction:"row",sx:[f.root,...t?Array.isArray(t)?t:[t]:[]],alignItems:"center",justifyContent:"space-between",children:[(0,o.tZ)(s.Z,{variant:"subtitle1",fontWeight:"bold",color:"quaternary.main",sx:f.balanceText,children:(0,o.tZ)(g.BK,{value:null!=a?a:0,style:"currency",currencyDisplay:"narrowSymbol",currency:n})}),(0,o.tZ)(l.Z,{sx:f.depositIcon,children:(0,o.tZ)(c.Z,{children:(0,o.tZ)(x,{})})})]})}},71342:function(e,t,n){n.r(t);var o=n(35944),a=n(45228),r=n(87054),i=n(86018),l=n(58587),d=n(55501),c=n(34381),s=n(36795),h=n(9729),p=n(52857),b=n(84166),u=n(31589),g=n(88539),x=n(96788),f=n(5152),m=n.n(f),k=n(41664),Z=n.n(k),y=n(67294),w=n(44012);let v=m()(()=>n.e(1232).then(n.bind(n,71232)),{loadableGenerated:{webpack:()=>[71232]}}),C=m()(()=>Promise.all([n.e(5675),n.e(259)]).then(n.bind(n,90259)),{loadableGenerated:{webpack:()=>[90259]}}),B=m()(()=>Promise.all([n.e(5675),n.e(2683),n.e(7138),n.e(8146),n.e(1423),n.e(5381),n.e(9916)]).then(n.bind(n,48157)),{loadableGenerated:{webpack:()=>[48157]},ssr:!1}),A=m()(()=>n.e(5274).then(n.bind(n,95274)),{loadableGenerated:{webpack:()=>[95274]}}),S=m()(()=>Promise.all([n.e(2683),n.e(7138),n.e(8146),n.e(1423),n.e(5388)]).then(n.bind(n,35388)),{loadableGenerated:{webpack:()=>[35388]}}),z=m()(()=>Promise.all([n.e(5675),n.e(2683),n.e(7138),n.e(8146),n.e(1423),n.e(5506),n.e(8526),n.e(4946)]).then(n.bind(n,34946)),{loadableGenerated:{webpack:()=>[34946]}}),G=m()(()=>Promise.all([n.e(2683),n.e(7138),n.e(8146),n.e(7824),n.e(1873),n.e(5527),n.e(178),n.e(6114),n.e(6793)]).then(n.bind(n,56793)),{loadableGenerated:{webpack:()=>[56793]},ssr:!1}),j=m()(()=>n.e(3993).then(n.bind(n,93993)),{loadableGenerated:{webpack:()=>[93993]}}),I=m()(()=>n.e(2238).then(n.bind(n,52238)),{loadableGenerated:{webpack:()=>[52238]}}),R=m()(()=>n.e(2041).then(n.bind(n,52041)),{loadableGenerated:{webpack:()=>[52041]}}),N={toolbar:e=>({height:{mobile:e.sizes.header.height.mobile,tablet:e.sizes.header.height.tablet,desktop:e.sizes.header.height.desktopNew},padding:{mobile:"0 8px",tablet:"0 16px"}}),root:{boxShadow:"none"},container:e=>({width:"100%",maxWidth:{mobile:"100%",desktop:e.sizes.page.maxWidth.desktop},margin:{desktop:"0 auto"},display:"grid",gridTemplateAreas:{mobile:'"header-actions header-logo header-auth-actions"',tablet:'"header-actions header-logo header-auth-actions"',desktop:'"header-actions header-logo header-auth-actions"\n       "header-nav header-nav header-nav"'},columnGap:{mobile:"16px",tablet:0},gridTemplateColumns:"1fr max-content 1fr",gridTemplateRows:{mobile:e.sizes.header.height.mobile,tablet:e.sizes.header.height.tablet,desktop:"".concat(e.sizes.header.height.desktopTop,"px ").concat(e.sizes.header.height.desktopNav,"px")}}),headerActions:{gridArea:"header-actions",alignSelf:"center",justifySelf:"start"},headerLogo:{gridArea:"header-logo",alignSelf:"center",justifySelf:"center",width:{mobile:"56px",desktop:"92px"}},headerAuthActions:{gridArea:"header-auth-actions",alignSelf:"center",justifySelf:"end",gap:{mobile:"8px",tablet:"16px"},flexShrink:{mobile:0,tablet:"unset"},width:{mobile:"100%",tablet:"unset"}},headerNav:e=>({width:"100%",borderTop:{mobile:"none",desktop:"1px solid ".concat(e.palette.background.subordinate)},display:{mobile:"none",desktop:"block"},gridArea:"header-nav",alignSelf:"center",justifySelf:"center"}),authButtons:{display:{mobile:"none",tablet:"flex"}},iconBtn:{padding:.5,"&:hover":{background:"none"},"& svg":{...(0,i.V)(24)}},menuBtn:{display:{mobile:"block",desktop:"none"}},languageCurrency:{display:{mobile:"none",desktop:"block"}},notificationBtn:{display:{mobile:"none",tablet:"block"}},notificationBtnLeft:{display:{mobile:"block",tablet:"none"}},notificationUnread:{position:"relative","&::after":{content:"''",position:"absolute",top:0,right:"2px",width:"12px",height:"12px",borderRadius:"50%",backgroundColor:"error.main"}},depositBtn:{display:{mobile:"none",desktop:"flex"}},userBalance:{display:{mobile:"flex",desktop:"none"}},accountMenu:{display:{mobile:"none",desktop:"block"}},affiliateLink:{display:{mobile:"block",tablet:"none"}}};t.default=(0,y.memo)(()=>{let[e,t]=(0,y.useState)(!1),{unreadItemCount:n}=(0,d.r)(),{user:i}=(0,c.aF)(),{isDesktop:f}=(0,l.Z)(),m=(0,y.useRef)(null);return(0,o.BX)(o.HY,{children:[(0,o.tZ)(s.Z,{sx:[N.root],children:(0,o.tZ)(g.Z,{sx:[N.toolbar],variant:"dense",children:(0,o.BX)(h.Z,{sx:N.container,children:[(0,o.BX)(b.Z,{direction:"row",sx:N.headerActions,alignItems:"center",justifyContent:"flex-start",gap:{mobile:"12px",desktop:0},children:[(0,o.tZ)(p.Z,{sx:[N.iconBtn,N.menuBtn],component:Z(),shallow:!0,href:{hash:"menu"},children:(0,o.tZ)(u.Z,{children:(0,o.tZ)(I,{})})}),(0,o.tZ)(p.Z,{sx:[N.iconBtn,N.appDownloadBtnLeft],component:Z(),shallow:!0,href:{hash:"download-app"},children:(0,o.tZ)(u.Z,{children:(0,o.tZ)(j,{})})}),(0,o.tZ)(S,{sx:N.languageCurrency}),(0,o.tZ)(p.Z,{ref:m,sx:[N.iconBtn,N.notificationBtnLeft,n>0?N.notificationUnread:{}],onClick:()=>t(!0),children:(0,o.tZ)(u.Z,{children:(0,o.tZ)(R,{})})})]}),(0,o.tZ)(C,{sx:N.headerLogo}),(0,o.tZ)(b.Z,{direction:"row",sx:N.headerAuthActions,alignItems:"center",justifyContent:"flex-end",children:i?(0,o.BX)(o.HY,{children:[(0,o.tZ)(a.default,{variant:"white",component:Z(),href:"/account/deposit/",sx:N.depositBtn,startIcon:(0,o.tZ)(u.Z,{children:(0,o.tZ)(v,{})}),children:(0,o.tZ)(w.Z,{id:"dIgBOz",defaultMessage:"Deposit"})}),(0,o.tZ)(B,{sx:N.accountMenu}),(0,o.tZ)(r.Z,{sx:N.userBalance}),(0,o.tZ)(p.Z,{ref:m,sx:[N.iconBtn,N.notificationBtn,n>0?N.notificationUnread:{}],onClick:()=>t(!0),children:(0,o.tZ)(u.Z,{children:(0,o.tZ)(R,{})})})]}):(0,o.BX)(o.HY,{children:[(0,o.tZ)(A,{sx:N.authButtons}),(0,o.tZ)(x.Z,{sx:N.affiliateLink,component:Z(),variant:"subtitle1",fontWeight:"bold",href:"/affiliates",target:"affiliate_tab",textAlign:"right",textTransform:"uppercase",maxWidth:"100px",children:(0,o.tZ)(w.Z,{id:"U69dFz",defaultMessage:"EARN MONEY"})})]})}),f&&(0,o.tZ)(z,{sx:N.headerNav})]})})}),e&&(0,o.tZ)(G,{onClose:()=>t(!1),open:e,anchorRef:m}),(0,o.tZ)(g.Z,{sx:[N.toolbar]})]})})},86018:function(e,t,n){n.d(t,{V:function(){return o}});let o=e=>({width:"".concat(e,"px"),height:"".concat(e,"px"),...e>=24?{display:"flex",alignItems:"center",justifyContent:"center"}:{}})},55501:function(e,t,n){n.d(t,{r:function(){return r}});var o=n(31358),a=n(67294);function r(){return(0,a.useContext)(o.Zi)}}}]);