livevegas-ui-kit 1.0.101 → 1.0.102
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.
|
@@ -6529,24 +6529,20 @@ const Xo = ({ tournamentData: e }) => {
|
|
|
6529
6529
|
}
|
|
6530
6530
|
|
|
6531
6531
|
@keyframes slidein {
|
|
6532
|
-
|
|
6532
|
+
0% {
|
|
6533
6533
|
opacity: 1;
|
|
6534
6534
|
}
|
|
6535
|
-
|
|
6536
|
-
to {
|
|
6535
|
+
100% {
|
|
6537
6536
|
opacity: 0;
|
|
6538
6537
|
}
|
|
6539
6538
|
}
|
|
6540
6539
|
`, p2 = ({ onSendMessage: e, messages: t, isMobile: a = !1 }) => {
|
|
6541
|
-
const [i, r] = K(""), { t: s } = G(), o = (
|
|
6542
|
-
const
|
|
6543
|
-
(
|
|
6540
|
+
const [i, r] = K(""), { t: s } = G(), o = (c) => {
|
|
6541
|
+
const d = c.target.value;
|
|
6542
|
+
(d.trim().length || i.length === 1) && r(d);
|
|
6544
6543
|
}, l = () => {
|
|
6545
6544
|
e(i), r("");
|
|
6546
|
-
}
|
|
6547
|
-
const p = new Date(u.messageDateTime);
|
|
6548
|
-
return (c.getTime() - p.getTime()) / 1e3 < 10;
|
|
6549
|
-
});
|
|
6545
|
+
};
|
|
6550
6546
|
return /* @__PURE__ */ n.jsxs(c2, { $isMobile: a, children: [
|
|
6551
6547
|
/* @__PURE__ */ n.jsxs(d2, { $isMobile: a, children: [
|
|
6552
6548
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6557,20 +6553,20 @@ const Xo = ({ tournamentData: e }) => {
|
|
|
6557
6553
|
onChange: o,
|
|
6558
6554
|
placeholder: s("Click to chat"),
|
|
6559
6555
|
type: "text",
|
|
6560
|
-
onKeyPress: (
|
|
6561
|
-
|
|
6556
|
+
onKeyPress: (c) => {
|
|
6557
|
+
c.key === "Enter" && l();
|
|
6562
6558
|
}
|
|
6563
6559
|
}
|
|
6564
6560
|
),
|
|
6565
6561
|
/* @__PURE__ */ n.jsx("div", { className: "send-massage", children: /* @__PURE__ */ n.jsx(Ya, { onClick: l }) })
|
|
6566
6562
|
] }),
|
|
6567
|
-
/* @__PURE__ */ n.jsx(u2, { $isMobile: a, children:
|
|
6563
|
+
/* @__PURE__ */ n.jsx(u2, { $isMobile: a, children: t.map((c) => /* @__PURE__ */ n.jsxs("div", { className: "message-item", children: [
|
|
6568
6564
|
/* @__PURE__ */ n.jsxs("div", { className: "sender-nick", children: [
|
|
6569
|
-
/* @__PURE__ */ n.jsx("p", { className: "nickname", children:
|
|
6570
|
-
/* @__PURE__ */ n.jsx("p", { className: "time", children:
|
|
6565
|
+
/* @__PURE__ */ n.jsx("p", { className: "nickname", children: c.senderNickname }),
|
|
6566
|
+
/* @__PURE__ */ n.jsx("p", { className: "time", children: c.time })
|
|
6571
6567
|
] }),
|
|
6572
|
-
/* @__PURE__ */ n.jsx("p", { className: "masssage", children:
|
|
6573
|
-
] }, `${
|
|
6568
|
+
/* @__PURE__ */ n.jsx("p", { className: "masssage", children: c.message })
|
|
6569
|
+
] }, `${c.messageDateTime}`)) })
|
|
6574
6570
|
] });
|
|
6575
6571
|
}, f2 = f.div`
|
|
6576
6572
|
display: flex;
|
|
@@ -1177,15 +1177,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Tt]+=1);const Sr=f.div`
|
|
|
1177
1177
|
}
|
|
1178
1178
|
|
|
1179
1179
|
@keyframes slidein {
|
|
1180
|
-
|
|
1180
|
+
0% {
|
|
1181
1181
|
opacity: 1;
|
|
1182
1182
|
}
|
|
1183
|
-
|
|
1184
|
-
to {
|
|
1183
|
+
100% {
|
|
1185
1184
|
opacity: 0;
|
|
1186
1185
|
}
|
|
1187
1186
|
}
|
|
1188
|
-
`,Fo=({onSendMessage:e,messages:t,isMobile:a=!1})=>{const[i,r]=v.useState(""),{t:s}=G(),o=
|
|
1187
|
+
`,Fo=({onSendMessage:e,messages:t,isMobile:a=!1})=>{const[i,r]=v.useState(""),{t:s}=G(),o=c=>{const d=c.target.value;(d.trim().length||i.length===1)&&r(d)},l=()=>{e(i),r("")};return n.jsxs(Oo,{$isMobile:a,children:[n.jsxs(Do,{$isMobile:a,children:[n.jsx($o,{$isMobile:a,value:i,onChange:o,placeholder:s("Click to chat"),type:"text",onKeyPress:c=>{c.key==="Enter"&&l()}}),n.jsx("div",{className:"send-massage",children:n.jsx(ka,{onClick:l})})]}),n.jsx(Mo,{$isMobile:a,children:t.map(c=>n.jsxs("div",{className:"message-item",children:[n.jsxs("div",{className:"sender-nick",children:[n.jsx("p",{className:"nickname",children:c.senderNickname}),n.jsx("p",{className:"time",children:c.time})]}),n.jsx("p",{className:"masssage",children:c.message})]},`${c.messageDateTime}`))})]})},Ho=f.div`
|
|
1189
1188
|
display: flex;
|
|
1190
1189
|
flex-direction: column;
|
|
1191
1190
|
gap: 4px;
|