@lifi/widget 2.0.0 → 2.1.0

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 (84) hide show
  1. package/cjs/components/Header/NavigationHeader.js +2 -2
  2. package/cjs/components/Header/index.d.ts +0 -1
  3. package/cjs/components/Header/index.js +0 -1
  4. package/cjs/components/Step/StepList.d.ts +2 -1
  5. package/cjs/components/Step/StepList.js +4 -2
  6. package/cjs/components/StepActions/StepActions.js +12 -3
  7. package/cjs/config/version.d.ts +1 -1
  8. package/cjs/config/version.js +1 -1
  9. package/cjs/hooks/useRoutes.js +2 -4
  10. package/cjs/i18n/en.json +2 -2
  11. package/cjs/i18n/id.json +61 -60
  12. package/cjs/i18n/it.json +61 -60
  13. package/cjs/i18n/pt.json +62 -61
  14. package/cjs/i18n/th.json +61 -60
  15. package/cjs/i18n/uk.json +50 -49
  16. package/cjs/i18n/vi.json +64 -63
  17. package/cjs/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +3 -3
  18. package/cjs/pages/RoutesPage/RoutesPage.js +3 -3
  19. package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +3 -3
  20. package/cjs/pages/TransactionDetailsPage/ContactSupportButton.d.ts +5 -0
  21. package/cjs/pages/TransactionDetailsPage/ContactSupportButton.js +25 -0
  22. package/cjs/pages/TransactionDetailsPage/TransactionDetailsPage.js +6 -5
  23. package/cjs/pages/TransactionHistoryPage/TransactionHistoryPage.js +3 -3
  24. package/cjs/pages/TransactionPage/ExchangeRateBottomSheet.js +2 -1
  25. package/cjs/pages/TransactionPage/StatusBottomSheet.style.js +5 -1
  26. package/cjs/pages/TransactionPage/TransactionPage.js +8 -4
  27. package/cjs/stores/StoreProvider.js +2 -1
  28. package/cjs/stores/header/index.d.ts +1 -0
  29. package/cjs/stores/header/index.js +17 -0
  30. package/cjs/{components/Header → stores/header}/types.d.ts +4 -2
  31. package/cjs/stores/header/useHeaderStore.d.ts +8 -0
  32. package/cjs/stores/header/useHeaderStore.js +56 -0
  33. package/cjs/stores/index.d.ts +2 -1
  34. package/cjs/stores/index.js +2 -1
  35. package/cjs/stores/routes/utils.d.ts +1 -0
  36. package/cjs/stores/routes/utils.js +5 -1
  37. package/cjs/types/events.d.ts +6 -1
  38. package/cjs/types/events.js +1 -0
  39. package/components/Header/NavigationHeader.js +2 -2
  40. package/components/Header/index.d.ts +0 -1
  41. package/components/Header/index.js +0 -1
  42. package/components/Step/StepList.d.ts +2 -1
  43. package/components/Step/StepList.js +4 -2
  44. package/components/StepActions/StepActions.js +12 -3
  45. package/config/version.d.ts +1 -1
  46. package/config/version.js +1 -1
  47. package/hooks/useRoutes.js +2 -4
  48. package/i18n/en.json +2 -2
  49. package/i18n/id.json +61 -60
  50. package/i18n/it.json +61 -60
  51. package/i18n/pt.json +62 -61
  52. package/i18n/th.json +61 -60
  53. package/i18n/uk.json +50 -49
  54. package/i18n/vi.json +64 -63
  55. package/package.json +15 -29
  56. package/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +4 -4
  57. package/pages/RoutesPage/RoutesPage.js +4 -4
  58. package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +4 -4
  59. package/pages/TransactionDetailsPage/ContactSupportButton.d.ts +5 -0
  60. package/pages/TransactionDetailsPage/ContactSupportButton.js +21 -0
  61. package/pages/TransactionDetailsPage/TransactionDetailsPage.js +7 -6
  62. package/pages/TransactionHistoryPage/TransactionHistoryPage.js +4 -4
  63. package/pages/TransactionPage/ExchangeRateBottomSheet.js +2 -1
  64. package/pages/TransactionPage/StatusBottomSheet.style.js +5 -1
  65. package/pages/TransactionPage/TransactionPage.js +9 -5
  66. package/stores/StoreProvider.js +2 -1
  67. package/stores/header/index.d.ts +1 -0
  68. package/stores/header/index.js +1 -0
  69. package/{components/Header → stores/header}/types.d.ts +4 -2
  70. package/stores/header/useHeaderStore.d.ts +8 -0
  71. package/stores/header/useHeaderStore.js +49 -0
  72. package/stores/index.d.ts +2 -1
  73. package/stores/index.js +2 -1
  74. package/stores/routes/utils.d.ts +1 -0
  75. package/stores/routes/utils.js +3 -0
  76. package/tsconfig.cjs.tsbuildinfo +1 -1
  77. package/types/events.d.ts +6 -1
  78. package/types/events.js +1 -0
  79. package/cjs/components/Header/useHeaderStore.d.ts +0 -2
  80. package/cjs/components/Header/useHeaderStore.js +0 -28
  81. package/components/Header/useHeaderStore.d.ts +0 -2
  82. package/components/Header/useHeaderStore.js +0 -25
  83. /package/cjs/{components/Header → stores/header}/types.js +0 -0
  84. /package/{components/Header → stores/header}/types.js +0 -0
