@otim/utils 0.0.4 → 0.0.6

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 (467) hide show
  1. package/dist/api/index.d.mts +1858 -7
  2. package/dist/api/index.d.mts.map +1 -0
  3. package/dist/api/index.d.ts +1857 -6
  4. package/dist/api/index.d.ts.map +1 -1
  5. package/dist/api/index.js +1514 -1994
  6. package/dist/api/index.js.map +1 -7
  7. package/dist/api/index.mjs +1394 -1962
  8. package/dist/api/index.mjs.map +1 -7
  9. package/dist/api-urls-B-GTEiT3.d.mts +49 -0
  10. package/dist/api-urls-B-GTEiT3.d.mts.map +1 -0
  11. package/dist/api-urls-Cd20DG4i.js +171 -0
  12. package/dist/api-urls-Cd20DG4i.js.map +1 -0
  13. package/dist/api-urls-DJcIKBCy.mjs +135 -0
  14. package/dist/api-urls-DJcIKBCy.mjs.map +1 -0
  15. package/dist/api-urls-SKeIQMoZ.d.ts +49 -0
  16. package/dist/api-urls-SKeIQMoZ.d.ts.map +1 -0
  17. package/dist/chains/index.d.mts +13568 -16
  18. package/dist/chains/index.d.mts.map +1 -0
  19. package/dist/chains/index.d.ts +13567 -15
  20. package/dist/chains/index.d.ts.map +1 -1
  21. package/dist/chains/index.js +3615 -424
  22. package/dist/chains/index.js.map +1 -7
  23. package/dist/chains/index.mjs +3561 -440
  24. package/dist/chains/index.mjs.map +1 -7
  25. package/dist/chunk-kSYXY2_d.js +34 -0
  26. package/dist/client-factory-7xUSPC9I.mjs +42 -0
  27. package/dist/client-factory-7xUSPC9I.mjs.map +1 -0
  28. package/dist/client-factory-C3A4RPdj.d.ts +22 -0
  29. package/dist/client-factory-C3A4RPdj.d.ts.map +1 -0
  30. package/dist/client-factory-CTI_Nt35.js +49 -0
  31. package/dist/client-factory-CTI_Nt35.js.map +1 -0
  32. package/dist/client-factory-DOL0ZTWy.d.mts +22 -0
  33. package/dist/client-factory-DOL0ZTWy.d.mts.map +1 -0
  34. package/dist/constants.d.mts +14 -24
  35. package/dist/constants.d.mts.map +1 -0
  36. package/dist/constants.d.ts +13 -23
  37. package/dist/constants.d.ts.map +1 -1
  38. package/dist/constants.js +31 -46
  39. package/dist/constants.js.map +1 -7
  40. package/dist/constants.mjs +22 -26
  41. package/dist/constants.mjs.map +1 -7
  42. package/dist/date-CFzrYcjE.js +536 -0
  43. package/dist/date-CFzrYcjE.js.map +1 -0
  44. package/dist/date-gBac-Om9.mjs +313 -0
  45. package/dist/date-gBac-Om9.mjs.map +1 -0
  46. package/dist/defineProperty-DbMdhrDE.js +49 -0
  47. package/dist/defineProperty-DzhmunJg.mjs +43 -0
  48. package/dist/formatters/index.d.mts +1 -2
  49. package/dist/formatters/index.d.ts +1 -2
  50. package/dist/formatters/index.js +0 -19
  51. package/dist/formatters/index.mjs +1 -1
  52. package/dist/helpers/index.d.mts +562 -19
  53. package/dist/helpers/index.d.mts.map +1 -0
  54. package/dist/helpers/index.d.ts +561 -18
  55. package/dist/helpers/index.d.ts.map +1 -1
  56. package/dist/helpers/index.js +106 -1344
  57. package/dist/helpers/index.mjs +3 -1315
  58. package/dist/helpers-BNiSxjGq.mjs +895 -0
  59. package/dist/helpers-BNiSxjGq.mjs.map +1 -0
  60. package/dist/helpers-DoC7Xl12.js +1291 -0
  61. package/dist/helpers-DoC7Xl12.js.map +1 -0
  62. package/dist/index-Bv0kUz4w.d.ts +540 -0
  63. package/dist/index-Bv0kUz4w.d.ts.map +1 -0
  64. package/dist/index-DartTKk2.d.mts +540 -0
  65. package/dist/index-DartTKk2.d.mts.map +1 -0
  66. package/dist/index.d.mts +1 -1
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +0 -2
  69. package/dist/index.mjs +1 -1
  70. package/dist/instructions/index.d.mts +687 -6
  71. package/dist/instructions/index.d.mts.map +1 -0
  72. package/dist/instructions/index.d.ts +686 -5
  73. package/dist/instructions/index.d.ts.map +1 -1
  74. package/dist/instructions/index.js +1912 -1091
  75. package/dist/instructions/index.js.map +1 -7
  76. package/dist/instructions/index.mjs +1887 -1058
  77. package/dist/instructions/index.mjs.map +1 -7
  78. package/dist/payments/index.d.mts +322 -16
  79. package/dist/payments/index.d.mts.map +1 -0
  80. package/dist/payments/index.d.ts +321 -15
  81. package/dist/payments/index.d.ts.map +1 -1
  82. package/dist/payments/index.js +616 -1258
  83. package/dist/payments/index.js.map +1 -7
  84. package/dist/payments/index.mjs +594 -1236
  85. package/dist/payments/index.mjs.map +1 -7
  86. package/dist/schemas/index.d.mts +2 -10
  87. package/dist/schemas/index.d.ts +2 -10
  88. package/dist/schemas/index.js +350 -393
  89. package/dist/schemas/index.js.map +1 -7
  90. package/dist/schemas/index.mjs +283 -371
  91. package/dist/schemas/index.mjs.map +1 -7
  92. package/dist/server/index.d.mts +354 -3
  93. package/dist/server/index.d.mts.map +1 -0
  94. package/dist/server/index.d.ts +353 -2
  95. package/dist/server/index.d.ts.map +1 -1
  96. package/dist/server/index.js +248 -435
  97. package/dist/server/index.js.map +1 -7
  98. package/dist/server/index.mjs +199 -404
  99. package/dist/server/index.mjs.map +1 -7
  100. package/dist/server/react.d.mts +16 -0
  101. package/dist/server/react.d.mts.map +1 -0
  102. package/dist/server/react.d.ts +16 -0
  103. package/dist/server/react.d.ts.map +1 -0
  104. package/dist/server/react.js +30 -0
  105. package/dist/server/react.js.map +1 -0
  106. package/dist/server/react.mjs +28 -0
  107. package/dist/server/react.mjs.map +1 -0
  108. package/dist/wallet/wagmi/index.d.mts +23 -2
  109. package/dist/wallet/wagmi/index.d.mts.map +1 -0
  110. package/dist/wallet/wagmi/index.d.ts +22 -1
  111. package/dist/wallet/wagmi/index.d.ts.map +1 -1
  112. package/dist/wallet/wagmi/index.js +86 -417
  113. package/dist/wallet/wagmi/index.js.map +1 -7
  114. package/dist/wallet/wagmi/index.mjs +82 -418
  115. package/dist/wallet/wagmi/index.mjs.map +1 -7
  116. package/package.json +39 -28
  117. package/dist/api/api.d.mts +0 -18
  118. package/dist/api/api.d.ts +0 -18
  119. package/dist/api/api.d.ts.map +0 -1
  120. package/dist/api/core/error.d.mts +0 -74
  121. package/dist/api/core/error.d.ts +0 -74
  122. package/dist/api/core/error.d.ts.map +0 -1
  123. package/dist/api/core/index.d.mts +0 -4
  124. package/dist/api/core/index.d.ts +0 -4
  125. package/dist/api/core/index.d.ts.map +0 -1
  126. package/dist/api/core/instance.d.mts +0 -13
  127. package/dist/api/core/instance.d.ts +0 -13
  128. package/dist/api/core/instance.d.ts.map +0 -1
  129. package/dist/api/core/service.d.mts +0 -51
  130. package/dist/api/core/service.d.ts +0 -51
  131. package/dist/api/core/service.d.ts.map +0 -1
  132. package/dist/api/schemas/account.d.mts +0 -44
  133. package/dist/api/schemas/account.d.ts +0 -44
  134. package/dist/api/schemas/account.d.ts.map +0 -1
  135. package/dist/api/schemas/activity.d.mts +0 -277
  136. package/dist/api/schemas/activity.d.ts +0 -277
  137. package/dist/api/schemas/activity.d.ts.map +0 -1
  138. package/dist/api/schemas/auth.d.mts +0 -127
  139. package/dist/api/schemas/auth.d.ts +0 -127
  140. package/dist/api/schemas/auth.d.ts.map +0 -1
  141. package/dist/api/schemas/chain.d.mts +0 -15
  142. package/dist/api/schemas/chain.d.ts +0 -15
  143. package/dist/api/schemas/chain.d.ts.map +0 -1
  144. package/dist/api/schemas/config.d.mts +0 -33
  145. package/dist/api/schemas/config.d.ts +0 -33
  146. package/dist/api/schemas/config.d.ts.map +0 -1
  147. package/dist/api/schemas/contacts.d.mts +0 -27
  148. package/dist/api/schemas/contacts.d.ts +0 -27
  149. package/dist/api/schemas/contacts.d.ts.map +0 -1
  150. package/dist/api/schemas/index.d.mts +0 -12
  151. package/dist/api/schemas/index.d.ts +0 -12
  152. package/dist/api/schemas/index.d.ts.map +0 -1
  153. package/dist/api/schemas/instruction.d.mts +0 -446
  154. package/dist/api/schemas/instruction.d.ts +0 -446
  155. package/dist/api/schemas/instruction.d.ts.map +0 -1
  156. package/dist/api/schemas/integration.d.mts +0 -166
  157. package/dist/api/schemas/integration.d.ts +0 -166
  158. package/dist/api/schemas/integration.d.ts.map +0 -1
  159. package/dist/api/schemas/operating-account.d.mts +0 -11
  160. package/dist/api/schemas/operating-account.d.ts +0 -11
  161. package/dist/api/schemas/operating-account.d.ts.map +0 -1
  162. package/dist/api/schemas/payments.d.mts +0 -234
  163. package/dist/api/schemas/payments.d.ts +0 -234
  164. package/dist/api/schemas/payments.d.ts.map +0 -1
  165. package/dist/api/schemas/transaction.d.mts +0 -37
  166. package/dist/api/schemas/transaction.d.ts +0 -37
  167. package/dist/api/schemas/transaction.d.ts.map +0 -1
  168. package/dist/api/services/account.d.mts +0 -8
  169. package/dist/api/services/account.d.ts +0 -8
  170. package/dist/api/services/account.d.ts.map +0 -1
  171. package/dist/api/services/activity.d.mts +0 -7
  172. package/dist/api/services/activity.d.ts +0 -7
  173. package/dist/api/services/activity.d.ts.map +0 -1
  174. package/dist/api/services/auth.d.mts +0 -12
  175. package/dist/api/services/auth.d.ts +0 -12
  176. package/dist/api/services/auth.d.ts.map +0 -1
  177. package/dist/api/services/base.d.mts +0 -10
  178. package/dist/api/services/base.d.ts +0 -10
  179. package/dist/api/services/base.d.ts.map +0 -1
  180. package/dist/api/services/config.d.mts +0 -10
  181. package/dist/api/services/config.d.ts +0 -10
  182. package/dist/api/services/config.d.ts.map +0 -1
  183. package/dist/api/services/contacts.d.mts +0 -8
  184. package/dist/api/services/contacts.d.ts +0 -8
  185. package/dist/api/services/contacts.d.ts.map +0 -1
  186. package/dist/api/services/developer.d.mts +0 -6
  187. package/dist/api/services/developer.d.ts +0 -6
  188. package/dist/api/services/developer.d.ts.map +0 -1
  189. package/dist/api/services/index.d.mts +0 -13
  190. package/dist/api/services/index.d.ts +0 -13
  191. package/dist/api/services/index.d.ts.map +0 -1
  192. package/dist/api/services/instruction.d.mts +0 -12
  193. package/dist/api/services/instruction.d.ts +0 -12
  194. package/dist/api/services/instruction.d.ts.map +0 -1
  195. package/dist/api/services/integration.d.mts +0 -8
  196. package/dist/api/services/integration.d.ts +0 -8
  197. package/dist/api/services/integration.d.ts.map +0 -1
  198. package/dist/api/services/operating-account.d.mts +0 -8
  199. package/dist/api/services/operating-account.d.ts +0 -8
  200. package/dist/api/services/operating-account.d.ts.map +0 -1
  201. package/dist/api/services/payments.d.mts +0 -14
  202. package/dist/api/services/payments.d.ts +0 -14
  203. package/dist/api/services/payments.d.ts.map +0 -1
  204. package/dist/api/services/transaction.d.mts +0 -8
  205. package/dist/api/services/transaction.d.ts +0 -8
  206. package/dist/api/services/transaction.d.ts.map +0 -1
  207. package/dist/api/services/uniswap-token-list-service.d.mts +0 -66
  208. package/dist/api/services/uniswap-token-list-service.d.ts +0 -66
  209. package/dist/api/services/uniswap-token-list-service.d.ts.map +0 -1
  210. package/dist/api/utils/index.d.mts +0 -2
  211. package/dist/api/utils/index.d.ts +0 -2
  212. package/dist/api/utils/index.d.ts.map +0 -1
  213. package/dist/api/utils/pagination.d.mts +0 -32
  214. package/dist/api/utils/pagination.d.ts +0 -32
  215. package/dist/api/utils/pagination.d.ts.map +0 -1
  216. package/dist/chains/config/all-chains.d.mts +0 -4243
  217. package/dist/chains/config/all-chains.d.ts +0 -4243
  218. package/dist/chains/config/all-chains.d.ts.map +0 -1
  219. package/dist/chains/config/custom-chains.d.mts +0 -49
  220. package/dist/chains/config/custom-chains.d.ts +0 -49
  221. package/dist/chains/config/custom-chains.d.ts.map +0 -1
  222. package/dist/chains/config/mainnet-chains.d.mts +0 -1063
  223. package/dist/chains/config/mainnet-chains.d.ts +0 -1063
  224. package/dist/chains/config/mainnet-chains.d.ts.map +0 -1
  225. package/dist/chains/config/supported-chains.d.mts +0 -2172
  226. package/dist/chains/config/supported-chains.d.ts +0 -2172
  227. package/dist/chains/config/supported-chains.d.ts.map +0 -1
  228. package/dist/chains/config/testnet-chains.d.mts +0 -1110
  229. package/dist/chains/config/testnet-chains.d.ts +0 -1110
  230. package/dist/chains/config/testnet-chains.d.ts.map +0 -1
  231. package/dist/chains/lambda/chain-mapping.d.mts +0 -55
  232. package/dist/chains/lambda/chain-mapping.d.ts +0 -55
  233. package/dist/chains/lambda/chain-mapping.d.ts.map +0 -1
  234. package/dist/chains/lambda/index.d.mts +0 -2
  235. package/dist/chains/lambda/index.d.ts +0 -2
  236. package/dist/chains/lambda/index.d.ts.map +0 -1
  237. package/dist/chains/tokens/chain-tokens.d.mts +0 -6
  238. package/dist/chains/tokens/chain-tokens.d.ts +0 -6
  239. package/dist/chains/tokens/chain-tokens.d.ts.map +0 -1
  240. package/dist/chains/tokens/token-addresses.d.mts +0 -8
  241. package/dist/chains/tokens/token-addresses.d.ts +0 -8
  242. package/dist/chains/tokens/token-addresses.d.ts.map +0 -1
  243. package/dist/chains/tokens/token-metadata.d.mts +0 -5
  244. package/dist/chains/tokens/token-metadata.d.ts +0 -5
  245. package/dist/chains/tokens/token-metadata.d.ts.map +0 -1
  246. package/dist/chains/types.d.mts +0 -23
  247. package/dist/chains/types.d.ts +0 -23
  248. package/dist/chains/types.d.ts.map +0 -1
  249. package/dist/chains/utils/filter-tokens.d.mts +0 -3
  250. package/dist/chains/utils/filter-tokens.d.ts +0 -3
  251. package/dist/chains/utils/filter-tokens.d.ts.map +0 -1
  252. package/dist/chains/utils/stablecoin.d.mts +0 -7
  253. package/dist/chains/utils/stablecoin.d.ts +0 -7
  254. package/dist/chains/utils/stablecoin.d.ts.map +0 -1
  255. package/dist/chains/utils/token-maps.d.mts +0 -10
  256. package/dist/chains/utils/token-maps.d.ts +0 -10
  257. package/dist/chains/utils/token-maps.d.ts.map +0 -1
  258. package/dist/env.d.mts +0 -17
  259. package/dist/env.d.ts +0 -17
  260. package/dist/env.d.ts.map +0 -1
  261. package/dist/formatters/index.d.ts.map +0 -1
  262. package/dist/formatters/index.js.map +0 -7
  263. package/dist/formatters/index.mjs.map +0 -7
  264. package/dist/helpers/address.d.mts +0 -7
  265. package/dist/helpers/address.d.ts +0 -7
  266. package/dist/helpers/address.d.ts.map +0 -1
  267. package/dist/helpers/blockchain.d.mts +0 -41
  268. package/dist/helpers/blockchain.d.ts +0 -41
  269. package/dist/helpers/blockchain.d.ts.map +0 -1
  270. package/dist/helpers/date.d.mts +0 -70
  271. package/dist/helpers/date.d.ts +0 -70
  272. package/dist/helpers/date.d.ts.map +0 -1
  273. package/dist/helpers/datetime.d.mts +0 -57
  274. package/dist/helpers/datetime.d.ts +0 -57
  275. package/dist/helpers/datetime.d.ts.map +0 -1
  276. package/dist/helpers/domain.d.mts +0 -2
  277. package/dist/helpers/domain.d.ts +0 -2
  278. package/dist/helpers/domain.d.ts.map +0 -1
  279. package/dist/helpers/index.js.map +0 -7
  280. package/dist/helpers/index.mjs.map +0 -7
  281. package/dist/helpers/intl.d.mts +0 -20
  282. package/dist/helpers/intl.d.ts +0 -20
  283. package/dist/helpers/intl.d.ts.map +0 -1
  284. package/dist/helpers/logger.d.mts +0 -26
  285. package/dist/helpers/logger.d.ts +0 -26
  286. package/dist/helpers/logger.d.ts.map +0 -1
  287. package/dist/helpers/mask-options.d.mts +0 -10
  288. package/dist/helpers/mask-options.d.ts +0 -10
  289. package/dist/helpers/mask-options.d.ts.map +0 -1
  290. package/dist/helpers/num-formatter.d.mts +0 -3
  291. package/dist/helpers/num-formatter.d.ts +0 -3
  292. package/dist/helpers/num-formatter.d.ts.map +0 -1
  293. package/dist/helpers/polling.d.mts +0 -39
  294. package/dist/helpers/polling.d.ts +0 -39
  295. package/dist/helpers/polling.d.ts.map +0 -1
  296. package/dist/helpers/random.d.mts +0 -10
  297. package/dist/helpers/random.d.ts +0 -10
  298. package/dist/helpers/random.d.ts.map +0 -1
  299. package/dist/helpers/sdk-loader.d.mts +0 -25
  300. package/dist/helpers/sdk-loader.d.ts +0 -25
  301. package/dist/helpers/sdk-loader.d.ts.map +0 -1
  302. package/dist/helpers/signatures.d.mts +0 -17
  303. package/dist/helpers/signatures.d.ts +0 -17
  304. package/dist/helpers/signatures.d.ts.map +0 -1
  305. package/dist/helpers/string.d.mts +0 -17
  306. package/dist/helpers/string.d.ts +0 -17
  307. package/dist/helpers/string.d.ts.map +0 -1
  308. package/dist/helpers/types.d.mts +0 -39
  309. package/dist/helpers/types.d.ts +0 -39
  310. package/dist/helpers/types.d.ts.map +0 -1
  311. package/dist/helpers/url.d.mts +0 -11
  312. package/dist/helpers/url.d.ts +0 -11
  313. package/dist/helpers/url.d.ts.map +0 -1
  314. package/dist/helpers/window.d.mts +0 -37
  315. package/dist/helpers/window.d.ts +0 -37
  316. package/dist/helpers/window.d.ts.map +0 -1
  317. package/dist/helpers/zod.d.mts +0 -51
  318. package/dist/helpers/zod.d.ts +0 -51
  319. package/dist/helpers/zod.d.ts.map +0 -1
  320. package/dist/index.d.ts.map +0 -1
  321. package/dist/index.js.map +0 -7
  322. package/dist/index.mjs.map +0 -7
  323. package/dist/instructions/actions/index.d.mts +0 -5
  324. package/dist/instructions/actions/index.d.ts +0 -5
  325. package/dist/instructions/actions/index.d.ts.map +0 -1
  326. package/dist/instructions/actions/refuel/index.d.mts +0 -15
  327. package/dist/instructions/actions/refuel/index.d.ts +0 -15
  328. package/dist/instructions/actions/refuel/index.d.ts.map +0 -1
  329. package/dist/instructions/actions/swap/index.d.mts +0 -19
  330. package/dist/instructions/actions/swap/index.d.ts +0 -19
  331. package/dist/instructions/actions/swap/index.d.ts.map +0 -1
  332. package/dist/instructions/actions/sweep/index.d.mts +0 -16
  333. package/dist/instructions/actions/sweep/index.d.ts +0 -16
  334. package/dist/instructions/actions/sweep/index.d.ts.map +0 -1
  335. package/dist/instructions/actions/transfer/index.d.mts +0 -13
  336. package/dist/instructions/actions/transfer/index.d.ts +0 -13
  337. package/dist/instructions/actions/transfer/index.d.ts.map +0 -1
  338. package/dist/instructions/activate.d.mts +0 -84
  339. package/dist/instructions/activate.d.ts +0 -84
  340. package/dist/instructions/activate.d.ts.map +0 -1
  341. package/dist/instructions/build.d.mts +0 -146
  342. package/dist/instructions/build.d.ts +0 -146
  343. package/dist/instructions/build.d.ts.map +0 -1
  344. package/dist/instructions/constants.d.mts +0 -9
  345. package/dist/instructions/constants.d.ts +0 -9
  346. package/dist/instructions/constants.d.ts.map +0 -1
  347. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.mts +0 -609
  348. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts +0 -609
  349. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts.map +0 -1
  350. package/dist/instructions/types.d.mts +0 -289
  351. package/dist/instructions/types.d.ts +0 -289
  352. package/dist/instructions/types.d.ts.map +0 -1
  353. package/dist/payments/action-names.d.mts +0 -16
  354. package/dist/payments/action-names.d.ts +0 -16
  355. package/dist/payments/action-names.d.ts.map +0 -1
  356. package/dist/payments/actions/index.d.mts +0 -5
  357. package/dist/payments/actions/index.d.ts +0 -5
  358. package/dist/payments/actions/index.d.ts.map +0 -1
  359. package/dist/payments/actions/sweep-cctp.d.mts +0 -15
  360. package/dist/payments/actions/sweep-cctp.d.ts +0 -15
  361. package/dist/payments/actions/sweep-cctp.d.ts.map +0 -1
  362. package/dist/payments/actions/sweep-erc20.d.mts +0 -12
  363. package/dist/payments/actions/sweep-erc20.d.ts +0 -12
  364. package/dist/payments/actions/sweep-erc20.d.ts.map +0 -1
  365. package/dist/payments/actions/sweep-uniswap-v3.d.mts +0 -17
  366. package/dist/payments/actions/sweep-uniswap-v3.d.ts +0 -17
  367. package/dist/payments/actions/sweep-uniswap-v3.d.ts.map +0 -1
  368. package/dist/payments/actions/sweep.d.mts +0 -12
  369. package/dist/payments/actions/sweep.d.ts +0 -12
  370. package/dist/payments/actions/sweep.d.ts.map +0 -1
  371. package/dist/payments/build.d.mts +0 -28
  372. package/dist/payments/build.d.ts +0 -28
  373. package/dist/payments/build.d.ts.map +0 -1
  374. package/dist/payments/chain-token-config-builder.d.mts +0 -10
  375. package/dist/payments/chain-token-config-builder.d.ts +0 -10
  376. package/dist/payments/chain-token-config-builder.d.ts.map +0 -1
  377. package/dist/payments/comprehensive-payment-request.d.mts +0 -26
  378. package/dist/payments/comprehensive-payment-request.d.ts +0 -26
  379. package/dist/payments/comprehensive-payment-request.d.ts.map +0 -1
  380. package/dist/payments/config/cctp.d.mts +0 -14
  381. package/dist/payments/config/cctp.d.ts +0 -14
  382. package/dist/payments/config/cctp.d.ts.map +0 -1
  383. package/dist/payments/config/index.d.mts +0 -3
  384. package/dist/payments/config/index.d.ts +0 -3
  385. package/dist/payments/config/index.d.ts.map +0 -1
  386. package/dist/payments/config/tokens.d.mts +0 -14
  387. package/dist/payments/config/tokens.d.ts +0 -14
  388. package/dist/payments/config/tokens.d.ts.map +0 -1
  389. package/dist/payments/instruction-registry.d.mts +0 -19
  390. package/dist/payments/instruction-registry.d.ts +0 -19
  391. package/dist/payments/instruction-registry.d.ts.map +0 -1
  392. package/dist/payments/payment-metadata-builder.d.mts +0 -56
  393. package/dist/payments/payment-metadata-builder.d.ts +0 -56
  394. package/dist/payments/payment-metadata-builder.d.ts.map +0 -1
  395. package/dist/payments/payment-metadata.d.mts +0 -15
  396. package/dist/payments/payment-metadata.d.ts +0 -15
  397. package/dist/payments/payment-metadata.d.ts.map +0 -1
  398. package/dist/payments/payment-request-token-resolver.d.mts +0 -25
  399. package/dist/payments/payment-request-token-resolver.d.ts +0 -25
  400. package/dist/payments/payment-request-token-resolver.d.ts.map +0 -1
  401. package/dist/payments/types.d.mts +0 -40
  402. package/dist/payments/types.d.ts +0 -40
  403. package/dist/payments/types.d.ts.map +0 -1
  404. package/dist/payments/validation.d.mts +0 -19
  405. package/dist/payments/validation.d.ts +0 -19
  406. package/dist/payments/validation.d.ts.map +0 -1
  407. package/dist/schemas/account.d.mts +0 -9
  408. package/dist/schemas/account.d.ts +0 -9
  409. package/dist/schemas/account.d.ts.map +0 -1
  410. package/dist/schemas/brand.d.mts +0 -7
  411. package/dist/schemas/brand.d.ts +0 -7
  412. package/dist/schemas/brand.d.ts.map +0 -1
  413. package/dist/schemas/contact.d.mts +0 -18
  414. package/dist/schemas/contact.d.ts +0 -18
  415. package/dist/schemas/contact.d.ts.map +0 -1
  416. package/dist/schemas/index.d.ts.map +0 -1
  417. package/dist/schemas/instruction.d.mts +0 -248
  418. package/dist/schemas/instruction.d.ts +0 -248
  419. package/dist/schemas/instruction.d.ts.map +0 -1
  420. package/dist/schemas/misc.d.mts +0 -36
  421. package/dist/schemas/misc.d.ts +0 -36
  422. package/dist/schemas/misc.d.ts.map +0 -1
  423. package/dist/schemas/payment.d.mts +0 -64
  424. package/dist/schemas/payment.d.ts +0 -64
  425. package/dist/schemas/payment.d.ts.map +0 -1
  426. package/dist/schemas/token.d.mts +0 -17
  427. package/dist/schemas/token.d.ts +0 -17
  428. package/dist/schemas/token.d.ts.map +0 -1
  429. package/dist/schemas/transaction.d.mts +0 -65
  430. package/dist/schemas/transaction.d.ts +0 -65
  431. package/dist/schemas/transaction.d.ts.map +0 -1
  432. package/dist/schemas/user.d.mts +0 -24
  433. package/dist/schemas/user.d.ts +0 -24
  434. package/dist/schemas/user.d.ts.map +0 -1
  435. package/dist/server/client.d.mts +0 -3
  436. package/dist/server/client.d.ts +0 -3
  437. package/dist/server/client.d.ts.map +0 -1
  438. package/dist/server/routes/account.d.mts +0 -4
  439. package/dist/server/routes/account.d.ts +0 -4
  440. package/dist/server/routes/account.d.ts.map +0 -1
  441. package/dist/server/routes/auth.d.mts +0 -28
  442. package/dist/server/routes/auth.d.ts +0 -28
  443. package/dist/server/routes/auth.d.ts.map +0 -1
  444. package/dist/server/routes/bridge.d.mts +0 -254
  445. package/dist/server/routes/bridge.d.ts +0 -254
  446. package/dist/server/routes/bridge.d.ts.map +0 -1
  447. package/dist/server/routes/config.d.mts +0 -3
  448. package/dist/server/routes/config.d.ts +0 -3
  449. package/dist/server/routes/config.d.ts.map +0 -1
  450. package/dist/server/routes/index.d.mts +0 -8
  451. package/dist/server/routes/index.d.ts +0 -8
  452. package/dist/server/routes/index.d.ts.map +0 -1
  453. package/dist/server/routes/instruction.d.mts +0 -4
  454. package/dist/server/routes/instruction.d.ts +0 -4
  455. package/dist/server/routes/instruction.d.ts.map +0 -1
  456. package/dist/server/routes/integration.d.mts +0 -4
  457. package/dist/server/routes/integration.d.ts +0 -4
  458. package/dist/server/routes/integration.d.ts.map +0 -1
  459. package/dist/server/routes/payments.d.mts +0 -5
  460. package/dist/server/routes/payments.d.ts +0 -5
  461. package/dist/server/routes/payments.d.ts.map +0 -1
  462. package/dist/server/routes/verify.d.mts +0 -3
  463. package/dist/server/routes/verify.d.ts +0 -3
  464. package/dist/server/routes/verify.d.ts.map +0 -1
  465. package/dist/wallet/wagmi/config.d.mts +0 -18
  466. package/dist/wallet/wagmi/config.d.ts +0 -18
  467. package/dist/wallet/wagmi/config.d.ts.map +0 -1
