PageSourceSearch

https://runtheday.com/_next/static/chunks/9165-cdb96b5b0a7d0175.js

js runtheday.com collected 2026-10-01 13:53:15 UTC 19,962 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9165],{39165:function(e,t,l){l.r(t),l.d(t,{default:function(){return B}});var s=l(51713),n=l(57437),a=l(1660),i=l(85421),r=l(71511),o=l(91638),d=l(71049),u=l(10421),c=l(634),m=l(78693),p=l(46387),h=l(19643),x=l(59832),v=l(8058),f=l(21177),b=l(8350),_=l(80605),g=l(49567),y=l(2265),j=l(33145),w=l(99376),N=l(98125),Z=l(8862),E=l(72371),k=l(52700),C=l(41327),S=l(33833),I=l(29001),R=l(51584),T=l(57706),O=l(5106),D=l(153),L=l(43209),P=l(90538),M=l(74470),A={title:"",title_description:"",total_volunteer_count:0,description:""},V={title:"",title_description:"",total_volunteer_count:"",description:""},U=e=>{var t,{openModal:l,setOpenModal:i,edit:r}=e,o=(0,g.v9)(e=>e.racesId.raceId);(0,g.v9)(e=>e.createRace.selectedRace.title);var c=(0,g.I0)(),[x,v]=(0,y.useState)(A),[b,j]=(0,y.useState)(!1),[w,N]=(0,y.useState)("Generate"),[U,F]=(0,y.useState)(!1),[Q,W]=(0,y.useState)(V),{data:z,update:B}=(0,_.useSession)(),[G,H]=(0,y.useState)(),K=null==z?void 0:z.accessToken,{data:X}=(0,u.Vj)({token:K},{skip:!K}),[Y]=(0,u.Ny)();(0,y.useEffect)(()=>{if((null==X?void 0:X.status)&&(null==X?void 0:X.statusCode)==L.h3.GET_REGISTRATIONS_SUCCESS){var e;H(null==X?void 0:null===(e=X.data)||void 0===e?void 0:e.reduce((e,t)=>[...e,{value:t.id,label:t.name}],[]))}},[X]);var $=e=>{v(t=>(0,E._)((0,Z._)({},t),{[e.target.name]:e.target.value})),W(t=>(0,E._)((0,Z._)({},t),{[e.target.name]:""}))},q=()=>{i(!1)},J=()=>{var e=!1;return x.title||(W(e=>(0,E._)((0,Z._)({},e),{title:L.aQ.REQUIRED_ERROR})),e=!0),x.total_volunteer_count||(W(e=>(0,E._)((0,Z._)({},e),{total_volunteer_count:L.aQ.REQUIRED_ERROR})),e=!0),"OTHER"!==x.title||x.title_description||(W(e=>(0,E._)((0,Z._)({},e),{title_description:L.aQ.REQUIRED_ERROR})),e=!0),e},ee=(t=(0,s._)(function*(){var e=r?(0,E._)((0,Z._)({},x),{race_id:o,id:null==r?void 0:r.id}):(0,E._)((0,Z._)({},x),{race_id:o});if(!J()){j(!0);try{var t=yield Y({body:e,raceId:o,token:K}).unwrap();if(t.status&&(null==t?void 0:t.statusCode)===L.QO.ADD_VOLUNTEER)c((0,d.tv)({message:null==t?void 0:t.message,severity:"success"})),q();else throw new P.s(null==t?void 0:t.message,null==t?void 0:t.statusCode,{})}catch(e){e.statusCode===L.OW.TEAM_RESPONSE_FAIL?(yield(0,a.j)(z,B))||(yield(0,_.signOut)({callbackUrl:"/account/login",redirect:!0})):console.log("\uD83D\uDE80 ~ file: AddEditModal.tsx:112 ~ handleSubmit ~ err:",e.message||e)}j(!1)}}),function(){return t.apply(this,arguments)});return(0,y.useEffect)(()=>{r&&v(e=>(0,E._)((0,Z._)({},e),{description:r.description,total_volunteer_count:r.count,title:r.title_id,title_description:"OTHER"===r.title_id?r.title_name:""}))},[r]),(0,y.useEffect)(()=>{l||(v(A),W(V))},[l]),(0,n.jsx)(D.Z,{open:l,handleClose:q,label:"Add Volunteer",children:(0,n.jsx)(m.Z,{className:" md:min-w-[760px]",children:(0,n.jsxs)(m.Z,{className:"max-h-[500px] overflow-auto flex-row p-5 space-y-[18px]",children:[(0,n.jsxs)(h.Z,{className:"md:flex-row flex-col flex gap-4",children:[(0,n.jsxs)(h.Z,{className:"md:w-3/4",children:[(0,n.jsx)(p.Z,{className:"text-[15px] font-semibold text-white mb-2",children:"Volunteer Title"}),(0,n.jsx)(C.Z,{sx:O.WV,children:(0,n.jsxs)(S.Z,{displayEmpty:!0,onChange:$,value:x.title,name:"title",IconComponent:k.Z,MenuProps:{PaperProps:{style:M.Yo,sx:{"& .MuiList-root":{maxHeight:"200px",overflowY:"auto"},"& .MuiList-root::-webkit-scrollbar":{width:"8px",color:"black"},"& .MuiList-root::-webkit-scrollbar-thumb":{backgroundColor:"#4e4e4e",borderRadius:"6px"}}}},className:"h-12 text-white bg-primary-black-500 border- rounded",error:!!Q.title,sx:{"& .MuiSelect-icon":{color:"white"}},inputProps:{"aria-label":"Select","data-testid":"title-field"},children:[(0,n.jsx)(f.Z,{disabled:!0,value:"",children:"Select Title"}),G&&G.map(e=>(0,n.jsx)(f.Z,{value:e.value,children:e.label},e.value))]})}),(0,n.jsx)(p.Z,{className:"text-xs text-primary-red-50 mt-1.5",children:Q.title}),"OTHER"===x.title&&(0,n.jsxs)(h.Z,{className:"mt-4",children:[(0,n.jsx)(p.Z,{className:"text-[15px] font-semibold text-white mb-2",children:"Custom Volunteer Title"}),(0,n.jsx)(O.ZP,{className:"h-12",inputProps:{className:"h-full"},onChange:$,name:"title_description",value:x.title_description,error:!!Q.title_description}),(0,n.jsx)(p.Z,{className:"text-xs text-primary-red-50 mt-1.5",children:Q.title_description})]})]}),(0,n.jsxs)(h.Z,{className:"md:w-1/4 ",children:[(0,n.jsx)(p.Z,{className:"text-[15px] font-semibold text-white mb-2",children:"Volunteer Count"}
1),(0,n.jsx)(R.C,{countValue:x.total_volunteer_count,handleChange:e=>{v(t=>(0,E._)((0,Z._)({},t),{total_volunteer_count:e})),W(e=>(0,E._)((0,Z._)({},e),{total_volunteer_count:""}))},error:!!Q.total_volunteer_count,testid:"volunteer-count-field"}),(0,n.jsxs)(p.Z,{className:"text-xs text-primary-red-50 mt-3.5",children:[Q.total_volunteer_count," "]})]})]}),(0,n.jsxs)(h.Z,{children:[(0,n.jsx)(m.Z,{className:"flex items-center justify-between mb-2",children:(0,n.jsx)(p.Z,{className:"text-[15px] font-semibold text-white mb-2",children:"Description"})}),(0,n.jsx)(T.Z,{onChange:$,name:"description",value:x.description})]}),(0,n.jsxs)(I.Z,{fullWidth:!0,className:"h-12",disabled:b,onClick:ee,children:[r?"Update":"Save"," Volunteer"]})]})})})},F=l(52362),Q=l(77860),W=l(59010),z=l(45630);function B(){var e,t,l,Z,E=(0,y.useRef)(null),k=(0,g.v9)(e=>e.racesId.raceId),C=(0,g.v9)(e=>e.disableField.disableField),[S,R]=(0,y.useState)(!1),[T,O]=(0,y.useState)(!1),[D,A]=(0,y.useState)(""),[V,B]=(0,y.useState)(!1),[G,H]=(0,y.useState)(!1),[K,X]=(0,y.useState)(""),[Y,$]=(0,y.useState)(""),[q,J]=y.useState(null),{data:ee,update:et}=(0,_.useSession)(),el=null==ee?void 0:ee.accessToken,es=!!q,en=(0,g.I0)(),ea=(0,w.useRouter)(),{data:ei}=(0,u.tj)({raceId:k,token:el},{skip:!k||!el}),{data:er,isFetching:eo}=(0,u.TG)({raceId:k,token:el},{skip:!k||!el}),ed=(null==er?void 0:er.status)&&(null==er?void 0:er.statusCode)===L.Ee.VOLUNTEER_DESCRIPTION_SUCCESS&&null!==(Z=null==er?void 0:null===(l=er.data)||void 0===l?void 0:l.list)&&void 0!==Z?Z:[],[eu]=(0,u.Fv)(),[ec]=(0,u.$1)(),em=e=>{J(e.currentTarget)},ep=()=>{A(""),ef(K)},eh=(e,t)=>{if("Edit"===t){var l=ed.find(e=>e.id===K);l&&$(l),ev("edit")}else"Delete"===t&&A("delete");J(null)},ex=(e,t)=>{e.stopPropagation(),X(t),em(e)},ev=e=>{"add"===e&&$(""),H(!0)},ef=(e=(0,s._)(function*(e){try{var t=yield ec({id:e,raceId:k,token:el}).unwrap();if((null==t?void 0:t.status)&&(null==t?void 0:t.statusCode)===L.QO.DELETE_VOLUNTEER_SUCCESS)en((0,d.tv)({message:"Deleted Successfully",severity:"success"}));else throw new P.s(null==t?void 0:t.message,null==t?void 0:t.statusCode,{})}catch(e){e instanceof P.s?e.statusCode!==L.L8.INVALID_TOKEN||(yield(0,a.j)(ee,et))||(yield(0,_.signOut)({callbackUrl:"/account/login",redirect:!0})):console.log("\uD83D\uDE80 ~ file: page.tsx:88 ~ getList ~ err:",e.message||e)}}),function(t){return e.apply(this,arguments)}),eb=(t=(0,s._)(function*(){B(!0);try{var e=yield eu({raceId:k,token:el,body:{race_id:k,allow_volunteer_registration:S,allow_volunteer_tshirt:T}}).unwrap();if((null==e?void 0:e.status)&&(null==e?void 0:e.statusCode)===L.o2.SETTING){en((0,i.gI)());var t,l=(0,z.X)("Sponsorship",k);ea.push(l),en((0,r.a$)(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.forms_completed))}else throw new P.s(null==e?void 0:e.message,null==e?void 0:e.statusCode,{})}catch(e){e instanceof P.s?e.statusCode!==L.L8.INVALID_TOKEN||(yield(0,a.j)(ee,et))||(yield(0,_.signOut)({callbackUrl:"/account/login",redirect:!0}),en((0,o.vB)())):console.log("\uD83D\uDE80 ~ file: page.tsx:88 ~ getList ~ err:",e.message||e)}B(!1)}),function(){return t.apply(this,arguments)});return(0,y.useEffect)(()=>{if((null==ei?void 0:ei.status)&&(null==ei?void 0:ei.statusCode)===L.DL.RESPONSE_SUCCESS){var e,t;R(null==ei?void 0:null===(e=ei.data)||void 0===e?void 0:e.allow_volunteer_registration),O(null==ei?void 0:null===(t=ei.data)||void 0===t?void 0:t.allow_volunteer_tshirt)}},[ei]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(W.default,{open:eo}),(0,n.jsxs)(m.Z,{className:"md:pb-7 h-[calc(100vh-[124px])] overflow-y-auto",ref:E,children:[(0,n.jsxs)(m.Z,{className:"min-h-[50vh] pt-0 pb-[2.4rem] md:mx-16 px-6 rounded text-white bg-primary-black-650 lg:min-h-[70vh]",children:[(0,n.jsx)(p.Z,{className:"pt-4 md:mb-8 mb-3 font-bold md:text-2xl text-base",children:"Volunteer"}),(0,n.jsxs)(m.Z,{className:" mb-5",children:[(0,n.jsx)(p.Z,{className:"mb-7 text-sm text-white",children:"Set volunteer assignments, track sign ups and email volunteers through Run The Day."}),(0,n.jsx)(p.Z,{className:"md:mb-1 mb-2 md:text-lg text-sm md:font-semibold text-white",children:"Would you like to collect volunteer sign ups?"}),(0,n.jsxs)(m.Z,{className:"flex md:flex-row flex-col md:gap-0 gap-4 items-center mb-5 justify-between",children:[(0,n.jsxs)(h.Z,{className:"flex-row items-center gap-3",children:[(0,n.jsx)(Q.Z,{value:S,onChange:e=>R(e),testId:"volunteer-signup",disabled:C}),(0,n.jsxs)(p.Z,{className:"text-sm font-normal ",children:[S?"Yes, I":"No, I don't"," want to allow volunteer sign-up through"," ",(0,n.jsx)("span",{className:"font-semibold",children:"Run The Day."})]})]}),S&&(0,n.jsx)(I.Z,{className:"h-[46px] md:w-[164px] w-full",onClick:()=>ev("add"),"data-testid":"add-volunteer-button",disabled:C,children:"Add Volunteer"})]}),S&&(0,n.jsxs)(m.Z,{className:"flex flex-row items-center mb-5 gap-3",children:[(0,n.jsx)(Q.Z,{value:T,onChange:e=>O(e),testId:"volunteer-shirt-size",disabled:C}),(0,n.jsx)(p.Z,{className:"text-sm font-normal ",children:"Would you like to collect volunteer shirt sizes?"})]})]}),(0,n.jsxs)(m.Z,{className:"grid grid-cols-1 gap-10 mb-6 min-h-[40vh] relative",children:[(null==ed?void 0:ed.length)>0&&S?ed.map((e,t)=>(0,n.jsxs)(m.Z,{className:"bg-primary-black-500 rounded md:p-4 p-2 w-full h-fit",children:[(0,n.jsxs)(h.Z,{className:"mb-1 flex-row justify-between items-center border-b-2 border-black",children:[(0,n.jsxs)(p.Z,{className:"text-primary-yellow-100 font-semibold",children:["Volunteer #",t+1]}),(0,n.jsx)(x.Z,{"aria-label":"more",id:"long-button","aria-controls":es?"long-menu":void 0,"aria-expanded":es?"true":void 0,"aria-haspopup":"true",onClick:t=>ex(t,e.id),"data-testid":"volunteer-".concat(t," action"),children:(0,n.jsx)(c.Z,{className:"text-white"})}),(0,n.jsx)(v.Z,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:q,open:es,onClose:eh,PaperProps:{style:{width:"9ch",fontSize:"13px"}},children:null===M.Qs||void 0===M.Qs?void 0:M.Qs.map(e=>(0,n.jsx)(f.Z,{onClick:t=>eh(t,e),value:e,className:"text-[13px]","data-testid":"menu-".concat(e),children:e},e))})]}),(0,n.jsx)(b.Z,{className:"mb-6 bg-primary-black-450 "}),(0,n.jsxs)(m.Z,{className:"flex md:justify-between md:flex-row md:gap-0 gap-3 flex-col md:items-center mb-3 md:w-1/2",children:[(0,n.jsxs)(h.Z,{children:[(0,n.jsx)(p.Z,{className:"text-grey-90 text-[13px]",children:"Title"}),(0,n.jsx)(p.Z,{className:"text-white md:text-[15px] text-[13px] font-semibold","data-testid":"volunteer-title",children:null==e?void 0:e.title_name})]}),(0,n.jsxs)(h.Z,{children:[(0,n.jsx)(p.Z,{className:"text-grey-90 text-[13px]","data-testid":"volunteer-count",children:"Volunteer Count"}),(0,n.jsx)(p.Z,{className:"text-white md:text-[15px] text-[13px] font-semibold",children:null==e?void 0:e.count})]})]}),(0,n.jsxs)(h.Z,{children:[(0,n.jsx)(p.Z,{className:"text-grey-90 text-[13px]","data-testid":"volunteer-description",children:"Description"}),(0,n.jsx)(p.Z,{className:"text-white text-[15px] font-semibold",children:(null==e?void 0:e.description)||"_"})]})]},null==e?void 0:e.id)):(0,n.jsx)(m.Z,{className:"flex items-center justify-center py-20",children:(0,n.jsx)(j.default,{src:"/assets/icons/handshake.svg",alt:"handshake",height:220,width:220})}),C&&(0,n.jsx)("div",{className:"absolute w-full h-full top-0 right-[10px]"})]}),(0,n.jsx)(I.Z,{fullWidth:!0,className:"h-11",onClick:eb,disabled:eo,"data-testid":"save-continue-button",children:V?"Saving...":"Save & Continue"})]}
1),(0,n.jsx)(U,{openModal:G,setOpenModal:H,edit:Y}),(0,n.jsx)(F.Z,{open:!!D,handleClose:()=>A(""),onDelete:()=>ep()}),(0,n.jsx)(N.default,{})]})]})}},51584:function(e,t,l){l.d(t,{C:function(){return d}});var s=l(57437),n=l(43348),a=l(68031),i=l(81616),r=l(2265),o=l(5106),d=e=>{var{countValue:t,handleChange:l,error:d,testid:u}=e,[c,m]=(0,r.useState)(t||0);return(0,r.useEffect)(()=>{t&&m(t)},[t]),(0,s.jsx)(o.ZP,{name:"count",value:c,size:"small",inputProps:{className:"h-full text-center","data-testid":null!=u?u:""},onChange:e=>{var t=e.target.value;t.match(n.jM)&&(m(parseInt(t,10)),l(parseInt(t,10)))},className:"h-[2.375rem]",error:d,InputProps:{style:{padding:0,backgroundColor:"#12121B",maxWidth:"9.5rem"},endAdornment:(0,s.jsx)(a.Z,{fontSize:"small",className:"bg-primary-black-500 h-12 w-[30%] rounded-tr-md rounded-br-md hover:cursor-pointer p-3",onClick:()=>{var e=c+1;m(e),l(e)},"data-testid":"increase-button"}),startAdornment:(0,s.jsx)(i.Z,{fontSize:"small",className:" bg-primary-black-500 h-12 w-[30%] rounded-tl-md rounded-bl-md hover:cursor-pointer p-3",onClick:()=>{if(c>0){var e=c-1;m(e),l(e)}},"data-testid":"decrease-button"})}})}},77860:function(e,t,l){var s=l(57437),n=l(78693),a=l(46387),i=l(82156),r=l(61994),o=l(2265);t.Z=e=>{var{className:t,onChange:l,size:d,value:u,variant:c,testId:m,disabled:p}=e,[h,x]=(0,o.useState)(!!u);(0,o.useEffect)(()=>{u!==h&&x(u)},[u]);var v=(0,i.Z)("(min-width:640px)");return(0,s.jsxs)(n.Z,{className:(0,r.Z)("flex items-center gap-[0.925rem] relative w-fit p-3 rounded-full cursor-pointer",h?"bg-primary-green-100":"bg-primary-black-450","small"===d?"py-[0.4375rem] px-1.5 pr-[5px]":"p-3",t,p&&"opacity-50 cursor-not-allowed"),"data-testid":m||"",onClick:function(e){p||(e.stopPropagation(),x(e=>(null==l||l(!e),!e)))},children:[(0,s.jsx)(a.Z,{className:"m-0 text-xs font-bold text-primary-black-500",children:"switch"===c?"YES":"ON"}),(0,s.jsx)(n.Z,{className:(0,r.Z)("absolute t-[0.0625rem] l-0 rounded-full bg-white z-10 transition-all","small"===d?"w-[1.6875rem] h-[1.4875rem]":"w-[2.21875rem] h-[2.21875rem]"),style:{transform:"small"==(v?"":"small")?h?"translateX(1.81rem)":"translateX(-0.5rem)":h?"translateX(1.71rem)":"translateX(-0.5rem)"}}),(0,s.jsx)(a.Z,{className:"m-0 text-xs font-bold text-primary-black-500",children:"switch"===c?"NO":"OFF"})]})}},57706:function(e,t,l){var s=l(8862),n=l(72371),a=l(79861),i=l(57437),r=l(10020),o=l(46387),d=l(28868),u=l(56113),c=l(5106);t.Z=e=>{var{className:t,errorMsg:l,label:m,removePadding:p,testid:h,inputProps:x,enableTheme:v=!1}=e,f=(0,a._)(e,["className","errorMsg","label","removePadding","testid","inputProps","enableTheme"]),{mode:b,toggleTheme:_}=(0,u.r)();return(0,i.jsxs)(i.Fragment,{children:[m&&(0,i.jsx)(r.Z,{htmlFor:"textAreaLabel",children:(0,i.jsx)(o.Z,{className:"".concat(v?"dark"===b?"text-white":"text-[#222222]":"text-white"," text-xs mb-2"),children:m})}),(0,i.jsx)(d.Z,(0,n._)((0,s._)({id:"textAreaLabel",error:!!l,multiline:!0,minRows:2,maxRows:8},f),{sx:v&&"dark"!==b?(0,n._)((0,s._)({},c.zZ),{"& .css-14g8ral-MuiInputBase-root-MuiOutlinedInput-root":{padding:p?"0":"auto"},"& .MuiInputBase-input::-webkit-scrollbar":{width:"8px",height:"12px",color:"black"},"& .MuiInputBase-input::-webkit-scrollbar-thumb":{backgroundColor:"white",borderRadius:"6px"}}):(0,n._)((0,s._)({},c.WV),{"& .css-14g8ral-MuiInputBase-root-MuiOutlinedInput-root":{padding:p?"0":"auto"},"& .MuiInputBase-input::-webkit-scrollbar":{width:"8px",height:"12px",color:"black"},"& .MuiInputBase-input::-webkit-scrollbar-thumb":{backgroundColor:"white",borderRadius:"6px"}}),className:t,helperText:l||null,inputProps:(0,n._)((0,s._)({},x),{"data-testid":null!=h?h:""})}))]})}},34755:function(e,t,l){l.d(t,{H:function(){return u},w:function(){return m}});var s=l(51713),n=l(8862),a=l(72371),i=l(90538),r=l(86876);function o(e){return d.apply(this,arguments)}function d(){return(d=(0,s._)(function*(e){var t=yield e.json().then(e=>null==e?void 0:e.message).catch(()=>void 0);throw new i.s(t||"Request failed",e.status,{})})).apply(this,arguments)}function u(e,t,l,s){return c.apply(this,arguments)}function c(){return(c=(0,s._)(function*(e,t,l,s){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5?arguments[5]:void 0,d=arguments.length>6?arguments[6]:void 0,u=!!i,c={method:e,headers:(0,n._)({"Content-Type":"application/json"},a),body:s},m=(0,n._)({method:e,headers:(0,n._)({},d?{}:{"Content-Type":"application/json"},l?{AuthorizationToken:l}:{},a)},s?{body:JSON.stringify(s)}:{}),p=yield fetch(u?"".concat(t):"".concat(r.bI).concat(t),u?c:m);return d?(!p.ok&&l&&(yield o(p)),p):(p.ok||(yield o(p)),p.json())})).apply(this,arguments)}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a._)((0,n._)({"Content-Type":"application/json"},t,e?{AuthorizationToken:e}:{}),{keepalive:"true"})}},86876:function(e,t,l){l.d(t,{Af:function(){return a},FH:function(){return r},PO:function(){return n},bI:function(){return s},uT:function(){return i}});var s="https://apis.runtheday.com/api/v2/",n="wss://qa-websocket.runtheday.com",a="https://apis.runtheday.com/api/v2/",i="https://email-builder.runtheday.com/api/v1/",r="https://runtheday.com"},1660:function(e,t,l){l.d(t,{j:function(){return x},y:function(){return p}});var s,n=l(51713),a=l(8862),i=l(72371),r=l(43209),o=l(34755),d=l(86876),u=null;function c(e){return m.apply(this,arguments)}function m(){return(m=(0,n._)(function*(e){return u||(u=(0,n._)(function*(){try{var t;return yield null===(t=yield fetch("".concat(d.bI,"generate-new-access-token?login_platform=").concat(r.PC.WEB),{method:"GET",headers:(0,o.w)(null==e?void 0:e.refreshToken)}))||void 0===t?void 0:t.json()}finally{u=null}})())})).apply(this,arguments)}function p(e){return h.apply(this,arguments)}
1function h(){return(h=(0,n._)(function*(e){var t,l,s,n,o,d=yield c(e);return(null==d?void 0:d.status)&&(null==d?void 0:d.statusCode)===r.uF.GENERATE_NEWTOKEN_SUCCESS?("function"==typeof(null==e?void 0:e.update)&&(yield e.update((0,i._)((0,a._)({},e),{data:null==d?void 0:d.data,source:"refreshToken"}))),null!==(o=null!==(n=null!==(s=null==d?void 0:null===(t=d.data)||void 0===t?void 0:t.accessToken)&&void 0!==s?s:null==d?void 0:null===(l=d.data)||void 0===l?void 0:l.access_token)&&void 0!==n?n:null==d?void 0:d.accessToken)&&void 0!==o?o:null):(console.error(r.aQ.RENEW_TOKEN_FAILURE_ERROR),null)})).apply(this,arguments)}var x=(s=(0,n._)(function*(e,t){try{var l=yield c(e);if((null==l?void 0:l.status)&&(null==l?void 0:l.statusCode)===r.uF.GENERATE_NEWTOKEN_SUCCESS){var s=yield t((0,i._)((0,a._)({},e),{data:l.data,source:"refreshToken"}));if(s&&s&&s.userDetails)return!0}}catch(e){return console.error("Error refreshing",e),null}}),function(e,t){return s.apply(this,arguments)})},71511:function(e,t,l){l.d(t,{a$:function(){return a},pI:function(){return i}});var s=l(8862),n=(0,l(14506).createSlice)({name:"arrowTab",initialState:{forms_completed:{race_info:!1,registration:!1,donation:!1,volunteer:!1,sponsorship:!1}},reducers:{updateFormsCompleted:(e,t)=>{e.forms_completed=(0,s._)({},e.forms_completed,t.payload)},clearFormsCheck:e=>{e.forms_completed={race_info:!1,registration:!1,donation:!1,volunteer:!1,sponsorship:!1}}}}),{updateFormsCompleted:a,clearFormsCheck:i}=n.actions;t.ZP=n.reducer},91638:function(e,t,l){l.d(t,{Lt:function(){return r},Lu:function(){return n},O8:function(){return a},vB:function(){return i}});var s=(0,l(14506).createSlice)({name:"raceId",initialState:{raceId:"",serviceId:"",updateRacesList:!1},reducers:{setRacesId:(e,t)=>{e.raceId=t.payload},setServiceId:(e,t)=>{e.serviceId=t.payload},setupdateRacesList:(e,t)=>{e.updateRacesList=t.payload},clearRaceId:e=>{e.raceId="",e.serviceId="",e.updateRacesList=!1}}}),{setServiceId:n,setRacesId:a,clearRaceId:i,setupdateRacesList:r}=s.actions;t.ZP=s.reducer},90538:function(e,t,l){l.d(t,{s:function(){return s}});class s extends Error{constructor(e,t,l){super(e),this.statusCode=t,this.data=l,Object.setPrototypeOf(this,s.prototype)}}}}]);

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.