@r3l/app
Version:
2 lines • 5.05 kB
JavaScript
(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[36],{"./public/img/desktop.png":function(e,t,n){e.exports=n.p+"public/img/desktop.png"},"./public/img/icons/twitter_white.png":function(e,t,n){e.exports=n.p+"public/img/twitter_white.png"},"./public/img/metamask.png":function(e,t,n){e.exports=n.p+"public/img/metamask.png"},"./src/modules/auth/socialButtons.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("../../node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(r),o=n("../../node_modules/react/index.js"),i=n.n(o),a=n("../../node_modules/prop-types/index.js"),c=n.n(a),l=n("./src/modules/styled/index.ts");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=n("./public/img/metamask.png"),d=i.a.createElement(l.v,{resizeMode:"contain",source:m,sx:{width:4,height:4,mr:12.0015}}),f=n("./public/img/desktop.png");l.v;function b(e){var t=e.text,n=e.onPress,r=e.sx;return i.a.createElement(l.i,{sx:p({bg:"#161616"},r),image:d,text:t,onPress:n})}b.propTypes={onPress:c.a.func,text:c.a.string,sx:c.a.object},c.a.func,c.a.string,c.a.object},"./src/modules/auth/web/signupSocial.js":function(e,t,n){"use strict";n.r(t);var r=n("../../node_modules/@babel/runtime/helpers/classCallCheck.js"),s=n.n(r),o=n("../../node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(o),a=n("../../node_modules/@babel/runtime/helpers/inherits.js"),c=n.n(a),l=n("../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),u=n.n(l),p=n("../../node_modules/@babel/runtime/helpers/getPrototypeOf.js"),m=n.n(p),d=n("../../node_modules/@babel/runtime/helpers/defineProperty.js"),f=n.n(d),b=n("../../node_modules/react/index.js"),h=n.n(b),g=n("../../node_modules/prop-types/index.js"),x=n.n(g),j=n("../../node_modules/react-router/esm/react-router.js"),w=n("../../node_modules/query-string/index.js"),y=n.n(w),_=n("../../node_modules/redux/es/redux.js"),v=n("../../node_modules/react-redux/es/index.js"),O=n("./src/modules/navigation/navigation.actions.js"),E=n("./src/modules/auth/socialButtons.js"),P=n("./src/modules/styled/index.ts"),D=n("./src/modules/styled/web.tsx");function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var s=m()(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return u()(this,n)}}var C=n("./public/img/icons/twitter_white.png"),S=h.a.createElement(P.v,{resizeMode:"contain",source:C,sx:{width:4,height:4,mr:12.0015}}),B=function(e){c()(n,e);var t=k(n);function n(){return s()(this,n),t.apply(this,arguments)}return i()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.location,r=t.auth,s=y.a.parse(n.search).redirect;s||(s=n.pathname);var o=r.invitecode;return h.a.createElement(P.K,{sx:{alignItems:"stretch"}},h.a.createElement(P.C,null,"Sign up for Relevant."),h.a.createElement(P.K,{sx:{flexDirection:["column","row"],alignItems:["stretch","center"],justifyContent:"flex-start",mt:[7,4]}},h.a.createElement(D.b,{href:"/auth/twitter?invitecode=".concat(o,"&redirect=").concat(s),external:!0,rel:"nofollow",sx:{p:0,bg:"twitterBlue"}},h.a.createElement(P.i,{sx:{bg:"twitterBlue"},image:S,text:"Sign up with Twitter"})),h.a.createElement(P.f,{sx:{mr:[0,2],mt:[2,0]}}),h.a.createElement(E.a,{onPress:function(t){t.preventDefault(),e.props.actions.showModal("signupWeb3")},text:"Sign up with Metamask"}),h.a.createElement(P.f,{sx:{mr:[0,2],mt:[3,0]}}),h.a.createElement(P.K,{sx:{flex:1,alignItems:["center","flex-start"]}},h.a.createElement(P.w,{to:"#",onClick:function(t){t.preventDefault(),e.props.actions.showModal("signupEmail")}},h.a.createElement(P.y,{sx:{color:"blue"}},"Sign up with Email")))),h.a.createElement(P.K,{sx:{flex:1,alignItems:["center","flex-start"]}},h.a.createElement(P.y,{sx:{mt:4}},"Already registered?"," ",h.a.createElement(P.y,{sx:{color:"blue"},onClick:function(){return e.props.actions.showModal("login")}},"Sign In"))))}}]),n}(b.Component);f()(B,"propTypes",{location:x.a.object,actions:x.a.object,auth:x.a.object});t.default=Object(j.h)(Object(v.b)((function(e){return{user:e.auth.user,auth:e.auth,initialValues:{},enableReinitialize:!0}}),(function(e){return{actions:Object(_.b)({showModal:O.showModal},e)}}))(B))}}]);
//# sourceMappingURL=auth-web-signupSocial.bundle.3edb575d2cd3db42a1f8.js.map