1import{a as _,e as c,g as w,u as E,j as s,b5 as L,I as R,h as T,bm as N,D as M,C as O,B as k}from"./index-BP99-Kiy.js";/* empty css */import{u as P,C as W,S as b}from"./UserRouter-0lY9qO-N.js";import{S as $}from"./Seo-DwiHh3pF.js";import{L as z}from"./live_casino-EPmsqy6j.js";import{C as G,a as U,b as V}from"./CardMedia-BRCHluC0.js";import{D as q}from"./CustomButton-DgoUqeqd.js";import{D as H}from"./DialogActions-DqP0oj-U.js";import{B as x}from"./Button-DgnPDEVz.js";import"./___vite-browser-external_commonjs-proxy-Be4j4IkX.js";import"./trackApkDownload-1DCe7sUx.js";const J="/assets/icasino_web-r-sBBS8T.png",X=[{publicUrl:J,title:"Indian Casino"}],F=[{image:"https://hx-app-assets.s3.eu-west-2.amazonaws.com/hypex/indian_casino_mob.png",text:"Indian Casino"}],j={IND_CASINO_WEB_BANNERS:X,IND_CASINO_MOBILE_BANNERS:F},f=j.IND_CASINO_WEB_BANNERS,C=j.IND_CASINO_MOBILE_BANNERS,K=l=>{P();const[r,I]=c.useState(!1),{loggedIn:m}=l,[S,B]=c.useState([]),[v,p]=c.useState([]),[Y,g]=c.useState([]),h=w(),u=E(),d=a=>{I(a)},y=async()=>{var e;const a=await b.get("/catalog/v2/indian-casino/games",{params:{providerId:"RG"}});B((e=a==null?void 0:a.data)==null?void 0:e.filter(i=>i.providerName==="RG"))},A=async(a,e,i,n,t,o)=>{m?(h.push("/home"),h.push({pathname:`/dc/gamev1.1/${e==null?void 0:e.toLowerCase().replace(/\s+/g,"-")}-${btoa(a==null?void 0:a.toString())}-${btoa(i)}-${btoa(t)}-${btoa(n)}-${btoa(o)}`,state:{gameName:e}})):d(!0)},D=async()=>{var i;let a=[],e=[];try{const n=await b.get(`/account/v2/books/${k}/banners`,{headers:{"Content-Type":"application/json"},params:{status:"active",type:"*",category:"indiancasinobanner"}});let t=(i=n==null?void 0:n.data)==null?void 0:i.banners;(t==null?void 0:t.length)>0&&(t.map(o=>{o.deviceType==="desktop"?a.push(o):o.deviceType==="mobile"&&e.push(o)}),p(a),g(e)),a.length==0&&p(f),e.length==0&&g(C),console.log(v.length)}catch(n){a.length==0&&p(f),e.length==0&&g(C),console.log(n),n.response&&n.response.status}};return c.useEffect(()=>{y()},[m]),c.useEffect(()=>{D()},[]),s.jsxs("div",{className:"dc-page-bg pt-14",children:[s.jsx($,{title:L,name:"Indian casino page",description:"Indian casino page",type:"Indian casino page",link:u==null?void 0:u.pathname}),s.jsx(R,{children:s.jsx(T,{sizeLg:"9",sizeMd:"8",sizeXs:"12",className:"mt-16 special-carousal",children:s.jsxs("div",{className:"dc-ctn dc-indian-ctn",children:[s.jsxs("div",{className:"casino-header-ctn",children:[s.jsxs("div",{className:"casino-heading",children:[s.jsx("div",{className:"casino-icon-img",children:s.jsx("img",{src:z})}),"Indian Casino"]}),s.jsx("div",{className:"casino-search-ctn",children:s.jsx("div",{className:"eventTypes-menu-tabs"})})]}),s.jsx("div",{className:"dc-games-ctn",children:S.map((a,e)=>s.jsx(W,{className:"dc-ion-card",onClick:()=>A(a.gameId,a.gameName,a.gameCode,a.subProviderName,a.providerName,a.superProviderName),children:s.jsxs(G,{children:[s.jsx(U,{component:"img",alt:a.gameName,className:"dc-card-media",image:a.urlThumb?a.urlThumb:"",title:a.gameName}),s.jsxs(V,{className:"dc-card-ctn",children:[s.jsx(N,{gutterBottom:!0,className:"game-name",children:a.gameName}),m&&a.minLimits&&a.maxLimits?s.jsxs(N,{variant:"caption",className:"game-range",children:[a.minLimits," - ",a.maxLimits]}):null]})]})}))})]})})}),s.jsxs(M,{open:r,onClose:()=>d(!1),"aria-labelledby":"form-dialog-title",maxWidth:"xs",className:"login-alert",children:[s.jsx(q,{id:"form-dialog-title",children:"Notice"}),s.jsx(O,{children:s.jsx("div",{className:"dc-dialog-body",children:"Access required for gameplay. Please log in to proceed."})}),s.jsxs(H,{className:"dc-dialog-actions",children:[s.jsx(x,{onClick:()=>d(!1),className:"cancel-btn dialog-action-btn",children:"Cancel"}),s.jsx(x,{onClick:()=>{h.push("/login"),d(!1)},className:"login-btn dialog-action-btn",children:"Login"})]})]})]})},Q=l=>{let r=0;return l.auth.loggedIn&&(r=JSON.parse(window.atob(sessionStorage.getItem("jwt_token").split(".")[1])).status),{loggedIn:l.auth.loggedIn,loggedInUserStatus:r}},da=_(Q,null)(K);export{da as default};
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.