livevegas-ui-kit 1.0.320 → 1.0.322
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -69,23 +69,23 @@ var p = i.div`
|
|
|
69
69
|
}({}), _ = /* @__PURE__ */ function(e) {
|
|
70
70
|
return e[e.Message = 1] = "Message", e[e.Support = 2] = "Support", e[e.Tip = 3] = "Tip", e[e.History = 4] = "History", e[e.Info = 5] = "Info", e[e.Settings = 6] = "Settings", e[e.VolumeOn = 7] = "VolumeOn", e[e.FullScreen = 8] = "FullScreen", e[e.Tournament = 9] = "Tournament", e[e.closeMenu = 10] = "closeMenu", e[e.Limit = 11] = "Limit", e[e.BackToLobby = 12] = "BackToLobby", e[e.CloseLogo = 13] = "CloseLogo", e[e.CloseBalance = 14] = "CloseBalance", e[e.CloseBet = 15] = "CloseBet", e;
|
|
71
71
|
}({}), v = (e, t, n, r) => {
|
|
72
|
-
let { tableId: i, gameId: a, lang: o, playerId: s, token: c, exitUrl: l, hasLobby: u } = n,
|
|
72
|
+
let { tableId: i, gameId: a, lang: o, playerId: s, token: c, exitUrl: l, hasLobby: u, lobbyUrl: d } = n, f = window.location.href, p = new URLSearchParams({
|
|
73
73
|
isMinimized: "true",
|
|
74
|
-
gameUrl:
|
|
74
|
+
gameUrl: f,
|
|
75
75
|
tableName: r || ""
|
|
76
76
|
});
|
|
77
77
|
if (u === "false") {
|
|
78
78
|
window.location.href = l;
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
let
|
|
81
|
+
let m = {
|
|
82
82
|
name: "closed",
|
|
83
83
|
sender: "game"
|
|
84
|
-
},
|
|
84
|
+
}, g = {
|
|
85
85
|
name: "closeFrame",
|
|
86
|
-
url: `${h}/?lang=${o}&playerId=${s}&token=${c}&gameId=${a}&gameType=8&exitUrl=${l}&partnerId=${e}&${
|
|
86
|
+
url: `${d?.trim() ? `https://${d.trim()}` : h}/?lang=${o}&playerId=${s}&token=${c}&gameId=${a}&gameType=8&exitUrl=${l}&partnerId=${e}&${p.toString()}`
|
|
87
87
|
};
|
|
88
|
-
window.parent.postMessage(
|
|
88
|
+
window.parent.postMessage(m, "*"), window.parent.postMessage(g, "*"), window.parent.postMessage("closeGame", "*");
|
|
89
89
|
}, y = (e) => {
|
|
90
90
|
if (!e) return "0";
|
|
91
91
|
let t = e.toFixed(10), n = t.indexOf(".");
|
|
@@ -3364,22 +3364,20 @@ var zt = i.div`
|
|
|
3364
3364
|
children: l("Win/Lose")
|
|
3365
3365
|
})
|
|
3366
3366
|
]
|
|
3367
|
-
}) }), /* @__PURE__ */ o("tbody", { children: e.player.bets?.map((t, n) => {
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
] }, n);
|
|
3382
|
-
}) })]
|
|
3367
|
+
}) }), /* @__PURE__ */ o("tbody", { children: e.player.bets?.map((t, n) => /* @__PURE__ */ s("tr", { children: [
|
|
3368
|
+
/* @__PURE__ */ o("td", { children: /* @__PURE__ */ o("p", {
|
|
3369
|
+
className: "text ",
|
|
3370
|
+
children: l(ke[t.betType])
|
|
3371
|
+
}) }),
|
|
3372
|
+
/* @__PURE__ */ o("td", { children: /* @__PURE__ */ s("p", {
|
|
3373
|
+
className: "text amount-text",
|
|
3374
|
+
children: [t.amount, e.player.gameCurrencyId]
|
|
3375
|
+
}, t.betType) }),
|
|
3376
|
+
/* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(Bt, {
|
|
3377
|
+
$isWin: !!t.winAmount,
|
|
3378
|
+
children: t.winAmount ? /* @__PURE__ */ s(a, { children: [y(t.winAmount), e.player.gameCurrencyId] }) : /* @__PURE__ */ o(a, { children: l("Lost") })
|
|
3379
|
+
}, t.betType) })
|
|
3380
|
+
] }, n)) })]
|
|
3383
3381
|
}) }),
|
|
3384
3382
|
/* @__PURE__ */ o(Rt, {}),
|
|
3385
3383
|
/* @__PURE__ */ o(yt, {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
vertical-align: middle;
|
|
59
59
|
color: #ffffff;
|
|
60
60
|
}
|
|
61
|
-
`,g=`https://livelobby8.livevegas.live`,_=function(e){return e[e.Message=1]=`Message`,e[e.Support=2]=`Support`,e[e.Tip=3]=`Tip`,e[e.History=4]=`History`,e[e.Info=5]=`Info`,e[e.Settings=6]=`Settings`,e[e.VolumeOn=7]=`VolumeOn`,e[e.FullScreen=8]=`FullScreen`,e[e.Tournament=9]=`Tournament`,e[e.closeMenu=10]=`closeMenu`,e[e.Limit=11]=`Limit`,e[e.BackToLobby=12]=`BackToLobby`,e}({}),v=function(e){return e[e.Message=1]=`Message`,e[e.Support=2]=`Support`,e[e.Tip=3]=`Tip`,e[e.History=4]=`History`,e[e.Info=5]=`Info`,e[e.Settings=6]=`Settings`,e[e.VolumeOn=7]=`VolumeOn`,e[e.FullScreen=8]=`FullScreen`,e[e.Tournament=9]=`Tournament`,e[e.closeMenu=10]=`closeMenu`,e[e.Limit=11]=`Limit`,e[e.BackToLobby=12]=`BackToLobby`,e[e.CloseLogo=13]=`CloseLogo`,e[e.CloseBalance=14]=`CloseBalance`,e[e.CloseBet=15]=`CloseBet`,e}({}),y=(e,t,n,r)=>{let{tableId:i,gameId:a,lang:o,playerId:s,token:c,exitUrl:l,hasLobby:u}=n,
|
|
61
|
+
`,g=`https://livelobby8.livevegas.live`,_=function(e){return e[e.Message=1]=`Message`,e[e.Support=2]=`Support`,e[e.Tip=3]=`Tip`,e[e.History=4]=`History`,e[e.Info=5]=`Info`,e[e.Settings=6]=`Settings`,e[e.VolumeOn=7]=`VolumeOn`,e[e.FullScreen=8]=`FullScreen`,e[e.Tournament=9]=`Tournament`,e[e.closeMenu=10]=`closeMenu`,e[e.Limit=11]=`Limit`,e[e.BackToLobby=12]=`BackToLobby`,e}({}),v=function(e){return e[e.Message=1]=`Message`,e[e.Support=2]=`Support`,e[e.Tip=3]=`Tip`,e[e.History=4]=`History`,e[e.Info=5]=`Info`,e[e.Settings=6]=`Settings`,e[e.VolumeOn=7]=`VolumeOn`,e[e.FullScreen=8]=`FullScreen`,e[e.Tournament=9]=`Tournament`,e[e.closeMenu=10]=`closeMenu`,e[e.Limit=11]=`Limit`,e[e.BackToLobby=12]=`BackToLobby`,e[e.CloseLogo=13]=`CloseLogo`,e[e.CloseBalance=14]=`CloseBalance`,e[e.CloseBet=15]=`CloseBet`,e}({}),y=(e,t,n,r)=>{let{tableId:i,gameId:a,lang:o,playerId:s,token:c,exitUrl:l,hasLobby:u,lobbyUrl:d}=n,f=window.location.href,p=new URLSearchParams({isMinimized:`true`,gameUrl:f,tableName:r||``});if(u===`false`){window.location.href=l;return}let m={name:`closed`,sender:`game`},h={name:`closeFrame`,url:`${d?.trim()?`https://${d.trim()}`:g}/?lang=${o}&playerId=${s}&token=${c}&gameId=${a}&gameType=8&exitUrl=${l}&partnerId=${e}&${p.toString()}`};window.parent.postMessage(m,`*`),window.parent.postMessage(h,`*`),window.parent.postMessage(`closeGame`,`*`)},b=e=>{if(!e)return`0`;let t=e.toFixed(10),n=t.indexOf(`.`);return t.slice(0,n+1+8).replace(/\.?0+$/,``)},x=e=>{let t=new Date(e.calculationEndDate),n=new Date,r=t.getTime()-n.getTime();return r<=0?{days:0,hours:0,minutes:0,seconds:0}:{days:Math.floor(r/(1e3*60*60*24)),hours:Math.floor(r/(1e3*60*60)%24),minutes:Math.floor(r/1e3/60%60),seconds:Math.floor(r/1e3%60)}},S={1:`Session not found, try to log in again.`,2:`Please return to the site and log in again.`,3:`Please return to the site and log in again.`,4:`Player blocked`,5:`Not enough balance`,8:`Currency is wrong, please refresh the page`,11:`Incorrect credentials`,21:`Nickname already exists`,22:`Nickname is not allowed`,31:`Chat is blocked`,33:`Bet Amount is less or greater from limits`,35:`Nick already selected`,52:`The bet limit reached`,54:`Round has been canceled!`,506:`Insurance Is Not Allowed`,508:`Player Invalid State`,525:`Bet Is Not Accepted`,999:`Something went wrong`},C=function(e){return e[e.Money=1]=`Money`,e[e.Cashback=2]=`Cashback`,e[e.Rakeback=3]=`Rakeback`,e[e.FreeSpin=4]=`FreeSpin`,e[e.Tournament=5]=`Tournament`,e}({});function w(e){return{USD:`$`,RUB:`₽`,AMD:`֏`,AOA:`AOA`,AZN:`₼`,BAM:`BAM`,BGN:`BGN`,BIF:`BIF`,BMD:`BD$`,BND:`B$`,BOB:`BOB`,BRL:`R$`,BTC:`₿`,CDF:`FC`,CNY:`¥`,CRC:`₡`,CZK:`CZK`,DKK:`kr`,DOP:`RD$`,EGP:`E£`,ETB:`Br`,ETH:`Ξ`,EUR:`€`,GBP:`£`,GEL:`₾`,GTQ:`Q`,HKD:`HK$`,HRK:`kn`,HTG:`G`,HUF:`Ft`,IDR:`Rp`,INR:`₹`,JMD:`J$`,JPY:`¥`,KES:`KSh`,KGS:`KGS`,KHR:`៛`,KRW:`₩`,KZT:`₸`,LAT:`Ls`,LTL:`Lt`,LVL:`Ls`,MAD:`dh`,MET:`MT`,MGA:`Ar`,MKD:`ден`,MMK:`K`,MNT:`₮`,MUR:`₨`,NGN:`₦`,NIS:`₪`,NPR:`रू`,PKR:`Rs`,PLN:`zł`,QAR:`ر.ق`,RMB:`¥`,RON:`lei`,RDS:`дин`,RWF:`R₣`,SAO:`Db`,SEK:`kr`,SGD:`S$`,SSP:`SS£`,SYP:`SYP`,THB:`฿`,TRY:`₺`,TWD:`NT$`,UAH:`₴`,USDT:`USD₮`,UYU:`$U`,VEF:`Bs`,VND:`₫`,XAF:`FCFA`,XOF:`CFA`,ZAR:`R`,ZMW:`ZK`}[e]||e}var T=function(e){return e[e.BetConstruct=2]=`BetConstruct`,e[e.PokerDom=32]=`PokerDom`,e[e.Test=49]=`Test`,e[e.BetArabia=67]=`BetArabia`,e[e.Betrupi=69]=`Betrupi`,e[e.NirexProd=150]=`NirexProd`,e[e.Galabet=155]=`Galabet`,e[e.Lynon=156]=`Lynon`,e[e.LiveVegasPro=159]=`LiveVegasPro`,e[e.LiveVegasProD=160]=`LiveVegasProD`,e[e.Demo=160]=`Demo`,e[e.HiltonBet=204]=`HiltonBet`,e[e.QTechTest=223]=`QTechTest`,e[e.OPS=247]=`OPS`,e[e.Notix=272]=`Notix`,e[e.OPS_PROD=276]=`OPS_PROD`,e[e.Gamekong=446]=`Gamekong`,e}({}),E=function(e){return e[e.TEXAS=3]=`TEXAS`,e[e.ROULETTE=2]=`ROULETTE`,e[e.BLACKJACK=8]=`BLACKJACK`,e[e.VIPVERTUAL=21]=`VIPVERTUAL`,e[e.VIP=5]=`VIP`,e}({}),D=function(e){return e[e.RussianPoker=3]=`RussianPoker`,e[e.OasisPoker=6]=`OasisPoker`,e[e.TexasUltimate=20]=`TexasUltimate`,e[e.TexasHoldem=10]=`TexasHoldem`,e[e.SixCard=16]=`SixCard`,e}({}),ee={3:`Russian Poker`,6:`Oasis Poker`,20:`Texas Ultimate`,10:`Texas Hold'em`,16:`Six Card Poker`},O=function(e){return e[e.RUSSIANPOKER=0]=`RUSSIANPOKER`,e[e.TEXASHOLDEM=1]=`TEXASHOLDEM`,e[e.TEXASULTIMATE=2]=`TEXASULTIMATE`,e[e.OASIS=3]=`OASIS`,e[e.SIXCARD=4]=`SIXCARD`,e}({}),te=({balance:e,bet:n,currencyId:i,isActiveElements:a})=>{let{t:o}=(0,t.useTranslation)();return(0,r.jsxs)(m,{children:[a?.[v.CloseBalance]&&(0,r.jsxs)(h,{children:[(0,r.jsx)(`p`,{className:`text-title`,children:o(`Balance`)}),(0,r.jsxs)(`p`,{className:`amount`,children:[i,` `,b(e)]})]}),a?.[v.CloseBet]&&(0,r.jsxs)(h,{children:[(0,r.jsx)(`p`,{className:`text-title`,children:o(`Total Bet`)}),(0,r.jsxs)(`p`,{className:`amount`,children:[i,` `,b(n)]})]})]})},k={bottom:{info:`
|
|
62
62
|
top: calc(100% + 8px);
|
|
63
63
|
left: 50%;
|
|
64
64
|
transform: translateX(-50%);
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
text-overflow: ellipsis;
|
|
1154
1154
|
|
|
1155
1155
|
margin-top: ${({$isMobile:e,isLandscape:t})=>e&&!t?`0px`:`8px`};
|
|
1156
|
-
`,Gt=({roundData:e,handleClickRound:n,indexHistory:i,isMobile:a=!0,isLandscape:o=!0})=>{let{t:s}=(0,t.useTranslation)();return W.Ante,W.Insurance,W.PerfectPairs,W.TwentyOnePlusThree,(0,r.jsxs)(Rt,{children:[(0,r.jsxs)(zt,{children:[(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`title`,children:s(`Dealer`)}),(0,r.jsx)(`p`,{className:`text`,children:e.dealer?.nickname??`Auto`})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`title`,children:s(`Round`)}),(0,r.jsx)(`p`,{className:`text`,children:e.currentRoundId})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`title`,children:s(`Bet Amount`)}),(0,r.jsxs)(`p`,{className:`text`,children:[e.player.gameCurrencyId,(0,r.jsx)(`span`,{children:b(e.player.betAmount??0)})]})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`title`,children:s(`Win Amount`)}),(0,r.jsxs)(`p`,{className:`text textGreen`,children:[e.player.gameCurrencyId,(0,r.jsx)(`span`,{children:b(e.player.winAmount??0)})]})]})]}),(0,r.jsx)(J,{}),(0,r.jsxs)(Bt,{$isMobile:!1,children:[(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`text`,children:s(`Dealer`)}),(0,r.jsx)(J,{}),(0,r.jsx)(`div`,{className:`cards`,children:e.initialDealerCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`text`,children:s(`Flop`)}),(0,r.jsx)(J,{}),(0,r.jsx)(`div`,{className:`cards`,children:e.floppedCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`text`,children:s(`Player`)}),(0,r.jsx)(J,{}),(0,r.jsx)(`div`,{className:`cards`,children:e.initialPlayerCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]})]}),(0,r.jsx)(J,{}),(0,r.jsxs)(Bt,{$isMobile:a&&!o,children:[(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsxs)(`div`,{className:`text`,children:[(0,r.jsx)(`span`,{className:`text`,children:s(`Dealer's Hand`)}),(0,r.jsx)(Wt,{children:s(je[e?.dealerWinType]??``)})]}),(0,r.jsx)(J,{$isVisible:!a||o}),(0,r.jsx)(`div`,{className:`cards`,children:e.dealerCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]}),(0,r.jsx)(J,{$isVisible:a&&!o}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`div`,{className:`text secondtext`,children:(0,r.jsx)(`span`,{className:`text`,children:s(`Bonus Game`)})}),(0,r.jsx)(J,{$isVisible:!a||o}),(0,r.jsx)(`div`,{className:`cards`,children:e.bonusCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]}),(0,r.jsx)(J,{$isVisible:a&&!o}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsxs)(`div`,{className:`text`,children:[(0,r.jsx)(`span`,{className:`text`,children:s(`Player's Hand`)}),(0,r.jsx)(Wt,{children:s(je[e?.playerWinType]??``)})]}),(0,r.jsx)(J,{$isVisible:!a||o}),(0,r.jsx)(`div`,{className:`cards`,children:e.playerCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]})]}),(0,r.jsx)(J,{}),(0,r.jsx)(Ht,{children:(0,r.jsxs)(`table`,{className:`table`,children:[(0,r.jsx)(`thead`,{children:(0,r.jsxs)(`tr`,{className:`boxes`,children:[(0,r.jsx)(`th`,{className:`title`,children:s(`Bet Type`)}),(0,r.jsx)(`th`,{className:`title AmountTitle`,children:s(`Amount`)}),(0,r.jsx)(`th`,{className:`title`,children:s(`Win/Lose`)})]})}),(0,r.jsx)(`tbody`,{children:e.player.bets?.map((t,n)=>
|
|
1156
|
+
`,Gt=({roundData:e,handleClickRound:n,indexHistory:i,isMobile:a=!0,isLandscape:o=!0})=>{let{t:s}=(0,t.useTranslation)();return W.Ante,W.Insurance,W.PerfectPairs,W.TwentyOnePlusThree,(0,r.jsxs)(Rt,{children:[(0,r.jsxs)(zt,{children:[(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`title`,children:s(`Dealer`)}),(0,r.jsx)(`p`,{className:`text`,children:e.dealer?.nickname??`Auto`})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`title`,children:s(`Round`)}),(0,r.jsx)(`p`,{className:`text`,children:e.currentRoundId})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`title`,children:s(`Bet Amount`)}),(0,r.jsxs)(`p`,{className:`text`,children:[e.player.gameCurrencyId,(0,r.jsx)(`span`,{children:b(e.player.betAmount??0)})]})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`title`,children:s(`Win Amount`)}),(0,r.jsxs)(`p`,{className:`text textGreen`,children:[e.player.gameCurrencyId,(0,r.jsx)(`span`,{children:b(e.player.winAmount??0)})]})]})]}),(0,r.jsx)(J,{}),(0,r.jsxs)(Bt,{$isMobile:!1,children:[(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`text`,children:s(`Dealer`)}),(0,r.jsx)(J,{}),(0,r.jsx)(`div`,{className:`cards`,children:e.initialDealerCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`text`,children:s(`Flop`)}),(0,r.jsx)(J,{}),(0,r.jsx)(`div`,{className:`cards`,children:e.floppedCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`p`,{className:`text`,children:s(`Player`)}),(0,r.jsx)(J,{}),(0,r.jsx)(`div`,{className:`cards`,children:e.initialPlayerCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]})]}),(0,r.jsx)(J,{}),(0,r.jsxs)(Bt,{$isMobile:a&&!o,children:[(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsxs)(`div`,{className:`text`,children:[(0,r.jsx)(`span`,{className:`text`,children:s(`Dealer's Hand`)}),(0,r.jsx)(Wt,{children:s(je[e?.dealerWinType]??``)})]}),(0,r.jsx)(J,{$isVisible:!a||o}),(0,r.jsx)(`div`,{className:`cards`,children:e.dealerCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]}),(0,r.jsx)(J,{$isVisible:a&&!o}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsx)(`div`,{className:`text secondtext`,children:(0,r.jsx)(`span`,{className:`text`,children:s(`Bonus Game`)})}),(0,r.jsx)(J,{$isVisible:!a||o}),(0,r.jsx)(`div`,{className:`cards`,children:e.bonusCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]}),(0,r.jsx)(J,{$isVisible:a&&!o}),(0,r.jsxs)(`div`,{className:`item`,children:[(0,r.jsxs)(`div`,{className:`text`,children:[(0,r.jsx)(`span`,{className:`text`,children:s(`Player's Hand`)}),(0,r.jsx)(Wt,{children:s(je[e?.playerWinType]??``)})]}),(0,r.jsx)(J,{$isVisible:!a||o}),(0,r.jsx)(`div`,{className:`cards`,children:e.playerCards?.map((e,t)=>(0,r.jsx)(`div`,{className:`card-style`,children:(0,r.jsx)(q,{index:e.scannerIndex,cardHeight:32,cardWidth:26,isFlop:e?.isFlopped??!0,isWinCombination:e?.isNotInWinCombination??!1})},t))})]})]}),(0,r.jsx)(J,{}),(0,r.jsx)(Ht,{children:(0,r.jsxs)(`table`,{className:`table`,children:[(0,r.jsx)(`thead`,{children:(0,r.jsxs)(`tr`,{className:`boxes`,children:[(0,r.jsx)(`th`,{className:`title`,children:s(`Bet Type`)}),(0,r.jsx)(`th`,{className:`title AmountTitle`,children:s(`Amount`)}),(0,r.jsx)(`th`,{className:`title`,children:s(`Win/Lose`)})]})}),(0,r.jsx)(`tbody`,{children:e.player.bets?.map((t,n)=>(0,r.jsxs)(`tr`,{children:[(0,r.jsx)(`td`,{children:(0,r.jsx)(`p`,{className:`text `,children:s(Me[t.betType])})}),(0,r.jsx)(`td`,{children:(0,r.jsxs)(`p`,{className:`text amount-text`,children:[t.amount,e.player.gameCurrencyId]},t.betType)}),(0,r.jsx)(`td`,{children:(0,r.jsx)(Ut,{$isWin:!!t.winAmount,children:t.winAmount?(0,r.jsxs)(r.Fragment,{children:[b(t.winAmount),e.player.gameCurrencyId]}):(0,r.jsx)(r.Fragment,{children:s(`Lost`)})},t.betType)})]},n))})]})}),(0,r.jsx)(Vt,{}),(0,r.jsx)(St,{handleClickRound:n,indexHistory:i})]})},Kt=`Split`,qt=`column`,Jt=`dozen`,Yt=`Corner`,Xt=`Street`,Zt=`Line`,Qt=[1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36],$t=e=>e===0?`Green`:Qt.includes(e)?`#610A0A`:`#000000`,en=e=>e===0?`Green`:Qt.includes(e)?`Red`:`Black`,tn=e=>`${[`1st`,`2nd`,`3rd`][e-1]} ${qt}`,nn=e=>`${Jt} ${[`1st`,`2nd`,`3rd`][e===3?0:e===15?1:2]}`,rn=e=>e===6?`Even`:`Odd`,an=e=>e===3?`1-18`:`19-36`,on=e=>{if(e===0)return`0/1/2/3`;let t=(e+2)/3;return(e%3||3)==1?t<12?`${e}/${e+1}/${e+3}/${e+4}`:`${e-3}/${e-2}/${e}/${e+1}`:`${e-1}/${e}/${e+2}/${e+3}`},sn=(e,t)=>{switch(e){case 4:{let e=((t+2)/3|0)*3-2;return`${e}/${e+1}/${e+2}`}case 7:{let e=((t-1)/3|0)*3+1;return`${e}/${e+1}/${e+2}/${e+3}/${e+4}/${e+5}`}case 13:return t===3?`0/2/3`:`0/1/2`}},cn=(e,t)=>{switch(e){case 1:return`${t} ${en(t)}`;case 10:return t===3?`Red`:`Black`;case 5:return tn(t);case 9:return rn(t);case 8:return nn(t);case 2:return`${Kt} ${t}/${t+3}`;case 3:return`${Kt} ${t-1}/${t}`;case 12:return`${Kt} 0/${t}`;case 11:return an(t);case 6:return`${Yt} ${on(t)}`;case 4:return`${Xt} ${sn(e,t)}`;case 7:return`${Zt} ${sn(e,t)}`;case 13:return`${Xt} ${sn(e,t)}`;default:throw Error(`Unknown bet type: ${e}`)}},ln=n.styled.div`
|
|
1157
1157
|
max-width: 100%;
|
|
1158
1158
|
height: 100%;
|
|
1159
1159
|
overflow: auto;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/utils/helpers.d.ts
CHANGED