PageSourceSearch

https://olx168new.com/static/js/async/15568.f977d988.js

js olx168new.com collected 2026-10-10 00:33:08 UTC 44,098 bytes, 2 lines download raw bytes

1(self.webpackChunklottery=self.webpackChunklottery||[]).push([["15568"],{43292(e,t,n){"use strict";n.d(t,{A:()=>c});var a=n(96540),i=n(40961),o=n(61475),r=n(74801),s=n(22319);function l(e){return e.substring(2).toLowerCase()}let c=function(e){var t=e.children,n=e.disableReactTree,c=void 0!==n&&n,d=e.mouseEvent,_=void 0===d?"onClick":d,u=e.onClickAway,m=e.touchEvent,p=void 0===m?"onTouchEnd":m,g=a.useRef(!1),h=a.useRef(null),f=a.useRef(!1),b=a.useRef(!1);a.useEffect(function(){return setTimeout(function(){f.current=!0},0),function(){f.current=!1}},[]);var v=a.useCallback(function(e){h.current=i.findDOMNode(e)},[]),x=(0,r.A)(t.ref,v),A=(0,s.A)(function(e){var t=b.current;if(b.current=!1,!(!f.current||!h.current||document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY)){if(g.current){g.current=!1;return}(e.composedPath?e.composedPath().indexOf(h.current)>-1:!(0,o.A)(h.current).documentElement.contains(e.target)||h.current.contains(e.target))||!c&&t||u(e)}}),C=function(e){return function(n){b.current=!0;var a=t.props[e];a&&a(n)}},j={ref:x};
1return!1!==p&&(j[p]=C(p)),a.useEffect(function(){if(!1!==p){var e=l(p),t=(0,o.A)(h.current),n=function(){g.current=!0};return t.addEventListener(e,A),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,A),t.removeEventListener("touchmove",n)}}},[A,p]),!1!==_&&(j[_]=C(_)),a.useEffect(function(){if(!1!==_){var e=l(_),t=(0,o.A)(h.current);return t.addEventListener(e,A),function(){t.removeEventListener(e,A)}}},[A,_]),a.createElement(a.Fragment,null,a.cloneElement(t,j))}},73486(e,t,n){"use strict";n.d(t,{A:()=>d});var a=n(58168),i=n(80045),o=n(96540),r=n(20053),s=n(32150),l=n(76171),c=o.forwardRef(function(e,t){var n=e.children,s=e.classes,c=e.className,d=e.component,_=e.dense,u=void 0!==_&&_,m=e.disablePadding,p=e.subheader,g=(0,i.A)(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=o.useMemo(function(){return{dense:u}},[u]);return o.createElement(l.A.Provider,{value:h},o.createElement(void 0===d?"ul":d,(0,a.A)({className:(0,r.default)(s.root,c,u&&s.dense,!(void 0!==m&&m)&&s.padding,p&&s.subheader),ref:t},g),p,n))});let d=(0,s.A)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(c)},76171(e,t,n){"use strict";n.d(t,{A:()=>a});let a=n(96540).createContext({})},71846(e,t,n){"use strict";n.d(t,{A:()=>l});var a=n(96540),i=n(40961),o=n(24960),r=n(74801),s="u">typeof window?a.useLayoutEffect:a.useEffect;let l=a.forwardRef(function(e,t){var n=e.children,l=e.container,c=e.disablePortal,d=void 0!==c&&c,_=e.onRendered,u=a.useState(null),m=u[0],p=u[1],g=(0,r.A)(a.isValidElement(n)?n.ref:null,t);return(s(function(){var e;d||p((e="function"==typeof(e=l)?e():e,i.findDOMNode(e)||document.body))},[l,d]),s(function(){if(m&&!d)return(0,o.A)(t,m),function(){(0,o.A)(t,null)}},[t,m,d]),s(function(){_&&(m||d)&&_()},[_,m,d]),d)?a.isValidElement(n)?a.cloneElement(n,{ref:g}):n:m?i.createPortal(n,m):m})},6674(e,t,n){"use strict";function a(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,{A:()=>a})},6293(e,t,n){"use strict";var a=n(24994),i=n(6305);t.default=void 0;var o=i(n(96540));t.default=(0,a(n(76447)).default)(o.createElement("path",{d:"M12 3c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1zm5.14 2.86c-.39.39-.38 1-.01 1.39 1.13 1.2 1.83 2.8 1.87 4.57.09 3.83-3.08 7.13-6.91 7.17C8.18 19.05 5 15.9 5 12c0-1.84.71-3.51 1.87-4.76.37-.39.37-1-.01-1.38-.4-.4-1.05-.39-1.43.02C3.98 7.42 3.07 9.47 3 11.74c-.14 4.88 3.83 9.1 8.71 9.25 5.1.16 9.29-3.93 9.29-9 0-2.37-.92-4.51-2.42-6.11-.38-.41-1.04-.42-1.44-.02z"}),"PowerSettingsNewRounded")},83915(e,t,n){var a=n(38859),i=n(15325),o=n(29905),r=n(34932),s=n(27301),l=n(19219);e.exports=function(e,t,n,c){var d=-1,_=i,u=!0,m=e.length,p=[],g=t.length;if(!m)return p;n&&(t=r(t,s(n))),c?(_=o,u=!1):t.length>=200&&(_=l,u=!1,t=new a(t));e:for(;++d<m;){var h=e[d],f=null==n?h:n(h);if(h=c||0!==h?h:0,u&&f==f){for(var b=g;b--;)if(t[b]===f)continue e;p.push(h)}else _(t,f,c)||p.push(h)}return p}},66245(e,t,n){var a=n(83915),i=n(83120),o=n(69302),r=n(83693);e.exports=o(function(e,t){return r(e)?a(e,i(t,1,r,!0)):[]})},90972(e,t,n){"use strict";n.d(t,{A:()=>d});var a=n(71893),i=n(55456),o=n(74848),r=n(96540),s=n(20125),l=n(58156),c=n.n(l);let d=e=>(0,r.forwardRef)((t,n)=>{let r=(0,s.d)(e=>e.user),l=c()(r,"display_name","")||c()(r,"username","");return(0,o.jsx)(e,(0,i._)((0,a._)({ref:n},t),{user:r,displayName:l}))})},90311(e,t,n){"use strict";n.d(t,{A:()=>u});var a=n(71893),i=n(55456),o=n(31105),r=n(74848),s=n(96540),l=n(20125),c=n(56347),d=n(25176),_=n(72050);let u=e=>(0,s.forwardRef)((t,n)=>{let[u,...m]=[t,n],{userInput:p,fieldErrors:g={},handleSubmit:h,handleInputChange:f,handleKeyPress:b,handleChangeCaptchaId:v,renderLoginButtonLabel:x,disableLoginButton:A}=u,C=(0,o._)(u,["userInput","fieldErrors","handleSubmit","handleInputChange","handleKeyPress","handleChangeCaptchaId","renderLoginButtonLabel","disableLoginButton"]),[j]=m,[k,w]=(0,d.L4)(_.UW),[y,N]=(0,s.use
1State)(!0),L=(0,c.useLocation)(),I=(0,c.useHistory)(),D=(0,l.d)(e=>e.auth),R=(0,s.useCallback)(()=>{"/register"===L.pathname?I.go():w(()=>!0)},[L.pathname,I,w]),E=(0,s.useCallback)(()=>{w(()=>!1)},[w]),M=(0,s.useCallback)(()=>{N(e=>!e)},[]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(e,(0,i._)((0,a._)({ref:j},C),{userInput:p,fieldErrors:g,handleSubmit:h,handleInputChange:f,handleKeyPress:b,handleChangeCaptchaId:v,auth:D,renderLoginButtonLabel:x,disableLoginButton:A,openModalRegister:k,isShowPassword:y,onToggleShowPassword:M,onCloseModalRegister:E,onOpenModalRegister:R}))})})},69894(e,t,n){"use strict";n.d(t,{A:()=>m});var a=n(71893),i=n(74848),o=n(96540),r=n(96338),s=n(20125),l=n(58156),c=n.n(l),d=n(72914),_=n(26655),u=n(74646);let m=e=>t=>{let n=(0,r.w)(),l=(0,s.d)(e=>e.auth),m=(0,s.d)(e=>e.memoUnread),p=(0,o.useCallback)(e=>{n((0,u.Y)(c()(e,"total.unread")))},[n]);return(0,i.jsxs)(i.Fragment,{children:[l.token&&(0,i.jsx)(_.A,{apiFunc:()=>d.A.getMemoList({page:1,page_size:1}),setData:p}),(0,i.jsx)(e,(0,a._)({memoUnread:m},t))]})}},87232(e,t,n){"use strict";n.d(t,{A:()=>k});var a=n(71893),i=n(55456),o=n(74848),r=n(96540),s=n(96338),l=n(20125),c=n(21585),d=n.n(c),_=n(62193),u=n.n(_),m=n(55378),p=n.n(m),g=n(37530),h=n.n(g),f=n(25176),b=n(22418),v=n(26655),x=n(37730),A=n(98382),C=n(56232),j=n(77772);let k=e=>{let{NotificationModal:t,page_size:n=10,isNavbar:c=!1}=e;return e=>_=>{let m=(0,C.Y0)(),g=(0,l.d)(e=>e.notification.read),k=(0,s.w)(),[w,y]=(0,r.useState)({list:[],total_size:0}),N=(0,r.useMemo)(()=>p()(w.list,e=>(0,i._)((0,a._)({},e),{unRead:-1===d()(g,e.id)})),[w,g]),[L,I]=(0,r.useState)(!1),[D,R]=(0,r.useState)(),E=(0,r.useCallback)(e=>{c||(I(!0),R(e))},[]),[M,S]=(0,r.useState)(1),[z,B]=(0,r.useState)([]),[T,P]=(0,r.useState)([]),H=(0,r.useCallback)((e,t)=>{S(t)},[]);(0,r.useEffect)(()=>{let e=(M-1)*n;B(h()(N,e,e+n))},[N,M]),(0,r.useEffect)(()=>{u()(D)||k((0,A.Y)(D.id))},[k,D]),(0,r.useEffect)(()=>{let e=()=>{P(Math.random())};return window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}},[]);let[F,V]=(0,f.L4)(j.f),W=(0,r.useMemo)(()=>!!F&&"granted"!==F&&(!m.desktop||!!c),[F,m]),K=(0,r.useCallback)(()=>{F&&("denied"===F?k((0,x.p)("err_notifications_denied")):Notification.requestPermission().then(()=>{V(Notification.permission)}))},[F,k,V]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v.A,{apiFunc:()=>(0,b.A)("app_notification",null,1e4),setData:y,deps:[T],loaderEffect:!1}),t&&(0,o.jsx)(t,{open:L,handleClose:()=>I(!1),notification:D}),(0,o.jsx)(e,(0,i._)((0,a._)({},_),{data:w,handleOpenNotification:E,notifications:N,page:M,handleChangePage:H,countPage:Math.ceil(w.total_size/n),dataPagination:z,showTurnOnNotifications:W,requestPermission:K,isNavbar:c}))]})}}},11321(e,t,n){"use strict";n.d(t,{A:()=>_});var a=n(71893),i=n(55456),o=n(74848),r=n(96540),s=n(18492),l=n(22708),c=n(86161),d=n(23245);let _=e=>t=>{let[n,_]=(0,r.useState)(!1),[u,m]=(0,r.useState)(null),{i18n:p}=(0,s.B)();(0,r.useEffect)(()=>{if(p.language){let e=c.A.find(e=>e.code===p.language);e&&((0,d.JK)()&&(0,d.y)("language",{lang:e.code}),m(e),document.documentElement.setAttribute("lang",e.code))}},[p.language]);let g=(0,r.useCallback)(()=>{_(!1)},[]),h=(0,r.useCallback)(()=>{_(e=>!e)},[]),f=(0,r.useCallback)(e=>{m(e),_(!1),p.changeLanguage(e.code),localStorage.setItem("i18nextLng",e.code)},[p]);return l.N.length<=1?null:(0,o.jsx)(e,(0,i._)((0,a._)({},t),{currentLanguage:u,openDropdownLanguage:n,onCloseDropDownLanguage:g,toggleDropDownLanguage:h,onSelectLanguage:f}))}},30529(e,t,n){"use strict";n.d(t,{A:()=>o});var a=n(96540),i=n(56347);let o=()=>{let e=(0,i.useLocation)();return(0,a.useCallback)(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a="/"===t;return(0,i.matchPath)(e.pathname,{path:t,exact:n||a,strict:a})},[e.pathname])}},56165(e,t,n){"use strict";n.d(t,{A:()=>d});var a=n(96540),i=n(83850),o=n(56347),r=n(85178),s=n(15632),l=n(80752),c=n(37730);let d=()=>{let{enabled:e}=(()=>{let e=(0,o.useLocation)(),t=(0,o.useHistory)(),n=(0,i.wA)(),d=(0,i.d4)(e=>e.auth),[_]=(0,l.A)({apiFunc:()=>(0,r.A)("bonus_battles/is_enabled"),loaderEffect:!1,errorPopup:!1}),u=(0,a.useMemo)(()=>(null==_?void 0:_.is_enabled)!==!1,[_]),[m]=(0,l.A)({apiFunc:()=>(0,s.A)("bonus_battles/get_unfinished_battle"),enableFetch:!!(null==d?void 0:d.token)&&null!==_&&u,loaderEffect:!1,errorPopup:u});return(0,a.useEffect)(()=>{(null==d?void 0:d.acceptTerms)&&u&&(null==m?void 0:m.id)&&e.pathname!=="/bonus-battles/detail/".concat(null==m?void 0:m.id)&&n((0,c._)({messages:[{message:"bonus_battle_not_closed_yet"}]}))},[null==d?void 0:d.acceptTerms,null==m?void 0:m.id,n,u]),(0,a.useEffect)(()=>{null!==_&&!u&&e.pathname.startsWith("/bonus-battles")&&t.replace("/")},[e.pathname,t,_,u]),{enabled:u}})();return{linkBonusBattlesPage:(0,a.useMemo)(()=>e?"/bonus-battles":"#",[e]),enabled:e}}},92127(e,t,n){"use strict";n.d(t,{A:()=>
1o});var a=n(96540),i=n(82459);let o=()=>{let{enabled:e}=(0,i.A)();return{linkMembershipPage:(0,a.useMemo)(()=>e?"/membership":"#",[e])}}},82459(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(96540),i=n(56347),o=n(85178),r=n(80752);let s=()=>{let e=(0,i.useLocation)(),t=(0,i.useHistory)(),[n]=(0,r.A)({apiFunc:()=>(0,o.A)("member_tiers"),loaderEffect:!1}),s=(0,a.useMemo)(()=>(null==n?void 0:n.is_enabled)!==!1,[n]);return(0,a.useEffect)(()=>{"/membership"!==e.pathname||s||t.replace("/")},[e.pathname,t,n,s]),{membership:n,enabled:s}}},38338(e,t,n){"use strict";n.d(t,{A:()=>b});var a=n(96540),i=n(96338),o=n(20125),r=n(66245),s=n.n(r),l=n(87612),c=n.n(l),d=n(7309),_=n.n(d),u=n(58156),m=n.n(u),p=n(62193),g=n.n(p),h=n(22418),f=n(98382);let b=()=>{let e=(0,i.w)(),t=(0,o.d)(e=>e.notification.read),[n,r]=(0,a.useState)({list:[],total_size:0}),l=(0,a.useMemo)(()=>Math.max(n.total_size-m()(t,"length",0),0),[n.total_size,t]);return(0,a.useEffect)(()=>{if(g()(n.list))return;let a=c()(t,e=>_()(n.list,t=>t.id===e));g()(s()(a,t))&&g()(s()(t,a))||e((0,f.b)(a))},[e,n.list,t]),(0,a.useEffect)(()=>{(async()=>{let e=await (0,h.A)("app_notification",null,1e4);m()(e,"data.success")&&r(m()(e,"data.data"))})()},[]),l}},74646(e,t,n){"use strict";n.d(t,{Y:()=>i});var a=n(77024);let i=e=>({type:a.wZ,payload:e})},98382(e,t,n){"use strict";n.d(t,{Y:()=>i,b:()=>o});var a=n(77024);let i=e=>({type:a.Mh,payload:e}),o=e=>({type:a.Rk,payload:e})},84943(e,t,n){"use strict";n.d(t,{A:()=>o});var a=n(21585),i=n.n(a);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return i()(e,t)>=0}},93108(e,t,n){"use strict";n.d(t,{A:()=>i});var a=n(96540);function i(e,t){let n=(0,a.useCallback)(n=>{!e.current||e.current.contains(n.target)||t(n)},[t,e]);(0,a.useEffect)(()=>(document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}),[n])}},72045(e,t,n){"use strict";n.d(t,{A:()=>s});var a=n(71893),i=n(55456),o=n(74848);n(96540);var r=n(41728);let s=e=>(0,o.jsx)(r.A,(0,i._)((0,a._)({viewBox:"0 0 10 11"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.20622 1.34281C3.20622 0.602419 3.80864 0 4.54903 0C5.28944 0 5.89195 0.602419 5.89195 1.34281V1.55469C7.16171 2.088 8.05682 3.354 8.05682 4.82716V6.79727L9.04343 8.33212C9.1122 8.43898 9.11705 8.57487 9.05607 8.68634C8.99528 8.7977 8.87849 8.86715 8.75139 8.86715H6.14233C5.96165 9.57183 5.32121 10.0942 4.56104 10.0942H4.53789C3.77772 10.0942 3.13728 9.57183 2.95661 8.86715H0.347271C0.220167 8.86715 0.103354 8.7977 0.0424733 8.68623C-0.0184073 8.57476 -0.0135574 8.43884 0.0552094 8.332L1.04182 6.79727V4.82716C1.04182 3.35416 1.93667 2.08828 3.20622 1.55487V1.34281ZM3.90077 1.34562C4.11101 1.30577 4.3278 1.28493 4.54932 1.28493C4.77068 1.28493 4.98731 1.30574 5.1974 1.34554V1.34281C5.1974 0.985328 4.90649 0.694548 4.54903 0.694548C4.19167 0.694548 3.90077 0.985348 3.90077 1.34281V1.34562ZM3.69243 8.86715C3.84389 9.18187 4.16597 9.39959 4.53789 9.39959H4.56104C4.93298 9.39959 5.25505 9.18187 5.40651 8.86715H3.69243Z"})}))},49963(e,t,n){"use strict";n.d(t,{A:()=>x});var a=n(74848),i=n(96540),o=n(20053),r=n(58156),s=n.n(r),l=n(11321),c=n(86161),d=n(93108),_=n(19640),u=n(71893),m=n(55456),p=n(41728);let g=e=>(0,a.jsx)(p.A,(0,m._)((0,u._)({viewBox:"0 0 26 26"},e),{children:(0,a.jsx)("path",{d:"M13 0C5.83192 0 0 5.83192 0 13C0 20.1681 5.83192 26 13 26C20.1681 26 26 20.1681 26 13C26 5.83192 20.1681 0 13 0ZM13 23.8333C10.0488 23.8333 7.37242 22.6441 5.41668 20.7236V18.9583C5.41668 18.4431 5.64733 18.1114 5.91393 17.7274C6.18846 17.3323 6.5 16.8843 6.5 16.25C6.5 15.2169 5.5674 15.1122 5.06594 15.0561C4.70727 15.0159 4.36876 14.9778 4.17462 14.7837C4.02756 14.6366 3.8805 14.3695 3.72501 14.087C3.41621 13.5252 2.99762 12.7822 2.20071 12.3271C2.55105 6.66738 7.25344 2.16668 13 2.16668C13.2973 2.16668 13.5896 2.18771 13.881 2.21132C13.8217 2.25027 13.749 2.27673 13.7004 2.32538C13.5951 2.43064 13.5375 2.57507 13.5417 2.72421C13.5465 2.87285 13.612 3.01356 13.7231 3.11299C13.9178 3.28595 13.9553 3.37325 13.9628 3.37325C13.9506 3.39914 13.8511 3.56896 13.2968 3.85039C12.3816 4.31427 11.3248 5.26378 11.1677 6.25193C11.0957 6.70048 11.2259 7.11679 11.5337 7.42468C11.6353 7.52624 11.7728 7.58337 11.9167 7.58337C12.6689 7.58337 13.2502 7.30514 13.8125 7.0364C14.3896 6.76076 14.935 6.5 15.7083 6.5C17.8343 6.5 19.5 6.97607 19.5 7.58332C19.5 7.80599 19.4307 7.87424 19.4043 7.89963C19.1382 8.16146 18.2321 8.14455 17.4354 8.13236C17.2244 8.12866 17.0086 8.12495 16.7917 8.12495C16.0564 8.12495 15.8284 8.01755 15.5645 7.89273C15.2571 7.7478 14.9091 7.58327 14.0833 7.58327C13.1904 7.58327 11.5311 7.7446 10.4503 8.82527C9.56643 9.70866 9.66002 10.7655 9.72141 11.4643C9.73568 11.6251 9.75 11.7775 9.75 11.9166C9.75 12.9835 10.8402 13.5416 11.9167 13.5416C13.5724 13.5416 15.0038 13.8505 15.1667 14.0833C15.1667 14.6895 15.3471 15.1037 15.492 15.4358C15.6126 15.7135 15.7083 15.9325 15.7083 16.2499C15.7083 16.4953 15.6681 16.5477 15.5597 16.6874C15.3528 16.9561 15.1666 17.2486 15.1666 17.8749C15.1666 19.0148 16.2643 20.2653 16.3891 20.4045C16.4933 20.5198 16.6404 20.5833 16.7916 20.5833C16.8366 20.5833 16.8816 20.578 16.926 20.5664C17.245 20.4843 20.0416 19.7147 20.0416 17.8749C20.0416 17.2984 20.2209 17.1428 20.4928 16.9069C20.7594 16.6752 21.1249 16.3584 21.1249 15.7083C21.1249 15.274 21.8957 14.1531 22.6098 13.3633C22.7108 13.2517 22.7611 13.1026 22.7479 12.9523C22.7347 12.8021 22.6595 12.664 22.5405 12.572C22.1194 12.2456 20.9568 11.1829 20.5675 10.1519C20.7881 10.2673 21.0642 10.455 21.2837 10.6746C21.4641 10.856 21.7058 10.9427 21.9809 10.9317C22.4196 10.9
1066 22.9407 10.56 23.4346 10.1277C23.6873 11.0441 23.8334 12.0043 23.8334 13C23.8333 18.9737 18.9737 23.8333 13 23.8333Z"})}));var h=n(93796),f=n(67729),b=n(32994);let v=(0,h.default)(()=>({selectLanguage__container:{position:"relative",[b.Ay.mobile]:{width:"100%"}},selectLanguage__dropDown:{position:"relative",padding:"0 .5em",background:f.A.input_bg,color:f.A.input_txt,display:"flex",alignItems:"center",justifyContent:"space-between",width:"11em",height:36,borderRadius:".75em",zIndex:11,cursor:"pointer",border:"none",[b.Ay.mobile]:{width:"100%",height:"2.5em",background:f.A.selectLangMobile_bg,color:f.A.selectLangMobile_txt}},selectLanguage__dropDown_active:{border:"1px solid ".concat(f.A.primary),borderBottomLeftRadius:0,borderBottomRightRadius:0,[b.Ay.mobile]:{border:"none"}},selectLanguage__dropDown__left:{display:"flex",alignItems:"center"},selectLanguage__globeIcon:{width:21,height:21,marginRight:"1rem",fill:f.A.input_ic,[b.Ay.mobile]:{width:"1em",height:"1em",marginRight:".75em",fill:f.A.selectLangMobile_icon}},selectLanguage__dropDownIcon:{fontSize:".75rem",fill:f.A.input_ic,[b.Ay.mobile]:{fill:f.A.selectLangMobile_icon}},selectLanguage__language:{textTransform:"uppercase",lineHeight:"1em"},selectLanguage__dropdown__list:{zIndex:1e3,background:f.A.input_bg,color:f.A.input_txt,padding:0,position:"absolute",top:34,listStyle:"none",width:"11em",borderRadius:"0 0 .75em .75em",borderWidth:"0 1px 1px 1px",borderStyle:"solid",borderColor:f.A.primary,overflow:"hidden",margin:0,[b.Ay.mobile]:{top:"2.4em",border:"none",background:f.A.selectLangMobile_bg,color:f.A.selectLangMobile_txt,width:"100%"}},selectLanguage__dropdown__item:{padding:".6em 1em .7em",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{background:f.A.select_hover_bg,color:f.A.select_hover_txt}}})),x=(0,l.A)(e=>{let{currentLanguage:t,openDropdownLanguage:n,toggleDropDownLanguage:r,onCloseDropDownLanguage:l,onSelectLanguage:u}=e,m=v(),p=(0,i.useRef)();(0,d.A)(p,l);let h=(0,i.useCallback)(()=>n?(0,a.jsx)("ul",{className:m.selectLanguage__dropdown__list,children:c.A.map(e=>(0,a.jsx)("li",{className:m.selectLanguage__dropdown__item,onClick:()=>u(e),children:(0,a.jsx)("span",{className:m.selectLanguage__language,children:e.language})},e.id))}):"",[m,n,u]);return(0,a.jsxs)("div",{className:m.selectLanguage__container,ref:p,children:[(0,a.jsxs)("div",{className:(0,o.default)(m.selectLanguage__dropDown,{[m.selectLanguage__dropDown_active]:n}),onClick:r,children:[(0,a.jsxs)("div",{className:m.selectLanguage__dropDown__left,children:[(0,a.jsx)(g,{className:m.selectLanguage__globeIcon}),(0,a.jsx)("span",{className:m.selectLanguage__language,children:s()(t,"language")})]}),(0,a.jsx)(_.A,{className:m.selectLanguage__dropDownIcon})]}),h()]})})},78992(e,t,n){"use strict";n.d(t,{A:()=>m});var a=n(74848);n(96540);var i=n(54625),o=n(20053),r=n(62193),s=n.n(r),l=n(55378),c=n.n(l),d=n(59545),_=n(72045),u=n(11921);let m=e=>{let{notifications:t=[],dataPagination:n=[],handleOpenNotification:r=()=>{},showTurnOnNotifications:l,requestPermission:m}=e,p=(0,u.I)();return(0,a.jsxs)(a.Fragment,{children:[l&&(0,a.jsxs)("div",{className:p.notification__memo,onClick:m,children:[(0,a.jsx)(_.A,{className:p.notification__memoIc}),(0,a.jsx)(d.A,{i18nKey:"turn on notifications"})]}),(0,a.jsx)("div",{className:"whitespace-break-spaces",children:s()(t)?(0,a.jsx)(d.A,{i18nKey:"NoNotificationTip"}):c()(n,e=>(0,a.jsxs)(i.N_,{to:"/notification",className:(0,o.default)({[p.notification__item]:!0,[p.notification__item_unread]:e.unRead}),onClick:()=>r(e),children:[(0,a.jsxs)("div",{className:p.notification__item__titleWrapper,children:[(0,a.jsx)("div",{className:p.notification__item__title,children:e.title}),(0,a.jsx)("div",{className:p.notification__item__date,children:e.created_at})]}),(0,a.jsx)("hr",{className:p.notification__item__line}),(0,a.jsx)("div",{className:p.notification__item__content,children:e.content})]},e.id))})]})}},11921(e,t,n){"use strict";n.d(t,{I:()=>c});var a=n(71893),i=n(55456),o=n(93796),r=n(67729),s=n(32994),l=n(97813);let c=(0,o.default)(()=>({notificationPage:{[s.Ay.desktop]:{maxWidth:"40rem !important"}},notification__title:(0,i._)((0,a._)({},l.A.fontBold),{color:r.A.page_title,fontSize:"1.3333333rem",position:"relative",textTransform:"uppercase",padding:"0.9rem 0"}),notification__item:(0,i._)((0,a._)({background:r.A.noti_bg,color:r.A.noti_txt,border:"1px solid ".concat(r.A.noti_border),borderRadius:"1rem",padding:"1rem",cursor:"pointer",display:"block"},null===r.A||void 0===r.A?void 0:r.A.notification__item),{"&:not(:last-child)":{marginBottom:"1rem"}}),notification__item_unread:{background:r.A.noti_bg_unread,border:"1px solid ".concat(r.A.noti_border_unread),"& $notification__item__title":{color:r.A.noti_title_unread},"& $notification__item__content":{color:r.A.noti_txt_unread},"& $notification__item__titleWrapper":(0,a._)({},null===r.A||void 0===r.A?void 0:r.A.notification__item__titleWrapper_unread)}
1,notification__item__titleWrapper:(0,a._)({display:"flex",justifyContent:"space-between",alignItems:"flex-end"},null===r.A||void 0===r.A?void 0:r.A.notification__item__titleWrapper),notification__item__title:(0,i._)((0,a._)({fontSize:"1.1333333rem",color:r.A.noti_title},l.A.fontBold),{display:"-webkit-box",lineClamp:2,boxOrient:"vertical",whiteSpace:"normal",overflow:"hidden",[s.Ay.desktop]:{fontSize:8/7+"rem"}}),notification__item__date:{textAlign:"right"},notification__item__line:{borderColor:r.A.noti_line},notification__item__content:{display:"-webkit-box",lineClamp:3,boxOrient:"vertical",whiteSpace:"normal",overflow:"hidden",[s.Ay.mobile]:{fontSize:12/14+"rem"}},notification__memo:(0,a._)({width:"100%",height:44/14+"rem",fontSize:8/7+"rem",textTransform:"uppercase",display:"flex",justifyContent:"center",alignItems:"center",gap:".5rem",borderRadius:8,marginBottom:"1rem",cursor:"pointer"},r.A.notification__memo),notification__memoIc:(0,a._)({width:9/7+"rem",height:10/7+"rem",borderRadius:"50%"},r.A.notification__memoIc)}))},21360(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>eZ});var a=n(74848),i=n(96540),o=n(56347),r=n(84606),s=n(86552),l=n(18742),c=n(62193),d=n.n(c),_=n(81126),u=n(59545),m=n(51953),p=n(57423),g=n(71893),h=n(55456),f=n(41728);let b=e=>(0,a.jsxs)(f.A,(0,h._)((0,g._)({viewBox:"0 0 30 26"},e),{children:[(0,a.jsx)("path",{d:"M26.8507 6.9549H25.1026C23.6158 3.4246 20.3419 0.859075 16.5729 0.369092C12.8378 -0.128847 9.168 1.30878 6.76711 4.20272C6.06131 5.05356 5.50145 5.97855 5.09153 6.9549H3.3725C1.99196 6.9549 0.868896 8.07796 0.868896 9.4585V12.7966C0.868896 14.1772 1.99196 15.3002 3.3725 15.3002H6.79971L6.44114 14.2057C5.39713 11.0175 5.98476 7.76006 8.05234 5.2687C10.0841 2.81967 13.1867 1.60782 16.3561 2.02347C19.708 2.4601 22.6175 4.83057 23.7702 8.06405L23.7772 8.0828C23.9631 8.57668 24.0935 9.08441 24.1684 9.60683C24.4186 11.1675 24.276 12.7494 23.7569 14.1813L23.7532 14.1913C22.4646 17.8498 18.9989 20.3074 15.1279 20.3074C13.7384 20.3074 12.608 21.4305 12.608 22.8111C12.608 24.1916 13.7311 25.3147 15.1116 25.3147C16.4922 25.3147 17.6152 24.1916 17.6152 22.8111V21.6855C20.9475 20.8935 23.7464 18.5314 25.0917 15.3002H26.8507C28.2313 15.3002 29.3543 14.1771 29.3543 12.7966V9.45845C29.3543 8.07791 28.2313 6.9549 26.8507 6.9549Z"}),(0,a.jsx)("path",{d:"M7.60083 16.9692V18.6383H15.1116C19.2533 18.6383 22.6224 15.2692 22.6224 11.1275C22.6224 6.98583 19.2533 3.6167 15.1116 3.6167C10.97 3.6167 7.60083 6.98583 7.60083 11.1275C7.60083 12.8162 8.16804 14.4477 9.20469 15.7672C9.0034 16.4705 8.3612 16.9692 7.60083 16.9692ZM17.6152 10.293H19.2843V11.962H17.6152V10.293ZM14.2771 10.293H15.9462V11.962H14.2771V10.293ZM10.939 10.293H12.608V11.962H10.939V10.293Z"})]}));var v=n(27523),x=n(93796),A=n(67729),C=n(97813);let j=(0,x.default)(()=>({contactDesktop:{background:A.A.contact_desktop_bg,color:A.A.contact_desktop_txt,position:"fixed",right:0,top:"14em",zIndex:1e3,overflow:"hidden",display:"grid",gridTemplateColumns:"4rem 16rem",width:"4rem",minHeight:"16rem",borderRadius:".75rem 0 0 .75rem",transition:"width ease-in-out .5s","&:hover":{width:"20rem"}},contactDesktop__header:(0,h._)((0,g._)({position:"relative",padding:"0 1rem",fontSize:"1.5rem"},C.A.fontBold),{color:(null===A.A||void 0===A.A?void 0:A.A.contact_desktop_header_txt)||A.A.gradient_title,textTransform:"uppercase",background:A.A.contact_title_bg,width:"100%"}),contactDesktop__header__content:{transform:"translate(-50%, -50%) rotate(-90deg)",transformOrigin:"center",width:"max-content",top:"50%",left:"50%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},contactDesktop__header__icon:{fontSize:"2.5rem",transform:"rotate(90deg)",margin:"0 0 0 1rem"},contactDesktop__list:{display:"flex",alignItems:"center",justifyContent:"space-around",flexFlow:"wrap",flexDirection:"column",borderRadius:".75em",padding:"1em"},contactDesktop__row:{display:"grid",gridTemplateColumns:"3rem auto",gridGap:"1rem",alignItems:"center",width:"100%",height:"3em",borderRadius:"1.5em",margin:".5em 0","&:first-child":{marginTop:"0"},"&:last-child":{marginBottom:"0"}},contactDesktop__icon:{width:"3rem",height:"3rem",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:".75rem",background:A.A.brand_bg,"& svg":{fontSize:"2rem"}},contactDesktop__info:{width:"100%",margin:"0 0 .2rem",opacity:1,wordBreak:"normal",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxHeight:"3rem"}})),k=(0,m.A)(()=>{let e=j(),t=(0,p.A)(),n=(0,i.useMemo)(()=>(0,v.A)(t),[t]);return d()(n)?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("div",{className:e.contactDesktop,children:[(0,a.jsx)("div",{className:e.contactDesktop__header,children:(0,a.jsxs)("div",{className:e.contactDesktop__header__content,children:[(0,a.jsx)(u.A,{i18nKey:"ContactUs"}),(0,a.jsx)(b,{className:e.contactDesktop__header__icon})]})}),(0,a.jsx)("div",{className:e.contactDesktop__list,children:(0,a.jsx)(_.A,{contactList:n,className:e.contactDesktop__row,children:t=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:e.contactDesktop__icon,children:t.icon}),(0,a.jsx)("div",{className:e.contactDesktop__info,children:t.info})]})})})]})});var w=n(50278),y=n(1281),N=n(68753),L=n(54625),I=n(20053),D=n(55378),R=n.n(D),E=n(40292),M=n(30529),S=n(56165),z=n(92127);let B=(0,x.default)(()=>({navbarDesktop__headerTop:(0,h._)((0,g._)({display:"flex",justifyContent:"space-between",alignItems:"center",height:70,padding:"0 1em",background:"linear-gradient(to right, ".concat(A.A.header_bg,"88, ").concat(A.A.header_bg," 20%, ").concat(A.A.header_bg," 80%, ").concat(A.A.header_bg,"88)"),position:"relative"},A.A.navbarDesktop__headerTop),{"&:before":(0,g._)({content:'" "',width:100,height:"100%",background:"linear-gradient(to right, ".concat(A.A.header_bg,"00, ").concat(A.A.header_bg,"88)"),position:"absolute",top:0,bottom:0,left:0,transform:"translateX(-100%)"},A.A.navbarDesktop__headerTop__pseudo),"&:after":(0,g._)({content:'" "',width:100,height:"100%",background:"linear-gradient(to right, ".concat(A.A.header_bg,"88, ").concat(A.A.header_bg,"00)"),position:"absolute",top:0,bottom:0,right:0,transform:"translateX(100%)"},A.A.navbarDesktop__headerTop__pseudo)}),navbarDesktop__wrap_logo:{display:"flex",justifyContent:"center"},navbarDesktop__pageLogo:{position:"relative",zIndex:2,padding:0,display:"flex",justifyContent:"center",alignItems:"center",alignSelf:"start",margin:"auto"},navbarDesktop__pageLogo__img:{height:140,width:308,objectFit:"contain",zIndex:2,padding:".5rem 0",cursor:"pointer"}
1,navbarDesktop__navbarContent:(0,g._)({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",height:53,overflow:"visible",padding:"0 1em",background:"linear-gradient(to left, ".concat(A.A.navbar_desktop_bg,"00, ").concat(A.A.navbar_desktop_bg," 20%, ").concat(A.A.navbar_desktop_bg," 80%, ").concat(A.A.navbar_desktop_bg,"00)"),color:A.A.navbar_desktop_txt},null===A.A||void 0===A.A?void 0:A.A.navbar_desktop_bg2),navbarDesktop__listNav:{zIndex:2,display:"flex",alignItems:"center",justifyContent:"space-between",listStyle:"none",padding:0,flex:1},navbarDesktop__navItem:{display:"flex",alignItems:"center",textTransform:"uppercase",height:27,borderRadius:14,padding:"0 1em .2em",position:"relative","&:hover $navbar__group__wrap":{transform:"translateX(0) translateY(0%)",visibility:"visible"},"& a":{textDecoration:"none",whiteSpace:"pre"}},navbarDesktop__navItemActive:(0,h._)((0,g._)({},C.A.fontBold),{color:A.A.navbar_desktop_txt_active,background:A.A.navbar_desktop_bg_active,transition:"all 0.3s ease-in-out"}),navbar__group__wrap:{top:"1.5rem",left:"-0.1rem",position:"absolute",zIndex:10,transition:"transform 0.3s, opacity 0.3s",transform:"translateX(0) translateY(30%)",visibility:"hidden"},navbar__group:(0,h._)((0,g._)({display:"flex",flexDirection:"column",padding:0,borderRadius:"10px"},A.A.navbar__group),{marginTop:"1rem"}),navbar__popper__item:(0,h._)((0,g._)({width:"100%",display:"flex",justifyContent:"center",padding:"1rem",cursor:"pointer",fontSize:"12px",fontWeight:600,overflow:"hidden"},A.A.navbar__popper__item),{"&:hover":(0,h._)((0,g._)({},A.A.navbar__popper__active),{fontWeight:700}),"&:first-child":{borderRadius:"10px 10px 0px 0px"},"&:last-child":{borderRadius:"0px 0px 10px 10px"}}),navbar__popper__active:(0,g._)({fontWeight:700},A.A.navbar__popper__active)})),T=()=>{let e=B(),t=(0,o.useLocation)(),n=(0,M.A)(),{linkMembershipPage:r}=(0,z.A)(),{linkBonusBattlesPage:s,enabled:l}=(0,S.A)(),c=(0,i.useMemo)(()=>[{name:"headerHome",path:"/"},{name:"Sports",path:["/sports"]},{name:"headerSlot",path:["/slot"]},{name:"Casino",path:["/casino"]},{name:"headerTogel",path:["/togel"]},{name:"Fishing Game",path:["/tembak-ikan"]},...E.Es?[{name:"Live Game",path:["/live-game"]}]:[],{name:"Others",path:["/others"]},...E.Es?[]:[{name:"Mobile",path:["/mobile"]}],{name:"WAP",path:["/wap"],linkProps:{target:"_blank",rel:"noopener noreferrer"}},{name:"headerPromo",path:["/promo",r,s],subMenu:[{name:"headerPromo",path:"/promo"},{name:"membership",path:r},...l?[{name:"Bonus Battles",path:s}]:[]]},...E.Es?[{name:"Guide",path:["/guide","/mobile"],subMenu:[{name:"Guide",path:"/guide"},{name:"Mobile",path:"/mobile"}]}]:[{name:"Guide",path:["/guide"]}]],[l,s,r]),d=(0,i.useCallback)(i=>(0,a.jsxs)("div",{className:(0,I.default)({[e.navbarDesktop__navItem]:!0,[e.navbarDesktop__navItemActive]:n(i.path)}),children:[(0,a.jsx)(L.N_,(0,h._)((0,g._)({to:i.path[0]},i.linkProps),{children:(0,a.jsx)(u.A,{i18nKey:i.name})})),(0,a.jsx)("div",{className:e.navbar__group__wrap,children:(null==i?void 0:i.subMenu)&&(0,a.jsx)("div",{className:e.navbar__group,children:null==i?void 0:i.subMenu.map(n=>(0,a.jsx)(L.N_,{to:n.path,className:(0,I.default)(e.navbar__popper__item,{[e.navbar__popper__active]:t.pathname.includes(n.path)}),children:(0,a.jsx)(u.A,{i18nKey:n.name})},n.path))})})]},i.path),[e,n,t.pathname]);return(0,a.jsx)("nav",{className:e.navbarDesktop__navbarContent,children:(0,a.jsx)("div",{className:e.navbarDesktop__listNav,children:R()(c,d)})})};var P=n(20125),H=n(30440),F=n(46164),V=n(49963),W=n(43292),K=n(78896),Z=n(84630),O=n(19008),Y=n(3148),q=n(59109),G=n(6293),X=n(58156),$=n.n(X),U=n(82758),J=n(40913),Q=n(90972),ee=n(57418),et=n(69894),en=n(44868),ea=n(84943),ei=n(23972),eo=n(92982),er=n(11492),es=n(87232),el=n(38338),ec=n(93108),ed=n(72045),e_=n(78992);let eu=(0,x.default)(()=>({notificationNavbar__item:(0,g._)({display:"flex",position:"relative",height:35,width:45,cursor:"pointer",padding:".5rem",borderRadius:18,alignItems:"center"},A.A.notificationNavbar__item),notificationNavbar__notiIc:(0,g._)({width:"100%",height:"100%"},A.A.notificationNavbar__notiIc),notificationNavbar__notiDot:(0,g._)({position:"absolute",minWidth:"1.44rem",height:"1.44rem",padding:"0px 1px 1px",top:"-.2rem",right:"-.5rem",borderRadius:".72rem",fontSize:".8rem",display:"flex",justifyContent:"center",alignItems:"center"},A.A.notificationNavbar__notiDot),notificationNavbar__list:(0,g._)({position:"absolute",top:"calc(100% + 10px)",width:380,padding:14,borderRadius:12,right:0,zIndex:9999,cursor:"auto"},A.A.notificationNavbar__list),notificationNavbar__seeAll:(0,g._)({textAlign:"center",margin:"1rem auto 0",display:"block",fontSize:8/7+"rem",fontWeight:700},C.A.fontBold,A.A.notificationNavbar__seeAll)})),em=(0,es.A)({page_size:3,isNavbar:!0})((0,i.memo)(e=>{let t=eu(),[n,o]=(0,i.useState)(!1),r=(0,i.useRef)(),s=(0,el.A)(),l=(0,i.useCallback)(()=>{o(()=>!1)},[]),c=(0,i.useCallback)(()=>{o(e=>!e)},[]);return(0,ec.A)(r,l),(0,a.jsxs)("div",{ref:r,className:t.notificationNavbar__item,onClick:c,children:[(0,a.jsx)(ed.A,{className:t.notificationNavbar__notiIc}),s>0&&(0,a.jsx)("div",{className:t.notificationNavbar__notiDot,children:s}),n&&(0,a.jsxs)("div",{className:t.notificationNavbar__list,children:[(0,a.jsx)(e_.A,(0,g._)({},e)),(0,a.jsx)(L.N_,{to:"/notification",children:(0,a.jsx)(u.A,{i18nKey:"See All",className:t.notificationNavbar__seeAll})})]})]})}));var ep=n(39822),eg=n(92134);let eh=(0,x.default)(()=>({afterLogin__content:{display:"flex",gap:15},afterLogin__item:(0,h._)((0,g._)({display:"flex",alignItems:"center",color:A.A.header_name_txt,textDecoration:"none",minWidth:150,height:35,background:A.A.header_name_bg,border:"1px solid ".concat(A.A.header_name_border),borderRadius:".75rem"},C.A.fontBold),{zIndex:12,position:"relative"}),afterLogin__item_open:{borderBottomLeftRadius:0,borderBottomRightRadius:0,background:(null===A.A||void 0===A.A?void 0:A.A.header_name_bg_active)||A.A.input_bg,color:A.A.input_txt},afterLogin__textItem:{textTransform:"uppercase",paddingRight:".5rem"},afterLogin__logoutBtn:{width:40,height:35,border:"none",boxShadow:"none",padding:0,borderRadius:17,background:A.A.logout_bg,color:A.A.logout_ic,display:"flex",justifyContent:"center",alignItems:"center"},afterLogin__logoutBtn__icon:{fontSize:"2em"},afterLogin__usernameIcon:{margin:".5em",fontSize:"1em",fill:A.A.header_name_ic,width:"1.6rem",he
1ight:"1.6rem"},afterLogin__rankIcon:{margin:".5em",fontSize:"1em",fill:A.A.header_name_ic,width:"1.8rem",height:"1.8rem"},afterLogin__textIcon:{margin:"0 .5em .1em",fontSize:"1.3em",color:A.A.header_idr_ic},afterLogin__popper:{width:150,zIndex:5,cursor:"pointer","& .MuiPaper-root":{transform:"translate(0, -1px) !important",background:(null===A.A||void 0===A.A?void 0:A.A.header_name_popper_bg)||A.A.input_bg,color:A.A.input_txt,borderRadius:"0 0 .75rem .75rem",border:"1px solid ".concat(A.A.header_name_border),borderTop:"none",overflow:"hidden"},"& .MuiList-root":{padding:0},"& .MuiMenuItem-root":{height:"auto",justifyContent:"center",padding:0,fontSize:"1em",background:"transparent","&:hover":{background:A.A.select_hover_bg,color:A.A.select_hover_txt}}},afterLogin__profileLink:{display:"flex",justifyContent:"center",alignItems:"center",padding:".75rem 0",width:"100%",height:"100%"},afterLogin__profileLink_active:{background:A.A.select_hover_bg,color:A.A.select_hover_txt},afterLogin__unreadIcon:(0,g._)((0,h._)((0,g._)({fontSize:".8em",width:"1.8em",height:"1.8em",borderRadius:"50%",color:A.A.white,background:A.A.danger},C.A.fontBold),{display:"inline-flex",justifyContent:"center",alignItems:"center",marginLeft:".5em",paddingBottom:".1em"}),A.A.afterLogin__unreadIcon),headerTopAfterLogin__smarticoPoints:{borderRadius:"0.75rem",height:35,width:135,border:"1px solid #000"},headerTopAfterLogin__smarticoPoints__text:{top:17,left:41,fontSize:14}})),ef=(0,et.A)((0,ee.A)()((0,Q.A)((0,i.forwardRef)((e,t)=>{let{handleLogout:n,user:r,displayName:s,memoUnread:l}=e,c=eh(),d=(0,i.useRef)(null),[_,u]=(0,i.useState)(!1),m=(0,o.useLocation)(),{showTier:p,currentBadge:f}=(0,en.A)(),b=(0,i.useCallback)(()=>{u(!0)},[]),v=(0,i.useCallback)(()=>{u(!1)},[]),x=(0,i.useCallback)(e=>{d.current&&d.current.contains(e.target)||u(!1)},[d]),A=(0,i.useCallback)(e=>{"Tab"===e.key&&(e.preventDefault(),u(!1))},[]),C=(0,i.useRef)(_);(0,i.useEffect)(()=>{!0===C.current&&!1===_&&d.current.focus(),C.current=_},[_]),(0,i.useImperativeHandle)(t,()=>({reset:()=>{}}));let j=(0,i.useMemo)(()=>[{label:"Profile",link:["/profile","/profile/update-contact-info"]},{label:"TransactionHistory",link:["/profile/transaction-history"]},{label:"Deposit",link:["/profile/deposit","/profile/new-payment-account"]},{label:"Withdraw",link:["/profile/withdraw"]},{label:"Referral",link:["/profile/referral"]},{label:"Bonus Tracking",link:["/profile/bonus"]},{label:"Offer",link:["/profile/offer"]},{label:"Memo",unread:l,link:["/profile/memo"]}],[l]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:c.afterLogin__content,children:[(0,a.jsx)(J.A,{className:c.headerTopAfterLogin__smarticoPoints,classNamePoint:c.headerTopAfterLogin__smarticoPoints__text}),(0,a.jsx)(ep.A,{}),(0,a.jsxs)("div",{ref:d,"aria-controls":_?"menu-list-grow":"","aria-haspopup":"true",onClick:b,onMouseEnter:b,onMouseLeave:v,style:{cursor:"pointer",position:"relative"},children:[(0,a.jsxs)("div",{className:(0,I.default)({[c.afterLogin__item]:!0,[c.afterLogin__item_open]:_}),children:[p?(0,a.jsx)("div",{className:c.afterLogin__rankIcon,style:{background:'url("'.concat(f,'") center 0rem / 1.8rem 1.8rem no-repeat')}}):(0,a.jsx)(eo.A,{className:c.afterLogin__usernameIcon}),(0,a.jsx)("span",{className:c.afterLogin__textItem,children:s})]}),(0,a.jsx)(eg.A,{}),(0,a.jsx)(q.A,{className:c.afterLogin__popper,open:_,anchorEl:d.current,transition:!0,disablePortal:!0,children:e=>{let{TransitionProps:t,placement:n}=e;return(0,a.jsx)(K.A,(0,h._)((0,g._)({},t),{style:{transformOrigin:"bottom"===n?"center top":"center bottom"},children:(0,a.jsx)(Y.A,{children:(0,a.jsx)(W.A,{onClickAway:x,children:(0,a.jsx)(O.A,{autoFocusItem:_,id:"menu-list-grow",onKeyDown:A,children:j.map(e=>(0,a.jsx)(Z.A,{onClick:x,children:(0,a.jsxs)(L.N_,{to:e.link[0],className:(0,I.default)({[c.afterLogin__profileLink]:!0,[c.afterLogin__profileLink_active]:(0,ea.A)(e.link,m.pathname)}),children:[(0,ei.T)(e.label),!!e.unread&&(0,a.jsx)("span",{className:c.afterLogin__unreadIcon,children:e.unread})]})},e.label))})})})}))}})]}),(0,a.jsxs)("div",{className:c.afterLogin__item,children:[(0,a.jsx)("div",{className:c.afterLogin__textIcon,children:"IDR"}),(0,a.jsx)("span",{className:c.afterLogin__textItem,children:(0,a.jsx)(U.A,{value:$()(r,"credit","")})})]}),(0,a.jsx)(em,{}),(0,a.jsx)(er.A,{onClick:n,className:c.afterLogin__logoutBtn,children:(0,a.jsx)(G.default,{className:c.afterLogin__logoutBtn__icon})})]})})}))));var eb=n(18492),ev=n(82788),ex=n(16923),eA=n(99624),eC=n.n(eA),ej=n(90311),ek=n(22266),ew=n(71543);let ey=(0,x.default)(()=>({loginForm:{display:"flex",alignItems:"center",gap:10},inputItem:{position:"relative",display:"grid",gridGap:".25em",alignItems:"center",height:36,borderRadius:".75em",backgroundColor:A.A.input_bg,width:150,padding:"0 5px 0 9px"},inputItem__username:{gridTemplateColumns:"1.25em auto"},inputItem__password:{position:"relative",gridTemplateColumns:"1.25em auto auto"},inputItem__captcha:{padding:"0 .5em 0 0",gridTemplateColumns:"auto auto",width:160},eyeIcon:{cursor:"pointer",fontSize:"1.2em",color:A.A.input_ic},inputLogin:{outline:"none",width:"100%",border:"none",lineHeight:"1em",background:"transparent",color:A.A.input_txt,"&::placeholder":{color:A.A.header_placeholder||A.A.placeholder}},"@keyframes hoverButton":{"0%":{filter:"brightness(1)"},"50%":{filter:"brightness(2)"},"100%":{filter:"brightness(1)"}},actionBtn:{height:"36px",width:"125px",maxWidth:"calc(50% - 8px)",padding:"0 .5em .1em",background:A.A.button_login,color:A.A.button_login_txt,"&:hover":{animationName:"$hoverButton",animationDuration:".25s",animationIterationCount:1}},registerBtn:{background:A.A.button_register||A.A.button_secondary,color:A.A.button_register_txt},fieldError:{position:"absolute",top:"100%",left:9,fontSize:".75em",color:A.A.danger,width:"max-content"},captcha__wrapper:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center",padding:"0 .3em 0 .7em"},login__icon:{fontSize:"1em",color:A.A.input_ic}})),eN=(0,ee.A)()((0,ej.A)((0,i.forwardRef)((e,t)=>{let{userInput:n={},handleSubmit:o,handleInputChange:r,handleKeyPress:s,handleChangeCaptchaId:l,renderLoginButtonLabel:c,disableLoginButton:d,isShowPassword:_,onToggleShowPassword:m,onOpenModalRegister:p}=e,g=ey(),{t:h}=(0,eb.B)(),f=(0,i.useRef)();return(0,i.useImperativeHandle)(t,()=>({reset:()=>{var e;(null==f||null==(e=f.current)?void 0:e.reset)&&f.current.reset()}})),(0,a.jsxs)("form",{onSubmit:o,className:g.loginForm,noValidate:!0,children:[(0,a.jsxs)("div",{className:(0,I.default)(g.inputItem,g.inputItem__username),children:[(0,a.jsx)(eo.A,{className:g.login__icon}),(0,a.jsx)("div",{children:(0,a.jsx)("input",{placeholder:eC()("".concat(h("Username"))),type:"text",name:"username",className:g.inputLogin,value:n.username,onChange:r,onKeyPress:s,required:!0})})]}),(0,a.jsxs)("div",{className:(0,I.default)(g.inputItem,g.inputItem__password),children:[(0,a.jsx)(ek.A,{className:g.login__icon}),(0,a.jsx)("input",{className:g.inputLogin,placeholder:eC()("".concat(h("Password"))),type:_?"password":"text",autoCapitalize:"off",name:"password",value:n.password,onChange:r,onKeyPress:s,required:!0}),_?(0,a.jsx)(ev.default,{className:g.eyeIcon,onClick:m}):(0,a.jsx)(ex.default,{className:g.eyeIcon,onClick:m}),(0,a.jsx)("div",{className:g.fieldError,children:(0,a.jsx)(L.N_,{to:"/forgot-password",tabIndex:-1,
1children:(0,a.jsx)(u.A,{i18nKey:"Forgot Password?"})})})]}),(0,a.jsxs)("div",{className:(0,I.default)(g.inputItem,g.inputItem__captcha),children:[(0,a.jsx)("div",{className:g.captcha__wrapper,children:(0,a.jsx)(ew.A,{ref:f,height:25,width:57,onChangeId:l,color:A.A.input_ic})}),(0,a.jsx)("input",{className:g.inputLogin,placeholder:eC()("".concat(h("Captcha"))),type:"text",name:"captcha",value:n.captcha||"",onChange:r,onKeyPress:s,required:!0,pattern:"[0-9]*",inputMode:"decimal"})]}),(0,a.jsx)(er.A,{type:"submit",className:g.actionBtn,disable:d,children:c()}),(0,a.jsx)(er.A,{className:(0,I.default)(g.actionBtn,g.registerBtn),onClick:p,children:"".concat(h("Register"))}),(0,a.jsx)(em,{})]})}))),eL=()=>{let e=B(),t=(0,o.useHistory)(),n=(0,P.d)(e=>e.auth),r=(0,P.d)(e=>e.base.logo),s=(0,i.useCallback)(()=>n.token?(0,a.jsx)(ef,{}):(0,a.jsx)(eN,{}),[n.token]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:e.navbarDesktop__headerTop,children:[(0,a.jsx)(V.A,{}),s()]}),(0,a.jsxs)("div",{className:e.navbarDesktop__pageLogo,children:[(0,a.jsx)(F.A,{}),(0,a.jsx)("div",{className:e.navbarDesktop__wrap_logo,children:(0,a.jsx)(H.A,{className:e.navbarDesktop__pageLogo__img,src:r,alt:"logo",onClick:()=>t.push("/")})})]})]})},eI=()=>(0,a.jsxs)(N.A,{children:[(0,a.jsx)(eL,{}),(0,a.jsx)(T,{})]});var eD=n(64432),eR=n(29087),eE=n(25809),eM=n(6151),eS=n(96539),ez=n(61607),eB=n(70092),eT=n(15054),eP=n(44346),eH=n(11446),eF=n(91853),eV=n(67452);let eW=(0,eM.A)()(e=>{let{homeData:t}=e,n=(0,eV.I)(),o=(0,i.useMemo)(()=>"lottery-tmga4"===window.template,[]),r=(0,i.useMemo)(()=>o?(0,a.jsxs)(N.A,{className:n.home__quickMenu__block,children:[(0,a.jsx)("div",{className:n.home__downloadApp,children:(0,a.jsx)(ez.A,{})}),(0,a.jsx)("div",{className:n.home__quickMenu,children:(0,a.jsx)(eP.A,{})})]}):(0,a.jsxs)(N.A,{className:n.home__togel__block,children:[(0,a.jsx)("div",{className:n.home__quickMenu,children:(0,a.jsx)(eP.A,{})}),(0,a.jsxs)("div",{className:n.home__listTogel,children:[(0,a.jsx)(ez.A,{}),(0,a.jsx)(eB.A,{})]})]}),[n,o]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eH.A,{data:t.popup_banner}),(0,a.jsx)(eF.A,{}),(0,a.jsx)(N.A,{children:(0,a.jsx)(eS.A,{width:window.bannerSize,image:t.slider_banners_desktop||window.firstBanner,className:n.home__banner,shadow:!0})}),r,(0,a.jsx)(eT.A,{})]})}),eK=i.lazy(()=>(0,l.A)(()=>Promise.all([n.e("97462"),n.e("41591"),n.e("41974"),n.e("50554"),n.e("23648")]).then(n.bind(n,69859)))),eZ=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A,{}),(0,a.jsx)(eE.A,{}),(0,a.jsx)(eI,{}),(0,a.jsx)(k,{}),(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(s.A,{skeleton:!0}),children:(0,a.jsxs)(o.Switch,{children:[(0,a.jsx)(o.Route,{exact:!0,path:"/",component:eW}),(0,a.jsx)(o.Route,{path:"*",component:eK})]})}),(0,a.jsx)(eD.A,{}),(0,a.jsx)(eR.A,{}),(0,a.jsx)(y.A,{}),(0,a.jsx)(w.A,{})]})}}]);
2//# sourceMappingURL=15568.f977d988.js.map

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.