@dcl/shop 0.1.0-28716868442.commit-8bfb3b0 → 0.1.0-28747559789.commit-b08a3f4

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 (154) hide show
  1. package/assets/{Assets-nmQB2810.js → Assets-BCLCAKkG.js} +1 -1
  2. package/assets/{Cart-CVq8ErN4.js → Cart-D_uUaPeS.js} +1 -1
  3. package/assets/{Collection-DrWaGsbD.js → Collection-Vt78ZVWj.js} +1 -1
  4. package/assets/{Creator-CODX4HY-.js → Creator-DSADkLM8.js} +1 -1
  5. package/assets/{ExchangeController-DGYlS1u1.js → ExchangeController-CxWGt4bg.js} +1 -1
  6. package/assets/{GetCredits-BJ-vtPKx.js → GetCredits-BL6P_bTG.js} +2 -2
  7. package/assets/{HelpersUtil-Cs7A9lff.js → HelpersUtil-CEkVbiDE.js} +1 -1
  8. package/assets/{ImportListings-DWEJuGBQ.js → ImportListings-CeBNGMqt.js} +1 -1
  9. package/assets/{ItemDetail-CLZiYPr_.js → ItemDetail--nBe93p1.js} +1 -1
  10. package/assets/{Market-C5YZkU0k.js → Market-CJzihvOn.js} +1 -1
  11. package/assets/{MyAssets-DiQ1f-Nx.js → MyAssets-DKAkMokI.js} +1 -1
  12. package/assets/{MyFavorites-D2neF-WT.js → MyFavorites-CzISOTRJ.js} +1 -1
  13. package/assets/{MyPurchases-CX-sT4T9.js → MyPurchases-BLO3SjFm.js} +1 -1
  14. package/assets/{RealCheckout-DVYTPQMi.js → RealCheckout-Bybyt3-i.js} +1 -1
  15. package/assets/{Success-Dty0MEac.js → Success-CagRAQUd.js} +1 -1
  16. package/assets/{SwapController-CTsLqo0R.js → SwapController-tAVuWRKF.js} +1 -1
  17. package/assets/{TradeService-Co6yXz1n.js → TradeService-DZbYERow.js} +1 -1
  18. package/assets/{W3MFrameProviderSingleton-DBf03HGk.js → W3MFrameProviderSingleton-DWW0KqqF.js} +3 -3
  19. package/assets/{WebCryptoP256-BMVi41Tf.js → WebCryptoP256-24nnd0cw.js} +1 -1
  20. package/assets/{basic-BKlH1yZE.js → basic-CtWu9k1f.js} +1 -1
  21. package/assets/{biconomy-BuC8Y20q.js → biconomy-Bxhd55H7.js} +1 -1
  22. package/assets/{buy-qVYsiH8c.js → buy-Fa44beN-.js} +1 -1
  23. package/assets/{buy-gasless-EwLKJESl.js → buy-gasless-C_Lvd8qQ.js} +1 -1
  24. package/assets/{ccip-BhXlCEl_.js → ccip-BYFsrFZk.js} +1 -1
  25. package/assets/{ccip-BXAlyEXK.js → ccip-Dm4_TaKT.js} +1 -1
  26. package/assets/{collection-yK7CsBpq.js → collection-DOkBn0OO.js} +1 -1
  27. package/assets/{controller-D31V5T7x.js → controller-Ba4SKPnr.js} +2 -2
  28. package/assets/{core-HiY9JG8Q.js → core-CVWbI_Qz.js} +4 -4
  29. package/assets/{custom-CNeK1SBe.js → custom-3CDpAjgV.js} +1 -1
  30. package/assets/{data-capture-BGCV8f_8.js → data-capture-BAycZH-f.js} +1 -1
  31. package/assets/{decimals-eyiqtEAM.js → decimals-CBRo6r_O.js} +1 -1
  32. package/assets/decimals-CFIuBn4O.js +1 -0
  33. package/assets/{detectExtension-HGgsLFYa.js → detectExtension-cxPRDE5L.js} +1 -1
  34. package/assets/{email-D3mSaTDc.js → email-BeMaJ8IG.js} +1 -1
  35. package/assets/{embedded-wallet-BIpOn63k.js → embedded-wallet-BrSWVEq_.js} +1 -1
  36. package/assets/{engine-Cp4bGvGY.js → engine-1nOaGybU.js} +1 -1
  37. package/assets/{estimate-l1-fee-DqCr-VRj.js → estimate-l1-fee-tu-8MKck.js} +1 -1
  38. package/assets/{eth_estimateGas-Btj3BdU3.js → eth_estimateGas-BPzcx4wB.js} +1 -1
  39. package/assets/{eth_getStorageAt-cAsXEzwb.js → eth_getStorageAt-DJEACI1v.js} +1 -1
  40. package/assets/{eth_getTransactionCount-9mRngMvR.js → eth_getTransactionCount-LgewymWn.js} +1 -1
  41. package/assets/{extractIPFS-Cos3MMqA.js → extractIPFS-kdthyh93.js} +1 -1
  42. package/assets/{features-CS9ITEyv.js → features-CghtI6H3.js} +1 -1
  43. package/assets/{fetchTokenMetadata--27nDLvT.js → fetchTokenMetadata-C3MdOGqH.js} +2 -2
  44. package/assets/{get-ecosystem-wallet-info-DsGpr1v9.js → get-ecosystem-wallet-info-Cf9SKYH0.js} +1 -1
  45. package/assets/{getBalance-C1EIeWK3.js → getBalance-C6ElSM3E.js} +1 -1
  46. package/assets/{getInstalledModules-CSy_anIJ.js → getInstalledModules-rtLcGCot.js} +1 -1
  47. package/assets/{getNFT-Biv4Mkbw.js → getNFT-BhnAi9U5.js} +1 -1
  48. package/assets/{getNFT-C3k4-I_M.js → getNFT-q8LrHpyz.js} +2 -2
  49. package/assets/{hashTypedData-DCkFFbNQ.js → hashTypedData-BPV6XW1Q.js} +1 -1
  50. package/assets/{hashTypedData-D-eX1daT.js → hashTypedData-Bc5YF8Mi.js} +1 -1
  51. package/assets/{import-DjExR-_c.js → import-CM2Acb8u.js} +1 -1
  52. package/assets/{in-app-wallet-calls-BsZ7t_xW.js → in-app-wallet-calls-Dy-UrhW6.js} +1 -1
  53. package/assets/{index-Cj7vACZe.js → index-05TEIcTK.js} +1 -1
  54. package/assets/{index-DOExxORl.js → index-B-LQTELZ.js} +1 -1
  55. package/assets/{index-m9UlXIqW.js → index-B4W596TW.js} +1 -1
  56. package/assets/{index-BnFty3Li.js → index-B783X15B.js} +1 -1
  57. package/assets/{index-BSTJA_7O.js → index-B7XzHP06.js} +2 -2
  58. package/assets/{index-CLE07-_x.js → index-B9j_TxaG.js} +1 -1
  59. package/assets/{index-BTkTkfcn.js → index-BEUqFUmK.js} +1 -1
  60. package/assets/{index-KarPC4Z4.js → index-BKmzL4dB.js} +1 -1
  61. package/assets/{index-CLXqEKlA.js → index-BTxALjz0.js} +1 -1
  62. package/assets/{index-DquEMs4O.js → index-BVAkm-if.js} +1 -1
  63. package/assets/{index-XzW65SVh.js → index-BZ0G96F9.js} +1 -1
  64. package/assets/{index-Xk2toQGa.js → index-BduLiXkv.js} +1 -1
  65. package/assets/{index-BBWsjtyi.js → index-BeiOQplc.js} +1 -1
  66. package/assets/{index-C0nXxFCO.js → index-Bi2Li-Qv.js} +1 -1
  67. package/assets/{index-DgAZv7hc.js → index-Bmxl_PX0.js} +1 -1
  68. package/assets/{index-BoJsJx--.js → index-BugGwOGm.js} +1 -1
  69. package/assets/{index-CrBV_1yu.js → index-C65BwbSl.js} +1 -1
  70. package/assets/{index-cWedEEGZ.js → index-CEkhOpG8.js} +1 -1
  71. package/assets/{index-DccLoKMC.js → index-CJ-xZTUY.js} +2 -2
  72. package/assets/{index-B-iF1tO2.js → index-CP3rbzTi.js} +1 -1
  73. package/assets/{index-CLkVyB5o.js → index-CPe-jsUd.js} +1 -1
  74. package/assets/{index-D5uLI4BM.js → index-CRu4DZ_q.js} +1 -1
  75. package/assets/{index-zhHTnO6h.js → index-CTlbd0Pc.js} +1 -1
  76. package/assets/{index-BkdaY7_G.js → index-C_tm2hP5.js} +3 -3
  77. package/assets/{index-D-S19rzI.js → index-Cc25MKDv.js} +1 -1
  78. package/assets/{index-CQtzuPXx.js → index-CfFC8Kor.js} +1 -1
  79. package/assets/{index-CdcrnJ5_.js → index-CqvGQvCC.js} +1 -1
  80. package/assets/{index-CJEb8Kzs.js → index-CvhbXD5_.js} +1 -1
  81. package/assets/{index-CLy-wBAP.js → index-D0hBeQij.js} +2 -2
  82. package/assets/{index-BgPhxGKT.js → index-D0uc0t0a.js} +1 -1
  83. package/assets/{index-CXiOQLIu.js → index-D2S8EAvD.js} +1 -1
  84. package/assets/{index-BDnsSs1l.js → index-D5K4H3oj.js} +1 -1
  85. package/assets/{index-0QSHJ5kM.js → index-D6de3csH.js} +1 -1
  86. package/assets/{index-BbTcdIk0.js → index-D6uJBPoL.js} +1 -1
  87. package/assets/{index-DDLsPu5_.js → index-D9auFFhw.js} +3 -3
  88. package/assets/{index-DUVY_38U.js → index-DB8AjC_4.js} +1 -1
  89. package/assets/{index-DpcKgN-v.js → index-DGT0V7vP.js} +1 -1
  90. package/assets/{index-DGoPqCsR.js → index-DH7a6xJr.js} +1 -1
  91. package/assets/{index-BEDCm9Wu.js → index-DHfdjUh0.js} +1 -1
  92. package/assets/{index-NdfBDpoO.js → index-DObs6olk.js} +1 -1
  93. package/assets/{index-CqIROolS.js → index-DeH_9coL.js} +1 -1
  94. package/assets/{index-CWRbefrn.js → index-DlAkdJAg.js} +1 -1
  95. package/assets/{index-xmSB5b1v.js → index-DtBgXcr9.js} +1 -1
  96. package/assets/{index-B91_eufC.js → index-DtqNZEkz.js} +1 -1
  97. package/assets/{index-Cmk_xiBk.js → index-KGqaLC_6.js} +1 -1
  98. package/assets/{index-CyqLliR_.js → index-Y2-1znwX.js} +3 -3
  99. package/assets/{index-CWgv2cWv.js → index-kGIZqDCq.js} +1 -1
  100. package/assets/{index-BP1BUYI1.js → index-maU75svR.js} +1 -1
  101. package/assets/{index-D1cUVAY6.js → index-n5XtpNZy.js} +1 -1
  102. package/assets/{index-kpX0X-RL.js → index-pW9qg055.js} +1 -1
  103. package/assets/{index-Brg6cgDQ.js → index-qGfD4dOv.js} +1 -1
  104. package/assets/{index.es-BtrYS_gk.js → index.es-CZ2CoWBZ.js} +4 -4
  105. package/assets/{index.es-Cw0Wg8zr.js → index.es-ChSImqGH.js} +1 -1
  106. package/assets/{index.es-CFwo152a.js → index.es-CtLvPXsy.js} +1 -1
  107. package/assets/{localBatchGatewayRequest-W5wM5RIw.js → localBatchGatewayRequest-Bdk7xkMY.js} +1 -1
  108. package/assets/{mana-rate-D91Nq-wO.js → mana-rate-ht8qDfqA.js} +1 -1
  109. package/assets/network-B3VL8BrJ.js +1 -0
  110. package/assets/{networks-DLxu9QYW.js → networks-Cp4nI61m.js} +1 -1
  111. package/assets/{onramp-DjMFTSAW.js → onramp-BNRxRdth.js} +1 -1
  112. package/assets/{openzeppelin-2ZkXoMQF.js → openzeppelin-DT9-LUIq.js} +1 -1
  113. package/assets/{ownerOf-BAgrPslR.js → ownerOf-Db5DHkkN.js} +1 -1
  114. package/assets/{parseNft-xmwbSwKx.js → parseNft-BwLVv36-.js} +2 -2
  115. package/assets/{parseSignature-DS_qYYXg.js → parseSignature-BugQi3bE.js} +3 -3
  116. package/assets/{parseSignature-Dfqx4qdB.js → parseSignature-aNPVe_t_.js} +1 -1
  117. package/assets/{pay-with-exchange-BfqKWl-i.js → pay-with-exchange-BdGg91EJ.js} +1 -1
  118. package/assets/{qr-overlay-CuzJkOyH.js → qr-overlay-x2RL00QA.js} +1 -1
  119. package/assets/{receive-BXV5EvIe.js → receive-BraityH3.js} +1 -1
  120. package/assets/{resolveImplementation-Cp1kSEV-.js → resolveImplementation-DBLvNtrr.js} +1 -1
  121. package/assets/{rpc-Dtax0ZGB.js → rpc-DpEJwyfw.js} +1 -1
  122. package/assets/{secp256k1-C95i4S9L.js → secp256k1-Ahl6VysI.js} +1 -1
  123. package/assets/{secp256k1-yf38iHjx.js → secp256k1-DeUnVv2M.js} +1 -1
  124. package/assets/{secp256k1-D8wYY9C6.js → secp256k1-vBNAz67A.js} +1 -1
  125. package/assets/{send-bACcTxXh.js → send-CI75xlpy.js} +1 -1
  126. package/assets/{send-batch-transaction-vUlQ3f8W.js → send-batch-transaction-B3K43zcx.js} +1 -1
  127. package/assets/{send-eip712-transaction-BAhg0sSO.js → send-eip712-transaction-BOSYnGeU.js} +2 -2
  128. package/assets/{send-gasless-transaction-Bbc--ckt.js → send-gasless-transaction-IRq6bHjg.js} +2 -2
  129. package/assets/{sendRawTransaction-Cn-exoEI.js → sendRawTransaction-sWE7ErP_.js} +3 -3
  130. package/assets/{serializeTransaction-CI3T0WRP.js → serializeTransaction-CBv0eMX3.js} +1 -1
  131. package/assets/{session-proposal-D0XHSqV_.js → session-proposal-D8eDk7n9.js} +1 -1
  132. package/assets/{session-request-BsTTXWj7.js → session-request-wtcOyQzv.js} +2 -2
  133. package/assets/{sha256-DMkvy9Cz.js → sha256-D_wBPnZ8.js} +1 -1
  134. package/assets/{signing-DeH43Aaw.js → signing-B-g4nKHW.js} +4 -4
  135. package/assets/{socials-D-IAo2yx.js → socials-CJlvLmI3.js} +1 -1
  136. package/assets/{swaps-BWMX0U3I.js → swaps-DWjz9ylG.js} +1 -1
  137. package/assets/{thirdweb-iPhsIfpR.js → thirdweb-D0LntWDb.js} +3 -3
  138. package/assets/{totalSupply-CSwsdpN_.js → totalSupply-DrETmUOr.js} +1 -1
  139. package/assets/{transactionReceipt-U1NdpKCV.js → transactionReceipt-Dfzqkc5H.js} +1 -1
  140. package/assets/{transactions-BkfWn19q.js → transactions-CelH2kK-.js} +1 -1
  141. package/assets/{useInfiniteGrid-6pBFQ8Kh.js → useInfiniteGrid-DlBWvPPH.js} +1 -1
  142. package/assets/{verifyHash-C7RY1nlI.js → verifyHash-BnBpCdL-.js} +1 -1
  143. package/assets/{w3m-modal-DMTcXY8g.js → w3m-modal-DGrqAA-e.js} +1 -1
  144. package/assets/{w3m-modal-1UZQLvps.js → w3m-modal-aOEtrpDA.js} +1 -1
  145. package/assets/{wait-for-tx-receipt-Dy501zTV.js → wait-for-tx-receipt-PjDskCfA.js} +1 -1
  146. package/assets/{wallet-kind-By432Wm8.js → wallet-kind-Ct-yzkUJ.js} +1 -1
  147. package/assets/{wallets-DpuodgNe.js → wallets-CBr0yC2d.js} +6 -6
  148. package/assets/{web-connector-C0IKOCFh.js → web-connector-C7LZtiUS.js} +3 -3
  149. package/assets/{writeContract-B_fZae2g.js → writeContract-B1xq_9p3.js} +1 -1
  150. package/assets/{zoraTestnet-DBtbozoi.js → zoraTestnet-BxGSdu1F.js} +1 -1
  151. package/index.html +8 -8
  152. package/package.json +2 -2
  153. package/assets/decimals-690uYbRk.js +0 -1
  154. package/assets/network-ivZE_UMc.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as m,i as c,b as d}from"./lit-element-B3y9oplH.js";import{n as u,o as f}from"./class-map-CxwNmq0D.js";import{c as b}from"./index-CrBV_1yu.js";import{r as h}from"./index-CyqLliR_.js";import"./index-BDnsSs1l.js";const v=m`
1
+ import{a as m,i as c,b as d}from"./lit-element-B3y9oplH.js";import{n as u,o as f}from"./class-map-CxwNmq0D.js";import{c as b}from"./index-C65BwbSl.js";import{r as h}from"./index-Y2-1znwX.js";import"./index-D5K4H3oj.js";const v=m`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- import{i as _,b as l,a as ve}from"./lit-element-B3y9oplH.js";import{n as b,o as f,r as h,a as Ie}from"./class-map-CxwNmq0D.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-CyqLliR_.js";import{c as C,U as _e}from"./index-CrBV_1yu.js";import"./index-DUVY_38U.js";import"./index-D1cUVAY6.js";import"./index-BoJsJx--.js";import"./index-cWedEEGZ.js";import"./index-CdcrnJ5_.js";import"./index-m9UlXIqW.js";import"./index-CLXqEKlA.js";import{$ as Ce,k as v,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as T,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-DBf03HGk.js";import{au as I}from"./NetworkUtil-DRBYr7tG.js";import"./index-BnFty3Li.js";import{M as ge}from"./MathUtil-BGCe3rZ3.js";const De=U`
1
+ import{i as _,b as l,a as ve}from"./lit-element-B3y9oplH.js";import{n as b,o as f,r as h,a as Ie}from"./class-map-CxwNmq0D.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-Y2-1znwX.js";import{c as C,U as _e}from"./index-C65BwbSl.js";import"./index-DB8AjC_4.js";import"./index-n5XtpNZy.js";import"./index-BugGwOGm.js";import"./index-CEkhOpG8.js";import"./index-CqvGQvCC.js";import"./index-B4W596TW.js";import"./index-BTxALjz0.js";import{$ as Ce,k as v,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as T,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-DWW0KqqF.js";import{au as I}from"./NetworkUtil-DRBYr7tG.js";import"./index-B783X15B.js";import{M as ge}from"./MathUtil-BGCe3rZ3.js";const De=U`
2
2
  :host {
3
3
  position: relative;
4
4
  }
@@ -1 +1 @@
1
- import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-Cn-exoEI.js";import{c as I,e as q}from"./hashTypedData-D-eX1daT.js";import"./NetworkUtil-DRBYr7tG.js";import"./ethers-BxoDGoYp.js";import"./react-E8ng6RF2.js";import"./index-DDLsPu5_.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 W{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 $=m.Operation,z=m.TokenType,J=m.TransactionStatus,Q=m.TransferDirection;export{g as MessageFormatter,r as Methods,$ as Operation,c as RPC_CALLS,f as RestrictedMethods,z as TokenType,J as TransactionStatus,Q as TransferDirection,W as default,v as getSDKVersion,S as isObjectEIP712TypedData};
1
+ import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-sWE7ErP_.js";import{c as I,e as q}from"./hashTypedData-Bc5YF8Mi.js";import"./NetworkUtil-DRBYr7tG.js";import"./ethers-BxoDGoYp.js";import"./react-E8ng6RF2.js";import"./index-D9auFFhw.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 W{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 $=m.Operation,z=m.TokenType,J=m.TransactionStatus,Q=m.TransferDirection;export{g as MessageFormatter,r as Methods,$ as Operation,c as RPC_CALLS,f as RestrictedMethods,z as TokenType,J as TransactionStatus,Q as TransferDirection,W as default,v as getSDKVersion,S as isObjectEIP712TypedData};
@@ -1,4 +1,4 @@
1
- import{i as u,b as c}from"./lit-element-B3y9oplH.js";import{n as r,o as p}from"./class-map-CxwNmq0D.js";import{d as g,r as f}from"./index-CyqLliR_.js";import{c as m}from"./index-CrBV_1yu.js";const b=g`
1
+ import{i as u,b as c}from"./lit-element-B3y9oplH.js";import{n as r,o as p}from"./class-map-CxwNmq0D.js";import{d as g,r as f}from"./index-Y2-1znwX.js";import{c as m}from"./index-C65BwbSl.js";const b=g`
2
2
  :host {
3
3
  display: block;
4
4
  width: var(--local-width);
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PhArrowCircleDown-B305t-Sh.js","assets/property-C9JG5tag.js","assets/PhArrowClockwise-CJPxQhr_.js","assets/PhArrowDown-C4hT9BVu.js","assets/PhArrowLeft-Way4Cu-r.js","assets/PhArrowRight-Cp5ZME0F.js","assets/PhArrowSquareOut-NnrK69c5.js","assets/PhArrowsDownUp-BjBI4ckC.js","assets/PhArrowsLeftRight-CuLpbKRk.js","assets/PhArrowUp-Dph6j8rm.js","assets/PhArrowUpRight-BpJjRRRh.js","assets/PhArrowsClockwise-CFUT8X7R.js","assets/PhBank-Dchr4XQJ.js","assets/PhBrowser-dUu2TrC1.js","assets/PhCaretDown-78IuKU3V.js","assets/PhCaretLeft-_aiyH7n1.js","assets/PhCaretRight-8zJQEuDX.js","assets/PhCaretUp-CiCxKWwN.js","assets/PhCheck-CcADx8br.js","assets/PhCircleHalf-BYzSzd2h.js","assets/PhClock-UItiXeJq.js","assets/PhCompass-CUy3uA7t.js","assets/PhCopy-C-PDgSlZ.js","assets/PhCreditCard-CWRaUT6F.js","assets/PhCurrencyDollar-Cqla3AXT.js","assets/PhDesktop-BBIPrYLl.js","assets/PhDeviceMobile-BdsPaATg.js","assets/PhDotsThree-BMXCQl-0.js","assets/PhVault-l2PHF38a.js","assets/PhEnvelope-yUsis6yU.js","assets/PhFunnelSimple-Ba7BbWTp.js","assets/PhGlobe-DgLxBk5U.js","assets/PhIdentificationCard-Czjmq9Z3.js","assets/PhImage-BAJ_erz6.js","assets/PhInfo-Cr4DhVUE.js","assets/PhLightbulb-BX_7duTr.js","assets/PhMagnifyingGlass-Mygfryvz.js","assets/PhPaperPlaneRight-BeuCA660.js","assets/PhPlus-BMjcHjsT.js","assets/PhPower-CGffGmdb.js","assets/PhPuzzlePiece-wm_GpVSi.js","assets/PhQrCode-DRwRzXCH.js","assets/PhQuestion-M09j2U0T.js","assets/PhQuestionMark-BP9EMB6h.js","assets/PhSealCheck-BfG80yKn.js","assets/PhSignOut-C5YOWlPT.js","assets/PhSpinner-BXooDYzU.js","assets/PhTrash-Biq6rmmL.js","assets/PhUser-CAgZSpGe.js","assets/PhWallet-w25D16It.js","assets/PhWarning-DPEydIPw.js","assets/PhWarningCircle-BqjT745H.js","assets/PhX-s-SmVExa.js"])))=>i.map(i=>d[i]);
2
- import{a as M,i as y,b as x,w as h}from"./lit-element-B3y9oplH.js";import{n as s,o as Z,a as A}from"./class-map-CxwNmq0D.js";import{r as E,v as c,d as I}from"./index-CyqLliR_.js";import{_ as r}from"./index-DDLsPu5_.js";const L=".",C={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--apkt-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--apkt-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},formatCurrency(t=0,e={}){const i=Number(t);return isNaN(i)?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2,...e}).format(i)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:i,truncate:o}){return t.length<=e+i?t:o==="end"?`${t.substring(0,e)}...`:o==="start"?`...${t.substring(t.length-i)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(i))}`},generateAvatarColors(t){const i=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),o=this.hexToRgb(i),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),a=100-3*Number(n==null?void 0:n.replace("px","")),p=`${a}% ${a}% at 65% 40%`,d=[];for(let u=0;u<5;u+=1){const m=this.tintColor(o,.15*u);d.push(`rgb(${m[0]}, ${m[1]}, ${m[2]})`)}return`
2
+ import{a as M,i as y,b as x,w as h}from"./lit-element-B3y9oplH.js";import{n as s,o as Z,a as A}from"./class-map-CxwNmq0D.js";import{r as E,v as c,d as I}from"./index-Y2-1znwX.js";import{_ as r}from"./index-D9auFFhw.js";const L=".",C={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--apkt-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--apkt-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},formatCurrency(t=0,e={}){const i=Number(t);return isNaN(i)?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2,...e}).format(i)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:i,truncate:o}){return t.length<=e+i?t:o==="end"?`${t.substring(0,e)}...`:o==="start"?`...${t.substring(t.length-i)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(i))}`},generateAvatarColors(t){const i=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),o=this.hexToRgb(i),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),a=100-3*Number(n==null?void 0:n.replace("px","")),p=`${a}% ${a}% at 65% 40%`,d=[];for(let u=0;u<5;u+=1){const m=this.tintColor(o,.15*u);d.push(`rgb(${m[0]}, ${m[1]}, ${m[2]})`)}return`
3
3
  --local-color-1: ${d[0]};
4
4
  --local-color-2: ${d[1]};
5
5
  --local-color-3: ${d[2]};
@@ -1,4 +1,4 @@
1
- import{i as h,b as d}from"./lit-element-B3y9oplH.js";import{n as i,o as c}from"./class-map-CxwNmq0D.js";import"./index-CdcrnJ5_.js";import{c as m}from"./index-CrBV_1yu.js";import{d as g,r as y,e as f}from"./index-CyqLliR_.js";const b=g`
1
+ import{i as h,b as d}from"./lit-element-B3y9oplH.js";import{n as i,o as c}from"./class-map-CxwNmq0D.js";import"./index-CqvGQvCC.js";import{c as m}from"./index-C65BwbSl.js";import{d as g,r as y,e as f}from"./index-Y2-1znwX.js";const b=g`
2
2
  :host {
3
3
  width: 100%;
4
4
  }