rujira.ui 1.0.12 → 1.0.15

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 (225) hide show
  1. package/lib/cjs/assets/tokens/brune.png +0 -0
  2. package/lib/cjs/components/buttons/TxButton.js +10 -6
  3. package/lib/cjs/components/footer/Footer.js +171 -2
  4. package/lib/cjs/components/header/Header.js +19 -19
  5. package/lib/cjs/components/header/ResolveLink.js +2 -4
  6. package/lib/cjs/components/icons/IconDenom.js +3 -0
  7. package/lib/cjs/components/icons/Icons.js +20 -2
  8. package/lib/cjs/components/inputs/DecimalInput.js +7 -4
  9. package/lib/cjs/components/inputs/DenomInput.js +2 -1
  10. package/lib/cjs/components/inputs/Numeric.js +6 -7
  11. package/lib/cjs/components/pills/Pill.js +9 -0
  12. package/lib/cjs/components/progress/Progress.js +4 -2
  13. package/lib/cjs/components/slider/Slider.js +6 -0
  14. package/lib/cjs/context/GlobalModal.js +1 -1
  15. package/lib/cjs/helpers/index.js +1 -20
  16. package/lib/cjs/i18n/config.js +5 -0
  17. package/lib/cjs/i18n/locales/de/common.json +1 -1
  18. package/lib/cjs/i18n/locales/de/header.json +2 -1
  19. package/lib/cjs/i18n/locales/de/home.json +146 -0
  20. package/lib/cjs/i18n/locales/de/strategies.json +1 -2
  21. package/lib/cjs/i18n/locales/de/trade.json +1 -0
  22. package/lib/cjs/i18n/locales/en/common.json +1 -1
  23. package/lib/cjs/i18n/locales/en/header.json +2 -1
  24. package/lib/cjs/i18n/locales/en/home.json +146 -0
  25. package/lib/cjs/i18n/locales/en/strategies.json +1 -2
  26. package/lib/cjs/i18n/locales/en/trade.json +1 -0
  27. package/lib/cjs/index.js +2 -0
  28. package/lib/cjs/utils/fiat.js +52 -0
  29. package/lib/cjs/utils/fiat.test.js +96 -0
  30. package/lib/cjs/wallets/providers/cosmos.js +14 -10
  31. package/lib/cjs/wallets/providers/ctrl.js +3 -0
  32. package/lib/cjs/wallets/providers/eip1193.js +81 -73
  33. package/lib/cjs/wallets/providers/eip712.js +1 -1
  34. package/lib/cjs/wallets/providers/keplr.js +13 -17
  35. package/lib/cjs/wallets/providers/okx.js +12 -17
  36. package/lib/cjs/wallets/providers/tronlink.js +40 -27
  37. package/lib/cjs/wallets/providers/utils.js +2 -0
  38. package/lib/cjs/wallets/providers/utxo.js +27 -3
  39. package/lib/cjs/wallets/providers/vulticonnect.js +2 -0
  40. package/lib/cjs/wallets/providers/vultisig/common.js +2 -0
  41. package/lib/cjs/wallets/providers/vultisig/cosmos.js +53 -0
  42. package/lib/cjs/wallets/providers/vultisig/evm.js +56 -0
  43. package/lib/cjs/wallets/providers/vultisig/native.js +39 -0
  44. package/lib/cjs/wallets/providers/vultisig/signature.js +31 -0
  45. package/lib/cjs/wallets/providers/vultisig/ton.js +25 -0
  46. package/lib/cjs/wallets/providers/vultisig/tron.js +34 -0
  47. package/lib/cjs/wallets/providers/vultisig/utxo.js +76 -0
  48. package/lib/cjs/wallets/providers/vultisig/xrp.js +33 -0
  49. package/lib/cjs/wallets/providers/vultisig.js +104 -5
  50. package/lib/cjs/wallets/providers/xaman.js +26 -15
  51. package/lib/esm/assets/tokens/brune.png +0 -0
  52. package/lib/esm/components/buttons/TxButton.d.ts +6 -0
  53. package/lib/esm/components/buttons/TxButton.d.ts.map +1 -1
  54. package/lib/esm/components/buttons/TxButton.js +10 -6
  55. package/lib/esm/components/footer/Footer.d.ts +3 -1
  56. package/lib/esm/components/footer/Footer.d.ts.map +1 -1
  57. package/lib/esm/components/footer/Footer.js +172 -3
  58. package/lib/esm/components/header/Header.d.ts +7 -4
  59. package/lib/esm/components/header/Header.d.ts.map +1 -1
  60. package/lib/esm/components/header/Header.js +20 -20
  61. package/lib/esm/components/header/ResolveLink.d.ts +2 -0
  62. package/lib/esm/components/header/ResolveLink.d.ts.map +1 -1
  63. package/lib/esm/components/header/ResolveLink.js +2 -4
  64. package/lib/esm/components/icons/IconDenom.d.ts.map +1 -1
  65. package/lib/esm/components/icons/IconDenom.js +4 -0
  66. package/lib/esm/components/icons/Icons.d.ts +6 -0
  67. package/lib/esm/components/icons/Icons.d.ts.map +1 -1
  68. package/lib/esm/components/icons/Icons.js +18 -0
  69. package/lib/esm/components/inputs/DecimalInput.d.ts +1 -0
  70. package/lib/esm/components/inputs/DecimalInput.d.ts.map +1 -1
  71. package/lib/esm/components/inputs/DecimalInput.js +7 -4
  72. package/lib/esm/components/inputs/DenomInput.d.ts.map +1 -1
  73. package/lib/esm/components/inputs/DenomInput.js +2 -1
  74. package/lib/esm/components/inputs/Numeric.d.ts +4 -1
  75. package/lib/esm/components/inputs/Numeric.d.ts.map +1 -1
  76. package/lib/esm/components/inputs/Numeric.js +6 -7
  77. package/lib/esm/components/pills/Pill.d.ts +7 -0
  78. package/lib/esm/components/pills/Pill.d.ts.map +1 -0
  79. package/lib/esm/components/pills/Pill.js +5 -0
  80. package/lib/esm/components/progress/Progress.d.ts +3 -1
  81. package/lib/esm/components/progress/Progress.d.ts.map +1 -1
  82. package/lib/esm/components/progress/Progress.js +4 -2
  83. package/lib/esm/components/slider/Slider.d.ts.map +1 -1
  84. package/lib/esm/components/slider/Slider.js +6 -0
  85. package/lib/esm/context/GlobalModal.js +1 -1
  86. package/lib/esm/helpers/index.d.ts +0 -14
  87. package/lib/esm/helpers/index.d.ts.map +1 -1
  88. package/lib/esm/helpers/index.js +0 -17
  89. package/lib/esm/i18n/config.d.ts.map +1 -1
  90. package/lib/esm/i18n/config.js +5 -0
  91. package/lib/esm/i18n/locales/de/common.json +1 -1
  92. package/lib/esm/i18n/locales/de/header.json +2 -1
  93. package/lib/esm/i18n/locales/de/home.json +146 -0
  94. package/lib/esm/i18n/locales/de/strategies.json +1 -2
  95. package/lib/esm/i18n/locales/de/trade.json +1 -0
  96. package/lib/esm/i18n/locales/en/common.json +1 -1
  97. package/lib/esm/i18n/locales/en/header.json +2 -1
  98. package/lib/esm/i18n/locales/en/home.json +146 -0
  99. package/lib/esm/i18n/locales/en/strategies.json +1 -2
  100. package/lib/esm/i18n/locales/en/trade.json +1 -0
  101. package/lib/esm/index.d.ts +2 -0
  102. package/lib/esm/index.d.ts.map +1 -1
  103. package/lib/esm/index.js +2 -0
  104. package/lib/esm/utils/fiat.d.ts +30 -0
  105. package/lib/esm/utils/fiat.d.ts.map +1 -0
  106. package/lib/esm/utils/fiat.js +46 -0
  107. package/lib/esm/utils/fiat.test.d.ts +2 -0
  108. package/lib/esm/utils/fiat.test.d.ts.map +1 -0
  109. package/lib/esm/utils/fiat.test.js +94 -0
  110. package/lib/esm/wallets/providers/cosmos.d.ts +1 -0
  111. package/lib/esm/wallets/providers/cosmos.d.ts.map +1 -1
  112. package/lib/esm/wallets/providers/cosmos.js +12 -9
  113. package/lib/esm/wallets/providers/ctrl.d.ts.map +1 -1
  114. package/lib/esm/wallets/providers/ctrl.js +3 -0
  115. package/lib/esm/wallets/providers/eip1193.d.ts +12 -10
  116. package/lib/esm/wallets/providers/eip1193.d.ts.map +1 -1
  117. package/lib/esm/wallets/providers/eip1193.js +77 -72
  118. package/lib/esm/wallets/providers/eip712.js +1 -1
  119. package/lib/esm/wallets/providers/keplr.d.ts.map +1 -1
  120. package/lib/esm/wallets/providers/keplr.js +13 -17
  121. package/lib/esm/wallets/providers/okx.d.ts.map +1 -1
  122. package/lib/esm/wallets/providers/okx.js +12 -17
  123. package/lib/esm/wallets/providers/tronlink.d.ts +15 -1
  124. package/lib/esm/wallets/providers/tronlink.d.ts.map +1 -1
  125. package/lib/esm/wallets/providers/tronlink.js +37 -26
  126. package/lib/esm/wallets/providers/utils.d.ts +1 -1
  127. package/lib/esm/wallets/providers/utils.d.ts.map +1 -1
  128. package/lib/esm/wallets/providers/utils.js +2 -0
  129. package/lib/esm/wallets/providers/utxo.d.ts +16 -7
  130. package/lib/esm/wallets/providers/utxo.d.ts.map +1 -1
  131. package/lib/esm/wallets/providers/utxo.js +25 -3
  132. package/lib/esm/wallets/providers/vulticonnect.d.ts.map +1 -1
  133. package/lib/esm/wallets/providers/vulticonnect.js +2 -0
  134. package/lib/esm/wallets/providers/vultisig/common.d.ts +3 -0
  135. package/lib/esm/wallets/providers/vultisig/common.d.ts.map +1 -0
  136. package/lib/esm/wallets/providers/vultisig/common.js +1 -0
  137. package/lib/esm/wallets/providers/vultisig/cosmos.d.ts +12 -0
  138. package/lib/esm/wallets/providers/vultisig/cosmos.d.ts.map +1 -0
  139. package/lib/esm/wallets/providers/vultisig/cosmos.js +49 -0
  140. package/lib/esm/wallets/providers/vultisig/evm.d.ts +15 -0
  141. package/lib/esm/wallets/providers/vultisig/evm.d.ts.map +1 -0
  142. package/lib/esm/wallets/providers/vultisig/evm.js +52 -0
  143. package/lib/esm/wallets/providers/vultisig/native.d.ts +20 -0
  144. package/lib/esm/wallets/providers/vultisig/native.d.ts.map +1 -0
  145. package/lib/esm/wallets/providers/vultisig/native.js +34 -0
  146. package/lib/esm/wallets/providers/vultisig/signature.d.ts +7 -0
  147. package/lib/esm/wallets/providers/vultisig/signature.d.ts.map +1 -0
  148. package/lib/esm/wallets/providers/vultisig/signature.js +24 -0
  149. package/lib/esm/wallets/providers/vultisig/ton.d.ts +9 -0
  150. package/lib/esm/wallets/providers/vultisig/ton.d.ts.map +1 -0
  151. package/lib/esm/wallets/providers/vultisig/ton.js +20 -0
  152. package/lib/esm/wallets/providers/vultisig/tron.d.ts +15 -0
  153. package/lib/esm/wallets/providers/vultisig/tron.d.ts.map +1 -0
  154. package/lib/esm/wallets/providers/vultisig/tron.js +30 -0
  155. package/lib/esm/wallets/providers/vultisig/utxo.d.ts +21 -0
  156. package/lib/esm/wallets/providers/vultisig/utxo.d.ts.map +1 -0
  157. package/lib/esm/wallets/providers/vultisig/utxo.js +71 -0
  158. package/lib/esm/wallets/providers/vultisig/xrp.d.ts +10 -0
  159. package/lib/esm/wallets/providers/vultisig/xrp.d.ts.map +1 -0
  160. package/lib/esm/wallets/providers/vultisig/xrp.js +28 -0
  161. package/lib/esm/wallets/providers/vultisig.d.ts +16 -3
  162. package/lib/esm/wallets/providers/vultisig.d.ts.map +1 -1
  163. package/lib/esm/wallets/providers/vultisig.js +104 -5
  164. package/lib/esm/wallets/providers/xaman.d.ts +7 -0
  165. package/lib/esm/wallets/providers/xaman.d.ts.map +1 -1
  166. package/lib/esm/wallets/providers/xaman.js +23 -14
  167. package/package.json +3 -2
  168. package/src/assets/tokens/brune.png +0 -0
  169. package/src/components/buttons/TxButton.tsx +18 -5
  170. package/src/components/footer/Footer.tsx +316 -102
  171. package/src/components/header/Header.tsx +95 -28
  172. package/src/components/header/ResolveLink.tsx +3 -7
  173. package/src/components/icons/IconDenom.tsx +7 -1
  174. package/src/components/icons/Icons.tsx +59 -0
  175. package/src/components/inputs/DecimalInput.tsx +8 -4
  176. package/src/components/inputs/DenomInput.tsx +2 -1
  177. package/src/components/inputs/Numeric.tsx +34 -24
  178. package/src/components/pills/Pill.tsx +16 -0
  179. package/src/components/progress/Progress.tsx +8 -2
  180. package/src/components/slider/Slider.tsx +6 -0
  181. package/src/context/GlobalModal.tsx +1 -1
  182. package/src/helpers/index.ts +0 -32
  183. package/src/i18n/config.ts +5 -0
  184. package/src/i18n/locales/de/common.json +1 -1
  185. package/src/i18n/locales/de/header.json +2 -1
  186. package/src/i18n/locales/de/home.json +146 -0
  187. package/src/i18n/locales/de/strategies.json +1 -2
  188. package/src/i18n/locales/de/trade.json +1 -0
  189. package/src/i18n/locales/en/common.json +1 -1
  190. package/src/i18n/locales/en/header.json +2 -1
  191. package/src/i18n/locales/en/home.json +146 -0
  192. package/src/i18n/locales/en/strategies.json +1 -2
  193. package/src/i18n/locales/en/trade.json +1 -0
  194. package/src/index.ts +3 -0
  195. package/src/scss/base/_filters.scss +10 -1
  196. package/src/scss/components/_button.scss +33 -3
  197. package/src/scss/components/_footer.scss +149 -16
  198. package/src/scss/components/_header.scss +22 -1
  199. package/src/scss/components/_numeric-input.scss +10 -2
  200. package/src/scss/components/_slider.scss +10 -0
  201. package/src/scss/index.scss +1 -0
  202. package/src/scss/styledcomponents/_pill.scss +22 -0
  203. package/src/{helpers/index.test.ts → utils/fiat.test.ts} +72 -3
  204. package/src/utils/fiat.ts +71 -0
  205. package/src/wallets/providers/cosmos.ts +21 -14
  206. package/src/wallets/providers/ctrl.ts +3 -0
  207. package/src/wallets/providers/eip1193.ts +105 -85
  208. package/src/wallets/providers/eip712.ts +1 -1
  209. package/src/wallets/providers/keplr.ts +15 -22
  210. package/src/wallets/providers/okx.ts +13 -21
  211. package/src/wallets/providers/tronlink.ts +57 -27
  212. package/src/wallets/providers/utils.ts +2 -1
  213. package/src/wallets/providers/utxo.ts +64 -5
  214. package/src/wallets/providers/vulticonnect.ts +2 -0
  215. package/src/wallets/providers/vultisig/common.ts +3 -0
  216. package/src/wallets/providers/vultisig/cosmos.ts +64 -0
  217. package/src/wallets/providers/vultisig/evm.ts +89 -0
  218. package/src/wallets/providers/vultisig/native.ts +48 -0
  219. package/src/wallets/providers/vultisig/signature.ts +38 -0
  220. package/src/wallets/providers/vultisig/ton.ts +26 -0
  221. package/src/wallets/providers/vultisig/tron.ts +36 -0
  222. package/src/wallets/providers/vultisig/utxo.ts +92 -0
  223. package/src/wallets/providers/vultisig/xrp.ts +36 -0
  224. package/src/wallets/providers/vultisig.ts +137 -8
  225. package/src/wallets/providers/xaman.ts +33 -14