package/cjs/i18n/uk.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
+ "language": {
3
+ "name": "Українська",
4
+ "title": "Мова"
5
+ },
6
+ "format": {
7
+ "currency": "{{value, currency(currency: USD)}}",
8
+ "number": "{{value, number(maximumFractionDigits: 9)}}"
9
+ },
2
10
  "button": {
3
11
  "auto": "Авто",
12
+ "bridge": "Бридж",
4
13
  "buy": "Придбати",
5
14
  "buyNow": "Придбати",
6
15
  "cancel": "Скасувати",
@@ -12,81 +21,74 @@
12
21
  "delete": "Видалити",
13
22
  "disconnect": "Від'єднатись",
14
23
  "done": "Готово",
24
+ "exchange": "Обмін",
15
25
  "getGas": "Отримати газ",
16
26
  "hide": "Сховати",
17
27
  "learnMore": "Докладніше",
18
- "lifiSwap": "LI.FI Swap",
28
+ "lifiCheckout": "LI.FI Checkout",
29
+ "lifiExchange": "LI.FI Обмін",
19
30
  "light": "Світла",
20
31
  "max": "макс",
21
32
  "ok": "Ок",
22
- "okay": "Добре",
23
- "removeSwap": "Видалити своп",
33
+ "removeTransaction": "Видалити транзакцію",
24
34
  "reset": "Скинути",
25
35
  "resetSettings": "Скинути налаштування",
26
- "restartSwap": "Перезапустити своп",
27
- "reviewGasSwap": "Переглянути своп газу",
36
+ "reviewBridge": "Переглянути бридж",
28
37
  "reviewPurchase": "Перегляд покупки",
29
38
  "reviewSwap": "Переглянути своп",
30
39
  "seeDetails": "Детальніше",
31
40
  "showAll": "Показати всі",
32
- "startGasSwap": "Почати своп газу",
33
- "startSwap": "Почати своп",
41
+ "startBridging": "Почати бридж",
42
+ "startSwapping": "Почати своп",
34
43
  "swap": "Своп",
35
44
  "tryAgain": "Спробувати ще раз",
36
45
  "viewCoverage": "Переглянути покриття",
37
46
  "viewOnExplorer": "Переглянути в оглядачі"
38
47
  },
39
- "format": {
40
- "currency": "{{value, currency(currency: USD)}}",
41
- "number": "{{value, number(maximumFractionDigits: 9)}}"
42
- },
43
48
  "header": {
44
- "activeSwaps": "Активні свопи",
49
+ "activeTransactions": "Активні транзакції",
45
50
  "bridge": "Бридж",
46
51
  "checkout": "Розрахунок",
52
+ "exchange": "Обмін",
47
53
  "from": "Своп з",
48
54
  "gas": "Газ",
49
- "gasSwap": "Своп газу",
50
55
  "payWith": "Сплатити за допомогою",
51
56
  "purchase": "Купівля",
52
57
  "purchaseDetails": "Деталі покупки",
53
- "routes": "Ви отримаєте",
54
58
  "selectChain": "Виберіть чейн",
55
59
  "selectWallet": "Виберіть свій гаманець",
56
60
  "settings": "Налаштування",
57
61
  "swap": "Своп",
58
- "swapDetails": "Деталі свопу",
59
- "swapHistory": "Історія свопів",
60
62
  "to": "Своп на",
61
- "walletConnected": "Гаманець підʼєднано"
62
- },
63
- "language": {
64
- "name": "Українська",
65
- "title": "Мова"
63
+ "transactionDetails": "Деталі транзакції",
64
+ "transactionHistory": "Історія транзакцій",
65
+ "walletConnected": "Гаманець підʼєднано",
66
+ "youGet": "Ви отримаєте"
66
67
  },
67
68
  "info": {
68
69
  "message": {
69
70
  "autoRefuel": "У вас замало {{chainName}} газу. Продовжуючи, ви отримаєте достатньо газу, щоб завершити обмін.",
70
- "emptyActiveSwaps": "Тут відображатимуться незавершені свопи. Після завершення ви можете знайти їх в історії свопів.",
71
- "emptySwapHistory": "Історія свопів зберігається лише локально та буде видалена, якщо ви очистите дані браузера.",
71
+ "emptyActiveTransactions": "Тут показуються незавершені транзакції. Після завершення ви можете знайти їх в історії транзакцій.",
72
72
  "emptyTokenList": "Нам не вдалося знайти токени на {{chainName}}, або у вас їх немає. Будь ласка, повторіть пошук або виберіть інший чейн.",
73
+ "emptyTransactionHistory": "Історія транзакцій зберігається лише локально та буде видалена, якщо ви очистите дані браузера.",
73
74
  "routeNotFound": "Спробуйте іншу комбінацію токенів."
74
75
  },
75
76
  "title": {
76
77
  "autoRefuel": "Отримати газ",
77
- "emptyActiveSwaps": "Немає активних свопів",
78
- "emptySwapHistory": "Немає останніх свопів",
78
+ "emptyActiveTransactions": "Немає активних транзакцій",
79
+ "emptyTransactionHistory": "Немає останніх транзакцій",
79
80
  "routeNotFound": "Немає доступних маршрутів"
80
81
  }
81
82
  },
