livevegas-ui-kit 1.0.255 → 1.0.257
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.
|
@@ -9393,7 +9393,7 @@ const jr = ({
|
|
|
9393
9393
|
const y = g.getBoundingClientRect(), v = u.getBoundingClientRect().top - y.top + g.scrollTop - 12;
|
|
9394
9394
|
g.scrollTo({
|
|
9395
9395
|
top: Math.max(v, 0),
|
|
9396
|
-
behavior: "
|
|
9396
|
+
behavior: "instant"
|
|
9397
9397
|
}), setTimeout(() => {
|
|
9398
9398
|
s.current = !1;
|
|
9399
9399
|
}, 800);
|
|
@@ -9404,7 +9404,7 @@ const jr = ({
|
|
|
9404
9404
|
if (!b) return;
|
|
9405
9405
|
const u = {
|
|
9406
9406
|
root: b,
|
|
9407
|
-
rootMargin: "-10px 0px -
|
|
9407
|
+
rootMargin: "-10px 0px -90% 0px",
|
|
9408
9408
|
threshold: 0
|
|
9409
9409
|
}, g = new IntersectionObserver((y) => {
|
|
9410
9410
|
s.current || y.forEach((k) => {
|
|
@@ -9453,51 +9453,43 @@ const jr = ({
|
|
|
9453
9453
|
] }, k)) })
|
|
9454
9454
|
},
|
|
9455
9455
|
`content_${b}`
|
|
9456
|
-
) : b === "paymentCoefficient" ? /* @__PURE__ */ a.
|
|
9456
|
+
) : b === "paymentCoefficient" ? /* @__PURE__ */ a.jsx(
|
|
9457
9457
|
"div",
|
|
9458
9458
|
{
|
|
9459
9459
|
className: "content-items",
|
|
9460
9460
|
ref: (y) => o.current[b] = y,
|
|
9461
9461
|
id: b,
|
|
9462
|
-
children:
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
),
|
|
9477
|
-
/* @__PURE__ */ a.jsx("br", {})
|
|
9478
|
-
]
|
|
9462
|
+
children: Object.entries(u).map(
|
|
9463
|
+
([y, k], v) => /* @__PURE__ */ a.jsx(
|
|
9464
|
+
_h,
|
|
9465
|
+
{
|
|
9466
|
+
title: y,
|
|
9467
|
+
firstColum: k.name,
|
|
9468
|
+
coefficientColum: k.coefficient,
|
|
9469
|
+
nameofCombination: k.nameofCombination,
|
|
9470
|
+
cardsName: k.cards,
|
|
9471
|
+
cards: k.cardsCombination
|
|
9472
|
+
},
|
|
9473
|
+
v
|
|
9474
|
+
)
|
|
9475
|
+
)
|
|
9479
9476
|
},
|
|
9480
9477
|
`content_${b}`
|
|
9481
|
-
) : /* @__PURE__ */ a.
|
|
9478
|
+
) : /* @__PURE__ */ a.jsx(
|
|
9482
9479
|
"div",
|
|
9483
9480
|
{
|
|
9484
9481
|
className: "content-items",
|
|
9485
9482
|
ref: (y) => o.current[b] = y,
|
|
9486
9483
|
id: b,
|
|
9487
|
-
children:
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
),
|
|
9497
|
-
/* @__PURE__ */ a.jsx("br", {}),
|
|
9498
|
-
/* @__PURE__ */ a.jsx("br", {}),
|
|
9499
|
-
/* @__PURE__ */ a.jsx("br", {})
|
|
9500
|
-
]
|
|
9484
|
+
children: /* @__PURE__ */ a.jsx(
|
|
9485
|
+
Rh,
|
|
9486
|
+
{
|
|
9487
|
+
textKey: b,
|
|
9488
|
+
value: u,
|
|
9489
|
+
index: g,
|
|
9490
|
+
gameType: e
|
|
9491
|
+
}
|
|
9492
|
+
)
|
|
9501
9493
|
},
|
|
9502
9494
|
`content_${b}`
|
|
9503
9495
|
)) })
|
|
@@ -2298,7 +2298,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Za]+=1);const ps=f.div`
|
|
|
2298
2298
|
cursor: pointer;
|
|
2299
2299
|
padding: 3px;
|
|
2300
2300
|
font-size: 12px;
|
|
2301
|
-
`,qh=({gameType:e,selectedGame:t=ya.RUSSIANPOKER})=>{const[n,i]=T.useState(""),r=T.useRef(null),o=T.useRef({}),s=T.useRef(!1),{clickSound:l}=He({effectsVolume:50}),{t:d}=U(),h=T.useMemo(()=>{let b=ih;return e===X.ROULETTE?b=dh:e===X.TEXAS?b=rh:(e===X.VIP||e===X.VIPVERTUAL)&&(t===ya.RUSSIANPOKER?b=ch:t===ya.TEXASHOLDEM?b=uh:t===ya.TEXASULTIMATE&&(b=mh)),{...b,...hh}},[e,t]),c=Object.keys(h),p=b=>{l();const u=o.current[b],g=r.current;if(u&&g){s.current=!0,i(b);const y=g.getBoundingClientRect(),v=u.getBoundingClientRect().top-y.top+g.scrollTop-12;g.scrollTo({top:Math.max(v,0),behavior:"
|
|
2301
|
+
`,qh=({gameType:e,selectedGame:t=ya.RUSSIANPOKER})=>{const[n,i]=T.useState(""),r=T.useRef(null),o=T.useRef({}),s=T.useRef(!1),{clickSound:l}=He({effectsVolume:50}),{t:d}=U(),h=T.useMemo(()=>{let b=ih;return e===X.ROULETTE?b=dh:e===X.TEXAS?b=rh:(e===X.VIP||e===X.VIPVERTUAL)&&(t===ya.RUSSIANPOKER?b=ch:t===ya.TEXASHOLDEM?b=uh:t===ya.TEXASULTIMATE&&(b=mh)),{...b,...hh}},[e,t]),c=Object.keys(h),p=b=>{l();const u=o.current[b],g=r.current;if(u&&g){s.current=!0,i(b);const y=g.getBoundingClientRect(),v=u.getBoundingClientRect().top-y.top+g.scrollTop-12;g.scrollTo({top:Math.max(v,0),behavior:"instant"}),setTimeout(()=>{s.current=!1},800)}};return T.useEffect(()=>{const b=r.current;if(!b)return;const u={root:b,rootMargin:"-10px 0px -90% 0px",threshold:0},g=new IntersectionObserver(y=>{s.current||y.forEach(k=>{k.isIntersecting&&i(k.target.id)})},u);return c.forEach(y=>{const k=o.current[y];k&&g.observe(k)}),()=>g.disconnect()},[c]),a.jsxs(Ch,{children:[a.jsx(Th,{children:c.map((b,u)=>a.jsxs(Ih,{$isActive:b===n,$itemsCount:c.length,className:"item",onClick:()=>p(b),children:[a.jsx("p",{className:"item-text",children:d(b)}),a.jsx(De,{position:"right",height:6,width:9})]},`name_${u}`))}),a.jsx(Sh,{ref:r,children:Object.entries(h).map(([b,u],g)=>b==="cardsAndText"?a.jsx("div",{className:"content-items",ref:y=>o.current[b]=y,id:b,children:a.jsx(Ph,{children:u.map((y,k)=>a.jsxs("div",{children:[a.jsx(jh,{children:d(y.title)}),a.jsx(Bh,{children:y.cards.map((v,w)=>a.jsx(Te,{index:v,isWinCombination:!1,isFlop:!0,cardWidth:42,cardHeight:54},w))}),a.jsx(Lh,{children:d(y.text)})]},k))})},`content_${b}`):b==="paymentCoefficient"?a.jsx("div",{className:"content-items",ref:y=>o.current[b]=y,id:b,children:Object.entries(u).map(([y,k],v)=>a.jsx(Ah,{title:y,firstColum:k.name,coefficientColum:k.coefficient,nameofCombination:k.nameofCombination,cardsName:k.cards,cards:k.cardsCombination},v))},`content_${b}`):a.jsx("div",{className:"content-items",ref:y=>o.current[b]=y,id:b,children:a.jsx(lh,{textKey:b,value:u,index:g,gameType:e})},`content_${b}`))})]})},or=({onClick:e})=>a.jsx("svg",{onClick:e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("g",{opacity:"1",children:a.jsx("path",{d:"M10.6193 10.1497L4.89501 11.1043C4.8292 11.1153 4.76744 11.1434 4.71595 11.1858C4.66445 11.2282 4.62503 11.2835 4.60165 11.346L2.62793 16.6333C2.43945 17.1197 2.94789 17.5833 3.41453 17.35L17.0945 10.51C17.1893 10.4626 17.269 10.3899 17.3247 10.2998C17.3804 10.2097 17.4099 10.1059 17.4099 10C17.4099 9.89409 17.3804 9.79027 17.3247 9.7002C17.269 9.61012 17.1893 9.53735 17.0945 9.49004L3.41453 2.65004C2.94789 2.41672 2.43945 2.88108 2.62793 3.36672L4.60241 8.65404C4.62568 8.71667 4.66505 8.77206 4.71656 8.81463C4.76806 8.85719 4.82988 8.88542 4.89577 8.89648L10.6201 9.85028C10.6553 9.85645 10.6872 9.87484 10.7102 9.90223C10.7333 9.92961 10.7459 9.96423 10.7459 10C10.7459 10.0358 10.7333 10.0704 10.7102 10.0978C10.6872 10.1251 10.6553 10.1435 10.6201 10.1497H10.6193Z",fill:"white",stroke:"white",strokeWidth:"0"})})}),Fh=f.div`
|
|
2302
2302
|
width: ${({$isMobile:e})=>e?"100%":"300px"};
|
|
2303
2303
|
height: ${({$isMobile:e})=>e?"100%":"280px"};
|
|
2304
2304
|
margin-top: 10px;
|