PageSourceSearch

https://registrations.indiarunning.com/static/js/686.7b224ac5.chunk.js

js indiarunning.com collected 2026-09-24 11:34:19 UTC 89,932 bytes, 1 lines download raw bytes

1(self.webpackChunkfitpage_registration_platform=self.webpackChunkfitpage_registration_platform||[]).push([[686,428],{2428:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});var l=s(6364),a=s(7238),i=s(6417);const n=e=>{let{title:t="ERROR 404",message:s="The page you are looking for can't be found"}=e;return(0,i.jsxs)("div",{className:"h-screen overflow-y-auto",children:[(0,i.jsx)("div",{className:"flex flex-col w-full smobile:pb-6 tablet:pb-0 bg-gradient-to-r from-[#002E25] to-[#002E25]",children:(0,i.jsx)(a.Z,{showLoginButton:!1})}),(0,i.jsx)("div",{className:"flex justify-center bg-gray-100 smobile:pt-5 smobile:pb-7 tablet:pt-16 tablet:pb-20",children:(0,i.jsx)("div",{className:"flex justify-center mx-4 bg-white rounded-md smobile:w-full tablet:w-3/5 py-7",children:(0,i.jsxs)("div",{className:"relative z-10",children:[(0,i.jsx)("div",{className:"flex items-center justify-center",children:(0,i.jsx)("p",{className:"font-medium smobile:text-sm tablet:text-xl ",children:t})}),(0,i.jsxs)("div",{className:"my-8",children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{className:"w-96 h-60",src:"/Errorbackground.png",alt:"ErrorBackground"})}),(0,i.jsx)("div",{className:"absolute inset-0 z-10 flex justify-center smobile:mt-0 tablet:mt-2 top-10",children:(0,i.jsx)("img",{className:"h-16 w-44",src:"/Pagenotfound.png",alt:"PageNotFound"})}),(0,i.jsxs)("div",{className:"absolute inset-0 z-10 flex justify-center smobile:-mt-1 tablet:mt-1 top-24",children:[(0,i.jsx)("img",{className:"inset-x-0 bottom-0 h-64 w-28",src:"/Errorcharacter1.png",alt:"ErrorCharacter1"}),(0,i.jsx)("img",{className:"h-64 ml-6 w-28",src:"/Errorcharacter2.png",alt:"ErrorCharacter2"})]}),(0,i.jsx)("div",{className:"inset-0 flex items-center justify-center mt-12",children:(0,i.jsx)("img",{className:"h-8 w-72",src:"/path.png",alt:"Path"})})]}),(0,i.jsx)("div",{className:"flex flex-col items-center justify-center",children:(0,i.jsx)("p",{className:"font-normal smobile:text-sm tablet:text-base text-light ",children:s})})]})})}),(0,i.jsx)(l.Z,{})]})}},6364:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var l=s(5568),a=s(5635),i=s(7339),n=s(6417);const r=()=>{const e="scf-global-10k-run-navi-mumbai-49838"!==(0,a.C)(l.$k);return(0,i.Sn)()?null:(0,n.jsxs)("footer",{className:"relative flex flex-col w-full h-auto text-white bg-gradient-to-r from-neutral-800 to-neutral-800",children:[e&&(0,n.jsxs)("div",{className:"flex flex-col justify-between w-full gap-3 py-5 tablet:flex-row lmobile:px-8 mtablet:px-12 tablet:px-24 lg:px-28",children:[(0,n.jsxs)("div",{className:"flex flex-row justify-center py-2 text-sm tablet:text-base",children:[(0,n.jsx)("span",{className:"font-semibold",children:"Contact Us:"}),(0,n.jsx)("a",{href:"mailto:[email protected]",children:(0,n.jsx)("p",{className:"ml-2 font-medium text-primaryPink-500",children:"[email protected]"})})]}),(0,n.jsx)("span",{className:"border-dotted border-white/20 border-t-1"}),(0,n.jsxs)("div",{className:"flex flex-row items-center justify-center text-sm tablet:text-base ",children:[(0,n.jsx)("p",{className:"px-5 font-semibold",children:"Follow Us"}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,n.jsx)("a",{href:"https://www.facebook.com/IndiaRunning/",target:"_blank",rel:"noreferrer",children:(0,n.jsx)("img",{src:"/facebook-logo.svg",alt:"facebook-logo",className:"h-6"})}),(0,n.jsx)("a",{href:"https://www.instagram.com/indiarunning_/",target:"_blank",rel:"noreferrer",children:(0,n.jsx)("img",{src:"/instagram-logo.svg",alt:"instagram-logo",className:"h-6"})})]})]})]}),(0,n.jsx)("span",{className:"border-dotted border-white/20 border-t-1",children:(0,n.jsxs)("div",{className:"flex flex-col-reverse justify-between px-4 tablet:flex-row lmobile:px-8 mtablet:px-12 tablet:px-24 lg:px-28 justify-items-center",children:[(0,n.jsx)("div",{className:"flex justify-center tablet:justify-start tablet:justify-items-center",children:(0,n.jsxs)("small",{className:"mt-5 mb-6 text-xs tablet:pt-6 text-white/70 tablet:mt-0",children:["Copyright \xa9 ",(new Date).getFullYear()," IndiaRunning, All Right Reserved"]})}),e&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex justify-center tablet:justify-end",children:[(0,n.jsx)("p",{className:"mt-2 text-sm font-normal tablet:text-base",children:"Powered by"}),(0,n.jsx)("a",{href:"https://fitpage.in/",target:"_blank",rel:"noreferrer",children:(0,n.jsx)("img",{src:"/fitpage-logo.svg",alt:"fitpage-logo",className:"mt-1 ml-2 h-7 tablet:h-8"})})]}),(0,n.jsx)("p",{className:"text-xs text-center tablet:text-end",children:"Saransh Ventures Private Limited"})]})]})})]})}},3686:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>Xe});var l=s(7313),a=s(9603),i=s(5568),n=s(2568),r=s(4063),o=s(6355),c=s(5635),d=s(6417);const x=()=>(0,d.jsx)("div",{className:"text-left",children:(0,d.jsxs)("svg",{"aria-hidden":"true",className:"inline w-5 h-5 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,d.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})});var m=s(8801),b=s(1168),u=s(9381);const p=e=>{let{externalStyle:t}=e;return(0,d.jsx)("div",{className:t,children:(0,d.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M1.06641 5.23448L4.73925 8.69127L8.41209 5.23448M4.73925 8.69127V0.790039V8.69127Z",stroke:"#00856C",strokeWidth:"1.51852",strokeLinecap:"round",strokeLinejoin:"round"})})})},h=e=>{let{externalCss:t}=e;return(0,d.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,d.jsx)("g",{id:"chevron-down",children:(0,d.jsx)("path",{id:"Icon",d:"M5 7.5L10 12.5L15 7.5",stroke:"#667085",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})})};var f=s(1622),g=s(2207),v=s(7137);const j=()=>(0,d.jsx)("div",{children:(0,d.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M17 17L13.2223 13.2156L17 17ZM15.3158 8.15789C15.3158 10.0563 14.5617 11.8769 13.2193 13.2193C11.8769 14.5617 10.0563 15.3158 8.15789 15.3158C6.2595 15.3158 4.43886 14.5617 3.0965 13.2193C1.75413 11.8769 1 10.0563 1 8.15789C1 6.2595 1.75413 4.43886 3.0965 3.0965C4.43886 1.75413 6.2595 1 8.15789 1C10.0563 1 11.8769 1.75413 13.2193 3.0965C14.5617 4.43886 15.3158 6.2595 15.3158 8.15789V8.15789Z",stroke:"#484848",strokeWidth:"round"})})}),w=e=>{var t;let{options:s,defaultValue:a="",showSearch:i=!1,disabled:n=!1,borderColor:r="border-black",disabledColor:o="bg-form-field-disabled-color/50",setSelected:c,select:x,OptionConfig:m,className:b="w-auto max-w-[200px]"}=e;const[u,p]=(0,l.useState)(!1),[h,f]=(0,l.useState)([]),g=(0,l.useRef)(null),w=e=>(0,d.jsx)(d.Fragment,{children:e.map(((e,t)=>(0,d.jsx)("li",{className:"hover:bg-gray-100 text-start border rounded-lg mt-2 hover:cursor-pointer p-2 ",onClick:t=>{(e=>{"Select"!==e&&(c(e),p(!1),f([]))})(e),t.stopPropagation()},children:m?m[e]:e},t)))});return(0,l.useEffect)((()=>{a&&c(a)}),[a]),(0,d.jsxs)("div",{className:"relative ".concat(b),onMouseLeave:()=>p(!1),children:[(0,d.jsxs)("div",{className:"flex flex-row justify-between border-1 ".concat(r," rounded-lg p-3 px-4 ").concat(n?o:"bg-white","\n        ").concat(u?" border-red-300 rounded-b-none":"","\n        ").concat(i?"":"!border-b-[1px]","\n         items-center"),onClick:()=>{n||(p((e=>!e)),f([]))},children:[(0,d.jsx)("input",{className:"w-full outline-none select-none ".concat(n?o:"bg-white"," font-normal"),value:x?m?m[x]:x:"Select",readOnly:!0,style:{color:n?"#bdbdbd":""}}),(0,d.jsx)(v.Z,{className:"h-5 cursor-pointer ".concat(u?"rotate-180":"")})]}),u&&(0,d.jsxs)("div",{className:"w-full h-hit  flex items-center border border-input-b border-t-0 ".concat(r," flex-col absolute bg-white z-50 ").concat(u?"border-red-300":""),children:[i&&(0,d.jsxs)("div",{className:"relative  w-full flex justify-center mt-1",children:[(0,d.jsx)("input",{placeholder:"Search",ref:g,type:"text",maxLength:20,className:"p-2 pl-12 font-semibold border outline-none  bg-slate-200 border-input-b focus:border-red-200 rounded-form",onChange:e=>(e=>{const t=s.filter((t=>{var s;return m?null===(s=m[t])||void 0===s?void 0:s.toLowerCase().includes(e.toLowerCase()):t.toLowerCase().includes(e.toLowerCase())}));f(t)})(e.target.value),style:{width:"99%"}}),(0,d.jsx)("div",{className:"absolute -translate-y-1/2  top-1/2 left-5 bg-slate-50",children:(0,d.jsx)(j,{})})]}),(0,d.jsx)("ul",{className:"flex flex-col justify-start w-full p-2 py-1 pb-2 overflow-auto h-fit tablet:py-2 tablet:pb-3",children:h.length>0?w(h):g.current&&(null===(t=g.current)||void 0===t?void 0:t.value.length)>0?(0,d.jsx)("p",{className:"text-red-500 ",children:"Result Not Found!"}):w(s)})]})]})};var y=s(3768);const N=["most_recent","most_relevant","most_critical","most_popular"],C={most_recent:"Most Recent",most_critical:"Most Critical",most_relevant:"Most Relevant",most_popular:"Most Popular"},k={full:"full-star.svg",half:"half-star.svg",blank:"star-outline.svg"},_=[{value:1,icon:"/review-bad.svg"},{value:2,icon:"/review-bad.svg"},{value:3,icon:"/review-average.svg"},{value:4,icon:"/review-good.svg"},{value:5,icon:"/review-good.svg"}
1],S={Communication:"registration-communication.svg",Hospitality:"expo-experience.svg",Engagement:"entertainment.svg",Safety:"medical-facilities.svg"},E=[{id:1,value:"Spam/False information"},{id:2,value:"Abuse & harassment"},{id:0,value:"Other",otherText:""}],R=()=>(0,d.jsx)("div",{className:"w-full max-w-md mx-auto bg-white border rounded-xl shadow-reviewCard tablet:max-w-xl",children:(0,d.jsx)("div",{className:"w-full tablet:flex",children:(0,d.jsxs)("div",{className:"w-full p-5 tablet:p-6",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between w-full mb-4",children:[(0,d.jsx)("div",{className:"w-20 h-4 bg-gray-300 rounded"}),(0,d.jsx)("div",{className:"w-16 h-4 bg-gray-300 rounded"})]}),(0,d.jsx)("div",{className:"w-full h-20 bg-gray-300 rounded"}),(0,d.jsx)("div",{className:"mt-4",children:(0,d.jsxs)("div",{className:"flex items-center",children:[(0,d.jsx)("div",{className:"w-12 h-12 bg-gray-300 rounded-full"}),(0,d.jsx)("div",{className:"ml-2",children:(0,d.jsx)("div",{className:"w-20 h-4 bg-gray-300 rounded"})})]})})]})})}),I=e=>{let{rating:t}=e;const s=Math.floor(t),a=+(t-s).toFixed(2),i=(0,l.useMemo)((()=>Array.from({length:5},((e,t)=>{const l=t<s?"full":t===s&&a>=.5?"half":"blank";return(0,d.jsx)("img",{src:"/icons/".concat(k[l]),alt:"rating-icon",className:"h-6 w-6 tablet:h-8 tablet:w-8"})}))),[t]);return(0,d.jsx)("div",{className:"whitespace-nowrap flex items-baseline gap-2 py-2 tablet:py-3",children:i})},P=(0,l.memo)((e=>{let{rating:t}=e;const s=(e=>{switch(!0){case e>=4:return"bg-secondary-600";case e>=3:return"bg-sematicCaution-200";case e>0:return"bg-sematicError-300";default:return"bg-sematicInfo-300"}})(t);return(0,d.jsxs)("div",{className:"flex rounded-xl ".concat(s," w-fit px-1 tablet:px-2 justify-center items-center"),children:[!!t&&(0,d.jsx)("img",{alt:"star-icon",src:"/icons/".concat("bg-sematicCaution-200"===s?"review_star_black.svg":"review_star.svg"),className:" h-4 w-4"}),(0,d.jsx)("span",{className:"text-xs tablet:text-sm font-semibold ".concat("bg-sematicCaution-200"===s?"text-neutral-600":"text-[#F9F9F9]","  "),children:t||"New"})]})}));P.displayName="EventStarRating";const T=P;var M=s(5537),A=s(6102);const F=e=>{let{mediaUrl:t,remainingMediaCount:s,handleOnClick:l}=e;const a=null===t||void 0===t?void 0:t.includes(".mp4");return(0,d.jsxs)("div",{className:"relative hover:cursor-pointer min-w-[128px]",onClick:l,children:[a?(0,d.jsxs)("div",{className:" relative",children:[(0,d.jsx)("video",{className:"h-[5.5rem] w-[8rem] object-cover rounded-xl",preload:"metadata",children:(0,d.jsx)("source",{src:t+"#t=0.1",type:"video/mp4"})}),(0,d.jsx)("img",{src:"/icons/play.svg",className:" absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 h-7 w-7"})]}):(0,d.jsx)("img",{src:t,alt:"image",className:"h-[5.5rem] w-[8rem] rounded-xl"}),s&&(0,d.jsx)("div",{className:"absolute inset-0 rounded-xl flex items-center justify-center",style:{backgroundColor:"rgb(0 0 0 / 0.55)"},children:(0,d.jsxs)("h3",{className:"text-sm tablet:text-base font-bold text-white select-none",children:["+",(0,d.jsx)("span",{className:" text-lg tablet:text-xl",children:s})]})})]})},D=e=>{let{mediaUrls:t,className:s=""}=e;const l=(0,M.I0)();return t.length?(0,d.jsx)("div",{className:"py-1 pt-2 tablet:py-2 tablet:pt-3 w-full ".concat(s),children:(0,d.jsx)("div",{className:"flex gap-2 tablet:gap-3 w-full overflow-x-auto pb-3 tablet:pb-4",children:t.slice(0,3).map(((e,s)=>(0,d.jsx)(F,{mediaUrl:e,remainingMediaCount:t.length>3&&2===s?t.length-3:void 0,handleOnClick:()=>{return e=s,void l((0,A.EV)({mediaUrls:t,currentIndex:e}));var e}},s)))})}):null},Z=e=>{let{iconName:t,position:s="start",text:l,handleClick:a,externalCss:i="text-secondary-600 font-medium text-base",iconClassName:n=""}=e;return(0,d.jsxs)("button",{className:"flex items-center gap-1 py-2 px-3 ".concat(i),onClick:()=>a(),children:["start"===s&&(0,d.jsx)("img",{src:"/icons/".concat(t,".svg"),alt:"".concat(t,"-icon"),className:n}),(0,d.jsx)("span",{children:l}),"end"===s&&(0,d.jsx)("img",{src:"/icons/".concat(t,".svg"),alt:"".concat(t,"-icon"),className:n})]})},O=(0,l.memo)((e=>{let{setShowReport:t,hideReport:s=!1,handleLike:l,liked:a,reportCount:i}=e;const{value:n,count:r}=a;return(0,d.jsxs)("div",{className:" flex items-center flex-wrap s:flex-nowrap",children:[(0,d.jsx)(Z,{text:"Like ".concat(r||""),handleClick:l,iconName:n?"liked":"like",iconClassName:"h-4 tablet:h-5 w-4 tablet:w-5",externalCss:"text-xs tablet:text-sm text-review-text whitespace-nowrap pl-0"}),!s&&(0,d.jsx)(Z,{text:"Report",handleClick:()=>t({value:!0}),iconName:"report-icon",externalCss:"text-xs tablet:text-sm text-review-text whitespace-nowrap",iconClassName:"h-4 tablet:h-5 w-4 tablet:w-5"})]})}));O.displayName="ReviewActions";const B=O,L=()=>(0,d.jsx)("svg",{viewBox:"0 0 175 175",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-8 tablet:h-11 w-8 tablet:w-11",children:(0,d.jsxs)("g",{id:"Group 34664",children:[(0,d.jsxs)("g",{id:"Group 34663",children:[(0,d.jsx)("circle",{id:"Ellipse 1344",cx:"87.5",cy:"87.5",r:"84.5",fill:"#D9D9D9"}),(0,d.jsx)("circle",{id:"Ellipse 1345",cx:"87.5",cy:"87.5",r:"87",stroke:"#D1D1D1"})]}),(0,d.jsx)("path",{id:"Vector",d:"M88 38C94.6304 38 100.989 40.6339 105.678 45.3223C110.366 50.0107 113 56.3696 113 63C113 69.6304 110.366 75.9893 105.678 80.6777C100.989 85.3661 94.6304 88 88 88C81.3696 88 75.0107 85.3661 70.3223 80.6777C65.6339 75.9893 63 69.6304 63 63C63 56.3696 65.6339 50.0107 70.3223 45.3223C75.0107 40.6339 81.3696 38 88 38ZM88 100.5C115.625 100.5 138 111.688 138 125.5V138H38V125.5C38 111.688 60.375 100.5 88 100.5Z",fill:"#A3A3A3"})]})}),q=e=>{let{name:t,imageUrl:s,reviewDate:l="",isParticipated:a,noOfRegistrations:i}=e;return(0,d.jsxs)("div",{className:" flex items-center gap-1 tablet:gap-2",children:[!s||null!==s&&void 0!==s&&s.includes(".pdf")?(0,d.jsx)(L,{}):(0,d.jsx)("img",{src:s,alt:t,className:"object-cover h-8 tablet:h-11 w-8 tablet:w-11 rounded-full"}),(0,d.jsxs)("div",{className:"flex flex-col items-start",children:[(0,d.jsxs)("div",{className:" flex items-center",children:[(0,d.jsx)("span",{className:"text-sm font-semibold truncate tablet:text-base py-0",children:t}),a&&(0,d.jsxs)("div",{className:" flex items-center pl-2 tablet:pl-3 gap-1 relative group",children:[(0,d.jsx)("img",{src:"/icons/verified.svg",alt:"verified-icon",className:" h-4 w-4 tablet:h-5 tablet:w-5 hover:cursor-pointer"}),(0,d.jsxs)("span",{className:" text-sm text-verified-color mmobile:flex items-center gap-1 hidden",children:["Verified ",(0,d.jsx)("span",{className:" hidden tablet:block",children:"Runner"})]}),(0,d.jsx)("div",{className:"dropdown-notch hidden group-hover:block"}),(0,d.jsx)("div",{className:" absolute -bottom-12  smobile:-left-full -left-1/2 shadow-2xl border border-[#F0F4F7] p-1.5 rounded slide-me-down hidden group-hover:flex  tablet:w-[200px] tablet:max-w-fit bg-white",children:(0,d.jsxs)("p",{className:" text-[#0E2546] text-sm w-full whitespace-nowrap",children:["Participated in ",i," ","event(s)"]})})]})]}),l&&(0,d.jsx)("small",{className:"text-[10px] tablet:text-xs text-black/30 ",children:(n=l,new Date(n).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"}))})]})]});var n},H=e=>{let{alt:t,src:s,...l}=e;return(0,d.jsx)("img",{alt:t,src:s,...l})},V=e=>{let{className:t="",children:s}=e;return(0,d.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 ".concat(t),children:s})},z=(0,l.forwardRef)(((e,t)=>{let{className:s,type:l="text",disabled:a,...i}=e;return(0,d.jsx)("input",{type:l,className:"\n        flex\n        w-full \n        border border-transparent px-3 py-3 \n        text-base\n        file:border-0 file:bg-transparent file:text-sm file:font-medium \n        placeholder:text-neutral-400 \n        disabled:cursor-not-allowed \n        disabled:opacity-50\n        focus:outline-none\n        ".concat(a?"opacity-75":"","\n        ").concat(s,"\n      "),disabled:a,ref:t,...i})}));z.displayName="Input";const G=z,U=e=>{let{options:t,handleOnChange:s,selectedOptions:l}=e;const a=l.find((e=>0===e.id));return(0,d.jsxs)("div",{className:"flex items-start flex-col gap-y-3 mt-3",children:[t.map((e=>{const t=l.find((t=>t.id===e.id));return(0,d.jsx)("div",{children:(0,d.jsxs)("label",{className:" flex gap-2 text-review-text items-center",children:[(0,d.jsx)("input",{type:"checkbox",value:0===e.id?"Other":e.value,onChange:()=>s(e),checked:Boolean(t)}),e.value]})},e.id)})),a&&(0,d.jsx)("div",{className:" flex w-full",children:(0,d.jsx)(G,{type:"text",value:null===a||void 0===a?void 0:a.otherText,className:"pr-[50px] py-3.5 rounded-xl bg-white shadow-event-name-input-shadow border !border-neutral-300",placeholder:"Specify the reason",onChange:e=>s(a,e.target.value)})})]})},W=e=>{let{handleSubmit:t,disabled:s=!1,loading:l}=e;return(0,d.jsxs)("button",{className:"w-full min-w-[156px] max-w-sm tablet:w-auto mt-5 h-12 bg-primaryPink-500 disabled:bg-gray-400 disabled:cursor-not-allowed transition rounded-lg text-white font-bold py-2 px-6 cursor-pointer relative",onClick:t,disabled:s,children:[l&&(0,d.jsx)("div",{className:"flex items-center justify-center absolute inset-0 rounded-lg",children:(0,d.jsx)("div",{className:" rounded-full h-8 w-7 animate-spin border-t-2 border-b-2 border-white"})}),"Submit"]})};const K=s(1984).jl;var J=s(3529);const Y=e=>{let{setShowReport:t,reviewId:s}=e;const[a,i]=(0,l.useState)([]),[n,r]=(0,l.useState)(!1),[o,c]=(0,l.useState)(""),{promptLogin:x}=(0,J.w)();return(0,d.jsx)("div",{className:"w-full p-4 pt-6 tablet:pt-8 tablet:p-6 min-h-[250px] slide-me-down",children:(0,d.jsxs)("div",{className:" flex gap-3 items-start",children:[(0,d.jsx)(H,{src:"/icons/BlackBackArrow.svg",alt:"back-icon",className:" cursor-pointer pt-1",onClick:()=>t(!1)}),(0,d.jsxs)("div",{className:" flex flex-col",children:[(0,d.jsxs)("div",{className:" flex items-start gap-x-3",children:[(0,d.jsx)(H,{src:"/icons/report.svg",alt:"report-icon"}),(0,d.jsx)("h3",{className:" text-left",children:"Why you feel this is an inappropriate review ?"})]}),(0,d.jsx)(U,{options:E,handleOnChange:(e,t)=>
1{if(o&&c(""),t){const e={id:0,value:"Other",otherText:t};return void i((t=>[...t.filter((t=>t.id!==e.id)),e]))}const s=a.find((t=>t.id===e.id));i(s?t=>t.filter((t=>t.id!==e.id)):t=>[...t,e])},selectedOptions:a}),o&&(0,d.jsx)("small",{className:" text-sm text-red-500 text-left pt-2 slide-me-down",children:o}),(0,d.jsx)("div",{className:" flex justify-end w-full",children:(0,d.jsx)(W,{handleSubmit:()=>{var e;if(!a.length)return void c("Please select at least one Option!");const l=a.find((e=>0===e.id));if(l&&(null===(e=l.otherText)||void 0===e||!e.trim()))return c("Specify the reason!");x("Please Login to Report Review!",(()=>{(async()=>{try{var e;r(!0);const l=await K({reviewId:s,action:"report",comment:{predefined:a.filter((e=>0!==e.id)).map((e=>e.value)),other:null===(e=a.find((e=>0===e.id)))||void 0===e?void 0:e.otherText}});201===l.statusCode?t({value:!1,message:"Thanks for your Feedback!"}):l.errMessage&&c(l.errMessage)}catch(l){console.log(l)}finally{r(!1)}})()}))},loading:n})})]})]})})},$=e=>{let{message:t,type:s}=e;return(0,d.jsx)(V,{className:"rounded-xl flex rounded-t-none px-2 p-0.5 whitespace-nowrap ".concat("success"===s?"bg-secondary-700 hide-me-up":"bg-footer-link-color"),children:(0,d.jsx)("span",{className:"text-white font-bold text-xs tablet:text-sm",children:t})})},Q=e=>{var t;let{rating:s,date:a,review:i,imageUrl:n,userName:r,organiserReply:o,likeCount:c,isLiked:x=!1,isReported:m=!1,reportCount:b,reviewId:u,reviewMedia:p,isParticipated:h,noOfRegistrations:f}=e;const[g,v]=(0,l.useState)({value:!1}),j=(0,l.useRef)(null),[w,y]=(0,l.useState)(m),{promptLogin:N}=(0,J.w)(),[C,k]=(0,l.useState)({value:x,count:c||0}),_=()=>{k((e=>({value:!e.value,count:e.value?e.count-1:e.count+1})))},S=(0,l.useCallback)((async()=>{_();try{201!==(await K({reviewId:u,action:"like"})).statusCode&&_()}catch(e){_()}}),[u]),E=(0,l.useCallback)((()=>{N("Please Login to Like Review!",(()=>{S()}))}),[N,S]);return(0,l.useEffect)((()=>{const e=j.current;if(e&&null!==g&&void 0!==g&&g.value){const t=e.getBoundingClientRect();t.top>=100&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)||e.scrollIntoView({behavior:"smooth",block:"center"})}null!==g&&void 0!==g&&g.message&&(y(!0),setTimeout((()=>{v((e=>({...e,message:""})))}),2e3))}),[g]),(0,d.jsxs)("div",{className:"w-full max-w-md mx-auto bg-white border rounded-xl shadow-reviewCard tablet:max-w-xl relative overflow-hidden",ref:j,children:[(g.value||g.message)&&(0,d.jsx)($,{message:null!==(t=g.message)&&void 0!==t?t:"Report Review",type:g.message?"success":""}),g.value?(0,d.jsx)(Y,{setShowReport:v,reviewId:u}):(0,d.jsx)("div",{className:"w-full tablet:flex",children:(0,d.jsxs)("div",{className:"w-full p-4 tablet:p-4",children:[(0,d.jsx)("div",{className:" flex items-center justify-between w-full pb-2 tablet:pb-3",children:(0,d.jsxs)("div",{className:" w-full flex items-center justify-between",children:[(0,d.jsx)(q,{name:r,imageUrl:n,reviewDate:a,isParticipated:h,noOfRegistrations:f}),(0,d.jsx)(T,{rating:s})]})}),i&&(0,d.jsx)("p",{className:"relative p-2 text-sm text-left text-gray-600 rounded-md tablet:text-base bg-slate-50 mt-2 tablet:mt-3",children:i}),o&&(0,d.jsxs)("p",{className:"relative p-2 mt-2 mr-5 tablet:mt-4 text-sm text-left text-gray-600 rounded-lg tablet:text-base border-[#b0f5e8] bg-[#b0f5e8]",children:[o,(0,d.jsx)("small",{className:" float-right text-sm text-black/20",children:"-Organiser"})]}),p&&(null===p||void 0===p?void 0:p.length)>0&&(0,d.jsx)(D,{mediaUrls:p}),(0,d.jsx)("div",{className:"mt-1.5 tablet:mt-3 pt-1 tablet:pt-2 flex items-center justify-between border-t-[0.5px] border-action-border border-dotted",children:(0,d.jsx)(B,{setShowReport:v,hideReport:w,liked:C,handleLike:E,reportCount:b||0})})]})})]})},X=e=>{let{rating:t}=e;const s={width:"".concat(20*t,"%"),background:"linear-gradient(90deg, #FFD600 45%,#FF1794)"};return(0,d.jsx)("div",{className:"h-2 md:h-3 w-full  rounded relative",style:{backgroundColor:"#bdbdbd"},children:(0,d.jsx)("div",{className:"absolute h-2 md:h-3 rounded",style:s})})},ee=e=>{let{categoryRatings:t}=e;return(0,d.jsx)("div",{className:"grid w-full tablet:grid-cols-2 gap-x-2 tablet:gap-x-3 gap-y-3 tablet:gap-y-4 py-3 tablet:py-5 pb-4 tablet:pb-6 text-xs tablet:text-sm border-b-[0.5px] border-action-border border-dotted",children:t.map(((e,t)=>{var s;const l=null===e||void 0===e||null===(s=e.rating)||void 0===s?void 0:s.toFixed(1),a=S[e.name]||"registration-communication.svg";return(0,d.jsxs)("div",{className:"grid w-full grid-cols-[34px_1fr_20px] tablet:grid-cols-[56px_1fr_30px] gap-x-2 tablet:gap-x-3 items-center",children:[(0,d.jsx)("div",{className:"border-1 tablet:border-[4px] border-gray-200 p-1.5 tablet:p-3 rounded-full bg-gradient-to-r from-[#DCDDE4] to-white",style:{boxShadow:"rgba(0, 0, 0, 0.09) 0px 3px 12px"},children:(0,d.jsx)("img",{className:"h-5 w-5 tablet:h-6 tablet:w-6",src:"/icons/".concat(a),alt:"section-icon"})}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h2",{className:"font-semibold text-left group section-row",style:{animationDelay:"".concat(50*t,"ms")},children:e.name}),(0,d.jsx)("div",{className:"flex items-center rounded section-row pt-0.5 tablet:pt-1.5",style:{animationDelay:"".concat(70*t,"ms")},children:(0,d.jsx)(X,{rating:e.rating})})]}),(0,d.jsx)("div",{className:"flex items-center justify-center section-row text-primaryPink-500 text-base tablet:text-lg font-bold",style:{animationDelay:"".concat(90*t,"ms")},children:l.endsWith(".0")?l.slice(0,-2):l})]},e.name)}))})};var te=s(2497),se=s(3235);const le=e=>{let{title:t,showHeaderShadow:s,preTitle:l="",closeModal:a}=e;return(0,d.jsxs)("div",{className:"flex justify-start tablet:justify-end items-center pb-2 pt-5 tablet:pt-4 tablet:py-4 gap-x-2 sticky top-0 z-20 bg-white px-2 tablet:px-5 border-b-1 tablet:border-0 ".concat(s?"shadow":""),children:[(0,d.jsx)("div",{className:"block tablet:hidden",children:(0,d.jsx)(se.Z,{className:"mr-3 cursor-pointer font-semibold smobile:w-5 smobile:h-5 tablet:w-6 tablet:h-6",onClick:a})}),(0,d.jsxs)("h2",{className:"text-lg font-semibold tablet:text-xl text-left w-full",children:[l&&(0,d.jsx)("span",{className:"text-gray-500 ",children:l}),(0,d.jsx)("span",{className:"pl-2 text-gray-900 capitalize",children:t})]}),(0,d.jsx)("div",{className:"hidden tablet:block",children:(0,d.jsx)(te.Z,{onClick:a})})]})},ae=e=>{let{scrollTopPosition:t}=e;const[s,a]=(0,l.useState)(!1),i=(0,l.useRef)(null);return(0,l.useEffect)((()=>{const e=()=>{i.current&&a(i.current.scrollTop>t)};return i.current&&i.current.addEventListener("scroll",e),()=>{i.current&&i.current.removeEventListener("scroll",e)}}),[i,t]),[i,s]};var ie=s(7260);const ne=e=>{var t;let{mediaUrls:s,currentIndex:a}=e;
1const[i,n]=(0,l.useState)(a),r=(0,M.I0)();return(0,l.useEffect)((()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""})),[]),(0,d.jsx)(ie.h,{children:(0,d.jsx)("div",{className:"fixed top-0 left-0 z-100 w-full h-full bg-neutral-900/90  backdrop-blur-sm flex flex-col items-center justify-center ",children:(0,d.jsxs)("div",{className:" flex flex-col py-3 tablet:p-10 m-auto max-h-[calc(100vh-100px)] gap-3 tablet:gap-4 relative items-center",children:[(0,d.jsxs)("div",{className:"max-w-[654px] px-2 max-h-[644px] tablet:max-h-[70%] flex justify-center  tablet:px-5 relative",children:[(0,d.jsx)("button",{className:" absolute right-2 tablet:-right-2 -top-10 text-white border-2 tablet:border-[3px] rounded-full h-6 tablet:h-10 w-6 tablet:w-10 tablet:font-bold flex items-center justify-center hover:cursor-pointer",onClick:()=>{r((0,A.Lk)())},children:"X"}),(null===s||void 0===s?void 0:s.length)>0&&(null!==(t=s[i])&&void 0!==t&&t.includes(".mp4")?(0,d.jsx)("div",{className:"relative",children:(0,d.jsx)("video",{className:" rounded-xl h-[250px]  tablet:object-cover min-w-[200px] tablet:h-full tablet:max-w-[654px] tablet:max-h-[644px]",src:s[i],controls:!0})}):(0,d.jsx)(H,{src:s[i],alt:"image",className:" rounded-xl min-h-[250px] min-w-[250px] tablet:min-h-[350px] tablet:min-w-[350px] tablet:h-full flex item-center justify-center tablet:max-w-[654px] tablet:max-h-[644px]"}))]}),s.length>1&&(0,d.jsx)("div",{className:" h-fit flex gap-2 tablet:gap-3 w-full px-2 max-w-[654px] bg-black/20 overflow-y-auto h-fit py-3 pb-5",children:s.map(((e,t)=>(0,d.jsx)(d.Fragment,{children:null!==e&&void 0!==e&&e.includes(".mp4")?(0,d.jsxs)("div",{className:" relative border-[0.1px] border-gray-400 rounded-xl w-[8rem] tablet:w-[8rem]",onClick:()=>n(t),children:[(0,d.jsx)("video",{className:"h-[4rem] w-[6rem] min-w-[6rem] tablet:h-[5.5rem] tablet:w-[8rem] rounded-xl ".concat(i!==t?"opacity-30 scale-105":""),preload:"metadata",src:e,children:(0,d.jsx)("source",{src:e+"#t=0.1",type:"video/mp4"})}),(0,d.jsx)(H,{src:"/icons/play.svg",className:" absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 h-7 w-7",alt:"play-icon"})]}):(0,d.jsx)(H,{src:e,onClick:()=>n(t),alt:"image",className:"h-[4rem] w-[6rem]  tablet:h-[5.5rem] tablet:w-[8rem] rounded-xl ".concat(i!==t?"opacity-30 scale-105":"")},e)})))})]})})})},re=()=>{var e,t,s,a,n,o,m;const[b,v]=(0,l.useState)(!0),[j,k]=(0,l.useState)(!1),S=(0,c.T)(),[E,P]=ae({scrollTopPosition:20}),{isMediaPreviewOpen:T,mediaUrls:F,currentIndex:D}=(0,M.v9)(A.Il),Z=(0,c.C)(i.FA),[O,B]=(0,l.useState)("most_popular"),[L,q]=(0,l.useState)(null),[H,V]=(0,l.useState)(1),z=(0,c.C)(i.Le),G=(0,c.C)(i.Vs),U=((0,c.C)(r.qK),null!==(e=null===L||void 0===L?void 0:L.overallRating)&&void 0!==e?e:null===G||void 0===G||null===(t=G.ratings)||void 0===t?void 0:t.avgRating),W=null!==(s=null===L||void 0===L?void 0:L.totalReviews)&&void 0!==s?s:null===G||void 0===G||null===(a=G.ratings)||void 0===a?void 0:a.totalReviews,K=()=>{y.iQ&&Z&&window.open("".concat(y.iQ,"/event-reviews?eId=").concat(Z),"_blank")},J=(0,l.useCallback)((async()=>{k(!0);const e=await(0,u._Z)(+Z,{sortBy:O,pageNo:H,pageSize:5});200!==e.statusCode&&201!==e.statusCode||q((t=>{if(t&&H>1){var s;const l=[...t.reviews,...(null===(s=e.data)||void 0===s?void 0:s.reviews)||[]];return{...e.data,reviews:l}}return(null===e||void 0===e?void 0:e.data)||null})),k(!1)}),[O,Z,H]);return(0,l.useEffect)((()=>{Z&&O&&(q(null),J())}),[Z,O]),(0,l.useEffect)((()=>{H>1&&J()}),[H]),(0,l.useEffect)((()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""})),[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-col h-full overflow-y-auto transition tablet:mt-0 pb-[7rem] tablet:pb-0",ref:E,children:[(0,d.jsx)(le,{title:z,showHeaderShadow:P,preTitle:"Reviews for",closeModal:()=>{S((0,i.YM)())}}),(0,d.jsxs)("div",{className:"flex items-center justify-start gap-2 px-4 tablet:px-6 tablet:pr-7 py-2 tablet:py-4 flex-wrap ",children:[(0,d.jsx)(I,{rating:U}),(0,d.jsx)("span",{className:"text-xs tablet:text-sm font-bold",children:"(".concat(U," out of 5)")}),!!U&&(0,d.jsx)("img",{src:null===_||void 0===_||null===(n=_.filter((e=>{const t=Math.abs(U%1)>.5?Math.ceil(U):Math.floor(U);if(e.value==t)return e}))[0])||void 0===n?void 0:n.icon,alt:"review-pic",className:""})]}),(0,d.jsxs)("div",{className:"flex flex-col  px-4 mx-4 tablet:mx-0 tablet:px-6 shadow border border-[#
1EEEEEE] tablet:border-none tablet:shadow-none rounded-lg tablet:pr-7 pt-2 tablet:pt-4  ",children:[(0,d.jsxs)("div",{className:"flex items-center justify-start gap-1 pb-2 tablet:pb-0 cursor-pointer w-fit",onClick:()=>{v((e=>!e))},children:[(0,d.jsxs)("span",{className:"text-sm font-medium text-gray-600 select-none tablet:text-base",children:["Based on ",W," reviews"]}),(0,d.jsx)("span",{className:"cursor-pointer",children:(0,d.jsx)(h,{externalCss:b?"rotate-180":""})})]}),b&&(null!==(o=null===L||void 0===L||null===(m=L.categoryRatings)||void 0===m?void 0:m.length)&&void 0!==o?o:0)>0&&(0,d.jsx)(ee,{categoryRatings:L.categoryRatings})]}),(0,d.jsxs)("div",{className:"flex justify-between py-4 tablet:py-5  px-4 tablet:px-6 tablet:pr-7 ",children:[(0,d.jsx)(g.Z,{handleOnClick:K,text:"Share Your Experience",iconPosition:"left",externalCss:" bg-primaryPink-500 text-white py-3 px-4 rounded-lg hidden tablet:flex",children:(0,d.jsx)(f.Z,{})}),(0,d.jsxs)("div",{className:"flex items-center justify-end target:justify-normal w-full tablet:w-auto gap-2",children:[(0,d.jsx)("p",{className:"text-sm text-neutral-600 tablet:text-base",children:"Sort By"}),(0,d.jsx)(w,{options:N,borderColor:"border-gray-300",setSelected:e=>{V(1),B(e)},select:O,OptionConfig:C,className:" max-w-[160px]"})]})]}),(0,d.jsxs)("div",{className:"flex flex-col flex-1 w-full px-4 tablet:px-6 tablet:pr-7 my-2 gap-y-4",children:[!(null!==L&&void 0!==L&&L.reviews)&&Array(5).fill("").map(((e,t)=>(0,d.jsx)(R,{},"skeleton-card"+t))),(null===L||void 0===L?void 0:L.reviews)&&L.reviews.map(((e,t)=>{var s,l,a;return(0,d.jsx)(Q,{rating:+(null!==(s=e.rating)&&void 0!==s?s:e.avgRating),date:e.date||e.reviewDate,review:e.comment||e.genericReview,userName:e.userName,imageUrl:e.userAvatar||e.profilePhoto,likeCount:null===e||void 0===e?void 0:e.likeCount,reportCount:null===e||void 0===e?void 0:e.reportCount,organiserReply:null===e||void 0===e?void 0:e.organiserReply,reviewId:e.id,isLiked:null!==(l=null===e||void 0===e?void 0:e.isLikedByUser)&&void 0!==l?l:null===e||void 0===e?void 0:e.isLiked,isReported:null!==(a=null===e||void 0===e?void 0:e.isReportedByUser)&&void 0!==a?a:null===e||void 0===e?void 0:e.isReported,reviewMedia:(null===e||void 0===e?void 0:e.photos)||(null===e||void 0===e?void 0:e.reviewMedia),isParticipated:null===e||void 0===e?void 0:e.isParticipated,noOfRegistrations:null===e||void 0===e?void 0:e.noOfRegistrations},t)})),0===(null===L||void 0===L?void 0:L.reviews.length)&&(0,d.jsx)("div",{children:(0,d.jsx)("p",{className:"text-xs text-gray-600 tablet:text-sm",children:"No Reviews!"})}),L&&L.totalReviews&&L.totalReviews>5*H&&(0,d.jsx)("div",{className:"flex items-center justify-center pb-10 ",children:(0,d.jsx)(g.Z,{text:"Show More",iconPosition:"right",handleOnClick:e=>{V((e=>e+1)),e.stopPropagation()},externalCss:" text-nowrap text-secondary-700 font-semibold bg-neutral-100 px-3 rounded-md",children:j?(0,d.jsx)(x,{}):(0,d.jsx)(p,{})})})]}),(0,d.jsx)("div",{className:" fixed bottom-0 py-3 pb-4 w-full px-2 tablet:hidden",children:(0,d.jsx)(g.Z,{handleOnClick:K,text:"Share Your Experience",iconPosition:"left",externalCss:" bg-primaryPink-500 text-white py-3 px-4 rounded-lg flex w-full",children:(0,d.jsx)(f.Z,{})})})]}),T&&(0,d.jsx)(ne,{mediaUrls:F,currentIndex:D})]})},oe=()=>{const e=(0,c.T)(),t=(0,c.C)(r.EF),s=()=>{e((0,i.YM)())};return(0,l.useEffect)((()=>{t&&s()}),[t]),(0,d.jsxs)(d.Fragment,{children:[b.createPortal((0,d.jsx)("div",{className:"fixed top-0 left-0 z-50 w-full h-full bg-background-gray backdrop-blur-xxs backdrop-brightness-25"}),document.getElementById("backdrop-root")),b.createPortal((0,d.jsx)("div",{className:"fixed left-0 flex flex-col justify-between w-screen smobile:pb-0 z-50 smobile:bottom-0 tablet:top-0 tablet:h-screen",children:(0,d.jsx)("div",{className:"flex h-screen flex-col w-full tablet:max-w-[612px]  ml-auto text-center bg-white tablet:pb-8 smobile:pb-4 smobile:gap-y-3 tablet:gap-y-8 rounded-lg rounded-b-none tablet:rounded-xl smobile:rounded-t-xl",children:(0,d.jsx)(re,{})})}),document.getElementById("overlay-root"))]})};var ce=s(2428),de=s(1691);const xe=()=>{const e=(0,c.T)(),[t,s]=(0,l.useState)(""),n=(0,c.C)(i.$k),[r,o]=(0,l.useState)(""),[x,m]=(0,l.useState)(!1),u=(0,l.useRef)(null);return(0,l.useEffect)((()=>{u.current&&u.current.focus()}),[]),(0,d.jsxs)(d.Fragment,{children:[b.createPortal((0,d.jsx)("div",{className:"fixed top-0 left-0 z-10 w-full h-full bg-background-gray backdrop-blur-xxs backdrop-brightness-25"}),document.getElementById("backdrop-root")),b.createPortal((0,d.jsx)("div",{className:"fixed left-0 flex flex-col justify-between w-screen tablet:py-2 smobile:pb-0 z-100 tablet:top-1/4 smobile:bottom-0 tablet:h-auto font-rubik",children:(0,d.jsxs)("div",{className:"flex flex-col w-full max-w-[500px] tablet:w-auto mx-auto text-center bg-white tablet:pb-8 smobile:pb-4 smobile:gap-y-3 tablet:gap-y-8 smobile:px-4 tablet:px-7 rounded-lg rounded-b-none tablet:rounded-xl smobile:rounded-t-xl",children:[(0,d.jsx)("div",{className:"static self-end mt-4 -mb-8",children:(0,d.jsx)(te.Z,{onClick:()=>{e((0,i.ih)())}})}),(0,d.jsxs)("div",{className:" flex flex-col gap-1 mt-5",children:[(0,d.jsx)("p",{className:"self-center text-black font-semibold text-base tablet:text-xl",children:"Use Access Code"}),(0,d.jsx)("p",{className:"self-center text-green-divider text-sm tablet:text-base",children:"Enter the Access Code to unlock the category"})]}),(0,d.jsxs)("div",{className:" py-2 tablet:py-4",children:[(0,d.jsx)("input",{type:"text",ref:u,placeholder:"Enter Access Code",className:de.G6+" w-[80%]",value:t,onChange:e=>{const t=e.target.value;t.length<20&&s(t)}}),(0,d.jsx)("p",{className:" text-red-500 text-center py-3",children:r})]}),(0,d.jsx)("div",{className:"w-full mx-auto ",children:(0,d.jsx)("button",{disabled:0===t.trim().length||x,onClick:async()=>{m(!0);let s=t.trim();const l=await(0,a.xb)(n,s);m(!1),l.error?o("Invalid access code"):e((0,i.D$)({accessCode:s,categories:l.res.categoryIdentities}))},className:"w-full px-8 smobile:py-3 tablet:py-2.5 text-lg rounded-lg justify-center font-medium  bg-primary text-white cursor-pointer disabled:bg-gray-300 disabled:text-primary",children:x?"Validating...":"Redeem"})})]})}),document.getElementById("overlay-root"))]})};var me=s(7533);const be=[{header:"Step #1: Pre-registration",information:"Pre-registration is mandatory before you can do the final registration for JBG SHHM 2024. Only athletes who successfully PRE-REGISTER between April 3, 2024 at 6 AM, and April 7, 2024 till 6 PM."},{header:"Step #2: Final Registration",information:"Final registrations for JBG SHHM 2024 will start on April 10, 2024 from 6 AM and will last only until the limited slots are filled. Only pre-registered candidates are eligible to participate in the final registrations on first-come-first-serve basis."}],ue=()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:"mt-10 font-bold text-center smobile:text-sm font-montserrat tablet:text-2xl",children:"Important Announcement"}),(0,d.jsx)("div",{className:"mt-4 tablet:min-w-[1080px] smobile:max-w-[350px] mx-auto text-justify list-disc rounded-lg border-dashed marker:text-black tablet:px-4 tablet:py-4 smobile:py-2 smobile:px-1 bg-[#DDFCFF]",children:(0,d.jsx)("ul",{className:"flex flex-col p-4 list-disc tablet:px-4 smobile:pl-3 gap-y-4 marker:text-info_pre",children:be.map(((e,t)=>(0,d.jsxs)("li",{className:"tablet:text-sm smobile:text-xxs2 text-info_pre font-bold text-sm",children:[e.header,(0,d.jsx)("p",{className:"mt-1 font-normal tablet:text-sm smobile:text-xxs2",children:e.information})]},t)))})})]});var pe=s(5302),he=s(997);const fe=e=>{let{aboutRace:t}=e;const s=[],[a,i]=(0,l.useState)(!1),[n,r]=(0,l.useState)(!1),o=(0,l.useRef)(null);t.forEach((e=>{e.media&&s.push(e.media)}));return(0,l.useEffect)((()=>{o.current&&r(o.current.scrollHeight>o.current.clientHeight)}),[]),(0,d.jsxs)("div",{className:"pt-10",children:[(0,d.jsx)("h4",{className:"mb-4 font-bold text-center smobile:text-sm font-montserrat tablet:text-2xl",children:"About the Event"}),(0,d.jsx)("div",{className:"flex flex-col",children:(0,d.jsxs)("div",{className:"flex flex-col smobile:px-3 tablet:px-8 lg:px-16",children:[!!s.length&&(0,d.jsx)("div",{className:"tablet:mx-auto tablet:w-[780p
1x] tablet:h-[525px] overflow-hidden pb-8",children:(0,d.jsx)(he.Z,{images:s})}),(0,d.jsxs)("div",{className:"relative flex flex-row items-center justify-center basis-1/2",children:[(0,d.jsx)("div",{className:"basis-1/4"}),(0,d.jsx)("div",{className:" ".concat(a?" h-fit":"h-[24vh]"," overflow-hidden transition-all duration-500 ease-out mt-4 px-2 pb-5 rounded-lg relative"),ref:o,children:t.map(((e,t)=>{return(0,d.jsx)("div",{className:"mx-auto text-sm center tablet:text-base",children:(s=e.content,(0,d.jsx)("div",{className:"text-sm tablet:text-base",dangerouslySetInnerHTML:{__html:s}}))},t);var s}))}),n&&(0,d.jsx)("p",{className:" text-primaryPink-500 hover:underline tablet:text-base rounded-xl tablet:rounded-2xl bg-gray-200 absolute -bottom-[25px] cursor-pointer left-1/2 -translate-x-1/2 transition-all duration-500 ease-in px-2 md:px-5 font-medium",onClick:()=>i((e=>!e)),children:a?"Collapse":"Read more"}),n&&(0,d.jsx)("div",{className:"text-secondary-700 tablet:text-base rounded-xl tablet:rounded-2xl bg-prima-200 absolute -bottom-[35px] cursor-pointer left-1/2 -translate-x-1/2 transition-all duration-500 ease-in px-2 tablet:px-5 font-medium",children:(0,d.jsx)(g.Z,{text:a?"Collapse":"Show more",iconPosition:"right",handleOnClick:()=>i((e=>!e)),externalCss:" text-nowrap font-semibold bg-neutral-200 px-3 rounded-md",children:(0,d.jsx)(p,{externalStyle:a?"rotate-180":""})})}),(0,d.jsx)("div",{className:"basis-1/4"})]})]})})]})};var ge=s(2655);s(2599);const ve=e=>{let{aboutRace:t,customSections:s}=e;const a=(0,l.useRef)(null),[i,n]=(0,l.useState)(0),r=t.filter((e=>e.media)).map((e=>e.media));return(0,d.jsxs)("div",{className:"flex flex-col smobile:gap-8 tablet:gap-8 smobile:mt-8 tablet:mt-8 smobile:px-4 tablet:px-0 tablet:max-w-[897px] tablet:mx-auto w-full",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-4 roun
1ded-3xl border border-[#aeaeae8a] smobile:p-4 tablet:p-6",children:[(0,d.jsx)("p",{className:"text-black/65 font-jakarta font-medium smobile:text-sm tablet:text-sm",children:"What\u2019s the plan ?"}),(0,d.jsx)("div",{className:"font-jakarta font-semibold text-black smobile:text-sm tablet:text-base leading-[1.6] whitespace-pre-line",children:t.map(((e,t)=>(0,d.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content}},t)))})]}),!!r.length&&(0,d.jsxs)("div",{className:"flex flex-col items-center gap-3 smobile:mx-auto tablet:mx-auto smobile:w-[271px] tablet:w-[424px]",children:[(0,d.jsx)("p",{className:"text-black/65 font-jakarta font-semibold text-center smobile:text-lg tablet:text-lg",children:"Gallery"}),(0,d.jsx)("div",{className:"w-full smobile:h-[271px] tablet:h-[425px] rounded-3xl overflow-hidden",children:(0,d.jsx)(ge.lr,{ref:a,showArrows:!1,showThumbs:!1,showStatus:!1,showIndicators:!1,autoPlay:!0,infiniteLoop:!0,dynamicHeight:!1,onChange:n,children:r.map(((e,t)=>(0,d.jsx)("img",{alt:e,src:e},t)))})}),r.length>1&&(0,d.jsx)("div",{className:"flex items-center gap-1.5",children:r.map(((e,t)=>(0,d.jsx)("button",{type:"button","aria-label":"Show image ".concat(t+1),onClick:()=>{var e,s;null===(e=a.current)||void 0===e||e.moveTo(t),null===(s=a.current)||void 0===s||s.resetAutoPlay()},className:t===i?"w-3 h-3 rounded-full bg-white shadow-[0_4px_7px_rgba(0,0,0,0.1)]":"w-3 h-3 rounded-full bg-[#d8d8d8]"},t)))})]}),!!s.length&&(0,d.jsxs)("div",{className:"flex flex-col gap-5 rounded-3xl border border-[#aeaeae8a] smobile:p-4 tablet:p-6",children:[(0,d.jsx)("p",{className:"text-black/65 font-jakarta font-medium smobile:text-sm tablet:text-sm",children:"Good to know"}),(0,d.jsx)("div",{className:"flex flex-col gap-5",children:s.map(((e,t)=>(0,d.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("span",{className:"shrink-0 w-1.5 h-1.5 rounded-full bg-black"}),(0,d.jsx)("p",{className:"font-jakarta font-semibold text-black smobile:text-sm tablet:text-sm",children:e.name})]}),t<s.length-1&&(0,d.jsx)("div",{className:"h-px w-full bg-[#cdcdcd]"})]},t)))})]})]})},je=e=>{let{width:t="100%",height:s="60"}=e;return(0,d.jsxs)("svg",{width:t,height:s,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M29.9998 58.8049C45.9083 58.8049 58.8046 45.9085 58.8046 30.0001C58.8046 14.0917 45.9083 1.19531 29.9998 1.19531C14.0914 1.19531 1.19507 14.0917 1.19507 30.0001C1.19507 45.9085 14.0914 58.8049 29.9998 58.8049Z",fill:"#FCFFE5",fillOpacity:"0.5"}),(0,d.jsx)("path",{d:"M44.2231 20.3613C44.2231 12.5186 37.8426 6.13818 30 6.13818C22.1573 6.13818 15.7769 12.5186 15.7769 20.3613C15.7769 22.0115 17.1147 23.3493 18.7649 23.3493C20.4151 23.3493 21.753 22.0115 21.753 20.3613C21.753 15.8138 25.4525 12.1143 30 12.1143C34.5474 12.1143 38.247 15.8138 38.247 20.3613C38.247 24.9416 34.5474 28.6681 30 28.6681C28.3497 28.6681 27.0119 30.0059 27.0119 31.6561V39.8769C27.0119 41.5272 28.3497 42.865 30 42.865C31.6503 42.865 32.988 41.5272 32.988 39.8769V34.326C39.4007 32.9437 44.2231 27.2079 44.2231 20.3613Z",fill:"#5C6600"}),(0,d.jsx)("path",{d:"M30 47.4072C28.3498 47.4072 27.012 48.745 27.012 50.3953V50.8734C27.012 52.5236 28.3498 53.8614 30 53.8614C31.6502 53.8614 32.9881 52.5236 32.9881 50.8734V50.3953C32.9881 48.7449 31.6502 47.4072 30 47.4072Z",fill:"#5C6600"})]})};var we=s(1157);const ye=e=>{let{link:t}=e;return(0,d.jsx)("div",{className:"relative flex flex-row tablet:mb-20 smobile:mb-10",children:(0,d.jsxs)("div",{className:"flex flex-col items-center",children:[(0,d.jsx)("div",{className:"smobile:w-[40px] tablet:w-[60px] smobile:translate-y-3 tablet:translate-y-0",children:(0,d.jsx)(je,{})}),(0,d.jsx)("div",{className:"flex flex-col w-screen smobile:mt-2 bg-gradient-to-r from-main-image-gr-start to-main-image-gr-end",children:(0,d.jsxs)("div",{className:"flex flex-col items-center smobile:pt-2 tablet:pt-4",children:[(0,d.jsx)("p",{className:"font-semibold text-neutral-800 smobile:text-sm tablet:text-2xl",children:"Have Questions?"}),(0,d.jsx)("div",{className:"tablet:translate-y-7 smobile:translate-y-5",children:(0,d.jsx)(we.Qj,{text:"for FAQ",link:t})})]})})]})})},Ne=e=>{let{items:t,subtitle:s}=e;const[a,i]=(0,l.useState)(0);return(0,d.jsx)("div",{className:"w-full px-4 tablet:mb-20 smobile:mb-10 flex flex-col items-center",children:(0,d.jsxs)("div",{className:"w-full tablet:w-[700px]",children:[(0,d.jsx)("h2",{className:"text-center font-bold text-neutral-800 smobile:text-xl tablet:text-3xl mb-2",children:"Frequently asked questions"}),s&&(0,d.jsx)("p",{className:"text-center text-neutral-500 smobile:text-xs tablet:text-sm mt-1 mb-2",children:s}),(0,d.jsx)("div",{className:"mt-6 flex flex-col gap-3",children:t.map(((e,t)=>(0,d.jsxs)("div",{className:"border border-gray-200 rounded-2xl px-5 py-4 bg-white",children:[(0,d.jsxs)("button",{className:"flex w-full items-start justify-between text-left gap-4",onClick:()=>i(a===t?null:t),children:[(0,d.jsx)("span",{className:"font-semibold text-neutral-800 smobile:text-sm tablet:text-base",children:e.question}),(0,d.jsx)("img",{src:a===t?"/icons/accordianUpIcon.svg":"/icons/accordianDownIcon.svg",alt:a===t?"collapse":"expand",className:"w-[17px] h-[10px] shrink-0 mt-1"})]}),a===t&&(0,d.jsx)("p",{className:"mt-3 text-neutral-600 smobile:text-sm tablet:text-base",children:e.answer})]},t)))})]})})};
1var Ce=s(6364),ke=s(1261),_e=s(3591),Se=s(4720);const Ee=e=>{let{raceCount:t,total:s,isTaxIncluded:a,isDiscountIncluded:n,showPrice:r,onProceed:x}=e;const[m,b]=(0,l.useState)(!1),u=(0,c.C)(o.uB),p=(0,c.C)(i.$k),h=(0,ke.GP)(p);return(0,d.jsxs)("div",{className:"sticky bottom-0 z-40 flex flex-row items-center justify-between w-full py-4 bg-white smobile:mt-16 tablet:mt-4 smobile:px-8 tablet:px-16",children:[(0,d.jsxs)("p",{className:"font-medium smobile:text-sm tablet:text-xl smobile:hidden tablet:block tablet:basis-3/5 smobile:basis-0",children:[t," ",1===t?"category":"categories"," selected"]}),(0,d.jsxs)("div",{className:"flex flex-row items-center justify-between tablet:gap-x-8 smobile:gap-x-4 tablet:basis-2/5 smobile:basis-full",children:[(0,d.jsxs)("div",{className:"flex flex-col tablet:basis-2/3 smobile:basis-3/4 text-right ".concat(r?"":"invisible"),children:[(0,d.jsxs)("p",{className:"font-medium text-black smobile:text-sm tablet:text-base",children:["Subtotal:",(0,d.jsxs)("span",{className:"ml-2 font-bold text-black smobile:text-sm tablet:text-xl",children:["Rs. ",s," ",!a&&"+ GST"]})]}),a&&(0,d.jsx)("p",{className:"text-black smobile:text-xxs tablet:text-xs",children:"(Inc. of all taxes)"}),n&&(0,d.jsx)("p",{className:"text-green smobile:text-xxs tablet:text-xs",children:"(Applicable Discounts Applied)"})]}),(0,d.jsx)("div",{className:"tablet:basis-1/3 smobile:basis-1/4",children:(0,d.jsx)(we.Kk,{text:"Proceed",isDisabled:m,handleOnClick:async()=>{(0,_e.Z)(u.fb_ids?u.fb_ids:[],!0,h?Se.h.WESNESS_ADDTOCART:Se.h.ADDTOCART),b(!0),await x(),b(!1),(0,ke.qM)({category:"Button",action:"Clicked",label:"Proceed"})}})})]})]})};var Re=s(7238),Ie=s(9706);const Pe=()=>(0,d.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M16.1272 8.00019C16.1272 3.58148 12.5238 0 8.07889 0C3.63374 0 0.0302734 3.58148 0.0302734 8.00019C0.0302734 12.4182 3.63374 16 8.07889 16C12.5238 16 16.1272 12.4182 16.1272 8.00019Z",fill:"#E1EFFF",fillOpacity:"0.34"}),(0,d.jsx)("path",{d:"M10.5233 11.2106C10.4783 11.1499 10.392 11.1282 10.32 11.1597C9.52309 11.5076 8.61863 11.8754 8.44111 11.9076C8.43664 11.9039 8.42954 11.8972 8.42023 11.8855C8.39618 11.8555 8.38447 11.8162 8.38447 11.7655C8.38447 11.3498 8.7247 10.0852 9.39566 8.00697C9.96139 6.26084 10.0268 5.89931 10.0268 5.77927C10.0268 5.59398 9.94988 5.43741 9.80426 5.32646C9.66593 5.22126 9.47265 5.16795 9.22984 5.16795C8.82594 5.16795 8.35783 5.30936 7.79871 5.60028C7.25691 5.8823 6.65267 6.35995 6.00288 7.01997C5.95202 7.07166 5.9467 7.14894 5.99008 7.20617C6.03352 7.26342 6.11408 7.28521 6.18413 7.2589C6.41226 7.17304 7.55872 6.73993 7.72584 6.64313C7.86267 6.56402 7.98113 6.52387 8.07793 6.52387C8.0814 6.52387 8.08438 6.52399 8.08688 6.52417C8.08804 6.53009 8.08915 6.53912 8.08915 6.55206C8.08915 6.64316 8.06882 6.75099 8.02898 6.87204C7.05203 9.79115 6.57714 11.5807 6.57714 12.3429C6.57714 12.6119 6.65821 12.8285 6.81807 12.9865C6.98097 13.1477 7.2007 13.2295 7.47116 13.2295C7.75939 13.2295 8.11019 13.1184 8.54355 12.89C8.96291 12.669 9.60297 12.1829 10.5004 11.4037C10.5585 11.3532 10.5682 11.2713 10.5233 11.2106Z",fill:"white"}),(0,d.jsx)("path",{d:"M10.4919 2.75343C10.3322 2.60272 10.1279 2.52631 9.88472 2.52631C9.58193 2.52631 9.31821 2.63665 9.10098 2.8543C8.88722 3.06836 8.77881 3.33103 8.77881 3.63498C8.77881 3.87514 8.85865 4.07416 9.01611 4.22648C9.17567 4.3811 9.37721 4.45949 9.61506 4.45949C9.90546 4.45949 10.1678 4.34296 10.3946 4.11311C10.6175 3.88731 10.7306 3.62183 10.7306 3.32406C10.7306 3.09523 10.6503 2.90327 10.4919 2.75343Z",fill:"white"})]});var Te=s(9333),Me=s(9770);const Ae=e=>{let{name:t,duration:s,onViewDetails:l}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:" smobile:text-sm tablet:text-xl font-medium mb-2.5",children:t}),(0,d.jsxs)("div",{className:"flex flex-row justify-between mb-[1.875rem]",children:[(0,d.jsx)("p",{className:"font-normal smobile:text-xs tablet:text-base ",children:s}),(0,d.jsx)("p",{className:"font-normal underline cursor-pointer smobile:text-xs tablet:text-base underline-offset-1 text-view-details ",onClick:()=>{l()},children:"View Details"})]})]})},Fe=e=>{let{currency:t="INR",price:s}=e;return(0,d.jsxs)("div",{className:"flex flex-col content-center",children:[(0,d.jsx)("p",{className:"font-normal smobile:text-xs tablet:text-base text-light ",children:"Price"}),(0,d.jsx)("p",{className:"font-medium smobile:text-sm tablet:text-xl ",children:s})]})},De=(0,l.memo)((e=>{let{type:t}=e;return(0,d.jsx)("div",{className:"bg-black",children:(0,d.jsx)("p",{className:"smobile:py-1 tablet:py-2 smobile:text-xs tablet:text-sm bg-tag-bg-color text-tag-color  font-normal text-center line-clamp-1",children:t})})})),Ze=e=>{let{audioGuided:t=!0,image:s}=e;return(0,d.jsxs)("div",{className:"mb-4 ".concat(t?"":"pt-12"),children:[(0,d.jsx)("div",{className:"-mt-2 translate-y-6 -translate-x-2 tablet:w-4/5 smobile:w-3/5",children:t&&(0,d.jsx)(De,{type:"Audio Guided Program"})}),t&&(0,d.jsx)("img",{src:"./TagShadow.svg",alt:"Shadow",className:"z-10 w-2 h-2 -translate-x-2 translate-y-6"}),(0,d.jsx)("img",{src:s,alt:"Training Program",className:"block rounded-md"})]})};var Oe=s(4182);const Be=e=>{let{info:t}=e;return(0,d.jsxs)("div",{className:"p-5 my-4 list-decimal rounded-md bg-info",children:[(0,d.jsx)("p",{className:"mb-0.5 smobile:text-sm tablet:text-base font-normal ",children:"What you get?"}),t.map(((e,t)=>(0,d.jsx)("li",{className:"mt-2 text-sm font-normal text-light ",children:e},t)))]})},Le=e=>{let{details:t}=e;return(0,d.jsxs)("p",{className:"font-normal text-center smobile:text-sm tablet:text-base ",children:["Equipment :",(0,d.jsx)("span",{className:"ml-4 font-normal smobile:text-sm tablet:text-base text-light-2 ",children:t})]})},qe=e=>{let{raceId:t,id:s,onBackToSummary:l}=e;const a=(0,c.T)(),n=(0,c.C)((0,i.go)(t,s)),r=[{name:"Duration",content:[n.duration]},{name:"Time",content:[...n.logistics]},{name:"Level",content:[n.level]}];return(0,d.jsxs)(d.Fragment,{children:[b.createPortal((0,d.jsx)("div",{className:"fixed top-0 left-0 z-10 w-full h-full bg-background-gray backdrop-blur-xxs backdrop-brightness-25"}),document.getElementById("backdrop-root")),b.createPortal((0,d.jsxs)("div",{className:"flex flex-col absolute justify-between backdrop-blur-xxs z-100 right-0 smobile:px-4 tablet:px-8 py-2 bg-gray-200 tablet:max-w-[532px] smobile:w-screen tablet:h-auto",children:[(0,d.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,d.jsx)("p",{className:"ml-4 text-center basis-11/12 smobile:pt-4 tablet:pt-0 smobile:text-base smobile:font-medium smobile: tablet:text-2xl tablet:font-bold tablet:font-montserrat",children:n.title}),(0,d.jsx)(te.Z,{onClick:l})]}),(0,d.jsx)("div",{className:"mx-auto tablet:px-20",children:(0,d.jsx)(Ze,{audioGuided:n.audioGuided,image:n.image_medium})}),(0,d.jsx)("div",{className:"flex flex-row justify-around mb-2",children:r.map((e=>(0,d.jsx)("div",{className:"flex flex-col items-center",children:(0,d.jsx)(Oe.Z,{name:e.name,label:e.name,content:e.content})},e.name)))}),(0,d.jsx)(Le,{details:n.equipments}),(0,d.jsx)(Be,{info:[...n.details]}),(0,d.jsxs)("div",{className:"px-8 tablet:block smobile:hidden",children:[(0,d.jsx)(we.KM,{handleOnClick:()=>{a((0,i.TW)({raceId:t,planId:s})),l()},text:"ADD TO CART"}),(0,d.jsx)(we.xE,{handleOnClick:l,text:"BACK TO SUMMARY"})]}),(0,d.jsxs)("div",{className:"flex flex-row justify-between tablet:hidden",children:[(0,d.jsx)(we.xE,{handleOnClick:l,text:"CANCEL"}),(0,d.jsx)(we.KM,{handleOnClick:()=>{a((0,i.TW)({raceId:t,planId:s})),l()},text:"ADD TO CART"})]})]}),document.getElementById("overlay-root"))]})},He=e=>{let{raceId:t,id:s,title:a,thumbnail:n,duration:r,displayPrice:o,quantity:x,audioGuided:m,isEditable:b=!0}=e;const u=(0,c.T)(),[p,h]=(0,l.useState)(!1);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"w-[17.5rem] w-flex flex-col px-5 pb-4 bg-white rounded",children:[(0,d.jsx)(Ze,{audioGuided:m,image:n}),(0,d.jsx)(Ae,{name:a,duration:r,onViewDetails:()=>{h(!0)}}),(0,d.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,d.jsx)(Fe,{price:o}),(0,d.jsx)(we.lg,{count:x,isDisabled:!b,handleAddition:()=>{b&&u((0,i.TW)({raceId:t,planId:s}))},handleSubtraction:()=>{b&&b&&u((0,i.Wq)({raceId:t,planId:s}))}})]})]}),p&&(0,d.jsx)(qe,{id:s,raceId:t,onBackToSummary:()=>{h(!1)}})]})},Ve=e=>{let{raceId:t,programs:s,showDesc:l=!0,isEditable:a=!0,onClose:i}=e;return(0,d.jsxs)("div",{className:"py-4 bg-training-pg-bg smobile:px-5 tablet:px-30px",children:[(0,d.jsxs)("div",{className:"flex flex-row items-start justify-between mb-5",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-medium smobile:text-sm tablet:text-xl ",children:"Suggested Training Programs"}),l&&(0,d.jsx)("p",{className:"text-gray-500  smobile:text-xs tablet:text-base font-normal mt-2.5 mb-2",children:"Here are some suggested programs that will help you get ready for the race"})]}),(0,d.jsx)(te.Z,{onClick:i})]}),(0,d.jsx)("div",{className:"flex flex-row tablet:flex-wrap smobile:gap-x-4 tablet:gap-x-8 smobile:overflow-x-auto",children:s.map((e=>(0,d.jsx)(He,{raceId:t,id:e.id,audioGuided:e.audioGuided,title:e.title,duration:e.duration,thumbnail:e.thumbnail,price:e.price,displayPrice:e.displayPrice,quantity:e.quantity,isEditable:a},e.id)))})]})};var ze=s(4904),Ge=(s(821),s(7339));const Ue=e=>{let{id:t,type:s,subTitle:n,regDateDetails:r,currIndex:x,inclusion:m,dis
1playPrice:b,participant:u,totalParticipants:p,isSoldout:h,tickerDetails:f,isExclusive:g,isDisabled:v,ogPrice:j,originalPrice:w,price:y,isTaxIncluded:N,showPrice:C,index:k,onMouseEnterHandling:_}=e;const S=(0,c.T)(),E=(0,c.C)(i.y0),R="club"===E.hostingType,I=(0,c.C)((0,i.JD)(t)),{event:P,eventCat:T}=(0,c.C)((0,o.hc)(t)),M=+b.split(" ")[2];let A=0;j&&(A=+j.split(" ")[2]);const F=(0,c.C)(i._s),D=(0,c.C)(i.fc),Z=(0,c.C)(o.uB),{maxAllowedTickets:O}=P,{maxAllowedTicketsForCategory:B,team_settings:L,isCouponCodeMandatory:q,minAllowedTicketsForCategory:H}=T,{max_count:V}=L;let z=n;V&&(z="Group Size - ".concat(V));const[G,...U]=r,W="Registration closes on"!==U[0]||!!P.showRegCloseDate,K="low"!==f.priority?"bg-marquee-high-div":"bg-marquee-low-div",J="low"!==f.priority?"text-marquee-high":"text-marquee-low",[Y,$]=(0,l.useState)(!0),[Q,X]=(0,l.useState)(!0),ee=D.isResolved&&D.eventCategoryIdentity===t,te=!F.categoriesAccessible.includes(t)&&!ee&&(0,ke.YF)(U[0],h,f.priority),se=D.isResolved&&!ee,le=v||se||(0,ke.sB)(O,B,u,p,U[0],te);(0,l.useEffect)((()=>{Q&&ae(E).then((e=>{E.couponCode&&""!==E.couponCode&&S((0,i.dx)());let t={code:""},s=[];e&&(t=e.discounts[e.appliedCouponIndex],s=e.discounts),S((0,i.nK)({couponCode:t.code,discount:t,flatDiscounts:s})),X(!1)}))}),[E,Q]);const ae=async e=>{const{error:t,result:s}=await(0,a.os)(e.slug,e.races.filter((e=>"donation"!==e.id)).map((e=>({identity:e.id,quantity:e.participant,price:e.originalPrice}))));return!t&&s&&s.discounts&&s.appliedCouponIndex>=0&&s.discounts.length>s.appliedCouponIndex?s:null},ie="yes"===(null===Z||void 0===Z?void 0:Z.showAccessCode)&&te,ne=q&&!te;return(0,d.jsxs)("div",{className:"".concat(f.text?"pt-2":""," mx-auto mt-5 bg-white rounded-[20px] smobile:w-full"),children:[!!f.text&&(0,d.jsx)("div",{className:"w-full px-4 py-2 text-white ".concat(K," "),children:(0,d.jsx)(Ie.Z,{gradient:!1,pauseOnHover:!0,speed:40,children:(0,d.jsx)("p",{className:"text-sm font-semibold  ".concat(J),children:f.text})})}),(0,d.jsxs)("div",{className:"flex flex-row justify-between smobile:py-4 tablet:py-10 smobile:px-2 tablet:px-30px tablet:min-h-40 tablet:max-h-fit place-items-center",children:[(0,d.jsxs)("div",{className:"text-left smobile:basis-3/4 tablet:basis-1/4",children:[(0,d.jsx)("p",{className:"font-medium smobile:text-xs basis-1/6 tablet:text-xl",children:s}),z&&(0,d.jsx)(l.Fragment,{children:(0,d.jsxs)("div",{className:"flex flex-row items-center pl-1 w-fit rounded-subtitle text-ellipsis ".concat(R?"":"bg-sematicInfo-600"),children:[!R&&(0,d.jsx)(Pe,{}),(0,d.jsx)(ze.ZP,{content:(0,d.jsx)("span",{className:"font-medium text-center smobile:text-xs tablet:text-base",children:z}),placement:"bottom",disabled:R,children:(0,d.jsx)("p",{className:"px-2 py-1 font-medium tablet:text-sm smobile:text-xxs ".concat(R?"text-black/[.84]":"text-white"),children:z})})]})}),W&&(0,d.jsx)("p",{className:"font-normal smobile:text-xs pt-2px text-light tablet:text-base",children:U[0]}),W&&U[1]&&(0,d.jsx)("p",{className:"smobile:text-xs pt-2px ".concat(G,"  font-normal tablet:text-base"),children:U[1]}),!!E.slug&&Ge.FA.includes(E.slug)&&U[2]&&U[3]&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:"font-bold smobile:text-xs pt-2px mt-1 text-light tablet:text-sm",children:U[2]}),(0,d.jsx)("p",{className:"smobile:text-xs font-normal tablet:text-base",children:U[3]})]}),(0,d.jsx)("div",{className:"text-justify basis-1/4 smobile:block tablet:hidden",children:0!==m.length&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"flex flex-row flex-wrap items-center justify-start gap-x-2 gap-y-1",children:m.map((e=>(0,d.jsx)(Me.Z,{text:e},e)))})})})]}),(0,d.jsx)("div",{className:"text-justify basis-1/3 smobile:hidden tablet:block",children:0!==m.length&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:"text-base font-normal text-center ",children:"Inclusive"}),(0,d.jsx)("div",{className:"flex flex-row flex-wrap items-center justify-center px-1 gap-x-2 gap-y-1",children:m.map((e=>(0,d.jsx)(Me.Z,{text:e},e)))})]})}),(0,d.jsxs)("div",{className:"flex flex-col text-center ".concat(C?"":"invisible"),children:[V?(0,d.jsx)("p",{className:"font-medium text-center smobile:text-xs tablet:text-base basis-1/4 text-strikethrough",children:j&&(0,d.jsx)("s",{children:A*V})}):(0,d.jsx)("p",{className:"font-medium text-center smobile:text-xs tablet:text-base basis-1/4 text-strikethrough",children:j&&(0,d.jsx)("s",{children:j})}),V?(0,d.jsxs)("p",{className:"font-medium text-center smobile:text-xs tablet:text-xl basis-1/4",children:["Rs. ",M*V,!N&&"+ GST"]}):(0,d.jsxs)("p",{className:"font-medium text-center smobile:text-xs tablet:text-xl basis-1/4",children:[b,!N&&"+ GST"]}),N&&(0,d.jsx)("p",{className:"smobile:text-xxs tablet:text-xs text-light",children:"(Inc. of all taxes)"})]}),te?(0,d.jsx)(we.KW,{}):(0,d.jsx)(we.lg,{isDisabled:le,count:u,handleAddition:()=>{S((0,i.kc)({id:t,participant:u,minAllowedTicketsForCategory:H})),S((0,i.l4)({isExclusive:g})),X(!0)},handleSubtraction:()=>{S((0,i.pA)({id:t,participant:u,minAllowedTicketsForCategory:H})),S((0,i.l4)({isExclusive:g})),X(!0)}})]}),0!==u&&Y&&0!==I.length&&(0,d.jsx)(Ve,{raceId:t,programs:I,onClose:()=>{$(!1)}}),ie&&(0,d.jsxs)("div",{className:"flex items-center justify-center py-1 pr-2 bg-access-code-bgcolor tablet:justify-end tablet:py-3 tablet:pr-5 font-rubik",children:[(0,d.jsx)(Te.Z,{width:"16",height:"16"}),(0,d.jsxs)("span",{className:"pl-1 text-sm tablet:pl-2 text-access-code-text tablet:text-base",children:["Have Access Code?",(0,d.jsx)("button",{className:"px-1 font-semibold bg-transparent tablet:px-2",onClick:()=>S((0,i.ih)()),children:"Click here"})]})]}),ne&&(0,d.jsx)("div",{className:"flex items-center justify-center py-1 pr-2 bg-access-code-bgcolor tablet:justify-end tablet:py-3 tablet:pr-5 font-rubik",children:(0,d.jsx)("span",{className:"pl-1 text-sm tablet:pl-2 text-access-code-text tablet:text-base",children:"Open Registrations are closed, Coupon Code is mandatory to proceed"})})]})},We=e=>{let{title:t,isTaxIncluded:s,races:a,showPrice:n}=e;const r=(0,c.C)(i.ZH),[x,m]=(0,l.useState)(0),b=(0,c.C)(i.$k),u=(0,c.C)((e=>a.map((t=>({race:t,eventCat:(0,o.hc)(t.id)(e).eventCat}))))),p=!!u.some((e=>{let{eventCat:t}=e;return t.minAllowedTicketsForCategory>1}))&&u.some((e=>{let{race:t,eventCat:s}=e;return t.participant>=s.minAllowedTicketsForCategory})),h="scf-global-10k-run-navi-mumbai-49838"===b;return(0,d.jsxs)("div",{className:"pt-10 pb-20 smobile:px-3 tablet:px-8 lg:px-16",children:[a.length>1&&(0,d.jsxs)("div",{children:[(0,d.jsx)("h4",{className:"mb-1 font-bold text-center smobile:text-sm tablet:text-3xl",children:"Select Category"}),(0,d.jsxs)("h6",{className:"mb-4 font-medium text-center smobile:text-xs tablet:text-base text-neutral-500",children:["Here are the available categories for ",t]}),h?(0,d.jsx)("p",{className:"mb-4 font-bold text-center smobile:text-xs tablet:text-base text-green-600",children:"COUPON CODE NOT APPLICABLE"}):""]}),a.map(((e,t)=>(0,d.jsx)(Ue,{index:t,currIndex:x,id:e.id,type:e.type,isExclusive:e.isExclusive,isDisabled:e.isDisabled||p,subTitle:e.subTitle,regDateDetails:e.regDateDetails,tickerDetails:e.tickerDetails,inclusion:e.inclusion,price:e.price,originalPrice
1:e.originalPrice,ogPrice:e.ogPrice,displayPrice:e.displayPrice,participant:e.participant,totalParticipants:r,isSoldout:e.isSoldout,isTaxIncluded:s,showPrice:n,onMouseEnterHandling:e=>{m(e)}},e.id)))]})},Ke=e=>{let{swidth:t}=e;return t<=425?(0,d.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M7.875 8C8.33913 8 8.78425 8.21071 9.11244 8.58579C9.44063 8.96086 9.625 9.46957 9.625 10V11.5C9.625 13.554 7.798 15 4.8125 15C1.827 15 0 13.554 0 11.5V10C0 9.46957 0.184374 8.96086 0.512563 8.58579C0.840752 8.21071 1.28587 8 1.75 8H7.875ZM12.25 8C12.7141 8 13.1592 8.21071 13.4874 8.58579C13.8156 8.96086 14 9.46957 14 10V10.5C14 12.589 12.628 14 10.0625 14C9.93913 14 9.8175 13.997 9.70025 13.99C10.1779 13.3624 10.4574 12.5697 10.4939 11.739L10.5 11.5V10C10.5 9.308 10.2952 8.67 9.9505 8.163L9.83062 8H12.25ZM4.8125 0C5.21467 -6.84897e-09 5.61291 0.0905301 5.98447 0.266422C6.35603 0.442313 6.69364 0.700121 6.97801 1.02513C7.26239 1.35013 7.48798 1.73597 7.64188 2.16061C7.79579 2.58525 7.875 3.04037 7.875 3.5C7.875 3.95963 7.79579 4.41475 7.64188 4.83939C7.48798 5.26403 7.26239 5.64987 6.97801 5.97487C6.69364 6.29988 6.35603 6.55769 5.98447 6.73358C5.61291 6.90947 5.21467 7 4.8125 7C4.00027 7 3.22132 6.63125 2.64699 5.97487C2.07266 5.3185 1.75 4.42826 1.75 3.5C1.75 2.57174 2.07266 1.6815 2.64699 1.02513C3.22132 0.368749 4.00027 1.38321e-08 4.8125 0ZM10.9375 2C11.5177 2 12.0741 2.26339 12.4843 2.73223C12.8945 3.20107 13.125 3.83696 13.125 4.5C13.125 5.16304 12.8945 5.79893 12.4843 6.26777C12.0741 6.73661 11.5177 7 10.9375 7C10.3573 7 9.80094 6.73661 9.3907 6.26777C8.98047 5.79893 8.75 5.16304 8.75 4.5C8.75 3.83696 8.98047 3.20107 9.3907 2.73223C9.80094 2.26339 10.3573 2 10.9375 2Z",fill:"#09A6B7"})}):(0,d.jsx)("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M10.125 10.1333C10.7217 10.1333 11.294 10.4002 11.716 10.8753C12.1379 11.3504 12.375 11.9948 12.375 12.6667V14.5667C12.375 17.1684 10.026 19 6.1875 19C2.349 19 0 17.1684 0 14.5667V12.6667C0 11.9948 0.237053 11.3504 0.65901 10.8753C1.08097 10.4002 1.65326 10.1333 2.25 10.1333H10.125ZM15.75 10.1333C16.3467 10.1333 16.919 10.4002 17.341 10.8753C17.7629 11.3504 18 11.9948 18 12.6667V13.3C18 15.9461 16.236 17.7333 12.9375 17.7333C12.7789 17.7333 12.6225 17.7295 12.4718 17.7207C13.0859 16.9257 13.4452 15.9217 13.4921 14.8694L13.5 14.5667V12.6667C13.5 11.7901 13.2367 10.982 12.7935 10.3398L12.6394 10.1333H15.75ZM6.1875 0C6.70458 -8.67536e-09 7.2166 0.114671 7.69432 0.337467C8.17204 0.560263 8.6061 0.88682 8.97173 1.29849C9.33736 1.71017 9.6274 2.19889 9.82528 2.73677C10.0232 3.27465 10.125 3.85114 10.125 4.43333C10.125 5.01553 10.0232 5.59202 9.82528 6.1299C9.6274 6.66777 9.33736 7.1565 8.97173 7.56817C8.6061 7.97985 8.17204 8.3064 7.69432 8.5292C7.2166 8.752 6.70458 8.86667 6.1875 8.86667C5.14321 8.86667 4.14169 8.39958 3.40327 7.56817C2.66484 6.73676 2.25 5.60913 2.25 4.43333C2.25 3.25754 2.66484 2.1299 3.40327 1.29849C4.14169 0.467082 5.14321 1.75207e-08 6.1875 0ZM14.0625 2.53333C14.8084 2.53333 15.5238 2.86696 16.0512 3.46083C16.5787 4.05469 16.875 4.86015 16.875 5.7C16.875 6.53985 16.5787 7.34531 16.0512 7.93917C15.5238 8.53304 14.8084 8.86667 14.0625 8.86667C13.3166 8.86667 12.6012 8.53304 12.0738 7.93917C11.5463 7.34531 11.25 6.53985 11.25 5.7C11.25 4.86015 11.5463 4.05469 12.0738 3.46083C12.6012 2.86696 13.3166 2.53333 14.0625 2.53333Z",fill:"#09A6B7"})})};var Je=s(2140);const Ye=e=>{let{categoryInfo:t,onClose:s,onCreateTeam:r}=e;const o=(0,c.T)(),[x,m]=(0,l.useState)(""),[u,p]=(0,l.useState)(""),h=(0,c.C)(i.$k),[f,g]=(0,l.useState)(""),[v,j]=(0,l.useState)(!1),[w,y]=(0,l.useState)([]);return(0,d.jsxs)(d.Fragment,{children:[b.createPortal((0,d.jsx)("div",{className:"fixed top-0 left-0 z-10 w-full h-full bg-background-gray backdrop-blur-xxs backdrop-brightness-25"}),document.getElementById("backdrop-root")),b.createPortal((0,d.jsx)("div",{className:"fixed left-0 flex flex-col justify-between w-screen tablet:py-2 smobile:pb-0 z-100 tablet:top-36 smobile:bottom-0 tablet:h-auto font-rubik",children:(0,d.jsxs)("div",{className:"flex flex-col w-full tablet:min-w-[600px] tablet:max-w-[800px] tablet:w-auto mx-auto text-center bg-white tablet:pb-8 smobile:pb-4 smobile:gap-y-3 tablet:gap-y-4 smobile:px-4 tablet:px-8 rounded-lg rounded-b-none tablet:rounded-xl smobile:rounded-t-xl",children:[(0,d.jsx)("div",{className:"static self-end mt-4 -mb-8",children:(0,d.jsx)(te.Z,{onClick:()=>{s()}})}),(0,d.jsxs)("p",{className:"self-center text-base font-semibold text-black tablet:text-xl",children:["Team Event - ",t.name]}),!x&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:"self-center text-sm text-primary tablet:text-base",children:"Select one of the options to proceed"}),(0,d.jsxs)("div",{className:"flex flex-row py-2 justify-evenly tablet:py-4",children:[(0,d.jsxs)("div",{className:"tablet:p-4 p-2 text-white text-xs tablet:text-base rounded-lg cursor-pointer bg-[#09A6B7] font-semibold",onClick:()=>{m("team_name")},children:[(0,d.jsx)("span",{className:"mr-1 font-bold",children:"+"})," Create Team"]}),(0,d.jsxs)("div",{className:"flex flex-row gap-x-2 tablet:p-4 p-2 text-xs tablet:text-base text-[#09A6B7] bg-[#BBE8CD] rounded-lg cursor-pointer font-semibold",onClick:()=>{m("team_code")},children:[(0,d.jsx)(Ke,{swidth:window.screen.width})," Join Team"]})]})]}),x&&(0,d.jsxs)("div",{className:"py-2 tablet:py-4",children:[(0,d.jsx)("div",{className:"-mb-4",children:(0,d.jsx)(Je.D1,{hideBackText:!0,handleOnClick:()=>{m(""),p(""),g(""),y([])}})}),"team_name"===x&&(0,d.jsxs)("div",{className:"flex flex-col items-center gap-y-4",children:[(0,d.jsx)("p",{className:"text-base font-semibold tablet:text-lg",children:"Create Team"}),(0,d.jsx)("input",{type:"text",id:"New Team Name",placeholder:"Team Name",className:de.G6+" w-[80%]",value:u,onChange:e=>{const t=e.target.value;t.length<20&&p(t)}})]}),"team_code"===x&&!w.length&&(0,d.jsxs)("div",{className:"flex flex-col items-center gap-y-4",children:[(0,d.jsx)("p",{className:"text-lg font-semibold",children:"Join Team"}),(0,d.jsx)("input",{type:"text",id:"Team Secret Code",placeholder:"Enter Team Code Here",className:de.G6+" w-[80%]",value:u,onChange:e=>{const t=e.target.value;t.length<20&&p(t)}})]}),f&&(0,d.jsx)("p",{className:"py-2 text-center text-red-500 ",children:f}),!!w.length&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("p",{className:"mb-4 text-xl font-semibold",children:["Team Members of ",w[0].teamName," "]}),(0,d.jsxs)("div",{className:"flex flex-col border-2",children:[(0,d.jsxs)("div",{className:"flex flex-row justify-around",children:[(0,d.jsx)("p",{className:"text-lg font-medium border-2 basis-1/3",children:"Sr. No"}),(0,d.jsx)("p",{className:"text-lg font-medium border-2 basis-1/3",children:"Name"}),(0,d.jsx)("p",{className:"text-lg font-medium border-2 basis-1/3",children:"Gender"})]}),w.map(((e,t)=>{let{first_name:s,gender:l,memberRole:a}=e;return(0,d.jsxs)("ol",{className:"flex flex-row justify-around",children:[(0,d.jsx)("li",{className:"border-2 basis-1/3",children:t+1}),(0,d.jsxs)("li",{className:"border-2 basis-1/3",children:[s," ","captain"===a&&(0,d.jsx)("span",{children:"(c)"})]}),(0,d.jsx)("li",{className:"border-2 basis-1/3",children:l})]},t)}))]})]})]}),x&&(0,d.jsx)("div",{className:"w-full mx-auto ",children:(0,d.jsx)(we.KM,{isDisabled:0===u.trim().length||v,handleOnClick:()=>{(async(e,s)=>{if(j(!0),"team_code"===e)if(w.length)await r(),o((0,n.ir)({data:{existing_teams:w[0].teamName,participation_option:"Join Existing Team",team_code:u}}));else{let e=u.trim();const s=await(0,a.oO)(h,e,t.id);j(!1),s.error?g("Invalid Team code"):(g(""),y(s.res.participants))}if("team_name"===e){const e=u.trim();await r(),o((0,n.ir)({data:{new_team:e,participation_option:"Create New Team"}}))}})(x)},text:"".concat(w.length&&"team_name"===x?"Proceed":"Submit")})})]})}),document.getElementById("overlay-root"))]})};var $e=s(8467),Qe=s(2135);const Xe=()=>{const e=(0,c.T)(),t=(0,c.C)(i.BH),[s,b]=(0,l.useState)(""),[u,p]=(0,l.useState)(!1),h=(0,c.C)(i.y0),f=(0,c.C)(o.uB),g=(0,c.C)(i._s),v=(0,c.C)(i.K0),j=(0,c.C)(i.Vs),w=(0,c.C)(i.YS),y=(0,c.C)(i.$k),N=(0,Ge.Sn)(),C=(0,c.C)(o.Zw),k=(0,c.C)(i.JJ);let{allPurchases:_,fields:S,totalParticipants:E,raceCountMapping:R}=(0,c.C)(i.tv);const I=(0,c.C)((0,o.iy)(_.map((e=>e.id)))),P=(0,c.C)(i.fc),[T,M]=(0,l.useState)(!1),[A]=(0,Qe.lr)(),F="/register"===(0,$e.TH)().pathname&&!A.get("onspot"),[D,Z]=(0,l.useState)(!!A.get("onspot")),[O,B]=(0,l.useState)(!1),L=(0,l.useRef)(!1);(0,l.useEffect)((()=>
1{const s=A.get("category");s&&t&&(0==E&&e((0,i.kc)({id:s})),_.length&&t&&(async()=>{await q(_,S,R,E),(0,ke.Di)("Button","Clicked","Hotlead Add To Cart")})())}),[A,_.length]);(0,l.useEffect)((()=>{const t=A.get("onspot");t&&(async()=>{const{error:s,res:l}=await(0,a.KP)(t);if(s||!l)return Z(!1),void B(!0);e((0,r.Iy)(void 0)),e((0,i.BO)({token:t,eventCategoryIdentity:l.eventCategoryIdentity,countryCode:l.countryCode,phoneNumber:l.phoneNumber,couponCode:l.couponCode,expiresAt:l.expiresAt})),e((0,r.G7)({phone:l.phoneNumber,phoneCountryCode:l.countryCode}))})()}),[A]),(0,l.useEffect)((()=>{!L.current&&P.isResolved&&0===E&&h.races.some((e=>e.id===P.eventCategoryIdentity))&&(L.current=!0,e((0,i.kc)({id:P.eventCategoryIdentity})))}),[P.isResolved,h.races,E]),(0,l.useEffect)((()=>{A.get("onspot")&&P.isResolved&&_.length&&(async()=>{await q(_,S,R,E)})()}),[A,_.length,P.isResolved]),(0,l.useEffect)((()=>{s&&D&&Z(!1)}),[s]),(0,l.useEffect)((()=>{f.showPopup&&setTimeout((()=>{M(!0),e((0,o.B8)({showPopup:!1}))}),400)}),[e,f.showPopup]);const q=async(t,s,l,o)=>{const c=t.map((e=>e.id)),d={categoryId:c},x={categoryIdentities:c};g.code&&(d.accessCode=g.code),"pre_registration"===f.regType&&(d.mode="pre_registration"),P.isResolved&&(d.onspotToken=P.token);const{result:m,error:u}=await(0,a.K)(y,d);if(u)b(u);else{e((0,r.nf)({isLoggedIn:!1}));const t=P.isResolved?Object.fromEntries(Object.entries(m||{}).map((e=>{let[t,s]=e;return[t,(s||[]).filter((e=>"participant-information"!==e.identity))]}))):m;e((0,n.vE)({formFields:t})),e((0,n.ep)({fields:s,raceCountMapping:l,addAccountInformation:!0})),e((0,n.q2)({count:o,raceCountMapping:l})),e((0,i.RZ)({page:Ge.As.Form}))}const p=await(0,a.fy)(y,x);p&&e((0,n.dq)(p.result))};return F?(0,d.jsx)(ce.default,{title:"Invalid Link",message:"This registration link is missing its on-spot token."}):O?(0,d.jsx)(ce.default,{title:"Invalid Link",message:"This on-spot registration link is invalid or has expired."}):D?(0,d.jsx)("div",{className:"flex items-center justify-center h-screen bg-gray-200",children:(0,d.jsx)(x,{})}):(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{className:"flex flex-col h-screen overflow-y-auto bg-gray-200",children:[!N&&(0,d.jsx)("div",{className:"pb-4 ".concat("club"===h.hostingType?"bg-gray-200":"bg-white shadow-md shadow-main-div-shadow-color"),children:(0,d.jsxs)("div",{className:"flex flex-col w-full bg-gradient-to-r from-secondary-900 to-secondary-900 h-[36%] mmobile:h-[40%] lmobile:h-[44%] tablet:h-[50%] lg:h-[60%]",children:[(0,d.jsx)(Re.Z,{}),(0,d.jsx)(m.Z,{slug:y,title:h.title,bannerImage:h.bannerImage,icons:w})]})}),!N&&!f.hideAboutEventSection&&("club"===h.hostingType?(0,d.jsx)(ve,{aboutRace:h.aboutRace,customSections:h.moreSections.custom_sections}):(0,d.jsx)(fe,{aboutRace:h.aboutRace})),"pre_registration"===f.regType&&(0,d.jsx)(ue,{}),"pre_registration"===f.regType&&T&&(0,d.jsx)(pe.Z,{onClose:()=>{M(!1)}}),(0,d.jsx)(We,{title:h.title,races:h.races,showPrice:!f.hidePricesOnLandingPage,isTaxIncluded:C}),!N&&h.faqData&&(()=>{try{const e=JSON.parse(h.faqData);if(e.faq&&"object"===typeof e.faq&&!Array.isArray(e.faq)){const t=Object.entries(e.faq).map((e=>{let[t,s]=e;return{question:t,answer:s}}));return(0,d.jsx)(Ne,{items:t,subtitle:e.subtitle})}}catch{}return null})(),!N&&!h.faqData&&h.faq&&(0,d.jsx)(ye,{link:h.faq}),s&&(0,d.jsx)(me.Z,{message:s,onClose:()=>{b("")}}),0!==k.raceCount&&(0,d.jsx)(Ee,{total:k.total,showPrice:!f.hidePricesOnLandingPage,raceCount:k.raceCount,isTaxIncluded:C,isDiscountIncluded:null!==v&&void 0!==v&&""!==v,onProceed:async()=>{I?p(!0):await q(_,S,R,E)}}),g.showModal&&(0,d.jsx)(xe,{}),j.showModal&&(0,d.jsx)(oe,{}),u&&(0,d.jsx)(Ye,{categoryInfo:_[0],onClose:()=>{p(!1)},onCreateTeam:async()=>{await q(_,S,R,E)}}),(0,d.jsx)(Ce.Z,{})]})})}},7238:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var l=s(7313),a=s(4063),i=s(5635),n=s(9603),r=s(5568),o=s(2568),c=s(6417);const d=()=>{const e=(0,i.T)(),{first_name:t}=(0,i.C)(a.Fj);return(0,c.jsxs)("div",{className:"relative flex flex-row items-center w-auto gap-3 group",children:[t?(0,c.jsx)("div",{className:"relative bg-orange-500 border-2 rounded-full tablet:w-10 tablet:h-10 smobile:w-8 smobile:h-8 z-5 ",children:(0,c.jsx)("span",{className:"absolute -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2 ",children:t.toString()[0]})}):(0,c.jsx)("img",{alt:"user-icon",src:"/default-login-icon.svg",className:"h-auto"}),(0,c.jsx)("span",{className:" group-hover:block absolute right-[10px] hidden border-white border-solid -bottom-5 tablet:-bottom-4 rotate-45 border-t-white border-r-[18px] border-t-[18px]"}),(0,c.jsx)("div",{className:"absolute hidden group-hover:block -bottom-12 -left-12",children:(0,c.jsxs)("button",{className:"text-[#023571] font-rubik font-semibold text-sm tablet:text-base px-2 pr-4 py-2 flex items-center border-1 rounded-md justify-center bg-white",onClick:()=>{(async()=>{await(0,n.Kv)(),e((0,r.ys)({})),e((0,o.jM)({})),e((0,a.qn)({}))})()},children:[(0,c.jsx)("img",{alt:"logout-icon",src:"/logout-icon.svg",className:"px-2"}),"Logout"]})})]})};var x=s(2485),m=s(6521),b=s(7339);const u=e=>{let{showLoginButton:t=!0}=e;const[s,n]=(0,l.useState)(!1),o=(0,i.C)(a.qK),u="scf-global-10k-run-navi-mumbai-49838"!==(0,i.C)(r.$k);return(0,b.Sn)()?null:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("nav",{className:"flex flex-row-reverse justify-around w-11/12 mx-auto 
1smobile:pt-5 tablet:pt-10 smobile:mb-0 tablet:mb-8 justify-items-center place-content-center",children:[(0,c.jsx)("div",{className:"flex items-center cursor-pointer basis-1/12",children:o?(0,c.jsx)(d,{}):t&&(0,c.jsx)("p",{className:"font-medium text-center text-white smobile:text-base tablet:text-xl",onClick:()=>{n(!0)},children:(0,c.jsx)("img",{alt:"user-icon",src:"/default-login-icon.svg",className:"h-auto"})})}),u?(0,c.jsx)(x.Z,{classes:"pl-0 mt-2 sm:mt-0 sm:pl-24 basis-2/3",url:"https://www.indiarunning.com/",children:(0,c.jsx)("img",{className:"block smobile:h-9 smobile:w-32 tablet:w-64 tablet:h-11 smobile:left-4 sm:left-32 top-5 tablet:top-10",src:"/IR-new-logo.svg",alt:"Logo"})}):(0,c.jsx)("div",{className:"basis-2/3 block smobile:h-9 smobile:w-32 tablet:w-64 tablet:h-14 smobile:left-4 sm:left-32 top-5 tablet:top-10"})]}),s&&(0,c.jsx)(m.Z,{onBackClick:()=>{n(!1)}})]})}},7229:(e,t,s)=>{"use strict";s.d(t,{Fk:()=>a,HC:()=>c,Kl:()=>i,Mo:()=>r,RE:()=>l,Ts:()=>o,gR:()=>n});const l=["Phone Number and Email ID are required to save details in this form to your account and to send you event updates.","If you are filling details for someone else (eg. friend, relative, etc), ensure to login with their Phone Number and Email ID so that details in this form are NOT saved to your account."],a=[" *   Indicates mandatory fields.","Fields highlighted with '{}' are saved to your account."],i=["gender","corporate","existing_team_captain","participant_type","promotional_emails"],n=[{step_type:"incomplete",step_text:"step",step_number:1,step_header:"Pre-Register",step_header_color:"text-sematicInfo-500",dates:[{text:"Starts on",date:"3rd April, 2024",day:"Monday",time:"6:00 AM",extra:"Morning"},{text:"Ends on",date:"7th April, 2024",day:"Friday",time:"6:00 PM",extra:"Evening"}],step_text_color:"text-black",step_number_bg:"bg-sematicInfo-200"},{step_type:"incomplete",step_text:"step",step_number:2,step_header:"Final Registration",step_header_color:"text-sematicInfo-500",dates:[{text:"Starts on",date:"10th April, 2024",day:"Monday",time:"6:00 AM",extra:"Morning"},{text:"Ends on",date:"Till Seats Full",day:"",time:"",extra:"(First Come First Served)"}],step_text_color:"text-black",step_number_bg:"bg-sematicInfo-200"}],r=[{step_type:"completed",step_text:"step",step_number:1,step_header:"Pre-Register",step_header_color:"text-sematicSuccess-300",dates:[{text:"Starts on",date:"3rd April,2024",day:"Monday",time:"6:00 AM",extra:"Morning"},{text:"Ends on",date:"7th April,2024",day:"Friday",time:"6:00 PM",extra:"Evening"}],step_text_color:"text-black",step_number_bg:"bg-sematicSuccess-100"},{step_type:"incomplete",step_text:"step",step_number:2,step_header:"Final Registration",step_header_color:"text-sematicInfo-500",dates:[{text:"Starts on",date:"10th April,2024",day:"Monday",time:"6:00 AM",extra:"Morning"},{text:"Ends on",date:"Till Seats Full",day:"",time:"",extra:"(First Come First Served)"}],step_text_color:"text-black",step_number_bg:"bg-sematicInfo-200"}],o=["To join the 2024 JBG Satara Hill Half Marathon on September 1, pre-registration is required, and a pre-registration code will be provided in the confirmation email and SMS for final registration."],c=["You will get a pre-registration code in the confirmation mail and on SMS as well, which will be needed at the time of final registration."]},5302:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var l=s(1168),a=s(5568),i=s(5635),n=s(2497),r=s(7229),o=s(1114),c=s(6417);const d=e=>{let{onClose:t}=e;const s=(0,i.C)(a.YQ);return(0,c.jsxs)(c.Fragment,{children:[l.createPortal((0,c.jsx)("div",{className:"fixed top-0 left-0 z-10 w-full h-full bg-background-gray backdrop-blur-xxs backdrop-brightness-25"}),document.getElementById("backdrop-root")),l.createPortal((0,c.jsx)("div",{className:"fixed left-0 flex flex-col justify-between w-screen py-2 z-100 tablet:top-1/4 smobile:top-24 tablet:h-auto",children:(0,c.jsxs)("div",{className:"flex flex-col pb-8 mx-auto bg-sematicInfo-100 smobile:gap-y-3 tablet:gap-y-8 smobile:px-4 tablet:px-9 rounded-xl",children:[(0,c.jsx)("div",{className:"relative h-1 tablet:-mb-6 smobile:-mb-2 bg-tertiary-600"}),(0,c.jsx)("div",{className:"static self-end tablet:-mr-6 smobile:-mr-2 tablet:-mb-6 smobile:-mb-2",children:(0,c.jsx)(n.Z,{onClick:()=>{t()}})}),(0,c.jsxs)("p",{className:"mx-4 text-center smobile:pt-0 tablet:pt-2 smobile:text-sm smobile:font-medium tablet:text-xl tablet:font-normal",children:["To participate in ",s,",",(0,c.jsx)("br",{}),"follow these 2 simple steps:"]}),(0,c.jsx)("div",{className:"flex overflow-auto smobile:h-80 tablet:h-auto tablet:flex-row tablet:gap-x-8 smobile:flex-col smobile:gap-y-4",children:r.gR.map(((e,t)=>(0,c.jsx)("div",{children:(0,c.jsx)(o.Z,{...e},t)},t)))}),(0,c.jsx)("div",{className:"flex bg-[#FFF5DB] flex-col max-w-[900px] rounded-lg",children:(0,c.jsx)("div",{className:"tablet:p-4 smobile:p-2 max-w-[780px] text-justify",children:(0,c.jsxs)("ul",{className:"flex items-center tablet:px-4 smobile:pl-3 tablet:gap-y-2 smobile:gap-y-1 ",children:[(0,c.jsx)("img",{className:"pr-4",src:"/info-icon.svg",alt:"info-icon"}),r.Ts.map(((e,t)=>(0,c.jsx)("li",{className:"tablet:text-sm smobile:text-xxs2 text-instructions font-normal",children:e},t)))]})})})]})}),document.getElementById("overlay-root"))]})}},1114:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var l=s(6417);const a=e=>{let{text:t,date:s,day:a,time:i,extra:n}=e;return(0,l.jsxs)("div",{className:"flex flex-col smobile:justify-between",children:[(0,l.jsx)("p",{className:"font-semibold tablet:text-sm smobile:text-xxs2 basis-1/3 text-radio",children:t}),(0,l.jsx)("div",{className:"font-bold tablet:text-sm smobile:text-xxs2 text-neutral-500",children:(0,l.jsxs)("p",{children:[s," ",a," | ",i," ",n]})})]})},i=e=>{let{step_type:t,step_number:s,step_header:i,dates:n,step_header_color:r}=e;return(0,l.jsxs)("div",{className:"flex flex-col text-sm smobile:pt-2 tablet:pt-4 tablet:px-4 smobile:px-2 tablet:gap-y-4 smobile:gap-y-2",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsxs)("p",{className:"font-extrabold ".concat(r," capitalize smobile:text-sm tablet:text-xl"),children:[i," ",s]}),"completed"===t&&(0,l.jsx)("img",{className:"pl-2",src:"/success-check.svg",alt:"success-check"})]}),n.map(((e,t)=>(0,l.jsx)(a,{...e},t)))]})},n=e=>
1{let{step_number:t,step_number_bg:s,step_text:a,step_text_color:i}=e;return(0,l.jsx)("div",{className:"flex justify-center items-center relative px-3 w-14 rounded-l-lg ".concat(s," ").concat(i),children:(0,l.jsx)("div",{className:"absolute font-semibold transform -rotate-90 smobile:text-sm tablet:text-base text-nowrap",children:a})})},r=e=>{let{step_number:t,step_text_color:s,step_number_bg:a,step_text:r,step_header:o,step_type:c,dates:d,step_header_color:x}=e;return(0,l.jsxs)("div",{className:"flex flex-row bg-white rounded-lg smobile:h-36 tablet:h-48",children:[(0,l.jsx)(n,{step_number:t,step_number_bg:a,step_text:o,step_text_color:s}),(0,l.jsx)(i,{step_type:c,step_header:r,step_number:t,step_header_color:x,dates:d})]})}},3529:(e,t,s)=>{"use strict";s.d(t,{w:()=>d});var l=s(7313),a=s(6056);const i=(e,t)=>{a.ZP.dismiss(),"success"===t?a.ZP.success(e):a.ZP.error(e)};var n=s(4063),r=s(5635),o=s(553),c=s(6212);const d=()=>{const e=(0,r.T)(),t=(0,r.C)((e=>e.Login)),s=(0,r.C)(n.V_),a=(0,r.C)(n.V9),d=(0,l.useCallback)((e=>{let{requireOnboarding:s=!0,onSuccess:l}=e;return!a&&((0,o.Us)(t,s)?(l(),!0):((0,c.pU)({onSuccess:l,requireOnboarding:s}),!1))}),[a,t]),x=(0,l.useCallback)((function(t,s){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{requireOnboarding:a=!0}=l;d({onSuccess:s,requireOnboarding:a})||(i(t,"error"),e((0,n.W7)()))}),[e,d]),m=(0,l.useCallback)((()=>{(0,c.gB)(),e((0,n.T$)())}),[e]);return{ensureAuth:d,promptLogin:x,abandonPendingAuth:m,userState:s,isAuthenticated:t.isLoggedIn&&t.isPhoneVerified}}},9706:(e,t,s)=>{var l=s(7313);function a(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var i=a(l);!function(e){if(!e||"undefined"===typeof window)return;const t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('.rfm-marquee-container {\n  overflow-x: hidden;\n  display: flex;\n  flex-direction: row;\n  position: relative;\n  width: var(--width);\n  transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n  animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n  animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n  background: linear-gradient(to right, var(--gradient-color), transparent);\n  content: "";\n  height: 100%;\n  position: absolute;\n  width: var(--gradient-width);\n  z-index: 2;\n  pointer-events: none;\n  touch-action: none;\n}\n.rfm-overlay::after {\n  right: 0;\n  top: 0;\n  transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n  left: 0;\n  top: 0;\n}\n\n.rfm-marquee {\n  flex: 0 0 auto;\n  min-width: var(--min-width);\n  z-index: 1;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n  animation-play-state: var(--play);\n  animation-delay: var(--delay);\n  animation-direction: var(--direction);\n}\n@keyframes scroll {\n  0% {\n    transform: translateX(0%);\n  }\n  100% {\n    transform: translateX(-100%);\n  }\n}\n\n.rfm-initial-child-container {\n  flex: 0 0 auto;\n  display: flex;\n  min-width: auto;\n  flex-direction: row;\n  align-items: center;\n}\n\n.rfm-child {\n  transform: var(--transform);\n}');const n=l.forwardRef((function(e,t){let{style:s={},className:a="",autoFill:n=!1,play:r=!0,pauseOnHover:o=!1,pauseOnClick:c=!1,direction:d="left",speed:x=50,delay:m=0,loop:b=0,gradient:u=!1,gradientColor:p="white",gradientWidth:h=200,onFinish:f,onCycleComplete:g,onMount:v,children:j}=e;const[w,y]=l.useState(0),[N,C]=l.useState(0),[k,_]=l.useState(1),[S,E]=l.useState(!1),R=l.useRef(null),I=t||R,P=l.useRef(null),T=l.useCallback((()=>{if(P.current&&I.current){const e=I.current.getBoundingClientRect(),t=P.current.getBoundingClientRect();let s=e.width,l=t.width;"up"!==d&&"down"!==d||(s=e.height,l=t.height),_(n&&s&&l&&l<s?Math.ceil(s/l):1),y(s),C(l)}}),[n,I,d]);l.useEffect((()=>{if(S&&(T(),P.current&&I.current)){const e=new ResizeObserver((()=>T()));return e.observe(I.current),e.observe(P.current),()=>{e&&e.disconnect()}}}),[T,I,S]),l.useEffect((()=>{T()}),[T,j]),l.useEffect((()=>{E(!0)}),[]),l.useEffect((()=>{"function"===typeof v&&v()}),[]);const M=l.useMemo((()=>
1n?N*k/x:N<w?w/x:N/x),[n,w,N,k,x]),A=l.useMemo((()=>Object.assign(Object.assign({},s),{"--pause-on-hover":!r||o?"paused":"running","--pause-on-click":!r||o&&!c||c?"paused":"running","--width":"up"===d||"down"===d?"100vh":"100%","--transform":"up"===d?"rotate(-90deg)":"down"===d?"rotate(90deg)":"none"})),[s,r,o,c,d]),F=l.useMemo((()=>({"--gradient-color":p,"--gradient-width":"number"===typeof h?"".concat(h,"px"):h})),[p,h]),D=l.useMemo((()=>({"--play":r?"running":"paused","--direction":"left"===d?"normal":"reverse","--duration":"".concat(M,"s"),"--delay":"".concat(m,"s"),"--iteration-count":b?"".concat(b):"infinite","--min-width":n?"auto":"100%"})),[r,d,M,m,b,n]),Z=l.useMemo((()=>({"--transform":"up"===d?"rotate(90deg)":"down"===d?"rotate(-90deg)":"none"})),[d]),O=l.useCallback((e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map(((e,t)=>i.default.createElement(l.Fragment,{key:t},l.Children.map(j,(e=>i.default.createElement("div",{style:Z,className:"rfm-child"},e))))))),[Z,j]);return S?i.default.createElement("div",{ref:I,style:A,className:"rfm-marquee-container "+a},u&&i.default.createElement("div",{style:F,className:"rfm-overlay"}),i.default.createElement("div",{className:"rfm-marquee",style:D,onAnimationIteration:g,onAnimationEnd:f},i.default.createElement("div",{className:"rfm-initial-child-container",ref:P},l.Children.map(j,(e=>i.default.createElement("div",{style:Z,className:"rfm-child"},e)))),O(k-1)),i.default.createElement("div",{className:"rfm-marquee",style:D},O(k))):null}));t.Z=n}}]);

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.