PageSourceSearch

https://commmune.com/_next/static/chunks/pages/admin/signup-1b978fd334f20012.js

js commmune.com collected 2026-09-24 20:05:47 UTC 14,958 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="62648091-80f8-5010-a46a-2bdc1f6adf3c")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7252],{29002:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.INVALID_EMAIL_DOMAINS=a.DUMMY_EMAIL_DOMAIN=void 0,a.DUMMY_EMAIL_DOMAIN="example.com",a.INVALID_EMAIL_DOMAINS=[a.DUMMY_EMAIL_DOMAIN]},44293:(e,a,c)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/signup",function(){return c(52600)}])},47298:(e,a)=>{"use strict";a.Z=void 0,a.Z={JA:"[email protected]",EN:"[email protected]"}},48374:(e,a,c)=>{"use strict";var l,i=Object.create?function(e,a,c,l){void 0===l&&(l=c);var i=Object.getOwnPropertyDescriptor(a,c);(!i||("get"in i?!a.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(e,l,i)}:function(e,a,c,l){void 0===l&&(l=c),e[l]=a[c]},n=Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a},t=(l=function(e){return(l=Object.getOwnPropertyNames||function(e){var a=[];for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&(a[a.length]=c);return a})(e)},function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var c=l(e),t=0;t<c.length;t++)"default"!==c[t]&&i(a,e,c[t]);return n(a,e),a});a.hg=void 0,a.cF=function(e){let a=e.toLowerCase();return s.INVALID_EMAIL_DOMAINS.some(e=>a.endsWith(`@${e}`))},a.B9=function(e){return r.validate(e)};let r=t(c(94624)),s=c(29002);a.hg="*"},52600:(e,a,c)=>{"use strict";c.r(a),c.d(a,{default:()=>k});var l=c(45023),i=c(51949),n=c.n(i),t=c(36439),r=c(96114),s=c(41471),d=c(70104),o=c(816),m=c(47298),g=c(48374),p=c(27180),u=c(64462),f=c(78201);class y extends Error{constructor(...e){super(...e),this.message="Google Login returned an empty token!"}}class E extends Error{constructor(...e){super(...e),this.message="Google Login internal error!"}}let A=(0,f.n9)()(e=>({paper:{marginTop:e.spacing(8),display:"flex",flexDirection:"column",alignItems:"center"},avatar:{margin:e.spacing(1),backgroundColor:e.palette.secondary.main},form:{width:"100%",marginTop:e.spacing(1)},submit:{margin:e.spacing(3,0,2)}}));function x({onSuccess:e,onError:a,useOneTap:c}){let{classes:i}=A();return(0,l.FD)(f.mc,{component:"main",maxWidth:"xs",children:[(0,l.Y)(f.n8,{}),(0,l.Y)("div",{className:i.paper,children:(0,l.Y)(u.j,{onSuccess:c=>{c.credential?.length?e(c.credential):a(new y)},onError:()=>a(new E),useOneTap:c})})]})}var h=c(1190),b=c(70284),N=c(49151),_=c(58535),v=c(81831),w=c(27570);let Y="Please complete this required field.",D="Enter an alphanumeric string.",j={locale:"en",firstName:"",lastName:"",email:"",password:"",checkbox:!1},k=()=>{let e,a=(0,h.r)(),c=(e=(0,N.q)(),async a=>{await e.post("/admin/admin/community",a)}),i=(0,s.useDispatch)(),[u,y]=(0,t.useState)(null),[E,A]=(0,t.useState)(null),[k,F]=(0,t.useState)(d.E.Default),{register:q,handleSubmit:M,formState:{isSubmitting:I,errors:S}}=(0,r.mN)({mode:"all",defaultValues:j}),P=async e=>{if(!u)return;let{firstName:l,lastName:n,email:t,locale:r}=e;try{await c({locale:r,firstName:l,lastName:n,email:t,token:u,presetType:k}),a.pushRoute("/admin/signup/success"),i((0,b.xI)(t))}catch(e){_.v.error(e),A("Server error. Please try again later.")}};return(0,l.FD)(l.FK,{children:[(0,l.Y)(p.e,{keyPhrase:"Sign up - Community Platform for Customer Success teams by Commune",faviconUrl:"/static/img/icon/favicon_default.png",description:"Start a 30-day free trial for Commune, the all-in-one Customer Success community software to build client engagement effectively. No credit card required.",imageUrl:`${(0,v.MI)()}/static/img/us-lp-sign-up-ogp.png`}),(0,l.FD)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" wrapper",children:[(0,l.Y)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" left-content",children:(0,l.FD)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" content",children:[(0,l.Y)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" back",children:(0,l.Y)("a",{href:"https://commune.us/home",className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" back-link",children:"← back"})}),(0,l.FD)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" signup",children:[(0,l.Y)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" header",children:(0,l.Y)("h3",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" title mb-3 font-weight-bold",children:"Create your portal"})}),u&&(0,l.FD)("form",{onSubmit:M(P),className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]]),children:[(0,l.FD)("section",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" mb-3",children:[(0,l.FD)("label",{htmlFor:"locale",className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" label mb-1",children:["language",(0,l.Y)("span",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:"*"})]}),(0,l.FD)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input-field",children:[(0,l.FD)("label",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" radio-label",children:[(0,l.Y)("input",{type:"radio",...q("locale",{required:!0}),value:"en",className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])}),"English"]}),(0,l.FD)("label",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" radio-label",children:[(0,l.Y)("input",{type:"radio",...q("locale",{required:!0}),value:"ja",className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])}),"Japanese"]}),S.locale&&(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:Y})]})]}),(0,l.FD)("section",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" mb-3",children:[(0,l.FD)("label",{htmlFor:"firstName",className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" label mb-1",children:["First name",(0,l.Y)("span",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:"*"})]}),(0,l.FD)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input-field",children:[(0,l.Y)("input",{...q("firstName",{required:!0,pattern:new RegExp(o.default.PERSONAL_NAME_REGEX)}),className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input"}),S.firstName?.type==="required"&&(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:Y}),S.firstName?.type==="pattern"&&(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:D})]})]}),(0,l.FD)("section",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" mb-3",children:[(0,l.FD)("label",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" label mb-1",children:["Last name",(0,l.Y)("span",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:"*"})]}),(0,l.FD)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input-field",children:[(0,l.Y)("input",{...q("lastName",{required:!0,pattern:new RegExp(o.default.PERSONAL_NAME_REGEX)}),className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input"}),S.lastName?.type==="required"&&(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:Y}),S.lastName?.type==="pattern"&&(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:D})]})]}),(0,l.FD)("section",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" mb-3",children:[(0,l.FD)("label",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" label mb-1",children:[`Work email (Don’t use ${m.Z.JA})`,(0,l.Y)("span",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:"*"})]}),(0,l.FD)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input-field",children:[(0,l.Y)("input",{type:"email",...q("email",{required:!0,validate:g.B9}),className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input"}),S.email?.type==="required"&&(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:Y}),S.email?.type==="validate"&&(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:"Please use your work email."})]})]}),(0,l.FD)("section",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" mb-3",children:[(0,l.FD)("label",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" label mb-1",children:["Select a preset type",(0,l.Y)("span",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:"*"})]}),(0,l.Y)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input-field",children:(0,l.FD)("select",{value:k,onChange:e=>F(e.target.value),className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input",children:[(0,l.Y)("option",{value:d.E.Default,className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]]),children:"Default"}),(0,l.Y)("option",{value:d.E.FoodCompany,className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]]),children:"Food Company"})]})})]}),(0,l.FD)("section",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" mb-3",children:[(0,l.Y)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" input-field",children:(0,l.Y)("input",{type:"checkbox",...q("checkbox",{required:!0}),className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" checkbox"})}),(0,l.FD)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]]),children:["By checking this box, I agree to Commune‘s"," ",(0,l.Y)("a",{href:"https://docs.google.com/document/u/2/d/e/2PACX-1vRbEPJkSxNSw491cIOt3PIqpeUKfY-l4wcmMTzXwnR8CcIAieIwNCDa9PC8SgPmPllMpKSap8MA_VAw/pub",target:"_blank",rel:"noreferrer",className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]]),children:"Terms of Service"})," ",(0,l.Y)("br",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])})," and"," ",(0,l.FD)("a",{href:"https://commune.us/privacy-policy",target:"_blank",rel:"noreferrer",className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]]),children:["Privacy Policy.",(0,l.Y)("span",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:"*"})]})]}),S.checkbox?.type==="required"&&(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:Y})]}),(0,l.Y)("section",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" mb-3",children:(0,l.Y)("button",{type:"submit",disabled:I,className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" submit-button",children:I?(0,l.Y)(f.P,{size:15,color:"inherit"}):"Sign up"})})]}),!u&&(0,l.Y)(x,{onSuccess:y,onError:e=>A(e.message)}),(0,l.Y)("section",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" mb-3",children:(0,l.Y)("p",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" required",children:E})})]})]})}),(0,l.Y)("div",{className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" right-content",children:(0,l.Y)("img",{src:"/static/img/us-lp-sign-up.png",alt:"Try for free. No strings attached.",className:n().dynamic([["5a45037c583c05f1",[w.EA.xlg,w.EA.lg]]])+" img"})})]}),(0,l.Y)(n(),{id:"5a45037c583c05f1",dynamic:[w.EA.xlg,w.EA.lg],children:`.wrapper.__jsx-style-dynamic-selector{display:flex;height:100vh;width:100vw}.left-content.__jsx-style-dynamic-selector{display:flex;flex:50%;justify-content:flex-end;overflow-y:auto}.right-content.__jsx-style-dynamic-selector{flex:50%}.content.__jsx-style-dynamic-selector{display:flex;justify-content:center;align-items:center;margin:0 auto}.back.__jsx-style-dynamic-selector{position:fixed;top:16px;left:16px}.back-link.__jsx-style-dynamic-selector{color:#1f3e53;font-size:16px;text-underline-offset:3px;word-wrap:break-word;white-space:pre-wrap}.signup.__jsx-style-dynamic-selector{margin-left:124px;margin-bottom:32px;width:460px}.header.__jsx-style-dynamic-selector{margin-bottom:64px}.title.__jsx-style-dynamic-selector{font-size:32px}.description.__jsx-style-dynamic-selector{font-size:16px}.link.__jsx-style-dynamic-selector{color:#1f3e53;font-size:16px;text-decoration:underline;text-underline-offset:3px;word-wrap:break-word;white-space:pre-wrap}.label.__jsx-style-dynamic-selector{font-size:13px}.radio-label.__jsx-style-dynamic-selector{display:inline-block;margin-right:20px}input[type="radio"].__jsx-style-dynamic-selector{margin-right:5px;vertical-align:middle}.input.__jsx-style-dynamic-selector{width:100%;display:inline-block;height:40px;padding:9px 10px;font-size:16px;font-weight:400;line-height:22px;border:1px solid#cbd6e2;box-sizing:border-box;border-radius:3px;background-color:#f5f8fa}.input.__jsx-style-dynamic-selector:focus{outline:none;border-color:#52a8eccc}.checkbox.__jsx-style-dynamic-selector{float:left;margin-top:4px;margin-right:8px}.submit-button.__jsx-style-dynamic-selector{background:#ff5982;border-color:#ff5982;color:#fff;margin:0;cursor:pointer;display:inline-block;font-weight:700;line-height:12px;border:none;white-space:pre-wrap;width:98px;
3height:36px}.submit-button.__jsx-style-dynamic-selector:disabled{background:#ccc}.img.__jsx-style-dynamic-selector{width:100%;height:100%;background-size:cover;background-position:center center;object-fit:cover}.required.__jsx-style-dynamic-selector{color:red}@media(max-width:${w.EA.xlg}){.signup.__jsx-style-dynamic-selector{margin-left:0}}@media(max-width:${w.EA.lg}){.wrapper.__jsx-style-dynamic-selector{display:block}.left-content.__jsx-style-dynamic-selector{display:block;width:100%;padding:0 32px}.back-link.__jsx-style-dynamic-selector{margin-top:24px;margin-bottom:32px}.signup.__jsx-style-dynamic-selector{width:100%;margin-top:84px}.header.__jsx-style-dynamic-selector{margin-bottom:32px}.img.__jsx-style-dynamic-selector{display:none}}`})]})}},70104:(e,a)=>{"use strict";a.E=void 0,a.E={Default:"default",Education:"education",SaaS:"saas",BusinessMatching:"businessMatching",Apparel:"apparel",FoodCompany:"foodCompany"}},94624:(e,a)=>{"use strict";var c=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;a.validate=function(e){if(!e||e.length>254||!c.test(e))return!1;var a=e.split("@");return!(a[0].length>64||a[1].split(".").some(function(e){return e.length>63}))}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=44293)),_N_E=e.O()}]);
4//# sourceMappingURL=signup-1b978fd334f20012.js.map
5//# debugId=62648091-80f8-5010-a46a-2bdc1f6adf3c

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.