{"version":3,"sources":["webpack:///./node_modules/moment-mini/locale sync ^\\.\\/.*$","webpack:///./src/managers/Ajax.js","webpack:///./src/managers/Account.js","webpack:///./src/components/modal/modal.jsx","webpack:///./src/components/throbber/index.jsx","webpack:///./src/components/account/loginForm.jsx","webpack:///./src/components/navigation/top-nav.jsx","webpack:///./src/components/navigation/footer.jsx","webpack:///./src/components/throbber/loader.jsx","webpack:///./src/managers/Creator.js","webpack:///./src/container.jsx","webpack:///./src/components/hero/homeHero.jsx","webpack:///./src/components/featuredDrop/homeDrop.jsx","webpack:///./src/components/about/faq.jsx","webpack:///./src/components/hero/fullWidthImage.jsx","webpack:///./src/components/hero/VimeoVideo.jsx","webpack:///./src/routes/home.jsx","webpack:///./src/components/register/index.jsx","webpack:///./src/components/countdown/homeCountdown.jsx","webpack:///./src/routes/countdown.jsx","webpack:///./src/components/account/CardForm.jsx","webpack:///./src/components/account/billingForm.jsx","webpack:///./src/components/featuredDrop/applePay.jsx","webpack:///./src/components/featuredDrop/alternatePayment.jsx","webpack:///./src/components/featuredDrop/confirmPurchase.jsx","webpack:///./src/components/featuredDrop/featuredDrop.jsx","webpack:///./src/components/hero/slimHero.jsx","webpack:///./src/routes/drop.jsx","webpack:///./src/components/account/login.jsx","webpack:///./src/routes/login.jsx","webpack:///./src/components/account/register.jsx","webpack:///./src/routes/register.jsx","webpack:///./src/components/account/resetPassword.jsx","webpack:///./src/routes/reset.jsx","webpack:///./src/routes/account.jsx","webpack:///./src/components/account/details.jsx","webpack:///./src/components/account/billing.jsx","webpack:///./src/components/account/password.jsx","webpack:///./src/components/account/flowWallet.jsx","webpack:///./src/config/flow.js","webpack:///./src/components/account/wallet.jsx","webpack:///./src/components/account/collection.jsx","webpack:///./src/components/account/verify.jsx","webpack:///./src/index.jsx"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","handleException","response","exception","isError","errorMessage","status","json","message","console","log","Ajax","url","passedPayload","passedHeaders","headers","payload","request","Request","Headers","mode","method","body","JSON","stringify","fetch","then","error","token","Authorization","constructor","billing","post","data","catch","saveCardDetails","resetPassword","this","apiUrl","recoverPassword","resetToken","bearerToken","changePassword","verifyResetToken","login","mfaLogin","cookieName","accountInfo","process","create","that","update","put","get","forceUpdate","getCollection","getPaymentMethod","isLoggedIn","Cookies","logout","remove","path","setTimeout","window","location","setLoginState","cookies","currentDate","Date","expiryDate","setHours","getHours","set","expires","getToken","SimpleModal","React","Component","props","super","escFunction","onBeforeClose","keyCode","state","closeModal","preventDefault","componentDidUpdate","onpopstate","componentDidMount","document","addEventListener","render","modal","isOffset","hideCloseButton","children","isOpen","showLogo","theme","className","onClick","stopPropagation","href","src","alt","Throbber","throbberText","emailPattern","LoginForm","validateForm","loginEmail","loginPassword","onFail","test","handleInputChange","setState","target","value","logIn","onSuccess","isLoading","email","password","Account","userId","showMFA","getElementById","focus","mfaLogIn","loginVerification","onEnterKey","resetPass","onRegisterButton","sendResetEmail","resetEmail","creatorId","emailAddress","site","protocol","host","loadingText","success","resetSuccess","enableMFA","htmlFor","type","onChange","onKeyUp","maxLength","autoComplete","to","TopNav","onPubSubEvent","getAccountDetails","accountData","username","loginSuccess","showModal","PubSub","publish","loginFailed","toast","openLoginModal","showMobileNav","toggleNav","handleMobileNav","subscribe","topnav","pageYOffset","classList","add","Footer","isSticky","includes","rel","FullPageLoader","width","createRisk","payloadData","createDecision","confirmPurchase","getSingleDrop","dropId","dropData","drop","asset","assets","drops","forEach","getDrop","assetData","assetData2","dropData2","creatorData","assetId","assetId2","dropId2","creator","asset2","drop2","Container","AccountManager","getDropDetails","CreatorManager","dropDetails","position","autoClose","pauseOnHover","HomeHero","setHeroHeight","hero","style","height","innerHeight","parseCountdown","date","countdownData","moment","unix","friendlyDate","format","learnMore","onLearnMore","goToFaq","onFaqButton","dateOpen","renderer","days","hours","minutes","seconds","completed","HomeDrop","layoutStyle","mediaMP4","autoPlay","loop","muted","default","kind","srcLang","mediaThumbnailUrl","mediaUrl","dangerouslySetInnerHTML","__html","name","description","FAQ","FullWidthImage","VimeoVideo","frameBorder","allow","allowFullScreen","top","left","title","Home","getDropData","scrollToSection","element","scrollIntoView","behavior","scrollTo","hash","Register","formatPayload","registerFirstname","registerLastname","registerPhone","registerEmail","firstName","lastName","telephone","signUpUrl","submitForm","hasSignedUp","gtag","event_category","event_label","localStorage","setItem","getItem","HomeCountdown","readMore","getNotified","background","color","buttonStyle","fontSize","padding","border","borderRadius","CardForm","handleSubmit","event","stripe","elements","nameOnCard","paymentMethod","card","getElement","billing_details","results","createPaymentMethod","saveCard","stripeStyle","iconColor","fontWeight","fontFamily","onSubmit","options","base","InjectedCardForm","stripePromise","loadStripe","BillingForm","updateBillingAddress","getCardDetails","cardDetails","hasCardOnFile","selectCountry","val","country","selectRegion","region","billingAddress","billingCity","billingCode","updateDetails","address","city","zip","hasBillingInfo","toggleTab","tab","currentTab","updateCard","changeCreditCard","whiteListed","priorityOptions","stripeOptions","billingInfo","onCardSuccess","defaultOptionLabel","classes","brand","last4","expMonth","expYear","ApplePay","useStripe","paymentRequest","setPaymentRequest","useState","agreeTerms","totalPrice","useEffect","pr","currency","total","label","amount","requestPayerName","requestPayerEmail","canMakePayment","result","on","onApplePay","complete","AlternatePayment","processPayment","paymentInfo","onPaymentProcessing","ConfirmPurchase","prettifyPrices","purchaseObj","subtotal","purchase","gas","tax","prices","price","gasFee","subTotal","taxRate","rawTotal","calculateTaxes","amountObj","updatedAmountObj","taxes","taxAmount","lastFour","convertToCents","paymentId","riskifiedId","onPurchaseAttempt","assetPrice","pmId","riskified","cartToken","handleCheckboxChange","isChecked","checked","payWithCard","onPayWithCreditCard","prettyPrice","cents","toLocaleString","purchasePrice","updatedPricing","buyItNow","prevProps","purchaseResult","FeaturedDrop","loginModal","modalMode","checkBuyStatus","onBillingSuccess","attemptPurchase","amountLeft","parsedDetails","nftName","nftLink","purchaseData","newAmountLeft","hasPurchased","quantityAvailable","componentWillUnmount","dismiss","SlimHero","Drop","urlPatternArray","split","length","substring","assetType","AccountLogin","Login","passwordRequirements","AccountRegister","registerPassword","registerConfirmPassword","registerDisplayname","registerPhoneNumber","isMfa","register","firstname","lastname","account","pathname","isSuccess","ResetPassword","password1","password2","changedPassword","verifyToken","tokenParam","PasswordReset","changeTab","section","currentSection","accountDetails","AccountDetails","updateFirstname","updateLastname","updateEmail","updateUsername","updateTelephone","AccountBilling","AccountPassword","passwordCurrent","passwordNew","currentPassword","newPassword","passwordConfirm","FlowWallet","user","setUser","loggedIn","fcl","AuthedState","onWalletConnection","GetUser","addr","UnauthenticatedState","onLogInAttempt","config","AccountWallet","updateWallet","isLoggingIn","blockchain","walletType","walletAddress","AccountCollection","formatThumbnail","number","imageUrl","formatSerialNumber","collection","accountCollection","item","nftId","datePurchased","txn","totalAmount","AccountVerify","Sentry","dsn","integrations","BrowserTracing","environment","tracesSampleRate","ReactDOM"],"mappings":"6EAAA,IAAIA,EAAM,CACT,WAAY,IACZ,cAAe,KAIhB,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,GAE5B,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEE,KAAO,mBACHF,EAEP,OAAOP,EAAIE,GAEZD,EAAeS,KAAO,WACrB,OAAOC,OAAOD,KAAKV,IAEpBC,EAAeW,QAAUR,EACzBS,EAAOC,QAAUb,EACjBA,EAAeE,GAAK,K,qMChBdY,G,MAAkB,SAAUC,GAChC,IAAIC,EAAY,CACdC,SAAS,EACTC,aAAc,IAmChB,OAhCwB,MAApBH,EAASI,OACXH,EAAY,CACVC,SAAS,EACTC,aAAcH,EAASK,OAASL,EAASK,OAAOC,QAAU,gBAE/B,MAApBN,EAASI,OAClBH,EAAY,CACVC,SAAS,EACTC,aAAc,8CAEa,MAApBH,EAASI,OAClBH,EAAY,CACVC,SAAS,EACTC,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AAWsM,QAAS,IAAC,GAAD,MAChC,IAAC,IAAD,CAAOtM,KAAK,QAAQsM,QAAS,IAAC,GAAD,UAA7B,EACE,IAAC,IAAD,CAAOtM,KAAK,WAAWsM,QAAS,IAAC,GAAD,OAElC,IAAC,IAAD,CAAOtM,KAAK,UAAUsM,QAAS,IAAC,GAAD,UAA/B,EACE,IAAC,IAAD,CAAOtM,KAAK,UAAUsM,QAAS,IAAC,GAAD,MAC/B,IAAC,IAAD,CAAOtM,KAAK,WAAWsM,QAAS,IAAC,GAAD,MAChC,IAAC,IAAD,CAAOtM,KAAK,UAAUsM,QAAS,IAAC,GAAD,MAC/B,IAAC,IAAD,CAAOtM,KAAK,SAASsM,QAAS,IAAC,GAAD,MAC9B,IAAC,IAAD,CAAOtM,KAAK,aAAasM,QAAS,IAAC,GAAD,MAClC,IAAC,IAAD,CAAOtM,KAAK,SAASsM,QAAS,IAAC,GAAD,QAGlC,IAAC,IAAD,CAAOtM,KAAK,aAAasM,QAAS,IAAC,GAAD,QAItC1K,SAASqC,eAAe,U","file":"js/main.2f2df4a7e2f536633199.js","sourcesContent":["var map = {\n\t\"./locale\": 129,\n\t\"./locale.js\": 129\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 190;","/**\n* Utility helper functions of making AJAX requests\n* TOC\n* 1. Post\n*/\n\n// checks if response contains error code\nconst handleException = function (response) {\n let exception = {\n isError: false,\n errorMessage: '',\n };\n\n if (response.status === 400) {\n exception = {\n isError: true,\n errorMessage: response.json() ? response.json().message : 'Bad request.',\n };\n } else if (response.status === 401) {\n exception = {\n isError: true,\n errorMessage: 'User is unauthorized to view this content.',\n };\n } else if (response.status === 422) {\n exception = {\n isError: true,\n errorMessage: 'Oops. This endpoint returned a 422. Unprocessable entity.',\n };\n } else if (response.status === 404) {\n exception = {\n isError: true,\n errorMessage: 'Oops. This endpoint returned a 404. Please try again later.',\n };\n } else if (response.status === 500) {\n exception = {\n isError: true,\n errorMessage: 'Oops. This endpoint returned a 500. Please try again later.',\n };\n }\n\n if (exception.isError) {\n console.log('== Exception ==');\n console.log(response);\n }\n\n return exception;\n};\n\nclass Ajax {\n static post(url, passedPayload, passedHeaders) {\n const headers = passedHeaders || {};\n headers['Content-Type'] = 'application/json';\n const payload = passedPayload || {};\n\n const request = new Request(url, {\n headers: new Headers(headers),\n // credentials: 'include',\n mode: 'cors',\n method: 'POST',\n body: JSON.stringify(payload),\n });\n\n return fetch(request).then((response) => {\n const exception = handleException(response);\n if (exception.isError) {\n return {\n error: true,\n message: exception.errorMessage,\n };\n }\n return response.json();\n });\n }\n\n static put(url, passedPayload, passedHeaders) {\n const headers = passedHeaders || {};\n headers['Content-Type'] = 'application/json';\n const payload = passedPayload || {};\n\n const request = new Request(url, {\n headers: new Headers(headers),\n // credentials: 'include',\n mode: 'cors',\n method: 'PUT',\n body: JSON.stringify(payload),\n });\n\n return fetch(request).then((response) => {\n const exception = handleException(response);\n if (exception.isError) {\n return {\n error: true,\n message: exception.errorMessage,\n };\n }\n return response.json();\n });\n }\n\n static get(url, token, passedHeaders) {\n const headers = passedHeaders || {};\n headers['Content-Type'] = 'application/json';\n headers.Authorization = token ? 'Bearer ' + token : '';\n\n const request = new Request(url, {\n headers: new Headers(headers),\n // credentials: 'include',\n mode: 'cors',\n method: 'GET',\n });\n\n return fetch(request).then((response) => {\n const exception = handleException(response);\n if (exception.isError) {\n throw new Error(exception.errorMessage);\n } else {\n return response.json();\n }\n });\n }\n}\n\nexport default Ajax;\n","import Cookies from 'universal-cookie';\nimport Ajax from './Ajax';\n\n/**\n* Utility helper for Account functions\n*/\n\nclass Account {\n constructor() {\n this.cookieName = '__ethosid';\n this.accountInfo = null;\n this.apiUrl = process.env.SERVER_URL;\n }\n\n create(url, payload, token) {\n // this should create an account\n // and it should return a bearer token\n const that = this;\n return Ajax.post(url, payload, { Authorization: token ? 'Bearer ' + token : '' })\n .then((data) => {\n // PubSub.publish('account_updated');\n that.accountInfo = data;\n return data;\n })\n .catch((error) => {\n // that.clear();\n throw error;\n });\n }\n\n billing = (url, payload, token) => Ajax.post(url, payload, { Authorization: token ? 'Bearer ' + token : '' })\n .then((data) => data)\n .catch((error) => {\n throw error;\n })\n\n saveCardDetails = (url, payload, token) => Ajax.post(url, payload, { Authorization: token ? 'Bearer ' + token : '' })\n .then((data) => data)\n .catch((error) => {\n // that.clear();\n throw error;\n })\n\n resetPassword = (payload) => Ajax.post(this.apiUrl + 'account/forgotpass', payload, null)\n .then((data) => data)\n .catch((error) => {\n throw error;\n })\n\n recoverPassword = (payload, resetToken, bearerToken) => Ajax.post(this.apiUrl + 'account/resetpass/' + resetToken, payload, { Authorization: bearerToken ? 'Bearer ' + bearerToken : '' })\n .then((data) => data)\n .catch((error) => {\n throw error;\n })\n\n changePassword = (payload, token) => Ajax.post(this.apiUrl + 'account/updatepass', payload, { Authorization: token ? 'Bearer ' + token : '' })\n .then((data) => data)\n .catch((error) => {\n throw error;\n })\n\n verifyResetToken = (token) => Ajax.post(this.apiUrl + 'account/resetpassword/verify/' + token, null)\n .then((data) => data)\n .catch((error) => {\n throw error;\n })\n\n update(payload, token) {\n // this should create an account\n // and it should return a bearer token\n return Ajax.put(this.apiUrl + 'account/update', payload, { Authorization: token ? 'Bearer ' + token : '' })\n .then((data) => data)\n .catch((error) => {\n // that.clear();\n throw error;\n });\n }\n\n login = (payload) => Ajax.post(this.apiUrl + 'account/authenticate', payload)\n .then((data) => data)\n .catch((error) => {\n // that.clear();\n throw error;\n })\n\n mfaLogin = (payload) => Ajax.post(this.apiUrl + 'account/mfa', payload)\n .then((data) => data)\n .catch((error) => {\n // that.clear();\n throw error;\n })\n\n get(token, forceUpdate) {\n const that = this;\n if (this.accountInfo !== null && !forceUpdate) {\n return this.accountInfo;\n }\n return Ajax.get(this.apiUrl + 'account', token)\n .then((data) => {\n // that._accountInfo = data;\n // that._aid = that._accountInfo.aid;\n // localStorage.setItem(AID,that._aid);\n // PubSub.publish('account_updated');\n // return that._accountInfo;\n that.accountInfo = data;\n return data;\n })\n .catch((error) => {\n // that.clear();\n throw error;\n });\n }\n\n getCollection(token) {\n return Ajax.get(this.apiUrl + 'wallet/collection', token)\n .then((data) => data)\n .catch((error) => {\n // that.clear();\n throw error;\n });\n }\n\n getPaymentMethod(token) {\n return Ajax.get(this.apiUrl + 'payment/method', token)\n .then((data) => data)\n .catch((error) => {\n // that.clear();\n throw error;\n });\n }\n\n isLoggedIn() {\n const cookies = new Cookies();\n if (cookies.get(this.cookieName)) {\n return true;\n }\n return false;\n }\n\n logout() {\n const cookies = new Cookies();\n cookies.remove(this.cookieName, { path: '/' });\n setTimeout(() => {\n window.location = '/';\n }, 200);\n }\n\n setLoginState(token) {\n const cookies = new Cookies();\n const currentDate = new Date();\n const expiryDate = new Date(currentDate.setHours(currentDate.getHours() + 1));\n cookies.set(this.cookieName, token || 'no token set', { path: '/', expires: expiryDate });\n }\n\n getToken() {\n const cookies = new Cookies();\n return cookies.get(this.cookieName);\n }\n}\n\nexport default new Account();\n","import PropTypes from 'prop-types';\nimport React from 'react';\n\nexport default class SimpleModal extends React.Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n closeModal(e) {\n const { onBeforeClose } = this.props;\n if (e) {\n e.preventDefault();\n }\n if (onBeforeClose) {\n onBeforeClose(e);\n }\n }\n\n escFunction = (e) => {\n const { onBeforeClose } = this.props;\n if (e.keyCode === 27) {\n onBeforeClose(e);\n }\n }\n\n componentDidUpdate() {\n const { onBeforeClose } = this.props;\n const that = this;\n if (onBeforeClose) {\n window.onpopstate = () => {\n that.props.onBeforeClose();\n };\n }\n }\n\n componentDidMount() {\n document.addEventListener('keyup', this.escFunction, false);\n }\n\n render() {\n let modal = null;\n const {\n isOffset, hideCloseButton, children, isOpen, showLogo, theme,\n } = this.props;\n if (isOpen) {\n const css = 'body {overflow:hidden}';\n modal = (\n
\n
\n
{ e.stopPropagation(); }}>\n
\n {children}\n
\n { !hideCloseButton\n && (\n this.closeModal(e)}>\n \"Close\n \n )}\n {showLogo\n && (\n
\n \"ethos\"\n
\n )}\n
\n
\n \n
\n );\n }\n return modal;\n }\n}\n\nSimpleModal.propTypes = {\n isOpen: PropTypes.bool,\n onBeforeClose: PropTypes.func,\n children: PropTypes.string,\n theme: PropTypes.string,\n isOffset: PropTypes.string,\n hideCloseButton: PropTypes.string,\n showLogo: PropTypes.bool,\n};\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nclass Throbber extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n render() {\n const { throbberText, theme } = this.props;\n return (\n
\n
\n

{throbberText || 'Loading...'}

\n
\n
\n
\n
\n
\n
\n );\n }\n}\n\nThrobber.propTypes = {\n throbberText: PropTypes.string,\n theme: PropTypes.string,\n};\n\nexport default Throbber;\n","import React, { Component } from 'react';\nimport { Link } from 'react-router-dom';\nimport PropTypes from 'prop-types';\nimport Throbber from '../throbber';\nimport Account from '../../managers/Account';\n\nconst emailPattern = /^[-a-z0-9~!$%^&*_=+}{'?]+(\\.[-a-z0-9~!$%^&*_=+}{'?]+)*@([a-z0-9_][-a-z0-9_]*(\\.[-a-z0-9_]+)*\\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}))(:[0-9]{1,5})?$/i;\n\nclass LoginForm extends Component {\n constructor(props) {\n super(props);\n this.state = {\n creatorId: process.env.CREATOR_ID,\n loginEmail: '',\n resetEmail: '',\n loginPassword: '',\n isLoading: false,\n resetPassword: false,\n resetSuccess: false,\n loginVerification: '',\n loadingText: 'Logging you in! One second...',\n enableMFA: false,\n showMFA: false,\n userId: '',\n };\n }\n\n validateForm = () => {\n const { loginEmail } = this.state;\n const { loginPassword } = this.state;\n const { onFail } = this.props;\n if (loginEmail === '' || loginPassword === '') {\n onFail('Please enter an email and password.');\n return false;\n }\n if (!emailPattern.test(loginEmail)) {\n onFail('Please enter a valid email address.');\n return false;\n }\n return true;\n }\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n logIn = async (e) => {\n const { loginEmail, loginPassword } = this.state;\n const { onSuccess, onFail } = this.props;\n let payload = {};\n e.preventDefault();\n if (this.validateForm()) {\n this.setState({\n isLoading: true,\n });\n payload = {\n email: loginEmail,\n password: loginPassword,\n };\n const login = await Account.login(payload);\n // if MFA is enabled\n if (login && login.userId) {\n this.setState({\n userId: login.userId,\n showMFA: true,\n isLoading: false,\n });\n const mfaField = document.getElementById('loginVerification');\n mfaField.focus();\n // if MFA is NOT enabled\n } else if (login && login.token) {\n await Account.get(login.token);\n Account.setLoginState(login.token);\n onSuccess();\n } else {\n this.setState({\n isLoading: false,\n });\n // toast.error(login.message || 'Oops! Something went wrong. Please try again later.');\n onFail('Incorrect email or password.');\n }\n }\n }\n\n mfaLogIn = async (e) => {\n const { userId, loginVerification } = this.state;\n const { onSuccess, onFail } = this.props;\n e.preventDefault();\n this.setState({\n isLoading: true,\n });\n const payload = {\n userId,\n token: loginVerification,\n };\n const login = await Account.mfaLogin(payload);\n if (login && login.token) {\n await Account.get(login.token);\n Account.setLoginState(login.token);\n onSuccess();\n } else {\n this.setState({\n isLoading: false,\n });\n // toast.error(login.message || 'Oops! Something went wrong. Please try again later.');\n onFail('Incorrect verification code.');\n }\n }\n\n onEnterKey = (e) => {\n const { showMFA } = this.state;\n if (e.keyCode === 13) {\n if (showMFA) {\n this.mfaLogIn(e);\n } else {\n this.logIn(e);\n }\n }\n };\n\n componentDidMount() {\n const loginField = document.getElementById('loginEmail');\n loginField.focus();\n }\n\n resetPass = (e) => {\n e.preventDefault();\n this.setState({\n resetPassword: true,\n });\n }\n\n closeModal = () => {\n const { onRegisterButton } = this.props;\n onRegisterButton();\n }\n\n sendResetEmail = async (e) => {\n const { resetEmail, creatorId } = this.state;\n const { onFail } = this.props;\n const that = this;\n e.preventDefault();\n if (!emailPattern.test(resetEmail)) {\n onFail('Please enter a valid email address.');\n } else {\n const payload = {\n creatorId,\n emailAddress: resetEmail,\n site: window.location.protocol + '//' + window.location.host,\n };\n this.setState({\n loadingText: 'Preparing your reset password email. One sec...',\n isLoading: true,\n });\n const resetPass = await Account.resetPassword(payload);\n if (resetPass && resetPass.success) {\n that.setState({\n isLoading: false,\n resetSuccess: true,\n });\n } else {\n onFail('Oops! Something went wrong. Please try again later.');\n }\n }\n }\n\n render() {\n const {\n loginEmail, loginPassword, isLoading, resetPassword, resetEmail, resetSuccess, loadingText, loginVerification, showMFA,\n } = this.state;\n return (\n
\n {isLoading\n && }\n {!resetPassword\n ? (\n
\n {showMFA\n ? (\n
\n
\n Please enter the verification code we sent to your phone. This code will expire in 30 minutes.\n
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n
\n this.mfaLogIn(e)}>\n Log in\n \n
\n
\n {'Didn\\'t receive a code?'}\n {' '}\n Contact our support team.\n
\n
\n )\n : (\n
\n
\n Already have an ethos account?\n
\n Enter your email and password to log in.\n
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n
\n this.logIn(e)}>\n Log in\n \n
\n
\n Trouble logging in?\n {' '}\n this.resetPass(e)}>\n Click here\n \n .\n
\n
\n
\n {'Don\\'t have an ethos account?'}\n
\n\n
\n this.closeModal()}>\n Register Now\n \n
\n
\n
\n )}\n
\n )\n : (\n
\n
\n Reset Password\n
\n\n {resetSuccess\n ? (\n
\n
\n Instructions on resetting your password have been sent to your inbox.\n
\n
\n )\n : (\n
\n
\n To reset your password, enter your email address below.\n
\n {'If this email is attached to an ethos account, we\\'ll send you instructions to your inbox.'}\n
\n\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n
\n this.sendResetEmail(e)}>\n Reset my password\n \n
\n
\n )}\n\n
\n )}\n
\n );\n }\n}\n\nLoginForm.propTypes = {\n onSuccess: PropTypes.func,\n onFail: PropTypes.func,\n onRegisterButton: PropTypes.func,\n};\n\nexport default LoginForm;\n","import React, { Component } from 'react';\nimport { Link } from 'react-router-dom';\nimport { toast } from 'react-toastify';\nimport PubSub from 'pubsub-js';\nimport Account from '../../managers/Account';\nimport SimpleModal from '../modal/modal';\nimport LoginForm from '../account/loginForm';\n\nclass TopNav extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isLoggedIn: false,\n username: '',\n showModal: false,\n showMobileNav: false,\n };\n PubSub.subscribe('account_updated', this.onPubSubEvent);\n }\n\n onPubSubEvent = () => {\n this.componentDidMount();\n }\n\n logout = () => {\n Account.logout();\n }\n\n getAccountDetails = async () => {\n const accountData = await Account.get(Account.getToken());\n if (accountData) {\n this.setState({\n username: accountData.username,\n });\n }\n }\n\n async componentDidMount() {\n // check if user is logged in or not.\n if (Account.isLoggedIn()) {\n await this.getAccountDetails();\n this.setState({\n isLoggedIn: true,\n });\n } else {\n this.setState({\n isLoggedIn: false,\n });\n }\n\n const topnav = document.getElementById('topNav');\n document.addEventListener('scroll', () => {\n if (window.pageYOffset > 0) {\n topnav.classList.add('-animate');\n } else {\n topnav.classList.remove('-animate');\n }\n });\n }\n\n loginSuccess = async () => {\n this.setState({\n showModal: false,\n isLoggedIn: true,\n });\n PubSub.publish('account_updated');\n // if (window.location.pathname.includes('register')) {\n // window.location.pathname = '/drop/' + process.env.DROP_ID;\n // }\n window.location.href = '/#login=success';\n }\n\n loginFailed = (error) => {\n toast.error(error || 'Oops! Something went wrong. Try again later.');\n }\n\n openLoginModal = (e) => {\n e.preventDefault();\n this.setState({\n showModal: true,\n showMobileNav: false,\n });\n }\n\n toggleNav = (e) => {\n e.preventDefault();\n const { showMobileNav } = this.state;\n this.setState({\n showMobileNav: !showMobileNav,\n });\n }\n\n handleMobileNav = () => {\n this.setState({\n showMobileNav: false,\n });\n }\n\n closeModal = () => {\n this.setState({\n showModal: false,\n });\n }\n\n render() {\n const {\n isLoggedIn, username, showModal, showMobileNav,\n } = this.state;\n return (\n
\n this.setState({ showModal: false })}>\n this.loginSuccess()}\n onFail={(error) => this.loginFailed(error)}\n onRegisterButton={() => this.closeModal()} />\n \n {/*
\n\n
*/}\n
\n \"ethos\"\n {isLoggedIn\n ? (\n
\n {username\n && this.handleMobileNav(e)}>{username || ' '}}\n this.handleMobileNav(e)}>\n View Campaign\n \n this.handleMobileNav(e)}>\n My Account\n \n this.logout(e)}>\n Log Out\n \n
\n )\n : (\n
\n this.openLoginModal(e)}>\n Log In\n \n this.handleMobileNav(e)}>\n Register\n \n
\n )}\n this.toggleNav(e)}>\n \n \n \n \n \n
\n
\n );\n }\n}\n\nexport default TopNav;\n","import React, { Component } from 'react';\n\nclass Footer extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isSticky: false,\n };\n }\n\n componentDidMount() {\n if (window.location.href.includes('account/')) {\n this.setState({\n isSticky: true,\n });\n }\n }\n\n render() {\n const { isSticky } = this.state;\n return (\n
\n
\n View smart contract on\n {' '}\n Flowscan\n .\n
\n Powered by\n {' '}\n ethos\n .\n
\n
\n
\n );\n }\n}\n\nexport default Footer;\n","import React, { Component } from 'react';\n\nclass FullPageLoader extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n render() {\n return (\n
\n
\n \"home\n
Loading Drop...
\n
\n
\n );\n }\n}\n\nexport default FullPageLoader;\n","import Ajax from './Ajax';\n\n/**\n* Utility helper for Account functions\n*/\n\nclass Creator {\n constructor() {\n this.creatorData = null;\n this.assetData = null;\n this.dropData = null;\n this.creatorId = process.env.CREATOR_ID;\n this.assetId = process.env.ASSET_ID;\n this.assetId2 = process.env.ASSET2_ID;\n this.dropId = process.env.DROP_ID;\n this.dropId2 = process.env.DROP2_ID;\n this.apiUrl = process.env.SERVER_URL;\n }\n\n createRisk = (payloadData, token) => {\n const that = this;\n return Ajax.post(that.apiUrl + 'risk/create', payloadData, { Authorization: token ? 'Bearer ' + token : '' })\n .then((data) => data)\n .catch((error) => {\n throw error;\n });\n }\n\n createDecision = (payloadData, token) => {\n const that = this;\n return Ajax.post(that.apiUrl + 'risk/decision', payloadData, { Authorization: token ? 'Bearer ' + token : '' })\n .then((data) => data)\n .catch((error) => {\n throw error;\n });\n }\n\n confirmPurchase = (payload, token) => {\n const that = this;\n const url = that.apiUrl + 'payment/pay';\n return Ajax.post(url, payload, { Authorization: token ? 'Bearer ' + token : '' })\n .then((data) => data)\n .catch((error) => {\n throw error;\n });\n }\n\n getSingleDrop = (dropId) => {\n // this needs to return a dropData object that contains a drop and asset property\n const that = this;\n const dropData = {\n drop: null,\n asset: null,\n };\n return Ajax.get(that.apiUrl + 'drop/' + dropId)\n .then((data) => {\n if (data.assets) {\n dropData.asset = data.assets[0];\n }\n dropData.asset.drops.forEach((drop) => {\n if (drop.dropId === dropId) {\n dropData.drop = drop;\n }\n });\n return dropData;\n })\n .catch((error) => {\n // that.clear();\n throw error;\n });\n }\n\n getDrop = () => {\n const that = this;\n let assetData = null;\n let assetData2 = null;\n let dropData = null;\n let dropData2 = null;\n if (this.creatorData !== null) {\n return this.creatorData;\n }\n\n return Ajax.get(that.apiUrl + 'creator/' + this.creatorId)\n .then((data) => {\n data.assets.forEach((asset) => {\n if (asset.assetId === that.assetId) {\n assetData = asset;\n }\n });\n if (that.assetId2) {\n data.assets.forEach((asset) => {\n if (asset.assetId === that.assetId2) {\n assetData2 = asset;\n }\n });\n }\n assetData.drops.forEach((drop) => {\n if (drop.dropId === that.dropId) {\n dropData = drop;\n }\n });\n if (that.dropId2) {\n assetData2.drops.forEach((drop) => {\n if (drop.dropId === that.dropId2) {\n dropData2 = drop;\n }\n });\n }\n const creatorData = {\n creator: data,\n asset: assetData,\n asset2: assetData2,\n drop: dropData,\n drop2: dropData2,\n };\n that.creatorData = creatorData;\n return creatorData;\n })\n .catch((error) => {\n // that.clear();\n throw error;\n });\n }\n}\n\nexport default new Creator();\n","import React, { Component } from 'react';\nimport { Outlet } from 'react-router-dom';\nimport { ToastContainer } from 'react-toastify';\nimport TopNav from 'components/navigation/top-nav';\nimport Footer from 'components/navigation/footer';\nimport FullPageLoader from 'components/throbber/loader';\nimport AccountManager from 'managers/Account';\nimport CreatorManager from 'managers/Creator';\n\nclass Container extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isLoading: true,\n dropDetails: null,\n };\n }\n\n getAccountDetails = async () => {\n await AccountManager.get(AccountManager.getToken());\n }\n\n getDropDetails = async () => {\n const dropData = await CreatorManager.getDrop();\n this.setState({\n isLoading: false,\n dropDetails: dropData,\n });\n }\n\n componentDidMount = async () => {\n // check if the user is logged in. If they are, grab the account details\n if (AccountManager.isLoggedIn()) {\n await this.getAccountDetails();\n }\n await this.getDropDetails();\n }\n\n render() {\n const { isLoading, dropDetails } = this.state;\n return (\n
\n {isLoading\n ? (\n
\n \n
\n )\n : (\n
\n \n \n \n
\n )}\n
\n );\n }\n}\n\nexport default Container;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Countdown from 'react-countdown';\nimport moment from 'moment-mini';\n\nclass HomeHero extends Component {\n constructor(props) {\n super(props);\n this.state = {\n countdownData: null,\n friendlyDate: null,\n };\n }\n\n setHeroHeight = () => {\n const hero = document.getElementById('landingHero');\n if (hero) {\n hero.style.height = window.innerHeight + 'px';\n }\n }\n\n parseCountdown = (date) => {\n this.setState({\n countdownData: moment(date).unix() * 1000,\n friendlyDate: moment(date).format('ha on dddd, MMMM D, YYYY'),\n });\n }\n\n componentDidMount() {\n const { data } = this.props;\n const that = this;\n this.setHeroHeight();\n window.addEventListener('resize', that.setHeroHeight);\n that.parseCountdown(data.drop.dateOpen);\n }\n\n learnMore = (e) => {\n const { onLearnMore } = this.props;\n e.preventDefault();\n onLearnMore();\n }\n\n goToFaq = (e) => {\n const { onFaqButton } = this.props;\n e.preventDefault();\n onFaqButton();\n }\n\n render() {\n const { type } = this.props;\n const { countdownData } = this.state;\n const renderer = ({\n days, hours, minutes, seconds, completed,\n }) => {\n if (completed) {\n window.location.href = '/';\n }\n // Render a countdown\n return (\n
\n
\n {days}\n {' '}\n days\n
\n
\n {hours}\n {' '}\n hours\n
\n
\n {minutes}\n {' '}\n mins\n
\n
\n {seconds}\n {' '}\n secs\n
\n
\n );\n };\n return (\n
\n
\n
\n {type === 'countdown'\n &&
\"Chapter
}\n
\n

KOKO AERO FRAME

\n

ARTIST EDITION

\n
\"Chapter
\n\n
\n
\n
\n
\n
\n

CYCLING MEETS ART

\n

\n For the past number of years, Bradley Harms has taken\n a leading role in a new and forward-looking wave of\n Canadian abstraction, building upon traditions within\n the medium, while creating work that both reflects and\n critiques contemporary social and technological\n developments.\n

\n {/*

\n NFTs will drop at\n {' '}\n {friendlyDate}\n .\n

*/}\n this.learnMore(e)}>Learn More\n {type === 'countdown'\n && (\n
\n {countdownData\n && (\n \n )}\n
\n )}\n {/* {type === 'countdown'\n ? this.learnMore(e)}>Learn More\n : View Details} */}\n
\n
\n
\n );\n }\n}\n\nHomeHero.propTypes = {\n data: PropTypes.objectOf(PropTypes.object),\n type: PropTypes.string,\n onLearnMore: PropTypes.func,\n onFaqButton: PropTypes.func,\n};\n\nexport default HomeHero;\n","import React, { Component } from 'react';\nimport { Link } from 'react-router-dom';\nimport PropTypes from 'prop-types';\n\nclass HomeDrop extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n componentDidMount() {}\n\n render() {\n const {\n dropData, assetData, layoutStyle,\n } = this.props;\n return (\n
\n
\n
\n
\n {assetData.mediaMP4\n ? (\n \n )\n : \"ethos\"}\n
\n
\n
\n \n
\n \n
\n
No crypto required. NFTs will be simple to purchase with any major credit card.
\n\n
\n View Details\n
\n
\n
\n
\n \n \n );\n }\n}\n\nHomeDrop.propTypes = {\n dropData: PropTypes.objectOf(PropTypes.object),\n assetData: PropTypes.objectOf(PropTypes.object),\n layoutStyle: PropTypes.string,\n};\n\nexport default HomeDrop;\n","import React, { Component } from 'react';\n\nclass FAQ extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n
\n \n
\n FAQ\n
\n
\n
\n What’s an NFT?\n
\n
\n

