@dcl/shop 1.13.1-34993979784.commit-cc536a1 → 1.13.1-35083402807.commit-39ddde0

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 (236) hide show
  1. package/_assets/{Activity-y94ae09I.js → Activity-A2FtvwQ_.js} +4 -4
  2. package/_assets/{AnimatedBackground-Clgq4r7f.js → AnimatedBackground-C3tM2Y2N.js} +2 -2
  3. package/_assets/{Assets-Bf_sLagy.js → Assets-azk9tREK.js} +3 -3
  4. package/_assets/{Authorizations-C6r3_VE9.js → Authorizations-K359qq_w.js} +2 -2
  5. package/_assets/{Cart-BHa6SSMn.js → Cart-u2vM0tsP.js} +2 -2
  6. package/_assets/{Collection-BZwrpfZI.js → Collection-CTe_NjZz.js} +2 -2
  7. package/_assets/{CollectionCarousel-ChQ0GtyX.js → CollectionCarousel-SoxQcZ3j.js} +3 -3
  8. package/_assets/{Confetti-FM7bXk07.js → Confetti-CtXiiXzp.js} +4 -4
  9. package/_assets/{ConstantsUtil-DyktTHZK.js → ConstantsUtil-Bl790kKf.js} +2 -2
  10. package/_assets/{ContentClient-umLyw_JS.js → ContentClient-h2HMRGJL.js} +2 -2
  11. package/_assets/{Creator-DixoeSeo.js → Creator-BplrmoUA.js} +2 -2
  12. package/_assets/{DeploymentBuilder-CHCNqJsM.js → DeploymentBuilder-D3rGBRDa.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-CA-zgAad.js → EmotePlaybackBar-C6EykJ-K.js} +19 -19
  14. package/_assets/{ErrorNotice-DotWMQbB.js → ErrorNotice-De_TScoD.js} +2 -2
  15. package/_assets/{Event-C-ViK-OD.js → Event-ByQZcSHm.js} +2 -2
  16. package/_assets/{ExchangeController-BE1PYDfs.js → ExchangeController-woCK-BHp.js} +2 -2
  17. package/_assets/{Faq-Cp96xIfj.js → Faq-DfEZY-mU.js} +2 -2
  18. package/_assets/{GetCredits-Cqu5qXEA.js → GetCredits-DnzU_iyw.js} +2 -2
  19. package/_assets/{Grow-CrGeTusR.js → Grow-BsCarE6p.js} +2 -2
  20. package/_assets/{HelpersUtil-DWzN65Rl.js → HelpersUtil-E53_JkeW.js} +2 -2
  21. package/_assets/{ItemDetail-DOb19Aa9.js → ItemDetail-vMxrJTfh.js} +239 -239
  22. package/_assets/{LoadMore-DE4T10bH.js → LoadMore-D5mf9f7D.js} +2 -2
  23. package/_assets/{ManaPricingBanner.styles-Dmn9WZF1.js → ManaPricingBanner.styles-CesM3W8u.js} +2 -2
  24. package/_assets/{MyAssets-CFa1VrBM.js → MyAssets-hQhUOzVy.js} +2 -2
  25. package/_assets/{MyFavorites-DHofBczp.js → MyFavorites-BKsvTjxK.js} +2 -2
  26. package/_assets/{NetworkUtil-bkXm6BFd.js → NetworkUtil-DY5iDBkb.js} +2 -2
  27. package/_assets/{NotFound-F57fqKGG.js → NotFound-CIk-MZOg.js} +2 -2
  28. package/_assets/{NotificationsBell--0kNSyE8.js → NotificationsBell-Bw9Fnp4E.js} +13 -13
  29. package/_assets/{OutfitDetail-CgbZofiV.js → OutfitDetail-CBxhR4M3.js} +2 -2
  30. package/_assets/{OutfitPreview-B_kNY-9H.js → OutfitPreview-Dkyq4iZq.js} +2 -2
  31. package/_assets/{OutfitStudio-C-O1DNUx.js → OutfitStudio-3VuUmRR2.js} +2 -2
  32. package/_assets/{Spinner-D_6ZvYKj.js → Spinner-Byhp92PJ.js} +2 -2
  33. package/_assets/{StoreSettings-DCpXtqua.js → StoreSettings-BJ7vrwr2.js} +2 -2
  34. package/_assets/{Success-CukAZwp-.js → Success-Cmh_aMVs.js} +2 -2
  35. package/_assets/{SwapController-DnGprKGk.js → SwapController-T4xCrgJ1.js} +2 -2
  36. package/_assets/{TradeService-BjORZVRw.js → TradeService-0T_PrP4j.js} +2 -2
  37. package/_assets/{W3MFrameProviderSingleton-D_YJGPi0.js → W3MFrameProviderSingleton-C-8Y7xjF.js} +4 -4
  38. package/_assets/{WebCryptoP256-DUw3kC8U.js → WebCryptoP256-BYRHrFVR.js} +2 -2
  39. package/_assets/{authorizations-CetLBrrn.js → authorizations-C-jpuNgV.js} +2 -2
  40. package/_assets/{basic-CLYIK-ki.js → basic-B6MIyd9X.js} +2 -2
  41. package/_assets/{biconomy-BXhPby5u.js → biconomy-BrpMknWI.js} +2 -2
  42. package/_assets/{browseLayout.styles-DAoBsqew.js → browseLayout.styles-YSNLTP_3.js} +2 -2
  43. package/_assets/{browser-UELF8Jdm.js → browser-BUB32I2r.js} +2 -2
  44. package/_assets/{browser-CS9ULcyp.js → browser-Nma7xZsq.js} +2 -2
  45. package/_assets/{browser-ponyfill-B_GaUsCN.js → browser-ponyfill-Dc2JIprt.js} +2 -2
  46. package/_assets/{builder-5e3kaadc.js → builder-BPg18stB.js} +2 -2
  47. package/_assets/{buy-weQ6P2qo.js → buy-C907Akhk.js} +2 -2
  48. package/_assets/{buy-gasless-B3S72xPD.js → buy-gasless-DAqBRu8G.js} +2 -2
  49. package/_assets/{categories-CkHoyS1q.js → categories-BV1kj1JI.js} +2 -2
  50. package/_assets/{ccip-B5o6MUFH.js → ccip-El6kUyRL.js} +2 -2
  51. package/_assets/{ccip-ojGeJg1A.js → ccip-ZUoh32pI.js} +2 -2
  52. package/_assets/{chains-xtXzCBVt.js → chains-CJQdRA26.js} +2 -2
  53. package/_assets/collectionPage.styles-D16ZUo4B.js +41 -0
  54. package/_assets/{common-05TgCNdZ.js → common-BrbHEwZh.js} +2 -2
  55. package/_assets/{controller-DRh9C0G5.js → controller-bGmkrAKG.js} +3 -3
  56. package/_assets/{core-C75bqi35.js → core-cVeH5faZ.js} +5 -5
  57. package/_assets/{createSvgIcon-ChY04J8i.js → createSvgIcon-CIA6-oNz.js} +2 -2
  58. package/_assets/{crumbs.styles-DJZlyg5r.js → crumbs.styles-r3pFGk-h.js} +2 -2
  59. package/_assets/{custom-vPIPlEsq.js → custom-DJcPO2TV.js} +2 -2
  60. package/_assets/{data-capture-UpvRekWV.js → data-capture-BBNa0uaC.js} +2 -2
  61. package/_assets/{dcl-schemas-DORfUy0V.js → dcl-schemas-DslZmh30.js} +2 -2
  62. package/_assets/{decimals-BZwuZ3jD.js → decimals-DJwTod5z.js} +2 -2
  63. package/_assets/{decimals-CCp576NL.js → decimals-cgoFs-EH.js} +2 -2
  64. package/_assets/{detectExtension-Dl-3hY5D.js → detectExtension-sB7QDKcb.js} +2 -2
  65. package/_assets/{disposePreview-k60M4rpf.js → disposePreview-xloThKVm.js} +2 -2
  66. package/_assets/{email-B_f-l0_m.js → email-BvTnL5CF.js} +2 -2
  67. package/_assets/{embedded-wallet-RwxBAr72.js → embedded-wallet-GTzLJ-Zv.js} +2 -2
  68. package/_assets/{emotion-styled.browser.esm-Dg4Ghxx3.js → emotion-styled.browser.esm-oIIM2LZw.js} +2 -2
  69. package/_assets/{engine-f6iBVJBB.js → engine-BHD4hBH0.js} +2 -2
  70. package/_assets/{errors-D4kyF6JJ.js → errors-z4kE-uRk.js} +2 -2
  71. package/_assets/{estimate-l1-fee-B6WUr-zT.js → estimate-l1-fee-DFUyaNED.js} +2 -2
  72. package/_assets/{eth_estimateGas-CYjhBOQE.js → eth_estimateGas-B2SxlaTG.js} +2 -2
  73. package/_assets/{eth_getStorageAt-WsZTUrmu.js → eth_getStorageAt-BZrAmG-r.js} +2 -2
  74. package/_assets/{eth_getTransactionCount-CNPXp6e4.js → eth_getTransactionCount-BT501yAg.js} +2 -2
  75. package/_assets/{ethereum-DkP3o5aa.js → ethereum-BPV2jSj3.js} +2 -2
  76. package/_assets/{ethers-WieUx6J3.js → ethers-DeUFwKFN.js} +2 -2
  77. package/_assets/{events-DCTFXu5N.js → events-D_yhp3Xa.js} +2 -2
  78. package/_assets/{execute-D4CHBva9.js → execute-sbSj-emH.js} +3 -3
  79. package/_assets/{extractIPFS-ZsNFU46a.js → extractIPFS-DhCxXWeV.js} +2 -2
  80. package/_assets/{features-OF9xoTDd.js → features-he8LBGx_.js} +2 -2
  81. package/_assets/{fetchTokenMetadata-Dg3ltP5M.js → fetchTokenMetadata-BSezisTz.js} +3 -3
  82. package/_assets/{field.styles-KbMupjr-.js → field.styles-Bhzclyze.js} +2 -2
  83. package/_assets/{fortmatic-HMELMcnY.js → fortmatic-BygNSlcE.js} +2 -2
  84. package/_assets/{get-bytecode-DloHBZ_d.js → get-bytecode-BQRF3kbv.js} +2 -2
  85. package/_assets/{get-ecosystem-wallet-info-BqrchKIy.js → get-ecosystem-wallet-info-2ZAESy6u.js} +2 -2
  86. package/_assets/{getBalance-BEQ4wPYL.js → getBalance-CR3rz94g.js} +3 -3
  87. package/_assets/{getInstalledModules-BlBZA-Zl.js → getInstalledModules-BzAKOr8j.js} +2 -2
  88. package/_assets/{getNFT-n9Qxt0Xr.js → getNFT-8nptVMO3.js} +3 -3
  89. package/_assets/{getNFT-U0szEjvv.js → getNFT-Ds3Cfy-C.js} +2 -2
  90. package/_assets/{grid.styles-XpcxjXw_.js → grid.styles-CmYj-L00.js} +2 -2
  91. package/_assets/{hashTypedData-GUaIJzNq.js → hashTypedData-C77kpNNe.js} +2 -2
  92. package/_assets/{hashTypedData-BEhlVAb4.js → hashTypedData-QvIyMwPF.js} +2 -2
  93. package/_assets/{import-CHMhz1OC.js → import-D-e8W30A.js} +2 -2
  94. package/_assets/{in-app-CRMqmF7u.js → in-app-DAUhIC9M.js} +2 -2
  95. package/_assets/{in-app-wallet-calls-D_VjEhpA.js → in-app-wallet-calls-DEQ8zUPL.js} +2 -2
  96. package/_assets/{index-ha1-SQ-C.js → index-3LtI8p1K.js} +2 -2
  97. package/_assets/{index-CgWdVFDt.js → index-8etAaA-6.js} +2 -2
  98. package/_assets/{index-Bm0Cl7Ng.js → index-B15fH7F8.js} +2 -2
  99. package/_assets/{index-CGXHUl7l.js → index-B3-0nuPf.js} +2 -2
  100. package/_assets/{index-yNEqW0_K.js → index-B5VT2K_t.js} +2 -2
  101. package/_assets/{index-B_eS1IL9.js → index-BDW05jsC.js} +2 -2
  102. package/_assets/{index-I6vz_Nx2.js → index-BIIUpjqk.js} +2 -2
  103. package/_assets/{index-vCQTpIGW.js → index-BInx1-F7.js} +2 -2
  104. package/_assets/{index-P9ko9qxV.js → index-BKB9jLXH.js} +2 -2
  105. package/_assets/{index-CgpCCFEJ.js → index-BMkIJXzs.js} +4 -4
  106. package/_assets/{index-BJ4vmyO4.js → index-BNxhN-PE.js} +2 -2
  107. package/_assets/{index-b2U-cvTm.js → index-BUuTOE6d.js} +2 -2
  108. package/_assets/{index-RrZwJZhi.js → index-BZsDhPnN.js} +2 -2
  109. package/_assets/{index-_JXC86yX.js → index-BiWL_dC0.js} +2 -2
  110. package/_assets/{index-BBXNxrEQ.js → index-BmVxaJ7H.js} +2 -2
  111. package/_assets/{index-BSF4-7kX.js → index-Bn1vI7g7.js} +2 -2
  112. package/_assets/{index-CPk6unD2.js → index-BoY04MqE.js} +3 -3
  113. package/_assets/{index-BW_WOQ-E.js → index-BsGy1-Sz.js} +2 -2
  114. package/_assets/{index-BjKFCEmA.js → index-BuGGaA9M.js} +2 -2
  115. package/_assets/{index-Vukma-By.js → index-C-HGfu-L.js} +2 -2
  116. package/_assets/{index-V_8kqc_J.js → index-C8PhXcLK.js} +2 -2
  117. package/_assets/{index-Drv2Mkim.js → index-C8R0wIHC.js} +2 -2
  118. package/_assets/{index-C3nsM0Df.js → index-CEHJ4Zxj.js} +2 -2
  119. package/_assets/{index-DcgBUAAU.js → index-CFNCKm4k.js} +2 -2
  120. package/_assets/{index-B3oTUjI-.js → index-CUBP0H9u.js} +2 -2
  121. package/_assets/{index-Da5vNeKV.js → index-CWlaJrqK.js} +2 -2
  122. package/_assets/{index-DjjvcRCL.js → index-CYXkJBzB.js} +2 -2
  123. package/_assets/{index-BxeQ7tOU.js → index-Ch2YcG96.js} +2 -2
  124. package/_assets/{index-BXEygVhz.js → index-CmYkZHxf.js} +2 -2
  125. package/_assets/{index-6YytbPez.js → index-CmtEE1yn.js} +3 -3
  126. package/_assets/{index-otoK8aYG.js → index-CqIP6yY4.js} +2 -2
  127. package/_assets/{index-DSJFHA_o.js → index-Cxyjs4LG.js} +2 -2
  128. package/_assets/{index-BOJkpUpe.js → index-CyVUYZzc.js} +2 -2
  129. package/_assets/{index-B8gGSzeH.js → index-D-ek1Pvv.js} +3 -3
  130. package/_assets/{index-lV5-G4LP.js → index-D9cXyBTK.js} +2 -2
  131. package/_assets/{index-DhjQY0xv.js → index-DDaFppj2.js} +2 -2
  132. package/_assets/{index-BUxqT_hO.js → index-DDw343To.js} +2 -2
  133. package/_assets/{index-DqEB-LeI.js → index-DFZUBMdj.js} +3 -3
  134. package/_assets/{index-C-JNsBrP.js → index-DGKKW9p_.js} +2 -2
  135. package/_assets/{index-BBw1GbFP.js → index-DT_pKKbG.js} +2 -2
  136. package/_assets/{index-CXpeGR20.js → index-DTv-aDjt.js} +2 -2
  137. package/_assets/{index-mgPJzy_t.js → index-DV7bWNzQ.js} +2 -2
  138. package/_assets/{index-Btk0v51P.js → index-DVxT_aDK.js} +2 -2
  139. package/_assets/{index-fYMDF-nj.js → index-DWQ8OGZQ.js} +2 -2
  140. package/_assets/{index-UyYK_aPr.js → index-DXOXV6F9.js} +2 -2
  141. package/_assets/{index-WgY7-T5p.js → index-DZsSmiPJ.js} +2 -2
  142. package/_assets/{index-B4msfI4v.js → index-DbKn7gRG.js} +2 -2
  143. package/_assets/{index-BJ6A8ukF.js → index-Db_uxTxZ.js} +2 -2
  144. package/_assets/{index-UZv7ED4b.js → index-DqK-gj4i.js} +2 -2
  145. package/_assets/{index-BjviemPP.js → index-DqsOjgVt.js} +2 -2
  146. package/_assets/{index-e3K8ffGR.js → index-DuAh5t7H.js} +2 -2
  147. package/_assets/{index-D4pYumNB.js → index-Dy0QHUy_.js} +2 -2
  148. package/_assets/{index-DmCAVm8r.js → index-EX_0X2u5.js} +2 -2
  149. package/_assets/{index-LWNBoekl.js → index-KWCLRwqD.js} +2 -2
  150. package/_assets/{index-Bi2MT3Br.js → index-MhgOdCuN.js} +2 -2
  151. package/_assets/{index-LrS2SxP3.js → index-QJxkg6HJ.js} +2 -2
  152. package/_assets/{index-B1ROf6Hr.js → index-S5YYeBud.js} +676 -640
  153. package/_assets/{index-D7paI5sc.js → index-U0FJSC8l.js} +2 -2
  154. package/_assets/{index-BgoKLao6.js → index-UXwlfzDr.js} +2 -2
  155. package/_assets/{index-DclNom06.js → index-Uqsfnm5F.js} +2 -2
  156. package/_assets/{index-DOm935q5.css → index-VPT5QlB0.css} +1 -1
  157. package/_assets/{index--SJ3onSa.js → index-dEMztkzp.js} +2 -2
  158. package/_assets/{index-oGgl7EbM.js → index-fNZ_c6vc.js} +2 -2
  159. package/_assets/{index-C0yPGJlc.js → index-q7jg-oA_.js} +4 -4
  160. package/_assets/{index-DVuWSamg.js → index-qYr6zV4J.js} +2 -2
  161. package/_assets/{index-FTPbW7yA.js → index-s5S8oEjL.js} +2 -2
  162. package/_assets/{index-DQWOabz8.js → index-wQDpXCtu.js} +2 -2
  163. package/_assets/{index-CQyvmshI.js → index-z3rGOO2O.js} +4 -4
  164. package/_assets/{index.es-Br25byW5.js → index.es-BEVMBMrG.js} +2 -2
  165. package/_assets/{index.es-CQzD76Vb.js → index.es-BJ9LWCeM.js} +2 -2
  166. package/_assets/{index.es-C2dLKR_O.js → index.es-CsP78NVi.js} +2 -2
  167. package/_assets/{index.es-o8vptLzN.js → index.es-DEs09rLj.js} +5 -5
  168. package/_assets/{items-empty-HnabtR_T.js → items-empty-9f6KRmmM.js} +2 -2
  169. package/_assets/{jump-Bz5Vjx6K.js → jump-_BLelYPP.js} +2 -2
  170. package/_assets/{linkAccount-C0ot1Sco.js → linkAccount-cqqKV9wt.js} +2 -2
  171. package/_assets/{localBatchGatewayRequest-BqvXlC7E.js → localBatchGatewayRequest-a3DmH1Ia.js} +2 -2
  172. package/_assets/{modal.styles-C3XiE4Tr.js → modal.styles-BJJCeLdB.js} +2 -2
  173. package/_assets/{native-DiDn8665.js → native-CPRRjP_f.js} +2 -2
  174. package/_assets/{networks-DjPRtXEM.js → networks-BzBuBnys.js} +2 -2
  175. package/_assets/{onramp-CeKu2YPK.js → onramp-DNktOoQt.js} +2 -2
  176. package/_assets/{openzeppelin-BB4EijFh.js → openzeppelin-4qY0EMMO.js} +2 -2
  177. package/_assets/{ownerOf-C-nVCTPr.js → ownerOf-2xbqyujG.js} +2 -2
  178. package/_assets/{parseNft-DVITVc6g.js → parseNft-BfJYfy9U.js} +3 -3
  179. package/_assets/{parseSignature-G0Zd3Jar.js → parseSignature-BUVisyv1.js} +2 -2
  180. package/_assets/{parseSignature-BSKK30Fe.js → parseSignature-DLLtA2PU.js} +4 -4
  181. package/_assets/{passkeys-BpzvQa_g.js → passkeys-BYHFLF4m.js} +2 -2
  182. package/_assets/{pay-with-exchange-7cUI58bO.js → pay-with-exchange-BWe0u_VY.js} +2 -2
  183. package/_assets/{prepare-contract-call-Dlduechp.js → prepare-contract-call-BETrvoaQ.js} +2 -2
  184. package/_assets/{qr-overlay-BV4bvBFo.js → qr-overlay-DysHPL05.js} +4 -4
  185. package/_assets/{react-CZuwb7m7.js → react-CHXQAvvP.js} +2 -2
  186. package/_assets/{receive-CE5bAHra.js → receive-DDbTnVPw.js} +2 -2
  187. package/_assets/{resolveImplementation-BdBesTY3.js → resolveImplementation-T0nYehC8.js} +2 -2
  188. package/_assets/{resume-buy-Czg3i8t8.js → resume-buy-sLn_-ToX.js} +2 -2
  189. package/_assets/{rpc-BqAyWRXa.js → rpc-5ccW7HbA.js} +2 -2
  190. package/_assets/{sales-empty-AU1sKrza.js → sales-empty-yRsQmIRV.js} +2 -2
  191. package/_assets/{search-empty-DfwnO5cb.js → search-empty-DnmEaZ5M.js} +2 -2
  192. package/_assets/{secp256k1-lgUzN65n.js → secp256k1-CZQeYu1B.js} +2 -2
  193. package/_assets/{secp256k1-CgPdITh3.js → secp256k1-VJBz5NHh.js} +2 -2
  194. package/_assets/{secp256k1-Ch-KhYke.js → secp256k1-wdxI-GzS.js} +2 -2
  195. package/_assets/{send-OheQUopz.js → send-BwaOvmmU.js} +2 -2
  196. package/_assets/{send-batch-transaction-vAPluT5B.js → send-batch-transaction-BoN2o6ky.js} +2 -2
  197. package/_assets/{send-eip712-transaction-tXv-Yd3H.js → send-eip712-transaction-CSiUxcFI.js} +3 -3
  198. package/_assets/{send-gasless-transaction-f_B7waUE.js → send-gasless-transaction-Bo_jgU9N.js} +3 -3
  199. package/_assets/{send-transaction-DIyZP7sK.js → send-transaction-CIIBNPf9.js} +3 -3
  200. package/_assets/{sendMetaTransaction-rHCZ_KlH.js → sendMetaTransaction-CE_USVrK.js} +2 -2
  201. package/_assets/{sendRawTransaction-B_Qpc1kq.js → sendRawTransaction-B1LqwDVj.js} +4 -4
  202. package/_assets/{sentry-CNTYv-PS.js → sentry-ClHMnYE5.js} +3 -3
  203. package/_assets/{serializeTransaction-B6_kedg0.js → serializeTransaction-BS3QMyct.js} +2 -2
  204. package/_assets/{session-proposal-DZr6wtSM.js → session-proposal-CnVqOh1y.js} +2 -2
  205. package/_assets/{session-request-E-vllRuA.js → session-request-DDwsaXrF.js} +3 -3
  206. package/_assets/{sha256-BgLL3Y8w.js → sha256-BTzxwsGs.js} +2 -2
  207. package/_assets/{sha3-BwdQ5UBB.js → sha3-CLivb23j.js} +2 -2
  208. package/_assets/{signing-CN_f0qZ3.js → signing-CEt9elnK.js} +4 -4
  209. package/_assets/{skeleton.styles-BOojxrjn.js → skeleton.styles-DIKo_4jD.js} +2 -2
  210. package/_assets/{socials-C807Gboq.js → socials-Cz8P4Q0L.js} +2 -2
  211. package/_assets/{styled-CSjfhS1W.js → styled-BGOfEYw2.js} +2 -2
  212. package/_assets/{swaps-CD8bV1J9.js → swaps-DEUugPIK.js} +2 -2
  213. package/_assets/{thirdweb-BX-9uCyi.js → thirdweb-FIzEIyEj.js} +4 -4
  214. package/_assets/{to-serializable-transaction-CyqVRPus.js → to-serializable-transaction-CEJ4iu6L.js} +3 -3
  215. package/_assets/{totalSupply-B4Flwjn6.js → totalSupply-DO4_b29r.js} +2 -2
  216. package/_assets/{transaction-EqsZ4Lc9.js → transaction-BO3wjdd5.js} +2 -2
  217. package/_assets/{transactionReceipt-Cvo-qbKj.js → transactionReceipt-DiCvi337.js} +2 -2
  218. package/_assets/{transactions-T88r0T8z.js → transactions-Zbn5WY0d.js} +2 -2
  219. package/_assets/{useCreditPacks-BsaQss54.js → useCreditPacks-L6io_IwK.js} +2 -2
  220. package/_assets/{useInfiniteGrid-D7MfhZ0F.js → useInfiniteGrid-DyNqhlw_.js} +2 -2
  221. package/_assets/{useStore-Do3cKMOm.js → useStore-DFroURkb.js} +3 -3
  222. package/_assets/{useTheme-DVtQ3kEW.js → useTheme-BjUS8j5J.js} +2 -2
  223. package/_assets/{utils-BBBdI_ZH.js → utils-CkABEqW6.js} +2 -2
  224. package/_assets/{verifyHash-DrjtdAop.js → verifyHash-xlSlWMFP.js} +2 -2
  225. package/_assets/{w3m-modal-BKXjwjsi.js → w3m-modal-BC_IKgL1.js} +2 -2
  226. package/_assets/{w3m-modal-D6yFd78_.js → w3m-modal-D9Ojhdzh.js} +2 -2
  227. package/_assets/{wait-for-tx-receipt-BYVF1dm0.js → wait-for-tx-receipt-BGSQ0KT8.js} +2 -2
  228. package/_assets/{wallet-DPgmEFA5.js → wallet-CGa4Vb9s.js} +2 -2
  229. package/_assets/{wallets-Z-G6v2lw.js → wallets-C0y3R1oZ.js} +6 -6
  230. package/_assets/{web-connector-CcYEFd30.js → web-connector-DXN7zwDm.js} +4 -4
  231. package/_assets/{writeContract-LQKcPGYi.js → writeContract-BKBT7KZ8.js} +2 -2
  232. package/_assets/{zora-sepolia-Cxg0aTZA.js → zora-sepolia-B5dmeRNh.js} +2 -2
  233. package/_assets/{zoraTestnet-Q4pEu7Ou.js → zoraTestnet-DyJpydQU.js} +2 -2
  234. package/index.html +11 -11
  235. package/package.json +2 -2
  236. package/_assets/collectionPage.styles-C-P5ksGT.js +0 -41
