@opexa/portal-components 0.0.16 → 0.0.18

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.
Files changed (246) hide show
  1. package/dist/client/hooks/index.d.ts +3 -0
  2. package/dist/client/hooks/useGlobalStore.d.ts +11 -1
  3. package/dist/client/hooks/useGlobalStore.js +1 -1
  4. package/dist/client/hooks/useGlobalStore.mjs +81 -35
  5. package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +6 -0
  6. package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
  7. package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
  8. package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
  9. package/dist/client/hooks/useMessagesQuery.js +1 -0
  10. package/dist/client/hooks/useMessagesQuery.mjs +47 -0
  11. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
  12. package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
  13. package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
  14. package/dist/client-hooks.js +1 -1
  15. package/dist/client-hooks.mjs +38 -32
  16. package/dist/components/Account/Account.d.ts +3 -1
  17. package/dist/components/Account/Account.js +1 -1
  18. package/dist/components/Account/Account.mjs +163 -96
  19. package/dist/components/Banner/Banner.js +1 -1
  20. package/dist/components/Banner/Banner.mjs +6 -6
  21. package/dist/components/BetRecords/BetRecords.js +1 -1
  22. package/dist/components/BetRecords/BetRecords.mjs +357 -325
  23. package/dist/components/Bonus/Bonus.client.d.ts +2 -0
  24. package/dist/components/Bonus/Bonus.d.ts +10 -0
  25. package/dist/components/Bonus/index.d.ts +1 -0
  26. package/dist/components/Bonuses/Bonuses.d.ts +15 -0
  27. package/dist/components/Bonuses/Bonuses.js +1 -0
  28. package/dist/components/Bonuses/Bonuses.mjs +125 -0
  29. package/dist/components/Bonuses/index.d.ts +1 -0
  30. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  31. package/dist/components/DepositWithdrawal/AmountChoices.mjs +9 -6
  32. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
  33. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +11 -8
  34. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  35. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +5 -2
  36. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  37. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +5 -2
  38. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  39. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +16 -13
  40. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  41. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +5 -2
  42. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  43. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +9 -6
  44. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  45. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +18 -15
  46. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  47. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +9 -6
  48. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
  49. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +9 -6
  50. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  51. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +46 -46
  52. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  53. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +26 -23
  54. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
  55. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -76
  56. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
  57. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +118 -108
  58. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
  59. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +75 -65
  60. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
  61. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -86
  62. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  63. package/dist/components/Disclaimer/Disclaimer.mjs +11 -8
  64. package/dist/components/Empty/Empty.js +1 -1
  65. package/dist/components/Empty/Empty.mjs +14 -10
  66. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  67. package/dist/components/GameLaunch/GameLaunch.mjs +42 -39
  68. package/dist/components/Games/Games.client.js +1 -1
  69. package/dist/components/Games/Games.client.mjs +47 -44
  70. package/dist/components/Games/Games.d.ts +7 -2
  71. package/dist/components/JackpotCounter/JackpotCounter.d.ts +4 -2
  72. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  73. package/dist/components/JackpotCounter/JackpotCounter.mjs +38 -34
  74. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +3 -1
  75. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  76. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +282 -124
  77. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
  78. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +11 -8
  79. package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
  80. package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
  81. package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
  82. package/dist/components/Jackpots/Jackpots.d.ts +8 -0
  83. package/dist/components/Jackpots/index.d.ts +1 -0
  84. package/dist/components/Marquee/Marquee.js +1 -1
  85. package/dist/components/Marquee/Marquee.mjs +12 -14
  86. package/dist/components/Messages/MessageItem.d.ts +4 -0
  87. package/dist/components/Messages/MessageItem.js +1 -0
  88. package/dist/components/Messages/MessageItem.mjs +66 -0
  89. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  90. package/dist/components/Messages/MessagePopup.js +1 -0
  91. package/dist/components/Messages/MessagePopup.mjs +89 -0
  92. package/dist/components/Messages/Messages.d.ts +1 -0
  93. package/dist/components/Messages/Messages.js +1 -0
  94. package/dist/components/Messages/Messages.mjs +147 -0
  95. package/dist/components/Messages/index.d.ts +1 -0
  96. package/dist/components/Messages/utils.d.ts +3 -0
  97. package/dist/components/Messages/utils.js +1 -0
  98. package/dist/components/Messages/utils.mjs +16 -0
  99. package/dist/components/Promos/PromoCarousel.js +1 -1
  100. package/dist/components/Promos/PromoCarousel.mjs +27 -24
  101. package/dist/components/Promos/PromoGrid.js +1 -1
  102. package/dist/components/Promos/PromoGrid.mjs +7 -7
  103. package/dist/components/Promos/PromoItem.js +1 -1
  104. package/dist/components/Promos/PromoItem.mjs +10 -7
  105. package/dist/components/Promos/Promos.d.ts +4 -2
  106. package/dist/components/SignIn/SignIn.d.ts +0 -1
  107. package/dist/components/SignIn/SignIn.js +1 -1
  108. package/dist/components/SignIn/SignIn.mjs +32 -41
  109. package/dist/components/SignIn/SignInForm.js +1 -1
  110. package/dist/components/SignIn/SignInForm.mjs +167 -160
  111. package/dist/components/SignUp/SignUp.d.ts +0 -1
  112. package/dist/components/SignUp/SignUp.js +1 -1
  113. package/dist/components/SignUp/SignUp.mjs +32 -41
  114. package/dist/components/SignUp/SignUpForm.js +1 -1
  115. package/dist/components/SignUp/SignUpForm.mjs +123 -116
  116. package/dist/components/TopWins/TopWins.client.js +1 -1
  117. package/dist/components/TopWins/TopWins.client.mjs +14 -14
  118. package/dist/components/TopWins/TopWins.d.ts +2 -1
  119. package/dist/components/TournamentCounter/TournamentCounter.d.ts +4 -2
  120. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  121. package/dist/components/TournamentCounter/TournamentCounter.mjs +27 -24
  122. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  123. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +113 -99
  124. package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
  125. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  126. package/dist/components/TransactionRecords/TableFilters.mjs +193 -132
  127. package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
  128. package/dist/components/TransactionRecords/TransactionRecords.mjs +21 -17
  129. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  130. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +89 -77
  131. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  132. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +105 -96
  133. package/dist/components/index.d.ts +2 -0
  134. package/dist/components.js +1 -1
  135. package/dist/components.mjs +36 -32
  136. package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
  137. package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
  138. package/dist/icons/Bell01Icon.d.ts +2 -0
  139. package/dist/icons/Bell01Icon.js +1 -0
  140. package/dist/icons/Bell01Icon.mjs +27 -0
  141. package/dist/icons/BellRingIcon.d.ts +2 -0
  142. package/dist/icons/BellRingIcon.js +1 -0
  143. package/dist/icons/BellRingIcon.mjs +27 -0
  144. package/dist/icons/EyeIcon.d.ts +2 -0
  145. package/dist/icons/EyeIcon.js +1 -0
  146. package/dist/icons/EyeIcon.mjs +25 -0
  147. package/dist/icons/EyeOffIcon.d.ts +2 -0
  148. package/dist/icons/EyeOffIcon.js +1 -0
  149. package/dist/icons/EyeOffIcon.mjs +22 -0
  150. package/dist/icons/StarIcon.d.ts +2 -0
  151. package/dist/icons/StarIcon.js +1 -0
  152. package/dist/icons/StarIcon.mjs +19 -0
  153. package/dist/icons/StopWatchIcon.d.ts +2 -0
  154. package/dist/icons/StopWatchIcon.js +1 -0
  155. package/dist/icons/StopWatchIcon.mjs +22 -0
  156. package/dist/icons/Trophy01Icon.d.ts +2 -0
  157. package/dist/icons/Trophy01Icon.js +1 -0
  158. package/dist/icons/Trophy01Icon.mjs +22 -0
  159. package/dist/icons/index.d.ts +6 -0
  160. package/dist/icons.d.ts +2 -0
  161. package/dist/icons.js +1 -0
  162. package/dist/icons.mjs +62 -0
  163. package/dist/images/first-place.png.js +1 -0
  164. package/dist/images/first-place.png.mjs +4 -0
  165. package/dist/images/leaderboard.png.js +1 -0
  166. package/dist/images/leaderboard.png.mjs +4 -0
  167. package/dist/images/placeholder-avatar.png.js +1 -0
  168. package/dist/images/placeholder-avatar.png.mjs +4 -0
  169. package/dist/images/responsible-gaming.png.js +1 -1
  170. package/dist/images/responsible-gaming.png.mjs +2 -2
  171. package/dist/portal-components.css +1 -1
  172. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
  173. package/dist/theme.css +130 -4
  174. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  175. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
  176. package/dist/ui/Badge/Badge.d.ts +274 -27
  177. package/dist/ui/Badge/Badge.js +1 -1
  178. package/dist/ui/Badge/Badge.mjs +14 -10
  179. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  180. package/dist/ui/Badge/badge.anatomy.js +1 -1
  181. package/dist/ui/Badge/badge.anatomy.mjs +1 -0
  182. package/dist/ui/Badge/badge.recipe.d.ts +57 -9
  183. package/dist/ui/Badge/badge.recipe.js +1 -1
  184. package/dist/ui/Badge/badge.recipe.mjs +57 -21
  185. package/dist/ui/Button/button.recipe.d.ts +2 -2
  186. package/dist/ui/Button/button.recipe.js +1 -1
  187. package/dist/ui/Button/button.recipe.mjs +17 -7
  188. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  189. package/dist/ui/Checkbox/checkbox.recipe.mjs +6 -6
  190. package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
  191. package/dist/ui/Collapsible/Collapsible.js +1 -0
  192. package/dist/ui/Collapsible/Collapsible.mjs +13 -0
  193. package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
  194. package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
  195. package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
  196. package/dist/ui/Collapsible/index.d.ts +1 -0
  197. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  198. package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
  199. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  200. package/dist/ui/Dialog/dialog.recipe.mjs +3 -3
  201. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  202. package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
  203. package/dist/ui/Field/field.recipe.js +1 -1
  204. package/dist/ui/Field/field.recipe.mjs +10 -12
  205. package/dist/ui/IconButton/iconButton.recipe.d.ts +2 -2
  206. package/dist/ui/IconButton/iconButton.recipe.js +1 -1
  207. package/dist/ui/IconButton/iconButton.recipe.mjs +6 -6
  208. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  209. package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
  210. package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
  211. package/dist/ui/PasswordInput/PasswordInput.js +1 -0
  212. package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
  213. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
  214. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
  215. package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
  216. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  217. package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
  218. package/dist/ui/Popover/popover.recipe.js +1 -1
  219. package/dist/ui/Popover/popover.recipe.mjs +1 -1
  220. package/dist/ui/Progress/Progress.d.ts +335 -1
  221. package/dist/ui/Progress/Progress.js +1 -1
  222. package/dist/ui/Progress/Progress.mjs +15 -2
  223. package/dist/ui/Progress/progress.recipe.d.ts +37 -1
  224. package/dist/ui/Progress/progress.recipe.js +1 -0
  225. package/dist/ui/Progress/progress.recipe.mjs +41 -0
  226. package/dist/ui/Prose.d.ts +2 -0
  227. package/dist/ui/Prose.js +1 -0
  228. package/dist/ui/Prose.mjs +47 -0
  229. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  230. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
  231. package/dist/ui/Select/select.recipe.js +1 -1
  232. package/dist/ui/Select/select.recipe.mjs +6 -6
  233. package/dist/ui/Table/table.recipe.js +1 -1
  234. package/dist/ui/Table/table.recipe.mjs +4 -4
  235. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  236. package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
  237. package/dist/ui/index.d.ts +3 -0
  238. package/dist/ui.js +1 -1
  239. package/dist/ui.mjs +36 -30
  240. package/dist/utils/queryKeys.d.ts +4 -1
  241. package/dist/utils/queryKeys.js +1 -1
  242. package/dist/utils/queryKeys.mjs +34 -26
  243. package/dist/utils.js +1 -1
  244. package/dist/utils.mjs +35 -32
  245. package/package.json +11 -5
  246. package/dist/components/Promos/PromosContent.d.ts +0 -2
