@blockend/widget 1.0.60 → 1.0.61

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 (217) hide show
  1. package/dist/{AllRoutes-Bi2Qb6vT.js → AllRoutes-BqW5S4_J.js} +9 -9
  2. package/dist/AllRoutes-CIe7ZLbW.js +2209 -0
  3. package/dist/{Box-DofFTOO9.js → Box-Dw7IJo3D.js} +1 -1
  4. package/dist/Box-QpYIDD-V.js +54 -0
  5. package/dist/EstGas-C_ldluj6.js +1576 -0
  6. package/dist/{EstGas-w0MeYkJr.js → EstGas-Dpwt2-50.js} +7 -7
  7. package/dist/{Grow-C7qv-xx7.js → Grow-DjneaPQY.js} +2 -2
  8. package/dist/Grow-L7kyPhbh.js +1656 -0
  9. package/dist/{InputComp-B7JBOOCL.js → InputComp-CWH4SAk7.js} +3 -3
  10. package/dist/InputComp-Dl4M7E5v.js +105 -0
  11. package/dist/{LoadRoute-KBCAhdb3.js → LoadRoute-Cafzlcfy.js} +4 -4
  12. package/dist/LoadRoute-cBSl34Bs.js +125 -0
  13. package/dist/{QuotesProgress-DaVjqEE8.js → QuotesProgress-Covy7wmW.js} +1 -1
  14. package/dist/QuotesProgress-CxJUoCPy.js +28 -0
  15. package/dist/{SwapAsset-ClNXL1XN.js → SwapAsset-BqXVX_DR.js} +1 -1
  16. package/dist/SwapAsset-CkRat7Ok.js +51 -0
  17. package/dist/Tooltip-3YpYU_vO.js +572 -0
  18. package/dist/{Tooltip-BfAqBg9y.js → Tooltip-D2kKNQ0U.js} +3 -3
  19. package/dist/TxnButton-CPMFPFA_.js +222 -0
  20. package/dist/{TxnButton-41zPru_N.js → TxnButton-mfwy-EoQ.js} +3 -3
  21. package/dist/{add-Dtd6YmCJ.js → add-CRY8asYF.js} +1 -1
  22. package/dist/add-Dfrw-dUV.js +19 -0
  23. package/dist/{all-wallets-fWl6fl6Y.js → all-wallets-DOnIRIv0.js} +1 -1
  24. package/dist/all-wallets-Dw10lWJZ.js +10 -0
  25. package/dist/{app-store-DSLOwXZY.js → app-store-C0M9hC1B.js} +1 -1
  26. package/dist/app-store-DJiZFSCr.js +21 -0
  27. package/dist/{apple-BMDEkk8X.js → apple-Bv7oA5AQ.js} +1 -1
  28. package/dist/apple-kMZGS4AC.js +22 -0
  29. package/dist/{arrow-bottom-BWURPGva.js → arrow-bottom-D4arnome.js} +1 -1
  30. package/dist/arrow-bottom-DgmWrLqf.js +12 -0
  31. package/dist/{arrow-bottom-circle-BR18TdWN.js → arrow-bottom-circle-BUny4yP8.js} +1 -1
  32. package/dist/arrow-bottom-circle-C7iPKwzW.js +15 -0
  33. package/dist/{arrow-left-DSHPaT9f.js → arrow-left-DImJbKZs.js} +1 -1
  34. package/dist/arrow-left-Dol642VI.js +12 -0
  35. package/dist/{arrow-right-BQyfcxHk.js → arrow-right-BvRPNX9F.js} +1 -1
  36. package/dist/arrow-right-CMwyPVT7.js +12 -0
  37. package/dist/{arrow-top-RP3srPoV.js → arrow-top-1RWPJImu.js} +1 -1
  38. package/dist/arrow-top-kn9xtx92.js +12 -0
  39. package/dist/{bank-C9VWqird.js → bank-C0t9JpLj.js} +1 -1
  40. package/dist/bank-DK-FvDfd.js +18 -0
  41. package/dist/{basic-ChmJK0Xt.js → basic-Sejv2JvX.js} +3 -3
  42. package/dist/basic-VfgwBHn1.js +5783 -0
  43. package/dist/{browser-CSkm7gnt.js → browser-0d0uw45D.js} +1 -1
  44. package/dist/browser-BzT1ACe9.js +18 -0
  45. package/dist/{card-qLWgu9c8.js → card-BBByykfy.js} +1 -1
  46. package/dist/card-DqDM55a-.js +18 -0
  47. package/dist/{ccip-QF_uXtAt.js → ccip-8__szz9Q.js} +1 -1
  48. package/dist/ccip-BPZSey8I.js +228 -0
  49. package/dist/{checkmark-BmzqmMw0.js → checkmark-B_osdsm_.js} +1 -1
  50. package/dist/checkmark-DEKH6rOS.js +15 -0
  51. package/dist/{checkmark-bold-B6aImdAf.js → checkmark-bold-BEzepFY4.js} +1 -1
  52. package/dist/checkmark-bold-Dzv2hN2Q.js +12 -0
  53. package/dist/{chevron-bottom-t4h4eaxS.js → chevron-bottom-Bdaxlaxc.js} +1 -1
  54. package/dist/chevron-bottom-CXdHWe0F.js +12 -0
  55. package/dist/{chevron-left-D3susSgC.js → chevron-left-2aCeqxdm.js} +1 -1
  56. package/dist/chevron-left-CeuFz3M9.js +12 -0
  57. package/dist/{chevron-right-W13sAkua.js → chevron-right-BPgQeMPz.js} +1 -1
  58. package/dist/chevron-right-DikqbHjp.js +12 -0
  59. package/dist/{chevron-top-Bx-QdB_J.js → chevron-top-BskFpgMP.js} +1 -1
  60. package/dist/chevron-top-CjCScawp.js +12 -0
  61. package/dist/{chrome-store-CGxM7IYK.js → chrome-store-CxhEG2Jk.js} +1 -1
  62. package/dist/chrome-store-DaP5Y4w2.js +65 -0
  63. package/dist/{clock-DLxk1mp4.js → clock-BDgHn083.js} +1 -1
  64. package/dist/clock-BzjZWK68.js +12 -0
  65. package/dist/{close-XyT_Ei7X.js → close-CQTa1LZg.js} +1 -1
  66. package/dist/close-Dqncm2nY.js +12 -0
  67. package/dist/{coinPlaceholder-COnVP39c.js → coinPlaceholder-B-NSV729.js} +1 -1
  68. package/dist/coinPlaceholder-BExfa33b.js +12 -0
  69. package/dist/{compass-B7Ua__ME.js → compass-BdJmk2w2.js} +1 -1
  70. package/dist/compass-C1H_fht-.js +12 -0
  71. package/dist/{copy-CwqmRN0X.js → copy-Cg4vgr82.js} +1 -1
  72. package/dist/copy-DPMVX3yZ.js +19 -0
  73. package/dist/{core-HN_b3jpG.js → core-BSwMFU2B.js} +6124 -4570
  74. package/dist/core-BYOwnw_B.js +16521 -0
  75. package/dist/{cursor-CZUzCZDa.js → cursor-BoD_rq0f.js} +1 -1
  76. package/dist/{cursor-transparent-C-iNJp5e.js → cursor-transparent-Dqs1kXcb.js} +1 -1
  77. package/dist/cursor-transparent-IQlZspwQ.js +16 -0
  78. package/dist/cursor-ybJpiPr6.js +7 -0
  79. package/dist/{desktop-CKvUvwiO.js → desktop-BOxkTik1.js} +1 -1
  80. package/dist/desktop-WMYv3b4Q.js +13 -0
  81. package/dist/{disconnect-Baq1ttCe.js → disconnect-CTxFyZWa.js} +1 -1
  82. package/dist/disconnect-eMeec26w.js +12 -0
  83. package/dist/{discord-D8jJPT-u.js → discord-BJRxIhBt.js} +1 -1
  84. package/dist/discord-CpTo4KnZ.js +21 -0
  85. package/dist/{down-CbXkinMO.js → down-372J_rRV.js} +2 -2
  86. package/dist/down-hvB7J3FG.js +622 -0
  87. package/dist/{etherscan-DmvsfmlR.js → etherscan-CyQf5MH5.js} +1 -1
  88. package/dist/etherscan-DQ1h54d3.js +10 -0
  89. package/dist/{exclamation-triangle-B5sVL0Op.js → exclamation-triangle-DFOXjtuI.js} +1 -1
  90. package/dist/exclamation-triangle-DzKs0-30.js +8 -0
  91. package/dist/{extension-DTURW9PD.js → extension-XiWSr1Ku.js} +1 -1
  92. package/dist/extension-ep1TEUSD.js +12 -0
  93. package/dist/{external-link-BhiyYwAM.js → external-link-CYjbHRDY.js} +1 -1
  94. package/dist/external-link-DRzzevt_.js +12 -0
  95. package/dist/{facebook-BKU8pCSU.js → facebook-DhP37m2R.js} +1 -1
  96. package/dist/facebook-eXS31CP5.js +30 -0
  97. package/dist/{farcaster-aPuBoT-f.js → farcaster-C1J2oGt2.js} +1 -1
  98. package/dist/farcaster-f0EPKy4w.js +16 -0
  99. package/dist/{filters-Dhcy_bWD.js → filters-C5jLy9GP.js} +1 -1
  100. package/dist/filters-RqawLZYy.js +12 -0
  101. package/dist/{getChainIds-hFBaLC3P.js → getChainIds-AaKb_MmO.js} +2 -2
  102. package/dist/getChainIds-DXEtLb1g.js +1888 -0
  103. package/dist/{getCosmosAddress-wW2QvGf4.js → getCosmosAddress-D-F7jz-d.js} +2 -2
  104. package/dist/getCosmosAddress-X_cfoAnv.js +9517 -0
  105. package/dist/{github-DpOcHBpK.js → github-CJ8g1by7.js} +1 -1
  106. package/dist/github-d1vUfc1B.js +22 -0
  107. package/dist/{google-Dlr5X4XZ.js → google-DpIVCnNm.js} +1 -1
  108. package/dist/google-Dtcfyt4F.js +22 -0
  109. package/dist/{hamburger-CbTP1z8e.js → hamburger-BylLGawu.js} +5 -5
  110. package/dist/hamburger-DezZOKRv.js +3915 -0
  111. package/dist/{help-circle-DfsreI1-.js → help-circle-BESCFGIa.js} +1 -1
  112. package/dist/help-circle-BTpSg7wr.js +16 -0
  113. package/dist/{id-CgVrDv4g.js → id-CPX0IEMo.js} +1 -1
  114. package/dist/id-CV-pIIiZ.js +16 -0
  115. package/dist/{image-BgZMfISb.js → image-DrFHyQOS.js} +1 -1
  116. package/dist/image-n7ODnWNp.js +8 -0
  117. package/dist/{index-CzIE4OVR.js → index-BDezoD7C.js} +1 -1
  118. package/dist/{index-DEzMTwnP.js → index-BOd8pd8c.js} +11 -11
  119. package/dist/index-BYmiFoJh.js +29495 -0
  120. package/dist/index-BheqnLKf.js +992 -0
  121. package/dist/{index-ij8WLtCK.js → index-C7McnY5R.js} +10 -10
  122. package/dist/{index-Dfnahm9u.js → index-CI-V1HdQ.js} +4 -4
  123. package/dist/{index-CQef3aFT.js → index-CSgWo9Cg.js} +5 -5
  124. package/dist/index-CViW2kjE.js +13547 -0
  125. package/dist/{index-W17Yun1B.js → index-CoV9zQx1.js} +78 -78
  126. package/dist/{index-BzlNNUJC.js → index-D0J1OD73.js} +4 -4
  127. package/dist/index-DO14DPs3.js +6713 -0
  128. package/dist/{index-BNAc3BNQ.js → index-D_8iklL2.js} +7 -7
  129. package/dist/{index-D-h2D2T4.js → index-DhZwdjPQ.js} +2 -2
  130. package/dist/{index-cmkdh21h.js → index-DjHDqI7m.js} +4 -4
  131. package/dist/{index-Doq8prid.js → index-DoNokw4Q.js} +1 -1
  132. package/dist/index-GlSAE8hE.js +472 -0
  133. package/dist/index-H7ThVJwV.js +3267 -0
  134. package/dist/index-Pni0gIii.js +206 -0
  135. package/dist/index-TEYMoNwP.js +9 -0
  136. package/dist/index-VS3sEqmI.js +330 -0
  137. package/dist/index-ePnYqYhf.js +1483 -0
  138. package/dist/index-eatshJSd.js +18509 -0
  139. package/dist/{index.es-DznYPOeF.js → index.es-B95K0DgG.js} +1 -1
  140. package/dist/index.es-BzyBckd_.js +366 -0
  141. package/dist/index.es-CMvE7ghR.js +14904 -0
  142. package/dist/index.es-gTtSa0r5.js +14904 -0
  143. package/dist/index.es.js +1 -1
  144. package/dist/{info-CZQMmcBD.js → info-DB9XS3BU.js} +1 -1
  145. package/dist/info-DWZmKXfC.js +7 -0
  146. package/dist/{info-circle-CA3WSSRD.js → info-circle-BVB8s9W_.js} +1 -1
  147. package/dist/info-circle-Bk9rpQzz.js +16 -0
  148. package/dist/{lightbulb-8ISYXfUt.js → lightbulb-C0eiLvuS.js} +1 -1
  149. package/dist/lightbulb-CUDopurR.js +7 -0
  150. package/dist/{mail-CHIth09p.js → mail-CYcc9yZZ.js} +1 -1
  151. package/dist/mail-Df9wlUBz.js +12 -0
  152. package/dist/{mobile-CrFtClXb.js → mobile-Cvm9Skqq.js} +1 -1
  153. package/dist/mobile-DcoUJktC.js +13 -0
  154. package/dist/{more-mHern-4V.js → more-B-UvO1Yo.js} +1 -1
  155. package/dist/more-DbsAB7Xx.js +15 -0
  156. package/dist/{network-placeholder-CoODkTLk.js → network-placeholder-C8QNcwPf.js} +1 -1
  157. package/dist/network-placeholder-CnHZLxGT.js +18 -0
  158. package/dist/{nftPlaceholder-CG7DC4DT.js → nftPlaceholder-C_LU9tT5.js} +1 -1
  159. package/dist/nftPlaceholder-D7igGAAq.js +12 -0
  160. package/dist/{off-CrgcN-zp.js → off-BEQbMYBZ.js} +1 -1
  161. package/dist/off-Brms9nN7.js +12 -0
  162. package/dist/{play-store-CQP9kqkp.js → play-store-CEopCauM.js} +1 -1
  163. package/dist/play-store-z4z-boXn.js +36 -0
  164. package/dist/{plus-DHA7xDuc.js → plus-CtEYHV2t.js} +1 -1
  165. package/dist/plus-LkrIZJEQ.js +17 -0
  166. package/dist/{qr-code-zibhnzKq.js → qr-code-BhmZxeo_.js} +1 -1
  167. package/dist/qr-code-CZnYaNoE.js +10 -0
  168. package/dist/{recycle-horizontal-DywyCULr.js → recycle-horizontal-CF9eqICi.js} +1 -1
  169. package/dist/recycle-horizontal-CeGotUdv.js +13 -0
  170. package/dist/{refresh-e2GocWQK.js → refresh-Bm3plkBE.js} +1 -1
  171. package/dist/refresh-CKhWU1dQ.js +12 -0
  172. package/dist/{reown-logo-BU64qOXz.js → reown-logo-8S9ZN_-T.js} +1 -1
  173. package/dist/reown-logo-CF2Qkyw1.js +16 -0
  174. package/dist/{search-DzxpvkH-.js → search-DNcA47oY.js} +1 -1
  175. package/dist/search-DyuAYb_-.js +12 -0
  176. package/dist/{send-r9Pjl4vo.js → send-B0S9gHH6.js} +1 -1
  177. package/dist/send-BbBOjlsM.js +19 -0
  178. package/dist/{swapHorizontal-BTrXWq48.js → swapHorizontal-BuTPPB8N.js} +1 -1
  179. package/dist/swapHorizontal-DA7yhPfV.js +12 -0
  180. package/dist/{swapHorizontalBold-CJqWkgp6.js → swapHorizontalBold-BnB-fpce.js} +1 -1
  181. package/dist/swapHorizontalBold-BujZxwgY.js +12 -0
  182. package/dist/{swapHorizontalMedium-DX7hDgRK.js → swapHorizontalMedium-9QnwwjJD.js} +1 -1
  183. package/dist/swapHorizontalMedium-hEBn_MJv.js +20 -0
  184. package/dist/{swapHorizontalRoundedBold-C51tXWKa.js → swapHorizontalRoundedBold-C83mxp3u.js} +1 -1
  185. package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +12 -0
  186. package/dist/{swapVertical-Crddwuzr.js → swapVertical-BAz7hmKO.js} +1 -1
  187. package/dist/swapVertical-D1CdGHJt.js +12 -0
  188. package/dist/{telegram-BC6rpZd8.js → telegram-BMT9bLfw.js} +1 -1
  189. package/dist/telegram-dDQ2sOw5.js +20 -0
  190. package/dist/{three-dots-DC9iZV71.js → three-dots-DuhUrXKI.js} +1 -1
  191. package/dist/three-dots-ltDeu1Xu.js +9 -0
  192. package/dist/{twitch-Dqthmddu.js → twitch-ClsoABSi.js} +1 -1
  193. package/dist/twitch-sBusnrAt.js +22 -0
  194. package/dist/{twitterIcon-DIWxOs67.js → twitterIcon-B9n98fnH.js} +1 -1
  195. package/dist/twitterIcon-BKMgaEZ4.js +10 -0
  196. package/dist/{unsupportedProp-BW6bMgdV.js → unsupportedProp-BXmR-9gT.js} +1 -1
  197. package/dist/unsupportedProp-P9y3_0om.js +10 -0
  198. package/dist/{useRegisterError-D0oAcJrb.js → useRegisterError-DGMdKFc9.js} +1 -1
  199. package/dist/useRegisterError-DVG0sgLq.js +8918 -0
  200. package/dist/{verify-GrViE51Y.js → verify-BHTa1Niv.js} +1 -1
  201. package/dist/verify-DXzijLDZ.js +12 -0
  202. package/dist/{verify-filled-Cws_QO3X.js → verify-filled-CqobBYuI.js} +1 -1
  203. package/dist/verify-filled-DnKqj8X5.js +12 -0
  204. package/dist/{w3m-modal-n7hzVP_I.js → w3m-modal-B7akV0Kp.js} +2 -2
  205. package/dist/w3m-modal-Cc1j8j_E.js +1471 -0
  206. package/dist/{wallet-Cd1ruTUh.js → wallet-ObJy7yZR.js} +1 -1
  207. package/dist/{wallet-placeholder-Ce4gGswZ.js → wallet-placeholder-BxVrKpEz.js} +1 -1
  208. package/dist/wallet-placeholder-DEsjd5Nv.js +18 -0
  209. package/dist/wallet-zL6TDKIa.js +12 -0
  210. package/dist/{walletconnect-CqpJhu9-.js → walletconnect-CYJbrPQQ.js} +1 -1
  211. package/dist/walletconnect-CZz6e0wy.js +36 -0
  212. package/dist/{warning-circle-DQ6ZS1NO.js → warning-circle-DOwgDOgL.js} +1 -1
  213. package/dist/warning-circle-DsGlg2MF.js +16 -0
  214. package/dist/{x-CR749er2.js → x-B03u0kWD.js} +1 -1
  215. package/dist/x-MwPhq03Y.js +16 -0
  216. package/package.json +1 -1
  217. package/dist/index.es-C8qSCFHh.js +0 -13234
