@blockend/widget 1.0.30 → 1.0.32
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.
- package/dist/AllRoutes-CPwuTwqd.js +2209 -0
- package/dist/Box-CIChapvH.js +55 -0
- package/dist/EstGas-CEFILtyf.js +12867 -0
- package/dist/Grow-DJZj9zjv.js +1656 -0
- package/dist/InputComp-DqF1JGIu.js +106 -0
- package/dist/LoadRoute-r3sHTYXM.js +126 -0
- package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
- package/dist/SwapAsset-07WvVwl-.js +64 -0
- package/dist/Tooltip-CNAsCF8n.js +572 -0
- package/dist/TxnButton-D2TTkFYA.js +207 -0
- package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
- package/dist/{add-BDjkKnDN.js → add-t2GqC9VA.js} +3 -4
- package/dist/{all-wallets-CrBep7Gl.js → all-wallets-DFyf0q31.js} +3 -4
- package/dist/{app-store-CwaPvoXY.js → app-store-aAahwmBP.js} +3 -4
- package/dist/{apple-BA8mnYrP.js → apple-DeRgpwlc.js} +3 -4
- package/dist/{arrow-bottom-BXdMFUAl.js → arrow-bottom-DdEOkaAj.js} +3 -4
- package/dist/{arrow-bottom-circle-DFT4mXIU.js → arrow-bottom-circle-BWwREWcv.js} +3 -4
- package/dist/{arrow-left-BzkeYnqg.js → arrow-left-CulyLmoH.js} +3 -4
- package/dist/{arrow-right-DiUAWQjY.js → arrow-right-Dwr7TISn.js} +3 -4
- package/dist/{arrow-top-86AMrjF7.js → arrow-top-pL4rM_y8.js} +3 -4
- package/dist/{bank-DN5JAJkK.js → bank-CPuyK_08.js} +3 -4
- package/dist/basic-CVc9xEvb.js +5783 -0
- package/dist/{browser-CIEc-DNj.js → browser-Cbq2Zbp4.js} +3 -4
- package/dist/{card-D0J873mK.js → card-B_hUtPWK.js} +3 -4
- package/dist/ccip-BLVGcR4A.js +228 -0
- package/dist/{checkmark-mvlF9aX8.js → checkmark-WEqTsFAc.js} +3 -4
- package/dist/{checkmark-bold-Cvmc9tJb.js → checkmark-bold-Du_ZvhqM.js} +3 -4
- package/dist/{chevron-bottom-CWsU0Wj4.js → chevron-bottom-C-s-lv4L.js} +3 -4
- package/dist/{chevron-left-DZoyyvkH.js → chevron-left-C7NcRElx.js} +3 -4
- package/dist/{chevron-right-Db1S8IpK.js → chevron-right-CSzmAmdn.js} +3 -4
- package/dist/{chevron-top-BG2-jrhN.js → chevron-top-Dd99Wfel.js} +3 -4
- package/dist/{chrome-store-bZ30Z8RD.js → chrome-store-C4p77Of0.js} +3 -4
- package/dist/{clock-BQCJkpsN.js → clock-Cib24qjH.js} +3 -4
- package/dist/clockIcon-C2W5xvyt.js +76 -0
- package/dist/{close-0442yxHv.js → close-BXjEkTvS.js} +3 -4
- package/dist/{coinPlaceholder-npHsRGpi.js → coinPlaceholder-BFNC7cQN.js} +3 -4
- package/dist/{compass-CA-2HVOX.js → compass-CXPX5Ycp.js} +3 -4
- package/dist/{copy-DZVC8Hxi.js → copy-BEawMbmF.js} +3 -4
- package/dist/core-Bez9Ow7F.js +14967 -0
- package/dist/cursor-Cxq4Q9jk.js +7 -0
- package/dist/{cursor-transparent-wVQvgZAK.js → cursor-transparent-ZjJ0P2vr.js} +3 -4
- package/dist/{desktop-DTAJIXTO.js → desktop-BhZVovAp.js} +3 -4
- package/dist/{disconnect-D8Si5N8S.js → disconnect-AC-bffZO.js} +3 -4
- package/dist/{discord-tQYw47cV.js → discord-dT97h-CC.js} +3 -4
- package/dist/down-DP56YSKp.js +606 -0
- package/dist/{etherscan-CjqNGBR7.js → etherscan-rYFRhRTM.js} +3 -4
- package/dist/ethertousd-CC_ezooz.js +6 -0
- package/dist/{exclamation-triangle-BhHXY1hF.js → exclamation-triangle-C-pCuC08.js} +3 -4
- package/dist/{extension-y15WoviO.js → extension-BnqauLSn.js} +3 -4
- package/dist/{external-link--gR7z0qt.js → external-link-M9D6e_F3.js} +3 -4
- package/dist/{facebook-DlX8IWwq.js → facebook-DHezcoD-.js} +3 -4
- package/dist/{farcaster-CFzTYTRj.js → farcaster-D0Ky-Imv.js} +3 -4
- package/dist/{filters-BO_y5jSy.js → filters-B02NYLWq.js} +3 -4
- package/dist/getChainIds-CJd2TZYT.js +1888 -0
- package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
- package/dist/{github-B9QjqzQj.js → github-BzQkIMuE.js} +3 -4
- package/dist/{google-D9CK21nC.js → google-BpwCJ4Fs.js} +3 -4
- package/dist/hamburger-BzqwkUjE.js +3915 -0
- package/dist/{help-circle-Qf3YDcg6.js → help-circle-C0nOySHC.js} +3 -4
- package/dist/{id-VtdZj5EJ.js → id-DFP_kFd4.js} +3 -4
- package/dist/{image-Bb6NRqAG.js → image-QiYOAGjM.js} +3 -4
- package/dist/index-CDq3vNnP.js +22 -0
- package/dist/index-CLzkn733.js +28223 -0
- package/dist/index-CjtwASJt.js +252 -0
- package/dist/index-CrC4B7xn.js +331 -0
- package/dist/index-D5hLIe-N.js +9 -0
- package/dist/index-DDk00SOL.js +159 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/index-DW3W7zaF.js +473 -0
- package/dist/index-DXdD3L9f.js +1460 -0
- package/dist/index-DaJ1272l.js +18613 -0
- package/dist/index-DxPp2gBS.js +992 -0
- package/dist/index-Dy_n2MPD.js +3010 -0
- package/dist/index-oc8HPfOF.js +13583 -0
- package/dist/index.es-Bsr7zP98.js +366 -0
- package/dist/index.es-C-j-Ghef.js +11678 -0
- package/dist/index.es.js +4 -5
- package/dist/{info-C-7imdlv.js → info-BTLQJ-wd.js} +3 -4
- package/dist/{info-circle-CojbxQCA.js → info-circle-Dla9169_.js} +3 -4
- package/dist/{lightbulb-DrfSirtI.js → lightbulb-PN8DA_Wh.js} +3 -4
- package/dist/{mail-yuNzffmW.js → mail-BGYZut_4.js} +3 -4
- package/dist/{mobile-B68qFJIJ.js → mobile-BM760ZzX.js} +3 -4
- package/dist/{more-B5F7-jLe.js → more-rHGnl2ck.js} +3 -4
- package/dist/{network-placeholder-C0IP4D1c.js → network-placeholder-CyQl-3_2.js} +3 -4
- package/dist/{nftPlaceholder-DUEpu8vC.js → nftPlaceholder-nuUJ8nKY.js} +3 -4
- package/dist/{off-kgcptPTJ.js → off-GYlwYDrT.js} +3 -4
- package/dist/{play-store-CpkQM7Tf.js → play-store-Ck01Ez1F.js} +3 -4
- package/dist/{plus-WJX5o6br.js → plus-CQfXWgLw.js} +3 -4
- package/dist/{qr-code-DYSpZOBK.js → qr-code-CyLVwLY7.js} +3 -4
- package/dist/{recycle-horizontal-nN1xwykO.js → recycle-horizontal-DvnWPcEQ.js} +3 -4
- package/dist/{refresh-BDlbkeKx.js → refresh-BOxj8b2n.js} +3 -4
- package/dist/{reown-logo--P11S5yl.js → reown-logo-D1iprOTg.js} +3 -4
- package/dist/{search-DBF3vwq7.js → search-DrPaZPnc.js} +3 -4
- package/dist/secp256k1-DgmH1qVg.js +1251 -0
- package/dist/{send-pvA8KHBc.js → send-ybBREe4b.js} +3 -4
- package/dist/shareicon-D3Qj5j1T.js +262 -0
- package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -14
- package/dist/{swapHorizontal-BI2PzZwN.js → swapHorizontal-BddjZdXK.js} +3 -4
- package/dist/{swapHorizontalBold-CWlwK-F6.js → swapHorizontalBold-B6AWjPZ9.js} +3 -4
- package/dist/{swapHorizontalMedium-BmLVJu35.js → swapHorizontalMedium-CNacWoBn.js} +3 -4
- package/dist/{swapHorizontalRoundedBold-Bu7b_4Tq.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -4
- package/dist/{swapVertical-9yVsysvS.js → swapVertical-zY2BbSyQ.js} +3 -4
- package/dist/{telegram-0bWPCnom.js → telegram-DS4l-8Oc.js} +3 -4
- package/dist/{three-dots-V6GJeVIa.js → three-dots-RctNqamK.js} +3 -4
- package/dist/truncate-D9t92mVX.js +7 -0
- package/dist/{twitch-BnXJxO5H.js → twitch-CJ0llIIH.js} +3 -4
- package/dist/{twitterIcon-DKgyPicl.js → twitterIcon-pgvN9-bP.js} +3 -4
- package/dist/unsupportedProp-BJVuEW_b.js +10 -0
- package/dist/useRegisterError-C_YLA1dw.js +9857 -0
- package/dist/validError-CDlJpg_f.js +6 -0
- package/dist/{verify-6SHEYxKY.js → verify-BeZLo1Fq.js} +3 -4
- package/dist/{verify-filled-V7PkY7fi.js → verify-filled-meyb7E16.js} +3 -4
- package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
- package/dist/{wallet-CyIBiiAv.js → wallet-CFcOgSsz.js} +3 -4
- package/dist/{wallet-placeholder-Dy4jQvK8.js → wallet-placeholder-CeUMILZq.js} +3 -4
- package/dist/{walletconnect-CL5PuqLp.js → walletconnect-D6LB1PyC.js} +7 -10
- package/dist/{warning-circle-BbG3KGtg.js → warning-circle-BRtzofvT.js} +3 -4
- package/dist/{x-BKSfqvJ-.js → x-DKQAOOh3.js} +3 -4
- package/package.json +1 -1
- package/dist/AllRoutes-N9u-0kyk.js +0 -2605
- package/dist/AllRoutes-N9u-0kyk.js.map +0 -1
- package/dist/Box-DPSoUHKG.js +0 -61
- package/dist/Box-DPSoUHKG.js.map +0 -1
- package/dist/EstGas-9QzcUupH.js +0 -17109
- package/dist/EstGas-9QzcUupH.js.map +0 -1
- package/dist/Grow-sm7uQW-H.js +0 -2213
- package/dist/Grow-sm7uQW-H.js.map +0 -1
- package/dist/InputComp-BNsmXy6D.js +0 -115
- package/dist/InputComp-BNsmXy6D.js.map +0 -1
- package/dist/LoadRoute-DFIoO0Wm.js +0 -143
- package/dist/LoadRoute-DFIoO0Wm.js.map +0 -1
- package/dist/QuotesProgress-C4vn322J.js +0 -30
- package/dist/QuotesProgress-C4vn322J.js.map +0 -1
- package/dist/SwapAsset-kKtvzzJ_.js +0 -66
- package/dist/SwapAsset-kKtvzzJ_.js.map +0 -1
- package/dist/Tooltip-c1DRaAxV.js +0 -719
- package/dist/Tooltip-c1DRaAxV.js.map +0 -1
- package/dist/TxnButton-BmcX_BPz.js +0 -303
- package/dist/TxnButton-BmcX_BPz.js.map +0 -1
- package/dist/WidgetForm.module-DhUUlwZP.js +0 -14
- package/dist/WidgetForm.module-DhUUlwZP.js.map +0 -1
- package/dist/add-BDjkKnDN.js.map +0 -1
- package/dist/all-wallets-CrBep7Gl.js.map +0 -1
- package/dist/app-store-CwaPvoXY.js.map +0 -1
- package/dist/apple-BA8mnYrP.js.map +0 -1
- package/dist/arrow-bottom-BXdMFUAl.js.map +0 -1
- package/dist/arrow-bottom-circle-DFT4mXIU.js.map +0 -1
- package/dist/arrow-left-BzkeYnqg.js.map +0 -1
- package/dist/arrow-right-DiUAWQjY.js.map +0 -1
- package/dist/arrow-top-86AMrjF7.js.map +0 -1
- package/dist/bank-DN5JAJkK.js.map +0 -1
- package/dist/basic-Bn5vs8SQ.js +0 -7110
- package/dist/basic-Bn5vs8SQ.js.map +0 -1
- package/dist/browser-CIEc-DNj.js.map +0 -1
- package/dist/card-D0J873mK.js.map +0 -1
- package/dist/ccip-DOQk8pZb.js +0 -251
- package/dist/ccip-DOQk8pZb.js.map +0 -1
- package/dist/checkmark-bold-Cvmc9tJb.js.map +0 -1
- package/dist/checkmark-mvlF9aX8.js.map +0 -1
- package/dist/chevron-bottom-CWsU0Wj4.js.map +0 -1
- package/dist/chevron-left-DZoyyvkH.js.map +0 -1
- package/dist/chevron-right-Db1S8IpK.js.map +0 -1
- package/dist/chevron-top-BG2-jrhN.js.map +0 -1
- package/dist/chrome-store-bZ30Z8RD.js.map +0 -1
- package/dist/clock-BQCJkpsN.js.map +0 -1
- package/dist/clockIcon-jSNFFrLy.js +0 -77
- package/dist/clockIcon-jSNFFrLy.js.map +0 -1
- package/dist/close-0442yxHv.js.map +0 -1
- package/dist/coinPlaceholder-npHsRGpi.js.map +0 -1
- package/dist/compass-CA-2HVOX.js.map +0 -1
- package/dist/copy-DZVC8Hxi.js.map +0 -1
- package/dist/core-h4B-syrK.js +0 -17218
- package/dist/core-h4B-syrK.js.map +0 -1
- package/dist/cursor-BmgVIdd4.js +0 -8
- package/dist/cursor-BmgVIdd4.js.map +0 -1
- package/dist/cursor-transparent-wVQvgZAK.js.map +0 -1
- package/dist/desktop-DTAJIXTO.js.map +0 -1
- package/dist/disconnect-D8Si5N8S.js.map +0 -1
- package/dist/discord-tQYw47cV.js.map +0 -1
- package/dist/down-BgR5p6bw.js +0 -810
- package/dist/down-BgR5p6bw.js.map +0 -1
- package/dist/etherscan-CjqNGBR7.js.map +0 -1
- package/dist/ethertousd-BOknTgU4.js +0 -8
- package/dist/ethertousd-BOknTgU4.js.map +0 -1
- package/dist/exclamation-triangle-BhHXY1hF.js.map +0 -1
- package/dist/extension-y15WoviO.js.map +0 -1
- package/dist/external-link--gR7z0qt.js.map +0 -1
- package/dist/facebook-DlX8IWwq.js.map +0 -1
- package/dist/farcaster-CFzTYTRj.js.map +0 -1
- package/dist/filters-BO_y5jSy.js.map +0 -1
- package/dist/getChainIds-BW6u6K7g.js +0 -2432
- package/dist/getChainIds-BW6u6K7g.js.map +0 -1
- package/dist/getCosmosAddress-Q91DQZPn.js +0 -13999
- package/dist/getCosmosAddress-Q91DQZPn.js.map +0 -1
- package/dist/github-B9QjqzQj.js.map +0 -1
- package/dist/google-D9CK21nC.js.map +0 -1
- package/dist/hamburger-DdXejR_U.js +0 -4563
- package/dist/hamburger-DdXejR_U.js.map +0 -1
- package/dist/help-circle-Qf3YDcg6.js.map +0 -1
- package/dist/id-VtdZj5EJ.js.map +0 -1
- package/dist/image-Bb6NRqAG.js.map +0 -1
- package/dist/index-A4USEaqO.js +0 -4218
- package/dist/index-A4USEaqO.js.map +0 -1
- package/dist/index-BnNGphMQ.js +0 -544
- package/dist/index-BnNGphMQ.js.map +0 -1
- package/dist/index-CLkRz935.js +0 -24385
- package/dist/index-CLkRz935.js.map +0 -1
- package/dist/index-CMYftxmy.js +0 -1884
- package/dist/index-CMYftxmy.js.map +0 -1
- package/dist/index-D0RbVaC6.js +0 -12
- package/dist/index-D0RbVaC6.js.map +0 -1
- package/dist/index-D44jBo43.js +0 -35859
- package/dist/index-D44jBo43.js.map +0 -1
- package/dist/index-DArR1lwi.js +0 -1760
- package/dist/index-DArR1lwi.js.map +0 -1
- package/dist/index-DQPPcv1z.js +0 -309
- package/dist/index-DQPPcv1z.js.map +0 -1
- package/dist/index-DYHhV8Ah.js +0 -16079
- package/dist/index-DYHhV8Ah.js.map +0 -1
- package/dist/index-Di4O_5cO.js +0 -1088
- package/dist/index-Di4O_5cO.js.map +0 -1
- package/dist/index-HAMZ-tBE.js +0 -189
- package/dist/index-HAMZ-tBE.js.map +0 -1
- package/dist/index-h0B0Ds4O.js +0 -413
- package/dist/index-h0B0Ds4O.js.map +0 -1
- package/dist/index-sLx4Edw4.js +0 -23
- package/dist/index-sLx4Edw4.js.map +0 -1
- package/dist/index.es-CoUIS9Di.js +0 -12917
- package/dist/index.es-CoUIS9Di.js.map +0 -1
- package/dist/index.es-DvgvELOO.js +0 -476
- package/dist/index.es-DvgvELOO.js.map +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/info-C-7imdlv.js.map +0 -1
- package/dist/info-circle-CojbxQCA.js.map +0 -1
- package/dist/lightbulb-DrfSirtI.js.map +0 -1
- package/dist/mail-yuNzffmW.js.map +0 -1
- package/dist/mobile-B68qFJIJ.js.map +0 -1
- package/dist/more-B5F7-jLe.js.map +0 -1
- package/dist/network-placeholder-C0IP4D1c.js.map +0 -1
- package/dist/nftPlaceholder-DUEpu8vC.js.map +0 -1
- package/dist/off-kgcptPTJ.js.map +0 -1
- package/dist/play-store-CpkQM7Tf.js.map +0 -1
- package/dist/plus-WJX5o6br.js.map +0 -1
- package/dist/qr-code-DYSpZOBK.js.map +0 -1
- package/dist/recycle-horizontal-nN1xwykO.js.map +0 -1
- package/dist/refresh-BDlbkeKx.js.map +0 -1
- package/dist/reown-logo--P11S5yl.js.map +0 -1
- package/dist/search-DBF3vwq7.js.map +0 -1
- package/dist/secp256k1-CBD0agkt.js +0 -1682
- package/dist/secp256k1-CBD0agkt.js.map +0 -1
- package/dist/send-pvA8KHBc.js.map +0 -1
- package/dist/shareicon-BdQizUDb.js +0 -315
- package/dist/shareicon-BdQizUDb.js.map +0 -1
- package/dist/sortDown-cDA6MpOw.js.map +0 -1
- package/dist/swapHorizontal-BI2PzZwN.js.map +0 -1
- package/dist/swapHorizontalBold-CWlwK-F6.js.map +0 -1
- package/dist/swapHorizontalMedium-BmLVJu35.js.map +0 -1
- package/dist/swapHorizontalRoundedBold-Bu7b_4Tq.js.map +0 -1
- package/dist/swapVertical-9yVsysvS.js.map +0 -1
- package/dist/telegram-0bWPCnom.js.map +0 -1
- package/dist/three-dots-V6GJeVIa.js.map +0 -1
- package/dist/truncate-DSxFWEga.js +0 -8
- package/dist/truncate-DSxFWEga.js.map +0 -1
- package/dist/twitch-BnXJxO5H.js.map +0 -1
- package/dist/twitterIcon-DKgyPicl.js.map +0 -1
- package/dist/unsupportedProp-DvjrBqjA.js +0 -15
- package/dist/unsupportedProp-DvjrBqjA.js.map +0 -1
- package/dist/useRegisterError-DTDRNbyK.js +0 -19289
- package/dist/useRegisterError-DTDRNbyK.js.map +0 -1
- package/dist/validError-rariWQ7G.js +0 -15
- package/dist/validError-rariWQ7G.js.map +0 -1
- package/dist/verify-6SHEYxKY.js.map +0 -1
- package/dist/verify-filled-V7PkY7fi.js.map +0 -1
- package/dist/w3m-modal-DeL22Ji8.js +0 -1722
- package/dist/w3m-modal-DeL22Ji8.js.map +0 -1
- package/dist/wallet-CyIBiiAv.js.map +0 -1
- package/dist/wallet-placeholder-Dy4jQvK8.js.map +0 -1
- package/dist/walletconnect-CL5PuqLp.js.map +0 -1
- package/dist/warning-circle-BbG3KGtg.js.map +0 -1
- package/dist/x-BKSfqvJ-.js.map +0 -1
@@ -0,0 +1,252 @@
|
|
1
|
+
import { jsxs as b, jsx as r, Fragment as A } from "react/jsx-runtime";
|
2
|
+
import G, { useContext as H, useState as E, useEffect as v, useRef as _ } from "react";
|
3
|
+
import { a as U, T as $, H as O, b as L, c as J, E as K, d as V } from "./EstGas-CEFILtyf.js";
|
4
|
+
import { u as l, l as W } from "./index-CLzkn733.js";
|
5
|
+
import { i as D, C as Q, S as X } from "./useRegisterError-C_YLA1dw.js";
|
6
|
+
import { B as Y } from "./Box-CIChapvH.js";
|
7
|
+
function Z() {
|
8
|
+
var d, w, i, e, u, c, m, g, x, s, h, y, p, C;
|
9
|
+
const t = l((T) => T.persist), n = l((T) => T.configuration), { defaultCoin: a } = D;
|
10
|
+
let f = (i = (w = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : w.logoUrl) != null && i.length ? (u = (e = t == null ? void 0 : t.route) == null ? void 0 : e.providerDetails) == null ? void 0 : u.logoUrl : a;
|
11
|
+
return W.isEmpty(t.route) ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ b("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
12
|
+
/* @__PURE__ */ r(
|
13
|
+
"div",
|
14
|
+
{
|
15
|
+
style: {
|
16
|
+
boxShadow: n && n.customTheme && ((m = (c = n.customTheme) == null ? void 0 : c.shadow) == null ? void 0 : m.boxShadow) || "1px 1px 10px 3px rgba(0, 0, 0, 0.15)"
|
17
|
+
},
|
18
|
+
className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
|
19
|
+
}
|
20
|
+
),
|
21
|
+
/* @__PURE__ */ b("div", { className: "bw-flex bw-relative bw-bg-background-container bw-z-10 bw-mx-auto bw-h-[41px] bw-w-[70%] bw-border-[0.5px] bw-border-border-primary bw-border-r-0 bw-border-l-0 bw-items-center bw-gap-x-1", children: [
|
22
|
+
" ",
|
23
|
+
/* @__PURE__ */ b("p", { className: "bw-text-sm bw-w-full bw-text-center bw-flex bw-justify-center bw-items-center bw-font-normal bw-my-1 bw-text-text-primary", children: [
|
24
|
+
/* @__PURE__ */ r("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
25
|
+
" ",
|
26
|
+
/* @__PURE__ */ r("img", { src: f, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
|
27
|
+
((x = (g = t == null ? void 0 : t.route) == null ? void 0 : g.providerDetails) == null ? void 0 : x.name) || "",
|
28
|
+
": ",
|
29
|
+
(s = t == null ? void 0 : t.route) == null ? void 0 : s.protocolsUsed[0],
|
30
|
+
((y = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : y.length) <= 1 ? "" : /* @__PURE__ */ b("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
31
|
+
`+${((C = (p = t == null ? void 0 : t.route) == null ? void 0 : p.protocolsUsed) == null ? void 0 : C.length) - 1}`,
|
32
|
+
" More"
|
33
|
+
] }),
|
34
|
+
" "
|
35
|
+
] }),
|
36
|
+
" "
|
37
|
+
] })
|
38
|
+
] });
|
39
|
+
}
|
40
|
+
let N;
|
41
|
+
function R() {
|
42
|
+
var u, c, m, g, x;
|
43
|
+
const t = l((s) => s.configuration), n = l((s) => s.persist), a = l((s) => s.setPersist), { isErrorMessage: f } = H(U), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - n.quoteStartTime) / 1e3);
|
44
|
+
let w = ((u = n == null ? void 0 : n.route) == null ? void 0 : u.deadline) || 60;
|
45
|
+
const [i, e] = E(w);
|
46
|
+
return v(() => {
|
47
|
+
d && e(w - d);
|
48
|
+
}, []), v(() => (N = setInterval(() => {
|
49
|
+
e((s) => {
|
50
|
+
var h;
|
51
|
+
return s <= 0 ? (clearInterval(N), a({
|
52
|
+
...(h = l.getState()) == null ? void 0 : h.persist,
|
53
|
+
isQuoteTimer: !1,
|
54
|
+
showAcceptQuote: !0,
|
55
|
+
quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
|
56
|
+
}), 0) : s - 1;
|
57
|
+
});
|
58
|
+
}, 1e3), () => clearInterval(N)), []), v(() => {
|
59
|
+
(f || !n.isQuoteTimer) && clearInterval(N);
|
60
|
+
}, [f, n.isQuoteTimer]), !(n != null && n.hash) && n.quote === "enable" ? /* @__PURE__ */ b("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
|
61
|
+
/* @__PURE__ */ r("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ b("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
62
|
+
/* @__PURE__ */ r("stop", { offset: "1%", stopColor: (c = t == null ? void 0 : t.gradientStyle) != null && c.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
|
63
|
+
/* @__PURE__ */ r("stop", { offset: "90%", stopColor: (g = t == null ? void 0 : t.gradientStyle) != null && g.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
|
64
|
+
] }) }),
|
65
|
+
/* @__PURE__ */ b(
|
66
|
+
Y,
|
67
|
+
{
|
68
|
+
sx: {
|
69
|
+
position: "relative",
|
70
|
+
display: "inline-flex"
|
71
|
+
},
|
72
|
+
children: [
|
73
|
+
/* @__PURE__ */ r(
|
74
|
+
Q,
|
75
|
+
{
|
76
|
+
variant: "determinate",
|
77
|
+
sx: {
|
78
|
+
color: "var(--tw-border-primary)"
|
79
|
+
},
|
80
|
+
size: 20,
|
81
|
+
thickness: 2,
|
82
|
+
value: 100
|
83
|
+
}
|
84
|
+
),
|
85
|
+
/* @__PURE__ */ r(
|
86
|
+
Q,
|
87
|
+
{
|
88
|
+
variant: "determinate",
|
89
|
+
size: 20,
|
90
|
+
thickness: 5,
|
91
|
+
value: i / w * 100,
|
92
|
+
sx: {
|
93
|
+
"svg circle": { stroke: "url(#linearColors)" },
|
94
|
+
position: "absolute",
|
95
|
+
left: 0,
|
96
|
+
[`& .${X.circle}`]: {
|
97
|
+
strokeLinecap: "round"
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
)
|
102
|
+
]
|
103
|
+
}
|
104
|
+
)
|
105
|
+
] }) : /* @__PURE__ */ r(A, {});
|
106
|
+
}
|
107
|
+
const ee = G.memo(function({
|
108
|
+
handleOpenExchange: t,
|
109
|
+
amount: n,
|
110
|
+
route: a,
|
111
|
+
resetAmount: f,
|
112
|
+
resetBalance: d,
|
113
|
+
setExchange: w
|
114
|
+
}) {
|
115
|
+
var k;
|
116
|
+
const i = l((o) => o.setPersist), e = l((o) => o.persist), u = l((o) => o.fromChain), c = l((o) => o.fromCoin), m = l((o) => o.toChain), g = l((o) => o.toCoin), [x, s] = E(!1), [h, y] = E(!1), [p, C] = E(!1), T = !e.stepData, { txnupdate: M } = D;
|
117
|
+
v(() => {
|
118
|
+
var o, j, z, F;
|
119
|
+
a != null && a.routeId && i({
|
120
|
+
...(o = l.getState()) == null ? void 0 : o.persist,
|
121
|
+
routeId: a == null ? void 0 : a.routeId,
|
122
|
+
route: a,
|
123
|
+
toChain: m,
|
124
|
+
toCoin: g,
|
125
|
+
fromChain: u,
|
126
|
+
fromCoin: c,
|
127
|
+
amount: n,
|
128
|
+
quote: "enable",
|
129
|
+
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
130
|
+
startTime: ((F = (z = (j = l) == null ? void 0 : j.getState()) == null ? void 0 : z.persist) == null ? void 0 : F.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
131
|
+
});
|
132
|
+
}, [a]);
|
133
|
+
function I(o) {
|
134
|
+
s(o);
|
135
|
+
}
|
136
|
+
function S() {
|
137
|
+
((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (i({}), t(), f());
|
138
|
+
}
|
139
|
+
v(() => (e != null && e.openAt && window.addEventListener("visibilitychange", S), () => {
|
140
|
+
window.removeEventListener("visibilitychange", S);
|
141
|
+
}), [e == null ? void 0 : e.openAt]), v(() => (e != null && e.openAt && window.addEventListener("load", S), () => {
|
142
|
+
window.removeEventListener("load", S);
|
143
|
+
}), [e == null ? void 0 : e.openAt]);
|
144
|
+
function q(o) {
|
145
|
+
y(o);
|
146
|
+
}
|
147
|
+
function B(o) {
|
148
|
+
C(o);
|
149
|
+
}
|
150
|
+
function P() {
|
151
|
+
t(), i({}), h && d();
|
152
|
+
}
|
153
|
+
return /* @__PURE__ */ r($.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: q }, children: /* @__PURE__ */ r(U.Provider, { value: { isErrorMessage: p, handleErrorMessage: B }, children: /* @__PURE__ */ b("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
|
154
|
+
/* @__PURE__ */ r(O, { handleBack: P }),
|
155
|
+
/* @__PURE__ */ r("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ r(Z, {}) }),
|
156
|
+
e != null && e.isQuoteTimer ? /* @__PURE__ */ r(R, {}) : /* @__PURE__ */ r(A, {}),
|
157
|
+
/* @__PURE__ */ r("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
158
|
+
/* @__PURE__ */ b("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
|
159
|
+
/* @__PURE__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
160
|
+
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
161
|
+
/* @__PURE__ */ r(
|
162
|
+
L,
|
163
|
+
{
|
164
|
+
amount: e == null ? void 0 : e.amount,
|
165
|
+
coinData: e.fromCoin,
|
166
|
+
chainData: e.fromChain,
|
167
|
+
field: "from"
|
168
|
+
}
|
169
|
+
)
|
170
|
+
] }),
|
171
|
+
p ? /* @__PURE__ */ r(
|
172
|
+
"div",
|
173
|
+
{
|
174
|
+
className: "bw-border bw-mt-5 bw-w-[65px] bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-card bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ",
|
175
|
+
children: /* @__PURE__ */ r("img", { src: M, width: 33, height: 30, alt: "img" })
|
176
|
+
}
|
177
|
+
) : /* @__PURE__ */ r(
|
178
|
+
J,
|
179
|
+
{
|
180
|
+
isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x,
|
181
|
+
startTimer: I,
|
182
|
+
error: p
|
183
|
+
}
|
184
|
+
),
|
185
|
+
/* @__PURE__ */ r("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
|
186
|
+
/* @__PURE__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
187
|
+
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
|
188
|
+
/* @__PURE__ */ r(
|
189
|
+
L,
|
190
|
+
{
|
191
|
+
amount: Number(((k = e == null ? void 0 : e.route) == null ? void 0 : k.outputAmountDisplay) || ""),
|
192
|
+
coinData: e == null ? void 0 : e.toCoin,
|
193
|
+
chainData: e == null ? void 0 : e.toChain,
|
194
|
+
field: "to"
|
195
|
+
}
|
196
|
+
)
|
197
|
+
] })
|
198
|
+
] }),
|
199
|
+
/* @__PURE__ */ b("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
200
|
+
T ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ r(K, {}),
|
201
|
+
/* @__PURE__ */ r(
|
202
|
+
V,
|
203
|
+
{
|
204
|
+
handleOpenExchange: t,
|
205
|
+
setExchange: w,
|
206
|
+
amount: n,
|
207
|
+
startTimer: I,
|
208
|
+
handleBack: P,
|
209
|
+
isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x
|
210
|
+
}
|
211
|
+
)
|
212
|
+
] })
|
213
|
+
] }) }) });
|
214
|
+
});
|
215
|
+
function le({
|
216
|
+
handleConfirmClose: t,
|
217
|
+
routesData: n,
|
218
|
+
amount: a,
|
219
|
+
resetAmount: f,
|
220
|
+
resetBalance: d,
|
221
|
+
handleStopRoute: w
|
222
|
+
}) {
|
223
|
+
const i = _();
|
224
|
+
v(() => {
|
225
|
+
var c, m;
|
226
|
+
!i.current && Number(
|
227
|
+
((c = i == null ? void 0 : i.current) == null ? void 0 : c.minOutputAmount) || ((m = i == null ? void 0 : i.current) == null ? void 0 : m.outputAmountDisplay)
|
228
|
+
) !== Number((n == null ? void 0 : n.minOutputAmount) || (n == null ? void 0 : n.outputAmountDisplay)) && (i.current = n);
|
229
|
+
}, [n]), v(() => {
|
230
|
+
w(!0);
|
231
|
+
}, []);
|
232
|
+
function e() {
|
233
|
+
w(!1), t(!1);
|
234
|
+
}
|
235
|
+
function u() {
|
236
|
+
t(!1);
|
237
|
+
}
|
238
|
+
return /* @__PURE__ */ r(
|
239
|
+
ee,
|
240
|
+
{
|
241
|
+
handleOpenExchange: e,
|
242
|
+
amount: a,
|
243
|
+
route: n,
|
244
|
+
resetAmount: f,
|
245
|
+
resetBalance: d,
|
246
|
+
setExchange: u
|
247
|
+
}
|
248
|
+
);
|
249
|
+
}
|
250
|
+
export {
|
251
|
+
le as default
|
252
|
+
};
|
@@ -0,0 +1,331 @@
|
|
1
|
+
import { g as O, _ as Y, b as P, d as v, p as h, P as c } from "./index-CLzkn733.js";
|
2
|
+
import * as C from "react";
|
3
|
+
import { jsxs as M, jsx as x } from "react/jsx-runtime";
|
4
|
+
import { g as w, d as z, s as L, c as b, a as F } from "./useRegisterError-C_YLA1dw.js";
|
5
|
+
function H(r, i = 166) {
|
6
|
+
let o;
|
7
|
+
function a(...s) {
|
8
|
+
const u = () => {
|
9
|
+
r.apply(this, s);
|
10
|
+
};
|
11
|
+
clearTimeout(o), o = setTimeout(u, i);
|
12
|
+
}
|
13
|
+
return a.clear = () => {
|
14
|
+
clearTimeout(o);
|
15
|
+
}, a;
|
16
|
+
}
|
17
|
+
function V(r) {
|
18
|
+
return O("MuiSvgIcon", r);
|
19
|
+
}
|
20
|
+
w("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
21
|
+
const D = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], U = (r) => {
|
22
|
+
const {
|
23
|
+
color: i,
|
24
|
+
fontSize: o,
|
25
|
+
classes: a
|
26
|
+
} = r, s = {
|
27
|
+
root: ["root", i !== "inherit" && `color${v(i)}`, `fontSize${v(o)}`]
|
28
|
+
};
|
29
|
+
return F(s, V, a);
|
30
|
+
}, B = L("svg", {
|
31
|
+
name: "MuiSvgIcon",
|
32
|
+
slot: "Root",
|
33
|
+
overridesResolver: (r, i) => {
|
34
|
+
const {
|
35
|
+
ownerState: o
|
36
|
+
} = r;
|
37
|
+
return [i.root, o.color !== "inherit" && i[`color${v(o.color)}`], i[`fontSize${v(o.fontSize)}`]];
|
38
|
+
}
|
39
|
+
})(({
|
40
|
+
theme: r,
|
41
|
+
ownerState: i
|
42
|
+
}) => {
|
43
|
+
var o, a, s, u, p, m, _, E, d, f, S, T, l;
|
44
|
+
return {
|
45
|
+
userSelect: "none",
|
46
|
+
width: "1em",
|
47
|
+
height: "1em",
|
48
|
+
display: "inline-block",
|
49
|
+
// the <svg> will define the property that has `currentColor`
|
50
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
51
|
+
fill: i.hasSvgAsChild ? void 0 : "currentColor",
|
52
|
+
flexShrink: 0,
|
53
|
+
transition: (o = r.transitions) == null || (a = o.create) == null ? void 0 : a.call(o, "fill", {
|
54
|
+
duration: (s = r.transitions) == null || (s = s.duration) == null ? void 0 : s.shorter
|
55
|
+
}),
|
56
|
+
fontSize: {
|
57
|
+
inherit: "inherit",
|
58
|
+
small: ((u = r.typography) == null || (p = u.pxToRem) == null ? void 0 : p.call(u, 20)) || "1.25rem",
|
59
|
+
medium: ((m = r.typography) == null || (_ = m.pxToRem) == null ? void 0 : _.call(m, 24)) || "1.5rem",
|
60
|
+
large: ((E = r.typography) == null || (d = E.pxToRem) == null ? void 0 : d.call(E, 35)) || "2.1875rem"
|
61
|
+
}[i.fontSize],
|
62
|
+
// TODO v5 deprecate, v6 remove for sx
|
63
|
+
color: (f = (S = (r.vars || r).palette) == null || (S = S[i.color]) == null ? void 0 : S.main) != null ? f : {
|
64
|
+
action: (T = (r.vars || r).palette) == null || (T = T.action) == null ? void 0 : T.active,
|
65
|
+
disabled: (l = (r.vars || r).palette) == null || (l = l.action) == null ? void 0 : l.disabled,
|
66
|
+
inherit: void 0
|
67
|
+
}[i.color]
|
68
|
+
};
|
69
|
+
}), g = /* @__PURE__ */ C.forwardRef(function(i, o) {
|
70
|
+
const a = z({
|
71
|
+
props: i,
|
72
|
+
name: "MuiSvgIcon"
|
73
|
+
}), {
|
74
|
+
children: s,
|
75
|
+
className: u,
|
76
|
+
color: p = "inherit",
|
77
|
+
component: m = "svg",
|
78
|
+
fontSize: _ = "medium",
|
79
|
+
htmlColor: E,
|
80
|
+
inheritViewBox: d = !1,
|
81
|
+
titleAccess: f,
|
82
|
+
viewBox: S = "0 0 24 24"
|
83
|
+
} = a, T = Y(a, D), l = /* @__PURE__ */ C.isValidElement(s) && s.type === "svg", e = P({}, a, {
|
84
|
+
color: p,
|
85
|
+
component: m,
|
86
|
+
fontSize: _,
|
87
|
+
instanceFontSize: i.fontSize,
|
88
|
+
inheritViewBox: d,
|
89
|
+
viewBox: S,
|
90
|
+
hasSvgAsChild: l
|
91
|
+
}), R = {};
|
92
|
+
d || (R.viewBox = S);
|
93
|
+
const N = U(e);
|
94
|
+
return /* @__PURE__ */ M(B, P({
|
95
|
+
as: m,
|
96
|
+
className: b(N.root, u),
|
97
|
+
focusable: "false",
|
98
|
+
color: E,
|
99
|
+
"aria-hidden": f ? void 0 : !0,
|
100
|
+
role: f ? "img" : void 0,
|
101
|
+
ref: o
|
102
|
+
}, R, T, l && s.props, {
|
103
|
+
ownerState: e,
|
104
|
+
children: [l ? s.props.children : s, f ? /* @__PURE__ */ x("title", {
|
105
|
+
children: f
|
106
|
+
}) : null]
|
107
|
+
}));
|
108
|
+
});
|
109
|
+
h.env.NODE_ENV !== "production" && (g.propTypes = {
|
110
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
111
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
112
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
113
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
114
|
+
/**
|
115
|
+
* Node passed into the SVG element.
|
116
|
+
*/
|
117
|
+
children: c.node,
|
118
|
+
/**
|
119
|
+
* Override or extend the styles applied to the component.
|
120
|
+
*/
|
121
|
+
classes: c.object,
|
122
|
+
/**
|
123
|
+
* @ignore
|
124
|
+
*/
|
125
|
+
className: c.string,
|
126
|
+
/**
|
127
|
+
* The color of the component.
|
128
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
129
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
130
|
+
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
131
|
+
* @default 'inherit'
|
132
|
+
*/
|
133
|
+
color: c.oneOfType([c.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), c.string]),
|
134
|
+
/**
|
135
|
+
* The component used for the root node.
|
136
|
+
* Either a string to use a HTML element or a component.
|
137
|
+
*/
|
138
|
+
component: c.elementType,
|
139
|
+
/**
|
140
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
141
|
+
* @default 'medium'
|
142
|
+
*/
|
143
|
+
fontSize: c.oneOfType([c.oneOf(["inherit", "large", "medium", "small"]), c.string]),
|
144
|
+
/**
|
145
|
+
* Applies a color attribute to the SVG element.
|
146
|
+
*/
|
147
|
+
htmlColor: c.string,
|
148
|
+
/**
|
149
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
150
|
+
* prop will be ignored.
|
151
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
152
|
+
* `component`'s viewBox to the root node.
|
153
|
+
* @default false
|
154
|
+
*/
|
155
|
+
inheritViewBox: c.bool,
|
156
|
+
/**
|
157
|
+
* The shape-rendering attribute. The behavior of the different options is described on the
|
158
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
159
|
+
* If you are having issues with blurry icons you should investigate this prop.
|
160
|
+
*/
|
161
|
+
shapeRendering: c.string,
|
162
|
+
/**
|
163
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
164
|
+
*/
|
165
|
+
sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object]),
|
166
|
+
/**
|
167
|
+
* Provides a human-readable title for the element that contains it.
|
168
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
169
|
+
*/
|
170
|
+
titleAccess: c.string,
|
171
|
+
/**
|
172
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
173
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
174
|
+
* and you pass viewBox="0 0 50 20",
|
175
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
176
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
177
|
+
* @default '0 0 24 24'
|
178
|
+
*/
|
179
|
+
viewBox: c.string
|
180
|
+
});
|
181
|
+
g.muiName = "SvgIcon";
|
182
|
+
function J(r, i) {
|
183
|
+
function o(a, s) {
|
184
|
+
return /* @__PURE__ */ x(g, P({
|
185
|
+
"data-testid": `${i}Icon`,
|
186
|
+
ref: s
|
187
|
+
}, a, {
|
188
|
+
children: r
|
189
|
+
}));
|
190
|
+
}
|
191
|
+
return h.env.NODE_ENV !== "production" && (o.displayName = `${i}Icon`), o.muiName = g.muiName, /* @__PURE__ */ C.memo(/* @__PURE__ */ C.forwardRef(o));
|
192
|
+
}
|
193
|
+
var y = { exports: {} }, t = {};
|
194
|
+
var $;
|
195
|
+
function q() {
|
196
|
+
if ($) return t;
|
197
|
+
$ = 1;
|
198
|
+
var r = Symbol.for("react.transitional.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.consumer"), p = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), T = Symbol.for("react.client.reference");
|
199
|
+
function l(e) {
|
200
|
+
if (typeof e == "object" && e !== null) {
|
201
|
+
var R = e.$$typeof;
|
202
|
+
switch (R) {
|
203
|
+
case r:
|
204
|
+
switch (e = e.type, e) {
|
205
|
+
case o:
|
206
|
+
case s:
|
207
|
+
case a:
|
208
|
+
case _:
|
209
|
+
case E:
|
210
|
+
case S:
|
211
|
+
return e;
|
212
|
+
default:
|
213
|
+
switch (e = e && e.$$typeof, e) {
|
214
|
+
case p:
|
215
|
+
case m:
|
216
|
+
case f:
|
217
|
+
case d:
|
218
|
+
return e;
|
219
|
+
case u:
|
220
|
+
return e;
|
221
|
+
default:
|
222
|
+
return R;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
case i:
|
226
|
+
return R;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
return t.ContextConsumer = u, t.ContextProvider = p, t.Element = r, t.ForwardRef = m, t.Fragment = o, t.Lazy = f, t.Memo = d, t.Portal = i, t.Profiler = s, t.StrictMode = a, t.Suspense = _, t.SuspenseList = E, t.isContextConsumer = function(e) {
|
231
|
+
return l(e) === u;
|
232
|
+
}, t.isContextProvider = function(e) {
|
233
|
+
return l(e) === p;
|
234
|
+
}, t.isElement = function(e) {
|
235
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
236
|
+
}, t.isForwardRef = function(e) {
|
237
|
+
return l(e) === m;
|
238
|
+
}, t.isFragment = function(e) {
|
239
|
+
return l(e) === o;
|
240
|
+
}, t.isLazy = function(e) {
|
241
|
+
return l(e) === f;
|
242
|
+
}, t.isMemo = function(e) {
|
243
|
+
return l(e) === d;
|
244
|
+
}, t.isPortal = function(e) {
|
245
|
+
return l(e) === i;
|
246
|
+
}, t.isProfiler = function(e) {
|
247
|
+
return l(e) === s;
|
248
|
+
}, t.isStrictMode = function(e) {
|
249
|
+
return l(e) === a;
|
250
|
+
}, t.isSuspense = function(e) {
|
251
|
+
return l(e) === _;
|
252
|
+
}, t.isSuspenseList = function(e) {
|
253
|
+
return l(e) === E;
|
254
|
+
}, t.isValidElementType = function(e) {
|
255
|
+
return typeof e == "string" || typeof e == "function" || e === o || e === s || e === a || e === _ || e === E || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === d || e.$$typeof === p || e.$$typeof === u || e.$$typeof === m || e.$$typeof === T || e.getModuleId !== void 0);
|
256
|
+
}, t.typeOf = l, t;
|
257
|
+
}
|
258
|
+
var n = {}, A;
|
259
|
+
function W() {
|
260
|
+
return A || (A = 1, h.env.NODE_ENV !== "production" && function() {
|
261
|
+
function r(e) {
|
262
|
+
if (typeof e == "object" && e !== null) {
|
263
|
+
var R = e.$$typeof;
|
264
|
+
switch (R) {
|
265
|
+
case i:
|
266
|
+
switch (e = e.type, e) {
|
267
|
+
case a:
|
268
|
+
case u:
|
269
|
+
case s:
|
270
|
+
case E:
|
271
|
+
case d:
|
272
|
+
case T:
|
273
|
+
return e;
|
274
|
+
default:
|
275
|
+
switch (e = e && e.$$typeof, e) {
|
276
|
+
case m:
|
277
|
+
case _:
|
278
|
+
case S:
|
279
|
+
case f:
|
280
|
+
return e;
|
281
|
+
case p:
|
282
|
+
return e;
|
283
|
+
default:
|
284
|
+
return R;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
case o:
|
288
|
+
return R;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
var i = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), m = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), T = Symbol.for("react.view_transition"), l = Symbol.for("react.client.reference");
|
293
|
+
n.ContextConsumer = p, n.ContextProvider = m, n.Element = i, n.ForwardRef = _, n.Fragment = a, n.Lazy = S, n.Memo = f, n.Portal = o, n.Profiler = u, n.StrictMode = s, n.Suspense = E, n.SuspenseList = d, n.isContextConsumer = function(e) {
|
294
|
+
return r(e) === p;
|
295
|
+
}, n.isContextProvider = function(e) {
|
296
|
+
return r(e) === m;
|
297
|
+
}, n.isElement = function(e) {
|
298
|
+
return typeof e == "object" && e !== null && e.$$typeof === i;
|
299
|
+
}, n.isForwardRef = function(e) {
|
300
|
+
return r(e) === _;
|
301
|
+
}, n.isFragment = function(e) {
|
302
|
+
return r(e) === a;
|
303
|
+
}, n.isLazy = function(e) {
|
304
|
+
return r(e) === S;
|
305
|
+
}, n.isMemo = function(e) {
|
306
|
+
return r(e) === f;
|
307
|
+
}, n.isPortal = function(e) {
|
308
|
+
return r(e) === o;
|
309
|
+
}, n.isProfiler = function(e) {
|
310
|
+
return r(e) === u;
|
311
|
+
}, n.isStrictMode = function(e) {
|
312
|
+
return r(e) === s;
|
313
|
+
}, n.isSuspense = function(e) {
|
314
|
+
return r(e) === E;
|
315
|
+
}, n.isSuspenseList = function(e) {
|
316
|
+
return r(e) === d;
|
317
|
+
}, n.isValidElementType = function(e) {
|
318
|
+
return typeof e == "string" || typeof e == "function" || e === a || e === u || e === s || e === E || e === d || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === f || e.$$typeof === m || e.$$typeof === p || e.$$typeof === _ || e.$$typeof === l || e.getModuleId !== void 0);
|
319
|
+
}, n.typeOf = r;
|
320
|
+
}()), n;
|
321
|
+
}
|
322
|
+
var I;
|
323
|
+
function k() {
|
324
|
+
return I || (I = 1, h.env.NODE_ENV === "production" ? y.exports = /* @__PURE__ */ q() : y.exports = /* @__PURE__ */ W()), y.exports;
|
325
|
+
}
|
326
|
+
var K = /* @__PURE__ */ k();
|
327
|
+
export {
|
328
|
+
J as c,
|
329
|
+
H as d,
|
330
|
+
K as r
|
331
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
2
|
+
import "react";
|
3
|
+
import { F as m } from "./useRegisterError-C_YLA1dw.js";
|
4
|
+
function n({ value: t, decimal: o }) {
|
5
|
+
return t.length ? /* @__PURE__ */ r(m, { value: t, options: { maxDecimals: o } }) : t;
|
6
|
+
}
|
7
|
+
export {
|
8
|
+
n as O
|
9
|
+
};
|