@@ -1,168 +1,326 @@
1
1
  "use client";
2
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
- import { Progress as c } from "@ark-ui/react";
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
+ import { Progress as h } from "@ark-ui/react";
4
4
  import f from "next/image";
5
- import { twMerge as t } from "tailwind-merge";
5
+ import N from "next/link";
6
+ import { useCallback as v, useMemo as w } from "react";
7
+ import { twMerge as l } from "tailwind-merge";
6
8
  import "@opexa/portal-sdk-core";
7
9
  import "@tanstack/react-query";
8
10
  import "tiny-invariant";
9
11
  import "../../constants/index.mjs";
10
12
  import "../../utils/capitalize.mjs";
11
- import { formatNumber as o } from "../../utils/formatNumber.mjs";
13
+ import { formatNumber as n } from "../../utils/formatNumber.mjs";
12
14
  import "../../utils/getLocaleInfo.mjs";
13
15
  import "../../utils/getQueryClient.mjs";
14
16
  import "../../utils/isMobile.mjs";
15
17
  import "../../utils/parseDecimal.mjs";
16
- import "react";
17
18
  import "lodash-es";
18
19
  import "@opexa/portal-sdk-core/object-id";
19
20
  import "../../client/hooks/useGlobalStore.mjs";
20
21
  import "../../client/hooks/useInfiniteQueryHelper.mjs";
