PageSourceSearch

https://careers.helmetstohardhats.org/_next/static/chunks/pages/events/[id]/team-pages/new-4da838733253dc75.js

js helmetstohardhats.org collected 2026-09-24 10:27:22 UTC 3,343 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0167abff-da69-449f-bee2-e84acc1810ec",e._sentryDebugIdIdentifier="sentry-dbid-0167abff-da69-449f-bee2-e84acc1810ec")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1617],{73103:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>s.default});var s=a(73845)},73845:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>h});var s=a(37876),r=a(14232),n=a(42556),i=a(58667),u=a(45300),l=a(34349),o=a(22127),d=a(19264),c=a(41623),f=a(87252),m=a(29693);let h=function(e){let{templateVars:t,router:a,user:h}=e,p=(0,m.o)(),g=(0,r.useRef)(null),[y,w]=(0,r.useState)(""),[b,x]=(0,r.useState)(f.wu.PENDING),{fundraiser:v,states:I,organizationTypes:j,user:N,lastTeamPage:T}=t,_={...N,teamName:null==T?void 0:T.name,ownerJobTitle:null==T?void 0:T.ownerJobTitle,goal:null==T?void 0:T.goal},{userType:E,teamPageId:D}=a.query,A=(0,d.Ou)("/fundraisers/".concat(v.id,"/team-pages/status"));return(0,r.useEffect)(()=>{var e;null==g||null==(e=g.current)||e.focus()},[]),(0,r.useEffect)(()=>{A.error&&p("error",A.error);let e=A.response;if(console.log(e),e){if(!e.user)return x(f.wu.INVALID);if(e.user&&!e.team)return x(f.wu.VALID);e.user&&e.team&&(p("success","You already have a team page. Redirecting to login..."),setTimeout(()=>{a.push("/user/login?redirectTo=/teams/".concat(e.team,"&email=").concat(e.user))},1e3))}},[A.response,A.error]),(0,s.jsxs)(n.mc,{style:{marginTop:i.gutterWidth},children:[(0,s.jsxs)(u.A,{children:[(0,s.jsx)("h1",{className:"h3",children:null==v?void 0:v.title}),(0,s.jsx)("h2",{className:"h4",children:"Create your team"})]}),h?(0,s.jsx)(c.A,{fundraiser:v,states:I,organizationTypes:j,defaultType:h.isManager?"Manager":"User",action:"/team-pages",isUserSignup:!1,defaultValues:_,teamPageId:D}):(0,s.jsxs)(s.Fragment,{children:[f.wu.PENDING===b&&(0,s.jsxs)(o.lV,{onSubmit:e=>{x(b===f.wu.PENDING),e.preventDefault(),A.send({query:{email:y}})},method:"GET",action:"/fundraisers/".concat(v.id,"/team-page/status"),children:[(0,s.jsx)("input",{type:"hidden",name:"redirectTo",value:"/user/donor-profile"}),(0,s.jsx)(o.JU,{children:"Enter your Email Address"}),(0,s.jsx)(o.pd,{ref:g,name:"email",type:"email",autoComplete:"email",placeholder:"Email address",value:y,onChange:e=>{let{target:t}=e;return w(t.value)},validate:!0,required:!0,disabled:b===f.wu.VALID}),(0,s.jsx)(l.A,{type:"submit",fullWidth:!0,children:"Submit"})]}),b===f.wu.VALID&&(0,s.jsxs)("div",{style:{fontSize:"20px"},children:["There is already an account associated with this email.",(0,s.jsx)("br",{})," We've sent you a reset email to your email address.",(0,s.jsx)("br",{})," Please"," ",(0,s.jsx)("strong",{style:{textDecoration:"underline"},children:"check your email"})," and follow the instructions to reset your password."]}),b===f.wu.INVALID&&(0,s.jsx)(c.A,{email:y,states:I,organizationTypes:j,fundraiser:v,defaultType:E,teamPageId:D})]})]})}},97476:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/events/[id]/team-pages/new",function(){return a(73103)}])}},e=>{e.O(0,[5838,2127,1623,636,6593,8792],()=>e(e.s=97476)),_N_E=e.O()}]);
2//# sourceMappingURL=new-4da838733253dc75.js.map

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.