PageSourceSearch

https://www.vendettasaloon.ai/_next/static/chunks/402-681fe1efdf15d85d.js?dpl=dpl_8twhoVt1YiRMFHXfrJC7T4yecg5E

js vendettasaloon.ai collected 2026-10-05 13:59:09 UTC 11,780 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[402],{22813:function(e,t,n){n.d(t,{Providers:function(){return I}});var r=n(57437),i=n(2265),o=n(31581),a=n(21623),s=n(29827),l=n(19063),c=n(83791),u=n(79516);let d=(0,n(51458)._)({ssr:!0,chains:[c.y],transports:{[c.y.id]:(0,u.d)("https://polygon-mainnet.g.alchemy.com/v2/l-uGdMcZTGxsIqr0_63V4",{retryCount:2,retryDelay:1e3,batch:!0})}});var m=n(37581),f=n(47162),h=n(53477),v=n(57509);let g=(0,i.createContext)({activeGame:null,unityInstance:null,isLoading:!1,loadProgress:0,setActiveGame:()=>{},setUnityInstance:()=>{},setLoadProgress:()=>{},setIsLoading:()=>{}});function p(e){let{children:t}=e,[n,o]=(0,i.useState)(null),[a,s]=(0,i.useState)(null),[l,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(0);return(0,i.useEffect)(()=>{(0,v.SR)()},[]),(0,i.useEffect)(()=>{window.unityInstance=a||void 0},[a]),(0,r.jsx)(g.Provider,{value:{activeGame:n,unityInstance:a,isLoading:l,loadProgress:u,setActiveGame:o,setUnityInstance:s,setLoadProgress:d,setIsLoading:c},children:t})}var w=n(26233),x=n(45787),b=n(38164);function y(){let{isGuest:e,guestBetCount:t,connect:n}=(0,m.O)(),[o,a]=(0,i.useState)(!1),[s,l]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{if(!e){l(!1);return}!o&&(3===t||t>3&&(t-3)%10==0)&&(l(!0),a(!1))},[e,t,o]),!s||!e)return null;let c=()=>{a(!0),l(!1)};return(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/60 ",onClick:c}),(0,r.jsxs)("div",{className:"relative bg-ledger-paper-sunk border border-ledger-hair  p-6 w-full max-w-sm mx-4 ",children:[(0,r.jsx)("button",{onClick:c,className:"absolute top-4 right-4 w-8 h-8  flex items-center justify-center text-ledger-ink-muted hover:bg-white/5 hover:text-ledger-ink transition-colors","aria-label":"Close",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,r.jsxs)("div",{className:"text-center mb-6",children:[(0,r.jsx)("span",{className:"text-4xl mb-3 block",children:(0,r.jsx)(b.r,{name:"save"})}),(0,r.jsx)("h2",{className:"font-semibold tracking-tight text-xl text-ledger-ochre uppercase tracking-wider mb-3",children:"Save Your Progress"}),(0,r.jsx)("p",{className:"font-body text-ledger-ink-soft text-sm leading-relaxed mb-3",children:"You’re on a roll! Sign in to keep your chips and unlock deposits, cashouts, and the full Vendetta experience."}),(0,r.jsx)("p",{className:"font-body text-ledger-ink-muted text-xs leading-relaxed",children:"Use email, Google, Telegram, or connect a wallet. Takes 10 seconds."})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("button",{onClick:()=>{l(!1),n()},className:"w-full px-4 py-3  bg-gradient-to-r from-green-600 to-green-500 text-ledger-ink font-titling text-sm uppercase tracking-wider text-center hover:opacity-90 transition-opacity",children:"Sign In & Keep Chips"}),(0,r.jsx)("button",{onClick:c,className:"w-full px-4 py-2 text-ledger-ink-muted font-body text-xs hover:text-ledger-ink-soft transition-colors",children:"Keep playing as guest"})]})]})]})}var S=n(70304),j=n(48494);function k(){let e=(0,S.useSearchParams)();return(0,i.useEffect)(()=>{let t=null==e?void 0:e.get("ref");if(t){(0,j.TM)(t);try{let e=new URL(window.location.href);e.searchParams.delete("ref"),window.history.replaceState({},"",e.toString())}catch(e){}}},[e]),null}var C=n(11720),P=n(10791);let E=new a.S({defaultOptions:{queries:{retry:2,retryDelay:e=>Math.min(1e3*2**e,1e4),throwOnError:!1},mutations:{throwOnError:!1}}});function L(e){let{children:t}=e,[n,a]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{let e=!1,t=()=>{e||(e=!0,a(!0),window.removeEventListener("pointerdown",t),window.removeEventListener("touchstart",t),window.removeEventListener("keydown",t))};return window.addEventListener("pointerdown",t,{passive:!0}),window.addEventListener("touchstart",t,{passive:!0}),window.addEventListener("keydown",t),"requestIdleCallback"in window?window.requestIdleCallback(()=>t(),{timeout:3e3}):setTimeout(()=>t(),200),()=>{window.removeEventListener("pointerdown",t),window.removeEventListener("touchstart",t),window.removeEventListener("keydown",t)}},[]),n)?(0,r.jsx)(o.X,{appId:"cmnpd3pwu03560ck4s04fxdy4",config:{appearance:{theme:"dark",accentColor:"#e6b579",logo:"https://www.vendettasaloon.ai/vendetta-logo.png",landingHeader:"Welcome to Vendetta Saloon",loginMessage:"Sign in to play ".concat(P.hb," provably fair games")},loginMethods:["email","google","wallet"],walletConnectCloudProjectId:"1047b4df7b65ac2063818cdf387b1463",supportedChains:[c.y],embeddedWallets:{ethereum:{createOnLogin:"users-without-wallets"}}},children:(0,r.jsx)(s.aH,{client:E,children:(0,r.jsx)(l.F,{config:d,children:(0,r.jsx)(m.n,{children:(0,r.jsxs)(f.p,{children:[(0,r.jsx)(k,{}),(0,r.jsx)(C.f,{}),t]})})})})}):(0,r.jsx)(r.Fragment,{children:t})}function I(e){let{children:t}=e;return(0,r.jsx)(L,{children:(0,r.jsx)(h.m5,{children:(0,r.jsx)(w.b,{children:(0,r.jsx)(x.w,{children:(0,r.jsxs)(p,{children:[t,(0,r.jsx)(y,{})]})})})})})}}
1,11720:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(2265),i=n(70274);function o(){return(0,r.useEffect)(()=>{let e=()=>{fetch("/api/version",{cache:"no-store"}).then(i.s).catch(()=>{})};e();let t=()=>{"visible"===document.visibilityState&&e()};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},[]),null}},45787:function(e,t,n){n.d(t,{q:function(){return s},w:function(){return a}});var r=n(57437),i=n(2265);let o=(0,i.createContext)(null);function a(e){let{children:t}=e,[n,a]=(0,i.useState)(null),s=(0,i.useCallback)(e=>{a(e)},[]),l=(0,i.useCallback)(()=>{a(null)},[]);return(0,r.jsx)(o.Provider,{value:{registerClipTarget:s,unregisterClipTarget:l,clipTarget:n},children:t})}function s(){let e=(0,i.useContext)(o);if(!e)throw Error("useGameClipContext must be used within GameClipProvider");return e}},53477:function(e,t,n){n.d(t,{hO:function(){return f},m5:function(){return d},yr:function(){return m}});var r=n(57437),i=n(2265),o=n(29116),a=n(37581);let s={lastWinAt:Date.now(),mustDropAt:Date.now()+72e5,secondsRemaining:7200,percentElapsed:0,isHot:!1,currentProbability:0},l={mini:{...s},major:{...s,mustDropAt:Date.now()+864e5,secondsRemaining:86400},grand:{...s,mustDropAt:Date.now()+6048e5,secondsRemaining:604800}},c=(0,i.createContext)({miniPool:0,majorPool:0,grandPool:0,miniPoolChips:0,majorPoolChips:0,grandPoolChips:0,totalPaidOut:0,recentWinners:[],qualifyingProgress:0,isQualified:!1,chipsWageredThisSession:0,isMiniHot:!1,isMajorHot:!1,isGrandHot:!1,vdtPriceUsd:void 0,refreshJackpot:async()=>{}}),u=(0,i.createContext)({timers:l});function d(e){let{children:t}=e,{address:n}=(0,a.O)(),[s,d]=(0,i.useState)(0),[m,f]=(0,i.useState)(0),[v,g]=(0,i.useState)(0),[p,w]=(0,i.useState)(0),[x,b]=(0,i.useState)(0),[y,S]=(0,i.useState)(0),[j,k]=(0,i.useState)(0),[C,P]=(0,i.useState)([]),[E,L]=(0,i.useState)(0),[I,N]=(0,i.useState)(!1),[D,M]=(0,i.useState)(0),[R,U]=(0,i.useState)(!1),[T,A]=(0,i.useState)(!1),[W,_]=(0,i.useState)(!1),[H,V]=(0,i.useState)(void 0),G=(0,i.useRef)(l),O=(0,i.useRef)(Date.now()),[F,q]=(0,i.useState)(l),z=(0,i.useCallback)(async e=>{try{let i=await o.Hy();if(i){var t,n,r;d(i.miniPoolVdt),f(i.majorPoolVdt),g(i.grandPoolVdt),w(null!==(t=i.miniPoolChips)&&void 0!==t?t:0),b(null!==(n=i.majorPoolChips)&&void 0!==n?n:0),S(null!==(r=i.grandPoolChips)&&void 0!==r?r:0),k(i.totalPaidOut),P(i.recentWinners),i.timers&&(G.current=i.timers,O.current=Date.now(),q(i.timers),U(i.timers.mini.isHot),A(i.timers.major.isHot),_(i.timers.grand.isHot)),void 0!==i.vdtPriceUsd&&V(i.vdtPriceUsd)}if(e){let t=await o.Fs(e);t&&(L(t.progress),N(t.isQualified),M(t.chipsWageredThisSession))}}catch(e){}},[]);(0,i.useEffect)(()=>{z(n);let e=setInterval(()=>z(n),15e3);return()=>clearInterval(e)},[z,n]),(0,i.useEffect)(()=>{let e=setInterval(()=>{let e=(Date.now()-O.current)/1e3,t=G.current;q({mini:h(t.mini,e),major:h(t.major,e),grand:h(t.grand,e)})},1e3);return()=>clearInterval(e)},[]);let B=(0,i.useMemo)(()=>({miniPool:s,majorPool:m,grandPool:v,miniPoolChips:p,majorPoolChips:x,grandPoolChips:y,totalPaidOut:j,recentWinners:C,qualifyingProgress:E,isQualified:I,chipsWageredThisSession:D,isMiniHot:R,isMajorHot:T,isGrandHot:W,vdtPriceUsd:H,refreshJackpot:z}),[s,m,v,p,x,y,j,C,E,I,D,R,T,W,H,z]),Q=(0,i.useMemo)(()=>({timers:F}),[F]);return(0,r.jsx)(c.Provider,{value:B,children:(0,r.jsx)(u.Provider,{value:Q,children:t})})}let m=()=>(0,i.useContext)(c),f=()=>(0,i.useContext)(u);function h(e,t){let n=Math.max(0,e.secondsRemaining-t),r=(e.mustDropAt-e.lastWinAt)/1e3,i=r>0?Math.min((r-n)/r,1):0;return{...e,secondsRemaining:n,percentElapsed:i,isHot:i>=.8}}},26233:function(e,t,n){n.d(t,{A:function(){return l},b:function(){return s}});var r=n(57437),i=n(2265),o=n(3548);let a=(0,i.createContext)(null);function s(e){let{children:t}=e,[n,s]=(0,i.useState)(null),l=(0,i.useRef)(null),c=(0,i.useCallback)(()=>{l.current&&clearTimeout(l.current),s(null)},[]),u=(0,i.useCallback)(function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"VDT";e<1||(l.current&&clearTimeout(l.current),s({amount:e,game:t,multiplier:n,currency:r,timestamp:Date.now()}),l.current=setTimeout(()=>s(null),6e3),(0,o.zd)(t,e,r))},[]);return(0,r.jsx)(a.Provider,{value:{triggerWinShare:u,currentWin:n,dismissWin:c},children:t})}function l(){let e=(0,i.useContext)(a);if(!e)throw Error("useWinShare must be used within WinShareProvider");return e}},57509:function(e,t,n){n.d(t,{P6:function(){return o},SR:function(){return c},VL:function(){return i},iI:function(){return l}});var r=n(25566);function i(e,t,n){var i;let o=(null==n?void 0:n.origin)?n.origin.replace(/\/$/,""):"/games/".concat(e),a=(null==n?void 0:n.origin)?"?v=".concat(r.env.NEXT_PUBLIC_ARENA_BUILD_VERSION||"16"):"?v=".concat("b654d30b4721");return{loaderUrl:"".concat(o,"/").concat(t.loaderFile).concat(a),config:{dataUrl:"".concat(o,"/").concat(t.dataFile).concat(a),frameworkUrl:"".concat(o,"/").concat(t.frameworkFile).concat(a),codeUrl:"".concat(o,"/").concat(t.codeFile).concat(a),streamingAssetsUrl:"".concat(o,"/StreamingAssets"),companyName:"Vendetta Saloon",productName:"Game",productVersion:"1.0",matchWebGLToCanvasSize:null===(i=null==n?void 0:n.matchCanvas)||void 0===i||i}}}function o(e){return new Promise((t,n)=>{if(document.querySelector('script[src="'.concat(e,'"]'))){t();return}let r=document.createElement("script");r.src=e,r.async=!0,r.onload=()=>t(),r.onerror=()=>{try{r.remove()}catch(e){}n(Error("Failed to load Unity loader: ".concat(e)))},document.head.appendChild(r)})}let a=new Map,s=new Map;function l(e,t){if(a.has(e)||a.set(e,new Set),a.get(e).add(t),s.has(e)){let n=s.get(e);s.delete(e),t(n)}return()=>{var n;null===(n=a.get(e))||void 0===n||n.delete(t)}}function c(){window.dispatchReactEvent=(e,t)=>
1{let n=a.get(e);n&&n.size>0?n.forEach(e=>e(t)):s.set(e,t)}}},81769:function(e,t,n){function r(e,t){let{pollWhenHidden:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=!1,o=!1,a=()=>{let t;if(!i&&!o){try{t=e()}catch(e){return}t&&"function"==typeof t.then&&(i=!0,t.then(()=>{i=!1},()=>{i=!1}))}},s=()=>{null!==r||o||(r=setInterval(a,t))},l=()=>{null!==r&&(clearInterval(r),r=null)},c=()=>n||"undefined"==typeof document||"hidden"!==document.visibilityState,u=()=>{o||(c()?(a(),s()):l())};return c()&&s(),"undefined"!=typeof document&&document.addEventListener("visibilitychange",u),{__visibleInterval:!0,stop:()=>{o=!0,l(),"undefined"!=typeof document&&document.removeEventListener("visibilitychange",u)}}}function i(e){null==e||e.stop()}n.d(t,{Q:function(){return r},l:function(){return i}})}}]);

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.