An NFT is a ‘non-fungible token’, which is a one-of-a-kind ownable digital asset that you can purchase. When you purchase one of these tokens, you are the official owner of an original Chapter 2 Bilkes NFT that provides you some serious real-world benefits.

\n
\n
\n How do I purchase this NFT?\n
\n
\n

When the campaign goes live, simply click buy-now and purchase with your credit card.

\n

Through this process you will be prompted to create an account if you do not have one already. This is to ensure you can view and transfer your NFT in the future.

\n
\n
\n Do I need cryptocurrency to buy a Chapter 2 Bikes NFT?\n
\n
\n

Not at all. You can pay using your credit card.

\n
\n
\n What happens when I buy one of the NFTs?\n
\n
\n

We will be minting the NFTs, which is a crypto term meaning that your NFT will become a part of the blockchain – the crypto world where NFTs are recorded.

\n {/*

If you’re one of the lucky ones who received an unlockable, you’ll also be gifted the real-world prizes linked to certain NFT purchases.

*/}\n
\n
\n What happens if I don’t have a Crypto Wallet?\n
\n
\n

Not to worry, you do not need a crypto wallet to purchase this Chapter 2 Bikes NFT.

\n

We are here to make things easier, transferring your NFT can be done any time with a few simple clicks.

\n
\n
\n Is there support available if I need help?\n
\n
\n

