@dcl/shop 0.7.3-31004613129.commit-29bd738 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/_assets/{Activity-DHRw9r_G.js → Activity-BpEWDEgt.js} +9 -9
  2. package/_assets/{AnimatedBackground-lOgqKL4d.js → AnimatedBackground-whCeMUgc.js} +1 -1
  3. package/_assets/{Assets-VGMfDLPY.js → Assets-CH4B54Xy.js} +11 -11
  4. package/_assets/{Assets.styles-B_PmcugB.js → Assets.styles-DuSEfvzx.js} +2 -2
  5. package/_assets/{Authorizations-BDp7n41u.js → Authorizations-DTC0viZ7.js} +1 -1
  6. package/_assets/{Cart-Bs53nlQk.js → Cart-Ccdz2uXK.js} +2 -2
  7. package/_assets/{CircularProgress-BPWY_F37.js → CircularProgress-BkDrovgn.js} +1 -1
  8. package/_assets/{Collection-qqEYK-rA.js → Collection-LGp9HIwD.js} +3 -3
  9. package/_assets/{CollectionCarousel-C_JJAdFF.js → CollectionCarousel-CnR1So5p.js} +22 -22
  10. package/_assets/{ContentClient-C2puvDPt.js → ContentClient-CRr9ZuRH.js} +1 -1
  11. package/_assets/{Creator-BsWzWPDC.js → Creator-2jJw01qB.js} +21 -21
  12. package/_assets/{DeploymentBuilder-jIyneWTC.js → DeploymentBuilder-DYNbIRzZ.js} +1 -1
  13. package/_assets/{ErrorNotice-BiqT0Cec.js → ErrorNotice-BXWX_0E4.js} +1 -1
  14. package/_assets/{ExchangeController-PF6wI6Mp.js → ExchangeController-C_NxeYpZ.js} +1 -1
  15. package/_assets/{Faq-CwuXgMC7.js → Faq-BXT0tU5Q.js} +1 -1
  16. package/_assets/{GetCredits-CY9xW-3-.js → GetCredits-CiVv6zS4.js} +1 -1
  17. package/_assets/{Grow-nUylTs5m.js → Grow-d2ucdHqS.js} +1 -1
  18. package/_assets/{HelpersUtil-Bwy8o8bw.js → HelpersUtil-BsEaPmaI.js} +1 -1
  19. package/_assets/{ItemDetail-wxRF5CUO.js → ItemDetail-BxGSP-it.js} +1 -1
  20. package/_assets/LazyEmoteControls-D7IWhRxC.js +2 -0
  21. package/_assets/{LoadMore-oc9uIc47.js → LoadMore-DcIHY8Kf.js} +1 -1
  22. package/_assets/{ManaPricingBanner.styles-CEtfxA02.js → ManaPricingBanner.styles-CxOm66Fo.js} +1 -1
  23. package/_assets/{MyAssets-BFWp9KWR.js → MyAssets-BozGMHXd.js} +1 -1
  24. package/_assets/{MyFavorites-BC0Zj7CR.js → MyFavorites-wLuasEwD.js} +1 -1
  25. package/_assets/{NotFound-BZASz5NG.js → NotFound-D9deZR03.js} +1 -1
  26. package/_assets/{NotificationsBell-DvmmUfvh.js → NotificationsBell-DULYJmKs.js} +1 -1
  27. package/_assets/{OutfitDetail-UMdvdT0P.js → OutfitDetail-B28zoBrk.js} +1 -1
  28. package/_assets/{OutfitPreview-BgPOBB1N.js → OutfitPreview-GRiCEESc.js} +1 -1
  29. package/_assets/{OutfitStudio-BUW7MldY.js → OutfitStudio-D7500MAI.js} +5 -5
  30. package/_assets/{StoreSettings-Cf-k3hGA.js → StoreSettings-DK8rP1ia.js} +1 -1
  31. package/_assets/{Success-cUrjdiUL.js → Success-zZ3HkHoh.js} +8 -8
  32. package/_assets/{SwapController-DDZdhbmi.js → SwapController-LhvwgYfv.js} +1 -1
  33. package/_assets/{Tooltip-eMANvv6_.js → Tooltip-Dh6dtNV3.js} +1 -1
  34. package/_assets/{TradeService-K5TbzQm1.js → TradeService-DjBvwlyu.js} +1 -1
  35. package/_assets/{W3MFrameProviderSingleton-ipn1OWk5.js → W3MFrameProviderSingleton-DyHElSGY.js} +3 -3
  36. package/_assets/{WebCryptoP256-BzRIl457.js → WebCryptoP256-CGMChTjg.js} +1 -1
  37. package/_assets/{authorizations-gBmiqrl2.js → authorizations-w-yCHVpU.js} +1 -1
  38. package/_assets/{basic-BX6XcCy2.js → basic-BwriZEC-.js} +1 -1
  39. package/_assets/{biconomy-FZ6cxo6V.js → biconomy-CeViGwXz.js} +1 -1
  40. package/_assets/{builder-C63nhwMn.js → builder-CYMYImB0.js} +1 -1
  41. package/_assets/{buy-BQ9t9Zrr.js → buy-DIVuBMot.js} +1 -1
  42. package/_assets/{buy-gasless-B-y8WMZ-.js → buy-gasless-DIfZSqYX.js} +1 -1
  43. package/_assets/{categories-4GVQVLVO.js → categories-BbYXk3ti.js} +32 -38
  44. package/_assets/{ccip-D3QGl9dR.js → ccip-CwIu0LfN.js} +1 -1
  45. package/_assets/{ccip-Dk-2B020.js → ccip-Sex5PzD_.js} +1 -1
  46. package/_assets/{collectionPage.styles-D9v6voUC.js → collectionPage.styles-CHbJGgda.js} +5 -5
  47. package/_assets/{controller-BuNan0kN.js → controller-DfTp5YOO.js} +2 -2
  48. package/_assets/{core-BGdcId97.js → core-BEK9pA3q.js} +4 -4
  49. package/_assets/{createSvgIcon-W_IY7RAQ.js → createSvgIcon-CU05oHiV.js} +1 -1
  50. package/_assets/{custom-BvhiNuVl.js → custom-BhGswfT_.js} +1 -1
  51. package/_assets/{data-capture-CmgoF3cw.js → data-capture-nvuZRuzg.js} +1 -1
  52. package/_assets/{dcl-schemas-Dr9BTjb7.js → dcl-schemas-CmtP3U6y.js} +1 -1
  53. package/_assets/{disposePreview-8oEf57G7.js → disposePreview-B96DpOZy.js} +1 -1
  54. package/_assets/{email-DKRlv_02.js → email-CieTjR51.js} +1 -1
  55. package/_assets/{embedded-wallet-DOzPMXtH.js → embedded-wallet-CI-r3uDX.js} +1 -1
  56. package/_assets/{emotion-styled.browser.esm-Ddpetkdy.js → emotion-styled.browser.esm-BlQXcSKx.js} +1 -1
  57. package/_assets/{engine-T7LkHRv2.js → engine-CHP2eI44.js} +1 -1
  58. package/_assets/{errors-CPlWFAEN.js → errors-BAqCaL6O.js} +1 -1
  59. package/_assets/{estimate-l1-fee-DfTmkotx.js → estimate-l1-fee-D_pdXw9y.js} +1 -1
  60. package/_assets/{ethers-BHogtzPD.js → ethers-DejfrZ8i.js} +1 -1
  61. package/_assets/{execute-DY3XaITL.js → execute-BJuyrz_X.js} +2 -2
  62. package/_assets/{features-B0RaX-b9.js → features-B9o2bxOE.js} +1 -1
  63. package/_assets/{fetchTokenMetadata-CYkVqirC.js → fetchTokenMetadata-DeEXEM9T.js} +2 -2
  64. package/_assets/{field.styles-CGEOSW7q.js → field.styles-BYH2xB5-.js} +1 -1
  65. package/_assets/{get-ecosystem-wallet-info-CdwwL-l8.js → get-ecosystem-wallet-info-C5KzHIh2.js} +1 -1
  66. package/_assets/{getBalance-CNjN-sP8.js → getBalance-pkY6oxRI.js} +1 -1
  67. package/_assets/{getNFT-BfCcimFc.js → getNFT-BXJA28mr.js} +1 -1
  68. package/_assets/{getNFT-Dp7PGXVr.js → getNFT-CYm9n3Xd.js} +1 -1
  69. package/_assets/{grid.styles-DszJKyog.js → grid.styles-DoBUqqdT.js} +1 -1
  70. package/_assets/{hashTypedData-Qed0bO5s.js → hashTypedData-DpkGfcdz.js} +1 -1
  71. package/_assets/{hashTypedData-nM2s3pqE.js → hashTypedData-ONHChmVW.js} +1 -1
  72. package/_assets/{in-app-BIFA2e_r.js → in-app-GxZkDa12.js} +1 -1
  73. package/_assets/{in-app-wallet-calls-BS-El40Z.js → in-app-wallet-calls-B91UMKOr.js} +1 -1
  74. package/_assets/{index-N1lD9YVF.js → index--dDDhPCb.js} +1 -1
  75. package/_assets/{index-S3QJcEor.js → index-5GNI01Ww.js} +1 -1
  76. package/_assets/{index-CTeErQvD.js → index-73vZ1csI.js} +1 -1
  77. package/_assets/{index-DdKv_wFT.js → index-8TbyLPoA.js} +2 -2
  78. package/_assets/{index-DTS28jX1.js → index-B-FT9tly.js} +1 -1
  79. package/_assets/{index-DxkHHnyf.js → index-B49Ra42Y.js} +2 -2
  80. package/_assets/{index-DsSyWLy-.js → index-B4d9kGHc.js} +1 -1
  81. package/_assets/{index-DMtPghPO.js → index-B6MX4qjW.js} +3 -3
  82. package/_assets/{index-CnEDwKLU.js → index-BACQuryf.js} +1 -1
  83. package/_assets/{index-oAhypoXM.js → index-BFFeuHAN.js} +1 -1
  84. package/_assets/{index-DBr7T_eT.js → index-BH5LU_4T.js} +1 -1
  85. package/_assets/{index-WJ3npObe.js → index-BJM0Y8Dj.js} +1 -1
  86. package/_assets/{index-rNjzxsiO.js → index-BWh4oQv2.js} +1 -1
  87. package/_assets/{index-DeSzNtSp.js → index-BX8-GtYO.js} +3 -3
  88. package/_assets/{index-BiJICnih.js → index-BYlZ9YbP.js} +1 -1
  89. package/_assets/{index-DBjvq-XI.js → index-B_JiruyT.js} +1 -1
  90. package/_assets/{index-Ba80g_QU.js → index-Bk7mlw_4.js} +1 -1
  91. package/_assets/{index-BZQAtid_.js → index-BkDtNpJ9.js} +1 -1
  92. package/_assets/{index-7NadBeuh.js → index-BkMwrTJ3.js} +1 -1
  93. package/_assets/{index-Bl0AjSkb.js → index-Bk_uITsR.js} +1 -1
  94. package/_assets/{index-B42zNTgr.js → index-Bmq5dKA-.js} +1 -1
  95. package/_assets/{index-DT2QfQDk.js → index-BpBengnA.js} +1 -1
  96. package/_assets/{index-oUhlt_Bb.js → index-BsE741-i.js} +1 -1
  97. package/_assets/{index-BMd58yCH.js → index-Bzt1xZyM.js} +1 -1
  98. package/_assets/{index-DrQ4_MN_.js → index-C33PRPh0.js} +1 -1
  99. package/_assets/{index-Lyytmv-l.js → index-C5F4093w.js} +1 -1
  100. package/_assets/{index-DMepoE3Z.js → index-CIQQJerR.js} +1 -1
  101. package/_assets/{index-CLwUPuZs.js → index-CMV7iaeR.js} +1 -1
  102. package/_assets/{index-DyqDagNo.js → index-CRQCirWA.js} +1 -1
  103. package/_assets/{index-BkRxRlme.js → index-Cakc_FOK.js} +1 -1
  104. package/_assets/{index-DNr9nntg.js → index-CrYXAQF7.js} +1 -1
  105. package/_assets/{index-BxSBXkoJ.js → index-CtybxktV.js} +1 -1
  106. package/_assets/{index-DlVK89jK.js → index-Cu9CgJO0.js} +1 -1
  107. package/_assets/{index-C1B5cU5h.js → index-Cv1Bu0gQ.js} +1 -1
  108. package/_assets/{index-D1j9ElOD.js → index-D3BUTCsu.js} +1 -1
  109. package/_assets/{index-BZON-2rL.js → index-D4Aqu34H.js} +1 -1
  110. package/_assets/{index-lM2OO31J.js → index-DEPPVv3y.js} +3 -3
  111. package/_assets/{index-C9FU26y1.js → index-DGI43LaB.js} +1 -1
  112. package/_assets/{index-_IBCVipy.js → index-DMNGIYYv.js} +1 -1
  113. package/_assets/{index-DYx3Y8hN.js → index-DOiEVNYb.js} +1 -1
  114. package/_assets/index-DOxWmjOH.js +1 -0
  115. package/_assets/{index-DdGXSTOn.js → index-DPmmgd_P.js} +1 -1
  116. package/_assets/index-DbCMsBDL.js +3504 -0
  117. package/_assets/{index-RY9Ezazi.js → index-De1oZcbD.js} +7 -7
  118. package/_assets/{index-CVEuy3QH.js → index-Dfv984cL.js} +1 -1
  119. package/_assets/{index-BVQ9R8Ou.js → index-DhNV3-07.js} +1 -1
  120. package/_assets/{index-CRVeI5_c.js → index-DxSEHau1.js} +1 -1
  121. package/_assets/{index-Ci9bIwy_.js → index-E7P9-xl1.js} +1 -1
  122. package/_assets/{index-U9sHU96u.js → index-G6kG-9qx.js} +1 -1
  123. package/_assets/{index-EMfiBMg7.js → index-INHGq5Es.js} +1 -1
  124. package/_assets/index-JweqbyGF.js +2 -0
  125. package/_assets/{index-DpxbmIMg.js → index-L_H5aHd6.js} +1 -1
  126. package/_assets/{index-ClflEUAF.js → index-OqCfgEJv.js} +1 -1
  127. package/_assets/{index-CBJPuKa9.js → index-OxDwxhIP.js} +1 -1
  128. package/_assets/{index-C2Q5s1eA.js → index-_943ql8C.js} +1 -1
  129. package/_assets/{index-CzV_L3_6.js → index-__99MHKr.js} +2 -2
  130. package/_assets/{index-BiwxPZf9.js → index-l4-9ZZLe.js} +3 -3
  131. package/_assets/{index-CAAOpbIF.js → index-t0T-6ZrA.js} +1 -1
  132. package/_assets/{index.es-BwDqaf8R.js → index.es-7bD3vSL6.js} +4 -4
  133. package/_assets/{index.es-Dcp_TMfU.js → index.es-DD8zy1OU.js} +1 -1
  134. package/_assets/{index.es-BmKNbSKx.js → index.es-DdtYF7po.js} +1 -1
  135. package/_assets/{localBatchGatewayRequest-JfP-082C.js → localBatchGatewayRequest-Cqcm6wSH.js} +1 -1
  136. package/_assets/{networks-BCXn0uun.js → networks-BsQOwKdI.js} +1 -1
  137. package/_assets/{onramp-BC8u85Rq.js → onramp-CutBYUPg.js} +1 -1
  138. package/_assets/{openzeppelin-BA7UqeqU.js → openzeppelin-K-AgEyIf.js} +1 -1
  139. package/_assets/{parseNft-zNfP6wMG.js → parseNft-pYm9OVKe.js} +2 -2
  140. package/_assets/{parseSignature-BqSmw9-v.js → parseSignature-BrLHTUOQ.js} +3 -3
  141. package/_assets/{parseSignature-DWC-KHKy.js → parseSignature-DnyPA3OO.js} +1 -1
  142. package/_assets/{passkeys-CIu_Utx8.js → passkeys-zi3xVlV1.js} +1 -1
  143. package/_assets/{pay-with-exchange-DsggiL3i.js → pay-with-exchange-pvINEHpN.js} +1 -1
  144. package/_assets/{qr-overlay-Drv1G6MN.js → qr-overlay-CLKlyiw2.js} +1 -1
  145. package/_assets/{receive-CeqabMKU.js → receive-BLXAcZ6B.js} +1 -1
  146. package/_assets/{resolveImplementation-CQyxSY4d.js → resolveImplementation-CfgIWk0L.js} +1 -1
  147. package/_assets/{rpc-B3h6KQXA.js → rpc-C2ZJH6qL.js} +1 -1
  148. package/_assets/{secp256k1-i_L0DASD.js → secp256k1--GaGebUJ.js} +1 -1
  149. package/_assets/{secp256k1-CrlTAPJ_.js → secp256k1-BPdRWJXL.js} +1 -1
  150. package/_assets/{secp256k1-B5_ud9a2.js → secp256k1-DQNL-k-L.js} +1 -1
  151. package/_assets/{send-u523DWGF.js → send-Cl_aA-ga.js} +1 -1
  152. package/_assets/{send-batch-transaction-BsS_vCy3.js → send-batch-transaction-1ElceULH.js} +1 -1
  153. package/_assets/{send-eip712-transaction-Cr4-Q79f.js → send-eip712-transaction-BV_DsAbU.js} +2 -2
  154. package/_assets/{send-gasless-transaction-BGa7BHKv.js → send-gasless-transaction-eTi92Rfc.js} +2 -2
  155. package/_assets/{send-transaction-Ckey7MpC.js → send-transaction-DWimy5qX.js} +2 -2
  156. package/_assets/{sendMetaTransaction-C_M5KgcT.js → sendMetaTransaction-B6HBQ8NH.js} +1 -1
  157. package/_assets/{sendRawTransaction-C7O5sdy-.js → sendRawTransaction-6C6FbT-9.js} +3 -3
  158. package/_assets/{serializeTransaction-Bqahk7NV.js → serializeTransaction-DJpTnAzh.js} +1 -1
  159. package/_assets/{session-proposal-10rDfTdh.js → session-proposal-B1fE_9QJ.js} +1 -1
  160. package/_assets/{session-request-DLQ4W5j6.js → session-request-DVlIT2Cz.js} +2 -2
  161. package/_assets/{signing-DgL5hw-1.js → signing-C2OtEE_7.js} +3 -3
  162. package/_assets/{socials-Iclu6gpv.js → socials-CwiK-Oz5.js} +1 -1
  163. package/_assets/{styled-BtpmW8vE.js → styled-INC_AiMB.js} +2 -2
  164. package/_assets/{swaps-Dio5DiT_.js → swaps-Cz6uslns.js} +1 -1
  165. package/_assets/{thirdweb-0ZVJwYkE.js → thirdweb-QagPg_5G.js} +3 -3
  166. package/_assets/{to-serializable-transaction-DegngUV6.js → to-serializable-transaction-CI3ePtUl.js} +2 -2
  167. package/_assets/{transactionReceipt-CmwM9KP5.js → transactionReceipt-B2jt8_c5.js} +1 -1
  168. package/_assets/{transactions-DELzUAyE.js → transactions-DuxoNdoM.js} +1 -1
  169. package/_assets/{useCreditPacks-CfD1NWa_.js → useCreditPacks-CeoLpXxe.js} +1 -1
  170. package/_assets/{useImportable-BT9O6VkF.js → useImportable-CHlGR9sz.js} +1 -1
  171. package/_assets/{useInfiniteGrid-DtKMGQpL.js → useInfiniteGrid-D9jUBgv1.js} +1 -1
  172. package/_assets/{useTheme-DWUAjMsm.js → useTheme-HGI9qk_L.js} +1 -1
  173. package/_assets/{verifyHash-Dfknpu50.js → verifyHash-BWYK-_oQ.js} +1 -1
  174. package/_assets/{w3m-modal-CdoCVhdl.js → w3m-modal-C_cXhjYQ.js} +1 -1
  175. package/_assets/{w3m-modal-C0qGnhfo.js → w3m-modal-DeCOfGwP.js} +1 -1
  176. package/_assets/{wait-for-tx-receipt-Bwjk5Mq0.js → wait-for-tx-receipt-D52q1hNL.js} +1 -1
  177. package/_assets/{wallets-CTtGK85J.js → wallets-BiRgfoDB.js} +5 -5
  178. package/_assets/{web-connector-DVU2yQ5E.js → web-connector-CI1NmWV2.js} +3 -3
  179. package/_assets/{writeContract-C0uKNOQ8.js → writeContract-J3cBsNY4.js} +1 -1
  180. package/_assets/{zoraTestnet-CwVNTWsU.js → zoraTestnet-zRF1Vikt.js} +1 -1
  181. package/index.html +11 -11
  182. package/package.json +2 -2
  183. package/_assets/LazyEmoteControls-DBB9eg39.js +0 -2
  184. package/_assets/index-BIBRNTUK.js +0 -3386
  185. package/_assets/index-DWVWkLU-.js +0 -2
  186. package/_assets/index-qY7j72YC.js +0 -1
