1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126],{96245:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,s=0,a="";o=t.charAt(s++);~o&&(n=i%4?64*n+o:o,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function s(e){this.message=e}s.prototype=new Error,s.prototype.name="InvalidTokenError",t.Z=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},72323:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup-new",function(){return n(28615)}])},28615:function(e,t,n){"use strict";n.r(t),n.d(t,{BASE_PATH:function(){return x}});var r=n(26042),o=n(85893),i=n(67294),s=n(9008),a=n.n(s),c=n(50828),l=n(49089),u=n(86426),d=n(96245),f=n(18228),p=n.n(f),g=n(82529),m=n(66010),h=n(11163),b=n.n(h),y=n(89583),v=n(81872),x="dashboard",w=(0,c.Pi)((function(){var e=function(e){b().push(e?"/welcome":s)},t=function(e){var t=(0,u.Nq)({onSuccess:function(t){return e(t)}});return(0,o.jsxs)("button",{onClick:function(){return t()},className:"flex w-full items-center justify-center gap-3 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:ring-transparent",children:[(0,o.jsx)(v.JM8,{className:"h-5 w-5"}),(0,o.jsx)("span",{className:"text-sm font-semibold leading-6",children:"Google"})]})}
1,n=(0,i.useState)("/"+x),s=n[0],c=n[1],f=(0,i.useState)(!1),w=(f[0],f[1]),k=(0,i.useState)(""),j=k[0],_=k[1],S=(0,i.useState)(""),N=S[0],O=S[1],C=(0,i.useState)(""),E=C[0],P=C[1],I=(0,g.Z)(),T=I.authStore,L=I.userStore,R=I.commonStore,F=(0,h.useRouter)();(0,i.useEffect)((function(){R.isLoggedIn&&b().push("/"+x);var e=F.query,t=decodeURIComponent(e.to);return t&&"undefined"!==t&&c(t),"t"===e.na&&w(!0),e.e&&_(e.e),function(){T.reset()}}),[]),(0,i.useEffect)((function(){T.errors&&m.ZP.error(T.errors.text||T.errors)}),[T.errors]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a(),{children:[(0,o.jsx)("title",{children:"TeliportMe | Signup"}),(0,o.jsx)("meta",{content:"Join TeliportMe and explore stunning 360\xb0 photos and virtual tours. Sign up now and start capturing and sharing immersive experiences.",name:"description"}),(0,o.jsx)("meta",{content:"TeliportMe | Signup",property:"og:title"}),(0,o.jsx)("meta",{content:"Join TeliportMe and explore stunning 360\xb0 photos and virtual tours. Sign up now and start capturing and sharing immersive experiences.",property:"og:description"}),(0,o.jsx)("meta",{content:"TeliportMe | Signup",property:"twitter:title"}),(0,o.jsx)("link",{rel:"canonical",href:"https://teliportme.com/signup"}),(0,o.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,o.jsxs)("div",{className:"flex min-h-screen flex-1",children:[(0,o.jsx)("div",{className:"flex flex-1 flex-col justify-center px-4 py-12 sm:px-6 lg:flex-none lg:px-20 xl:px-24",children:(0,o.jsxs)("div",{className:"mx-auto w-full max-w-sm lg:w-96",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("img",{className:"h-10 w-auto",src:"/image/teliportme-logo.svg",alt:"TeliportME"}),(0,o.jsx)("h2",{className:"mt-8 text-2xl font-bold leading-9 tracking-tight text-gray-900",children:"Create your account"})]}),(0,o.jsxs)("div",{className:"mt-10",children:[(0,o.jsx)("div",{children:(0,o.jsxs)("form",{onSubmit:function(t){t.preventDefault(),N===E?T.register(j,N).then((function(t){return e(null===t||void 0===t?void 0:t.auto_username)})).finally((function(){l.default.event({category:"account",action:"register",label:"email-register"})})):T.setError("Passwords you entered do not match. Please enter them again.")},className:"space-y-6",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium leading-6 text-gray-900",children:"Email address"}),(0,o.jsx)("div",{className:"mt-2",children:(0,o.jsx)("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,value:j,onChange:function(e){return _(e.target.value)},className:"block w-full rounded-md border-0 px-3 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium leading-6 text-gray-900",children:"Password"}),(0,o.jsx)("div",{className:"mt-2",children:(0,o.jsx)("input",{id:"password",name:"password",type:"password",required:!0,className:"block w-full rounded-md border-0 px-3 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:N,onChange:function(e){return O(e.target.value)}})})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{htmlFor:"repeat-password",className:"block text-sm font-medium leading-6 text-gray-900",children:"Repeat Password"}),(0,o.jsx)("div",{className:"mt-2",children:(0,o.jsx)("input",{id:"repeat-password",name:"password",type:"password",required:!0,className:"block w-full rounded-md border-0 px-3 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:E,onChange:function(e){return P(e.target.value)}})})]}),(0,o.jsx)("div",{children:(0,o.jsxs)("button",{type:"submit",disabled:T.inProgress,className:"flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:[T.inProgress&&(0,o.jsxs)("svg",{className:"-ml-1 mr-3 h-5 w-5 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,o.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,o.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Sign up"]})})]})}),(0,o.jsxs)("div",{className:"mt-10",children:[(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,o.jsx)("div",{className:"w-full border-t border-gray-200"})}),(0,o.jsx)("div",{className:"relative flex justify-center text-sm font-medium leading-6",children:(0,o.jsx)("span",{className:"bg-white px-6 text-gray-900",children:"Or continue with"})})]}),(0,o.jsxs)("div",{className:"mt-6 grid grid-cols-2 gap-4",children:[(0,o.jsx)(u.rg,{clientId:"524898504372-85kvk9rkjh94l3cgtltp8i3quldlfv2c.apps.googleusercontent.com",children:(0,o.jsx)(t,{onSuccess:function(t){var n=(0,d.Z)(t.credential);T.googleLogin(n.email).then((function(t){return e(null===t||void 0===t?void 0:t.auto_username)})).finally((function(){l.default.event((0,r.Z)({category:"account",action:"register",label:"google-login"},L.CustomGAItems))}))}})}),(0,o.jsx)(p(),{appId:"157522767638247",isMobile:!1,scope:"email",callback:function(t){T.facebookLogin(t.accessToken).then((function(t){return e(null===t||void 0===t?void 0:t.auto_username)})).finally((function(){l.default.event((0,r.Z)({category:"account",action:"register",label:"facebook-login"},L.CustomGAItems))}))}.bind(undefined),redirectUri:"/login",render:function(e){return(0,o.jsxs)("button",{onClick:e.onClick,className:"flex w-full items-center justify-center gap-3 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:ring-transparent",children:[(0,o.jsx)(y.Am9,{className:"h-5 w-5",fill:"#0866FF"}),(0,o.jsx)("span",{className:"text-sm font-semibold leading-6",children:"Facebook"})]})}})]})]})]})]})}),(0,o.jsx)("div",{className:"relative hidden w-0 flex-1 lg:block",children:(0,o.jsx)("img",{className:"absolute inset-0 h-full w-full object-cover",src:"https://images.unsplash.com/photo-1496917756835-20cb06e75b4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1908&q=80",alt:""})})]}),(0,o.jsx)(m.x7,{})]})}));t.default=w},82529:function(e,t,n){"use strict";var r=n(67294),o=n(50828);t.Z=function(){return r.useContext(o.yX)}},11163:function(e,t,n){e.exports=n(90387)},18228:function(e,t,n){var r;e.exports=(r=n(67294),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(4)},function(e,t,n){e.exports=n(6)()},function(e,t){e.exports=r},function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return decodeURIComponent(e.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=r(n(2)),u=r(n(1)),d=r(n(5)),f=r(n(3)),p=function(){var e=!1;try{e=!!(window.navigator&&window.navigator.standalone||navigator.userAgent.match("CriOS")||navigator.userAgent.match(/mobile/i))}catch(t){}return e},g=function(e){function t(){var e,n,r;o(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.state={isSdkLoaded:!1,isProcessing:!1},r.responseApi=function(e){window.FB.api("/me",{locale:r.props.language,fields:r.props.fields},(function(t){a(t,e),r.props.callback(t)}))},r.checkLoginState=function(e){r.setStateIfMounted({isProcessing:!1}),e.authResponse?r.responseApi(e.authResponse):r.props.onFailure?r.props.onFailure({status:e.status}):r.props.callback({status:e.status})},r.checkLoginAfterRefresh=function(e){"connected"===e.status?r.checkLoginState(e):window.FB.login((function(e){return r.checkLoginState(e)}),!0)},r.click=function(e){if(r.state.isSdkLoaded&&!r.state.isProcessing&&!r.props.isDisabled){r.setState({isProcessing:!0});var t=r.props,n=t.scope,o=t.appId,i=t.onClick,s=t.returnScopes,a=t.responseType,c=t.redirectUri,l=t.disableMobileRedirect,u=t.authType,f=t.state;if("function"!=typeof i||(i(e),!e.defaultPrevented)){var p={client_id:o,redirect_uri:c,state:f,return_scopes:s,scope:n,response_type:a,auth_type:u};if(r.props.isMobile&&!l)window.location.href="https://www.facebook.com/dialog/oauth"+(0,d.default)(p);else{if(!window.FB)return void(r.props.onFailure&&r.props.onFailure({status:"facebookNotLoaded"}));window.FB.login(r.checkLoginState,{scope:n,return_scopes:s,auth_type:p.auth_type})}}}},i(r,n)}
1return s(t,e),c(t,[{key:"componentDidMount",value:function(){if(this._isMounted=!0,document.getElementById("facebook-jssdk"))this.sdkLoaded();else{this.setFbAsyncInit(),this.loadSdkAsynchronously();var e=document.getElementById("fb-root");e||((e=document.createElement("div")).id="fb-root",document.body.appendChild(e))}}},{key:"componentWillReceiveProps",value:function(e){this.state.isSdkLoaded&&e.autoLoad&&!this.props.autoLoad&&window.FB.getLoginStatus(this.checkLoginAfterRefresh)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"setStateIfMounted",value:function(e){this._isMounted&&this.setState(e)}},{key:"setFbAsyncInit",value:function(){var e=this,t=this.props,n=t.appId,r=t.xfbml,o=t.cookie,i=t.version,s=t.autoLoad;window.fbAsyncInit=function(){window.FB.init({version:"v"+i,appId:n,xfbml:r,cookie:o}),e.setStateIfMounted({isSdkLoaded:!0}),(s||e.isRedirectedFromFb())&&window.FB.getLoginStatus(e.checkLoginAfterRefresh)}}},{key:"isRedirectedFromFb",value:function(){var e=window.location.search;return(0,f.default)(e,"code")||(0,f.default)(e,"granted_scopes")}},{key:"sdkLoaded",value:function(){this.setState({isSdkLoaded:!0})}},{key:"loadSdkAsynchronously",value:function(){var e=this.props.language;!function(t,n,r){var o=t.getElementsByTagName(n)[0],i=o,s=o;t.getElementById(r)||((s=t.createElement(n)).id=r,s.src="https://connect.facebook.net/"+e+"/sdk.js",i.parentNode.insertBefore(s,i))}(document,"script","facebook-jssdk")}},{key:"render",value:function(){var e=this.props.render;if(!e)throw new Error("ReactFacebookLogin requires a render prop to render");var t={onClick:this.click,isDisabled:!!this.props.isDisabled,isProcessing:this.state.isProcessing,isSdkLoaded:this.state.isSdkLoaded};return this.props.render(t)}}]),t}(l.default.Component);g.propTypes={isDisabled:u.default.bool,callback:u.default.func.isRequired,appId:u.default.string.isRequired,xfbml:u.default.bool,cookie:u.default.bool,authType:u.default.string,scope:u.default.string,state:u.default.string,responseType:u.default.string,returnScopes:u.default.bool,redirectUri:u.default.string,autoLoad:u.default.bool,disableMobileRedirect:u.default.bool,isMobile:u.default.bool,fields:u.default.string,version:u.default.string,language:u.default.string,onClick:u.default.func,onFailure:u.default.func,render:u.default.func.isRequired},g.defaultProps={redirectUri:"undefined"!=typeof window?window.location.href:"/",scope:"public_profile,email",returnScopes:!1,xfbml:!1,cookie:!1,authType:"",fields:"name",version:"2.3",language:"en_US",disableMobileRedirect:!1,isMobile:p(),onFailure:null,state:"facebookdirect",responseType:"code"},t.default=g},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"?"+Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";function r(){}var o=n(7);e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n}]))},88357:function(e,t,n){"use strict";n.d(t,{w_:function(){return l}});var r=n(67294),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function c(e){return e&&e.map((function(e,t){return r.createElement(e.tag,s({key:t},e.attr),c(e.child))}))}function l(e){return function(t){return r.createElement(u,s({attr:s({},e.attr)},t),c(e.child))}}function u(e){var t=function(t){var n,o=e.attr,i=e.size,c=e.title,l=a(e,["attr","size","title"]),u=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",s({stroke:"currentColor",fill:"
1currentColor",strokeWidth:"0"},t.attr,o,l,{className:n,style:s(s({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),c&&r.createElement("title",null,c),e.children)};return void 0!==i?r.createElement(i.Consumer,null,(function(e){return t(e)})):t(o)}}},function(e){e.O(0,[5445,994,206,9774,2888,179],(function(){return t=72323,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.