@@ -1,4 +1,4 @@
1
- import{w as k,i as C,b as v}from"./lit-element-wjYUA6aF.js";import{n as b}from"./class-map-C7I-HYAi.js";import{c as W}from"./index-BW_WOQ-E.js";import"./index-BBw1GbFP.js";import{Q as M}from"./browser-UELF8Jdm.js";import{d as O,r as D}from"./index-CgpCCFEJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="e303fc67-3c0c-415c-9b11-ed6380fb5f23",e._sentryDebugIdIdentifier="sentry-dbid-e303fc67-3c0c-415c-9b11-ed6380fb5f23")}catch{}})();const N=.1,z=2.5,w=7;function x(e,s,l){return e===s?!1:(e-s<0?s-e:e-s)<=l+N}function Q(e,s){const l=Array.prototype.slice.call(M.create(e,{errorCorrectionLevel:s}).modules.data,0),h=Math.sqrt(l.length);return l.reduce((d,f,p)=>(p%h===0?d.push([f]):d[d.length-1].push(f))&&d,[])}const A={generate({uri:e,size:s,logoSize:l,padding:h=8,dotColor:d="var(--apkt-colors-black)"}){const p=[],u=Q(e,"Q"),a=(s-2*h)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:t})=>{const n=(u.length-w)*a*i+h,r=(u.length-w)*a*t+h,c=.45;for(let o=0;o<E.length;o+=1){const m=a*(w-o*2);p.push(k`
1
+ import{w as k,i as C,b as v}from"./lit-element-wjYUA6aF.js";import{n as b}from"./class-map-C7I-HYAi.js";import{c as W}from"./index-BsGy1-Sz.js";import"./index-DT_pKKbG.js";import{Q as M}from"./browser-BUB32I2r.js";import{d as O,r as D}from"./index-BMkIJXzs.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="e303fc67-3c0c-415c-9b11-ed6380fb5f23",e._sentryDebugIdIdentifier="sentry-dbid-e303fc67-3c0c-415c-9b11-ed6380fb5f23")}catch{}})();const N=.1,z=2.5,w=7;function x(e,s,l){return e===s?!1:(e-s<0?s-e:e-s)<=l+N}function Q(e,s){const l=Array.prototype.slice.call(M.create(e,{errorCorrectionLevel:s}).modules.data,0),h=Math.sqrt(l.length);return l.reduce((d,f,p)=>(p%h===0?d.push([f]):d[d.length-1].push(f))&&d,[])}const A={generate({uri:e,size:s,logoSize:l,padding:h=8,dotColor:d="var(--apkt-colors-black)"}){const p=[],u=Q(e,"Q"),a=(s-2*h)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:t})=>{const n=(u.length-w)*a*i+h,r=(u.length-w)*a*t+h,c=.45;for(let o=0;o<E.length;o+=1){const m=a*(w-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}
@@ -93,4 +93,4 @@ import{w as k,i as C,b as v}from"./lit-element-wjYUA6aF.js";import{n as b}from".
93
93
  color="inherit"
