1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1868],{10503:(e,t,a)=>{a.d(t,{Jr:()=>n.J,iT:()=>n.i});var n=a(40986)},14706:(e,t,a)=>{a.d(t,{SiteSettingsProvider:()=>d,y:()=>u});var n=a(18720),r=a(74348),i=a(24582);let s={siteName:"",logo:"",favicon:"/favicon.ico",backgroundImage:"",backgroundImageMobileEnabled:!0,liveChatScript:"",liveChatLink:"",whatsappNumber:"",googleAnalytic:"",metaPixel:"",customScript:"",footer:"",telegramLink:"",bottomLeft:"",ampTag:"",ampPageRedirect:"",isLoading:!0},o=(0,r.createContext)(s);function c(){return"".concat("falcon_site_settings_v5","_").concat(window.location.hostname)}function l(e,t){try{let a={data:e,timestamp:Date.now(),backendUpdatedAt:t};localStorage.setItem(c(),JSON.stringify(a))}catch{}}function d(e){let{children:t}=e,[a,d]=(0,r.useState)(s);return(0,r.useEffect)(()=>{var e;let t=function(){try{let e=localStorage.getItem(c());if(e)return JSON.parse(e)}catch{}return null}();async function a(){try{let e=await fetch("/api/site-settings",{method:"GET",cache:"no-store"});if(e.ok){let t=await e.json();if(t.success&&t.data){let e=t.data.logo?(0,i.a4)(t.data.logo):"",a=t.data.favicon?(0,i.a4)(t.data.favicon):"/favicon.ico",n=t.data.background_image?(0,i.a4)(t.data.background_image):"";return e||console.warn("Site settings: Logo URL is empty or invalid"),{newSettings:{siteName:t.data.site_name||"",logo:e,favicon:a,backgroundImage:n,backgroundImageMobileEnabled:!1!==t.data.background_image_mobile_enabled,liveChatScript:t.data.live_chat||"",liveChatLink:t.data.live_chat_link||"",whatsappNumber:t.data.whatsapp_number||"",googleAnalytic:t.data.google_analytic||"",metaPixel:t.data.meta_pixel||"",customScript:t.data.custom_script||"",footer:t.data.footer||"",telegramLink:t.data.telegram_link||"",bottomLeft:t.data.bottom_left||"",ampTag:t.data.amp_tag||"",ampPageRedirect:t.data.amp_page_redirect||""},backendUpdatedAt:t.data.lastUpdated||void 0}}}}catch(e){console.error("Error fetching site settings:",e)}return null}(null==t||null==(e=t.data)?void 0:e.logo)&&"string"==typeof t.data.logo&&t.data.logo.length>0&&d({...s,...t.data,isLoading:!1}),(null==t?void 0:t.data)?a().then(e=>{e&&(d({...e.newSettings,isLoading:!1}),l(e.newSettings,e.backendUpdatedAt))}):a().then(e=>{e?(d({...e.newSettings,isLoading:!1}),l(e.newSettings,e.backendUpdatedAt)):d(e=>({...e,isLoading:!1}))})},[]),(0,n.jsx)(o.Provider,{value:a,children:t})}function u(){return(0,r.useContext)(o)}},24582:(e,t,a)=>{a.d(t,{Yq:()=>o,a4:()=>v,j8:()=>x,rv:()=>s,vv:()=>r,yz:()=>i});var n=a(9085);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"IDR";return"XDT"===t||"USDT"===t?"USDT ".concat(e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})):"USD"===t?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e):new Intl.NumberFormat("id-ID",{style:"currency",currency:t,minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}function i(e){return({XDT:"USDT",USDT:"USDT",USD:"USD",IDR:"IDR"})[e]||e}function s(e){return"id"===e?"IDR":"USDT"}function o(e){let t="string"==typeof e?new Date(e):e;return new Intl.DateTimeFormat("id-ID",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(t)}a(28065).Buffer;let c=(n.env.NEXT_PUBLIC_MEDIA_CDN_BASE_URL||"").replace(/\/$/,""),l=n.env.NEXT_PUBLIC_MEDIA_URL_MODE||"asset-route";n.env.NEXT_PUBLIC_GAME_IMAGE_URL_MODE;let d=m(n.env.NEXT_PUBLIC_MEDIA_PUBLIC_BASE_PATH||"/assets");m(n.env.NEXT_PUBLIC_GAME_IMAGE_PUBLIC_BASE_PATH||"/game-assets");let u=(n.env.NEXT_PUBLIC_MEDIA_STORAGE_ALIAS||"media").trim().replace(/^\/+|\/+$/g,"")||"media";function m(e){let t=e.trim().replace(/\/+$/,"");return t?t.startsWith("/")?t:"/".concat(t):"/assets"}function f(e){if("asset-route"!==l)return"".concat(c).concat(e);let t=e.match(/^\/sites\/([^/]+)\/files\/(.+)$/);if(!t)return"".concat(c).concat(e);let a=t[2].replace(/^s3fs-public\//,"".concat(u,"/"));return"".concat(d,"/").concat(t[1],"/").concat(a)}let g=["falcon-game.xyz","falcongaming.online","cuan777.vip","falcon.ddev.site","ddev.site","localhost","127.0.0.1"],p=["digitaloceanspaces.com","cdn568.net","b-cdn.net","slotcity.com","static-slotcity.com","omg-game.net"];function h(e){try{let t=new URL(e);return/^\/sites\/[^/]+\/files\//.test(t.pathname)}catch{return!1}}function x(e){return!!e&&p.some(t=>e.includes(t))}function v(e){if(!e||"string"!=typeof e)return e;if(/^https?:\/\//i.test(e))try{let t=new URL(e).hostname.toLowerCase();if("0.0.0.0"===t||"localhost"===t||"127.0.0.1"===t||"::1"===t||"[::1]"===t)return new URL(e).pathname+new URL(e).search}catch{}if(e.startsWith("/media/")||e.startsWith("/api/media/")){let t=e.replace(/^\/media/,"").replace(/^\/api\/media/,"");return t.startsWith("/sites/")?f(t):e}if(e.startsWith("/game-img/"))return e;if(e.startsWith("/sites/"))return f(e);if(e.includes("digitaloceanspaces.com")||e.includes("cdn.")){if("asset-route"===l&&h(e))try{return f(new URL(e).pathname)}catch{}return e}
1if(!e.startsWith("http")||!(e&&(g.some(t=>e.includes(t))||h(e))))return e;try{let t=new URL(e).pathname;if(t.startsWith("/sites/"))return f(t);return e}catch{return e}}},26286:(e,t,a)=>{a.d(t,{MP:()=>n.MP,sx:()=>n.sx});var n=a(43077)},31085:(e,t,a)=>{a.d(t,{M:()=>l,VersionProvider:()=>c});var n=a(18720),r=a(74348),i=a(23);let s=(0,r.createContext)(void 0),o="game_version_preference";function c(e){let{children:t}=e,a=(0,i.usePathname)(),c=(0,i.useRouter)(),[l,d]=(0,r.useState)(!0),u=a.startsWith("/mobile")?"mobile":a.startsWith("/desktop")?"desktop":"responsive",m="mobile"===u,f="desktop"===u;(0,r.useEffect)(()=>{if("undefined"==typeof document)return;let e=document.documentElement;return e.removeAttribute("data-force-version"),"mobile"===u?e.setAttribute("data-force-version","mobile"):"desktop"===u&&e.setAttribute("data-force-version","desktop"),()=>{e.removeAttribute("data-force-version")}},[u]),(0,r.useEffect)(()=>{(function(){if("undefined"==typeof document)return null;let e=document.cookie.match(new RegExp("(^| )".concat(o,"=([^;]+)"))),t=e?e[2]:null;return"mobile"===t||"desktop"===t?t:null})()&&d(!1)},[]);let g=(0,r.useCallback)(e=>{let t;!function(e){if("undefined"==typeof document)return;let t=new Date;t.setTime(t.getTime()+2592e6),document.cookie="".concat(o,"=").concat(e,";expires=").concat(t.toUTCString(),";path=/;SameSite=Lax")}(e),d(!1),"undefined"!=typeof localStorage&&localStorage.setItem("game_version_preference",e);let n=(t=a,(a.startsWith("/mobile")&&(t=a.replace(/^\/mobile/,"")||"/"),"mobile"===e)?"/mobile".concat("/"===t?"":t):t);c.push(n)},[a,c]);return(0,n.jsx)(s.Provider,{value:{version:u,switchVersion:g,isAutoDetected:l,isForcedMobile:m,isForcedDesktop:f},children:t})}function l(){let e=(0,r.useContext)(s);if(void 0===e)throw Error("useVersion must be used within a VersionProvider");return e}},34013:(e,t,a)=>{a.d(t,{E:()=>u});var n=a(18720),r=a(74348),i=a(75375),s=a(33352),o=a(90877),c=a(24582),l=a(38395);function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"IDR";return"XDT"===t||"USD"===t||"USDT"===t?e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):e.toLocaleString("id-ID",{minimumFractionDigits:0,maximumFractionDigits:0})}function u(e){let{balance:t,bonusBalance:a,currency:u,variant:m="desktop",className:f=""}=e,[g,p]=(0,r.useState)(!1),h=(0,r.useRef)(null),x=(0,i.c)("balance"),v=(0,s.Ym)(),{user:y}=(0,o.A)(),b=(0,c.rv)(v),w=t+a,_=(0,c.yz)(b);return((0,r.useEffect)(()=>{function e(e){h.current&&!h.current.contains(e.target)&&p(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),"mobile"===m)?(0,n.jsxs)("div",{ref:h,className:"relative ".concat(f),children:[(0,n.jsxs)("button",{onClick:()=>p(!g),className:"flex items-center rounded bg-[#2a2a2a] px-3 py-1",children:[(0,n.jsx)("span",{className:"text-xs text-gray-400",children:x("label")}),(0,n.jsxs)("span",{className:"ml-2 text-sm font-bold text-white",children:[_," ",(0,n.jsx)("span",{className:"text-theme-primary",children:d(w,b)})]}),(0,n.jsx)("svg",{className:"ml-1 h-3 w-3 text-gray-400 transition-transform ".concat(g?"rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),g&&(0,n.jsxs)("div",{className:"absolute left-0 top-full z-50 mt-1 w-52 rounded-lg bg-[#1a1a1a] p-3 shadow-xl",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-xs text-gray-400",children:x("main")}),(0,n.jsxs)("span",{className:"text-sm text-white",children:[_," ",d(t,b)]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-xs text-gray-400",children:x("bonus")}),(0,n.jsxs)("span",{className:"text-sm text-green-400",children:[_," ",d(a,b)]})]}),(0,n.jsx)("hr",{className:"border-gray-700"}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-gray-300",children:x("total")}),(0,n.jsxs)("span",{className:"text-sm font-bold text-theme-primary",children:[_," ",d(w,b)]})]})]}),y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("hr",{className:"my-2 border-gray-700"}),(0,n.jsx)(l.w,{turnover:y.turnover||0,turnoverRemaining:y.turnoverRemaining||0,turnoverSpent:y.turnoverSpent||0,canWithdraw:y.canWithdraw||!1})]})]})]}):(0,n.jsxs)("div",{ref:h,className:"relative ".concat(f),children:[(0,n.jsxs)("button",{onClick:()=>p(!g),className:"flex items-center gap-2 rounded-full bg-[#1a1a1a] px-4 py-1.5 transition-all hover:bg-[#252525]",children:[(0,n.jsx)("span",{className:"text-sm text-gray-400",children:_}),(0,n.jsx)("span",{className:"theme-gradient-text font-bold",children:d(w,b)}),(0,n.jsx)("svg",{className:"h-4 w-4 text-gray-400 transition-transform ".concat(g?"rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),g&&(0,n.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-2 w-60 rounded-lg bg-[#1a1a1a] p-4 shadow-xl",children:[(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm text-gray-400",children:x("main")}),(0,n.jsxs)("span",{className:"text-sm font-medium text-white",children:[_," ",d(t,b)]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm text-gray-400",children:x("bonus")}),(0,n.jsxs)("span",{className:"text-sm font-medium text-green-400",children:[_," ",d(a,b)]})]}),(0,n.jsx)("hr",{className:"border-gray-700"}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm font-medium text-gray-300",children:x("total")}),(0,n.jsxs)("span",{className:"text-base font-bold text-theme-primary",children:[_," ",d(w,b)]})]})]}),y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("hr",{className:"my-3 border-gray-700"}),(0,n.jsx)(l.w,{turnover:y.turnover||0,turnoverRemaining:y.turnoverRemaining||0,turnoverSpent:y.turnoverSpent||0,canWithdraw:y.canWithdraw||!1})]})]})]})}},38395:(e,t,a)=>{a.d(t,{w:()=>s});var n=a(18720),r=a(74348),i=a(75375);function s(e){let{turnover:t,turnoverRemaining:a,turnoverSpent:s,canWithdraw:o}=e;(0,i.c)();let[c,l]=(0,r.useState)(0),d=Math.min(Math.max(t>0?s/t*100:0,0),100);(0,r.useEffect)(()=>{let e=setTimeout(()=>{l(d)},100);return()=>clearTimeout(e)},[d]);let u=e=>e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>
1=1e3?"".concat((e/1e3).toFixed(1),"K"):e.toLocaleString("id-ID");return(0,n.jsxs)("div",{className:"w-full rounded-lg bg-gradient-to-r from-blue-600/20 to-purple-600/20 p-3",children:[(0,n.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-gray-300",children:"TO Progress"}),(0,n.jsxs)("span",{className:"text-xs font-bold ".concat(o?"text-green-400":"text-yellow-400"),children:[d.toFixed(0),"%"]})]}),(0,n.jsx)("div",{className:"mb-2 h-2 w-full overflow-hidden rounded-full bg-gray-700",children:(0,n.jsx)("div",{className:"h-full rounded-full transition-all duration-700 ease-out",style:{width:"".concat(c,"%"),background:o?"linear-gradient(90deg, #22c55e, #4ade80)":"linear-gradient(90deg, #3b82f6, #a855f7)"}})}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-gray-400",children:"Tersisa: "}),(0,n.jsx)("span",{className:o?"text-green-400":"text-yellow-400",children:o?"â Selesai":u(a)})]}),(0,n.jsxs)("div",{className:"text-gray-500",children:["Target: ",u(t)]})]})]})}},40986:(e,t,a)=>{a.d(t,{FeatureProvider:()=>h,J:()=>x,i:()=>v});var n=a(18720),r=a(74348),i=a(24582);let s={dailyLogin:!1,playerProgression:!1,loyaltyPoints:!1,referralSystem:!1,promotions:!0,cryptoDeposit:!0,qrisDeposit:!0,bankDeposit:!0,ewalletDeposit:!0,pulsaDeposit:!0,liveChat:!0,affiliateProgram:!1,openGameInNewTab:!1,showReferralField:!1,lockReferralField:!1,registrationSuccessRedirect:!1,hideEmailField:!0},o={defaultLocale:"id",languageSwitcherEnabled:!1,availableLocales:[{code:"id",name:"Indonesian"}]},c={minDeposit:5e4,maxDeposit:1e8,quickAmountsIdr:[5e4,1e5,2e5,3e5],quickAmountsUsdt:[5,20,100,1e3],showUsdtNote:!0,usdtNoteText:"1 USDT = 1 USD untuk bermain game"},l={autoLogoutMinutes:0},d={enabled:!1,image:"",link:"",title:"",delay:2,showOnce:!0},u=(0,r.createContext)(void 0);function m(){let e=window.location.hostname.replace(/^www\./,"");return"site_settings_v".concat(4.2,"_").concat(e)}function f(){let e=window.location.hostname.replace(/^www\./,"");return"site_settings_timestamp_v".concat(4.2,"_").concat(e)}function g(e,t,a,n,r,i){try{let s=m(),o=f();localStorage.setItem(s,JSON.stringify({features:e,localization:t,payment:a,security:n,onboarding:r,backendUpdatedAt:i})),localStorage.setItem(o,Date.now().toString())}catch{}}async function p(){try{let e=await fetch("/api/features",{method:"GET",headers:{"Content-Type":"application/json"},cache:"no-store"});if(!e.ok)throw Error("HTTP ".concat(e.status));let t=await e.json();if(t.success&&t.data){let e=t.data.onboarding||d;return e.image&&(e.image=(0,i.a4)(e.image)),{features:t.data.features||s,localization:t.data.localization||o,payment:t.data.payment||c,security:t.data.security||l,onboarding:e,backendUpdatedAt:t.data.lastUpdated||void 0}}return null}catch(e){return console.error("[FeatureContext] Failed to fetch settings:",e),null}}function h(e){let{children:t}=e,[a,i]=(0,r.useState)(s),[h,x]=(0,r.useState)(o),[v,y]=(0,r.useState)(c),[b,w]=(0,r.useState)(l),[_,N]=(0,r.useState)(d),[S,j]=(0,r.useState)(!0),[U,D]=(0,r.useState)(null);(0,r.useEffect)(()=>{(async()=>{let e=function(){try{let e=m(),t=f(),a=localStorage.getItem(e),n=localStorage.getItem(t);if(a&&n){let e=parseInt(n,10);if(Date.now()-e<6048e5){let t=JSON.parse(a);return{features:t.features||s,localization:t.localization||o,payment:t.payment||c,security:t.security||l,onboarding:t.onboarding||d,timestamp:e,backendUpdatedAt:t.backendUpdatedAt}}}}catch{}return null}();if(e){i(e.features),x(e.localization),y(e.payment),w(e.security),N(e.onboarding),D(e.timestamp),j(!1),p().then(t=>{if(t){let a=t.backendUpdatedAt&&(!e.backendUpdatedAt||t.backendUpdatedAt>e.backendUpdatedAt),n=Date.now()-e.timestamp;(a||n>2592e5)&&(i(t.features),x(t.localization),y(t.payment),w(t.security),N(t.onboarding),g(t.features,t.localization,t.payment,t.security,t.onboarding,t.backendUpdatedAt),D(Date.now()))}});return}let t=await p();t&&(i(t.features),x(t.localization),y(t.payment),w(t.security),N(t.onboarding),g(t.features,t.localization,t.payment,t.security,t.onboarding,t.backendUpdatedAt),D(Date.now())),j(!1)})()},[]);let k=async()=>{let e=await p();e&&(i(e.features),x(e.localization),y(e.payment),w(e.security),N(e.onboarding),g(e.features,e.localization,e.payment,e.security,e.onboarding,e.backendUpdatedAt),D(Date.now()))};return(0,n.jsx)(u.Provider,{value:{features:a,localization:h,payment:v,security:b,onboarding:_,isLoading:S,isFeatureEnabled:e=>{var t;return null!=(t=a[e])?t:s[e]},refreshFeatures:k,lastUpdated:U},children:t})}function x(){let e=(0,r.useContext)(u);if(void 0===e)throw Error("useFeatures must be used within a FeatureProvider");return e}function v(e){let{isFeatureEnabled:t,isLoading:a}=x();return!a&&t(e)}},48645:(e,t,a)=>{a.d(t,{q:()=>o});var n=a(18720),r=a(95666),i=a.n(r),s=a(74348);function o(e){let{className:t=""}
1=e,[a,r]=(0,s.useState)([]),[o,c]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{!async function(){try{let e=await fetch("/api/custom-pages");if(e.ok){let t=await e.json();t.success&&t.data&&r(t.data.filter(e=>e.status))}}catch(e){console.error("Error fetching custom pages:",e)}finally{c(!1)}}()},[]),o||0===a.length)?null:(0,n.jsxs)("div",{className:"text-center ".concat(t),children:[(0,n.jsx)("h4",{className:"mb-4 text-sm font-semibold uppercase text-[#F1F2F3]",children:"Informasi"}),(0,n.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-4 md:gap-6",children:a.map(e=>{var t;return(0,n.jsx)(i(),{href:(t=e).url&&"/"!==t.url&&""!==t.url?t.url.startsWith("/")?t.url:"/".concat(t.url):"/".concat(t.title.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")),className:"text-sm text-[#F1F2F3] transition-all duration-200 hover:text-[#FFD700] hover:underline",children:e.title},e.nid)})})]})}},77610:(e,t,a)=>{a.d(t,{D:()=>o});var n=a(9085);let r=["id","en","th","es","pt","zh","hi","de","vi","pl","ro","af"];function i(e){return"string"==typeof e&&r.includes(e)?e:"id"}let s=null;function o(){return s||(s=function(){let e=n.env.NEXT_PUBLIC_SITE_CONFIG;if(e)try{let t=JSON.parse(e);if(t&&"object"==typeof t&&t.id)return{id:String(t.id),name:String(t.name||t.id),apiUrl:"",drupalUrl:"",domain:String(t.domain||""),aliases:Array.isArray(t.aliases)?t.aliases.map(String):void 0,apiKey:void 0,locale:i(t.locale),gaId:t.gaId?String(t.gaId):void 0,template:t.template?String(t.template):void 0}}catch{}let t="babahtoto",a=t.toUpperCase(),r=t.charAt(0).toUpperCase()+t.slice(1);return{id:t,name:n.env["NEXT_PUBLIC_".concat(a,"_NAME")]||r,apiUrl:"",drupalUrl:"",domain:n.env["NEXT_PUBLIC_".concat(a,"_DOMAIN")]||"",apiKey:void 0,locale:i(n.env["NEXT_PUBLIC_".concat(a,"_LOCALE")]),gaId:n.env["NEXT_PUBLIC_".concat(a,"_GA_ID")],template:n.env["NEXT_PUBLIC_".concat(a,"_TEMPLATE")]||void 0}}())}}}]);
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.