@@ -1,4 +1,4 @@
1
- import { L as z } from "./useRegisterError-D0oAcJrb.js";
1
+ import { L as z } from "./useRegisterError-DVG0sgLq.js";
2
2
  import G, { useEffect as C, useState as J, useRef as j } from "react";
3
3
  function E(t, e) {
4
4
  (e == null || e > t.length) && (e = t.length);
@@ -0,0 +1,366 @@
1
+ import { L as z } from "./useRegisterError-DGMdKFc9.js";
2
+ import G, { useEffect as C, useState as J, useRef as j } from "react";
3
+ function E(t, e) {
4
+ (e == null || e > t.length) && (e = t.length);
5
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
6
+ return n;
7
+ }
8
+ function Q(t) {
9
+ if (Array.isArray(t)) return t;
10
+ }
11
+ function Z(t, e, r) {
12
+ return (e = oe(e)) in t ? Object.defineProperty(t, e, {
13
+ value: r,
14
+ enumerable: !0,
15
+ configurable: !0,
16
+ writable: !0
17
+ }) : t[e] = r, t;
18
+ }
19
+ function ee(t, e) {
20
+ var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
21
+ if (r != null) {
22
+ var n, c, f, i, b = [], d = !0, A = !1;
23
+ try {
24
+ if (f = (r = r.call(t)).next, e !== 0) for (; !(d = (n = f.call(r)).done) && (b.push(n.value), b.length !== e); d = !0) ;
25
+ } catch (g) {
26
+ A = !0, c = g;
27
+ } finally {
28
+ try {
29
+ if (!d && r.return != null && (i = r.return(), Object(i) !== i)) return;
30
+ } finally {
31
+ if (A) throw c;
32
+ }
33
+ }
34
+ return b;
35
+ }
36
+ }
37
+ function te() {
38
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
39
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
40
+ }
41
+ function x(t, e) {
42
+ var r = Object.keys(t);
43
+ if (Object.getOwnPropertySymbols) {
44
+ var n = Object.getOwnPropertySymbols(t);
45
+ e && (n = n.filter(function(c) {
46
+ return Object.getOwnPropertyDescriptor(t, c).enumerable;
47
+ })), r.push.apply(r, n);
48
+ }
49
+ return r;
50
+ }
51
+ function I(t) {
52
+ for (var e = 1; e < arguments.length; e++) {
53
+ var r = arguments[e] != null ? arguments[e] : {};
54
+ e % 2 ? x(Object(r), !0).forEach(function(n) {
55
+ Z(t, n, r[n]);
56
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : x(Object(r)).forEach(function(n) {
57
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
58
+ });
59
+ }
60
+ return t;
61
+ }
62
+ function H(t, e) {
63
+ if (t == null) return {};
64
+ var r, n, c = ne(t, e);
65
+ if (Object.getOwnPropertySymbols) {
66
+ var f = Object.getOwnPropertySymbols(t);
67
+ for (n = 0; n < f.length; n++) r = f[n], e.includes(r) || {}.propertyIsEnumerable.call(t, r) && (c[r] = t[r]);
68
+ }
69
+ return c;
70
+ }
71
+ function ne(t, e) {
72
+ if (t == null) return {};
73
+ var r = {};
74
+ for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
75
+ if (e.includes(n)) continue;
76
+ r[n] = t[n];
77
+ }
78
+ return r;
79
+ }
80
+ function re(t, e) {
81
+ return Q(t) || ee(t, e) || ie(t, e) || te();
82
+ }
83
+ function ae(t, e) {
84
+ if (typeof t != "object" || !t) return t;
85
+ var r = t[Symbol.toPrimitive];
86
+ if (r !== void 0) {
87
+ var n = r.call(t, e);
88
+ if (typeof n != "object") return n;
89
+ throw new TypeError("@@toPrimitive must return a primitive value.");
90
+ }
91
+ return (e === "string" ? String : Number)(t);
92
+ }
93
+ function oe(t) {
94
+ var e = ae(t, "string");
95
+ return typeof e == "symbol" ? e : e + "";
96
+ }
97
+ function ie(t, e) {
98
+ if (t) {
99
+ if (typeof t == "string") return E(t, e);
100
+ var r = {}.toString.call(t).slice(8, -1);
101
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? E(t, e) : void 0;
102
+ }
103
+ }
104
+ var ue = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], le = function(e, r) {
105
+ var n = e.animationData, c = e.loop, f = e.autoplay, i = e.initialSegment, b = e.onComplete, d = e.onLoopComplete, A = e.onEnterFrame, g = e.onSegmentStart, L = e.onConfigReady, _ = e.onDataReady, h = e.onDataFailed, u = e.onLoadedImages, w = e.onDOMLoaded, S = e.onDestroy;
106
+ e.lottieRef, e.renderer, e.name, e.assetsPath, e.rendererSettings;
107
+ var p = H(e, ue), D = J(!1), l = re(D, 2), O = l[0], R = l[1], o = j(), v = j(null), M = function() {
108
+ var a;
109
+ (a = o.current) === null || a === void 0 || a.play();
110
+ }, F = function() {
111
+ var a;
112
+ (a = o.current) === null || a === void 0 || a.stop();
113
+ }, V = function() {
114
+ var a;
115
+ (a = o.current) === null || a === void 0 || a.pause();
116
+ }, N = function(a) {
117
+ var s;
118
+ (s = o.current) === null || s === void 0 || s.setSpeed(a);
119
+ }, $ = function(a, s) {
120
+ var m;
121
+ (m = o.current) === null || m === void 0 || m.goToAndPlay(a, s);
122
+ }, k = function(a, s) {
123
+ var m;
124
+ (m = o.current) === null || m === void 0 || m.goToAndStop(a, s);
125
+ }, B = function(a) {
126
+ var s;
127
+ (s = o.current) === null || s === void 0 || s.setDirection(a);
128
+ }, W = function(a, s) {
129
+ var m;
130
+ (m = o.current) === null || m === void 0 || m.playSegments(a, s);
131
+ }, K = function(a) {
132
+ var s;
133
+ (s = o.current) === null || s === void 0 || s.setSubframe(a);
134
+ }, U = function(a) {
135
+ var s;
136
+ return (s = o.current) === null || s === void 0 ? void 0 : s.getDuration(a);
137
+ }, X = function() {
138
+ var a;
139
+ (a = o.current) === null || a === void 0 || a.destroy(), o.current = void 0;
140
+ }, Y = function() {
141
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s;
142
+ if (v.current) {
143
+ (s = o.current) === null || s === void 0 || s.destroy();
144
+ var m = I(I(I({}, e), a), {}, {
145
+ container: v.current
146
+ });
147
+ return o.current = z.loadAnimation(m), R(!!o.current), function() {
148
+ var P;
149
+ (P = o.current) === null || P === void 0 || P.destroy(), o.current = void 0;
150
+ };
151
+ }
152
+ };
153
+ C(function() {
154
+ var y = Y();
155
+ return function() {
156
+ return y == null ? void 0 : y();
157
+ };
158
+ }, [n, c]), C(function() {
159
+ o.current && (o.current.autoplay = !!f);
160
+ }, [f]), C(function() {
161
+ if (o.current) {
162
+ if (!i) {
163
+ o.current.resetSegments(!0);
164
+ return;
165
+ }
166
+ !Array.isArray(i) || !i.length || ((o.current.currentRawFrame < i[0] || o.current.currentRawFrame > i[1]) && (o.current.currentRawFrame = i[0]), o.current.setSegment(i[0], i[1]));
167
+ }
168
+ }, [i]), C(function() {
169
+ var y = [{
170
+ name: "complete",
171
+ handler: b
172
+ }, {
173
+ name: "loopComplete",
174
+ handler: d
175
+ }, {
176
+ name: "enterFrame",
177
+ handler: A
178
+ }, {
179
+ name: "segmentStart",
180
+ handler: g
181
+ }, {
182
+ name: "config_ready",
183
+ handler: L
184
+ }, {
185
+ name: "data_ready",
186
+ handler: _
187
+ }, {
188
+ name: "data_failed",
189
+ handler: h
190
+ }, {
191
+ name: "loaded_images",
192
+ handler: u
193
+ }, {
194
+ name: "DOMLoaded",
195
+ handler: w
196
+ }, {
197
+ name: "destroy",
198
+ handler: S
199
+ }], a = y.filter(function(m) {
200
+ return m.handler != null;
201
+ });
202
+ if (a.length) {
203
+ var s = a.map(
204
+ /**
205
+ * Handle the process of adding an event listener
206
+ * @param {Listener} listener
207
+ * @return {Function} Function that deregister the listener
208
+ */
209
+ function(m) {
210
+ var P;
211
+ return (P = o.current) === null || P === void 0 || P.addEventListener(m.name, m.handler), function() {
212
+ var T;
213
+ (T = o.current) === null || T === void 0 || T.removeEventListener(m.name, m.handler);
214
+ };
215
+ }
216
+ );
217
+ return function() {
218
+ s.forEach(function(m) {
219
+ return m();
220
+ });
221
+ };
222
+ }
223
+ }, [b, d, A, g, L, _, h, u, w, S]);
224
+ var q = /* @__PURE__ */ G.createElement("div", I({
225
+ style: r,
226
+ ref: v
227
+ }, p));
228
+ return {
229
+ View: q,
230
+ play: M,
231
+ stop: F,
232
+ pause: V,
233
+ setSpeed: N,
234
+ goToAndStop: k,
235
+ goToAndPlay: $,
236
+ setDirection: B,
237
+ playSegments: W,
238
+ setSubframe: K,
239
+ getDuration: U,
240
+ destroy: X,
241
+ animationContainerRef: v,
242
+ animationLoaded: O,
243
+ animationItem: o.current
244
+ };
245
+ };
246
+ function se(t) {
247
+ var e = t.getBoundingClientRect(), r = e.top, n = e.height, c = window.innerHeight - r, f = window.innerHeight + n;
248
+ return c / f;
249
+ }
250
+ function de(t, e, r) {
251
+ var n = t.getBoundingClientRect(), c = n.top, f = n.left, i = n.width, b = n.height, d = (e - f) / i, A = (r - c) / b;
252
+ return {
253
+ x: d,
254
+ y: A
255
+ };
256
+ }
257
+ var ce = function(e) {
258
+ var r = e.wrapperRef, n = e.animationItem, c = e.mode, f = e.actions;
259
+ C(function() {
260
+ var i = r.current;
261
+ if (!(!i || !n || !f.length)) {
262
+ n.stop();
263
+ var b = function() {
264
+ var g = null, L = function() {
265
+ var h = se(i), u = f.find(function(S) {
266
+ var p = S.visibility;
267
+ return p && h >= p[0] && h <= p[1];
268
+ });
269
+ if (u) {
270
+ if (u.type === "seek" && u.visibility && u.frames.length === 2) {
271
+ var w = u.frames[0] + Math.ceil((h - u.visibility[0]) / (u.visibility[1] - u.visibility[0]) * u.frames[1]);
272
+ n.goToAndStop(w - n.firstFrame - 1, !0);
273
+ }
274
+ u.type === "loop" && (g === null || g !== u.frames || n.isPaused) && (n.playSegments(u.frames, !0), g = u.frames), u.type === "play" && n.isPaused && (n.resetSegments(!0), n.play()), u.type === "stop" && n.goToAndStop(u.frames[0] - n.firstFrame - 1, !0);
275
+ }
276
+ };
277
+ return document.addEventListener("scroll", L), function() {
278
+ document.removeEventListener("scroll", L);
279
+ };
280
+ }, d = function() {
281
+ var g = function(u, w) {
282
+ var S = u, p = w;
283
+ if (S !== -1 && p !== -1) {
284
+ var D = de(i, S, p);
285
+ S = D.x, p = D.y;
286
+ }
287
+ var l = f.find(function(o) {
288
+ var v = o.position;
289
+ return v && Array.isArray(v.x) && Array.isArray(v.y) ? S >= v.x[0] && S <= v.x[1] && p >= v.y[0] && p <= v.y[1] : v && !Number.isNaN(v.x) && !Number.isNaN(v.y) ? S === v.x && p === v.y : !1;
290
+ });
291
+ if (l) {
292
+ if (l.type === "seek" && l.position && Array.isArray(l.position.x) && Array.isArray(l.position.y) && l.frames.length === 2) {
293
+ var O = (S - l.position.x[0]) / (l.position.x[1] - l.position.x[0]), R = (p - l.position.y[0]) / (l.position.y[1] - l.position.y[0]);
294
+ n.playSegments(l.frames, !0), n.goToAndStop(Math.ceil((O + R) / 2 * (l.frames[1] - l.frames[0])), !0);
295
+ }
296
+ l.type === "loop" && n.playSegments(l.frames, !0), l.type === "play" && (n.isPaused && n.resetSegments(!1), n.playSegments(l.frames)), l.type === "stop" && n.goToAndStop(l.frames[0], !0);
297
+ }
298
+ }, L = function(u) {
299
+ g(u.clientX, u.clientY);
300
+ }, _ = function() {
301
+ g(-1, -1);
302
+ };
303
+ return i.addEventListener("mousemove", L), i.addEventListener("mouseout", _), function() {
304
+ i.removeEventListener("mousemove", L), i.removeEventListener("mouseout", _);
305
+ };
306
+ };
307
+ switch (c) {
308
+ case "scroll":
309
+ return b();
310
+ case "cursor":
311
+ return d();
312
+ }
313
+ }
314
+ }, [c, n]);
315
+ }, me = function(e) {
316
+ var r = e.actions, n = e.mode, c = e.lottieObj, f = c.animationItem, i = c.View, b = c.animationContainerRef;
317
+ return ce({
318
+ actions: r,
319
+ animationItem: f,
320
+ mode: n,
321
+ wrapperRef: b
322
+ }), i;
323
+ }, fe = ["style", "interactivity"], ge = function(e) {
324
+ var r, n, c, f = e.style, i = e.interactivity, b = H(e, fe), d = le(b, f), A = d.View, g = d.play, L = d.stop, _ = d.pause, h = d.setSpeed, u = d.goToAndStop, w = d.goToAndPlay, S = d.setDirection, p = d.playSegments, D = d.setSubframe, l = d.getDuration, O = d.destroy, R = d.animationContainerRef, o = d.animationLoaded, v = d.animationItem;
325
+ return C(function() {
326
+ e.lottieRef && (e.lottieRef.current = {
327
+ play: g,
328
+ stop: L,
329
+ pause: _,
330
+ setSpeed: h,
331
+ goToAndPlay: w,
332
+ goToAndStop: u,
333
+ setDirection: S,
334
+ playSegments: p,
335
+ setSubframe: D,
336
+ getDuration: l,
337
+ destroy: O,
338
+ animationContainerRef: R,
339
+ animationLoaded: o,
340
+ animationItem: v
341
+ });
342
+ }, [(r = e.lottieRef) === null || r === void 0 ? void 0 : r.current]), me({
343
+ lottieObj: {
344
+ View: A,
345
+ play: g,
346
+ stop: L,
347
+ pause: _,
348
+ setSpeed: h,
349
+ goToAndStop: u,
350
+ goToAndPlay: w,
351
+ setDirection: S,
352
+ playSegments: p,
353
+ setSubframe: D,
354
+ getDuration: l,
355
+ destroy: O,
356
+ animationContainerRef: R,
357
+ animationLoaded: o,
358
+ animationItem: v
359
+ },
360
+ actions: (n = i == null ? void 0 : i.actions) !== null && n !== void 0 ? n : [],
361
+ mode: (c = i == null ? void 0 : i.mode) !== null && c !== void 0 ? c : "scroll"
362
+ });
363
+ };
364
+ export {
365
+ ge as L
366
+ };