@@ -0,0 +1,1291 @@
1
+ const require_chunk = require('./chunk-kSYXY2_d.js');
2
+ const require_defineProperty = require('./defineProperty-DbMdhrDE.js');
3
+ const require_date = require('./date-CFzrYcjE.js');
4
+ let zod = require("zod");
5
+ let _otim_utils_schemas = require("@otim/utils/schemas");
6
+ let viem = require("viem");
7
+ let _maskito_kit = require("@maskito/kit");
8
+
9
+ //#region src/helpers/address.ts
10
+ /**
11
+ * Check if two addresses are equal (case-insensitive)
12
+ * Works with Ethereum addresses and other blockchain addresses
13
+ */
14
+ const areAddressesEqual = (address1, address2) => {
15
+ if (!address1 || !address2) return false;
16
+ return address1.toLowerCase() === address2.toLowerCase();
17
+ };
18
+
19
+ //#endregion
20
+ //#region src/helpers/activity.ts
21
+ function isTransferActivity(activity) {
22
+ return "transfer" in activity;
23
+ }
24
+ function isSwapActivity(activity) {
25
+ return "swap" in activity;
26
+ }
27
+ function isCctpBurnActivity(activity) {
28
+ return "cctpBurn" in activity;
29
+ }
30
+ function isErc4626DepositActivity(activity) {
31
+ return "erc4626Deposit" in activity;
32
+ }
33
+ function isErc4626WithdrawActivity(activity) {
34
+ return "erc4626Withdraw" in activity;
35
+ }
36
+ function extractBaseActivityDetails(activity) {
37
+ if (isTransferActivity(activity)) return {
38
+ from: activity.transfer.from,
39
+ to: activity.transfer.to,
40
+ amount: activity.transfer.value,
41
+ token: activity.transfer.token
42
+ };
43
+ if (isSwapActivity(activity)) return {
44
+ from: activity.swap.from,
45
+ to: activity.swap.to,
46
+ amount: activity.swap.fromAmount,
47
+ token: activity.swap.fromToken
48
+ };
49
+ if (isCctpBurnActivity(activity)) return {
50
+ from: activity.cctpBurn.from,
51
+ to: activity.cctpBurn.mintRecipient,
52
+ amount: activity.cctpBurn.value,
53
+ token: activity.cctpBurn.token
54
+ };
55
+ if (isErc4626DepositActivity(activity)) return {
56
+ from: activity.erc4626Deposit.from,
57
+ to: activity.erc4626Deposit.vault,
58
+ amount: activity.erc4626Deposit.value,
59
+ token: activity.erc4626Deposit.token
60
+ };
61
+ if (isErc4626WithdrawActivity(activity)) return {
62
+ from: activity.erc4626Withdraw.from,
63
+ to: activity.erc4626Withdraw.to,
64
+ amount: activity.erc4626Withdraw.value,
65
+ token: activity.erc4626Withdraw.token
66
+ };
67
+ return {
68
+ from: "0x0",
69
+ to: "0x0",
70
+ amount: "0",
71
+ token: "0x0"
72
+ };
73
+ }
74
+ /**
75
+ * Converts a Unix timestamp (seconds) to an ISO date string.
76
+ *
77
+ * @param timestamp - Unix timestamp in seconds
78
+ * @returns ISO date string
79
+ */
80
+ function timestampToISOString(timestamp) {
81
+ return (/* @__PURE__ */ new Date(timestamp * 1e3)).toISOString();
82
+ }
83
+
84
+ //#endregion
85
+ //#region src/helpers/blockchain.ts
86
+ const truncateAddress = (address) => {
87
+ if (!address) return "";
88
+ return `${address.slice(0, 6)}...${address.slice(-4)}`;
89
+ };
90
+ /**
91
+ * Ethereum address regex pattern
92
+ * Matches addresses like 0x1234...abcd (40 hex characters after 0x prefix)
93
+ */
94
+ const ETHEREUM_ADDRESS_REGEX = /^0x[a-fA-F0-9]{40}$/;
95
+ /**
96
+ * Validates if a string is a valid Ethereum address format
97
+ * @param address - The address string to validate
98
+ * @returns true if the address matches the Ethereum address format
99
+ */
100
+ const isValidEthereumAddress = (address) => {
101
+ return ETHEREUM_ADDRESS_REGEX.test(address);
102
+ };
103
+ /**
104
+ * Parses a signature string into its v, r, s components.
105
+ * @param signature - The signature string to parse (must be 0x-prefixed, 132 chars total)
106
+ * @returns VRS object containing v, r, and s values
107
+ */
108
+ const parseSignatureToVRS = (signature) => {
109
+ if (typeof signature !== "string") throw new Error("Signature must be a string");
110
+ if (!signature.startsWith("0x")) throw new Error("Signature must start with \"0x\"");
111
+ if (signature.length !== 132) throw new Error("Signature must be 65 bytes (130 hex chars) plus \"0x\" = 132 total length");
112
+ const r = signature.slice(2, 66);
113
+ const s = signature.slice(66, 130);
114
+ const vHex = signature.slice(130, 132);
115
+ return {
116
+ v: parseInt(vHex, 16),
117
+ r: `0x${r}`,
118
+ s: `0x${s}`
119
+ };
120
+ };
121
+ const isValidV = (v) => {
122
+ return v === 0 || v === 1 || v === 27 || v === 28 || v >= 35;
123
+ };
124
+ const normalizeV = (v) => {
125
+ if (!isValidV(v)) return 0;
126
+ const cmp = v <= 1 ? 1 : 0;
127
+ const result = v % 2 === cmp;
128
+ return Number(result) % 2;
129
+ };
130
+ /**
131
+ * Creates an EIP-2098 compact signature from VRS components.
132
+ * @param vrs - The VRS signature components
133
+ * @returns EIP2098Signature object with yParity, r, and s
134
+ */
135
+ const createEIP2098Signature = (vrs) => {
136
+ const v = vrs.v;
137
+ const r = vrs.r;
138
+ const s = vrs.s;
139
+ return {
140
+ yParity: normalizeV(v),
141
+ r,
142
+ s
143
+ };
144
+ };
145
+ const getChainRpcUrl = (chainId, chains) => {
146
+ return chains.find((chain) => chain.id === chainId)?.rpcUrls.default;
147
+ };
148
+ const DEFAULT_ADDRESS = "0x0000000000000000000000000000000000000000";
149
+ const isNullAddress = (address) => {
150
+ return (0, viem.isAddressEqual)(address, DEFAULT_ADDRESS);
151
+ };
152
+ /**
153
+ * Parses a hex amount string with decimals into a number.
154
+ *
155
+ * @param hexAmount - The hex string (e.g. "0x...")
156
+ * @param decimals - Token decimals
157
+ * @returns The parsed number
158
+ */
159
+ function parseHexAmount(hexAmount, decimals) {
160
+ try {
161
+ const value = BigInt(hexAmount);
162
+ return Number(value) / 10 ** decimals;
163
+ } catch (error) {
164
+ console.warn(`Failed to parse hex amount: ${hexAmount}`, error);
165
+ return 0;
166
+ }
167
+ }
168
+
169
+ //#endregion
170
+ //#region src/helpers/datetime.ts
171
+ const timeUnitInputValueSchema = zod.z.object({
172
+ unit: _otim_utils_schemas.timeUnitSchema,
173
+ value: zod.z.number().finite(),
174
+ seconds: zod.z.number().finite()
175
+ });
176
+ const isTimeUnitInputValue = (value) => {
177
+ if (typeof value !== "object" || value === null) return false;
178
+ const obj = value;
179
+ return "unit" in obj && "value" in obj && "seconds" in obj && typeof obj.unit === "string" && typeof obj.value === "number" && typeof obj.seconds === "number";
180
+ };
181
+ /**
182
+ * safely parses a JSON string to TimeUnitInputValue.
183
+ * returns undefined if parsing fails or result is invalid.
184
+ */
185
+ const parseJsonToTimeUnitValue = (jsonString) => {
186
+ try {
187
+ const parsed = JSON.parse(jsonString);
188
+ return isTimeUnitInputValue(parsed) ? parsed : void 0;
189
+ } catch {
190
+ return;
191
+ }
192
+ };
193
+ /**
194
+ * converts various value formats to TimeUnitInputValue.
195
+ * handles both direct objects and JSON strings from form system.
196
+ *
197
+ * @param value – value from form field (can be object, string, or other)
198
+ * @returns parsed TimeUnitInputValue or undefined if invalid
199
+ */
200
+ const parseTimeUnitValue = (value) => {
201
+ if (!value) return void 0;
202
+ if (isTimeUnitInputValue(value)) return value;
203
+ if (typeof value === "string") return parseJsonToTimeUnitValue(value);
204
+ };
205
+ /**
206
+ * serializes TimeUnitInputValue to JSON string for form compatibility.
207
+ *
208
+ * @param value – TimeUnitInputValue to serialize
209
+ * @returns JSON string representation
210
+ */
211
+ const serializeTimeUnitValue = (value) => {
212
+ return JSON.stringify(value);
213
+ };
214
+ /**
215
+ * validates if a value can be converted to a valid TimeUnitInputValue.
216
+ *
217
+ * @param value – value to validate
218
+ * @returns true if value is valid, false otherwise
219
+ */
220
+ const isValidTimeUnitValue = (value) => {
221
+ return parseTimeUnitValue(value) !== void 0;
222
+ };
223
+ /**
224
+ * gets the total seconds from a TimeUnitInputValue or its serialized form.
225
+ *
226
+ * @param value – TimeUnitInputValue or JSON string
227
+ * @returns number of seconds or 0 if invalid
228
+ */
229
+ const getSecondsFromTimeUnitValue = (value) => {
230
+ return parseTimeUnitValue(value)?.seconds ?? 0;
231
+ };
232
+ const coerceSecondsFromTimeUnitValue = (value) => {
233
+ if (!value) return 0;
234
+ if (typeof value === "object") {
235
+ const seconds = value?.seconds;
236
+ if (typeof seconds === "number" && Number.isFinite(seconds)) return seconds;
237
+ }
238
+ if (typeof value === "string") try {
239
+ const seconds = JSON.parse(value)?.seconds;
240
+ if (typeof seconds === "number" && Number.isFinite(seconds)) return seconds;
241
+ } catch {}
242
+ return 0;
243
+ };
244
+
245
+ //#endregion
246
+ //#region src/helpers/domain.ts
247
+ function getBaseDomain(hostname) {
248
+ /**
249
+ * Localhost: Preserve full hostname since WebAuthn allows subdomain RPIDs in
250
+ * development (app.localhost:3000, etc.)
251
+ */
252
+ if (hostname.includes("localhost")) return hostname;
253
+ const parts = hostname.split(".");
254
+ if (parts.length < 2) return hostname;
255
+ if (parts.length === 2) return hostname;
256
+ const lastTwoParts = parts.slice(-2).join(".");
257
+ if ([
258
+ "co.uk",
259
+ "com.au",
260
+ "co.jp",
261
+ "co.kr",
262
+ "co.za",
263
+ "co.in",
264
+ "com.br",
265
+ "com.mx",
266
+ "com.ar",
267
+ "com.cn",
268
+ "com.tw",
269
+ "org.uk",
270
+ "net.uk",
271
+ "ac.uk",
272
+ "gov.uk"
273
+ ].includes(lastTwoParts)) return parts.slice(-3).join(".");
274
+ if ([
275
+ "vercel.app",
276
+ "netlify.app",
277
+ "github.io",
278
+ "gitlab.io"
279
+ ].includes(lastTwoParts)) return hostname;
280
+ return parts.slice(-2).join(".");
281
+ }
282
+
283
+ //#endregion
284
+ //#region src/helpers/external-account.ts
285
+ /**
286
+ * External account display formatting helpers
287
+ */
288
+ /**
289
+ * Formats external account information for display
290
+ *
291
+ * @param externalAccount - External account object with optional properties
292
+ * @returns Formatted display name for the external account
293
+ */
294
+ function formatExternalAccountName(externalAccount) {
295
+ const { accountName, bankName, last_4 } = externalAccount;
296
+ if (accountName) {
297
+ const parts = [];
298
+ if (bankName) parts.push(bankName);
299
+ parts.push(accountName);
300
+ let name = parts.join(" · ");
301
+ if (last_4) name += ` (...${last_4})`;
302
+ return name;
303
+ }
304
+ if (bankName) {
305
+ let name = bankName;
306
+ if (last_4) name += ` (...${last_4})`;
307
+ return name;
308
+ }
309
+ if (last_4) return `Bank Account (...${last_4})`;
310
+ return "Bank Account";
311
+ }
312
+
313
+ //#endregion
314
+ //#region src/helpers/intl.ts
315
+ const locales = ["en", "es"];
316
+ /**
317
+ * Floors a number to a specific number of decimal places.
318
+ * This ensures values are always rounded down, never up.
319
+ *
320
+ * @param value - The number to floor
321
+ * @param decimals - Number of decimal places to keep
322
+ * @returns The floored number
323
+ */
324
+ const floorToDecimals = (value, decimals) => {
325
+ const multiplier = Math.pow(10, decimals);
326
+ return Math.floor(value * multiplier) / multiplier;
327
+ };
328
+ const i18n = {
329
+ defaultLocale: "en",
330
+ locales: [...locales]
331
+ };
332
+ const localeSchema = zod.z.enum(locales);
333
+ const formattedNumber = (num) => {
334
+ if (!Number.isFinite(num)) return "0.00";
335
+ return new Intl.NumberFormat("en-US", {
336
+ minimumFractionDigits: 2,
337
+ maximumFractionDigits: 2
338
+ }).format(num);
339
+ };
340
+ /**
341
+ * Formats a token or asset amount with appropriate decimal places
342
+ * based on the magnitude of the value.
343
+ * Values are floored (rounded down) to avoid showing inflated amounts.
344
+ *
345
+ * @param amount - The amount to format
346
+ * @param decimals - Optional maximum decimal places
347
+ */
348
+ const formatAmount = (amount, decimals) => {
349
+ if (amount === 0) return "0";
350
+ if (amount < 1e-6) return amount.toExponential(2);
351
+ if (amount < 1) return floorToDecimals(amount, decimals ?? 6).toString();
352
+ if (amount < 1e3) return floorToDecimals(amount, decimals ?? 2).toString();
353
+ const decimalPlaces = decimals ?? 2;
354
+ return floorToDecimals(amount, decimalPlaces).toLocaleString("en-US", {
355
+ minimumFractionDigits: 2,
356
+ maximumFractionDigits: decimalPlaces
357
+ });
358
+ };
359
+ /**
360
+ * Formats a number as USD currency with proper locale formatting.
361
+ * Values are floored (rounded down) to avoid showing inflated amounts.
362
+ *
363
+ * @param amount – The amount to format
364
+ * @param options – Optional Intl.NumberFormatOptions to customize formatting
365
+ * @returns – Formatted currency string (e.g., "$1,234.56")
366
+ */
367
+ const formatCurrency = (amount, options) => {
368
+ const numAmount = typeof amount === "string" ? parseFloat(amount) : amount;
369
+ if (isNaN(numAmount)) return "$0.00";
370
+ const floored = floorToDecimals(numAmount, 2);
371
+ return new Intl.NumberFormat("en-US", {
372
+ style: "currency",
373
+ currency: "USD",
374
+ minimumFractionDigits: 2,
375
+ maximumFractionDigits: 2,
376
+ ...options
377
+ }).format(floored);
378
+ };
379
+ /**
380
+ * Formats a number as USD currency with smart decimal places based on magnitude.
381
+ * Shows more precision for small values to avoid displaying "$0.00" for meaningful amounts.
382
+ * Values are floored (rounded down) to avoid showing inflated amounts.
383
+ *
384
+ * @param amount – The amount to format
385
+ * @returns – Formatted currency string with adaptive decimals
386
+ *
387
+ * @example
388
+ * formatSmartCurrency(0) // "$0"
389
+ * formatSmartCurrency(0.0000001) // "<$0.000001"
390
+ * formatSmartCurrency(0.003456) // "$0.003456"
391
+ * formatSmartCurrency(0.5678) // "$0.5678"
392
+ * formatSmartCurrency(1234.56) // "$1,234.56"
393
+ */
394
+ const formatSmartCurrency = (amount) => {
395
+ const num = typeof amount === "string" ? parseFloat(amount) : amount;
396
+ if (isNaN(num) || num === 0) return "$0";
397
+ if (num < 1e-6) return "<$0.000001";
398
+ if (num < .01) return `$${floorToDecimals(num, 6)}`;
399
+ if (num < 1) return `$${floorToDecimals(num, 4)}`;
400
+ const floored = floorToDecimals(num, 2);
401
+ return new Intl.NumberFormat("en-US", {
402
+ style: "currency",
403
+ currency: "USD",
404
+ minimumFractionDigits: 2,
405
+ maximumFractionDigits: 2
406
+ }).format(floored);
407
+ };
408
+ /**
409
+ * Alias for formatCurrency specifically for USD
410
+ */
411
+ const formatUsd = formatCurrency;
412
+ /**
413
+ * Formats a USD amount without the currency symbol.
414
+ * Values are floored (rounded down) to avoid showing inflated amounts.
415
+ *
416
+ * @param amount – The amount to format
417
+ * @param options – Optional Intl.NumberFormatOptions to customize formatting
418
+ * @returns – Formatted amount string (e.g., "1,234.56")
419
+ */
420
+ const formatUsdAmount = (amount, options) => {
421
+ const numAmount = typeof amount === "string" ? parseFloat(amount) : amount;
422
+ if (isNaN(numAmount)) return "0.00";
423
+ return floorToDecimals(numAmount, 2).toLocaleString("en-US", {
424
+ minimumFractionDigits: 2,
425
+ maximumFractionDigits: 2,
426
+ ...options
427
+ });
428
+ };
429
+
430
+ //#endregion
431
+ //#region src/helpers/mask-options.ts
432
+ const SHORT_FORM_POSTAL_MASK = [
433
+ /\d/,
434
+ /\d/,
435
+ /\d/,
436
+ /\d/,
437
+ /\d/
438
+ ];
439
+ const LONG_FORM_POSTAL_MASK = [
440
+ /\d/,
441
+ /\d/,
442
+ /\d/,
443
+ /\d/,
444
+ /\d/,
445
+ "-",
446
+ /\d/,
447
+ /\d/,
448
+ /\d/,
449
+ /\d/
450
+ ];
451
+ const postalCodeMaskOptions = { mask: (state) => {
452
+ return state.value.length > 5 ? LONG_FORM_POSTAL_MASK : SHORT_FORM_POSTAL_MASK;
453
+ } };
454
+ const dateMaskOptions = (0, _maskito_kit.maskitoDateOptionsGenerator)({
455
+ mode: "mm/dd/yyyy",
456
+ separator: "/"
457
+ });
458
+ const timeOptions = (0, _maskito_kit.maskitoTimeOptionsGenerator)({ mode: "HH:MM:SS AA" });
459
+ const timeOptionsWithoutMeridiem = (0, _maskito_kit.maskitoTimeOptionsGenerator)({ mode: "HH:MM:SS" });
460
+ const timeMaskOptionsHHMM = (0, _maskito_kit.maskitoTimeOptionsGenerator)({ mode: "HH:MM" });
461
+ const formatUUID = (value) => {
462
+ if (!value) return "";
463
+ const limitedHex = value.replace(/[^0-9a-f-]/gi, "").replace(/-/g, "").slice(0, 32);
464
+ if (limitedHex.length === 32) return [
465
+ limitedHex.slice(0, 8),
466
+ limitedHex.slice(8, 12),
467
+ limitedHex.slice(12, 16),
468
+ limitedHex.slice(16, 20),
469
+ limitedHex.slice(20, 32)
470
+ ].join("-");
471
+ let formatted = "";
472
+ let index = 0;
473
+ if (index < limitedHex.length) {
474
+ const group1 = limitedHex.slice(index, Math.min(index + 8, limitedHex.length));
475
+ formatted += group1;
476
+ index += 8;
477
+ if (index <= limitedHex.length && group1.length === 8) formatted += "-";
478
+ }
479
+ if (index < limitedHex.length) {
480
+ const group2 = limitedHex.slice(index, Math.min(index + 4, limitedHex.length));
481
+ formatted += group2;
482
+ index += 4;
483
+ if (index <= limitedHex.length && group2.length === 4) formatted += "-";
484
+ }
485
+ if (index < limitedHex.length) {
486
+ const group3 = limitedHex.slice(index, Math.min(index + 4, limitedHex.length));
487
+ formatted += group3;
488
+ index += 4;
489
+ if (index <= limitedHex.length && group3.length === 4) formatted += "-";
490
+ }
491
+ if (index < limitedHex.length) {
492
+ const group4 = limitedHex.slice(index, Math.min(index + 4, limitedHex.length));
493
+ formatted += group4;
494
+ index += 4;
495
+ if (index <= limitedHex.length && group4.length === 4) formatted += "-";
496
+ }
497
+ if (index < limitedHex.length) formatted += limitedHex.slice(index, Math.min(index + 12, limitedHex.length));
498
+ return formatted;
499
+ };
500
+ const uuidMaskOptions = { mask: /^[0-9a-f-]*$/i };
501
+ const usdCurrencyMaskOptions = {
502
+ mask: /^[0-9., $]*$/,
503
+ postprocessors: [(state) => {
504
+ const selectionEnd = state.selection?.[1] ?? state.value.length;
505
+ const numeric = state.value.replace(/[^0-9]/g, "");
506
+ if (numeric.length === 0) return {
507
+ ...state,
508
+ value: "",
509
+ selection: [0, 0]
510
+ };
511
+ const clamped = numeric.slice(0, 11);
512
+ const formatted = formatCurrency(Number(clamped) / 100);
513
+ const nextCaret = Math.min(formatted.length, selectionEnd + (formatted.length - state.value.length));
514
+ return {
515
+ ...state,
516
+ value: formatted,
517
+ selection: [nextCaret, nextCaret]
518
+ };
519
+ }]
520
+ };
521
+
522
+ //#endregion
523
+ //#region src/helpers/num-formatter.ts
524
+ const numFormatter = (num, round) => {
525
+ if (num >= 1e3 && num < 1e6) return `${(num / 1e3).toFixed(typeof round === "number" ? round : num % 1e3 === 0 ? 0 : 1)}K`;
526
+ if (num >= 1e6 && num < 1e9) return `${(num / 1e6).toFixed(typeof round === "number" ? round : num % 1e6 === 0 ? 0 : 2)}M`;
527
+ if (num > 1e9) return `${(num / 1e9).toFixed(typeof round === "number" ? round : num % 1e9 === 0 ? 0 : 2)}B`;
528
+ return Number(Number(num).toFixed(typeof round === "number" ? round : num * 100 % 100 === 0 ? 0 : 2));
529
+ };
530
+ const formatNumberAsUSStandard = (num) => {
531
+ return num.toLocaleString("en-US", { maximumSignificantDigits: 3 });
532
+ };
533
+
534
+ //#endregion
535
+ //#region src/helpers/window.ts
536
+ const isClient = () => typeof globalThis !== "undefined" && "window" in globalThis;
537
+ const DEFAULT_EMERGENT_WINDOW_CONFIG = {
538
+ width: 480,
539
+ height: 720,
540
+ name: "emergent_window"
541
+ };
542
+ /**
543
+ * Opens an emergent window centered on the screen.
544
+ * Used for authentication flows and external integrations.
545
+ *
546
+ * @param url - The URL to open in the emergent window
547
+ * @param config - Optional configuration for the window
548
+ * @returns The opened window or null if it failed
549
+ */
550
+ function openCenteredEmergentWindow(url, config = {}) {
551
+ if (!isClient()) return null;
552
+ const { width, height, name } = {
553
+ ...DEFAULT_EMERGENT_WINDOW_CONFIG,
554
+ ...config
555
+ };
556
+ const screenLeft = window.screenLeft ?? window.screenX ?? 0;
557
+ const screenTop = window.screenTop ?? window.screenY ?? 0;
558
+ const viewportWidth = window.innerWidth || document.documentElement.clientWidth || screen.width;
559
+ const viewportHeight = window.innerHeight || document.documentElement.clientHeight || screen.height;
560
+ const left = Math.max(0, screenLeft + (viewportWidth - width) / 2);
561
+ const top = Math.max(0, screenTop + (viewportHeight - height) / 2);
562
+ const features = [
563
+ "noopener",
564
+ "noreferrer",
565
+ `width=${width}`,
566
+ `height=${height}`,
567
+ `left=${left}`,
568
+ `top=${top}`,
569
+ "menubar=no",
570
+ "toolbar=no",
571
+ "location=no",
572
+ "status=no",
573
+ "scrollbars=yes"
574
+ ].join(",");
575
+ const emergentWindow = window.open(url, name, features);
576
+ try {
577
+ emergentWindow?.focus();
578
+ } catch (error) {
579
+ require_date.logger.logError(error, { context: openCenteredEmergentWindow.name });
580
+ }
581
+ return emergentWindow ?? null;
582
+ }
583
+ /**
584
+ * Closes an emergent window safely
585
+ *
586
+ * @param emergentWindow - The emergent window to close
587
+ */
588
+ function closeEmergentWindow(emergentWindow) {
589
+ if (!emergentWindow) return;
590
+ try {
591
+ emergentWindow.close();
592
+ } catch (error) {
593
+ require_date.logger.logError(error, { context: closeEmergentWindow.name });
594
+ }
595
+ }
596
+ function focusMainWindow() {
597
+ if (!isClient()) return;
598
+ try {
599
+ window.focus();
600
+ } catch (error) {
601
+ require_date.logger.logError(error, { context: focusMainWindow.name });
602
+ }
603
+ }
604
+ /**
605
+ * Performs a client-side redirect to the specified path
606
+ *
607
+ * @param path - The path to redirect to
608
+ * @param fallbackPath - Optional fallback path if the main path is empty
609
+ */
610
+ function performRedirect(path, fallbackPath = "/") {
611
+ if (!isClient()) return;
612
+ const redirectPath = path || fallbackPath;
613
+ window.location.href = redirectPath;
614
+ }
615
+
616
+ //#endregion
617
+ //#region src/helpers/polling.ts
618
+ const DEFAULT_POLLING_CONFIG = {
619
+ intervalMs: 1e3,
620
+ onComplete: () => {}
621
+ };
622
+ /**
623
+ * Manages polling for emergent window completion status.
624
+ * Generic utility that can be used for any async polling scenario.
625
+ * Follows Single Responsibility Principle - only handles polling logic.
626
+ */
627
+ var PollingManager = class {
628
+ constructor(config = {}) {
629
+ require_defineProperty._defineProperty(this, "emergentWindow", null);
630
+ require_defineProperty._defineProperty(this, "pollIntervalId", null);
631
+ require_defineProperty._defineProperty(this, "config", void 0);
632
+ this.config = {
633
+ ...DEFAULT_POLLING_CONFIG,
634
+ ...config
635
+ };
636
+ }
637
+ /**
638
+ * Starts polling for the given check function
639
+ *
640
+ * @param emergentWindow - The emergent window to monitor (optional)
641
+ * @param checkFn - Function that returns true when polling should stop
642
+ */
643
+ start(emergentWindow, checkFn) {
644
+ this.emergentWindow = emergentWindow;
645
+ this.stop();
646
+ this.pollIntervalId = window.setInterval(() => {
647
+ (async () => {
648
+ try {
649
+ if (await checkFn()) {
650
+ this.finalize();
651
+ this.config.onComplete();
652
+ }
653
+ } catch (error) {
654
+ require_date.logger.logError(error, { context: this.start.name });
655
+ }
656
+ })();
657
+ }, this.config.intervalMs);
658
+ }
659
+ stop() {
660
+ if (this.pollIntervalId !== null) {
661
+ clearInterval(this.pollIntervalId);
662
+ this.pollIntervalId = null;
663
+ }
664
+ }
665
+ /**
666
+ * Finalizes polling by closing emergent window, stopping interval, and returning focus
667
+ */
668
+ finalize() {
669
+ closeEmergentWindow(this.emergentWindow);
670
+ this.emergentWindow = null;
671
+ this.stop();
672
+ focusMainWindow();
673
+ }
674
+ dispose() {
675
+ this.finalize();
676
+ }
677
+ };
678
+
679
+ //#endregion
680
+ //#region src/helpers/random.ts
681
+ const randomNumber = (opts) => {
682
+ const { value, min, max } = opts;
683
+ let hash = 0;
684
+ for (let i = 0; i < value.length; i++) {
685
+ hash = (hash << 5) - hash + value.charCodeAt(i);
686
+ hash |= 0;
687
+ }
688
+ const normalizedHash = Math.abs(hash);
689
+ return Math.floor(normalizedHash % (max - min + 1)) + min;
690
+ };
691
+
692
+ //#endregion
693
+ //#region src/helpers/sdk-loader.ts
694
+ /**
695
+ * Default timeout for SDK loading (10 seconds)
696
+ */
697
+ const DEFAULT_SDK_TIMEOUT = 1e4;
698
+ /**
699
+ * Generic SDK loader utility for loading third-party scripts
700
+ * Follows Single Responsibility Principle - only handles script loading
701
+ *
702
+ * @param config - SDK loader configuration
703
+ * @returns Promise that resolves when SDK is loaded
704
+ * @throws Error if SDK fails to load or times out
705
+ */
706
+ async function loadExternalSdk(config) {
707
+ if (typeof window === "undefined") throw new Error(`${config.name} SDK can only be loaded in the browser`);
708
+ const timeout = config.timeout ?? DEFAULT_SDK_TIMEOUT;
709
+ return new Promise((resolve, reject) => {
710
+ const timeoutId = setTimeout(() => {
711
+ reject(/* @__PURE__ */ new Error(`${config.name} SDK loading timed out after ${timeout}ms`));
712
+ }, timeout);
713
+ const script = document.createElement("script");
714
+ script.src = config.src;
715
+ script.async = true;
716
+ script.onload = () => {
717
+ clearTimeout(timeoutId);
718
+ resolve();
719
+ };
720
+ script.onerror = () => {
721
+ clearTimeout(timeoutId);
722
+ reject(/* @__PURE__ */ new Error(`Failed to load ${config.name} SDK from ${config.src}`));
723
+ };
724
+ document.body.appendChild(script);
725
+ });
726
+ }
727
+ /**
728
+ * Checks if a script with the given src is already loaded
729
+ *
730
+ * @param src - Script source URL to check
731
+ * @returns true if script is already in the DOM
732
+ */
733
+ function isScriptLoaded(src) {
734
+ if (typeof window === "undefined") return false;
735
+ const scripts = document.getElementsByTagName("script");
736
+ for (let i = 0; i < scripts.length; i++) if (scripts[i]?.src === src) return true;
737
+ return false;
738
+ }
739
+
740
+ //#endregion
741
+ //#region src/helpers/signatures.ts
742
+ /**
743
+ * Converts a standard signature to EIP-2098 format
744
+ */
745
+ const formatSignatureToEIP2098 = (signature) => {
746
+ const ensureHexPrefix = (value) => value.startsWith("0x") ? value : `0x${value}`;
747
+ const vNum = Number.parseInt(signature.v, 16);
748
+ return {
749
+ yParity: (() => {
750
+ if (Number.isNaN(vNum)) return 0;
751
+ if (vNum <= 1) return vNum;
752
+ return vNum % 2 === 0 ? 1 : 0;
753
+ })(),
754
+ r: ensureHexPrefix(signature.r),
755
+ s: ensureHexPrefix(signature.s)
756
+ };
757
+ };
758
+
759
+ //#endregion
760
+ //#region src/helpers/string.ts
761
+ /**
762
+ * Capitalizes the first letter of a string
763
+ *
764
+ * @param str – The string to capitalize
765
+ * @returns The string with first letter capitalized, or undefined if input is
766
+ * nullish
767
+ */
768
+ const capitalize = (str) => {
769
+ if (!str) return str;
770
+ return str.charAt(0).toUpperCase() + str.slice(1);
771
+ };
772
+ /**
773
+ * Converts a string to title case (capitalizes first letter, lowercase rest)
774
+ *
775
+ * @param str – The string to convert
776
+ * @returns The string in title case, or undefined if input is nullish
777
+ */
778
+ const toTitleCase = (str) => {
779
+ if (!str) return str;
780
+ return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
781
+ };
782
+
783
+ //#endregion
784
+ //#region src/helpers/url.ts
785
+ /**
786
+ * Builds a query string from a params object, skipping undefined/null values.
787
+ * Encodes using encodeURIComponent. Returns empty string if no params.
788
+ */
789
+ function buildQueryString(params) {
790
+ const usp = new URLSearchParams();
791
+ Object.entries(params).forEach(([key, value]) => {
792
+ if (value === void 0 || value === null) return;
793
+ usp.set(key, String(value));
794
+ });
795
+ const qs = usp.toString();
796
+ return qs ? `?${qs}` : "";
797
+ }
798
+ /**
799
+ * Build a URL by combining a base path with optional query params.
800
+ */
801
+ function buildUrl(path, params) {
802
+ return `${path}${params ? buildQueryString(params) : ""}`;
803
+ }
804
+
805
+ //#endregion
806
+ //#region src/helpers/zod.ts
807
+ const composeValidators = (validators) => {
808
+ return (data, ctx) => {
809
+ for (const validator of validators) validator(data, ctx);
810
+ };
811
+ };
812
+ const secondsToHumanReadable = (seconds) => {
813
+ if (seconds >= 3600) {
814
+ const hours = seconds / 3600;
815
+ const roundedHours = Math.round(hours * 10) / 10;
816
+ return roundedHours === 1 ? "1 hour" : `${roundedHours} hours`;
817
+ } else if (seconds >= 60) {
818
+ const minutes = seconds / 60;
819
+ const roundedMinutes = Math.round(minutes * 10) / 10;
820
+ return roundedMinutes === 1 ? "1 minute" : `${roundedMinutes} minutes`;
821
+ } else return seconds === 1 ? "1 second" : `${seconds} seconds`;
822
+ };
823
+ /**
824
+ * creates a time unit validator for fields stored as JSON strings.
825
+ * validates both the JSON format and the minimum seconds requirement.
826
+ *
827
+ * @param fieldName – the name of the field for error messages
828
+ * @param options – configuration options
829
+ * @param options.minSeconds – minimum seconds required (default: 60)
830
+ * @param options.allowZero – whether to allow 0 seconds for "None" option (default: false)
831
+ * @param options.useHumanReadable – whether to use human-readable time in error messages (default: true)
832
+ */
833
+ const createTimeUnitValidator = (fieldName, options = {}) => {
834
+ const { minSeconds = 60, allowZero = false, useHumanReadable = true } = options;
835
+ return zod.z.string().optional().refine((value) => {
836
+ if (!value) return true;
837
+ const parsed = parseTimeUnitValue(value);
838
+ if (!parsed) return false;
839
+ const seconds = getSecondsFromTimeUnitValue(parsed);
840
+ return allowZero ? seconds >= 0 : seconds >= minSeconds;
841
+ }, { message: useHumanReadable ? `${fieldName} must be at least ${secondsToHumanReadable(minSeconds)}` : `${fieldName} must be at least ${minSeconds} seconds` });
842
+ };
843
+ /**
844
+ * Parse the input values using the provided schema. If the input values are
845
+ * invalid, throw a ResolverError.
846
+ * @param values - The input values to parse.
847
+ * @param schema - The schema to use to parse the input values.
848
+ * @param error - The error code to use if the input values are invalid.
849
+ * @returns The parsed input values.
850
+ * @throws ResolverError if the input values are invalid.
851
+ */
852
+ const parseSchema = (values, schema) => {
853
+ const inputValues = schema.safeParse(values);
854
+ if (!inputValues.success) throw new Error(`parseSchema: invalid input values ${JSON.stringify(inputValues.error)}`);
855
+ return inputValues.data;
856
+ };
857
+ /**
858
+ * Creates a permissive decimal string schema that allows empty strings.
859
+ * Converts undefined/null values to empty strings, preventing "expected string, received undefined" errors.
860
+ * Useful for form fields where validation happens in a refine step.
861
+ */
862
+ const formDecimalStringSchema = () => zod.z.preprocess((val) => {
863
+ if (val === void 0 || val === null) return "";
864
+ if (typeof val === "string" || typeof val === "number") return String(val);
865
+ return "";
866
+ }, zod.z.string());
867
+ /**
868
+ * Creates a hex string schema with preprocessing that defaults to DEFAULT_ADDRESS.
869
+ * Converts undefined/null/empty values to DEFAULT_ADDRESS before validation.
870
+ * Useful for form fields that expect hex addresses.
871
+ */
872
+ const formHexStringSchema = () => zod.z.preprocess((val) => val === void 0 || val === null || val === "" ? DEFAULT_ADDRESS : val, _otim_utils_schemas.hexStringSchema);
873
+ /**
874
+ * Checks if an error message is an internal Zod error that shouldn't be shown to users.
875
+ */
876
+ const isInternalZodError = (error) => {
877
+ return error.includes("expected string, received") || error.includes("Invalid input") || error.includes("Expected string");
878
+ };
879
+ /**
880
+ * Filters out Zod internal errors that shouldn't be shown to users.
881
+ * Only returns user-friendly validation messages.
882
+ *
883
+ * @param errors - Array of error messages from Zod validation, or a single error string
884
+ * @param fieldValue - The field value being validated
885
+ * @returns User-friendly error message or undefined
886
+ */
887
+ const getDisplayableZodError = (errors, fieldValue) => {
888
+ if (!errors || Array.isArray(errors) && errors.length === 0) return void 0;
889
+ if (!(typeof fieldValue === "string" ? fieldValue.trim() : "")) return void 0;
890
+ const filteredErrors = (Array.isArray(errors) ? errors : [errors]).filter((error) => !isInternalZodError(error));
891
+ return filteredErrors.length > 0 ? filteredErrors.join(", ") : void 0;
892
+ };
893
+
894
+ //#endregion
895
+ Object.defineProperty(exports, 'DEFAULT_ADDRESS', {
896
+ enumerable: true,
897
+ get: function () {
898
+ return DEFAULT_ADDRESS;
899
+ }
900
+ });
901
+ Object.defineProperty(exports, 'ETHEREUM_ADDRESS_REGEX', {
902
+ enumerable: true,
903
+ get: function () {
904
+ return ETHEREUM_ADDRESS_REGEX;
905
+ }
906
+ });
907
+ Object.defineProperty(exports, 'PollingManager', {
908
+ enumerable: true,
909
+ get: function () {
910
+ return PollingManager;
911
+ }
912
+ });
913
+ Object.defineProperty(exports, 'areAddressesEqual', {
914
+ enumerable: true,
915
+ get: function () {
916
+ return areAddressesEqual;
917
+ }
918
+ });
919
+ Object.defineProperty(exports, 'buildQueryString', {
920
+ enumerable: true,
921
+ get: function () {
922
+ return buildQueryString;
923
+ }
924
+ });
925
+ Object.defineProperty(exports, 'buildUrl', {
926
+ enumerable: true,
927
+ get: function () {
928
+ return buildUrl;
929
+ }
930
+ });
931
+ Object.defineProperty(exports, 'capitalize', {
932
+ enumerable: true,
933
+ get: function () {
934
+ return capitalize;
935
+ }
936
+ });
937
+ Object.defineProperty(exports, 'closeEmergentWindow', {
938
+ enumerable: true,
939
+ get: function () {
940
+ return closeEmergentWindow;
941
+ }
942
+ });
943
+ Object.defineProperty(exports, 'coerceSecondsFromTimeUnitValue', {
944
+ enumerable: true,
945
+ get: function () {
946
+ return coerceSecondsFromTimeUnitValue;
947
+ }
948
+ });
949
+ Object.defineProperty(exports, 'composeValidators', {
950
+ enumerable: true,
951
+ get: function () {
952
+ return composeValidators;
953
+ }
954
+ });
955
+ Object.defineProperty(exports, 'createEIP2098Signature', {
956
+ enumerable: true,
957
+ get: function () {
958
+ return createEIP2098Signature;
959
+ }
960
+ });
961
+ Object.defineProperty(exports, 'createTimeUnitValidator', {
962
+ enumerable: true,
963
+ get: function () {
964
+ return createTimeUnitValidator;
965
+ }
966
+ });
967
+ Object.defineProperty(exports, 'dateMaskOptions', {
968
+ enumerable: true,
969
+ get: function () {
970
+ return dateMaskOptions;
971
+ }
972
+ });
973
+ Object.defineProperty(exports, 'extractBaseActivityDetails', {
974
+ enumerable: true,
975
+ get: function () {
976
+ return extractBaseActivityDetails;
977
+ }
978
+ });
979
+ Object.defineProperty(exports, 'floorToDecimals', {
980
+ enumerable: true,
981
+ get: function () {
982
+ return floorToDecimals;
983
+ }
984
+ });
985
+ Object.defineProperty(exports, 'focusMainWindow', {
986
+ enumerable: true,
987
+ get: function () {
988
+ return focusMainWindow;
989
+ }
990
+ });
991
+ Object.defineProperty(exports, 'formDecimalStringSchema', {
992
+ enumerable: true,
993
+ get: function () {
994
+ return formDecimalStringSchema;
995
+ }
996
+ });
997
+ Object.defineProperty(exports, 'formHexStringSchema', {
998
+ enumerable: true,
999
+ get: function () {
1000
+ return formHexStringSchema;
1001
+ }
1002
+ });
1003
+ Object.defineProperty(exports, 'formatAmount', {
1004
+ enumerable: true,
1005
+ get: function () {
1006
+ return formatAmount;
1007
+ }
1008
+ });
1009
+ Object.defineProperty(exports, 'formatCurrency', {
1010
+ enumerable: true,
1011
+ get: function () {
1012
+ return formatCurrency;
1013
+ }
1014
+ });
1015
+ Object.defineProperty(exports, 'formatExternalAccountName', {
1016
+ enumerable: true,
1017
+ get: function () {
1018
+ return formatExternalAccountName;
1019
+ }
1020
+ });
1021
+ Object.defineProperty(exports, 'formatNumberAsUSStandard', {
1022
+ enumerable: true,
1023
+ get: function () {
1024
+ return formatNumberAsUSStandard;
1025
+ }
1026
+ });
1027
+ Object.defineProperty(exports, 'formatSignatureToEIP2098', {
1028
+ enumerable: true,
1029
+ get: function () {
1030
+ return formatSignatureToEIP2098;
1031
+ }
1032
+ });
1033
+ Object.defineProperty(exports, 'formatSmartCurrency', {
1034
+ enumerable: true,
1035
+ get: function () {
1036
+ return formatSmartCurrency;
1037
+ }
1038
+ });
1039
+ Object.defineProperty(exports, 'formatUUID', {
1040
+ enumerable: true,
1041
+ get: function () {
1042
+ return formatUUID;
1043
+ }
1044
+ });
1045
+ Object.defineProperty(exports, 'formatUsd', {
1046
+ enumerable: true,
1047
+ get: function () {
1048
+ return formatUsd;
1049
+ }
1050
+ });
1051
+ Object.defineProperty(exports, 'formatUsdAmount', {
1052
+ enumerable: true,
1053
+ get: function () {
1054
+ return formatUsdAmount;
1055
+ }
1056
+ });
1057
+ Object.defineProperty(exports, 'formattedNumber', {
1058
+ enumerable: true,
1059
+ get: function () {
1060
+ return formattedNumber;
1061
+ }
1062
+ });
1063
+ Object.defineProperty(exports, 'getBaseDomain', {
1064
+ enumerable: true,
1065
+ get: function () {
1066
+ return getBaseDomain;
1067
+ }
1068
+ });
1069
+ Object.defineProperty(exports, 'getChainRpcUrl', {
1070
+ enumerable: true,
1071
+ get: function () {
1072
+ return getChainRpcUrl;
1073
+ }
1074
+ });
1075
+ Object.defineProperty(exports, 'getDisplayableZodError', {
1076
+ enumerable: true,
1077
+ get: function () {
1078
+ return getDisplayableZodError;
1079
+ }
1080
+ });
1081
+ Object.defineProperty(exports, 'getSecondsFromTimeUnitValue', {
1082
+ enumerable: true,
1083
+ get: function () {
1084
+ return getSecondsFromTimeUnitValue;
1085
+ }
1086
+ });
1087
+ Object.defineProperty(exports, 'i18n', {
1088
+ enumerable: true,
1089
+ get: function () {
1090
+ return i18n;
1091
+ }
1092
+ });
1093
+ Object.defineProperty(exports, 'isCctpBurnActivity', {
1094
+ enumerable: true,
1095
+ get: function () {
1096
+ return isCctpBurnActivity;
1097
+ }
1098
+ });
1099
+ Object.defineProperty(exports, 'isClient', {
1100
+ enumerable: true,
1101
+ get: function () {
1102
+ return isClient;
1103
+ }
1104
+ });
1105
+ Object.defineProperty(exports, 'isErc4626DepositActivity', {
1106
+ enumerable: true,
1107
+ get: function () {
1108
+ return isErc4626DepositActivity;
1109
+ }
1110
+ });
1111
+ Object.defineProperty(exports, 'isErc4626WithdrawActivity', {
1112
+ enumerable: true,
1113
+ get: function () {
1114
+ return isErc4626WithdrawActivity;
1115
+ }
1116
+ });
1117
+ Object.defineProperty(exports, 'isNullAddress', {
1118
+ enumerable: true,
1119
+ get: function () {
1120
+ return isNullAddress;
1121
+ }
1122
+ });
1123
+ Object.defineProperty(exports, 'isScriptLoaded', {
1124
+ enumerable: true,
1125
+ get: function () {
1126
+ return isScriptLoaded;
1127
+ }
1128
+ });
1129
+ Object.defineProperty(exports, 'isSwapActivity', {
1130
+ enumerable: true,
1131
+ get: function () {
1132
+ return isSwapActivity;
1133
+ }
1134
+ });
1135
+ Object.defineProperty(exports, 'isTransferActivity', {
1136
+ enumerable: true,
1137
+ get: function () {
1138
+ return isTransferActivity;
1139
+ }
1140
+ });
1141
+ Object.defineProperty(exports, 'isValidEthereumAddress', {
1142
+ enumerable: true,
1143
+ get: function () {
1144
+ return isValidEthereumAddress;
1145
+ }
1146
+ });
1147
+ Object.defineProperty(exports, 'isValidTimeUnitValue', {
1148
+ enumerable: true,
1149
+ get: function () {
1150
+ return isValidTimeUnitValue;
1151
+ }
1152
+ });
1153
+ Object.defineProperty(exports, 'isValidV', {
1154
+ enumerable: true,
1155
+ get: function () {
1156
+ return isValidV;
1157
+ }
1158
+ });
1159
+ Object.defineProperty(exports, 'loadExternalSdk', {
1160
+ enumerable: true,
1161
+ get: function () {
1162
+ return loadExternalSdk;
1163
+ }
1164
+ });
1165
+ Object.defineProperty(exports, 'localeSchema', {
1166
+ enumerable: true,
1167
+ get: function () {
1168
+ return localeSchema;
1169
+ }
1170
+ });
1171
+ Object.defineProperty(exports, 'normalizeV', {
1172
+ enumerable: true,
1173
+ get: function () {
1174
+ return normalizeV;
1175
+ }
1176
+ });
1177
+ Object.defineProperty(exports, 'numFormatter', {
1178
+ enumerable: true,
1179
+ get: function () {
1180
+ return numFormatter;
1181
+ }
1182
+ });
1183
+ Object.defineProperty(exports, 'openCenteredEmergentWindow', {
1184
+ enumerable: true,
1185
+ get: function () {
1186
+ return openCenteredEmergentWindow;
1187
+ }
1188
+ });
1189
+ Object.defineProperty(exports, 'parseHexAmount', {
1190
+ enumerable: true,
1191
+ get: function () {
1192
+ return parseHexAmount;
1193
+ }
1194
+ });
1195
+ Object.defineProperty(exports, 'parseSchema', {
1196
+ enumerable: true,
1197
+ get: function () {
1198
+ return parseSchema;
1199
+ }
1200
+ });
1201
+ Object.defineProperty(exports, 'parseSignatureToVRS', {
1202
+ enumerable: true,
1203
+ get: function () {
1204
+ return parseSignatureToVRS;
1205
+ }
1206
+ });
1207
+ Object.defineProperty(exports, 'parseTimeUnitValue', {
1208
+ enumerable: true,
1209
+ get: function () {
1210
+ return parseTimeUnitValue;
1211
+ }
1212
+ });
1213
+ Object.defineProperty(exports, 'performRedirect', {
1214
+ enumerable: true,
1215
+ get: function () {
1216
+ return performRedirect;
1217
+ }
1218
+ });
1219
+ Object.defineProperty(exports, 'postalCodeMaskOptions', {
1220
+ enumerable: true,
1221
+ get: function () {
1222
+ return postalCodeMaskOptions;
1223
+ }
1224
+ });
1225
+ Object.defineProperty(exports, 'randomNumber', {
1226
+ enumerable: true,
1227
+ get: function () {
1228
+ return randomNumber;
1229
+ }
1230
+ });
1231
+ Object.defineProperty(exports, 'serializeTimeUnitValue', {
1232
+ enumerable: true,
1233
+ get: function () {
1234
+ return serializeTimeUnitValue;
1235
+ }
1236
+ });
1237
+ Object.defineProperty(exports, 'timeMaskOptionsHHMM', {
1238
+ enumerable: true,
1239
+ get: function () {
1240
+ return timeMaskOptionsHHMM;
1241
+ }
1242
+ });
1243
+ Object.defineProperty(exports, 'timeOptions', {
1244
+ enumerable: true,
1245
+ get: function () {
1246
+ return timeOptions;
1247
+ }
1248
+ });
1249
+ Object.defineProperty(exports, 'timeOptionsWithoutMeridiem', {
1250
+ enumerable: true,
1251
+ get: function () {
1252
+ return timeOptionsWithoutMeridiem;
1253
+ }
1254
+ });
1255
+ Object.defineProperty(exports, 'timeUnitInputValueSchema', {
1256
+ enumerable: true,
1257
+ get: function () {
1258
+ return timeUnitInputValueSchema;
1259
+ }
1260
+ });
1261
+ Object.defineProperty(exports, 'timestampToISOString', {
1262
+ enumerable: true,
1263
+ get: function () {
1264
+ return timestampToISOString;
1265
+ }
1266
+ });
1267
+ Object.defineProperty(exports, 'toTitleCase', {
1268
+ enumerable: true,
1269
+ get: function () {
1270
+ return toTitleCase;
1271
+ }
1272
+ });
1273
+ Object.defineProperty(exports, 'truncateAddress', {
1274
+ enumerable: true,
1275
+ get: function () {
1276
+ return truncateAddress;
1277
+ }
1278
+ });
1279
+ Object.defineProperty(exports, 'usdCurrencyMaskOptions', {
1280
+ enumerable: true,
1281
+ get: function () {
1282
+ return usdCurrencyMaskOptions;
1283
+ }
1284
+ });
1285
+ Object.defineProperty(exports, 'uuidMaskOptions', {
1286
+ enumerable: true,
1287
+ get: function () {
1288
+ return uuidMaskOptions;
1289
+ }
1290
+ });
1291
+ //# sourceMappingURL=helpers-DoC7Xl12.js.map