Binary file
@@ -36,7 +36,7 @@ const separateClasses = (className) => {
36
36
  const TWO_STEP_ALLOWANCE_CHAINS = new Set([rujira_js_1.BSC, rujira_js_1.AVAX]);
37
37
  const TxButton = (props) => {
38
38
  const { t } = (0, i18n_1.useTranslation)("common");
39
- const { accountProvider, msg, onSuccess, onError, SimulationComponent = DefaultSimulationComponent, children, toastOpts = {}, className, hideSimulation, onClick, ...rest } = props;
39
+ const { accountProvider, msg, onSuccess, onError, onSimulation, SimulationComponent = DefaultSimulationComponent, children, toastOpts = {}, className, hideSimulation, animateSimulation = true, onClick, ...rest } = props;
40
40
  const [simulation, setSimulation] = (0, react_1.useState)();
41
41
  const [simulationError, setSimulationError] = (0, react_1.useState)();
42
42
  const [isSimulating, setIsSimulating] = (0, react_1.useState)(false);
@@ -49,9 +49,11 @@ const TxButton = (props) => {
49
49
  const doSimulate = (msg) => {
50
50
  setSimulationError(undefined);
51
51
  setSimulation(undefined);
52
+ onSimulation?.({ simulation: undefined, status: "none" });
52
53
  if (msg) {
53
54
  const seq = ++simulationSeqRef.current;
54
55
  setIsSimulating(true);
56
+ onSimulation?.({ simulation: undefined, status: "running" });
55
57
  const signer = accountProvider.signer(msg.account.address);
56
58
  signer
57
59
  .simulate(msg)
@@ -61,6 +63,7 @@ const TxButton = (props) => {
61
63
  return;
62
64
  setIsSimulating(false);
63
65
  setSimulation(sim);
66
+ onSimulation?.({ simulation: sim, status: "completed" });
64
67
  })
65
68
  .catch((err) => {
66
69
  //ignore stale simulation errors
@@ -70,6 +73,7 @@ const TxButton = (props) => {
70
73
  console.error(err);
71
74
  setSimulationError(err);
72
75
  onError && onError(new rujira_js_1.TxError(msg, err, "simulation"));
76
+ onSimulation?.({ simulation: undefined, status: "failed" });
73
77
  });
74
78
  }
75
79
  };
@@ -181,7 +185,7 @@ const TxButton = (props) => {
181
185
  ? t("waiting")
182
186
  : isRejected
183
187
  ? t("rejected")
184
- : isSimulating
188
+ : isSimulating && animateSimulation
185
189
  ? t("simulating")
186
190
  : rest.label}`,
187
191
  }),
@@ -190,13 +194,13 @@ const TxButton = (props) => {
190
194
  "button--grey": disabled &&
191
195
  !isSimulating &&
192
196
  !stylingClasses.includes("transparent"),
193
- "button--waiting": (isSigning || isRejected || isSuccess || isSimulating) &&
197
+ "button--waiting": (isSigning || isRejected || isSuccess || (isSimulating && animateSimulation)) &&
194
198
  !className?.includes("transparent"),
195
199
  "button--success": isSuccess,
196
200
  "button--rejected": isRejected,
197
- "button--simulating": isSimulating,
201
+ "button--simulating": isSimulating && animateSimulation,
198
202
  }), style: {
199
- cursor: isSigning || isSuccess || isRejected || isSimulating
203
+ cursor: isSigning || isSuccess || isRejected || (isSimulating && animateSimulation)
200
204
  ? "default"
201
205
  : undefined,
202
206
  ...rest.style,
@@ -205,7 +209,7 @@ const TxButton = (props) => {
205
209
  : undefined, children: [(isSuccess ||
206
210
  isRejected ||
207
211
  isSigning ||
208
- isSimulating ||
212
+ (isSimulating && animateSimulation) ||
209
213
  !!simulationError) &&
210
214
  !className?.includes("transparent") && ((0, jsx_runtime_1.jsx)("img", { className: "w-4 h-4 filter-white big", src: isSimulating
211
215
  ? txsimulate_gif_1.default
@@ -6,10 +6,179 @@ const clsx_1 = require("clsx");
6
6
  const ResolveLink_1 = require("../header/ResolveLink");
7
7
  const Icons_1 = require("../icons/Icons");
8
8
  const RujiraLogo_1 = require("../logos/RujiraLogo");
9
- const Footer = ({ className, domain = "", routerElement, }) => {
9
+ const SITE_URL = "https://rujira.network";
10
+ const DOCS_URL = "https://docs.rujira.network";
11
+ const DISCORD_URL = "https://discord.com/invite/XPvsxhWKfb";
12
+ const TELEGRAM_URL = "https://t.me/Rujira_Community";
13
+ const REDDIT_URL = "https://www.reddit.com/r/RujiraNetworkOfficial/";
14
+ const footerSections = [
15
+ {
16
+ title: "Products",
17
+ links: [
18
+ { kind: "internal", label: "Cross-chain Swaps", to: "swap" },
19
+ { kind: "internal", label: "Orderbook DEX", to: "trade" },
20
+ { kind: "internal", label: "Earn Opportunities", to: "strategies" },
21
+ { kind: "internal", label: "Money Market", to: "borrow" },
22
+ {
23
+ kind: "internal",
24
+ label: "Automated Trading",
25
+ to: "/trade/BTC/USDC?orders=range&order=tracking&range=t",
26
+ },
27
+ {
28
+ kind: "internal",
29
+ label: "bRUNE",
30
+ to: "/strategies/staking/bRUNE",
31
+ },
32
+ { kind: "internal", label: "Indices", to: "index" },
33
+ { kind: "internal", label: "Recurring Buys", to: "trade" },
34
+ ],
35
+ },
36
+ {
37
+ title: "Learn",
38
+ links: [
39
+ {
40
+ kind: "external",
41
+ label: "Architecture",
42
+ href: `${SITE_URL}/architecture`,
43
+ },
44
+ { kind: "external", label: "RUJI Token", href: `${SITE_URL}/rujitoken` },
45
+ {
46
+ kind: "external",
47
+ label: "Enshrined Oracles",
48
+ href: `${SITE_URL}/enshrined-oracles`,
49
+ },
50
+ {
51
+ kind: "external",
52
+ label: "Secured Assets",
53
+ href: `${SITE_URL}/secured-assets`,
54
+ },
55
+ { kind: "internal", label: "FAQ", to: "faq" },
56
+ { kind: "internal", label: "Articles", to: "articles" },
57
+ { kind: "external", label: "Roadmap", href: `${SITE_URL}/roadmap` },
58
+ { kind: "external", label: "Documentation", href: DOCS_URL },
59
+ ],
60
+ },
61
+ {
62
+ title: "Ecosystem",
63
+ links: [
64
+ { kind: "internal", label: "Ecosystem", to: "ecosystem" },
65
+ {
66
+ kind: "external",
67
+ label: "Deving Zone",
68
+ href: "http://deving.zone/r/rujira",
69
+ },
70
+ {
71
+ kind: "external",
72
+ label: "Rujira Data",
73
+ href: "https://rujiradata.com/",
74
+ },
75
+ { kind: "external", label: "Rune Tools", href: "https://rune.tools" },
76
+ {
77
+ kind: "external",
78
+ label: "Blockchain Explorer",
79
+ href: "https://thorchain.net",
80
+ },
81
+ {
82
+ kind: "external",
83
+ label: "Brand Assets",
84
+ href: `${DOCS_URL}/resources/branding`,
85
+ },
86
+ ],
87
+ },
88
+ {
89
+ title: "Developers",
90
+ links: [
91
+ {
92
+ kind: "external",
93
+ label: "Developer Tools",
94
+ href: `${DOCS_URL}/developers/getting-started`,
95
+ },
96
+ {
97
+ kind: "external",
98
+ label: "Documentation",
99
+ href: DOCS_URL,
100
+ },
101
+ {
102
+ kind: "external",
103
+ label: "GitLab",
104
+ href: "https://gitlab.com/thorchain/rujira",
105
+ },
106
+ {
107
+ kind: "external",
108
+ label: "Rujira.ui",
109
+ href: "https://gitlab.com/thorchain/rujira-ui",
110
+ },
111
+ ],
112
+ },
113
+ {
114
+ title: "Support",
115
+ links: [
116
+ { kind: "internal", label: "Knowledge Hub", to: "support" },
117
+ {
118
+ kind: "external",
119
+ label: "Developer Help",
120
+ href: DISCORD_URL,
121
+ },
122
+ { kind: "internal", label: "Terms of Use", to: "/tou" },
123
+ { kind: "internal", label: "Privacy Policy", to: "/privacypolicy" },
124
+ ],
125
+ },
126
+ ];
127
+ const communityLinks = [
128
+ { label: "Twitter", href: "https://x.com/RujiraNetwork", Icon: Icons_1.X },
129
+ { label: "Telegram", href: TELEGRAM_URL, Icon: Icons_1.Telegram },
130
+ { label: "Discord", href: DISCORD_URL, Icon: Icons_1.Discord },
131
+ ];
132
+ const socialLinks = [
133
+ {
134
+ label: "Instagram",
135
+ href: "https://www.instagram.com/rujiranetwork/",
136
+ Icon: Icons_1.Instagram,
137
+ },
138
+ {
139
+ label: "LinkedIn",
140
+ href: "https://www.linkedin.com/company/rujira-network/",
141
+ Icon: Icons_1.LinkedIn,
142
+ },
143
+ {
144
+ label: "TikTok",
145
+ href: "https://www.tiktok.com/@rujiranetwork",
146
+ Icon: Icons_1.TikTok,
147
+ },
148
+ { label: "Reddit", href: REDDIT_URL, Icon: Icons_1.Reddit },
149
+ {
150
+ label: "YouTube",
151
+ href: "https://www.youtube.com/@RujiraNetwork",
152
+ Icon: Icons_1.YouTube,
153
+ },
154
+ ];
155
+ const FooterLinkItem = (props) => {
156
+ const { domain, routerElement } = props;
157
+ switch (props.kind) {
158
+ case "internal":
159
+ return ((0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, className: "rujira__footer-link", domain: domain, to: props.to, children: props.label }));
160
+ case "static":
161
+ return ((0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, className: "rujira__footer-link", domain: domain, to: props.to, isStatic: true, children: props.label }));
162
+ case "external":
163
+ return ((0, jsx_runtime_1.jsx)("a", { href: props.href, className: "rujira__footer-link", rel: "noopener noreferrer", target: "_blank", children: props.label }));
164
+ }
165
+ };
166
+ const Footer = ({ className, domain = "", routerElement, staticRoutes = [], }) => {
10
167
  return ((0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)({
11
168
  rujira__footer: true,
12
169
  [`${className}`]: className,
13
- }), children: (0, jsx_runtime_1.jsxs)("div", { className: "rujira__inner", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex wrap pad-tight", children: [(0, jsx_runtime_1.jsxs)("div", { className: "col-12 col-xs-6 col-lg-3", children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 lh-18 fw-600 color-white", children: "Everyone" }), (0, jsx_runtime_1.jsxs)("nav", { className: "flex dir-c", children: [(0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, domain: domain, to: "merge", children: "Merge" }), (0, jsx_runtime_1.jsx)("a", { href: "https://docs.rujira.network", target: "_blank", children: "Documentation" }), (0, jsx_runtime_1.jsx)("a", { href: "https://docs.rujira.network/resources/branding", target: "_blank", children: "Brand Assets" }), (0, jsx_runtime_1.jsx)("a", { href: "https://thorchain.net", target: "_blank", children: "Blockchain Explorer" }), (0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, domain: domain, to: "privacypolicy", children: "Privacy Policy" }), (0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, domain: domain, to: "tou", children: "Terms of Use" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "col-12 col-xs-6 col-lg-3 mt-3 mt-xs-0", children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 lh-18 fw-600 color-white", children: "Developers" }), (0, jsx_runtime_1.jsxs)("nav", { className: "flex dir-c", children: [(0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, domain: domain, to: "developer/tools", children: "Developer Tools" }), (0, jsx_runtime_1.jsx)("a", { href: "https://docs.rujira.network/developers/getting-started", target: "_blank", children: "Documentation" }), (0, jsx_runtime_1.jsx)("a", { href: "https://gitlab.com/thorchain/rujira", target: "_blank", children: "GitLab" }), (0, jsx_runtime_1.jsx)("a", { href: "https://gitlab.com/thorchain/rujira-ui", target: "_blank", children: "Rujira.ui" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "col-12 col-xs-6 col-lg-3 mt-3 mt-lg-0", children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 lh-18 fw-600 color-white", children: "Ecosystem" }), (0, jsx_runtime_1.jsx)("nav", { className: "flex dir-c", children: (0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, domain: domain, to: "ecosystem", children: "Built on Rujira" }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "col-12 col-xs-6 col-lg-3 mt-3 mt-lg-0", children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 lh-18 fw-600 color-white", children: "Community" }), (0, jsx_runtime_1.jsxs)("nav", { className: "flex wrap mt-1", children: [(0, jsx_runtime_1.jsx)("a", { href: "https://x.com/RujiraNetwork", target: "_blank", className: "block px-0.5", children: (0, jsx_runtime_1.jsx)(Icons_1.X, { className: "h-3 w-a" }) }), (0, jsx_runtime_1.jsx)("a", { href: "https://t.me/Rujira_Community", target: "_blank", className: "block px-0.5", children: (0, jsx_runtime_1.jsx)(Icons_1.Telegram, { className: "h-3 w-a" }) }), (0, jsx_runtime_1.jsx)("a", { href: "https://discord.gg/XPvsxhWKfb", target: "_blank", className: "block px-0.5", children: (0, jsx_runtime_1.jsx)(Icons_1.Discord, { className: "h-3 w-a" }) }), (0, jsx_runtime_1.jsx)("a", { href: "https://medium.com/rujiranetwork", target: "_blank", className: "block px-0.5", children: (0, jsx_runtime_1.jsx)(Icons_1.Medium, { className: "h-3 w-a" }) })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 lh-16 fw-500 color-grey my-2", children: "Powered by THORChain" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-4 flex wrap ai-c", children: [(0, jsx_runtime_1.jsx)(RujiraLogo_1.RujiraLogo, { animate: true, textColor: "#fff", className: "block w-a h-4 mr-3" }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 lh-16 fw-500 color-grey my-2", children: "All Rujira brand is in public domain. No rights reserved." })] })] }) }));
170
+ }), children: (0, jsx_runtime_1.jsxs)("div", { className: "rujira__inner", children: [(0, jsx_runtime_1.jsxs)("div", { className: "rujira__footer-grid", children: [footerSections.map(({ title, links }) => ((0, jsx_runtime_1.jsxs)("section", { className: "rujira__footer-section", children: [(0, jsx_runtime_1.jsx)("h4", { className: "rujira__footer-title", children: title }), (0, jsx_runtime_1.jsx)("nav", { "aria-label": title, children: (0, jsx_runtime_1.jsx)("ul", { className: "rujira__footer-list", children: links.map((link) => {
171
+ const isStatic = staticRoutes?.includes("to" in link ? link.to : link.href);
172
+ const linkWithKind = isStatic
173
+ ? {
174
+ ...link,
175
+ kind: "static",
176
+ to: "to" in link ? link.to : link.href,
177
+ }
178
+ : link;
179
+ return ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(FooterLinkItem, { ...linkWithKind, domain: domain, routerElement: routerElement }) }, link.label));
180
+ }) }) })] }, title))), (0, jsx_runtime_1.jsxs)("section", { className: "rujira__footer-section rujira__footer-section--social", children: [(0, jsx_runtime_1.jsxs)("div", { className: "rujira__footer-social-group", children: [(0, jsx_runtime_1.jsx)("h4", { className: "rujira__footer-title", children: "Community" }), (0, jsx_runtime_1.jsx)("nav", { "aria-label": "Rujira community links", className: "rujira__footer-socials", children: communityLinks.map(({ href, Icon, label }) => ((0, jsx_runtime_1.jsx)("a", { href: href, target: "_blank", rel: "noopener noreferrer", "aria-label": label, title: label, children: (0, jsx_runtime_1.jsx)(Icon, { className: "rujira__footer-social-icon", "aria-hidden": "true" }) }, label))) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "rujira__footer-social-group", children: [(0, jsx_runtime_1.jsx)("h4", { className: "rujira__footer-title", children: "Socials" }), (0, jsx_runtime_1.jsx)("nav", { "aria-label": "Rujira social links", className: "rujira__footer-socials", children: socialLinks.map(({ href, Icon, label }) => ((0, jsx_runtime_1.jsx)("a", { href: href, target: "_blank", rel: "noopener noreferrer", "aria-label": label, title: label, children: (0, jsx_runtime_1.jsx)(Icon, { className: (0, clsx_1.default)("rujira__footer-social-icon", {
181
+ "rujira__footer-social-icon--tiktok": label === "TikTok",
182
+ }), "aria-hidden": "true" }) }, label))) })] })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "rujira__footer-bottom", children: [(0, jsx_runtime_1.jsx)(RujiraLogo_1.RujiraLogo, { animate: true, textColor: "#fff", className: "rujira__footer-logo" }), (0, jsx_runtime_1.jsx)("p", { className: "rujira__footer-copy", children: "All Rujira brand is in public domain. No rights reserved." })] })] }) }));
14
183
  };
15
184
  exports.Footer = Footer;
@@ -32,7 +32,7 @@ const Pending_1 = require("./Pending");
32
32
  const ResolveLink_1 = require("./ResolveLink");
33
33
  __exportStar(require("./Accounts"), exports);
34
34
  __exportStar(require("./QuickLauncher"), exports);
35
- const Header = ({ accountProvider, className, domain = "", routingElement, wallets, ProviderIcon, onDeposit, deposits, getAccountValue, customActions, }) => {
35
+ const Header = ({ accountProvider, className, domain = "", routingElement, wallets, ProviderIcon, onDeposit, deposits, getAccountValue, customActions, staticRoutes, }) => {
36
36
  const { t } = (0, i18n_1.useTranslation)("header");
37
37
  const [hover, setHover] = (0, react_2.useState)(false);
38
38
  const [isScrolled, setIsScrolled] = (0, react_2.useState)(false);
@@ -59,11 +59,11 @@ const Header = ({ accountProvider, className, domain = "", routingElement, walle
59
59
  return ((0, jsx_runtime_1.jsxs)(exports.Container, { style: { backgroundColor: `rgba(15, 17, 23, ${(scrollY / 56) * 0.9})` }, className: (0, clsx_1.default)({
60
60
  [`${className}`]: className,
61
61
  "rujira-header--scrolled": isScrolled,
62
- }), children: [(0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routingElement, to: ".", children: (0, jsx_runtime_1.jsx)(exports.Logo, {}) }), (0, jsx_runtime_1.jsx)(exports.MainNav, { domain: domain, accountProvider: accountProvider, routingElement: routingElement }), (0, jsx_runtime_1.jsxs)("div", { className: "ml-a mr-0 flex ai-c gradient-card-container", children: [deposits && (0, jsx_runtime_1.jsx)(Pending_1.PendingDeposits, { ...deposits }), onDeposit && ((0, jsx_runtime_1.jsxs)("button", { id: "deposit", className: "transparent rujira-header__deposit condensed", onMouseOver: () => setHover(true), onMouseOut: () => setHover(false), onClick: () => {
62
+ }), children: [(0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routingElement, to: ".", children: (0, jsx_runtime_1.jsx)(exports.Logo, {}) }), (0, jsx_runtime_1.jsx)(exports.MainNav, { domain: domain, accountProvider: accountProvider, routingElement: routingElement, staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsxs)("div", { className: "flex ai-c gradient-card-container rujira-header__right", children: [deposits && (0, jsx_runtime_1.jsx)(Pending_1.PendingDeposits, { ...deposits }), onDeposit && ((0, jsx_runtime_1.jsxs)("button", { id: "deposit", className: "transparent rujira-header__deposit condensed", onMouseOver: () => setHover(true), onMouseOut: () => setHover(false), onClick: () => {
63
63
  accounts?.length === 0 ? ConnectModal() : onDeposit();
64
64
  }, children: [(0, jsx_runtime_1.jsx)("img", { src: hover ? deposit_gif_1.default : deposit_png_1.default, alt: "Deposit" }), (0, jsx_runtime_1.jsx)("span", { children: t("deposit") })] })), (0, jsx_runtime_1.jsx)(Accounts_1.Accounts, { provider: accountProvider, ProviderIcon: ProviderIcon, routingElement: routingElement, wallets: wallets, getValue: getAccountValue,
65
65
  //hideNetworkSwitch={hideNetworkSwitch}
66
- customActions: customActions })] }), (0, jsx_runtime_1.jsx)(exports.MobileNav, { domain: domain, routingElement: routingElement, accountProvider: accountProvider })] }));
66
+ customActions: customActions })] }), (0, jsx_runtime_1.jsx)(exports.MobileNav, { domain: domain, routingElement: routingElement, accountProvider: accountProvider, staticRoutes: staticRoutes })] }));
67
67
  };
68
68
  exports.Header = Header;
69
69
  const Container = ({ children, className, style = {} }) => {
@@ -80,7 +80,7 @@ const Logo = () => {
80
80
  exports.Logo = Logo;
81
81
  const MainNav = ({ domain,
82
82
  //accountProvider,
83
- routingElement, }) => {
83
+ routingElement, staticRoutes, }) => {
84
84
  const { t } = (0, i18n_1.useTranslation)("header");
85
85
  //const { accounts } = accountProvider;
86
86
  const [showTrade, setShowTrade] = (0, react_2.useState)(false);
@@ -142,10 +142,10 @@ routingElement, }) => {
142
142
  showEntertainment,
143
143
  showLearn,
144
144
  ]);
145
- return ((0, jsx_runtime_1.jsxs)("nav", { className: "rujira-header__nav", children: [(0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowTrade(true), onMouseOut: () => setShowTrade(false), children: [t("trade"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showTrade && ((0, jsx_runtime_1.jsx)(SubTrade, { useRef: trade, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowEarn(true), onMouseOut: () => setShowEarn(false), children: [t("earn"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showEarn && ((0, jsx_runtime_1.jsx)(SubEarn, { useRef: earn, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowBorrow(true), onMouseOut: () => setShowBorrow(false), children: [t("borrow"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showBorrow && ((0, jsx_runtime_1.jsx)(SubBorrow, { useRef: borrow, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowUtilities(true), onMouseOut: () => setShowUtilities(false), children: [t("utilities"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showUtilities && ((0, jsx_runtime_1.jsx)(SubUtilities, { useRef: utilities, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowEntertainment(true), onMouseOut: () => setShowEntertainment(false), children: [t("entertainment"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showEntertainment && ((0, jsx_runtime_1.jsx)(SubEntertainment, { useRef: entertainment, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowLearn(true), onMouseOut: () => setShowLearn(false), children: [t("learnAndHelp"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showLearn && ((0, jsx_runtime_1.jsx)(SubLearn, { useRef: learn, domain: domain, routingElement: routingElement })) })] })] }));
145
+ return ((0, jsx_runtime_1.jsxs)("nav", { className: "rujira-header__nav", children: [(0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowTrade(true), onMouseOut: () => setShowTrade(false), children: [t("trade"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showTrade && ((0, jsx_runtime_1.jsx)(SubTrade, { useRef: trade, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowEarn(true), onMouseOut: () => setShowEarn(false), children: [t("earn"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showEarn && ((0, jsx_runtime_1.jsx)(SubEarn, { useRef: earn, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowBorrow(true), onMouseOut: () => setShowBorrow(false), children: [t("borrow"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showBorrow && ((0, jsx_runtime_1.jsx)(SubBorrow, { useRef: borrow, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowUtilities(true), onMouseOut: () => setShowUtilities(false), children: [t("utilities"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showUtilities && ((0, jsx_runtime_1.jsx)(SubUtilities, { useRef: utilities, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowEntertainment(true), onMouseOut: () => setShowEntertainment(false), children: [t("entertainment"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showEntertainment && ((0, jsx_runtime_1.jsx)(SubEntertainment, { useRef: entertainment, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowLearn(true), onMouseOut: () => setShowLearn(false), children: [t("learnAndHelp"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showLearn && ((0, jsx_runtime_1.jsx)(SubLearn, { useRef: learn, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] })] }));
146
146
  };
147
147
  exports.MainNav = MainNav;
148
- const MobileNav = ({ domain, routingElement, accountProvider, }) => {
148
+ const MobileNav = ({ domain, routingElement, accountProvider, staticRoutes, }) => {
149
149
  const { t } = (0, i18n_1.useTranslation)("header");
150
150
  const [showDrawer, setShowDrawer] = (0, react_2.useState)(false);
151
151
  const { accounts } = accountProvider;
@@ -167,31 +167,31 @@ const MobileNav = ({ domain, routingElement, accountProvider, }) => {
167
167
  }
168
168
  });
169
169
  }, true);
170
- return ((0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Root, { direction: "left", open: showDrawer, onOpenChange: (open) => setShowDrawer(open), children: [(0, jsx_runtime_1.jsx)("button", { className: "rujira-header__hamburger", onClick: () => setShowDrawer(true), children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { d: "M0 64H448v48H0V64zM0 224H448v48H0V224zM448 384v48H0V384H448z", fill: "currentColor" }) }) }), (0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Portal, { children: [(0, jsx_runtime_1.jsx)(vaul_1.Drawer.Overlay, { className: "drawer__overlay" }), (0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Content, { className: "drawer__content drawer__content--left", children: [(0, jsx_runtime_1.jsx)(vaul_1.Drawer.Description, { className: "visually-hidden", children: "Main navigation menu" }), (0, jsx_runtime_1.jsx)(vaul_1.Drawer.Title, { className: "visually-hidden", children: "Main Menu" }), (0, jsx_runtime_1.jsxs)("div", { className: "drawer__card mobile-drawer", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: ".", className: "flex ai-c", children: [(0, jsx_runtime_1.jsx)(Icons_1.Home, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("home") }) })] }), accounts && accounts.length > 0 && ((0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "portfolio", className: "flex ai-c mt-2", children: [(0, jsx_runtime_1.jsx)(Icons_1.Coins, { className: "color-grey h-3.5 w-a block mr-2 no-shrink" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("portfolio") }) })] })), (0, jsx_runtime_1.jsx)("h4", { children: t("trade") }), (0, jsx_runtime_1.jsx)(SubTrade, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("earn") }), (0, jsx_runtime_1.jsx)(SubEarn, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("borrow") }), (0, jsx_runtime_1.jsx)(SubBorrow, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("utilities") }), (0, jsx_runtime_1.jsx)(SubUtilities, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("entertainment") }), (0, jsx_runtime_1.jsx)(SubEntertainment, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("learnAndHelp") }), (0, jsx_runtime_1.jsx)(SubLearn, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" })] })] })] })] }));
170
+ return ((0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Root, { direction: "left", open: showDrawer, onOpenChange: (open) => setShowDrawer(open), children: [(0, jsx_runtime_1.jsx)("button", { className: "rujira-header__hamburger", onClick: () => setShowDrawer(true), children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { d: "M0 64H448v48H0V64zM0 224H448v48H0V224zM448 384v48H0V384H448z", fill: "currentColor" }) }) }), (0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Portal, { children: [(0, jsx_runtime_1.jsx)(vaul_1.Drawer.Overlay, { className: "drawer__overlay" }), (0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Content, { className: "drawer__content drawer__content--left", children: [(0, jsx_runtime_1.jsx)(vaul_1.Drawer.Description, { className: "visually-hidden", children: "Main navigation menu" }), (0, jsx_runtime_1.jsx)(vaul_1.Drawer.Title, { className: "visually-hidden", children: "Main Menu" }), (0, jsx_runtime_1.jsxs)("div", { className: "drawer__card mobile-drawer", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: ".", className: "flex ai-c", children: [(0, jsx_runtime_1.jsx)(Icons_1.Home, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("home") }) })] }), accounts && accounts.length > 0 && ((0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "portfolio", className: "flex ai-c mt-2", children: [(0, jsx_runtime_1.jsx)(Icons_1.Coins, { className: "color-grey h-3.5 w-a block mr-2 no-shrink" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("portfolio") }) })] })), (0, jsx_runtime_1.jsx)("h4", { children: t("trade") }), (0, jsx_runtime_1.jsx)(SubTrade, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("earn") }), (0, jsx_runtime_1.jsx)(SubEarn, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("borrow") }), (0, jsx_runtime_1.jsx)(SubBorrow, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("utilities") }), (0, jsx_runtime_1.jsx)(SubUtilities, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("entertainment") }), (0, jsx_runtime_1.jsx)(SubEntertainment, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("learnAndHelp") }), (0, jsx_runtime_1.jsx)(SubLearn, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes })] })] })] })] }));
171
171
  };
172
172
  exports.MobileNav = MobileNav;
173
173
  const Popup = ({ children, useRef, className = "rujira-header__popup sub-nav fw-400 p-2", }) => ((0, jsx_runtime_1.jsx)(react_1.motion.div, { ref: useRef, className: className, initial: { opacity: 0, marginTop: -4 }, animate: { opacity: 1, marginTop: 0 }, exit: { opacity: 0, marginTop: -4 }, children: children }));
174
- const SubTrade = ({ domain, routingElement, useRef, className }) => {
174
+ const SubTrade = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
175
175
  const { t } = (0, i18n_1.useTranslation)("header");
176
- return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "swap", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Swap, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("tokenSwap") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("tokenSwapDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "trade", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Chart, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("spotTrading") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("spotTradingDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "/perps/trade", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUpDown, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("perps") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("perpsDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "index", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.PieChart, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("index") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("indexDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "options", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUp, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("options") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("optionsDesc") })] })] })] }) }));
176
+ return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("swap"), domain: domain, to: "swap", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Swap, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("tokenSwap") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("tokenSwapDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("trade"), domain: domain, to: "trade", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Chart, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("spotTrading") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("spotTradingDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("perps/trade"), domain: domain, to: "perps/trade", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUpDown, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("perps") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("perpsDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("index"), domain: domain, to: "index", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.PieChart, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("index") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("indexDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("options"), domain: domain, to: "options", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUp, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("options") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("optionsDesc") })] })] })] }) }));
177
177
  };
178
- const SubEarn = ({ domain, routingElement, useRef, className }) => {
178
+ const SubEarn = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
179
179
  const { t } = (0, i18n_1.useTranslation)("header");
180
- return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "strategies/staking/RUJI", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Stake, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("stake") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("stakeDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "strategies", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Building, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("strategies") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("strategiesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "liquidate", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Gavel, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("liquidate") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("liquidateDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "launchpad", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Seedling, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("launchpad") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("launchpadDesc") })] })] })] }) }));
180
+ return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("strategies/staking/RUJI"), domain: domain, to: "strategies/staking/RUJI", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Stake, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("stake") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("stakeDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("strategies"), domain: domain, to: "strategies", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Building, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("strategies") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("strategiesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("liquidate"), domain: domain, to: "liquidate", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Gavel, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("liquidate") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("liquidateDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("launchpad"), domain: domain, to: "launchpad", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Seedling, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("launchpad") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("launchpadDesc") })] })] })] }) }));
181
181
  };
182
- const SubBorrow = ({ domain, routingElement, useRef, className }) => {
182
+ const SubBorrow = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
183
183
  const { t } = (0, i18n_1.useTranslation)("header");
184
- return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "borrow", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.MoneyTransfer, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("borrowMenu") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("borrowDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "mint", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Deposit, { className: "color-grey h-a w-3 block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("mintStablecoin") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("mintStablecoinDesc") })] })] })] }) }));
184
+ return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("borrow"), domain: domain, to: "borrow", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.MoneyTransfer, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("borrowMenu") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("borrowDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("mint"), domain: domain, to: "mint", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Deposit, { className: "color-grey h-a w-3 block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("mintStablecoin") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("mintStablecoinDesc") })] })] })] }) }));
185
185
  };
186
- const SubUtilities = ({ domain, routingElement, useRef, className, }) => {
186
+ const SubUtilities = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
187
187
  const { t } = (0, i18n_1.useTranslation)("header");
188
- return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)("a", { href: "https://ai.autorujira.app/", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Terminal, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600", children: [t("rujiAi"), (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("rujiAiDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "analytics", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartMixed, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("analytics") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("analyticsDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "buy", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.CreditCard, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("buyCrypto") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("buyCryptoDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://daodao.zone", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Users, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("daodao"), " ", (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("daodaoDesc") })] })] })] }) }));
188
+ return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)("a", { href: "https://ai.autorujira.app/", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Terminal, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600", children: [t("rujiAi"), (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("rujiAiDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("analytics"), domain: domain, to: "analytics", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartMixed, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("analytics") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("analyticsDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("buy"), domain: domain, to: "buy", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.CreditCard, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("buyCrypto") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("buyCryptoDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://daodao.zone", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Users, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("daodao"), " ", (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("daodaoDesc") })] })] })] }) }));
189
189
  };
190
- const SubEntertainment = ({ domain, routingElement, useRef, className, }) => {
190
+ const SubEntertainment = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
191
191
  const { t } = (0, i18n_1.useTranslation)("header");
192
- return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "leaderboard", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Trophy, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("leagues") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("leaguesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "games", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Gamepad, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("games") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("gamesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "predict", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUser, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("predict") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("predictDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "omniverse", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Nodes, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("omniverse") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("omniverseDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "nfts", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.NFT, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("collections") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("collectionsDesc") })] })] })] }) }));
192
+ return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("leaderboard"), domain: domain, to: "leaderboard", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Trophy, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("leagues") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("leaguesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("games"), domain: domain, to: "games", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Gamepad, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("games") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("gamesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("predict"), domain: domain, to: "predict", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUser, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("predict") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("predictDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("omniverse"), domain: domain, to: "omniverse", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Nodes, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("omniverse") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("omniverseDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("nfts"), domain: domain, to: "nfts", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.NFT, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("collections") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("collectionsDesc") })] })] })] }) }));
193
193
  };
194
- const SubLearn = ({ domain, routingElement, useRef, className }) => {
194
+ const SubLearn = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
195
195
  const { t } = (0, i18n_1.useTranslation)("header");
196
- return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "getstarted", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Graduate, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("getStarted") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("getStartedDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "ecosystem", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Earth, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("ecosystem") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("ecosystemDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "education", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Book, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("education") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("educationDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://docs.rujira.network/", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Code, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("documentation"), " ", (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("documentationDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: " https://docs.rujira.network/developers/getting-started", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Terminal, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("developers"), (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("developersDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "support", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Support, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("support") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("supportDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://medium.com/rujiranetwork", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Medium, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("articles"), " ", (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("articlesDesc") })] })] })] }) }));
196
+ return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("get-started"), domain: domain, to: "get-started", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Graduate, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("getStarted") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("getStartedDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("support"), domain: domain, to: "support", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Support, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("support") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("educationDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://docs.rujira.network/", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Code, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("documentation"), " ", (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("documentationDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://docs.rujira.network/developers/getting-started", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Terminal, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("developers"), (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("developersDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("faq"), domain: domain, to: "faq", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Info, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("commonQuestions") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("supportDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("articles"), domain: domain, to: "articles", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.History, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("articles") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("articlesDesc") })] })] })] }) }));
197
197
  };
@@ -5,10 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const fixedForwardRef = react_1.forwardRef;
7
7
  const UnwrappedAnyComponent = (props, ref) => {
8
- const { as: Comp = "a", children, domain, ...rest } = props;
9
- if (!domain ||
10
- window.location.hostname === "rujira.network" ||
11
- domain === "") {
8
+ const { as: Comp = "a", children, domain, isStatic, ...rest } = props;
9
+ if (!isStatic && props.as !== "a") {
12
10
  return ((0, jsx_runtime_1.jsx)(Comp, { ...rest, ref: ref, children: children }));
13
11
  }
14
12
  return ((0, jsx_runtime_1.jsx)("a", { href: props.to || props.href, ...rest, children: children }));
@@ -55,6 +55,7 @@ const bch_png_1 = require("../../assets/tokens/bch.png");
55
55
  const bfit_png_1 = require("../../assets/tokens/bfit.png");
56
56
  const bnb_png_1 = require("../../assets/tokens/bnb.png");
57
57
  const btc_png_1 = require("../../assets/tokens/btc.png");
58
+ const brune_png_1 = require("../../assets/tokens/brune.png");
58
59
  const busd_png_1 = require("../../assets/tokens/busd.png");
59
60
  const cbbtc_png_1 = require("../../assets/tokens/cbbtc.png");
60
61
  const cheq_png_1 = require("../../assets/tokens/cheq.png");
@@ -243,6 +244,7 @@ const getSRC = (src, ghost) => {
243
244
  bch: bch_png_1.default,
244
245
  bfit: bfit_png_1.default,
245
246
  bnb: bnb_png_1.default,
247
+ brune: brune_png_1.default,
246
248
  btc: btc_png_1.default,
247
249
  btcb: btc_png_1.default,
248
250
  busd: busd_png_1.default,
@@ -378,6 +380,7 @@ const getSRC = (src, ghost) => {
378
380
  xdefi: xdefi_png_1.default,
379
381
  xrp: xrp_png_1.default,
380
382
  xrune: xrune_png_1.default,
383
+ xusk: usk_png_1.default,
381
384
  yfi: yfi_png_1.default,
382
385
  yfuzn: fuzn_png_1.default,
383
386
  yieldeth: yieldeth_png_1.default,
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GitLab = exports.GitHub = exports.Gear = exports.Gavel = exports.Gamepad = exports.Eye = exports.EyeSlash = exports.ExclamationTriangle = exports.ExclamationCircle = exports.External = exports.Ellipsis = exports.Edit = exports.Earth = exports.Discord = exports.Deposit = exports.CreditCard = exports.Combine = exports.Copy = exports.Coins = exports.Code = exports.ClaimSolid = exports.ClaimAll = exports.Claim = exports.CirclesXMark = exports.CircleXMark = exports.CircleUser = exports.CirclePen = exports.Check = exports.ChartUser = exports.ChartUp = exports.ChartUpDown = exports.ChartMixed = exports.Chart = exports.Building = exports.Bolt = exports.Book = exports.BinarySlash = exports.Binary = exports.ArrowUpRight = exports.ArrowUp = exports.ArrowRight = exports.ArrowRightLeft = exports.ArrowLeft = exports.ArrowDown = exports.AngleUpDown = exports.AngleUp = exports.AnglesRight = exports.AngleRight = exports.AngleLeft = exports.AngleDown = void 0;
4
- exports.Terminal = exports.Telegram = exports.Swap = exports.Support = exports.Stopwatch = exports.Star = exports.StarSolid = exports.Stake = exports.StakePlus = exports.StakeMinus = exports.Split = exports.SortUp = exports.SortDown = exports.SortDesc = exports.Sliders = exports.Sort = exports.ShieldX = exports.ShieldCheck = exports.Share = exports.Seedling = exports.Rotate = exports.Rocket = exports.Rabbit = exports.Plus = exports.Play = exports.PieChart = exports.Pause = exports.Orca = exports.NFT = exports.NoGas = exports.Nodes = exports.MoneyTransfer = exports.MinusCircle = exports.Minus = exports.MessageCode = exports.Merge = exports.Medium = exports.Locked = exports.LinkConnect = exports.LinkDisconnect = exports.LinkAngle = exports.Key = exports.Info = exports.Href = exports.Home = exports.History = exports.Grid = exports.Graduate = exports.Glass = exports.GlassChart = void 0;
5
- exports.Xmark = exports.X = exports.Withdraw = exports.Wink = exports.Window = exports.Wallet = exports.Users = exports.Unlocked = exports.Undo = exports.Trophy = exports.TrendUp = exports.TrendDown = exports.Tortoise = exports.Timer = void 0;
4
+ exports.Star = exports.StarSolid = exports.Stake = exports.StakePlus = exports.StakeMinus = exports.Split = exports.SortUp = exports.SortDown = exports.SortDesc = exports.Sliders = exports.Sort = exports.ShieldX = exports.ShieldCheck = exports.Share = exports.Seedling = exports.Rotate = exports.Rocket = exports.Rabbit = exports.Plus = exports.Play = exports.PieChart = exports.Pause = exports.Orca = exports.NFT = exports.NoGas = exports.Nodes = exports.MoneyTransfer = exports.MinusCircle = exports.Minus = exports.MessageCode = exports.Merge = exports.YouTube = exports.TikTok = exports.Reddit = exports.LinkedIn = exports.Instagram = exports.Medium = exports.Locked = exports.LinkConnect = exports.LinkDisconnect = exports.LinkAngle = exports.Key = exports.Info = exports.Href = exports.Home = exports.History = exports.Grid = exports.Graduate = exports.Glass = exports.GlassChart = void 0;
5
+ exports.Xmark = exports.X = exports.Withdraw = exports.Wink = exports.Window = exports.Wallet = exports.Users = exports.Unlocked = exports.Undo = exports.Trophy = exports.TrendUp = exports.TrendDown = exports.Tortoise = exports.Timer = exports.Terminal = exports.Telegram = exports.Swap = exports.Support = exports.Stopwatch = exports.StarAlt = void 0;
6
6
  const jsx_runtime_1 = require("react/jsx-runtime");
7
7
  const react_1 = require("react");
8
8
  const SVG = ({ d, children, ...rest }) => ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", ...rest, children: [d && (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", fillRule: "nonzero", d: d }), children] }));
@@ -198,6 +198,21 @@ exports.Locked.displayName = "Locked";
198
198
  const _Medium = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "M180.5 138C80.813 138 0 219.371 0 319.738s80.819 181.738 180.5 181.738S361 420.111 361 319.738 280.191 138 180.5 138Zm288.25 10.646c-49.845 0-90.245 76.619-90.245 171.095s40.406 171.1 90.251 171.1c49.845 0 90.251-76.619 90.251-171.1H559c0-94.503-40.4-171.095-90.248-171.095h-.002Zm139.506 17.821c-17.526 0-31.735 68.628-31.735 153.274s14.2 153.274 31.735 153.274S640 404.369 640 319.738c0-84.649-14.215-153.271-31.742-153.271h-.002Z" }));
199
199
  exports.Medium = (0, react_1.memo)(_Medium);
200
200
  exports.Medium.displayName = "Medium";
201
+ const _Instagram = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "0 0 16 16", d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.9 3.9 0 0 0-1.417.923A3.9 3.9 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.9 3.9 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.9 3.9 0 0 0-.923-1.417A3.9 3.9 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599s.453.546.598.92c.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.5 2.5 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.5 2.5 0 0 1-.92-.598 2.5 2.5 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233s.008-2.388.046-3.231c.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92s.546-.453.92-.598c.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92m-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217m0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334" }));
202
+ exports.Instagram = (0, react_1.memo)(_Instagram);
203
+ exports.Instagram.displayName = "Instagram";
204
+ const _LinkedIn = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "0 0 20 20", d: "M2.88906 1.01562C1.51417 1.01562 0.615234 1.91845 0.615234 3.10509C0.615234 4.26552 1.48739 5.19409 2.8363 5.19409H2.8624C4.26418 5.19409 5.13657 4.26552 5.13657 3.10509C5.11036 1.91845 4.26418 1.01562 2.88906 1.01562Z M0.852539 6.84473H4.87193V18.9372H0.852539V6.84473Z M14.7375 6.56152C12.5692 6.56152 11.1152 8.59903 11.1152 8.59903V6.84534H7.0957V18.9379H11.115V12.1849C11.115 11.8234 11.1412 11.4625 11.2474 11.2039C11.538 10.482 12.1992 9.73417 13.3096 9.73417C14.764 9.73417 15.3457 10.8431 15.3457 12.4687V18.9379H19.3648V12.0042C19.3648 8.28992 17.3818 6.56152 14.7375 6.56152Z" }));
205
+ exports.LinkedIn = (0, react_1.memo)(_LinkedIn);
206
+ exports.LinkedIn.displayName = "LinkedIn";
207
+ const _Reddit = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "0 0 16 16", d: "M6.167 8a.83.83 0 0 0-.83.83c0 .459.372.84.83.831a.831.831 0 0 0 0-1.661m1.843 3.647c.315 0 1.403-.038 1.976-.611a.23.23 0 0 0 0-.306.213.213 0 0 0-.306 0c-.353.363-1.126.487-1.67.487-.545 0-1.308-.124-1.671-.487a.213.213 0 0 0-.306 0 .213.213 0 0 0 0 .306c.564.563 1.652.61 1.977.61zm.992-2.807c0 .458.373.83.831.83s.83-.381.83-.83a.831.831 0 0 0-1.66 0z M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.828-1.165c-.315 0-.602.124-.812.325-.801-.573-1.9-.945-3.121-.993l.534-2.501 1.738.372a.83.83 0 1 0 .83-.869.83.83 0 0 0-.744.468l-1.938-.41a.2.2 0 0 0-.153.028.2.2 0 0 0-.086.134l-.592 2.788c-1.24.038-2.358.41-3.17.992-.21-.2-.496-.324-.81-.324a1.163 1.163 0 0 0-.478 2.224q-.03.17-.029.353c0 1.795 2.091 3.256 4.669 3.256s4.668-1.451 4.668-3.256c0-.114-.01-.238-.029-.353.401-.181.688-.592.688-1.069 0-.65-.525-1.165-1.165-1.165" }));
208
+ exports.Reddit = (0, react_1.memo)(_Reddit);
209
+ exports.Reddit.displayName = "Reddit";
210
+ const _TikTok = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "4 4 14 15", d: "M13.2 5.2c.6 1.7 1.9 2.9 3.6 3.3v2.1c-1.5-.1-2.7-.7-3.6-1.7v4.9a3.9 3.9 0 1 1-3.9-3.9v2a1.9 1.9 0 1 0 1.9 1.9V5.2h2Z" }));
211
+ exports.TikTok = (0, react_1.memo)(_TikTok);
212
+ exports.TikTok.displayName = "TikTok";
213
+ const _YouTube = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "0 0 16 16", d: "M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z" }));
214
+ exports.YouTube = (0, react_1.memo)(_YouTube);
215
+ exports.YouTube.displayName = "YouTube";
201
216
  const _Merge = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "M64 144c0-8.8 7.2-16 16-16h127.7c15.4 0 29.8 7.3 38.8 19.8l108.9 149.6c3 4.1 7.8 6.6 12.9 6.6h153.1l-52.7-52.7c-6.2-6.2-6.2-16.4 0-22.6 6.2-6.2 16.4-6.2 22.6 0l80 80c6.2 6.2 6.2 16.4 0 22.6l-80 80c-6.2 6.2-16.4 6.2-22.6 0-6.2-6.2-6.2-16.4 0-22.6l52.7-52.7H368.3c-5.1 0-9.9 2.4-12.9 6.6L246.5 492.2c-9 12.4-23.5 19.8-38.8 19.8H80c-8.8 0-16-7.2-16-16s7.2-16 16-16h127.7c5.1 0 9.9-2.4 12.9-6.6l108.9-149.6c1-1.3 2-2.6 3-3.8-1.1-1.2-2.1-2.5-3-3.8L220.6 166.6c-3-4.1-7.8-6.6-12.9-6.6H80c-8.8 0-16-7.2-16-16Z" }));
202
217
  exports.Merge = (0, react_1.memo)(_Merge);
203
218
  exports.Merge.displayName = "Merge";
@@ -291,6 +306,9 @@ exports.StarSolid.displayName = "StarSolid";
291
306
  const _Star = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "m258.475 232.8 61.4-126.5 61.4 126.5c4.6 9.5 13.6 16.1 24.1 17.7l137.4 20.3-99.8 98.8c-7.4 7.3-10.8 17.8-9 28.1l23.5 139.5-122.5-65.5c-9.4-5-20.7-5-30.2 0l-122.6 65.5 23.5-139.5c1.7-10.3-1.6-20.7-9-28.1l-99.7-98.8 137.4-20.3c10.5-1.5 19.5-8.2 24.1-17.7Zm198.4 340.3c8.1 4.3 17.9 3.7 25.3-1.7 7.4-5.4 11.2-14.5 9.7-23.5l-26.3-155.5 111.2-110.2c6.5-6.4 8.7-15.9 5.9-24.5-2.8-8.6-10.3-14.9-19.3-16.3l-153.3-22.6-68.6-141.3c-4-8.3-12.4-13.5-21.6-13.5-9.2 0-17.6 5.2-21.6 13.5l-68.6 141.3-153.2 22.7c-9 1.3-16.5 7.6-19.3 16.3-2.8 8.7-.5 18.1 5.9 24.5l111.1 110.1-26.2 155.5c-1.5 9 2.2 18.1 9.7 23.5 7.5 5.4 17.3 6 25.3 1.7l137-73.2 137 73.2h-.1Z" }));
292
307
  exports.Star = (0, react_1.memo)(_Star);
293
308
  exports.Star.displayName = "Star";
309
+ const _StarAlt = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "m320 0 55.211 264.789L640 320l-264.789 55.211L320 640l-55.211-264.789L0 320l264.789-55.211z" }));
310
+ exports.StarAlt = (0, react_1.memo)(_StarAlt);
311
+ exports.StarAlt.displayName = "StarAlt";
294
312
  const _Stopwatch = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "M224 80c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16s-7.2 16-16 16h-64v64.6c49.4 3.8 94 24.8 127.7 57l37-37c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6l-38.2 38.2C512 276.6 528 320.4 528 368c0 114.9-93.1 208-208 208s-208-93.1-208-208c0-109.5 84.6-199.2 192-207.4V96h-64c-8.8 0-16-7.2-16-16Zm-80 288c0 97.202 78.798 176 176 176s176-78.798 176-176-78.798-176-176-176-176 78.798-176 176Zm192-96v112c0 8.8-7.2 16-16 16s-16-7.2-16-16V272c0-8.8 7.2-16 16-16s16 7.2 16 16Z" }));
295
313
  exports.Stopwatch = (0, react_1.memo)(_Stopwatch);
296
314
  exports.Stopwatch.displayName = "Stopwatch";
@@ -29,19 +29,22 @@ const format = (v, decimals) => {
29
29
  const lead = str.slice(0, -decimals);
30
30
  return (0, react_number_format_1.numericFormatter)(`${lead.length ? lead : "0"}.${str.slice(-decimals)}`, { decimalScale: decimals });
31
31
  };
32
- const DecimalInput = ({ amount, decimals = 8, onAmountchange, disabled, ...rest }) => {
32
+ const DecimalInput = ({ amount, decimals = 8, onAmountchange, disabled, allowNegative = false, ...rest }) => {
33
33
  const formatted = format(amount, decimals);
34
34
  const trimmed = formatted.replace(trim, "");
35
35
  const [previousValue, setPreviousValue] = (0, react_1.useState)(trimmed);
36
36
  const [previousAmount, setPreviousAmount] = (0, react_1.useState)(amount);
37
- const onValueChange = (0, react_1.useCallback)((values) => {
37
+ const onValueChange = (0, react_1.useCallback)((values, sourceInfo) => {
38
38
  // `values.value` is always a dot separated decimal
39
39
  const intValue = parseFixed(values.value, decimals);
40
40
  setPreviousValue(values.value);
41
41
  setPreviousAmount(intValue);
42
- onAmountchange(intValue);
42
+ // Only propagate changes triggered by the user, not programmatic value prop updates
43
+ if (sourceInfo.source === "event") {
44
+ onAmountchange(intValue);
45
+ }
43
46
  }, [decimals]);
44
- return ((0, jsx_runtime_1.jsx)(react_number_format_1.NumericFormat, { allowNegative: false, decimalScale: decimals, decimalSeparator: decimal, thousandSeparator: group, disabled: disabled, placeholder: "0", maxLength: 35, value:
47
+ return ((0, jsx_runtime_1.jsx)(react_number_format_1.NumericFormat, { allowNegative: allowNegative, decimalScale: decimals, decimalSeparator: decimal, thousandSeparator: group, disabled: disabled, placeholder: "0", maxLength: 35, value:
45
48
  // Unique case if decimal digits are deleted up to the separator, causing
46
49
  // we want to retain the decimal separator in the input
47
50
  // Secondly don't change the input value to `trimmed` if the value hassn't changed
@@ -5,6 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const clsx_1 = require("clsx");
6
6
  const react_1 = require("react");
7
7
  const helpers_1 = require("../../helpers");
8
+ const fiat_1 = require("../../utils/fiat");
8
9
  const i18n_1 = require("../../i18n");
9
10
  const Button_1 = require("../buttons/Button");
10
11
  const IconDenom_1 = require("../icons/IconDenom");
@@ -15,7 +16,7 @@ const DenomInput = ({ symbol, amount, decimals, onChangeAmount, disabled, readOn
15
16
  const { t } = (0, i18n_1.useTranslation)("common");
16
17
  const input = (0, react_1.useRef)(null);
17
18
  const id = (0, react_1.useMemo)(() => (0, helpers_1.uuidv4)(), []);
18
- const fiatAmount = (0, react_1.useMemo)(() => (0, helpers_1.toFiatAmount)(fiat?.price, amount), [fiat?.price, amount]);
19
+ const fiatAmount = (0, react_1.useMemo)(() => (0, fiat_1.toFiatAmount)(fiat?.price, amount), [fiat?.price, amount]);
19
20
  return ((0, jsx_runtime_1.jsxs)("div", { className: (0, clsx_1.default)({
20
21
  "denom-select condensed": true,
21
22
  "denom-select--full": full,