PageSourceSearch

https://baskadia.com/_next/static/chunks/pages/callback/signup-0d2fdfb22da86272.js

js baskadia.com collected 2026-10-01 10:34:53 UTC 16,771 bytes, 1 lines download raw bytes

vendor: 4,189 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5511],{282:function(e,t,o){"use strict";var a=o(44168),r=o(81225),n=o(67294),i=(o(45697),o(86010)),c=o(52543),l=o(59693),s=o(30313),d=o(93871),p=n.forwardRef((function(e,t){var o=e.children,c=e.classes,l=e.className,p=e.color,u=void 0===p?"default":p,m=e.component,f=void 0===m?"button":m,h=e.disabled,g=void 0!==h&&h,x=e.disableElevation,b=void 0!==x&&x,y=e.disableFocusRipple,v=void 0!==y&&y,Z=e.endIcon,S=e.focusVisibleClassName,w=e.fullWidth,C=void 0!==w&&w,k=e.size,z=void 0===k?"medium":k,j=e.startIcon,E=e.type,N=void 0===E?"button":E,R=e.variant,_=void 0===R?"text":R,L=(0,a.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=j&&n.createElement("span",{className:(0,i.Z)(c.startIcon,c["iconSize".concat((0,d.Z)(z))])},j),$=Z&&n.createElement("span",{className:(0,i.Z)(c.endIcon,c["iconSize".concat((0,d.Z)(z))])},Z);return n.createElement(s.Z,(0,r.Z)({className:(0,i.Z)(c.root,c[_],l,"inherit"===u?c.colorInherit:"default"!==u&&c["".concat(_).concat((0,d.Z)(u))],"medium"!==z&&[c["".concat(_,"Size").concat((0,d.Z)(z))],c["size".concat((0,d.Z)(z))]],b&&c.disableElevation,g&&c.disabled,C&&c.fullWidth),component:f,disabled:g,focusRipple:!v,focusVisibleClassName:(0,i.Z)(c.focusVisible,S),ref:t,type:N},L),n.createElement("span",{className:c.label},M,o,$))}));t.Z=(0,c.Z)((function(e){return{root:(0,r.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,l.Fq)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,l.Fq)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,l.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}}
1,containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(p)},63786:function(e,t,o){"use strict";o.d(t,{Z:function(){return i}});var a=o(81225),r=o(67294),n=o(62087);function i(e,t){var o=function(t,o){return r.createElement(n.Z,(0,a.Z)({ref:o},t),e)};return o.muiName=n.Z.muiName,r.memo(r.forwardRef(o))}},4662:function(e,t,o){"use strict";var a=o(65310);t.Z=function(){0;return(0,r.useTheme)()||n.default};var r=o(61504),n=(a(o(67294)),a(o(22719)))},8936:function(e,t,o){"use strict";o.d(t,{Z:function(){return Z}});var a=o(94966),r=o(36350),n=o(67294),i=(o(45697),o(86010)),c=o(59693),l=o(52543),s=o(79895),d=o(63786),p=(0,d.Z)(n.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),u=(0,d.Z)(n.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),m=(0,d.Z)(n.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),f=(0,d.Z)(n.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),h=o(17694),g=o(17812),x=o(93871),b={success:n.createElement(p,{fontSize:"inherit"}),warning:n.createElement(u,{fontSize:"inherit"}),error:n.createElement(m,{fontSize:"inherit"}),info:n.createElement(f,{fontSize:"inherit"})},y=n.createElement(h.Z,{fontSize:"small"}),v=n.forwardRef((function(e,t){var o=e.action,c=e.children,l=e.classes,d=e.className,p=e.closeText,u=void 0===p?"Close":p,m=e.color,f=e.icon,h=e.iconMapping,v=void 0===h?b:h,Z=e.onClose,S=e.role,w=void 0===S?"alert":S,C=e.severity,k=void 0===C?"success":C,z=e.variant,j=void 0===z?"standard":z,E=(0,a.Z)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return n.createElement(s.Z,(0,r.Z)({role:w,square:!0,elevation:0,className:(0,i.Z)(l.root,l["".concat(j).concat((0,x.Z)(m||k))],d),ref:t},E),!1!==f?n.createElement("div",{className:l.icon},f||v[k]||b[k]):null,n.createElement("div",{className:l.message},c),null!=o?n.createElement("div",{className:l.action},o):null,null==o&&Z?n.createElement("div",{className:l.action},n.createElement(g.Z,{size:"small","aria-label":u,title:u,color:"inherit",onClick:Z},y)):null)})),Z=(0,l.Z)((function(e){var t="light"===e.palette.type?c._j:c.$n,o="light"===e.palette.type?c.$n:c._j;return{root:(0,r.Z)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:o(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:o(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:o(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:o(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(v)},37155:function(e,t,o){"use strict";var a=o(36350),r=o(94966),n=o(67294),i=(o(45697),o(52543)),c=o(22318),l=o(86010),s=n.forwardRef((function(e,t){var o=e.classes,i=e.className,s=(0,r.Z)(e,["classes","className"]);return n.createElement(c.Z,(0,a.Z)({gutterBottom:!0,component:"div",ref:t,className:(0,l.Z)(o.root,i)},s))}));t.Z=(0,i.Z)((function(e){return{root:{fontWeight:e.typography.fontWeightMedium,marginTop:-2}}}),{name:"MuiAlertTitle"})(s)},17694:function(e,t,o){"use strict";var a=o(67294),r=o(63786);t.Z=(0,r.Z)(a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},11814:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/callback/signup",function(){return o(10945)}])},40570:function(e,t,o){"use strict";var a=o(26042),r=o(69396),n=o(99534),i=o(85893),c=o(67294),l=o(86002),s=o(4662),d=o(282),p=o(71344),u=c.forwardRef((function(e,t){var o=e.color,u=(0,n.Z)(e,["color"]),m=(0,s.Z)(),f=c.useMemo((function(){switch(o){case"default":case"inherit":case"primary":case"secondary":case void 0:return m;case"warning":return(0,r.Z)((0,a.Z)({},m),{palette:(0,r.Z)((0,a.Z)({},m.palette),{primary:(0,a.Z)({},m.palette.warning)})});case"error":return(0,r.Z)((0,a.Z)({},m),{palette:(0,r.Z)((0,a.Z)({},m.palette),{primary:(0,a.Z)({},m.palette.error)})});default:return(0,l.default)((0,r.Z)((0,a.Z)({},m),{palette:{primary:{main:o}}}))}}),[o,m]);return"default"===o||"inherit"===o||"primary"===o||"secondary"===o||void 0===o?(0,i.jsx)(d.Z,(0,a.Z)({ref:t,color:o},u)):(0,i.jsx)(p.Z,{theme:f,children:(0,i.jsx)(d.Z,(0,a.Z)({ref:t,color:"primary"},u))})}));t.Z=u},62284:function(e,t,o){"use strict";var a=o(14924),r=o(26042),n=o(85893),i=o(67294),c=o(32427),l=o(43832),s=(0,c.Z)((function(e){return{root:(0,a.Z)({},e.breakpoints.down("xs"),{paddingRight:"8px",paddingLeft:"8px"})}})),d=i.forwardRef((function(e,t){var o=s();return(0,n.jsx)(l.Z,(0,r.Z)({ref:t,classes:o,fixed:!0,maxWidth:"sm"},e))}));t.Z=d},86263:function(e,t,o){"use strict";var a=o(14924),r=o(26042),n=o(85893),i=o(67294),c=o(32427),l=o(41749),s=(0,c.Z)((function(e){return{root:(0,a.Z)({width:"calc(100% + 16px)",margin:"-8px"},e.breakpoints.down("xs"),{width:"calc(100% + 8px)",margin:"-4px"})}})),d=i.forwardRef((function(e,t){var o=s();return(0,n.jsx)(l.Z,(0,r.Z)({ref:t,classes:o,container:!0,justifyContent:"center"},e))}));t.Z=d},73844:function(e,t,o){"use strict";var a=o(14924),r=o(26042),n=o(85893),i=o(67294),c=o(32427),l=o(41749),s=(0,c.Z)((function(e){return{root:(0,a.Z)({padding:"8px"},e.breakpoints.down("xs"),{padding:"4px"})}})),d=i.forwardRef((function(e,t){var o=s();return(0,n.jsx)(l.Z,(0,r.Z)({ref:t,classes:o,item:!0,xs:12},e))}));t.Z=d},17674:function(e,t,o){"use strict";var a=o(85893),r=o(60357),n=o.n(r),i=(o(67294),o(32427)),c=o(22318),l=o(58365),s=(0,i.Z)((function(){return{root:{position:"absolute",top:"16px",left:"16px"}}}));t.Z=function(){var e=s();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"jsx-a63c01fbf404f474 header",children:[(0,a.jsx)(l.Z,{classes:e,variant:"circle",width:"40px",height:"40px"}),(0,a.jsx)(c.Z,{variant:"body2",children:(0,a.jsx)(l.Z,{variant:"text"})}),(0,a.jsx)(c.Z,{variant:"body2",children:(0,a.jsx)(l.Z,{variant:"text",width:"50%"})})]}),(0,a.jsxs)("div",{className:"jsx-a63c01fbf404f474 content",children:[(0,a.jsx)(c.Z,{variant:"body1",children:(0,a.jsx)(l.Z,{variant:"text"})}),(0,a.jsx)(c.Z,{variant:"body1",children:(0,a.jsx)(l.Z,{variant:"text",width:"50%"})}),(0,a.jsx)(l.Z,{variant:"rect",height:"200px",style:{marginTop:"16px",borderRadius:"16px"}})]}),(0,a.jsx)(n(),{id:"a63c01fbf404f474",children:".header.jsx-a63c01fbf404f474{position:relative;padding:16px 16px 16px 72px}.content.jsx-a63c01fbf404f474{padding:0 16px 16px}"})]})}},10945:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return _}});var a=o(47568),r=o(82670),n=o(828),i=o(20414),c=o(85893),l=o(67294),s=o(9008),d=o.n(s),p=o(11163),u=o(4298),m=o.n(u),f=o(60253),h=o(36808),g=o.n(h),x=o(19258),b=o.n(x),y=o(8936),v=o(37155),Z=o(49384),S=o(97663),w=o(61164),C=o(92674),k=o(40570),z=o(62284),j=o(86263),E=o(73844),N=o(57308),R=o(17674),_=!0;t.default=function(){var e=(0,p.useRouter)(),t=(0,f.$G)().t,o=(0,w.o)()[1],s=(0,C.Z)(),u=(0,n.Z)(l.useState(""),2),h=u[0],x=u[1],_=l.useCallback((0,a.Z)((function(){var a,n,c,l,d,p,u,m,f,h,y;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),window.client=null===(a=window.google)||void 0===a||null===(n=a.accounts)||void 0===n||null===(c=n.oauth2)||void 0===c||null===(l=c.initCodeClient)||void 0===l?void 0:l.call(c,{client_id:"132129769732-g5p7mqm5ta9952hv13vo8up6mfhvqi8c.apps.googleusercontent.com",scope:"email profile openid",redirect_uri:"".concat("https://baskadia.com","/callback/signup"),ux_mode:"redirect"}),!(d="string"===typeof e.query.code?e.query.code:""))throw new Error("router.query.code is undefined");return p=JSON.stringify({strategy:"googleSignup",code:d}),[4,s("/user",{method:"POST",body:p})];case 1:if(null===(u=i.sent()))throw new Error("data is null");return m=u.token,f=u.id,g().set("auth._token.local","bearer ".concat(m),{expires:365,secure:!0,sameSite:"lax"}),o({type:"SET_AUTH",payload:{ID:f}}),f&&b().identify(f.toString()),h=g().get("return_to"),g().remove("return_to"),[4,e.replace(h||"/home")];case 2:return i.sent(),S.B("sign_up",{method:"Google"}),[3,4];case 3:if(y=i.sent(),!(0,r.Z)(y,Error))return(0,Z.kg)(y),x(t("failed-to-sign-up")),[2];if("failedToSignUpWithGoogle"===y.message.trim())x(t("failed-to-get-email-address-from-google"));else(0,Z.kg)(y),x(t("failed-to-sign-up"));return[3,4];case 4:return[2]}}
1))})),[o,s,e,t]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d(),{children:(0,c.jsx)("title",{children:"Baskadia"})}),(0,c.jsx)(m(),{strategy:"afterInteractive",src:"https://accounts.google.com/gsi/client",onLoad:_}),(0,c.jsxs)(z.Z,{component:"main",style:{margin:"16px auto"},children:[!h&&(0,c.jsx)(j.Z,{children:Array.from(Array(20).keys()).map((function(e){return(0,c.jsx)(E.Z,{children:(0,c.jsx)(R.Z,{})},e)}))}),h&&(0,c.jsx)(j.Z,{children:(0,c.jsx)(E.Z,{children:(0,c.jsxs)(y.Z,{severity:"error",variant:"filled",action:(0,c.jsx)(N.Z,{href:"/signup",replace:!0,children:(0,c.jsx)(k.Z,{children:t("back")})}),children:[(0,c.jsx)(v.Z,{children:t("error")}),h]})})})]})]})}},82670:function(e,t,o){"use strict";function a(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}o.d(t,{Z:function(){return a}})}},function(e){e.O(0,[8652,9774,2888,179],(function(){return t=11814,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.