PageSourceSearch

https://app.moneycoachescanada.ca/_next/static/chunks/pages/company/sign-up-9d47c483d99eb4cd.js

js moneycoachescanada.ca collected 2026-09-26 09:54:42 UTC 14,027 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5358],{13882:function(e,t,n){"use strict";function a(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return a}})},83946:function(e,t,n){"use strict";function a(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return a}})},36948:function(e,t,n){"use strict";n.d(t,{qk:function(){return i},vh:function(){return r},yJ:function(){return a}});var a=6e4,r=36e5,i=1e3},23855:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(36948),r=n(13882),i=n(83946);function o(e,t){(0,r.Z)(1,arguments);var n,o,x,h=(0,i.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==h&&1!==h&&0!==h)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var v=function(e){var t,n={},a=e.split(l.dateTimeDelimiter);if(a.length>2)return n;if(/:/.test(a[0])?t=a[0]:(n.date=a[0],t=a[1],l.timeZoneDelimiter.test(n.date)&&(n.date=e.split(l.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var r=l.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e);if(v.date){var g=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(n);if(!a)return{year:NaN,restDateString:""};var r=a[1]?parseInt(a[1]):null,i=a[2]?parseInt(a[2]):null;return{year:null===i?r:100*i,restDateString:e.slice((a[1]||a[2]).length)}}(v.date,h);o=function(e,t){if(null===t)return new Date(NaN);var n,a,r=e.match(s);if(!r)return new Date(NaN);var i=!!r[4],o=d(r[1]),l=d(r[2])-1,c=d(r[3]),u=d(r[4]),m=d(r[5])-1;if(i)return u>=1&&u<=53&&m>=0&&m<=6?((n=new Date(0)).setUTCFullYear(t,0,4),a=n.getUTCDay()||7,n.setUTCDate(n.getUTCDate()+((u-1)*7+m+1-a)),n):new Date(NaN);var x=new Date(0);return l>=0&&l<=11&&c>=1&&c<=(p[l]||(f(t)?29:28))&&o>=1&&o<=(f(t)?366:365)?(x.setUTCFullYear(t,l,Math.max(o,c)),x):new Date(NaN)}(g.restDateString,g.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var N=o.getTime(),y=0;if(v.time&&isNaN(y=function(e){var t=e.match(c);if(!t)return NaN;var n=m(t[1]),r=m(t[2]),i=m(t[3]);return(24===n?0===r&&0===i:i>=0&&i<60&&r>=0&&r<60&&n>=0&&n<25)?n*a.vh+r*a.yJ+1e3*i:NaN}(v.time)))return new Date(NaN);if(v.timezone){if(isNaN(x=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return i>=0&&i<=59?n*(r*a.vh+i*a.yJ):NaN}(v.timezone)))return new Date(NaN)}else{var w=new Date(N+y),b=new Date(0);return b.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),b.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),b}return new Date(N+y+x)}var l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function m(e){return e&&parseFloat(e.replace(",","."))||0}var p=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400==0||e%4==0&&e%100!=0}},62705:function(e,t,n){var a=n(55639).Symbol;e.exports=a},44239:function(e,t,n){var a=n(62705),r=n(89607),i=n(2333),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):i(e)}},31957:function(e,t,n){var a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=a},89607:function(e,t,n){var a=n(62705),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,l=a?a.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var a=!0}catch(e){}var r=o.call(e);return a&&(t?e[l]=n:delete e[l]),r}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var a=n(31957),r="object"==typeof self&&self&&self.Object===Object&&self,i=a||r||Function("return this")();e.exports=i},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var a=n(44239),r=n(37005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==a(e)}},63802:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/company/sign-up",function(){return n(23885)}])},23885:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var a=n(85893),r=n(67294),i=n(37340),o=n(41664),l=n.n(o),s=n(26997),c=n(92432),u=n(99141),d=n(11163),m=n(16310),p=n(82175),f=n(16458),x=e=>{let{field:t,errors:n,form:i,placeholder:o,style:l="password",additionalStyle:s,...c}=e,[u,d]=(0,r.useState)(!1);if("password"===l){var m;return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"flex flex-row relative",children:[(0,a.jsx)("input",{name:t.name,className:"form-input brand-input pr-8",type:u?"text":"password",placeholder:"Password",value:t.value,onChange:e=>{i.setFieldValue(t.name,e.target.value)}}),(0,a.jsx)("button",{className:"absolute top-2.5 right-2 text-brand-lighter opacity-75",type:"button",onClick:()=>{d(!u)},children:(0,a.jsxs)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M3.707 2.293a1 1 0 0 0-1.414 1.414l14 14a1 1 0 0 0 1.414-1.414l-1.473-1.473A10.014 10.014 0 0 0 19.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 0 0-4.512 1.074l-1.78-1.781zm4.261 4.26 1.514 1.515a2.003 2.003 0 0 1 2.45 2.45l1.514 1.514a4 4 0 0 0-5.478-5.478z",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M12.454 16.697 9.75 13.992a4 4 0 0 1-3.742-3.741L2.335 6.578A9.98 9.98 0 0 0 .458 10c1.274 4.057 5.065 7 9.542 7 .847 0 1.669-.105 2.454-.303z"})]})})]}),(0,a.jsx)("div",{className:"text-xs max-w-[310px] break-words pt-1",children:"Must be 8 or more characters, contain at least 1 number, 1 capital, and 1 special character."}),i.errors&&(0,a.jsx)("div",{className:"text-xs font-semibold text-red-600 mt-1",children:null===(m=i.errors)||void 0===m?void 0:m.password})]})}throw Error("Unimplemented InputPassword style: ".concat(l))},h=n(36808),v=n.n(h),g=n(74931);function N(){let e=(0,i._)(["\n	mutation ($FirstName: String!, $Email: String!, $Password: String!, $CompanyName: String!, $recaptchaToken: String, $ActivationCode: String) {\n		companySignUp(\n			firstName: $FirstName\n			email: $Email\n			password: $Password\n			companyName: $CompanyName\n			recaptchaToken: $recaptchaToken\n			activationCode: $ActivationCode\n		) {\n			ok\n			status\n			message\n			token\n		}\n	}\n"]);return N=function(){return e},e}let y=m.Ry().shape({email:m.Z_().trim().required("Please enter a valid email").email("Please enter a valid email"),firstName:m.Z_().required("Please fill this in"),password:m.Z_().required("Please enter 8 characters").min(8,"Please enter 8 characters").matches(/^(?=.*([a-z]))/,"Please include letters").matches(/^(?=.*([A-Z]))/,"Please include capitals").matches(/^(?=.*(\W|_))/,"Please include symbols").matches(/^(?=.*\d)/,"Please include numbers"),companyName:m.Z_().required("Please fill this in"),activationCode:m.Z_().required("Please fill this in")}),w=(0,s.Ps)(N()),b=e=>String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-");var j=()=>{let[e,t]=(0,r.useState)(" "),[n,i]=(0,r.useState)(!1),[o,s]=(0,c.Db)(w),m=(0,d.useRouter)();return(0,a.jsx)("div",{className:"flex flex-col lg:grid",children:(0,a.jsx)(p.J9,{initialValues:{firstName:"",email:"",companyName:"",password:"",activationCode:""},onSubmit:async e=>{(0,u.lU)(async function(t){var n,a,r,o,l,c;i(!0);let u=await s({FirstName:e.firstName,Email:e.email,Password:e.password,CompanyName:e.companyName,recaptchaToken:t,ActivationCode:e.activationCode});(null==u?void 0:null===(a=u.data)||void 0===a?void 0:null===(n=a.companySignUp
1)||void 0===n?void 0:n.status)===200?(v().set("token",null==u?void 0:null===(o=u.data)||void 0===o?void 0:null===(r=o.companySignUp)||void 0===r?void 0:r.token),m.push("/company/confirm-email")):g.ZP.error((null==u?void 0:null===(c=u.data)||void 0===c?void 0:null===(l=c.companySignUp)||void 0===l?void 0:l.message)||"Unable to create account"),i(!1)})},validationSchema:y,validate:e=>(t(b(e.companyName)),{}),children:e=>{let{errors:t,touched:r,values:i}=e;return(0,a.jsxs)(p.l0,{className:"flex flex-col h-screen justify-center items-center space-y-4 max-w-screen-xs mx-auto",children:[(0,a.jsx)("span",{className:"text-xl lg:text-2xl font-bold text-brand text-center break-words",children:"Get Started With Adviice"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"pb-1 text-sm text-gray-800",children:"First Name"}),(0,a.jsx)(p.gN,{name:"firstName",className:"form-input brand-input",placeholder:"First Name",component:f.Z,type:"text"})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"pb-1 text-sm text-gray-800",children:"Company Email"}),(0,a.jsx)(p.gN,{name:"email",placeholder:"Email",component:f.Z,type:"text"})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"pb-1 text-sm text-gray-800",children:"Company Name"}),(0,a.jsx)(p.gN,{name:"companyName",placeholder:"Company Name",component:f.Z,type:"text"}),""!==i.companyName&&(0,a.jsxs)("div",{className:"text-xs max-w-[310px] break-words pt-1",children:["Temp Domain: ",b(i.companyName),".adviice.ca"]})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"pb-1 text-sm text-gray-800",children:"Activation Code"}),(0,a.jsx)(p.gN,{name:"activationCode",placeholder:"Activation Code",component:f.Z,type:"text"})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"pb-1 text-sm text-gray-800",children:"Password"}),(0,a.jsx)(p.gN,{name:"password",placeholder:"Password",component:x,type:"text"})]})]}),(0,a.jsxs)("span",{className:"text-xs text-center text-gray-800 px-2",children:["By signing up, you agree with our ",(0,a.jsx)("a",{href:"https://adviice.ca/terms-and-conditions/",children:"Terms and Conditions"})," and"," ",(0,a.jsx)("a",{href:"https://adviice.ca/privacy-policy/",children:"Privacy Policy"})]}),(0,a.jsx)("button",{className:"block px-4 py-2 mx-auto mt-10 font-semibold border rounded  border-brand ".concat(0===Object.keys(t).length?"bg-brand text-white":"bg-white text-brand"),type:"submit",disabled:n,children:n?(0,a.jsxs)("div",{className:"flex flex-row items-center",children:[(0,a.jsxs)("svg",{className:"animate-spin mr-2 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.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"})]}),"Creating account"]}):"Continue with Email"}),(0,a.jsxs)("span",{className:"text-xs text-gray-800",children:["Haven't confirmed your email yet? ",(0,a.jsx)(l(),{href:"/company/confirm-email",children:"Confirm Email"})]})]})}})})},_=n(9008),C=n.n(_),D=n(59888),S=e=>{let{...t}=e,n=window.location.pathname.split("/"),r=window.location.hostname.split("."),i=r.length>1?r.slice(1).join("."):r[0],o=r[0];return"adviice.ca"===i||"404"===n[1]||"app"===o||"dev"===o||"alpha"===o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C(),{children:(0,a.jsx)("title",{children:"Company Sign Up"})}),(0,a.jsx)(j,{})]}):((0,D.Z)("/404",!0),null)}},99141:function(e,t,n){"use strict";function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return null==e?"":e.length<=t?e:e.slice(0,t-n.length)+n}function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.constants,a={};for(let e in n)t?a[e.slice(0,-6)]={primary:n[e],secondary:n[e]}:a[e.slice(0,-6)]=n[e];return a}function i(e){return null==e?"":e.charAt(0).toUpperCase()+e.slice(1)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e||0).toFixed(t).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}function l(e){return null===e||""===e}function s(e){return e.split("_").map(e=>{var t;return"".concat(null===(t=e[0])||void 0===t?void 0:t.toUpperCase()).concat(e.slice(1)," ")}
1)}function c(e,t,n){let a={},r=null==n?void 0:n.financial_profile__home_owner,i=null==n?void 0:n.financial_profile__future_home_purchase,o=null==n?void 0:n.financial_profile__cottage_or_vacation_property,l=parseInt(null==n?void 0:n.financial_profile__number_of_rental_properties);(r||!r&&i)&&(a.house="House"),r&&i&&(a.new_house="New House"),o&&(a.cottage_or_vacation="Cottage Or Vacation");for(let e=1;e<l+1;e++)a["rental_".concat(e)]="Rental ".concat(e);return a}function u(e){var t,n;null===(n=window)||void 0===n||null===(t=n.grecaptcha)||void 0===t||t.ready(function(){var t;null===(t=window)||void 0===t||t.grecaptcha.execute("6Lc2lAMqAAAAAD9AybDMuEgsr23RVojhAmG5TRcg",{action:"submit"}).then(e)})}function d(e,t,n){let a=c(e,t,n),r=[{text:"Don't Link",value:null}];for(let e in a)r.push({text:a[e],value:e});for(let e of["house","new_house","cottage_or_vacation","rental_1","rental_2","rental_3","rental_4","rental_5"]){let t=a[e];void 0===t&&r.push({text:s(e),value:e,hidden:!0,disabled:!0})}return r}n.d(t,{Ap:function(){return o},Eb:function(){return i},V0:function(){return d},kY:function(){return a},lF:function(){return l},lU:function(){return u},m7:function(){return c},qI:function(){return r},uD:function(){return s}})}},function(e){e.O(0,[1664,7333,2175,5161,6310,6458,9774,2888,179],function(){return e(e.s=63802)}),_N_E=e.O()}]);

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.