21
- import { useLocaleInfo as h } from "../../client/hooks/useLocaleInfo.mjs";
22
+ import { useLocaleInfo as C } from "../../client/hooks/useLocaleInfo.mjs";
22
23
  import "usehooks-ts";
23
- import { ArrowNarrowUpRightIcon as g } from "../../icons/ArrowNarrowUpRightIcon.mjs";
24
- import { ChevronLeftIcon as n } from "../../icons/ChevronLeftIcon.mjs";
25
- import { ChevronRightIcon as d } from "../../icons/ChevronRightIcon.mjs";
26
- import p from "../../images/close-chest.png.mjs";
27
- import x from "../../images/open-chest.png.mjs";
28
- import a from "./JackpotCounterItem.module.css.mjs";
29
- function V({
24
+ import { ArrowNarrowUpRightIcon as z } from "../../icons/ArrowNarrowUpRightIcon.mjs";
25
+ import { ChevronLeftIcon as d } from "../../icons/ChevronLeftIcon.mjs";
26
+ import { ChevronRightIcon as m } from "../../icons/ChevronRightIcon.mjs";
27
+ import { Trophy01Icon as P } from "../../icons/Trophy01Icon.mjs";
28
+ import { StarIcon as I } from "../../icons/StarIcon.mjs";
29
+ import A from "../../images/close-chest.png.mjs";
30
+ import L from "../../images/first-place.png.mjs";
31
+ import J from "../../images/leaderboard.png.mjs";
32
+ import T from "../../images/open-chest.png.mjs";
33
+ import s from "./JackpotCounterItem.module.css.mjs";
34
+ function ue({
30
35
  jackpot: r,
31
- className: m
36
+ className: o,
37
+ viewAllUrl: x
32
38
  }) {
33
- const l = h(), s = r.drawing, u = s ? r.maximumJackpotPoolLimit : r.pool;
34
- return /* @__PURE__ */ i(
39
+ const c = C(), i = r.drawing, p = i ? r.maximumJackpotPoolLimit : r.pool, b = v(
40
+ ({ isFirst: u }) => /* @__PURE__ */ e(
41
+ i ? d : m,
42
+ {
43
+ className: l(
44
+ "scale-400 lg:scale-250 min-w-2.5 lg:min-w-4",
45
+ u ? i ? "text-error-600" : "text-success-800" : "text-brand-300"
46
+ )
47
+ }
48
+ ),
49
+ [i]
50
+ ), y = w(
51
+ () => Array.from({ length: 40 }, (u, a) => /* @__PURE__ */ e(b, { isFirst: a === 0 }, a)),
52
+ [b]
53
+ );
54
+ return /* @__PURE__ */ t(
35
55
  "div",
36
56
  {
37
- className: t(
38
- "bg-gray-50 border-gray-200 flex shrink-0 flex-col space-y-2 rounded-sm border p-3 text-center",
39
- m
57
+ className: l(
58
+ "bg-bg-tertiary border-border-primary relative flex shrink-0 rounded-2xl border p-3 text-center lg:gap-4 lg:p-5",
59
+ o
40
60
  ),
41
61
  children: [
42
- /* @__PURE__ */ i("div", { className: "flex w-full justify-between", children: [
43
- /* @__PURE__ */ i("div", { className: "flex flex-col gap-1", children: [
44
- s ? /* @__PURE__ */ i("div", { className: "border-gray-700 bg-gray-300 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [
45
- /* @__PURE__ */ e("span", { className: "full bg-gray-900 size-1.5 animate-pulse rounded" }),
46
- "Paying Out"
47
- ] }) : /* @__PURE__ */ i("div", { className: "border-gray-700 bg-gray-300 flex w-fit items-center rounded-full border px-2 py-0.5 text-xs font-medium", children: [
48
- /* @__PURE__ */ e(g, { className: "size-3.5" }),
49
- "Accumulating"
50
- ] }),
51
- /* @__PURE__ */ e("div", { className: "text-left text-lg font-medium", children: r.name }),
52
- /* @__PURE__ */ e("div", { className: "bg-gray-950 text-gray-300 w-fit rounded-md px-2 py-1 text-2xl font-bold", children: o(u, {
53
- currency: l.currency.code,
54
- minDecimalPlaces: 2,
55
- maxDecimalPlaces: 2
56
- }) })
57
- ] }),
58
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
59
- f,
60
- {
61
- width: 100,
62
- height: 100,
63
- src: s ? x : p,
64
- alt: "closeChest",
65
- quality: 100,
66
- className: "h-25 w-25 size-full"
67
- }
68
- ) })
69
- ] }),
70
- /* @__PURE__ */ i("div", { className: "flex justify-between", children: [
71
- /* @__PURE__ */ e("div", { className: "text-xs font-medium", children: o(0, {
72
- currency: l.currency.code,
73
- compact: !0
74
- }) }),
75
- /* @__PURE__ */ i("div", { className: "relative flex items-center justify-end gap-1.5", children: [
76
- s ? /* @__PURE__ */ i("div", { className: "flex w-6 items-center", children: [
77
- /* @__PURE__ */ e(
78
- "div",
62
+ /* @__PURE__ */ t("div", { className: "z-1 relative flex flex-1 flex-col", children: [
63
+ /* @__PURE__ */ e("div", { className: "flex h-full flex-col justify-between", children: /* @__PURE__ */ e("div", { className: "flex w-full justify-between", children: /* @__PURE__ */ t("div", { className: "flex w-full flex-col", children: [
64
+ /* @__PURE__ */ t("div", { className: "relative flex w-full justify-between", children: [
65
+ /* @__PURE__ */ t("div", { children: [
66
+ i ? /* @__PURE__ */ t("div", { className: "border-utility-success-200 bg-utility-success-50 text-utility-success-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [
67
+ /* @__PURE__ */ e("span", { className: "full bg-utility-success-500 size-1.5 animate-pulse rounded" }),
68
+ "Paying Out"
69
+ ] }) : /* @__PURE__ */ t("div", { className: "border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [
70
+ /* @__PURE__ */ e(z, { className: "text-utility-blue-500 size-3.5" }),
71
+ "Accumulating"
72
+ ] }),
73
+ /* @__PURE__ */ e("div", { className: "text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: r.name }),
74
+ /* @__PURE__ */ e("div", { className: "bg-bg-primary text-brand-400 mt-1.5 w-fit rounded-md px-2 py-1 text-2xl font-bold lg:mt-2 lg:text-4xl", children: n(p, {
75
+ currency: c.currency.code,
76
+ minDecimalPlaces: 2,
77
+ maxDecimalPlaces: 2
78
+ }) })
79
+ ] }),
80
+ /* @__PURE__ */ e("div", { className: "z-1 bottom-[-60] right-0 block lg:absolute", children: /* @__PURE__ */ e(
81
+ f,
79
82
  {
80
- className: t(
81
- "absolute left-0",
82
- a["animate-arrow-red-flash-1"]
83
- ),
84
- children: /* @__PURE__ */ e(n, { className: "size-4.5" })
83
+ width: 150,
84
+ height: 150,
85
+ src: i ? T : A,
86
+ alt: "closeChest",
87
+ quality: 100,
88
+ className: "h-25 w-25 lg:h-37.5 lg:w-37.5 size-full p-2"
85
89
  }
86
- ),
90
+ ) })
91
+ ] }),
92
+ /* @__PURE__ */ t("div", { className: "bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex", children: [
87
93
  /* @__PURE__ */ e(
88
- "div",
94
+ f,
89
95
  {
90
- className: t(
91
- "absolute left-1.5",
92
- a["animate-arrow-red-flash-2"]
93
- ),
94
- children: /* @__PURE__ */ e(n, { className: "size-4.5" })
96
+ width: 66,
97
+ height: 87,
98
+ src: L,
99
+ alt: "closeChest",
100
+ className: "size-full h-auto w-[66px] mix-blend-luminosity"
95
101
  }
96
102
  ),
97
- /* @__PURE__ */ e(
98
- "div",
99
- {
100
- className: t(
101
- "absolute left-3",
102
- a["animate-arrow-red-flash-3"]
103
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-1 text-left", children: [
104
+ /* @__PURE__ */ t("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [
105
+ /* @__PURE__ */ e(P, { className: "text-utility-brand-600 size-3.5" }),
106
+ "Top Payout"
107
+ ] }),
108
+ /* @__PURE__ */ e("div", { className: "font-semibold", children: "No winners yet" }),
109
+ /* @__PURE__ */ e("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })
110
+ ] })
111
+ ] })
112
+ ] }) }) }),
113
+ /* @__PURE__ */ t("div", { className: "mt-3 lg:mt-4", children: [
114
+ /* @__PURE__ */ t("div", { className: "mb-1 flex justify-between", children: [
115
+ /* @__PURE__ */ e("div", { className: "text-text-primary-900 text-xs font-semibold", children: n(0, {
116
+ currency: c.currency.code,
117
+ compact: !0
118
+ }) }),
119
+ /* @__PURE__ */ t("div", { className: "relative flex items-center justify-end gap-1.5", children: [
120
+ i ? /* @__PURE__ */ t("div", { className: "flex w-6 items-center", children: [
121
+ /* @__PURE__ */ e(
122
+ "div",
123
+ {
124
+ className: l(
125
+ "absolute left-0",
126
+ s["animate-arrow-red-flash-1"]
127
+ ),
128
+ children: /* @__PURE__ */ e(d, { className: "size-4.5" })
129
+ }
103
130
  ),
104
- children: /* @__PURE__ */ e(n, { className: "size-4.5" })
105
- }
106
- )
107
- ] }) : /* @__PURE__ */ i("div", { className: "flex w-6 items-center", children: [
108
- /* @__PURE__ */ e(
109
- "div",
110
- {
111
- className: t(
112
- "absolute left-0",
113
- a["animate-arrow-green-flash-1"]
131
+ /* @__PURE__ */ e(
132
+ "div",
133
+ {
134
+ className: l(
135
+ "absolute left-1.5",
136
+ s["animate-arrow-red-flash-2"]
137
+ ),
138
+ children: /* @__PURE__ */ e(d, { className: "size-4.5" })
139
+ }
114
140
  ),
115
- children: /* @__PURE__ */ e(d, { className: "size-4.5" })
116
- }
117
- ),
118
- /* @__PURE__ */ e(
119
- "div",
120
- {
121
- className: t(
122
- "absolute left-1.5",
123
- a["animate-arrow-green-flash-2"]
141
+ /* @__PURE__ */ e(
142
+ "div",
143
+ {
144
+ className: l(
145
+ "absolute left-3",
146
+ s["animate-arrow-red-flash-3"]
147
+ ),
148
+ children: /* @__PURE__ */ e(d, { className: "size-4.5" })
149
+ }
150
+ )
151
+ ] }) : /* @__PURE__ */ t("div", { className: "flex w-6 items-center", children: [
152
+ /* @__PURE__ */ e(
153
+ "div",
154
+ {
155
+ className: l(
156
+ "absolute left-0",
157
+ s["animate-arrow-green-flash-1"]
158
+ ),
159
+ children: /* @__PURE__ */ e(m, { className: "size-4.5" })
160
+ }
124
161
  ),
125
- children: /* @__PURE__ */ e(d, { className: "size-4.5" })
126
- }
127
- ),
162
+ /* @__PURE__ */ e(
163
+ "div",
164
+ {
165
+ className: l(
166
+ "absolute left-1.5",
167
+ s["animate-arrow-green-flash-2"]
168
+ ),
169
+ children: /* @__PURE__ */ e(m, { className: "size-4.5" })
170
+ }
171
+ ),
172
+ /* @__PURE__ */ e(
173
+ "div",
174
+ {
175
+ className: l(
176
+ "absolute left-3",
177
+ s["animate-arrow-green-flash-3"]
178
+ ),
179
+ children: /* @__PURE__ */ e(m, { className: "size-4.5" })
180
+ }
181
+ )
182
+ ] }),
183
+ /* @__PURE__ */ e("div", { className: "text-text-primary-900 text-xs font-semibold", children: n(r == null ? void 0 : r.maximumJackpotPoolLimit, {
184
+ currency: c.currency.code,
185
+ compact: !0
186
+ }) })
187
+ ] })
188
+ ] }),
189
+ /* @__PURE__ */ e(
190
+ h.Root,
191
+ {
192
+ className: "bg-bg-primary h-2 w-full rounded-full lg:h-4",
193
+ max: 100,
194
+ value: S(
195
+ Number(r.pool),
196
+ Number(r.maximumJackpotPoolLimit)
197
+ ),
198
+ children: /* @__PURE__ */ e(h.Track, { className: "bg-bg-primary h-full overflow-hidden rounded-full", children: /* @__PURE__ */ e(h.Range, { className: "bg-brand-500 relative h-full overflow-hidden rounded-full pl-1.5", children: /* @__PURE__ */ e(
199
+ "div",
200
+ {
201
+ className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5",
202
+ "aria-hidden": "true",
203
+ children: y
204
+ }
205
+ ) }) })
206
+ }
207
+ ),
208
+ /* @__PURE__ */ e("div", { className: "mt-1 block text-start text-2xs lg:hidden", children: i ? `The pot has hit ${n(
209
+ r == null ? void 0 : r.maximumJackpotPoolLimit,
210
+ {
211
+ currency: c.currency.code,
212
+ compact: !0
213
+ }
214
+ )} Play now for your chance to win big! 🔥` : q(
215
+ Number(r == null ? void 0 : r.pool) ?? 0,
216
+ Number(r == null ? void 0 : r.maximumJackpotPoolLimit) ?? 0
217
+ ) })
218
+ ] })
219
+ ] }),
220
+ /* @__PURE__ */ t("div", { className: "z-1 hidden flex-1 space-y-4 lg:block", children: [
221
+ /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
222
+ /* @__PURE__ */ t("div", { className: "flex gap-2", children: [
128
223
  /* @__PURE__ */ e(
129
- "div",
224
+ f,
130
225
  {
131
- className: t(
132
- "absolute left-3",
133
- a["animate-arrow-green-flash-3"]
134
- ),
135
- children: /* @__PURE__ */ e(d, { className: "size-4.5" })
226
+ width: 24,
227
+ height: 24,
228
+ src: J,
229
+ quality: 100,
230
+ alt: "leaderboardIcon",
231
+ className: "size-full h-auto w-6"
136
232
  }
137
- )
233
+ ),
234
+ /* @__PURE__ */ e("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Starting soon!" })
138
235
  ] }),
139
- /* @__PURE__ */ e("div", { className: "text-xs font-medium", children: o(r == null ? void 0 : r.maximumJackpotPoolLimit, {
140
- currency: l.currency.code,
141
- compact: !0
142
- }) })
143
- ] })
236
+ /* @__PURE__ */ t(
237
+ N,
238
+ {
239
+ className: "text-button-tertiary-fg flex text-sm font-semibold",
240
+ href: x ?? "/jackpots",
241
+ children: [
242
+ "See details",
243
+ /* @__PURE__ */ e(m, { className: "size-5" })
244
+ ]
245
+ }
246
+ )
247
+ ] }),
248
+ /* @__PURE__ */ e(
249
+ "div",
250
+ {
251
+ className: l(
252
+ "max-h-[272px] overflow-y-scroll",
253
+ s.scrollArea
254
+ ),
255
+ children: /* @__PURE__ */ e("div", { className: "border-gray-200 overflow-hidden rounded-xl", children: /* @__PURE__ */ t("table", { className: "w-full", children: [
256
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium", children: [
257
+ /* @__PURE__ */ e("th", { className: "w-[52px]", children: "#" }),
258
+ /* @__PURE__ */ e("th", { children: "Player" }),
259
+ /* @__PURE__ */ e("th", { children: "Multiplier" }),
260
+ /* @__PURE__ */ e("th", { children: "Prize" })
261
+ ] }) }),
262
+ /* @__PURE__ */ e("tbody", { children: Array.from({ length: 10 }).map((u, a) => /* @__PURE__ */ t("tr", { className: "bg-bg-primary text-sm text-text-secondary-700", children: [
263
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: a + 1 < 6 ? /* @__PURE__ */ t("div", { className: "relative", children: [
264
+ /* @__PURE__ */ e(
265
+ I,
266
+ {
267
+ className: l(
268
+ "mx-auto size-6.5",
269
+ g[a].starColor
270
+ )
271
+ }
272
+ ),
273
+ /* @__PURE__ */ e(
274
+ "span",
275
+ {
276
+ className: l(
277
+ "absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",
278
+ g[a].numberColor
279
+ ),
280
+ children: a + 1
281
+ }
282
+ )
283
+ ] }) : "-" }),
284
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
285
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
286
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })
287
+ ] }, a)) })
288
+ ] }) })
289
+ }
290
+ )
144
291
  ] }),
