1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{75511:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return r(70072)}])},4760:function(e,t){"use strict";t.Z={src:"/_next/static/media/google-small-icon.dd910591.png",height:512,width:500,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA8UlEQVR42mMAgdd+xsqvnEz3vXI2+f/K2RSEr79yNnNjAIEnDHaqr6xMP7x2MfkPVDTvpYvt9Fcu1l9fuDqlMIDA1/lyB98mGv5/wWhpxIAN/NrH9P/3Lt61DEBwuGcpj3fzxy22rV/Ou7Z8PujU8nkrw/89DP+/7RZZzwAEcxeu4HZs/bTNufXzUafWz58dW778Zzi31Whf7irf/wxLwy1gpoYy/Gd1avrxzrH181UGhnlJiuLLQ96YrQj6b7w8bLnxCs/Zpksqftr13/jvXPffjgEEAlcGyBstD95mAlRksjz0v/FKp0sGaxlsGBgYGADi/mpSNEy88gAAAABJRU5ErkJggg=="}},58604:function(e,t){"use strict";t.Z={src:"/_next/static/media/microsoft-small-icon.dda1606c.png",height:2016,width:2016,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAjUlEQVR42lXMsQnCQABG4fcnpyCIG6QTEnewdALBLdzBAZwrE1idlWQEbSyS++WIGPO1D55ex+3FYg9Yg+L1/KC0akCINlhFjgdGlSBr+ApgM7GZcSjSMwIVYJlb4qcAYlif7kyE0wa8AkpQT1iS6oVpBuBNQWbYMepCaVT+b+cUeqkVZgBjIpnUAQLaD60gLSgNJFHsAAAAAElFTkSuQmCC"}},43699:function(e,t,r){"use strict";var a=r(85893),s=r(85402),n=r(26713),i=r(71577),o=r(32808),l=r(67294),c=r(49552),d=r.n(c),u=r(11640),m=r(77349);t.Z=function(){var e=(0,l.useState)(!0),t=e[0],r=e[1],c=(0,l.useState)(!1),h=c[0],p=c[1],g=(0,l.useState)(!1),f=g[0],v=g[1],x=(0,l.useState)(!1),w=x[0],A=x[1];if(!d().get("calrik-cookies-consent"))return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(s.Z,{title:"Manage Cookies",visible:t,mask:!1,maskClosable:!1,footer:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(n.Z,{children:[(0,a.jsx)(i.Z,{type:"primary",onClick:function(){var e=h?"required":"all";h&&w&&(e="all"),d().set("calrik-cookies-consent",e,{expires:(0,u.Z)(new Date,1)}),r(!1)},disabled:!f&&h,children:"Accept"}),(0,a.jsx)(i.Z,{onClick:function(){p(!h)},children:h?"Back":"Customize"})]})}),onCancel:function(){d().set("calrik-cookies-consent","not-set",{expires:(0,m.Z)(new Date,1)}),r(!1)},wrapClassName:"cookie-consent-wrapper",className:"cookie-consent-modal",children:[!h&&(0,a.jsxs)("div",{children:["We use cookies that are necessary to run our website and enhance site navigation. In certain countries, by continuing to use this website and navigating to a different page, you agree that you have read and consented to the use of cookies. ",(0,a.jsx)("a",{href:"https://www.calrik.com/privacy.html#what_cookies_do_we_use",style:{textDecoration:"underline"},children:"Click here"})," to read about how we may use your personal data."]}),h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{style:{marginBottom:36},children:["Manage how Calrik use cookies, in accordance with our ",(0,a.jsx)("a",{href:"https://www.calrik.com/privacy.html#what_cookies_do_we_use",style:{textDecoration:"underline"},children:"Cookie policy"}),", by making your choices below. Please note that if you disable cookies and similar technologies entirely, our website may not function properly."]}),(0,a.jsx)(o.Z,{checked:f,onChange:function(e){return v(e.target.checked)},children:"These cookies must be enabled, we are not able to operate without them. They are related to the core functionality of the website and related services."}),(0,a.jsx)(o.Z,{checked:w,onChange:function(e){return A(e.target.checked)},style:{marginLeft:0},children:"These cookies increase the functionality of our website. We may use these to provide a personalized experience by remembering your settings preferences, name, language, country, etc."})]})]})})}},59195:function(e,t,r){"use strict";r.d(t,{JY:function(){return l},Xz:function(){return o},oH:function(){return i}});var a=r(96486),s=r(30381),n=r.n(s),i=function(e){return!!/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(e)},o=function(e,t,r,a){return r=1*r.replaceAll(":",""),a=1*a.replaceAll(":",""),e=1*e.replaceAll(":",""),t=1*t.replaceAll(":",""),e<=r&&t>=r||e<=a&&t>=a},l=function(e){var t,r,s,i,o,l;return!(0,a.isEmpty)(e),(null===e||void 0===e||null===(t=e.start_time)||void 0===t?void 0:t.dateTime)>(null===e||void 0===e||null===(r=e.end_time)||void 0===r?void 0:r.dateTime),n()(null===e||void 0===e||null===(s=e.start_time)||void 0===s?void 0:s.dateTime)>n()(null===e||void 0===e||null===(i=e.end_time)||void 0===i?void 0:i.dateTime),(null===e||void 0===e||null===(o=e.start_time)||void 0===o?void 0:o.timeZone)&&(null===e||void 0===e||null===(l=e.end_time)||void 0===l?void 0:l.timeZone)}},70072:function(e,t,r){"use strict";r.r(t);var a=r(47568),s=r(41799),n=r(69396),i=r(828),o=r(34051),l=r.n(o),c=r(85893),d=r(67294),u=r(9008),m=r.n(u),h=r(11163),p=r(34268),g=r(13448),f=r(79531),v=r(71577),x=r(4340),w=r(89739),A=r(9844),y=r(9669),j=r.n(y),k=r(41664),Z=r.n(k),b=r(59195),S=r(25675),E=r.n(S),_=r(49552),C=r.n(_),N=r(4760),P=r(58604),z=r(34853),I=r(18601),F=r(43699);t.default=function(){var e=(0,h.useRouter)(),t=(0,d.useState)(!1),r=t[0],o=t[1],u=(0,d.useState)({validateStatus:"error",err:""}),y=u[0],k=u[1],S=(0,d.useState)({validateStatus:"error",err:""}),_=S[0],L=S[1],R=(0,d.useState)(!1),T=(R[0],R[1],(0,i.Z)(p.Z.useForm(),1)[0]),D=(0,d.useRef)(),U=new URLSearchParams(e.asPath.split("?")[1]),G=U.get("team"),B=U.get("error"),V=U.get("free_plan_type");G&&T.setFieldsValue({email:atob(G)}),B&&(g.Z.error({message:"Error",description:B,placement:"topRight",icon:(0,c.jsx)(x.Z,{style:{color:"#fff"}})}),e.push("/register"));var M=function(e){C().set("prevUrl","reg",{expires:new Date(0)}),j()({method:"get",url:"".concat("https://backend.calrik.com/api/v1","/").concat(e),params:{free_plan_type:V}}).then((function(e){var t=e.data;!0===t.success?window.location.replace(t.data):g.Z.error({message:"Error",description:e.data.error||"Something went wrong",placement:"topRight",icon:(0,c.jsx)(x.Z,{style:{color:"#fff"}})})})).catch((function(e){g.Z.error({message:"Error",description:e.response.data.error||"Something went wrong",placement:"topRight",icon:(0,c.jsx)(x.Z,{style:{color:"#fff"}})})}))},Q=function(e,t){var r=t||y.value;if(e&&"success"==y.validateStatus)return e===r?{validateStatus:"success",err:(0,c.jsxs)("p",{style:{fontSize:12,marginTop:10,textAlign:"left"},children:[(0,c.jsx)(w.Z,{style:{fontSize:12,color:"#23d108"},className:"checkIcon"}),"\xa0Password must match"]})}:{validateStatus:"error",err:(0,c.jsxs)("p",{style:{fontSize:12,marginTop:10,textAlign:"left"},children:[(0,c.jsx)(w.Z,{className:"checkIcon"}),"\xa0Password must match"]})}},q=function(){var t=(0,a.Z)(l().mark((function t(r){var a,i,d,u,m,h,p,f,v,w;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y.value!==_.value||"success"!=y.validateStatus||"success"!=_.validateStatus){t.next=31;break}return V&&(r.free_plan_type=V),t.prev=2,t.next=6,D.current.executeAsync();case 6:return a=t.sent,t.next=9,j()({method:"post",url:"/api/google/verify-recaptcha",data:{token:a}});case 9:if(1==t.sent.data.success){t.next=12;break}throw new Error("Please try again");case 12:return o(!0),t.next=15,j()({method:"post",url:"".concat("https://backend.calrik.com/api/v1","/register"),data:(0,n.Z)((0,s.Z)({},r),{password:(0,I.Ed)(r.password),password_confirmation:(0,I.Ed)(r.password_confirmation)})});case 15:!0===(i=t.sent).data.success?(g.Z.success({message:"Success",description:"We have sent a verification email. Please verify your Email.",placement:"topRight",icon:(0,c.jsx)(A.Z,{style:{color:"#fff"}})}),e.push("/login")):g.Z.error({message:"Error",description:i.data.message.toString(),placement:"topRight",icon:(0,c.jsx)(x.Z,{style:{color:"#fff"}})}),o(!1),t.next=26;break;case 20:t.prev=20,t.t0=t.catch(2),(null===(d=t.t0.response)||void 0===d?void 0:d.data)?g.Z.error({message:"Error",description:(null===(m=t.t0.response)||void 0===m||null===(h=m.data)||void 0===h||null===(p=h.message)||void 0===p?void 0:p.email)?t.t0.response.data.message.email[0]:null===(f=t.t0.response)||void 0===f||null===(v=f.data)||void 0===v?void 0:v.message.toString(),placement:"topRight",icon:(0,c.jsx)(x.Z,{style:{color:"#fff"}})}):g.Z.error({message:"Error",description:null!==(u=t.t0.message)&&void 0!==u?u:"Server Error",placement:"topRight",icon:(0,c.jsx)(x.Z,{style:{color:"#fff"}})}),o(!1);case 26:return t.prev=26,null===(w=D.current)||void 0===w||w.reset(),o(!1),t.finish(26);case 31:case"end":return t.stop()}}),t,null,[[2,20,26,31]])})));return function(e){return t.apply(this,arguments)}}();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m(),{children:(0,c.jsx)("title",{children:"Sign Up - Calrik"})}),(0,c.jsx)(F.Z,{}),(0,c.jsx)("div",{id:"app",children:(0,c.jsx)("div",{className:"login-page register-page",children:(0,c.jsxs)("div",{className:"login-page-wrap",children:[(0,c.jsx)("div",{className:"logo",children:(0,c.jsx)("img",{src:"https://www.calrik.com/images/logo-full.svg"})}),(0,c.jsxs)("div",{className:"login-form register-form",children:[(0,c.jsx)("p",{children:"Create your FREE FOREVER Calrik account with"}),(0,c.jsxs)("div",{onClick:function(){return M("connectAuthGoogle")},className:"register-with-icon",children:[(0,c.jsx)(E(),{height:20,width:20,src:N.Z})," Sign up with Google"]}),(0,c.jsxs)("div",{onClick:function(){return M("connectAuthMicrosoft")},className:"register-with-icon",children:[(0,c.jsx)(E(),{height:20,width:20,src:P.Z})," Sign up with Microsoft"]}),(0,c.jsx)("div",{className:"text-center",children:V?(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)("div",{children:"Or Sign up with an email to access"})," ",(0,c.jsx)("div",{children:"30 Day Full Features Free Trial"})," "]}):"Or Sign up with an email"}),(0,c.jsxs)(p.Z,{onFinish:q,form:T,children:[(0,c.jsx)("label",{className:"icon",children:(0,c.jsx)(p.Z.Item,{name:"name",id:"name",type:"text",rules:[{required:!0,message:"Please enter your name"},function(e){e.getFieldValue;return{validator:function(e,t){return!t||/^[A-Za-z\s]*$/.test(t)?Promise.resolve():Promise.reject(new Error("Please enter a valid full name"))}}}],normalize:function(e){return" "==e[0]?e.trim():e.replace(/\s\s/g," ")},children:(0,c.jsx)(f.Z,{placeholder:"Enter your full name",autoFocus:!0,tabIndex:1,maxLength:255})})}),(0,c.jsx)("label",{className:"icon",children:(0,c.jsx)(p.Z.Item,{name:"email",id:"email",type:"email",rules:[{required:!0,message:"Please enter your email"},function(e){e.getFieldValue;return{validator:function(e,t){return!t||(0,b.oH)(t)?Promise.resolve():Promise.reject(new Error("Please enter the valid email address"))}}}],children:(0,c.jsx)(f.Z,{placeholder:"Enter email for creating your Calrik account",tabIndex:2,autoComplete:"off",disabled:G})})}),(0,c.jsx)("label",{className:"icon",children:(0,c.jsx)(p.Z.Item,(0,n.Z)((0,s.Z)({name:"password",id:"password",type:"password"},y.err?{help:y.err}:{}),{rules:[{required:!0,message:"Please enter password"}],children:(0,c.jsx)(f.Z.Password,{value:y.value||"",placeholder:"Choose your Calrik account password",tabIndex:3,onChange:function(e){k((0,n.Z)((0,s.Z)({},e.target.value.match(/^(?=.*\d)(?=.*[a-zA-Z]).{8,}
1$/)?{validateStatus:"success",err:(0,c.jsxs)("p",{style:{fontSize:12,marginTop:10,textAlign:"left"},children:[(0,c.jsx)(w.Z,{style:{fontSize:12,color:"#23d108"},className:"checkIcon"}),"\xa0Use 8 or more characters with a mix of letters and numbers"]})}:{validateStatus:"error",err:(0,c.jsxs)("p",{style:{fontSize:12,marginTop:10,textAlign:"left"},children:[(0,c.jsx)(w.Z,{style:{fontSize:12},className:"checkIcon"}),"\xa0Use 8 or more characters with a mix of letters and numbers"]})}),{value:e.target.value})),L((0,n.Z)((0,s.Z)({},Q(_.value,e.target.value)),{value:_.value}))},autoComplete:"off",maxLength:24})}))}),(0,c.jsx)("label",{className:"icon",children:(0,c.jsx)(p.Z.Item,(0,n.Z)((0,s.Z)({name:"password_confirmation",id:"password_confirmation",type:"password",dependencies:["password"],rules:[{required:!0,message:"Please confirm password"}]},_.err?{help:_.err}:{}),{children:(0,c.jsx)(f.Z.Password,{placeholder:"Confirm your Calrik account password",onChange:function(e){L((0,n.Z)((0,s.Z)({},Q(e.target.value)),{value:e.target.value}))},tabIndex:4,maxLength:24})}))}),(0,c.jsxs)("div",{className:"form-bottom-block",style:{marginTop:10},children:[(0,c.jsxs)("p",{style:{fontSize:12,margin:"0px 0 18px"},children:["By Creating an account, you agree to Calrik"," ",(0,c.jsxs)("a",{href:"https://www.calrik.com/terms-of-service.html",target:"_blank",children:["Terms"," "]}),"and"," ",(0,c.jsx)("a",{href:"https://www.calrik.com/privacy.html",target:"_blank",children:"Privacy policy"})]}),(0,c.jsx)(v.Z,{htmlType:"submit",type:"primary",className:"form-bottom-block-button",tabIndex:5,loading:r,children:"Create an account"})]})]}),(0,c.jsxs)("p",{className:"signup-taglink",children:["Already have an account? \xa0",(0,c.jsx)(Z(),{href:"/login",className:"forgot-pass",children:(0,c.jsx)("a",{tabIndex:6,children:"Login Now"})}),"."]})]})]})})}),(0,c.jsx)(z.Z,{sitekey:"6LcCOzohAAAAAGeLSyQhfn2A8bgMFLm_EI4aqtZO",size:"invisible",ref:D})]})}}},function(e){e.O(0,[2349,9774,2888,179],(function(){return t=75511,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.