livevegas-ui-kit 1.0.320 → 1.0.321

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.
@@ -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
- if (t.playerId) return /* @__PURE__ */ s("tr", { children: [
3369
- /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o("p", {
3370
- className: "text ",
3371
- children: l(ke[t.betType])
3372
- }) }),
3373
- /* @__PURE__ */ o("td", { children: /* @__PURE__ */ s("p", {
3374
- className: "text amount-text",
3375
- children: [t.amount, e.player.gameCurrencyId]
3376
- }, t.betType) }),
3377
- /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(Bt, {
3378
- $isWin: !!t.winAmount,
3379
- children: t.winAmount ? /* @__PURE__ */ s(a, { children: [y(t.winAmount), e.player.gameCurrencyId] }) : /* @__PURE__ */ o(a, { children: l("Lost") })
3380
- }, t.betType) })
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, {
@@ -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)=>{if(t.playerId)return(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`
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livevegas-ui-kit",
3
- "version": "1.0.320",
3
+ "version": "1.0.321",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"