livevegas-ui-kit 1.0.238 → 1.0.240
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.
|
@@ -1932,23 +1932,27 @@ const Os = b.div`
|
|
|
1932
1932
|
var nr = /* @__PURE__ */ ((e) => (e.Launch = "launch", e.GameChange = "GameChange", e.SendMessage = "SendMessage", e.GetBalance = "GetBalance", e.PlaceBet = "PlaceBet", e.GetPlayerState = "GetPlayerState", e.PlaceBetBulk = "PlaceBetBulk", e.SitOutPlayer = "SitOutPlayer", e.SetNickname = "SetNickname", e.GetHistory = "GetHistory", e.SendTip = "SendTip", e.ChangeDealerLanguage = "ChangeDealerLanguage", e))(nr || {});
|
|
1933
1933
|
const zs = {
|
|
1934
1934
|
undoArray: "undoArray"
|
|
1935
|
-
}, Ks = "https://livelobby8.livevegas.live", dn = (e, t, n) => {
|
|
1936
|
-
const { tableId:
|
|
1935
|
+
}, Ks = "https://livelobby8.livevegas.live", dn = (e, t, n, i) => {
|
|
1936
|
+
const { tableId: r, gameId: o, lang: s, playerId: l, token: d, exitUrl: h, hasLobby: c } = n, m = window.location.href, g = new URLSearchParams({
|
|
1937
|
+
isMinimized: "true",
|
|
1938
|
+
gameUrl: m,
|
|
1939
|
+
tableName: i || ""
|
|
1940
|
+
});
|
|
1937
1941
|
if (localStorage.setItem(zs.undoArray, JSON.stringify([])), t == null || t.invoke(nr.SitOutPlayer, {
|
|
1938
|
-
tableId: Number(
|
|
1939
|
-
gameId: Number(
|
|
1940
|
-
}),
|
|
1941
|
-
window.location.href =
|
|
1942
|
+
tableId: Number(r),
|
|
1943
|
+
gameId: Number(o)
|
|
1944
|
+
}), c === "false") {
|
|
1945
|
+
window.location.href = h;
|
|
1942
1946
|
return;
|
|
1943
1947
|
}
|
|
1944
|
-
const
|
|
1948
|
+
const u = {
|
|
1945
1949
|
name: "closed",
|
|
1946
1950
|
sender: "game"
|
|
1947
|
-
},
|
|
1951
|
+
}, w = {
|
|
1948
1952
|
name: "closeFrame",
|
|
1949
|
-
url: `${Ks}/?lang=${
|
|
1953
|
+
url: `${Ks}/?lang=${s}&playerId=${l}&token=${d}&gameId=${o}&gameType=8&exitUrl=${h}&partnerId=${e}&${g.toString()}`
|
|
1950
1954
|
};
|
|
1951
|
-
window.parent.postMessage(
|
|
1955
|
+
window.parent.postMessage(u, "*"), window.parent.postMessage(w, "*"), window.parent.postMessage("closeGame", "*");
|
|
1952
1956
|
}, re = (e) => {
|
|
1953
1957
|
if (!e) return "0";
|
|
1954
1958
|
const t = e.toFixed(10), n = t.indexOf(".");
|
|
@@ -2024,7 +2028,6 @@ function Qt(e) {
|
|
|
2024
2028
|
KGS: "KGS",
|
|
2025
2029
|
KHR: "៛",
|
|
2026
2030
|
KRW: "₩",
|
|
2027
|
-
KWD: "ك",
|
|
2028
2031
|
KZT: "₸",
|
|
2029
2032
|
LAT: "Ls",
|
|
2030
2033
|
LTL: "Lt",
|
|
@@ -11008,7 +11011,7 @@ const vc = b(jr)`
|
|
|
11008
11011
|
wi,
|
|
11009
11012
|
{
|
|
11010
11013
|
$isLandscape: u,
|
|
11011
|
-
onClick: () => dn(n, i, r),
|
|
11014
|
+
onClick: () => dn(n, i, r, e),
|
|
11012
11015
|
children: [
|
|
11013
11016
|
/* @__PURE__ */ a.jsx(He, { position: "left", color: "rgba(197, 245, 250, 1)" }),
|
|
11014
11017
|
/* @__PURE__ */ a.jsx("p", { className: "text", children: se("Back To Lobby") })
|
|
@@ -11301,7 +11304,7 @@ const vc = b(jr)`
|
|
|
11301
11304
|
const [c, m] = Y(!1), { t: g } = K();
|
|
11302
11305
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
11303
11306
|
/* @__PURE__ */ a.jsxs(Nc, { children: [
|
|
11304
|
-
i !== Le.QTechTest && i !== Le.OPS && i !== Le.Notix && i !== Le.OPS_PROD && /* @__PURE__ */ a.jsxs(Fc, { onClick: () => dn(i, r, o), children: [
|
|
11307
|
+
i !== Le.QTechTest && i !== Le.OPS && i !== Le.Notix && i !== Le.OPS_PROD && /* @__PURE__ */ a.jsxs(Fc, { onClick: () => dn(i, r, o, e), children: [
|
|
11305
11308
|
/* @__PURE__ */ a.jsx("div", { className: "lobby-content", children: /* @__PURE__ */ a.jsx(He, { height: 7, width: 12 }) }),
|
|
11306
11309
|
/* @__PURE__ */ a.jsx("div", { className: "company-logo", children: /* @__PURE__ */ a.jsx(Bc, {}) })
|
|
11307
11310
|
] }),
|
|
@@ -146,7 +146,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Va]+=1);const ls=b.div`
|
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
color: #ffffff;
|
|
148
148
|
}
|
|
149
|
-
`;var hi=(e=>(e.Launch="launch",e.GameChange="GameChange",e.SendMessage="SendMessage",e.GetBalance="GetBalance",e.PlaceBet="PlaceBet",e.GetPlayerState="GetPlayerState",e.PlaceBetBulk="PlaceBetBulk",e.SitOutPlayer="SitOutPlayer",e.SetNickname="SetNickname",e.GetHistory="GetHistory",e.SendTip="SendTip",e.ChangeDealerLanguage="ChangeDealerLanguage",e))(hi||{});const ds={undoArray:"undoArray"},hs="https://livelobby8.livevegas.live",Mt=(e,t,n)=>{const{tableId:
|
|
149
|
+
`;var hi=(e=>(e.Launch="launch",e.GameChange="GameChange",e.SendMessage="SendMessage",e.GetBalance="GetBalance",e.PlaceBet="PlaceBet",e.GetPlayerState="GetPlayerState",e.PlaceBetBulk="PlaceBetBulk",e.SitOutPlayer="SitOutPlayer",e.SetNickname="SetNickname",e.GetHistory="GetHistory",e.SendTip="SendTip",e.ChangeDealerLanguage="ChangeDealerLanguage",e))(hi||{});const ds={undoArray:"undoArray"},hs="https://livelobby8.livevegas.live",Mt=(e,t,n,i)=>{const{tableId:r,gameId:o,lang:s,playerId:l,token:d,exitUrl:h,hasLobby:c}=n,m=window.location.href,g=new URLSearchParams({isMinimized:"true",gameUrl:m,tableName:i||""});if(localStorage.setItem(ds.undoArray,JSON.stringify([])),t==null||t.invoke(hi.SitOutPlayer,{tableId:Number(r),gameId:Number(o)}),c==="false"){window.location.href=h;return}const u={name:"closed",sender:"game"},w={name:"closeFrame",url:`${hs}/?lang=${s}&playerId=${l}&token=${d}&gameId=${o}&gameType=8&exitUrl=${h}&partnerId=${e}&${g.toString()}`};window.parent.postMessage(u,"*"),window.parent.postMessage(w,"*"),window.parent.postMessage("closeGame","*")},oe=e=>{if(!e)return"0";const t=e.toFixed(10),n=t.indexOf(".");return t.slice(0,n+1+8).replace(/\.?0+$/,"")},ci=e=>{const t=new Date(e.calculationEndDate),n=new Date,i=t.getTime()-n.getTime();return i<=0?{days:0,hours:0,minutes:0,seconds:0}:{days:Math.floor(i/(1e3*60*60*24)),hours:Math.floor(i/(1e3*60*60)%24),minutes:Math.floor(i/1e3/60%60),seconds:Math.floor(i/1e3%60)}},cs={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 loss 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"},us={1:"Your bet is out of Limits"};var qe=(e=>(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))(qe||{});function Ut(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 Pe=(e=>(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.Galabet=155]="Galabet",e[e.Lynon=156]="Lynon",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))(Pe||{}),te=(e=>(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))(te||{}),ui=(e=>(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))(ui||{});const pi={3:"Russian Poker",6:"Oasis Poker",20:"Texas Ultimate",10:"Texas Hold'em",16:"Six Card Poker"};var fa=(e=>(e[e.RUSSIANPOKER=0]="RUSSIANPOKER",e[e.TEXASHOLDEM=1]="TEXASHOLDEM",e[e.TEXASULTIMATE=2]="TEXASULTIMATE",e))(fa||{});const ps=({balance:e,bet:t,currencyId:n})=>{const{t:i}=q();return a.jsxs(ls,{children:[a.jsxs(di,{children:[a.jsx("p",{className:"text-title",children:i("Balance")}),a.jsxs("p",{className:"amount",children:[n," ",oe(e)]})]}),a.jsxs(di,{children:[a.jsx("p",{className:"text-title",children:i("Total Bet")}),a.jsxs("p",{className:"amount",children:[n," ",oe(t)]})]})]})},mi={bottom:{info:`
|
|
150
150
|
top: calc(100% + 8px);
|
|
151
151
|
left: 50%;
|
|
152
152
|
transform: translateX(-50%);
|
|
@@ -2980,7 +2980,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Va]+=1);const ls=b.div`
|
|
|
2980
2980
|
position: absolute;
|
|
2981
2981
|
right: 4px;
|
|
2982
2982
|
bottom: 20px;
|
|
2983
|
-
`,_h=({name:e,round:t,partnerId:n,socket:i,urlParam:r,messages:o,historyData:s,onSendMessage:l,tournamentData:d,isTournamentActive:h,chipAmounts:c,messagesSupport:m,onSendMessageSupport:g,isLandscape:u,streamVolume:f,balance:w,currencyId:y,effectsVolume:k,setEffectsVolume:v,setStreamVolume:A,getHistory:C,limits:B,sendTip:P,handleStreamQualityChange:I,streamQuality:D,nickNameChange:F,nickName:O,dealerName:Z,errorCode:ne,gameType:V,maxPayOut:Q,selectedGame:se,limit:ie})=>{const[_,T]=S.useState(0),[E,ee]=S.useState(null),[G,J]=S.useState(!1),{t:le}=q(),{clickSound:ye}=He({effectsVolume:50}),[we,W]=S.useState(0),[Ae,fe]=S.useState(0),Ce=()=>{ye(),ee(null)},Le=Es(E,u,_===1),Ne=Y=>{if(Y===R.VolumeOn){A(f===0?100:0);return}else Y!==R.closeMenu&&ee(Y);ye(),J(!1)},Te=_===1?{headerClick:()=>T(2)}:{},dn=Y=>[{name:"Settings",buttonType:R.Settings,icon:wi()},{buttonType:R.VolumeOn,icon:Y===0?lr():Vt()},{buttonType:R.closeMenu,icon:_a({isMobile:!0})}];return a.jsxs(a.Fragment,{children:[a.jsx(Zh,{onClick:()=>{ye(),J(!0)},children:a.jsx(rl,{})}),E&&Le&&(E!==R.Limit||typeof B!="string")&&a.jsx(dl,{isLandscape:u,close:Ce,...Le,...Te,dealerName:E===R.Tip?Z:"",active:E,children:a.jsx(sr,{tournamentData:d,getHistory:C,streamVolume:f,effectsVolume:k,setEffectsVolume:v,setStreamVolume:A,activeAction:E,messages:o,currencyId:y,onSendMessage:l,chipAmounts:c,balance:w,messagesSupport:m,onSendMessageSupport:g,historyData:s,isMobile:!0,isLandscape:u,openRoundHistory:_,setOpenRoundHistory:T,limits:B,sendTip:Y=>{ee(null),J(!1),P(Y)},handleStreamQualityChange:I,streamQuality:D,nickNameChange:F,nickName:O,errorCode:ne,gameType:V,maxPayOut:Q,selectedGame:se??0,limit:ie})}),G&&a.jsxs(Vh,{onTouchStart:Y=>{u||Ds(Y,W)},onTouchMove:Y=>{u||Hs(Y,we,J)},onTouchEnd:Y=>{u||Rs(Y,W)},$isLandscape:u,children:[a.jsxs($h,{children:[a.jsxs(Qh,{children:[a.jsx("div",{className:"name-contener",children:a.jsx("p",{className:"name","data-testid":"game-name",children:le(e)})}),a.jsxs("div",{className:"round-contener",children:[a.jsxs("p",{className:"round-text",children:[le("round"),":"]}),a.jsx("p",{className:"round","data-testid":"game-round",children:t})]})]}),a.jsx("div",{className:"button-wrapper",children:dn(f).map(Y=>a.jsx("button",{className:"button",onClick:()=>Ne(Y.buttonType),children:Y.icon},Y.buttonType))})]}),a.jsxs(Jh,{children:[n!==Pe.QTechTest&&n!==Pe.OPS&&n!==Pe.Notix&&n!==Pe.OPS_PROD&&a.jsxs(dr,{$isLandscape:u,onClick:()=>Mt(n,i,r),children:[a.jsx(De,{position:"left",color:"rgba(197, 245, 250, 1)"}),a.jsx("p",{className:"text",children:le("Back To Lobby")})]}),a.jsxs(Xh,{$isLandscape:u,children:[a.jsx("div",{className:"menu-line",children:Ns.map(Y=>{if(!(n===Pe.Galabet&&Y.name==="Send Tip"||Y.name==="Send Tip"&&!Z))return a.jsxs(hr,{$isLandscape:u,onClick:()=>Ne(Y.buttonType),children:[Y.icon,a.jsx("p",{className:"p",children:le(Y.name)})]},Y.buttonType)})}),a.jsx("div",{className:"menu-line",children:Fs.map(Y=>a.jsxs(hr,{$isLandscape:u,onClick:()=>Ne(Y.buttonType),children:[Y.icon,a.jsxs("p",{className:"p",children:[le(Y.name)," ",typeof B=="string"&&Y.name==="Limits & Payouts"&&a.jsx(a.Fragment,{children:B})]})]},Y.buttonType))})]}),h&&a.jsxs(dr,{$isLandscape:u,$tournament:!0,onClick:()=>Ne(R.Tournament),children:[a.jsx("img",{src:Ri,alt:"Gold"}),a.jsx("p",{className:"text",children:le("Tournament")})]})]})]})]})},ec=b.div`
|
|
2983
|
+
`,_h=({name:e,round:t,partnerId:n,socket:i,urlParam:r,messages:o,historyData:s,onSendMessage:l,tournamentData:d,isTournamentActive:h,chipAmounts:c,messagesSupport:m,onSendMessageSupport:g,isLandscape:u,streamVolume:f,balance:w,currencyId:y,effectsVolume:k,setEffectsVolume:v,setStreamVolume:A,getHistory:C,limits:B,sendTip:P,handleStreamQualityChange:I,streamQuality:D,nickNameChange:F,nickName:O,dealerName:Z,errorCode:ne,gameType:V,maxPayOut:Q,selectedGame:se,limit:ie})=>{const[_,T]=S.useState(0),[E,ee]=S.useState(null),[G,J]=S.useState(!1),{t:le}=q(),{clickSound:ye}=He({effectsVolume:50}),[we,W]=S.useState(0),[Ae,fe]=S.useState(0),Ce=()=>{ye(),ee(null)},Le=Es(E,u,_===1),Ne=Y=>{if(Y===R.VolumeOn){A(f===0?100:0);return}else Y!==R.closeMenu&&ee(Y);ye(),J(!1)},Te=_===1?{headerClick:()=>T(2)}:{},dn=Y=>[{name:"Settings",buttonType:R.Settings,icon:wi()},{buttonType:R.VolumeOn,icon:Y===0?lr():Vt()},{buttonType:R.closeMenu,icon:_a({isMobile:!0})}];return a.jsxs(a.Fragment,{children:[a.jsx(Zh,{onClick:()=>{ye(),J(!0)},children:a.jsx(rl,{})}),E&&Le&&(E!==R.Limit||typeof B!="string")&&a.jsx(dl,{isLandscape:u,close:Ce,...Le,...Te,dealerName:E===R.Tip?Z:"",active:E,children:a.jsx(sr,{tournamentData:d,getHistory:C,streamVolume:f,effectsVolume:k,setEffectsVolume:v,setStreamVolume:A,activeAction:E,messages:o,currencyId:y,onSendMessage:l,chipAmounts:c,balance:w,messagesSupport:m,onSendMessageSupport:g,historyData:s,isMobile:!0,isLandscape:u,openRoundHistory:_,setOpenRoundHistory:T,limits:B,sendTip:Y=>{ee(null),J(!1),P(Y)},handleStreamQualityChange:I,streamQuality:D,nickNameChange:F,nickName:O,errorCode:ne,gameType:V,maxPayOut:Q,selectedGame:se??0,limit:ie})}),G&&a.jsxs(Vh,{onTouchStart:Y=>{u||Ds(Y,W)},onTouchMove:Y=>{u||Hs(Y,we,J)},onTouchEnd:Y=>{u||Rs(Y,W)},$isLandscape:u,children:[a.jsxs($h,{children:[a.jsxs(Qh,{children:[a.jsx("div",{className:"name-contener",children:a.jsx("p",{className:"name","data-testid":"game-name",children:le(e)})}),a.jsxs("div",{className:"round-contener",children:[a.jsxs("p",{className:"round-text",children:[le("round"),":"]}),a.jsx("p",{className:"round","data-testid":"game-round",children:t})]})]}),a.jsx("div",{className:"button-wrapper",children:dn(f).map(Y=>a.jsx("button",{className:"button",onClick:()=>Ne(Y.buttonType),children:Y.icon},Y.buttonType))})]}),a.jsxs(Jh,{children:[n!==Pe.QTechTest&&n!==Pe.OPS&&n!==Pe.Notix&&n!==Pe.OPS_PROD&&a.jsxs(dr,{$isLandscape:u,onClick:()=>Mt(n,i,r,e),children:[a.jsx(De,{position:"left",color:"rgba(197, 245, 250, 1)"}),a.jsx("p",{className:"text",children:le("Back To Lobby")})]}),a.jsxs(Xh,{$isLandscape:u,children:[a.jsx("div",{className:"menu-line",children:Ns.map(Y=>{if(!(n===Pe.Galabet&&Y.name==="Send Tip"||Y.name==="Send Tip"&&!Z))return a.jsxs(hr,{$isLandscape:u,onClick:()=>Ne(Y.buttonType),children:[Y.icon,a.jsx("p",{className:"p",children:le(Y.name)})]},Y.buttonType)})}),a.jsx("div",{className:"menu-line",children:Fs.map(Y=>a.jsxs(hr,{$isLandscape:u,onClick:()=>Ne(Y.buttonType),children:[Y.icon,a.jsxs("p",{className:"p",children:[le(Y.name)," ",typeof B=="string"&&Y.name==="Limits & Payouts"&&a.jsx(a.Fragment,{children:B})]})]},Y.buttonType))})]}),h&&a.jsxs(dr,{$isLandscape:u,$tournament:!0,onClick:()=>Ne(R.Tournament),children:[a.jsx("img",{src:Ri,alt:"Gold"}),a.jsx("p",{className:"text",children:le("Tournament")})]})]})]})]})},ec=b.div`
|
|
2984
2984
|
border-radius: 8px;
|
|
2985
2985
|
background-color: #111111cc;
|
|
2986
2986
|
margin-top: 10px;
|
|
@@ -3157,7 +3157,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Va]+=1);const ls=b.div`
|
|
|
3157
3157
|
rgba(255, 255, 255, 0.4) 50%,
|
|
3158
3158
|
rgba(255, 255, 255, 0) 100%
|
|
3159
3159
|
);
|
|
3160
|
-
`,lc=({name:e,round:t,limit:n,partnerId:i,socket:r,urlParam:o,limits:s,gameType:l,maxPayOut:d,currencyId:h})=>{const[c,m]=S.useState(!1),{t:g}=q();return a.jsxs(a.Fragment,{children:[a.jsxs(ic,{children:[i!==Pe.QTechTest&&i!==Pe.OPS&&i!==Pe.Notix&&i!==Pe.OPS_PROD&&a.jsxs(rc,{onClick:()=>Mt(i,r,o),children:[a.jsx("div",{className:"lobby-content",children:a.jsx(De,{height:7,width:12})}),a.jsx("div",{className:"company-logo",children:a.jsx(tc,{})})]}),a.jsx(sc,{}),a.jsxs(oc,{children:[a.jsxs("div",{className:"name-contener",children:[a.jsx("p",{className:"name","data-testid":"game-name",children:e}),a.jsx("p",{className:"limit","data-testid":"game-limit",children:n}),typeof s!="string"&&a.jsx("div",{className:"button",onClick:()=>m(!c),children:a.jsx(De,{height:7,width:12,position:c?"top":"bottom"})})]}),a.jsxs("div",{className:"round-contener",children:[a.jsxs("p",{className:"round-text",children:[g("round"),":"]}),a.jsx("p",{className:"round","data-testid":"game-round",children:t})]})]})]}),c&&a.jsx(nc,{children:a.jsx(rn,{close:()=>m(!1),header:g("Limits & Payouts"),height:370,width:300,children:Array.isArray(s)?a.jsx(or,{stakes:s,gameType:l||1,maxPayOut:d,currencyId:h||"USD"}):a.jsx(ir,{...s,gameType:l,limit:n})})})]})},dc=b.div`
|
|
3160
|
+
`,lc=({name:e,round:t,limit:n,partnerId:i,socket:r,urlParam:o,limits:s,gameType:l,maxPayOut:d,currencyId:h})=>{const[c,m]=S.useState(!1),{t:g}=q();return a.jsxs(a.Fragment,{children:[a.jsxs(ic,{children:[i!==Pe.QTechTest&&i!==Pe.OPS&&i!==Pe.Notix&&i!==Pe.OPS_PROD&&a.jsxs(rc,{onClick:()=>Mt(i,r,o,e),children:[a.jsx("div",{className:"lobby-content",children:a.jsx(De,{height:7,width:12})}),a.jsx("div",{className:"company-logo",children:a.jsx(tc,{})})]}),a.jsx(sc,{}),a.jsxs(oc,{children:[a.jsxs("div",{className:"name-contener",children:[a.jsx("p",{className:"name","data-testid":"game-name",children:e}),a.jsx("p",{className:"limit","data-testid":"game-limit",children:n}),typeof s!="string"&&a.jsx("div",{className:"button",onClick:()=>m(!c),children:a.jsx(De,{height:7,width:12,position:c?"top":"bottom"})})]}),a.jsxs("div",{className:"round-contener",children:[a.jsxs("p",{className:"round-text",children:[g("round"),":"]}),a.jsx("p",{className:"round","data-testid":"game-round",children:t})]})]})]}),c&&a.jsx(nc,{children:a.jsx(rn,{close:()=>m(!1),header:g("Limits & Payouts"),height:370,width:300,children:Array.isArray(s)?a.jsx(or,{stakes:s,gameType:l||1,maxPayOut:d,currencyId:h||"USD"}):a.jsx(ir,{...s,gameType:l,limit:n})})})]})},dc=b.div`
|
|
3161
3161
|
display: flex;
|
|
3162
3162
|
align-items: center;
|
|
3163
3163
|
gap: 4px;
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface IUrlParam {
|
|
|
10
10
|
exitUrl: string;
|
|
11
11
|
hasLobby: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const closeGame: (partnerId: number, socket: HubConnection | null, urlParam: IUrlParam) => void;
|
|
13
|
+
export declare const closeGame: (partnerId: number, socket: HubConnection | null, urlParam: IUrlParam, name?: string) => void;
|
|
14
14
|
export declare const formatBalanceSmart: (balance: number) => string;
|
|
15
15
|
export declare const mockTournamentData: {
|
|
16
16
|
errorCode: number;
|