@@ -1 +1 @@
1
- import{r}from"./react-DehiWSvs.js";import{p as n}from"./dcl-schemas-Dr9BTjb7.js";function f(){const e=r.useRef(null),[o,c]=r.useState(!0);return r.useEffect(()=>{const t=e.current;if(!t||typeof IntersectionObserver>"u")return;const s=new IntersectionObserver(i=>c(i.some(a=>a.isIntersecting)),{rootMargin:"200px"});return s.observe(t),()=>s.disconnect()},[]),{ref:e,active:o}}function d(e){if(e)try{n.sendMessage(e,n.PreviewMessageType.CONTROLLER_REQUEST,{id:`dispose-${Date.now()}`,namespace:"scene",method:"cleanup",params:[]})}catch{}}export{d,f as u};
1
+ import{r}from"./react-DehiWSvs.js";import{p as n}from"./dcl-schemas-CmtP3U6y.js";function f(){const e=r.useRef(null),[o,c]=r.useState(!0);return r.useEffect(()=>{const t=e.current;if(!t||typeof IntersectionObserver>"u")return;const s=new IntersectionObserver(i=>c(i.some(a=>a.isIntersecting)),{rootMargin:"200px"});return s.observe(t),()=>s.disconnect()},[]),{ref:e,active:o}}function d(e){if(e)try{n.sendMessage(e,n.PreviewMessageType.CONTROLLER_REQUEST,{id:`dispose-${Date.now()}`,namespace:"scene",method:"cleanup",params:[]})}catch{}}export{d,f as u};
@@ -1,4 +1,4 @@
1
- import{d as S}from"./index-DeSzNtSp.js";import{c as d}from"./index-CBJPuKa9.js";import{W as C}from"./index-oAhypoXM.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-ipn1OWk5.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-CRVeI5_c.js";import"./index-DYx3Y8hN.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-CLwUPuZs.js";import"./index-C2Q5s1eA.js";import{au as T}from"./NetworkUtil-EoWQDMpU.js";import"./index-BIBRNTUK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-BHogtzPD.js";import"./intl-CBcMB1D2.js";import"./index-DWVWkLU-.js";import"./events-DQ172AOg.js";import"./index-EMfiBMg7.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-CnEDwKLU.js";import"./index.es-BmKNbSKx.js";import"./browser-ponyfill-I5CKtKME.js";import"./index-WJ3npObe.js";import"./async-directive-BRxn_Py3.js";import"./index-D1j9ElOD.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
1
+ import{d as S}from"./index-BX8-GtYO.js";import{c as d}from"./index-OxDwxhIP.js";import{W as C}from"./index-BFFeuHAN.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-DyHElSGY.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-DxSEHau1.js";import"./index-DOiEVNYb.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-CMV7iaeR.js";import"./index-_943ql8C.js";import{au as T}from"./NetworkUtil-EoWQDMpU.js";import"./index-DbCMsBDL.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./index-JweqbyGF.js";import"./events-DQ172AOg.js";import"./index-INHGq5Es.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-BACQuryf.js";import"./index.es-DdtYF7po.js";import"./browser-ponyfill-I5CKtKME.js";import"./index-BJM0Y8Dj.js";import"./async-directive-BRxn_Py3.js";import"./index-D3BUTCsu.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
2
2
  wui-icon-box {
3
3
  height: ${({spacing:o})=>o[16]};
4
4
  width: ${({spacing:o})=>o[16]};
@@ -1,4 +1,4 @@
1
- import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-DeSzNtSp.js";import{c as w}from"./index-CBJPuKa9.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-ipn1OWk5.js";import"./index-DTS28jX1.js";import{au as D}from"./NetworkUtil-EoWQDMpU.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-WJ3npObe.js";import{H as I}from"./HelpersUtil-Bwy8o8bw.js";import"./index-D1j9ElOD.js";import"./index-DpxbmIMg.js";import"./index-CLwUPuZs.js";import"./index-CRVeI5_c.js";import"./index-DYx3Y8hN.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-BIBRNTUK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-BHogtzPD.js";import"./intl-CBcMB1D2.js";import"./index-DWVWkLU-.js";import"./events-DQ172AOg.js";import"./index-EMfiBMg7.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-CnEDwKLU.js";import"./index.es-BmKNbSKx.js";import"./browser-ponyfill-I5CKtKME.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-Di3dRDAF.js";const ie=Y`
1
+ import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-BX8-GtYO.js";import{c as w}from"./index-OxDwxhIP.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-DyHElSGY.js";import"./index-B-FT9tly.js";import{au as D}from"./NetworkUtil-EoWQDMpU.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-BJM0Y8Dj.js";import{H as I}from"./HelpersUtil-BsEaPmaI.js";import"./index-D3BUTCsu.js";import"./index-L_H5aHd6.js";import"./index-CMV7iaeR.js";import"./index-DxSEHau1.js";import"./index-DOiEVNYb.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-DbCMsBDL.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./index-JweqbyGF.js";import"./events-DQ172AOg.js";import"./index-INHGq5Es.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-BACQuryf.js";import"./index.es-DdtYF7po.js";import"./browser-ponyfill-I5CKtKME.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-Di3dRDAF.js";const ie=Y`
2
2
  div {
3
3
  width: 100%;
4
4
  }
@@ -1 +1 @@
1
- import{aa as k,ab as A,ac as $,ad as P,aY as O,aZ as B,a_ as M,a$ as U,b0 as D,b1 as V,b2 as q,b3 as G}from"./index-BIBRNTUK.js";import{r as y,j as N}from"./react-DehiWSvs.js";import{g as L,a as W,c as Y,b as Z}from"./clsx-WwvpwSg0.js";import{s as H}from"./styled-BtpmW8vE.js";function J(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const K=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Q=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return Z(t,J,a)},X=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,K),c=y.isValidElement(t)&&t.type==="svg",s=$({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=Q(s);return N.jsxs(X,$({as:m,className:Y(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return V(r,a,t),q(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,_){var z=f&&n.as||t,S="",C=[],b=n;if(n.theme==null){b={};for(var I in n)b[I]=n[I];b.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,C,n.className):n.className!=null&&(S=n.className+" ");var F=D(i.concat(C),v.registered,b);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,_&&(w.ref=_),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var _=o(n,$({},r,v,{shouldForwardProp:E(s,v,!0)}));return _.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
1
+ import{aa as k,ab as A,ac as $,ad as P,aZ as O,a_ as B,a$ as M,b0 as U,b1 as D,b2 as V,b3 as q,b4 as G}from"./index-DbCMsBDL.js";import{r as y,j as N}from"./react-DehiWSvs.js";import{g as L,a as W,c as Z,b as H}from"./clsx-WwvpwSg0.js";import{s as J}from"./styled-INC_AiMB.js";function K(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Q=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return H(t,K,a)},Y=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,Q),c=y.isValidElement(t)&&t.type==="svg",s=$({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=X(s);return N.jsxs(Y,$({as:m,className:Z(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return V(r,a,t),q(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,_){var z=f&&n.as||t,S="",C=[],b=n;if(n.theme==null){b={};for(var I in n)b[I]=n[I];b.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,C,n.className):n.className!=null&&(S=n.className+" ");var F=D(i.concat(C),v.registered,b);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,_&&(w.ref=_),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var _=o(n,$({},r,v,{shouldForwardProp:E(s,v,!0)}));return _.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
@@ -1 +1 @@
1
- import{g as p}from"./to-serializable-transaction-DegngUV6.js";import{s as w,r as y}from"./prepare-contract-call-BnXbUbQT.js";import{w as h}from"./wait-for-tx-receipt-Bwjk5Mq0.js";import"./index-BIBRNTUK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-BHogtzPD.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./transactionReceipt-CmwM9KP5.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
1
+ import{g as p}from"./to-serializable-transaction-CI3ePtUl.js";import{s as w,r as y}from"./prepare-contract-call-BnXbUbQT.js";import{w as h}from"./wait-for-tx-receipt-D52q1hNL.js";import"./index-DbCMsBDL.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./transactionReceipt-B2jt8_c5.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
@@ -1 +1 @@
1
- import{b as n,C as o}from"./index-BIBRNTUK.js";import{i as u,c as i,a}from"./authorizations-gBmiqrl2.js";function c(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function l(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function m(r,e,s={}){if(c(r))return n("errors.rejected");if(u(r))return n("errors.wrongNetwork",{current:i(r.current),required:i(r.required)});if(a(r))return n("errors.walletUnauthorized");if(s.sale){const t=(r.message??"").toLowerCase();if(t.includes("insufficient"))return n("errors.insufficient",{currency:o.name});if(/not for sale|not found|no active listing|404/.test(t))return n("errors.soldOrRemoved");if(t.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{l as a,m as f,c as i};
1
+ import{b as n,C as o}from"./index-DbCMsBDL.js";import{i as u,c as i,a}from"./authorizations-w-yCHVpU.js";function c(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function l(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function m(r,e,s={}){if(c(r))return n("errors.rejected");if(u(r))return n("errors.wrongNetwork",{current:i(r.current),required:i(r.required)});if(a(r))return n("errors.walletUnauthorized");if(s.sale){const t=(r.message??"").toLowerCase();if(t.includes("insufficient"))return n("errors.insufficient",{currency:o.name});if(/not for sale|not found|no active listing|404/.test(t))return n("errors.soldOrRemoved");if(t.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{l as a,m as f,c as i};
@@ -1 +1 @@
1
- import{g as s,t as n}from"./to-serializable-transaction-DegngUV6.js";import{r as c}from"./prepare-contract-call-BnXbUbQT.js";import{s as m}from"./signing-DgL5hw-1.js";import"./index-BIBRNTUK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-BHogtzPD.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./get-bytecode-knYex1Eu.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};
1
+ import{g as s,t as n}from"./to-serializable-transaction-CI3ePtUl.js";import{r as c}from"./prepare-contract-call-BnXbUbQT.js";import{s as m}from"./signing-C2OtEE_7.js";import"./index-DbCMsBDL.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./get-bytecode-knYex1Eu.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};