"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1876],{71029:function(e,t,n){n.d(t,{f:function(){return i}}),n(67294);var r=n(85893),i=function(e){var t=e.color,n=void 0===t?"#fff":t,i=e.width,o=void 0===i?24:i,a=e.height,c=void 0===a?24:a,s=e.className,l=e.onClick;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:c,className:s,onClick:l,viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fill:n,d:"M2761.352,212.05a10,10,0,1,0,10,10A10,10,0,0,0,2761.352,212.05Zm0,18.765a8.765,8.765,0,1,1,8.765-8.765A8.775,8.775,0,0,1,2761.352,230.815Zm5.528-4.474a7.1,7.1,0,0,1-.631.709,7,7,0,0,1-10.425-.709,6.93,6.93,0,0,1,3.955-2.575,4.5,4.5,0,1,1,3.146,0A6.931,6.931,0,0,1,2766.88,226.341Z",transform:"translate(-2751.352 -212.05)"})})};t.Z=i},35238:function(e,t,n){n.d(t,{Z:function(){return eV}});var r=n(59499),i=n(86260),o=n(89061),a=n(98666),c=n(18872),s=n(55980),l=n(81986),u=function(){var e=(0,l.t)().palette;return{subToolbarContainer:(0,c.iv)({width:"100%",height:"".concat(s.Z.bottomAppBar.height,"px"),padding:"0 8px",display:"flex",justifyContent:"center",position:"relative",backgroundColor:e.neutral900,"& p":{fontSize:"10px",fontWeight:700}})}},d=n(24860),p=n(85893),f=function(){var e=u();return(0,p.jsx)("div",{className:e.subToolbarContainer,children:(0,p.jsx)(d.Z,{})})},h=n(19166),m=n(39232),g=n(30225),x=n(27210),v=n(5752),b=n(84354),j=n(42192),w=n(2666),y=n(10803),Z=n(67294),C=n(2734),O=function(){return{vipSection:(0,c.iv)({marginRight:8,cursor:"pointer",display:"flex"}),mainToolbarContainer:(0,c.iv)({minHeight:48,position:"relative",alignItems:"center",display:"flex",paddingLeft:16,paddingRight:16,top:0,justifyContent:"space-between","& .leftSection":{width:"33vw",display:"flex",justifyContent:"flex-start"},"& .midSection":{width:"34vw",display:"flex",justifyContent:"center",textAlign:"center",height:36},"& .rightSection":{width:"33vw",display:"flex",justifyContent:"flex-end","& .containerWallet":{display:"flex",alignItems:"center","& .walletSection":{display:"flex",justifyContent:"flex-end",alignItems:"baseline",marginLeft:-4,width:"calc(100% + 4px)","& > *":{marginLeft:4},"& .fade":{opacity:.5,marginTop:4},"& p":{display:"flex","& .realMoney":{maxWidth:"calc(33vw - 55px)",textOverflow:"ellipsis",marginLeft:4,overflow:"hidden"}},"& > h6":{fontSize:13,fontWeight:700}}}}})}},N=n(75222),k=n(843),P=n(10312),_=n(20108),S=n(326),I=function(e){var t=e.toggleLeftDrawerOpen,n=(0,w.Eu)().isLoggedIn,r=(0,j.ZP)().handlePush,i=(0,N.q)(),o=i.updateUserWalletAmount,a=i.userProfile,c=i.isWalletFetching,s=i.userWallet,u=(0,Z.useState)(!1),d=u[0],I=u[1],L=(0,y.tj)().vipLevelDetail,D=(0,l.t)().palette,B=24;(0,Z.useEffect)(function(){L&&I(L.levelup_setting.levelup_status)},[L]);var E=O();return(0,p.jsxs)(k.Z,{children:[(0,p.jsxs)(g.Z,{className:E.mainToolbarContainer,children:[(0,p.jsxs)(g.Z,{className:"leftSection",children:[(0,p.jsx)(P.Z,{color:"inherit","aria-label":"open drawer",onClick:t,children:(0,p.jsx)(S.Z,{})}),n&&(0,p.jsx)(C.Z,{})]}),(0,p.jsx)(g.Z,{className:"midSection",children:(0,p.jsx)(m.Z,{})}),(0,p.jsx)(g.Z,{className:"rightSection",children:n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{"data-testid":"vip-nav",className:E.vipSection,onClick:function(){return d&&r("/my-vip")},children:(0,p.jsx)(x.Z,{src:null==a?void 0:a.playerLevelIcon,alt:null==a?void 0:a.playerLevel,width:B,height:B,layout:"fixed"})}),(0,p.jsx)(g.Z,{className:"containerWallet",onClick:o,children:c?(0,p.jsx)(_.Z,{color:D.secondaryDefault,size:24}):(0,p.jsx)(g.Z,{className:"walletSection",children:(0,p.jsx)(v.Z,{size:"sm",weight:"bold",children:(0,b.KP)(null==s?void 0:s.balanceAmount)})})})]})})]}),(0,p.jsx)(f,{}),(0,p.jsx)(h.Z,{})]})},L=n(76395),D=n(31475),B=n(1922),E=n(5152),T=n.n(E),A=T()(function(){return n.e(1464).then(n.bind(n,31464)).then(function(e){return e.TogelIconActive})},{ssr:!1,loadableGenerated:{webpack:function(){return[31464]}}}),z=T()(function(){return n.e(9083).then(n.bind(n,59083))},{ssr:!1,loadableGenerated:{webpack:function(){return[59083]}}}),M=T()(function(){return n.e(1394).then(n.bind(n,81394))},{ssr:!1,loadableGenerated:{webpack:function(){return[81394]}}}),W=T()(function(){return n.e(8196).then(n.bind(n,8196))},{ssr:!1,loadableGenerated:{webpack:function(){return[8196]}}}),F=T()(function(){return n.e(4829).then(n.bind(n,64829))},{ssr:!1,loadableGenerated:{webpack:function(){return[64829]}}}),R=T()(function(){return n.e(7479).then(n.bind(n,27479))},{ssr:!1,loadableGenerated:{webpack:function(){return[27479]}}}),G=T()(function(){return n.e(6496).then(n.bind(n,66496))},{ssr:!1,loadableGenerated:{webpack:function(){return[66496]}}}),H=function(e){var t=e.gameIconSize,n=void 0===t?40:t,r=e.toggleIsOpen,i=(0,B.$G)("common").t,o=(0,j.ZP)(),a=o.handlePush,c=o.handleHardPush,s=(0,w.Eu)().isLoggedIn;return(0,p.jsxs)(g.Z,{className:"flex flex-col -mt-5",children:[(0,p.jsxs)(g.Z,{className:"flex flex-row flex-nowrap items-center w-full mt-5",onClick:function(){return a("/slot-game").then(r)},children:[(0,p.jsx)(z,{width:n,height:n}),(0,p.jsx)(v.Z,{size:"sm",weight:"medium",className:"ml-2.5 whitespace-nowrap",children:i("slotGame")})]}),(0,p.jsxs)(g.Z,{className:"flex flex-row flex-nowrap items-center w-full mt-5",onClick:function(){return a("/live-casino").then(r)},children:[(0,p.jsx)(R,{width:n,height:n}),(0,p.jsx)(v.Z,{size:"sm",weight:"medium",className:"ml-2.5 whitespace-nowrap",children:i("liveCasino")})]}),(0,p.jsxs)(g.Z,{className:"flex flex-row flex-nowrap items-center w-full mt-5",onClick:function(){return c("/togel/veg")},children:[(0,p.jsx)(A,{width:n,height:n}),(0,p.jsx)(v.Z,{size:"sm",weight:"medium",className:"ml-2.5 whitespace-nowrap",children:i("togel")})]}),(0,p.jsxs)(g.Z,{className:"flex flex-row flex-nowrap items-center w-full mt-5",onClick:function(){return a("/sportsbook").then(r)},children:[(0,p.jsx)(W,{width:n,height:n}),(0,p.jsx)(v.Z,{size:"sm",weight:"medium",className:"ml-2.5 whitespace-nowrap",children:i("sportbook")})]}),(0,p.jsxs)(g.Z,{className:"flex flex-row flex-nowrap items-center w-full mt-5",onClick:function(){return a("/fish-hunter").then(r)},children:[(0,p.jsx)(M,{width:n,height:n}),(0,p.jsx)(v.Z,{size:"sm",weight:"medium",className:"ml-2.5 whitespace-nowrap",children:i("fishHunter")})]}),(0,p.jsxs)(g.Z,{className:"flex flex-row flex-nowrap items-center w-full mt-5",onClick:function(){return a("/promotion-all-event").then(r)},children:[(0,p.jsx)(F,{width:n,height:n}),(0,p.jsx)(v.Z,{size:"sm",weight:"medium",className:"ml-2.5 whitespace-nowrap",children:i("promotion")})]}),s&&(0,p.jsxs)(g.Z,{className:"flex flex-row flex-nowrap items-center w-full mt-5",onClick:function(){return a("/my-favorite").then(r)},children:[(0,p.jsx)(G,{width:n,height:n}),(0,p.jsx)(v.Z,{size:"sm",weight:"medium",className:"ml-2.5 whitespace-nowrap",children:i("favorite")})]})]})},V=function(e){var t=e.toggleIsOpen,n=(0,B.$G)("common").t;return(0,p.jsxs)(g.Z,{className:"gameNavigationSection",children:[(0,p.jsx)(v.Z,{size:"2xl",className:"h1",component:"div",children:n("game")}),(0,p.jsx)(H,{toggleIsOpen:t})]})},U=function(e){var t=e.t,n=e.toggleIsOpen,r=(0,j.ZP)().handlePush;return(0,p.jsxs)(g.Z,{className:"helpCenterSection",children:[(0,p.jsx)(v.Z,{size:"2xl",className:"h1",children:t("helpCenter")}),(0,p.jsx)(g.Z,{onClick:function(){return r("/help-center/contact-us").then(n)},children:(0,p.jsx)(v.Z,{size:"sm",component:"p",children:t("contactUs")})})]})},q=n(77191),$=function(e){return(0,q.Z)(e),(0,p.jsx)("div",{className:"logoSection",children:(0,p.jsx)(m.Z,{})})},X=n(50029),K=n(64687),Y=n.n(K),Q=n(13540),J=n(27438),ee=n(27681),et=function(e){var t=e.t,n=e.toggleIsOpen,r=(0,w.Eu)().handleLogout,i=(0,ee.$G)().postMessage;return(0,p.jsx)(g.Z,{className:"logoutSection",children:(0,p.jsx)(J.Z,{label:t("logout"),color:"borderless-neutral-1",startIcon:(0,p.jsx)(Q.Z,{}),onClick:(0,X.Z)(Y().mark(function e(){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r("empty",function(){n(),i({messageType:"LOGOUT"})});case 1:case"end":return e.stop()}},e)}))})})},en=n(94361),er=n(15526),ei=n(1849),eo=T()(function(){return n.e(8990).then(n.bind(n,28990))},{ssr:!1,loadableGenerated:{webpack:function(){return[28990]}}}),ea=function(e){(0,q.Z)(e);var t=(0,l.t)().palette,n=(0,j.ZP)().handlePush,r=(0,Z.useRef)(!0),i=(0,N.q)(),o=i.updateUserWalletAmount,a=i.isWalletFetching,c=i.userPermission,s=i.userWallet,u=i.userProfile,d=function(){var e=(0,X.Z)(Y().mark(function e(){return Y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}},e,null,[[0,5]])}));return function(){return e.apply(this,arguments)}}(),f=(0,Z.useMemo)(function(){switch(null==u?void 0:u.playerStatus){case"ACTIVE":return"green";case"SUSPENDED":return"red";case"LOCKED":return"warning";default:return"gray"}},[null==u?void 0:u.playerStatus]),h=(0,Z.useMemo)(function(){return null!=u&&u.playerStatus?(null==u?void 0:u.playerStatus.charAt(0).toUpperCase())+(null==u?void 0:u.playerStatus.slice(1).toLowerCase()):""},[null==u?void 0:u.playerStatus]);return(0,Z.useEffect)(function(){if(r.current){r.current=!1;return}},[]),(0,Z.useEffect)(function(){r.current||o()},[]),(0,p.jsxs)(g.Z,{className:(0,er.cn)("flex flex-col justify-center items-center space-y-2 bg-white-translucent-600 rounded-lg border border-white-translucent-700 p-2"),children:[(0,p.jsxs)(g.Z,{className:(0,er.cn)(["flex flex-col justify-center items-center",c.isAutoLevelup&&"pointer"]),onClick:function(){return c.isAutoLevelup&&n("/my-vip")},children:[(0,p.jsx)(x.Z,{src:null==u?void 0:u.playerLevelIcon,alt:null==u?void 0:u.playerLevel,width:82,height:82}),(0,p.jsx)(v.Z,{size:"lg",weight:"bold",className:(0,er.cn)("text-neutral-300"),children:null==u?void 0:u.playerLevel})]}),(0,p.jsx)(en.Z,{"data-testid":"chip-".concat(f),className:(0,er.cn)("px-4"),label:h,color:f}),(0,p.jsxs)(g.Z,{className:"flex flex-col justify-center items-center",children:[(0,p.jsx)(v.Z,{size:"lg",weight:"medium",children:null==u?void 0:u.username}),(0,p.jsx)(J.Z,{"data-testid":"refresh-icon",color:"borderless-neutral-1",className:"flex flex-row justify-between items-center space-x-1",startIcon:a?(0,p.jsx)(_.Z,{"data-testid":"circular-progress",className:"w-4 h-4 mt-1",color:t.neutralDefault}):(0,p.jsx)(eo,{className:"w-4 h-4 mt-1",color:t.neutralDefault}),endIcon:!a&&(0,p.jsx)(ei.Z,{className:"mt-1"}),onClick:d,children:(0,p.jsx)(v.Z,{size:"lg",weight:"bold",children:(0,b.KP)(null==s?void 0:s.balanceAmount)})})]})]})},ec=function(){return{containerDialog:(0,c.iv)({"& .dialogHeader":{rowGap:10,"& .containerSuccess":{"& >svg":{width:90,height:90}},"& .title":{textAlign:"center",textTransform:"capitalize",fontWeight:500,lineHeight:1.2}},"& .dialogBody":{padding:"0px 20px 20px",rowGap:10},"& p":{textAlign:"center"}})}},es=n(99777),el=n(67190),eu=function(e){var t=e.show,n=e.onClose,r=e.popupAmount,i=(0,B.$G)("common").t,o=ec();return(0,p.jsxs)(es.Z,{isOpen:t,variant:"small",removeClose:!0,className:o.containerDialog,onClose:n,children:[(0,p.jsxs)(es.Z.Header,{className:"dialogHeader",children:[(0,p.jsx)(el.Z,{className:"containerSuccess"}),(0,p.jsx)(v.Z,{size:"xl",className:"title",component:"p",children:i("RebateProvider.success.title")})]}),(0,p.jsxs)(es.Z.Body,{className:"dialogBody",children:[(0,p.jsx)(v.Z,{size:"sm",weight:"regular",className:"body",component:"p",children:i("RebateProvider.success.description",{success:r})}),(0,p.jsx)(J.Z,{label:i("RebateProvider.success.button.ok"),color:"primary",fullWidth:!0,onClick:n})]})]})},ed=n(83791),ep=T()(function(){return n.e(3125).then(n.bind(n,33125))},{ssr:!1,loadableGenerated:{webpack:function(){return[33125]}}}),ef=function(e){var t=e.toggleIsOpen,n=(0,j.ZP)().handlePush,r=32,i=(0,Z.useState)(!1),o=i[0],a=i[1],c=(0,y.tj)().vipLevelDetail;if((0,Z.useEffect)(function(){c&&a(c.levelup_setting.levelup_status)},[c]),o)return(0,p.jsx)(g.Z,{className:"vipNavigationSection",children:(0,p.jsx)(g.Z,{className:"vipMenuContainer",children:(0,p.jsxs)(g.Z,{className:"navigationContainer",onClick:function(){return n("/about-vip").then(function(){return t&&t()})},children:[(0,p.jsx)(ep,{width:r,height:r}),(0,p.jsx)(v.Z,{size:"sm",component:"p",children:"VIP CLUB"})]})})})},eh=function(){var e=(0,l.t)(),t=e.gradient,n=e.palette;return{drawerWrapper:(0,c.iv)({zIndex:s.Z.zIndex.appDrawer}),paper:(0,c.iv)({background:"".concat(t.primary," !important"),color:n.neutralDefault,minWidth:"225px",maxWidth:"60vw"}),container:(0,c.iv)({display:"flex",flexDirection:"column",justifyContent:"flex-start",width:"100%",height:"100%",padding:"12px 20px 4px",maxWidth:"250px",marginTop:-16,"& > *":{marginTop:16},"& .h1":{fontSize:18,color:n.secondaryDefault,fontWeight:500,paddingBottom:12,letterSpacing:"normal"},"& .logoSection":{minHeight:"32px","& > div":{position:"relative",width:"100%",height:"100%",minHeight:"32px","& > img":{width:"auto !important",maxWidth:"100%"}}},"& .gameNavigationSection":{marginTop:12},"& .vipNavigationSection":{borderTop:"1px solid rgba(255, 255, 255, 0.1)",paddingTop:16,"& .vipMenuContainer":{display:"flex",flexDirection:"column",marginTop:-20,"& > *":{marginTop:20},"& .navigationContainer":{display:"flex",flexDirection:"row",flexWrap:"nowrap",marginLeft:-10,"& > *":{marginLeft:10}},"& p":{lineHeight:2.3}}},"& .helpCenterSection":{},"& .languageSection":{marginTop:12},"& .logoutSection":{paddingBottom:40,"& .MuiButton-startIcon":{margin:"0px 4px 0px 0px"}}})}},em=function(e){var t=e.toggleIsOpen,n=e.isOpen,r=(0,L.$G)("common").t,i=(0,w.Eu)().isLoggedIn,o=(0,Z.useState)(!1),a=o[0],c=o[1],s=(0,Z.useState)(null),l=s[0],u=s[1],d=eh(),f=function(){c(!1),u(null)};return(0,p.jsx)(D.Z,{isOpen:n,onClose:t,classNameWrapper:d.drawerWrapper,className:d.paper,children:(0,p.jsxs)(g.Z,{className:d.container,children:[(0,p.jsx)($,{}),i&&(0,p.jsx)(ea,{t:r}),i&&(0,p.jsx)(ed.Z,{t:r,setPopupAmount:u,openRebateNotif:c}),i&&(0,p.jsx)(eu,{show:a,popupAmount:l,onClose:f}),(0,p.jsx)(V,{toggleIsOpen:t}),(0,p.jsx)(ef,{toggleIsOpen:t}),(0,p.jsx)(U,{t:r,toggleIsOpen:t}),i&&(0,p.jsx)(et,{t:r,toggleIsOpen:t})]})})},eg=n(22341),ex=function(){var e=(0,l.t)().gradient;return{bottomNavigationContainer:(0,c.iv)({label:"bottomNavigationContainer",position:"fixed",bottom:0,display:"flex",flexWrap:"nowrap",justifyContent:"center",marginLeft:"-2%",width:"calc(100% + 2%)","& > *":{marginLeft:"2%"},"& > .MuiButton-root":{marginLeft:"2%"},padding:"16px",zIndex:s.Z.zIndex.bottomNavigation,background:e.darkTrans,"& button":{width:500,height:45}})}},ev=n(52087),eb=function(){var e=ex(),t=(0,ev.Q)().openLoginDialog,n=(0,L.$G)("common").t,r=(0,j.ZP)().handlePush;return(0,p.jsxs)(g.Z,{className:e.bottomNavigationContainer,children:[(0,p.jsx)(J.Z,{id:"LoginForm_Button_register",label:n("register"),color:"secondary",onClick:function(){return r("/register",{},!0)}}),(0,p.jsx)(J.Z,{id:"LoginForm_Button_submit",label:n("login"),color:"light",onClick:t})]})},ej=n(71029),ew=function(e){var t=e.color,n=void 0===t?"#FFC300":t,r=e.color2,i=void 0===r?"black":r,o=e.width,a=void 0===o?20:o,c=e.height,s=void 0===c?20:c,l=e.className,u=e.viewBox,d=void 0===u?"0 0 20 20":u,f=e.onClick;return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:s,className:l,onClick:f,viewBox:d,children:[(0,p.jsx)("path",{d:"M31 62C48.1208 62 62 48.1208 62 31C62 13.8792 48.1208 0 31 0C13.8792 0 0 13.8792 0 31C0 48.1208 13.8792 62 31 62Z",fill:n}),(0,p.jsx)("path",{d:"M29.1184 28.5584C29.3231 28.2993 29.4255 27.974 29.406 27.6444C29.4109 27.3601 29.3307 27.0808 29.1753 26.8427C29.0181 26.6099 28.7946 26.4297 28.5338 26.3254C28.0372 26.1864 27.5207 26.1314 27.006 26.1621H24.9641V29.1659H26.946C27.3972 29.1746 27.8481 29.1275 28.2879 29.0266C28.607 28.9613 28.8973 28.7975 29.1184 28.5584V28.5584Z",fill:i}),(0,p.jsx)("path",{d:"M37.9895 29.1692C37.7101 28.9658 37.3731 28.8572 37.0275 28.8592C36.7561 28.8569 36.4873 28.9153 36.2415 29.0304C35.9956 29.1455 35.7789 29.3143 35.6068 29.5242C35.1855 30.0836 34.9808 30.7762 35.0305 31.4747C34.989 32.1537 35.1932 32.8249 35.6057 33.3658C35.776 33.5787 35.9925 33.75 36.2389 33.8668C36.4852 33.9837 36.7549 34.0429 37.0275 34.0401C37.3637 34.0403 37.6917 33.9371 37.9671 33.7442C38.2775 33.522 38.5178 33.2155 38.6597 32.861C38.8449 32.4097 38.9342 31.9253 38.9217 31.4377C38.9337 30.9651 38.8501 30.4945 38.6759 30.055C38.5348 29.7011 38.2969 29.3944 37.9895 29.1692Z",fill:i}),(0,p.jsx)("path",{d:"M43.3584 31.0295C43.3653 29.4093 43.0516 27.8038 42.4356 26.3053C41.8195 24.8068 40.9134 23.4445 39.7689 22.2977C38.6245 21.1509 37.2643 20.2418 35.7671 19.6227C34.2699 19.0035 32.6651 18.6869 31.0449 18.6905C29.429 18.6895 27.8284 19.0067 26.3353 19.6248C24.8422 20.2428 23.4859 21.1496 22.3434 22.2925C21.201 23.4353 20.2948 24.7921 19.6773 26.2854C19.0597 27.7788 18.743 29.3791 18.7445 30.995C18.7409 32.6117 19.0559 34.2131 19.6721 35.7078C20.2882 37.2025 21.1932 38.561 22.3351 39.7054C23.477 40.8499 24.8332 41.7583 26.3265 42.3779C27.8198 42.9974 29.4209 43.3158 31.0376 43.3158C32.6538 43.3195 34.2546 43.0046 35.7488 42.3888C37.2431 41.7731 38.601 40.8686 39.7454 39.7274C40.8898 38.5862 41.7979 37.2306 42.4178 35.7381C43.0377 34.2455 43.3576 32.6456 43.3584 31.0295ZM31.7068 35.1524C31.6128 35.2955 31.483 35.4115 31.3305 35.4891C31.1587 35.5734 30.969 35.615 30.7777 35.6107C30.5561 35.6185 30.3376 35.5577 30.1524 35.4358C29.9804 35.3164 29.832 35.1659 29.715 34.9922C29.5942 34.8147 29.4297 34.5504 29.2212 34.203L28.3329 32.7259C28.0872 32.288 27.8011 31.874 27.4779 31.4899C27.2717 31.2402 27.0106 31.0413 26.7153 30.9084C26.402 30.7956 26.0706 30.743 25.7377 30.7534H24.9636V34.263C24.9946 34.6297 24.8852 34.9946 24.6578 35.284C24.5564 35.393 24.4327 35.4787 24.295 35.5355C24.1574 35.5924 24.009 35.6186 23.8602 35.6128C23.7066 35.6214 23.5533 35.5953 23.4113 35.5361C23.2693 35.4768 23.1422 35.3861 23.0402 35.2709C22.8274 34.9802 22.7247 34.6234 22.7505 34.2641V25.8574C22.7166 25.4837 22.8322 25.1119 23.0716 24.8229C23.2147 24.7041 23.3798 24.6144 23.5575 24.5593C23.7352 24.5043 23.9219 24.4852 24.1071 24.5024H27.7065C28.1318 24.4974 28.5569 24.518 28.9796 24.5651C29.3089 24.5999 29.6308 24.6867 29.9332 24.8219C30.275 24.9647 30.5846 25.1754 30.843 25.4409C31.1059 25.7077 31.3105 26.0262 31.4437 26.3763C31.5809 26.736 31.65 27.1177 31.6478 27.5026C31.6834 28.2196 31.4358 28.9219 30.9583 29.4579C30.3809 30.0054 29.6518 30.3663 28.8663 30.4929C29.2946 30.7301 29.6766 31.0428 29.9932 31.4163C30.3491 31.8218 30.6692 32.2577 30.95 32.7185C31.1994 33.116 31.4185 33.5311 31.6061 33.9613C31.7256 34.2015 31.8053 34.4601 31.8415 34.726C31.8375 34.8788 31.7884 35.027 31.701 35.1524H31.7068ZM37.5271 35.6107C37.0168 35.6273 36.5113 35.5069 36.0636 35.2615C35.6269 34.9907 35.2437 34.6413 34.9335 34.2317V37.2883C34.9335 38.1826 34.6086 38.6294 33.958 38.6286C33.8118 38.6485 33.6627 38.6266 33.5284 38.5655C33.3941 38.5044 33.2802 38.4064 33.1991 38.2831C33.057 37.9665 32.9929 37.6206 33.0127 37.2742V28.4928C32.9889 28.1833 33.0786 27.8756 33.2643 27.6269C33.3513 27.5303 33.4585 27.4544 33.5785 27.4045C33.6985 27.3546 33.8282 27.3318 33.958 27.3382C34.0896 27.334 34.2206 27.358 34.3421 27.4087C34.4637 27.4594 34.5725 27.5355 34.6621 27.6321C34.8566 27.8697 34.9532 28.1724 34.9325 28.4787V28.7235C35.2584 28.3018 35.6643 27.9482 36.1267 27.6832C36.5585 27.4587 37.0395 27.3456 37.5261 27.3534C38.1366 27.3493 38.7362 27.5167 39.2558 27.8372C39.7992 28.18 40.2323 28.6723 40.5033 29.2548C40.824 29.9451 40.9803 30.7003 40.9605 31.4612C40.9667 32.0467 40.8778 32.6296 40.6975 33.1867C40.5423 33.669 40.2955 34.1165 39.9699 34.5047C39.6698 34.8538 39.2974 35.1337 38.8785 35.3247C38.4532 35.5176 37.9909 35.6149 37.524 35.6107H37.5271Z",fill:i}),(0,p.jsx)("path",{d:"M15.5376 20.8315L12.2023 17.4951C11.1996 18.8905 10.3559 20.3934 9.68698 21.9761C8.7599 24.1676 8.17814 26.4895 7.96191 28.8591H12.6183C12.9484 25.9913 13.9484 23.2415 15.5376 20.8315V20.8315Z",fill:i}),(0,p.jsx)("path",{d:"M54.1404 28.8633C53.925 26.4935 53.3427 24.1715 52.4148 21.9803C51.7466 20.3974 50.9038 18.8944 49.901 17.4993L46.5668 20.8356C48.1552 23.246 49.1552 25.9956 49.4861 28.8633H54.1404Z",fill:i}),(0,p.jsx)("path",{d:"M8.21973 35.0609C8.52232 36.7664 9.01604 38.4323 9.69164 40.0273C10.5371 42.0314 11.6621 43.9058 13.0332 45.5944L16.3372 42.2926C14.6926 40.1581 13.5354 37.6893 12.9466 35.0598L8.21973 35.0609Z",fill:i}),(0,p.jsx)("path",{d:"M45.7703 42.2937L49.0722 45.5956C50.4441 43.9071 51.5697 42.0327 52.4158 40.0284C53.0913 38.4337 53.5841 36.7676 53.8846 35.062H49.1619C48.5711 37.6906 47.4137 40.1588 45.7703 42.2937Z",fill:i}),(0,p.jsx)("path",{d:"M27.9507 12.706V8.02148C25.9116 8.29206 23.9183 8.83626 22.0244 9.63903C20.0209 10.4857 18.147 11.611 16.4583 12.9816L19.7607 16.2835C22.1562 14.4374 24.9685 13.2091 27.9507 12.706V12.706Z",fill:i}),(0,p.jsx)("path",{d:"M34.1526 8.02051V12.7051C37.1347 13.2083 39.9475 14.4366 42.3431 16.2825L45.6455 12.9807C43.9563 11.61 42.0821 10.4848 40.0784 9.63805C38.1849 8.83512 36.1914 8.2909 34.1526 8.02051V8.02051Z",fill:i}),(0,p.jsx)("path",{d:"M34.1526 49.2998V53.9818C36.191 53.711 38.1836 53.1671 40.0768 52.3645C41.6595 51.6954 43.1632 50.8521 44.5593 49.8502L41.2251 46.5142C39.0867 47.9237 36.6779 48.8724 34.1526 49.2998V49.2998Z",fill:i}),(0,p.jsx)("path",{d:"M17.545 49.8513C18.941 50.8533 20.4442 51.6967 22.0271 52.3656C23.9202 53.1683 25.9129 53.7125 27.9513 53.9831V49.3009C25.4267 48.8757 23.0188 47.929 20.8803 46.5215L17.545 49.8513Z",fill:i})]})};function ey(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ey(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ey(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eC={width:"17%",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},eO=function(){var e=(0,l.t)().gradient;return{bottomNavigationAuthContainer:(0,c.iv)({background:e.primary,height:s.Z.bottomNavigation.height,zIndex:s.Z.zIndex.bottomNavigation,width:"100%",position:"fixed",bottom:-1,display:"flex",flexWrap:"nowrap",justifyContent:"space-around","& .account":eZ({},eC),"& .transaction":eZ({},eC),"& .deposit":eZ(eZ({},eC),{},{width:"22%",margin:"-24px 0 0 0","& .MuiIconButton-root":{paddingBottom:4}}),"& .promotion":eZ({},eC),"& .withdraw":eZ({},eC)})}},eN=T()(function(){return n.e(6741).then(n.bind(n,66741))},{ssr:!1,loadableGenerated:{webpack:function(){return[66741]}}}),ek=T()(function(){return n.e(1762).then(n.bind(n,61762))},{ssr:!1,loadableGenerated:{webpack:function(){return[61762]}}}),eP=T()(function(){return n.e(4058).then(n.bind(n,24058))},{ssr:!1,loadableGenerated:{webpack:function(){return[24058]}}}),e_=function(){var e=(0,l.t)().palette,t=eO(),n=(0,L.$G)("common").t,r=(0,j.ZP)().handlePush,i=52,o=28;return(0,p.jsxs)(g.Z,{className:t.bottomNavigationAuthContainer,children:[(0,p.jsxs)(g.Z,{className:"account",children:[(0,p.jsx)(P.Z,{onClick:function(){return r("/profile")},id:"AppBar_Button_myAccount",children:(0,p.jsx)(ej.f,{color:e.neutralDefault,width:o,height:o})}),(0,p.jsx)(v.Z,{size:"sm",onClick:function(){return r("/profile")},children:n("account")})]}),(0,p.jsxs)(g.Z,{className:"transaction",children:[(0,p.jsx)(P.Z,{onClick:function(){return r("/transaction-history/deposit")},id:"AppBar_Button_transaction",children:(0,p.jsx)(eP,{color:e.neutralDefault,width:o,height:o})}),(0,p.jsx)(v.Z,{size:"sm",onClick:function(){return r("/transaction-history/deposit")},children:n("transaction")})]}),(0,p.jsxs)(g.Z,{className:"deposit",children:[(0,p.jsx)(P.Z,{onClick:function(){return r("/deposit")},id:"AppBar_Button_deposit",children:(0,p.jsx)(ew,{color:e.secondaryDefault,width:i,height:i,viewBox:"0 0 ".concat(i+10," ").concat(i+10)})}),(0,p.jsx)(v.Z,{size:"sm",onClick:function(){return r("/deposit")},children:n("deposit")})]}),(0,p.jsxs)(g.Z,{className:"promotion",children:[(0,p.jsx)(P.Z,{onClick:function(){return r("/my-promotion")},id:"AppBar_Button_promotion",children:(0,p.jsx)(ek,{color:e.neutralDefault,width:o,height:o})}),(0,p.jsx)(v.Z,{size:"sm",onClick:function(){return r("/my-promotion")},children:n("promotion")})]}),(0,p.jsxs)(g.Z,{className:"withdraw",children:[(0,p.jsx)(P.Z,{onClick:function(){return r("/withdraw")},id:"AppBar_Button_withdraw",children:(0,p.jsx)(eN,{color:e.neutralDefault,width:o,height:o})}),(0,p.jsx)(v.Z,{size:"sm",onClick:function(){return r("/withdraw")},children:n("withdraw")})]})]})},eS=n(52418),eI=n(50563),eL=n(24098),eD=n(80847),eB=n(85019),eE=n(19193),eT=n(77082),eA=n(59608);function ez(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ez(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ez(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eW=T()(function(){return n.e(5580).then(n.bind(n,25580))},{ssr:!1,loadableGenerated:{webpack:function(){return[25580]}}}),eF=T()(function(){return n.e(119).then(n.bind(n,40119))},{ssr:!1,loadableGenerated:{webpack:function(){return[40119]}}}),eR=T()(function(){return n.e(8460).then(n.bind(n,57947))},{ssr:!1,loadableGenerated:{webpack:function(){return[57947]}}}),eG=T()(function(){return n.e(1515).then(n.bind(n,1515))},{ssr:!1,loadableGenerated:{webpack:function(){return[1515]}}}),eH=T()(function(){return n.e(8561).then(n.bind(n,28561))},{ssr:!1,loadableGenerated:{webpack:function(){return[28561]}}}),eV=function(e){var t=e.layoutConfig,n=e.cmsData,r=e.contentStyle,c=e.children,l=(0,eE.xH)(),u=(0,w.Eu)().isLoggedIn,d=(0,Z.useState)(!1),f=d[0],h=d[1],m=function(){h(!f)};return(0,p.jsx)(eT.zx,{children:(0,p.jsx)(eA.eP,{children:(0,p.jsx)(ee.ZA,{children:(0,p.jsx)(y.$4,{children:(0,p.jsxs)("div",{className:"h-screen w-screen overflow-scroll",children:[(0,p.jsx)(I,{toggleLeftDrawerOpen:m}),(0,p.jsx)(em,{isOpen:f,toggleIsOpen:m}),"true"===l.NEXT_PUBLIC_IS_POPUP_FIRST_TIME&&(0,p.jsx)(eW,{}),(0,p.jsx)(g.Z,{component:"main",className:"bg-neutral-1000 flex-grow [&_a]:text-info-default",sx:eM({marginTop:"calc(".concat(s.Z.topAppBar.height,"px + ").concat(s.Z.bottomAppBar.height,"px + ").concat(s.Z.socialMediaAppBar.height,"px)"),minHeight:"calc(100vh - ".concat(s.Z.topAppBar.height,"px - ").concat(s.Z.bottomAppBar.height,"px - ").concat(s.Z.bottomNavigation.height,"px)")},r),children:(0,p.jsx)(i.Z,{isFullscreenError:!1,isResetOnChangePage:!0,children:c})}),u?(0,p.jsx)(e_,{}):(0,p.jsx)(eb,{}),(0,p.jsx)(eI.Z,{}),(0,p.jsx)(a.Z,{}),(0,p.jsx)(eS.Z,{}),(0,p.jsx)(eD.Z,{}),(null==t?void 0:t.showFooter)&&(0,p.jsx)(eg.Z,{hideFooterImage:null==t?void 0:t.hideFooterImage,seoSetting:null==n?void 0:n.seoSetting}),!u&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(eH,{}),(0,p.jsx)(eG,{})]}),(0,p.jsx)(eL.Z,{}),(0,p.jsx)(eB.Z,{}),u&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(o.Z,{}),(0,p.jsx)(eR,{}),(0,p.jsx)(eF,{})]})]})})})})})}},42427:function(e,t,n){n.d(t,{Z:function(){return tt}});var r=n(59499),i=n(86260),o=n(89061),a=n(98666),c=n(77191),s=n(57976),l=n(39232),u=n(19166),d=n(30225),p=n(67294),f=n(60623),h=n(5752),m=n(63851),g=n(2666),x=n(76395),v=n(42192),b=n(5152),j=n.n(b),w=n(46325),y=n(85893),Z=function(){return(0,y.jsx)("div",{style:{width:40,height:40}})},C=j()(function(){return n.e(1464).then(n.bind(n,31464)).then(function(e){return e.TogelIconActive})},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[31464]}}}),O=j()(function(){return n.e(5801).then(n.bind(n,65801))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[65801]}}}),N=j()(function(){return n.e(9083).then(n.bind(n,59083))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[59083]}}}),k=j()(function(){return n.e(5203).then(n.bind(n,5203))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[5203]}}}),P=j()(function(){return n.e(1394).then(n.bind(n,81394))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[81394]}}}),_=j()(function(){return n.e(8025).then(n.bind(n,78025))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[78025]}}}),S=j()(function(){return n.e(8196).then(n.bind(n,8196))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[8196]}}}),I=j()(function(){return n.e(9409).then(n.bind(n,79409))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[79409]}}}),L=j()(function(){return n.e(4829).then(n.bind(n,64829))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[64829]}}}),D=j()(function(){return n.e(6675).then(n.bind(n,46675))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[46675]}}}),B=j()(function(){return n.e(7479).then(n.bind(n,27479))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[27479]}}}),E=j()(function(){return n.e(1464).then(n.bind(n,31464))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[31464]}}}),T=j()(function(){return n.e(3746).then(n.bind(n,73746))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[73746]}}}),A=j()(function(){return n.e(6496).then(n.bind(n,66496))},{ssr:!1,loading:Z,loadableGenerated:{webpack:function(){return[66496]}}}),z=function(){var e=(0,v.ZP)(),t=e.handlePush,n=e.isRouteContain,r=e.handleHardPush,i=(0,x.$G)().t,o=(0,g.Eu)().isLoggedIn,a=(0,(0,m.w)().getEligiblePromotionCount)(),c=(0,p.useState)(null),s=c[0],l=c[1],u=40,b=n("/promotion-all-event")||n("/promotion-others")||n("/promotion-rebate")||n("/promotion"),j=function(e){l(e)},Z=function(e){return"promotion"===e?s===e||b:s===e||n("/".concat(e))};return(0,y.jsxs)(d.Z,{className:"z-[1] flex sticky justify-between cursor-pointer",style:{top:w.Z.topAppBar.height-1},children:[(0,y.jsxs)(d.Z,{className:"flex flex-row items-center flex-nowrap ml-4",onClick:function(){return t("/slot-game")},onMouseEnter:function(){return j("slot-game")},onMouseLeave:function(){return j(null)},id:"NavigationBar_Div_slot",children:[Z("slot-game")?(0,y.jsx)(N,{width:u,height:u}):(0,y.jsx)(O,{width:u,height:u}),(0,y.jsx)(h.Z,{size:"sm",weight:"medium",className:"ml-1 font-medium whitespace-nowrap",children:i("slot")})]}),(0,y.jsxs)(d.Z,{className:"flex flex-row items-center flex-nowrap ml-4",onClick:function(){return t("/live-casino")},onMouseEnter:function(){return j("live-casino")},onMouseLeave:function(){return j(null)},id:"NavigationBar_Div_casino",children:[Z("live-casino")?(0,y.jsx)(B,{width:u,height:u}):(0,y.jsx)(D,{width:u,height:u}),(0,y.jsx)(h.Z,{size:"sm",weight:"medium",className:"ml-1 font-medium whitespace-nowrap",children:i("casino")})]}),(0,y.jsxs)(d.Z,{className:"flex flex-row items-center flex-nowrap ml-4",onClick:function(){return r("/togel/veg")},onMouseEnter:function(){return j("togel/veg")},onMouseLeave:function(){return j(null)},id:"NavigationBar_Div_togel",children:[Z("togel/veg")?(0,y.jsx)(C,{width:u,height:u}):(0,y.jsx)(E,{width:u,height:u}),(0,y.jsx)(h.Z,{size:"sm",weight:"medium",className:"ml-1 font-medium whitespace-nowrap",children:i("togel")})]}),(0,y.jsxs)(d.Z,{className:"flex flex-row items-center flex-nowrap ml-4",onClick:function(){return t("/sportsbook")},onMouseEnter:function(){return j("sportsbook")},onMouseLeave:function(){return j(null)},id:"NavigationBar_Div_sports",children:[Z("sportsbook")?(0,y.jsx)(S,{width:u,height:u}):(0,y.jsx)(_,{width:u,height:u}),(0,y.jsx)(h.Z,{size:"sm",weight:"medium",className:"ml-1 font-medium whitespace-nowrap",children:i("sport")})]}),(0,y.jsxs)(d.Z,{className:"flex flex-row items-center flex-nowrap ml-4",onClick:function(){return t("/fish-hunter")},onMouseEnter:function(){return j("fish-hunter")},onMouseLeave:function(){return j(null)},id:"NavigationBar_Div_miniGames",children:[Z("fish-hunter")?(0,y.jsx)(P,{width:u,height:u}):(0,y.jsx)(k,{width:u,height:u}),(0,y.jsx)(h.Z,{size:"sm",weight:"medium",className:"ml-1 font-medium whitespace-nowrap",children:i("fish")})]}),(0,y.jsxs)(d.Z,{className:"flex flex-row items-center flex-nowrap ml-4",onClick:function(){return t("/promotion-all-event")},onMouseEnter:function(){return j("promotion")},onMouseLeave:function(){return j(null)},id:"NavigationBar_Div_promotion",children:[(0,y.jsx)(f.Z,{badgeContent:a,className:"promoCount",horizontal:"right",vertical:"top",show:o&&a>0,color:"danger",children:Z("promotion")?(0,y.jsx)(L,{width:u,height:u}):(0,y.jsx)(I,{width:u,height:u})}),(0,y.jsx)(h.Z,{size:"sm",weight:"medium",className:"ml-1 font-medium whitespace-nowrap",children:i("promo")})]}),o&&(0,y.jsxs)(d.Z,{className:"flex flex-row items-center flex-nowrap ml-4",onClick:function(){return t("/my-favorite")},onMouseEnter:function(){return j("my-favorite")},onMouseLeave:function(){return j(null)},id:"NavigationBar_Div_favorite",children:[Z("my-favorite")?(0,y.jsx)(A,{width:u,height:u}):(0,y.jsx)(T,{width:u,height:u}),(0,y.jsx)(h.Z,{size:"sm",weight:"medium",className:"ml-1 font-medium whitespace-nowrap",children:i("favorite")})]})]})};function M(e,t){(0,p.useEffect)(function(){function n(n){e.current&&!e.current.contains(n.target)&&t(!1)}return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}},[e])}var W=n(27438),F=n(784),R=n(10803),G=n(18872),H=n(99777),V=n(63428),U=n(24860),q=n(67190),$=n(71029),X=function(e){var t=e.color,n=e.width,r=e.height,i=e.className,o=e.onClick;return(0,y.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 23 20",xmlSpace:"preserve",width:null!=n?n:24,height:null!=r?r:24,className:i,onClick:o,children:(0,y.jsx)("path",{id:"Path_182",fill:null!=t?t:"#fff",d:"M22.86,10c0,5.52-4.48,10-10,10c-4.08,0-7.76-2.48-9.28-6.27c0.06,0,0.13,0.01,0.19,0.01 c0.15,0,0.31-0.01,0.46-0.04c0.21-0.04,0.41-0.1,0.6-0.18c1.94,4.44,7.11,6.46,11.54,4.52c4.44-1.94,6.46-7.11,4.52-11.54 c-1.94-4.44-7.11-6.46-11.54-4.52c-1.94,0.85-3.51,2.38-4.42,4.3c-0.1,0.2-0.18,0.41-0.26,0.62C4.59,7.09,4.52,7.3,4.46,7.5h1.63 c0.74,0,1.35,0.6,1.35,1.35c0,0.36-0.14,0.7-0.39,0.95l-2.3,2.3c-0.1,0.1-0.21,0.18-0.33,0.25l0,0c-0.19,0.1-0.39,0.15-0.6,0.16 H3.77c-0.22,0-0.44-0.05-0.64-0.16l0,0c-0.13-0.06-0.24-0.15-0.34-0.25L0.54,9.85c-0.54-0.54-0.54-1.41,0-1.94 C0.8,7.65,1.15,7.5,1.52,7.5h1.65c0.05-0.21,0.12-0.41,0.18-0.62c0.07-0.2,0.14-0.42,0.23-0.62c2.06-5.12,7.89-7.6,13.01-5.54 C20.37,2.25,22.85,5.92,22.86,10L22.86,10z M4.19,8.74H1.52c-0.08,0-0.14,0.06-0.14,0.14c0,0.04,0.01,0.07,0.04,0.1l1.45,1.45l0,0 l0.67,0.67l0.13,0.13c0.03,0.03,0.06,0.04,0.1,0.04c0.04,0,0.07-0.02,0.1-0.04l0.27-0.27l0,0l2.02-2.02c0.04-0.04,0.04-0.12,0-0.16 C6.14,8.75,6.11,8.73,6.08,8.73L4.19,8.74z M11.79,12.07c0.59-0.29,0.95-0.9,0.94-1.56c0.02-0.96-0.74-1.76-1.7-1.78 c-0.06,0-0.13,0-0.19,0.01H8.87v5.13h1.26v-1.57h0.37l0.98,1.57h1.5L11.79,12.07z M10.7,11.22h-0.57V9.81h0.57 c0.37-0.03,0.7,0.24,0.74,0.61c0,0.03,0,0.06,0,0.09c0.02,0.37-0.26,0.69-0.63,0.71C10.77,11.22,10.74,11.22,10.7,11.22L10.7,11.22z M15.55,10.29c-0.34,0-0.66,0.13-0.9,0.37v-0.29h-1.21v5.2h1.21v-2c0.24,0.24,0.56,0.37,0.9,0.37c1.01-0.05,1.78-0.9,1.74-1.91 C17.24,11.09,16.48,10.34,15.55,10.29L15.55,10.29z M15.35,12.83c-0.38,0.01-0.7-0.3-0.7-0.68c0-0.01,0-0.03,0-0.04 c-0.01-0.38,0.28-0.71,0.67-0.72c0.38-0.01,0.71,0.28,0.72,0.67c0,0.02,0,0.04,0,0.05c0.02,0.38-0.26,0.7-0.64,0.72 C15.39,12.83,15.37,12.83,15.35,12.83L15.35,12.83z M16.3,6.04c-0.03-0.06-0.09-0.1-0.16-0.1h-0.85l0.67-2.49 c0.03-0.1-0.03-0.2-0.13-0.22c-0.07-0.02-0.14,0-0.19,0.06l-2.54,3.08c-0.07,0.08-0.06,0.19,0.02,0.26 c0.03,0.03,0.08,0.05,0.12,0.04h0.85l-0.67,2.49c-0.03,0.1,0.03,0.2,0.13,0.22c0.07,0.02,0.14,0,0.19-0.06l2.54-3.08 C16.32,6.18,16.33,6.1,16.3,6.04L16.3,6.04z"})})},K=function(e){var t=e.color,n=void 0===t?"#0000001A":t,r=e.width,i=void 0===r?20:r,o=e.height,a=void 0===o?20:o,c=e.className,s=e.onClick;return(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:a,className:c,onClick:s,viewBox:"0 0 20 20",children:(0,y.jsx)("path",{fill:n,d:"M3402.769,896.092a10,10,0,0,1-19.659,2.59h1.285a8.769,8.769,0,1,0-.051-5h-1.28a10,10,0,0,1,19.706,2.41Zm-10,.617h3.51l-3.51,3.51-.437.437a.617.617,0,0,0,.873.873l5-5a.617.617,0,0,0,0-.873l-5-5a.617.617,0,0,0-.873.873l.437.436,3.51,3.51h-12.892a.617.617,0,1,0,0,1.235Z",transform:"translate(-3382.769 -886.092)"})})},Y=n(27681),Q=n(68869),J=n(83791),ee=n(2734),et=n(81986),en=function(e){var t=e.isLoggedIn,n=(0,et.t)().palette,r="calc(100% - 280px)";return t&&(r="20%"),{subToolbarContainer:(0,G.iv)({width:"100%",height:"".concat(w.Z.bottomAppBarV2.height,"px"),padding:"0 24px",display:"flex",justifyContent:"center",alignSelf:"center",backgroundColor:n.neutral900,"& .container":{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:1340,backgroundColor:"inherit",position:"relative","&.nonLogin":{"& .section":{marginLeft:-8,width:"calc(100% + 8px)","& > *":{marginLeft:8}}}},"& .sectionNonLogin":{display:"flex",marginLeft:-8,"& > *":{marginLeft:8},width:"100%"},"& .section":{display:"flex",marginLeft:-8,maxWidth:"100%","& .subItem":{display:"flex",alignItems:"center",cursor:"pointer",textTransform:"capitalize",whiteSpace:"nowrap","> button":{height:25}},"& .logout":{display:"flex",alignItems:"center"}},"& .h6":{lineHeight:"13px"}}),rebatePopover:(0,G.iv)({width:240,padding:"48px 20px",maxHeight:400,marginLeft:-60,marginTop:10}),logoutButton:(0,G.iv)({height:25}),logoutPopup:(0,G.iv)({"& .dialogBody":{padding:"10px 20px 20px","& .buttonWrapper":{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",columnGap:10,"& > *":{width:"calc(100% / 2)",textWrap:"nowrap"}}}}),rebateNotif:(0,G.iv)({display:"flex","& .dialogHeader":{rowGap:10,"& .containerSuccess":{"& >svg":{width:90,height:90}},"& .title":{textAlign:"center",textTransform:"capitalize",fontWeight:500,lineHeight:1.2}},"& .dialogBody":{padding:"0px 20px 20px",textAlign:"center",rowGap:10,"& >button":{textTransform:"uppercase"}}}),timeBar:(0,G.iv)({opacity:.5,whiteSpace:"nowrap",display:"flex",alignItems:"center",paddingTop:"3px"}),runningNotificationBarWrapper:(0,G.iv)({display:"flex",width:"100%",maxWidth:r,"&.loggedIn":{"@media (min-width:1300px) and (max-width:1399px)":{maxWidth:"30%"},"@media (min-width:1400px)":{maxWidth:"41%"}}})}},er=n(27484),ei=n.n(er);n(67763);var eo=n(29387),ea=n.n(eo),ec=n(70178),es=n.n(ec),el=null,eu=function(){var e=(0,p.useState)(i()),t=e[0],n=e[1],r=en({});function i(){return ei().extend(es()),ei().extend(ea()),ei()().tz("Asia/Jakarta").format("DD/MM/YYYY HH:mm")}return(0,p.useEffect)(function(){return el=setTimeout(function(){var e=i();e!==t&&n(e)},5e3),function(){clearTimeout(el)}}),(0,y.jsxs)(h.Z,{size:"sm",className:r.timeBar,suppressHydrationWarning:!0,children:[t," (GMT+7)"]})},ed=j()(function(){return n.e(3125).then(n.bind(n,33125))},{ssr:!1,loadableGenerated:{webpack:function(){return[33125]}}}),ep=function(){var e=(0,v.ZP)().handlePush,t=13,n=(0,p.useState)(!1),r=n[0],i=n[1],o=(0,R.tj)().vipLevelDetail;return((0,p.useEffect)(function(){o&&i(o.levelup_setting.levelup_status)},[o]),r)?(0,y.jsx)(W.Z,{startIcon:(0,y.jsx)(ed,{width:t,height:t}),color:"borderless-neutral-1",onClick:function(){return e("/about-vip")},id:"AppSubBar_Button_vip",children:(0,y.jsx)(h.Z,{size:"sm",onClick:function(){return e("/about-vip")},children:"VIP Club"})}):null},ef=j()(function(){return n.e(6741).then(n.bind(n,66741))},{ssr:!1,loadableGenerated:{webpack:function(){return[66741]}}}),eh=j()(function(){return n.e(4058).then(n.bind(n,24058))},{ssr:!1,loadableGenerated:{webpack:function(){return[24058]}}}),em=j()(function(){return n.e(1762).then(n.bind(n,61762))},{ssr:!1,loadableGenerated:{webpack:function(){return[61762]}}}),eg=function(){var e=(0,p.useState)(!1),t=e[0],n=e[1],r=(0,p.useState)(!1),i=r[0],o=r[1],a=(0,p.useState)(!1),c=a[0],s=a[1],l=(0,p.useState)(null),u=l[0],f=l[1],m=(0,p.useState)(null),b=m[0],j=m[1],w=(0,x.$G)().t,Z=(0,v.ZP)().handlePush,C=(0,et.t)().palette;M((0,p.useRef)(null),n),M((0,p.useRef)(null),o),M((0,p.useRef)(null),s);var O=(0,g.Eu)(),N=O.isLoggedIn,k=O.handleLogout,P=en({isLoggedIn:N}),_=(0,Y.$G)().postMessage,S=function(e){n(!0),e.currentTarget&&j(e.currentTarget)},I={vertical:"bottom",horizontal:"left"},L=(0,G.iv)({top:b?b.getBoundingClientRect().top+10+(null!=I&&I.vertical?(0,Q.r2)(null==I?void 0:I.vertical,b):0):0});return(0,y.jsxs)("div",{className:P.subToolbarContainer,children:[(0,y.jsxs)("div",{className:"container",children:[!N&&(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:"sectionNonLogin",children:[(0,y.jsx)(eu,{}),(0,y.jsx)(d.Z,{className:P.runningNotificationBarWrapper,children:(0,y.jsx)(U.Z,{})}),(0,y.jsx)("div",{className:"section",children:(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)(ep,{})})})]})}),N&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"section",children:[(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)(W.Z,{startIcon:(0,y.jsx)($.Z,{color:C.neutralDefault,height:13}),id:"AppBar_Button_myAccount",onClick:function(){return Z("/profile")},color:"borderless-neutral-1",children:(0,y.jsx)(h.Z,{size:"sm",className:"h6",onClick:function(){return Z("/profile")},children:w("myAccount")})})}),(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)(W.Z,{startIcon:(0,y.jsx)(eh,{color:C.neutralDefault,height:13}),onClick:function(){return Z("/transaction-history/deposit")},color:"borderless-neutral-1",id:"AppBar_Button_transaction",children:(0,y.jsx)(h.Z,{size:"sm",className:"h6",onClick:function(){return Z("/transaction-history/deposit")},children:w("transaction")})})}),(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)(W.Z,{startIcon:(0,y.jsx)(em,{color:C.neutralDefault,height:13}),onClick:function(){return Z("/my-promotion")},color:"borderless-neutral-1",id:"AppBar_Button_promotion",children:(0,y.jsx)(h.Z,{size:"sm",className:"h6",onClick:function(){return Z("/my-promotion")},children:w("promotion")})})})]}),(0,y.jsx)(d.Z,{className:"".concat(P.runningNotificationBarWrapper," loggedIn"),children:(0,y.jsx)(U.Z,{})}),(0,y.jsxs)("div",{className:"section",children:[(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)(ep,{})}),(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)(W.Z,{startIcon:(0,y.jsx)(X,{color:C.neutralDefault,height:13}),color:"borderless-neutral-1",onClickCapture:S,id:"AppBar_Button_rebate",children:(0,y.jsx)(h.Z,{size:"sm",className:"h6",children:w("rebate")})})}),(0,y.jsx)(V.Z,{isOpen:t,anchorEl:b,anchorOrigin:I,className:P.rebatePopover,classNameBackdrop:L,onClose:function(){return n(!1)},backDrop:!0,children:(0,y.jsx)(J.Z,{t:w,openRebateNotif:s,setPopupAmount:f})}),(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)(W.Z,{startIcon:(0,y.jsx)(ef,{color:C.neutralDefault,height:13}),onClick:function(){return Z("/withdraw")},color:"borderless-neutral-1",id:"AppBar_Button_withdraw",children:(0,y.jsx)(h.Z,{size:"sm",className:"h6",onClick:function(){return Z("/withdraw")},children:w("withdraw")})})}),(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)(ee.Z,{})}),(0,y.jsx)("div",{className:"subItem",children:(0,y.jsx)("div",{className:"logout",children:(0,y.jsx)(W.Z,{color:"borderless-neutral-1",startIcon:(0,y.jsx)(K,{color:C.neutralDefault,height:13}),onClick:function(){return o(!0)},className:P.logoutButton,id:"AppBar_Button_logout",children:(0,y.jsx)(h.Z,{size:"sm",className:"h6",onClick:function(){return o(!0)},children:w("logout")})})})})]})]})]}),N&&i&&(0,y.jsxs)(H.Z,{isOpen:i,variant:"small",removeClose:!0,className:P.logoutPopup,children:[(0,y.jsx)(H.Z.Header,{title:w("logoutDialog.confirmation.title"),titleSize:"sm"}),(0,y.jsx)(H.Z.Body,{className:"dialogBody",children:(0,y.jsxs)("div",{className:"buttonWrapper",children:[(0,y.jsx)(W.Z,{id:"DialogLogout_Button_Logout_Yes",label:w("layout.LogoutDialog.button.yes"),color:"secondary",onClick:function(){return k("empty",function(){o(!1),_({messageType:"LOGOUT"})})}}),(0,y.jsx)(W.Z,{id:"DialogLogout_Button_Logout_Cancel",label:w("layout.LogoutDialog.button.no"),color:"light",variant:"outlined",onClick:function(){return o(!1)}})]})})]}),N&&c&&(0,y.jsxs)(H.Z,{isOpen:c,variant:"small",removeClose:!0,className:P.rebateNotif,children:[(0,y.jsxs)(H.Z.Header,{className:"dialogHeader",children:[(0,y.jsx)(q.Z,{className:"containerSuccess"}),(0,y.jsx)(h.Z,{size:"lg",className:"title",children:w("RebateProvider.success.title")})]}),(0,y.jsxs)(H.Z.Body,{className:"dialogBody",children:[(0,y.jsx)(h.Z,{size:"sm",weight:"regular",children:w("RebateProvider.success.description",{success:u})}),(0,y.jsx)(W.Z,{label:w("layout.rebateDialog.button.ok"),color:"primary",fullWidth:!0,onClick:function(){s(!1),f(null)}})]})]})]})},ex=n(50029),ev=n(64687),eb=n.n(ev),ej=n(1849),ew=n(94532),ey=n(2525),eZ=n(40995),eC=n(78921),eO=n(51937),eN=n(27210),ek=n(7908),eP=n(77919),e_=n(80810),eS=n(66295),eI=n(49506),eL=n(40987),eD=n(10693),eB=n(74231);function eE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eE(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eA=function(){var e=(0,x.$G)().t,t=(0,v.ZP)().handlePush,n=(0,p.useState)(void 0),r=n[0],i=n[1],o=(0,p.useState)(!1),a=o[0],c=o[1],s=(0,p.useState)(!1),l=s[0],u=s[1],d=(0,g.Eu)(),f=d.handleLogin,h=d.failedLoginCount,m=d.setFailedLoginCount,b=(0,Y.$G)().postMessage,j=(0,R.tj)().fetchLevelDetailData,w=(0,p.useState)(!1),Z=w[0],C=w[1],O=h>=e_.Z.showCaptchaLoginLimitCount,N=(0,eI.m)(),k=N.captcha,P=N.captchaKey,_=N.isCaptchaError,S=N.updateCaptcha,I=(0,p.useMemo)(function(){return eB.Ry().shape({username:eB.Z_().label(e("username")).required("error.required"),password:eB.Z_().label(e("password")).required("error.required"),captcha:eB.Z_().label(e("captcha")).when("captcha",{is:function(){return Z},then:function(e){return e.required("error.required")}})},[["captcha","captcha"]])},[Z]),L=(0,eL.Z)(I),D=(0,eD.cI)({resolver:L,mode:"all"}),B=D.control,E=D.handleSubmit,T=D.resetField,A=D.setFocus,z=D.setValue;(0,p.useEffect)(function(){z("captcha","")},[k]);var M=function(){var t=(0,ex.Z)(eb().mark(function t(n){var r,i;return eb().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,eZ.Z)({captcha_key:P.current,captcha_value:n.captcha});case 2:if(!(null!=(i=t.sent)&&null!==(r=i.data)&&void 0!==r&&r.correct_captcha)){t.next=5;break}return t.abrupt("return");case 5:throw{errorDesc:e("error.invalidCaptcha")};case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),F=function(){var t=(0,ex.Z)(eb().mark(function t(n){var r,o,s,l,u,d,p,g,x,v,w,y;return eb().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=2;break}return t.abrupt("return");case 2:if(i({all:void 0,password:void 0,username:void 0}),!(O&&!Z)){t.next=8;break}return S(),C(!0),setTimeout(function(){A("captcha")},100),t.abrupt("return");case 8:if(t.prev=8,c(!0),!Z){t.next=14;break}return t.next=13,M(n);case 13:C(!1);case 14:return t.next=16,f({username:n.username,password:n.password,onSuccess:function(e){j(),b({messageType:"LOGIN",playerData:e})}});case 16:m(0),Z&&C(!1),t.next=37;break;case 20:t.prev=20,t.t0=t.catch(8),m(h+1),p=eT({},t.t0),g=null!==(r=null===t.t0||void 0===t.t0?void 0:t.t0.username)&&void 0!==r?r:"",x=null!==(o=null===t.t0||void 0===t.t0?void 0:t.t0.password)&&void 0!==o?o:"",v=null!==t.t0&&void 0!==t.t0&&t.t0.errorCode&&"invalid"!==t.t0.errorCode?t.t0.errorCode:"",w=null!==(s=null===t.t0||void 0===t.t0?void 0:t.t0.captcha_value)&&void 0!==s?s:"",y=(null==p?void 0:p.captcha_value)||(null==p?void 0:p.captcha_key)||(null==p?void 0:p.errorDesc)===e("error.invalidCaptcha"),g&&(g=e(g,eT({defaultValue:g,ns:"common"},null===t.t0||void 0===t.t0?void 0:t.t0.errorObject))),x&&(x=e(x,eT({defaultValue:x,ns:"common"},null===t.t0||void 0===t.t0?void 0:t.t0.errorObject))),v&&(v=e(v,eT({defaultValue:v,ns:"common"},null===t.t0||void 0===t.t0?void 0:t.t0.errorObject))),w.length&&(w=e("error.captcha",eT({ns:"common"},null===t.t0||void 0===t.t0?void 0:t.t0.errorObject))),(null===t.t0||void 0===t.t0?void 0:t.t0.status)===eS.Z.enum.TERMINATED&&(p.username="",p.errorDesc="Username and Password didn't match!"),(null===t.t0||void 0===t.t0?void 0:t.t0._status)!=="400"||y||(T("password"),setTimeout(function(){A("password")},100)),y&&(S(),setTimeout(function(){A("captcha")},100)),i({all:null!==(l=v)&&void 0!==l?l:null==p?void 0:p.errorDesc,password:null!==(u=x)&&void 0!==u?u:void 0,username:null!==(d=g)&&void 0!==d?d:void 0,captcha:w});case 37:return t.prev=37,c(!1),t.finish(37);case 40:case"end":return t.stop()}},t,null,[[8,20,37,40]])}));return function(e){return t.apply(this,arguments)}}();return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(eO.Z,{onSubmit:E(F),noValidate:!0,className:"flex flex-row items-center [&_.input-wrapper]:h-10",isDisabled:a,children:[(0,y.jsx)(eP.Z,{label:null==r?void 0:r.username,position:"bottom",show:null!=r&&!!r.username,id:"AppBar_Tooltip_usernameError",className:"tooltipLogin -mt-4",children:(0,y.jsx)(ek.Z,{id:"LoginForm_Input_username",placeholder:e("username"),name:"username",required:!0,autoFill:"username",control:B,fullWidth:!0,setError:function(e){return i(eT(eT({},r),{},{username:e}))},endNode:(0,y.jsx)($.Z,{}),onFocus:function(e){e.target.setAttribute("autocomplete","off")},onBlur:function(e){z("username",e.target.value.trim())},errorMessageVariant:"disable",inputClassName:"inputText w-full mr-1.5 mb-4 h-10",tooltipClassName:"tooltipLogin",inputWrapperProps:{"data-testid":"username-field"}})}),(0,y.jsx)(eP.Z,{label:null==r?void 0:r.password,position:"bottom",show:null!=r&&!!r.password,id:"AppBar_Tooltip_passwordError",className:"tooltipLogin -mt-4",children:(0,y.jsx)(ek.Z,{id:"LoginForm_Input_password",placeholder:e("password"),name:"password",type:l?"text":"password",autoFill:"current-password",required:!0,fullWidth:!0,control:B,error:null==r?void 0:r.password,setError:function(e){return i(eT(eT({},r),{},{password:e}))},onBlur:function(e){z("password",e.target.value.trim())},endNode:(0,y.jsx)("div",{id:"LoginForm_Svg_togglePasswordVisiblity",children:l?(0,y.jsx)(ew.Z,{onClick:function(){return u(!1)}}):(0,y.jsx)(ey.Z,{onClick:function(){return u(!0)}})}),onFocus:function(e){e.target.setAttribute("autocomplete","off")},errorMessageVariant:"disable",inputClassName:"inputText w-full mr-1.5 mb-4 h-10",tooltipClassName:"tooltipLogin",inputWrapperProps:{"data-testid":"password-field"}})}),(0,y.jsx)(eP.Z,{label:null==r?void 0:r.all,position:"bottom",show:null!=r&&!!r.all,id:"AppBar_Tooltip_generalError",className:"tooltipLogin -mt-4",children:(0,y.jsx)(W.Z,{type:"submit",isLoading:a,label:e("login"),color:"light",className:"loginButton text-neutral-1000 min-w-[90px] ml-1",id:"LoginForm_Button_submit"})}),(0,y.jsx)(W.Z,{label:e("register"),color:"secondary",className:"loginButton registerButton min-w-[90px] ml-1",onClick:function(){return t("/register",{},!0)},id:"LoginForm_Button_register"})]}),(0,y.jsxs)(H.Z,{isOpen:Z,variant:"small",className:"loginDialog",onClose:function(){C(!1)},children:[(0,y.jsx)(H.Z.Header,{title:e("login"),onClose:function(){return C(!1)}}),(0,y.jsx)(H.Z.Body,{className:"p-5 block w-full",children:(0,y.jsxs)(eO.Z,{onSubmit:E(F),noValidate:!0,className:"flex flex-col justify-center w-full gap-2.5",isDisabled:a,children:[(null==r?void 0:r.all)&&(0,y.jsx)(eC.Z,{severity:"error",className:"alert mb-2.5",id:"LoginDialog_Span_error",children:null==r?void 0:r.all}),_?(0,y.jsx)(eC.Z,{severity:"error",className:"alert mb-2.5",children:e("captchaFail")}):k&&(0,y.jsx)(eN.Z,{unoptimized:!0,src:k,alt:"image captcha",width:280,height:50,imageType:"base64",className:"rounded-lg"}),(0,y.jsx)(ek.Z,{placeholder:e("form.placeholder.captcha"),name:"captcha",inputCheckId:"LoginDialog_Button_captcharefresh",required:!0,disabled:a,control:B,fullWidth:!0,error:null==r?void 0:r.captcha,setError:function(e){return i(eT(eT({},r),{},{captcha:e}))},inputCheckType:"WARNING",inputCheckLabel:e("refreshCaptcha"),inputCheckNode:(0,y.jsx)(ej.Z,{className:"reloadCaptchaButton"}),onClickInputCheck:S,inputWrapperProps:{"data-testid":"captcha-field"}}),(0,y.jsx)(W.Z,{id:"LoginDialog_Button_submit",className:"captchaButtonLogin",type:"submit",isLoading:a,label:e("login"),color:"primary","data-testid":"button-submit-captcha"})]})})]})]})},ez=n(51973),eM=function(e){var t=e.t,n=e.onClose;return(0,y.jsxs)(d.Z,{className:"helpCenterSection",children:[(0,y.jsx)(h.Z,{size:"md",weight:"medium",children:t("helpCenter")}),(0,y.jsx)(d.Z,{children:(0,y.jsx)(ez.Z.Next,{href:"/help-center/contact-us",children:(0,y.jsx)(ez.Z,{onClick:n,className:"helpCenterLink",id:"HelpCenterSection_Link_contactUs",children:(0,y.jsx)(h.Z,{size:"sm",weight:"bold",color:"secondaryDefault",children:t("contactUs")})})})})]})},eW=n(75222),eF=function(e){var t=e.levelUpStatus,n=(0,v.ZP)().handlePush,r=24,i=(0,eW.q)().userProfile;return(0,y.jsx)(W.Z,{color:"borderless-neutral-2",onClick:function(){return t&&n("/my-vip")},startIcon:(0,y.jsx)(eN.Z,{src:null==i?void 0:i.playerLevelIcon,alt:null==i?void 0:i.playerLevel,width:r,height:r}),children:(0,y.jsx)(h.Z,{onClick:function(){return t&&n("/my-vip")},id:"AppBar_Span_playerLevel",children:null==i?void 0:i.playerLevel})})},eR=n(84354),eG=n(20108),eH=j()(function(){return n.e(8990).then(n.bind(n,28990))},{ssr:!1,loadableGenerated:{webpack:function(){return[28990]}}}),eV=function(){var e=(0,eW.q)(),t=e.updateUserWalletAmount,n=e.isWalletFetching,r=e.userWallet,i=(0,x.$G)().t,o=(0,v.ZP)().handlePush;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"walletSection",children:n?(0,y.jsx)(eG.Z,{className:"text-secondary-default",size:24}):(0,y.jsxs)(W.Z,{color:"borderless-neutral-2",onClick:t,"data-testid":"wallet-icon",startIcon:(0,y.jsx)(eH,{className:"text-neutral-default",width:16,height:16}),children:[(0,y.jsx)(h.Z,{component:"p",children:"".concat((0,eR.KP)(null==r?void 0:r.balanceAmount))}),(0,y.jsx)(ej.Z,{className:"refreshIcon"})]})}),(0,y.jsx)(W.Z,{id:"AppBar_Button_deposit",label:i("deposit"),color:"secondary",fullWidth:!0,shine:!0,onClick:function(){return o("/deposit")},className:"depositButton ml-1 px-8"})]})},eU=n(843),eq=function(e){(0,c.Z)(e);var t=(0,p.useState)(!1),n=t[0],r=t[1],i=(0,x.$G)().t,o=(0,g.Eu)().isLoggedIn,a=(0,eW.q)().userProfile,f=(0,v.ZP)().handlePush,h=(0,p.useRef)(null);M(h,r);var m=(0,p.useState)(!1),b=m[0],j=m[1],w=(0,R.tj)().vipLevelDetail;return(0,p.useEffect)(function(){w&&j(w.levelup_setting.levelup_status)},[w]),(0,y.jsxs)(eU.Z,{children:[(0,y.jsx)(d.Z,{className:"relative flex items-center max-w-[1920px] px-6 h-16 min-h-16 justify-center self-center -ml-2.5 w-[calc(100%+10px)]",children:(0,y.jsxs)("div",{className:"container flex justify-between items-center w-full max-w-screen-wide",children:[(0,y.jsxs)(d.Z,{className:"flex items-center",children:[(0,y.jsx)("div",{className:"webLogo cursor-pointer h-8 w-[140px]",children:(0,y.jsx)(l.Z,{})}),(0,y.jsx)("div",{className:"ml-2.5",children:(0,y.jsx)(z,{})})]}),(0,y.jsxs)(d.Z,{className:"relative w-fit flex items-center justify-center pl-1",children:[o?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(eV,{}),(0,y.jsx)(W.Z,{color:"borderless-neutral-2",className:"username cursor-pointer ml-1",onClick:function(){return f("/profile")},startIcon:(0,y.jsx)(F.Z,{}),id:"AppBar_Button_username",children:a&&a.username}),a&&(0,y.jsx)(d.Z,{className:"flex items-center ml-1 ".concat(b?"cursor-pointer":""),children:(0,y.jsx)(eF,{levelUpStatus:b})})]}):(0,y.jsx)(eA,{}),(0,y.jsx)("div",{onClick:function(){return r(!0)},className:"cursor-pointer grid place-items-center ml-1",children:(0,y.jsx)(s.Z,{id:"NavigationBar_Svg_moreIcon"})}),n&&(0,y.jsx)("div",{className:"absolute right-6 top-10 rounded-lg bg-neutral-800 p-5 z-[2000] shadow-lg flex flex-col",ref:h,id:"AppBar_Div_contactUs",children:(0,y.jsx)(eM,{onClose:function(){return r(!1)},t:i})})]})]})}),(0,y.jsx)(eg,{}),(0,y.jsx)(u.Z,{})]})},e$=n(22341),eX=n(52418),eK=n(50563),eY=n(24098),eQ=n(80847),eJ=n(85019),e0=n(55980),e1=n(19193),e2=n(77082),e3=n(59608);function e5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e5(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var e8=j()(function(){return n.e(5580).then(n.bind(n,25580))},{ssr:!1,loadableGenerated:{webpack:function(){return[25580]}}}),e6=j()(function(){return n.e(119).then(n.bind(n,40119))},{ssr:!1,loadableGenerated:{webpack:function(){return[40119]}}}),e7=j()(function(){return n.e(8460).then(n.bind(n,57947))},{ssr:!1,loadableGenerated:{webpack:function(){return[57947]}}}),e9=j()(function(){return n.e(1515).then(n.bind(n,1515))},{ssr:!1,loadableGenerated:{webpack:function(){return[1515]}}}),te=j()(function(){return n.e(8561).then(n.bind(n,28561))},{ssr:!1,loadableGenerated:{webpack:function(){return[28561]}}}),tt=function(e){var t=e.children,n=e.layoutConfig,r=e.cmsData,c=e.contentStyle,s=(0,e1.xH)(),l=(0,g.Eu)().isLoggedIn;return(0,y.jsx)(e2.zx,{children:(0,y.jsx)(e3.eP,{children:(0,y.jsx)(Y.ZA,{children:(0,y.jsx)(R.$4,{children:(0,y.jsxs)(d.Z,{className:"flex flex-col",children:[(0,y.jsx)(eq,{}),(0,y.jsx)(d.Z,{component:"main",className:"bg-neutral-1000 flex-grow [&_a]:text-info-default",sx:e4({marginTop:"calc(".concat(w.Z.topAppBar.height,"px + ").concat(w.Z.bottomAppBarV2.height,"px  + ").concat(e0.Z.socialMediaAppBar.height,"px)"),minHeight:"calc(100vh - 30px - ".concat(w.Z.topAppBar.height,"px - ").concat(w.Z.bottomAppBarV2.height,"px)")},c),children:(0,y.jsx)(i.Z,{isResetOnChangePage:!0,isFullscreenError:!1,children:t})}),"true"===s.NEXT_PUBLIC_IS_POPUP_FIRST_TIME&&(0,y.jsx)(e8,{}),(0,y.jsx)(eK.Z,{}),(0,y.jsx)(a.Z,{}),(0,y.jsx)(eX.Z,{}),(0,y.jsx)(eQ.Z,{}),(null==n?void 0:n.showFooter)&&(0,y.jsx)(e$.Z,{hideFooterImage:null==n?void 0:n.hideFooterImage,seoSetting:null==r?void 0:r.seoSetting}),(0,y.jsx)(eY.Z,{}),!l&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(eJ.Z,{}),(0,y.jsx)(te,{}),(0,y.jsx)(e9,{})]}),l&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(e6,{}),(0,y.jsx)(e7,{}),(0,y.jsx)(o.Z,{})]})]})})})})})}},89061:function(e,t,n){var r=n(17674),i=n(77191),o=n(80810),a=n(61105),c=n(2666),s=n(27681),l=n(67294),u=n(88165),d=n(85893),p=o.Z.timerDelay.logoutIdle,f=1e3,h=function(e){(0,i.Z)(e);var t=(0,c.Eu)(),n=t.isLoggedIn,h=t.handleLogout,m=(0,s.$G)().postMessage,g=(0,a.Z)("LAST_ONLINE",void 0),x=(0,r.Z)(g,2),v=x[0],b=x[1],j=function(){if(n)try{h("allTabIdle",function(){return m({messageType:"LOGOUT"})})}catch(e){}},w=function(){b(new Date().getTime())},y=function(){if(n){if(!v){w();return}try{var e=(new Date().getTime()-Number(v))/f,t=p/f;if(e<=t){w();return}h("allTabIdle",function(){return m({messageType:"LOGOUT"})})}catch(e){}}};return(0,l.useEffect)(function(){y();var e=setInterval(function(){y()},o.Z.timerDelay.refreshLastLogin);return function(){clearInterval(e)}},[]),(0,u.Yp)({timeout:p,onIdle:j,crossTab:!0}),(0,d.jsx)(d.Fragment,{})};t.Z=h},98666:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(50029),i=n(64687),o=n.n(i),a=n(95289),c=n(72694),s=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.Z)().get("/public/promotion/angpao/status"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),l=function(){return(0,a.a)({staleTime:3e5,queryKey:["angpao-status"],queryFn:function(){return s()}})},u=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.Z)().get("/public/promotion/angpao/eligible-count"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),d=function(e){return(0,a.a)({staleTime:3e5,queryKey:["angpao-count"],queryFn:function(){return u()},enabled:e})},p=n(2666),f=n(5152),h=n.n(f),m=n(67294),g=n(85893),x=h()(function(){return Promise.all([n.e(8993),n.e(3637)]).then(n.bind(n,33637))},{ssr:!0,loadableGenerated:{webpack:function(){return[33637]}}});function v(){var e,t=(0,m.useState)(!0),n=t[0],r=t[1],i=(0,p.Eu)().isLoggedIn,o=l().data,a=d(null!=i&&i).data;return o&&"INACTIVE"!==o.data.status&&n?(0,g.jsx)(x,{count:null==a||null===(e=a.data)||void 0===e?void 0:e.total,onHideAngpao:function(){return r(!1)}}):(0,g.jsx)(g.Fragment,{})}},83791:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(50029),i=n(64687),o=n.n(i),a=n(26193),c=function(e){return(0,a.Z)().post("/public/rebate/claim/",e)},s=n(78921),l=n(30225),u=n(27438),d=n(32509),p=n(5752),f=n(84354),h=n(75222),m=n(60215),g=n(15526),x=n(67294),v=n(81986),b=n(1849),j=n(20108),w=n(85893),y=function(e){var t=e.t,n=e.openRebateNotif,i=e.setPopupAmount,a=(0,v.t)().palette,y=(0,m.IL)().isDesktopView,Z=(0,h.q)(),C=Z.updateUserRebateWalletAmount,O=Z.userWallet,N=Z.userPermission,k=(0,x.useMemo)(function(){return!!O&&(null==O?void 0:O.rebateMinimumToClaim)<=(null==O?void 0:O.rebateAmount)},[null==O?void 0:O.rebateMinimumToClaim,null==O?void 0:O.rebateAmount]),P=x.useRef(!0),_=(0,x.useState)({errorCode:"",isShow:!1}),S=_[0],I=_[1],L=(0,x.useState)(!0),D=L[0],B=L[1],E=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),e.prev=1,e.next=4,C();case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:return e.prev=8,B(!1),e.finish(8);case 11:case"end":return e.stop()}},e,null,[[1,6,8,11]])}));return function(){return e.apply(this,arguments)}}(),T=function(){var e=(0,r.Z)(o().mark(function e(){var t;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),e.prev=1,i(t=O.rebateMaximumToClaim>O.rebateAmount?O.rebateAmount:O.rebateMaximumToClaim),e.next=6,c({amount:t});case 6:return e.next=8,C();case 8:n(!0),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),I({errorCode:e.t0.errorCode,isShow:!0});case 14:return e.prev=14,B(!1),e.finish(14);case 17:case"end":return e.stop()}},e,null,[[1,11,14,17]])}));return function(){return e.apply(this,arguments)}}();return((0,x.useEffect)(function(){if(P.current){P.current=!1;return}},[]),(0,x.useEffect)(function(){P.current||C().then(function(){return B(!1)})},[]),(null==O?void 0:O.rebateMinimumToClaim)===void 0)?(0,w.jsx)(d.Z,{stacks:[{variant:"text"},{variant:"rectangular",height:80}]}):(0,w.jsxs)(l.Z,{className:(0,g.cn)(["flex flex-col justify-center items-center space-y-2",!y&&"bg-white-translucent-600 rounded-lg border border-white-translucent-700 p-6"]),children:[(0,w.jsx)(p.Z,{size:"xl",color:y?"neutral300":"whiteTranslucent100",weight:"medium",component:"div",children:t("rebate")}),S.isShow&&(0,w.jsx)(s.Z,{className:"[&_span]:text-xs",severity:"error",id:"RebateSection_Alert_error",isCloseable:!0,onClose:function(){return I({errorCode:"",isShow:!1})},children:t("error.".concat(S))}),!k&&(0,w.jsx)(s.Z,{className:"[&_span]:text-xs",severity:"error",id:"RebateSection_Alert_insufficientRebate",children:t("error.insufficientRebate",{amount:(0,f.KP)(null==O?void 0:O.rebateMinimumToClaim)})}),(0,w.jsx)(p.Z,{size:"xs",weight:"regular",children:t("collectedRebate")}),(0,w.jsx)(u.Z,{color:"borderless-neutral-1",onClick:E,startIcon:D&&(0,w.jsx)(j.Z,{className:"w-4 h-4 mt-1",color:a.neutralDefault}),endIcon:!D&&(0,w.jsx)(b.Z,{className:"mt-1"}),children:(0,w.jsx)(p.Z,{size:"lg",weight:"bold",id:"RebateSection_Span_amount",children:(0,f.KP)(O.rebateAmount)})}),O.claimable&&(0,w.jsx)(u.Z,{id:"RebateSection_Span_submit",label:t("claimNow"),color:"secondary",isDisabled:(null==N?void 0:N.isSuspended)||!k||D,onClick:T})]})}},22341:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(30225),i=n(5752),o=n(44642),a=n(27210),c=n(2135),s=n(42192);n(67294);var l=n(85893),u=function(e){var t=e.color,n=void 0===t?"#D52D39":t,r=e.width,i=void 0===r?60:r,o=e.height,a=void 0===o?60:o,c=e.className,s=e.onClick;return(0,l.jsxs)("svg",{width:i,height:a,className:c,onClick:s,viewBox:"0 0 62 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_8479_158262)",children:[(0,l.jsx)("path",{d:"M51.2047 17.0112C48.6465 10.9348 43.9217 6.02589 37.9476 3.2373C31.9735 0.448724 25.1763 -0.0205156 18.8757 1.92068C12.5751 3.86189 7.22053 8.07502 3.8516 13.7422C0.482677 19.4093 -0.660266 26.1261 0.644663 32.5885C1.94959 39.051 5.60929 44.798 10.9133 48.7139C16.2172 52.6297 22.787 54.435 29.3472 53.7793C35.9074 53.1236 41.9899 50.0536 46.4139 45.1654C50.8379 40.2772 53.2877 33.9195 53.2877 27.3266C53.2922 23.7832 52.5838 20.2751 51.2047 17.0112V17.0112ZM50.077 27.3266C50.077 40.1691 39.6297 50.616 26.7877 50.616C13.9456 50.616 3.49827 40.1687 3.49827 27.3266C3.49827 14.4846 13.9456 4.03727 26.7877 4.03727C39.6297 4.03727 50.077 14.4846 50.077 27.3266Z",fill:n}),(0,l.jsx)("path",{d:"M38.8056 28.4286H35.5005V26.276H38.8056V23.3281H41.1954V26.276H44.5005V28.4286H41.1954V31.3281H38.8056V28.4286Z",fill:"#FFF"}),(0,l.jsx)("path",{d:"M21.5005 35.3281H9.67873V32.3478L13.6552 28.2133C14.7916 26.9914 15.5342 26.1572 15.8832 25.7104C16.2321 25.2637 16.4753 24.8801 16.6128 24.5597C16.7499 24.242 16.8205 23.8983 16.8201 23.5508C16.8201 23.1155 16.6826 22.7718 16.4078 22.5198C16.1329 22.2678 15.7467 22.1421 15.2492 22.1427C14.7365 22.1427 14.2184 22.2937 13.695 22.5958C13.1716 22.8979 12.5793 23.3427 11.9183 23.9302L9.50049 21.0166C10.3398 20.2431 11.0454 19.6897 11.6173 19.3565C12.2036 19.0174 12.8313 18.7605 13.4838 18.5924C14.1559 18.4164 14.9117 18.3283 15.7512 18.3281C16.8056 18.3281 17.747 18.5195 18.5754 18.9022C19.4038 19.2849 20.0464 19.8303 20.5033 20.5383C20.9598 21.2466 21.1882 22.0409 21.1886 22.921C21.1886 23.5785 21.1087 24.1856 20.9489 24.7421C20.7785 25.3232 20.529 25.8765 20.208 26.3857C19.8739 26.9241 19.4302 27.4912 18.8768 28.0868C18.3235 28.6824 17.1445 29.8124 15.3397 31.4767V31.5913H21.5005V35.3281Z",fill:"#FFF"}),(0,l.jsx)("path",{d:"M32.5005 35.3281H28.2942V26.8568C28.2942 25.8281 28.3152 24.8868 28.3571 24.033C28.0612 24.4012 27.7386 24.7453 27.3922 25.062L25.6507 26.5617L23.5005 23.8049L28.7662 19.3281H32.5005V35.3281Z",fill:"#FFF"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_8479_158262",children:(0,l.jsx)("rect",{width:"53",height:"53",fill:"#FFF",transform:"translate(0.287598 0.828125)"})})})]})},d=n(19193),p=n(60215),f=n(76395),h={asf:{source:"/images/footer/asf-logo.webp",alt:"ASF Logo Image"},victory:{source:"/images/footer/victory-engine-logo.webp",alt:"Victory Engine Logo Image"},pagcor:{source:"/images/footer/pagcor-logo.webp",alt:"Pagcor Logo image"}},m=n(18872),g=n(55980),x=n(46325),v=n(81986),b=function(){var e=(0,v.t)(),t=e.palette,n=e.gradient;return{appFooterContainer:(0,m.iv)({paddingBottom:"4px",zIndex:g.Z.zIndex.bottomNavigation-1,display:"flex",flexDirection:"column","& .dividerWrapper":{width:"100%",height:"1px",padding:"0 16px",backgroundColor:t.neutral900,"& .divider":{margin:"auto",borderTop:"0.5px solid #303030"}},"& .imageSectionContainer":{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"67px",backgroundColor:t.neutral900,"& .imageWrapper":{width:"25%","&.asf":{maxWidth:88,marginRight:10},"&.victory":{maxWidth:50,marginRight:10},"&.pagcor":{maxWidth:"fit-content",maxHeight:"fit-content",marginRight:10},"&.adultContent":{maxWidth:"26px",display:"flex",alignItem:"center"}}},"& .gamblingPolicyContainer":{backgroundColor:t.neutral900,"& .policyText":{textAlign:"center",color:t.neutral400,textDecoration:"underline",cursor:"pointer",marginBottom:"20px"}},"& .seoSectionContainer":{color:t.neutralDefault,padding:"28px 12px",backgroundColor:t.neutral900,"& .content":{maxWidth:"100%",overflowX:"hidden",margin:"auto",wordWrap:"break-word",textAlign:"center"}},"& .footBarSectionContainer":{background:n.primary,textAlign:"center",padding:12,paddingBottom:"".concat(g.Z.bottomNavigation.height+12,"px")},"& .authFootBarSectionContainer":{background:n.primary,textAlign:"center",padding:12,paddingBottom:g.Z.bottomNavigation.height}}),appFooterDesktopContainer:(0,m.iv)({zIndex:g.Z.zIndex.bottomNavigation-1,display:"flex",flexDirection:"column","& .dividerWrapper":{width:"100%",height:"1px",padding:"0 5%",backgroundColor:t.neutral900,"& .divider":{margin:"auto",borderTop:"0.5px solid #303030",maxWidth:"1340px"}},"& .imageSectionContainer":{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"138px",backgroundColor:t.neutral900,"& .imageWrapper":{width:"25%","&.asf":{maxWidth:177,marginRight:20},"&.victory":{maxWidth:85,marginRight:20},"&.pagcor":{maxWidth:"fit-content",maxHeight:"fit-content",marginRight:20},"&.adultContent":{maxWidth:"53px",height:"100%",display:"flex",alignItems:"center"}}},"& .seoSectionContainer":{color:t.neutralDefault,padding:"0px 15% 40px 15%",fontSize:14,backgroundColor:t.neutral900,"& .content":{maxWidth:"100%",overflowX:"hidden",margin:"auto",wordWrap:"break-word",textAlign:"center"}},"& .gamblingPolicyContainer":{backgroundColor:t.neutral900,"& .policyText":{textAlign:"center",color:t.neutral400,textDecoration:"underline",cursor:"pointer",marginBottom:"20px"}},"& .footBarSectionContainer":{background:t.primaryDefault,textAlign:"center",padding:12,height:x.Z.bottomNavigation.height},"& .footBarText":{fontSize:10,fontStyle:"normal",fontWeight:300}})}},j=function(e){var t=e.seoSetting,n=void 0===t?null:t,m=e.hideFooterImage,g=b(),x=(0,p.IL)().isDesktopView,v=(0,f.$G)("common").t,j=(0,s.ZP)().handlePush,w=(0,d.xH)();return(0,l.jsxs)(r.Z,{className:x?g.appFooterDesktopContainer:g.appFooterContainer,children:[(0,l.jsx)(r.Z,{className:"dividerWrapper",children:(0,l.jsx)("div",{className:"divider"})}),!m&&(0,l.jsxs)(r.Z,{className:"imageSectionContainer",children:[(0,l.jsx)(r.Z,{className:"imageWrapper asf","data-testid":"asf-logo",children:(0,l.jsx)(a.Z,{src:h.asf.source,alt:h.asf.alt,width:388,height:80,imageSource:"internal",layout:"responsive",priority:!0})}),(0,l.jsx)(r.Z,{className:"imageWrapper pagcor","data-testid":"pagcor-logo",children:(0,l.jsx)(a.Z,{src:h.pagcor.source,alt:h.pagcor.alt,width:x?79:40,height:x?72:32,imageSource:"internal"})}),"V1001"===w.NEXT_PUBLIC_BRAND_CODE&&(0,l.jsx)(r.Z,{className:"imageWrapper victory","data-testid":"victory-engine-logo",children:(0,l.jsx)(a.Z,{src:h.victory.source,alt:h.victory.alt,width:x?90:50,height:x?77:40,imageSource:"internal"})}),(0,l.jsx)(r.Z,{className:"imageWrapper adultContent",children:(0,l.jsx)(u,{width:"100%",height:"100%"})})]}),(0,l.jsx)(r.Z,{className:"gamblingPolicyContainer",children:(0,l.jsx)(i.Z,{size:"sm",className:"policyText",onClick:function(){j("/policy-gambling")},component:"p",children:v("policyGambling.headline")})}),(null==n?void 0:n.typography)&&(0,l.jsx)(r.Z,{className:"seoSectionContainer",children:(0,l.jsx)(r.Z,{className:"content",children:(0,l.jsx)(o.Z,{content:null==n?void 0:n.typography})})}),(0,l.jsx)(r.Z,{className:"footBarSectionContainer",children:(0,l.jsx)(i.Z,{className:"footBarText",size:"sm",component:"p",children:v("footer.copyright",{brandName:w.NEXT_PUBLIC_SITE_NAME,year:(0,c.lL)()})})})]})}},52418:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(18871),i=n(5152),o=n.n(i),a=n(30795),c=n(2666),s=n(67294),l=function(){var e=(0,c.Eu)(),t=e.isLoggedIn,n=e.setLoginCallback;e.removeLoginCallback;var i=(0,s.useState)(!1),o=i[0],l=i[1],u=(0,r.Z)().setOpen,d=(0,a.Vn)({enabled:!1}).refetch,p=function(){d().then(function(e){var t;null!==(t=e.data)&&void 0!==t&&null!==(t=t.data)&&void 0!==t&&t.status&&l(!0)})};(0,s.useEffect)(function(){t&&o&&(u(!0),l(!1))},[t,o]),(0,s.useEffect)(function(){n("dailyBonus",p)},[])},u=n(85893),d=o()(function(){return Promise.all([n.e(4003),n.e(2862)]).then(n.bind(n,32862))},{loadableGenerated:{webpack:function(){return[32862]}}}),p=function(){var e=(0,r.Z)().data;return l(),(null==e?void 0:e.open)&&(0,u.jsx)(d,{})}},50563:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(50029),i=n(64687),o=n.n(i),a=n(72694),c=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,a.Z)().get("/public/cms/floating-widget/"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),s=n(30225),l=n(27210),u=n(85893),d=function(e){var t=e.width,n=void 0===t?40:t,r=e.height,i=void 0===r?32:r,o=e.className,a=e.onClick;return(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:i,fill:"none",viewBox:"0 0 40 32",className:o,onClick:a,"data-testid":"widget-list",children:(0,u.jsx)("path",{fill:"#BFBFBF",d:"M32 4H8a2 2 0 100 4h24a2 2 0 100-4zM32 14H8a2 2 0 100 4h24a2 2 0 100-4zM32 24H8a2 2 0 100 4h24a2 2 0 100-4z"})})},p=function(e){var t=e.width,n=void 0===t?24:t,r=e.height,i=void 0===r?24:r,o=e.className,a=e.onClick;return(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:i,fill:"none",viewBox:"0 0 24 24",className:o,onClick:a,"data-testid":"widget-close",children:(0,u.jsx)("path",{fill:"#BFBFBF",fillRule:"evenodd",d:"M12 9.525l8.132-8.132a2 2 0 112.828 2.829l-8.132 8.132 7.425 7.424a2 2 0 01-2.828 2.829L12 15.182l-7.424 7.425a2 2 0 11-2.829-2.829l7.425-7.424L1.04 4.222a2 2 0 112.828-2.829L12 9.525z",clipRule:"evenodd"})})},f=n(67294),h=n(73935),m=n(18872),g=n(81986),x=function(){var e=(0,g.t)(),t=e.palette,n=e.spacing;return{container:(0,m.iv)({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:6,border:"1px solid ".concat(t.neutral400),background:t.darkTranslucent200,zIndex:1202,width:52,height:52,bottom:75,left:15,cursor:"pointer"}),widgetContainer:(0,m.iv)({position:"fixed",display:"flex",flexDirection:"column-reverse",flexWrap:"wrap",justifyContent:"flex-start",zIndex:1202,maxHeight:"calc(5 * 70px)",bottom:130,left:15,"& a":{width:50,height:50,marginBottom:n(5),"&:nth-child(1), &:nth-child(2), &:nth-child(3), &:nth-child(4), &:nth-child(5)":{marginRight:n(7.5)}}})}};function v(){var e=x(),t=(0,f.useState)(null),n=t[0],i=t[1],a=(0,f.useState)(!1),m=a[0],g=a[1],v=(0,f.useState)([]),b=v[0],j=v[1],w=function(e){g(!m),e.currentTarget&&i(e.currentTarget)},y=function(){i(null),g(!m)},Z={bottom:(null==n?void 0:n.getBoundingClientRect().height)+75,left:null==n?void 0:n.getBoundingClientRect().left},C=(0,f.useCallback)((0,r.Z)(o().mark(function e(){var t;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c();case 3:j(null==(t=e.sent)?void 0:t.data),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0);case 10:case"end":return e.stop()}},e,null,[[0,7]])})),[]);(0,f.useEffect)(function(){C()},[]);var O=[(0,u.jsx)("button",{className:e.container,onClick:w,"data-testid":"button-floating-widget",children:m?(0,u.jsx)(p,{}):(0,u.jsx)(d,{})},0),m&&(0,u.jsx)(s.Z,{className:e.widgetContainer,style:Z,children:null==b?void 0:b.map(function(e){return(0,u.jsx)("a",{href:null==e?void 0:e.hyperlink_url,target:"_blank","data-testid":"floating-widget-link-".concat(null==e?void 0:e.id),onClick:y,children:(0,u.jsx)(l.Z,{src:"/".concat(null==e?void 0:e.image_url),imageSource:"cobo",alt:null==e?void 0:e.title,width:50,height:50,style:{objectFit:"cover"}})},null==e?void 0:e.id)})},1)];return(null==b?void 0:b.length)>0&&(0,h.createPortal)(O,document.body)}},24098:function(e,t,n){n.d(t,{Z:function(){return N}});var r=n(50029),i=n(64687),o=n.n(i),a=n(72694),c=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,a.Z)().get("/public/cms/jackpot-settings"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),s=n(582),l=function(){return(0,s.Z)().get("/public/transaction/jackpot-winner/")},u=n(59499),d=n(77191),p=n(36864),f=n(51397),h=n(85893);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var x=function(e){var t=(0,p.Z)({},((0,d.Z)(e),e));return(0,h.jsx)(f.S,g({},t))},v=n(5752),b=n(84354),j=n(60215),w=n(76395),y=n(67294),Z=n(18872),C=function(){return{snackBar:(0,Z.iv)({display:"flex",justifyContent:"center",zIndex:1500,"& > div":{maxWidth:1340}})}},O=Object.freeze({animationDurationMs:4500,showNotificationIntervalMs:5500,refetchIntervalMs:12e4}),N=function(e){var t=e.config;t||(t=O);var n=C(),i=(0,j.IL)().isDesktopView,a=(0,y.useState)(),s=a[0],u=a[1],d=(0,y.useState)(!1),p=d[0],f=d[1],m=(0,y.useState)(!1),g=m[0],Z=m[1],N=(0,y.useRef)([]),k=(0,y.useRef)(!0);function P(){return _.apply(this,arguments)}function _(){return(_=(0,r.Z)(o().mark(function e(){var t,n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:n=e.sent,N.current=null!==(t=n.data.results)&&void 0!==t?t:[];case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function S(){return I.apply(this,arguments)}function I(){return(I=(0,r.Z)(o().mark(function e(){var t,n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!k.current){e.next=10;break}return e.prev=1,e.next=4,c();case 4:Z(null==(n=e.sent)||null===(t=n.data)||void 0===t?void 0:t.is_active),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:case"end":return e.stop()}},e,null,[[1,8]])}))).apply(this,arguments)}return((0,y.useEffect)(function(){k.current&&(S(),k.current=!1)},[]),(0,y.useEffect)(function(){g&&P().then(function(){return f(!0)})},[g]),(0,y.useEffect)(function(){if(p){var e=setInterval(function(){N.current.length>0&&(u(N.current.pop()),setTimeout(function(){return u(void 0)},t.animationDurationMs))},t.showNotificationIntervalMs),n=setInterval(function(){0===N.current.length&&P()},t.refetchIntervalMs);return function(){clearInterval(e),clearInterval(n)}}},[p]),p&&g&&s)?(0,h.jsx)(x,{visible:!0,className:n.snackBar,position:i?"bottom":"top",autoHideDuration:t.animationDurationMs,children:(0,h.jsx)(v.Z,{size:"sm",color:"neutral1000",children:(0,h.jsx)(w.cC,{ns:"common",i18nKey:"jackpot.winnerMessage",components:{b:(0,h.jsx)("b",{})},values:{username:s.player_username,amount:(0,b.KP)(+s.jackpot_amount)}})})}):(0,h.jsx)(h.Fragment,{})}},80847:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _app_node_modules_next_dist_compiled_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(50029),_app_node_modules_next_dist_compiled_babel_runtime_helpers_esm_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(77191),_app_node_modules_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(64687),_app_node_modules_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_app_node_modules_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_0__),_v88_api_public_cms_fetchActiveLiveChatSetting__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(35200),_v88_hooks_useRetry__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8852),_v88_plugin_store_authStorage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(75222),_v88_plugin_store_layoutStorage__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(52087),next_dynamic__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5152),next_dynamic__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_5__),next_script__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4298),next_script__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(next_script__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(67294),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(85893),LiveChatWidget=next_dynamic__WEBPACK_IMPORTED_MODULE_5___default()(function(){return __webpack_require__.e(64).then(__webpack_require__.bind(__webpack_require__,10064)).then(function(e){return e.LiveChatWidget})},{ssr:!1,loadableGenerated:{webpack:function(){return[10064]}}}),hideLiveChat=function(){return setLiveChat(!1)},showLiveChat=function(){return setLiveChat(!0)};function setLiveChat(e){var t=document.querySelector(".widget-visible")?document.querySelector(".widget-visible"):document.getElementById("chat-widget-container");null==t||t.setAttribute("style","display:".concat(e?"block":"none"," !important"))}var V88LiveChat=function(_ref){(0,_app_node_modules_next_dist_compiled_babel_runtime_helpers_esm_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_9__.Z)(_ref);var _userProfile$username,_useLayoutData=(0,_v88_plugin_store_layoutStorage__WEBPACK_IMPORTED_MODULE_4__.Q)(),visibility=_useLayoutData.liveChatVisibility,openLiveChat=_useLayoutData.openLiveChat,closeLiveChat=_useLayoutData.closeLiveChat,_useAuthData=(0,_v88_plugin_store_authStorage__WEBPACK_IMPORTED_MODULE_3__.q)(),userProfile=_useAuthData.userProfile,_useState=(0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(""),scriptContent=_useState[0],setScriptContent=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(!1),shouldLoadScript=_useState2[0],setShouldLoadScript=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(),liveChatInfo=_useState3[0],setLiveChatInfo=_useState3[1],_useState4=(0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(!1),isMounted=_useState4[0],setIsMounted=_useState4[1],_useRetry=(0,_v88_hooks_useRetry__WEBPACK_IMPORTED_MODULE_2__.Z)(),handleRetry=_useRetry.handleRetry,isMounting=(0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(!0),handleOnMount=(0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)((0,_app_node_modules_next_dist_compiled_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_10__.Z)(_app_node_modules_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_0___default().mark(function e(){return _app_node_modules_babel_runtime_regenerator_index_js__WEBPACK_IMPORTED_MODULE_0___default().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,_v88_api_public_cms_fetchActiveLiveChatSetting__WEBPACK_IMPORTED_MODULE_1__.Z)();case 3:setLiveChatInfo(e.sent.data),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),handleRetry(handleOnMount);case 11:case"end":return e.stop()}},e,null,[[0,8]])})),[]);(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function(){isMounting.current||(window.toggleLiveChat=function(){try{var _liveChatInfo$;eval(null==liveChatInfo||null===(_liveChatInfo$=liveChatInfo[0])||void 0===_liveChatInfo$?void 0:_liveChatInfo$.hyperlink_url)}catch(error){}})},[liveChatInfo]),(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function(){isMounting.current&&(handleOnMount().then(function(){return setIsMounted(!0)}),isMounting.current=!1)},[]),(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function(){return showLiveChat(),function(){return hideLiveChat()}},[]);var licenseId=(0,react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function(){if(isMounting.current)return"";var e,t,n,r,i=null!==(e=null==liveChatInfo||null===(t=liveChatInfo[0])||void 0===t?void 0:t.script)&&void 0!==e?e:"",o=/window\.__lc\.license = (\d+);/g,a=i.match(o);return null!=a&&a.length?a[0].match(/\d+/)[0]:null!==(n=null==i||null===(r=i.match(/href="([^"]*)/))||void 0===r||null===(r=r[1])||void 0===r||null===(r=r.split("/"))||void 0===r?void 0:r[4])&&void 0!==n?n:""},[liveChatInfo]);(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function(){var e,t,n,r,i,o,a,c,s=null!==(e=null==liveChatInfo||null===(t=liveChatInfo[0])||void 0===t?void 0:t.script)&&void 0!==e?e:"";if(!isMounting.current&&s){var l=s.indexOf("<script");s=null===(n=s)||void 0===n?void 0:n.substring(l+1,s.length);var u=null===(r=s)||void 0===r?void 0:r.indexOf(">");s=null===(i=s)||void 0===i?void 0:i.substring(u+1,null===(o=s)||void 0===o?void 0:o.length);var d=null===(a=s)||void 0===a?void 0:a.indexOf("</script>");s=null===(c=s)||void 0===c?void 0:c.substring(0,d),setTimeout(function(){setShouldLoadScript(!0),licenseId||setScriptContent(s)},5e3)}},[liveChatInfo]);var handleVisibilityChanged=function(e){switch(e.visibility){case"minimized":closeLiveChat();break;case"maximized":openLiveChat()}};return isMounted&&shouldLoadScript?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.Fragment,{children:[scriptContent&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(next_script__WEBPACK_IMPORTED_MODULE_6___default(),{id:"liveChatScript",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:scriptContent}}),licenseId&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(LiveChatWidget,{license:licenseId,visibility:visibility,customerName:null!==(_userProfile$username=null==userProfile?void 0:userProfile.username)&&void 0!==_userProfile$username?_userProfile$username:"Guest",onVisibilityChanged:handleVisibilityChanged})]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.Fragment,{})};__webpack_exports__.Z=V88LiveChat},85019:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(30225),i=n(27438),o=n(5752),a=n(76395),c=n(18872),s=n(81986),l=n(55980),u=function(){var e=(0,s.t)().palette;return{logoutMessageDialog:(0,c.iv)({zIndex:l.Z.zIndex.loginDialog+2,textAlign:"center","& .dialogBody":{"& .dialogBodyContent":{fontWeight:500,lineHeight:1.2}},"& .dialogFooter":{padding:"10px 20px 20px"}}),okButton:(0,c.iv)({color:e.neutralDefault,backgroundColor:e.infoDefault,width:"100%"})}},d=n(99777),p=n(52087),f=n(85893),h=function(){var e=(0,a.$G)("common").t,t=u(),n=(0,p.Q)(),c=n.logoutDialog,s=n.closeLogoutDialog;return"empty"===c.messageCode?(0,f.jsx)(f.Fragment,{}):(0,f.jsxs)(d.Z,{isOpen:c.isOpen,variant:"small",className:t.logoutMessageDialog,children:[(0,f.jsx)(d.Z.Body,{className:"dialogBody",children:c.messageCode&&(0,f.jsx)(r.Z,{className:"dialogBodyContent",children:(0,f.jsx)(o.Z,{size:"sm",children:e("logoutDialog.message.".concat(c.messageCode))})})}),(0,f.jsx)(d.Z.Footer,{className:"dialogFooter",children:(0,f.jsx)(i.Z,{type:"button",label:"OK",onClick:s,className:t.okButton,color:"primary"})})]})}},19166:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(50029),i=n(64687),o=n.n(i),a=n(582),c=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,a.Z)().get("/public/cms/contact-settings/widget/"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),s=n(42939),l=n(8852),u=n(67294),d=n(27210),p=n(18872),f=n(27438),h=n(42192),m=n(85893),g=function(e){var t=e.shine,n=(0,h.ZP)().handlePush;return(0,m.jsxs)(f.Z,{variant:"fill",color:"secondary",onClick:function(){return n("/deposit",{method:"QRIS"})},className:"widget fast-dp-btn",id:"AppBar_Button_fast-deposit","data-testid":"AppBar_Button_fast-deposit",shine:t,children:[(0,m.jsx)(d.Z,{src:"/images/LightningBoltFill.svg",alt:"lightning-icon",width:20,height:20,imageSource:"internal"}),"Fast Deposit"]})},x=function(e){var t=e.socialMediaSetting,n=e.widgetContainerClass,r=e.showFastDeposit;return(0,m.jsx)("div",{className:n,children:(0,m.jsxs)("div",{className:(0,p.cx)({container:!0,"fast-dp":r}),children:[(0,m.jsx)("div",{className:"socialMediaFloatingWidget",children:null==t?void 0:t.map(function(e,t){return(0,m.jsx)("a",{href:e.hyperlink_url,target:"_blank","data-testid":"social-media-link-".concat(e.id),className:"widget",children:(0,m.jsx)(d.Z,{src:e.icon_dark,alt:e.hyperlink_text,layout:"fixed",width:25,height:25})},t)})}),r&&(0,m.jsx)(g,{shine:!0})]})})},v=n(81986),b=function(){var e=(0,v.t)(),t=e.palette,n=e.spacing;return{widgetContainer:(0,p.iv)({width:"100vw",display:"flex",borderTop:"1px solid ".concat(t.neutral700),padding:"".concat(n(2.5),"px ").concat(n(6),"px"),alignSelf:"center",justifyContent:"center",backgroundColor:"".concat(t.neutral900),"& .container":{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",maxWidth:1340,"& .socialMediaFloatingWidget":{maxWidth:"1340px",width:"100%",display:"flex",alignSelf:"center",justifyContent:"flex-end",marginRight:n(5)},"& .widget":{width:28,height:28,"& img":{width:"100%",height:"100%",objectFit:"contain"},"&.fast-dp-btn":{maxWidth:130,width:"100%",height:40,"& img":{width:12,height:"100%",objectFit:"contain",marginRight:n(2)}}},"& .widget:not(:last-child)":{marginRight:n(2.5)}},"@media (max-width: 575px)":{padding:"".concat(n(2),"px ").concat(n(2.5),"px"),justifyContent:"space-between",".container":{marginLeft:0,"&.fast-dp":{"& .socialMediaFloatingWidget":{justifyContent:"revert"}},"& .socialMediaFloatingWidget":{width:"100%",marginRight:n(2.5),justifyContent:"flex-end"},"& .widget":{width:"8vw",height:"auto","&.fast-dp-btn":{width:200}},"& .widget:not(:last-child)":{marginRight:n(2.5)}}}})}},j=function(){var e=(0,u.useState)(!1),t=e[0],n=e[1],i=(0,u.useState)(),a=i[0],d=i[1],p=(0,l.Z)().handleRetry,f=(0,u.useRef)(!0),h=(0,s.Z)(),g=(0,u.useCallback)((0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c();case 3:return d(e.sent.data),e.next=8,h.refresh();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),p(g);case 13:case"end":return e.stop()}},e,null,[[0,10]])})),[]);(0,u.useEffect)(function(){f.current&&(g().then(function(){return n(!0)}),f.current=!1)},[]);var v=b();return t&&((null==a?void 0:a.length)!==0||h.data.status)?(0,m.jsx)(x,{socialMediaSetting:a,widgetContainerClass:v.widgetContainer,showFastDeposit:h.data.status}):(0,m.jsx)(m.Fragment,{})}},2734:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(17674),i=n(18872),o=n(60623),a=n(30225),c=n(27438),s=n(51973),l=n(65792),u=n(49672),d=n(63428),p=n(32509),f=n(5752),h=n(51760),m=n(67294),g=n(85893),x=function(e){var t=e.color,n=void 0===t?"#fff":t,r=e.width,i=void 0===r?20:r,o=e.height,a=void 0===o?20:o,c=e.className,s=e.onClick;return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:a,className:c,onClick:s,viewBox:"0 0 16.629 20",children:(0,g.jsx)("path",{fill:n,d:"M2508.189,228.932a2.514,2.514,0,0,0-.9-1.941h0l-1.177-1.177v-4.93c0-3.191-1.694-5.862-4.677-6.568v-.707a1.559,1.559,0,1,0-3.118,0v.707c-2.972.707-4.677,3.367-4.677,6.568v4.93l-1.177,1.177h0a2.513,2.513,0,0,0-.9,1.941Zm-13.677-2.245a1.234,1.234,0,0,0,.362-.873v-4.93c0-2.764,1.428-4.82,3.728-5.367a1.234,1.234,0,0,0,.949-1.2v-.707a.324.324,0,0,1,.648,0v.707a1.235,1.235,0,0,0,.95,1.2c2.3.545,3.727,2.6,3.727,5.367v4.93a1.234,1.234,0,0,0,.362.873l1.01,1.01H2493.5Zm3.284,3.284h4.157a2.079,2.079,0,0,1-4.157,0Zm2.4-12.835a.617.617,0,0,1-.472.735,2.574,2.574,0,0,0-2.17,2.572v.047a.617.617,0,0,1-1.235,0v-.047a3.8,3.8,0,0,1,3.142-3.779A.617.617,0,0,1,2500.2,217.136Z",transform:"translate(-2491.56 -212.05)"})})},v=n(60215),b=n(68869),j=n(76395),w=n(46636),y=function(e){var t,n=e.handleClick,r=e.notificationInfo,i=(0,j.$G)().t;return 0===r.list.length?(0,g.jsx)(g.Fragment,{}):(0,g.jsx)(g.Fragment,{children:null==r||null===(t=r.list)||void 0===t?void 0:t.map(function(e){return(0,g.jsx)(s.Z.Next,{href:"/notification/".concat(e.categoryName,"?msg=").concat(e.id),passHref:!0,children:(0,g.jsx)(a.Z,{component:"a",onClick:n,children:(0,g.jsx)(u.Z,{className:"containerListItem",children:(0,g.jsxs)(a.Z,{component:"div",className:"listItemContainer",style:{opacity:e.isRead?.4:1},children:[(0,g.jsx)(c.Z,{label:i(e.categoryName),variant:"outlined",color:"secondary",className:"bodyButton"}),(0,g.jsx)(f.Z,{size:"md",weight:"bold",color:"secondaryDefault",children:i(e.title)}),(0,g.jsx)(f.Z,{className:"bodyMessage",size:"sm",component:"div",color:"neutralDefault",dangerouslySetInnerHTML:{__html:(0,w.q)(null==e?void 0:e.body)}})]})})})},e.id)})})},Z=n(81986),C=function(e){var t=(0,Z.t)().palette;return{wrapperList:(0,i.iv)({padding:0,marginTop:10}),notificationPopoverContainer:(0,i.iv)({position:"relative",display:"flex","& .containerList":{paddingBottom:0,width:"100%",maxWidth:320,height:"auto",maxHeight:500,"& .containerListItem":{padding:20,borderRadius:0,borderBottom:"1px solid ".concat(t.whiteTranslucent600)},"& .listItemContainer":{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",rowGap:10,"& .bodyButton":{marginBottom:"8px"},"& .bodyMessage":{overflow:"hidden",width:"100%",whiteSpace:"pre-line","& p":{padding:0,margin:0},"& ul":{paddingLeft:20}}},"& .containerBtnListItem":{position:"sticky",bottom:0,display:"flex",width:"100%",padding:0,"& > div":{width:"100%"},"& .boxWidth":{width:"100%"},"& .btnListItem":{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",borderRadius:0,padding:12,textTransform:"capitalize",background:t.neutral800,borderTop:"1px solid ".concat(t.whiteTranslucent600)}}}}),notificationIcon:(0,i.iv)({marginLeft:0,marginTop:-4}),notificationButtonIcon:(0,i.iv)({marginRight:4}),spacingText:(0,i.iv)({marginLeft:5}),notificationBox:(0,i.iv)({display:"flex",marginTop:e?"unset":"12px",marginBottom:e?"0px":"auto","& svg":{marginTop:e?6:0,marginLeft:e?5:0},position:"relative",alignItems:"center","& div:first-child":{marginRight:4}})}},O=n(50029),N=n(59499),k=n(64687),P=n.n(k),_=n(26193),S=function(){var e=(0,O.Z)(P().mark(function e(){return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.Z)().get("/public/notification/navbar/"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),I=n(64529),L=n(32010);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){(0,N.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var E={navbarNotification:void 0},T=(0,I.Ue)(function(e){return B(B({},E),{},{setNavbarNotification:function(){var t=(0,O.Z)(P().mark(function t(n){var r,i,o,a;return P().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,S();case 3:r=t.sent,o=(i=new w.Z(r.data,n)).getList,a=i.getCount,e({navbarNotification:{list:o(),count:a()}}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.error(t.t0);case 11:case"end":return t.stop()}},t,null,[[0,8]])}));return function(e){return t.apply(this,arguments)}}()})}),A=function(){return T((0,L.N)(function(e){return e}))},z=function(){var e,t=(0,j.$G)().t,n=(0,m.useRef)(!0),w=(0,h.Z)(),Z=(0,r.Z)(w,1)[0],O=(0,v.IL)().isDesktopView,N=C(O),k=A(),P=k.navbarNotification,_=k.setNavbarNotification,S=(0,m.useState)(null),I=S[0],L=S[1];(0,m.useEffect)(function(){if(n.current){n.current=!1;return}},[]),(0,m.useEffect)(function(){n.current||_(Z)},[]);var D={vertical:"bottom",horizontal:"left"},B=(0,i.iv)({top:I?I.getBoundingClientRect().top+10+(null!=D&&D.vertical?(0,b.r2)(null==D?void 0:D.vertical,I):0):0}),E=function(e){_(Z),L(e.currentTarget)},T=function(){L(null)};if(!P)return(0,g.jsx)(p.Z,{stacks:[{variant:"rectangular",width:20,height:20}],stackSx:{padding:3}});var z=!!I,M=z?"simple-popover":void 0;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c.Z,{id:"AppBar_Button_notification",color:"borderless-neutral-1",onClickCapture:E,startIcon:(0,g.jsx)(o.Z,{badgeContent:null!==(e=P.count)&&void 0!==e?e:0,className:N.notificationIcon,horizontal:"right",vertical:"top",show:0!==P.count,children:(0,g.jsx)(x,{width:15,height:15,className:N.notificationButtonIcon})}),children:O&&(0,g.jsx)(f.Z,{size:"sm",component:"p",className:N.spacingText,children:t("notification")})}),(0,g.jsx)(d.Z,{id:M,isOpen:z,anchorEl:I,onClose:T,anchorOrigin:D,className:N.wrapperList,classNameBackdrop:B,backDrop:!0,children:(0,g.jsx)(a.Z,{className:N.notificationPopoverContainer,children:(0,g.jsxs)(l.Z,{className:"containerList",children:[(0,g.jsx)(y,{handleClick:T,notificationInfo:P}),(0,g.jsx)(u.Z,{className:"containerBtnListItem",children:(0,g.jsx)(s.Z.Next,{href:"/notification/announcement",passHref:!0,children:(0,g.jsx)(a.Z,{component:"a",className:"boxWidth",children:(0,g.jsx)(c.Z,{label:"test",className:"btnListItem",onClick:T,fullWidth:!0,color:"borderless-secondary",children:(0,g.jsx)(f.Z,{size:"sm",weight:"bold",color:"secondaryDefault",style:{lineHeight:"14px"},children:t("viewAllNotification")})})})})})]})})})]})}},39232:function(e,t,n){var r=n(77191),i=n(27210),o=n(32509),a=n(42192),c=n(19193),s=n(60215),l=n(9008),u=n.n(l),d=n(85893),p=function(e){(0,r.Z)(e);var t,n,l,p,f,h,m,g,x,v,b=(0,c.xH)(),j=(0,a.ZP)().handlePush,w=(0,s.IL)(),y=w.webImageInfo;return w.isWebImageInfoLoading?(0,d.jsx)(o.Z,{stacks:[{variant:"rectangular",height:36,width:"100%"}]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(u(),{children:[(0,d.jsx)("link",{rel:"apple-touch-icon",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(t=null==y?void 0:y.favicon_path)&&void 0!==t?t:"/favicon.ico")}),(0,d.jsx)("link",{rel:"apple-touch-icon",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(n=null==y?void 0:y.favicon_path)&&void 0!==n?n:"/favicon.ico")}),(0,d.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(l=null==y?void 0:y.favicon_path)&&void 0!==l?l:"/favicon.ico")}),(0,d.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(p=null==y?void 0:y.favicon_path)&&void 0!==p?p:"/favicon.ico")}),(0,d.jsx)("link",{rel:"apple-touch-icon",sizes:"167x167",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(f=null==y?void 0:y.favicon_path)&&void 0!==f?f:"/favicon.ico")}),(0,d.jsx)("link",{rel:"icon",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(h=null==y?void 0:y.favicon_path)&&void 0!==h?h:"/favicon.ico")}),(0,d.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(m=null==y?void 0:y.favicon_path)&&void 0!==m?m:"/favicon.ico")}),(0,d.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(g=null==y?void 0:y.favicon_path)&&void 0!==g?g:"/favicon.ico")}),(0,d.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,d.jsx)("link",{rel:"shortcut icon",href:"".concat(b.NEXT_PUBLIC_STATIC_FILES_URL).concat(null!==(x=null==y?void 0:y.favicon_path)&&void 0!==x?x:"/favicon.ico")})]}),(0,d.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,d.jsx)(i.Z,{priority:!0,src:null!==(v=null==y?void 0:y.dark_web_logo_path)&&void 0!==v?v:null==y?void 0:y.light_web_logo_path,alt:b.NEXT_PUBLIC_SITE_NAME,fill:!0,onClick:function(){return j("/")},id:"WebLogo_Img_webLogo"})})]})};t.Z=p},843:function(e,t,n){var r=n(85893),i=function(e){var t=e.children,n=e.className;return(0,r.jsx)("header",{className:"z-[1201] bg-gradient-primary shadow-md\n        flex flex-col w-full box-border fixed shrink-0 min-h-12 left-auto top-0 right-0\n        ".concat(n||""),children:t})};t.Z=i},60623:function(e,t,n){var r=n(59499),i=n(72283),o=n(85893);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=function(e){return(0,o.jsx)(i.Ct,c({},e))};t.Z=s},94361:function(e,t,n){var r=n(59499),i=n(77191),o=n(36864),a=n(79508),c=n(85893);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u=function(e){var t=(0,o.Z)({},((0,i.Z)(e),e));return(0,c.jsx)(a.A,l({},t))};t.Z=u},20108:function(e,t,n){var r=n(59499),i=n(4730),o=n(67294),a=n(7711),c=n(85893),s=["size","color","className"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var d=(0,o.forwardRef)(function(e,t){var n=e.size,r=e.color,o=e.className,l=(0,i.Z)(e,s);return(0,c.jsx)(a.D,u({ref:t,size:n,color:r,className:o},l))});d.displayName="Circular Progress",t.Z=d},31475:function(e,t,n){var r=n(59499),i=n(67294),o=n(75794),a=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l=(0,i.forwardRef)(function(e,t){return(0,a.jsx)(o.d,s({ref:t},e))});l.displayName="Drawer",t.Z=l},44642:function(e,t,n){var r=n(30225),i=n(85893),o=function(e){var t=e.content;return(0,i.jsx)(r.Z,{dangerouslySetInnerHTML:{__html:t},className:"[&_p]:m-0 [&_a]:text-info-default [&_a]:rounded-[4px] [&_a:hover]:bg-white-translucent-600"})};t.Z=o},51973:function(e,t,n){var r=n(4730),i=n(59499),o=n(41664),a=n.n(o),c=n(98101),s=n(85893),l=["children"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p=function(e){return(0,s.jsx)(c.r,d({},e))},f=function(e){var t=e.children,n=(0,r.Z)(e,l);return(0,s.jsx)(a(),d(d({},n),{},{legacyBehavior:!0,children:t}))};p.Next=f,t.Z=p},65792:function(e,t,n){var r=n(59499),i=n(4730),o=n(42062),a=n(85893),c=["children"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u=function(e){var t=e.children,n=(0,i.Z)(e,c);return(0,a.jsx)(o.a,l(l({},n),{},{children:t}))};t.Z=u},49672:function(e,t,n){var r=n(59499),i=n(77191),o=n(36864),a=n(42062),c=n(85893);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u=function(e){var t=(0,o.Z)({},((0,i.Z)(e),e));return(0,c.jsx)(a.H,l({},t))};t.Z=u},63428:function(e,t,n){var r=n(59499),i=n(70651),o=n(85893);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=function(e){return(0,o.jsx)(i.J,c({},e))};t.Z=s},24860:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(50029),i=n(64687),o=n.n(i),a=n(59584),c=n(582),s=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.Z)().get("/public/notification/running-text/"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),l=n(5752),u=n(67294),d=n(18872),p=n(81986),f=function(e){var t=e.animationDuration,n=(0,p.t)().palette;return{runningNotificationBar:(0,d.iv)({"& .textWrapper":{"& .shadow":{"&.left":{background:"linear-gradient(90deg, ".concat(n.neutral900," 2.54%, ").concat(n.neutral900,"00 97.83%);")},"&.right":{background:"linear-gradient(-90deg, ".concat(n.neutral900," 2.54% , ").concat(n.neutral900,"00 97.83% );")}},"& .runningText":{animation:"runningTextAnimation ".concat(t,"s linear infinite")},"& :hover":{animationPlayState:"paused"}}})}},h=n(85893),m=function(){var e=(0,u.useRef)(null),t=(0,u.useState)({status:!1,running_text:null}),n=t[0],i=t[1],c=(0,u.useState)(15),p=c[0],m=c[1];function g(){return x.apply(this,arguments)}function x(){return(x=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:i(e.sent.data);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,u.useEffect)(function(){g()},[]),(0,u.useEffect)(function(){if(null!=e&&e.current){var t=e.current.clientWidth/130;t!==p&&m(t)}},[n]);var v=f({animationDuration:p});return(0,h.jsx)("div",{className:(0,d.cx)(v.runningNotificationBar,"flex items-center w-full h-full opacity-50 cursor-default hover:play"),children:(null==n?void 0:n.status)&&(null==n?void 0:n.running_text)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"iconWrapper overflow-hidden relative w-5 max-w-5 min-w-5 mr-2 h-10 [&_svg]:absolute [&_svg]:w-6 [&_svg]:h-6 [&_svg]:top-[7px] [&_svg]:-right-[10px]",children:(0,h.jsx)(a.Z,{})}),(0,h.jsxs)(l.Z,{size:"sm",className:"textWrapper relative overflow-hidden whitespace-nowrap min-w-[calc(100%-28px)] hover:opacity-100",id:"RunningNotificationBar_Span_announcement",children:[(0,h.jsx)("span",{className:"shadow left w-[10%] h-full absolute top-0 z-[1]"}),(0,h.jsx)("span",{ref:e,className:"runningText inline-block text-left pl-[calc(100%-28px)] pr-10 left-0",children:n.running_text}),(0,h.jsx)("span",{className:"shadow right w-[10%] h-full absolute top-0 z-[1] right-0"})]})]})})}},32509:function(e,t,n){var r=n(59499),i=n(4730),o=n(18872);n(67294);var a=n(82226),c=n(85893),s=["stacks","spacing","stackSx","count","row"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var d=8,p=function(e){var t,n,r=e.stacks,o=e.spacing,l=void 0===o?1:o,p=e.stackSx,h=void 0===p?{}:p,m=(e.count,e.row),g=(0,i.Z)(e,s),x=f(),v=u(u({},h),{},{marginTop:null!==(t=h.marginTop)&&void 0!==t?t:"".concat(d*l,"px")});return(0,c.jsx)("div",u(u({className:"".concat(x.skeletonLoader," ").concat(m?"row":""," ").concat(null!==(n=null==g?void 0:g.className)&&void 0!==n?n:"")},g),{},{children:null==r?void 0:r.map(function(e,t){return(0,c.jsx)(a.O,u(u({},e),{},{style:v}),t)})}))},f=function(){return{skeletonLoader:(0,o.iv)({"&.row":{display:"flex","& div":{marginLeft:20},"& div:first-child":{marginLeft:0}},"& div > div":{top:0,left:0}})}};t.Z=p},67190:function(e,t,n){var r=n(18967),i=n(30225),o=n(5752),a=n(18872),c=n(85893),s=function(e){var t=e.successMessage,n=e.messageNode,s=e.additionalNode,l=e.className;return(0,c.jsxs)(i.Z,{className:(0,a.cx)("flex flex-col -mt-5 items-center child:mt-5",l),children:[(0,c.jsx)(r.Z,{className:"text-success-default text-[100px]","data-testid":"icon-verified"}),n||(0,c.jsx)(i.Z,{className:"flex flex-col -mt-[5px] text-center child:mt-[5px]",children:(0,c.jsx)(o.Z,{size:"md",className:"MuiTypography-root",children:t})}),s]})};t.Z=s},77919:function(e,t,n){var r=n(59499),i=n(44322),o=n(85893);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=function(e){return(0,o.jsx)(i.u,c({},e))};t.Z=s},35200:function(e,t,n){var r=n(50029),i=n(64687),o=n.n(i),a=n(582),c=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,a.Z)().get("/public/cms/live-chat/active/"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();t.Z=c},30795:function(e,t,n){n.d(t,{Fz:function(){return l},Vn:function(){return u}});var r=n(50029),i=n(64687),o=n.n(i),a=n(72694),c=n(95289),s=function(){var e=(0,r.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,a.Z)().get("/public/promotion/daily-bonus/setting/"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),l=function(){return["daily-bonus","setting"]},u=function(e){var t=e.enabled,n=void 0!==t&&t,r=e.retry;return(0,c.a)({queryKey:l(),queryFn:s,staleTime:3e5,refetchOnWindowFocus:!1,enabled:n,retry:r})}},22961:function(e,t){var n={options:[{name:"announcement",value:1},{name:"general",value:2},{name:"promotion",value:3},{name:"maintenance",value:4},{name:"transaction",value:5}],defaultValue:1,defaultValueObject:{name:"announcement",value:1},getNameById:function(e){var t;return null===(t=n.options.find(function(t){return t.value===e}))||void 0===t?void 0:t.name},getIdByName:function(e){var t;return null===(t=n.options.find(function(t){return t.name===e}))||void 0===t?void 0:t.value}};t.Z=n},46325:function(e,t){var n={appDrawer:{width:240},bottomNavigation:{height:38.3},topAppBar:{height:64},bottomAppBar:{height:30},bottomAppBarV2:{height:40},zIndex:{appBar:1201,mainContent:1200,appDrawer:1202,bottomNavigation:1201,loginDialog:1300},homePopupDialog:{imageHeight:155},LayoutMarginTop:{loggedIn:94,notLoggedIn:64}};t.Z=n},55980:function(e,t){var n={appDrawer:{width:240},bottomNavigation:{height:64},topAppBar:{height:48},bottomAppBar:{height:28},socialMediaAppBar:{height:61},zIndex:{appBar:1201,playerNotification:1202,mainContent:1200,appDrawer:1202,bottomNavigation:1201,loginDialog:1300,angpao:1206},homePopupDialog:{imageHeight:100},cardGameConfig:{widthDesktop:156,widthMobile:110,heightDesktop:156,heightMobile:110}};t.Z=n},84354:function(e,t,n){n.d(t,{KP:function(){return i},WY:function(){return o},mu:function(){return a}});var r=function(e,t){var n,r=new Intl.NumberFormat("id-ID",{style:"decimal",minimumFractionDigits:+t,maximumFractionDigits:+t+2}).format(e).split(",");return 0===t?"".concat(r[0]):"".concat(r[0],",").concat(null===(n=r[1])||void 0===n?void 0:n.substr(0,+t))},i=function(e){return r(e,2)},o=function(e){return r(e,0)},a=function(e){return String(e).padStart(2,"0")}},51760:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(97412),i=n(11163);function o(){var e,t=(0,i.useRouter)(),n=t.pathname,o=t.asPath,a=t.query,c=null!==(e=t.locale)&&void 0!==e?e:(0,r.bD)("NEXT_LOCALE"),s=function(e){try{var i=e instanceof Function?e(c):e;(0,r.fX)(r.SC.nextLocale.key,i,{maxAge:r.SC.nextLocale.maxAge}),t.push({pathname:n,query:a},o,{locale:i})}catch(e){}};return[c,s]}},42939:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(59499),i=n(50029),o=n(64687),a=n.n(o),c=n(582),s=function(){var e=(0,i.Z)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.Z)().get("/public/bank/qris/active-provider"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),l=n(64529),u={id:0,rate:0,status:!1,modified:"",modified_by:"",payment_code:"",payment_name:""},d=(0,l.Ue)(function(e){return{data:u,setData:function(t){e({data:t})}}}),p=n(2666),f=n(67294),h=n(1922),m=n(32010);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v=function(){var e=d((0,m.N)(function(e){return e})),t=e.data,n=e.setData,r=(0,f.useState)(!1),o=r[0],c=r[1],l=(0,f.useState)(""),g=l[0],v=l[1],b=(0,p.Eu)().isLoggedIn,j=(0,h.$G)().t,w=function(){var e=(0,i.Z)(a().mark(function e(){var t,r;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c(!0),v(""),!b){e.next=16;break}return e.prev=3,e.next=6,s();case 6:(r=null==(t=e.sent)?void 0:t.data)&&n(r),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),v((null===e.t0||void 0===e.t0?void 0:e.t0.errorDesc)||j("error"));case 14:e.next=17;break;case 16:n(x({},u));case 17:c(!1);case 18:case"end":return e.stop()}},e,null,[[3,11]])}));return function(){return e.apply(this,arguments)}}(),y=function(){var e=(0,i.Z)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:w();case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return(0,f.useEffect)(function(){w()},[b]),{data:t,refresh:y,isLoading:o,errorMessage:g}}},46636:function(e,t,n){n.d(t,{Z:function(){return d},q:function(){return u}});var r=n(82262),i=n(92777),o=n(59499),a=n(22961);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l=[{key:"[contact.customer.service]",route:"/help-center/contact-us"},{key:"[my.promotion.page]",route:"/my-promotion"},{key:"[new.account.registration]",route:"/add-bank"},{key:"[new.account.registration.ewallet]",route:"/add-ewallet"},{key:"[transaction.deposit.page]",route:"/transaction-history/deposit"},{key:"[transaction.withdraw.page]",route:"/transaction-history/withdraw"},{key:"[transaction.adjustment.page]",route:"/transaction-history/adjustment"},{key:"[transaction.referral.commission.page]",route:"/transaction-history/referral-commission"},{key:"[transaction.promotion.page]",route:"/transaction-history/promotion"}],u=function(e){return l.forEach(function(t){return e=e.split(t.key).join(t.route)}),e},d=(0,r.Z)(function e(t,n){var r=this;(0,i.Z)(this,e),(0,o.Z)(this,"data",void 0),(0,o.Z)(this,"locale",void 0),(0,o.Z)(this,"getList",function(){var e;return null!==(e=r.data)&&void 0!==e&&e.results?r.data.results.map(function(e){var t,n;return s({categoryId:e.category_id,categoryName:a.Z.getNameById(e.category_id),id:e.id,isRead:e.is_read,publishedDate:e.published_at,readDate:null!==(t=e.read_at)&&void 0!==t?t:null},null===(n=e.message_details)||void 0===n?void 0:n.filter(function(e){return e.lang_code===r.locale}).map(function(e){return{body:e.message,title:e.title}})[0])}):[]}),(0,o.Z)(this,"getCount",function(){return r.data.total_unread}),this.data=t,this.locale=n})},68869:function(e,t,n){n.d(t,{vQ:function(){return d},bb:function(){return p},r2:function(){return f}});var r=n(90116),i=n(50029),o=n(64687),a=n.n(o),c=n(582),s=function(){var e=(0,i.Z)(a().mark(function e(t,n){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.Z)().get("/public/provider/".concat(t,"/provider-categories?game_category_id=").concat(n)));case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),l=n(20640),u=n.n(l),d=function(e){u()(e)},p=function(){var e=(0,i.Z)(a().mark(function e(t,n){var i;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s(t.id,n);case 3:return i=e.sent.data,e.abrupt("return",[].concat((0,r.Z)(t.baseCategories),(0,r.Z)(i)));case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",t.baseCategories);case 11:case"end":return e.stop()}},e,null,[[0,8]])}));return function(t,n){return e.apply(this,arguments)}}(),f=function(e,t){switch(e){case"top":default:return 0;case"center":return t?t.clientHeight/2:0;case"bottom":return t?t.clientHeight:0}}},18871:function(e,t,n){var r=n(64529),i={open:!1},o=(0,r.Ue)(function(e){return{data:i,setOpen:function(t){e({data:{open:t}})}}});t.Z=o},77082:function(e,t,n){n.d(t,{zx:function(){return C}});var r=n(50029),i=n(17674),o=n(64687),a=n.n(o),c=n(26193),s=function(){var e=(0,r.Z)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.Z)().get("/public/maintenance/schedule/on-going/"));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),l=n(30225),u=n(27210),d=n(62678),p=n(2135),f=n(60215),h=n(18872),m=function(){return{maintenancePageContainer:(0,h.iv)({position:"relative",textAlign:"center",maxWidth:"480px",minWidth:"390px",color:"white","& .centered":{position:"absolute",left:"50%",transform:"translate(-50%, -50%)"},"& .from-eta":{top:"42.5%"},"& .to-eta":{top:"51%"},"&.desktop":{minWidth:"1140px",height:"100vh",maxWidth:"unset","& .from-eta":{top:"55%"},"& .to-eta":{top:"64%"}}})}},g=n(85893),x=function(e){var t=e.fromEta,n=e.toEta,r=m(),i=(0,f.IL)().isDesktopView,o=i?d.u1.siteMaintenanceDesktop:d.u1.siteMaintenance;return(0,g.jsxs)("div",{className:"".concat(r.maintenancePageContainer," ").concat(i?"desktop":""),children:[(0,g.jsx)(u.Z,{src:o.src,alt:o.alt,layout:i?"fill":"responsive",width:i?void 0:750,height:i?void 0:1624}),(0,g.jsx)("div",{className:"centered from-eta",children:t?(0,g.jsx)(l.Z,{children:(0,p.UU)(t)}):"-"}),(0,g.jsx)("div",{className:"centered to-eta",children:n?(0,g.jsx)(l.Z,{children:(0,p.UU)(n)}):"-"})]})},v=n(61105),b=n(42192),j=n(67294),w=n(38292),y=n(19193),Z=(0,j.createContext)(null);function C(e){var t=e.children,n=(0,v.Z)("IS_MAINTENANCE",!1),o=(0,i.Z)(n,2),c=o[0],l=o[1],u=(0,j.useState)(),d=u[0],p=u[1],f=(0,j.useState)(),h=f[0],m=f[1],C=(0,j.useRef)(!0),O=(0,y.Kg)().NEXT_PUBLIC_WEBSOCKET_URL,N=(0,b.ZP)().isSanity,k=(0,j.useMemo)(function(){return new WebSocket(O?"".concat(O).concat(w.N.MAINTENANCE_STATUS):"wss://-/maintenance")},[]);k&&(k.onmessage=function(e){var t=JSON.parse(e.data);l(null==t?void 0:t.own_maintenance_status)});var P=function(){var e=(0,r.Z)(a().mark(function e(){var t;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:p((t=e.sent).data.from_eta),m(t.data.to_eta);case 5:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return(0,j.useEffect)(function(){if(k.readyState!==k.CLOSED)return function(){null==k||k.close()}},[]),(0,j.useEffect)(function(){!C.current&&c&&P()},[c]),(0,j.useEffect)(function(){if(C.current){C.current=!1,P();return}},[]),(0,g.jsx)(Z.Provider,{value:{webSocketInstance:k,isMaintenance:c},children:c&&!N()?(0,g.jsx)(x,{fromEta:d,toEta:h}):t})}},59608:function(e,t,n){n.d(t,{eP:function(){return _},p$:function(){return S}});var r,i=n(90116),o=n(50029),a=n(64687),c=n.n(a),s=n(26193),l=function(){var e=(0,o.Z)(c().mark(function e(t){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.Z)().patch("/public/notification/".concat(t,"/read/")));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),u=n(60215),d=n(81986),p=n(18872),f=n(55980),h=n(78921),m=n(46636),g=n(42192),x=n(85893),v=["bo.approve.deposit","bo.approve.withdraw"],b=function(){var e=(0,d.t)().palette;return{alertNotification:(0,p.iv)({position:"fixed",zIndex:f.Z.zIndex.playerNotification,fontSize:"11px",color:e.neutral900,minWidth:300,cursor:"pointer","&.mobile":{top:10,left:"50%",transform:"translateX(-50%)",maxWidth:300},"&.desktop":{top:10,right:10,maxWidth:500},"& .title":{fontWeight:700,marginTop:-2,"&.approved":{color:e.successDefault},"&.rejected":{color:e.dangerDefault}},"& .content":{fontWeight:400,display:"-webkit-box",WebkitLineClamp:2,overflow:"hidden",textOverflow:"ellipsis","-webkit-box-orient":"vertical","& a":{color:e.infoDefault}}})}},j=function(){var e=b(),t=(0,u.IL)().isDesktopView,n=S(),r=n.playerNotification,i=n.handleClosePlayerNotification,o=(0,g.ZP)().handlePush;return r?(0,x.jsxs)(h.Z,{className:"".concat(e.alertNotification," ").concat(t?"desktop":"mobile"),severity:v.includes(r.type)?"success-white":"error-white",fullWidth:!1,isCloseable:!0,isShowStartIcon:!0,onClose:i,children:[(0,x.jsx)("div",{className:"title ".concat("bo.approve.deposit"===r.type||"bo.approve.withdraw"===r.type?"approved":"rejected"),onClick:function(e){e.preventDefault(),e.stopPropagation(),o("/notification/transaction")},children:r.title}),(0,x.jsx)("div",{className:"content",dangerouslySetInnerHTML:{__html:(0,m.q)(r.message)}})]}):(0,x.jsx)(x.Fragment,{})},w=n(44334),y=n(19193),Z=n(2666),C=n(38292),O=n(97412),N=n(67294),k=5e3,P=(0,N.createContext)(null),_=function(e){var t=e.children,n=(0,y.Kg)().NEXT_PUBLIC_WEBSOCKET_URL,a=(0,N.useRef)([]),s=(0,N.useState)(),u=s[0],d=s[1],p=(0,Z.Eu)().isLoggedIn,f=(0,O.bD)(O.SC.accessToken.key),h=(0,N.useRef)(!0),m=(0,N.useRef)(),g=(0,w.P)("release-feature-player-notification-sam"),v=function(){var e=m.current;e&&(e.onclose=function(){},e.readyState!==e.CLOSED&&e.readyState!==e.CLOSING&&e.close(),m.current=null),r&&(clearTimeout(r),r=void 0),d(void 0)},b=function(){n&&(m.current=new WebSocket("".concat(n).concat(C.N.PLAYER_NOTIFICATION,"?token=").concat(f)),h.current=!0,m.current.onmessage=I,m.current.onopen=function(){},m.current.onclose=function(){})};(0,N.useEffect)(function(){p&&g?m.current||b():m.current&&v()},[p,g]);var _=function e(){r=void 0,0!==a.current.length&&(S(),r=setTimeout(function(){d(void 0),e()},k))},S=function(){var e=(0,o.Z)(c().mark(function e(){var t,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null===(t=a.current)||void 0===t?void 0:t[a.current.length-1]){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,l(n.id);case 5:if(!(200!==e.sent.status)){e.next=8;break}return e.abrupt("return");case 8:d(n),null==a||a.current.pop();case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),I=function(e){var t=JSON.parse(e.data);a.current=[].concat((0,i.Z)(t),(0,i.Z)(a.current)),r||_()},L=function(){var e=(0,o.Z)(c().mark(function e(){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u){e.next=2;break}return e.abrupt("return");case 2:d(void 0);case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),D=function(){g&&(v(),b())};return(0,x.jsxs)(P.Provider,{value:{playerNotification:u,handleClosePlayerNotification:L,reconnectWS:D},children:[(0,x.jsx)(j,{}),t]})},S=function(){var e=(0,N.useContext)(P);if(void 0==e)throw Error("useWebSocket must be used within a WSPlayerNotificationProvider");return e}},38292:function(e,t,n){n.d(t,{N:function(){return r}});var r=Object.freeze({MAINTENANCE_STATUS:"/public/maintenance/own-maintenance-status/",PLAYER_NOTIFICATION:"/public/player-notification/"})}}]);