82
83
  "success": {
83
84
  "message": {
84
- "swapPartiallySuccessful": "Ми намагалися завершити своп, але {{tool}} не вистачило ліквідності токену {{tokenSymbol}}.",
85
- "purchaseSuccessful": "Тепер ви маєте {{assetName}} в {{walletAddress}} гаманці на ланцюжку {{chainName}}.",
86
- "swapSuccessful": "Зараз є {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} у гаманці {{walletAddress}} на чейні {{chainName}}."
85
+ "exchangePartiallySuccessful": "Ми намагалися завершити транзакцію, але {{tool}} не вистачило ліквідності токену {{tokenSymbol}}.",
86
+ "exchangeSuccessful": "Зараз є {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} у гаманці {{walletAddress}} на чейні {{chainName}}.",
87
+ "purchaseSuccessful": "Тепер ви маєте {{assetName}} в {{walletAddress}} гаманці на ланцюжку {{chainName}}."
87
88
  },
88
89
  "title": {
89
- "gasSwapSuccessful": "Своп газу успішний",
90
+ "bridgePartiallySuccessful": "Бридж частково успішний",
91
+ "bridgeSuccessful": "Бридж успішний",
90
92
  "purchaseSuccessful": "Покупка успішна",
91
93
  "refundIssued": "Здійснено повернення коштів",
92
94
  "swapPartiallySuccessful": "Своп частково успішний",
@@ -95,8 +97,8 @@
95
97
  },
96
98
  "warning": {
97
99
  "message": {
98
- "deleteActiveSwaps": "Активні свопи зберігаються лише локально й не можуть бути відновлені, якщо ви їх видалите.",
99
- "deleteSwapHistory": "Історія свопів зберігається лише локально й не може бути відновлена, якщо ви їх видалите.",
100
+ "deleteActiveTransactions": "Активні транзакції зберігаються лише локально й не можуть бути відновлені, якщо ви їх видалите.",
101
+ "deleteTransactionHistory": "Історія транзакцій зберігається лише локально й не може бути відновлена, якщо ви їх видалите.",
100
102
  "highValueLoss": "Вартість отриманих токенів значно нижча, ніж обмінені токени та вартість транзакції.",
101
103
  "insufficientFunds": "У вас недостатньо коштів для здійснення свопу.",
102
104
  "insufficientGas": "Для завершення свопа у вас недостатньо газу. Вам необхідно додати хоча б:",
@@ -104,9 +106,9 @@
104
106
  "resetSettings": "Це скине пріоритет вашого маршруту, прослизання, ціну газу, увімкнені бриджі та обмінники."
105
107
  },
106
108
  "title": {
107
- "deleteActiveSwaps": "Видалити всі активні свопи?",
108
- "deleteSwap": "Видалити цей своп?",
109
- "deleteSwapHistory": "Видалити історію свопів?",
109
+ "deleteActiveTransactions": "Видалити всі активні транзакції?",
110
+ "deleteTransaction": "Видалити цю транзакцію?",
111
+ "deleteTransactionHistory": "Видалити історію транзакцій?",
110
112
  "highValueLoss": "Висока втрата вартості",
111
113
  "insufficientGas": "Недостатня кількість газу",
112
114
  "rateChanged": "Курс змінився",
@@ -127,7 +129,6 @@
127
129
  "allowanceRequired": "Недостатня дозволена кількість",
128
130
  "balanceIsTooLow": "Баланс занадто низький",
129
131
  "chainSwitch": "Потрібно переключити чейн.",
130
- "failed": "Помилка обміну.",
131
132
  "gasLimitIsTooLow": "Занадто низький ліміт газу",
132
133
  "insufficientFunds": "Недостатньо коштів",
133
134
  "slippageNotMet": "Не виконані умови прослизання",
@@ -142,6 +143,19 @@
142
143
  "walletEnsAddressInvalid": "Адреса гаманця недійсна або мережа не підтримує ENS."
143
144
  }
144
145
  },
146
+ "tooltip": {
147
+ "additionalProviderFee": "Додаткові комісії бриджів, обмінників та послуг.",
148
+ "estimatedNetworkFee": "Орієнтовна мережева плата.",
149
+ "estimatedTime": "Орієнтовний час виконання свопу в хвилинах.",
150
+ "notFound": {
151
+ "text": "Ми не змогли знайти цю сторінку.",
152
+ "title": "404"
153
+ },
154
+ "numberOfSteps": "Кількість кроків свопу. Кожен крок може містити 1-3 транзакції, які потребують підпису.",
155
+ "progressToNextUpdate": "Зображені дані автоматично оновляться через {{value}} секунд. Натисніть тут, щоб оновити вручну.",
156
+ "recommended": "Дешевий маршрут, який балансує складність і легкість використання.",
157
+ "settingsModified": "Налаштування (змінено)"
158
+ },
145
159
  "main": {
146
160
  "crossStepDetails": "Бридж з {{from}} до {{to}} через {{tool}}",
147
161
  "currentAmount": "Поточна сума",
@@ -198,6 +212,7 @@
198
212
  "selectToken": "Виберіть токен",
199
213
  "sendToAddress": "Відправити на {{address}}",
200
214
  "sendToWallet": "Надіслати на інший гаманець",
215
+ "sending": "Відправлення",
201
216
  "sentToAddress": "Відправлено на {{address}}",
202
217
  "stepBridge": "Бридж",
203
218
  "stepBridgeAndBuy": "Бридж та покупка",
@@ -207,7 +222,6 @@
207
222
  "stepSwapAndBuy": "Своп та покупка",
208
223
  "supportId": "Ідентифікатор підтримки",
209
224
  "swapStepDetails": "Своп на {{chain}} через {{tool}}",
210
- "swapping": "Обмін",
211
225
  "tags": {
212
226
  "cheapest": "Дешевий",
213
227
  "fastest": "Швидкий",
@@ -243,19 +257,6 @@
243
257
  "showDestinationWallet": "Показати цільовий гаманець",
244
258
  "slippage": "Прослизання"
245
259
  },
246
- "tooltip": {
247
- "additionalProviderFee": "Додаткові комісії бриджів, обмінників та послуг.",
248
- "estimatedNetworkFee": "Орієнтовна мережева плата.",
249
- "estimatedTime": "Орієнтовний час виконання свопу в хвилинах.",
250
- "notFound": {
251
- "text": "Ми не змогли знайти цю сторінку.",
252
- "title": "404"
253
- },
254
- "numberOfSteps": "Кількість кроків свопу. Кожен крок може містити 1-3 транзакції, які потребують підпису.",
255
- "progressToNextUpdate": "Зображені дані автоматично оновляться через {{value}} секунд. Натисніть тут, щоб оновити вручну.",
256
- "recommended": "Дешевий маршрут, який балансує складність і легкість використання.",
257
- "settingsModified": "Налаштування (змінено)"
258
- },
259
260
  "wallet": {
260
261
  "extensionNotFound": "Перш ніж вибрати цей гаманець, переконайтеся, що в браузері активне лише розширення {{name}}."
261
262
  }
package/cjs/i18n/vi.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
+ "language": {
3
+ "name": "Tiếng Việt",
4
+ "title": "Ngôn ngữ"
5
+ },
6
+ "format": {
7
+ "currency": "{{value, currency(currency: USD)}}",
8
+ "number": "{{value, number(maximumFractionDigits: 9)}}"
9
+ },
2
10
  "button": {
3
11
  "auto": "Tự động",
12
+ "bridge": "Cầu",
4
13
  "buy": "Mua",
5
14
  "buyNow": "Mua ngay bây giờ",
6
15
  "cancel": "Huỷ bỏ",
@@ -12,94 +21,74 @@
12
21
  "delete": "Xóa",
13
22
  "disconnect": "Ngắt kết nối",
14
23
  "done": "Hoàn thành",
24
+ "exchange": "Hoán đổi",
15
25
  "getGas": "Thiết lập gas",
16
26
  "hide": "Ẩn",
17
27
  "learnMore": "Xem thêm",
18
- "lifiSwap": "LI.FI Swap",
28
+ "lifiCheckout": "LI.FI Checkout",
29
+ "lifiExchange": "LI.FI Exchange",
19
30
  "light": "Sáng",
20
31
  "max": "Tối đa",
21
32
  "ok": "Ok",
22
- "okay": "Okay",
23
- "removeSwap": "Xoá",
33
+ "removeTransaction": "Xoá giao dịch",
24
34
  "reset": "Đặt lại",
25
35
  "resetSettings": "Đặt lại cài đặt",
26
- "restartSwap": "Thiết lập lại",
27
- "reviewGasSwap": "Xem lại gas swap",
36
+ "reviewBridge": "Xem xét cầu",
28
37
  "reviewPurchase": "Đánh giá thanh toán",
29
38
  "reviewSwap": "Xem lại Swap",
30
39
  "seeDetails": "Xem chi tiết",
31
40
  "showAll": "Hiển thị tất cả",
32
- "startGasSwap": "Start gas swap",
33
- "startSwap": "Bắt đầu Swap",
41
+ "startBridging": "Bắt đầu đi cầu",
42
+ "startSwapping": "Bắt đầu Swap",
34
43
  "swap": "Swap",
35
44
  "tryAgain": "Thử lại",
36
45
  "viewCoverage": "Xem phạm vi bảo hiểm",
37
46
  "viewOnExplorer": "Xem tại Explorer"
38
47
  },
39
- "format": {
40
- "currency": "{{value, currency(currency: USD)}}",
41
- "number": "{{value, number(maximumFractionDigits: 9)}}"
42
- },
43
48
  "header": {
44
- "activeSwaps": "Active swaps",
45
- "bridge": "Bridge",
49
+ "activeTransactions": "Các giao dịch hiện tại",
50
+ "bridge": "Cầu",
46
51
  "checkout": "Thanh toán",
52
+ "exchange": "Hoán đổi",
47
53
  "from": "Swap từ",
48
54
  "gas": "Gas",
49
- "gasSwap": "Gas swap",
50
55
  "payWith": "Thanh toán bằng",
51
56
  "purchase": "Thanh toán",
52
57
  "purchaseDetails": "Thông tin chi tiết",
53
- "routes": "Kết quả",
54
58
  "selectChain": "Chọn chain",
55
59
  "selectWallet": "Chọn ví",
56
60
  "settings": "Cài đặt",
57
61
  "swap": "Swap",
58
- "swapDetails": "Thông tin swap",
59
- "swapHistory": "Lịch sử Swap",
60
62
  "to": "Swap từ",
61
- "walletConnected": "Wallet connected"
62
- },
63
- "language": {
64
- "name": "Tiếng Việt",
65
- "title": "Ngôn ngữ"
66
- },
67
- "settings": {
68
- "enabledBridges": "Số lượng cầu khả dụng",
69
- "enabledExchanges": "Số lượng sàn giao dịch khả dụng",
70
- "gasPrice": {
71
- "fast": "Nhanh",
72
- "normal": "Bình thường",
73
- "slow": "Chậm",
74
- "title": "Giá gas"
75
- },
76
- "routePriority": "Tuyền đường ưu tiên",
77
- "showDestinationWallet": "Hiển thị địa chỉ ví nhận",
78
- "slippage": "Trượt giá"
63
+ "transactionDetails": "Chi tiết giao dịch",
64
+ "transactionHistory": "Lịch sử giao dịch",
65
+ "walletConnected": "Wallet connected",
66
+ "youGet": "Bạn nhận"
79
67
  },
80
68
  "info": {
81
69
  "message": {
82
70
  "autoRefuel": "Gas trên {{chainName}} chain của bạn đang thấp. Để tiếp tục, bạn nên có thêm gas để hoàn thành việc swap.",
83
- "emptyActiveSwaps": "Các lệnh swap đang xử lý sẽ được hiện ở đây. Khi nào lệnh hoàn tất, bạn có thể kiểm tra lại tại mục lịch sử swap.",
84
- "emptySwapHistory": "Lịch sử Swap chỉ được lưu trữ cục bộ và sẽ bị xóa nếu bạn xóa dữ liệu trình duyệt của mình.",
71
+ "emptyActiveTransactions": "Các lệnh swap đang xử lý sẽ được hiện ở đây. Khi nào lệnh hoàn tất, bạn có thể kiểm tra lại tại mục lịch sử swap.",
85
72
  "emptyTokenList": "Chúng tôi không thể tìm được Token ở {{chainName}} chain hoặc số dư của bạn không có. Vui lòng thử tìm kiếm lại hoặc chọn một chain khác.",
73
+ "emptyTransactionHistory": "Lịch sử Swap chỉ được lưu trữ cục bộ và sẽ bị xóa nếu bạn xóa dữ liệu trình duyệt của mình.",
86
74
  "routeNotFound": "Vui lòng chọn lại cặp token khác."
87
75
  },
88
76
  "title": {
89
77
  "autoRefuel": "Thiết lập Gas",
90
- "emptyActiveSwaps": "Swap hiện không hoạt động",
91
- "emptySwapHistory": "Khônglệnh Swap gần đây",
78
+ "emptyActiveTransactions": "Không thông tin giao dịch hiện tại",
79
+ "emptyTransactionHistory": "Chưagiao dịch",
92
80
  "routeNotFound": "Không có đường đi"
93
81
  }
94
82
  },
95
83
  "success": {
96
84
  "message": {
97
- "swapPartiallySuccessful": "Chúng tôi đã cố gắng hoàn thành việc hoán đổi, nhưng {{tool}} đã cạn thanh khoản cho token {{tokenSymbol}}.",
98
- "purchaseSuccessful": "Hiện tại bạn đang nắm giữ {{assetName}} tại ví {{walletAddress}} trên chain {{chainName}}.",
99
- "swapSuccessful": "Hiện tại {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} trong ví {{walletAddress}} tại {{chainName}} chain."
85
+ "exchangePartiallySuccessful": "Chúng tôi đã cố gắng hoàn thành việc hoán đổi, nhưng {{tool}} đã cạn thanh khoản cho token {{tokenSymbol}}.",
86
+ "exchangeSuccessful": "Hiện tại {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} trong ví {{walletAddress}} tại {{chainName}} chain.",
87
+ "purchaseSuccessful": "Hiện tại bạn đang nắm giữ {{assetName}} tại ví {{walletAddress}} trên chain {{chainName}}."
100
88
  },
101
89
  "title": {
102
- "gasSwapSuccessful": "Gas Swap thành công",
90
+ "bridgePartiallySuccessful": "Swap thành công một phần",
91
+ "bridgeSuccessful": "Bridge thành công",
103
92
  "purchaseSuccessful": "Mua thành công",
104
93
  "refundIssued": "Đã Refund",
105
94
  "swapPartiallySuccessful": "Swap thành công một phần",
@@ -108,8 +97,8 @@
108
97
  },
109
98
  "warning": {
110
99
  "message": {
111
- "deleteActiveSwaps": "Các giao dịch đang hoạt động chỉ được lưu trữ cục bộ và không thể phục hồi nếu bạn xóa chúng.",
112
- "deleteSwapHistory": "Lịch sử Swap chỉ lưu trữ cục bộ và không thể phục hồi khi bạn xoá chúng.",
100
+ "deleteActiveTransactions": "Các giao dịch đang hoạt động chỉ được lưu trữ cục bộ và không thể phục hồi nếu bạn xóa chúng.",
101
+ "deleteTransactionHistory": "Lịch sử Swap chỉ lưu trữ cục bộ và không thể phục hồi khi bạn xoá chúng.",
113
102
  "highValueLoss": "Giá trị của token nhận được đang thấp hơn rất nhiều so với token được swap và chi phí giao dịch.",
114
103
  "insufficientFunds": "Bạn không có đủ tiền để thực hiện tác vụ này.",
115
104
  "insufficientGas": "Bạn không đủ gas để thực hiện swap. Bạn cần thêm ít nhất:",
@@ -117,9 +106,9 @@
117
106
  "resetSettings": "Thao tác này sẽ đặt lại mức độ ưu tiên của tuyến đường, độ trượt giá, giá gas, bridge và sàn giao dịch."
118
107
  },
119
108
  "title": {
120
- "deleteActiveSwaps": "Xoá tất cả các lệnh swap đang hoạt động?",
121
- "deleteSwap": "Xoá lệnh swap?",
122
- "deleteSwapHistory": "Xoá lịch sử Swap?",
109
+ "deleteActiveTransactions": "Xóa tất cả giao dịch đang thực hiện?",
110
+ "deleteTransaction": "Xóa giao dịch này?",
111
+ "deleteTransactionHistory": "Xoá lịch sử giao dịch?",
123
112
  "highValueLoss": "Tổn thất lớn",
124
113
  "insufficientGas": "Không đủ gas",
125
114
  "rateChanged": "Tỉ giá đã thay đổi",
@@ -140,7 +129,6 @@
140
129
  "allowanceRequired": "Sự cho phép không đủ",
141
130
  "balanceIsTooLow": "Số dư quá thấp",
142
131
  "chainSwitch": "Yêu cầu đổi chain",
143
- "failed": "Việc Swap thất bại",
144
132
  "gasLimitIsTooLow": "Giới hạn gas quá thấp",
145
133
  "insufficientFunds": "Không đủ tài sản",
146
134
  "slippageNotMet": "Điều kiện trượt giá không được đáp ứng",
@@ -155,6 +143,19 @@
155
143
  "walletEnsAddressInvalid": "Địa chỉ ví không hợp lệ hoặc mạng lưới không hỗ trợ ENS."
156
144
  }
157
145
  },
146
+ "tooltip": {
147
+ "additionalProviderFee": "Cầu bổ sung, DEX và phí dịch vụ.",
148
+ "estimatedNetworkFee": "Phí mạng ước tính.",
149
+ "estimatedTime": "Thời gian thực hiện lệnh swap (phút).",
150
+ "notFound": {
151
+ "text": "Chúng tôi không thể tìm thấy trang này.",
152
+ "title": "404"
153
+ },
154
+ "numberOfSteps": "Một số bước swap. Mỗi bước có thể chứa 1-2 giao dịch yêu cầu chữ ký.",
155
+ "progressToNextUpdate": "Thông tin hiển thị sẽ tự động làm mới sau {{value}} giây. Bấm vào đây để cập nhật thủ công.",
156
+ "recommended": "Một tuyến đường giá rẻ cân bằng giữa sự phức tạp và dễ sử dụng.",
157
+ "settingsModified": "Thiết lập (Đã điều chỉnh)"
158
+ },
158
159
  "main": {
159
160
  "crossStepDetails": "Chuyển từ {{from}} đến {{to}} thông qua {{tool}}",
160
161
  "currentAmount": "Số lượng hiện tại",
@@ -211,16 +212,16 @@
211
212
  "selectToken": "Chọn Token",
212
213
  "sendToAddress": "Gửi đến {{address}}",
213
214
  "sendToWallet": "Gửi đến địa chỉ khác",
215
+ "sending": "Đang gửi",
214
216
  "sentToAddress": "Gửi đến {{address}}",
215
- "stepBridge": "Bridge",
217
+ "stepBridge": "Cầu",
216
218
  "stepBridgeAndBuy": "Chuyển và mua",
217
219
  "stepDetails": "{{tool}} thông qua LI.FI",
218
220
  "stepSwap": "Swap",
219
221
  "stepSwapAndBridge": "Swap và Bridge",
220
222
  "stepSwapAndBuy": "Hoán đổi và mua",
221
- "supportId": "Support ID",
223
+ "supportId": " ID yêu cầu hỗ trợ",
222
224
  "swapStepDetails": "Swap tại {{chain}} thông qua {{tool}}",
223
- "swapping": "Đang Swap",
224
225
  "tags": {
225
226
  "cheapest": "Rẻ",
226
227
  "fastest": "Nhanh",
@@ -243,18 +244,18 @@
243
244
  "insured": "Bạn đã bảo hiểm <0>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</0> trong quá trình vận chuyển:",
244
245
  "slippageError": "Lỗi trượt giá đối với token nhận được"
245
246
  },
246
- "tooltip": {
247
- "additionalProviderFee": "Cầu bổ sung, DEX và phí dịch vụ.",
248
- "estimatedNetworkFee": "Phí mạng ước tính.",
249
- "estimatedTime": "Thời gian thực hiện lệnh swap (phút).",
250
- "notFound": {
251
- "text": "Chúng tôi không thể tìm thấy trang này.",
252
- "title": "404"
247
+ "settings": {
248
+ "enabledBridges": "Số lượng cầu khả dụng",
249
+ "enabledExchanges": "Số lượng sàn giao dịch khả dụng",
250
+ "gasPrice": {
251
+ "fast": "Nhanh",
252
+ "normal": "Bình thường",
253
+ "slow": "Chậm",
254
+ "title": "Giá gas"
253
255
  },
254
- "numberOfSteps": "Một số bước swap. Mỗi bước có thể chứa 1-2 giao dịch yêu cầu chữ ký.",
255
- "progressToNextUpdate": "Thông tin hiển thị sẽ tự động làm mới sau {{value}} giây. Bấm vào đây để cập nhật thủ công.",
256
- "recommended": "Một tuyến đường giá rẻ cân bằng giữa sự phức tạp và dễ sử dụng.",
257
- "settingsModified": "Thiết lập (Đã điều chỉnh)"
256
+ "routePriority": "Tuyền đường ưu tiên",
257
+ "showDestinationWallet": "Hiển thị địa chỉ nhận",
258
+ "slippage": "Trượt giá"
258
259
  },
259
260
  "wallet": {
260
261
  "extensionNotFound": "Chắc chắn rằng tiện ích trên trình duyệt {{name}} đã được kích hoạt tước khi chọn ví này."
@@ -8,7 +8,6 @@ const react_1 = require("react");
8
8
  const react_i18next_1 = require("react-i18next");
9
9
  const ActiveTransactions_1 = require("../../components/ActiveTransactions");
10
10
  const Dialog_1 = require("../../components/Dialog");
11
- const Header_1 = require("../../components/Header");
12
11
  const providers_1 = require("../../providers");
13
12
  const stores_1 = require("../../stores");
14
13
  const ActiveTransactionsEmpty_1 = require("./ActiveTransactionsEmpty");
@@ -17,15 +16,16 @@ const ActiveTransactionsPage = () => {
17
16
  const { account } = (0, providers_1.useWallet)();
18
17
  const executingRoutes = (0, stores_1.useExecutingRoutesIds)(account.address);
19
18
  const deleteRoutes = (0, stores_1.useRouteExecutionStore)((store) => store.deleteRoutes);
19
+ const headerStoreContext = (0, stores_1.useHeaderStoreContext)();
20
20
  const [open, setOpen] = (0, react_1.useState)(false);
21
21
  const toggleDialog = (0, react_1.useCallback)(() => {
22
22
  setOpen((open) => !open);
23
23
  }, []);
24
24
  (0, react_1.useEffect)(() => {
25
25
  if (executingRoutes.length) {
26
- return Header_1.useHeaderStore.getState().setAction((0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "medium", edge: "end", onClick: toggleDialog, children: (0, jsx_runtime_1.jsx)(DeleteOutline_1.default, {}) }));
26
+ return headerStoreContext.getState().setAction((0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "medium", edge: "end", onClick: toggleDialog, children: (0, jsx_runtime_1.jsx)(DeleteOutline_1.default, {}) }));
27
27
  }
28
- }, [executingRoutes.length, toggleDialog]);
28
+ }, [executingRoutes.length, headerStoreContext, toggleDialog]);
29
29
  if (!executingRoutes.length) {
30
30
  return (0, jsx_runtime_1.jsx)(ActiveTransactionsEmpty_1.ActiveTransactionsEmpty, {});
31
31
  }
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RoutesPage = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const Header_1 = require("../../components/Header");
7
6
  const ProgressToNextUpdate_1 = require("../../components/ProgressToNextUpdate");
8
7
  const RouteCard_1 = require("../../components/RouteCard");
9
8
  const hooks_1 = require("../../hooks");
@@ -14,6 +13,7 @@ const RoutesPage = () => {
14
13
  const { navigateBack, navigate } = (0, hooks_1.useNavigateBack)();
15
14
  const { routes, isLoading, isFetching, dataUpdatedAt, refetchTime, refetch } = (0, hooks_1.useRoutes)();
16
15
  const setExecutableRoute = (0, stores_1.useSetExecutableRoute)();
16
+ const headerStoreContext = (0, stores_1.useHeaderStoreContext)();
17
17
  const handleRouteClick = (route) => {
18
18
  setExecutableRoute(route);
19
19
  navigate(utils_1.navigationRoutes.transactionExecution, {
@@ -28,10 +28,10 @@ const RoutesPage = () => {
28
28
  // eslint-disable-next-line react-hooks/exhaustive-deps
29
29
  }, []);
30
30
  (0, react_1.useEffect)(() => {
31
- return Header_1.useHeaderStore
31
+ return headerStoreContext
32
32
  .getState()
33
33
  .setAction((0, jsx_runtime_1.jsx)(ProgressToNextUpdate_1.ProgressToNextUpdate, { updatedAt: dataUpdatedAt || new Date().getTime(), timeToUpdate: refetchTime, isLoading: isFetching, onClick: () => refetch(), sx: { marginRight: -1 }, size: "medium", edge: "end" }));
34
- }, [dataUpdatedAt, isFetching, refetch, refetchTime]);
34
+ }, [dataUpdatedAt, headerStoreContext, isFetching, refetch, refetchTime]);
35
35
  const routeNotFound = !routes?.length && !isLoading && !isFetching;
36
36
  return ((0, jsx_runtime_1.jsx)(RoutesPage_style_1.Stack, { direction: "column", spacing: 2, flex: 1, children: routeNotFound ? ((0, jsx_runtime_1.jsx)(RouteCard_1.RouteNotFoundCard, {})) : isLoading ? (Array.from({ length: 3 }).map((_, index) => ((0, jsx_runtime_1.jsx)(RouteCard_1.RouteCardSkeleton, {}, index)))) : (routes?.map((route, index) => ((0, jsx_runtime_1.jsx)(RouteCard_1.RouteCard, { route: route, onClick: () => handleRouteClick(route), active: index === 0, expanded: routes?.length <= 2 }, route.id)))) }));
37
37
  };
@@ -7,7 +7,6 @@ const CheckBoxOutlineBlankOutlined_1 = require("@mui/icons-material/CheckBoxOutl
7
7
  const CheckBoxOutlined_1 = require("@mui/icons-material/CheckBoxOutlined");
8
8
  const IndeterminateCheckBoxOutlined_1 = require("@mui/icons-material/IndeterminateCheckBoxOutlined");
9
9
  const material_1 = require("@mui/material");
10
- const Header_1 = require("../../components/Header");
11
10
  const react_1 = require("react");
12
11
  const shallow_1 = require("zustand/shallow");
13
12
  const ListItemText_1 = require("../../components/ListItemText");
@@ -18,6 +17,7 @@ const SelectEnabledToolsPage = ({ type }) => {
18
17
  const typeKey = type.toLowerCase();
19
18
  const { tools } = (0, hooks_1.useTools)();
20
19
  const [enabledTools, setTools] = (0, stores_1.useSettingsStore)((state) => [state[`enabled${type}`], state.setTools], shallow_1.shallow);
20
+ const headerStoreContext = (0, stores_1.useHeaderStoreContext)();
21
21
  const handleClick = (key) => {
22
22
  if (!tools) {
23
23
  return;
@@ -44,8 +44,8 @@ const SelectEnabledToolsPage = ({ type }) => {
44
44
  setTools(type, toolKeys, toolKeys);
45
45
  }
46
46
  };
47
- return Header_1.useHeaderStore.getState().setAction((0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "medium", edge: "end", onClick: toggleCheckboxes, children: allToolsSelected ? ((0, jsx_runtime_1.jsx)(CheckBoxOutlined_1.default, {})) : enabledTools.length ? ((0, jsx_runtime_1.jsx)(IndeterminateCheckBoxOutlined_1.default, {})) : ((0, jsx_runtime_1.jsx)(CheckBoxOutlineBlankOutlined_1.default, {})) }));
48
- }, [enabledTools.length, setTools, tools, type, typeKey]);
47
+ return headerStoreContext.getState().setAction((0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "medium", edge: "end", onClick: toggleCheckboxes, children: allToolsSelected ? ((0, jsx_runtime_1.jsx)(CheckBoxOutlined_1.default, {})) : enabledTools.length ? ((0, jsx_runtime_1.jsx)(IndeterminateCheckBoxOutlined_1.default, {})) : ((0, jsx_runtime_1.jsx)(CheckBoxOutlineBlankOutlined_1.default, {})) }));
48
+ }, [enabledTools.length, headerStoreContext, setTools, tools, type, typeKey]);
49
49
  return ((0, jsx_runtime_1.jsx)(material_1.Container, { disableGutters: true, children: (0, jsx_runtime_1.jsx)(material_1.List, { sx: {
50
50
  paddingLeft: 1.5,
51
51
  paddingRight: 1.5,
@@ -0,0 +1,5 @@
1
+ interface ContactSupportButtonProps {
2
+ supportId?: string;
3
+ }
4
+ export declare const ContactSupportButton: ({ supportId, }: ContactSupportButtonProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContactSupportButton = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const react_i18next_1 = require("react-i18next");
7
+ const hooks_1 = require("../../hooks/");
8
+ const events_1 = require("../../types/events");
9
+ const ContactSupportButton = ({ supportId, }) => {
10
+ const { t } = (0, react_i18next_1.useTranslation)();
11
+ const widgetEvents = (0, hooks_1.useWidgetEvents)();
12
+ const handleClick = () => {
13
+ if (!widgetEvents.all.has(events_1.WidgetEvent.RouteContactSupport)) {
14
+ const url = 'https://discord.gg/lifi';
15
+ const target = '_blank';
16
+ const rel = 'nofollow noreferrer';
17
+ window.open(url, target, rel);
18
+ }
19
+ else {
20
+ widgetEvents.emit(events_1.WidgetEvent.RouteContactSupport, { supportId });
21
+ }
22
+ };
23
+ return ((0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleClick, fullWidth: true, children: t('button.contactSupport') }));
24
+ };
25
+ exports.ContactSupportButton = ContactSupportButton;
@@ -12,13 +12,13 @@ const shallow_1 = require("zustand/shallow");
12
12
  const Card_1 = require("../../components/Card");
13
13
  const ContractComponent_1 = require("../../components/ContractComponent");
14
14
  const Dialog_1 = require("../../components/Dialog");
15
- const Header_1 = require("../../components/Header");
16
15
  const Insurance_1 = require("../../components/Insurance");
17
16
  const Step_1 = require("../../components/Step");
18
17
  const hooks_1 = require("../../hooks");
19
18
  const providers_1 = require("../../providers");
20
19
  const stores_1 = require("../../stores");
21
20
  const utils_1 = require("../../utils");
21
+ const ContactSupportButton_1 = require("./ContactSupportButton");
22
22
  const TransactionDetailsPage_style_1 = require("./TransactionDetailsPage.style");
23
23
  const TransactionDetailsPage = () => {
24
24
  const { t, i18n } = (0, react_i18next_1.useTranslation)();
@@ -26,6 +26,7 @@ const TransactionDetailsPage = () => {
26
26
  const { subvariant, contractComponent, contractSecondaryComponent } = (0, providers_1.useWidgetConfig)();
27
27
  const { state } = (0, react_router_dom_1.useLocation)();
28
28
  const [routeExecution, deleteRoute] = (0, stores_1.useRouteExecutionStore)((store) => [store.routes[state?.routeId], store.deleteRoute], shallow_1.shallow);
29
+ const headerStoreContext = (0, stores_1.useHeaderStoreContext)();
29
30
  const [open, setOpen] = (0, react_1.useState)(false);
30
31
  const toggleDialog = (0, react_1.useCallback)(() => {
31
32
  setOpen((open) => !open);
@@ -48,8 +49,8 @@ const TransactionDetailsPage = () => {
48
49
  await navigator.clipboard.writeText(supportId);
49
50
  };
50
51
  (0, react_1.useEffect)(() => {
51
- return Header_1.useHeaderStore.getState().setAction((0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "medium", edge: "end", onClick: toggleDialog, children: (0, jsx_runtime_1.jsx)(DeleteOutline_1.default, {}) }));
52
- }, [toggleDialog]);
52
+ return headerStoreContext.getState().setAction((0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "medium", edge: "end", onClick: toggleDialog, children: (0, jsx_runtime_1.jsx)(DeleteOutline_1.default, {}) }));
53
+ }, [headerStoreContext, toggleDialog]);
53
54
  const startedAt = new Date(routeExecution?.route.steps[0].execution?.process[0].startedAt ?? 0);
54
55
  return ((0, jsx_runtime_1.jsxs)(TransactionDetailsPage_style_1.Container, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
55
56
  display: 'flex',
@@ -57,9 +58,9 @@ const TransactionDetailsPage = () => {
57
58
  justifyContent: 'space-between',
58
59
  }, pb: 1, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { fontSize: 12, children: new Intl.DateTimeFormat(i18n.language, { dateStyle: 'long' }).format(startedAt) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { fontSize: 12, children: new Intl.DateTimeFormat(i18n.language, {
59
60
  timeStyle: 'short',
60
- }).format(startedAt) })] }), (0, Step_1.getStepList)(routeExecution?.route), subvariant === 'nft' ? ((0, jsx_runtime_1.jsx)(ContractComponent_1.ContractComponent, { mt: 2, children: contractSecondaryComponent || contractComponent })) : null, routeExecution?.route?.insurance?.state === 'INSURED' ? ((0, jsx_runtime_1.jsx)(Insurance_1.Insurance, { mt: 2, status: routeExecution.status, feeAmountUsd: routeExecution.route.insurance.feeAmountUsd, insuredAmount: (0, utils_1.formatTokenAmount)(routeExecution.route.toAmountMin, routeExecution.route.toToken.decimals), insuredTokenSymbol: routeExecution.route.toToken.symbol, insurableRouteId: routeExecution.route.id, insuranceCoverageId: insuranceCoverageId })) : null, (0, jsx_runtime_1.jsxs)(Card_1.Card, { mt: 2, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
61
+ }).format(startedAt) })] }), (0, Step_1.getStepList)(routeExecution?.route, subvariant), subvariant === 'nft' ? ((0, jsx_runtime_1.jsx)(ContractComponent_1.ContractComponent, { mt: 2, children: contractSecondaryComponent || contractComponent })) : null, routeExecution?.route?.insurance?.state === 'INSURED' ? ((0, jsx_runtime_1.jsx)(Insurance_1.Insurance, { mt: 2, status: routeExecution.status, feeAmountUsd: routeExecution.route.insurance.feeAmountUsd, insuredAmount: (0, utils_1.formatTokenAmount)(routeExecution.route.toAmountMin, routeExecution.route.toToken.decimals), insuredTokenSymbol: routeExecution.route.toToken.symbol, insurableRouteId: routeExecution.route.id, insuranceCoverageId: insuranceCoverageId })) : null, (0, jsx_runtime_1.jsxs)(Card_1.Card, { mt: 2, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
61
62
  display: 'flex',
62
63
  flex: 1,
63
- }, children: [(0, jsx_runtime_1.jsx)(Card_1.CardTitle, { flex: 1, children: t('main.supportId') }), (0, jsx_runtime_1.jsx)(material_1.Box, { mr: 1, mt: 1, children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "medium", onClick: copySupportId, children: (0, jsx_runtime_1.jsx)(ContentCopyRounded_1.default, { fontSize: "small" }) }) })] }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", pt: 1, pb: 2, px: 2, sx: { wordBreak: 'break-all' }, children: supportId })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { mt: 2, children: (0, jsx_runtime_1.jsx)(material_1.Button, { href: "https://discord.gg/lifi", target: "_blank", rel: "nofollow noreferrer", fullWidth: true, children: t('button.contactSupport') }) }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { open: open, onClose: toggleDialog, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: t('warning.title.deleteTransaction') }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: t('warning.message.deleteTransactionHistory') }) }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: toggleDialog, children: t('button.cancel') }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: handleDeleteRoute, autoFocus: true, children: t('button.delete') })] })] })] }));
64
+ }, children: [(0, jsx_runtime_1.jsx)(Card_1.CardTitle, { flex: 1, children: t('main.supportId') }), (0, jsx_runtime_1.jsx)(material_1.Box, { mr: 1, mt: 1, children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "medium", onClick: copySupportId, children: (0, jsx_runtime_1.jsx)(ContentCopyRounded_1.default, { fontSize: "small" }) }) })] }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", pt: 1, pb: 2, px: 2, sx: { wordBreak: 'break-all' }, children: supportId })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { mt: 2, children: (0, jsx_runtime_1.jsx)(ContactSupportButton_1.ContactSupportButton, { supportId: supportId }) }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { open: open, onClose: toggleDialog, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: t('warning.title.deleteTransaction') }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: t('warning.message.deleteTransactionHistory') }) }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: toggleDialog, children: t('button.cancel') }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: handleDeleteRoute, autoFocus: true, children: t('button.delete') })] })] })] }));
64
65
  };
65
66
  exports.TransactionDetailsPage = TransactionDetailsPage;