1import{o as e}from"./rolldown-runtime.C_s2cVnS.js";import{t}from"./react.o0Ha7HZ1.js";import{t as n}from"./configs.D7M_CS4x.js";import{Ul as r,t as i}from"./useUserData.B8CNYvbL.js";import{M as a,x as o}from"./utils.Bh1s9Go3.js";import{E as s}from"./queryKeys.GnomVpGn.js";import{t as c}from"./useSmartHistory.Dd-rZcUQ.js";import{t as l}from"./useQuery.1AsA9nPF.js";var u=e(t()),d=e=>{let{isLoggedIn:t,loginInProgress:d,profile:{is_verified:f}}=i(),p=n.casino.funModeEnabled,m=c(),h=l().get(s),g=(0,u.useMemo)(()=>{switch(p){case 0:return!1;case 1:return!0;case 2:return t;case 3:return f;default:return!0}},[t,p,f]),_=(0,u.useMemo)(()=>e?.realPlay,[e?.realPlay]),v=(0,u.useMemo)(()=>g&&(e?.forFun||e?.viewMode&&!t),[g,e?.forFun,e?.viewMode,t]);return(0,u.useEffect)(function(){if(h&&!g){let[e,n]=h.split(`-`),[i]=n.split(`,`);i===r.Fun&&(t&&p===2||f&&p===3?m.replace({search:o({...a(),[s]:`${e}-${r.Real}`})}):m.replace(`/casino/slots`))}},[h,g,p,m,t,f]),{canPlayFunMode:g,funModeButton:v,realModeButton:_,buttonsDisabled:d}};export{d as t};
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.