@dcl/shop 0.1.0-29819311586.commit-3ce85a5 → 0.1.0-29820201061.commit-6e93aab

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 (173) hide show
  1. package/assets/{AnimatedBackground-C6HDued7.js → AnimatedBackground-DAWtZAKT.js} +3 -3
  2. package/assets/{Assets-7uXLSoNw.js → Assets-BfwpVa8T.js} +1 -1
  3. package/assets/Cart-BMcaDkFj.js +3 -0
  4. package/assets/{Cart-C75800mc.css → Cart-BU0ex2lY.css} +1 -1
  5. package/assets/{CircularProgress-hz1p9NKk.js → CircularProgress-DbOPAlwJ.js} +1 -1
  6. package/assets/{Collection-DRmm6o7-.js → Collection-D9pgNA_k.js} +1 -1
  7. package/assets/{CollectionCarousel-FF2VKnCi.css → CollectionCarousel-BRpR9AB4.css} +1 -1
  8. package/assets/{CollectionCarousel-Do5ix6VD.js → CollectionCarousel-Bv4JmxDk.js} +1 -1
  9. package/assets/{Creator-CwCVOEmJ.js → Creator-BUh9bTpd.js} +1 -1
  10. package/assets/{CssVarsProvider-C7DqQE-t.js → CssVarsProvider-w2c1yhxv.js} +1 -1
  11. package/assets/{ExchangeController-Zq_jjUSk.js → ExchangeController-SpKxAxin.js} +1 -1
  12. package/assets/{GetCredits-C-iII2L9.js → GetCredits-N_TH5qjR.js} +1 -1
  13. package/assets/{HelpersUtil-eRiM9Nak.js → HelpersUtil-Dk0fX2VO.js} +1 -1
  14. package/assets/{ImportListings-Bgk2Mmaj.js → ImportListings-DeGUWpef.js} +1 -1
  15. package/assets/ItemDetail-oeRcJNYq.js +29 -0
  16. package/assets/{LoadMore-CS8RGFW1.js → LoadMore-CG-U1l6R.js} +1 -1
  17. package/assets/{MarketCheckout-XY4qv1OO.js → MarketCheckout-ok-4xTbs.js} +1 -1
  18. package/assets/{MyAssets-C8b7YCwJ.js → MyAssets-CvtYfSpu.js} +1 -1
  19. package/assets/{MyFavorites-BYEWRbKE.js → MyFavorites-Dd22LHHj.js} +1 -1
  20. package/assets/{MyPurchases-wqVy_Bkw.js → MyPurchases-V1RhxGky.js} +1 -1
  21. package/assets/{NotFound-D4BypoGj.js → NotFound-DiPtPjNv.js} +1 -1
  22. package/assets/{StoreSettings-D9EJPHZI.js → StoreSettings-DnT3y2OO.js} +1 -1
  23. package/assets/{Success-ZazAxkkG.js → Success-Cty_2pyi.js} +1 -1
  24. package/assets/{SwapController-BjW71vDF.js → SwapController-DaN0jm-H.js} +1 -1
  25. package/assets/{TradeService-DKtrXol_.js → TradeService-BvnZvZgd.js} +1 -1
  26. package/assets/{W3MFrameProviderSingleton-B7VYZoUb.js → W3MFrameProviderSingleton-0X-5xnm-.js} +3 -3
  27. package/assets/{WebCryptoP256-pJWLp366.js → WebCryptoP256-CTN3luLA.js} +1 -1
  28. package/assets/{basic-T4VH8T7G.js → basic-QSXc4V2D.js} +1 -1
  29. package/assets/{biconomy-PGFwwGtI.js → biconomy-CqIIitTh.js} +1 -1
  30. package/assets/{buy-CEPUtw6l.js → buy-BB1nNoHF.js} +1 -1
  31. package/assets/{buy-gasless-DFUBpeub.js → buy-gasless-Dk-vGVaA.js} +1 -1
  32. package/assets/cart-checkout-Dq_IfS2V.js +1 -0
  33. package/assets/{categories-CzHfYX4r.js → categories-B5rMzFhG.js} +1 -1
  34. package/assets/{ccip-D39Yw1id.js → ccip-CwgUOIwr.js} +1 -1
  35. package/assets/{ccip-CysEx_-e.js → ccip-DgWVV-Cq.js} +1 -1
  36. package/assets/{collection-ZVT8nPpy.js → collection-Cx_FbJvw.js} +1 -1
  37. package/assets/{controller-BjiC4vCa.js → controller-C-XHoEvy.js} +2 -2
  38. package/assets/{core-Bbl8k9ou.js → core-CfiWie_R.js} +4 -4
  39. package/assets/{custom-BjXRzXnf.js → custom-DKVEEouT.js} +1 -1
  40. package/assets/{data-capture-CPbUe_Mu.js → data-capture-DRU0RrJn.js} +1 -1
  41. package/assets/{decimals-dZROqPVx.js → decimals-ClpY8V96.js} +1 -1
  42. package/assets/{decimals-COagLS8Q.js → decimals-DonBY3ph.js} +1 -1
  43. package/assets/{detectExtension-BXF9RLPM.js → detectExtension-B_mnipYI.js} +1 -1
  44. package/assets/{email-BdCU2aT5.js → email-Du5ktVIv.js} +1 -1
  45. package/assets/{embedded-wallet-DeV-AfMB.js → embedded-wallet-D8702brY.js} +1 -1
  46. package/assets/{emotion-styled.browser.esm-DsmsDcnn.js → emotion-styled.browser.esm-D4okznSw.js} +1 -1
  47. package/assets/{engine-Dyy7i-EK.js → engine-CjhboEJw.js} +1 -1
  48. package/assets/{errors-toZUiz_8.js → errors-DLCfzexO.js} +1 -1
  49. package/assets/{estimate-l1-fee-BnAfP2IW.js → estimate-l1-fee-D65JAyU_.js} +1 -1
  50. package/assets/{eth_estimateGas-Dk2BHGEx.js → eth_estimateGas-Dx8A0rQf.js} +1 -1
  51. package/assets/{eth_getStorageAt-LWy_aLD2.js → eth_getStorageAt-Dn97nH7-.js} +1 -1
  52. package/assets/{eth_getTransactionCount-CQEhUg0n.js → eth_getTransactionCount-BsbZubbz.js} +1 -1
  53. package/assets/{extractIPFS-BjekE5Dx.js → extractIPFS-3p5_lVI2.js} +1 -1
  54. package/assets/{features-BUOntu-v.js → features-CEnnVGh1.js} +1 -1
  55. package/assets/{fetchTokenMetadata-CvhQV09t.js → fetchTokenMetadata-BBl6hFMA.js} +2 -2
  56. package/assets/{get-ecosystem-wallet-info-CHjCFyrH.js → get-ecosystem-wallet-info-DJRhUKR8.js} +1 -1
  57. package/assets/{getBalance-B9mjM7Q1.js → getBalance-BjOc81GX.js} +1 -1
  58. package/assets/{getInstalledModules-Dokr0wx4.js → getInstalledModules-B5lc4vdM.js} +1 -1
  59. package/assets/{getNFT-CBnBQM9G.js → getNFT-CL_MHRMI.js} +2 -2
  60. package/assets/{getNFT-DZMkxOcW.js → getNFT-DzSkkUED.js} +1 -1
  61. package/assets/{getOverlayAlpha-CRsCtRg_.js → getOverlayAlpha-CMi-RtY0.js} +1 -1
  62. package/assets/{hashTypedData-BSaySpON.js → hashTypedData-CtS-a__q.js} +1 -1
  63. package/assets/{hashTypedData-CrkyuxIw.js → hashTypedData-DgGGaq3_.js} +1 -1
  64. package/assets/{import-BJhskE6v.js → import-dApKnRUE.js} +1 -1
  65. package/assets/{in-app-wallet-calls-cZgP0Nkb.js → in-app-wallet-calls-DXDKPfo-.js} +1 -1
  66. package/assets/{index-GthN7FEd.js → index-1iy3MjeD.js} +1 -1
  67. package/assets/{index-0MtqGpF_.js → index-9RhtGjkQ.js} +1 -1
  68. package/assets/{index-CNuVc9dE.js → index-9TPYgQJV.js} +1 -1
  69. package/assets/{index-D4wZsAhr.js → index-AXY2OKOi.js} +1 -1
  70. package/assets/{index-DJHCemxt.js → index-B0dfVx8-.js} +1 -1
  71. package/assets/{index-DZRRiKcW.js → index-BEP5YEOP.js} +1 -1
  72. package/assets/{index-D-jlJbT0.js → index-BKHArmb8.js} +1 -1
  73. package/assets/{index-CaWVq5F1.js → index-BTrFeJpK.js} +1 -1
  74. package/assets/{index-02y48U_Y.js → index-BZrziql9.js} +1 -1
  75. package/assets/{index-Bocj8EP1.js → index-B_gop-2P.js} +2 -2
  76. package/assets/index-BbQ0ahsR.css +1 -0
  77. package/assets/{index-FilzlBF3.js → index-Bdviiw0D.js} +1 -1
  78. package/assets/{index-C6soE2Qj.js → index-BeeqvCzC.js} +1 -1
  79. package/assets/{index-g3oU79Zi.js → index-BfjvLXhz.js} +1 -1
  80. package/assets/{index-DWk32FEl.js → index-Bi5nB_Xd.js} +1 -1
  81. package/assets/{index-CVXefuAq.js → index-BtHD2PwE.js} +1 -1
  82. package/assets/{index-DL5oTXPj.js → index-BtWvPi-C.js} +3 -3
  83. package/assets/{index-CYbVfCP4.js → index-C2ou7t9Z.js} +1 -1
  84. package/assets/{index-DO5JrBgZ.js → index-CC9ohYjq.js} +1 -1
  85. package/assets/{index-Bl2L1ibn.js → index-CDOVd3Or.js} +1 -1
  86. package/assets/{index-kb4PCO3h.js → index-CF8dJQWx.js} +2 -2
  87. package/assets/{index-9ixRbsWW.js → index-COYa4blu.js} +1 -1
  88. package/assets/{index-CS10YTx8.js → index-CTL73XUb.js} +1 -1
  89. package/assets/{index-f5Ry7NJF.js → index-CXCPKgIL.js} +1 -1
  90. package/assets/{index-IcU2Nzi-.js → index-ClOq-XK_.js} +1 -1
  91. package/assets/{index-Cp_NOfvB.js → index-Cldj-HLd.js} +1 -1
  92. package/assets/{index-CBJisr2I.js → index-Ct3-b-XG.js} +1 -1
  93. package/assets/{index-CUs2Ik9f.js → index-D-0UbgZb.js} +1 -1
  94. package/assets/{index-D_TT1IA_.js → index-D-FlYCrT.js} +1 -1
  95. package/assets/{index-D2jE21o9.js → index-D2MCniIy.js} +30 -30
  96. package/assets/{index-BNszBPTr.js → index-D4haZmAC.js} +1 -1
  97. package/assets/{index-B208UX4c.js → index-D82p0tCN.js} +1 -1
  98. package/assets/{index-CbQd59c3.js → index-DAotFwIM.js} +1 -1
  99. package/assets/{index-TnwTqyFy.js → index-DFvNyoxW.js} +1 -1
  100. package/assets/{index-CdZ89joC.js → index-DNyAB5T9.js} +2 -2
  101. package/assets/{index-iTvBkd0G.js → index-DQcdNd4L.js} +1 -1
  102. package/assets/{index-DSJK_i26.js → index-DSMcEg86.js} +1 -1
  103. package/assets/{index-DS3xrgMW.js → index-DW6hvVBk.js} +1 -1
  104. package/assets/{index-DpoNV2HN.js → index-Dd1qZUR_.js} +1 -1
  105. package/assets/{index-Oi6ZR4tM.js → index-Dl878bh3.js} +3 -3
  106. package/assets/{index-kdbM7BPm.js → index-DvCxAuAV.js} +1 -1
  107. package/assets/{index-CKy8YgNe.js → index-E3u-0qkh.js} +1 -1
  108. package/assets/{index-DVNqwg2d.js → index-EpjNSbck.js} +1 -1
  109. package/assets/{index-D7oaM2vZ.js → index-F3bWVhlW.js} +1 -1
  110. package/assets/{index-B89Xjz4I.js → index-LsWSCTxf.js} +1 -1
  111. package/assets/{index-BcGrOhJR.js → index-NmO7Zc6p.js} +1 -1
  112. package/assets/{index-CiNrKxR0.js → index-Nzz-X3JR.js} +1 -1
  113. package/assets/{index-D6hOS3tx.js → index-VljTVp5r.js} +1 -1
  114. package/assets/{index-CkW3JF4B.js → index-kj576VV8.js} +1 -1
  115. package/assets/{index-DYoplOYj.js → index-m3ikjlZ9.js} +1 -1
  116. package/assets/{index-CFiqakvv.js → index-mQ3fD2pW.js} +1 -1
  117. package/assets/{index-CM_3ac_C.js → index-rIXEHCUI.js} +1 -1
  118. package/assets/{index.es-nxWF9ZiM.js → index.es-BKvDPMdj.js} +4 -4
  119. package/assets/{index.es-Ch6S2Gk2.js → index.es-D4zORoHW.js} +1 -1
  120. package/assets/{index.es-axXv0ESL.js → index.es-jAGAALqM.js} +1 -1
  121. package/assets/{localBatchGatewayRequest-Bs3nE-X-.js → localBatchGatewayRequest-DSTbEhrP.js} +1 -1
  122. package/assets/{mana-rate-VLUqXwj8.js → mana-rate-8umEj7_T.js} +1 -1
  123. package/assets/{networks-wkZMvAoy.js → networks-cttqYPBD.js} +1 -1
  124. package/assets/{onramp-SXq1C0nL.js → onramp-O3BTWx9-.js} +1 -1
  125. package/assets/{openzeppelin-DJfYdul8.js → openzeppelin-CQac0BGV.js} +1 -1
  126. package/assets/{ownerOf-Caz8dkdv.js → ownerOf-BNp_oN81.js} +1 -1
  127. package/assets/{parseNft-CAi7ylrV.js → parseNft-CaODLwGA.js} +2 -2
  128. package/assets/{parseSignature-DOZQ4r_s.js → parseSignature-BUlJFwOG.js} +3 -3
  129. package/assets/{parseSignature-CkfsQZjR.js → parseSignature-Bx6QTnH6.js} +1 -1
  130. package/assets/{pay-with-exchange-D6Jfa9dm.js → pay-with-exchange-3gqLKVFv.js} +1 -1
  131. package/assets/{payments-Bqo0NGsO.js → payments-DpS98zAJ.js} +1 -1
  132. package/assets/{qr-overlay-ThBPC7Uy.js → qr-overlay-BTYTNs3e.js} +1 -1
  133. package/assets/{receive-CNeZjKOR.js → receive-GjDfyQpR.js} +1 -1
  134. package/assets/{resolveImplementation-CDlVaAuZ.js → resolveImplementation-C6kQvPP-.js} +1 -1
  135. package/assets/{rpc-CcS3GZe6.js → rpc-DuJlT0HH.js} +1 -1
  136. package/assets/{secp256k1-BHgXbBWD.js → secp256k1-BWbqqT7z.js} +1 -1
  137. package/assets/{secp256k1-BBvPIPwC.js → secp256k1-BmaDbfrn.js} +1 -1
  138. package/assets/{secp256k1-BUjQGvG0.js → secp256k1-CPZ3QzZL.js} +1 -1
  139. package/assets/{send-idVogVYW.js → send-CO-2udGX.js} +1 -1
  140. package/assets/{send-batch-transaction-C3jcqsNl.js → send-batch-transaction-D2YAYdks.js} +1 -1
  141. package/assets/{send-eip712-transaction-Bfjz7Iz2.js → send-eip712-transaction-CcIzmXkO.js} +2 -2
  142. package/assets/{send-gasless-transaction-Dr5uJ-Wj.js → send-gasless-transaction-B_Vu9cKC.js} +2 -2
  143. package/assets/{sendRawTransaction-C1KYrfUQ.js → sendRawTransaction-zZ1gmwwW.js} +3 -3
  144. package/assets/{serializeTransaction-CvcgsI4m.js → serializeTransaction-BLhvSCIg.js} +1 -1
  145. package/assets/{session-proposal-k0vYn6DB.js → session-proposal-CMJwwypi.js} +1 -1
  146. package/assets/{session-request-BSoj00bs.js → session-request-Bnr_sX_J.js} +2 -2
  147. package/assets/{sha256-GGf28ILw.js → sha256-Cz0lQzvl.js} +1 -1
  148. package/assets/{signing-BruyzTll.js → signing-CvokIB4x.js} +4 -4
  149. package/assets/{socials-DgnpFB9X.js → socials-D4DuECHq.js} +1 -1
  150. package/assets/{swaps-D7rw8rzk.js → swaps-D_hLEEKg.js} +1 -1
  151. package/assets/{thirdweb-BrverVav.js → thirdweb-C_WUiq8w.js} +3 -3
  152. package/assets/{totalSupply-CjOtH9Yt.js → totalSupply-V6l7KoX8.js} +1 -1
  153. package/assets/{trade-encoding-BRf1PROY.js → trade-encoding-CxOU66Zo.js} +1 -1
  154. package/assets/{transactionReceipt-tGNKu9ON.js → transactionReceipt-DxcBIxbU.js} +1 -1
  155. package/assets/{transactions-Cm3JbhyS.js → transactions-CT0Iato6.js} +1 -1
  156. package/assets/{useInfiniteGrid-Bi-bhby3.js → useInfiniteGrid-_2151jJs.js} +1 -1
  157. package/assets/{useStore-B3LU4tKp.js → useStore-_juYfQlk.js} +1 -1
  158. package/assets/{useTheme-DTIK1i5i.js → useTheme-CvQWZTyO.js} +1 -1
  159. package/assets/{useTheme-Dz_KHO78.js → useTheme-hl4D5Ddl.js} +1 -1
  160. package/assets/{verifyHash-Bn5i4mdO.js → verifyHash-Ch4HpC7b.js} +1 -1
  161. package/assets/{w3m-modal-D3vDgcvO.js → w3m-modal-CqER6RMY.js} +1 -1
  162. package/assets/{w3m-modal-BCLI7fp2.js → w3m-modal-s_TWH6MQ.js} +1 -1
  163. package/assets/{wait-for-tx-receipt-C8Go00i1.js → wait-for-tx-receipt-CuxFpJ4i.js} +1 -1
  164. package/assets/{wallets-C4pAW_0w.js → wallets-Pcb-CnJi.js} +6 -6
  165. package/assets/{web-connector-BgaCPDbI.js → web-connector-D2Rc0Q2d.js} +3 -3
  166. package/assets/{writeContract-dqxuoVL6.js → writeContract-6OJ2j59X.js} +1 -1
  167. package/assets/{zoraTestnet-DWM_8Oul.js → zoraTestnet-DWGOJRav.js} +1 -1
  168. package/index.html +11 -11
  169. package/package.json +2 -2
  170. package/assets/Cart-pnGNGkP-.js +0 -3
  171. package/assets/ItemDetail-DGdTMP6D.js +0 -29
  172. package/assets/cart-checkout-CeO81KZq.js +0 -1
  173. package/assets/index-Cc7yK5VV.css +0 -1
