{"version":3,"sources":["common/genesisErrorPopup.jsx","common/modals/wallet/chooseWallet.jsx","common/modals/wallet/connectExternal.jsx"],"names":["ErrorPopup","Component","constructor","arguments","state","render","themeMode","getCookie","_jsx","Modal","className","concat","dialogClassName","show","this","props","error","onHide","setError","id","children","_jsxs","src","process","alt","HtmlParser","href","target","rel","onClick","e","preventDefault","withRouter","connect","getUser","dispatch","signIn","data","callback","updateImage","loadProfile","loadBountyBoxes","hardRefresh","loadMessageToSign","togglePopupRedux","toggleHowToPlayRedux","toggleHTPRedux","setErrors","setGenesisError","loading","setLoading","React","useState","signMessage","setSignMessage","signature","setSignature","loadingWallet","setLoadingWallet","connectedWallet","setConnectedWallet","account","isActive","connector","useWeb3React","deactivate","resetState","useEffect","async","getSignature","signMessages","showLoginModal","clearData","messageToSign","_connector$provider","signatureStr","provider","request","method","params","walletAddress","res","status","mixpanel","track","window","dataLayer","push","prepareData","event","_res$data","_res$data2","_res$data3","_res$data3$data","_res$data4","message","type","location","_res$data5","code","_Fragment","messageToSignLoading","Skeleton","_window","_window$ethereum","ethereum","isMetaMask","open","metaMask","activate","activating","localStorage","setItem","name","checked","for","toggleWalletPopupRedux","errors","tab","setTab","genesisError","showWalletModal","showHTPAfter","title","GenesisErrorPopup","centered","tabindex","contentClassName","ChooseWallet"],"mappings":"+GAAA,qDAOA,MAAMA,UAAmBC,YAAUC,cAAA,SAAAC,WAAA,KACjCC,MAAQ,CAAC,CAAE,CACXC,SACE,MAAMC,EAAYC,YAAU,aAC5B,OACEC,cAACC,IAAK,CACJC,UAAS,2BAAAC,OAA2C,SAAdL,GAAwB,cAC9DM,gBAAgB,8CAChBC,KAAMC,KAAKC,MAAMC,MACjBC,OAAQA,IAAMH,KAAKC,MAAMG,UAAS,GAClCC,GAAG,iBAAgBC,SAEnBC,eAAA,OAAKX,UAAU,mCAAkCU,SAAA,CAC/CZ,cAAA,OAAKE,UAAU,mCAAkCU,SAC/CZ,cAAA,OAAAY,SACEZ,cAAA,OAAKE,UA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AWA,SAE1B,I","file":"static/js/34.0f260845.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Modal } from \"react-bootstrap\";\nimport { getCookie } from \"../utils/cookiesUtilities\";\n\nimport HtmlParser from \"react-html-parser\";\nconst genesisIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/genesis-pass-purchase.svg\";\n\nclass ErrorPopup extends Component {\n state = {};\n render() {\n const themeMode = getCookie(\"themeMode\");\n return (\n this.props.setError(false)}\n id=\"darkerrorModal\"\n >\n
\n
\n
\n
\n \"\"\n
\n
\n
\n
\n
\n
\n

You Need a Pass to Play!

\n {HtmlParser(this.props.error)}\n

\n
\n \n Purchase On OpenSea\n \n {\n e.preventDefault();\n this.props.setError(\"\");\n }}\n >\n No Thanks!\n \n
\n
\n
\n
\n
\n \n );\n }\n}\n\nexport default ErrorPopup;\n","import React, { useEffect } from \"react\";\nimport { useWeb3React } from \"@web3-react/core\";\nimport { connectors } from \"web3/connectors\";\nimport {\n getUser,\n loadProfile,\n updateImage,\n signIn,\n loadMessageToSign,\n togglePopupRedux,\n toggleHowToPlayRedux,\n toggleHTPRedux,\n loadBountyBoxes,\n} from \"store/user\";\nimport { withRouter } from \"utils/withRouter\";\nimport { connect } from \"react-redux\";\nimport Skeleton from \"react-loading-skeleton\";\nimport mixpanel from \"mixpanel-browser\";\nimport { prepareData } from \"common/gtmDatalayer\";\nimport { metaMask } from \"web3/connectors/metaMask\";\n\n// Images\nconst logo = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/bgNewLogo.svg\";\nconst greenIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/green-check-icon.svg\";\nconst loaderIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/loader-svg.svg\";\nconst wallet1 = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/t-mode-2.svg\";\n\nconst ChooseWallet = (props) => {\n const { setErrors, setGenesisError } = props || {};\n const [loading, setLoading] = React.useState(false);\n const [signMessage, setSignMessage] = React.useState(true);\n const [signature, setSignature] = React.useState(\"\");\n const [loadingWallet, setLoadingWallet] = React.useState(\"\");\n const [connectedWallet, setConnectedWallet] = React.useState(\"\");\n const { account, isActive, connector } = useWeb3React();\n const deactivate = () => {\n if (connector.deactivate) {\n connector.deactivate();\n }\n connector?.resetState();\n };\n const setProvider = (type) => {\n window.localStorage.setItem(\"provider\", type);\n };\n\n // Get signatures for different wallet connections\n useEffect(() => {\n if (account) {\n async function getSignature() {\n if (!signMessage) await signMessages();\n }\n getSignature();\n }\n }, [isActive]);\n\n // Get Messages to sign transaction\n useEffect(() => {\n if (props.getUser.showLoginModal) {\n props.loadMessageToSign();\n } else {\n clearData();\n }\n }, [props.getUser.showLoginModal]);\n\n // Reset states on modal close\n const clearData = () => {\n setSignature(\"\");\n setLoadingWallet(\"\");\n setConnectedWallet(\"\");\n setLoading(false);\n setSignMessage(false);\n };\n\n // Connect wallet to the user account after signing the transaction\n const signMessages = async () => {\n // If metamask extension not found, show error\n if (!connector) return;\n if (!props.getUser.messageToSign) {\n return setErrors(\"Something went wrong. Please try again later.\");\n }\n try {\n // Sign message\n const signatureStr = props.getUser.messageToSign;\n const signature = await connector?.provider?.request({\n method: \"personal_sign\",\n params: [signatureStr, account],\n });\n setSignature(signature);\n\n // Connect wallet API call\n props.signIn({ signature, walletAddress: account }, (res) => {\n if (res.status === 200) {\n setConnectedWallet(loadingWallet);\n setLoading(false);\n if (process.env.REACT_APP_MIXPANEL == 1) mixpanel.track(\"Wallet Connection Completed\");\n if (process.env.REACT_APP_GA == 1) {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(\n prepareData({\n event: \"Wallet Connection Completed\",\n }),\n );\n }\n // Update user profile\n props.loadProfile();\n props.loadBountyBoxes(null, 1);\n setLoadingWallet(\"\");\n } else {\n if (process.env.REACT_APP_MIXPANEL == 1 && res.data?.message === \"\")\n mixpanel.track(\"Wallet already associated_error\");\n if (process.env.REACT_APP_GA == 1 && res.data?.message === \"\") {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(\n prepareData({\n event: \"Wallet Error: already connected to account\",\n }),\n );\n }\n deactivate();\n setLoading(false);\n\n // If genesis pass not detected in the wallet then show error\n if (res.data?.data?.type === \"Genesis pass Not detected\") {\n setGenesisError(res.data?.message);\n } else if (res.status === 403) {\n window.location.href = \"/connect-error\";\n } else {\n setErrors(res.data?.message);\n }\n setLoadingWallet(\"\");\n }\n });\n } catch (error) {\n setLoading(false);\n setErrors(error.message);\n if (error.code === 403) {\n window.location.href = \"/connect-error\";\n }\n setLoadingWallet(\"\");\n deactivate();\n }\n };\n\n // Connect wallet to the user account after signing the transaction\n const activating = async (params) => {\n if (process.env.REACT_APP_MIXPANEL == 1) mixpanel?.track(\"Wallet Connection Initiated\");\n if (process.env.REACT_APP_GA == 1) {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(\n prepareData({\n event: \"Wallet Connection Initiated\",\n }),\n );\n }\n try {\n if (!window?.ethereum?.isMetaMask)\n return window.open(\"https://metamask.app.link/dapp/\" + process.env.REACT_APP_SITE_URL, \"_blank\");\n setLoading(true);\n await metaMask?.activate();\n } catch (error) {\n setErrors(error.message);\n }\n };\n\n return (\n <>\n
\n
\n \"\"\n
Connect Wallet
\n {/*

Choose how you want to connect

*/}\n
\n\n {props.getUser.messageToSignLoading ? (\n
\n \n {/* \n \n\n */}\n
\n ) : (\n <>\n
\n {\n if (connectedWallet) return;\n e.preventDefault();\n setSignMessage(false);\n activating(\"injected\");\n setProvider(\"injected\");\n setLoadingWallet(\"injected\");\n }}\n >\n
\n
\n \n \n\n {connectedWallet === \"injected\" ? (\n \"\"\n ) : (\n \"\"\n )}\n
\n
\n
\n
\n \n )}\n \n \n );\n};\n\nconst mapDispatchToProps = (dispatch) => ({\n signIn: (data, callback) => dispatch(signIn(data, callback)),\n updateImage: (data, callback) => dispatch(updateImage(data, callback)),\n loadProfile: () => dispatch(loadProfile()),\n loadBountyBoxes: (callback, hardRefresh) => dispatch(loadBountyBoxes(callback, hardRefresh)),\n loadMessageToSign: (callback) => dispatch(loadMessageToSign(callback)),\n togglePopupRedux: (data) => dispatch(togglePopupRedux(data)),\n toggleHowToPlayRedux: (data) => dispatch(toggleHowToPlayRedux(data)),\n toggleHTPRedux: (data) => dispatch(toggleHTPRedux(data)),\n});\nconst mapStateToProps = (state) => ({\n getUser: getUser(state),\n});\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(ChooseWallet));\n","import React, { useEffect } from \"react\";\nimport { Modal } from \"react-bootstrap\";\nimport { getCookie } from \"utils/cookiesUtilities\";\nimport ErrorPopup from \"../../errorPopup\";\nimport {\n getUser,\n loadProfile,\n updateImage,\n signIn,\n loadMessageToSign,\n togglePopupRedux,\n toggleHowToPlayRedux,\n toggleHTPRedux,\n toggleWalletPopupRedux,\n} from \"store/user\";\n\nimport { withRouter } from \"utils/withRouter\";\nimport { connect } from \"react-redux\";\nimport GenesisErrorPopup from \"../../genesisErrorPopup\";\n\n// Components\nimport ChooseWallet from \"./chooseWallet\";\nconst closeIcon = process.env.REACT_APP_WEBSITE_ASSETS_URL + \"images/close-icon.svg\";\n\nconst ConnectWalletPopup = (props) => {\n const [errors, setErrors] = React.useState(false);\n const [tab, setTab] = React.useState(3);\n const [genesisError, setGenesisError] = React.useState(false);\n const [loading, setLoading] = React.useState(false);\n const [signMessage, setSignMessage] = React.useState(true);\n const [signature, setSignature] = React.useState(\"\");\n const [loadingWallet, setLoadingWallet] = React.useState(\"\");\n const [connectedWallet, setConnectedWallet] = React.useState(\"\");\n\n // Get Messages to sign transaction\n useEffect(() => {\n if (props.getUser.showWalletModal) {\n props.loadMessageToSign();\n } else {\n clearData();\n }\n }, [props.getUser.showWalletModal]);\n\n // Reset states on modal close\n const clearData = () => {\n setSignature(\"\");\n setLoadingWallet(\"\");\n setConnectedWallet(\"\");\n setLoading(false);\n setSignMessage(false);\n setTab(3);\n };\n\n // Connect wallet to the user account after signing the transaction\n\n // If metamask extension not found or the transaction is rejected, show error\n\n const themeMode = getCookie(\"themeMode\");\n const { showHTPAfter } = props.getUser;\n\n return (\n <>\n {errors && (\n Something went wrong`} />\n )}\n {genesisError && }\n {\n props.toggleWalletPopupRedux(false);\n }}\n contentClassName=\"justify-content-center\"\n >\n {\n {\n props.toggleWalletPopupRedux(false);\n }\n }}\n >\n \"\"\n \n \n \n \n );\n};\n\nconst mapDispatchToProps = (dispatch) => ({\n signIn: (data, callback) => dispatch(signIn(data, callback)),\n updateImage: (data, callback) => dispatch(updateImage(data, callback)),\n loadProfile: () => dispatch(loadProfile()),\n loadMessageToSign: (callback) => dispatch(loadMessageToSign(callback)),\n togglePopupRedux: (data) => dispatch(togglePopupRedux(data)),\n toggleHowToPlayRedux: (data) => dispatch(toggleHowToPlayRedux(data)),\n toggleHTPRedux: (data) => dispatch(toggleHTPRedux(data)),\n toggleWalletPopupRedux: (data) => dispatch(toggleWalletPopupRedux(data)),\n});\nconst mapStateToProps = (state) => ({\n getUser: getUser(state),\n});\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(ConnectWalletPopup));\n"],"sourceRoot":""}