1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95774,e=>{"use strict";var t=e.i(43476),a=e.i(25741);let i=e=>(0,t.jsx)("svg",{width:e.size||24,height:e.size||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M5 7h14M5 12h14M5 17h14",stroke:e.fill||"#fff",strokeLinecap:"round"})});var l=e.i(75545),s=e.i(30415),n=e.i(29135),r=e.i(28176),o=e.i(49461),c=e.i(84131),d=e.i(55066),u=e.i(22315),m=e.i(70703),f=e.i(22016),p=e.i(18566),h=e.i(71645),x=e.i(14677);let v=(0,m.default)(()=>e.A(20788),{loadableGenerated:{modules:[32485]},ssr:!1}),g=(0,m.default)(()=>e.A(22290),{loadableGenerated:{modules:[27948]},ssr:!1}),b=(0,m.default)(()=>e.A(14734),{loadableGenerated:{modules:[45923]},ssr:!1});e.s(["default",0,function({children:e,appDownloadLinks:m}){let w=(0,p.usePathname)(),y=(0,n.useDispatch)(),{account:j}=(0,h.useContext)(s.AuthContext),{fbqEnabled:E}=(0,o.default)(),[C,N]=(0,h.useState)(!1),[S,k]=(0,h.useState)("top-0"),A=(0,n.useStore)("navigation").navigation.gameNavbar,T=(0,n.useStore)("navigation").navigation.appDownloadHeader;(0,h.useEffect)(()=>{let e=c.default.getItem(l.default.STORAGE_KEY.HEADER_APP_DOWNLOAD,{show:!0,expire:(0,u.default)().endOf("day").toISOString()});if(!e.show&&(0,u.default)().isAfter(e.expire)){let t={show:!0,expire:(0,u.default)().endOf("day").toISOString()};c.default.setItem(l.default.STORAGE_KEY.HEADER_APP_DOWNLOAD,t),y({type:"navigation/toggleAppDownloadHeader",payload:(e=t).show})}m?.android&&e.show&&y({type:"navigation/toggleAppDownloadHeader",payload:!0})},[m]),(0,h.useEffect)(()=>{"maintenance"===(0,d.getLastIndexUrl)(w)?N(!0):N(!1)},[w]),(0,h.useEffect)(()=>{"/play"===w?y({type:"navigation/toggleGameNavbar",payload:!1}):y({type:"navigation/toggleGameNavbar",payload:!0})},[w]),(0,h.useEffect)(()=>{let e=0;window.onscroll=function(){let t=window.scrollY;t>200&&k("-top-[125px]"),t<e&&k("top-0"),0===t&&k("top-0"),e=t}},[]);let O=(0,h.useCallback)(()=>{y({type:"navigation/toggleAppDownloadHeader",payload:!1})},[]);return(0,t.jsxs)("header",{className:`fixed z-[97] left-0 right-0 bg-background-default transition-all duration-500 ease-out ${S}`,children:[T&&(0,t.jsx)(b,{onClose:O,downloadUrl:m.android,iconUrl:m.icon}),(0,t.jsx)("section",{className:"container mx-auto px-3 lg:h-[66px]",children:(0,t.jsxs)("div",{className:"flex items-center justify-between py-4",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[C?e[0]:(0,t.jsx)(f.default,{shallow:!0,href:"/",children:e[0]},0),!C&&(0,t.jsx)("button",{onClick:()=>{y({type:"navigation/toggleGameNavbar",payload:!A})},className:"ml-3","aria-label":"close game navbar","aria-labelledby":"close game navbar",children:(0,t.jsx)(a.default,{size:20,fill:"var(--base)",className:`${A?"rotate-270":"rotate-90"} transition-all duration-500 ease-out`})})]}),!C&&(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{className:"hidden lg:block relative",children:j?(0,t.jsx)(v,{}):0>l.default.NO_LOGIN_FORM.findIndex(e=>w.indexOf(e)>-1)&&(0,t.jsx)(g,{})}),(0,t.jsx)("button",{"aria-label":"Sidebar Toggle Button","aria-labelledby":"Sidebar Toggle Button",onClick:()=>{y({type:"navigation/toggleSidebar",payload:!0});let e=(0,x.v4)();(0,r.sendDataLayerEvent)("btn_click",{name:"toggle-show-sidebar"},{fbq:E,eventId:e})},children:(0,t.jsx)(i,{size:30,fill:"var(--base)"})})]})]})}),(0,t.jsx)("div",{className:`${A?"h-[60px] lg:h-[53px]":"h-0"} transition-all duration-500 ease-out overflow-hidden `,children:e[1]})]})}],95774)},15876,e=>{"use strict";var t=e.i(43476);e.s(["default",0,e=>(0,t.jsx)("svg",{width:e.size||24,height:e.size||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M21.462 13.303c-.348.348-.81.54-1.302.54h-.302v6.004a2.157 2.157 0 0 1-2.155 2.155h-3.778v-5.294a.984.984 0 0 0-.984-.983H11.06a.984.984 0 0 0-.984.983v5.294H6.297a2.158 2.158 0 0 1-2.155-2.155v-6.005h-.325c-.02 0-.038 0-.057-.002a1.843 1.843 0 0 1-1.225-3.137l.008-.009 8.155-8.155A1.83 1.83 0 0 1 12 2c.492 0 .954.193 1.302.54l8.16 8.16a1.844 1.844 0 0 1 0 2.604Z",fill:e.fill||"#CECECE"})})])},71609,e=>{"use strict";var t=e.i(43476);e.s(["default",0,e=>(0,t.jsx)("svg",{width:e.size||25,height:e.size||25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsxs)("g",{fill:e.fill||"#7E869E",children:[(0,t.jsx)("path",{d:"M17.011 14.523a.718.718 0 0 0-.716.716c0 .393.323.715.716.71
15a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716ZM22.023 4.5H8.42a.723.723 0 0 0-.507.209l-.924.927-.925-.927a.722.722 0 0 0-.507-.209h-3.58c-.789 0-1.432.643-1.432 1.432v12.886c0 .79.643 1.432 1.432 1.432h3.58c.19 0 .372-.076.507-.209l.925-.927.924.926c.135.134.317.21.507.21h13.603c.79 0 1.431-.642 1.431-1.432V5.932c0-.789-.64-1.432-1.431-1.432ZM7.704 17.386H6.273v-1.431h1.432v1.431Zm0-2.863H6.274V13.09h1.432v1.432Zm0-2.864H6.274v-1.432h1.432v1.432Zm0-2.864H6.274V7.364h1.432v1.431Zm5.012-1.431a2.15 2.15 0 0 1 2.148 2.147 2.15 2.15 0 0 1-2.148 2.148 2.15 2.15 0 0 1-2.148-2.148 2.15 2.15 0 0 1 2.148-2.147Zm-1.432 10.022a.716.716 0 0 1-.55-1.174l7.16-8.59a.717.717 0 0 1 1.099.918l-7.16 8.59a.715.715 0 0 1-.549.256Zm5.727 0a2.15 2.15 0 0 1-2.147-2.147 2.15 2.15 0 0 1 2.147-2.148 2.15 2.15 0 0 1 2.148 2.148 2.15 2.15 0 0 1-2.148 2.147Zm0-2.863a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm-4.295-4.296a.716.716 0 1 0 0-1.432.716.716 0 0 0 0 1.432Zm4.295 4.296a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Zm0 0a.718.718 0 0 0-.716.716c0 .393.323.715.716.715a.718.718 0 0 0 .716-.715.718.718 0 0 0-.716-.716Z"}),(0,t.jsx)("path",{d:"M6.273 7.364v1.431h.716v1.432h-.716v1.432h.716v1.432h-.716v1.432h.716v1.431h-.716v1.432h.716v1.728l-.925.927a.722.722 0 0 1-.507.209h-3.58a1.433 1.433 0 0 1-1.432-1.432V5.932c0-.789.643-1.432 1.432-1.432h3.58c.19 0 .372.076.507.209l.925.927v1.728h-.716Z"})]})})])},97993,e=>{"use strict";var t=e.i(43476),a=e.i(55066),i=e.i(18566),l=e.i(71645),s=e.i(73819),n=e.i(79148),r=e.i(15876),o=e.i(80859),c=e.i(71609),d=e.i(95401),u=e.i(88428),m=e.i(30415),f=e.i(28176),p=e.i(49461),h=e.i(48148),x=e.i(22016),v=e.i(14677);function g(e){let{label:a,link:i,active:g,isSidebar:b}=e,{fbqEnabled:w}=(0,p.default)(),y=(0,h.useTranslations)(),{account:j}=(0,l.useContext)(m.AuthContext);return(0,t.jsxs)(x.default,{onClick:()=>{let e=(0,v.v4)();(0,f.sendDataLayerEvent)("btn_click",{name:`game-navbar-${a}`},{fbq:w,eventId:e})},href:`${i}`,shallow:!0,className:`${b?"inline-block w-[calc(100%/5.5-12px)] lg:w-11 mx-3":"inline-block lg:flex w-[18%] lg:w-auto lg:mx-5"} lg:px-1 lg:py-1 border-b border-b-background-secondary hover:lg:border-b-primary transition-all duration-300 ease-in-out`,children:[(0,t.jsx)("div",{className:`${b?"w-6 h-6":"w-6 h-6 lg:w-7 lg:h-7"} mx-auto`,children:(e=>{switch(e){case y("layout.navigation.home"):return(0,t.jsx)(r.default,{size:"100%",fill:`${g?"var(--primary)":"var(--separator)"}`});case y("layout.navigation.lottery"):return(0,t.jsx)(o.default,{size:"100%",fill:`${g?"var(--primary)":"var(--separator)"}`});case y("layout.navigation.slot"):return(0,t.jsx)(d.default,{size:"100%",fill:`${g?"var(--primary)":"var(--separator)"}`});case y("layout.navigation.casino"):return(0,t.jsx)(s.default,{size:"100%",fill:`${g?"var(--primary)":"var(--separator)"}`});case y("layout.navigation.games"):return(0,t.jsx)(n.default,{size:"100%",fill:`${g?"var(--primary)":"var(--separator)"}`});case y("layout.navigation.sports"):return(0,t.jsx)(u.default,{size:"100%",fill:`${g?"var(--primary)":"var(--separator)"}`});case y("layout.navigation.promo"):return(0,t.jsx)(c.default,{size:"100%",fill:`${g?"var(--primary)":"var(--separator)"}`});default:return(0,t.jsx)(r.default,{size:"100%",fill:`${g?"var(--primary)":"var(--separator)"}`})}})(a)}),(0,t.jsx)("p",{className:` ${b?"text-[10px] mt-1":"text-[10px] lg:text-sm mt-1 lg:mt-0 lg:ml-1"} uppercase text-center ${g&&"text-primary"}`,children:a})]})}var b=e.i(19570);e.s(["default",0,function({sidebar:e,games:s}
1){let n=(0,h.useTranslations)(),r=(0,i.usePathname)(),o=r.indexOf("/promo")>-1,c=r.indexOf("/sports")>-1,d=r.indexOf("/games")>-1,u=r.indexOf("/casino")>-1,m=r.indexOf("/slot")>-1,f=r.indexOf("/lottery")>-1,p=r.indexOf("/play")>-1,x=!o&&!c&&!d&&!u&&!m&&!f&&!p,[v,w]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{"maintenance"===(0,a.getLastIndexUrl)(r)?w(!0):w(!1)},[r]),v?null:(0,t.jsx)("section",{className:"bg-background-secondary",children:(0,t.jsxs)("div",{className:"container mx-auto px-0 py-2 overflow-auto flex justify-between lg:justify-center",children:[(0,t.jsx)("div",{className:`${e?"py-2 lg:py-0":"lg:flex py-2 lg:py-3"} whitespace-nowrap overflow-x-auto lg:justify-center`}),(0,t.jsx)("div",{className:`${e?"hidden":"hidden lg:flex"}`,children:(0,t.jsx)(g,{active:x,isSidebar:e,label:n("layout.navigation.home"),link:"/"})}),(0,b.isKeyExistInObject)(s,"lottery")&&(0,t.jsx)(g,{active:f,isSidebar:e,label:n("layout.navigation.lottery"),link:"/lottery"}),(0,t.jsx)(g,{active:m,isSidebar:e,label:n("layout.navigation.slot"),link:"/slot"}),(0,t.jsx)(g,{active:u,isSidebar:e,label:n("layout.navigation.casino"),link:"/casino"}),(0,t.jsx)(g,{active:d,isSidebar:e,label:n("layout.navigation.games"),link:"/games"}),(0,t.jsx)(g,{active:c,isSidebar:e,label:n("layout.navigation.sports"),link:"/sports"}),(0,t.jsx)(g,{active:o,isSidebar:e,label:n("layout.navigation.promo"),link:"/promo"})]})})}],97993)},33200,e=>{"use strict";var t=e.i(75545),a=e.i(55066),i=e.i(18566),l=e.i(71645);e.s(["default",0,function({children:e}){let s=(0,i.usePathname)(),[n,r]=(0,l.useState)(!1),o=t.default.NO_FOOTER_PAGE.map(e=>s.indexOf(e)>-1).filter(e=>e).length>0;return(0,l.useEffect)(()=>{"maintenance"===(0,a.getLastIndexUrl)(s)||o?r(!0):r(!1)},[s]),n?null:e}])},28561,e=>{"use strict";var t=e.i(43476),a=e.i(30415),i=e.i(19570),l=e.i(48148),s=e.i(22016),n=e.i(71645);e.s(["default",0,function(){let e=(0,l.useTranslations)(),{account:r}=(0,n.useContext)(a.AuthContext);return(0,t.jsx)("li",{children:(0,t.jsx)(s.default,{href:(0,i.isObjectEmpty)(r)?"/referral/info":"/account/referral",shallow:!0,className:"mb-2 opacity-70 transition-all duration-200 ease-in-out lg:hover:text-primary",children:e("layout.footer.help.referral")})})}])},9618,e=>{"use strict";let t=(0,e.i(71645).createContext)([]);e.s(["SEOContext",0,t])},88519,e=>{"use strict";var t,a=e.i(43476),i=e.i(25741),l=e.i(9618),s=e.i(18566),n=e.i(71645),r=e.i(75545),o=e.i(55066),c=e.i(48148),d=((t=d||{}).SHOW="SHOW",t.HIDE="HIDE",t.OFF="OFF",t);e.s(["default",0,function({visible:e}){let t=(0,c.useTranslations)(),u=(0,s.usePathname)().replace(/^https?:\/\/[^/]+/,"").replace(/\/$/,"")||"/",[m,f]=(0,n.useState)(e??d.HIDE),p=(0,n.useContext)(l.SEOContext),h=p&&p.find(e=>e.url===u),x=r.default.NO_FOOTER_SEO_PAGE.findIndex(e=>u.indexOf(e)>-1)>-1;return h&&!x?(0,a.jsxs)("section",{className:"container mx-auto px-3 pb-3 lg:pb-5 border-b border-transparent lg:border-separator",children:[(0,a.jsxs)("div",{className:`w-full transition-all duration-500 ease-out overflow-hidden relative ${m===d.SHOW||m===d.OFF?"max-h-max":"max-h-[80px]"}`,children:[(0,a.jsx)("article",{className:"admin-custom mt-5",dangerouslySetInnerHTML:{__html:(0,o.optimizeHTMLImage)(h?.data||"",!1)||""}}),m===d.HIDE&&(0,a.jsx)("div",{className:"absolute left-0 right-0 -bottom-1 h-24 bg-gradient-to-t from-background-secondary"})]}),m!==d.OFF&&(0,a.jsxs)("button",{onClick:()=>m===d.SHOW?f(d.HIDE):f(d.SHOW),className:"flex items-center mx-auto border border-base text-xs lg:text-sm rounded-full px-3 py-2 my-3",children:[t(m===d.SHOW?"layout.blog.dropdown.close":"layout.blog.dropdown.open"),(0,a.jsx)("figure",{className:"w-5 h-5 ml-3",children:(0,a.jsx)(i.default,{size:"100%",fill:"var(--base)",className:`${m===d.SHOW?"rotate-270":"rotate-90"}`})})]})]}):null}],88519)},501,e=>{"use strict";var t=e.i(43476),a=e.i(22016),i=e.i(57688),l=e.i(58222),s=e.i(55066),n=e.i(7846),r=e.i(71645),o=e.i(92684),c=e.i(71770),d=e.i(18566),u=e.i(75545),m=e.i(19570),f=e.i(94523),p=e.i(29135),h=e.i(30415);e.s(["default",0,function(){let e=(0,d.usePathname)(),{contactMisc:x}=(0,r.useContext)(c.AppConfigurationContext),{account:v}=(0,r.useContext)(h.AuthContext),g=(0,p.useDispatch)(),{active:b}=(0,p.useStore)("spinwheel"),[w,y]=(0,r.useState)(),[j,E]=(0,r.useState)(),[C,N]=(0,r.useState)(!1),S=u.default.RTP_PATHS.map(t=>e.indexOf(t)>-1).filter(e=>e).length>0,k=u.default.NO_RTP_PATH.map(t=>e.indexOf(t)>-1).filter(e=>e).length>0;return(0,r.useEffect)(()=>{!async function(){let e=v?await (0,f.getSpinwheel)("private",v.uuid):await (0,f.getSpinwheel)();e&&(y(e.data.logo_url),g({type:"spinwheel/setActive",payload:e.status}),g({type:"spinwheel/setRewards",payload:e.data.reward_list}),g({type:"spinwheel/setSpinCount",payload:e.data.spin_chance}))}()},[v]),(0,r.useLayoutEffect)(()=>{async function e(){E(await (0,o.getRTP)())}try{e()}catch{}},[]),(j||x.whatsapp2||b)&&S&&!k?(0,t.jsx)(r.Suspense,{children:(0,t.jsxs)("section",{className:`fixed z-[99] ${!C?"-left-20":"-left-2"} bottom-20 lg:bottom-16 flex transition-all duration-300 ease-in-out`,children:[(0,t.jsxs)("div",{className:"bg-background-secondary relative z-[1] border-2 border-primary rounded-xl p-4 pl-5",children:[b&&(0,t.jsx)(a.default,{target:"_blank",shallow:!0,href:"/spinwheel",className:`${j?.isActive?"mb-5":""}`,children:(0,t.jsx)(i.default,{width:40,height:40,sizes:"100vw",className:"w-10 mx-auto",src:""!==w?(0,s.getNewImageUrl)(w,{width:40}):(0,s.getNewImageUrl)("/assets/images/static/v3/spinwheel/spinwheel-btn.gif",{width:40}),alt:"Spinwheel",placeholder:"blur",blurDataURL:`data:image/svg+xml;base64,${(0,s.toBase64)((0,l.default)())}`,loading:"lazy"})}),j?.isActive&&(0,t.jsx)(a.default,{target:"_blank",href:`http://${j.host}`,className:`${x.whatsapp2?"mb-5":""}`,children:(0,t.jsx)(i.default,{width:40,height:40,sizes:"100vw",className:"w-10 mx-auto",src:(0,m.isValidHttpUrl)(j.image)?(0,s.getNewImageUrl)(j.image,{width:40}):"/",alt:"Slot RTP",placeholder:"blur",blurDataURL:`data:image/svg+xml;base64,${(0,s.toBase64)((0,l.default)())}`,loading:"lazy"})}),x.whatsapp2&&(0,t.jsx)(a.default,{target:"_blank",href:`http://wa.me/${x.whatsapp2}`,children:(0,t.jsx)(i.default,{width:40,height:40,sizes:"100vw",className:"w-10 mx-auto",src:(0,s.getNewImageUrl)("/assets/images/social/circle/whatsapp.png",{width:40}),alt:"Whatsapp 2 Contact",placeholder:"blur",blurDataURL:`data:image/svg+xml;base64,${(0,s.toBase64)((0,l.default)())}`,loading:"lazy"})})]}),(0,t.jsx)("button",{"aria-label":"btn-expand-rtp","aria-labelledby":"btn-expand-rtp",onClick:()=>N(!C),className:"bg-primary relative -left-1 z-0 my-5 rounded-tr-xl rounded-br-xl",children:(0,t.jsx)("figure",{className:`${C?"rotate-90":"rotate-270"} transition-all duration-300 ease-in-out`,children:(0,t.jsx)(n.default,{size:24,fill:"#FFFFFF"})})})]})}):null}])},47694,e=>{"use strict";var t=e.i(43476),a=e.i(15876),i=e.i(95300),l=e.i(87373);let s=e=>(0,t.jsxs)("svg",{width:e.size||24,height:e.size||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("circle",{cx:12,cy:12,r:9,fill:e.fill||"#FFFFFF"}),(0,t.jsx)("path",{d:"M12 8v8M16 12H8",stroke:"var(--background)",strokeWidth:1.2,strokeLinecap:"round"})]}),n=e=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size||29,height:e.size||29,viewBox:"0 0 29 29",fill:"none",...e,children:[(0,t.jsx)("path",{fill:e.fill||"#1B1B1B",d:"m23.352 6.981-.831.556.831-.556Zm0 12.62-.831-.555.831.556Zm-1.333 1.334.555.832-.555-.832Zm-5.102.8
113-.005-1a1 1 0 0 0-.995 1h1Zm0 .002.894.447a1 1 0 0 0 .106-.447h-1Zm-1.522 3.044.894.448-.894-.448Zm-1.79 0-.894.448.895-.448Zm-1.521-3.044h-1a1 1 0 0 0 .105.447l.895-.447Zm0-.002h1a1 1 0 0 0-.996-1l-.004 1Zm-5.102-.813-.556.832.556-.832Zm-1.334-1.333-.831.555.831-.555Zm0-12.62.832.555-.832-.556Zm1.334-1.334.555.831-.555-.831Zm15.037 0 .555-.832-.555.832Zm3.148 7.644c0-1.677.001-3.01-.107-4.072-.11-1.08-.34-1.993-.876-2.794L22.52 7.537c.279.418.455.963.55 1.885.095.939.096 2.152.096 3.87h2Zm-.983 6.865c.535-.8.766-1.713.876-2.793.108-1.064.107-2.396.107-4.072h-2c0 1.717-.001 2.93-.097 3.87-.094.921-.27 1.466-.55 1.884l1.664 1.111Zm-1.61 1.61a5.833 5.833 0 0 0 1.61-1.61l-1.663-1.11c-.28.418-.64.777-1.058 1.057l1.111 1.663Zm-5.653.981c1.299-.005 2.37-.03 3.262-.153.907-.125 1.692-.36 2.391-.828l-1.11-1.663c-.366.244-.83.41-1.555.51-.742.102-1.688.129-2.996.134l.008 2Zm.996-.998v-.002h-2v.002h2Zm-1.628 3.492 1.522-3.045-1.789-.894-1.522 3.044 1.789.895Zm-3.578 0c.737 1.474 2.841 1.474 3.578 0l-1.789-.895-1.789.895Zm-1.522-3.045 1.522 3.045 1.79-.895-1.523-3.044-1.789.894Zm-.105-.449v.002h2v-.002h-2Zm-4.658.019c.7.468 1.484.703 2.391.828.891.123 1.963.148 3.262.153l.009-2c-1.308-.005-2.255-.032-2.997-.134-.726-.1-1.189-.266-1.554-.51l-1.111 1.663Zm-1.61-1.61a5.834 5.834 0 0 0 1.61 1.61l1.111-1.663a3.832 3.832 0 0 1-1.057-1.058l-1.663 1.111Zm-.982-6.865c0 1.676-.002 3.008.106 4.072.11 1.08.341 1.992.877 2.793l1.663-1.11c-.28-.419-.456-.964-.55-1.886-.095-.938-.096-2.152-.096-3.87h-2Zm.983-6.866C4.28 7.227 4.05 8.14 3.94 9.22c-.108 1.063-.107 2.395-.107 4.072h2c0-1.718.002-2.931.097-3.87.094-.922.27-1.467.55-1.885L4.817 6.426Zm1.609-1.61a5.833 5.833 0 0 0-1.61 1.61L6.48 7.537c.28-.419.639-.778 1.057-1.058L6.426 4.816Zm6.866-.983c-1.676 0-3.009 0-4.072.107-1.08.11-1.993.341-2.794.876L7.537 6.48c.418-.279.963-.455 1.885-.549.939-.095 2.152-.097 3.87-.097v-2Zm2.417 0h-2.417v2h2.417v-2Zm6.865.983c-.8-.535-1.714-.766-2.794-.876-1.063-.108-2.395-.107-4.072-.107v2c1.718 0 2.932.002 3.87.097.922.094 1.467.27 1.885.55l1.111-1.664Zm1.61 1.61a5.833 5.833 0 0 0-1.61-1.61l-1.11 1.663c.418.28.777.64 1.057 1.058l1.663-1.111Z"}),(0,t.jsx)("circle",{cx:19.333,cy:13.292,r:1.208,fill:e.fill||"#1B1B1B",stroke:e.fill||"#1B1B1B",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:14.5,cy:13.292,r:1.208,fill:e.fill||"#1B1B1B",stroke:e.fill||"#1B1B1B",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:9.667,cy:13.292,r:1.208,fill:e.fill||"#1B1B1B",stroke:e.fill||"#1B1B1B",strokeLinecap:"round"})]}),r=e=>(0,t.jsx)("svg",{width:e.size||24,height:e.size||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m15.621 2.669-3.69-.58c-3.22-.506-4.83-.76-5.88.139C5 3.126 5 4.756 5 8.016V11h5.92l-2.7-3.375 1.56-1.25 4 5 .5.625-.5.625-4 5-1.56-1.25L10.92 13H5v2.983c0 3.26 0 4.89 1.05 5.788 1.05.898 2.66.645 5.881.14l3.69-.58c1.613-.254 2.419-.38 2.899-.942.48-.561.48-1.377.48-3.01V6.62c0-1.632 0-2.449-.48-3.01-.48-.561-1.286-.688-2.899-.941Z",fill:e.fill||"#fff"})});var o=e.i(11826),c=e.i(71770),d=e.i(30415),u=e.i(19570),m=e.i(33899),f=e.i(70703),p=e.i(18566),h=e.i(71645),x=e.i(28176),v=e.i(49461),g=e.i(22016),b=e.i(14677);function w(e){let{label:a,link:i,active:l,circle:s,icon:n}=e,{fbqEnabled:r}=(0,v.default)(),{account:o}=(0,h.useContext)(d.AuthContext);return(0,t.jsx)(g.default,{onClick:()=>{let e=(0,b.v4)();(0,x.sendDataLayerEvent)("btn_click",{name:`bottom-navigation-${a}`},{fbq:r,eventId:e})},href:i,shallow:!0,className:`${s?"flex justify-center":"inline-block"} w-1/5`,children:(0,t.jsxs)("div",{className:`${s&&"w-16 h-16 p-2 absolute -top-4 rounded-full bg-gradient-to-b from-primary to-black/70"}`,children:[(0,t.jsx)("div",{className:`${s?"w-9 md:w-12 h-9 md:h-12":"w-6 md:w-9 h-6 md:h-9"} mx-auto`,children:n}),(0,t.jsx)("p",{className:`text-center text-[10px] md:text-sm mt-1 lg:mt-0 lg:ml-1 ${l&&"text-primary"} ${s&&"text-white"}`,children:a})]})})}var y=e.i(75545),j=e.i(90060),E=e.i(37628),C=e.i(29135),N=e.i(48148);let S=(0,f.default)(()=>e.A(58233),{loadableGenerated:{modules:[26272]}});e.s(["default",0,function(){let e=(0,N.useTranslations)(),f=(0,p.usePathname)(),g=(0,p.useSearchParams)(),k=(0,p.useRouter)(),{account:A}=(0,h.useContext)(d.AuthContext),{config:T}=(0,h.useContext)(c.AppConfigurationContext),{fbqEnabled:O}=(0,v.default)(),{livechatReadiness:z}=(0,C.useStore)("navigation").navigation,Z=!(0,u.isObjectEmpty)(A),P=(0,m.default)(),[$,_]=(0,h.useState)(!1),B=f.indexOf("/auth/register")>-1,D=f.indexOf("/auth/login")>-1,L=f.indexOf("/account/history")>-1,R=f.indexOf("/account/referral")>-1||f.indexOf("/referral")>-1,I=f.indexOf("/account/profile")>-1,H=!L&&!R&&!I&&!B&&!D||"/"===f,F=g.get("tab"),U=!y.default.NO_FOOTER_
1NAV_PAGE.includes(f)||F===j.TransactionTabPage.BANK,G=new URLSearchParams(g);return(F||"")in E.HistoryTabType||(G.set("tab",E.HistoryTabType.TRANSACTION),G.toString()),!P&&U?(0,t.jsx)(h.Suspense,{children:(0,t.jsxs)("section",{className:"bg-background-secondary border-t-2 border-background-default flex lg:hidden justify-between px-3 py-3 fixed z-[100] left-0 right-0 bottom-0 shadow-[0px_2px_10px_0px_black]",children:[(0,t.jsx)(w,{active:H,label:e("layout.navigation.home"),link:"/",icon:(0,t.jsx)(a.default,{size:"100%",fill:H?"var(--primary)":"var(--separator)"})}),Z?(0,t.jsx)(w,{active:L,label:e("transaction-in-progress.history.btn"),link:`/account/history?${new URLSearchParams(G).toString()}`,icon:(0,t.jsx)(l.default,{size:"100%",fill:L?"var(--primary)":"var(--separator)"})}):(0,t.jsx)(w,{active:B,label:e("header.form.btn.signup"),link:"/auth/register",icon:(0,t.jsx)(o.default,{size:"100%",fill:B?"var(--primary)":"var(--separator)"})}),Z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>_(!0),className:"flex justify-center w-1/5",children:(0,t.jsx)("div",{className:"w-16 md:w-20 h-16 md:h-20 p-2 absolute -top-3 md:-top-7 rounded-[19px] md:rounded-3xl flex justify-center items-center bg-gradient-to-br from-primary to-[#1B1B1B]",children:(0,t.jsx)("figure",{className:"w-12 md:w-14 h-12 md:h-14 mx-auto opacity-75",children:(0,t.jsx)(i.default,{size:"100%",fill:"white"})})})}),$&&(0,t.jsx)(h.Suspense,{children:(0,t.jsx)(S,{show:$,onClose:()=>_(!1)})})]}):(0,t.jsx)("button",{onClick:()=>k.push("/auth/login"),className:"flex justify-center w-1/5",children:(0,t.jsx)("div",{className:"w-16 md:w-20 h-16 md:h-20 p-2 absolute -top-3 md:-top-7 rounded-[19px] md:rounded-3xl flex justify-center items-center bg-gradient-to-br from-primary to-[#1B1B1B]",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("figure",{className:"w-8 h-8 md:w-11 md:h-11 mx-auto opacity-75",children:(0,t.jsx)(r,{size:"100%",fill:"white"})}),(0,t.jsx)("p",{className:"text-center text-[10px] md:text-sm mt-1 lg:mt-0 lg:ml-1",children:e("header.form.btn.login")})]})})}),Z?(0,t.jsx)(w,{active:I,label:e("layout.navigation.myAccount"),link:"/account/profile",icon:(0,t.jsx)(o.default,{size:"100%",fill:I?"var(--primary)":"var(--separator)"})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(w,{active:R,label:e("transaction.menu.referral.label"),link:`${Z?"/account/referral":"/referral/info"}`,icon:(0,t.jsx)(s,{size:"100%",fill:R?"var(--primary)":"var(--separator)"})})}),(0,t.jsxs)("button",{onClick:()=>{if(z){let e=(0,b.v4)();if((0,x.sendDataLayerEvent)("btn_click",{name:"bottom-navigation-livechat"},{fbq:O,eventId:e}),T.APILivechat)window.LiveChatWidget.call("maximize");else if(T.APITawkTo)window.Tawk_API.maximize();else if(T.APIZenDesk)try{window.zE("messenger","show"),window.zE("messenger","open")}catch{}else T.APIFreshChat&&(window.fcWidget.show(),window.fcWidget.open())}},className:"inline-block w-1/5",children:[(0,t.jsx)("div",{className:"relative w-full h-6 flex justify-center",children:(0,t.jsx)("div",{className:"w-12 md:w-16 h-12 md:h-16 p-3 absolute -top-6 md:-top-11 flex justify-center items-center rounded-full bg-primary",children:(0,t.jsx)(n,{size:"100%",fill:"#FFFFFF"})})}),(0,t.jsx)("p",{className:"text-center text-[10px] md:text-sm mt-1 lg:mt-0 lg:ml-1",children:e("layout.navigation.livechat")})]})]})}):null}],47694)},25657,(e,t,a)=>{t.exports={version:"3.8.5.0"}},47428,e=>{"use strict";var t=e.i(43476),a=e.i(68750),i=e.i(87497),l=e.i(25657),s=e.i(58222),n=e.i(75427),r=e.i(15876),o=e.i(71609);let c=e=>(0,t.jsxs)("svg",{width:e.size||24,height:e.size||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{d:"M16 3v3M8 3v3",stroke:e.fill||"#fff",strokeWidth:2,strokeLinecap:"round"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 4h-4v2a2 2 0 1 1-4 0V4.076c-.975.096-1.631.313-2.121.803C3 5.757 3 7.172 3 10v5c0 2.828 0 4.243.879 5.121C4.757 21 6.172 21 9 21h6c2.828 0 4.243 0 5.121-.879C21 19.243 21 17.828 21 15v-5c0-2.828 0-4.243-.879-5.121-.49-.49-1.146-.707-2.121-.803V6a2 2 0 1 1-4 0V4Zm-7 8a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Zm1 3a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Z",fill:e.fill||"#fff"})]});var d=e.i(38276),u=e.i(11726);let m=e=>(0,t.jsxs)("svg",{width:e.size||24,height:e.size||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("circle",{cx:10,cy:8,r:5,fill:e.fill||"#fff"}),(0,t.jsx)("path",{d:"M19 10v6M22 13h-6",stroke:e.fill||"#fff",strokeWidth:2,strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M17.142 20.383c.462-.105.739-.585.534-1.012-.552-1.15-1.459-2.162-2.634-2.924C13.595 15.508 11.823 15 10 15s-3.595.508-5.042 1.447c-1.175.762-2.082 1.773-2.634 2.924-.205.427.072.907.534 1.012a32.333 32.333 0 0 0 14.284 0Z",fill:e.fill||"#fff"})]});var f=e.i(84914),p=e.i(30415),h=e.i(29135);let x=e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:e.size||512,height:e.size||512,viewBox:"0 0 512 512",...e,children:(0,t.jsx)("path",{fill:e.fill||"#fff",d:"M120.606 169h270.788v220.663c0 13.109-10.628 23.737-23.721 23.737H340.55v67.203c0 17.066-13.612 30.897-30.415 30.897-16.846 0-30.438-13.831-30.438-30.897V413.4h-47.371v67.203c0 17.066-13.639 30.897-30.441 30.897-16.799 0-30.437-13.831-30.437-30.897V413.4h-27.099c-13.096 0-23.744-10.628-23.744-23.737V169zm-53.065-1.801c-16.974 0-30.723 13.963-30.723 31.2v121.937c0 17.217 13.749 31.204 30.723 31.204 16.977 0 30.723-13.987 30.723-31.204V198.399c0-17.237-13.746-31.2-30.723-31.2zm323.854-20.435H120.606c3.342-38.578 28.367-71.776 64.392-90.998l-25.746-37.804c-3.472-5.098-2.162-12.054 2.946-15.525C167.3-1.034 174.242.286 177.731 5.38l28.061 41.232c15.558-5.38 32.446-8.469 50.208-8.469 17.783 0 34.672 3.089 50.229 8.476L334.29 5.395c3.446-5.108 10.41-6.428 15.512-2.957 5.108 3.471 6.418 10.427 2.946 15.525l-25.725 37.804c36.024 19.21 61.032 52.408 64.372 90.997zm-177.53-52.419c0-8.273-6.699-14.983-14.969-14.983-8.291 0-14.99 6.71-14.99 14.983 0 8.269 6.721 14.976 14.99 14.976s14.969-6.707 14.969-14.976zm116.127 0c0-8.273-6.722-14.983-14.99-14.983-8.291 0-14.97 6.71-14.97 14.983 0 8.269 6.679 14.976 14.97 14.976 8.269 0 14.99-6.707 14.99-14.976zm114.488 72.8
111c-16.956 0-30.744 13.984-30.744 31.222v121.98c0 17.238 13.788 31.226 30.744 31.226 16.978 0 30.701-13.987 30.701-31.226v-121.98c.001-17.238-13.723-31.222-30.701-31.222z"})}),v=e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size||27,height:e.size||27,viewBox:"0 0 27 27",fill:"none",children:(0,t.jsx)("path",{fill:e.fill||"#CECECE",d:"M18.754 6.268c.623.06 1.176.316 1.626.796.499.534.74 1.246.745 2l.001 5.67v1.583c0 .41.025.84-.052 1.244a2.873 2.873 0 0 1-.713 1.426 2.508 2.508 0 0 1-1.129.7c-.16.043-.321.061-.484.085.096-.42.07-.89.07-1.321V17.2l.001-4.542V7.496c0-.406.014-.829-.065-1.228ZM5.353 6.284l.143-.013a3.259 3.259 0 0 0-.062.616l-.003 1.026V18.804c0 .311-.004.643.062.948l.003.014-.057-.004c-.54-.037-1.043-.301-1.454-.671a2.897 2.897 0 0 1-.835-1.687c-.029-.208-.024-.422-.024-.631v-.79l-.001-2.69V9.338c0-.246-.003-.495.03-.74.06-.451.228-.88.48-1.244a2.491 2.491 0 0 1 1.718-1.07ZM9.368 4.252l1.245-.002H14.288c.368 0 .749-.02 1.11.061.425.095.813.304 1.143.606.505.46.828 1.146.88 1.858.022.287.01.582.01.869v10.897c0 .332.007.655-.043.984a2.84 2.84 0 0 1-.589 1.313 2.531 2.531 0 0 1-1.438.898c-.152.031-.312.036-.466.048l-1.309.003h-3.6c-.372 0-.76.02-1.126-.06a2.51 2.51 0 0 1-1.186-.643 2.79 2.79 0 0 1-.844-1.814c-.021-.328-.011-.66-.011-.99V7.387c0-.281-.006-.56.036-.839.078-.519.3-.998.62-1.391.36-.444.872-.74 1.404-.851.161-.034.325-.044.489-.054Z"})});var g=e.i(71770),b=e.i(48825),w=e.i(93220),y=e.i(57395),j=e.i(55066),E=e.i(48148),C=e.i(70703),N=e.i(57688),S=e.i(22016),k=e.i(18566),A=e.i(71645);let T=(0,C.default)(()=>e.A(57506),{loadableGenerated:{modules:[92101]}}),O=(0,C.default)(()=>e.A(2852),{loadableGenerated:{modules:[3729]},ssr:!1}),z=(0,C.default)(()=>e.A(13950),{loadableGenerated:{modules:[98366]},ssr:!1}),Z=(0,C.default)(()=>e.A(57617),{loadableGenerated:{modules:[32591]},ssr:!1});function P({show:e,onClose:a,logoUrl:C,appDownloadUrls:$}){let{account:_}=(0,A.useContext)(p.AuthContext),{config:B}=(0,A.useContext)(g.AppConfigurationContext),{wallet:D}=(0,h.useStore)("account"),L=(0,h.useDispatch)(),R=(0,k.usePathname)(),I=(0,E.useTranslations)(),[H,F]=(0,A.useState)(!1),[U,G]=(0,A.useState)(!1),[M,W]=(0,A.useState)(!1),[V,q]=(0,A.useState)(!1),K=(0,A.useRef)(null),Y=(0,y.default)(K),J={loop:!0,autoplay:!0,animationData:b.default};(0,A.useEffect)(()=>{$&&$.android&&W(!0)},[$]);let Q=(0,A.useCallback)(()=>{document.location.href=B.oldVersionDomain},[B.oldVersionDomain]);async function X(){F(!0),L({type:"account/setBalance",payload:await (0,i.getBalance)()}),F(!1)}return(0,A.useEffect)(()=>{Y&&a()},[Y,K]),(0,A.useEffect)(()=>{let t=document.body.classList;e||U?(t.add("fixed"),t.add("top-0"),t.add("bottom-0"),t.add("left-0"),t.add("right-0")):(t.remove("fixed"),t.remove("top-0"),t.remove("bottom-0"),t.remove("left-0"),t.remove("right-0"))},[e,U]),(0,A.useEffect)(()=>{let e=document.getElementById("sidebar-navigation-options"),t=e?.getElementsByTagName("a"),i=()=>a();return t&&t.length>0&&Array.from(t).forEach(e=>{e.addEventListener("click",i,{once:!0})}),()=>{t&&t.length>0&&Array.from(t).forEach(e=>{e.removeEventListener("click",i)})}},[a]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`fixed z-[1000] transition duration-300 ease-in-out overscroll-contain ${e?"bg-black/75 block top-0 w-screen h-screen":"-right-3/4 w-0"}`}),(0,t.jsxs)("aside",{ref:K,className:`bg-background-default w-4/5 lg:w-[400px] fixed z-[1000] right-0 top-0 bottom-0 transition duration-500 ease-in-out ${e?"translate-x-0":"translate-x-full"} z-[2147483640]`,children:[(0,t.jsxs)("div",{className:"flex justify-between items-center px-4 mt-4 h-[64px]",children:[_?(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{className:"flex-none w-10 md:w-12 h-10 md:h-12 flex items-center justify-center rounded-full bg-background-secondary border border-base",children:(0,t.jsx)("p",{className:"text-xl md:text-3xl font-bold",children:(0,j.getInitialName)(_?.name)})}),(0,t.jsx)("div",{className:"px-3 flex",children:(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs truncate",children:_?.username}),(0,t.jsxs)("span",{className:"text-sm font-medium flex items-center h-6",children:[H?(0,t.jsx)("figure",{className:"min-w-[100px] h-8 flex justify-center",children:(0,t.jsx)(T,{width:"100%",height:"100%",options:J})}):(0,w.formatCurrency)(D),(0,t.jsx)("button",{onClick:X,className:`ml-3 w-6 h-6 items-center justify-center rotate-270 rounded-full bg-background-secondary ${H?"hidden":"flex"}`,children:(0,t.jsx)(u.default,{size:18,fill:"var(--caption)"})})]})]})})})]}):(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(S.default,{href:"/",shallow:!0,children:(0,t.jsx)(N.default,{width:"0",height:"0",sizes:"100vw",className:"h-6 lg:h-8 w-auto",src:(0,j.getNewImageUrl)(C),alt:"Logo Brand",placeholder:"blur",blurDataURL:`data:image/svg+xml;base64,${(0,j.toBase64)((0,s.default)())}`})})}),(0,t.jsx)("button",{"aria-label":"Sidebar Close Button","aria-labelledby":"Sidebar Close Button",onClick:()=>a(),children:(0,t.jsx)(d.default,{size:24,fill:"var(--base)"})})]}),(0,t.jsxs)("div",{id:"sidebar-navigation-options",className:"mt-3 landscape:h-[calc(100%-120px)] landscape:
1overflow-auto",children:[(0,t.jsx)(f.default,{name:"sidebar-navigation-options-home",active:"/"===R,icon:(0,t.jsx)(r.default,{size:24,fill:`var(--${"/"===R?"primary":"base"})`}),href:"/",children:I("sidebar.home")}),(0,t.jsx)(f.default,{name:"sidebar-navigation-options-promo",active:R.indexOf("/promo")>-1,icon:(0,t.jsx)(o.default,{size:24,fill:`var(--${R.indexOf("/promo")>-1?"primary":"base"})`}),href:"/promo",children:I("sidebar.promo")}),(0,t.jsx)(f.default,{name:"sidebar-navigation-options-about",active:R.indexOf("/about")>-1,icon:(0,t.jsx)(c,{size:24,fill:`var(--${R.indexOf("/about")>-1?"primary":"base"})`}),href:"/about",children:I("sidebar.aboutUs")}),(0,t.jsx)(f.default,{name:"sidebar-navigation-options-referral",active:R.indexOf("/referral")>-1,icon:(0,t.jsx)(m,{size:24,fill:`var(--${R.indexOf("/referral")>-1?"primary":"base"})`}),href:_?"/account/referral":"/referral/info",children:I("sidebar.referral")}),(0,t.jsx)(f.default,{name:"sidebar-navigation-options-helpcenter",active:R.indexOf("/help-center")>-1&&0>R.indexOf("/app"),icon:(0,t.jsx)(n.default,{size:24,fill:`var(--${R.indexOf("/help-center")>-1&&0>R.indexOf("/app")?"primary":"base"})`}),href:"/help-center",children:I("sidebar.helpCenter")}),M&&(0,t.jsx)(f.default,{name:"tutorial-navigation-options-app",active:R.indexOf("/help-center/app")>-1,icon:(0,t.jsx)(x,{size:24,fill:`var(--${R.indexOf("/help-center/app")>-1?"primary":"base"})`}),href:"/help-center/app",children:(0,t.jsxs)(t.Fragment,{children:[I("sidebar.application.label"),(0,t.jsx)("span",{className:"text-xs px-2 ml-2 rounded-sm bg-success",children:I("sidebar.tag.new")})]})}),B.oldVersionDomain&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("hr",{className:"border-background-secondary bg-background-secondary h-2 my-4"}),(0,t.jsx)(f.default,{name:"sidebar-navigation-options-oldversion",onPress:()=>{G(e=>!e),a()},icon:(0,t.jsx)(v,{size:24,fill:"var(--base)"}),children:"Versi Lama"})]}),(0,t.jsx)(z,{onPress:(0,A.useCallback)(()=>(a(),setTimeout(()=>q(!0),250)),[])})]}),(0,t.jsxs)("p",{className:"text-center text-sm text-caption absolute landscape:relative landscape:bottom-0 bottom-6 left-0 right-0",children:[I("sidebar.version")," ",l.default.version]})]}),(0,t.jsx)(Z,{show:V,onClose:(0,A.useCallback)(()=>q(!1),[])}),U&&(0,t.jsx)(O,{onCancel:()=>G(!1),onContinue:Q})]})}let $=e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size||60,height:e.size||60,viewBox:"0 0 60 60",fill:"none",...e,children:(0,t.jsx)("path",{stroke:"#FF3B30",strokeLinecap:"round",strokeWidth:5,d:"M30 52.5a22.5 22.5 0 1 0-15.91-6.59M22.5 22.5l15 15M37.5 22.5l-15 15"})});var _=e.i(54430),B=e.i(37112),D=e.i(74080),L=e.i(30345);let R=(0,C.default)(()=>e.A(57506),{loadableGenerated:{modules:[92101]}});function I(){let[e,a]=(0,A.useState)(!1),[i,l]=(0,A.useState)(),[s,n]=(0,A.useState)(""),[r,o]=(0,A.useState)(),[c,u]=(0,A.useState)(),[m,f]=(0,A.useState)(),[p,h]=(0,A.useState)(),[x,v]=(0,A.useState)(),[g,b]=(0,A.useState)(!0),w={loop:!0,autoplay:!0,animationData:L.default},y=()=>{a(!1),n(""),o(void 0),u(void 0),f(void 0),l(void 0),v(void 0),h(void 0),b(!0)},j=(0,A.useCallback)(({detail:e})=>{var i;let s,r,{type:c,data:d,options:m={autoClose:!0,duration:5e3,sound:!1,close:!0}}=e;n(d.title),o(d.description),h(d.ctaPositive),v(d.ctaNegative),d.icon?u(d.icon):u(c===B.NotificationAlertType.ERROR?(0,t.jsx)($,{size:"100%"}):c===B.NotificationAlertType.WARNING?(0,t.jsx)(_.default,{size:"100%"}):(0,t.jsx)(R,{width:"100%",height:"100%",options:w})),m?.bgColor&&f(m.bgColor),void 0!==m.close&&b(m.close),l(c),m?.sound&&(i=c===B.NotificationAlertType.SUCCESS,s=document.getElementById("notification-alert"),(r=document.createElement("audio")).crossOrigin="anonymous",r.setAttribute("id","audio-bgm"),r.setAttribute("src",`/public/sound/${i?"notification-success":"notification-failure"}.mp3`),r.setAttribute("autoplay","true"),r.setAttribute("muted","false"),r.setAttribute("loop","false"),s?.appendChild(r),r.play(),setTimeout(()=>{r.pause(),s?.removeChild(r)},3e3)),a(!0),m.autoClose&&setTimeout(()=>{a(!1)},m.duration)},[]);return(0,A.useEffect)(()=>
1(window.addEventListener("notification-alert",j),()=>{window.removeEventListener("notification-alert",j)}),[]),e?(0,D.createPortal)((0,t.jsxs)("div",{id:"notification-alert",className:`fixed z-[9999] px-4 ${x||p?"pt-5 pb-4":"pt-3 pb-5 "} top-3 sm:top-4 sm:right-6 left-3 right-3 sm:ml-auto sm:w-2/3 md:w-1/2 lg:w-[410px] rounded-xl bg-gradient-to-r ${(()=>{switch(i){case B.NotificationAlertType.SUCCESS:return"from-[#007148]";case B.NotificationAlertType.WARNING:return"from-[#CA8500]";case B.NotificationAlertType.INFO:return"from-[#46a2ff]";case B.NotificationAlertType.ERROR:return"from-[#710000]";default:return m||"to-background-secondary"}})()} to-background-secondary to-50%`,children:[g&&(0,t.jsx)("button",{onClick:y,className:"h-6 w-6 ml-auto absolute right-3 top-2 z-50",children:(0,t.jsx)(d.default,{size:"100%",fill:"var(--base)"})}),(0,t.jsxs)("div",{className:"flex items-center",children:[c&&(0,t.jsx)("figure",{className:"flex-none h-12 w-12",children:c}),(0,t.jsxs)("article",{className:"pl-3",children:[(0,t.jsx)("p",{className:"font-medium",children:s}),r&&(0,t.jsx)("p",{className:"text-xs mt-1",children:r})]})]}),(x||p)&&(0,t.jsxs)("div",{className:"flex mt-2 justify-end gap-x-6",children:[x&&(0,t.jsx)("button",{className:"underline text-sm",onClick:()=>(y(),x.onPress&&x.onPress()),children:x.label}),p&&(0,t.jsx)("button",{className:"text-sm px-4 py-2 rounded-xl border-[1px] border-white",onClick:()=>(y(),p.onPress&&p.onPress()),children:p.label})]})]}),document.body):(0,t.jsx)(t.Fragment,{})}var H=e.i(75545),F=e.i(92684),U=e.i(34892),G=e.i(31448),M=e.i(17018),W=e.i(49607),V=e.i(28176),q=e.i(10158),K=e.i(19570),Y=e.i(49461),J=e.i(33899),Q=e.i(84131),X=e.i(22315),ee=e.i(14677);let et=(0,C.default)(()=>e.A(65212),{loadableGenerated:{modules:[30723]},ssr:!1}),ea=(0,C.default)(()=>e.A(62083),{loadableGenerated:{modules:[9109]},ssr:!1});e.s(["default",0,function({children:e,logoUrl:l,appDownloadUrls:s}){let n=(0,k.usePathname)(),r=(0,h.useDispatch)(),o=(0,J.default)(),c=(0,h.useStore)("navigation").navigation.gameNavbar,d=(0,h.useStore)("navigation").navigation.sidebar,u=(0,h.useStore)("navigation").navigation.appDownloadHeader,{account:m,updateAccount:f}=(0,A.useContext)(p.AuthContext),{fbqEnabled:x}=(0,Y.default)(),{pendingTransaction:v}=(0,h.useStore)("transaction"),g=(0,E.useTranslations)(),b=(0,A.useMemo)(()=>c?o?120:u?186:122:o?70:u?129:65,[o,u,c]);(0,A.useEffect)(()=>{X.default.locale("id"),(0,q.uninstallServiceWorker)()},[]),(0,A.useLayoutEffect)(()=>{if(window.scrollTo({top:0,behavior:"smooth"}),"/"===n){let e=(0,ee.v4)();(0,V.sendDataLayerEvent)("VisitHomepage",null,{gtag:!1,fbq:x,eventId:e}),(0,F.sendMetaEvent)({eventName:"VisitHomepage",eventId:e,user:{email:m?.email,id:m?.id,phone:m?.phone2}})}},[n]);let y=(0,A.useCallback)(async()=>{r({type:"account/setBalance",payload:await (0,i.getBalance)()})},[]),j=(0,A.useCallback)(async()=>{try{let e=v?.type===G.TransactionType.DEPOSIT?await (0,M.getDepositTransaction)({size:1}).then(e=>({...e.data[0],type:G.TransactionType.DEPOSIT})):await (0,W.getWithdrawTransaction)({size:1}).then(e=>({...e.data[0],type:G.TransactionType.WITHDRAW}));if(e.status!==U.default.IN_PROGRESS&&(e.status===U.default.SUCCESS||e.status===U.default.REJECTED)){let t=e.type===G.TransactionType.DEPOSIT?g("deposit.label"):g("withdraw.label"),i=e.companyBank?.bank.category===a.BankCategory.CRYPTO?g("main-component.deposit.crypto.description",{value:e.companyBank.bank.name,value2:e.originalAmount,value3:(0,w.formatCurrency)(e.netAmount)}):g("main-component.deposit.description",{value:(0,w.formatCurrency)(e.amount)}),l=B.NotificationAlertType.SUCCESS;e.type===G.TransactionType.WITHDRAW&&e.status===U.default.SUCCESS&&(i=g("main-component.withdraw.description")),e.status===U.default.REJECTED&&(i=g("main-component.rejected.description",{value:t}),l=B.NotificationAlertType.ERROR);let s={type:l,data:{title:t,description:i},options:{autoClose:!1,sound:e.type===G.TransactionType.DEPOSIT}};window.dispatchEvent(new CustomEvent("notification-alert",{detail:s})),window.dispatchEvent(new CustomEvent("pending-transaction-fetch",{detail:void 0})),window.dispatchEvent(new CustomEvent("reset-transaction-form")),Q.default.removeItem(H.default.STORAGE_KEY.TRANSFER_PROOF),(e.status===U.default.SUCCESS||e.status===U.default.REJECTED)&&(y(),f(),window.dispatchEvent(new CustomEvent("reload-transaction-form")))}}catch(e){console.error(e)}},[v]),C=(0,A.useCallback)(async()=>{let e=await Promise.allSettled([(0,M.getPendingDepositTransaction)({size:1,"status.in":"IN_PROGRESS,PENDING,PENDING_AUTO,IN_PROGRESS_AUTO"}),(0,W.getPendingWithdrawTransaction)({size:1,"status.in":"IN_PROGRESS,PENDING,PENDING_AUTO,IN_PROGRESS_AUTO"})]);if("fulfilled"===e[0].status&&"fulfilled"===e[1].status){let t=!(0,K.isObjectEmpty)(e[0].value),a=!(0,K.isObjectEmpty)(e[1].value);if(!v||t||a){if(!v&&(t||a)){let i;t?i={...e[0].value,type:G.TransactionType.DEPOSIT}:a&&(i={...e[1].value,type:G.TransactionType.WITHDRAW}),window.dispatchEvent(new CustomEvent("pending-transaction-fetch",{detail:i}))}}else j()}},[v,j]),N=(0,A.useCallback)(({detail:e})=>{r({type:"transaction/setPendingTransaction",payload:e})},[]);return(0,A.useEffect)(()=>{m&&r({type:"account/setRegisterContainer",payload:void 0})},[m]),(0,A.useEffect)(()=>(m&&(y(),window.addEventListener("pending-transaction-fetch",N),window.addEventListener("logout",()=>{r({type:"reset"}),window.dispatchEvent(new CustomEvent("reset-transaction-form")),window.removeEventListener("logout",()=>null),window.removeEventListener("pending-transaction-fetch",()=>null)})),()=>{m||(window.removeEventListener("logout",()=>null),window.removeEventListener("pending-transaction-fetch",()=>null))}),[m]),(0,A.useEffect)(()=>{let e=null;return m&&v&&(e=setInterval(()=>{C()},5e3)),()=>{e&&clearInterval(e)}},[v,m,C]),(0,A.useEffect)(()=>{m&&C()},[m]),(0,t.jsxs)("main",{id:"main-component",className:"min-h-[calc(100vh-62px-69px)] lg:min-h-[calc(100vh-66px)] transition-all duration-500 ease-out lg:pb-0 relative",style:{paddingTop:b},children:[(0,t.jsxs)(A.Suspense,{children:[(0,t.jsx)(ea,{}),(0,t.jsx)(et,{}),(0,t.jsx)(I,{}),(0,t.jsx)(P,{show:d,onClose:()=>{r({type:"navigation/toggleSidebar",payload:!1})},logoUrl:l,appDownloadUrls:s})]}),e]})}],47428)},13029,e=>{"use strict";var t=e.i(43476),a=e.i(90090),i=e.i(87497),l=e.i(75545),s=e.i(29573),n=e.i(53667),r=e.i(28176),o=e.i(19570),c=e.i(84086),d=e.i(84131),u=e.i(18566),m=e.i(71645),f=e.i(71770),p=e.i(30415),h=e.i(9618),x=e.i(29135),v=e.i(49461),g=e.i(14677);e.s(["default",0,function(e){let{appConfiguration:b,account:w,games:y,seo:j,children:E}=e;(0,v.default)();let{fbqEnabled:C}=(0,v.default)(),N=(0,u.useRouter)(),S=(0,u.usePathname)(),k=(0,c.checkCookies)("act"),[A,T]=(0,m.useState)(w.account),[O,z]=(0,m.useState)(!!w),[Z,P]=(0,m.useState)();(0,m.useEffect)(()=>{w&&Z&&(0,r.setDataLayerParameter)({user_id:`${Z?.web.companyCode}_${w.account?.username}`,agent:Z?.web.companyCode})},[w,Z]);let $=(0,m.useMemo)(()=>({logIn:async(e,t=!1)=>{z(!0),$.updateToken(e,t);let a=await $.updateAccount();if(a&&t){let t=e.loginDate;(0,i.updateAccount)({id:a.id,lastLogin:t});let l=(0,g.v4)();(0,r.sendDataLayerEvent)("login_success",{username:a.username,timestamp:t},{fbq:C,eventId:l});let n=S;s.default.PUBLIC_AUTH.every(e=>!(S.indexOf(e)>-1)||(n="/",!1)),N.replace(n)}},logOut:async()=>{d.default.clearItem(),z(!1),T(void 0),(0,c.removeCookies)("act"),(0,c.removeCookies)("acst"),n.default.clearAccessToken(),n.default.post("/api/identify/revoke",void 0),window.dispatchEvent(new CustomEvent("logout")),(0,r.setDataLayerParameter)({user_id:null,agent:Z?.web.companyCode}),N.replace("/"),N.refresh()},updateAccount:async()=>{try{let{data:e}=await (0,i.getAccount)();return T(e),(0,r.setDataLayerParameter)({user_id:`${Z?.web.companyCode}_${e.username}`,agent:Z?.web.companyCode}),e}catch(t){let{headers:e}=t;e?.status===404&&((0,c.removeCookies)("act"),(0,c.removeCookies)("acst"),N.push("/auth/register/confirmation"));return}},updateToken:(e,t)=>
1{n.default.setAccessToken(e.id_token),t&&((0,c.setCookies)("act",e.id_token),(0,c.setCookies)("acst",e.access_token))},setAccount:e=>{T(e),z(!0)}}),[Z,S]),_=(0,m.useCallback)((e,t)=>{P({...Z,[e]:t})},[Z]);return(0,m.useEffect)(()=>{if(!(0,o.isObjectEmpty)(b)){let{config:e,social:t,message:a,seo:i,headLink:s,keywords:n,meta:r,...o}=b||{},{pinterest:d,facebook:u,twitter:m,instagram:f,youtube:p,gplus:h,whatsapp2:x,...v}=t||{},g=Object.keys(v).reduce((e,t)=>(v[t]&&""!==v[t]&&(e[t]=v[t]),e),{}),w=a?.announcementUser,{popupWelcome:y,popupRegister:j,popupDeposit:E}=a||{};P({message:{announcement:w,welcome:y,deposit:E,register:j},contact:g,contactMisc:{whatsapp2:x},web:{...o,lang:l.default.LANGUAGES.find(e=>e.code===(0,c.getCookie)("lang"))??l.default.DEFAULT_LANGUAGES},social:{pinterest:d,facebook:u,twitter:m,instagram:f,youtube:p,gplus:h},config:{...e,viewNTO:e.viewNTO??!0}})}},[b]),(0,m.useEffect)(()=>{!k||O||w||$.logIn({id_token:(0,c.getCookie)("act")?.toString()})},[k,w]),(0,t.jsx)(p.AuthContext.Provider,{value:{...$,isLoggedIn:O,account:A},children:(0,t.jsx)(f.AppConfigurationContext.Provider,{value:Z?{...Z,updateConfig:_}:{...f.AppConfigurationInitialValue,updateConfig:_},children:(0,t.jsx)(h.SEOContext.Provider,{value:j,children:(0,t.jsx)(x.default,{customInitialState:{game:y,account:{...a.initialState,account:w.account||A,vip:{my:w.vip||{},levels:[]}}},children:E})})})})}])},75696,e=>{"use strict";var t=e.i(61745),a=e.i(43476);e.s(["default",0,function({locale:e,...i}){if(!e)throw Error(void 0);return(0,a.jsx)(t.IntlProvider,{locale:e,...i})}])},12564,e=>{"use strict";var t=e.i(71645),a=e.i(18566);e.s(["default",0,function({scripts:e}){let i=(0,a.usePathname)(),l=(0,t.useMemo)(()=>{if(!e?.length)return[];let t=e.flat().filter(e=>"approved"===e.status).filter(e=>"global"===e.url),a=(e,t)=>new Date(t.updatedAt||0).getTime()-new Date(e.updatedAt||0).getTime();return[t.filter(e=>"body"===e.type).sort(a)[0]||null,t.filter(e=>"header"===e.type).sort(a)[0]||null].filter(Boolean)},[e]),s=(0,t.useMemo)(()=>{if(!e?.length)return[];let t=e.flat().filter(e=>"approved"===e.status).filter(e=>e.url===i),a=(e,t)=>new Date(t.updatedAt||0).getTime()-new Date(e.updatedAt||0).getTime();return[t.filter(e=>"body"===e.type).sort(a)[0]||null,t.filter(e=>"header"===e.type).sort(a)[0]||null].filter(Boolean)},[e,i]);return(0,t.useEffect)(()=>{l.length&&l.forEach(e=>{document.querySelector(`[id^="global-script-${e._id}"]`)||fetch(e.fileName).then(e=>e.text()).then(t=>{[...t.matchAll(/<script[\s\S]*?<\/script>/gi)].forEach((t,a)=>{let i=document.createElement("div");i.innerHTML=t[0];let l=i.querySelector("script");if(!l||l.src&&document.querySelector(`script[src="${l.src}"]`))return;let s=document.createElement("script");s.id=`global-script-${e._id}-${a}`,Array.from(l.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),s.textContent=l.textContent,"header"===e.type?document.head.appendChild(s):document.body.appendChild(s)}),[...t.matchAll(/<noscript[^>]*>([\s\S]*?)<\/noscript>/g)].forEach(t=>{let a=document.createElement("div");a.innerHTML=t[0],"header"===e.type?document.head.appendChild(a.firstElementChild):document.body.appendChild(a.firstElementChild)})})})},[l]),(0,t.useEffect)(()=>{s.length&&(document.querySelectorAll("[data-page-script]").forEach(e=>e.remove()),s.forEach(e=>
1{document.querySelector(`[data-page-script="${e._id}"]`)||fetch(e.fileName).then(e=>e.text()).then(t=>{[...t.matchAll(/<script[^>]*>([\s\S]*?)<\/script>/g)].forEach((t,a)=>{let i=document.createElement("div");i.innerHTML=t[0];let l=i.querySelector("script");if(!l||l.src&&document.querySelector(`script[src="${l.src}"]`))return;let s=document.createElement("script");s.id=`${e.url}-script-${e._id}-${a}`,s.setAttribute("data-page-script",e._id),Array.from(l.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),s.textContent=l.textContent,"header"===e.type?document.head.appendChild(s):document.body.appendChild(s)}),[...t.matchAll(/<noscript[^>]*>([\s\S]*?)<\/noscript>/g)].forEach(t=>{let a=document.createElement("div");a.innerHTML=t[0];let i=a.firstElementChild;i.setAttribute("data-page-script",e._id),"header"===e.type?document.head.appendChild(i):document.body.appendChild(i)})})}))},[s,i]),null}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.