@@ -1,4 +1,4 @@
1
- import{a as h,i as d,b as a}from"./lit-element-B3y9oplH.js";import{d as w,r as x,e as b}from"./index-Oi6ZR4tM.js";import{c as m}from"./index-CM_3ac_C.js";import"./index-CiNrKxR0.js";import{O as c,E as g,l as v,C,W as _,R as $}from"./W3MFrameProviderSingleton-B7VYZoUb.js";import{r as R}from"./class-map-CxwNmq0D.js";const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends d{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
1
+ import{a as h,i as d,b as a}from"./lit-element-B3y9oplH.js";import{d as w,r as x,e as b}from"./index-Dl878bh3.js";import{c as m}from"./index-rIXEHCUI.js";import"./index-Nzz-X3JR.js";import{O as c,E as g,l as v,C,W as _,R as $}from"./W3MFrameProviderSingleton-0X-5xnm-.js";import{r as R}from"./class-map-CxwNmq0D.js";const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends d{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
2
2
  <wui-flex
3
3
  .padding=${["4","3","3","3"]}
4
4
  flexDirection="column"
@@ -1,4 +1,4 @@
1
- import{e as ot}from"./index-kb4PCO3h.js";import{e as nn}from"./react-yytiy0wi.js";import{p as Se,g as ge}from"./sentry-BPJvc5GU.js";import{c as on}from"./index-Dbqfw_1n.js";var Pe={};/*! *****************************************************************************
1
+ import{e as ot}from"./index-CF8dJQWx.js";import{e as nn}from"./react-yytiy0wi.js";import{p as Se,g as ge}from"./sentry-BPJvc5GU.js";import{c as on}from"./index-Dbqfw_1n.js";var Pe={};/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1 +1 @@
1
- import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-C1KYrfUQ.js";import{c as I,e as q}from"./hashTypedData-CrkyuxIw.js";import"./NetworkUtil-CLSFaUe_.js";import"./sentry-BPJvc5GU.js";import"./react-yytiy0wi.js";import"./index-D2jE21o9.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-w2AslR0v.js";import"./intl-CBcMB1D2.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,v as getSDKVersion,S as isObjectEIP712TypedData};
1
+ import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-zZ1gmwwW.js";import{c as I,e as q}from"./hashTypedData-DgGGaq3_.js";import"./NetworkUtil-CLSFaUe_.js";import"./sentry-BPJvc5GU.js";import"./react-yytiy0wi.js";import"./index-D2MCniIy.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-w2AslR0v.js";import"./intl-CBcMB1D2.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,v as getSDKVersion,S as isObjectEIP712TypedData};
@@ -1,4 +1,4 @@
1
- import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-Oi6ZR4tM.js";import{c as p,U as F}from"./index-CM_3ac_C.js";import"./index-CKy8YgNe.js";import"./index-g3oU79Zi.js";import"./index-BNszBPTr.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-B7VYZoUb.js";import"./index-DS3xrgMW.js";import{W as Fs,a as Ms}from"./index-DVNqwg2d.js";import"./index-CbQd59c3.js";import"./index-DJHCemxt.js";import"./index-DWk32FEl.js";import{au as S}from"./NetworkUtil-CLSFaUe_.js";import{H as Jt}from"./HelpersUtil-eRiM9Nak.js";import{n as Zi}from"./index-DpoNV2HN.js";import{E as Q}from"./ExchangeController-Zq_jjUSk.js";import"./index-B208UX4c.js";import"./index-Bl2L1ibn.js";import"./index-9ixRbsWW.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-GthN7FEd.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index-FilzlBF3.js";import"./index-D_TT1IA_.js";import"./index-f5Ry7NJF.js";import"./index-0MtqGpF_.js";import{O as bt}from"./index-CFiqakvv.js";import{e as en}from"./index-DZRRiKcW.js";import"./index-CiNrKxR0.js";import"./index-CUs2Ik9f.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-DSJK_i26.js";import"./index-D2jE21o9.js";import"./react-yytiy0wi.js";import"./dcl-schemas-BICTSpB5.js";import"./sentry-BPJvc5GU.js";import"./ethers-w2AslR0v.js";import"./intl-CBcMB1D2.js";import"./index-kb4PCO3h.js";import"./events-DQ172AOg.js";import"./index-IcU2Nzi-.js";import"./index-Dbqfw_1n.js";import"./index-nibyPLVP.js";import"./index-D4wZsAhr.js";import"./index.es-axXv0ESL.js";import"./browser-ponyfill-Cl4XgbUp.js";import"./browser-ponyfill-jziBOMa-.js";import"./ConstantsUtil-BbIzv5xN.js";import"./async-directive-BRxn_Py3.js";import"./browser-L8b8z1bK.js";const nn=v`
1
+ import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-Dl878bh3.js";import{c as p,U as F}from"./index-rIXEHCUI.js";import"./index-E3u-0qkh.js";import"./index-BfjvLXhz.js";import"./index-D4haZmAC.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-0X-5xnm-.js";import"./index-DW6hvVBk.js";import{W as Fs,a as Ms}from"./index-EpjNSbck.js";import"./index-DAotFwIM.js";import"./index-B0dfVx8-.js";import"./index-Bi5nB_Xd.js";import{au as S}from"./NetworkUtil-CLSFaUe_.js";import{H as Jt}from"./HelpersUtil-Dk0fX2VO.js";import{n as Zi}from"./index-Dd1qZUR_.js";import{E as Q}from"./ExchangeController-SpKxAxin.js";import"./index-D82p0tCN.js";import"./index-CDOVd3Or.js";import"./index-COYa4blu.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-1iy3MjeD.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index-Bdviiw0D.js";import"./index-D-FlYCrT.js";import"./index-CXCPKgIL.js";import"./index-9RhtGjkQ.js";import{O as bt}from"./index-mQ3fD2pW.js";import{e as en}from"./index-BEP5YEOP.js";import"./index-Nzz-X3JR.js";import"./index-D-0UbgZb.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-DSMcEg86.js";import"./index-D2MCniIy.js";import"./react-yytiy0wi.js";import"./dcl-schemas-BICTSpB5.js";import"./sentry-BPJvc5GU.js";import"./ethers-w2AslR0v.js";import"./intl-CBcMB1D2.js";import"./index-CF8dJQWx.js";import"./events-DQ172AOg.js";import"./index-ClOq-XK_.js";import"./index-Dbqfw_1n.js";import"./index-nibyPLVP.js";import"./index-AXY2OKOi.js";import"./index.es-jAGAALqM.js";import"./browser-ponyfill-Cl4XgbUp.js";import"./browser-ponyfill-jziBOMa-.js";import"./ConstantsUtil-BbIzv5xN.js";import"./async-directive-BRxn_Py3.js";import"./browser-L8b8z1bK.js";const nn=v`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{w as k,i as W,b as v}from"./lit-element-B3y9oplH.js";import{n as y}from"./class-map-CxwNmq0D.js";import{c as I}from"./index-CM_3ac_C.js";import"./index-CKy8YgNe.js";import{Q as M}from"./browser-L8b8z1bK.js";import{d as O,r as N}from"./index-Oi6ZR4tM.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(M.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
1
+ import{w as k,i as W,b as v}from"./lit-element-B3y9oplH.js";import{n as y}from"./class-map-CxwNmq0D.js";import{c as I}from"./index-rIXEHCUI.js";import"./index-E3u-0qkh.js";import{Q as M}from"./browser-L8b8z1bK.js";import{d as O,r as N}from"./index-Dl878bh3.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(M.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
2
2
  <rect
3
3
  fill=${o===2?"var(--apkt-colors-black)":"var(--apkt-colors-white)"}
4
4
  width=${o===0?m-10:m}
@@ -1,4 +1,4 @@
1
- import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-CM_3ac_C.js";import{d as c}from"./index-Oi6ZR4tM.js";const p=c`
1
+ import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-rIXEHCUI.js";import{d as c}from"./index-Dl878bh3.js";const p=c`
2
2
  :host {
3
3
  display: block;
4
4
  background: linear-gradient(