94
94
  name="farcaster"
95
95
  ></wui-icon>`:v`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};g.styles=[D,q];y([b()],g.prototype,"uri",void 0);y([b({type:Number})],g.prototype,"size",void 0);y([b()],g.prototype,"theme",void 0);y([b()],g.prototype,"imageSrc",void 0);y([b()],g.prototype,"alt",void 0);y([b({type:Boolean})],g.prototype,"arenaClear",void 0);y([b({type:Boolean})],g.prototype,"farcaster",void 0);g=y([W("wui-qr-code")],g);
96
- //# sourceMappingURL=index-oGgl7EbM.js.map
96
+ //# sourceMappingURL=index-fNZ_c6vc.js.map
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-D_VjEhpA.js","_assets/wait-for-tx-receipt-BYVF1dm0.js","_assets/transactionReceipt-Cvo-qbKj.js","_assets/prepare-contract-call-Dlduechp.js","_assets/utils-BBBdI_ZH.js","_assets/sentry-CNTYv-PS.js","_assets/react-CZuwb7m7.js","_assets/to-serializable-transaction-CyqVRPus.js","_assets/index-B1ROf6Hr.js","_assets/dcl-schemas-DORfUy0V.js","_assets/ethers-WieUx6J3.js","_assets/intl-AKLEHPeO.js","_assets/index-DOm935q5.css","_assets/transaction-EqsZ4Lc9.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-vAPluT5B.js","_assets/send-transaction-DIyZP7sK.js","_assets/execute-D4CHBva9.js","_assets/detectExtension-Dl-3hY5D.js","_assets/eth_getTransactionCount-CNPXp6e4.js","_assets/index-6YytbPez.js","_assets/signing-CN_f0qZ3.js","_assets/get-bytecode-DloHBZ_d.js","_assets/send-eip712-transaction-tXv-Yd3H.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-BgLL3Y8w.js","_assets/linkAccount-C0ot1Sco.js","_assets/wallets-Z-G6v2lw.js","_assets/store-80QKZ2rN.js","_assets/hashTypedData-GUaIJzNq.js","_assets/index-CPk6unD2.js","_assets/events-DCTFXu5N.js","_assets/index-BSF4-7kX.js","_assets/index-DSJFHA_o.js","_assets/index-OpYIGLSa.js","_assets/index-CGXHUl7l.js","_assets/index-fYMDF-nj.js","_assets/ethereum-DkP3o5aa.js","_assets/types-BeDU9GfL.js"])))=>i.map(i=>d[i]);
2
- import{_ as b}from"./index-B1ROf6Hr.js";import{e as R}from"./ethereum-DkP3o5aa.js";import{s as M}from"./types-BeDU9GfL.js";import{f as D,e as I,a as v,w as B}from"./utils-BBBdI_ZH.js";import{p as W,g as V}from"./get-bytecode-DloHBZ_d.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-CyqVRPus.js";import{r as $,e as N}from"./execute-D4CHBva9.js";import{g as f,a4 as _,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-Dlduechp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="8ff83511-5c2d-4096-94c9-8d49173d4c16",t._sentryDebugIdIdentifier="sentry-dbid-8ff83511-5c2d-4096-94c9-8d49173d4c16")}catch{}})();const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return _({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return _({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function U(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[U(t.userOp),t.options.entrypointAddress??w]})}async function _e(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[U(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function Ue(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-DEQ8zUPL.js","_assets/wait-for-tx-receipt-BGSQ0KT8.js","_assets/transactionReceipt-DiCvi337.js","_assets/prepare-contract-call-BETrvoaQ.js","_assets/utils-CkABEqW6.js","_assets/sentry-ClHMnYE5.js","_assets/react-CHXQAvvP.js","_assets/to-serializable-transaction-CEJ4iu6L.js","_assets/index-S5YYeBud.js","_assets/dcl-schemas-DslZmh30.js","_assets/ethers-DeUFwKFN.js","_assets/intl-AKLEHPeO.js","_assets/index-VPT5QlB0.css","_assets/transaction-BO3wjdd5.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-BoN2o6ky.js","_assets/send-transaction-CIIBNPf9.js","_assets/execute-sbSj-emH.js","_assets/detectExtension-sB7QDKcb.js","_assets/eth_getTransactionCount-BT501yAg.js","_assets/index-CmtEE1yn.js","_assets/signing-CEt9elnK.js","_assets/get-bytecode-BQRF3kbv.js","_assets/send-eip712-transaction-CSiUxcFI.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-BTzxwsGs.js","_assets/linkAccount-cqqKV9wt.js","_assets/wallets-C0y3R1oZ.js","_assets/store-80QKZ2rN.js","_assets/hashTypedData-C77kpNNe.js","_assets/index-BoY04MqE.js","_assets/events-D_yhp3Xa.js","_assets/index-Bn1vI7g7.js","_assets/index-Cxyjs4LG.js","_assets/index-OpYIGLSa.js","_assets/index-B3-0nuPf.js","_assets/index-DWQ8OGZQ.js","_assets/ethereum-BPV2jSj3.js","_assets/types-BeDU9GfL.js"])))=>i.map(i=>d[i]);
2
+ import{_ as b}from"./index-S5YYeBud.js";import{e as R}from"./ethereum-BPV2jSj3.js";import{s as M}from"./types-BeDU9GfL.js";import{f as D,e as I,a as v,w as B}from"./utils-CkABEqW6.js";import{p as W,g as V}from"./get-bytecode-BQRF3kbv.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-CEJ4iu6L.js";import{r as $,e as N}from"./execute-sbSj-emH.js";import{g as f,a4 as _,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-BETrvoaQ.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="8ff83511-5c2d-4096-94c9-8d49173d4c16",t._sentryDebugIdIdentifier="sentry-dbid-8ff83511-5c2d-4096-94c9-8d49173d4c16")}catch{}})();const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return _({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return _({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function U(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[U(t.userOp),t.options.entrypointAddress??w]})}async function _e(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[U(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function Ue(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
3
3
  Status: ${a.status}
4
- Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-D_VjEhpA.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-D_VjEhpA.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-D_VjEhpA.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-CNPXp6e4.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-6YytbPez.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,Ue as b,Ee as c,xe as d,_e as e,Z as f,E as g,U as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
5
- //# sourceMappingURL=index-C0yPGJlc.js.map
4
+ Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-DEQ8zUPL.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-DEQ8zUPL.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-DEQ8zUPL.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-BT501yAg.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-CmtEE1yn.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,Ue as b,Ee as c,xe as d,_e as e,Z as f,E as g,U as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
5
+ //# sourceMappingURL=index-q7jg-oA_.js.map
@@ -1,4 +1,4 @@
1
- import{i as f,b as l,a as ee}from"./lit-element-wjYUA6aF.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-C7I-HYAi.js";import{d as v,r as _,e as W}from"./index-CgpCCFEJ.js";import{c as p,U as F}from"./index-BW_WOQ-E.js";import"./index-BBw1GbFP.js";import"./index-DQWOabz8.js";import"./index-DmCAVm8r.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-D_YJGPi0.js";import"./index-BJ4vmyO4.js";import{W as zs,a as Fs}from"./index-RrZwJZhi.js";import"./index-Bi2MT3Br.js";import"./index-LrS2SxP3.js";import"./index-B4msfI4v.js";import{au as S}from"./NetworkUtil-bkXm6BFd.js";import{H as Jt}from"./HelpersUtil-DWzN65Rl.js";import{n as Zi}from"./index-UyYK_aPr.js";import{E as Q}from"./ExchangeController-BE1PYDfs.js";import"./index-ha1-SQ-C.js";import"./index-BJ6A8ukF.js";import"./index-otoK8aYG.js";import{M as mt}from"./MathUtil-BvP0JcjY.js";import"./index-Da5vNeKV.js";import{e as Zt,n as ei}from"./ref-BDtPbYkK.js";import"./index-mgPJzy_t.js";import"./index-BOJkpUpe.js";import"./index-yNEqW0_K.js";import"./index-Vukma-By.js";import{O as bt}from"./index-B3oTUjI-.js";import{e as en}from"./index-P9ko9qxV.js";import"./index-LWNBoekl.js";import"./index-oGgl7EbM.js";import{N as tn}from"./NavigationUtil-BgJKGvPt.js";import"./index-BXEygVhz.js";import"./index-B1ROf6Hr.js";import"./react-CZuwb7m7.js";import"./dcl-schemas-DORfUy0V.js";import"./sentry-CNTYv-PS.js";import"./ethers-WieUx6J3.js";import"./intl-AKLEHPeO.js";import"./index-CPk6unD2.js";import"./events-DCTFXu5N.js";import"./index-BSF4-7kX.js";import"./index-DSJFHA_o.js";import"./index-OpYIGLSa.js";import"./index-fYMDF-nj.js";import"./index.es-Br25byW5.js";import"./browser-ponyfill-B_GaUsCN.js";import"./ConstantsUtil-DyktTHZK.js";import"./async-directive-C0XTxdV5.js";import"./browser-UELF8Jdm.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="68bbf01c-d6e7-40b8-9334-97d2d69c00d8",t._sentryDebugIdIdentifier="sentry-dbid-68bbf01c-d6e7-40b8-9334-97d2d69c00d8")}catch{}})();const nn=v`
1
+ import{i as f,b as l,a as ee}from"./lit-element-wjYUA6aF.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-C7I-HYAi.js";import{d as v,r as _,e as W}from"./index-BMkIJXzs.js";import{c as p,U as F}from"./index-BsGy1-Sz.js";import"./index-DT_pKKbG.js";import"./index-wQDpXCtu.js";import"./index-EX_0X2u5.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-C-8Y7xjF.js";import"./index-BNxhN-PE.js";import{W as zs,a as Fs}from"./index-BZsDhPnN.js";import"./index-MhgOdCuN.js";import"./index-QJxkg6HJ.js";import"./index-DbKn7gRG.js";import{au as S}from"./NetworkUtil-DY5iDBkb.js";import{H as Jt}from"./HelpersUtil-E53_JkeW.js";import{n as Zi}from"./index-DXOXV6F9.js";import{E as Q}from"./ExchangeController-woCK-BHp.js";import"./index-3LtI8p1K.js";import"./index-Db_uxTxZ.js";import"./index-CqIP6yY4.js";import{M as mt}from"./MathUtil-BvP0JcjY.js";import"./index-CWlaJrqK.js";import{e as Zt,n as ei}from"./ref-BDtPbYkK.js";import"./index-DV7bWNzQ.js";import"./index-CyVUYZzc.js";import"./index-B5VT2K_t.js";import"./index-C-HGfu-L.js";import{O as bt}from"./index-CUBP0H9u.js";import{e as en}from"./index-BKB9jLXH.js";import"./index-KWCLRwqD.js";import"./index-fNZ_c6vc.js";import{N as tn}from"./NavigationUtil-BgJKGvPt.js";import"./index-CmYkZHxf.js";import"./index-S5YYeBud.js";import"./react-CHXQAvvP.js";import"./dcl-schemas-DslZmh30.js";import"./sentry-ClHMnYE5.js";import"./ethers-DeUFwKFN.js";import"./intl-AKLEHPeO.js";import"./index-BoY04MqE.js";import"./events-D_yhp3Xa.js";import"./index-Bn1vI7g7.js";import"./index-Cxyjs4LG.js";import"./index-OpYIGLSa.js";import"./index-DWQ8OGZQ.js";import"./index.es-BEVMBMrG.js";import"./browser-ponyfill-Dc2JIprt.js";import"./ConstantsUtil-Bl790kKf.js";import"./async-directive-C0XTxdV5.js";import"./browser-BUB32I2r.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="68bbf01c-d6e7-40b8-9334-97d2d69c00d8",t._sentryDebugIdIdentifier="sentry-dbid-68bbf01c-d6e7-40b8-9334-97d2d69c00d8")}catch{}})();const nn=v`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -3424,4 +3424,4 @@ import{i as f,b as l,a as ee}from"./lit-element-wjYUA6aF.js";import{n as c,o as
3424
3424
  </wui-button>
3425
3425
  </wui-flex>
3426
3426
  `}async onSign(){this.isSigning=!0;try{await Bt.requestSignMessage()}catch(e){if(e instanceof Error&&e.message.includes("OTP is required")){A.showError({message:"Something went wrong. We need to verify your account again."}),h.replace("DataCapture");return}throw e}finally{this.isSigning=!1}}async onCancel(){this.isCancelling=!0,await Bt.cancelSignMessage().finally(()=>this.isCancelling=!1)}};li([u()],Tt.prototype,"isCancelling",void 0);li([u()],Tt.prototype,"isSigning",void 0);Tt=li([p("w3m-siwx-sign-message-view")],Tt);export{di as AppKitAccountButton,hi as AppKitButton,wi as AppKitConnectButton,mi as AppKitNetworkButton,ci as W3mAccountButton,be as W3mAccountSettingsView,Ft as W3mAccountView,vt as W3mAllWalletsView,ui as W3mButton,At as W3mChooseAccountNameView,pi as W3mConnectButton,H as W3mConnectView,It as W3mConnectWalletsView,xi as W3mConnectingExternalView,Ct as W3mConnectingMultiChainView,kt as W3mConnectingWcBasicView,we as W3mConnectingWcView,Si as W3mDownloadsView,zs as W3mFooter,Re as W3mFundWalletView,Ei as W3mGetWalletView,fi as W3mNetworkButton,ot as W3mNetworkSwitchView,Le as W3mNetworksView,B as W3mProfileWalletsView,Fs as W3mRouter,Tt as W3mSIWXSignMessageView,_t as W3mSwitchActiveChainView,rt as W3mUnsupportedChainView,Kt as W3mWalletCompatibleNetworksView,Ai as W3mWhatIsANetworkView,ki as W3mWhatIsAWalletView};
3427
- //# sourceMappingURL=index-DVuWSamg.js.map
3427
+ //# sourceMappingURL=index-qYr6zV4J.js.map
@@ -1,2 +1,2 @@
1
- import"./react-CZuwb7m7.js";import{r as I}from"./index-e3K8ffGR.js";import{az as w}from"./sendRawTransaction-B_Qpc1kq.js";import{c as k,e as v}from"./hashTypedData-BEhlVAb4.js";import"./NetworkUtil-bkXm6BFd.js";import"./sentry-CNTYv-PS.js";import"./index-B1ROf6Hr.js";import"./dcl-schemas-DORfUy0V.js";import"./ethers-WieUx6J3.js";import"./intl-AKLEHPeO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dfb97026-b12b-45f4-ab79-80f0a712e7df",t._sentryDebugIdIdentifier="sentry-dbid-dfb97026-b12b-45f4-ab79-80f0a712e7df")}catch{}})();const q=()=>"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:q()}});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 m;(function(t){t.requestAddressBook="requestAddressBook"})(m||(m={}));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 _=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var f=I();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(!_(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"},d={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,d.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,d.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,d.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,d.blockNumberToHex,d.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,d.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[d.blockNumberToHex,d.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,d.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 h extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,h.prototype)}}class S{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 h("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new h("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(m).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 S(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new h("Permissions rejected",p);return a.apply(this)},s};var D=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 k(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 v({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)}),_(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}}D([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 S(this.communicator)}}const Q=f.Operation,X=f.TokenType,Y=f.TransactionStatus,Z=f.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,m as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,q as getSDKVersion,_ as isObjectEIP712TypedData};
2
- //# sourceMappingURL=index-FTPbW7yA.js.map
1
+ import"./react-CHXQAvvP.js";import{r as I}from"./index-DuAh5t7H.js";import{az as w}from"./sendRawTransaction-B1LqwDVj.js";import{c as k,e as v}from"./hashTypedData-QvIyMwPF.js";import"./NetworkUtil-DY5iDBkb.js";import"./sentry-ClHMnYE5.js";import"./index-S5YYeBud.js";import"./dcl-schemas-DslZmh30.js";import"./ethers-DeUFwKFN.js";import"./intl-AKLEHPeO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dfb97026-b12b-45f4-ab79-80f0a712e7df",t._sentryDebugIdIdentifier="sentry-dbid-dfb97026-b12b-45f4-ab79-80f0a712e7df")}catch{}})();const q=()=>"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:q()}});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 m;(function(t){t.requestAddressBook="requestAddressBook"})(m||(m={}));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 _=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var f=I();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(!_(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"},d={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,d.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,d.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,d.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,d.blockNumberToHex,d.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,d.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[d.blockNumberToHex,d.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,d.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 h extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,h.prototype)}}class S{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 h("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new h("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(m).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 S(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new h("Permissions rejected",p);return a.apply(this)},s};var D=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 k(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 v({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)}),_(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}}D([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 S(this.communicator)}}const Q=f.Operation,X=f.TokenType,Y=f.TransactionStatus,Z=f.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,m as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,q as getSDKVersion,_ as isObjectEIP712TypedData};
2
+ //# sourceMappingURL=index-s5S8oEjL.js.map
@@ -1,4 +1,4 @@
1
- import{a as h,i as f,b as p}from"./lit-element-wjYUA6aF.js";import{n as l}from"./class-map-C7I-HYAi.js";import{r as m,v as o}from"./index-CgpCCFEJ.js";import{c as g}from"./index-BW_WOQ-E.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e67d7c27-b570-42cd-98e0-a449fbe73db4",t._sentryDebugIdIdentifier="sentry-dbid-e67d7c27-b570-42cd-98e0-a449fbe73db4")}catch{}})();const y=h`
1
+ import{a as h,i as f,b as p}from"./lit-element-wjYUA6aF.js";import{n as l}from"./class-map-C7I-HYAi.js";import{r as m,v as o}from"./index-BMkIJXzs.js";import{c as g}from"./index-BsGy1-Sz.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e67d7c27-b570-42cd-98e0-a449fbe73db4",t._sentryDebugIdIdentifier="sentry-dbid-e67d7c27-b570-42cd-98e0-a449fbe73db4")}catch{}})();const y=h`
2
2
  :host {
3
3
  display: flex;
4
4
  }
@@ -49,4 +49,4 @@ import{a as h,i as f,b as p}from"./lit-element-wjYUA6aF.js";import{n as l}from".
49
49
  fill="currentColor"
50
50
  />
51
51
  </svg>`}};s.styles=[m,y];c([l()],s.prototype,"color",void 0);c([l()],s.prototype,"size",void 0);s=c([g("wui-loading-spinner")],s);
52
- //# sourceMappingURL=index-DQWOabz8.js.map
52
+ //# sourceMappingURL=index-wQDpXCtu.js.map