Yes, absolutely! We are here to help every step of the way.

\n

At any time, if you have any questions or need any support, please email us and we will be happy to help you:

\n

chapter2bikes@ethosnft.com

\n

www.chapter2bikes.com

\n
\n
\n
\n \"ethos\"\n
\n
\n
\n );\n }\n}\n\nexport default FAQ;\n","import React, { Component } from 'react';\n\nclass FullWidthImage extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n  \n
\n );\n }\n}\n\nexport default FullWidthImage;\n","import React, { Component } from 'react';\n\nclass VimeoVideo extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n
\n \n \n
\n \n
\n );\n }\n}\n\nexport default VimeoVideo;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport HomeHero from '../components/hero/homeHero';\nimport HomeDrop from '../components/featuredDrop/homeDrop';\nimport FAQ from '../components/about/faq';\nimport CreatorManager from '../managers/Creator';\nimport FullWidthImage from '../components/hero/fullWidthImage';\nimport VimeoVideo from '../components/hero/VimeoVideo';\n\nclass Home extends Component {\n constructor(props) {\n super(props);\n this.state = {\n dropId: process.env.DROP_ID,\n dropData: null,\n };\n }\n\n getDropData = async () => {\n const { dropId } = this.state;\n const dropData = await CreatorManager.getDrop(dropId);\n if (dropData) {\n this.setState({\n dropData,\n });\n }\n }\n\n async componentDidMount() {\n window.scrollTo(0, 0);\n if (window.location.hash.includes('register=success')) {\n toast.success('Successfully created your account.');\n window.location.hash = '';\n }\n if (window.location.hash.includes('login=success')) {\n toast.success('Log in success.');\n window.location.hash = '';\n }\n await this.getDropData();\n }\n\n scrollToSection = (element) => {\n const scrollToElement = document.getElementById(element);\n scrollToElement.scrollIntoView({ behavior: 'smooth' });\n }\n\n render() {\n const { dropData } = this.state;\n return (\n
\n {dropData\n && (\n
\n this.scrollToSection('moreInfoElement')}\n onFaqButton={() => this.scrollToSection('homeFaq')} />\n \n {dropData.asset2\n && (\n \n )}\n \n \n \n
\n )}\n
\n );\n }\n}\n\nexport default Home;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport PropTypes from 'prop-types';\nimport Ajax from '../../managers/Ajax';\nimport Throbber from '../throbber';\nimport 'react-toastify/dist/ReactToastify.css';\n\nconst emailPattern = /^[-a-z0-9~!$%^&*_=+}{'?]+(\\.[-a-z0-9~!$%^&*_=+}{'?]+)*@([a-z0-9_][-a-z0-9_]*(\\.[-a-z0-9_]+)*\\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}))(:[0-9]{1,5})?$/i;\n\nclass Register extends Component {\n constructor(props) {\n super(props);\n this.state = {\n registerFirstname: '',\n registerLastname: '',\n registerPhone: '',\n registerEmail: '',\n isLoading: false,\n dropId: process.env.DROP_ID,\n hasSignedUp: false,\n };\n }\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n onEnterKey = (e) => {\n if (e.keyCode === 13) {\n this.validateForm(e);\n }\n }\n\n formatPayload = () => {\n // should probably add some error handling/validation here\n const { registerFirstname } = this.state;\n const { registerLastname } = this.state;\n const { registerPhone } = this.state;\n const { registerEmail } = this.state;\n const { dropId } = this.state;\n if (registerFirstname === ''\n || registerLastname === ''\n || registerPhone === ''\n || registerEmail === '') {\n toast.error('Please complete all fields.');\n return false;\n }\n if (!emailPattern.test(registerEmail)) {\n toast.error('Please enter a valid email address.');\n return false;\n }\n const payload = {\n firstName: registerFirstname,\n lastName: registerLastname,\n telephone: registerPhone,\n email: registerEmail,\n location: '',\n signUpUrl: window.location.href,\n dropId,\n };\n return payload;\n }\n\n submitForm = async (e) => {\n e.preventDefault();\n const { dropId } = this.state;\n const payload = this.formatPayload();\n if (payload) {\n this.setState({\n isLoading: true,\n });\n try {\n // const register = await Ajax.post('https://localhost:7180/api/usersignup', payload);\n const register = await Ajax.post(process.env.SERVER_URL + 'usersignup', payload);\n if (register) {\n this.setState({\n isLoading: false,\n hasSignedUp: true,\n });\n\n gtag('event', 'chapter2bikes_pre_registration', { // eslint-disable-line\n event_category: 'account_registration',\n event_label: 'User pre-registered for a drop',\n });\n\n localStorage.setItem('Chapter2Countdown', dropId);\n } else {\n toast.error('Oops! Something went wrong. Please try again later');\n }\n } catch (error) {\n toast.error(error.message || 'Oops! Something went wrong. Please try again later');\n this.setState({\n isLoading: false,\n });\n }\n }\n }\n\n componentDidMount() {\n const { dropId } = this.state;\n if (localStorage.getItem('Chapter2Countdown') && localStorage.getItem('Chapter2Countdown') === dropId) {\n this.setState({\n hasSignedUp: true,\n });\n }\n }\n\n render() {\n const { registerFirstname } = this.state;\n const { registerLastname } = this.state;\n const { registerPhone } = this.state;\n const { registerEmail } = this.state;\n const { isLoading } = this.state;\n const { hasSignedUp } = this.state;\n const { type } = this.props;\n return (\n
\n {hasSignedUp\n ? (\n
\n

\n {'Thanks for signing up! Keep your eye on your inbox! '}\n {'We\\'ll notify you as soon as the drop lands!'}\n
\n
\n Cheers!\n

\n
\n )\n : (\n
\n {isLoading\n && }\n

\n {'Shoot us your contact info and we\\'ll let you know as soon as the drop goes live.'}\n

\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n
\n
\n
\n )}\n
\n );\n }\n}\n\nRegister.propTypes = {\n type: PropTypes.string,\n};\n\nexport default Register;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Register from '../register/index.jsx';\nimport SimpleModal from '../modal/modal';\n\nclass HomeCountdown extends Component {\n constructor(props) {\n super(props);\n this.state = {\n showModal: false,\n };\n }\n\n componentDidMount() {}\n\n readMore = (e) => {\n const { onFaqButton } = this.props;\n e.preventDefault();\n onFaqButton();\n }\n\n getNotified = (e) => {\n e.preventDefault();\n this.setState({\n showModal: true,\n });\n }\n\n render() {\n const { assetData, layoutStyle } = this.props;\n const { showModal } = this.state;\n return (\n
\n this.setState({ showModal: false })}>\n \n \n
\n
\n \n
\n {assetData.mediaMP4\n ? (\n \n )\n : \"ethos\"}\n
\n\n
\n
\n \n
\n
\n
\n
\n
No crypto required. NFTs will be simple to purchase with any major credit card.
\n
\n\n
\n {/* \n Pre-Registration Closed\n */}\n this.getNotified(e)}>\n Pre-Register\n \n this.readMore(e)}>\n FAQ\n \n
\n
\n
\n
\n\n
\n \n );\n }\n}\n\nHomeCountdown.propTypes = {\n assetData: PropTypes.objectOf(PropTypes.object),\n layoutStyle: PropTypes.string,\n onFaqButton: PropTypes.func,\n};\n\nexport default HomeCountdown;\n","import React, { Component } from 'react';\nimport { ToastContainer } from 'react-toastify';\nimport CookieConsent from 'react-cookie-consent';\nimport HomeHero from '../components/hero/homeHero';\nimport HomeCountdown from '../components/countdown/homeCountdown';\nimport FAQ from '../components/about/faq';\nimport CreatorManager from '../managers/Creator';\nimport FullPageLoader from '../components/throbber/loader';\nimport Footer from '../components/navigation/footer';\nimport FullWidthImage from '../components/hero/fullWidthImage';\nimport VimeoVideo from '../components/hero/VimeoVideo';\n\nclass Home extends Component {\n constructor(props) {\n super(props);\n this.state = {\n dropId: process.env.DROP_ID,\n dropData: null,\n isLoading: true,\n };\n }\n\n getDropData = async () => {\n const { dropId } = this.state;\n const dropData = await CreatorManager.getDrop(dropId);\n if (dropData) {\n this.setState({\n isLoading: false,\n dropData,\n });\n }\n }\n\n async componentDidMount() {\n await this.getDropData();\n }\n\n scrollToSection = (element) => {\n const scrollToElement = document.getElementById(element);\n scrollToElement.scrollIntoView({ behavior: 'smooth' });\n }\n\n render() {\n const { dropData, isLoading } = this.state;\n return (\n
\n {isLoading\n ? (\n
\n \n
\n )\n : (\n
\n {dropData\n && (\n
\n \n this.scrollToSection('moreInfoElement')}\n onFaqButton={() => this.scrollToSection('homeFaq')} />\n this.scrollToSection('homeFaq')} />\n {dropData.asset2\n && (\n this.scrollToSection('homeFaq')} />\n )}\n \n \n \n
\n )}\n
\n )}\n
\n );\n }\n}\n\nexport default Home;\n","import React from 'react';\nimport {\n ElementsConsumer, CardNumberElement, CardExpiryElement, CardCvcElement,\n} from '@stripe/react-stripe-js';\nimport PropTypes from 'prop-types';\nimport { toast } from 'react-toastify';\nimport PubSub from 'pubsub-js';\nimport Throbber from '../throbber';\nimport AccountManager from '../../managers/Account';\n\nclass CardForm extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n nameOnCard: '',\n isLoading: false,\n stripeStyle: {\n iconColor: '#c4f0ff',\n color: window.location.href.includes('account') ? '#ffffff' : '#232323',\n fontWeight: '500',\n fontFamily: 'Poppins, Open Sans, Segoe UI, sans-serif',\n fontSize: '16px',\n },\n };\n }\n\n async componentDidMount() {\n const accountData = await AccountManager.get(AccountManager.getToken());\n this.setState({\n nameOnCard: accountData.firstName + ' ' + accountData.lastName,\n });\n }\n\n handleSubmit = async (event) => {\n event.preventDefault();\n const { stripe, elements } = this.props;\n const { nameOnCard } = this.state;\n const { onSuccess } = this.props;\n\n const cardElement = elements.getElement('cardNumber');\n\n const paymentMethod = {\n type: 'card',\n card: cardElement,\n billing_details: {\n name: nameOnCard,\n },\n };\n\n this.setState({\n isLoading: true,\n });\n\n const results = await stripe.createPaymentMethod(paymentMethod);\n if (results && results.paymentMethod) {\n const payload = {\n id: results.paymentMethod.id,\n };\n const saveCard = await AccountManager.saveCardDetails(process.env.SERVER_URL + 'payment/method', payload, AccountManager.getToken());\n \n if (saveCard && saveCard.success === false) {\n this.setState({\n isLoading: false,\n });\n toast.error(saveCard.message || 'Oops! There was a problem with that card. Please try a different credit card.');\n } else {\n toast.success('Credit card settings saved!');\n PubSub.publish('card_updated');\n await AccountManager.get(AccountManager.getToken(), true);\n PubSub.publish('account_updated');\n if (onSuccess) {\n onSuccess();\n }\n this.setState({\n isLoading: false,\n });\n }\n } else {\n toast.error(results.error ? results.error.message : 'Oops! Something went wrong. Try again later.');\n this.setState({\n isLoading: false,\n });\n }\n };\n \n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n render() {\n const { nameOnCard, stripeStyle, isLoading } = this.state;\n const { stripe, elements } = this.props;\n return (\n
\n {isLoading\n && }\n
\n
\n
Name on card:
\n this.handleInputChange(e)} />\n
\n
\n
Number on card:
\n
\n \n
\n
\n
\n
Expiry:
\n
\n \n
\n
\n
\n
CVC:
\n
\n \n
\n
\n
\n {stripe && elements\n && (\n \n )}\n
\n
\n \n );\n }\n}\n\nexport default function InjectedCardForm(props) {\n const { onSuccess } = props;\n return (\n \n {({ stripe, elements }) => (\n \n )}\n \n );\n}\n\nCardForm.propTypes = {\n stripe: PropTypes.string,\n elements: PropTypes.string,\n onSuccess: PropTypes.string,\n};\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport { CountryDropdown, RegionDropdown } from 'react-country-region-selector';\nimport { Elements } from '@stripe/react-stripe-js';\nimport { loadStripe } from '@stripe/stripe-js';\nimport PubSub from 'pubsub-js';\nimport PropTypes from 'prop-types';\nimport AccountManager from '../../managers/Account';\nimport Throbber from '../throbber';\nimport CardForm from './CardForm';\n\nconst stripePromise = loadStripe(process.env.STRIPE_KEY);\n\nclass BillingForm extends Component {\n constructor(props) {\n super(props);\n this.state = {\n billingAddress: '',\n billingCity: '',\n billingCode: '',\n country: '',\n region: '',\n whiteListed: ['US', 'CA'],\n priorityOptions: ['US', 'CA'],\n isLoading: true,\n stripeOptions: {},\n tab: 'billing',\n hasBillingInfo: false,\n cardDetails: null,\n updateCard: false,\n };\n PubSub.subscribe('card_updated', this.getCardDetails);\n PubSub.subscribe('account_updated', this.updateBillingAddress);\n }\n\n updateBillingAddress = () => {\n this.componentDidMount();\n }\n\n getCardDetails = async () => {\n let cardDetails;\n const hasCardOnFile = await AccountManager.getPaymentMethod(AccountManager.getToken());\n if (hasCardOnFile && hasCardOnFile.success && hasCardOnFile.card) {\n cardDetails = hasCardOnFile.card;\n this.setState({\n cardDetails,\n });\n }\n }\n\n async componentDidMount() {\n // get billingInfo if it exists\n const { mode } = this.props;\n await this.getCardDetails();\n const accountData = await AccountManager.get(AccountManager.getToken(), true);\n if (accountData && accountData.billingInfo) {\n this.setState({\n billingAddress: accountData.billingInfo.address || '',\n billingCity: accountData.billingInfo.city || '',\n billingCode: accountData.billingInfo.zip || '',\n country: accountData.billingInfo.country || '',\n region: accountData.billingInfo.state || '',\n isLoading: false,\n hasBillingInfo: true,\n tab: mode || 'billing',\n });\n } else {\n this.setState({\n isLoading: false,\n hasBillingInfo: false,\n });\n }\n }\n\n onEnterKey = (e) => {\n if (e.keyCode === 13) {\n // this.validateForm();\n }\n }\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n selectCountry = (val) => {\n this.setState({ country: val });\n }\n\n selectRegion = (val) => {\n this.setState({ region: val });\n }\n\n validateForm = () => {\n const { billingAddress } = this.state;\n const { billingCity } = this.state;\n const { billingCode } = this.state;\n const { country } = this.state;\n const { region } = this.state;\n if (billingAddress === ''\n || billingCity === ''\n || billingCode === ''\n || country === ''\n || region === '') {\n toast.error('Please fill out all fields.');\n return false;\n }\n return true;\n }\n\n updateDetails = async (e) => {\n const { onSuccess, accountInfo } = this.props;\n const {\n billingAddress, billingCity, billingCode, country, region,\n } = this.state;\n\n e.preventDefault();\n let payload = {};\n payload = {\n address: billingAddress,\n city: billingCity,\n state: region,\n zip: billingCode,\n country,\n };\n if (this.validateForm()) {\n this.setState({\n isLoading: true,\n });\n const billingChanges = await AccountManager.billing(process.env.SERVER_URL + 'account/billing', payload, AccountManager.getToken());\n if (billingChanges) {\n this.setState({\n isLoading: false,\n hasBillingInfo: true,\n });\n onSuccess();\n toast.success('Billing details successfully updated!');\n }\n }\n }\n\n toggleTab = (tab, e) => {\n const currentTab = tab;\n e.preventDefault();\n this.setState({\n tab: currentTab,\n updateCard: false,\n });\n }\n\n changeCreditCard = (e) => {\n e.preventDefault();\n this.setState({\n updateCard: true,\n });\n }\n\n render() {\n const {\n updateCard, tab, hasBillingInfo, stripeOptions, billingAddress, billingCity, billingCode, isLoading, country, region, priorityOptions, cardDetails,\n } = this.state;\n const { onCardSuccess, mode } = this.props;\n return (\n
\n {hasBillingInfo\n && (\n
\n
\n this.toggleTab('billing', e)} href=\"#\">Billing Address\n
\n
\n this.toggleTab('card', e)} href=\"#\">Credit Card Details\n
\n
\n )}\n\n {tab === 'billing'\n && (\n
\n {isLoading\n && }\n

\n Add Billing Address\n

\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n
Country:
\n this.selectCountry(val)} />\n
\n {country !== ''\n && (\n
\n
State:
\n this.selectRegion(val)} />\n
\n )}\n
\n this.updateDetails(e)}>\n Save Billing Address\n \n
\n
\n
\n )}\n\n {tab === 'card'\n && (\n
\n
\n Card Details\n
\n
\n View and update your credit card details here\n
\n
\n {cardDetails && !updateCard\n ? (\n
\n current card on file:\n
\n
\n {cardDetails.brand}\n
\n
\n **** **** ****\n {' '}\n {cardDetails.last4}\n
\n
\n Expires: \n {cardDetails.expMonth}\n {' '}\n /\n {' '}\n {cardDetails.expYear}\n
\n
\n
\n this.changeCreditCard(e)}>\n Change Credit Card\n \n
\n
\n )\n : (\n
\n {!isLoading\n && (\n \n \n \n )}\n \n
\n )}\n
\n
\n )}\n
\n );\n }\n}\n\nBillingForm.propTypes = {\n onSuccess: PropTypes.func,\n onCardSuccess: PropTypes.func,\n accountInfo: PropTypes.string,\n mode: PropTypes.string,\n};\n\nexport default BillingForm;\n","import React, { useState, useEffect } from 'react';\nimport { PaymentRequestButtonElement, useStripe } from '@stripe/react-stripe-js';\nimport PropTypes from 'prop-types';\n\nexport default function ApplePay(props) {\n const stripe = useStripe();\n const [paymentRequest, setPaymentRequest] = useState(null);\n const { agreeTerms, totalPrice } = props;\n\n useEffect(() => {\n if (stripe) {\n const pr = stripe.paymentRequest({\n country: 'US',\n currency: 'usd',\n total: {\n label: 'Demo total',\n amount: totalPrice,\n },\n requestPayerName: true,\n requestPayerEmail: true,\n });\n\n // Check the availability of the Payment Request API.\n pr.canMakePayment().then((result) => {\n if (result) {\n setPaymentRequest(pr);\n }\n });\n\n pr.on('paymentmethod', async (e) => {\n // might have to get the terms field the old fashioned way now\n // const terms = document.getElementById('registerAcceptTerms');\n // if (!terms.checked) {\n // toast.error('Please agree to the terms and conditions.');\n // e.complete('success');\n // }\n\n const { onApplePay } = props;\n e.complete('success');\n onApplePay(e);\n });\n\n pr.on('cancel', async () => {\n console.log('cancelled payment');\n });\n }\n }, [stripe, agreeTerms]);\n\n if (paymentRequest) {\n return (\n
\n
\n or\n
\n \n
\n );\n }\n\n // Use a traditional checkout form.\n return '';\n}\n\nApplePay.propTypes = {\n onApplePay: PropTypes.func,\n agreeTerms: PropTypes.string,\n totalPrice: PropTypes.string,\n};\n","import React, { Component } from 'react';\nimport { Elements } from '@stripe/react-stripe-js';\nimport { loadStripe } from '@stripe/stripe-js';\nimport PropTypes from 'prop-types';\nimport ApplePay from './applePay';\n\nconst stripePromise = loadStripe(process.env.STRIPE_KEY);\n\nclass AlternatePayment extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n componentDidMount() {}\n\n processPayment = (paymentInfo) => {\n const { onPaymentProcessing } = this.props;\n onPaymentProcessing(paymentInfo.paymentMethod.id);\n }\n\n render() {\n const {\n agreeTerms, totalPrice,\n } = this.props;\n return (\n
\n \n this.processPayment(paymentInfo)}\n agreeTerms={agreeTerms}\n totalPrice={totalPrice} />\n \n
\n );\n }\n}\n\nAlternatePayment.propTypes = {\n agreeTerms: PropTypes.string,\n totalPrice: PropTypes.string,\n onPaymentProcessing: PropTypes.func,\n};\n\nexport default AlternatePayment;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport PropTypes from 'prop-types';\nimport Throbber from '../throbber';\nimport AccountManager from '../../managers/Account';\nimport CreatorManager from '../../managers/Creator';\nimport AlternatePayment from './alternatePayment';\nimport Ajax from '../../managers/Ajax';\n\nclass ConfirmPurchase extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isLoading: true,\n loadingText: 'Calculating taxes. Stand by...',\n agreeTerms: false,\n purchasePrice: null,\n prices: {},\n lastFour: '####',\n };\n }\n\n prettifyPrices = (purchaseObj) => {\n const subtotal = purchaseObj.purchase + purchaseObj.gas;\n const { tax } = purchaseObj;\n const total = subtotal + tax;\n\n // const prices = {\n // purchase: (purchaseObj.purchase / 100).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n // gas: (purchaseObj.gas / 100).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n // subTotal: (subtotal / 100).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n // tax: (tax / 100).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n // taxRate: purchaseObj.taxRate || 0,\n // total: (total / 100).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n // rawTotal: total,\n // };\n\n const prices = {\n price: purchaseObj.purchase,\n gasFee: purchaseObj.gas,\n subTotal: subtotal,\n tax,\n taxRate: purchaseObj.taxRate || 0,\n total,\n rawTotal: total,\n };\n \n this.setState({\n prices,\n });\n\n // console.log(subtotal.toLocaleString('en-US', { style: 'currency', currency: 'USD' }));\n // calculate subtotal (purchase + gas)\n // calculate tax\n // calculate total\n // prettify purchase, gas, subtotal, tax, and total\n }\n\n calculateTaxes = async (amountObj) => {\n const { data } = this.props;\n const updatedAmountObj = amountObj;\n const taxes = await Ajax.get(process.env.SERVER_URL + 'tax?assetAmount=' + amountObj.purchase + '&gasAmount=' + amountObj.gas + '&dropId=' + data.drop.dropId, AccountManager.getToken());\n if (taxes && taxes.taxAmount) {\n updatedAmountObj.tax = taxes.taxAmount;\n updatedAmountObj.taxRate = taxes.taxRate;\n } else {\n updatedAmountObj.tax = 0;\n updatedAmountObj.taxRate = 0;\n }\n this.setState({\n isLoading: false,\n loadingText: 'Confirming your purchase. One sec...',\n });\n this.prettifyPrices(updatedAmountObj);\n }\n\n getCardDetails = async () => {\n let cardDetails;\n const hasCardOnFile = await AccountManager.getPaymentMethod(AccountManager.getToken());\n if (hasCardOnFile && hasCardOnFile.success) {\n cardDetails = hasCardOnFile.card;\n this.setState({\n lastFour: cardDetails.last4 || '####',\n });\n }\n }\n\n async componentDidMount() {\n const { data } = this.props;\n\n const updatedPricing = {\n purchase: this.convertToCents(data.drop.buyItNow),\n gas: 100,\n subTotal: 0,\n tax: 0,\n total: 0,\n };\n this.getCardDetails();\n await this.calculateTaxes(updatedPricing);\n }\n\n convertToCents = (amount) => amount * 100\n\n confirmPurchase = async (paymentId) => {\n const { onPurchaseAttempt, data } = this.props;\n const { agreeTerms, prices } = this.state;\n let riskifiedId;\n const payload = {\n assetPrice: prices.price,\n gasFee: prices.gasFee,\n tax: prices.tax,\n dropId: data.drop.dropId,\n };\n if (paymentId) {\n payload.pmId = paymentId;\n }\n\n if (!agreeTerms) {\n toast.error('Please agree to the terms and conditions.');\n } else {\n this.setState({\n isLoading: true,\n });\n const riskified = await CreatorManager.createRisk(payload, AccountManager.getToken());\n await CreatorManager.createDecision(payload, AccountManager.getToken());\n if (riskified && riskified.cartToken) {\n const { cartToken } = riskified;\n riskifiedId = cartToken;\n }\n onPurchaseAttempt(prices, paymentId, riskifiedId);\n }\n }\n\n componentDidUpdate(prevProps) {\n const { purchaseResult } = this.props;\n if (prevProps.purchaseResult !== purchaseResult) {\n console.log(purchaseResult);\n }\n }\n\n handleCheckboxChange = (e) => {\n let isChecked = false;\n if (e.target.checked) {\n isChecked = true;\n } else {\n isChecked = false;\n }\n this.setState({\n agreeTerms: isChecked,\n });\n }\n\n payWithCard = (e) => {\n const { onPayWithCreditCard } = this.props;\n e.preventDefault();\n onPayWithCreditCard();\n }\n\n prettyPrice = (cents) => (cents / 100).toLocaleString('en-US', { style: 'currency', currency: 'USD' })\n\n render() {\n const {\n lastFour, isLoading, prices, loadingText, agreeTerms,\n } = this.state;\n return (\n
\n {isLoading\n && }\n
\n Confirm Your Purchase\n
\n
\n {/*
\n Confirm the details below details.\n
*/}\n
\n
\n Purchase Price\n
\n
\n {this.prettyPrice(prices.price)}\n
\n
\n
\n
\n Gas Fee\n
\n
\n {this.prettyPrice(prices.gasFee)}\n
\n
\n
\n
\n Sub Total\n
\n
\n {this.prettyPrice(prices.subTotal)}\n
\n
\n {/*
\n
\n Tax Rate\n
\n
\n {prices.taxRate}\n %\n
\n
*/}\n
\n
\n Estimated Sales Tax\n
\n
\n {this.prettyPrice(prices.tax)}\n
\n
\n
\n
\n Total\n {' '}\n {lastFour !== '####'\n && (\n \n (will be charged to card ending with\n {' '}\n {lastFour}\n )\n \n )}\n
\n
\n {this.prettyPrice(prices.total)}\n
\n
\n\n
\n {/*
    \n
  • The NFT carries a limited licence referencing the artwork.
  • \n
  • Your purchase is conditional and will only become final upon a) our receipt in full of your payment b) validation of your identity which may require your submission of official documents c) completion of a hold period which may be as long as three months.
  • \n
  • All of your payments are non-refundable.
  • \n
*/}\n
\n this.handleCheckboxChange(e)} />\n \n
\n
\n
\n {lastFour === '####'\n ? (\n
\n this.payWithCard(e)}>\n Pay With Credit Card\n \n
\n )\n : (\n
\n this.confirmPurchase()}>\n Confirm Purchase\n \n
\n )}\n {prices && prices.total\n && this.confirmPurchase(paymentId)} />}\n
\n );\n }\n}\n\nConfirmPurchase.propTypes = {\n data: PropTypes.objectOf(PropTypes.object),\n onPurchaseAttempt: PropTypes.func,\n purchaseResult: PropTypes.string,\n onPayWithCreditCard: PropTypes.func,\n};\n\nexport default ConfirmPurchase;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport PubSub from 'pubsub-js';\nimport { toast } from 'react-toastify';\nimport { Link } from 'react-router-dom';\nimport AccountManager from '../../managers/Account';\nimport SimpleModal from '../modal/modal';\nimport LoginForm from '../account/loginForm';\nimport BillingForm from '../account/billingForm';\nimport ConfirmPurchase from './confirmPurchase';\nimport CreatorManager from '../../managers/Creator';\n\nclass FeaturedDrop extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isLoggedIn: false,\n accountData: null,\n showModal: false,\n modalMode: '',\n purchaseResult: null,\n creatorId: process.env.CREATOR_ID,\n amountLeft: 0,\n };\n PubSub.subscribe('account_updated', this.onPubSubEvent);\n }\n\n getAccountDetails = async () => {\n const accountData = await AccountManager.get(AccountManager.getToken());\n if (accountData) {\n this.setState({\n accountData,\n });\n }\n }\n\n onPubSubEvent = async () => {\n await this.getAccountDetails();\n if (AccountManager.isLoggedIn()) {\n this.setState({\n isLoggedIn: true,\n });\n } else {\n this.setState({\n isLoggedIn: false,\n });\n }\n }\n\n async componentDidMount() {\n const { data } = this.props;\n const hasPurchased = localStorage.getItem(process.env.PURCHASE_COOKIE + data.drop.dropId);\n // check if user is logged in or not.\n if (AccountManager.isLoggedIn()) {\n await this.getAccountDetails();\n this.setState({\n isLoggedIn: true,\n amountLeft: data.drop.quantityAvailable,\n purchaseResult: hasPurchased ? 'success' : null,\n });\n } else {\n this.setState({\n isLoggedIn: false,\n amountLeft: data.drop.quantityAvailable,\n });\n }\n }\n\n componentWillUnmount() {\n toast.dismiss();\n }\n\n loginModal = (e) => {\n e.preventDefault();\n this.setState({\n showModal: true,\n modalMode: 'login',\n });\n }\n\n checkBuyStatus = (e) => {\n const { accountData } = this.state;\n let mode = '';\n // check for billing info. If it exists, let them buy. Otherwise prompt to add\n // if (accountData.billingInfo && accountData.billingInfo.hasPaymentMethod) {\n // mode = 'purchase';\n // } else if (accountData.billingInfo && !accountData.billingInfo.hasPaymentMethod) {\n // mode = 'card';\n // } else {\n // mode = 'billing';\n // }\n if (accountData.billingInfo) {\n mode = 'purchase';\n } else {\n mode = 'billing';\n }\n e.preventDefault();\n this.setState({\n showModal: true,\n modalMode: mode,\n });\n }\n\n loginSuccess = async () => {\n await this.getAccountDetails();\n this.setState({\n showModal: false,\n isLoggedIn: true,\n });\n toast.success('Log in success.');\n PubSub.publish('account_updated');\n }\n\n loginFailed = (error) => {\n toast.error(error || 'Oops! Something went wrong. Try again later.');\n }\n\n onBillingSuccess = async () => {\n // await AccountManager.get(AccountManager.getToken(), true);\n // update account details\n // console.log('onBillingSuccess');\n // console.log(billingDetails);\n PubSub.publish('account_updated');\n this.setState({\n modalMode: 'purchase',\n });\n }\n\n onCardSuccess = () => {\n this.setState({\n modalMode: 'purchase',\n });\n }\n\n attemptPurchase = async (amount, paymentId, cartToken) => {\n const { data } = this.props;\n const { amountLeft } = this.state;\n const parsedDetails = amount;\n parsedDetails.nftName = data.asset.name;\n parsedDetails.nftLink = data.asset.mediaThumbnailUrl || data.asset.mediaUrl;\n\n // const payload = {\n // dropId: data.drop.dropId,\n // amount: amount.rawTotal,\n // site: window.location.protocol + '//' + window.location.host,\n // creatorId,\n // details: parsedDetails,\n // };\n\n const payload = {\n gasFee: parsedDetails.gasFee,\n dropId: data.drop.dropId,\n nftName: parsedDetails.nftName,\n nftLink: parsedDetails.nftLink,\n };\n\n if (paymentId) {\n payload.pmId = paymentId;\n }\n\n if (cartToken) {\n payload.cartToken = cartToken;\n }\n\n const purchaseData = await CreatorManager.confirmPurchase(payload, AccountManager.getToken());\n\n if (purchaseData && purchaseData.success) {\n // update the displayed amount remaining\n const newAmountLeft = amountLeft === 0 ? 0 : amountLeft - 1;\n this.setState({\n showModal: false,\n amountLeft: newAmountLeft,\n purchaseResult: 'success',\n });\n gtag('event', 'chapter2bikes_purchase', { // eslint-disable-line\n event_category: 'chapter2bikes_purchase_success',\n event_label: 'User purchased a Chapter 2 Bikes NFT',\n });\n toast.success(purchaseData.message, {\n autoClose: false,\n });\n localStorage.setItem(process.env.PURCHASE_COOKIE + data.drop.dropId, 1);\n // PubSub.publish('drop _updated');\n } else {\n this.setState({\n showModal: false,\n });\n toast.error(purchaseData.message || 'Oops! Something went wrong while processing the payment. Please try again later.', {\n autoClose: false,\n });\n }\n }\n\n closeModal = () => {\n this.setState({\n showModal: false,\n });\n }\n\n render() {\n const { data } = this.props;\n const {\n isLoggedIn, showModal, modalMode, accountData, purchaseResult, amountLeft,\n } = this.state;\n return (\n
\n
\n this.setState({ showModal: false })}>\n {modalMode === 'login'\n && this.loginSuccess()} onFail={(error) => this.loginFailed(error)} onRegisterButton={() => this.closeModal()} />}\n {(modalMode === 'billing' || modalMode === 'card')\n && (\n
\n this.onBillingSuccess()}\n onCardSuccess={() => this.onCardSuccess()}\n accountInfo={accountData}\n mode={modalMode} />\n
\n )}\n {modalMode === 'purchase'\n && (\n
\n this.attemptPurchase(amount, paymentId, cartToken)}\n purchaseResult={purchaseResult}\n accountInfo={accountData}\n onPayWithCreditCard={() => this.setState({ modalMode: 'card' })} />\n
\n )}\n
\n
\n
\n
\n {data.asset.mediaMP4\n ? (\n \n )\n : \"ethos\"}\n
\n
\n
\n \n
\n \n {purchaseResult === 'success'\n ? (\n
\n

\n Congratulations. Your purchase of\n {' '}\n \n \n {' '}\n was successful.\n

\n \n

Keep an eye on your inbox. An email receipt is on its way.

\n

In the meantime, you can view your NFT in your My Account section.

\n
\n

View Your NFT

\n
\n )\n : (\n
\n \n
\n
No crypto required. NFTs will be simple to purchase with any major credit card.
\n
\n {amountLeft}\n {' '}\n remain.\n
\n
\n $\n {data.drop.buyItNow}\n {' '}\n USD\n
\n {/*
Date the drop is available
*/}\n {!isLoggedIn\n ? (\n
\n {amountLeft <= 0\n ? Sold Out\n : this.loginModal(e)}>Buy Now}\n
\n )\n : (\n
\n {amountLeft <= 0\n ? Sold Out\n : this.checkBuyStatus(e)}>Buy Now}\n
\n )}\n
\n )}\n \n
\n
\n \n \n );\n }\n}\n\nFeaturedDrop.propTypes = {\n data: PropTypes.objectOf(PropTypes.object),\n};\n\nexport default FeaturedDrop;\n","import React, { Component } from 'react';\n\nclass SlimHero extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n  \n
\n );\n }\n}\n\nexport default SlimHero;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport FeaturedDrop from '../components/featuredDrop/featuredDrop';\nimport SlimHero from '../components/hero/slimHero';\nimport CreatorManager from '../managers/Creator';\nimport FAQ from '../components/about/faq';\n\nclass Drop extends Component {\n constructor(props) {\n super(props);\n this.state = {\n dropData: null,\n };\n }\n\n getDropData = async (dropId) => {\n const dropData = await CreatorManager.getSingleDrop(dropId);\n\n if (dropData) {\n this.setState({\n dropData,\n });\n }\n }\n\n async componentDidMount() {\n window.scrollTo(0, 0);\n if (window.location.hash.includes('register=success')) {\n toast.success('Successfully created your account.');\n window.location.hash = '';\n }\n if (window.location.hash.includes('login=success')) {\n toast.success('Log in success.');\n window.location.hash = '';\n }\n // get the parameter from the URL because react router is stupid and now forces you to use hooks.\n const urlPatternArray = window.location.href.split('/');\n let dropId = urlPatternArray[urlPatternArray.length - 1];\n if (dropId.includes('#')) {\n dropId = dropId.substring(0, dropId.length - 1);\n }\n await this.getDropData(dropId);\n }\n\n render() {\n const { dropData } = this.state;\n return (\n
\n {dropData\n && (\n
\n \n \n \n
\n )}\n
\n );\n }\n}\n\nexport default Drop;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport Throbber from '../throbber';\nimport Account from '../../managers/Account';\n\nconst emailPattern = /^[-a-z0-9~!$%^&*_=+}{'?]+(\\.[-a-z0-9~!$%^&*_=+}{'?]+)*@([a-z0-9_][-a-z0-9_]*(\\.[-a-z0-9_]+)*\\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}))(:[0-9]{1,5})?$/i;\n\nclass AccountLogin extends Component {\n constructor(props) {\n super(props);\n this.state = {\n loginEmail: '',\n loginPassword: '',\n isLoading: false,\n resetPassword: false,\n };\n }\n\n validateForm = () => {\n const { loginEmail } = this.state;\n const { loginPassword } = this.state;\n if (loginEmail === '' || loginPassword === '') {\n toast.error('Please enter an email and password.');\n return false;\n }\n if (!emailPattern.test(loginEmail)) {\n toast.error('Please enter a valid email address.');\n return false;\n }\n return true;\n }\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n logIn = async (e) => {\n const { loginEmail } = this.state;\n const { loginPassword } = this.state;\n let payload = {};\n e.preventDefault();\n if (this.validateForm()) {\n this.setState({\n isLoading: true,\n });\n payload = {\n email: loginEmail,\n password: loginPassword,\n };\n const login = await Account.login(payload);\n if (login && login.token) {\n await Account.get(login.token);\n Account.setLoginState(login.token);\n window.location.href = '/';\n } else {\n this.setState({\n isLoading: false,\n });\n // toast.error(login.message || 'Oops! Something went wrong. Please try again later.');\n toast.error('Incorrect email or password.');\n }\n }\n }\n\n onEnterKey = (e) => {\n if (e.keyCode === 13) {\n this.logIn(e);\n }\n };\n\n resetPass = (e) => {\n e.preventDefault();\n this.setState({\n resetPassword: true,\n });\n }\n\n componentDidMount() {}\n\n render() {\n const { loginEmail } = this.state;\n const { loginPassword } = this.state;\n const { isLoading } = this.state;\n return (\n
\n
\n {isLoading\n && }\n
\n
\n Log In\n
\n
\n Enter your email and password to log in.\n
\n {'Don\\'t have an account? '}\n click here\n !\n
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n
\n this.logIn(e)}>\n Log In\n \n
\n
\n Trouble logging in?\n {' '}\n this.resetPass(e)}>\n Click here\n \n .\n
\n
\n
\n
\n Reset Password\n
\n
\n To reset your password, enter your email address below.\n {'If this email is attached to an ethos account, we\\'ll send you instructions to your inbox.'}\n
\n
\n
\n
\n );\n }\n}\n\nexport default AccountLogin;\n","import React, { Component } from 'react';\nimport AccountLogin from '../components/account/login';\nimport SlimHero from '../components/hero/slimHero';\n\nclass Login extends Component {\n constructor(props) {\n super(props);\n this.state = {\n creatorData: {},\n };\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n \n \n
\n );\n }\n}\n\nexport default Login;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport PubSub from 'pubsub-js';\nimport Throbber from '../throbber';\nimport Account from '../../managers/Account';\nimport SimpleModal from '../modal/modal';\nimport LoginForm from './loginForm';\n\nconst emailPattern = /^[-a-z0-9~!$%^&*_=+}{'?]+(\\.[-a-z0-9~!$%^&*_=+}{'?]+)*@([a-z0-9_][-a-z0-9_]*(\\.[-a-z0-9_]+)*\\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}))(:[0-9]{1,5})?$/i;\nconst passwordRequirements = /(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}/;\n\nclass AccountRegister extends Component {\n constructor(props) {\n super(props);\n this.state = {\n registerFirstname: '',\n registerLastname: '',\n registerEmail: '',\n registerPassword: '',\n registerConfirmPassword: '',\n registerDisplayname: '',\n registerPhoneNumber: '',\n loginVerification: '',\n userId: '',\n isLoading: false,\n isSuccess: false,\n isMfa: false,\n agreeTerms: false,\n showModal: false,\n creatorId: process.env.CREATOR_ID,\n };\n }\n\n validateForm = () => {\n const { registerFirstname } = this.state;\n const { registerLastname } = this.state;\n const { registerEmail } = this.state;\n const { registerPassword } = this.state;\n const { registerConfirmPassword } = this.state;\n const { registerDisplayname } = this.state;\n const { registerPhoneNumber } = this.state;\n const { agreeTerms } = this.state;\n if (registerFirstname === ''\n || registerLastname === ''\n || registerEmail === ''\n || registerPassword === ''\n || registerConfirmPassword === ''\n || registerDisplayname === ''\n || registerPhoneNumber === '') {\n toast.error('Please fill out all fields.');\n return false;\n }\n if (!emailPattern.test(registerEmail)) {\n toast.error('Please enter a valid email address.');\n return false;\n }\n if (registerPassword !== registerConfirmPassword) {\n toast.error('Passwords don\\'t match.');\n return false;\n }\n if (!passwordRequirements.test(registerPassword)) {\n toast.error('Passwords must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters');\n return false;\n }\n if (!agreeTerms) {\n toast.error('You must agree to our terms of service.');\n return false;\n }\n return true;\n }\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n onEnterKey = (e) => {\n const { isMfa } = this.state;\n if (e.keyCode === 13) {\n if (isMfa) {\n this.mfaLogIn(e);\n } else {\n this.validateForm(e);\n }\n }\n }\n\n handleCheckboxChange = (e) => {\n let isChecked = false;\n if (e.target.checked) {\n isChecked = true;\n } else {\n isChecked = false;\n }\n this.setState({\n agreeTerms: isChecked,\n });\n }\n\n register = async (e) => {\n const {\n registerFirstname, registerLastname, registerEmail, registerPassword, registerDisplayname, registerPhoneNumber, creatorId,\n } = this.state;\n let payload = {};\n e.preventDefault();\n if (this.validateForm()) {\n this.setState({\n isLoading: true,\n });\n // package up the payload and send it to the server\n payload = {\n email: registerEmail,\n firstname: registerFirstname,\n lastname: registerLastname,\n username: registerDisplayname,\n password: registerPassword,\n telephone: registerPhoneNumber,\n site: window.location.protocol + '//' + window.location.host,\n creatorId,\n };\n const account = await Account.create(process.env.SERVER_URL + 'account/register', payload);\n \n if (account && account.userId) {\n this.setState({\n isLoading: false,\n isMfa: true,\n userId: account.userId,\n });\n\n const mfaField = document.getElementById('loginVerification');\n mfaField.focus();\n } else if (account && account.token) {\n this.setState({\n isLoading: false,\n });\n // go get user info\n const userInfo = await Account.get(account.token);\n if (userInfo) {\n // this.setState({\n // isLoading: false,\n // isSuccess: true,\n // });\n // set login cookie\n Account.setLoginState(account.token);\n // fire pubsub\n PubSub.publish('account_updated');\n window.location.href = '/#login=success';\n }\n } else {\n this.setState({\n isLoading: false,\n });\n toast.error(account.message || 'Oops! Something went wrong. Please try again later');\n }\n }\n }\n\n componentDidMount() {\n document.body.classList.add('-account-background');\n const defaultField = document.getElementById('registerFirstname');\n defaultField.focus();\n }\n\n componentWillUnmount() {\n document.body.classList.remove('-account-background');\n }\n\n loginSuccess = async () => {\n this.setState({\n showModal: false,\n isLoggedIn: true,\n });\n toast.success('Log in success.');\n PubSub.publish('account_updated');\n if (window.location.pathname.includes('register')) {\n window.location.pathname = '/';\n }\n }\n\n loginFailed = (error) => {\n toast.error(error || 'Oops! Something went wrong. Try again later.');\n }\n\n openLoginModal = (e) => {\n e.preventDefault();\n this.setState({\n showModal: true,\n });\n }\n\n mfaLogIn = async (e) => {\n const { userId, loginVerification } = this.state;\n e.preventDefault();\n this.setState({\n isLoading: true,\n });\n const payload = {\n userId,\n token: loginVerification,\n };\n const login = await Account.mfaLogin(payload);\n if (login && login.token) {\n await Account.get(login.token);\n Account.setLoginState(login.token);\n gtag('event', 'chapter2bikes_registration', { // eslint-disable-line\n event_category: 'account_registration_success',\n event_label: 'User registered for the chapter2bikes drop',\n });\n window.location.href = '/#register=success';\n } else {\n this.setState({\n isLoading: false,\n });\n toast.error(login.message || 'Oops! Something went wrong. Please try again later.');\n }\n }\n\n closeModal = () => {\n this.setState({\n showModal: false,\n });\n }\n\n render() {\n const {\n loginVerification, registerFirstname, registerLastname, registerEmail, registerPassword, registerConfirmPassword, registerDisplayname, registerPhoneNumber, isLoading, isMfa, showModal,\n } = this.state;\n return (\n
\n
\n this.setState({ showModal: false })}>\n this.loginSuccess()}\n onFail={(error) => this.loginFailed(error)}\n onRegisterButton={() => this.closeModal()} />\n \n
\n {isLoading\n && }\n
\n Register\n
\n {isMfa\n ? (\n
\n Thanks for signing up.\n
\n We have sent a verification code to your phone. Please enter this code below to access your account.\n
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n )\n : (\n
\n
\n Complete this form to create your ethos account.\n
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
A working mobile phone number is required for log in
\n
\n
\n this.handleCheckboxChange(e)} />\n \n
\n
\n
\n )}\n {isMfa\n ? (\n
\n this.mfaLogIn(e)}>Log In\n {/* Go back\n {' '}\n |\n {' '}\n View your account settings */}\n
\n )\n : (\n
\n this.register(e)}>\n Register\n \n
\n )}\n
\n
\n
\n );\n }\n}\n\nexport default AccountRegister;\n","import React, { Component } from 'react';\nimport AccountRegister from '../components/account/register';\nimport SlimHero from '../components/hero/slimHero';\n\nclass Register extends Component {\n constructor(props) {\n super(props);\n this.state = {\n creatorData: {},\n };\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n \n \n
\n );\n }\n}\n\nexport default Register;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\n// import PubSub from 'pubsub-js';\nimport Throbber from '../throbber';\nimport Account from '../../managers/Account';\n\nconst passwordRequirements = /(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}/;\n\nclass ResetPassword extends Component {\n constructor(props) {\n super(props);\n this.state = {\n registerPassword: '',\n registerConfirmPassword: '',\n isLoading: false,\n isSuccess: false,\n resetToken: '',\n bearerToken: '',\n };\n }\n\n validateForm = () => {\n const { registerPassword } = this.state;\n const { registerConfirmPassword } = this.state;\n if (registerPassword === ''\n || registerConfirmPassword === '') {\n toast.error('Please fill out all fields.');\n return false;\n }\n if (registerPassword !== registerConfirmPassword) {\n toast.error('Passwords don\\'t match.');\n return false;\n }\n if (!passwordRequirements.test(registerPassword)) {\n toast.error('Passwords must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters');\n return false;\n }\n return true;\n }\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n onEnterKey = (e) => {\n if (e.keyCode === 13) {\n this.validateForm();\n }\n }\n\n handleCheckboxChange = (e) => {\n let isChecked = false;\n if (e.target.checked) {\n isChecked = true;\n } else {\n isChecked = false;\n }\n this.setState({\n agreeTerms: isChecked,\n });\n }\n\n resetPassword = async (e) => {\n const {\n registerPassword, registerConfirmPassword, resetToken, bearerToken,\n } = this.state;\n let payload = {};\n e.preventDefault();\n if (this.validateForm()) {\n this.setState({\n isLoading: true,\n });\n\n payload = {\n password1: registerPassword,\n password2: registerConfirmPassword,\n };\n\n const changedPassword = await Account.recoverPassword(payload, resetToken, bearerToken);\n\n if (changedPassword && changedPassword.success) {\n this.setState({\n isLoading: false,\n isSuccess: true,\n });\n } else {\n this.setState({\n isLoading: false,\n });\n toast.error(changedPassword.message || 'Oops! Something went wrong. Please try again later');\n }\n }\n }\n\n verifyToken = async (token) => {\n this.setState({\n isLoading: true,\n });\n const resetToken = await Account.verifyResetToken(token);\n if (resetToken && resetToken.success) {\n this.setState({\n isLoading: false,\n resetToken: token,\n bearerToken: resetToken.token,\n });\n } else {\n this.setState({\n isLoading: false,\n });\n toast.error(resetToken.message || 'Oops! Something went wrong. Please try again later');\n }\n }\n\n componentDidMount() {\n document.body.classList.add('-account-background');\n const tokenParam = window.location.href.split('/');\n this.verifyToken(tokenParam[tokenParam.length - 1]);\n }\n\n componentWillUnmount() {\n document.body.classList.remove('-account-background');\n }\n\n render() {\n const { registerPassword } = this.state;\n const { registerConfirmPassword } = this.state;\n const { isLoading } = this.state;\n const { isSuccess } = this.state;\n return (\n
\n
\n
\n {isLoading\n && }\n
\n Reset your password\n
\n {isSuccess\n ? (\n
\n {'You\\'ve Successfully updated your password!'}\n
\n You can now return to the homepage and log in using your new password.\n
\n )\n : (\n
\n
\n Complete this form to reset your password.\n
\n
\n \n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
(Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters)
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n
\n )}\n {isSuccess\n ? (\n \n )\n : (\n
\n this.resetPassword(e)}>\n Reset Password\n \n
\n )}\n
\n
\n
\n );\n }\n}\n\nexport default ResetPassword;\n","import React, { Component } from 'react';\nimport ResetPassword from '../components/account/resetPassword';\nimport SlimHero from '../components/hero/slimHero';\n\nclass PasswordReset extends Component {\n constructor(props) {\n super(props);\n this.state = {\n creatorData: {},\n };\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n \n \n
\n );\n }\n}\n\nexport default PasswordReset;\n","import React, { Component } from 'react';\nimport { Outlet, Link } from 'react-router-dom';\nimport SlimHero from '../components/hero/slimHero';\nimport AccountManager from '../managers/Account';\n\nclass Account extends Component {\n constructor(props) {\n super(props);\n this.state = {\n creatorData: {},\n accountDetails: null,\n currentSection: '',\n };\n }\n\n async componentDidMount() {\n document.body.classList.add('-account-background');\n if (AccountManager.isLoggedIn()) {\n // get account info\n const accountData = await AccountManager.get(AccountManager.getToken());\n this.setState({\n accountDetails: accountData,\n });\n } else {\n window.location = '/';\n }\n this.setState({\n currentSection: window.location.pathname.split('/')[2] || 'details',\n });\n }\n\n componentWillUnmount() {\n document.body.classList.remove('-account-background');\n }\n\n changeTab = (section) => {\n this.setState({\n currentSection: section,\n });\n }\n\n render() {\n const { creatorData, accountDetails, currentSection } = this.state;\n return (\n
\n
\n \n
\n
\n
\n this.changeTab('collection')}>\n My Collection\n \n this.changeTab('details')}>\n Contact Information\n \n this.changeTab('password')}>\n Account Password\n \n this.changeTab('billing')}>\n Billing Details\n \n {/* this.changeTab('wallet')}>\n Wallet Settings\n */}\n {/* this.changeTab('verify')}>\n Verify Identity\n */}\n
\n
\n {accountDetails\n ? (\n
\n
\n

\n {'Hello '}\n {accountDetails.firstName}\n

\n

\n Here you can view and make changes to your ethos account.\n

\n
\n \n
\n )\n :
Loading account data...
}\n
\n
\n
\n );\n }\n}\n\nexport default Account;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport PubSub from 'pubsub-js';\nimport AccountManager from '../../managers/Account';\nimport Throbber from '../throbber';\n\nconst emailPattern = /^[-a-z0-9~!$%^&*_=+}{'?]+(\\.[-a-z0-9~!$%^&*_=+}{'?]+)*@([a-z0-9_][-a-z0-9_]*(\\.[-a-z0-9_]+)*\\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}))(:[0-9]{1,5})?$/i;\n\nclass AccountDetails extends Component {\n constructor(props) {\n super(props);\n this.state = {\n accountDetails: null,\n isLoading: false,\n updateFirstname: '',\n updateLastname: '',\n updateEmail: '',\n updateUsername: '',\n updateTelephone: '',\n };\n }\n\n async componentDidMount() {\n // get the account details from the AccountManager\n // we can assume that the user is already logged in here\n const accountData = await AccountManager.get(AccountManager.getToken());\n\n this.setState({\n accountDetails: accountData,\n updateFirstname: accountData.firstName,\n updateLastname: accountData.lastName,\n updateEmail: accountData.email,\n updateUsername: accountData.username,\n updateTelephone: accountData.telephone,\n });\n }\n\n onEnterKey = (e) => {\n if (e.keyCode === 13) {\n this.validateForm();\n }\n }\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n validateForm = () => {\n const { updateFirstname } = this.state;\n const { updateLastname } = this.state;\n const { updateEmail } = this.state;\n const { updateUsername } = this.state;\n const { updateTelephone } = this.state;\n if (updateEmail === ''\n || updateFirstname === ''\n || updateLastname === ''\n || updateUsername === ''\n || updateTelephone === '') {\n toast.error('Please fill out all fields.');\n return false;\n }\n if (!emailPattern.test(updateEmail)) {\n toast.error('Please enter a valid email address.');\n return false;\n }\n return true;\n }\n\n updateDetails = async (e) => {\n const { updateFirstname } = this.state;\n const { updateLastname } = this.state;\n const { updateEmail } = this.state;\n const { updateUsername } = this.state;\n const { updateTelephone } = this.state;\n e.preventDefault();\n let payload = {};\n payload = {\n email: updateEmail,\n firstname: updateFirstname,\n lastname: updateLastname,\n username: updateUsername,\n telephone: updateTelephone,\n };\n if (this.validateForm()) {\n this.setState({\n isLoading: true,\n });\n const accountChanges = await AccountManager.update(payload, AccountManager.getToken());\n if (accountChanges) {\n this.setState({\n accountDetails: payload,\n isLoading: false,\n });\n PubSub.publish('account_updated');\n toast.success('Account saved!');\n }\n }\n }\n\n render() {\n const { accountDetails } = this.state;\n const { updateFirstname } = this.state;\n const { updateLastname } = this.state;\n const { updateEmail } = this.state;\n const { updateTelephone } = this.state;\n const { updateUsername } = this.state;\n const { isLoading } = this.state;\n return (\n
\n {accountDetails\n && (\n
\n
\n {isLoading\n && }\n

\n Contact Details\n

\n
\n View and update your contact details here\n
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n this.updateDetails(e)}>\n Update Details\n \n
\n
\n
\n
\n )}\n
\n );\n }\n}\n\nexport default AccountDetails;\n","import React, { Component } from 'react';\nimport PubSub from 'pubsub-js';\nimport BillingForm from './billingForm';\nimport AccountManager from '../../managers/Account';\n\nclass AccountBilling extends Component {\n constructor(props) {\n super(props);\n this.state = {\n accountData: null,\n modalMode: '',\n };\n }\n\n getAccountDetails = async () => {\n const accountData = await AccountManager.get(AccountManager.getToken());\n if (accountData) {\n this.setState({\n accountData,\n });\n }\n }\n\n async componentDidMount() {\n // get billingInfo if it exists\n const accountData = await AccountManager.get(AccountManager.getToken());\n if (accountData) {\n this.setState({\n accountData,\n });\n }\n // console.log(accountData);\n // if (accountData && accountData.billingInfo) {\n // console.log(accountData.billingInfo);\n // this.setState({\n // billingAddress: accountData.billingInfo.address || '',\n // billingCity: accountData.billingInfo.city || '',\n // billingCode: accountData.billingInfo.zip || '',\n // country: accountData.billingInfo.country || '',\n // region: accountData.billingInfo.state || '',\n // isLoading: false,\n // hasBillingInfo: true,\n // hasPaymentMethod: !!accountData.billingInfo.hasPaymentMethod,\n // });\n // } else {\n // this.setState({\n // isLoading: false,\n // hasBillingInfo: false,\n // });\n // }\n }\n\n onBillingSuccess = async () => {\n await AccountManager.get(AccountManager.getToken(), true);\n PubSub.publish('account_updated');\n }\n\n onCardSuccess = () => {\n this.setState({\n modalMode: 'purchase',\n });\n }\n\n render() {\n const {\n accountData, modalMode,\n } = this.state;\n return (\n
\n {accountData\n && (\n
\n this.onBillingSuccess()}\n onCardSuccess={() => this.onCardSuccess()}\n accountInfo={accountData}\n mode={modalMode} />\n
\n )}\n
\n );\n }\n}\n\nexport default AccountBilling;\n","import React, { Component } from 'react';\nimport { toast } from 'react-toastify';\nimport Throbber from '../throbber';\nimport AccountManager from '../../managers/Account';\n\nconst passwordRequirements = /(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}/;\n\nclass AccountPassword extends Component {\n constructor(props) {\n super(props);\n this.state = {\n passwordCurrent: '',\n passwordNew: '',\n passwordConfirm: '',\n isLoading: false,\n };\n }\n\n componentDidMount() {}\n\n onEnterKey = (e) => {\n if (e.keyCode === 13) {\n // this.validateForm();\n }\n }\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n }\n\n changePassword = async (e) => {\n const { passwordCurrent, passwordNew } = this.state;\n e.preventDefault();\n if (this.validateForm()) {\n const payload = {\n currentPassword: passwordCurrent,\n newPassword: passwordNew,\n };\n this.setState({\n isLoading: true,\n });\n const newPassword = await AccountManager.changePassword(payload, AccountManager.getToken());\n this.setState({\n isLoading: false,\n });\n if (newPassword && !newPassword.error) {\n this.setState({\n passwordCurrent: '',\n passwordNew: '',\n passwordConfirm: '',\n });\n toast.success('Password changed! Please use your new password the next time you log in!');\n } else {\n toast.error(newPassword && newPassword.message ? newPassword.message : 'Oops! Something went wrong. Please try again later.');\n }\n }\n }\n\n validateForm = () => {\n const { passwordCurrent, passwordNew, passwordConfirm } = this.state;\n if (passwordCurrent === ''\n || passwordNew === ''\n || passwordConfirm === '') {\n toast.error('Please fill out all fields.');\n return false;\n }\n if (passwordNew !== passwordConfirm) {\n toast.error('Passwords don\\'t match.');\n return false;\n }\n if (!passwordRequirements.test(passwordNew)) {\n toast.error('Passwords must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters');\n return false;\n }\n return true;\n }\n\n render() {\n const {\n isLoading, passwordCurrent, passwordNew, passwordConfirm,\n } = this.state;\n return (\n
\n
\n {isLoading\n && }\n \n

\n Account Password\n

\n
\n Change your password here\n
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
(Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters)
\n
\n
\n \n this.handleInputChange(e)}\n onKeyUp={(e) => this.onEnterKey(e)} />\n
\n
\n this.changePassword(e)}>\n Change Password\n \n
\n
\n
\n
\n );\n }\n}\n\nexport default AccountPassword;\n","import '../../config/flow';\nimport React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport * as fcl from '@onflow/fcl';\n\nexport default function FlowWallet(props) {\n const [user, setUser] = useState({ loggedIn: null });\n\n useEffect(() => fcl.currentUser.subscribe(setUser), []);\n\n const Login = (e) => {\n const { onLogInAttempt } = props;\n e.preventDefault();\n fcl.logIn();\n onLogInAttempt();\n };\n\n const GetUser = () => {\n const { onWalletConnection } = props;\n onWalletConnection(user);\n };\n\n const AuthedState = () => {\n GetUser();\n return (\n
\n
\n Address:\n {user?.addr ?? 'No Address'}\n
\n \n
\n );\n };\n\n const UnauthenticatedState = () => (\n
\n Login(e)}>Connect your flow wallet\n {/* */}\n
\n );\n\n return (\n
\n {user.loggedIn\n ? \n : }\n
\n );\n}\n\nFlowWallet.propTypes = {\n onWalletConnection: PropTypes.func,\n onLogInAttempt: PropTypes.func,\n};\n","import { config } from '@onflow/fcl';\n\nconfig({\n 'accessNode.api': 'https://rest-testnet.onflow.org', // Mainnet: \"https://rest-mainnet.onflow.org\"\n 'discovery.wallet': 'https://fcl-discovery.onflow.org/testnet/authn', // Mainnet: \"https://fcl-discovery.onflow.org/authn\"\n});\n","import React, { Component } from 'react';\nimport FlowWallet from './flowWallet';\n\nclass AccountWallet extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isLoggingIn: false,\n };\n }\n\n updateWallet = (user) => {\n const { isLoggingIn } = this.state;\n const payload = {\n blockchain: 'flow',\n walletType: 'blocto',\n walletAddress: null,\n };\n if (isLoggingIn) {\n payload.walletAddress = user.addr;\n console.log('User just connected a wallet');\n console.log(payload);\n // TODO: Save the wallet address to our database\n }\n }\n\n onLogInAttempt = () => {\n console.log('User is attempting to connect a wallet');\n this.setState({\n isLoggingIn: true,\n });\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n
\n

\n Wallet Settings\n

\n
\n Change or update your wallet settings here\n
\n
\n this.updateWallet(user)}\n onLogInAttempt={() => this.onLogInAttempt()} />\n
\n
\n
\n );\n }\n}\n\nexport default AccountWallet;\n","import React, { Component } from 'react';\nimport moment from 'moment-mini';\nimport AccountManager from '../../managers/Account';\nimport Throbber from '../throbber';\n\nclass AccountCollection extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isLoading: true,\n collection: [],\n };\n }\n\n formatThumbnail = (number, imageUrl) => {\n if (process.env.CREATOR_SUBDOMAIN === 'lovejules') {\n const imagePath = 'https://ipfs.ethosnft.com/lovejules/2010-nfth-50-';\n let constructedPath = '';\n if (number < 10) {\n constructedPath = imagePath + '0' + number + '.png';\n } else {\n constructedPath = imagePath + number + '.png';\n }\n return constructedPath;\n }\n return imageUrl;\n }\n\n formatSerialNumber = (number) => {\n if (process.env.CREATOR_SUBDOMAIN === 'lovejules') {\n const serialPrefix = '2010.NFTH.50.';\n let serialNumber = '';\n if (number < 10) {\n serialNumber = serialPrefix + '0' + number;\n } else {\n serialNumber = serialPrefix + number;\n }\n return serialNumber;\n }\n return number;\n }\n\n async componentDidMount() {\n const accountCollection = await AccountManager.getCollection(AccountManager.getToken());\n if (accountCollection) {\n this.setState({\n collection: accountCollection,\n });\n }\n this.setState({\n isLoading: false,\n });\n }\n\n render() {\n const { isLoading, collection } = this.state;\n return (\n
\n
\n {isLoading\n && }\n

\n Account Collection\n

\n
\n View your ethos purchases here\n
\n
\n {collection.map((item) => (\n
\n {item.asset.mediaMP4\n ? (\n //
\n // \"NFT\n //
\n \n )\n : (\n
\n \"NFT\n
\n )}\n\n
\n \n
\n \n
\n
\n Blockchain: \n Flow\n
\n \n
\n Serial Number: \n {this.formatSerialNumber(item.number)}\n
\n
\n Date purchased: \n \n {moment(item.datePurchased).format('MMMM, DD YYYY')}\n \n
\n
\n Amount paid: \n \n $\n {item.txn.totalAmount}\n \n
\n
\n
\n ))}\n\n {collection.length === 0\n &&
{'You haven\\'t purchased any NFTs yet.'}
}\n
\n \n \n );\n }\n}\n\nexport default AccountCollection;\n","import React, { Component } from 'react';\n\nclass AccountVerify extends Component {\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n componentDidMount() {}\n\n render() {\n return (\n
\n Account Verification\n
\n );\n }\n}\n\nexport default AccountVerify;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport {\n BrowserRouter,\n Routes,\n Route,\n} from 'react-router-dom';\nimport * as Sentry from '@sentry/react';\nimport { BrowserTracing } from '@sentry/tracing';\nimport Container from './container.jsx';\nimport Home from './routes/home.jsx';\nimport CountdownPage from './routes/countdown.jsx';\nimport DropPage from './routes/drop.jsx';\nimport Login from './routes/login.jsx';\nimport Register from './routes/register.jsx';\nimport PasswordReset from './routes/reset.jsx';\nimport Account from './routes/account.jsx';\nimport AccountDetails from './components/account/details.jsx';\nimport AccountBilling from './components/account/billing.jsx';\nimport AccountPassword from './components/account/password.jsx';\nimport AccountWallet from './components/account/wallet.jsx';\nimport AccountCollection from './components/account/collection.jsx';\nimport AccountVerify from './components/account/verify.jsx';\nimport './sass/styles.scss';\n\n// (async () => {\n// if (process.env.CREATOR_SUBDOMAIN) {\n// await import('./sass/components/' + process.env.CREATOR_SUBDOMAIN + '.scss');\n// }\n// })();\n\nSentry.init({\n dsn: 'https://478b199ebcd7460ea20a47393f72fedc@o1273042.ingest.sentry.io/6467146',\n integrations: [new BrowserTracing()],\n environment: process.env.NODE_ENV,\n // Set tracesSampleRate to 1.0 to capture 100%\n // of transactions for performance monitoring.\n // We recommend adjusting this value in production\n tracesSampleRate: 1.0,\n});\n\nReactDOM.render(\n \n \n\n }>\n } />\n }>\n } />\n \n } />\n } />\n }>\n } />\n \n }>\n } />\n } />\n } />\n } />\n } />\n } />\n \n \n } />\n\n \n ,\n document.getElementById('app'),\n);\n"],"sourceRoot":""}