1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56897,e=>{"use strict";var t=e.i(856305);let r=(0,t.createServerReference)("008dd75c67e920e2029971f42f84359dc6a1acfe84",t.callServer,void 0,t.findSourceMapURL,"logoutAction"),n={success:!1,message:""};var i=e.i(438929),s=e.i(715311);function a(e){let t=(0,i.useRouter)(),[a,o,l]=(0,s.useActionState)(async()=>{let n=await r();return n?.success?(e?.onSuccess?.(n),t.push("/login")):e?.onError?.(n),n},n);return{state:a,formAction:o,isPending:l}}e.s(["useLogout",()=>a],56897)},576330,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},514654,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return b}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(481258),a=e.r(744066),o=e.r(901858),l=s._(e.r(577023)),u=a._(e.r(715311)),c=e.r(281152),d=e.r(359925),f=e.r(576330),p=new Map,m=new Set,h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:s,children:a="",strategy:o="afterInteractive",onError:u,stylesheets:c}=e,f=r||t;if(f&&m.has(f))return;if(p.has(t)){m.add(f),p.get(t).then(n,u);return}let h=()=>{i&&i(),m.add(f)},g=document.createElement("script"),b=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),h()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});s?(g.innerHTML=s.__html||"",h()):a?(g.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",h()):t&&(g.src=t,p.set(t,b)),(0,d.setAttributesFromProps)(g,e),"worker"===o&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",o),c&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(g)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}):h(e)}function b(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:s="afterInteractive",onError:a,stylesheets:d,...p}=e,{updateScripts:g,scripts:b,getIsSsr:y,appDir:v,nonce:x}=(0,u.useContext)(c.HeadManagerContext);x=p.nonce||x;let w=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;w.current||(i&&e&&m.has(e)&&i(),w.current=!0)},[i,t,r]);let S=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!S.current){if("afterInteractive"===s)h(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}));S.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(g?(b[s]=(b[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:a,...p,nonce:x}]),g(b)):y&&y()?m.add(t||r):y&&!y()&&h({...e,nonce:x})),v){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...p,id:t}])})`}});else return l.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:x,crossOrigin:p.crossOrigin}:{as:"script",nonce:x,crossOrigin:p.crossOrigin}),(0,o.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...p,id:t}])})`}});"afterInteractive"===s&&r&&l.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:x,crossOrigin:p.crossOrigin}:{as:"script",nonce:x,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},649638,e=>{"use strict";var t=e.i(574348);e.s(["X",()=>t.default])},478751,e=>{"use strict";function t(e){if(!e)return[];let t=[];return e.banks?.forEach(e=>{t.push({type:"bank",name:e.bank_name,account_name:e.bank_account_name,account_number:e.bank_account_number})}),e.e_wallets?.forEach(e=>{t.push({type:"e_wallet",name:e.e_wallet_name,account_name:e.e_wallet_account_name,account_number:e.e_wallet_account_number})}),e.pulsa?.forEach(e=>{t.push({type:"pulsa",name:e.pulsa_name,account_name:e.pulsa_account_name,account_number:e.pulsa_account_number})}),t}e.s(["getShowRules",0,({user:e,days:t=7})=>{if(!e)return!1;if(!e?.rules_seen_at)return!0;let r=new Date(e.rules_seen_at).getTime();return!!Number.isNaN(r)||Date.now()-r>24*t*36e5},"mapUserPaymentChannels",()=>t])},959552,e=>{"use strict";var t=e.i(723434);e.s(["mutate",()=>t.j])},904884,890878,e=>{"use strict";var t=e.i(980566),r=e.i(338554);e.s(["usePushNotifications",0,({enabled:e=!0,config:n={revalidateOnFocus:!1,refreshInterval:0},options:i={isValidating:!1},params:s={}}={})=>{let a=(0,r.default)(e?function(e){let t=new URLSearchParams;for(let r of(e.engine&&t.set("engine",e.engine),e.status&&t.set("status",e.status),null!=e.limit&&t.set("limit",String(e.limit)),null!=e.offset&&t.set("offset",String(e.offset)),e.type??[]))t.append("type[]",r);for(let r of e.relation_id??[])t.append("relation_id[]",r);let r=t.toString();return r?`/api/push-notifications?${r}`:"/api/push-notifications"}(s):null,t.getFetcher,n);return{pushNotifications:a.data,pushNotificationsError:a.error,pushNotificationsMutate:a.mutate,pushNotificationsLoading:a.isLoading,...i.isValidating&&{pushNotificationsValidating:a.isValidating}}}],904884);var n=e.i(359150);function i(e,t){return`/game/${(0,n.createGameSlug)(e)}-${t}/play?demo=false`}function s(e){let t=e-Math.floor(Date.now()/1e3);return t<=0?{months:0,days:0,hours:0,minutes:0,seconds:0}:{months:Math.floor(t/2592e3),days:Math.floor(t/86400%30),hours:Math.floor(t/3600%24),minutes:Math.floor(t/60%60),seconds:Math.floor(t%60)}}e.s(["buildGameUrl",()=>i,"calculateTimeLeft",()=>s],890878)},239394,161176,e=>{"use strict";var t=e.i(980566),r=e.i(359150);let n=(0,e.i(826128).create)((e,t)=>({queue:[],seenIds:new Set,enqueue:r=>{let{seenIds:n,queue:i}=t(),s=r.filter(e=>e.notification_id&&!n.has(e.notification_id));if(0===s.length)return[];let a=new Set(n);for(let e of s)a.add(e.notification_id);return e({seenIds:a.size>200?new Set(Array.from(a).slice(-200)):a,queue:[...i,...s]}),s},dismissCurrent:()=>{e(e=>({queue:e.queue.slice(1)}))},clear:()=>{e({queue:[],seenIds:new Set})}}));e.s(["useNotificationStore",0,n],161176);var i=e.i(438929),s=e.i(715311);function a({rulesBlocking:e=!1}={}){let o=(0,i.usePathname)(),l=n(e=>e.queue),u=n(e=>e.dismissCurrent),c=l[0]??null,d=(0,r.isPlayRoute)(o)||(0,r.isBonusRoute)(o),f=l.length>0&&!d,p=null!==c&&!d&&!e,m=(0,s.useCallback)(()=>{c&&(0,t.patchFetcher)(`/api/push-notifications/read/${c.notification_id}`).catch(e=>{console.error("[useNotificationQueue] failed to mark notification read",e)}),u()},[c,u]);return{current:c,notificationVisible:p,dismissCurrent:m,isNotificationActive:f}}e.s(["useNotificationQueue",()=>a],239394)},826128,e=>{"use strict";var t=e.i(715311);let r=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,s={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(n,i,s);return s},n=e=>{let n=e?r(e):r,i=e=>(function(e,r=e=>e){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n})(n,e);return Object.assign(i,n),i},i=e=>e?n(e):n;e.s(["create",()=>i],826128)},982563,e=>{"use strict";let t=(0,e.i(826128).create)(e=>({rulesShouldShow:!1,showRules:()=>e({rulesShouldShow:!0}),hideRules:()=>e({rulesShouldShow:!1})}));e.s(["useRulesStore",0,t])},657580,e=>{"use strict";var t=e.i(478751),r=e.i(982563),n=e.i(715311);function i({isAuthenticated:e,isPastPinGate:i,user:s}){let a=(0,r.useRulesStore)(e=>e.rulesShouldShow),o=(0,r.useRulesStore)(e=>e.hideRules),l=(0,t.getShowRules)({user:s});return(0,n.useEffect)(()=>{e&&i&&l?r.useRulesStore.getState().showRules():e&&i||r.useRulesStore.getState().hideRules()},[e,i,l]),{rulesShouldShow:a,rulesBlocking:e&&i&&(null===s||l)||a,hide:o}}
1e.s(["useRulesManager",()=>i])},191153,e=>{"use strict";var t=e.i(901858),r=e.i(56897),n=e.i(856305);let i=(0,n.createServerReference)("0048c1ed0d6c3448f41d1fa52e2e8ccfa6b37dd7a3",n.callServer,void 0,n.findSourceMapURL,"patchRulesAction"),s={success:!1,message:""};var a=e.i(715311),o=e.i(657580),l=e.i(980566),u=e.i(338554),c=e.i(331373),d=e.i(769455),f=e.i(369013),p=e.i(995671),m=e.i(963779),h=e.i(905274),g=e.i(926149);e.s(["default",0,()=>{let e=(0,d.useTranslations)(),{isAuthenticated:n,isPastPinGate:b,isPinGateOpen:y,user:v}=(0,f.useAuth)(),{userMutate:x}=(0,c.useMe)({enabled:n}),{rulesShouldShow:w,hide:S}=(0,o.useRulesManager)({isAuthenticated:n,isPastPinGate:b,user:v}),{formAction:k,isPending:_}=(0,r.useLogout)({onSuccess:()=>{S()},onError:e=>{(0,h.LXToast)("error",e?.message||"Failed to ignore rules")}}),{formAction:j,isPending:C}=function(e){let[t,r,n]=(0,a.useActionState)(async()=>{let t=await i();return t?.success?e?.onSuccess?.(t):e?.onError?.(t),t},s);return{state:t,formAction:r,isPending:n}}({onSuccess:async()=>{await x(),S()},onError:e=>{(0,h.LXToast)("error",e?.message||"Failed to accept rules")}}),{pageData:T}=(({dto:e,config:t={revalidateOnFocus:!1,refreshInterval:0},enabled:r=!0})=>{let n=(0,u.default)(r?["/api/settings/page",e]:null,([e,t])=>(0,l.getFetcher)(e,t),t);return{pageData:n?.data,pageDataError:n?.error,pageDataLoading:n?.isLoading}})({enabled:w,dto:{name:"rules"}}),N=T?.data?.[0]?.value,F=w&&!!N&&!y;return(0,t.jsx)(g.Drawer,{open:F,onOpenChange:S,modal:!0,dismissible:!1,children:(0,t.jsxs)(m.LXDrawerContent,{className:"z-60",children:[(0,t.jsxs)(m.LXDrawerHeader,{children:[(0,t.jsx)(m.LXDrawerTitle,{children:e("rules.heading")}),(0,t.jsx)(g.DrawerDescription,{})]}),(0,t.jsx)("div",{className:"overflow-y-auto scrollbar-hide p-4 pb-20 text-xs font-normal text-foreground",dangerouslySetInnerHTML:{__html:N??""}}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 grid grid-cols-2 gap-x-2 p-4 w-full bg-container-lv2",children:[(0,t.jsx)("form",{action:k,children:(0,t.jsx)(p.LXButton,{variant:"secondary",className:"capitalize w-full",disabled:_,children:_?`${e("common.processing")}...`:e("common.ignore")})}),(0,t.jsx)("form",{action:j,children:(0,t.jsx)(p.LXButton,{variant:"primary",className:"capitalize w-full",formAction:j,disabled:C,children:C?`${e("common.processing")}...`:e("common.agree")})})]})]})})}],191153)},821414,(e,t,r)=>{t.exports=e.r(514654)},532396,e=>{"use strict";var t=e.i(901858),r=e.i(331373),n=e.i(821414),i=e.i(715311),s=e.i(369013),a=e.i(262052);let o="1aGA6LVEPzRaCzGclKnk",l="_sid",u=/^[a-zA-Z0-9]{16,32}$/;function c(){try{return JSON.parse(window.name||"{}")}catch{return null}}function d(){let{isAuthenticated:e,isPastPinGate:d}=(0,s.useAuth)(),{dealerId:f}=(0,a.useDealerConfig)(),p=e&&d,{userData:m}=(0,r.useMe)({enabled:p&&!!o}),h=m?.username,g=(0,i.useRef)(!!(function(){let e=function(e){try{let t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}(l);if("object"!=typeof e||null===e)return null;let{id:t,ts:r}=e,n="number"==typeof r&&Date.now()-r<2592e6;return"string"==typeof t&&u.test(t)&&n?t:null}()??function(){let e=c();if("object"!=typeof e||null===e)return null;let t=e._s;return"string"==typeof t&&u.test(t)?t:null}()));return(0,i.useEffect)(()=>{o&&p&&h&&!g.current&&window.fpPromise&&(g.current=!0,window.fpPromise.then(e=>e.get({linkedId:`${f}#${h}`,tag:{dealer_id:f,username:h}})).then(e=>{var t;let r;!function(e,t){try{return localStorage.setItem(e,JSON.stringify(t)),!0}catch{return!1}}(l,{id:t=e.visitorId,ts:Date.now()})&&console.warn("[TraceId] Visitor id held in window.name only"),r=c(),window.name=JSON.stringify({..."object"==typeof r&&null!==r?r:{},_s:t})}).catch(e=>{console.error("[TraceId] Failed to identify:",e)}))},[p,h,f]),(0,t.jsx)(n.default,{strategy:"afterInteractive",children:` 2 window.fpPromise = import('https://fpjscdn.net/v3/${o}') 3 .then(FingerprintJS => FingerprintJS.load({ 4 region: "ap", 5 endpoint: ["https://trace.lxgaming.net", FingerprintJS.defaultEndpoint], 6 cache: { storage: "sessionStorage", duration: 2592000 } 7 })); 8 `})}e.s(["TraceIdInitializer",()=>d])},830762,e=>{"use strict";var t=e.i(901858),r=e.i(657580),n=e.i(239394),i=e.i(904884);let s=new Set(["dialog","toast","drawer"]),a=new Set(["dialog","toast","drawer","pixi"]);function o(e){return{type:e.type,relation_id:e.relation_id,notification_id:e._id,title:e.title,message:e.message,display:e.display,details:e.details}}var l=e.i(715311),u=e.i(959552);let c=["/api/games/ongoing-free-round","/api/push-notifications"];async function d(){await (0,u.mutate)(e=>"string"==typeof e&&c.some(t=>e.startsWith(t)),void 0,{revalidate:!0})}var f=e.i(161176),p=e.i(369013),m=e.i(709285),h=e.i(931534),g=e.i(601950),b=e.i(890878),y=e.i(962518),v=e.i(438929);function x({titleImage:e,titleAlt:r,titleWidth:n,titleHeight:i,titleMargin:s,notification:a,onDismiss:o}){let u=(0,v.useRouter)(),[c,d]=(0,l.useState)(!1),[f,p]=(0,l.useState)(()=>(0,b.calculateTimeLeft)(a.details.event_time.deadline)),m=a.details?.bonus?.round||0,h=a.details?.bonus?.amount||0,x=a.details?.event_time?.deadline;(0,l.useEffect)(()=>{new FontFace("superCellMagicWebfont","url(/fonts/supercell-magic-webfont/supercell-magic-webfont.ttf)").load().then(e=>{document.fonts.add(e)}).catch(e=>{console.warn("[CocDialogBase] Font load failed:",e)})},[]),(0,l.useEffect)(()=>{let e=setInterval(()=>{p((0,b.calculateTimeLeft)(x))},1e3);return()=>clearInterval(e)},[x]);let w=(0,l.useCallback)(async()=>
8{if(c)return;d(!0);let e=(0,b.buildGameUrl)(a.details.game.game_name,a.details.game.game_id);o(),u.push(e)},[c,a,o,u]);return(0,t.jsx)("div",{className:"fixed inset-0 z-100 bg-black/50",style:{fontFamily:"superCellMagicWebfont, sans-serif"},children:(0,t.jsx)("button",{onClick:w,type:"button",style:{cursor:c?"default":"pointer"},className:"flex flex-col items-center justify-center min-h-screen w-full",children:(0,t.jsx)("div",{className:"relative flex flex-col items-center",style:{width:"263px"},children:(0,t.jsxs)("div",{className:"relative",style:{width:"263px",height:"333px"},children:[(0,t.jsx)(y.default,{alt:"background",src:"/images/bonus-freespin/dialog/background.webp",width:263,height:333,className:"w-full h-full",priority:!0}),(0,t.jsx)("div",{className:"absolute w-full z-0 flex justify-center",style:{top:`${s}px`},children:(0,t.jsx)(y.default,{alt:r,src:e,width:n,height:i,className:"w-auto h-auto drop-shadow-2xl",priority:!0})}),(0,t.jsxs)("div",{className:"absolute inset-0 -top-5 flex flex-col items-center px-4 pt-4 pb-3",children:[(0,t.jsx)("div",{className:"w-full relative z-10",children:(0,t.jsx)(y.default,{alt:"bonus free spin title",src:"/images/bonus-freespin/dialog/title.webp",width:210,height:50,className:"w-full h-auto"})}),(0,t.jsx)("div",{className:"text-center text-xs mb-6 relative z-10",children:(0,t.jsx)("p",{className:"text-white",style:{WebkitTextStroke:"0.5px #000",fontWeight:900},children:"SELAMAT! Kamu Mendapatkan Bonus"})}),(0,t.jsxs)("div",{className:"text-center mb-8 relative z-10 flex flex-col items-center gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)("span",{className:"font-bold leading-none",style:{fontSize:"40px",background:"linear-gradient(0deg, #FFF561 19.23%, #FDCD63 41.72%, #FFF779 91.35%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"1px #000",paintOrder:"stroke fill"},children:m}),(0,t.jsxs)("span",{className:"font-bold leading-none",style:{fontSize:"20px",background:"linear-gradient(0deg, #FFF561 19.23%, #FDCD63 41.72%, #FFF779 91.35%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"1px #000",paintOrder:"stroke fill"},children:["Putaran",(0,t.jsx)("br",{}),"Gratis"]})]}),(0,t.jsxs)("div",{style:{fontSize:"12px",WebkitTextStroke:"0.5px #000",fontWeight:700},className:"text-white",children:["Taruhan Rp",(0,g.formatNumber)(h)]})]}),(0,t.jsx)("div",{className:"text-center mb-4 relative z-10",children:(0,t.jsx)("p",{className:"text-white text-[10px] font-bold",style:{WebkitTextStroke:"0.5px #000",textShadow:"1px 1px 2px rgba(0,0,0,0.8)"},children:"Bonus akan berakhir dalam"})}),(0,t.jsx)("div",{className:"text-center mb-5 relative z-10",children:(0,t.jsx)("p",{className:"font-bold leading-none",style:{background:"linear-gradient(0deg, #FFF561 19.23%, #FDCD63 41.72%, #FFF779 91.35%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"1px #000",paintOrder:"stroke fill",fontSize:"20px"},children:0===f.months&&0===f.days?`${String(f.hours).padStart(2,"0")}j : ${String(f.minutes).padStart(2,"0")}m : ${String(f.seconds).padStart(2,"0")}d`:`${f.months>0?`${f.months}M : `:""}${f.days}d : ${String(f.hours).padStart(2,"0")}j : ${String(f.minutes).padStart(2,"0")}m`})}),(0,t.jsx)("div",{className:"text-center relative z-10",children:(0,t.jsx)("p",{className:"text-nowrap font-bold py-2 rounded",style:{fontSize:"10px",background:"linear-gradient(0deg, #FFF561 19.23%, #FDCD63 41.72%, #FFF779 91.35%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"0.5px #000",paintOrder:"stroke fill"},children:c?"Memuat game...":"Tap layar untuk melanjutkan"})}),c&&(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center rounded z-20",style:{background:"rgba(0,0,0,0.55)"},children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-full border-4 border-t-transparent animate-spin mb-2",style:{borderColor:"#FFF561 transparent #FFF561 #FFF561"}}),(0,t.jsx)("p",{className:"font-bold",style:{fontSize:"12px",background:"linear-gradient(0deg, #FFF561 19.23%, #FDCD63 41.72%, #FFF779 9
81.35%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStroke:"0.5px #000",paintOrder:"stroke fill"},children:"Memuat game..."})]})]})]})})})})}function w({notification:e,onDismiss:r}){let n=e.details?.game?.provider?.toLowerCase(),i=e.details?.game?.game_name?.toLowerCase();if("supercell"===n){if(i?.includes("super scatter"))return(0,t.jsx)(x,{titleImage:"/images/bonus-freespin/dialog/super-scatter-title.webp",titleAlt:"Super Scatter",titleWidth:105,titleHeight:105,titleMargin:-60,notification:e,onDismiss:r});if(i?.includes("super rich"))return(0,t.jsx)(x,{titleImage:"/images/bonus-freespin/dialog/super-rich-title.webp",titleAlt:"Super Rich",titleWidth:60,titleHeight:30,titleMargin:-40,notification:e,onDismiss:r})}return(0,t.jsx)(h.Dialog,{open:!0,onOpenChange:e=>{e||r()},children:(0,t.jsxs)(m.LXDialogContent,{variant:"default",showCloseButton:!1,children:[(0,t.jsx)(m.LXDialogClose,{}),(0,t.jsx)(h.DialogTitle,{children:"Bonus Free Spin"}),(0,t.jsx)(h.DialogDescription,{className:"hidden",children:"Push notification"}),(0,t.jsx)("div",{className:"text-sm text-foreground",children:e.message})]})})}var S=e.i(649638),k=e.i(963779),_=e.i(926149);function j({notification:e,onDismiss:r}){return(0,t.jsx)(_.Drawer,{open:!0,onOpenChange:e=>{e||r()},children:(0,t.jsxs)(k.LXDrawerContent,{className:"min-h-[50dvh]",children:[(0,t.jsxs)(k.LXDrawerHeader,{children:[(0,t.jsx)(k.LXDrawerTitle,{children:"Bonus Free Spin"}),(0,t.jsx)(k.LXDrawerClose,{children:(0,t.jsx)(S.X,{className:"size-6"})})]}),(0,t.jsx)("div",{className:"overflow-y-auto scrollbar-hide p-4 pb-6 text-sm text-foreground",children:"string"==typeof e.message?(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e.message}}):e.message})]})})}var C=e.i(905274);function T({notification:e,onDismiss:t}){let r=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{r.current||(r.current=!0,(0,C.LXToast)("bonus-notification",e.message,{duration:5e3,onDismiss:t,onAutoClose:t}))},[e,t]),null}function N({notification:e,onDismiss:r}){switch(e.display){case"dialog":return(0,t.jsx)(w,{notification:e,onDismiss:r});case"toast":return(0,t.jsx)(T,{notification:e,onDismiss:r});case"drawer":return(0,t.jsx)(j,{notification:e,onDismiss:r});default:return console.warn(`[NotificationRenderer] unsupported display: ${e.display}`),null}}function F(){let e,u,c,m,h,{isAuthenticated:g,isPastPinGate:b,isPinGateOpen:y,user:v}=(0,p.useAuth)();e=(0,f.useNotificationStore)(e=>e.enqueue),u=(0,f.useNotificationStore)(e=>e.clear),(0,l.useEffect)(()=>{g||u()},[g,u]),c=(0,l.useCallback)(t=>{e(t).some(e=>"bonus_freespin"===e.type)&&d()},[e]),m=(0,l.useCallback)(e=>{c([e])},[c]),(h=(0,l.useRef)(m)).current=m,(0,l.useEffect)(()=>{if(!g)return;let e=new EventSource("/api/notifications/stream");return e.onmessage=t=>{var r,n;let i;try{i=JSON.parse(t.data)}catch{return}"object"==typeof(r=i)&&null!==r&&"__closed__"===r.type?e.close():"object"==typeof(n=i)&&null!==n&&"string"==typeof n.notification_id&&n.notification_id.length>0&&"string"==typeof n.type&&"string"==typeof n.relation_id&&"string"==typeof n.title&&"string"==typeof n.message&&"string"==typeof n.display&&a.has(n.display)&&"object"==typeof n.details&&null!==n.details&&h.current(i)},()=>e.close()},[g]),function(e,t){let{pushNotifications:r}=(0,i.usePushNotifications)({enabled:e,params:{status:"unread"}}),n=(0,l.useRef)(t);n.current=t,(0,l.useEffect)(()=>{if(!r)return;let e=r.data.filter(e=>{var t;return t=e.display,s.has(t)}).map(o);e.length>0&&n.current(e)},[r])}(g,c);let{rulesBlocking:x}=(0,r.useRulesManager)({isAuthenticated:g,isPastPinGate:b,user:v}),{current:w,notificationVisible:S,dismissCurrent:k}=(0,n.useNotificationQueue)({rulesBlocking:x});return g&&b&&!y&&w&&S?(0,t.jsx)(N,{notification:w,onDismiss:k}):null}e.s(["NotificationCenter",()=>F],830762)},755987,e=>{"use strict";var t=e.i(726940),r=e.i(901858);function n({locale:e,...n}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...n})}e.s(["default",()=>n])},957571,e=>{"use strict";var t=e.i(715311),r=e.i(905274);function n({messages:e}){return(0,t.useEffect)(()=>
8{e.forEach(e=>{(0,r.LXToast)(e.variant,e.message,{id:e.id||`flash-${Date.now()}`})})},[e]),null}e.s(["FlashToast",()=>n])},35305,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},561227,(e,t,r)=>{"use strict";var n=e.r(35305);function i(){}function s(){}s.resetWarningCache=i,t.exports=function(){function e(e,t,r,i,s,a){if(a!==n){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return r.PropTypes=r,r}},304153,(e,t,r)=>{t.exports=e.r(561227)()},123374,(e,t,r)=>{!function(n,i){if("function"==typeof define&&define.amd){let n;void 0!==(n=i(e.r,r,t))&&e.v(n)}else t.exports=i()}(e.e,function(){var e,t,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function s(e,t,r){return e<t?t:e>r?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(i[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();n.status=1===(e=s(e,i.minimum,1))?null:e;var r=n.render(!t),l=r.querySelector(i.barSelector),u=i.speed,c=i.easing;return r.offsetWidth,a(function(t){var s,a,d,f;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),o(l,(s=e,a=u,d=c,(f="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+a+"ms "+d,f)),1===e?(o(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){o(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*s(Math.random()*t,.1,.95)),t=s(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var r,s=t.querySelector(i.barSelector),a=e?"-100":(-1+(n.status||0))*100,l=document.querySelector(i.parent);return o(s,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!i.showSpinner&&(r=t.querySelector(i.spinnerSelector))&&f(r),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(t),t},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),o=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,i){var s;n=t[s=(s=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[s]=function(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,s=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+s)in r)return n;return t}(s)),r.style[n]=i}return function(e,t){var n,i,s=arguments;if(2==s.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,s[1],s[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e),n=r+t;l(r,t)||(e.className=n.substring(1))}function c(e,t){var r,n=d(e);l(e,t)&&(e.className=(r=n.replace(" "+t+" "," ")).substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})},237617,(e,t,r)=>{var n=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>
8i(e,"name",{value:t,configurable:!0}),c=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))l.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?n(o(e)):{},c(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),f={},p={default:()=>w,useTopLoader:()=>v};for(var m in p)i(f,m,{get:p[m],enumerable:!0});t.exports=c(i({},"__esModule",{value:!0}),f);var h=d(e.r(304153)),g=d(e.r(715311)),b=d(e.r(123374)),y=d(e.r(123374)),v=u(()=>({start:()=>y.start(),done:e=>y.done(e),remove:()=>y.remove(),setProgress:e=>y.set(e),inc:e=>y.inc(e),trickle:()=>y.trickle(),isStarted:()=>y.isStarted(),isRendered:()=>y.isRendered(),getPositioningCSS:()=>y.getPositioningCSS()}),"useTopLoader"),x=u(({color:e,height:t,showSpinner:r,crawl:n,crawlSpeed:i,initialPosition:s,easing:a,speed:o,shadow:l,template:c,zIndex:d=1600,showAtBottom:f=!1,showForHashAnchor:p=!0,nonce:m})=>{let h=null!=e?e:"#29d",y=l||void 0===l?l?`box-shadow:${l}`:`box-shadow:0 0 10px ${h},0 0 5px ${h}`:"",v=g.createElement("style",{nonce:m},`#nprogress{pointer-events:none}#nprogress .bar{background:${h};position:fixed;z-index:${d};${f?"bottom: 0;":"top: 0;"}left:0;width:100%;height:${null!=t?t:3}px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;${y};opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translate(0px,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:${d};${f?"bottom: 15px;":"top: 15px;"}right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:${h};border-left-color:${h};border-radius:50%;-webkit-animation:nprogress-spinner 400ms linear infinite;animation:nprogress-spinner 400ms linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`),x=u(e=>new URL(e,window.location.href).href,"toAbsoluteURL"),w=u((e,t)=>{let r=new URL(x(e)),n=new URL(x(t));return r.href.split("#")[0]===n.href.split("#")[0]},"isHashAnchor"),S=u((e,t)=>{let r=new URL(x(e)),n=new URL(x(t));return r.hostname.replace(/^www\./,"")===n.hostname.replace(/^www\./,"")},"isSameHostName");return g.useEffect(()=>{let e,t;function l(e,t){let r=new URL(e),n=new URL(t);if(r.hostname===n.hostname&&r.pathname===n.pathname&&r.search===n.search){let e=r.hash,t=n.hash;return e!==t&&r.href.replace(e,"")===n.href.replace(t,"")}return!1}b.configure({showSpinner:null==r||r,trickle:null==n||n,trickleSpeed:null!=i?i:200,minimum:null!=s?s:.08,easing:null!=a?a:"ease",speed:null!=o?o:200,template:null!=c?c:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'}),u(l,"isAnchorOfCurrentUrl");var d,f,m=document.querySelectorAll("html");let h=u(()=>m.forEach(e=>e.classList.remove("nprogress-busy")),"removeNProgressClass");function g(e){for(;e&&"a"!==e.tagName.toLowerCase();)e=e.parentElement;return e}function y(e){try{let t=e.target,r=g(t),n=null==r?void 0:r.href;if(n){let t=window.location.href,i=""!==r.target,s=["tel:","mailto:","sms:","blob:","download:"].some(e=>n.startsWith(e));if(!S(window.location.href,r.href))return;let a=l(t,n)||w(window.location.href,r.href);if(!p&&a)return;n===t||i||s||a||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||!x(r.href).startsWith("http")?(b.start(),b.done(),h()):b.start()}}catch(e){b.start(),b.done()}}function v(){b.done(),h()}function k(){b.done()}return u(g,"findClosestAnchor"),u(y,"handleClick"),e=(d=window.history).pushState,d.pushState=(...t)=>(b.done(),h(),e.apply(d,t)),t=(f=window.history).replaceState,f.replaceState=(...e)=>(b.done(),h(),t.apply(f,e)),u(v,"handlePageHide"),u(k,"handleBackAndForth"),window.addEventListener("popstate",k),document.addEventListener("click",y),window.addEventListener("pagehide",v),()=>{document.removeEventListener("click",y),window.removeEventListener("pagehide",v),window.removeEventListener("popstate",k)}},[]),v},"NextTopLoader"),w=x;x.propTypes={color:h.string,height:h.number,showSpinner:h.bool,crawl:h.bool,crawlSpeed:h.number,initialPosition:h.number,easing:h.string,
8speed:h.number,template:h.string,shadow:h.oneOfType([h.string,h.bool]),zIndex:h.number,showAtBottom:h.bool}},331811,e=>{"use strict";var t=e.i(901858),r=e.i(237617);function n(){return(0,t.jsx)(r.default,{color:"var(--primary)",height:3,showSpinner:!1})}e.s(["default",()=>n])},902880,e=>{"use strict";var t=e.i(901858),r=e.i(715311),n=(e,t,r,n,i,s,a,o)=>{let l=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&s?i.map(e=>s[e]||e):i;r?(l.classList.remove(...n),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),r=t,o&&u.includes(r)&&(l.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},i=r.createContext(void 0),s={setTheme:e=>{},themes:[]};r.memo(({forcedTheme:e,storageKey:t,attribute:i,enableSystem:s,enableColorScheme:a,defaultTheme:o,value:l,themes:u,nonce:c,scriptProps:d})=>{let f=JSON.stringify([i,t,o,e,u,l,s,a]).slice(1,-1);return r.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${n.toString()})(${f})`}})});var a=e.i(754219);let o=({...e})=>{var n;let{theme:o="system"}=null!=(n=r.useContext(i))?n:s;return(0,t.jsx)(a.Toaster,{theme:o,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};e.s(["Toaster",()=>o],902880)},28419,e=>{e.v(t=>Promise.all(["static/chunks/6c1a6a95640fe984.js","static/chunks/b32c0aa82ad0af13.js"].map(t=>e.l(t))).then(()=>t(749511)))}]);
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.