@dcl/shop 1.9.1 → 1.9.2-32490364182.commit-e2e4c6b
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.
- package/_assets/{Activity-v2ysdkZp.js → Activity-C4Kzn5fk.js} +4 -4
- package/_assets/{AnimatedBackground-i_Oi5flU.js → AnimatedBackground-BwuwfNrk.js} +6 -6
- package/_assets/{Assets-CS74e4fX.js → Assets-CTbQPjcM.js} +3 -3
- package/_assets/{Authorizations-AzgQbxUI.js → Authorizations-N-jDljmP.js} +2 -2
- package/_assets/{Cart-DJ9-HKnr.js → Cart-ywFlNL9H.js} +2 -2
- package/_assets/{CircularProgress-C3bSCAL8.js → CircularProgress-DPY51kqk.js} +2 -2
- package/_assets/{Collection-B83Lsi9t.js → Collection-BbPumsdq.js} +2 -2
- package/_assets/{CollectionCarousel-DRvnaHVZ.js → CollectionCarousel-CoM9Gv9s.js} +3 -3
- package/_assets/{Confetti-CfzeiH3X.js → Confetti-C0-okGdM.js} +4 -4
- package/_assets/{ConstantsUtil-BZZXkl0f.js → ConstantsUtil-BX0kJSLy.js} +2 -2
- package/_assets/{ContentClient-BDPHco79.js → ContentClient-FkKb15O9.js} +2 -2
- package/_assets/{Creator-Dj5bE00y.js → Creator-B-q7Mpyx.js} +2 -2
- package/_assets/{DeploymentBuilder-BfG5A0g6.js → DeploymentBuilder-B-vRvz4q.js} +2 -2
- package/_assets/{EmotePlaybackBar-hGXyvmBg.js → EmotePlaybackBar-DLxsISmS.js} +3 -3
- package/_assets/{ErrorNotice-BidBLYce.js → ErrorNotice-Bwbke-jb.js} +2 -2
- package/_assets/{ExchangeController-Br8UNiZB.js → ExchangeController-wLrEO73T.js} +2 -2
- package/_assets/{Faq-9_8_Fvgc.js → Faq-Bn3oD9jJ.js} +2 -2
- package/_assets/{GetCredits-pAGa_1mG.js → GetCredits-1dwWdfH1.js} +8 -8
- package/_assets/{Grow-9A5Y1Jf6.js → Grow-A1ryBOre.js} +2 -2
- package/_assets/{HelpersUtil-CDv4dF_c.js → HelpersUtil-zE-WUDXf.js} +2 -2
- package/_assets/{ItemDetail-Bm2RrQUD.js → ItemDetail-DtAVOGXV.js} +34 -34
- package/_assets/{LoadMore-BVjh7_fu.js → LoadMore-D-zzUoTF.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-B76dWybp.js → ManaPricingBanner.styles-CdSp5zDl.js} +2 -2
- package/_assets/{MyAssets-gfhr5k6p.js → MyAssets-vSbkMz3D.js} +2 -2
- package/_assets/{MyFavorites-D1vydQX_.js → MyFavorites-V0_oPzp8.js} +2 -2
- package/_assets/{NetworkUtil-XLq8TFRp.js → NetworkUtil-C2E64C4n.js} +2 -2
- package/_assets/{NotFound-CWAK9Xz4.js → NotFound-BDte9RrV.js} +2 -2
- package/_assets/{NotificationsBell-tCoZsE_a.js → NotificationsBell-D2-6APUI.js} +2 -2
- package/_assets/{OutfitDetail-CksVFLes.js → OutfitDetail-2F7CkzM9.js} +2 -2
- package/_assets/{OutfitPreview-Dj1Sn2r-.js → OutfitPreview-vLgRLTXf.js} +2 -2
- package/_assets/{OutfitStudio-WAU1vdRX.js → OutfitStudio-B7-5-HLr.js} +2 -2
- package/_assets/{StoreSettings-VjbE-CPw.js → StoreSettings-DYpES0Qy.js} +22 -22
- package/_assets/{Success-B8mWooag.js → Success-CbxoRTGm.js} +2 -2
- package/_assets/{SwapController-uSgh3Faq.js → SwapController-CNhuabdS.js} +2 -2
- package/_assets/{TradeService-BC26Syas.js → TradeService-Dq5kA3hU.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-CdPGjmXY.js → W3MFrameProviderSingleton-qLuUEBFJ.js} +4 -4
- package/_assets/{WebCryptoP256-BzRyJn5s.js → WebCryptoP256-BNgcFtmR.js} +2 -2
- package/_assets/{authorizations-D1ZMIs2H.js → authorizations-Wa0_wT0Z.js} +2 -2
- package/_assets/{basic-JhmwlUL4.js → basic-CFDlu1LL.js} +2 -2
- package/_assets/{biconomy-qUXUAKc2.js → biconomy-CbaORytl.js} +2 -2
- package/_assets/{browseLayout.styles-Cdvdeu36.js → browseLayout.styles-CuE2syAy.js} +2 -2
- package/_assets/{browser-v2FzdDJg.js → browser-XADW-5I9.js} +2 -2
- package/_assets/{browser-ponyfill-B6AAM9EE.js → browser-ponyfill-ByHh5PGV.js} +2 -2
- package/_assets/{builder-BX572rOw.js → builder-Cil_nXWA.js} +2 -2
- package/_assets/{buy-CA6rPe25.js → buy-DAGs2gvU.js} +2 -2
- package/_assets/{buy-gasless-CK3HV-x0.js → buy-gasless-CXg0ob_0.js} +2 -2
- package/_assets/{categories-CppViVHu.js → categories-Bwi3LuIK.js} +2 -2
- package/_assets/{ccip-BcU_Heae.js → ccip-CABvxDcN.js} +2 -2
- package/_assets/{ccip-BTRXdf6a.js → ccip-DxEPKiwF.js} +2 -2
- package/_assets/{chains-nBjolbwq.js → chains-CKHFLxhm.js} +2 -2
- package/_assets/collectionPage.styles-DZFdmcAO.js +40 -0
- package/_assets/{common-4KcHAwA7.js → common-AHgzOdSB.js} +2 -2
- package/_assets/{controller-CJ7e20Gw.js → controller-389ptNLt.js} +3 -3
- package/_assets/{core-B4CIHx0f.js → core-CWqAJwp-.js} +5 -5
- package/_assets/{createSvgIcon-D6wdVRX4.js → createSvgIcon-RTgYqIT0.js} +2 -2
- package/_assets/{custom-CHfuF_NV.js → custom-B6FOcLFS.js} +2 -2
- package/_assets/{data-capture-Hq1vlKz4.js → data-capture-DZoFqspx.js} +2 -2
- package/_assets/{dcl-schemas-D_0AvjMb.js → dcl-schemas-CQsQxWYK.js} +2 -2
- package/_assets/{decimals-CSrhOWju.js → decimals-B8ji3I9T.js} +2 -2
- package/_assets/{decimals-DcDODb9g.js → decimals-BrfaLWeO.js} +2 -2
- package/_assets/{detectExtension-noSlp4xk.js → detectExtension-CBEeT0QS.js} +2 -2
- package/_assets/{disposePreview-vScx20Eh.js → disposePreview-NijpZXe_.js} +2 -2
- package/_assets/{email-Csyyf6Z4.js → email-WN7zlIKb.js} +2 -2
- package/_assets/{embedded-wallet-BTwJxa4B.js → embedded-wallet-c9wepCXs.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-Bx9PHpi_.js → emotion-styled.browser.esm-CYlNKf9I.js} +2 -2
- package/_assets/{engine-CCCiMDEh.js → engine-C91fSUt_.js} +2 -2
- package/_assets/{errors-kVIEXzVQ.js → errors-DGWrzcZ2.js} +2 -2
- package/_assets/{estimate-l1-fee-Wbxg435T.js → estimate-l1-fee-BscyCbli.js} +2 -2
- package/_assets/{eth_estimateGas-BbsWIkPg.js → eth_estimateGas-zf8E350c.js} +2 -2
- package/_assets/{eth_getStorageAt-DL0XLL1P.js → eth_getStorageAt-C7mDOh_o.js} +2 -2
- package/_assets/{eth_getTransactionCount-BLU8e3cb.js → eth_getTransactionCount-BZuLOO7k.js} +2 -2
- package/_assets/{ethereum-Gp_6QZpS.js → ethereum-RVBnTLaL.js} +2 -2
- package/_assets/{ethers-DJyLt7ov.js → ethers-DXUQI3Ut.js} +2 -2
- package/_assets/{events-CWjZ5HrG.js → events-DLLBOQYG.js} +2 -2
- package/_assets/{execute-hjCDYzF9.js → execute-C57BG5lJ.js} +3 -3
- package/_assets/{extractIPFS-thAiEssw.js → extractIPFS-BKXzy-Rh.js} +2 -2
- package/_assets/{features-lP9QyOdB.js → features-ALZAg55_.js} +2 -2
- package/_assets/{fetchTokenMetadata-Dfqm4UIJ.js → fetchTokenMetadata-Cr3PV6X1.js} +3 -3
- package/_assets/{field.styles-B8MaBY_W.js → field.styles-1qNXB2de.js} +2 -2
- package/_assets/{fortmatic-ZQRwd2Im.js → fortmatic-VEuLc1E0.js} +2 -2
- package/_assets/{get-bytecode-DggwH8oO.js → get-bytecode-Dgh4Jb3X.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-CVwfo0p8.js → get-ecosystem-wallet-info-Bo9paKe6.js} +2 -2
- package/_assets/{getBalance-BUKMiyBi.js → getBalance-BE7W--GK.js} +3 -3
- package/_assets/{getInstalledModules-3nyyTBxx.js → getInstalledModules-BQ_ILdNe.js} +2 -2
- package/_assets/{getNFT-BcWbcqeK.js → getNFT-BYOtm54v.js} +3 -3
- package/_assets/{getNFT-B-Et8vjO.js → getNFT-C4VCKNcO.js} +2 -2
- package/_assets/{grid.styles-8-c3xJ52.js → grid.styles-DzvODQdq.js} +2 -2
- package/_assets/{hashTypedData-Cgw8rx9J.js → hashTypedData-ChT5ZbgL.js} +2 -2
- package/_assets/{hashTypedData-aLZdRBOS.js → hashTypedData-X0KUMzG4.js} +2 -2
- package/_assets/{in-app-wallet-calls-DWV9WOd6.js → in-app-wallet-calls-BrnhR34A.js} +2 -2
- package/_assets/{in-app-Im1w8vqf.js → in-app-zluvfGQX.js} +2 -2
- package/_assets/{index-CMk7qdhJ.js → index-1nMFaDfq.js} +2 -2
- package/_assets/{index-Djw57uLN.js → index-2QDRSKTI.js} +2 -2
- package/_assets/{index-q_GoA-UL.js → index-36NDvu3w.js} +2 -2
- package/_assets/{index-CdpXWmGt.js → index-4dXpSk57.js} +2 -2
- package/_assets/{index-BqCIJgLW.js → index-6m82mLa-.js} +2 -2
- package/_assets/{index-DJ7edWLi.js → index-B9WM1WTc.js} +2 -2
- package/_assets/{index-CNpAdiWU.js → index-BAeUu19q.js} +3 -3
- package/_assets/{index-BZUiAv8d.js → index-BD0UDtYF.js} +2 -2
- package/_assets/{index-D8OSaTYC.js → index-BGw5m7Uo.js} +2 -2
- package/_assets/{index-pza-rrtX.js → index-BJ83OlRb.js} +2 -2
- package/_assets/{index-BaIwSc0i.js → index-BN-bGk3n.js} +3 -3
- package/_assets/{index-DgNHClA7.js → index-BPpGc36z.js} +2 -2
- package/_assets/{index-DS6MGxS1.js → index-BQ0ZshU5.js} +2 -2
- package/_assets/{index-BBgGvogq.js → index-BZPiWmJM.js} +2 -2
- package/_assets/{index-DIR01LdD.js → index-BcpaMHLt.js} +2 -2
- package/_assets/{index-DasQRw2k.js → index-BpQETbke.js} +4 -4
- package/_assets/{index-Bgp63VLv.js → index-BrC_okhM.js} +2 -2
- package/_assets/{index-hLCjdp6z.js → index-BuABw98X.js} +2 -2
- package/_assets/{index-COgh3iV7.js → index-BzhoSaGz.js} +2 -2
- package/_assets/{index-BEM0E5i4.js → index-C-SyxpJI.js} +2 -2
- package/_assets/{index-B5yY6WlA.js → index-C-cuJat3.js} +2 -2
- package/_assets/{index-BRvBOji7.js → index-C0fNNzGI.js} +2 -2
- package/_assets/{index-CtS7tk1M.js → index-C4iYwCkM.js} +2 -2
- package/_assets/{index-rsvuMulW.js → index-C5onHlUQ.js} +2 -2
- package/_assets/{index-CZH27yv_.js → index-C8H2vLAP.js} +2 -2
- package/_assets/{index-W92HuH2P.js → index-CLfKjViB.js} +2 -2
- package/_assets/{index-DogtWwu9.js → index-CQ3eT5S4.js} +2 -2
- package/_assets/{index-CnWTyHMl.js → index-CRP5QaPb.js} +2 -2
- package/_assets/{index-BmIKTd2K.js → index-CSBo6qrQ.js} +4 -4
- package/_assets/{index-CXzM7606.js → index-CTAs_Ona.js} +2 -2
- package/_assets/{index-DJWZ68WJ.js → index-CZJQqq1_.js} +2 -2
- package/_assets/{index-DtaMzCo4.js → index-CaHn1v4Y.js} +3 -3
- package/_assets/{index-DiO2SSq_.js → index-CarTIHBr.js} +2 -2
- package/_assets/{index-BTPbwm6G.js → index-CbZQowQ5.js} +2 -2
- package/_assets/{index-BwKHWCzU.js → index-CimY5gmO.js} +2 -2
- package/_assets/{index-W8NDj1_K.js → index-CpeNCh1-.js} +2 -2
- package/_assets/{index-7TuYfydT.js → index-CwSVzkMY.js} +2 -2
- package/_assets/{index-BF9JVUOa.js → index-CwlpUkJ3.js} +2 -2
- package/_assets/{index-DPXmfk7P.js → index-Cwx8-XY7.js} +2 -2
- package/_assets/{index-FS0EdtgY.js → index-Cx1edpy0.js} +2 -2
- package/_assets/{index-FU3FeYUY.js → index-D3jeiuFw.js} +2 -2
- package/_assets/{index-CBNmRWcc.js → index-D6hTzS8e.js} +2 -2
- package/_assets/{index-Dd6GvTnZ.js → index-D8CbiuvG.js} +2 -2
- package/_assets/{index-dyqTVTCl.js → index-DAuK57Cr.js} +2 -2
- package/_assets/{index-mGxb4_sf.js → index-DCSeDwHz.js} +2 -2
- package/_assets/{index-DQTxSPzt.js → index-DDxLpm0Z.js} +2 -2
- package/_assets/{index-DeNA-UiF.js → index-DHM5xCcE.js} +2 -2
- package/_assets/{index-B9wGuFCX.js → index-DJA_1O-1.js} +2 -2
- package/_assets/{index-Of1WNlJj.js → index-DNuGqPWd.js} +3 -3
- package/_assets/{index-BxjrggJW.js → index-DVqruI7F.js} +2 -2
- package/_assets/{index-DhxD_VOZ.js → index-DX-xaYge.js} +2 -2
- package/_assets/{index-CVvtM95L.js → index-D_3daVMJ.js} +2 -2
- package/_assets/{index-0iF6q7Dc.js → index-Dbp8PJtv.js} +2 -2
- package/_assets/{index-Bmsf8Air.js → index-DlWdq6Mw.js} +2 -2
- package/_assets/{index-C1pPamEq.js → index-DvfEbLUY.js} +2 -2
- package/_assets/{index-lUKvD9kJ.js → index-DwCKhtFu.js} +2 -2
- package/_assets/{index-Bct_bRJL.js → index-LDPyoGDo.js} +12 -12
- package/_assets/{index-Da_gr_24.js → index-NJ_79PUz.js} +2 -2
- package/_assets/{index-CujecoyA.js → index-OeIHT0cR.js} +2 -2
- package/_assets/{index-DGPdGf68.js → index-PPamm-Fm.js} +2 -2
- package/_assets/{index-DDFmcZCl.js → index-RYnkqAG_.js} +2 -2
- package/_assets/{index-CNJs9qv5.js → index-SPFq-ZCl.js} +2 -2
- package/_assets/{index-BkySuyVA.js → index-drol9D68.js} +2 -2
- package/_assets/{index-BkVMpeCx.js → index-fKbajirP.js} +2 -2
- package/_assets/{index-Qy9PPBCs.js → index-g_xcW_-R.js} +2 -2
- package/_assets/{index-Dm0i0BHe.js → index-ioIg36Q5.js} +4 -4
- package/_assets/{index-DKWNCfgA.js → index-vnVB3yV9.js} +2 -2
- package/_assets/{index.es-DQGHZFdq.js → index.es-B7WIB4xs.js} +2 -2
- package/_assets/{index.es-CA3_D2SU.js → index.es-BmijG_o0.js} +2 -2
- package/_assets/{index.es-DbAH76rg.js → index.es-Bmub6mvo.js} +2 -2
- package/_assets/{index.es-DeHqqp7L.js → index.es-DW9WuktD.js} +5 -5
- package/_assets/items-empty-Bs5yNmsR.js +2 -0
- package/_assets/{jump-D5bqZjn-.js → jump-DpEhRseo.js} +2 -2
- package/_assets/{linkAccount-CJuVyM61.js → linkAccount-Ce-F8zrz.js} +2 -2
- package/_assets/{localBatchGatewayRequest-D4MOUz-d.js → localBatchGatewayRequest-Dx1kkAvc.js} +2 -2
- package/_assets/{native-Cr2hK3Pq.js → native-vLlkzvxI.js} +2 -2
- package/_assets/{networks-DCf-8f0i.js → networks-DZ7rrynN.js} +2 -2
- package/_assets/{onramp-ycs94Dix.js → onramp-DLuIEWh8.js} +2 -2
- package/_assets/{openzeppelin-CDQyKj-1.js → openzeppelin-B3-AW1et.js} +2 -2
- package/_assets/{ownerOf-DDrVLihH.js → ownerOf-Dj22dy0c.js} +2 -2
- package/_assets/{parseNft-jgelbzFl.js → parseNft-DIyPdcOK.js} +3 -3
- package/_assets/{parseSignature-m5ctRnL2.js → parseSignature-D8jGniDr.js} +2 -2
- package/_assets/{parseSignature-Du3c0XxO.js → parseSignature-xueulJgr.js} +4 -4
- package/_assets/{passkeys-CxeDxdrI.js → passkeys-CZmD8fl-.js} +2 -2
- package/_assets/{pay-with-exchange-DpQHY-py.js → pay-with-exchange-Bc61S8fk.js} +2 -2
- package/_assets/{prepare-contract-call-CGRTBLkI.js → prepare-contract-call-a0euYGw1.js} +2 -2
- package/_assets/{qr-overlay-gsJo9t_r.js → qr-overlay-Bxcymc80.js} +4 -4
- package/_assets/{react-Cb20DwfT.js → react-G9L2um0r.js} +2 -2
- package/_assets/{receive-ImsHqYro.js → receive-B2L8XUAK.js} +2 -2
- package/_assets/{resolveImplementation-B5ta9SnG.js → resolveImplementation-CyW7nJOY.js} +2 -2
- package/_assets/{resume-buy-DsKEHLCS.js → resume-buy-DjsRBHGc.js} +2 -2
- package/_assets/{rpc-CtdTpIUn.js → rpc-HuV61zaY.js} +2 -2
- package/_assets/{sales-empty-DHzQRdN2.js → sales-empty-C2d5fYtD.js} +2 -2
- package/_assets/{search-empty-CiCjoeCH.js → search-empty-a5Cznk_m.js} +2 -2
- package/_assets/{secp256k1-B7dO-0ut.js → secp256k1-DRRm-iBM.js} +2 -2
- package/_assets/{secp256k1-R0yoFZNq.js → secp256k1-DVs4vnDB.js} +2 -2
- package/_assets/{secp256k1-Do9ROGum.js → secp256k1-D_V4Ye8O.js} +2 -2
- package/_assets/{send-CCLRyFK3.js → send-7zzvm8CG.js} +2 -2
- package/_assets/{send-batch-transaction-f0S6TgZe.js → send-batch-transaction-DzSQ0vye.js} +2 -2
- package/_assets/{send-eip712-transaction-dHyKJ4Ak.js → send-eip712-transaction-C8xbqwl4.js} +3 -3
- package/_assets/{send-gasless-transaction-DxOlBiHo.js → send-gasless-transaction-BApkPjqX.js} +3 -3
- package/_assets/{send-transaction-DBwvCmPn.js → send-transaction-BWqOlzuO.js} +3 -3
- package/_assets/{sendMetaTransaction-Czj3ikgH.js → sendMetaTransaction-DtqCFoTt.js} +2 -2
- package/_assets/{sendRawTransaction-DBwAFKzV.js → sendRawTransaction-DxOSpPmA.js} +4 -4
- package/_assets/{sentry-Bj5QbebD.js → sentry-RCtiQtjC.js} +3 -3
- package/_assets/{serializeTransaction-DpTwLFhn.js → serializeTransaction-DMjWbKEY.js} +2 -2
- package/_assets/{session-proposal-CaxSPT5V.js → session-proposal-CDANnhiF.js} +2 -2
- package/_assets/{session-request-gJuMMJxv.js → session-request-Bn0fkTkw.js} +3 -3
- package/_assets/{sha256-CBt_G5au.js → sha256-Cbk06XOV.js} +2 -2
- package/_assets/{signing-BFdLyhTz.js → signing-BH_9uHTG.js} +4 -4
- package/_assets/{skeleton.styles-Czp52uMO.js → skeleton.styles-KSeN66We.js} +2 -2
- package/_assets/{socials-CLWH57G5.js → socials-DGCX2gsj.js} +2 -2
- package/_assets/{styled-Cu6FogSR.js → styled-K_r8RfK3.js} +2 -2
- package/_assets/{swaps-BnXYuxie.js → swaps-CLkWisZt.js} +2 -2
- package/_assets/{thirdweb-DTID1Z_P.js → thirdweb-DbdkDnGO.js} +4 -4
- package/_assets/{to-serializable-transaction-CjM3sf2t.js → to-serializable-transaction-DeE9YtTe.js} +3 -3
- package/_assets/{totalSupply-BAW1cezV.js → totalSupply-f-_lj4s2.js} +2 -2
- package/_assets/{transaction-Di96EDLI.js → transaction-fETmGUb_.js} +2 -2
- package/_assets/{transactionReceipt-CMhqt28r.js → transactionReceipt-BHye7StB.js} +2 -2
- package/_assets/{transactions-DZEc2b0U.js → transactions-DUAV8yRm.js} +2 -2
- package/_assets/{useCreditPacks-DBLf5Vx6.js → useCreditPacks-DFJcm3cB.js} +2 -2
- package/_assets/{useInfiniteGrid-CaJ8N7_j.js → useInfiniteGrid-CLHeOKn3.js} +2 -2
- package/_assets/{useStore-1M9N96ol.js → useStore-BBUVWiPd.js} +3 -3
- package/_assets/{useTheme-D_6mMwzB.js → useTheme-DD0IQ_3Z.js} +2 -2
- package/_assets/{utils-BbvKQjvK.js → utils-u4hNmxb_.js} +2 -2
- package/_assets/{verifyHash-Bro5sc72.js → verifyHash-CY-z2bj3.js} +2 -2
- package/_assets/{w3m-modal-DPSxouW3.js → w3m-modal-CAKNlWwi.js} +2 -2
- package/_assets/{w3m-modal-C4Ujbh8p.js → w3m-modal-O6Eqk9dV.js} +2 -2
- package/_assets/{wait-for-tx-receipt-DY88_DTN.js → wait-for-tx-receipt-1jFQBtZz.js} +2 -2
- package/_assets/{wallets-D0SBUl4B.js → wallets-D1PAyMOY.js} +6 -6
- package/_assets/{web-connector-vZA2oyu8.js → web-connector-Dnqy9LKi.js} +4 -4
- package/_assets/{writeContract-G_uImvlH.js → writeContract-V_-ojxW6.js} +2 -2
- package/_assets/{zora-sepolia-DiU6-Iz5.js → zora-sepolia-CIIRKC4C.js} +2 -2
- package/_assets/{zoraTestnet-B7-C6axr.js → zoraTestnet-C2UcAlsp.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/collectionPage.styles-5lnK1hcJ.js +0 -40
- package/_assets/items-empty-DP4sOVHQ.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./react-
|
|
2
|
-
//# sourceMappingURL=events-
|
|
1
|
+
import"./react-G9L2um0r.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new u.Error().stack;c&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[c]="952f5bce-77dc-4b53-b8aa-c7d5fc6c1ab7",u._sentryDebugIdIdentifier="sentry-dbid-952f5bce-77dc-4b53-b8aa-c7d5fc6c1ab7")}catch{}})();var p={exports:{}},x;function T(){if(x)return p.exports;x=1;var u=typeof Reflect=="object"?Reflect:null,c=u&&typeof u.apply=="function"?u.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},l;u&&typeof u.ownKeys=="function"?l=u.ownKeys:Object.getOwnPropertySymbols?l=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:l=function(e){return Object.getOwnPropertyNames(e)};function C(t){console&&console.warn&&console.warn(t)}var h=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}p.exports=o,p.exports.once=M,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var y=10;function v(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return y},set:function(t){if(typeof t!="number"||t<0||h(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");y=t}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||h(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function L(t){return t._maxListeners===void 0?o.defaultMaxListeners:t._maxListeners}o.prototype.getMaxListeners=function(){return L(this)},o.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e==="error",f=this._events;if(f!==void 0)i=i&&f.error===void 0;else if(!i)return!1;if(i){var s;if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var d=f[e];if(d===void 0)return!1;if(typeof d=="function")c(d,this,n);else for(var O=d.length,I=w(d,O),r=0;r<O;++r)c(I[r],this,n);return!0};function m(t,e,n,r){var i,f,s;if(v(n),f=t._events,f===void 0?(f=t._events=Object.create(null),t._eventsCount=0):(f.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),f=t._events),s=f[e]),s===void 0)s=f[e]=n,++t._eventsCount;else if(typeof s=="function"?s=f[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=L(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=s.length,C(a)}return t}o.prototype.addListener=function(e,n){return m(this,e,n,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,n){return m(this,e,n,!0)};function R(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=R.bind(r);return i.listener=n,r.wrapFn=i,i}o.prototype.once=function(e,n){return v(n),this.on(e,g(this,e,n)),this},o.prototype.prependOnceListener=function(e,n){return v(n),this.prependListener(e,g(this,e,n)),this},o.prototype.removeListener=function(e,n){var r,i,f,s,a;if(v(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(f=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){a=r[s].listener,f=s;break}if(f<0)return this;f===0?r.shift():j(r,f),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,a||n)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var f=Object.keys(r),s;for(i=0;i<f.length;++i)s=f[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this};function b(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?N(i):w(i,i.length)}o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):_.call(t,e)},o.prototype.listenerCount=_;function _(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function w(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function j(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function N(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function M(t,e){return new Promise(function(n,r){function i(s){t.removeListener(e,f),r(s)}function f(){typeof t.removeListener=="function"&&t.removeListener("error",i),n([].slice.call(arguments))}E(t,e,f,{once:!0}),e!=="error"&&A(t,i,{once:!0})})}function A(t,e,n){typeof t.on=="function"&&E(t,"error",e,n)}function E(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(f){r.once&&t.removeEventListener(e,i),n(f)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}return p.exports}export{T as r};
|
|
2
|
+
//# sourceMappingURL=events-DLLBOQYG.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-
|
|
2
|
-
import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-CGRTBLkI.js";import{_ as E}from"./index-Bct_bRJL.js";import{w as V,c as H,h as K,a as j}from"./utils-BbvKQjvK.js";import{d as B}from"./detectExtension-noSlp4xk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3a432edd-642a-4f49-bad1-107400b4f060",e._sentryDebugIdIdentifier="sentry-dbid-3a432edd-642a-4f49-bad1-107400b4f060")}catch{}})();function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function P(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const b=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(b.has(a))return b.get(a);const c=await t(e);return b.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,p,i,w,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-DasQRw2k.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:I,chain:y,adminAccount:m}=await r(s,o,u);w=s.client,l=I,p=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return P({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-DasQRw2k.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:I,chain:y,adminAccount:m}=await r(s,o,u);w=s.client,l=I,p=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return P({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(w&&!(await(await g(w,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,p=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>p,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&w&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-DasQRw2k.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),I=await g(w,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:w},o,I);p=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-vZA2oyu8.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function f(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-vZA2oyu8.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await f(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await f(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await f(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await f(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await f(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function fe(e){return await(await f(e.client,e.ecosystem)).linkProfile(e)}async function we(e){return await(await f(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await f(e.client,e.ecosystem)).getProfiles()}const Ie="/sdk/2022-08-12/embedded-wallet",v=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",S=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",k=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class pe{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(S(this.key),t)}async getAuthCookie(){return this.getItem(S(this.key))}async removeAuthCookie(){return this.removeItem(S(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(k(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(k(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(k(this.key,t)):!1}async getWalletUserId(){return this.getItem(v(this.key))}async saveWalletUserId(t){await this.setItem(v(this.key),t)}async removeWalletUserId(){return this.removeItem(v(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const D="0x3f707e6b",U=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],N=[];function _e(e){return B({availableSelectors:e,method:[D,U,N]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[D,U,N],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{pe as C,Ie as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,fe as l,ye as m,te as o,de as p,oe as r,P as t,we as u,re as w};
|
|
3
|
-
//# sourceMappingURL=execute-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BpQETbke.js","_assets/index-LDPyoGDo.js","_assets/react-G9L2um0r.js","_assets/dcl-schemas-CQsQxWYK.js","_assets/sentry-RCtiQtjC.js","_assets/ethers-DXUQI3Ut.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/ethereum-RVBnTLaL.js","_assets/utils-u4hNmxb_.js","_assets/types-BeDU9GfL.js","_assets/get-bytecode-Dgh4Jb3X.js","_assets/prepare-contract-call-a0euYGw1.js","_assets/to-serializable-transaction-DeE9YtTe.js","_assets/transaction-fETmGUb_.js","_assets/web-connector-Dnqy9LKi.js","_assets/linkAccount-Ce-F8zrz.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sleep-fBr8OToA.js","_assets/detectExtension-CBEeT0QS.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-a0euYGw1.js";import{_ as E}from"./index-LDPyoGDo.js";import{w as V,c as H,h as K,a as j}from"./utils-u4hNmxb_.js";import{d as B}from"./detectExtension-CBEeT0QS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3a432edd-642a-4f49-bad1-107400b4f060",e._sentryDebugIdIdentifier="sentry-dbid-3a432edd-642a-4f49-bad1-107400b4f060")}catch{}})();function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function P(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const b=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(b.has(a))return b.get(a);const c=await t(e);return b.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,p,i,w,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-BpQETbke.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:I,chain:y,adminAccount:m}=await r(s,o,u);w=s.client,l=I,p=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return P({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-BpQETbke.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:I,chain:y,adminAccount:m}=await r(s,o,u);w=s.client,l=I,p=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return P({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(w&&!(await(await g(w,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,p=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>p,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&w&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-BpQETbke.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),I=await g(w,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:w},o,I);p=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-Dnqy9LKi.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function f(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-Dnqy9LKi.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await f(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await f(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await f(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await f(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await f(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function fe(e){return await(await f(e.client,e.ecosystem)).linkProfile(e)}async function we(e){return await(await f(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await f(e.client,e.ecosystem)).getProfiles()}const Ie="/sdk/2022-08-12/embedded-wallet",v=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",S=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",k=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class pe{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(S(this.key),t)}async getAuthCookie(){return this.getItem(S(this.key))}async removeAuthCookie(){return this.removeItem(S(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(k(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(k(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(k(this.key,t)):!1}async getWalletUserId(){return this.getItem(v(this.key))}async saveWalletUserId(t){await this.setItem(v(this.key),t)}async removeWalletUserId(){return this.removeItem(v(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const D="0x3f707e6b",U=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],N=[];function _e(e){return B({availableSelectors:e,method:[D,U,N]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[D,U,N],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{pe as C,Ie as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,fe as l,ye as m,te as o,de as p,oe as r,P as t,we as u,re as w};
|
|
3
|
+
//# sourceMappingURL=execute-C57BG5lJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as N,H as T}from"./prepare-contract-call-
|
|
2
|
-
//# sourceMappingURL=extractIPFS-
|
|
1
|
+
import{f as N,H as T}from"./prepare-contract-call-a0euYGw1.js";import"./utils-u4hNmxb_.js";import"./sentry-RCtiQtjC.js";import"./react-G9L2um0r.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]="b41a6574-02c2-40c7-a170-32d4b709f881",t._sentryDebugIdIdentifier="sentry-dbid-b41a6574-02c2-40c7-a170-32d4b709f881")}catch{}})();const C="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",U=C.length,L=C.charAt(0),M=Math.log(256)/Math.log(U);function v(t){if(!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length===0)return"";let e=0,i=0,n=0;const s=t.length;for(;n!==s&&t[n]===0;)n++,e++;const f=(s-n)*M+1>>>0,a=new Uint8Array(f);for(;n!==s;){let x=t[n]||0,b=0;for(let y=f-1;(x!==0||b<i)&&y!==-1;y--,b++)x+=256*(a[y]||0)>>>0,a[y]=x%U>>>0,x=x/U>>>0;if(x!==0)throw new Error("Non-zero carry");i=b,n++}let l=f-i;for(;l!==f&&a[l]===0;)l++;let u=L.repeat(e);for(;l<f;++l)u+=C.charAt(a[l]||0);return u}let o,E,r=0,D={},w,P;const k=0;let _=0,m,j,z;const O={mapsAsObjects:!0,useRecords:!1};function F(t){let e;if(t<16&&(e=$(t)))return e;if(t>64&&decoder)return decoder.decode(o.subarray(r,r+=t));const i=r+t,n=[];for(e="";r<i;){const s=o[r++];if((s&128)===0)n.push(s);else if((s&224)===192){const f=o[r++]&63;n.push((s&31)<<6|f)}else if((s&240)===224){const f=o[r++]&63,a=o[r++]&63;n.push((s&31)<<12|f<<6|a)}else if((s&248)===240){const f=o[r++]&63,a=o[r++]&63,l=o[r++]&63;let u=(s&7)<<18|f<<12|a<<6|l;u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u)}else n.push(s);n.length>=4096&&(e+=d.apply(String,n),n.length=0)}return n.length>0&&(e+=d.apply(String,n)),e}class I{constructor(){Object.assign(this,O)}decodeKey(e){return e}decode(e,i=-1){E=i>-1?i:e.length,r=0,_=0,P=null,m=null,o=e;try{z=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw o=null,e instanceof Uint8Array?n:new Error(`Source must be a Uint8Array or Buffer but was a ${e&&typeof e=="object"?e.constructor.name:typeof e}`)}return this instanceof I?(D=this,this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),(!w||w.length>0)&&(w=[])):(D=O,(!w||w.length>0)&&(w=[])),H()}}function H(){try{const t=S();if(m){if(r>=m.postBundlePosition){const e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}r=m.postBundlePosition,m=null}if(r===E)w=null,o=null,j&&(j=null);else if(r>E){const e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else throw new Error("Data read, but end of buffer not reached");return t}catch(t){throw q(),(t instanceof RangeError||t.message.startsWith("Unexpected end of buffer"))&&(t.incomplete=!0),t}}function S(){let t=o[r++];const e=t>>5;if(t=t&31,t>23)switch(t){case 24:t=o[r++];break;default:throw new Error(`Unknown token ${t}`)}switch(e){case 0:return t;case 1:return~t;case 2:return W(t);case 3:if(_>=r)return P.slice(r-k,(r+=t)-k);if(_===0&&E<140&&t<32){const i=t<16?$(t):K(t);if(i!==null)return i}return F(t);case 4:{const i=new Array(t);for(let n=0;n<t;n++)i[n]=S();return i}case 5:{const i={};for(let n=0;n<t;n++)i[J(S())]=S();return i}default:if(Number.isNaN(t)){const i=new Error("Unexpected end of CBOR data");throw i.incomplete=!0,i}throw new Error(`Unknown CBOR token ${t}`)}}function J(t){if(typeof t=="string")return t==="__proto__"?"__proto_":t;if(typeof t!="object")return t.toString();throw new Error(`Invalid property name type ${typeof t}`)}const d=String.fromCharCode;function K(t){const e=r,i=new Array(t);for(let n=0;n<t;n++){const s=o[r++];if((s&128)>0){r=e;return}i[n]=s}return d.apply(String,i)}function $(t){if(t<4){if(t<2){if(t===0)return"";const V=o[r++];if((V&128)>1){r-=1;return}return d(V)}const c=o[r++],p=o[r++];if((c&128)>0||(p&128)>0){r-=2;return}if(t<3)return d(c,p);const h=o[r++];if((h&128)>0){r-=3;return}return d(c,p,h)}const e=o[r++],i=o[r++],n=o[r++],s=o[r++];if((e&128)>0||(i&128)>0||(n&128)>0||(s&128)>0){r-=4;return}if(t<6){if(t===4)return d(e,i,n,s);const c=o[r++];if((c&128)>0){r-=5;return}return d(e,i,n,s,c)}if(t<8){const c=o[r++],p=o[r++];if((c&128)>0||(p&128)>0){r-=6;return}if(t<7)return d(e,i,n,s,c,p);const h=o[r++];if((h&128)>0){r-=7;return}return d(e,i,n,s,c,p,h)}const f=o[r++],a=o[r++],l=o[r++],u=o[r++];if((f&128)>0||(a&128)>0||(l&128)>0||(u&128)>0){r-=8;return}if(t<10){if(t===8)return d(e,i,n,s,f,a,l,u);const c=o[r++];if((c&128)>0){r-=9;return}return d(e,i,n,s,f,a,l,u,c)}if(t<12){const c=o[r++],p=o[r++];if((c&128)>0||(p&128)>0){r-=10;return}if(t<11)return d(e,i,n,s,f,a,l,u,c,p);const h=o[r++];if((h&128)>0){r-=11;return}return d(e,i,n,s,f,a,l,u,c,p,h)}const x=o[r++],b=o[r++],y=o[r++],g=o[r++];if((x&128)>0||(b&128)>0||(y&128)>0||(g&128)>0){r-=12;return}if(t<14){if(t===12)return d(e,i,n,s,f,a,l,u,x,b,y,g);const c=o[r++];if((c&128)>0){r-=13;return}return d(e,i,n,s,f,a,l,u,x,b,y,g,c)}const A=o[r++],B=o[r++];if((A&128)>0||(B&128)>0){r-=14;return}if(t<15)return d(e,i,n,s,f,a,l,u,x,b,y,g,A,B);const R=o[r++];if((R&128)>0){r-=15;return}return d(e,i,n,s,f,a,l,u,x,b,y,g,A,B,R)}function W(t){return D.copyBuffers?Uint8Array.prototype.slice.call(o,r,r+=t):o.subarray(r,r+=t)}function q(){o=null,j=null,w=null}const G=new Array(147);for(let t=0;t<256;t++)G[t]=+`1e${Math.floor(45.15-t*.30103)}`;const Q=new I,X=Q.decode;function Y(t){return N(t,{strict:!1})?t:`0x${t}`}function nt(t){const e=T(Y(t)),i=e[e.length-2]*256+e[e.length-1],n=e.length-2-i;if(n<0||n>e.length)return;const s=e.slice(n,-2),f=X(s);if("ipfs"in f)return`ipfs://${v(f.ipfs)}`}export{nt as extractIPFSUri};
|
|
2
|
+
//# sourceMappingURL=extractIPFS-BKXzy-Rh.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{C as g,x as y,a6 as m,v as u,B as k,z as S}from"./W3MFrameProviderSingleton-
|
|
1
|
+
import{C as g,x as y,a6 as m,v as u,B as k,z as S}from"./W3MFrameProviderSingleton-qLuUEBFJ.js";import{az as A,au as p}from"./NetworkUtil-C2E64C4n.js";import"./dcl-schemas-CQsQxWYK.js";import"./react-G9L2um0r.js";import"./index-D6hTzS8e.js";import"./sentry-RCtiQtjC.js";import"./index-CaHn1v4Y.js";import"./events-DLLBOQYG.js";import"./index-LDPyoGDo.js";import"./ethers-DXUQI3Ut.js";import"./intl-AKLEHPeO.js";import"./browser-ponyfill-ByHh5PGV.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="01dceda4-f169-4ad1-b031-2e9357c30202",r._sentryDebugIdIdentifier="sentry-dbid-01dceda4-f169-4ad1-b031-2e9357c30202")}catch{}})();class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
|
|
2
2
|
${e.statement}
|
|
3
3
|
`:"",`URI: ${e.uri}`,`Version: ${e.version}`,`Chain ID: ${e.chainId}`,`Nonce: ${e.nonce}`,e.issuedAt&&`Issued At: ${e.issuedAt}`,e.expirationTime&&`Expiration Time: ${e.expirationTime}`,e.notBefore&&`Not Before: ${e.notBefore}`,e.requestId&&`Request ID: ${e.requestId}`,((n=e.resources)==null?void 0:n.length)&&e.resources.reduce((s,o)=>`${s}
|
|
4
4
|
- ${o}`,"Resources:")].filter(s=>typeof s=="string").join(`
|
|
5
5
|
`).trim()}getNetworkName(e){const t=g.getAllRequestedCaipNetworks();return A.getNetworkNameByCaipNetworkId(t,e)}stringifyDate(e){return e.toISOString()}}class P{constructor(e={}){this.otpUuid=null,this.listeners={sessionChanged:[]},this.localAuthStorageKey=e.localAuthStorageKey||y.SIWX_AUTH_TOKEN,this.localNonceStorageKey=e.localNonceStorageKey||y.SIWX_NONCE_TOKEN,this.required=e.required??!0,this.messenger=new N({getNonce:this.getNonce.bind(this)})}async createMessage(e){return this.messenger.createMessage(e)}async addSession(e){const t=await this.request({method:"POST",key:"authenticate",body:{data:e.data,message:e.message,signature:e.signature,clientId:this.getClientId(),walletInfo:this.getWalletInfo()},headers:["nonce","otp"]});this.setStorageToken(t.token,this.localAuthStorageKey),this.emit("sessionChanged",e),this.setAppKitAccountUser(I(t.token)),this.otpUuid=null}async getSessions(e,t){try{if(!this.getStorageToken(this.localAuthStorageKey))return[];const n=await this.request({method:"GET",key:"me",query:{},headers:["auth"]});if(!n)return[];const s=n.address.toLowerCase()===t.toLowerCase(),o=n.caip2Network===e;if(!s||!o)return[];const i={data:{accountAddress:n.address,chainId:n.caip2Network},message:"",signature:""};return this.emit("sessionChanged",i),this.setAppKitAccountUser(n),[i]}catch{return[]}}async revokeSession(e,t){return Promise.resolve(this.clearStorageTokens())}async setSessions(e){if(e.length===0)this.clearStorageTokens();else{const t=e.find(n=>{var s;return n.data.chainId===((s=m())==null?void 0:s.caipNetworkId)})||e[0];await this.addSession(t)}}getRequired(){return this.required}async getSessionAccount(){if(!this.getStorageToken(this.localAuthStorageKey))throw new Error("Not authenticated");return this.request({method:"GET",key:"me",body:void 0,query:{includeAppKitAccount:!0},headers:["auth"]})}async setSessionAccountMetadata(e=null){if(!this.getStorageToken(this.localAuthStorageKey))throw new Error("Not authenticated");return this.request({method:"PUT",key:"account-metadata",body:{metadata:e},headers:["auth"]})}on(e,t){return this.listeners[e].push(t),()=>{this.listeners[e]=this.listeners[e].filter(n=>n!==t)}}removeAllListeners(){Object.keys(this.listeners).forEach(t=>{this.listeners[t]=[]})}async requestEmailOtp({email:e,account:t}){const n=await this.request({method:"POST",key:"otp",body:{email:e,account:t}});return this.otpUuid=n.uuid,this.messenger.resources=[`email:${e}`],n}confirmEmailOtp({code:e}){return this.request({method:"PUT",key:"otp",body:{code:e},headers:["otp"]})}async request({method:e,key:t,query:n,body:s,headers:o}){var f;const{projectId:i,st:h,sv:w}=this.getSDKProperties(),c=new URL(`${p.W3M_API_URL}/auth/v1/${String(t)}`);c.searchParams.set("projectId",i),c.searchParams.set("st",h),c.searchParams.set("sv",w),n&&Object.entries(n).forEach(([a,l])=>c.searchParams.set(a,String(l)));const d=await fetch(c,{method:e,body:s?JSON.stringify(s):void 0,headers:Array.isArray(o)?o.reduce((a,l)=>{switch(l){case"nonce":a["x-nonce-jwt"]=`Bearer ${this.getStorageToken(this.localNonceStorageKey)}`;break;case"auth":a.Authorization=`Bearer ${this.getStorageToken(this.localAuthStorageKey)}`;break;case"otp":this.otpUuid&&(a["x-otp"]=this.otpUuid);break}return a},{}):void 0});if(!d.ok)throw new Error(await d.text());return(f=d.headers.get("content-type"))!=null&&f.includes("application/json")?d.json():null}getStorageToken(e){return u.getItem(e)}setStorageToken(e,t){u.setItem(t,e)}clearStorageTokens(){this.otpUuid=null,u.removeItem(this.localAuthStorageKey),u.removeItem(this.localNonceStorageKey),this.emit("sessionChanged",void 0)}async getNonce(){const{nonce:e,token:t}=await this.request({method:"GET",key:"nonce"});return this.setStorageToken(t,this.localNonceStorageKey),e}getClientId(){return k.state.clientId}getWalletInfo(){var o;const e=(o=g.getAccountData())==null?void 0:o.connectedWalletInfo;if(!e)return;if("social"in e&&"identifier"in e){const i=e.social,h=e.identifier;return{type:"social",social:i,identifier:h}}const{name:t,icon:n}=e;let s="unknown";switch(e.type){case"EXTERNAL":case"INJECTED":case"ANNOUNCED":s="extension";break;case"WALLET_CONNECT":s="walletconnect";break;default:s="unknown"}return{type:s,name:t,icon:n}}getSDKProperties(){return S._getSdkProperties()}emit(e,t){this.listeners[e].forEach(n=>n(t))}setAppKitAccountUser(e){const{email:t}=e;t&&Object.values(p.CHAIN).forEach(n=>{g.setAccountProp("user",{email:t},n)})}}function I(r){const e=r.split(".");if(e.length!==3)throw new Error("Invalid token");const t=e[1];if(typeof t!="string")throw new Error("Invalid token");const n=t.replace(/-/gu,"+").replace(/_/gu,"/"),s=n.padEnd(n.length+(4-n.length%4)%4,"=");return JSON.parse(atob(s))}export{P as ReownAuthentication,N as ReownAuthenticationMessenger};
|
|
6
|
-
//# sourceMappingURL=features-
|
|
6
|
+
//# sourceMappingURL=features-ALZAg55_.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-
|
|
2
|
-
import{_ as s}from"./index-
|
|
3
|
-
//# sourceMappingURL=fetchTokenMetadata-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-DeE9YtTe.js","_assets/index-LDPyoGDo.js","_assets/react-G9L2um0r.js","_assets/dcl-schemas-CQsQxWYK.js","_assets/sentry-RCtiQtjC.js","_assets/ethers-DXUQI3Ut.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/prepare-contract-call-a0euYGw1.js","_assets/utils-u4hNmxb_.js","_assets/transaction-fETmGUb_.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as s}from"./index-LDPyoGDo.js";import{b as c}from"./uint8-array-BMe04WIx.js";import{n as d}from"./prepare-contract-call-a0euYGw1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="61e61030-f04b-4914-be2e-b352865b1b79",e._sentryDebugIdIdentifier="sentry-dbid-61e61030-f04b-4914-be2e-b352865b1b79")}catch{}})();const f="data:application/json;base64";function u(e){return!!e.toLowerCase().startsWith(f)}function l(e){const o=e.indexOf(","),r=e.slice(o+1);return c(r)}const b="data:application/json;utf-8";function w(e){return!!e.toLowerCase().startsWith(b)}function h(e){const o=e.indexOf(","),r=e.slice(o+1);try{return decodeURIComponent(r)}catch{return r}}async function _(e){const{client:o,tokenId:r,tokenUri:n}=e;if(u(n))try{return JSON.parse(l(n))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:r,tokenUri:n},t),t}if(w(n))try{return JSON.parse(h(n))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:r,tokenUri:n},t),t}const{download:a}=await s(async()=>{const{download:t}=await import("./to-serializable-transaction-DeE9YtTe.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!n.includes("{id}"))return await(await a({client:o,uri:n})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:r,tokenUri:n},t),t}try{try{return await(await a({client:o,uri:n.replace("{id}",d(r,{size:32}).slice(2))})).json()}catch{return await(await a({client:o,uri:n.replace("{id}",r.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:r,tokenUri:n},t),t}}export{_ as f};
|
|
3
|
+
//# sourceMappingURL=fetchTokenMetadata-Cr3PV6X1.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as a,s as r}from"./index-
|
|
1
|
+
import{t as a,s as r}from"./index-LDPyoGDo.js";import"./react-G9L2um0r.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="1f1c03d9-c365-4827-be7b-02376e4c5757",t._sentryDebugIdIdentifier="sentry-dbid-1f1c03d9-c365-4827-be7b-02376e4c5757")}catch{}})();const{colors:e}=a,s=r.input`
|
|
2
2
|
--box: 17.143px;
|
|
3
3
|
position: relative;
|
|
4
4
|
appearance: none;
|
|
@@ -68,4 +68,4 @@ import{t as a,s as r}from"./index-Bct_bRJL.js";import"./react-Cb20DwfT.js";(func
|
|
|
68
68
|
font: inherit;
|
|
69
69
|
}
|
|
70
70
|
`;export{s as C,d as F};
|
|
71
|
-
//# sourceMappingURL=field.styles-
|
|
71
|
+
//# sourceMappingURL=field.styles-1qNXB2de.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as X}from"./react-Cb20DwfT.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y=new p.Error().stack;y&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[y]="81dea6e3-5b52-43e1-87f9-c6b03a3ad522",p._sentryDebugIdIdentifier="sentry-dbid-81dea6e3-5b52-43e1-87f9-c6b03a3ad522")}catch{}})();function ee(p,y){for(var a=0;a<y.length;a++){const r=y[a];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in p)){const u=Object.getOwnPropertyDescriptor(r,o);u&&Object.defineProperty(p,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var V,J;function te(){return J||(J=1,V=(function(p){var y={};function a(r){if(y[r])return y[r].exports;var o=y[r]={i:r,l:!1,exports:{}};return p[r].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=p,a.c=y,a.d=function(r,o,u){a.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:u})},a.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},a.t=function(r,o){if(1&o&&(r=a(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var l in r)a.d(u,l,(function(R){return r[R]}).bind(null,l));return u},a.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(o,"a",o),o},a.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},a.p="",a(a.s=3)})([function(p,y){p.exports=function(a){return a&&a.__esModule?a:{default:a}}},function(p,y){p.exports=function(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}},function(p,y,a){function r(){return Math.floor(9e4*Math.random())+1e4}Object.defineProperty(y,"__esModule",{value:!0}),y.sendAsyncWrapper=function(o,u){var l=this;return new Promise(function(R,I){l.sendAsync({jsonrpc:"2.0",id:r(),method:o,params:u||[]},function(O,T){O?I(O):R(T.result)})})},y.sendFortmaticAsyncWrapper=function(o){var u=this;return new Promise(function(l,R){u.getProvider().sendFortmaticAsync(o,function(I,O){I?R(I):l(O?O.result:{})})})},y.randomId=r,y.findExistingResponse=function(o,u){for(var l=0;l<o.length;l++)if(o[l].id===u)return o[l];return null}},function(p,y,a){p.exports=a(4)},function(p,y,a){var r=a(0),o=r(a(1)),u=r(a(5)),l=a(2),R="fm_composeSend",I="fm_logout",O="fm_get_balances",T="fm_get_transactions",w="fm_is_logged_in",P="fm_accountSettings",n="fm_deposit",s="fm_get_user",c="fm_configure",f={};p.exports=function b(_,A,x){var v=this;if((0,o.default)(this,b),this.fortmaticClient="https://x2.fortmatic.com",!_)throw new Error("Please provide a Fortmatic API key that you acquired from the developer dashboard.");this.apiKey=_,this.options=x,this.ethNetwork=A,this.queryParams=btoa(JSON.stringify({API_KEY:_,ETH_NETWORK:A})),this.transactions={send:function(m,M){var C=new g(R,{to:m.to,value:m.amount});v.getProvider().sendFortmaticAsync(C,M)}},this.getProvider=function(){return f["fortmatic-".concat(v.queryParams)]||(f["fortmatic-".concat(v.queryParams)]=new u.default(v.fortmaticClient,{API_KEY:_,ETH_NETWORK:A})),f["fortmatic-".concat(v.queryParams)]},this.user={login:function(){return v.getProvider().enable()},logout:function(){v.getProvider().account=null,v.getProvider().network=null;var m=new g(I);return l.sendFortmaticAsyncWrapper.call(v,m)},getUser:function(){var m=new g(s);return l.sendFortmaticAsyncWrapper.call(v,m)},getBalances:function(){var m=new g(O);return l.sendFortmaticAsyncWrapper.call(v,m)},getTransactions:function(){var m=new g(T);return l.sendFortmaticAsyncWrapper.call(v,m)},isLoggedIn:function(){var m=new g(w);return l.sendFortmaticAsyncWrapper.call(v,m)},settings:function(){var m=new g(P);return l.sendFortmaticAsyncWrapper.call(v,m)},deposit:function(m){var M=new g(n,m);return l.sendFortmaticAsyncWrapper.call(v,M)}},this.configure=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=new g(c);return M.params=[m],l.sendFortmaticAsyncWrapper.call(v,M)}};var g=function b(_,A){(0,o.default)(this,b),this.id=(0,l.randomId)(),this.method=_,this.params=A?[A]:[{}]}},function(p,y,a){var r=a(0);Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var o=r(a(6)),u=r(a(9)),l=r(a(1)),R=r(a(10)),I=a(11),O=r(a(12)),T=a(2),w=(function(){function P(n,s){if((0,l.default)(this,P),this.fortmaticClient=n,this.requests={},this.queue=[],this.account=null,this.network=null,this.isFortmatic=!0,this.overlayReady=!1,this.isLoggedIn=!1,this.postMessages={FORTMATIC_HANDLE_BATCH_REQUEST:"FORTMATIC_HANDLE_BATCH_REQUEST",FORTMATIC_HANDLE_REQUEST:"FORTMATIC_HANDLE_REQUEST",FORTMATIC_HANDLE_FORTMATIC_REQUEST:"FORTMATIC_HANDLE_FORTMATIC_REQUEST",FORTMATIC_HANDLE_RESPONSE:"FORTMATIC_HANDLE_RESPONSE",FORTMATIC_OVERLAY_READY:"FORTMATIC_OVERLAY_READY",FORTMATIC_SHOW_OVERLAY:"FORTMATIC_SHOW_OVERLAY",FORTMATIC_HIDE_OVERLAY:"FORTMATIC_HIDE_OVERLAY",FORTMATIC_USER_DENIED:"FORTMATIC_USER_DENIED",FORTMATIC_USER_LOGOUT:"FORTMATIC_USER_LOGOUT",FORTMATIC_UNAUTHORIZED_API_KEY:"FORTMATIC_UNAUTHORIZED_API_KEY"},!s.API_KEY)throw new Error("Please provide a Fortmatic API key that you acquired from the developer dashboard.");this.options={API_KEY:s.API_KEY,ETH_NETWORK:s.ETH_NETWORK,DOMAIN_ORIGIN:window.location?window.location.origin:"",version:I.version},this.queryParams=btoa(JSON.stringify(this.options)),this.constructPostMessage(),this.overlay=this.createOverlay(),this.listenMessage()}return(0,R.default)(P,[{key:"constructPostMessage",value:function(){var n=this;Object.keys(this.postMessages).map(function(s){n.postMessages[s]+="-".concat(n.queryParams)})}},{key:"createOverlay",value:function(){var n=this;return new Promise(function(s,c){var f=function(){if((function(){var A=!0,x=!1,v=void 0;try{for(var m,M=document.getElementsByClassName("fortmatic-iframe")[Symbol.iterator]();!(A=(m=M.next()).done);A=!0)if(m.value.src.includes(n.queryParams))return!1}catch(C){x=!0,v=C}finally{try{A||M.return==null||M.return()}finally{if(x)throw v}}return!0})()){var g=document.createElement("style");g.innerHTML=O.default.css,g.type="text/css",document.head.appendChild(g);var b=document.createElement("iframe");b.className="fortmatic-iframe",b.src="".concat(n.fortmaticClient,"/send?params=").concat(n.queryParams),document.body.appendChild(b);var _=document.createElement("img");_.src="https://static.fortmatic.com/assets/trans.gif",document.body.appendChild(_),s({iframe:b})}else console.error("Fortmatic: Duplicate instances found.")};["loaded","interactive","complete"].indexOf(document.readyState)>-1?f():window.addEventListener("load",f.bind(n),!1)})}},{key:"showOverlay",value:(function(){var n=(0,u.default)(o.default.mark(function s(){return o.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.overlay;case 2:c.sent.iframe.style.display="block";case 4:case"end":return c.stop()}},s,this)}));return function(){return n.apply(this,arguments)}})()},{key:"hideOverlay",value:(function(){var n=(0,u.default)(o.default.mark(function s(){return o.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.overlay;case 2:c.sent.iframe.style.display="none";case 4:case"end":return c.stop()}},s,this)}));return function(){return n.apply(this,arguments)}})()},{key:"sendAsync",value:function(n,s){n.length>0?this.enqueue({payload:{id:(0,T.randomId)(),batch:n.map(function(c){return c.id=(0,T.randomId)(),c}),method:"eth_batchRequest"},cb:s}):this.enqueue({payload:n,cb:s})}},{key:"sendFortmaticAsync",value:function(n,s){this.enqueue({payload:n,cb:s,isNative:!0})}},{key:"send",value:function(n,s){if(typeof n=="string")return T.sendAsyncWrapper.call(this,n,s);if(!s){console.warn("Non-async web3 methods will be deprecated in web3 > 1.0, and are not supported by the Fortmatic provider. An async method to be used instead."),this.sendAsync(n,function(){});var c={};switch(n.method){case"eth_accounts":c=this.account?[this.account]:[];break;case"eth_coinbase":c=this.account;break;case"net_version":c=this.network||(this.options.API_KEY.startsWith("pk_live")?1:4);break;case"eth_uninstallFilter":c=!0;break;default:c={}}return{id:n.id,jsonrpc:n.jsonrpc,result:c}}this.sendAsync(n,s)}},{key:"enqueue",value:function(n){this.queue.push(n),this.overlayReady&&this.dequeue()}},{key:"dequeue",value:(function(){var n=(0,u.default)(o.default.mark(function s(){var c,f,g,b=this;return o.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(this.queue.length!==0){_.next=2;break}return _.abrupt("return");case 2:if(!(c=this.queue.shift())){_.next=11;break}return f=c.payload,g=c.cb,f.id=(0,T.randomId)(),_.next=9,this.postMessage(c.isNative?this.postMessages.FORTMATIC_HANDLE_FORTMATIC_REQUEST:this.postMessages.FORTMATIC_HANDLE_REQUEST,c.payload);case 9:f.batch&&f.batch.length>0?(f.batch.forEach(function(A){b.requests[A.id]={parentId:f.id,payload:A,cb:function(x,v){var m=b.requests[f.id].batchResponse;if(x&&x.response&&!(0,T.findExistingResponse)(m,x.response.id))throw m.push({jsonrpc:"2.0",id:x.response.id,error:{code:x.response.code,message:x.response.message}}),b.requests[f.id].cb(null,m),x.response;if(v&&v.result&&!(0,T.findExistingResponse)(m,v.id))return m.push(v);throw new Error("Fortmatic: unexpected callback behavior")}}}),this.requests[f.id]={payload:f,cb:g,batchResponse:[]}):this.requests[f.id]={payload:f,cb:g},this.dequeue();case 11:case"end":return _.stop()}},s,this)}));return function(){return n.apply(this,arguments)}})()},{key:"postMessage",value:(function(){var n=(0,u.default)(o.default.mark(function s(c,f){var g;return o.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,this.overlay;case 2:if(!(g=b.sent).iframe.contentWindow){b.next=7;break}g.iframe.contentWindow.postMessage({msgType:c,payload:f},"*"),b.next=8;break;case 7:throw new Error("Fortmatic: Modal is not ready.");case 8:case"end":return b.stop()}},s,this)}));return function(s,c){return n.apply(this,arguments)}})()},{key:"enable",value:function(){return T.sendAsyncWrapper.call(this,"eth_accounts")}},{key:"listenMessage",value:function(){var n=this;window.addEventListener("message",function(s){if(s.origin===n.fortmaticClient){var c=s.data.response?s.data.response.id:null;switch(s.data.msgType){case n.postMessages.FORTMATIC_OVERLAY_READY:n.overlayReady=!0,n.dequeue();break;case n.postMessages.FORTMATIC_HANDLE_RESPONSE:try{n.requests[c].cb(null,s.data.response);var f=n.requests[c].parentId;f&&n.requests[f].payload.batch.length===n.requests[f].batchResponse.length&&n.requests[f].cb(null,n.requests[f].batchResponse),n.requests[c].payload.method==="eth_accounts"?n.account=s.data.response.result[0]:n.requests[c].payload.method==="eth_coinbase"?n.account=s.data.response.result:n.requests[c].payload.method==="net_version"&&(n.network=s.data.response.result)}catch{}n.isLoggedIn=!0,n.dequeue();break;case n.postMessages.FORTMATIC_HIDE_OVERLAY:n.hideOverlay();break;case n.postMessages.FORTMATIC_SHOW_OVERLAY:n.showOverlay();break;case n.postMessages.FORTMATIC_USER_LOGOUT:n.account=null,n.network=null,n.isLoggedIn=!1;break;case n.postMessages.FORTMATIC_UNAUTHORIZED_API_KEY:throw n.overlayReady=!1,new Error("Given API key is not authorized to access the resource.");case n.postMessages.FORTMATIC_USER_DENIED:if(c){var g=s.data.response&&s.data.response.message?s.data.response.message:"Fortmatic: Modal was closed without executing action!",b=s.data.response&&s.data.response.code?s.data.response.code:1;n.requests[c].cb({message:g,code:b,response:s.data.response})}else n.queue.forEach(function(_){return _.cb({message:"Fortmatic: Modal was closed without executing action!",code:1})});n.dequeue()}}})}}]),P})();y.default=w},function(p,y,a){p.exports=a(7)},function(p,y,a){var r=(function(){return this||typeof self=="object"&&self})()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,u=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,p.exports=a(8),o)r.regeneratorRuntime=u;else try{delete r.regeneratorRuntime}catch{r.regeneratorRuntime=void 0}},function(p,y){(function(a){var r,o=Object.prototype,u=o.hasOwnProperty,l=typeof Symbol=="function"?Symbol:{},R=l.iterator||"@@iterator",I=l.asyncIterator||"@@asyncIterator",O=l.toStringTag||"@@toStringTag",T=typeof p=="object",w=a.regeneratorRuntime;if(w)T&&(p.exports=w);else{(w=a.regeneratorRuntime=T?p.exports:{}).wrap=x;var P="suspendedStart",n="suspendedYield",s="executing",c="completed",f={},g={};g[R]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(G([])));_&&_!==o&&u.call(_,R)&&(g=_);var A=C.prototype=m.prototype=Object.create(g);M.prototype=A.constructor=C,C.constructor=M,C[O]=M.displayName="GeneratorFunction",w.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===M||(e.displayName||e.name)==="GeneratorFunction")},w.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,O in t||(t[O]="GeneratorFunction")),t.prototype=Object.create(A),t},w.awrap=function(t){return{__await:t}},B(U.prototype),U.prototype[I]=function(){return this},w.AsyncIterator=U,w.async=function(t,e,d,h){var i=new U(x(t,e,d,h));return w.isGeneratorFunction(e)?i:i.next().then(function(F){return F.done?F.value:i.next()})},B(A),A[O]="Generator",A[R]=function(){return this},A.toString=function(){return"[object Generator]"},w.keys=function(t){var e=[];for(var d in t)e.push(d);return e.reverse(),function h(){for(;e.length;){var i=e.pop();if(i in t)return h.value=i,h.done=!1,h}return h.done=!0,h}},w.values=G,K.prototype={constructor:K,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(Y),!t)for(var e in this)e.charAt(0)==="t"&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function d(W,E){return F.type="throw",F.arg=t,e.next=W,E&&(e.method="next",e.arg=r),!!E}for(var h=this.tryEntries.length-1;h>=0;--h){var i=this.tryEntries[h],F=i.completion;if(i.tryLoc==="root")return d("end");if(i.tryLoc<=this.prev){var j=u.call(i,"catchLoc"),q=u.call(i,"finallyLoc");if(j&&q){if(this.prev<i.catchLoc)return d(i.catchLoc,!0);if(this.prev<i.finallyLoc)return d(i.finallyLoc)}else if(j){if(this.prev<i.catchLoc)return d(i.catchLoc,!0)}else{if(!q)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return d(i.finallyLoc)}}}},abrupt:function(t,e){for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d];if(h.tryLoc<=this.prev&&u.call(h,"finallyLoc")&&this.prev<h.finallyLoc){var i=h;break}}i&&(t==="break"||t==="continue")&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var F=i?i.completion:{};return F.type=t,F.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(F)},complete:function(t,e){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var d=this.tryEntries[e];if(d.finallyLoc===t)return this.complete(d.completion,d.afterLoc),Y(d),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var d=this.tryEntries[e];if(d.tryLoc===t){var h=d.completion;if(h.type==="throw"){var i=h.arg;Y(d)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,d){return this.delegate={iterator:G(t),resultName:e,nextLoc:d},this.method==="next"&&(this.arg=r),f}}}function x(t,e,d,h){var i=e&&e.prototype instanceof m?e:m,F=Object.create(i.prototype),j=new K(h||[]);return F._invoke=(function(q,W,E){var L=P;return function(S,D){if(L===s)throw new Error("Generator is already running");if(L===c){if(S==="throw")throw D;return z()}for(E.method=S,E.arg=D;;){var H=E.delegate;if(H){var N=Q(H,E);if(N){if(N===f)continue;return N}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(L===P)throw L=c,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);L=s;var k=v(q,W,E);if(k.type==="normal"){if(L=E.done?c:n,k.arg===f)continue;return{value:k.arg,done:E.done}}k.type==="throw"&&(L=c,E.method="throw",E.arg=k.arg)}}})(t,d,j),F}function v(t,e,d){try{return{type:"normal",arg:t.call(e,d)}}catch(h){return{type:"throw",arg:h}}}function m(){}function M(){}function C(){}function B(t){["next","throw","return"].forEach(function(e){t[e]=function(d){return this._invoke(e,d)}})}function U(t){var e;this._invoke=function(d,h){function i(){return new Promise(function(F,j){(function q(W,E,L,S){var D=v(t[W],t,E);if(D.type!=="throw"){var H=D.arg,N=H.value;return N&&typeof N=="object"&&u.call(N,"__await")?Promise.resolve(N.__await).then(function(k){q("next",k,L,S)},function(k){q("throw",k,L,S)}):Promise.resolve(N).then(function(k){H.value=k,L(H)},function(k){return q("throw",k,L,S)})}S(D.arg)})(d,h,F,j)})}return e=e?e.then(i,i):i()}}function Q(t,e){var d=t.iterator[e.method];if(d===r){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=r,Q(t,e),e.method==="throw"))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var h=v(d,t.iterator,e.arg);if(h.type==="throw")return e.method="throw",e.arg=h.arg,e.delegate=null,f;var i=h.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=r),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Y(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function K(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function G(t){if(t){var e=t[R];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var d=-1,h=function i(){for(;++d<t.length;)if(u.call(t,d))return i.value=t[d],i.done=!1,i;return i.value=r,i.done=!0,i};return h.next=h}}return{next:z}}function z(){return{value:r,done:!0}}})((function(){return this||typeof self=="object"&&self})()||Function("return this")())},function(p,y){function a(r,o,u,l,R,I,O){try{var T=r[I](O),w=T.value}catch(P){return void u(P)}T.done?o(w):Promise.resolve(w).then(l,R)}p.exports=function(r){return function(){var o=this,u=arguments;return new Promise(function(l,R){var I=r.apply(o,u);function O(w){a(I,l,R,O,T,"next",w)}function T(w){a(I,l,R,O,T,"throw",w)}O(void 0)})}}},function(p,y){function a(r,o){for(var u=0;u<o.length;u++){var l=o[u];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}p.exports=function(r,o,u){return o&&a(r.prototype,o),u&&a(r,u),r}},function(p){p.exports={name:"fortmatic",version:"1.1.3",description:"Fortmatic Javascript SDK",main:"lib/fortmatic.js",scripts:{build:"WEBPACK_ENV=production webpack","build:dev":"WEBPACK_ENV=development BABEL_ENV=development webpack --progress --colors --watch",test:"nyc --reporter=lcov --reporter=text-summary ava"},author:"Fortmatic <team@fortmatic.com> (https://fortmatic.com/)",license:"MIT",repository:{type:"git",url:"https://github.com/fortmatic/fortmatic-js"},keywords:["Auth","Login","Web3","Crypto","Ethereum","MetaMask","Wallet","Blockchain","Dapp"],homepage:"https://www.fortmatic.com",ava:{require:["@babel/register"],files:["test/**/*.spec.js"],babel:{testOptions:{presets:["@babel/env"],plugins:["@babel/plugin-proposal-function-bind","@babel/plugin-transform-runtime"]}},verbose:!0},nyc:{all:!1,"check-coverage":!0,"per-file":!0,lines:80,statements:80,functions:80,branches:80,include:["src/**/*.js"],exclude:["*/style.js"],require:[],reporter:["html","lcov"]},dependencies:{"@babel/runtime":"7.3.4"},devDependencies:{"@babel/core":"7.3.4","@babel/plugin-proposal-function-bind":"7.2.0","@babel/plugin-transform-modules-commonjs":"7.2.0","@babel/plugin-transform-runtime":"7.3.4","@babel/preset-env":"7.3.4","@babel/register":"7.0.0",ava:"2.2.0","babel-eslint":"10.0.1","babel-loader":"8.0.5",eslint:"5.9.0",lodash:"4.17.11",nyc:"13.1.0",sinon:"7.1.1",webpack:"4.26.1","webpack-cli":"3.1.2"}}},function(p,y,a){y.css=`
|
|
1
|
+
import{g as X}from"./react-G9L2um0r.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y=new p.Error().stack;y&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[y]="81dea6e3-5b52-43e1-87f9-c6b03a3ad522",p._sentryDebugIdIdentifier="sentry-dbid-81dea6e3-5b52-43e1-87f9-c6b03a3ad522")}catch{}})();function ee(p,y){for(var a=0;a<y.length;a++){const r=y[a];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in p)){const u=Object.getOwnPropertyDescriptor(r,o);u&&Object.defineProperty(p,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var V,J;function te(){return J||(J=1,V=(function(p){var y={};function a(r){if(y[r])return y[r].exports;var o=y[r]={i:r,l:!1,exports:{}};return p[r].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=p,a.c=y,a.d=function(r,o,u){a.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:u})},a.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},a.t=function(r,o){if(1&o&&(r=a(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var l in r)a.d(u,l,(function(R){return r[R]}).bind(null,l));return u},a.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(o,"a",o),o},a.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},a.p="",a(a.s=3)})([function(p,y){p.exports=function(a){return a&&a.__esModule?a:{default:a}}},function(p,y){p.exports=function(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}},function(p,y,a){function r(){return Math.floor(9e4*Math.random())+1e4}Object.defineProperty(y,"__esModule",{value:!0}),y.sendAsyncWrapper=function(o,u){var l=this;return new Promise(function(R,I){l.sendAsync({jsonrpc:"2.0",id:r(),method:o,params:u||[]},function(O,T){O?I(O):R(T.result)})})},y.sendFortmaticAsyncWrapper=function(o){var u=this;return new Promise(function(l,R){u.getProvider().sendFortmaticAsync(o,function(I,O){I?R(I):l(O?O.result:{})})})},y.randomId=r,y.findExistingResponse=function(o,u){for(var l=0;l<o.length;l++)if(o[l].id===u)return o[l];return null}},function(p,y,a){p.exports=a(4)},function(p,y,a){var r=a(0),o=r(a(1)),u=r(a(5)),l=a(2),R="fm_composeSend",I="fm_logout",O="fm_get_balances",T="fm_get_transactions",w="fm_is_logged_in",P="fm_accountSettings",n="fm_deposit",s="fm_get_user",c="fm_configure",f={};p.exports=function b(_,A,x){var v=this;if((0,o.default)(this,b),this.fortmaticClient="https://x2.fortmatic.com",!_)throw new Error("Please provide a Fortmatic API key that you acquired from the developer dashboard.");this.apiKey=_,this.options=x,this.ethNetwork=A,this.queryParams=btoa(JSON.stringify({API_KEY:_,ETH_NETWORK:A})),this.transactions={send:function(m,M){var C=new g(R,{to:m.to,value:m.amount});v.getProvider().sendFortmaticAsync(C,M)}},this.getProvider=function(){return f["fortmatic-".concat(v.queryParams)]||(f["fortmatic-".concat(v.queryParams)]=new u.default(v.fortmaticClient,{API_KEY:_,ETH_NETWORK:A})),f["fortmatic-".concat(v.queryParams)]},this.user={login:function(){return v.getProvider().enable()},logout:function(){v.getProvider().account=null,v.getProvider().network=null;var m=new g(I);return l.sendFortmaticAsyncWrapper.call(v,m)},getUser:function(){var m=new g(s);return l.sendFortmaticAsyncWrapper.call(v,m)},getBalances:function(){var m=new g(O);return l.sendFortmaticAsyncWrapper.call(v,m)},getTransactions:function(){var m=new g(T);return l.sendFortmaticAsyncWrapper.call(v,m)},isLoggedIn:function(){var m=new g(w);return l.sendFortmaticAsyncWrapper.call(v,m)},settings:function(){var m=new g(P);return l.sendFortmaticAsyncWrapper.call(v,m)},deposit:function(m){var M=new g(n,m);return l.sendFortmaticAsyncWrapper.call(v,M)}},this.configure=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=new g(c);return M.params=[m],l.sendFortmaticAsyncWrapper.call(v,M)}};var g=function b(_,A){(0,o.default)(this,b),this.id=(0,l.randomId)(),this.method=_,this.params=A?[A]:[{}]}},function(p,y,a){var r=a(0);Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var o=r(a(6)),u=r(a(9)),l=r(a(1)),R=r(a(10)),I=a(11),O=r(a(12)),T=a(2),w=(function(){function P(n,s){if((0,l.default)(this,P),this.fortmaticClient=n,this.requests={},this.queue=[],this.account=null,this.network=null,this.isFortmatic=!0,this.overlayReady=!1,this.isLoggedIn=!1,this.postMessages={FORTMATIC_HANDLE_BATCH_REQUEST:"FORTMATIC_HANDLE_BATCH_REQUEST",FORTMATIC_HANDLE_REQUEST:"FORTMATIC_HANDLE_REQUEST",FORTMATIC_HANDLE_FORTMATIC_REQUEST:"FORTMATIC_HANDLE_FORTMATIC_REQUEST",FORTMATIC_HANDLE_RESPONSE:"FORTMATIC_HANDLE_RESPONSE",FORTMATIC_OVERLAY_READY:"FORTMATIC_OVERLAY_READY",FORTMATIC_SHOW_OVERLAY:"FORTMATIC_SHOW_OVERLAY",FORTMATIC_HIDE_OVERLAY:"FORTMATIC_HIDE_OVERLAY",FORTMATIC_USER_DENIED:"FORTMATIC_USER_DENIED",FORTMATIC_USER_LOGOUT:"FORTMATIC_USER_LOGOUT",FORTMATIC_UNAUTHORIZED_API_KEY:"FORTMATIC_UNAUTHORIZED_API_KEY"},!s.API_KEY)throw new Error("Please provide a Fortmatic API key that you acquired from the developer dashboard.");this.options={API_KEY:s.API_KEY,ETH_NETWORK:s.ETH_NETWORK,DOMAIN_ORIGIN:window.location?window.location.origin:"",version:I.version},this.queryParams=btoa(JSON.stringify(this.options)),this.constructPostMessage(),this.overlay=this.createOverlay(),this.listenMessage()}return(0,R.default)(P,[{key:"constructPostMessage",value:function(){var n=this;Object.keys(this.postMessages).map(function(s){n.postMessages[s]+="-".concat(n.queryParams)})}},{key:"createOverlay",value:function(){var n=this;return new Promise(function(s,c){var f=function(){if((function(){var A=!0,x=!1,v=void 0;try{for(var m,M=document.getElementsByClassName("fortmatic-iframe")[Symbol.iterator]();!(A=(m=M.next()).done);A=!0)if(m.value.src.includes(n.queryParams))return!1}catch(C){x=!0,v=C}finally{try{A||M.return==null||M.return()}finally{if(x)throw v}}return!0})()){var g=document.createElement("style");g.innerHTML=O.default.css,g.type="text/css",document.head.appendChild(g);var b=document.createElement("iframe");b.className="fortmatic-iframe",b.src="".concat(n.fortmaticClient,"/send?params=").concat(n.queryParams),document.body.appendChild(b);var _=document.createElement("img");_.src="https://static.fortmatic.com/assets/trans.gif",document.body.appendChild(_),s({iframe:b})}else console.error("Fortmatic: Duplicate instances found.")};["loaded","interactive","complete"].indexOf(document.readyState)>-1?f():window.addEventListener("load",f.bind(n),!1)})}},{key:"showOverlay",value:(function(){var n=(0,u.default)(o.default.mark(function s(){return o.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.overlay;case 2:c.sent.iframe.style.display="block";case 4:case"end":return c.stop()}},s,this)}));return function(){return n.apply(this,arguments)}})()},{key:"hideOverlay",value:(function(){var n=(0,u.default)(o.default.mark(function s(){return o.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.overlay;case 2:c.sent.iframe.style.display="none";case 4:case"end":return c.stop()}},s,this)}));return function(){return n.apply(this,arguments)}})()},{key:"sendAsync",value:function(n,s){n.length>0?this.enqueue({payload:{id:(0,T.randomId)(),batch:n.map(function(c){return c.id=(0,T.randomId)(),c}),method:"eth_batchRequest"},cb:s}):this.enqueue({payload:n,cb:s})}},{key:"sendFortmaticAsync",value:function(n,s){this.enqueue({payload:n,cb:s,isNative:!0})}},{key:"send",value:function(n,s){if(typeof n=="string")return T.sendAsyncWrapper.call(this,n,s);if(!s){console.warn("Non-async web3 methods will be deprecated in web3 > 1.0, and are not supported by the Fortmatic provider. An async method to be used instead."),this.sendAsync(n,function(){});var c={};switch(n.method){case"eth_accounts":c=this.account?[this.account]:[];break;case"eth_coinbase":c=this.account;break;case"net_version":c=this.network||(this.options.API_KEY.startsWith("pk_live")?1:4);break;case"eth_uninstallFilter":c=!0;break;default:c={}}return{id:n.id,jsonrpc:n.jsonrpc,result:c}}this.sendAsync(n,s)}},{key:"enqueue",value:function(n){this.queue.push(n),this.overlayReady&&this.dequeue()}},{key:"dequeue",value:(function(){var n=(0,u.default)(o.default.mark(function s(){var c,f,g,b=this;return o.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(this.queue.length!==0){_.next=2;break}return _.abrupt("return");case 2:if(!(c=this.queue.shift())){_.next=11;break}return f=c.payload,g=c.cb,f.id=(0,T.randomId)(),_.next=9,this.postMessage(c.isNative?this.postMessages.FORTMATIC_HANDLE_FORTMATIC_REQUEST:this.postMessages.FORTMATIC_HANDLE_REQUEST,c.payload);case 9:f.batch&&f.batch.length>0?(f.batch.forEach(function(A){b.requests[A.id]={parentId:f.id,payload:A,cb:function(x,v){var m=b.requests[f.id].batchResponse;if(x&&x.response&&!(0,T.findExistingResponse)(m,x.response.id))throw m.push({jsonrpc:"2.0",id:x.response.id,error:{code:x.response.code,message:x.response.message}}),b.requests[f.id].cb(null,m),x.response;if(v&&v.result&&!(0,T.findExistingResponse)(m,v.id))return m.push(v);throw new Error("Fortmatic: unexpected callback behavior")}}}),this.requests[f.id]={payload:f,cb:g,batchResponse:[]}):this.requests[f.id]={payload:f,cb:g},this.dequeue();case 11:case"end":return _.stop()}},s,this)}));return function(){return n.apply(this,arguments)}})()},{key:"postMessage",value:(function(){var n=(0,u.default)(o.default.mark(function s(c,f){var g;return o.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,this.overlay;case 2:if(!(g=b.sent).iframe.contentWindow){b.next=7;break}g.iframe.contentWindow.postMessage({msgType:c,payload:f},"*"),b.next=8;break;case 7:throw new Error("Fortmatic: Modal is not ready.");case 8:case"end":return b.stop()}},s,this)}));return function(s,c){return n.apply(this,arguments)}})()},{key:"enable",value:function(){return T.sendAsyncWrapper.call(this,"eth_accounts")}},{key:"listenMessage",value:function(){var n=this;window.addEventListener("message",function(s){if(s.origin===n.fortmaticClient){var c=s.data.response?s.data.response.id:null;switch(s.data.msgType){case n.postMessages.FORTMATIC_OVERLAY_READY:n.overlayReady=!0,n.dequeue();break;case n.postMessages.FORTMATIC_HANDLE_RESPONSE:try{n.requests[c].cb(null,s.data.response);var f=n.requests[c].parentId;f&&n.requests[f].payload.batch.length===n.requests[f].batchResponse.length&&n.requests[f].cb(null,n.requests[f].batchResponse),n.requests[c].payload.method==="eth_accounts"?n.account=s.data.response.result[0]:n.requests[c].payload.method==="eth_coinbase"?n.account=s.data.response.result:n.requests[c].payload.method==="net_version"&&(n.network=s.data.response.result)}catch{}n.isLoggedIn=!0,n.dequeue();break;case n.postMessages.FORTMATIC_HIDE_OVERLAY:n.hideOverlay();break;case n.postMessages.FORTMATIC_SHOW_OVERLAY:n.showOverlay();break;case n.postMessages.FORTMATIC_USER_LOGOUT:n.account=null,n.network=null,n.isLoggedIn=!1;break;case n.postMessages.FORTMATIC_UNAUTHORIZED_API_KEY:throw n.overlayReady=!1,new Error("Given API key is not authorized to access the resource.");case n.postMessages.FORTMATIC_USER_DENIED:if(c){var g=s.data.response&&s.data.response.message?s.data.response.message:"Fortmatic: Modal was closed without executing action!",b=s.data.response&&s.data.response.code?s.data.response.code:1;n.requests[c].cb({message:g,code:b,response:s.data.response})}else n.queue.forEach(function(_){return _.cb({message:"Fortmatic: Modal was closed without executing action!",code:1})});n.dequeue()}}})}}]),P})();y.default=w},function(p,y,a){p.exports=a(7)},function(p,y,a){var r=(function(){return this||typeof self=="object"&&self})()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,u=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,p.exports=a(8),o)r.regeneratorRuntime=u;else try{delete r.regeneratorRuntime}catch{r.regeneratorRuntime=void 0}},function(p,y){(function(a){var r,o=Object.prototype,u=o.hasOwnProperty,l=typeof Symbol=="function"?Symbol:{},R=l.iterator||"@@iterator",I=l.asyncIterator||"@@asyncIterator",O=l.toStringTag||"@@toStringTag",T=typeof p=="object",w=a.regeneratorRuntime;if(w)T&&(p.exports=w);else{(w=a.regeneratorRuntime=T?p.exports:{}).wrap=x;var P="suspendedStart",n="suspendedYield",s="executing",c="completed",f={},g={};g[R]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(G([])));_&&_!==o&&u.call(_,R)&&(g=_);var A=C.prototype=m.prototype=Object.create(g);M.prototype=A.constructor=C,C.constructor=M,C[O]=M.displayName="GeneratorFunction",w.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===M||(e.displayName||e.name)==="GeneratorFunction")},w.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,O in t||(t[O]="GeneratorFunction")),t.prototype=Object.create(A),t},w.awrap=function(t){return{__await:t}},B(U.prototype),U.prototype[I]=function(){return this},w.AsyncIterator=U,w.async=function(t,e,d,h){var i=new U(x(t,e,d,h));return w.isGeneratorFunction(e)?i:i.next().then(function(F){return F.done?F.value:i.next()})},B(A),A[O]="Generator",A[R]=function(){return this},A.toString=function(){return"[object Generator]"},w.keys=function(t){var e=[];for(var d in t)e.push(d);return e.reverse(),function h(){for(;e.length;){var i=e.pop();if(i in t)return h.value=i,h.done=!1,h}return h.done=!0,h}},w.values=G,K.prototype={constructor:K,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(Y),!t)for(var e in this)e.charAt(0)==="t"&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function d(W,E){return F.type="throw",F.arg=t,e.next=W,E&&(e.method="next",e.arg=r),!!E}for(var h=this.tryEntries.length-1;h>=0;--h){var i=this.tryEntries[h],F=i.completion;if(i.tryLoc==="root")return d("end");if(i.tryLoc<=this.prev){var j=u.call(i,"catchLoc"),q=u.call(i,"finallyLoc");if(j&&q){if(this.prev<i.catchLoc)return d(i.catchLoc,!0);if(this.prev<i.finallyLoc)return d(i.finallyLoc)}else if(j){if(this.prev<i.catchLoc)return d(i.catchLoc,!0)}else{if(!q)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return d(i.finallyLoc)}}}},abrupt:function(t,e){for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d];if(h.tryLoc<=this.prev&&u.call(h,"finallyLoc")&&this.prev<h.finallyLoc){var i=h;break}}i&&(t==="break"||t==="continue")&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var F=i?i.completion:{};return F.type=t,F.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(F)},complete:function(t,e){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var d=this.tryEntries[e];if(d.finallyLoc===t)return this.complete(d.completion,d.afterLoc),Y(d),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var d=this.tryEntries[e];if(d.tryLoc===t){var h=d.completion;if(h.type==="throw"){var i=h.arg;Y(d)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,d){return this.delegate={iterator:G(t),resultName:e,nextLoc:d},this.method==="next"&&(this.arg=r),f}}}function x(t,e,d,h){var i=e&&e.prototype instanceof m?e:m,F=Object.create(i.prototype),j=new K(h||[]);return F._invoke=(function(q,W,E){var L=P;return function(S,D){if(L===s)throw new Error("Generator is already running");if(L===c){if(S==="throw")throw D;return z()}for(E.method=S,E.arg=D;;){var H=E.delegate;if(H){var N=Q(H,E);if(N){if(N===f)continue;return N}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(L===P)throw L=c,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);L=s;var k=v(q,W,E);if(k.type==="normal"){if(L=E.done?c:n,k.arg===f)continue;return{value:k.arg,done:E.done}}k.type==="throw"&&(L=c,E.method="throw",E.arg=k.arg)}}})(t,d,j),F}function v(t,e,d){try{return{type:"normal",arg:t.call(e,d)}}catch(h){return{type:"throw",arg:h}}}function m(){}function M(){}function C(){}function B(t){["next","throw","return"].forEach(function(e){t[e]=function(d){return this._invoke(e,d)}})}function U(t){var e;this._invoke=function(d,h){function i(){return new Promise(function(F,j){(function q(W,E,L,S){var D=v(t[W],t,E);if(D.type!=="throw"){var H=D.arg,N=H.value;return N&&typeof N=="object"&&u.call(N,"__await")?Promise.resolve(N.__await).then(function(k){q("next",k,L,S)},function(k){q("throw",k,L,S)}):Promise.resolve(N).then(function(k){H.value=k,L(H)},function(k){return q("throw",k,L,S)})}S(D.arg)})(d,h,F,j)})}return e=e?e.then(i,i):i()}}function Q(t,e){var d=t.iterator[e.method];if(d===r){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=r,Q(t,e),e.method==="throw"))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var h=v(d,t.iterator,e.arg);if(h.type==="throw")return e.method="throw",e.arg=h.arg,e.delegate=null,f;var i=h.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=r),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Y(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function K(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function G(t){if(t){var e=t[R];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var d=-1,h=function i(){for(;++d<t.length;)if(u.call(t,d))return i.value=t[d],i.done=!1,i;return i.value=r,i.done=!0,i};return h.next=h}}return{next:z}}function z(){return{value:r,done:!0}}})((function(){return this||typeof self=="object"&&self})()||Function("return this")())},function(p,y){function a(r,o,u,l,R,I,O){try{var T=r[I](O),w=T.value}catch(P){return void u(P)}T.done?o(w):Promise.resolve(w).then(l,R)}p.exports=function(r){return function(){var o=this,u=arguments;return new Promise(function(l,R){var I=r.apply(o,u);function O(w){a(I,l,R,O,T,"next",w)}function T(w){a(I,l,R,O,T,"throw",w)}O(void 0)})}}},function(p,y){function a(r,o){for(var u=0;u<o.length;u++){var l=o[u];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}p.exports=function(r,o,u){return o&&a(r.prototype,o),u&&a(r,u),r}},function(p){p.exports={name:"fortmatic",version:"1.1.3",description:"Fortmatic Javascript SDK",main:"lib/fortmatic.js",scripts:{build:"WEBPACK_ENV=production webpack","build:dev":"WEBPACK_ENV=development BABEL_ENV=development webpack --progress --colors --watch",test:"nyc --reporter=lcov --reporter=text-summary ava"},author:"Fortmatic <team@fortmatic.com> (https://fortmatic.com/)",license:"MIT",repository:{type:"git",url:"https://github.com/fortmatic/fortmatic-js"},keywords:["Auth","Login","Web3","Crypto","Ethereum","MetaMask","Wallet","Blockchain","Dapp"],homepage:"https://www.fortmatic.com",ava:{require:["@babel/register"],files:["test/**/*.spec.js"],babel:{testOptions:{presets:["@babel/env"],plugins:["@babel/plugin-proposal-function-bind","@babel/plugin-transform-runtime"]}},verbose:!0},nyc:{all:!1,"check-coverage":!0,"per-file":!0,lines:80,statements:80,functions:80,branches:80,include:["src/**/*.js"],exclude:["*/style.js"],require:[],reporter:["html","lcov"]},dependencies:{"@babel/runtime":"7.3.4"},devDependencies:{"@babel/core":"7.3.4","@babel/plugin-proposal-function-bind":"7.2.0","@babel/plugin-transform-modules-commonjs":"7.2.0","@babel/plugin-transform-runtime":"7.3.4","@babel/preset-env":"7.3.4","@babel/register":"7.0.0",ava:"2.2.0","babel-eslint":"10.0.1","babel-loader":"8.0.5",eslint:"5.9.0",lodash:"4.17.11",nyc:"13.1.0",sinon:"7.1.1",webpack:"4.26.1","webpack-cli":"3.1.2"}}},function(p,y,a){y.css=`
|
|
2
2
|
.fortmatic-iframe {
|
|
3
3
|
display: none;
|
|
4
4
|
position: fixed;
|
|
@@ -11,4 +11,4 @@ import{g as X}from"./react-Cb20DwfT.js";(function(){try{var p=typeof window<"u"?
|
|
|
11
11
|
z-index: 2147483647;
|
|
12
12
|
}
|
|
13
13
|
`}])),V}var Z=te();const re=X(Z),oe=ee({__proto__:null,default:re},[Z]);export{oe as f};
|
|
14
|
-
//# sourceMappingURL=fortmatic-
|
|
14
|
+
//# sourceMappingURL=fortmatic-VEuLc1E0.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as E,I as v,J as L,K as _,L as T,M as D,N,d as C,O as x,P as O,Q as b,E as k,x as B,R as S,c as j}from"./prepare-contract-call-
|
|
2
|
-
//# sourceMappingURL=get-bytecode-
|
|
1
|
+
import{C as E,I as v,J as L,K as _,L as T,M as D,N,d as C,O as x,P as O,Q as b,E as k,x as B,R as S,c as j}from"./prepare-contract-call-a0euYGw1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="285fb899-038e-4dac-b294-6c893ad10f4b",e._sentryDebugIdIdentifier="sentry-dbid-285fb899-038e-4dac-b294-6c893ad10f4b")}catch{}})();function z(e,t){if(!E(e,{strict:!1}))throw new v({address:e});if(!E(t,{strict:!1}))throw new v({address:t});return e.toLowerCase()===t.toLowerCase()}const I="/docs/contract/decodeEventLog";function M(e){const{abi:t,data:a,strict:o,topics:l}=e,i=o??!0,[r,...c]=l;if(!r)throw new L({docsPath:I});const s=t.find(n=>n.type==="event"&&r===_(T(n)));if(!(s&&"name"in s)||s.type!=="event")throw new D(r,{docsPath:I});const{name:f,inputs:u}=s,y=u==null?void 0:u.some(n=>!("name"in n&&n.name)),g=y?[]:{},h=u.map((n,d)=>[n,d]).filter(([n])=>"indexed"in n&&n.indexed);for(let n=0;n<h.length;n++){const[d,A]=h[n],w=c[n];if(!w)throw new N({abiItem:s,param:d});g[y?A:d.name||A]=P({param:d,value:w})}const m=u.filter(n=>!("indexed"in n&&n.indexed));if(m.length>0){if(a&&a!=="0x")try{const n=C(m,a);if(n)if(y)for(let d=0;d<u.length;d++)g[d]=g[d]??n.shift();else for(let d=0;d<m.length;d++)g[m[d].name]=n[d]}catch(n){if(i)throw n instanceof x||n instanceof O?new b({abiItem:s,data:a,params:m,size:k(a)}):n}else if(i)throw new b({abiItem:s,data:"0x",params:m,size:0})}return{eventName:f,args:Object.values(g).length>0?g:void 0}}function P({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(C([e],t)||[])[0]}function q(e){const{abi:t,args:a,logs:o,strict:l=!0}=e,i=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return o.map(r=>{var c;try{const s=t.find(u=>u.type==="event"&&r.topics[0]===_(u));if(!s)return null;const f=M({...r,abi:[s],strict:l});return i&&!i.includes(f.eventName)||!R({args:f.args,inputs:s.inputs,matchArgs:a})?null:{...f,...r}}catch(s){let f,u;if(s instanceof D)return null;if(s instanceof b||s instanceof N){if(l)return null;f=s.abiItem.name,u=(c=s.abiItem.inputs)==null?void 0:c.some(y=>!("name"in y&&y.name))}return{...r,args:u?[]:{},eventName:f}}}).filter(Boolean)}function R(e){const{args:t,inputs:a,matchArgs:o}=e;if(!o)return!0;if(!t)return!1;function l(i,r,c){try{return i.type==="address"?z(r,c):i.type==="string"||i.type==="bytes"?B(S(r))===c:r===c}catch{return!1}}return Array.isArray(t)&&Array.isArray(o)?o.every((i,r)=>{if(i==null)return!0;const c=a[r];return c?(Array.isArray(i)?i:[i]).some(f=>l(c,f,t[r])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof o=="object"&&!Array.isArray(o)?Object.entries(o).every(([i,r])=>{if(r==null)return!0;const c=a.find(f=>f.name===i);return c?(Array.isArray(r)?r:[r]).some(f=>l(c,f,t[i])):!1}):!1}async function U(e,t){return e({method:"eth_getCode",params:[t.address,t.blockTag||"latest"]})}function F(e){const{logs:t,events:a,strict:o}=e;return q({abi:a.map(l=>l.abiEvent),logs:t,strict:o})}const p=new WeakMap;function H(e){if(p.has(e))return p.get(e);const t=(async()=>{const a=j(e),o=await U(a,{address:e.address,blockTag:"latest"});return o==="0x"&&p.delete(e),o})();return p.set(e,t),t}export{q as a,M as d,U as e,H as g,z as i,F as p};
|
|
2
|
+
//# sourceMappingURL=get-bytecode-Dgh4Jb3X.js.map
|
package/_assets/{get-ecosystem-wallet-info-CVwfo0p8.js → get-ecosystem-wallet-info-Bo9paKe6.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as l}from"./execute-
|
|
2
|
-
//# sourceMappingURL=get-ecosystem-wallet-info-
|
|
1
|
+
import{g as l}from"./execute-C57BG5lJ.js";import"./prepare-contract-call-a0euYGw1.js";import"./utils-u4hNmxb_.js";import"./sentry-RCtiQtjC.js";import"./react-G9L2um0r.js";import"./index-LDPyoGDo.js";import"./dcl-schemas-CQsQxWYK.js";import"./ethers-DXUQI3Ut.js";import"./intl-AKLEHPeO.js";import"./detectExtension-CBEeT0QS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a419ab3c-760f-4be4-99ed-ef79f444a91d",e._sentryDebugIdIdentifier="sentry-dbid-a419ab3c-760f-4be4-99ed-ef79f444a91d")}catch{}})();async function g(e){const n=await l(e);return{app:{android:null,browser:null,chrome:null,edge:null,firefox:null,ios:null,linux:null,mac:null,opera:null,safari:null,windows:null},desktop:{native:null,universal:null},homepage:n.homepage||"",id:e,image_id:n.imageUrl||"",mobile:{native:null,universal:null},name:n.name,rdns:null}}export{g as getEcosystemWalletInfo};
|
|
2
|
+
//# sourceMappingURL=get-ecosystem-wallet-info-Bo9paKe6.js.map
|