145
- /* @__PURE__ */ e(
146
- c.Root,
292
+ i && /* @__PURE__ */ e(
293
+ "div",
147
294
  {
148
- className: "bg-gray-200 h-2 w-full rounded-full",
149
- max: 100,
150
- value: 33,
151
- children: /* @__PURE__ */ e(c.Track, { className: "bg-gray-950 h-full rounded-full", children: /* @__PURE__ */ e(c.Range, { className: "bg-gray-300 h-full rounded-full" }) })
295
+ className: l(s["light-rays"], "absolute right-0 top-0 rounded-2xl")
152
296
  }
153
- ),
154
- /* @__PURE__ */ e("div", { className: "mt-1 text-start text-[10px]", children: s ? `The pot has hit ${o(r == null ? void 0 : r.maximumJackpotPoolLimit, {
155
- currency: l.currency.code,
156
- compact: !0
157
- })} Play now for your chance to win big! 🔥` : y(
158
- Number(r == null ? void 0 : r.pool) ?? 0,
159
- Number(r == null ? void 0 : r.maximumJackpotPoolLimit) ?? 0
160
- ) })
297
+ )
161
298
  ]
162
299
  }
163
300
  );
164
301
  }
165
- const y = (r, m) => (m === 0 ? 0 : r / m * 100) <= 90 ? "The jackpot is heating up! Keep playing to stay in the action and watch it grow!" : "🔥 It’s about to pop! Stay in the game for your shot at the prize!";
302
+ const S = (r, o) => o === 0 ? 0 : r / o * 100, q = (r, o) => (o === 0 ? 0 : r / o * 100) <= 90 ? "The jackpot is heating up! Keep playing to stay in the action and watch it grow!" : "🔥 It’s about to pop! Stay in the game for your shot at the prize!", g = [
303
+ {
304
+ starColor: "text-yellow-400",
305
+ numberColor: "text-bg-primary"
306
+ },
307
+ {
308
+ starColor: "text-utility-gray-700",
309
+ numberColor: "text-bg-primary"
310
+ },
311
+ {
312
+ starColor: "text-yellow-700",
313
+ numberColor: "text-bg-primary"
314
+ },
315
+ {
316
+ starColor: "text-bg-quaternary",
317
+ numberColor: "text-text-primary-900"
318
+ },
319
+ {
320
+ starColor: "text-bg-quaternary",
321
+ numberColor: "text-text-primary-900"
322
+ }
323
+ ];
166
324
  export {
167
- V as JackpotCounterItem
325
+ ue as JackpotCounterItem
168
326
  };
