1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5904],{63375:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/edit-participant-details/[eventId]/[participantId]",function(){return i(31026)}])},91146:function(e,t,i){"use strict";var r=i(85893);i(67294);t.Z=function(){return(0,r.jsx)("div",{className:"w-full h-[calc(100vh-250px)] px-10 py-10",children:(0,r.jsxs)("div",{className:"h-full flex flex-col items-center justify-center",children:[(0,r.jsx)("div",{className:" w-full h-12 flex items-start rounded-t-xl ",children:(0,r.jsx)("div",{className:"py-2 mx-5 h-10 w-2/4 bg-shimmer-div-bg-color rounded-xl shimmer-animation"})}),(0,r.jsx)("div",{className:" w-full h-12 flex items-start ",children:(0,r.jsx)("div",{className:"py-2 mx-5 h-10 w-[80%] bg-shimmer-div-bg-color rounded-xl shimmer-animation"})}),(0,r.jsx)("div",{className:" w-full h-12 flex items-start ",children:(0,r.jsx)("div",{className:"py-2 mx-5 h-10 w-2/4 bg-shimmer-div-bg-color rounded-xl shimmer-animation"})})]})})}},31026:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return B},default:function(){return J}});var r=i(85893),n=i(81043),l=i(39453),a=i(47568),o=i(34051),d=i.n(o),s=i(41664),u=i.n(s),c=i(11163),f=i(67294),p=i(26042),v=i(69396),m=i(29815),h=i(87536),g=i(42129),x=i(75423),b=i(11474),_=i(35666),w=i(61157),y=i(10631),j=i(94788),N=i(98289),k=i(8747),C=i(93349),V=i(98),Z=i(72812),D=i(35113),S=i(74831),E=function(e){var t=e.Widget,i=e.register,n=e.errors,l=e.setError,a=e.getValues,o=e.watch,d=e.setValue,s=e.clearErrors,u=e.trigger,c=e.defaultValue,f=e.forceDisabled,p=void 0!==f&&f,v=e.defaultOptions,m=e.currentLoopData,h=void 0===m?void 0:m,g=e.borderColor,x=e.disabledColor,b=e.fieldCssClass,E=t.label,I=t.id,L=t.placeholder,O=t.widget,q=t.required;return(0,r.jsx)(r.Fragment,{children:function(e){var f=e,m="",O=void 0,F=void 0;switch("emailfield"===f?(f="textfield",m="email"):"mobile"===f?(f="phone_number",O=10,F=10):"pincode"===f?(f="number",O=6,F=6):"dropdown"===f&&(f="dropdown2"),f){case"textfield":return(0,r.jsx)(N.Z,{register:i,label:E,errors:n,field:I,placeholder:L,validation:null!==m&&void 0!==m?m:t.validation,disabled:p||t.disabled,setValue:d,verificationType:t.verificationType,getValues:a,clearErrors:s,required:q,defaultValue:c,defaultEmailVerify:h,borderColor:g,disabledColor:x});case"number":var P,T;return(0,r.jsx)(_.Z,{register:i,label:E,errors:n,field:I,placeholder:L,validation:t.validation,disabled:p||t.isDesabled,required:q,verificationType:t.verificationType,setError:l,getValues:a,minLength:null!==(P=t.minLength)&&void 0!==P?P:O,maxLength:null!==(T=t.maxLength)&&void 0!==T?T:F,defaultValue:c,setValue:d,borderColor:g,disabledColor:x});case"phone_number":var M,U;return(0,r.jsx)(w.Z,{register:i,label:E,errors:n,field:I,placeholder:L,validation:t.validation,disabled:p||t.isDesabled,required:!0,verificationType:t.verificationType,setError:l,getValues:a,minLength:null!==(M=t.minLength)&&void 0!==M?M:O,maxLength:null!==(U=t.maxLength)&&void 0!==U?U:F,setValue:d,trigger:u,onlyCountry:"in",defaultValue:null!==c&&void 0!==c?c:null,borderColor:g,fieldCssClass:b});case"dropdown2":var R=v||t.options;return(0,r.jsx)(Z.Z,{register:i,label:E,errors:n,name:I,required:null===t||void 0===t?void 0:t.required,options:R,showSearch:null===t||void 0===t?void 0:t.showSearch,setValue:d,trigger:u,showLink:!!t.link&&t.link,disabled:p,defaultValue:c,borderColor:g,disabledColor:x},t.id);case"radiobox":return(0,r.jsx)(y.Z,{register:i,label:E,errors:n,field:I,disabled:p,defaultValue:c,setValue:d,inputClass:h||void 0});case"checkbox":return(0,r.jsx)(j.Z,{register:i,label:E,errors:n,field:I,options:t.options,defaultOptions:t.defaultOptions,getValues:a,hideCheckbox:!1,trigger:u,watch:o,setValue:d,required:t.required,OptionWithUrl:t.OptionWithUrl});case"calendar":return(0,r.jsx)(k.Z,{register:i,label:E,errors:n,field:I,placeholder:L,setValue:d,defaultValue:c,showErrorMessage:!0,getValues:a,disabled:p,borderColor:g,minAge:null===t||void 0===t?void 0:t.minAge,ageComparisonDate:h,minDate:null===t||void 0===t?void 0:t.min,maxDate:null===t||void 0===t?void 0:t.max});case"custom-radio":return(0,r.jsx)(C.Z,{register:i,label:E,errors:n,field:I,disabled:p,options:t.options,defaultValue:c,setValue:d,guideImageURL:null===e||void 0===e?void 0:e.guideImageURL,getValues:a,borderColor:g,disabledColor:x});case"file-input-with-upload":var A;return(0,r.jsx)(V.Z,{register:i,label:E,errors:n,disabled:p||t.isDisabled,required:q,setError:l,getValues:a,defaultValue:c||"",setValue:d,uploadFields:null!==(A=null===t||void 0===t?void 0:t.uploadFields)&&void 0!==A?A:D.kg,trigger:u,uploadedDocuments:h});case"time":return(0,r.jsx)(S.Z,{register:i,errors:n,required:null===t||void 0===t?void 0:t.required,setValue:d,trigger:u,disabled:p,borderColor:g,disabledColor:x,DefaultValue:h,fields:null===t||void 0===t?void 0:t.fields})}}(O)})},I=i(4811),L=i(91146),O=i(57688),q=i(44636),F=i(25675),P=i.n(F),T=function(e){var t=e.UpdateProfile,i=e.externalCss,n=void 0===i?"pt-10 pb-[6.5rem]":i,l=e.photo_url,a=(0,D.gz)(l);return(0,r.jsxs)("div",{className:" ".concat(n," md:justify-start md:shadow-profileForm my-4 flex flex-col md:flex-row justify-center w-full items-center py-5 px-6 gap-3 md:rounded-xl"),children:[(0,r.jsx)("div",{className:"md:bg-neutral-300 rounded-full p-[2px] h-40 w-40 md:w-32 md:h-32 relative",children:(0,r.jsx)(P(
1),{alt:"user-profile-pic",id:"user-profile-img",src:a,layout:"fill",className:"rounded-full"})}),(0,r.jsxs)("div",{className:"flex flex-col items-center md:items-start md:ml-5",children:[(0,r.jsx)("div",{className:"flex gap-5 justify-center",children:(0,r.jsxs)("label",{htmlFor:"open-file-profile",className:"flex items-center bg-primary-500 disabled:bg-neutral-400 bg:text-neutral-200 disabled:cursor-not-allowed rounded-lg text-white font-bold py-2 px-3 md:px-6 cursor-pointer",children:[(0,r.jsx)("input",{type:"file",id:"open-file-profile",accept:".jpeg, .jpg, .png",hidden:!0,onChange:function(e){return t(e)}}),(0,r.jsx)("span",{children:"Update"})]})}),(0,r.jsxs)("div",{className:"text-neutral-500 text-sm font-medium flex flex-col pt-2",children:[(0,r.jsx)("small",{children:"Supported file formats: JPEG and PNG."}),(0,r.jsx)("small",{children:"Max file size: 2mb."})]})]})]})},M=i(99534),U={"Half Marathon":"hm",Marathon:"m","5K":"5k","Full Marathon":"fm"},R=function(e,t,i){return e.filter((function(e){return"Not Applicable"!==e})).reduce((function(e,r){var n=t===r?i:"Select";return e["proof_type_"+U[r]]=n,e}),{})},A=function(e,t){e.proof_type;var i=(0,M.Z)(e,["proof_type"]),r={};if("Not Applicable"===(null===e||void 0===e?void 0:e.time_cert_race_distance)&&(r.hrs="",r.mins="",r.secs="",r.timing_cert_link="",r.timing_cert_photo="",r.timing_cert_photo_url="",r.time_cert_race_distance=e.time_cert_race_distance),"Certificate Photo"===(null===e||void 0===e?void 0:e.proof_type)){var n=R(t,null===e||void 0===e?void 0:e.time_cert_race_distance,null===e||void 0===e?void 0:e.proof_type);(r=(0,p.Z)({},i,n)).timing_cert_link=""}if("Link"===(null===e||void 0===e?void 0:e.proof_type)){var l=R(t,null===e||void 0===e?void 0:e.time_cert_race_distance,null===e||void 0===e?void 0:e.proof_type);(r=(0,p.Z)({},i,l)).timing_cert_photo="",r.timing_cert_photo_url=""}return r},X=function(e){var t=e.sectionInfo,i=e.DefaultValues,l=e.participantId,o=e.refreshParticipantsData,s=e.eventDate,u=e.DisabledFields,c=(0,h.cI)({mode:"onChange"}),_=c.register,w=c.handleSubmit,y=c.watch,j=(c.reset,c.getValues),N=c.setError,k=c.setValue,C=c.clearErrors,V=c.unregister,Z=c.trigger,S=(c.control,c.formState),F=S.errors,P=(S.touchedFields,S.isValid,S.isDirty),M=y(),R=M.time_cert_race_distance,X=M.gender,z=(0,n.I0)(),W=(0,n.v9)(x._b),G=W.profileSnackBar,H=W.optionsConfig,K=function(){var e=(0,a.Z)(d().mark((function e(r,n){var a,s,u,c,f,p;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),a=(0,D.fq)(r,i).changedValues,s=a,"timing-details"===(null===t||void 0===t?void 0:t.identity)&&(c=null===(u=null===t||void 0===t?void 0:t.sections[0].widgets[0])||void 0===u?void 0:u.options,f=A(r,c),p=(0,D.fq)(f,i).changedValues,s=p),e.next=6,(0,I.Qw)(l,s);case 6:200===e.sent.statusCode?(z((0,x.eX)({show:!0,message:"Participant Data Updated Successfully!"})),o()):z((0,x.eX)({show:!0,type:"failure",message:"Something went wrong!"}));case 8:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}(),B=function(){var e=(0,a.Z)(d().mark((function e(t){var i,r,n,a,s,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.target,!(n=null===(i=r.files)||void 0===i?void 0:i[0])){e.next=21;break}if(!(n.size<=O.xC)){e.next=18;break}return a=(0,D.lY)(),s=(0,D.km)(null===n||void 0===n?void 0:n.name),e.next=9,(0,q.I)("profile-data/".concat(a),s,n);case 9:if(!(u=e.sent).location){e.next=16;break}return r.value="",e.next=14,(0,I.Qw)(l,{photo_url:u.location,photo:null===n||void 0===n?void 0:n.name});case 14:200===e.sent.statusCode?(z((0,x.eX)({show:!0,message:"Profile Picture Updated Successfully."})),o()):z((0,x.eX)({show:!0,type:"failure",message:"Something went wrong!"}));case 16:e.next=19;break;case 18:console.log("File should be less than and equal to 2MB."),r.value="";case 19:e.next=22;break;case 21:console.log("File Not Selected!"),r.value="";case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){(null===G||void 0===G?void 0:G.show)&&setTimeout((function(){z((0,x.eX)({show:!1}))}),5e3)}),[null===G||void 0===G?void 0:G.show]),(0,f.useEffect)((function(){var e=function(){var e=(0,a.Z)(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,I.nl)();case 2:t=e.sent,z((0,x.SZ)(t.data));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();0===H.length&&e()}),[H,z]),(0,f.useEffect)((function(){R!==i.time_cert_race_distance&&k("timing_cert_link","")}),[R]),(0,f.useEffect)((function(){"Male"===X&&V("t_shirt_size_female"),"Female"===X&&V("t_shirt_size_male")}),[X]),0===H.length?(0,r.jsx)(L.Z,{}):(0,r.jsxs)("form",{onSubmit:w(K),className:"w-full pb-44 md:w-10/12 xl:w-1/2 xl:mx-auto h-full min-h-fit md:h-auto md:min-
1h-[350px] relative overflow-hidden",children:[(0,r.jsx)("div",{className:" flex flex-col gap-4 md:gap-7 w-full py-2 my-2",children:t.sections.map((function(e,t){var n=e;if("participant-info"===(null===e||void 0===e?void 0:e.identity)&&X){var l=null===n||void 0===n?void 0:n.widgets.map((function(e){if("gender"==(null===e||void 0===e?void 0:e.id))return(0,v.Z)((0,p.Z)({},null===e||void 0===e?void 0:e.widgets[X][0]),{dependentOn:e.id,dependentFieldValue:e.id})})).filter((function(e){return e})),a=null===n||void 0===n?void 0:n.widgets.map((function(e){return"gender"===(null===e||void 0===e?void 0:e.id)?[e].concat((0,m.Z)(l)):"country"===(null===e||void 0===e?void 0:e.id)?[e].concat((0,m.Z)(D.cK)):[e]})).flat();n=(0,v.Z)((0,p.Z)({},n),{widgets:a})}if("Terms & Conditions"!==(null===e||void 0===e?void 0:e.title)&&"Stay Related Details"!==(null===e||void 0===e?void 0:e.title))return"verification"===(null===e||void 0===e?void 0:e.identity)&&(n=D.F4),"confirmation-criteria"!==(null===e||void 0===e?void 0:e.identity)&&"timing-certificate"!==(null===e||void 0===e?void 0:e.identity)||(n=function(e,t){var i,r={title:e.title,widgets:[]};r.widgets.push(e.widgets[0]);var n=null===(i=e.widgets[0])||void 0===i?void 0:i.options.filter((function(e){return"Not Applicable"!==e})),l=n.map((function(e){return"proof_type_"+(U[e]||e.toLowerCase())})),a={widget:"dropdown2",label:"Proof Type",id:"proof_type",defaultValue:"Select Proof Type",required:!0,showLink:!1,showSearch:!1,options:["Link","Certificate Photo"],dependentOn:"time_cert_race_distance",dependentValue:n,defaultFields:l};return r.widgets.push({widget:"time",id:"net-finish-time",label:"Net Finish Time",dependentValue:n,dependentOn:"time_cert_race_distance",fields:[{name:"hrs",label:"HOURS"},{name:"mins",label:"MINS"},{name:"secs",label:"SECONDS"}]}),r.widgets.push(a),r.widgets.push({widget:"textfield",label:"Timing Certificate Link",id:"timing_cert_link",required:!0,dependentOn:"proof_type",dependentValue:["Link"]}),r.widgets.push({widget:"file-input-with-upload",id:"timing-certificate-photo",required:!0,dependentOn:"proof_type",dependentValue:["Certificate Photo"],uploadFields:{Certificate:[{fieldName:"timing_cert_photo_url",label:"Timing Certificate",required:!0}]}}),r}(e,i.time_cert_race_distance)),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:" p-2 bg-slate-100 rounded-lg mb-2 md:mb-4",children:null===e||void 0===e?void 0:e.title}),n.widgets.map((function(t,n){if("existing-medical-conditions"!==t.id){var l=null,a=null,d=i[t.id],c=u.includes(t.id);if("dob"===t.id&&(l=null===s||void 0===s?void 0:s.split("T")[0]),"verification"===(null===e||void 0===e?void 0:e.identity)&&"id_proof"===t.id&&d&&(c=!0),"upload"===(null===t||void 0===t?void 0:t.widget)&&"photo"===t.id)return(0,r.jsxs)("div",{className:" py-2 md:py-5",children:[(0,r.jsx)(g.Z,{label:null===t||void 0===t?void 0:t.label}),(0,r.jsx)(T,{UpdateProfile:B,externalCss:"",photo_url:i.photo_url},o+"profile")]},"upload-participant-photo");if((null===t||void 0===t?void 0:t.dependentOn)&&(null===t||void 0===t?void 0:t.dependentValue)){var f=j(t.dependentOn);if("timing_cert_link"===t.id&&"Not Applicable"===j("time_cert_race_distance"))return;if(!(null===t||void 0===t?void 0:t.dependentValue.includes(f)))return}if("radiobox"===(null===t||void 0===t?void 0:t.widget)&&(l="profile-radio-input"),"proof_type"===(null===t||void 0===t?void 0:t.id)){var v=t.defaultFields.find((function(e){return"Select"!==i[e]}));d=i.time_cert_race_distance===j("time_cert_race_distance")?i[v]:"Select"}if("net-finish-time"===(null===t||void 0===t?void 0:t.id)&&(l=i.time_cert_race_distance===j("time_cert_race_distance")?i:[]),"timing-certificate-photo"===(null===t||void 0===t?void 0:t.id)){if("Not Applicable"===j("time_cert_race_distance"))return;d="Certificate",l=(0,p.Z)({},i)}if("timing_cert_link"===(null===t||void 0===t?void 0:t.id)&&(d=i.time_cert_race_distance===j("time_cert_race_distance")?d:""),"file-input-with-upload"===(null===t||void 0===t?void 0:t.widget)&&"file-input-documents"===t.id){var m=j(null===t||void 0===t?void 0:t.dependentOn);if(!m||"Select"===m)return;var h={},x=null===t||void 0===t?void 0:t.uploadFields[m];if(x&&x.length>0&&i)for(var b in x){var w,V,S,I,L;if(i[null===(w=x[b])||void 0===w?void 0:w.fieldName])h[null===(V=x[b])||void 0===V?void 0:V.fieldName.slice(0,-4)]=i[null===(S=x[b])||void 0===S?void 0:S.fieldName.slice(0,-4)],h[null===(I=x[b])||void 0===I?void 0:I.fieldName]=i[null===(L=x[b])||void 0===L?void 0:L.fieldName]}Object.keys(h).length>0&&(l=h),d=m}var O,q=y(),P=q.country,M=q.state;q.email;if((null===t||void 0===t?void 0:t.getOptionsFromConfig)&&(a=H.filter((function(e){return Object.keys(e)[0]===(null===t||void 0===t?void 0:t.id)})).map((function(e){return e[t.id]}))[0]),"state"===t.id&&"India"!==P&&(c=!0),"city"===t.id)if("Select"!==M&&M&&"India"===P){var U=H.filter((function(e){if(e.stateCityMapping)return e.stateCityMapping}));a=(0,D.MC)(U[0].stateCityMapping,M)}else c=!0;return"run_club"!==t.id&&"nationality"!==t.id&&"country"!==t.id&&"blood-group"!==t.id||(a=H.filter((function(e){return Object.keys(e)[0]===(null===t||void 0===t?void 0:t.id)})).map((function(e){return e[t.id]}))[0]),(0,r.jsxs)("div",{className:"flex w-full md:mx-0 flex-col gap-2 md:gap-4 my-1 md:my-2 ",children:[(null===t||void 0===t?void 0:t.label)&&(0,r.jsx)(g.Z,{label:null!==(O=null===t||void 0===t?void 0:t.summaryLabel)&&void 0!==O?O:t.label,required:null===t||void 0===t?void 0:t.required}),(0,r.jsx)(E,{Widget:t,register:_,errors:F,setError:N,getValues:j,setValue:k,clearErrors:C,watch:y,trigger:Z,defaultValue:d,defaultOptions:a||null,currentLoopData:l,borderColor:"border-[#D0D0D0] disabled:text-textDisable-color",disabledColor:"bg-bgDisable-color",forceDisabled:c,fieldCssClass:"emergency_contact_mobile"})]},n)}}))]},null===e||void 0===e?void 0:e.title)}))}),(null===G||void 0===G?void 0:G.show)&&(0,r.jsx)(b.Z,(0,p.Z)({},G)),(0,r.jsx)("div",{className:"my-5 flex justify-between items-center",children:(0,r.jsx)("input",{disabled:!P,type:"submit",value:"Save Changes",className:"w-full md:w-auto h-12 bg-primary-500 disabled:bg-neutral-400 bg:text-neutral-200 disabled:cursor-not-allowed rounded-lg text-white font-bold py-2 px-6 cursor-pointer"})})]}
1,null===t||void 0===t?void 0:t.title)},z=i(47044),W=i(13575),G=function(e){var t,i,n=e.id,l=e.eventId,o=e.slug,s=(0,c.useRouter)(),p=(0,z.f)({fetchLegacyProfile:!1,loginMessage:"Please login to edit participant details."}).pageLoading,v=(0,f.useState)(null),m=v[0],h=v[1],g=(0,f.useState)(null),x=g[0],b=g[1],_=(0,f.useState)(""),w=_[0],y=_[1],j=(0,f.useState)(0),N=j[0],k=j[1],C=(0,f.useState)(null),V=C[0],Z=C[1],S=function(){k((function(e){return e+1}))};return(0,f.useEffect)((function(){var e=function(){var e=(0,a.Z)(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,I.J8)(n);case 3:t=e.sent,h(t.data),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error fetching participant data:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();n&&e()}),[n,N]),(0,f.useEffect)((function(){var e=function(){var e=(0,a.Z)(d().mark((function e(){var t,i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,I.P6)({name:"non_editable_fields_for_edit_participants",configType:"default_fields"});case 3:r=e.sent,Z(null===(t=r.data)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.nonEditableFields);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,f.useEffect)((function(){var e=function(){var e=(0,a.Z)(d().mark((function e(){var t,i,r,n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(null===m||void 0===m||null===(t=m.information)||void 0===t?void 0:t.raceId)){e.next=8;break}return e.next=6,(0,I.qb)(o,{categoryId:[null===m||void 0===m||null===(i=m.information)||void 0===i?void 0:i.raceId]});case 6:n=e.sent,b(n.data[null===m||void 0===m||null===(r=m.information)||void 0===r?void 0:r.raceId]);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching participant form fields:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();x||e()}),[o,m]),p?(0,r.jsx)(W.Z,{}):m&&x&&V?(0,r.jsxs)("div",{className:" min-h-screen w-screen",children:[(0,r.jsxs)("div",{className:"min-h-[20vh] bg-tertiary-400 relative gap-y-2 md:gap-y-4 px-4 py-3 flex items-start md:items-center flex-col",children:[(0,r.jsx)(u(),{href:"/profile/edit-participant-details/".concat(l),passHref:!0,children:(0,r.jsx)("img",{alt:"back-button",src:"/icons/arrow-left.svg",className:"py-2 px-1 md:absolute md:top-5 md:left-5 hover:cursor-pointer"})}),(0,r.jsx)("img",{src:"/icons/IR- Logo-Transparent.svg",alt:"ir-logo",className:" w-[200px] md:w-[250px] px-6 hover:cursor-pointer hidden md:block",onClick:function(){return s.push("/")}}),(0,r.jsx)("h1",{className:"text-neutral-800 font-semibold text-lg md:text-3xl py-5 md:py-0",children:null===m||void 0===m||null===(t=m.event)||void 0===t?void 0:t.title}),(0,r.jsxs)("div",{className:" flex justify-start items-center md:pt-5 gap-2",children:[(0,r.jsx)("span",{className:" text-lg",children:"Category :"}),(0,r.jsx)("span",{className:" text-black bg-white p-2 px-3 text-sm md:text-base font-semibold rounded",children:null===m||void 0===m||null===(i=m.information)||void 0===i?void 0:i.raceName})]})]}),(0,r.jsxs)("div",{className:"min-h-[70vh] mx-4 max-w-card-container md:mx-auto",children:[(0,r.jsx)("h2",{className:"text-neutral-800 font-semibold text-lg md:text-3xl pt-5 pb-3 md:py-0 my-4 md:my-6",children:"Registration Details"}),(0,r.jsx)("div",{className:" flex flex-col shadow-profileSideNav rounded-lg mb-10",children:x.map((function(e){var t;if(!D.ZY.includes(null===e||void 0===e?void 0:e.identity)){var i=w===e.identity;return(0,r.jsxs)("div",{className:" pt-4 min-h-fit ",children:[(0,r.jsx)("div",{className:"border-b-1 pb-4 md:hover:cursor-pointer ".concat(i?" border-secondary-600":"border-neutral-200"," "),onClick:function(){return t=e.identity,void y((function(e){return e!==t?t:""}));var t},children:(0,r.jsxs)("div",{className:"px-4 flex items-center justify-between ",children:[(0,r.jsx)("span",{children:e.title}),(0,r.jsx)("img",{src:"/icons/DropdownIcon.svg",alt:"drop-down-icon",className:"h-6 w-6 hover:cursor-pointer ".concat(i?"":"rotate-180")}
1)]})}),i&&(0,r.jsx)("div",{className:" h-[30%] min-h-fit p-4",children:(0,r.jsx)(X,{sectionInfo:e,DefaultValues:null===m||void 0===m?void 0:m.information,participantId:n,refreshParticipantsData:S,eventDate:null===m||void 0===m||null===(t=m.event)||void 0===t?void 0:t.eventDate,DisabledFields:V})})]},e.identity)}}))})]})]}):(0,r.jsx)(W.Z,{})},H=i(9008),K=i.n(H),B=!0,J=function(e){var t=e.id,i=e.eventId,a=e.slug;return(0,r.jsxs)(n.zt,{store:l.h,children:[(0,r.jsx)(K(),{children:(0,r.jsx)("title",{children:"Update Registration Details | India Running"})}),(0,r.jsx)(G,{id:t,eventId:i,slug:a})]})}},39957:function(e,t,i){"use strict";i.d(t,{Kv:function(){return f},bG:function(){return v},dj:function(){return c},et:function(){return m},gy:function(){return u},wt:function(){return p}});var r=i(47568),n=i(34051),l=i.n(n),a=i(46020),o=i(64369),d=i(12562),s=function(){return(0,a.V)()},u=function(){var e=(0,r.Z)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.Dk)("".concat(s(),"/auth/sendOtpLogin"),t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=(0,r.Z)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.Dk)("".concat(s(),"/auth/verifyOtpLogin"),t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=(0,r.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.Ni)("".concat(s(),"/auth/logout"),{});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=(0,r.Z)(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.wt)();case 2:return t=e.sent,e.abrupt("return",{data:t.data,statusCode:t.statusCode});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=(0,r.Z)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.mI)("".concat(s(),"/user_profile/marketplace"),t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=(function(){var e=(0,r.Z)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.Dk)("".concat(s(),"/auth/register"),t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}(),function(){var e=(0,r.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.N9)("".concat(s(),"/user_profile/marketplace"));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}())}},function(e){e.O(0,[5675,4384,1512,2562,5778,8489,3394,9774,532,2888,179],(function(){return t=63375,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.