@velora-dex/widget 0.0.15 → 0.0.16

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 (569) hide show
  1. package/README.md +91 -29
  2. package/dist/assets/circle-check.svg.js +12 -0
  3. package/dist/assets/circle-check.svg.js.map +1 -0
  4. package/dist/assets/circle-exclamation.svg.js +12 -0
  5. package/dist/assets/circle-exclamation.svg.js.map +1 -0
  6. package/dist/assets/copy.svg.js +12 -0
  7. package/dist/assets/copy.svg.js.map +1 -0
  8. package/dist/assets/external-url.svg.js +12 -0
  9. package/dist/assets/external-url.svg.js.map +1 -0
  10. package/dist/assets/logout.svg.js +12 -0
  11. package/dist/assets/logout.svg.js.map +1 -0
  12. package/dist/assets/spinner.svg.js.map +1 -0
  13. package/dist/assets/wS.svg.js +12 -0
  14. package/dist/assets/wS.svg.js.map +1 -0
  15. package/dist/assets/wS.svg2.js +4 -0
  16. package/dist/assets/wS.svg2.js.map +1 -0
  17. package/dist/components/ui/button.d.ts +1 -1
  18. package/dist/components/ui/button.js +1 -1
  19. package/dist/components/ui/button.js.map +1 -1
  20. package/dist/components/ui/card.js +1 -106
  21. package/dist/components/ui/card.js.map +1 -1
  22. package/dist/components/ui/dialog.js +2 -116
  23. package/dist/components/ui/dialog.js.map +1 -1
  24. package/dist/components/ui/drawer.d.ts +1 -1
  25. package/dist/components/ui/drawer.d.ts.map +1 -1
  26. package/dist/components/ui/drawer.js +2 -2
  27. package/dist/components/ui/drawer.js.map +1 -1
  28. package/dist/components/ui/dropdown-menu.js +3 -334
  29. package/dist/components/ui/dropdown-menu.js.map +1 -1
  30. package/dist/components/ui/progress.d.ts +13 -0
  31. package/dist/components/ui/progress.d.ts.map +1 -0
  32. package/dist/components/ui/progress.js +120 -0
  33. package/dist/components/ui/progress.js.map +1 -0
  34. package/dist/components/ui/sonner.d.ts.map +1 -1
  35. package/dist/components/ui/sonner.js +33 -9
  36. package/dist/components/ui/sonner.js.map +1 -1
  37. package/dist/components/ui/switch.d.ts +3 -1
  38. package/dist/components/ui/switch.d.ts.map +1 -1
  39. package/dist/components/ui/switch.js +30 -16
  40. package/dist/components/ui/switch.js.map +1 -1
  41. package/dist/components/ui/tooltip.d.ts.map +1 -1
  42. package/dist/components/ui/tooltip.js +15 -4
  43. package/dist/components/ui/tooltip.js.map +1 -1
  44. package/dist/components/web3/AccountButton.d.ts.map +1 -1
  45. package/dist/components/web3/AccountButton.js +98 -41
  46. package/dist/components/web3/AccountButton.js.map +1 -1
  47. package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.d.ts +2 -0
  48. package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.d.ts.map +1 -0
  49. package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.js +92 -0
  50. package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.js.map +1 -0
  51. package/dist/components/web3/ConnectWallets/index.js +1 -1
  52. package/dist/components/web3/ConnectWallets/index.js.map +1 -1
  53. package/dist/components/web3/ConnectedWallet/ConnectedWallet.d.ts +9 -0
  54. package/dist/components/web3/ConnectedWallet/ConnectedWallet.d.ts.map +1 -0
  55. package/dist/components/web3/ConnectedWallet/ConnectedWallet.js +211 -0
  56. package/dist/components/web3/ConnectedWallet/ConnectedWallet.js.map +1 -0
  57. package/dist/components/web3/providers.d.ts.map +1 -1
  58. package/dist/components/web3/providers.js +10 -6
  59. package/dist/components/web3/providers.js.map +1 -1
  60. package/dist/components/widget/AppHeader/AppHeader.d.ts.map +1 -1
  61. package/dist/components/widget/AppHeader/AppHeader.js +2 -1
  62. package/dist/components/widget/AppHeader/AppHeader.js.map +1 -1
  63. package/dist/components/widget/Dialog/ReceiverAddressDialog/ReceiverAddressDialog.js +126 -136
  64. package/dist/components/widget/Dialog/ReceiverAddressDialog/ReceiverAddressDialog.js.map +1 -1
  65. package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js +1 -1
  66. package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js.map +1 -1
  67. package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListBody.d.ts.map +1 -1
  68. package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListBody.js +2 -3
  69. package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListBody.js.map +1 -1
  70. package/dist/components/widget/Drawer/state/useDrawerControls.d.ts +7 -5
  71. package/dist/components/widget/Drawer/state/useDrawerControls.d.ts.map +1 -1
  72. package/dist/components/widget/Drawer/state/useDrawerControls.js +57 -46
  73. package/dist/components/widget/Drawer/state/useDrawerControls.js.map +1 -1
  74. package/dist/components/widget/Line/Line.d.ts +3 -1
  75. package/dist/components/widget/Line/Line.d.ts.map +1 -1
  76. package/dist/components/widget/Line/Line.js +22 -15
  77. package/dist/components/widget/Line/Line.js.map +1 -1
  78. package/dist/components/widget/NetworkIcon/NetworkIconSquare.d.ts.map +1 -1
  79. package/dist/components/widget/NetworkIcon/NetworkIconSquare.js +22 -20
  80. package/dist/components/widget/NetworkIcon/NetworkIconSquare.js.map +1 -1
  81. package/dist/components/widget/NetworkIcon/assets/sqr/sonic.svg.js +12 -0
  82. package/dist/components/widget/NetworkIcon/assets/sqr/sonic.svg.js.map +1 -0
  83. package/dist/components/widget/NetworkIcon/assets/sqr/unichain.svg.js +12 -0
  84. package/dist/components/widget/NetworkIcon/assets/sqr/unichain.svg.js.map +1 -0
  85. package/dist/components/widget/ReceiverAddress/ReceiverAddress.d.ts.map +1 -1
  86. package/dist/components/widget/ReceiverAddress/ReceiverAddress.js +61 -52
  87. package/dist/components/widget/ReceiverAddress/ReceiverAddress.js.map +1 -1
  88. package/dist/components/widget/SelectToken/SelectTokenButton.d.ts.map +1 -1
  89. package/dist/components/widget/SelectToken/SelectTokenButton.js +106 -88
  90. package/dist/components/widget/SelectToken/SelectTokenButton.js.map +1 -1
  91. package/dist/components/widget/SwapModeSwitcher/state/swapSideAtom.js +1 -1
  92. package/dist/components/widget/Toasts/CustomToast.d.ts +8 -0
  93. package/dist/components/widget/Toasts/CustomToast.d.ts.map +1 -0
  94. package/dist/components/widget/Toasts/CustomToast.js +222 -0
  95. package/dist/components/widget/Toasts/CustomToast.js.map +1 -0
  96. package/dist/components/widget/TokenInput/index.d.ts.map +1 -1
  97. package/dist/components/widget/TokenInput/index.js +122 -137
  98. package/dist/components/widget/TokenInput/index.js.map +1 -1
  99. package/dist/components/widget/TokenInput/types.d.ts +1 -0
  100. package/dist/components/widget/TokenInput/types.d.ts.map +1 -1
  101. package/dist/components/widget/TokenSwitcher/TokenSwitcher.js +1 -1
  102. package/dist/components/widget/TokenSwitcher/TokenSwitcher.js.map +1 -1
  103. package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.d.ts +2 -2
  104. package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.d.ts.map +1 -1
  105. package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.js +20 -16
  106. package/dist/components/widget/TradeOverview/DeltaOrderTradeOverview.js.map +1 -1
  107. package/dist/components/widget/TradeOverview/MarketSwapTradeOverview.d.ts +2 -2
  108. package/dist/components/widget/TradeOverview/MarketSwapTradeOverview.d.ts.map +1 -1
  109. package/dist/components/widget/TradeOverview/MarketSwapTradeOverview.js +20 -16
  110. package/dist/components/widget/TradeOverview/MarketSwapTradeOverview.js.map +1 -1
  111. package/dist/components/widget/TradeOverview/Step.js +1 -1
  112. package/dist/components/widget/TradeOverview/Step.js.map +1 -1
  113. package/dist/components/widget/TradeOverview/Stepper.js +5 -40
  114. package/dist/components/widget/TradeOverview/Stepper.js.map +1 -1
  115. package/dist/components/widget/TradeOverview/TradeComplete/index.js +1 -1
  116. package/dist/components/widget/TradeOverview/TradeComplete/index.js.map +1 -1
  117. package/dist/components/widget/TradeOverview/TradeDetails.js +1 -1
  118. package/dist/components/widget/TradeOverview/TradeDetails.js.map +1 -1
  119. package/dist/components/widget/TradeOverview/TradeDetailsDisplay.d.ts.map +1 -1
  120. package/dist/components/widget/TradeOverview/TradeDetailsDisplay.js +35 -6
  121. package/dist/components/widget/TradeOverview/TradeDetailsDisplay.js.map +1 -1
  122. package/dist/components/widget/TradeOverview/TradeError/TradeErrorDetails.d.ts +5 -0
  123. package/dist/components/widget/TradeOverview/TradeError/TradeErrorDetails.d.ts.map +1 -0
  124. package/dist/components/widget/TradeOverview/TradeError/TradeErrorDetails.js +55 -0
  125. package/dist/components/widget/TradeOverview/TradeError/TradeErrorDetails.js.map +1 -0
  126. package/dist/components/widget/TradeOverview/TradeError/TradeErrorFooter.d.ts +5 -0
  127. package/dist/components/widget/TradeOverview/TradeError/TradeErrorFooter.d.ts.map +1 -0
  128. package/dist/components/widget/TradeOverview/TradeError/TradeErrorFooter.js +43 -0
  129. package/dist/components/widget/TradeOverview/TradeError/TradeErrorFooter.js.map +1 -0
  130. package/dist/components/widget/TradeOverview/TradeError/index.d.ts +6 -0
  131. package/dist/components/widget/TradeOverview/TradeError/index.d.ts.map +1 -0
  132. package/dist/components/widget/TradeOverview/TradeError/index.js +55 -0
  133. package/dist/components/widget/TradeOverview/TradeError/index.js.map +1 -0
  134. package/dist/components/widget/TradeOverview/TradeError/utils.d.ts +4 -0
  135. package/dist/components/widget/TradeOverview/TradeError/utils.d.ts.map +1 -0
  136. package/dist/components/widget/TradeOverview/TradeError/utils.js +30 -0
  137. package/dist/components/widget/TradeOverview/TradeError/utils.js.map +1 -0
  138. package/dist/components/widget/TradeOverview/TradeOverview.d.ts +3 -1
  139. package/dist/components/widget/TradeOverview/TradeOverview.d.ts.map +1 -1
  140. package/dist/components/widget/TradeOverview/TradeOverview.js +156 -101
  141. package/dist/components/widget/TradeOverview/TradeOverview.js.map +1 -1
  142. package/dist/components/widget/TradeOverview/TradeOverviewHeader.js +1 -1
  143. package/dist/components/widget/TradeOverview/TradeOverviewHeader.js.map +1 -1
  144. package/dist/components/widget/TradeOverview/assets/1_approving.lottie.js +4 -0
  145. package/dist/components/widget/TradeOverview/assets/1_approving.lottie.js.map +1 -0
  146. package/dist/components/widget/TradeOverview/assets/2_in_progress.lottie.js +4 -0
  147. package/dist/components/widget/TradeOverview/assets/2_in_progress.lottie.js.map +1 -0
  148. package/dist/components/widget/TradeOverview/assets/3_executing_step.lottie.js +4 -0
  149. package/dist/components/widget/TradeOverview/assets/3_executing_step.lottie.js.map +1 -0
  150. package/dist/components/widget/TradeOverview/assets/4_complete_step.lottie.js +4 -0
  151. package/dist/components/widget/TradeOverview/assets/4_complete_step.lottie.js.map +1 -0
  152. package/dist/components/widget/TradeOverview/assets/5_error_step.lottie.js +4 -0
  153. package/dist/components/widget/TradeOverview/assets/5_error_step.lottie.js.map +1 -0
  154. package/dist/components/widget/TradeOverview/tradeFlowContext.d.ts +8 -3
  155. package/dist/components/widget/TradeOverview/tradeFlowContext.d.ts.map +1 -1
  156. package/dist/components/widget/TradeOverview/tradeFlowContext.js +17 -1
  157. package/dist/components/widget/TradeOverview/tradeFlowContext.js.map +1 -1
  158. package/dist/components/widget/TradeParameters/EIP1559Parameter.d.ts +2 -0
  159. package/dist/components/widget/TradeParameters/EIP1559Parameter.d.ts.map +1 -0
  160. package/dist/components/widget/TradeParameters/EIP1559Parameter.js +56 -0
  161. package/dist/components/widget/TradeParameters/EIP1559Parameter.js.map +1 -0
  162. package/dist/components/widget/TradeParameters/SlippageParameter/SlippageParameter.d.ts.map +1 -1
  163. package/dist/components/widget/TradeParameters/SlippageParameter/SlippageParameter.js +25 -16
  164. package/dist/components/widget/TradeParameters/SlippageParameter/SlippageParameter.js.map +1 -1
  165. package/dist/components/widget/TradeParameters/TradeParameters.d.ts.map +1 -1
  166. package/dist/components/widget/TradeParameters/TradeParameters.js +61 -34
  167. package/dist/components/widget/TradeParameters/TradeParameters.js.map +1 -1
  168. package/dist/components/widget/TradeParameters/TransactionSpeedParameter.d.ts +2 -0
  169. package/dist/components/widget/TradeParameters/TransactionSpeedParameter.d.ts.map +1 -0
  170. package/dist/components/widget/TradeParameters/TransactionSpeedParameter.js +155 -0
  171. package/dist/components/widget/TradeParameters/TransactionSpeedParameter.js.map +1 -0
  172. package/dist/components/widget/TradeParameters/hooks/useIsNotDefaultAnyParameter.d.ts.map +1 -1
  173. package/dist/components/widget/TradeParameters/hooks/useIsNotDefaultAnyParameter.js +24 -7
  174. package/dist/components/widget/TradeParameters/hooks/useIsNotDefaultAnyParameter.js.map +1 -1
  175. package/dist/components/widget/TradeParameters/state/eip1559ParamAtom.d.ts +6 -0
  176. package/dist/components/widget/TradeParameters/state/eip1559ParamAtom.d.ts.map +1 -0
  177. package/dist/components/widget/TradeParameters/state/eip1559ParamAtom.js +10 -0
  178. package/dist/components/widget/TradeParameters/state/eip1559ParamAtom.js.map +1 -0
  179. package/dist/components/widget/TradeParameters/state/gasPresetParamAtom.d.ts +8 -0
  180. package/dist/components/widget/TradeParameters/state/gasPresetParamAtom.d.ts.map +1 -0
  181. package/dist/components/widget/TradeParameters/state/gasPresetParamAtom.js +13 -0
  182. package/dist/components/widget/TradeParameters/state/gasPresetParamAtom.js.map +1 -0
  183. package/dist/components/widget/TradeParameters/state/resetParamsAtom.d.ts +4 -0
  184. package/dist/components/widget/TradeParameters/state/resetParamsAtom.d.ts.map +1 -0
  185. package/dist/components/widget/TradeParameters/state/resetParamsAtom.js +16 -0
  186. package/dist/components/widget/TradeParameters/state/resetParamsAtom.js.map +1 -0
  187. package/dist/components/widget/WrapEth/WrapEthContent.d.ts.map +1 -1
  188. package/dist/components/widget/WrapEth/WrapEthContent.js +64 -66
  189. package/dist/components/widget/WrapEth/WrapEthContent.js.map +1 -1
  190. package/dist/components/widget/WrapEth/WrapEthDrawerButton.d.ts +1 -1
  191. package/dist/components/widget/WrapEth/WrapEthDrawerButton.d.ts.map +1 -1
  192. package/dist/components/widget/WrapEth/WrapEthDrawerButton.js +56 -47
  193. package/dist/components/widget/WrapEth/WrapEthDrawerButton.js.map +1 -1
  194. package/dist/components/widget/WrapEth/hooks/useSubmitDepositTxMutation.d.ts.map +1 -1
  195. package/dist/components/widget/WrapEth/hooks/useSubmitDepositTxMutation.js +2 -1
  196. package/dist/components/widget/WrapEth/hooks/useSubmitDepositTxMutation.js.map +1 -1
  197. package/dist/components/widget/YouGet/YouGet.d.ts.map +1 -1
  198. package/dist/components/widget/YouGet/YouGet.js +97 -98
  199. package/dist/components/widget/YouGet/YouGet.js.map +1 -1
  200. package/dist/external/.pnpm/vaul@1.1.2_patch_hash_07b36ba5def3805dde9d543a880ba9e4caf55e5eb58e544faaa2c186846bf3c1__15df56ff48174365d34843c037ea8a33/external/vaul/dist/index.js +1626 -0
  201. package/dist/external/.pnpm/vaul@1.1.2_patch_hash_07b36ba5def3805dde9d543a880ba9e4caf55e5eb58e544faaa2c186846bf3c1__15df56ff48174365d34843c037ea8a33/external/vaul/dist/index.js.map +1 -0
  202. package/dist/hooks/gas/config.d.ts.map +1 -1
  203. package/dist/hooks/gas/config.js +9 -5
  204. package/dist/hooks/gas/config.js.map +1 -1
  205. package/dist/hooks/gas/types.d.ts +1 -1
  206. package/dist/hooks/gas/types.d.ts.map +1 -1
  207. package/dist/hooks/gas/useGasPrices.d.ts +8 -0
  208. package/dist/hooks/gas/useGasPrices.d.ts.map +1 -1
  209. package/dist/hooks/gas/useGasPrices.js +30 -21
  210. package/dist/hooks/gas/useGasPrices.js.map +1 -1
  211. package/dist/hooks/gas/utils.d.ts +5 -0
  212. package/dist/hooks/gas/utils.d.ts.map +1 -1
  213. package/dist/hooks/gas/utils.js +5 -2
  214. package/dist/hooks/gas/utils.js.map +1 -1
  215. package/dist/hooks/getCode/useIsAccountContract.d.ts.map +1 -1
  216. package/dist/hooks/getCode/useIsAccountContract.js +21 -8
  217. package/dist/hooks/getCode/useIsAccountContract.js.map +1 -1
  218. package/dist/hooks/permit/hooks/common/useSignArbitraryTypedData.d.ts.map +1 -0
  219. package/dist/hooks/permit/hooks/{useSignArbitraryTypedData.js → common/useSignArbitraryTypedData.js} +1 -1
  220. package/dist/hooks/permit/hooks/common/useSignArbitraryTypedData.js.map +1 -0
  221. package/dist/hooks/permit/hooks/{useSignPermit.d.ts → common/useSignPermit.d.ts} +1 -1
  222. package/dist/hooks/permit/hooks/common/useSignPermit.d.ts.map +1 -0
  223. package/dist/hooks/permit/hooks/{useSignPermit.js → common/useSignPermit.js} +2 -2
  224. package/dist/hooks/permit/hooks/common/useSignPermit.js.map +1 -0
  225. package/dist/hooks/permit/hooks/common/useWalletSupportsPermit.d.ts +7 -0
  226. package/dist/hooks/permit/hooks/common/useWalletSupportsPermit.d.ts.map +1 -0
  227. package/dist/hooks/permit/hooks/common/useWalletSupportsPermit.js +25 -0
  228. package/dist/hooks/permit/hooks/common/useWalletSupportsPermit.js.map +1 -0
  229. package/dist/hooks/permit/hooks/{useGetPermitInfo.d.ts → permit1/useGetPermitInfo.d.ts} +2 -2
  230. package/dist/hooks/permit/hooks/permit1/useGetPermitInfo.d.ts.map +1 -0
  231. package/dist/hooks/permit/hooks/{useGetPermitInfo.js → permit1/useGetPermitInfo.js} +3 -3
  232. package/dist/hooks/permit/hooks/permit1/useGetPermitInfo.js.map +1 -0
  233. package/dist/hooks/permit/hooks/{useGetSafePermitInfo.d.ts → permit1/useGetSafePermitInfo.d.ts} +3 -3
  234. package/dist/hooks/permit/hooks/permit1/useGetSafePermitInfo.d.ts.map +1 -0
  235. package/dist/hooks/permit/hooks/{useGetSafePermitInfo.js → permit1/useGetSafePermitInfo.js} +1 -1
  236. package/dist/hooks/permit/hooks/permit1/useGetSafePermitInfo.js.map +1 -0
  237. package/dist/hooks/permit/hooks/{usePermit1Nonce.d.ts → permit1/usePermit1Nonce.d.ts} +5 -5
  238. package/dist/hooks/permit/hooks/permit1/usePermit1Nonce.d.ts.map +1 -0
  239. package/dist/hooks/permit/hooks/{usePermit1Nonce.js → permit1/usePermit1Nonce.js} +4 -2
  240. package/dist/hooks/permit/hooks/permit1/usePermit1Nonce.js.map +1 -0
  241. package/dist/hooks/permit/hooks/{useSignTokenFromPermit1.d.ts → permit1/useSignTokenPermit1.d.ts} +15 -14
  242. package/dist/hooks/permit/hooks/permit1/useSignTokenPermit1.d.ts.map +1 -0
  243. package/dist/hooks/permit/hooks/{useSignTokenFromPermit1.js → permit1/useSignTokenPermit1.js} +75 -68
  244. package/dist/hooks/permit/hooks/permit1/useSignTokenPermit1.js.map +1 -0
  245. package/dist/hooks/permit/hooks/permit1/useTokenFromPermit1Nonce.d.ts +10 -0
  246. package/dist/hooks/permit/hooks/permit1/useTokenFromPermit1Nonce.d.ts.map +1 -0
  247. package/dist/hooks/permit/hooks/{useTokenFromPermit1Nonce.js → permit1/useTokenFromPermit1Nonce.js} +2 -2
  248. package/dist/hooks/permit/hooks/permit1/useTokenFromPermit1Nonce.js.map +1 -0
  249. package/dist/hooks/permit/hooks/{useTokenFromPermitInfo.d.ts → permit1/useTokenFromPermitInfo.d.ts} +1 -1
  250. package/dist/hooks/permit/hooks/permit1/useTokenFromPermitInfo.d.ts.map +1 -0
  251. package/dist/hooks/permit/hooks/{useTokenFromPermitInfo.js → permit1/useTokenFromPermitInfo.js} +2 -2
  252. package/dist/hooks/permit/hooks/permit1/useTokenFromPermitInfo.js.map +1 -0
  253. package/dist/hooks/permit/hooks/{useTryToSignPermit1.d.ts → permit1/useTryToSignPermit1.d.ts} +1 -1
  254. package/dist/hooks/permit/hooks/permit1/useTryToSignPermit1.d.ts.map +1 -0
  255. package/dist/hooks/permit/hooks/{useTryToSignPermit1.js → permit1/useTryToSignPermit1.js} +2 -2
  256. package/dist/hooks/permit/hooks/permit1/useTryToSignPermit1.js.map +1 -0
  257. package/dist/hooks/permit/hooks/permit2/usePermit2Allowance.d.ts +21 -0
  258. package/dist/hooks/permit/hooks/permit2/usePermit2Allowance.d.ts.map +1 -0
  259. package/dist/hooks/permit/hooks/permit2/usePermit2Allowance.js +79 -0
  260. package/dist/hooks/permit/hooks/permit2/usePermit2Allowance.js.map +1 -0
  261. package/dist/hooks/permit/hooks/permit2/usePermit2TransferFromNonce.d.ts +76 -0
  262. package/dist/hooks/permit/hooks/permit2/usePermit2TransferFromNonce.d.ts.map +1 -0
  263. package/dist/hooks/permit/hooks/permit2/usePermit2TransferFromNonce.js +143 -0
  264. package/dist/hooks/permit/hooks/permit2/usePermit2TransferFromNonce.js.map +1 -0
  265. package/dist/hooks/permit/hooks/permit2/useSignTokenPermit2TransferFrom.d.ts +52 -0
  266. package/dist/hooks/permit/hooks/permit2/useSignTokenPermit2TransferFrom.d.ts.map +1 -0
  267. package/dist/hooks/permit/hooks/permit2/useSignTokenPermit2TransferFrom.js +299 -0
  268. package/dist/hooks/permit/hooks/permit2/useSignTokenPermit2TransferFrom.js.map +1 -0
  269. package/dist/hooks/permit/hooks/permit2/useTokenFromPermit2TransferFromNonce.d.ts +10 -0
  270. package/dist/hooks/permit/hooks/permit2/useTokenFromPermit2TransferFromNonce.d.ts.map +1 -0
  271. package/dist/hooks/permit/hooks/permit2/useTokenFromPermit2TransferFromNonce.js +55 -0
  272. package/dist/hooks/permit/hooks/permit2/useTokenFromPermit2TransferFromNonce.js.map +1 -0
  273. package/dist/hooks/permit/utils/abi.d.ts +173 -0
  274. package/dist/hooks/permit/utils/abi.d.ts.map +1 -1
  275. package/dist/hooks/permit/utils/abi.js +174 -1
  276. package/dist/hooks/permit/utils/abi.js.map +1 -1
  277. package/dist/hooks/permit/utils/construct.d.ts +3 -4
  278. package/dist/hooks/permit/utils/construct.d.ts.map +1 -1
  279. package/dist/hooks/permit/utils/construct.js +1 -1
  280. package/dist/hooks/permit/utils/construct.js.map +1 -1
  281. package/dist/hooks/permit/utils/deadlines.d.ts +8 -0
  282. package/dist/hooks/permit/utils/deadlines.d.ts.map +1 -0
  283. package/dist/hooks/permit/utils/deadlines.js +15 -0
  284. package/dist/hooks/permit/utils/deadlines.js.map +1 -0
  285. package/dist/hooks/permit/utils/encodeArgs.d.ts +22 -4
  286. package/dist/hooks/permit/utils/encodeArgs.d.ts.map +1 -1
  287. package/dist/hooks/permit/utils/encodeArgs.js +33 -4
  288. package/dist/hooks/permit/utils/encodeArgs.js.map +1 -1
  289. package/dist/hooks/permit/utils/trySignPermit1.d.ts +1 -1
  290. package/dist/hooks/permit/utils/trySignPermit1.d.ts.map +1 -1
  291. package/dist/hooks/permit/utils/trySignPermit1.js.map +1 -1
  292. package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts +1 -0
  293. package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts.map +1 -1
  294. package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js +4 -1
  295. package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js.map +1 -1
  296. package/dist/hooks/swap/prices/usePricesParams.d.ts +1 -1
  297. package/dist/hooks/swap/prices/usePricesParams.d.ts.map +1 -1
  298. package/dist/hooks/swap/prices/usePricesParams.js +87 -32
  299. package/dist/hooks/swap/prices/usePricesParams.js.map +1 -1
  300. package/dist/hooks/swap/tradeFlow/common/types.d.ts +0 -1
  301. package/dist/hooks/swap/tradeFlow/common/types.d.ts.map +1 -1
  302. package/dist/hooks/swap/tradeFlow/common/useApproveOrPermit.d.ts +18 -0
  303. package/dist/hooks/swap/tradeFlow/common/useApproveOrPermit.d.ts.map +1 -0
  304. package/dist/hooks/swap/tradeFlow/common/useApproveOrPermit.js +190 -0
  305. package/dist/hooks/swap/tradeFlow/common/useApproveOrPermit.js.map +1 -0
  306. package/dist/hooks/swap/tradeFlow/common/useConstructGasParams.d.ts +20 -0
  307. package/dist/hooks/swap/tradeFlow/common/useConstructGasParams.d.ts.map +1 -0
  308. package/dist/hooks/swap/tradeFlow/common/useConstructGasParams.js +81 -0
  309. package/dist/hooks/swap/tradeFlow/common/useConstructGasParams.js.map +1 -0
  310. package/dist/hooks/swap/tradeFlow/common/useSignPermit1Or2.d.ts +53 -0
  311. package/dist/hooks/swap/tradeFlow/common/useSignPermit1Or2.d.ts.map +1 -0
  312. package/dist/hooks/swap/tradeFlow/common/useSignPermit1Or2.js +308 -0
  313. package/dist/hooks/swap/tradeFlow/common/useSignPermit1Or2.js.map +1 -0
  314. package/dist/hooks/swap/tradeFlow/common/useTrackedPrice.d.ts +25 -0
  315. package/dist/hooks/swap/tradeFlow/common/useTrackedPrice.d.ts.map +1 -0
  316. package/dist/hooks/swap/tradeFlow/common/useTrackedPrice.js +103 -0
  317. package/dist/hooks/swap/tradeFlow/common/useTrackedPrice.js.map +1 -0
  318. package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts +2 -0
  319. package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts.map +1 -1
  320. package/dist/hooks/swap/tradeFlow/useDeltaFlow.js +333 -397
  321. package/dist/hooks/swap/tradeFlow/useDeltaFlow.js.map +1 -1
  322. package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.d.ts +3 -0
  323. package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.d.ts.map +1 -1
  324. package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js +31 -10
  325. package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js.map +1 -1
  326. package/dist/hooks/swap/tradeFlow/useMarketFlow.d.ts +4 -0
  327. package/dist/hooks/swap/tradeFlow/useMarketFlow.d.ts.map +1 -1
  328. package/dist/hooks/swap/tradeFlow/useMarketFlow.js +295 -362
  329. package/dist/hooks/swap/tradeFlow/useMarketFlow.js.map +1 -1
  330. package/dist/hooks/swap/tradeFlow/useMarketSwapStep.d.ts +3 -0
  331. package/dist/hooks/swap/tradeFlow/useMarketSwapStep.d.ts.map +1 -1
  332. package/dist/hooks/swap/tradeFlow/useMarketSwapStep.js +32 -11
  333. package/dist/hooks/swap/tradeFlow/useMarketSwapStep.js.map +1 -1
  334. package/dist/hooks/tokens/allowance/types.d.ts +3 -0
  335. package/dist/hooks/tokens/allowance/types.d.ts.map +1 -1
  336. package/dist/hooks/tokens/allowance/useTokenAllowance.d.ts +1 -1
  337. package/dist/hooks/tokens/allowance/useTokenAllowance.d.ts.map +1 -1
  338. package/dist/hooks/tokens/allowance/useTokenAllowance.js +32 -28
  339. package/dist/hooks/tokens/allowance/useTokenAllowance.js.map +1 -1
  340. package/dist/hooks/tokens/balances/useInvalidateTokenData.d.ts.map +1 -1
  341. package/dist/hooks/tokens/balances/useInvalidateTokenData.js.map +1 -1
  342. package/dist/hooks/tokens/balances/useIsInsufficientTokenBalance.d.ts +1 -0
  343. package/dist/hooks/tokens/balances/useIsInsufficientTokenBalance.d.ts.map +1 -1
  344. package/dist/hooks/tokens/balances/useIsInsufficientTokenBalance.js +41 -1
  345. package/dist/hooks/tokens/balances/useIsInsufficientTokenBalance.js.map +1 -1
  346. package/dist/hooks/tokens/useTokenLists.d.ts +1 -0
  347. package/dist/hooks/tokens/useTokenLists.d.ts.map +1 -1
  348. package/dist/hooks/tokens/useTokenLists.js +15 -2
  349. package/dist/hooks/tokens/useTokenLists.js.map +1 -1
  350. package/dist/hooks/tokens/useTokenTaxFee.d.ts +12 -0
  351. package/dist/hooks/tokens/useTokenTaxFee.d.ts.map +1 -0
  352. package/dist/hooks/tokens/useTokenTaxFee.js +54 -0
  353. package/dist/hooks/tokens/useTokenTaxFee.js.map +1 -0
  354. package/dist/hooks/txs/index.d.ts +1 -1
  355. package/dist/hooks/txs/mutations/useApprove.d.ts +5 -4
  356. package/dist/hooks/txs/mutations/useApprove.d.ts.map +1 -1
  357. package/dist/hooks/txs/mutations/useApprove.js +55 -39
  358. package/dist/hooks/txs/mutations/useApprove.js.map +1 -1
  359. package/dist/hooks/txs/mutations/useDepositWeth.d.ts.map +1 -1
  360. package/dist/hooks/txs/mutations/useDepositWeth.js +37 -27
  361. package/dist/hooks/txs/mutations/useDepositWeth.js.map +1 -1
  362. package/dist/hooks/useEIP1559Enabled.d.ts +6 -0
  363. package/dist/hooks/useEIP1559Enabled.d.ts.map +1 -0
  364. package/dist/hooks/useEIP1559Enabled.js +31 -0
  365. package/dist/hooks/useEIP1559Enabled.js.map +1 -0
  366. package/dist/index.d.ts +2 -19
  367. package/dist/index.d.ts.map +1 -1
  368. package/dist/index.js +0 -21
  369. package/dist/index.js.map +1 -1
  370. package/dist/lib/constants/delta.d.ts.map +1 -1
  371. package/dist/lib/constants/delta.js +3 -2
  372. package/dist/lib/constants/delta.js.map +1 -1
  373. package/dist/lib/constants/weth.d.ts.map +1 -1
  374. package/dist/lib/constants/weth.js +24 -17
  375. package/dist/lib/constants/weth.js.map +1 -1
  376. package/dist/lib/utils/copyToClipboard.d.ts +2 -0
  377. package/dist/lib/utils/copyToClipboard.d.ts.map +1 -0
  378. package/dist/lib/utils/copyToClipboard.js +14 -0
  379. package/dist/lib/utils/copyToClipboard.js.map +1 -0
  380. package/dist/lib/utils/logger.js +24 -0
  381. package/dist/lib/utils/logger.js.map +1 -0
  382. package/dist/lib/utils/price.js +1 -1
  383. package/dist/lib/utils/providerErrors.d.ts +12 -0
  384. package/dist/lib/utils/providerErrors.d.ts.map +1 -0
  385. package/dist/lib/utils/providerErrors.js +29 -0
  386. package/dist/lib/utils/providerErrors.js.map +1 -0
  387. package/dist/lib/utils/slippage.d.ts +5 -0
  388. package/dist/lib/utils/slippage.d.ts.map +1 -1
  389. package/dist/lib/utils/slippage.js.map +1 -1
  390. package/dist/lib/utils/toDecimal.d.ts +1 -0
  391. package/dist/lib/utils/toDecimal.d.ts.map +1 -1
  392. package/dist/lib/utils/toDecimal.js +9 -4
  393. package/dist/lib/utils/toDecimal.js.map +1 -1
  394. package/dist/lib/utils/toasts.d.ts +2 -0
  395. package/dist/lib/utils/toasts.d.ts.map +1 -1
  396. package/dist/lib/utils/toasts.js +48 -27
  397. package/dist/lib/utils/toasts.js.map +1 -1
  398. package/dist/lib/web3/wagmi/config.d.ts +333 -35
  399. package/dist/lib/web3/wagmi/config.d.ts.map +1 -1
  400. package/dist/lib/web3/wagmi/constants.d.ts +333 -35
  401. package/dist/lib/web3/wagmi/constants.d.ts.map +1 -1
  402. package/dist/lib/web3/wagmi/constants.js +5 -4
  403. package/dist/lib/web3/wagmi/constants.js.map +1 -1
  404. package/dist/lib/web3/wagmi/supportedChains.d.ts +1 -1
  405. package/dist/lib/web3/wagmi/supportedChains.d.ts.map +1 -1
  406. package/dist/lib/web3/wagmi/transports.d.ts.map +1 -1
  407. package/dist/lib/web3/wagmi/transports.js +3 -2
  408. package/dist/lib/web3/wagmi/transports.js.map +1 -1
  409. package/dist/styles.css +2445 -2933
  410. package/dist/test/Configurator.d.ts.map +1 -1
  411. package/dist/tokens/constants.d.ts.map +1 -1
  412. package/dist/tokens/constants.js +4 -3
  413. package/dist/tokens/constants.js.map +1 -1
  414. package/dist/tokens/defaultTokens.d.ts.map +1 -1
  415. package/dist/tokens/defaultTokens.js +44 -22
  416. package/dist/tokens/defaultTokens.js.map +1 -1
  417. package/dist/tokens/lists/lists.json.d.ts +21 -0
  418. package/dist/tokens/lists/lists.json.js +21 -0
  419. package/dist/tokens/lists/lists.json.js.map +1 -1
  420. package/dist/tokens/lists/state/tokenListsStateAtom.d.ts +10 -6
  421. package/dist/tokens/lists/state/tokenListsStateAtom.d.ts.map +1 -1
  422. package/dist/tokens/lists/state/types.d.ts +3 -2
  423. package/dist/tokens/lists/state/types.d.ts.map +1 -1
  424. package/dist/widget/ConnectWalletDrawerButton.d.ts +7 -0
  425. package/dist/widget/ConnectWalletDrawerButton.d.ts.map +1 -0
  426. package/dist/widget/ConnectWalletDrawerButton.js +95 -0
  427. package/dist/widget/ConnectWalletDrawerButton.js.map +1 -0
  428. package/dist/widget/Toaster.d.ts +2 -0
  429. package/dist/widget/Toaster.d.ts.map +1 -0
  430. package/dist/widget/Toaster.js +24 -0
  431. package/dist/widget/Toaster.js.map +1 -0
  432. package/dist/widget/TradeFlowButton.d.ts +16 -0
  433. package/dist/widget/TradeFlowButton.d.ts.map +1 -0
  434. package/dist/widget/TradeFlowButton.js +474 -0
  435. package/dist/widget/TradeFlowButton.js.map +1 -0
  436. package/dist/widget/Updaters.d.ts.map +1 -1
  437. package/dist/widget/Updaters.js +6 -2
  438. package/dist/widget/Updaters.js.map +1 -1
  439. package/dist/widget/button/hooks/useWidgetButtonExtraProps.d.ts.map +1 -1
  440. package/dist/widget/button/hooks/useWidgetButtonExtraProps.js +64 -31
  441. package/dist/widget/button/hooks/useWidgetButtonExtraProps.js.map +1 -1
  442. package/dist/widget/constants.d.ts +1 -0
  443. package/dist/widget/constants.d.ts.map +1 -1
  444. package/dist/widget/constants.js +2 -1
  445. package/dist/widget/constants.js.map +1 -1
  446. package/dist/widget/index.d.ts +1 -1
  447. package/dist/widget/index.d.ts.map +1 -1
  448. package/dist/widget/index.js +116 -461
  449. package/dist/widget/index.js.map +1 -1
  450. package/dist/widget/inputs/hooks/types.d.ts +1 -1
  451. package/dist/widget/inputs/hooks/types.d.ts.map +1 -1
  452. package/dist/widget/inputs/hooks/useTokenFromInputProps.d.ts.map +1 -1
  453. package/dist/widget/inputs/hooks/useTokenFromInputProps.js +66 -53
  454. package/dist/widget/inputs/hooks/useTokenFromInputProps.js.map +1 -1
  455. package/dist/widget/inputs/hooks/useTokenToInputProps.d.ts.map +1 -1
  456. package/dist/widget/inputs/hooks/useTokenToInputProps.js +46 -20
  457. package/dist/widget/inputs/hooks/useTokenToInputProps.js.map +1 -1
  458. package/dist/widget/inputs/state/selectedTokenActionsAtom.js +1 -1
  459. package/dist/widget/state/chainToAtom.d.ts +2 -2
  460. package/dist/widget/state/chainToAtom.d.ts.map +1 -1
  461. package/dist/widget/state/configActionsAtom.d.ts.map +1 -1
  462. package/dist/widget/state/configActionsAtom.js +3 -1
  463. package/dist/widget/state/configActionsAtom.js.map +1 -1
  464. package/dist/widget/state/configAtom.d.ts +4 -1
  465. package/dist/widget/state/configAtom.d.ts.map +1 -1
  466. package/dist/widget/state/configAtom.js +2 -1
  467. package/dist/widget/state/configAtom.js.map +1 -1
  468. package/dist/widget/state/containerAtom.js +1 -1
  469. package/dist/widget/state/externalProviderAtom.d.ts +23 -0
  470. package/dist/widget/state/externalProviderAtom.d.ts.map +1 -0
  471. package/dist/widget/state/externalProviderAtom.js +20 -0
  472. package/dist/widget/state/externalProviderAtom.js.map +1 -0
  473. package/dist/widget/swapDetails/youGet.d.ts.map +1 -1
  474. package/dist/widget/swapDetails/youGet.js +2 -3
  475. package/dist/widget/swapDetails/youGet.js.map +1 -1
  476. package/dist/widget/types.d.ts +4 -0
  477. package/dist/widget/types.d.ts.map +1 -1
  478. package/package.json +8 -66
  479. package/dist/components/ui/counter.js +0 -33
  480. package/dist/components/ui/counter.js.map +0 -1
  481. package/dist/components/ui/header.js +0 -21
  482. package/dist/components/ui/header.js.map +0 -1
  483. package/dist/components/ui/select.js +0 -427
  484. package/dist/components/ui/select.js.map +0 -1
  485. package/dist/components/ui/vaul/browser.d.ts +0 -8
  486. package/dist/components/ui/vaul/browser.d.ts.map +0 -1
  487. package/dist/components/ui/vaul/browser.js +0 -27
  488. package/dist/components/ui/vaul/browser.js.map +0 -1
  489. package/dist/components/ui/vaul/constants.d.ts +0 -12
  490. package/dist/components/ui/vaul/constants.d.ts.map +0 -1
  491. package/dist/components/ui/vaul/constants.js +0 -14
  492. package/dist/components/ui/vaul/constants.js.map +0 -1
  493. package/dist/components/ui/vaul/context.d.ts +0 -38
  494. package/dist/components/ui/vaul/context.d.ts.map +0 -1
  495. package/dist/components/ui/vaul/context.js +0 -62
  496. package/dist/components/ui/vaul/context.js.map +0 -1
  497. package/dist/components/ui/vaul/helpers.d.ts +0 -17
  498. package/dist/components/ui/vaul/helpers.d.ts.map +0 -1
  499. package/dist/components/ui/vaul/helpers.js +0 -77
  500. package/dist/components/ui/vaul/helpers.js.map +0 -1
  501. package/dist/components/ui/vaul/index.d.ts +0 -140
  502. package/dist/components/ui/vaul/index.d.ts.map +0 -1
  503. package/dist/components/ui/vaul/index.js +0 -797
  504. package/dist/components/ui/vaul/index.js.map +0 -1
  505. package/dist/components/ui/vaul/types.d.ts +0 -7
  506. package/dist/components/ui/vaul/types.d.ts.map +0 -1
  507. package/dist/components/ui/vaul/use-composed-refs.d.ts +0 -14
  508. package/dist/components/ui/vaul/use-composed-refs.d.ts.map +0 -1
  509. package/dist/components/ui/vaul/use-composed-refs.js +0 -18
  510. package/dist/components/ui/vaul/use-composed-refs.js.map +0 -1
  511. package/dist/components/ui/vaul/use-controllable-state.d.ts +0 -9
  512. package/dist/components/ui/vaul/use-controllable-state.d.ts.map +0 -1
  513. package/dist/components/ui/vaul/use-controllable-state.js +0 -124
  514. package/dist/components/ui/vaul/use-controllable-state.js.map +0 -1
  515. package/dist/components/ui/vaul/use-position-fixed.d.ts +0 -19
  516. package/dist/components/ui/vaul/use-position-fixed.d.ts.map +0 -1
  517. package/dist/components/ui/vaul/use-position-fixed.js +0 -99
  518. package/dist/components/ui/vaul/use-position-fixed.js.map +0 -1
  519. package/dist/components/ui/vaul/use-prevent-scroll.d.ts +0 -18
  520. package/dist/components/ui/vaul/use-prevent-scroll.d.ts.map +0 -1
  521. package/dist/components/ui/vaul/use-prevent-scroll.js +0 -172
  522. package/dist/components/ui/vaul/use-prevent-scroll.js.map +0 -1
  523. package/dist/components/ui/vaul/use-scale-background.d.ts +0 -2
  524. package/dist/components/ui/vaul/use-scale-background.d.ts.map +0 -1
  525. package/dist/components/ui/vaul/use-scale-background.js +0 -58
  526. package/dist/components/ui/vaul/use-scale-background.js.map +0 -1
  527. package/dist/components/ui/vaul/use-snap-points.d.ts +0 -32
  528. package/dist/components/ui/vaul/use-snap-points.d.ts.map +0 -1
  529. package/dist/components/ui/vaul/use-snap-points.js +0 -212
  530. package/dist/components/ui/vaul/use-snap-points.js.map +0 -1
  531. package/dist/components/widget/Informative/Informative.js +0 -23
  532. package/dist/components/widget/Informative/Informative.js.map +0 -1
  533. package/dist/components/widget/NetworkIcon/assets/sqr/polygonZkEVM.svg.js +0 -12
  534. package/dist/components/widget/NetworkIcon/assets/sqr/polygonZkEVM.svg.js.map +0 -1
  535. package/dist/components/widget/TradeOverview/assets/spinner.svg.js.map +0 -1
  536. package/dist/hooks/permit/hooks/useGetPermitInfo.d.ts.map +0 -1
  537. package/dist/hooks/permit/hooks/useGetPermitInfo.js.map +0 -1
  538. package/dist/hooks/permit/hooks/useGetSafePermitInfo.d.ts.map +0 -1
  539. package/dist/hooks/permit/hooks/useGetSafePermitInfo.js.map +0 -1
  540. package/dist/hooks/permit/hooks/usePermit1Nonce.d.ts.map +0 -1
  541. package/dist/hooks/permit/hooks/usePermit1Nonce.js.map +0 -1
  542. package/dist/hooks/permit/hooks/useSignArbitraryTypedData.d.ts.map +0 -1
  543. package/dist/hooks/permit/hooks/useSignArbitraryTypedData.js.map +0 -1
  544. package/dist/hooks/permit/hooks/useSignPermit.d.ts.map +0 -1
  545. package/dist/hooks/permit/hooks/useSignPermit.js.map +0 -1
  546. package/dist/hooks/permit/hooks/useSignTokenFromPermit1.d.ts.map +0 -1
  547. package/dist/hooks/permit/hooks/useSignTokenFromPermit1.js.map +0 -1
  548. package/dist/hooks/permit/hooks/useTokenFromPermit1Nonce.d.ts +0 -10
  549. package/dist/hooks/permit/hooks/useTokenFromPermit1Nonce.d.ts.map +0 -1
  550. package/dist/hooks/permit/hooks/useTokenFromPermit1Nonce.js.map +0 -1
  551. package/dist/hooks/permit/hooks/useTokenFromPermitInfo.d.ts.map +0 -1
  552. package/dist/hooks/permit/hooks/useTokenFromPermitInfo.js.map +0 -1
  553. package/dist/hooks/permit/hooks/useTryToSignPermit1.d.ts.map +0 -1
  554. package/dist/hooks/permit/hooks/useTryToSignPermit1.js.map +0 -1
  555. package/dist/styles2.css +0 -256
  556. package/dist/test/connect/AccountDisplay.js +0 -83
  557. package/dist/test/connect/AccountDisplay.js.map +0 -1
  558. package/dist/test/connect/App.js +0 -68
  559. package/dist/test/connect/App.js.map +0 -1
  560. package/dist/test/connect/ConnectWallet.js +0 -100
  561. package/dist/test/connect/ConnectWallet.js.map +0 -1
  562. package/dist/test/connect/WagmiProfile.js +0 -396
  563. package/dist/test/connect/WagmiProfile.js.map +0 -1
  564. package/dist/test/connect/WalletActions.js +0 -314
  565. package/dist/test/connect/WalletActions.js.map +0 -1
  566. package/dist/widget/DevTools.js +0 -24
  567. package/dist/widget/DevTools.js.map +0 -1
  568. /package/dist/{components/widget/TradeOverview/assets → assets}/spinner.svg.js +0 -0
  569. /package/dist/hooks/permit/hooks/{useSignArbitraryTypedData.d.ts → common/useSignArbitraryTypedData.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/vaul@1.1.2_patch_hash=07b36ba5def3805dde9d543a880ba9e4caf55e5eb58e544faaa2c186846bf3c1__15df56ff48174365d34843c037ea8a33/node_modules/vaul/dist/index.mjs"],"sourcesContent":["'use client';\nfunction __insertCSS(code) {\n if (!code || typeof document == 'undefined') return\n let head = document.head || document.getElementsByTagName('head')[0]\n let style = document.createElement('style')\n style.type = 'text/css'\n head.appendChild(style)\n ;style.styleSheet ? (style.styleSheet.cssText = code) : style.appendChild(document.createTextNode(code))\n}\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport * as React from 'react';\nimport React__default, { useLayoutEffect, useEffect, useMemo } from 'react';\n\nconst DrawerContext = React__default.createContext({\n drawerRef: {\n current: null\n },\n overlayRef: {\n current: null\n },\n onPress: ()=>{},\n onRelease: ()=>{},\n onDrag: ()=>{},\n onNestedDrag: ()=>{},\n onNestedOpenChange: ()=>{},\n onNestedRelease: ()=>{},\n openProp: undefined,\n dismissible: false,\n isOpen: false,\n isDragging: false,\n keyboardIsOpen: {\n current: false\n },\n snapPointsOffset: null,\n snapPoints: null,\n handleOnly: false,\n modal: false,\n shouldFade: false,\n activeSnapPoint: null,\n onOpenChange: ()=>{},\n setActiveSnapPoint: ()=>{},\n closeDrawer: ()=>{},\n direction: 'bottom',\n shouldAnimate: {\n current: true\n },\n shouldScaleBackground: false,\n setBackgroundColorOnScale: true,\n noBodyStyles: false,\n container: null,\n autoFocus: false\n});\nconst useDrawerContext = ()=>{\n const context = React__default.useContext(DrawerContext);\n if (!context) {\n throw new Error('useDrawerContext must be used within a Drawer.Root');\n }\n return context;\n};\n\n__insertCSS(\"[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\\n[data-state=closed]\\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}\");\n\nfunction isMobileFirefox() {\n const userAgent = navigator.userAgent;\n return typeof window !== 'undefined' && (/Firefox/.test(userAgent) && /Mobile/.test(userAgent) || // Android Firefox\n /FxiOS/.test(userAgent) // iOS Firefox\n );\n}\nfunction isMac() {\n return testPlatform(/^Mac/);\n}\nfunction isIPhone() {\n return testPlatform(/^iPhone/);\n}\nfunction isSafari() {\n return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n}\nfunction isIPad() {\n return testPlatform(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\n isMac() && navigator.maxTouchPoints > 1;\n}\nfunction isIOS() {\n return isIPhone() || isIPad();\n}\nfunction testPlatform(re) {\n return typeof window !== 'undefined' && window.navigator != null ? re.test(window.navigator.platform) : undefined;\n}\n\n// This code comes from https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/overlays/src/usePreventScroll.ts\nconst KEYBOARD_BUFFER = 24;\nconst useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\nfunction chain$1(...callbacks) {\n return (...args)=>{\n for (let callback of callbacks){\n if (typeof callback === 'function') {\n callback(...args);\n }\n }\n };\n}\n// @ts-ignore\nconst visualViewport = typeof document !== 'undefined' && window.visualViewport;\nfunction isScrollable(node) {\n let style = window.getComputedStyle(node);\n return /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);\n}\nfunction getScrollParent(node) {\n if (isScrollable(node)) {\n node = node.parentElement;\n }\n while(node && !isScrollable(node)){\n node = node.parentElement;\n }\n return node || document.scrollingElement || document.documentElement;\n}\n// HTML input types that do not cause the software keyboard to appear.\nconst nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n// The number of active usePreventScroll calls. Used to determine whether to revert back to the original page style/scroll position\nlet preventScrollCount = 0;\nlet restore;\n/**\n * Prevents scrolling on the document body on mount, and\n * restores it on unmount. Also ensures that content does not\n * shift due to the scrollbars disappearing.\n */ function usePreventScroll(options = {}) {\n let { isDisabled } = options;\n useIsomorphicLayoutEffect(()=>{\n if (isDisabled) {\n return;\n }\n preventScrollCount++;\n if (preventScrollCount === 1) {\n if (isIOS()) {\n restore = preventScrollMobileSafari();\n }\n }\n return ()=>{\n preventScrollCount--;\n if (preventScrollCount === 0) {\n restore == null ? void 0 : restore();\n }\n };\n }, [\n isDisabled\n ]);\n}\n// Mobile Safari is a whole different beast. Even with overflow: hidden,\n// it still scrolls the page in many situations:\n//\n// 1. When the bottom toolbar and address bar are collapsed, page scrolling is always allowed.\n// 2. When the keyboard is visible, the viewport does not resize. Instead, the keyboard covers part of\n// it, so it becomes scrollable.\n// 3. When tapping on an input, the page always scrolls so that the input is centered in the visual viewport.\n// This may cause even fixed position elements to scroll off the screen.\n// 4. When using the next/previous buttons in the keyboard to navigate between inputs, the whole page always\n// scrolls, even if the input is inside a nested scrollable element that could be scrolled instead.\n//\n// In order to work around these cases, and prevent scrolling without jankiness, we do a few things:\n//\n// 1. Prevent default on `touchmove` events that are not in a scrollable element. This prevents touch scrolling\n// on the window.\n// 2. Prevent default on `touchmove` events inside a scrollable element when the scroll position is at the\n// top or bottom. This avoids the whole page scrolling instead, but does prevent overscrolling.\n// 3. Prevent default on `touchend` events on input elements and handle focusing the element ourselves.\n// 4. When focusing an input, apply a transform to trick Safari into thinking the input is at the top\n// of the page, which prevents it from scrolling the page. After the input is focused, scroll the element\n// into view ourselves, without scrolling the whole page.\n// 5. Offset the body by the scroll position using a negative margin and scroll to the top. This should appear the\n// same visually, but makes the actual scroll position always zero. This is required to make all of the\n// above work or Safari will still try to scroll the page when focusing an input.\n// 6. As a last resort, handle window scroll events, and scroll back to the top. This can happen when attempting\n// to navigate to an input with the next/previous buttons that's outside a modal.\nfunction preventScrollMobileSafari() {\n let scrollable;\n let lastY = 0;\n let onTouchStart = (e)=>{\n // Store the nearest scrollable parent element from the element that the user touched.\n scrollable = getScrollParent(e.target);\n if (scrollable === document.documentElement && scrollable === document.body) {\n return;\n }\n lastY = e.changedTouches[0].pageY;\n };\n let onTouchMove = (e)=>{\n // Prevent scrolling the window.\n if (!scrollable || scrollable === document.documentElement || scrollable === document.body) {\n e.preventDefault();\n return;\n }\n // Prevent scrolling up when at the top and scrolling down when at the bottom\n // of a nested scrollable area, otherwise mobile Safari will start scrolling\n // the window instead. Unfortunately, this disables bounce scrolling when at\n // the top but it's the best we can do.\n let y = e.changedTouches[0].pageY;\n let scrollTop = scrollable.scrollTop;\n let bottom = scrollable.scrollHeight - scrollable.clientHeight;\n if (bottom === 0) {\n return;\n }\n if (scrollTop <= 0 && y > lastY || scrollTop >= bottom && y < lastY) {\n e.preventDefault();\n }\n lastY = y;\n };\n let onTouchEnd = (e)=>{\n let target = e.target;\n // Apply this change if we're not already focused on the target element\n if (isInput(target) && target !== document.activeElement) {\n e.preventDefault();\n // Apply a transform to trick Safari into thinking the input is at the top of the page\n // so it doesn't try to scroll it into view. When tapping on an input, this needs to\n // be done before the \"focus\" event, so we have to focus the element ourselves.\n target.style.transform = 'translateY(-2000px)';\n target.focus();\n requestAnimationFrame(()=>{\n target.style.transform = '';\n });\n }\n };\n let onFocus = (e)=>{\n let target = e.target;\n if (isInput(target)) {\n // Transform also needs to be applied in the focus event in cases where focus moves\n // other than tapping on an input directly, e.g. the next/previous buttons in the\n // software keyboard. In these cases, it seems applying the transform in the focus event\n // is good enough, whereas when tapping an input, it must be done before the focus event. 🤷‍♂️\n target.style.transform = 'translateY(-2000px)';\n requestAnimationFrame(()=>{\n target.style.transform = '';\n // This will have prevented the browser from scrolling the focused element into view,\n // so we need to do this ourselves in a way that doesn't cause the whole page to scroll.\n if (visualViewport) {\n if (visualViewport.height < window.innerHeight) {\n // If the keyboard is already visible, do this after one additional frame\n // to wait for the transform to be removed.\n requestAnimationFrame(()=>{\n scrollIntoView(target);\n });\n } else {\n // Otherwise, wait for the visual viewport to resize before scrolling so we can\n // measure the correct position to scroll to.\n visualViewport.addEventListener('resize', ()=>scrollIntoView(target), {\n once: true\n });\n }\n }\n });\n }\n };\n let onWindowScroll = ()=>{\n // Last resort. If the window scrolled, scroll it back to the top.\n // It should always be at the top because the body will have a negative margin (see below).\n window.scrollTo(0, 0);\n };\n // Record the original scroll position so we can restore it.\n // Then apply a negative margin to the body to offset it by the scroll position. This will\n // enable us to scroll the window to the top, which is required for the rest of this to work.\n let scrollX = window.pageXOffset;\n let scrollY = window.pageYOffset;\n let restoreStyles = chain$1(setStyle(document.documentElement, 'paddingRight', `${window.innerWidth - document.documentElement.clientWidth}px`));\n // Scroll to the top. The negative margin on the body will make this appear the same.\n window.scrollTo(0, 0);\n let removeEvents = chain$1(addEvent(document, 'touchstart', onTouchStart, {\n passive: false,\n capture: true\n }), addEvent(document, 'touchmove', onTouchMove, {\n passive: false,\n capture: true\n }), addEvent(document, 'touchend', onTouchEnd, {\n passive: false,\n capture: true\n }), addEvent(document, 'focus', onFocus, true), addEvent(window, 'scroll', onWindowScroll));\n return ()=>{\n // Restore styles and scroll the page back to where it was.\n restoreStyles();\n removeEvents();\n window.scrollTo(scrollX, scrollY);\n };\n}\n// Sets a CSS property on an element, and returns a function to revert it to the previous value.\nfunction setStyle(element, style, value) {\n // https://github.com/microsoft/TypeScript/issues/17827#issuecomment-391663310\n // @ts-ignore\n let cur = element.style[style];\n // @ts-ignore\n element.style[style] = value;\n return ()=>{\n // @ts-ignore\n element.style[style] = cur;\n };\n}\n// Adds an event listener to an element, and returns a function to remove it.\nfunction addEvent(target, event, handler, options) {\n // @ts-ignore\n target.addEventListener(event, handler, options);\n return ()=>{\n // @ts-ignore\n target.removeEventListener(event, handler, options);\n };\n}\nfunction scrollIntoView(target) {\n let root = document.scrollingElement || document.documentElement;\n while(target && target !== root){\n // Find the parent scrollable element and adjust the scroll position if the target is not already in view.\n let scrollable = getScrollParent(target);\n if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== target) {\n let scrollableTop = scrollable.getBoundingClientRect().top;\n let targetTop = target.getBoundingClientRect().top;\n let targetBottom = target.getBoundingClientRect().bottom;\n // Buffer is needed for some edge cases\n const keyboardHeight = scrollable.getBoundingClientRect().bottom + KEYBOARD_BUFFER;\n if (targetBottom > keyboardHeight) {\n scrollable.scrollTop += targetTop - scrollableTop;\n }\n }\n // @ts-ignore\n target = scrollable.parentElement;\n }\n}\nfunction isInput(target) {\n return target instanceof HTMLInputElement && !nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;\n}\n\n// This code comes from https://github.com/radix-ui/primitives/tree/main/packages/react/compose-refs\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */ function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */ function composeRefs(...refs) {\n return (node)=>refs.forEach((ref)=>setRef(ref, node));\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */ function useComposedRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nconst cache = new WeakMap();\nfunction set(el, styles, ignoreCache = false) {\n if (!el || !(el instanceof HTMLElement)) return;\n let originalStyles = {};\n Object.entries(styles).forEach(([key, value])=>{\n if (key.startsWith('--')) {\n el.style.setProperty(key, value);\n return;\n }\n originalStyles[key] = el.style[key];\n el.style[key] = value;\n });\n if (ignoreCache) return;\n cache.set(el, originalStyles);\n}\nfunction reset(el, prop) {\n if (!el || !(el instanceof HTMLElement)) return;\n let originalStyles = cache.get(el);\n if (!originalStyles) {\n return;\n }\n {\n el.style[prop] = originalStyles[prop];\n }\n}\nconst isVertical = (direction)=>{\n switch(direction){\n case 'top':\n case 'bottom':\n return true;\n case 'left':\n case 'right':\n return false;\n default:\n return direction;\n }\n};\nfunction getTranslate(element, direction) {\n if (!element) {\n return null;\n }\n const style = window.getComputedStyle(element);\n const transform = // @ts-ignore\n style.transform || style.webkitTransform || style.mozTransform;\n let mat = transform.match(/^matrix3d\\((.+)\\)$/);\n if (mat) {\n // https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix3d\n return parseFloat(mat[1].split(', ')[isVertical(direction) ? 13 : 12]);\n }\n // https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix\n mat = transform.match(/^matrix\\((.+)\\)$/);\n return mat ? parseFloat(mat[1].split(', ')[isVertical(direction) ? 5 : 4]) : null;\n}\nfunction dampenValue(v) {\n return 8 * (Math.log(v + 1) - 2);\n}\nfunction assignStyle(element, style) {\n if (!element) return ()=>{};\n const prevStyle = element.style.cssText;\n Object.assign(element.style, style);\n return ()=>{\n element.style.cssText = prevStyle;\n };\n}\n/**\n * Receives functions as arguments and returns a new function that calls all.\n */ function chain(...fns) {\n return (...args)=>{\n for (const fn of fns){\n if (typeof fn === 'function') {\n // @ts-ignore\n fn(...args);\n }\n }\n };\n}\n\nconst TRANSITIONS = {\n DURATION: 0.5,\n EASE: [\n 0.32,\n 0.72,\n 0,\n 1\n ]\n};\nconst VELOCITY_THRESHOLD = 0.4;\nconst CLOSE_THRESHOLD = 0.25;\nconst SCROLL_LOCK_TIMEOUT = 100;\nconst BORDER_RADIUS = 8;\nconst NESTED_DISPLACEMENT = 16;\nconst WINDOW_TOP_OFFSET = 26;\nconst DRAG_CLASS = 'vaul-dragging';\n\n// This code comes from https://github.com/radix-ui/primitives/blob/main/packages/react/use-controllable-state/src/useControllableState.tsx\nfunction useCallbackRef(callback) {\n const callbackRef = React__default.useRef(callback);\n React__default.useEffect(()=>{\n callbackRef.current = callback;\n });\n // https://github.com/facebook/react/issues/19240\n return React__default.useMemo(()=>(...args)=>callbackRef.current == null ? void 0 : callbackRef.current.call(callbackRef, ...args), []);\n}\nfunction useUncontrolledState({ defaultProp, onChange }) {\n const uncontrolledState = React__default.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React__default.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React__default.useEffect(()=>{\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [\n value,\n prevValueRef,\n handleChange\n ]);\n return uncontrolledState;\n}\nfunction useControllableState({ prop, defaultProp, onChange = ()=>{} }) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== undefined;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React__default.useCallback((nextValue)=>{\n if (isControlled) {\n const setter = nextValue;\n const value = typeof nextValue === 'function' ? setter(prop) : nextValue;\n if (value !== prop) handleChange(value);\n } else {\n setUncontrolledProp(nextValue);\n }\n }, [\n isControlled,\n prop,\n setUncontrolledProp,\n handleChange\n ]);\n return [\n value,\n setValue\n ];\n}\n\nfunction useSnapPoints({ activeSnapPointProp, setActiveSnapPointProp, snapPoints, drawerRef, overlayRef, fadeFromIndex, onSnapPointChange, direction = 'bottom', container, snapToSequentialPoint }) {\n const [activeSnapPoint, setActiveSnapPoint] = useControllableState({\n prop: activeSnapPointProp,\n defaultProp: snapPoints == null ? void 0 : snapPoints[0],\n onChange: setActiveSnapPointProp\n });\n const [windowDimensions, setWindowDimensions] = React__default.useState(typeof window !== 'undefined' ? {\n innerWidth: window.innerWidth,\n innerHeight: window.innerHeight\n } : undefined);\n React__default.useEffect(()=>{\n function onResize() {\n setWindowDimensions({\n innerWidth: window.innerWidth,\n innerHeight: window.innerHeight\n });\n }\n window.addEventListener('resize', onResize);\n return ()=>window.removeEventListener('resize', onResize);\n }, []);\n const isLastSnapPoint = React__default.useMemo(()=>activeSnapPoint === (snapPoints == null ? void 0 : snapPoints[snapPoints.length - 1]) || null, [\n snapPoints,\n activeSnapPoint\n ]);\n const activeSnapPointIndex = React__default.useMemo(()=>{\n var _snapPoints_findIndex;\n return (_snapPoints_findIndex = snapPoints == null ? void 0 : snapPoints.findIndex((snapPoint)=>snapPoint === activeSnapPoint)) != null ? _snapPoints_findIndex : null;\n }, [\n snapPoints,\n activeSnapPoint\n ]);\n const shouldFade = snapPoints && snapPoints.length > 0 && (fadeFromIndex || fadeFromIndex === 0) && !Number.isNaN(fadeFromIndex) && snapPoints[fadeFromIndex] === activeSnapPoint || !snapPoints;\n const snapPointsOffset = React__default.useMemo(()=>{\n const containerSize = container ? {\n width: container.getBoundingClientRect().width,\n height: container.getBoundingClientRect().height\n } : typeof window !== 'undefined' ? {\n width: window.innerWidth,\n height: window.innerHeight\n } : {\n width: 0,\n height: 0\n };\n var _snapPoints_map;\n return (_snapPoints_map = snapPoints == null ? void 0 : snapPoints.map((snapPoint)=>{\n const isPx = typeof snapPoint === 'string';\n let snapPointAsNumber = 0;\n if (isPx) {\n snapPointAsNumber = parseInt(snapPoint, 10);\n }\n if (isVertical(direction)) {\n const height = isPx ? snapPointAsNumber : windowDimensions ? snapPoint * containerSize.height : 0;\n if (windowDimensions) {\n return direction === 'bottom' ? containerSize.height - height : -containerSize.height + height;\n }\n return height;\n }\n const width = isPx ? snapPointAsNumber : windowDimensions ? snapPoint * containerSize.width : 0;\n if (windowDimensions) {\n return direction === 'right' ? containerSize.width - width : -containerSize.width + width;\n }\n return width;\n })) != null ? _snapPoints_map : [];\n }, [\n snapPoints,\n windowDimensions,\n container\n ]);\n const activeSnapPointOffset = React__default.useMemo(()=>activeSnapPointIndex !== null ? snapPointsOffset == null ? void 0 : snapPointsOffset[activeSnapPointIndex] : null, [\n snapPointsOffset,\n activeSnapPointIndex\n ]);\n const snapToPoint = React__default.useCallback((dimension)=>{\n var _snapPointsOffset_findIndex;\n const newSnapPointIndex = (_snapPointsOffset_findIndex = snapPointsOffset == null ? void 0 : snapPointsOffset.findIndex((snapPointDim)=>snapPointDim === dimension)) != null ? _snapPointsOffset_findIndex : null;\n onSnapPointChange(newSnapPointIndex);\n set(drawerRef.current, {\n transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,\n transform: isVertical(direction) ? `translate3d(0, ${dimension}px, 0)` : `translate3d(${dimension}px, 0, 0)`\n });\n if (snapPointsOffset && newSnapPointIndex !== snapPointsOffset.length - 1 && fadeFromIndex !== undefined && newSnapPointIndex !== fadeFromIndex && newSnapPointIndex < fadeFromIndex) {\n set(overlayRef.current, {\n transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,\n opacity: '0'\n });\n } else {\n set(overlayRef.current, {\n transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,\n opacity: '1'\n });\n }\n setActiveSnapPoint(snapPoints == null ? void 0 : snapPoints[Math.max(newSnapPointIndex, 0)]);\n }, [\n drawerRef.current,\n snapPoints,\n snapPointsOffset,\n fadeFromIndex,\n overlayRef,\n setActiveSnapPoint\n ]);\n React__default.useEffect(()=>{\n if (activeSnapPoint || activeSnapPointProp) {\n var _snapPoints_findIndex;\n const newIndex = (_snapPoints_findIndex = snapPoints == null ? void 0 : snapPoints.findIndex((snapPoint)=>snapPoint === activeSnapPointProp || snapPoint === activeSnapPoint)) != null ? _snapPoints_findIndex : -1;\n if (snapPointsOffset && newIndex !== -1 && typeof snapPointsOffset[newIndex] === 'number') {\n snapToPoint(snapPointsOffset[newIndex]);\n }\n }\n }, [\n activeSnapPoint,\n activeSnapPointProp,\n snapPoints,\n snapPointsOffset,\n snapToPoint\n ]);\n function onRelease({ draggedDistance, closeDrawer, velocity, dismissible }) {\n if (fadeFromIndex === undefined) return;\n const currentPosition = direction === 'bottom' || direction === 'right' ? (activeSnapPointOffset != null ? activeSnapPointOffset : 0) - draggedDistance : (activeSnapPointOffset != null ? activeSnapPointOffset : 0) + draggedDistance;\n const isOverlaySnapPoint = activeSnapPointIndex === fadeFromIndex - 1;\n const isFirst = activeSnapPointIndex === 0;\n const hasDraggedUp = draggedDistance > 0;\n if (isOverlaySnapPoint) {\n set(overlayRef.current, {\n transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`\n });\n }\n if (!snapToSequentialPoint && velocity > 2 && !hasDraggedUp) {\n if (dismissible) closeDrawer();\n else snapToPoint(snapPointsOffset[0]); // snap to initial point\n return;\n }\n if (!snapToSequentialPoint && velocity > 2 && hasDraggedUp && snapPointsOffset && snapPoints) {\n snapToPoint(snapPointsOffset[snapPoints.length - 1]);\n return;\n }\n // Find the closest snap point to the current position\n const closestSnapPoint = snapPointsOffset == null ? void 0 : snapPointsOffset.reduce((prev, curr)=>{\n if (typeof prev !== 'number' || typeof curr !== 'number') return prev;\n return Math.abs(curr - currentPosition) < Math.abs(prev - currentPosition) ? curr : prev;\n });\n const dim = isVertical(direction) ? window.innerHeight : window.innerWidth;\n if (velocity > VELOCITY_THRESHOLD && Math.abs(draggedDistance) < dim * 0.4) {\n const dragDirection = hasDraggedUp ? 1 : -1; // 1 = up, -1 = down\n // Don't do anything if we swipe upwards while being on the last snap point\n if (dragDirection > 0 && isLastSnapPoint && snapPoints) {\n snapToPoint(snapPointsOffset[snapPoints.length - 1]);\n return;\n }\n if (isFirst && dragDirection < 0 && dismissible) {\n closeDrawer();\n }\n if (activeSnapPointIndex === null) return;\n snapToPoint(snapPointsOffset[activeSnapPointIndex + dragDirection]);\n return;\n }\n snapToPoint(closestSnapPoint);\n }\n function onDrag({ draggedDistance }) {\n if (activeSnapPointOffset === null) return;\n const newValue = direction === 'bottom' || direction === 'right' ? activeSnapPointOffset - draggedDistance : activeSnapPointOffset + draggedDistance;\n // Don't do anything if we exceed the last(biggest) snap point\n if ((direction === 'bottom' || direction === 'right') && newValue < snapPointsOffset[snapPointsOffset.length - 1]) {\n return;\n }\n if ((direction === 'top' || direction === 'left') && newValue > snapPointsOffset[snapPointsOffset.length - 1]) {\n return;\n }\n set(drawerRef.current, {\n transform: isVertical(direction) ? `translate3d(0, ${newValue}px, 0)` : `translate3d(${newValue}px, 0, 0)`\n });\n }\n function getPercentageDragged(absDraggedDistance, isDraggingDown) {\n if (!snapPoints || typeof activeSnapPointIndex !== 'number' || !snapPointsOffset || fadeFromIndex === undefined) return null;\n // If this is true we are dragging to a snap point that is supposed to have an overlay\n const isOverlaySnapPoint = activeSnapPointIndex === fadeFromIndex - 1;\n const isOverlaySnapPointOrHigher = activeSnapPointIndex >= fadeFromIndex;\n if (isOverlaySnapPointOrHigher && isDraggingDown) {\n return 0;\n }\n // Don't animate, but still use this one if we are dragging away from the overlaySnapPoint\n if (isOverlaySnapPoint && !isDraggingDown) return 1;\n if (!shouldFade && !isOverlaySnapPoint) return null;\n // Either fadeFrom index or the one before\n const targetSnapPointIndex = isOverlaySnapPoint ? activeSnapPointIndex + 1 : activeSnapPointIndex - 1;\n // Get the distance from overlaySnapPoint to the one before or vice-versa to calculate the opacity percentage accordingly\n const snapPointDistance = isOverlaySnapPoint ? snapPointsOffset[targetSnapPointIndex] - snapPointsOffset[targetSnapPointIndex - 1] : snapPointsOffset[targetSnapPointIndex + 1] - snapPointsOffset[targetSnapPointIndex];\n const percentageDragged = absDraggedDistance / Math.abs(snapPointDistance);\n if (isOverlaySnapPoint) {\n return 1 - percentageDragged;\n } else {\n return percentageDragged;\n }\n }\n return {\n isLastSnapPoint,\n activeSnapPoint,\n shouldFade,\n getPercentageDragged,\n setActiveSnapPoint,\n activeSnapPointIndex,\n onRelease,\n onDrag,\n snapPointsOffset\n };\n}\n\nconst noop = ()=>()=>{};\nfunction useScaleBackground() {\n const { direction, isOpen, shouldScaleBackground, setBackgroundColorOnScale, noBodyStyles } = useDrawerContext();\n const timeoutIdRef = React__default.useRef(null);\n const initialBackgroundColor = useMemo(()=>document.body.style.backgroundColor, []);\n function getScale() {\n return (window.innerWidth - WINDOW_TOP_OFFSET) / window.innerWidth;\n }\n React__default.useEffect(()=>{\n if (isOpen && shouldScaleBackground) {\n if (timeoutIdRef.current) clearTimeout(timeoutIdRef.current);\n const wrapper = document.querySelector('[data-vaul-drawer-wrapper]') || document.querySelector('[vaul-drawer-wrapper]');\n if (!wrapper) return;\n chain(setBackgroundColorOnScale && !noBodyStyles ? assignStyle(document.body, {\n background: 'black'\n }) : noop, assignStyle(wrapper, {\n transformOrigin: isVertical(direction) ? 'top' : 'left',\n transitionProperty: 'transform, border-radius',\n transitionDuration: `${TRANSITIONS.DURATION}s`,\n transitionTimingFunction: `cubic-bezier(${TRANSITIONS.EASE.join(',')})`\n }));\n const wrapperStylesCleanup = assignStyle(wrapper, {\n borderRadius: `${BORDER_RADIUS}px`,\n overflow: 'hidden',\n ...isVertical(direction) ? {\n transform: `scale(${getScale()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`\n } : {\n transform: `scale(${getScale()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`\n }\n });\n return ()=>{\n wrapperStylesCleanup();\n timeoutIdRef.current = window.setTimeout(()=>{\n if (initialBackgroundColor) {\n document.body.style.background = initialBackgroundColor;\n } else {\n document.body.style.removeProperty('background');\n }\n }, TRANSITIONS.DURATION * 1000);\n };\n }\n }, [\n isOpen,\n shouldScaleBackground,\n initialBackgroundColor\n ]);\n}\n\nlet previousBodyPosition = null;\n/**\n * This hook is necessary to prevent buggy behavior on iOS devices (need to test on Android).\n * I won't get into too much detail about what bugs it solves, but so far I've found that setting the body to `position: fixed` is the most reliable way to prevent those bugs.\n * Issues that this hook solves:\n * https://github.com/emilkowalski/vaul/issues/435\n * https://github.com/emilkowalski/vaul/issues/433\n * And more that I discovered, but were just not reported.\n */ function usePositionFixed({ isOpen, modal, nested, hasBeenOpened, preventScrollRestoration, noBodyStyles }) {\n const [activeUrl, setActiveUrl] = React__default.useState(()=>typeof window !== 'undefined' ? window.location.href : '');\n const scrollPos = React__default.useRef(0);\n const setPositionFixed = React__default.useCallback(()=>{\n // All browsers on iOS will return true here.\n if (!isSafari()) return;\n // If previousBodyPosition is already set, don't set it again.\n if (previousBodyPosition === null && isOpen && !noBodyStyles) {\n previousBodyPosition = {\n position: document.body.style.position,\n top: document.body.style.top,\n left: document.body.style.left,\n height: document.body.style.height,\n right: 'unset'\n };\n // Update the dom inside an animation frame\n const { scrollX, innerHeight } = window;\n document.body.style.setProperty('position', 'fixed', 'important');\n Object.assign(document.body.style, {\n top: `${-scrollPos.current}px`,\n left: `${-scrollX}px`,\n right: '0px',\n height: 'auto'\n });\n window.setTimeout(()=>window.requestAnimationFrame(()=>{\n // Attempt to check if the bottom bar appeared due to the position change\n const bottomBarHeight = innerHeight - window.innerHeight;\n if (bottomBarHeight && scrollPos.current >= innerHeight) {\n // Move the content further up so that the bottom bar doesn't hide it\n document.body.style.top = `${-(scrollPos.current + bottomBarHeight)}px`;\n }\n }), 300);\n }\n }, [\n isOpen\n ]);\n const restorePositionSetting = React__default.useCallback(()=>{\n // All browsers on iOS will return true here.\n if (!isSafari()) return;\n if (previousBodyPosition !== null && !noBodyStyles) {\n // Convert the position from \"px\" to Int\n const y = -parseInt(document.body.style.top, 10);\n const x = -parseInt(document.body.style.left, 10);\n // Restore styles\n Object.assign(document.body.style, previousBodyPosition);\n window.requestAnimationFrame(()=>{\n if (preventScrollRestoration && activeUrl !== window.location.href) {\n setActiveUrl(window.location.href);\n return;\n }\n window.scrollTo(x, y);\n });\n previousBodyPosition = null;\n }\n }, [\n activeUrl\n ]);\n React__default.useEffect(()=>{\n function onScroll() {\n scrollPos.current = window.scrollY;\n }\n onScroll();\n window.addEventListener('scroll', onScroll);\n return ()=>{\n window.removeEventListener('scroll', onScroll);\n };\n }, []);\n React__default.useEffect(()=>{\n if (!modal) return;\n return ()=>{\n if (typeof document === 'undefined') return;\n // Another drawer is opened, safe to ignore the execution\n const hasDrawerOpened = !!document.querySelector('[data-vaul-drawer]');\n if (hasDrawerOpened) return;\n restorePositionSetting();\n };\n }, [\n modal,\n restorePositionSetting\n ]);\n React__default.useEffect(()=>{\n if (nested || !hasBeenOpened) return;\n // This is needed to force Safari toolbar to show **before** the drawer starts animating to prevent a gnarly shift from happening\n if (isOpen) {\n // avoid for standalone mode (PWA)\n const isStandalone = window.matchMedia('(display-mode: standalone)').matches;\n !isStandalone && setPositionFixed();\n if (!modal) {\n window.setTimeout(()=>{\n restorePositionSetting();\n }, 500);\n }\n } else {\n restorePositionSetting();\n }\n }, [\n isOpen,\n hasBeenOpened,\n activeUrl,\n modal,\n nested,\n setPositionFixed,\n restorePositionSetting\n ]);\n return {\n restorePositionSetting\n };\n}\n\nfunction Root({ open: openProp, onOpenChange, children, onDrag: onDragProp, onRelease: onReleaseProp, snapPoints, shouldScaleBackground = false, setBackgroundColorOnScale = true, closeThreshold = CLOSE_THRESHOLD, scrollLockTimeout = SCROLL_LOCK_TIMEOUT, dismissible = true, handleOnly = false, fadeFromIndex = snapPoints && snapPoints.length - 1, activeSnapPoint: activeSnapPointProp, setActiveSnapPoint: setActiveSnapPointProp, fixed, modal = true, onClose, nested, noBodyStyles = false, direction = 'bottom', defaultOpen = false, disablePreventScroll = true, snapToSequentialPoint = false, preventScrollRestoration = false, repositionInputs = true, onAnimationEnd, container, autoFocus = false }) {\n var _drawerRef_current, _drawerRef_current1;\n const [isOpen = false, setIsOpen] = useControllableState({\n defaultProp: defaultOpen,\n prop: openProp,\n onChange: (o)=>{\n onOpenChange == null ? void 0 : onOpenChange(o);\n if (!o && !nested) {\n restorePositionSetting();\n }\n setTimeout(()=>{\n onAnimationEnd == null ? void 0 : onAnimationEnd(o);\n }, TRANSITIONS.DURATION * 1000);\n if (o && !modal) {\n if (typeof window !== 'undefined') {\n window.requestAnimationFrame(()=>{\n document.body.style.pointerEvents = 'auto';\n });\n }\n }\n if (!o) {\n // This will be removed when the exit animation ends (`500ms`)\n document.body.style.pointerEvents = 'auto';\n }\n }\n });\n const [hasBeenOpened, setHasBeenOpened] = React__default.useState(false);\n const [isDragging, setIsDragging] = React__default.useState(false);\n const [justReleased, setJustReleased] = React__default.useState(false);\n const overlayRef = React__default.useRef(null);\n const openTime = React__default.useRef(null);\n const dragStartTime = React__default.useRef(null);\n const dragEndTime = React__default.useRef(null);\n const lastTimeDragPrevented = React__default.useRef(null);\n const isAllowedToDrag = React__default.useRef(false);\n const nestedOpenChangeTimer = React__default.useRef(null);\n const pointerStart = React__default.useRef(0);\n const keyboardIsOpen = React__default.useRef(false);\n const shouldAnimate = React__default.useRef(!defaultOpen);\n const previousDiffFromInitial = React__default.useRef(0);\n const drawerRef = React__default.useRef(null);\n const drawerHeightRef = React__default.useRef(((_drawerRef_current = drawerRef.current) == null ? void 0 : _drawerRef_current.getBoundingClientRect().height) || 0);\n const drawerWidthRef = React__default.useRef(((_drawerRef_current1 = drawerRef.current) == null ? void 0 : _drawerRef_current1.getBoundingClientRect().width) || 0);\n const initialDrawerHeight = React__default.useRef(0);\n const onSnapPointChange = React__default.useCallback((activeSnapPointIndex)=>{\n // Change openTime ref when we reach the last snap point to prevent dragging for 500ms incase it's scrollable.\n if (snapPoints && activeSnapPointIndex === snapPointsOffset.length - 1) openTime.current = new Date();\n }, []);\n const { activeSnapPoint, activeSnapPointIndex, setActiveSnapPoint, onRelease: onReleaseSnapPoints, snapPointsOffset, onDrag: onDragSnapPoints, shouldFade, getPercentageDragged: getSnapPointsPercentageDragged } = useSnapPoints({\n snapPoints,\n activeSnapPointProp,\n setActiveSnapPointProp,\n drawerRef,\n fadeFromIndex,\n overlayRef,\n onSnapPointChange,\n direction,\n container,\n snapToSequentialPoint\n });\n usePreventScroll({\n isDisabled: !isOpen || isDragging || !modal || justReleased || !hasBeenOpened || !repositionInputs || !disablePreventScroll\n });\n const { restorePositionSetting } = usePositionFixed({\n isOpen,\n modal,\n nested: nested != null ? nested : false,\n hasBeenOpened,\n preventScrollRestoration,\n noBodyStyles\n });\n function getScale() {\n return (window.innerWidth - WINDOW_TOP_OFFSET) / window.innerWidth;\n }\n function onPress(event) {\n var _drawerRef_current, _drawerRef_current1;\n if (!dismissible && !snapPoints) return;\n if (drawerRef.current && !drawerRef.current.contains(event.target)) return;\n drawerHeightRef.current = ((_drawerRef_current = drawerRef.current) == null ? void 0 : _drawerRef_current.getBoundingClientRect().height) || 0;\n drawerWidthRef.current = ((_drawerRef_current1 = drawerRef.current) == null ? void 0 : _drawerRef_current1.getBoundingClientRect().width) || 0;\n setIsDragging(true);\n dragStartTime.current = new Date();\n // iOS doesn't trigger mouseUp after scrolling so we need to listen to touched in order to disallow dragging\n if (isIOS()) {\n window.addEventListener('touchend', ()=>isAllowedToDrag.current = false, {\n once: true\n });\n }\n // Ensure we maintain correct pointer capture even when going outside of the drawer\n event.target.setPointerCapture(event.pointerId);\n pointerStart.current = isVertical(direction) ? event.pageY : event.pageX;\n }\n function shouldDrag(el, isDraggingInDirection) {\n var _window_getSelection;\n let element = el;\n const highlightedText = (_window_getSelection = window.getSelection()) == null ? void 0 : _window_getSelection.toString();\n const swipeAmount = drawerRef.current ? getTranslate(drawerRef.current, direction) : null;\n const date = new Date();\n // Fixes https://github.com/emilkowalski/vaul/issues/483\n if (element.tagName === 'SELECT') {\n return false;\n }\n if (element.hasAttribute('data-vaul-no-drag') || element.closest('[data-vaul-no-drag]')) {\n return false;\n }\n if (direction === 'right' || direction === 'left') {\n return true;\n }\n // Allow scrolling when animating\n if (openTime.current && date.getTime() - openTime.current.getTime() < 500) {\n return false;\n }\n if (swipeAmount !== null) {\n if (direction === 'bottom' ? swipeAmount > 0 : swipeAmount < 0) {\n return true;\n }\n }\n // Don't drag if there's highlighted text\n if (highlightedText && highlightedText.length > 0) {\n return false;\n }\n // Disallow dragging if drawer was scrolled within `scrollLockTimeout`\n if (lastTimeDragPrevented.current && date.getTime() - lastTimeDragPrevented.current.getTime() < scrollLockTimeout && swipeAmount === 0) {\n lastTimeDragPrevented.current = date;\n return false;\n }\n if (isDraggingInDirection) {\n lastTimeDragPrevented.current = date;\n // We are dragging down so we should allow scrolling\n return false;\n }\n // Keep climbing up the DOM tree as long as there's a parent\n while(element){\n // Check if the element is scrollable\n if (element.scrollHeight > element.clientHeight) {\n if (element.scrollTop !== 0) {\n lastTimeDragPrevented.current = new Date();\n // The element is scrollable and not scrolled to the top, so don't drag\n return false;\n }\n if (element.getAttribute('role') === 'dialog') {\n return true;\n }\n }\n // Move up to the parent element\n element = element.parentNode;\n }\n // No scrollable parents not scrolled to the top found, so drag\n return true;\n }\n function onDrag(event) {\n if (!drawerRef.current) {\n return;\n }\n // We need to know how much of the drawer has been dragged in percentages so that we can transform background accordingly\n if (isDragging) {\n const directionMultiplier = direction === 'bottom' || direction === 'right' ? 1 : -1;\n const draggedDistance = (pointerStart.current - (isVertical(direction) ? event.pageY : event.pageX)) * directionMultiplier;\n const isDraggingInDirection = draggedDistance > 0;\n // Pre condition for disallowing dragging in the close direction.\n const noCloseSnapPointsPreCondition = snapPoints && !dismissible && !isDraggingInDirection;\n // Disallow dragging down to close when first snap point is the active one and dismissible prop is set to false.\n if (noCloseSnapPointsPreCondition && activeSnapPointIndex === 0) return;\n // We need to capture last time when drag with scroll was triggered and have a timeout between\n const absDraggedDistance = Math.abs(draggedDistance);\n const wrapper = document.querySelector('[data-vaul-drawer-wrapper]');\n const drawerDimension = direction === 'bottom' || direction === 'top' ? drawerHeightRef.current : drawerWidthRef.current;\n // Calculate the percentage dragged, where 1 is the closed position\n let percentageDragged = absDraggedDistance / drawerDimension;\n const snapPointPercentageDragged = getSnapPointsPercentageDragged(absDraggedDistance, isDraggingInDirection);\n if (snapPointPercentageDragged !== null) {\n percentageDragged = snapPointPercentageDragged;\n }\n // Disallow close dragging beyond the smallest snap point.\n if (noCloseSnapPointsPreCondition && percentageDragged >= 1) {\n return;\n }\n if (!isAllowedToDrag.current && !shouldDrag(event.target, isDraggingInDirection)) return;\n drawerRef.current.classList.add(DRAG_CLASS);\n // If shouldDrag gave true once after pressing down on the drawer, we set isAllowedToDrag to true and it will remain true until we let go, there's no reason to disable dragging mid way, ever, and that's the solution to it\n isAllowedToDrag.current = true;\n set(drawerRef.current, {\n transition: 'none'\n });\n set(overlayRef.current, {\n transition: 'none'\n });\n if (snapPoints) {\n onDragSnapPoints({\n draggedDistance\n });\n }\n // Run this only if snapPoints are not defined or if we are at the last snap point (highest one)\n if (isDraggingInDirection && !snapPoints) {\n const dampenedDraggedDistance = dampenValue(draggedDistance);\n const translateValue = Math.min(dampenedDraggedDistance * -1, 0) * directionMultiplier;\n set(drawerRef.current, {\n transform: isVertical(direction) ? `translate3d(0, ${translateValue}px, 0)` : `translate3d(${translateValue}px, 0, 0)`\n });\n return;\n }\n const opacityValue = 1 - percentageDragged;\n if (shouldFade || fadeFromIndex && activeSnapPointIndex === fadeFromIndex - 1) {\n onDragProp == null ? void 0 : onDragProp(event, percentageDragged);\n set(overlayRef.current, {\n opacity: `${opacityValue}`,\n transition: 'none'\n }, true);\n }\n if (wrapper && overlayRef.current && shouldScaleBackground) {\n // Calculate percentageDragged as a fraction (0 to 1)\n const scaleValue = Math.min(getScale() + percentageDragged * (1 - getScale()), 1);\n const borderRadiusValue = 8 - percentageDragged * 8;\n const translateValue = Math.max(0, 14 - percentageDragged * 14);\n set(wrapper, {\n borderRadius: `${borderRadiusValue}px`,\n transform: isVertical(direction) ? `scale(${scaleValue}) translate3d(0, ${translateValue}px, 0)` : `scale(${scaleValue}) translate3d(${translateValue}px, 0, 0)`,\n transition: 'none'\n }, true);\n }\n if (!snapPoints) {\n const translateValue = absDraggedDistance * directionMultiplier;\n set(drawerRef.current, {\n transform: isVertical(direction) ? `translate3d(0, ${translateValue}px, 0)` : `translate3d(${translateValue}px, 0, 0)`\n });\n }\n }\n }\n React__default.useEffect(()=>{\n window.requestAnimationFrame(()=>{\n shouldAnimate.current = true;\n });\n }, []);\n React__default.useEffect(()=>{\n var _window_visualViewport;\n function onVisualViewportChange() {\n if (!drawerRef.current || !repositionInputs) return;\n const focusedElement = document.activeElement;\n if (isInput(focusedElement) || keyboardIsOpen.current) {\n var _window_visualViewport;\n const visualViewportHeight = ((_window_visualViewport = window.visualViewport) == null ? void 0 : _window_visualViewport.height) || 0;\n const totalHeight = window.innerHeight;\n // This is the height of the keyboard\n let diffFromInitial = totalHeight - visualViewportHeight;\n const drawerHeight = drawerRef.current.getBoundingClientRect().height || 0;\n // Adjust drawer height only if it's tall enough\n const isTallEnough = drawerHeight > totalHeight * 0.8;\n if (!initialDrawerHeight.current) {\n initialDrawerHeight.current = drawerHeight;\n }\n const offsetFromTop = drawerRef.current.getBoundingClientRect().top;\n // visualViewport height may change due to somq e subtle changes to the keyboard. Checking if the height changed by 60 or more will make sure that they keyboard really changed its open state.\n if (Math.abs(previousDiffFromInitial.current - diffFromInitial) > 60) {\n keyboardIsOpen.current = !keyboardIsOpen.current;\n }\n if (snapPoints && snapPoints.length > 0 && snapPointsOffset && activeSnapPointIndex) {\n const activeSnapPointHeight = snapPointsOffset[activeSnapPointIndex] || 0;\n diffFromInitial += activeSnapPointHeight;\n }\n previousDiffFromInitial.current = diffFromInitial;\n // We don't have to change the height if the input is in view, when we are here we are in the opened keyboard state so we can correctly check if the input is in view\n if (drawerHeight > visualViewportHeight || keyboardIsOpen.current) {\n const height = drawerRef.current.getBoundingClientRect().height;\n let newDrawerHeight = height;\n if (height > visualViewportHeight) {\n newDrawerHeight = visualViewportHeight - (isTallEnough ? offsetFromTop : WINDOW_TOP_OFFSET);\n }\n // When fixed, don't move the drawer upwards if there's space, but rather only change it's height so it's fully scrollable when the keyboard is open\n if (fixed) {\n drawerRef.current.style.height = `${height - Math.max(diffFromInitial, 0)}px`;\n } else {\n drawerRef.current.style.height = `${Math.max(newDrawerHeight, visualViewportHeight - offsetFromTop)}px`;\n }\n } else if (!isMobileFirefox()) {\n drawerRef.current.style.height = `${initialDrawerHeight.current}px`;\n }\n if (snapPoints && snapPoints.length > 0 && !keyboardIsOpen.current) {\n drawerRef.current.style.bottom = `0px`;\n } else {\n // Negative bottom value would never make sense\n drawerRef.current.style.bottom = `${Math.max(diffFromInitial, 0)}px`;\n }\n }\n }\n (_window_visualViewport = window.visualViewport) == null ? void 0 : _window_visualViewport.addEventListener('resize', onVisualViewportChange);\n return ()=>{\n var _window_visualViewport;\n return (_window_visualViewport = window.visualViewport) == null ? void 0 : _window_visualViewport.removeEventListener('resize', onVisualViewportChange);\n };\n }, [\n activeSnapPointIndex,\n snapPoints,\n snapPointsOffset\n ]);\n function closeDrawer(fromWithin) {\n cancelDrag();\n onClose == null ? void 0 : onClose();\n if (!fromWithin) {\n setIsOpen(false);\n }\n setTimeout(()=>{\n if (snapPoints) {\n setActiveSnapPoint(snapPoints[0]);\n }\n }, TRANSITIONS.DURATION * 1000); // seconds to ms\n }\n function resetDrawer() {\n if (!drawerRef.current) return;\n const wrapper = document.querySelector('[data-vaul-drawer-wrapper]');\n const currentSwipeAmount = getTranslate(drawerRef.current, direction);\n set(drawerRef.current, {\n transform: 'translate3d(0, 0, 0)',\n transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`\n });\n set(overlayRef.current, {\n transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,\n opacity: '1'\n });\n // Don't reset background if swiped upwards\n if (shouldScaleBackground && currentSwipeAmount && currentSwipeAmount > 0 && isOpen) {\n set(wrapper, {\n borderRadius: `${BORDER_RADIUS}px`,\n overflow: 'hidden',\n ...isVertical(direction) ? {\n transform: `scale(${getScale()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,\n transformOrigin: 'top'\n } : {\n transform: `scale(${getScale()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,\n transformOrigin: 'left'\n },\n transitionProperty: 'transform, border-radius',\n transitionDuration: `${TRANSITIONS.DURATION}s`,\n transitionTimingFunction: `cubic-bezier(${TRANSITIONS.EASE.join(',')})`\n }, true);\n }\n }\n function cancelDrag() {\n if (!isDragging || !drawerRef.current) return;\n drawerRef.current.classList.remove(DRAG_CLASS);\n isAllowedToDrag.current = false;\n setIsDragging(false);\n dragEndTime.current = new Date();\n }\n function onRelease(event) {\n if (!isDragging || !drawerRef.current) return;\n drawerRef.current.classList.remove(DRAG_CLASS);\n isAllowedToDrag.current = false;\n setIsDragging(false);\n dragEndTime.current = new Date();\n const swipeAmount = getTranslate(drawerRef.current, direction);\n if (!event || !shouldDrag(event.target, false) || !swipeAmount || Number.isNaN(swipeAmount)) return;\n if (dragStartTime.current === null) return;\n const timeTaken = dragEndTime.current.getTime() - dragStartTime.current.getTime();\n const distMoved = pointerStart.current - (isVertical(direction) ? event.pageY : event.pageX);\n const velocity = Math.abs(distMoved) / timeTaken;\n if (velocity > 0.05) {\n // `justReleased` is needed to prevent the drawer from focusing on an input when the drag ends, as it's not the intent most of the time.\n setJustReleased(true);\n setTimeout(()=>{\n setJustReleased(false);\n }, 200);\n }\n if (snapPoints) {\n const directionMultiplier = direction === 'bottom' || direction === 'right' ? 1 : -1;\n onReleaseSnapPoints({\n draggedDistance: distMoved * directionMultiplier,\n closeDrawer,\n velocity,\n dismissible\n });\n onReleaseProp == null ? void 0 : onReleaseProp(event, true);\n return;\n }\n // Moved upwards, don't do anything\n if (direction === 'bottom' || direction === 'right' ? distMoved > 0 : distMoved < 0) {\n resetDrawer();\n onReleaseProp == null ? void 0 : onReleaseProp(event, true);\n return;\n }\n if (velocity > VELOCITY_THRESHOLD) {\n closeDrawer();\n onReleaseProp == null ? void 0 : onReleaseProp(event, false);\n return;\n }\n var _drawerRef_current_getBoundingClientRect_height;\n const visibleDrawerHeight = Math.min((_drawerRef_current_getBoundingClientRect_height = drawerRef.current.getBoundingClientRect().height) != null ? _drawerRef_current_getBoundingClientRect_height : 0, window.innerHeight);\n var _drawerRef_current_getBoundingClientRect_width;\n const visibleDrawerWidth = Math.min((_drawerRef_current_getBoundingClientRect_width = drawerRef.current.getBoundingClientRect().width) != null ? _drawerRef_current_getBoundingClientRect_width : 0, window.innerWidth);\n const isHorizontalSwipe = direction === 'left' || direction === 'right';\n if (Math.abs(swipeAmount) >= (isHorizontalSwipe ? visibleDrawerWidth : visibleDrawerHeight) * closeThreshold) {\n closeDrawer();\n onReleaseProp == null ? void 0 : onReleaseProp(event, false);\n return;\n }\n onReleaseProp == null ? void 0 : onReleaseProp(event, true);\n resetDrawer();\n }\n React__default.useEffect(()=>{\n // Trigger enter animation without using CSS animation\n if (isOpen) {\n set(document.documentElement, {\n scrollBehavior: 'auto'\n });\n openTime.current = new Date();\n }\n return ()=>{\n reset(document.documentElement, 'scrollBehavior');\n };\n }, [\n isOpen\n ]);\n function onNestedOpenChange(o) {\n const scale = o ? (window.innerWidth - NESTED_DISPLACEMENT) / window.innerWidth : 1;\n const initialTranslate = o ? -NESTED_DISPLACEMENT : 0;\n if (nestedOpenChangeTimer.current) {\n window.clearTimeout(nestedOpenChangeTimer.current);\n }\n set(drawerRef.current, {\n transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,\n transform: isVertical(direction) ? `scale(${scale}) translate3d(0, ${initialTranslate}px, 0)` : `scale(${scale}) translate3d(${initialTranslate}px, 0, 0)`\n });\n if (!o && drawerRef.current) {\n nestedOpenChangeTimer.current = setTimeout(()=>{\n const translateValue = getTranslate(drawerRef.current, direction);\n set(drawerRef.current, {\n transition: 'none',\n transform: isVertical(direction) ? `translate3d(0, ${translateValue}px, 0)` : `translate3d(${translateValue}px, 0, 0)`\n });\n }, 500);\n }\n }\n function onNestedDrag(_event, percentageDragged) {\n if (percentageDragged < 0) return;\n const initialScale = (window.innerWidth - NESTED_DISPLACEMENT) / window.innerWidth;\n const newScale = initialScale + percentageDragged * (1 - initialScale);\n const newTranslate = -NESTED_DISPLACEMENT + percentageDragged * NESTED_DISPLACEMENT;\n set(drawerRef.current, {\n transform: isVertical(direction) ? `scale(${newScale}) translate3d(0, ${newTranslate}px, 0)` : `scale(${newScale}) translate3d(${newTranslate}px, 0, 0)`,\n transition: 'none'\n });\n }\n function onNestedRelease(_event, o) {\n const dim = isVertical(direction) ? window.innerHeight : window.innerWidth;\n const scale = o ? (dim - NESTED_DISPLACEMENT) / dim : 1;\n const translate = o ? -NESTED_DISPLACEMENT : 0;\n if (o) {\n set(drawerRef.current, {\n transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,\n transform: isVertical(direction) ? `scale(${scale}) translate3d(0, ${translate}px, 0)` : `scale(${scale}) translate3d(${translate}px, 0, 0)`\n });\n }\n }\n React__default.useEffect(()=>{\n if (!modal) {\n // Need to do this manually unfortunately\n window.requestAnimationFrame(()=>{\n document.body.style.pointerEvents = 'auto';\n });\n }\n }, [\n modal\n ]);\n return /*#__PURE__*/ React__default.createElement(DialogPrimitive.Root, {\n defaultOpen: defaultOpen,\n onOpenChange: (open)=>{\n if (!dismissible && !open) return;\n if (open) {\n setHasBeenOpened(true);\n } else {\n closeDrawer(true);\n }\n setIsOpen(open);\n },\n open: isOpen,\n modal,\n }, /*#__PURE__*/ React__default.createElement(DrawerContext.Provider, {\n value: {\n activeSnapPoint,\n snapPoints,\n setActiveSnapPoint,\n drawerRef,\n overlayRef,\n onOpenChange,\n onPress,\n onRelease,\n onDrag,\n dismissible,\n shouldAnimate,\n handleOnly,\n isOpen,\n isDragging,\n shouldFade,\n closeDrawer,\n onNestedDrag,\n onNestedOpenChange,\n onNestedRelease,\n keyboardIsOpen,\n modal,\n snapPointsOffset,\n activeSnapPointIndex,\n direction,\n shouldScaleBackground,\n setBackgroundColorOnScale,\n noBodyStyles,\n container,\n autoFocus\n }\n }, children));\n}\nconst Overlay = /*#__PURE__*/ React__default.forwardRef(function({ ...rest }, ref) {\n const { overlayRef, snapPoints, onRelease, shouldFade, isOpen, modal, shouldAnimate } = useDrawerContext();\n const composedRef = useComposedRefs(ref, overlayRef);\n const hasSnapPoints = snapPoints && snapPoints.length > 0;\n // Overlay is the component that is locking scroll, removing it will unlock the scroll without having to dig into Radix's Dialog library\n if (!modal) {\n return null;\n }\n const onMouseUp = React__default.useCallback((event)=>onRelease(event), [\n onRelease\n ]);\n return /*#__PURE__*/ React__default.createElement(DialogPrimitive.Overlay, {\n onMouseUp: onMouseUp,\n ref: composedRef,\n \"data-vaul-overlay\": \"\",\n \"data-vaul-snap-points\": isOpen && hasSnapPoints ? 'true' : 'false',\n \"data-vaul-snap-points-overlay\": isOpen && shouldFade ? 'true' : 'false',\n \"data-vaul-animate\": (shouldAnimate == null ? void 0 : shouldAnimate.current) ? 'true' : 'false',\n ...rest\n });\n});\nOverlay.displayName = 'Drawer.Overlay';\nconst Content = /*#__PURE__*/ React__default.forwardRef(function({ onPointerDownOutside, style, onOpenAutoFocus, ...rest }, ref) {\n const { drawerRef, onPress, onRelease, onDrag, keyboardIsOpen, snapPointsOffset, activeSnapPointIndex, modal, isOpen, direction, snapPoints, container, handleOnly, shouldAnimate, autoFocus } = useDrawerContext();\n // Needed to use transition instead of animations\n const [delayedSnapPoints, setDelayedSnapPoints] = React__default.useState(false);\n const composedRef = useComposedRefs(ref, drawerRef);\n const pointerStartRef = React__default.useRef(null);\n const lastKnownPointerEventRef = React__default.useRef(null);\n const wasBeyondThePointRef = React__default.useRef(false);\n const hasSnapPoints = snapPoints && snapPoints.length > 0;\n useScaleBackground();\n const isDeltaInDirection = (delta, direction, threshold = 0)=>{\n if (wasBeyondThePointRef.current) return true;\n const deltaY = Math.abs(delta.y);\n const deltaX = Math.abs(delta.x);\n const isDeltaX = deltaX > deltaY;\n const dFactor = [\n 'bottom',\n 'right'\n ].includes(direction) ? 1 : -1;\n if (direction === 'left' || direction === 'right') {\n const isReverseDirection = delta.x * dFactor < 0;\n if (!isReverseDirection && deltaX >= 0 && deltaX <= threshold) {\n return isDeltaX;\n }\n } else {\n const isReverseDirection = delta.y * dFactor < 0;\n if (!isReverseDirection && deltaY >= 0 && deltaY <= threshold) {\n return !isDeltaX;\n }\n }\n wasBeyondThePointRef.current = true;\n return true;\n };\n React__default.useEffect(()=>{\n if (hasSnapPoints) {\n window.requestAnimationFrame(()=>{\n setDelayedSnapPoints(true);\n });\n }\n }, []);\n function handleOnPointerUp(event) {\n pointerStartRef.current = null;\n wasBeyondThePointRef.current = false;\n onRelease(event);\n }\n return /*#__PURE__*/ React__default.createElement(DialogPrimitive.Content, {\n \"data-vaul-drawer-direction\": direction,\n \"data-vaul-drawer\": \"\",\n \"data-vaul-delayed-snap-points\": delayedSnapPoints ? 'true' : 'false',\n \"data-vaul-snap-points\": isOpen && hasSnapPoints ? 'true' : 'false',\n \"data-vaul-custom-container\": container ? 'true' : 'false',\n \"data-vaul-animate\": (shouldAnimate == null ? void 0 : shouldAnimate.current) ? 'true' : 'false',\n ...rest,\n ref: composedRef,\n style: snapPointsOffset && snapPointsOffset.length > 0 ? {\n '--snap-point-height': `${snapPointsOffset[activeSnapPointIndex != null ? activeSnapPointIndex : 0]}px`,\n ...style\n } : style,\n onPointerDown: (event)=>{\n if (handleOnly) return;\n rest.onPointerDown == null ? void 0 : rest.onPointerDown.call(rest, event);\n pointerStartRef.current = {\n x: event.pageX,\n y: event.pageY\n };\n onPress(event);\n },\n onOpenAutoFocus: (e)=>{\n onOpenAutoFocus == null ? void 0 : onOpenAutoFocus(e);\n if (!autoFocus) {\n e.preventDefault();\n }\n },\n onPointerDownOutside: (e)=>{\n onPointerDownOutside == null ? void 0 : onPointerDownOutside(e);\n if (!modal || e.defaultPrevented) {\n e.preventDefault();\n return;\n }\n if (keyboardIsOpen.current) {\n keyboardIsOpen.current = false;\n }\n },\n onFocusOutside: (e)=>{\n if (!modal) {\n e.preventDefault();\n return;\n }\n },\n onPointerMove: (event)=>{\n lastKnownPointerEventRef.current = event;\n if (handleOnly) return;\n rest.onPointerMove == null ? void 0 : rest.onPointerMove.call(rest, event);\n if (!pointerStartRef.current) return;\n const yPosition = event.pageY - pointerStartRef.current.y;\n const xPosition = event.pageX - pointerStartRef.current.x;\n const swipeStartThreshold = event.pointerType === 'touch' ? 10 : 2;\n const delta = {\n x: xPosition,\n y: yPosition\n };\n const isAllowedToSwipe = isDeltaInDirection(delta, direction, swipeStartThreshold);\n if (isAllowedToSwipe) onDrag(event);\n else if (Math.abs(xPosition) > swipeStartThreshold || Math.abs(yPosition) > swipeStartThreshold) {\n pointerStartRef.current = null;\n }\n },\n onPointerUp: (event)=>{\n rest.onPointerUp == null ? void 0 : rest.onPointerUp.call(rest, event);\n pointerStartRef.current = null;\n wasBeyondThePointRef.current = false;\n onRelease(event);\n },\n onPointerOut: (event)=>{\n rest.onPointerOut == null ? void 0 : rest.onPointerOut.call(rest, event);\n handleOnPointerUp(lastKnownPointerEventRef.current);\n },\n onContextMenu: (event)=>{\n rest.onContextMenu == null ? void 0 : rest.onContextMenu.call(rest, event);\n if (lastKnownPointerEventRef.current) {\n handleOnPointerUp(lastKnownPointerEventRef.current);\n }\n }\n });\n});\nContent.displayName = 'Drawer.Content';\nconst LONG_HANDLE_PRESS_TIMEOUT = 250;\nconst DOUBLE_TAP_TIMEOUT = 120;\nconst Handle = /*#__PURE__*/ React__default.forwardRef(function({ preventCycle = false, children, ...rest }, ref) {\n const { closeDrawer, isDragging, snapPoints, activeSnapPoint, setActiveSnapPoint, dismissible, handleOnly, isOpen, onPress, onDrag } = useDrawerContext();\n const closeTimeoutIdRef = React__default.useRef(null);\n const shouldCancelInteractionRef = React__default.useRef(false);\n function handleStartCycle() {\n // Stop if this is the second click of a double click\n if (shouldCancelInteractionRef.current) {\n handleCancelInteraction();\n return;\n }\n window.setTimeout(()=>{\n handleCycleSnapPoints();\n }, DOUBLE_TAP_TIMEOUT);\n }\n function handleCycleSnapPoints() {\n // Prevent accidental taps while resizing drawer\n if (isDragging || preventCycle || shouldCancelInteractionRef.current) {\n handleCancelInteraction();\n return;\n }\n // Make sure to clear the timeout id if the user releases the handle before the cancel timeout\n handleCancelInteraction();\n if (!snapPoints || snapPoints.length === 0) {\n if (!dismissible) {\n closeDrawer();\n }\n return;\n }\n const isLastSnapPoint = activeSnapPoint === snapPoints[snapPoints.length - 1];\n if (isLastSnapPoint && dismissible) {\n closeDrawer();\n return;\n }\n const currentSnapIndex = snapPoints.findIndex((point)=>point === activeSnapPoint);\n if (currentSnapIndex === -1) return; // activeSnapPoint not found in snapPoints\n const nextSnapPoint = snapPoints[currentSnapIndex + 1];\n setActiveSnapPoint(nextSnapPoint);\n }\n function handleStartInteraction() {\n closeTimeoutIdRef.current = window.setTimeout(()=>{\n // Cancel click interaction on a long press\n shouldCancelInteractionRef.current = true;\n }, LONG_HANDLE_PRESS_TIMEOUT);\n }\n function handleCancelInteraction() {\n if (closeTimeoutIdRef.current) {\n window.clearTimeout(closeTimeoutIdRef.current);\n }\n shouldCancelInteractionRef.current = false;\n }\n return /*#__PURE__*/ React__default.createElement(\"div\", {\n onClick: handleStartCycle,\n onPointerCancel: handleCancelInteraction,\n onPointerDown: (e)=>{\n if (handleOnly) onPress(e);\n handleStartInteraction();\n },\n onPointerMove: (e)=>{\n if (handleOnly) onDrag(e);\n },\n // onPointerUp is already handled by the content component\n ref: ref,\n \"data-vaul-drawer-visible\": isOpen ? 'true' : 'false',\n \"data-vaul-handle\": \"\",\n \"aria-hidden\": \"true\",\n ...rest\n }, /*#__PURE__*/ React__default.createElement(\"span\", {\n \"data-vaul-handle-hitarea\": \"\",\n \"aria-hidden\": \"true\"\n }, children));\n});\nHandle.displayName = 'Drawer.Handle';\nfunction NestedRoot({ onDrag, onOpenChange, open: nestedIsOpen, ...rest }) {\n const { onNestedDrag, onNestedOpenChange, onNestedRelease } = useDrawerContext();\n if (!onNestedDrag) {\n throw new Error('Drawer.NestedRoot must be placed in another drawer');\n }\n return /*#__PURE__*/ React__default.createElement(Root, {\n nested: true,\n open: nestedIsOpen,\n onClose: ()=>{\n onNestedOpenChange(false);\n },\n onDrag: (e, p)=>{\n onNestedDrag(e, p);\n onDrag == null ? void 0 : onDrag(e, p);\n },\n onOpenChange: (o)=>{\n if (o) {\n onNestedOpenChange(o);\n }\n onOpenChange == null ? void 0 : onOpenChange(o);\n },\n onRelease: onNestedRelease,\n ...rest\n });\n}\nfunction Portal(props) {\n const context = useDrawerContext();\n const { container = context.container, ...portalProps } = props;\n return /*#__PURE__*/ React__default.createElement(DialogPrimitive.Portal, {\n container: container,\n ...portalProps\n });\n}\nconst Drawer = {\n Root,\n NestedRoot,\n Content,\n Overlay,\n Trigger: DialogPrimitive.Trigger,\n Portal,\n Handle,\n Close: DialogPrimitive.Close,\n Title: DialogPrimitive.Title,\n Description: DialogPrimitive.Description\n};\n\nexport { Content, Drawer, Handle, NestedRoot, Overlay, Portal, Root };\n"],"names":[],"mappings":";;;;AACA,SAAS,WAAW,CAAC,IAAI,EAAE;AAC3B,EAAE,IAAa,OAAO,QAAQ,IAAI,WAAW,EAAE;AAC/C,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC;AACrE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO;AAC5C,EAAE,KAAK,CAAC,IAAI,GAAG;AACf,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK;AACxB,GAAG,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC;AACzG;;AAMA,MAAM,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;AACnD,IAAI,SAAS,EAAE;AACf,QAAQ,OAAO,EAAE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BAAgB,EAAE;AACtC,IAAI,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,WAAW,EAAE,GAAG,KAAK;AACnE,IAAI,qBAAqB,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,MAAM,EAAE;AAC9E,QAAQ,SAAS,EAAE,SAAS;AAC5B,QAAQ,GAAG;AACX,KAAK,CAAC;AACN;AACK,MAAC,MAAM,GAAG;AACf,IAAI,IAAI;AACR,IACI,OAAO;AACX,IAAI,OAAO;AACX,IACI,MAAM;AACV,IACI,KAAK,EAAE,eAAe,CAAC,KAAK;AAChC,IAAI,KAAK,EAAE,eAAe,CAAC,KAE3B;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/hooks/gas/config.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,gBAAgB,EAChB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CAW9C,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/hooks/gas/config.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,gBAAgB,EAChB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CAY9C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { gnosis, base, optimism, arbitrum, avalanche, bsc, polygonZkEvm, polygon, mainnet } from 'wagmi/chains';
1
+ import { unichain, sonic, gnosis, base, optimism, arbitrum, avalanche, bsc, polygon, mainnet } from 'wagmi/chains';
2
2
 
3
3
  const gasPricesConfig = {
4
4
  [mainnet.id]: {
@@ -9,10 +9,6 @@ const gasPricesConfig = {
9
9
  eip1559: false,
10
10
  refetchInterval: 5e3
11
11
  },
12
- [polygonZkEvm.id]: {
13
- eip1559: false,
14
- refetchInterval: 5e3
15
- },
16
12
  [bsc.id]: {
17
13
  eip1559: false,
18
14
  refetchInterval: 5e3
@@ -36,6 +32,14 @@ const gasPricesConfig = {
36
32
  [gnosis.id]: {
37
33
  eip1559: false,
38
34
  refetchInterval: 3e3
35
+ },
36
+ [sonic.id]: {
37
+ eip1559: true,
38
+ refetchInterval: 3e3
39
+ },
40
+ [unichain.id]: {
41
+ eip1559: false,
42
+ refetchInterval: 3e3
39
43
  }
40
44
  };
41
45
 
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sources":["../../../src/hooks/gas/config.ts"],"sourcesContent":["import {\n arbitrum,\n avalanche,\n base,\n bsc,\n gnosis,\n mainnet,\n optimism,\n polygon,\n polygonZkEvm,\n} from \"@/lib/web3/wagmi/supportedChains\";\nimport type { SupportedChainId } from \"@/lib/web3/wagmi/types\";\n\nexport const gasPricesConfig: Record<\n SupportedChainId,\n { eip1559: boolean; refetchInterval: number }\n> = {\n [mainnet.id]: { eip1559: true, refetchInterval: 5000 },\n [polygon.id]: { eip1559: false, refetchInterval: 5000 },\n [polygonZkEvm.id]: { eip1559: false, refetchInterval: 5000 },\n [bsc.id]: { eip1559: false, refetchInterval: 5000 },\n [avalanche.id]: { eip1559: false, refetchInterval: 3000 },\n [arbitrum.id]: { eip1559: false, refetchInterval: 3000 },\n [optimism.id]: { eip1559: false, refetchInterval: 3000 },\n [base.id]: { eip1559: false, refetchInterval: 3000 },\n [gnosis.id]: { eip1559: false, refetchInterval: 3000 },\n};\n"],"names":["gasPricesConfig","mainnet","id","eip1559","refetchInterval","polygon","polygonZkEvm","bsc","avalanche","arbitrum","optimism","base","gnosis"],"mappings":";;AAaO,MAAMA,eAAAA,GAGT;AAAA,EACF,CAACC,OAAAA,CAAQC,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,IAAA;AAAA,IAAMC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACrD,CAACC,OAAAA,CAAQH,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACtD,CAACE,YAAAA,CAAaJ,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EAC3D,CAACG,GAAAA,CAAIL,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EAClD,CAACI,SAAAA,CAAUN,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACxD,CAACK,QAAAA,CAASP,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACvD,CAACM,QAAAA,CAASR,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACvD,CAACO,IAAAA,CAAKT,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACnD,CAACQ,MAAAA,CAAOV,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA;AAClD;;;;"}
1
+ {"version":3,"file":"config.js","sources":["../../../src/hooks/gas/config.ts"],"sourcesContent":["import {\n arbitrum,\n avalanche,\n base,\n bsc,\n gnosis,\n mainnet,\n optimism,\n polygon,\n unichain,\n sonic,\n} from \"@/lib/web3/wagmi/supportedChains\";\nimport type { SupportedChainId } from \"@/lib/web3/wagmi/types\";\n\n// EIP1559 support is up-to-date with the API\nexport const gasPricesConfig: Record<\n SupportedChainId,\n { eip1559: boolean; refetchInterval: number }\n> = {\n [mainnet.id]: { eip1559: true, refetchInterval: 5000 },\n [polygon.id]: { eip1559: false, refetchInterval: 5000 },\n [bsc.id]: { eip1559: false, refetchInterval: 5000 },\n [avalanche.id]: { eip1559: false, refetchInterval: 3000 },\n [arbitrum.id]: { eip1559: false, refetchInterval: 3000 },\n [optimism.id]: { eip1559: false, refetchInterval: 3000 },\n [base.id]: { eip1559: false, refetchInterval: 3000 },\n [gnosis.id]: { eip1559: false, refetchInterval: 3000 },\n [sonic.id]: { eip1559: true, refetchInterval: 3000 },\n [unichain.id]: { eip1559: false, refetchInterval: 3000 },\n};\n"],"names":["gasPricesConfig","mainnet","id","eip1559","refetchInterval","polygon","bsc","avalanche","arbitrum","optimism","base","gnosis","sonic","unichain"],"mappings":";;AAeO,MAAMA,eAAAA,GAGT;AAAA,EACF,CAACC,OAAAA,CAAQC,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,IAAA;AAAA,IAAMC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACrD,CAACC,OAAAA,CAAQH,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACtD,CAACE,GAAAA,CAAIJ,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EAClD,CAACG,SAAAA,CAAUL,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACxD,CAACI,QAAAA,CAASN,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACvD,CAACK,QAAAA,CAASP,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACvD,CAACM,IAAAA,CAAKR,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACnD,CAACO,MAAAA,CAAOT,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACrD,CAACQ,KAAAA,CAAMV,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,IAAA;AAAA,IAAMC,eAAAA,EAAiB;AAAA,GAAK;AAAA,EACnD,CAACS,QAAAA,CAASX,EAAE,GAAG;AAAA,IAAEC,OAAAA,EAAS,KAAA;AAAA,IAAOC,eAAAA,EAAiB;AAAA;AACpD;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { Prettify } from 'ts-essentials';
2
- type UserGasPreset = "fast" | "instant" | "standard" | "slow";
2
+ export type UserGasPreset = "slow" | "standard" | "fast" | "instant";
3
3
  type ApiGasPreset = "safeLow" | "average" | "fast" | "fastest";
4
4
  interface GasPricesByRange {
5
5
  slow: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/hooks/gas/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,KAAK,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAE9D,KAAK,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAE/D,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,sBAAsB;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC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ices } from './types';
3
3
  import { SupportedChainId } from '../../lib/web3/wagmi/types';
4
+ declare const GAS_PRICES_BASE_QUERY_KEY = "gas-prices";
5
+ type GasPricesQueryKey = [
6
+ typeof GAS_PRICES_BASE_QUERY_KEY,
7
+ chainId: SupportedChainId,
8
+ eip1559Enabled: boolean
9
+ ];
10
+ export declare function constructGasParamsQueryKey(chainId: SupportedChainId, eop1559Enabled: boolean): GasPricesQueryKey;
4
11
  export declare function useGasPrices({ chainId: _chainId, }?: {
5
12
  chainId?: SupportedChainId;
6
13
  }): UseQueryResult<ConsolidatedGasPrices, Error>;
14
+ export {};
7
15
  //# sourceMappingURL=useGasPrices.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGasPrices.d.ts","sourceRoot":"","sources":["../../../src/hooks/gas/useGasPrices.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGtE,OAAO,KAAK,EAAE,qBAAqB,EAAwB,MAAM,SAAS,CAAC;AAG3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EAAE,QAAQ,GAClB,GAAE;IACD,OAAO,CAAC,EAAE,gBAAgB,CAAC;CACvB,GAAG,cAAc,CAAC,qBAAqB,EAAE,KAAK,CAAC,CA0EpD"}
1
+ {"version":3,"file":"useGasPrices.d.ts","sourceRoot":"","sources":["../../../src/hooks/gas/useGasPrices.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGtE,OAAO,KAAK,EAAE,qBAAqB,EAAwB,MAAM,SAAS,CAAC;AAG3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,QAAA,MAAM,yBAAyB,eAAe,CAAC;AAE/C,KAAK,iBAAiB,GAAG;IACvB,OAAO,yBAAyB;IAChC,OAAO,EAAE,gBAAgB;IACzB,cAAc,EAAE,OAAO;CACxB,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,gBAAgB,EACzB,cAAc,EAAE,OAAO,GACtB,iBAAiB,CAEnB;AAED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EAAE,QAAQ,GAClB,GAAE;IACD,OAAO,CAAC,EAAE,gBAAgB,CAAC;CACvB,GAAG,cAAc,CAAC,qBAAqB,EAAE,KAAK,CAAC,CA4EpD"}
@@ -7,8 +7,11 @@ import { isLegacyPriceResponse, weiToGwei } from './utils.js';
7
7
  import { gasPricesConfig } from './config.js';
8
8
 
9
9
  const GAS_PRICES_BASE_QUERY_KEY = "gas-prices";
10
+ function constructGasParamsQueryKey(chainId, eop1559Enabled) {
11
+ return [GAS_PRICES_BASE_QUERY_KEY, chainId, eop1559Enabled];
12
+ }
10
13
  function useGasPrices(t0) {
11
- const $ = distExports.c(11);
14
+ const $ = distExports.c(13);
12
15
  let t1;
13
16
  if ($[0] !== t0) {
14
17
  t1 = {} ;
@@ -24,9 +27,16 @@ function useGasPrices(t0) {
24
27
  const chainId = _chainId ?? appChainId;
25
28
  const config = gasPricesConfig[chainId];
26
29
  let t2;
27
- let t3;
28
30
  if ($[2] !== chainId || $[3] !== config.eip1559) {
29
- t2 = [GAS_PRICES_BASE_QUERY_KEY, chainId, config.eip1559];
31
+ t2 = constructGasParamsQueryKey(chainId, config.eip1559);
32
+ $[2] = chainId;
33
+ $[3] = config.eip1559;
34
+ $[4] = t2;
35
+ } else {
36
+ t2 = $[4];
37
+ }
38
+ let t3;
39
+ if ($[5] !== chainId || $[6] !== config.eip1559) {
30
40
  t3 = async (t42) => {
31
41
  const {
32
42
  signal
@@ -76,33 +86,32 @@ function useGasPrices(t0) {
76
86
  optimisticGasOracleData: data.optimismGasOracleData || data.baseGasOracleData
77
87
  };
78
88
  };
79
- $[2] = chainId;
80
- $[3] = config.eip1559;
81
- $[4] = t2;
82
- $[5] = t3;
89
+ $[5] = chainId;
90
+ $[6] = config.eip1559;
91
+ $[7] = t3;
83
92
  } else {
84
- t2 = $[4];
85
- t3 = $[5];
93
+ t3 = $[7];
86
94
  }
87
95
  const t4 = !!chainId;
88
- let t5;
89
- if ($[6] !== config.refetchInterval || $[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
90
- t5 = {
96
+ const t5 = config.refetchInterval;
97
+ let t6;
98
+ if ($[8] !== t2 || $[9] !== t3 || $[10] !== t4 || $[11] !== t5) {
99
+ t6 = {
91
100
  queryKey: t2,
92
101
  queryFn: t3,
93
102
  enabled: t4,
94
- refetchInterval: config.refetchInterval
103
+ refetchInterval: t5
95
104
  };
96
- $[6] = config.refetchInterval;
97
- $[7] = t2;
98
- $[8] = t3;
99
- $[9] = t4;
100
- $[10] = t5;
105
+ $[8] = t2;
106
+ $[9] = t3;
107
+ $[10] = t4;
108
+ $[11] = t5;
109
+ $[12] = t6;
101
110
  } else {
102
- t5 = $[10];
111
+ t6 = $[12];
103
112
  }
104
- return useQuery(t5);
113
+ return useQuery(t6);
105
114
  }
106
115
 
107
- export { useGasPrices };
116
+ export { constructGasParamsQueryKey, useGasPrices };
108
117
  //# sourceMappingURL=useGasPrices.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGasPrices.js","sources":["../../../src/hooks/gas/useGasPrices.ts"],"sourcesContent":["import axios from \"axios\";\nimport { useQuery, type UseQueryResult } from \"@tanstack/react-query\";\nimport { useChainId } from \"wagmi\";\nimport { apiUrl } from \"@/lib/constants\";\nimport type { ConsolidatedGasPrices, GasPricesAPIResponse } from \"./types\";\nimport { isLegacyPriceResponse, weiToGwei } from \"./utils\";\nimport { gasPricesConfig } from \"./config\";\nimport type { SupportedChainId } from \"@/lib/web3/wagmi/types\";\n\nconst GAS_PRICES_BASE_QUERY_KEY = \"gas-prices\";\n\nexport function useGasPrices({\n chainId: _chainId,\n}: {\n chainId?: SupportedChainId;\n} = {}): UseQueryResult<ConsolidatedGasPrices, Error> {\n const appChainId = useChainId();\n const chainId = _chainId ?? appChainId;\n\n const config = gasPricesConfig[chainId];\n\n return useQuery<\n ConsolidatedGasPrices,\n Error,\n ConsolidatedGasPrices,\n [typeof GAS_PRICES_BASE_QUERY_KEY, number, boolean]\n >({\n queryKey: [GAS_PRICES_BASE_QUERY_KEY, chainId, config.eip1559],\n queryFn: async ({ signal }) => {\n const allowEip1559 = config.eip1559;\n\n const { data } = await axios.get<GasPricesAPIResponse>(\n `${apiUrl}/prices/gas/${chainId}`,\n { signal, params: { eip1559: allowEip1559 } }\n );\n\n const legacyPrices = isLegacyPriceResponse(!allowEip1559, data)\n ? {\n slow: weiToGwei(data.safeLow),\n standard: weiToGwei(data.average),\n fast: weiToGwei(data.fast),\n instant: weiToGwei(data.fastest),\n }\n : {\n slow: weiToGwei(data.safeLow.legacyGasPrice),\n standard: weiToGwei(data.average.legacyGasPrice),\n fast: weiToGwei(data.fast.legacyGasPrice),\n instant: weiToGwei(data.fastest.legacyGasPrice),\n };\n\n const eip1559Prices = !isLegacyPriceResponse(!allowEip1559, data)\n ? {\n slow: {\n maxFeePerGas: weiToGwei(data.safeLow.maxFeePerGas),\n maxPriorityFeePerGas: weiToGwei(\n data.safeLow.maxPriorityFeePerGas\n ),\n },\n standard: {\n maxFeePerGas: weiToGwei(data.average.maxFeePerGas),\n maxPriorityFeePerGas: weiToGwei(\n data.average.maxPriorityFeePerGas\n ),\n },\n fast: {\n maxFeePerGas: weiToGwei(data.fast.maxFeePerGas),\n maxPriorityFeePerGas: weiToGwei(data.fast.maxPriorityFeePerGas),\n },\n instant: {\n maxFeePerGas: weiToGwei(data.fastest.maxFeePerGas),\n maxPriorityFeePerGas: weiToGwei(\n data.fastest.maxPriorityFeePerGas\n ),\n },\n }\n : undefined;\n\n return {\n legacyPrices,\n eip1559Prices,\n blockData: data.blockData,\n optimisticGasOracleData:\n data.optimismGasOracleData || data.baseGasOracleData,\n };\n },\n\n enabled: !!chainId,\n refetchInterval: config.refetchInterval,\n });\n}\n"],"names":["GAS_PRICES_BASE_QUERY_KEY","useGasPrices","t0","$","_c","t1","chainId","_chainId","appChainId","useChainId","config","gasPricesConfig","t2","t3","eip1559","t4","signal","allowEip1559","data","axios","get","apiUrl","params","legacyPrices","isLegacyPriceResponse","slow","weiToGwei","safeLow","standard","average","fast","instant","fastest","legacyGasPrice","eip1559Prices","maxFeePerGas","maxPriorityFeePerGas","undefined","blockData","optimisticGasOracleData","optimismGasOracleData","baseGasOracleData","t5","refetchInterval","queryKey","queryFn","enabled","useQuery"],"mappings":";;;;;;;;AASA,MAAMA,yBAAAA,GAA4B,YAAA;AAE3B,SAAAC,aAAAC,EAAAA,EAAA;AAAA,EAAA,MAAAC,CAAAA,GAAAC,cAAA,EAAA,CAAA;AAAA,EAAA,IAAAC,EAAAA;AAAA,EAAA,IAAAF,CAAAA,QAAAD,EAAAA,EAAA;AAAsBG,IAAAA,EAAAA,MAAAH;AAIvBC,IAAAA,CAAAA,MAAAD,EAAAA;AAAAC,IAAAA,CAAAA,MAAAE,EAAAA;AAAAA,GAAA,MAAA;AAAAA,IAAAA,EAAAA,GAAAF,EAAA,CAAA,CAAA;AAAA;AAJuB,EAAA,MAAA;AAAA,IAAAG,OAAAA,EAAAC;AAAAA,GAAA,GAAAF,EAAAA;AAK3B,EAAA,MAAAG,aAAmBC,UAAAA,EAAW;AAC9B,EAAA,MAAAH,UAAgBC,QAAAA,IAAYC,UAAAA;AAE5B,EAAA,MAAAE,MAAAA,GAAAC,gBAA+BL,OAAO,CAAA;AAAE,EAAA,IAAAM,EAAAA;AAAA,EAAA,IAAAC,EAAAA;AAAA,EAAA,IAAAV,CAAAA,QAAAG,OAAAA,IAAAH,EAAA,CAAA,CAAA,KAAAO,OAAAI,OAAAA,EAAA;AAQ5BF,IAAAA,EAAAA,IAAAZ,yBAAAA,EAA4BM,OAAAA,EAASI,MAAAA,CAAMI,OAAA,CAAA;AAC5CD,IAAAA,EAAAA,UAAAE,GAAAA,KAAA;AAAO,MAAA,MAAA;AAAA,QAAAC;AAAAA,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MAAAY,EAAAA,KAAET,OAAAA;AAAO,EAAA,IAAAoC,EAAAA;AAAA,EAAA,IAAAvC,EAAA,CAAA,CAAA,KAAAO,MAAAA,CAAAiC,eAAAA,IAAAxC,EAAA,CAAA,CAAA,KAAAS,EAAAA,IAAAT,CAAAA,CAAA,CAAA,CAAA,KAAAU,EAAAA,IAAAV,CAAAA,QAAAY,EAAAA,EAAA;AA5DlB2B,IAAAA,EAAAA,GAAA;AAAA,MAAAE,QAAAA,EACUhC,EAAAA;AAAAA,MAAoDiC,OAAAA,EACrDhC,EAAAA;AAAAA,MAwDRiC,OAAAA,EAEQ/B,EAAAA;AAAAA,MAAS4B,iBACDjC,MAAAA,CAAMiC;AAAAA,KAAA;AACxBxC,IAAAA,CAAAA,CAAA,CAAA,IAAAO,MAAAA,CAAAiC,eAAAA;AAAAxC,IAAAA,CAAAA,MAAAS,EAAAA;AAAAT,IAAAA,CAAAA,MAAAU,EAAAA;AAAAV,IAAAA,CAAAA,MAAAY,EAAAA;AAAAZ,IAAAA,CAAAA,OAAAuC,EAAAA;AAAAA,GAAA,MAAA;AAAAA,IAAAA,EAAAA,GAAAvC,EAAA,EAAA,CAAA;AAAA;AAAA,EAAA,OAnEM4C,SAKLL,EA8DD,CAAA;AAAC;;;;"}
1
+ {"version":3,"file":"useGasPrices.js","sources":["../../../src/hooks/gas/useGasPrices.ts"],"sourcesContent":["import axios from \"axios\";\nimport { useQuery, type UseQueryResult } from \"@tanstack/react-query\";\nimport { useChainId } from \"wagmi\";\nimport { apiUrl } from \"@/lib/constants\";\nimport type { ConsolidatedGasPrices, GasPricesAPIResponse } from \"./types\";\nimport { isLegacyPriceResponse, weiToGwei } from \"./utils\";\nimport { gasPricesConfig } from \"./config\";\nimport type { SupportedChainId } from \"@/lib/web3/wagmi/types\";\n\nconst GAS_PRICES_BASE_QUERY_KEY = \"gas-prices\";\n\ntype GasPricesQueryKey = [\n typeof GAS_PRICES_BASE_QUERY_KEY,\n chainId: SupportedChainId,\n eip1559Enabled: boolean,\n];\n\nexport function constructGasParamsQueryKey(\n chainId: SupportedChainId,\n eop1559Enabled: boolean\n): GasPricesQueryKey {\n return [GAS_PRICES_BASE_QUERY_KEY, chainId, eop1559Enabled];\n}\n\nexport function useGasPrices({\n chainId: _chainId,\n}: {\n chainId?: SupportedChainId;\n} = {}): UseQueryResult<ConsolidatedGasPrices, Error> {\n const appChainId = useChainId();\n const chainId = _chainId ?? appChainId;\n\n const config = gasPricesConfig[chainId];\n\n return useQuery<\n ConsolidatedGasPrices,\n Error,\n ConsolidatedGasPrices,\n GasPricesQueryKey\n >({\n queryKey: constructGasParamsQueryKey(chainId, config.eip1559),\n queryFn: async ({ signal }) => {\n const allowEip1559 = config.eip1559;\n\n const { data } = await axios.get<GasPricesAPIResponse>(\n `${apiUrl}/prices/gas/${chainId}`,\n { signal, params: { eip1559: allowEip1559 } }\n );\n\n const legacyPrices = isLegacyPriceResponse(!allowEip1559, data)\n ? {\n slow: weiToGwei(data.safeLow),\n standard: weiToGwei(data.average),\n fast: weiToGwei(data.fast),\n instant: weiToGwei(data.fastest),\n }\n : {\n slow: weiToGwei(data.safeLow.legacyGasPrice),\n standard: weiToGwei(data.average.legacyGasPrice),\n fast: weiToGwei(data.fast.legacyGasPrice),\n instant: weiToGwei(data.fastest.legacyGasPrice),\n };\n\n const eip1559Prices = !isLegacyPriceResponse(!allowEip1559, data)\n ? {\n slow: {\n maxFeePerGas: weiToGwei(data.safeLow.maxFeePerGas),\n maxPriorityFeePerGas: weiToGwei(\n data.safeLow.maxPriorityFeePerGas\n ),\n },\n standard: {\n maxFeePerGas: weiToGwei(data.average.maxFeePerGas),\n maxPriorityFeePerGas: weiToGwei(\n data.average.maxPriorityFeePerGas\n ),\n },\n fast: {\n maxFeePerGas: weiToGwei(data.fast.maxFeePerGas),\n maxPriorityFeePerGas: weiToGwei(data.fast.maxPriorityFeePerGas),\n },\n instant: {\n maxFeePerGas: weiToGwei(data.fastest.maxFeePerGas),\n maxPriorityFeePerGas: weiToGwei(\n data.fastest.maxPriorityFeePerGas\n ),\n },\n }\n : undefined;\n\n return {\n legacyPrices,\n eip1559Prices,\n blockData: data.blockData,\n optimisticGasOracleData:\n data.optimismGasOracleData || data.baseGasOracleData,\n };\n },\n\n enabled: !!chainId,\n refetchInterval: import.meta.env.DEV\n ? config.refetchInterval * 2 // avoid rate limiting in dev\n : config.refetchInterval,\n });\n}\n"],"names":["GAS_PRICES_BASE_QUERY_KEY","constructGasParamsQueryKey","chainId","eop1559Enabled","useGasPrices","t0","$","_c","t1","_chainId","appChainId","useChainId","config","gasPricesConfig","t2","eip1559","t3","t4","signal","allowEip1559","data","axios","get","apiUrl","params","legacyPrices","isLegacyPriceResponse","slow","weiToGwei","safeLow","standard","average","fast","instant","fastest","legacyGasPrice","eip1559Prices","maxFeePerGas","maxPriorityFeePerGas","undefined","blockData","optimisticGasOracleData","optimismGasOracleData","baseGasOracleData","t5","refetchInterval","t6","queryKey","queryFn","enabled","useQuery"],"mappings":";;;;;;;;AASA,MAAMA,yBAAAA,GAA4B,YAAA;AAQ3B,SAASC,0BAAAA,CACdC,SACAC,cAAAA,EACmB;AACnB,EAAA,OAAO,CAACH,yBAAAA,EAA2BE,OAAAA,EAASC,cAAc,CAAA;AAC5D;AAEO,SAAAC,aAAAC,EAAAA,EAAA;AAAA,EAAA,MAAAC,CAAAA,GAAAC,cAAA,EAAA,CAAA;AAAA,EAAA,IAAAC,EAAAA;AAAA,EAAA,IAAAF,CAAAA,QAAAD,EAAAA,EAAA;AAAsBG,IAAAA,EAAAA,MAAAH;AAIvBC,IAAAA,CAAAA,MAAAD,EAAAA;AAAAC,IAAAA,CAAAA,MAAAE,EAAAA;AAAAA,GAAA,MAAA;AAAAA,IAAAA,EAAAA,GAAAF,EAAA,CAAA,CAAA;AAAA;AAJuB,EAAA,MAAA;AAAA,IAAAJ,OAAAA,EAAAO;AAAAA,GAAA,GAAAD,EAAAA;AAK3B,EAAA,MAAAE,aAAmBC,UAAAA,EAAW;AA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W,EAAAA;AAAAX,IAAAA,CAAAA,OAAAsC,EAAAA;AAAAtC,IAAAA,CAAAA,OAAAwC,EAAAA;AAAAA,GAAA,MAAA;AAAAA,IAAAA,EAAAA,GAAAxC,EAAA,EAAA,CAAA;AAAA;AAAA,EAAA,OArEM4C,SAKLJ,EAgED,CAAA;AAAC;;;;"}
@@ -5,4 +5,9 @@ export declare function isLegacyPriceResponse(legacy: boolean, response: GasPric
5
5
  * @returns The converted value in gwei as a number.
6
6
  */
7
7
  export declare function weiToGwei(wei: string): number;
8
+ /** * Converts a gwei value to wei.
9
+ * @param gwei - The gwei value to convert.
10
+ * @returns The converted value in wei as a string.
11
+ */
12
+ export declare function gweiToWei(gwei: number): string;
8
13
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/hooks/gas/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE7E,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,oBAAoB,GAC7B,QAAQ,IAAI,uBAAuB,CAErC;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/hooks/gas/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE7E,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,oBAAoB,GAC7B,QAAQ,IAAI,uBAAuB,CAErC;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C"}
@@ -1,4 +1,4 @@
1
- import { formatGwei } from 'viem';
1
+ import { formatGwei, parseGwei } from 'viem';
2
2
 
3
3
  function isLegacyPriceResponse(legacy, response) {
4
4
  return legacy && typeof response.safeLow === "string";
@@ -6,6 +6,9 @@ function isLegacyPriceResponse(legacy, response) {
6
6
  function weiToGwei(wei) {
7
7
  return Number(formatGwei(BigInt(wei)));
8
8
  }
9
+ function gweiToWei(gwei) {
10
+ return parseGwei(gwei.toString()).toString();
11
+ }
9
12
 
10
- export { isLegacyPriceResponse, weiToGwei };
13
+ export { gweiToWei, isLegacyPriceResponse, weiToGwei };
11
14
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../src/hooks/gas/utils.ts"],"sourcesContent":["import { formatGwei } from \"viem\";\nimport type { GasPricesAPIResponse, LegacyGasPricesResponse } from \"./types\";\n\nexport function isLegacyPriceResponse(\n legacy: boolean,\n response: GasPricesAPIResponse\n): response is LegacyGasPricesResponse {\n return legacy && typeof response.safeLow === \"string\";\n}\n\n/** * Converts a wei string value to gwei. Useful for gas that comes from API\n * @param wei - The wei value to convert.\n * @returns The converted value in gwei as a number.\n */\nexport function weiToGwei(wei: string): number {\n return Number(formatGwei(BigInt(wei)));\n}\n"],"names":["isLegacyPriceResponse","legacy","response","safeLow","weiToGwei","wei","Number","formatGwei","BigInt"],"mappings":";;AAGO,SAASA,qBAAAA,CACdC,QACAC,QAAAA,EACqC;AACrC,EAAA,OAAOD,MAAAA,IAAU,OAAOC,QAAAA,CAASC,OAAAA,KAAY,QAAA;AAC/C;AAMO,SAASC,UAAUC,GAAAA,EAAqB;AAC7C,EAAA,OAAOC,MAAAA,CAAOC,UAAAA,CAAWC,MAAAA,CAAOH,GAAG,CAAC,CAAC,CAAA;AACvC;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../src/hooks/gas/utils.ts"],"sourcesContent":["import { formatGwei, parseGwei } from \"viem\";\nimport type { GasPricesAPIResponse, LegacyGasPricesResponse } from \"./types\";\n\nexport function isLegacyPriceResponse(\n legacy: boolean,\n response: GasPricesAPIResponse\n): response is LegacyGasPricesResponse {\n return legacy && typeof response.safeLow === \"string\";\n}\n\n/** * Converts a wei string value to gwei. Useful for gas that comes from API\n * @param wei - The wei value to convert.\n * @returns The converted value in gwei as a number.\n */\nexport function weiToGwei(wei: string): number {\n return Number(formatGwei(BigInt(wei)));\n}\n\n/** * Converts a gwei value to wei.\n * @param gwei - The gwei value to convert.\n * @returns The converted value in wei as a string.\n */\nexport function gweiToWei(gwei: number): string {\n return parseGwei(gwei.toString()).toString();\n}\n"],"names":["isLegacyPriceResponse","legacy","response","safeLow","weiToGwei","wei","Number","formatGwei","BigInt","gweiToWei","gwei","parseGwei","toString"],"mappings":";;AAGO,SAASA,qBAAAA,CACdC,QACAC,QAAAA,EACqC;AACrC,EAAA,OAAOD,MAAAA,IAAU,OAAOC,QAAAA,CAASC,OAAAA,KAAY,QAAA;AAC/C;AAMO,SAASC,UAAUC,GAAAA,EAAqB;AAC7C,EAAA,OAAOC,MAAAA,CAAOC,UAAAA,CAAWC,MAAAA,CAAOH,GAAG,CAAC,CAAC,CAAA;AACvC;AAMO,SAASI,UAAUC,IAAAA,EAAsB;AAC9C,EAAA,OAAOC,SAAAA,CAAUD,IAAAA,CAAKE,QAAAA,EAAU,EAAEA,QAAAA,EAAS;AAC7C;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useIsAccountContract.d.ts","sourceRoot":"","sources":["../../../src/hooks/getCode/useIsAccountContract.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,6GAIhC,CAAC"}
1
+ {"version":3,"file":"useIsAccountContract.d.ts","sourceRoot":"","sources":["../../../src/hooks/getCode/useIsAccountContract.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,6GAUhC,CAAC"}