@@ -1 +1 @@
1
- "use strict";const a={"animate-arrow-green-flash-1":"_animate-arrow-green-flash-1_zlu69_19","animate-arrow-green-flash-2":"_animate-arrow-green-flash-2_zlu69_29","animate-arrow-green-flash-3":"_animate-arrow-green-flash-3_zlu69_39","animate-arrow-red-flash-1":"_animate-arrow-red-flash-1_zlu69_67","animate-arrow-red-flash-2":"_animate-arrow-red-flash-2_zlu69_75","animate-arrow-red-flash-3":"_animate-arrow-red-flash-3_zlu69_85"};module.exports=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="_scrollArea_1m8hd_289",r={"animate-arrow-green-flash-1":"_animate-arrow-green-flash-1_1m8hd_19","animate-arrow-green-flash-2":"_animate-arrow-green-flash-2_1m8hd_29","animate-arrow-green-flash-3":"_animate-arrow-green-flash-3_1m8hd_39","animate-arrow-red-flash-1":"_animate-arrow-red-flash-1_1m8hd_67","animate-arrow-red-flash-2":"_animate-arrow-red-flash-2_1m8hd_75","animate-arrow-red-flash-3":"_animate-arrow-red-flash-3_1m8hd_85","light-rays":"_light-rays_1m8hd_107",scrollArea:a};exports.default=r;exports.scrollArea=a;
@@ -1,11 +1,14 @@
1
- const a = {
2
- "animate-arrow-green-flash-1": "_animate-arrow-green-flash-1_zlu69_19",
3
- "animate-arrow-green-flash-2": "_animate-arrow-green-flash-2_zlu69_29",
4
- "animate-arrow-green-flash-3": "_animate-arrow-green-flash-3_zlu69_39",
5
- "animate-arrow-red-flash-1": "_animate-arrow-red-flash-1_zlu69_67",
6
- "animate-arrow-red-flash-2": "_animate-arrow-red-flash-2_zlu69_75",
7
- "animate-arrow-red-flash-3": "_animate-arrow-red-flash-3_zlu69_85"
1
+ const a = "_scrollArea_1m8hd_289", r = {
2
+ "animate-arrow-green-flash-1": "_animate-arrow-green-flash-1_1m8hd_19",
3
+ "animate-arrow-green-flash-2": "_animate-arrow-green-flash-2_1m8hd_29",
4
+ "animate-arrow-green-flash-3": "_animate-arrow-green-flash-3_1m8hd_39",
5
+ "animate-arrow-red-flash-1": "_animate-arrow-red-flash-1_1m8hd_67",
6
+ "animate-arrow-red-flash-2": "_animate-arrow-red-flash-2_1m8hd_75",
7
+ "animate-arrow-red-flash-3": "_animate-arrow-red-flash-3_1m8hd_85",
8
+ "light-rays": "_light-rays_1m8hd_107",
9
+ scrollArea: a
8
10
  };
9
11
  export {
10
- a as default
12
+ r as default,
13
+ a as scrollArea
11
14
  };
@@ -0,0 +1 @@
1
+ export declare function JackpotGameProviders(): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Jackpot } from '@opexa/portal-sdk-core';
2
+ export interface JackpotCounterCardProps {
3
+ jackpot: Jackpot;
4
+ /** @default "/jackpots" */
5
+ viewAllUrl?: string;
6
+ }
7
+ export declare function JackpotItem({ jackpot }: JackpotCounterCardProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Jackpot } from '@opexa/portal-sdk-core';
2
+ export interface JackpotCounterCardProps {
3
+ jackpot: Jackpot;
4
+ /** @default "/jackpots" */
5
+ viewAllUrl?: string;
6
+ }
7
+ export declare function JackpotItemMobile({ jackpot }: JackpotCounterCardProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export interface JackpotCounterProps {
2
+ /** @default "Promos" */
3
+ heading?: string;
4
+ /** @default "/jackpots" */
5
+ viewAllUrl?: string;
6
+ className?: string;
7
+ }
8
+ export declare function Jackpots(props: JackpotCounterProps): import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export * from './Jackpots';
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react-fast-marquee"),n=require("tailwind-merge");function i(r){return e.jsxs("div",{className:n.twMerge("border-gray-200 text-gray-700 flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium",r.className),children:[e.jsxs("div",{className:"border-gray-200 flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5",children:[e.jsx("span",{className:"bg-green-400 outline-green-400/20 size-2 rounded-full outline-4"}),e.jsx("span",{children:"What's new"})]}),e.jsxs(s,{className:"grow",children:[r.children,"          "]})]})}exports.Marquee=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("tailwind-merge");function i(r){return e.jsxs("div",{className:s.twMerge("border-border-primary bg-bg-primary text-text-secondary-700 shadow-xs flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium",r.className),children:[e.jsxs("div",{className:"border-border-primary flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5",children:[e.jsx("span",{className:"bg-utility-success-500 outline-utility-success-100 size-2 rounded-full outline-2"}),e.jsx("span",{children:"What's new"})]}),e.jsx("div",{className:"flex grow items-center overflow-hidden",children:e.jsxs("div",{className:"flex items-center whitespace-nowrap",children:[e.jsx("div",{className:"animate-marquee pr-4 [animation-delay:1s]",children:r.children}),e.jsx("div",{className:"animate-marquee pr-4 [animation-delay:1s]",children:r.children})]})})]})}exports.Marquee=i;
@@ -1,28 +1,26 @@
1
- "use client";
2
- import { jsxs as e, jsx as n } from "react/jsx-runtime";
3
- import s from "react-fast-marquee";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
4
2
  import { twMerge as i } from "tailwind-merge";
5
- function d(r) {
6
- return /* @__PURE__ */ e(
3
+ function n(r) {
4
+ return /* @__PURE__ */ a(
7
5
  "div",
8
6
  {
9
7
  className: i(
10
- "border-gray-200 text-gray-700 flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium",
8
+ "border-border-primary bg-bg-primary text-text-secondary-700 shadow-xs flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium",
11
9
  r.className
12
10
  ),
13
11
  children: [
14
- /* @__PURE__ */ e("div", { className: "border-gray-200 flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5", children: [
15
- /* @__PURE__ */ n("span", { className: "bg-green-400 outline-green-400/20 size-2 rounded-full outline-4" }),
16
- /* @__PURE__ */ n("span", { children: "What's new" })
12
+ /* @__PURE__ */ a("div", { className: "border-border-primary flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5", children: [
13
+ /* @__PURE__ */ e("span", { className: "bg-utility-success-500 outline-utility-success-100 size-2 rounded-full outline-2" }),
14
+ /* @__PURE__ */ e("span", { children: "What's new" })
17
15
  ] }),
18
- /* @__PURE__ */ e(s, { className: "grow", children: [
19
- r.children,
20
- "          "
21
- ] })
16
+ /* @__PURE__ */ e("div", { className: "flex grow items-center overflow-hidden", children: /* @__PURE__ */ a("div", { className: "flex items-center whitespace-nowrap", children: [
17
+ /* @__PURE__ */ e("div", { className: "animate-marquee pr-4 [animation-delay:1s]", children: r.children }),
18
+ /* @__PURE__ */ e("div", { className: "animate-marquee pr-4 [animation-delay:1s]", children: r.children })
19
+ ] }) })
22
20
  ]
23
21
  }
24
22
  );
25
23
  }
26
24
  export {
27
- d as Marquee
25
+ n as Marquee
28
26
  };
@@ -0,0 +1,4 @@
1
+ import { Message } from '@opexa/portal-sdk-core';
2
+ export declare function MessageItem({ message }: {
3
+ message: Message;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("./utils.js"),q=require("date-fns"),f=require("next/link");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const h=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const y=require("../../client/hooks/useMarkMessageAsReadMutation.js"),j=require("zustand/shallow");function M({message:t}){const{id:n,title:i,dateTimeCreated:o,content:c,markedAsRead:l,icon:u,actions:a}=t,{messages:r}=h.useGlobalStore(j.useShallow(s=>({messages:s.messages}))),{mutateAsync:d}=y.useMarkMessageAsReadMutation(),m=g.getMessageIcon(u),x=async()=>{await d({id:n}),r.message.setOpen(!0),r.message.setContent(t),r.setOpen(!1)},b=s=>{s.stopPropagation(),r.setOpen(!1),r.setTab("ALL")};return e.jsxs("div",{role:"button",tabIndex:0,className:"border-border-secondary rounded-xs bg-bg-secondary flex h-auto flex-shrink-0 cursor-pointer flex-col border px-3.5 py-2.5",onClick:x,"aria-pressed":"false",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-text-tertiary-600 text-xs font-normal",children:q.format(new Date(o),"M/d/yyyy - h:mma")}),!l&&e.jsx("div",{className:"bg-utility-success-500 h-2.5 w-2.5 rounded-full"})]}),e.jsxs("div",{className:"mb-2 flex items-center space-x-2",children:[e.jsx(m,{className:"text-brand-400"}),e.jsx("p",{className:"text-text-primary-brand text-sm font-semibold",children:i})]}),e.jsx("p",{className:"text-wrap text-sm font-normal",children:c}),a.length>0&&e.jsx("div",{className:"mt-2 flex flex-wrap items-center justify-end gap-2",children:a.map((s,p)=>e.jsx(f,{className:"border-button-secondary-border text-button-secondary-fg rounded-md border px-3 py-2 text-sm",href:s.url,onClick:b,children:s.name},p))})]})}exports.MessageItem=M;