PageSourceSearch

https://baskadia.com/_next/static/chunks/pages/signup-cb27b8f7890a35e8.js

js baskadia.com collected 2026-09-24 09:03:22 UTC 13,794 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7616],{28575:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup",function(){return t(4319)}])},40570:function(e,a,t){"use strict";var n=t(26042),r=t(69396),i=t(99534),s=t(85893),o=t(67294),c=t(86002),l=t(4662),d=t(282),u=t(71344),p=o.forwardRef((function(e,a){var t=e.color,p=(0,i.Z)(e,["color"]),g=(0,l.Z)(),h=o.useMemo((function(){switch(t){case"default":case"inherit":case"primary":case"secondary":case void 0:return g;case"warning":return(0,r.Z)((0,n.Z)({},g),{palette:(0,r.Z)((0,n.Z)({},g.palette),{primary:(0,n.Z)({},g.palette.warning)})});case"error":return(0,r.Z)((0,n.Z)({},g),{palette:(0,r.Z)((0,n.Z)({},g.palette),{primary:(0,n.Z)({},g.palette.error)})});default:return(0,c.default)((0,r.Z)((0,n.Z)({},g),{palette:{primary:{main:t}}}))}}),[t,g]);return"default"===t||"inherit"===t||"primary"===t||"secondary"===t||void 0===t?(0,s.jsx)(d.Z,(0,n.Z)({ref:a,color:t},p)):(0,s.jsx)(u.Z,{theme:h,children:(0,s.jsx)(d.Z,(0,n.Z)({ref:a,color:"primary"},p))})}));a.Z=p},62284:function(e,a,t){"use strict";var n=t(14924),r=t(26042),i=t(85893),s=t(67294),o=t(32427),c=t(43832),l=(0,o.Z)((function(e){return{root:(0,n.Z)({},e.breakpoints.down("xs"),{paddingRight:"8px",paddingLeft:"8px"})}})),d=s.forwardRef((function(e,a){var t=l();return(0,i.jsx)(c.Z,(0,r.Z)({ref:a,classes:t,fixed:!0,maxWidth:"sm"},e))}));a.Z=d},86263:function(e,a,t){"use strict";var n=t(14924),r=t(26042),i=t(85893),s=t(67294),o=t(32427),c=t(41749),l=(0,o.Z)((function(e){return{root:(0,n.Z)({width:"calc(100% + 16px)",margin:"-8px"},e.breakpoints.down("xs"),{width:"calc(100% + 8px)",margin:"-4px"})}})),d=s.forwardRef((function(e,a){var t=l();return(0,i.jsx)(c.Z,(0,r.Z)({ref:a,classes:t,container:!0,justifyContent:"center"},e))}));a.Z=d},73844:function(e,a,t){"use strict";var n=t(14924),r=t(26042),i=t(85893),s=t(67294),o=t(32427),c=t(41749),l=(0,o.Z)((function(e){return{root:(0,n.Z)({padding:"8px"},e.breakpoints.down("xs"),{padding:"4px"})}})),d=s.forwardRef((function(e,a){var t=l();return(0,i.jsx)(c.Z,(0,r.Z)({ref:a,classes:t,item:!0,xs:12},e))}));a.Z=d},4319:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSG:function(){return F},default:function(){return P}});var n=t(47568),r=t(82670),i=t(828),s=t(20414),o=t(85893),c=t(60357),l=t.n(c),d=t(67294),u=t(9008),p=t.n(u),g=t(11163),h=t(60253),x=t(36808),m=t.n(x),f=t(19258),y=t.n(f),b=t(72091),w=t(18463),Z=t(51907),k=t(79912),j=t(55517),v=t(33681),_=t(39803),A=t(22318),C=t(49384),S=t(97663),E=t(61164),L=t(92674),T=t(40570),B=t(4298),R=t.n(B),q=function(e){var a=e.disabled,t=e.onDisable,n=e.onEnable,r=(0,h.$G)().t,i=(0,b.Ds)().enqueueSnackbar,s=d.useCallback((function(){var e,a,t,n;window.client=null===(e=window.google)||void 0===e||null===(a=e.accounts)||void 0===a||null===(t=a.oauth2)||void 0===t||null===(n=t.initCodeClient)||void 0===n?void 0:n.call(t,{client_id:"132129769732-g5p7mqm5ta9952hv13vo8up6mfhvqi8c.apps.googleusercontent.com",scope:"email profile openid",redirect_uri:"".concat("https://baskadia.com","/callback/signup"),ux_mode:"redirect"})}),[]),c=d.useCallback((function(){t();try{window.Android.signUpWithGoogle()}catch(e){(0,C.kg)(e),i(r("failed-to-sign-up"),{variant:"error"}),n()}}),[i,t,n,r]),l=d.useCallback((function(){t();try{var e;if(!(null===(e=window.client)||void 0===e?void 0:e.requestCode))throw new Error("window.client.requestCode is undefined");window.client.requestCode()}catch(a){(0,C.kg)(a),i(r("failed-to-sign-up"),{variant:"error"}),n()}}),[i,t,n,r]),u=d.useCallback((function(){if("android"===m().get("web_view"))c();else l()}),[c,l]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(R(),{strategy:"afterInteractive",src:"https://accounts.google.com/gsi/client",onReady:s}),(0,o.jsx)(T.Z,{disabled:a,fullWidth:!0,startIcon:(0,o.jsx)("img",{src:"/google.png",alt:"Google",width:"20px",height:"20px"}),variant:"outlined",style:{textTransform:"none"},onClick:u,children:r("sign-up-with-google")})]})},D=t(62284),G=t(86263),I=t(73844),N=t(57308),z=function(){var e="https://baskadia.com",a="/signup",t="",n="",r="",i="",s="",c="";if("ja"===(0,g.useRouter)().locale)t="".concat(e,"/baskadia_ja_banner.png"),n="\u65b0\u898f\u767b\u9332\uff08\u7121\u6599\uff09 | Baskadia",r="Baskadia\u306e\u65b0\u898f\u767b\u9332\u30da\u30fc\u30b8\u3067\u3059\u3002Baskadia\uff08\u30d0\u30b9\u30ab\u30c7\u30a3\u30a2\uff09\u306f\u3001\u4eee\u60f3\u901a\u8ca8\u306e\u30d3\u30c3\u30c8\u30b3\u30a4\u30f3\u3067\u6295\u3052\u92ad\u3057\u3066\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u3092\u652f\u63f4\u3067\u304d\u308b\u6295\u7a3f\u30b5\u30a4\u30c8\u3067\u3059\u3002",i="Baskadia, \u65b0\u898f\u767b\u9332, \u30d0\u30b9\u30ab\u30c7\u30a3\u30a2, \u4eee\u60f3\u901a\u8ca8, \u30d3\u30c3\u30c8\u30b3\u30a4\u30f3, \u6295\u3052\u92ad, \u30af\u30ea\u30a8\u30a4\u30bf\u30fc, \u652f\u63f4, \u6295\u7a3f, \u30b5\u30a4\u30c8",s="".concat(e,"/ja").concat(a),c="@baskadia";else t="".concat(e,"/baskadia_en_banner.png"),n="Sign up for free | Baskadia",r="This is a signup page of Baskadia. Baskadia is an art community to support creators by bitcoin tipping.",i="signup, baskadia, art, bitcoin, tipping",s="".concat(e).concat(a),c="@baskadia_en";return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(p(),{children:[(0,o.jsx)("title",{children:n}),(0,o.jsx)("meta",{name:"description",content:r},"description"),(0,o.jsx)("meta",{name:"keywords",content:i},"keywords"),(0,o.jsx)("meta",{name:"og:type",content:"website"},"og:type"),(0,o.jsx)("meta",{name:"og:url",content:s},"og:url"),(0,o.jsx)("meta",{name:"og:site_name",content:"baskadia.com"},"og:site_name"),(0,o.jsx)("meta",{name:"og:title",content:n},"og:title"),(0,o.jsx)("meta",{name:"og:description",content:r},"og:description"),(0,o.jsx)("meta",{name:"og:image",content:t},"og:image"),(0,o.jsx)("meta",{name:"fb:app_id",content:"452215405391820"},"fb:app_id"),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,o.jsx)("meta",{name:"twitter:site",content:c}
1,"twitter:site"),(0,o.jsx)("link",{rel:"canonical",href:s},"canonical"),(0,o.jsx)("link",{rel:"alternate",href:"".concat(e).concat(a),hrefLang:"en"},"alternate-en"),(0,o.jsx)("link",{rel:"alternate",href:"".concat(e,"/ja").concat(a),hrefLang:"ja"},"alternate-ja")]})})},F=!0,P=function(){var e=(0,g.useRouter)(),a=(0,h.$G)().t,t=(0,b.Ds)().enqueueSnackbar,c=(0,E.o)()[1],u=(0,L.Z)(),p=(0,i.Z)(d.useState(!1),2),x=p[0],f=p[1],B=(0,i.Z)(d.useState(""),2),R=B[0],F=B[1],P=(0,i.Z)(d.useState(""),2),J=P[0],O=P[1],U=(0,i.Z)(d.useState(!1),2),W=U[0],$=U[1],H=(0,i.Z)(d.useState(""),2),M=H[0],X=H[1],K=(0,i.Z)(d.useState(""),2),Y=K[0],Q=K[1],V=(0,i.Z)(d.useState(!1),2),ee=V[0],ae=V[1],te=d.useMemo((function(){return"ja"===e.locale?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(A.Z,{display:"block",variant:"caption",style:{opacity:.7,fontSize:"11px",padding:"0 16px"},children:["\u65b0\u898f\u767b\u9332\u3059\u308b\u3068\u3001",(0,o.jsx)(N.Z,{href:"/etc/terms",textLink:!0,style:{color:"inherit"},children:"\u5229\u7528\u898f\u7d04"}),"\u3001",(0,o.jsx)(N.Z,{href:"/etc/privacy",textLink:!0,style:{color:"inherit"},children:"\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc"}),"\u306b\u540c\u610f\u3057\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059"]}),(0,o.jsx)(A.Z,{variant:"body2",style:{padding:"24px 16px 16px",textAlign:"center"},children:(0,o.jsx)(N.Z,{href:"/login",textLink:!0,children:"\u30ed\u30b0\u30a4\u30f3\u306f\u3053\u3061\u3089"})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(A.Z,{display:"block",variant:"caption",style:{opacity:.7,fontSize:"11px",padding:"0 16px"},children:["By signing up, you agree to our ",(0,o.jsx)(N.Z,{href:"/etc/terms",textLink:!0,style:{color:"inherit"},children:"Terms"})," and ",(0,o.jsx)(N.Z,{href:"/etc/privacy",textLink:!0,style:{color:"inherit"},children:"Privacy policy"})]}),(0,o.jsxs)(A.Z,{variant:"body2",style:{padding:"24px 16px 16px",textAlign:"center"},children:["Already have an account?"," ",(0,o.jsx)(N.Z,{href:"/login",textLink:!0,children:"Log in"})]})]})}),[e.locale]),ne=d.useCallback((function(e){return e?/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/i.test(e)?"":a("invalid-email-address"):a("email-is-required")}),[a]),re=d.useCallback((function(e){return e?/^[a-zA-Z0-9!-/:-@\xa5[-`{-~]+$/.test(e)?e.length<8||e.length>50?a("password-must-be-8-50-characters-long"):"":a("only-alphanumeric-characters-are-allowed"):a("password-is-required")}),[a]),ie=d.useCallback((function(){W||($(!0),O(ne(R)))}),[R,W,ne]),se=d.useCallback((function(e){F(e.target.value),O(ne(e.target.value))}),[ne]),oe=d.useCallback((function(){ee||(ae(!0),Q(re(M)))}),[M,ee,re]),ce=d.useCallback((function(e){X(e.target.value),Q(re(e.target.value))}),[re]),le=d.useCallback((0,n.Z)((function(){var n,i,o,l,d,p,g;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:f(!0),s.label=1;case 1:if(s.trys.push([1,4,,5]),i=window.Android.getRecaptcha(),null===(o=JSON.parse(i))||void 0===o?void 0:o.error)throw new Error(o.error);if(!(null===o||void 0===o||null===(n=o.data)||void 0===n?void 0:n.recaptcha))throw new Error("response.data.recaptcha is undefined");return(l=new FormData).append("strategy","local"),l.append("email",R.trim()),l.append("password",M),l.append("recaptcha",o.data.recaptcha),[4,u("/android/user",{method:"POST",body:l})];case 2:if(null===(d=s.sent()))throw new Error("data is null");return m().set("auth._token.local","bearer ".concat(d.token),{expires:365,secure:!0,sameSite:"lax"}),p={ID:d.id,Unconfirmed:!0},c({type:"SET_AUTH",payload:p}),p&&y().identify(p.ID.toString()),c({type:"SET_EMAIL",payload:R.trim()}),[4,e.replace("/signup/sent-email")];case 3:return s.sent(),S.B("sign_up",{method:"Local"}),[3,5];case 4:if(g=s.sent(),!(0,r.Z)(g,Error))return(0,C.kg)(g),t(a("failed-to-sign-up"),{variant:"error"}),f(!1),[2];switch(g.message.trim()){case"automaticallyDetectedAsSuspiciousAccess":t(a("auto-detected-as-suspicious-access"),{variant:"error"});break;case"emailIsAlreadyRegistered":O(a("this-email-is-already-registered"));break;default:(0,C.kg)(g),t(a("failed-to-sign-up"),{variant:"error"})}return f(!1),[3,5];case 5:return[2]}}
1))})),[c,R,t,u,M,e,a]),de=d.useCallback((function(){f(!0),window.grecaptcha.ready((0,n.Z)((function(){var n,i,o,l,d,p;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,5,,6]),"6Le2wLkUAAAAAK88JHpF7hsPpX3n89oJ1RG2mYa0",[4,window.grecaptcha.execute("6Le2wLkUAAAAAK88JHpF7hsPpX3n89oJ1RG2mYa0",{action:"signup"})];case 1:return n=s.sent(),i=JSON.stringify({strategy:"local",email:R.trim(),password:M,recaptcha:n}),[4,u("/user",{method:"POST",body:i})];case 2:if(null===(o=s.sent()))throw new Error("data is null");return l=o.token,m().set("auth._token.local","bearer ".concat(l),{expires:365,secure:!0,sameSite:"lax"}),[4,u("/login")];case 3:return d=s.sent(),c({type:"SET_AUTH",payload:d}),d&&y().identify(d.ID.toString()),c({type:"SET_EMAIL",payload:R.trim()}),[4,e.replace("/signup/sent-email")];case 4:return s.sent(),S.B("sign_up",{method:"Local"}),[3,6];case 5:if(p=s.sent(),!(0,r.Z)(p,Error))return(0,C.kg)(p),t(a("failed-to-sign-up"),{variant:"error"}),f(!1),[2];switch(p.message.trim()){case"automaticallyDetectedAsSuspiciousAccess":t(a("auto-detected-as-suspicious-access"),{variant:"error"});break;case"emailIsAlreadyRegistered":O(a("this-email-is-already-registered"));break;default:(0,C.kg)(p),t(a("failed-to-sign-up"),{variant:"error"})}return f(!1),[3,6];case 6:return[2]}}
1))})))}),[c,R,t,u,M,e,a]),ue=d.useCallback((0,n.Z)((function(){var e,a;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return e=ne(R),O(e),$(!0),a=re(M),Q(a),ae(!0),e||a?[2]:"android"===m().get("web_view")?[3,1]:[3,3];case 1:return[4,le()];case 2:return t.sent(),[3,4];case 3:return de(),[3,4];case 4:return[2]}}))})),[R,M,le,de,ne,re]),pe=d.useCallback((function(){return f(!0)}),[]),ge=d.useCallback((function(){return f(!1)}),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z,{}),x&&(0,o.jsx)(v.Z,{style:{marginBottom:"-4px"}}),(0,o.jsx)(D.Z,{component:"main",maxWidth:"sm",style:{margin:"16px auto"},children:(0,o.jsx)(G.Z,{children:(0,o.jsx)(I.Z,{children:(0,o.jsxs)(w.Z,{children:[(0,o.jsxs)(k.Z,{children:[(0,o.jsx)(A.Z,{component:"h2",variant:"h5",children:a("sign-up-for-free")}),(0,o.jsx)(_.Z,{name:"email",value:R,label:a("email"),helperText:W&&J,error:W&&!!J,autoComplete:"email",disabled:x,fullWidth:!0,required:!0,type:"email",variant:"outlined",style:{marginTop:"24px"},onBlur:ie,onChange:se}),(0,o.jsx)(_.Z,{name:"password",value:M,label:a("password"),helperText:ee&&Y,error:ee&&!!Y,autoComplete:"new-password",disabled:x,fullWidth:!0,required:!0,type:"password",variant:"outlined",style:{marginTop:"24px"},onBlur:oe,onChange:ce}),(0,o.jsx)(A.Z,{align:"right",color:M.length>50?"error":"inherit",display:"block",variant:"caption",children:"".concat(M.length," / 50")})]}),(0,o.jsx)(Z.Z,{style:{padding:"8px 16px 0"},children:(0,o.jsx)(T.Z,{color:"primary",disabled:x,variant:"contained",style:{marginLeft:"auto"},onClick:ue,children:a("sign-up")})}),(0,o.jsxs)("div",{className:"jsx-38bee24cefa68698 or",children:[(0,o.jsx)(j.Z,{style:{flexGrow:1}}),(0,o.jsx)(A.Z,{variant:"caption",style:{opacity:.7,margin:"0 8px"},children:a("or")}),(0,o.jsx)(j.Z,{style:{flexGrow:1}})]}),(0,o.jsx)(Z.Z,{style:{padding:"0 16px 8px"},children:(0,o.jsx)(q,{disabled:x,onDisable:pe,onEnable:ge})}),te]})})})}),(0,o.jsx)(l(),{id:"38bee24cefa68698",children:".or.jsx-38bee24cefa68698{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:32px;padding:0 16px}"})]})}}},function(e){e.O(0,[3138,2387,4794,9803,9542,9774,2888,179],(function(){return a=28575,e(e.s=a);var a}));var a=e.O();_N_E=a}]);

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.