PageSourceSearch

https://commmune.com/_next/static/chunks/pages/view/signup/profile-3d44a38e38bde7da.js

js commmune.com collected 2026-09-24 20:07:23 UTC 11,655 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]="08e629d7-1def-51b4-952f-05f8076b31f7")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9160],{1022:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/view/signup/profile",function(){return a(64969)}])},6197:(e,t)=>{"use strict";t.C=void 0,t.C={REFERRAL_CD_SIGN_UP:1}},10320:(e,t,a)=>{"use strict";a.d(t,{d:()=>l});var n=a(45023),r=a(51949),i=a.n(r),s=a(78201);function l({text:e,"data-cy":t,...a}){return(0,n.FD)(s.o5,{className:c.className,variant:"caption","data-cy":t,...a,children:[e,c.styles]})}let c={styles:(0,n.Y)(i(),{id:"74723f765a0b9bb7",children:".MuiTypography-root.jsx-74723f765a0b9bb7{white-space:pre-wrap;overflow-wrap:anywhere}"}),className:"jsx-74723f765a0b9bb7"}},13384:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(45023),r=a(36439),i=a(90524),s=a(816),l=a(22884);let c=e=>{let{t}=(0,i.B)(["components/atoms"]),a=(0,r.useId)(),c=e.id??a,d=e.staticLabel?(0,n.Y)("label",{className:"mb-1",style:e.labelStyle,htmlFor:c,children:t("Username ({{min}}–{{max}} alphanumeric characters)",{min:s.default.ACCOUNT_NAME_MIN_LENGTH,max:s.default.ACCOUNT_NAME_MAX_LENGTH})}):(0,n.Y)(n.FK,{});return(0,n.FD)(n.FK,{children:[d,(0,n.Y)(l.b,{...e,id:c,type:"text",label:e.staticLabel?"":t("Username ({{min}}–{{max}} alphanumeric characters)",{min:s.default.ACCOUNT_NAME_MIN_LENGTH,max:s.default.ACCOUNT_NAME_MAX_LENGTH}),maxLength:s.default.ACCOUNT_NAME_MAX_LENGTH})]})}},22884:(e,t,a)=>{"use strict";a.d(t,{b:()=>i});var n=a(45023),r=a(78201);let i=e=>{let{invalid:t,style:a,type:i,...s}=e;return(0,n.Y)(r.A_,{type:i||"text",style:{...a,display:"block"},error:t,fullWidth:!0,inputProps:{"data-cy":"labeled-text-input"},...s})}},39319:(e,t,a)=>{"use strict";a.r(t),a.d(t,{customAlphabet:()=>s,customRandom:()=>i,nanoid:()=>l,random:()=>r,urlAlphabet:()=>n});let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",r=e=>crypto.getRandomValues(new Uint8Array(e)),i=(e,t,a)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,r=-~(1.6*n*t/e.length);return (i=t)=>{if(i<=0)return"";let s="";for(;;){let t=a(r),l=0|r;for(;l--;)if((s+=e[t[l]&n]||"").length===i)return s}}},s=(e,t=21)=>i(e,t,r),l=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},52901:(e,t,a)=>{"use strict";a.d(t,{B:()=>d});var n=a(45023),r=a(51949),i=a.n(r);a(36439);var s=a(86404),l=a(93801),c=a(84822);function d({disableSiteDesign:e,headerText:t,headerImage:a,children:r,...o}){let u=(0,c.R)();return e?(0,n.FD)(s.W,{...o,children:[a,(0,n.Y)("section",{children:(0,n.Y)(l.n,{text:t})}),r]}):(0,n.FD)("div",{className:"jsx-bafd874e9de19258 siteDesignBackground",children:[(0,n.FD)("div",{className:"jsx-bafd874e9de19258 siteDesignCard",children:[(0,n.FD)("div",{className:"jsx-bafd874e9de19258",children:[a,(0,n.Y)("section",{className:"jsx-bafd874e9de19258",children:(0,n.Y)(l.n,{text:t,color:u.headingColor})})]}),(0,n.Y)("div",{className:"jsx-bafd874e9de19258 siteDesignCardContent",children:r})]}),(0,n.Y)(i(),{id:"bafd874e9de19258",children:".siteDesignBackground.jsx-bafd874e9de19258{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding-block:16px}.siteDesignCard.jsx-bafd874e9de19258{width:min(408px,90%);min-height:514px;display:grid;grid-template-rows:auto 1fr;align-items:center;margin:0 auto;background-color:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.06);padding:32px 24px}.siteDesignCardContent.jsx-bafd874e9de19258{min-width:0}.siteDesignCard.jsx-bafd874e9de19258 button:disabled{opacity:.25}"})]})}},55493:(e,t,a)=>{"use strict";t.u_=void 0;let n=a(39319);t.u_=e=>(0,n.nanoid)(e)},64969:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>v});var n=a(45023),r=a(816),i=a(14643),s=a(6197),l=a(71095),c=a(65893),d=a(22884),o=a(10320),u=a(13384),h=a(90649),p=a(52901),m=a(70442),f=a(84822),g=a(95302),N=a(36439),b=a(90524),_=a(41471),x=a(70284),y=a(88442);let E=(0,m.Os)("/profile_guide");var A=a(19675),C=a(55493);let v=function(){let{t:e}=(0,b.B)(["pages/view/signup"]),t=(0,_.useSelector)(e=>e.user.passwordSubmitted),a=(0,_.useSelector)(e=>e.user),v=s.C.REFERRAL_CD_SIGN_UP,{data:R}=(0,m.s3)(`/referral/invy/conversion/${v}`),w=(0,A.w)(a.jwtToken),Y=!(0,_.useSelector)(e=>e.app.brand.disableRandomAccountName),T=(0,f.R)(),[D,M]=(0,g.F)(g.l.PROFILE,{nickname:w?a.nickname:"",accountName:w?a.accountName:""}),[L,k]=(0,N.useState)(""),[F,j]=(0,N.useState)(""),[G,S]=(0,N.useState)(""),[O,U]=(0,N.useState)(!0),[I,P]=(0,N.useState)(!1),[X,H]=(0,N.useState)(!1),[V,$]=(0,N.useState)(void 0),K=(0,N.useRef)(!1),B=(0,N.useMemo)(()=>(0,C.u_)(9),[]);(0,N.useEffect)(()=>{D.nickname&&k(D.nickname),D.accountName?j(D.accountName):Y&&j(B)},[D.accountName,D.nickname,Y,B]),(0,N.useEffect)(()=>{H(!!R?.token)},[R]);let{data:W}=E(),q=(0,_.useDispatch)(),z=(0,y.R)(),Z=(0,N.useCallback)(e=>{let t=e.target.value||"";t.length>r.default.NICKNAME_MAX_LENGTH||k(t)},[]),J=(0,N.useCallback)(e=>{let t=e.target.value||"",a=(RegExp(r.default.ACCOUNT_NAME_REGEX,"g").exec(t)||[])[0]||"";a.length>r.default.ACCOUNT_NAME_MAX_LENGTH||j(a)},[]),Q=(0,N.useCallback)(e=>{if(Y&&!K.current&&F===B){let t=e.target;requestAnimationFrame(()=>t.select()),K.current=!0}},[Y,F,B]),ee=(0,N.useCallback)(e=>{U(!0);let t=e.target.value||"",a=(new RegExp(r.default.REFERRAL_CODE_INPUT_REGEX).exec(t)||[])[0]||"";a.length>r.default.REFERRAL_CODE_MAX_LENGTH||S(a)},[]),et=!L.length||L.length>r.default.NICKNAME_MAX_LENGTH,ea=F.length<r.default.ACCOUNT_NAME_MIN_LENGTH||F.length>r.default.ACCOUNT_NAME_MAX_LENGTH,en=e("Display name ({{max}} characters or less)",{max:r.default.NICKNAME_MAX_LENGTH});return(0,n.Y)(h.I,{children:(0,n.FD)(p.B,{height:450,headerText:e("Sign-up"),children:[(0,n.Y)("section",{className:"mt-5",children:(0,n.Y)("p",{children:e("Enter your display name and username to show on the community. You can change them later.")})}),(0,n.Y)("section",{className:"mt-5",children:(0,n.FD)("div",{className:"form-group",children:[(0,n.Y)("div",{children:(0,n.Y)(d.b,{type:"text",label:en,"data-cy":"nick-name",maxLength:r.default.NICKNAME_MAX_LENGTH,value:L,onChange:Z,invalid:!!V?.nickname,helperText:(0,n.Y)(o.d,{text:V?.nickname?.join("<br />")||W?.displayNameGuide||e("Enter your nickname or name you want to be called."),"data-cy":"nick-name-guide-text"})})}),(0,n.Y)("div",{className:"mt-5",children:(0,n.Y)(u.Z,{"data-cy":"account-name",value:F,onChange:J,onFocus:Q,invalid:!!V?.accountName,helperText:(0,n.Y)(o.d,{text:V?.accountName?.join("<br />")||W?.userNameGuide||(Y?e("An ID used within the community. You can change it after registration."):e("Set a unique name that is easy to identify.")),"data-cy":"user-name-guide-text"})})}),X&&(0,n.Y)("div",{className:"mt-5",children:(0,n.Y)(d.b,{type:"text",label:e("Referral code"),"data-cy":"referral-code",maxLength:r.default.REFERRAL_CODE_MAX_LENGTH,value:G,invali
3d:!O,onChange:ee,helperText:(0,n.Y)(o.d,{text:O?e("(e.g. 1234-abcd1234)\nIf you do not have a referral code, you can skip here."):e("This referral code is invalid.\nCheck characters and a hyphen, and try it again."),"data-cy":"referral-code-guide-text"})})})]})}),(0,n.Y)("section",{className:"mt-5 text-center",children:(0,n.Y)(c.a,{className:"w-75",color:T.ctaColor,onClick:()=>{let a=RegExp(r.default.REFERRAL_CODE_VALIDATE_REGEX,"g"),n=""===G||a.test(G);if(U(n),!n||I)return;P(!0);let s=async(t,a)=>{a&&$(Object.fromEntries(a.map(({key:t,errors:a})=>{let n=a.map(a=>{switch(a){case l.A.RuleViolation:return e("Please enter 4–30 characters using half-width letters and numbers.");case l.A.ProfileObjectRuleViolation:return e("The entered value does not meet the requirements.");case l.A.DenyUrl:return e("Can’t publish. The URL contains potential phishing threats.");case l.A.Required:return e("This field is required.");case l.A.BannedWord:return e("Inappropriate content detected. Please edit to proceed.");case l.A.Duplicated:if("accountName"===t)return e("This username is already used. Please enter a different username.")}});return[t,n.filter(e=>void 0!==e)]}))),P(!1)};M({nickname:L,accountName:F}),q(x.Yh.request({data:{profileSubmitted:!0,nickname:L,accountName:F,referralCode:G},successCb:()=>{t?z.pushRoute(`${i.default.VIEW_SIGNUP_COMPLETE}${window.location.search}`):z.pushRoute(`${i.default.VIEW_SIGNUP_PASSWORD}${window.location.search}`)},errCb:s}))},disabled:et||ea,"data-cy":"to-password-setting-button",children:e("Next")})})]})})}},71095:(e,t)=>{"use strict";t.A=void 0,t.A={BannedWord:"bannedWord",DenyUrl:"denyUrl",Duplicated:"duplicated",Required:"required",RuleViolation:"ruleViolation",ProfileObjectRuleViolation:"profileObjectRuleViolation"}},82565:(e,t,a)=>{"use strict";a.d(t,{G:()=>c});var n=a(45023),r=a(85121),i=a(25008),s=a.n(i),l=a(53500);let c=({className:e})=>{let t=(0,l.k)();return(0,n.Y)(n.FK,{children:t&&(0,n.Y)("div",{className:s()(`elfsight-app-${r.NR}`,e),"data-elfsight-app-lazy":!0})})}},84822:(e,t,a)=>{"use strict";a.d(t,{R:()=>i});var n=a(41471),r=a(92835);let i=()=>(0,n.useSelector)(r.$f)},86404:(e,t,a)=>{"use strict";a.d(t,{W:()=>l});var n=a(45023),r=a(51949),i=a.n(r),s=a(36439);class l extends s.Component{render(){return(0,n.FD)("div",{className:i().dynamic([["e758bd21b0ac938c",[this.props.width?this.props.width:"360",this.props.center?"0":"-10%",this.props.height]]])+" sharedContainer",children:[this.props.children,(0,n.Y)(i(),{id:"e758bd21b0ac938c",dynamic:[this.props.width?this.props.width:"360",this.props.center?"0":"-10%",this.props.height],children:`.sharedContainer.__jsx-style-dynamic-selector{width:90%;max-width:${this.props.width?this.props.width:"360"}px;margin:auto;position:absolute;top:${this.props.center?"0":"-10%"};bottom:0;left:0;right:0;height:${this.props.height}px}`})]})}}},90649:(e,t,a)=>{"use strict";a.d(t,{I:()=>c});var n=a(45023),r=a(51949),i=a.n(r);a(36439);var s=a(82565),l=a(44458);function c({children:e}){let t=(0,l.ew)();return(0,n.FD)(n.FK,{children:[(0,n.Y)("div",{className:`jsx-914b6d7276ffa34b language-selector ${t?"language-selector-sp":"language-selector-pc"}`,children:(0,n.Y)(s.G,{})}),e,(0,n.Y)(i(),{id:"914b6d7276ffa34b",children:".language-selector.jsx-914b6d7276ffa34b{position:absolute!important}.language-selector-pc.jsx-914b6d7276ffa34b{top:32px;right:32px}.language-selector-sp.jsx-914b6d7276ffa34b{right:16px;margin:8px 0 16px 0}"})]})}},93801:(e,t,a)=>{"use strict";a.d(t,{n:()=>c});var n=a(45023),r=a(51949),i=a.n(r),s=a(48208),l=a(78201);let c=e=>(0,n.FD)(n.FK,{children:[(0,n.FD)("section",{className:i().dynamic([["24351ea278c5f977",[e.color||"#254860"]]])+" header",children:[e.route&&(0,n.Y)(s.N,{route:e.route,children:(0,n.Y)(l.K0,{style:{position:"absolute",top:-5,left:0},children:(0,n.Y)("i",{className:i().dynamic([["24351ea278c5f977",[e.color||"#254860"]]])+" fas fa-chevron-left"})})}),(0,n.Y)("span",{className:i().dynamic([["24351ea278c5f977",[e.color||"#254860"]]]),children:e.text})]}),(0,n.Y)(i(),{id:"24351ea278c5f977",dynamic:[e.color||"#254860"],children:`.header.__jsx-style-dynamic-selector{font-size:24px;font-weight:bold;text-align:center}.header.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{color:${e.color||"#254860"}}.iconButton.__jsx-style-dynamic-selector{position:absolute;top:7px;left:15px}`})]})}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=1022)),_N_E=e.O()}]);
4//# sourceMappingURL=profile-3d44a38e38bde7da.js.map
5//# debugId=08e629d7-1def-51b4-952f-05f8076b31f7

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.