livevegas-ui-kit 1.0.206 → 1.0.208
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.
|
@@ -2,6 +2,7 @@ import { IActiveBonus } from '../../utils/helpers';
|
|
|
2
2
|
|
|
3
3
|
interface WagerProps {
|
|
4
4
|
activeBonus: IActiveBonus;
|
|
5
|
+
isMobileFromLeft: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const Wager: ({ activeBonus }: WagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Wager: ({ activeBonus, isMobileFromLeft }: WagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
interface IWager {
|
|
2
|
+
$isMobileFromLeft: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const WagerContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IWager>> & string;
|
|
2
5
|
export declare const WagerText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
6
|
export declare const FsText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
7
|
export declare const WagerAmount: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
8
|
export declare const FsCount: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
9
|
export declare const Divider: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
10
|
export declare const Stars: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
11
|
+
export {};
|
|
@@ -1933,19 +1933,22 @@ var Qi = /* @__PURE__ */ ((e) => (e.Launch = "launch", e.GameChange = "GameChang
|
|
|
1933
1933
|
const No = {
|
|
1934
1934
|
undoArray: "undoArray"
|
|
1935
1935
|
}, Po = "https://livelobby8.livevegas.live", _a = (e, t, n) => {
|
|
1936
|
-
const { tableId: i, gameId: r, lang: s, playerId: o, token: l, exitUrl: d } = n;
|
|
1937
|
-
localStorage.setItem(No.undoArray, JSON.stringify([])), t == null || t.invoke(Qi.SitOutPlayer, {
|
|
1936
|
+
const { tableId: i, gameId: r, lang: s, playerId: o, token: l, exitUrl: d, hasLobby: c } = n;
|
|
1937
|
+
if (localStorage.setItem(No.undoArray, JSON.stringify([])), t == null || t.invoke(Qi.SitOutPlayer, {
|
|
1938
1938
|
tableId: Number(i),
|
|
1939
1939
|
gameId: Number(r)
|
|
1940
|
-
})
|
|
1941
|
-
|
|
1940
|
+
}), c === "false") {
|
|
1941
|
+
window.location.href = d;
|
|
1942
|
+
return;
|
|
1943
|
+
}
|
|
1944
|
+
const h = {
|
|
1942
1945
|
name: "closed",
|
|
1943
1946
|
sender: "game"
|
|
1944
|
-
},
|
|
1947
|
+
}, g = {
|
|
1945
1948
|
name: "closeFrame",
|
|
1946
1949
|
url: `${Po}/?lang=${s}&playerId=${o}&token=${l}&gameId=${r}&gameType=8&exitUrl=${d}&partnerId=${e}`
|
|
1947
1950
|
};
|
|
1948
|
-
window.parent.postMessage(
|
|
1951
|
+
window.parent.postMessage(h, "*"), window.parent.postMessage(g, "*"), window.parent.postMessage("closeGame", "*");
|
|
1949
1952
|
}, le = (e) => {
|
|
1950
1953
|
if (!e) return "0";
|
|
1951
1954
|
const t = e.toFixed(10), n = t.indexOf(".");
|
|
@@ -11586,15 +11589,14 @@ const Gc = {
|
|
|
11586
11589
|
background: var(--black-80, rgba(17, 17, 17, 0.8));
|
|
11587
11590
|
border-top-right-radius: 8px;
|
|
11588
11591
|
border-bottom-right-radius: 8px;
|
|
11589
|
-
/* @media (max-width: 768px) and (orientation: landscape) {} */
|
|
11590
11592
|
@media (max-width: 768px) {
|
|
11591
11593
|
top: 35px;
|
|
11592
11594
|
left: unset;
|
|
11593
|
-
right: 0;
|
|
11594
|
-
border-top-
|
|
11595
|
-
border-
|
|
11596
|
-
border-
|
|
11597
|
-
border-bottom-
|
|
11595
|
+
${({ $isMobileFromLeft: e }) => e ? "left: 0;" : "right: 0;"}
|
|
11596
|
+
border-top-left-radius: ${({ $isMobileFromLeft: e }) => e ? "0" : "8px"};
|
|
11597
|
+
border-top-right-radius: ${({ $isMobileFromLeft: e }) => e ? "8px" : "0"};
|
|
11598
|
+
border-bottom-left-radius: ${({ $isMobileFromLeft: e }) => e ? "0" : "8px"};
|
|
11599
|
+
border-bottom-right-radius: ${({ $isMobileFromLeft: e }) => e ? "8px" : "0"};
|
|
11598
11600
|
}
|
|
11599
11601
|
`, ah = m.div`
|
|
11600
11602
|
font-size: 12px;
|
|
@@ -11623,24 +11625,24 @@ const Gc = {
|
|
|
11623
11625
|
position: absolute;
|
|
11624
11626
|
top: -13px;
|
|
11625
11627
|
object-fit: contain;
|
|
11626
|
-
`, A7 = ({ activeBonus: e }) => {
|
|
11627
|
-
const
|
|
11628
|
-
return /* @__PURE__ */ a.jsxs(th, { children: [
|
|
11629
|
-
!
|
|
11630
|
-
|
|
11631
|
-
|
|
11628
|
+
`, A7 = ({ activeBonus: e, isMobileFromLeft: t }) => {
|
|
11629
|
+
const n = e.freeSpinsCount && e.freeSpinsCount > 0, { t: i } = W();
|
|
11630
|
+
return /* @__PURE__ */ a.jsxs(th, { $isMobileFromLeft: t, children: [
|
|
11631
|
+
!n && /* @__PURE__ */ a.jsx(oh, { src: ca, alt: "stars" }),
|
|
11632
|
+
n ? /* @__PURE__ */ a.jsx(nh, { children: i("Freespins left") }) : /* @__PURE__ */ a.jsxs(ah, { children: [
|
|
11633
|
+
i("Wager to"),
|
|
11632
11634
|
" ",
|
|
11633
11635
|
e.wager,
|
|
11634
11636
|
" ",
|
|
11635
11637
|
Ra(e.currencyId)
|
|
11636
11638
|
] }),
|
|
11637
11639
|
/* @__PURE__ */ a.jsx(sh, {}),
|
|
11638
|
-
|
|
11640
|
+
n ? /* @__PURE__ */ a.jsx(rh, { children: e.freeSpinsCount }) : /* @__PURE__ */ a.jsxs(ih, { children: [
|
|
11639
11641
|
Ra(e.currencyId),
|
|
11640
11642
|
" ",
|
|
11641
11643
|
e.playedAmount,
|
|
11642
11644
|
" ",
|
|
11643
|
-
|
|
11645
|
+
i("left")
|
|
11644
11646
|
] })
|
|
11645
11647
|
] });
|
|
11646
11648
|
}, lh = m.div`
|
|
@@ -146,7 +146,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Et]+=1);const Js=m.div`
|
|
|
146
146
|
vertical-align: middle;
|
|
147
147
|
color: #ffffff;
|
|
148
148
|
}
|
|
149
|
-
`;var ai=(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))(ai||{});const $s={undoArray:"undoArray"},_s="https://livelobby8.livevegas.live",za=(e,t,n)=>{const{tableId:i,gameId:r,lang:s,playerId:o,token:l,exitUrl:d}=n;localStorage.setItem($s.undoArray,JSON.stringify([])),t==null||t.invoke(ai.SitOutPlayer,{tableId:Number(i),gameId:Number(r)});const
|
|
149
|
+
`;var ai=(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))(ai||{});const $s={undoArray:"undoArray"},_s="https://livelobby8.livevegas.live",za=(e,t,n)=>{const{tableId:i,gameId:r,lang:s,playerId:o,token:l,exitUrl:d,hasLobby:c}=n;if(localStorage.setItem($s.undoArray,JSON.stringify([])),t==null||t.invoke(ai.SitOutPlayer,{tableId:Number(i),gameId:Number(r)}),c==="false"){window.location.href=d;return}const h={name:"closed",sender:"game"},g={name:"closeFrame",url:`${_s}/?lang=${s}&playerId=${o}&token=${l}&gameId=${r}&gameType=8&exitUrl=${d}&partnerId=${e}`};window.parent.postMessage(h,"*"),window.parent.postMessage(g,"*"),window.parent.postMessage("closeGame","*")},le=e=>{if(!e)return"0";const t=e.toFixed(10),n=t.indexOf(".");return t.slice(0,n+1+8).replace(/\.?0+$/,"")},ni=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)}},eo={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"},to={1:"Your bet is out of Limits"};var He=(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))(He||{});function Ha(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:"₩",KWD:"ك",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 Oa=(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))(Oa||{}),ne=(e=>(e[e.TEXAS=3]="TEXAS",e[e.ROULETTE=2]="ROULETTE",e[e.BLACKJACK=8]="BLACKJACK",e))(ne||{});const ao=({balance:e,bet:t,currencyId:n})=>{const{t:i}=W();return a.jsxs(Js,{children:[a.jsxs(ti,{children:[a.jsx("p",{className:"text-title",children:i("Balance")}),a.jsxs("p",{className:"amount",children:[n," ",le(e)]})]}),a.jsxs(ti,{children:[a.jsx("p",{className:"text-title",children:i("Total Bet")}),a.jsxs("p",{className:"amount",children:[n," ",le(t)]})]})]})},ii={bottom:{info:`
|
|
150
150
|
top: calc(100% + 8px);
|
|
151
151
|
left: 50%;
|
|
152
152
|
transform: translateX(-50%);
|
|
@@ -3562,15 +3562,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Et]+=1);const Js=m.div`
|
|
|
3562
3562
|
background: var(--black-80, rgba(17, 17, 17, 0.8));
|
|
3563
3563
|
border-top-right-radius: 8px;
|
|
3564
3564
|
border-bottom-right-radius: 8px;
|
|
3565
|
-
/* @media (max-width: 768px) and (orientation: landscape) {} */
|
|
3566
3565
|
@media (max-width: 768px) {
|
|
3567
3566
|
top: 35px;
|
|
3568
3567
|
left: unset;
|
|
3569
|
-
right: 0;
|
|
3570
|
-
border-top-
|
|
3571
|
-
border-
|
|
3572
|
-
border-
|
|
3573
|
-
border-bottom-
|
|
3568
|
+
${({$isMobileFromLeft:e})=>e?"left: 0;":"right: 0;"}
|
|
3569
|
+
border-top-left-radius: ${({$isMobileFromLeft:e})=>e?"0":"8px"};
|
|
3570
|
+
border-top-right-radius: ${({$isMobileFromLeft:e})=>e?"8px":"0"};
|
|
3571
|
+
border-bottom-left-radius: ${({$isMobileFromLeft:e})=>e?"0":"8px"};
|
|
3572
|
+
border-bottom-right-radius: ${({$isMobileFromLeft:e})=>e?"8px":"0"};
|
|
3574
3573
|
}
|
|
3575
3574
|
`,zc=m.div`
|
|
3576
3575
|
font-size: 12px;
|
|
@@ -3599,7 +3598,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Et]+=1);const Js=m.div`
|
|
|
3599
3598
|
position: absolute;
|
|
3600
3599
|
top: -13px;
|
|
3601
3600
|
object-fit: contain;
|
|
3602
|
-
`,Ec=({activeBonus:e})=>{const
|
|
3601
|
+
`,Ec=({activeBonus:e,isMobileFromLeft:t})=>{const n=e.freeSpinsCount&&e.freeSpinsCount>0,{t:i}=W();return a.jsxs(Dc,{$isMobileFromLeft:t,children:[!n&&a.jsx(Wc,{src:_t,alt:"stars"}),n?a.jsx(Hc,{children:i("Freespins left")}):a.jsxs(zc,{children:[i("Wager to")," ",e.wager," ",Ha(e.currencyId)]}),a.jsx(Rc,{}),n?a.jsx(Mc,{children:e.freeSpinsCount}):a.jsxs(Oc,{children:[Ha(e.currencyId)," ",e.playedAmount," ",i("left")]})]})},Kc=m.div`
|
|
3603
3602
|
width: 320px;
|
|
3604
3603
|
height: 330px;
|
|
3605
3604
|
background: rgba(17, 17, 17);
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface IUrlParam {
|
|
|
8
8
|
playerId: string;
|
|
9
9
|
token: string;
|
|
10
10
|
exitUrl: string;
|
|
11
|
+
hasLobby: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const closeGame: (partnerId: number, socket: HubConnection | null, urlParam: IUrlParam) => void;
|
|
13
14
|
export declare const formatBalanceSmart: (balance: number) => string;
|