{"version":3,"file":"TrialClassForm.C5UtDYVJ.mjs","names":["useState","useRef","React","selectedDate","ageGroup","e","sportId","_Fragment"],"sources":["https:/framerusercontent.com/modules/NZF3XO2NEWSxEMGqhCQ5/pOUz0eMAr8BC066aL3t4/TrialClassForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import React,{useState,useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const addOrdinalSuffix=day=>{const suffixes=[\"th\",\"st\",\"nd\",\"rd\"];const teen=day>10&&day<20?0:day%10>3?0:day%10;return`${day}${suffixes[teen]||suffixes[0]}`;};// Format date with ordinal\nconst formatDateWithOrdinal=date=>{if(!date||!(date instanceof Date)||isNaN(date.getTime())){return\"Invalid Date\";}const monthNames=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];const day=date.getDate();const month=monthNames[date.getMonth()];const year=date.getFullYear();const ordinalDay=addOrdinalSuffix(day);return`${month} ${ordinalDay}, ${year}`;};const DropDownIcon=({size=16,color=\"currentColor\",rotated=false})=>{return /*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:size,height:size,fill:color,viewBox:\"0 0 24 24\",style:{transform:rotated?\"rotate(270deg)\":\"rotate(90deg)\",transition:\"transform 0.3s ease\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M7.293 4.707 14.586 12l-7.293 7.293 1.414 1.414L17.414 12 8.707 3.293 7.293 4.707z\"})});};const MainFormComponent=({bgColor,borderColor,showAgeGroupDropDown,ageGroup,age_group_text,sportId,labelStyle,submitBtnStyle,disableSubmitBtnStyle,heading,pageTitle,showAParticularCenter,showSportGroupDropDown})=>{const[dropdownsOpen,setDropdownsOpen]=useState({sport:false,age_group:false,facility:false,gender:false,time:false,date:false});const[location,setLocation]=useState({city:\"\",region:\"\",postal_code:\"\"});const DROPDOWN_KEYS=[\"sport\",\"age_group\",\"facility\",\"gender\",\"time\",\"date\"];const dropdownRefs={facility:useRef(null),time:useRef(null),gender:useRef(null),date:useRef(null),sport:useRef(null),age_group:useRef(null)};const[selectedSportId,setSelectedSportId]=useState(sportId?sportId:\"\");const[hasUserSelectedSport,setHasUserSelectedSport]=useState(false);const[hasUserSelectedAge,setHasUserSelectedAge]=useState(false);const[showLocations,setShowLocations]=useState(false);const[notifyMeEnalbed,setNotifyMeEnabled]=useState(false);const[fetchedDates,setFetchedDates]=useState(false);const[selectedFacilityId,setSelectedFacilityId]=useState(\"\");const[allFacilitySports,setAllFacilitySports]=useState([]);const[selectedDate,setSelectedDate]=useState(null);const[availableDates,setAvailableDates]=useState([]);const[availableTimes,setAvailableTimes]=useState([]);const[selectedTime,setSelectedTime]=useState(\"\");const[selectedBookingId,setSelectedBookingId]=React.useState(\"\");const[allFacilities,setAllFacilities]=useState([]);const[filterFacilities,setFilterFacilities]=useState([]);const[submitEnabled,setSubmitEnabled]=useState(false);const[bookingStatus,setBookingStatus]=useState({status:\"\"});const[errors,setErrors]=useState({});const[thankYou,setThankYou]=useState(false);const[formData,setFormData]=useState({phone:\"\",name:\"\",age_group:ageGroup?ageGroup:\"Kids\",facility:\"\",sport:selectedSportId,email:\"\",gender:\"M\"});const[selectedAgeGroupWithTitle,setSelectedAgeGroupWithTitle]=useState(// \"Kids (4 to 14 years)\"\nageGroup?ageGroup:\"\");const[marketingMetaData,setMarketingMetaData]=useState({utmSource:\"\",utmMedium:\"\",utmCampaign:\"\",utmTerm:\"\",utmContent:\"\",utmId:\"\",fbclid:\"\",gclid:\"\",fullUrl:\"\"});const[isMobile,setIsMobile]=useState(false);// new states for age groups\nconst[availableAgeGroups,setAvailableAgeGroups]=useState(sportId?sportAgeGroupMap[sportId]||[\"Kids\",\"Teens\",\"Adults\"]:[\"Kids\",\"Teens\",\"Adults\"]);const[fetchedAges,setFetchedAges]=useState([]);// const params = new URLSearchParams(window.location.search)\nlet params=null;if(typeof window!==\"undefined\"){params=new URLSearchParams(window.location.search);}useEffect(()=>{// Get user's coordinates\nif(navigator.geolocation){navigator.geolocation.getCurrentPosition(async position=>{const{latitude,longitude}=position.coords;// Call reverse geocoding API to get city, region, postal_code\nconst res=await fetch(`https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=${latitude}&longitude=${longitude}&localityLanguage=en`);const data=await res.json();setLocation({city:data.city||data.locality||\"\",region:data.principalSubdivision||\"\",postal_code:data.postcode||\"\"});});}else{alert(\"Geolocation is not supported by your browser\");}},[]);useEffect(()=>{const handleResize=()=>{setIsMobile(window.innerWidth<400);};// Set initial state on mount (client-side only)\nhandleResize();window.addEventListener(\"resize\",handleResize);return()=>{window.removeEventListener(\"resize\",handleResize);};},[]);useEffect(()=>{// console.log(\"check full url\", window.location.href)\nsetMarketingMetaData({utmSource:params.get(\"utm_source\")||\"\",utmMedium:params.get(\"utm_medium\")||\"\",utmCampaign:params.get(\"utm_campaign\")||\"\",utmTerm:params.get(\"utm_term\")||\"\",utmContent:params.get(\"utm_content\")||\"\",utmId:params.get(\"utm_id\")||\"\",gclid:params.get(\"gclid\")||\"\",fbclid:params.get(\"fbclid\")||\"\",fullUrl:window.location.href||\"\"});},[]);const validateForm=()=>{const newErrors={};if(!formData.name){newErrors.name=\"Name is required\";}if(!formData.email||!/\\S+@\\S+\\.\\S+/.test(formData.email)){newErrors.email=\"Invalid email address\";}if(!formData.phone||!/^\\d{10}$/.test(formData.phone)){newErrors.phone=\"Phone number must be 10 digits\";}setErrors(newErrors);return Object.keys(newErrors)?.length===0;};const validateField=(field,value)=>{let error=\"\";if(field===\"name\"&&!value){error=\"Name is required\";}else if(field===\"email\"&&(!value||!/\\S+@\\S+\\.\\S+/.test(value))){error=\"Invalid email address\";}else if(field===\"phone\"&&(!value||!/^\\d{10}$/.test(value))){error=\"Phone number must be 10 digits\";}setErrors(prev=>({...prev,[field]:error}));};const fetchFacilities=async()=>{try{const response=await fetch(\"https://morpheus.gametheory.in/api/facility/public/v1/\",{method:\"GET\",headers:{\"Content-Type\":\"application/json\"}});if(!response.ok){throw new Error(\"Network response was not ok\");}const{data:dataApi}=await response.json();const sports=dataApi.flatMap(facility=>facility?.sportInfo?.sports);setAllFacilities(dataApi);setAllFacilitySports([...new Set(sports)]);if(selectedSportId){const resFacilities=dataApi.filter(facility=>{return facility?.sportInfo?.sports.includes(selectedSportId);});// console.log(resFacilities)\nsetFilterFacilities(resFacilities);}}catch(error){console.error(\"There was a problem with the fetch operation:\",error);}};const fetchAvailabilityDatesApi=async({facilityId,selectedDate})=>{// testing\n// update - working\nlet enumAgeGroup=\"ADULTS\";if(formData.age_group===\"Kids\"){enumAgeGroup=\"KIDS\";}else if(formData.age_group===\"Adults\"||formData.age_group===\"Teens\"){enumAgeGroup=\"ADULTS\";}else if(formData.age_group===\"Toddlers\"){enumAgeGroup=\"TODDLERS\";}// sending agegroup id instead of string\n// console.log(\"enumagegroup\", enumAgeGroup)\nlet ageObj=fetchedAges.find(item=>item.title.toUpperCase()===enumAgeGroup);let ageId=ageObj?ageObj._id:\"\";// console.log(\"ageid\", ageId)\nlet bodyForApi={};if(facilityId){const today=new Date;const startDate=today.toISOString()?.split(\"T\")[0];const endDate=new Date(today);endDate.setDate(today.getDate()+15);const formattedEndDate=endDate.toISOString()?.split(\"T\")[0];bodyForApi={batchAgeGroupId:ageId,endDate:formattedEndDate,facilityId:facilityId,sportId:formData.sport,startDate:startDate};}if(selectedDate){// replacement for no handle option click on date select\nsetSelectedTime(\"\")// to remove old selected time from ui\n;bodyForApi={batchAgeGroupId:ageId,endDate:formatDateForSending(selectedDate),facilityId:formData.facility,sportId:formData.sport,startDate:formatDateForSending(selectedDate)};}try{const response=await fetch(\"https://morpheus.gametheory.in/api/booking/v1/public/coaching-class/trial\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(bodyForApi)});const data=await response.json();if(facilityId){const dateModify=data?.bookings?.map(item=>new Date(item.eventDate));setAvailableDates(dateModify);// console.log(\"dates\", dateModify)\nsetFetchedDates(true);}if(selectedDate){const now=new Date;const todayStr=now.toISOString().split(\"T\")[0]// e.g., \"2025-05-04\"\n;const currentMinutes=now.getHours()*60+now.getMinutes()// e.g., 11:15 => 675\n;const uniqueBookings=data?.bookings.filter((item,index,self)=>index===self.findIndex(t=>t.startTime===item.startTime)).filter(item=>{const eventDateStr=new Date(item.eventDate).toISOString().split(\"T\")[0];if(eventDateStr!==todayStr)return true;return eventDateStr===todayStr&&item.startTimeMins>currentMinutes;});setAvailableTimes(uniqueBookings);// console.log(uniqueBookings)\n}}catch(error){console.error(\"There was a problem with the fetch operation:\",error);}};// Common function to toggle dropdowns\nconst toggleDropdown=dropdown=>{setDropdownsOpen(prev=>{const newState={};DROPDOWN_KEYS.forEach(key=>{newState[key]=key===dropdown?!prev[key]:false;});return newState;});};const handleOptionClick=(field,value)=>{// console.log(availableTimes)\nif(field===\"sport\"){const filteredFacilities=allFacilities?.filter(facility=>{return facility?.sportInfo?.sports.includes(value);});setSelectedSportId(value);setFilterFacilities(filteredFacilities);const sportAgeGroups=sportAgeGroupMap[value]||[\"Kids\",\"Teens\",\"Adults\"];// setAvailableAgeGroups(sportAgeGroups)\n// // Reset age group if current selection is not available for this sport\n// if (!sportAgeGroups.includes(formData.age_group)) {\n//     const newAgeGroup = sportAgeGroups[0] // Default to first available age group\n//     setFormData((prev) => ({\n//         ...prev,\n//         facility: \"\",\n//         age_group: newAgeGroup,\n//     }))\n//     // Update the age group title display\n//     updateAgeGroupTitle(newAgeGroup)\n// } else {\n//     setFormData((prev) => ({\n//         ...prev,\n//         facility: \"\",\n//     }))\n// }\nsetSelectedDate(null);setAvailableDates([]);setAvailableTimes([]);setFetchedDates(false);setSubmitEnabled(false);setSelectedTime(\"\");setSelectedFacilityId(\"\");setSelectedAgeGroupWithTitle(\"Select age group\");}if(field===\"age_group\"){updateAgeGroupTitle(value);setSelectedFacilityId(\"\");setSelectedDate(null);setAvailableDates([]);setAvailableTimes([]);setFetchedDates(false);setSubmitEnabled(false);setSelectedTime(\"\");}if(field===\"facility\"){setSelectedFacilityId(value);fetchAvailabilityDatesApi({facilityId:value});console.log(thankYou);setSelectedDate(null);setAvailableDates([]);setAvailableTimes([]);setFetchedDates(false);setSubmitEnabled(false);setSelectedTime(\"\");if(hasUserSelectedSport)setShowLocations(true);}setFormData(prev=>({...prev,[field]:value}));setDropdownsOpen(prev=>({...prev,[field]:false}));};const handleChange=(field,value)=>{setFormData(prev=>({...prev,[field]:value}));validateField(field,value)// Validate individual field\n;};// helper function to update age group title\n// const updateAgeGroupTitle = (ageGroup: string) => {\n//     switch (ageGroup) {\n//         case \"Toddlers\":\n//             setSelectedAgeGroupWithTitle(\n//                 age_group_text || \"Toddlers (6 months to 4 years)\"\n//             )\n//             break\n//         case \"Kids\":\n//             setSelectedAgeGroupWithTitle(\n//                 age_group_text || \"Kids (4 to 14 years)\"\n//             )\n//             break\n//         case \"Teens\":\n//             setSelectedAgeGroupWithTitle(\n//                 age_group_text || \"Teens (14 to 18 years)\"\n//             )\n//             break\n//         case \"Adults\":\n//             setSelectedAgeGroupWithTitle(\n//                 age_group_text || \"Adults (18 years and above)\"\n//             )\n//             break\n//         default:\n//             setSelectedAgeGroupWithTitle(\"Select age group\")\n//     }\n// }\n// new function\nconst updateAgeGroupTitle=ageGroup=>{// Find the matching age group object based on title\nconst groupObj=fetchedAges.find(ag=>ag.title&&ag.title.toLowerCase()===ageGroup.toLowerCase());if(groupObj){setSelectedAgeGroupWithTitle(`${groupObj.title} (${formatAgeRange(groupObj.minAgeMonths,groupObj.maxAgeMonths)})`);}else{setSelectedAgeGroupWithTitle(\"Select age group\");}};const closeDropdown=e=>{let clickedInside=false;DROPDOWN_KEYS.forEach(key=>{const ref=dropdownRefs[key];if(ref.current&&ref.current.contains(e.target)){clickedInside=true;}});if(!clickedInside){setDropdownsOpen(prev=>{const newState={};DROPDOWN_KEYS.forEach(key=>{newState[key]=false;});return newState;});}};const callAfterBooking=formDataValue=>{setThankYou(true);const fbclid=params.get(\"fbclid\");console.log(fbclid,\"fbclid\");const gclid=params.get(\"gclid\");const newParams=new URLSearchParams;if(gclid)newParams.append(\"gclid\",gclid);if(fbclid)newParams.append(\"fbclid\",fbclid);if(params.has(\"utm_source\"))newParams.append(\"utm_source\",params.get(\"utm_source\"));if(params.has(\"utm_medium\"))newParams.append(\"utm_medium\",params.get(\"utm_medium\"));if(params.has(\"utm_campaign\"))newParams.append(\"utm_campaign\",params.get(\"utm_campaign\"));const SHA256=async value=>{if(!value)return\"\";const encoder=new TextEncoder;const data=encoder.encode(value.trim().toLowerCase());const hashBuffer=await crypto.subtle.digest(\"SHA-256\",data);return Array.from(new Uint8Array(hashBuffer)).map(b=>b.toString(16).padStart(2,\"0\")).join(\"\");};const handlePurchaseTrackAtFb=async()=>{const getFbp=()=>{const match=document.cookie.match(/_fbp=([^;]+)/);return match?match[1]:null;};try{const em=await SHA256(formDataValue.email);const ph=await SHA256(formDataValue.phone);const fn=await SHA256(formDataValue.name?.split(\" \")[0]||\"\");const country=await SHA256(\"IN\");const external_id=fbclid?await SHA256(fbclid):undefined;const fbp=getFbp();const client_user_agent=navigator.userAgent// optional, not officially supported\n;fbq(\"init\",\"1311536359630422\",{em,ph,fn,country,external_id,fbp,client_user_agent});// fbq(\"track\", \"Purchase\", {\n//     value: 1000,\n//     currency: \"INR\",\n//     eventID: \"purchase_book_free_trial\",\n// })\nfbq(\"track\",\"Purchase\",{value:1e3,currency:\"INR\"},{eventID:\"purchase_book_free_trial\",user_data:{em,ph,fn,country,external_id,fbp,client_user_agent}});console.log(\"✅ fbq Purchase sent\");}catch(err){console.error(\"❌ fbq Purchase failed\",err);}};handlePurchaseTrackAtFb();// Google Enhanced Conversion\ngtag(\"set\",\"user_data\",{email:formDataValue.email,phone_number:`+91${formDataValue.phone}`,address:{name:formDataValue.name||\"\",city:location.city,region:location.region,postal_code:location.postal_code,country:\"IN\"}});gtag(\"event\",\"conversion\",{send_to:\"AW-11414758914/5KRSCO_u2fEZEILM_cIq\"});};const bookTrialForKid=async()=>{const bodyForApi={bookingId:selectedBookingId,childDob:\"\",childGender:formData.gender,marketingMetaData:marketingMetaData,parentEmail:formData.email,parentName:formData.name,parentPhoneNumber:formData.phone,ageGroup:formData.age_group};try{const response=await fetch(\"https://morpheus.gametheory.in/api/booking/public/v1/coaching-class/trial/add/new/kid\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(bodyForApi)});const data=await response.json();setBookingStatus(data.data);if(data.data.status===\"BOOKED\"){callAfterBooking(formData);}}catch(error){console.error(\"There was a problem with the fetch operation:\",error);}};const bookTrialForAdult=async()=>{const bodyForApi={bookingId:selectedBookingId,dob:\"\",gender:formData.gender,marketingMetaData:marketingMetaData,email:formData.email,name:formData.name,phoneNumber:formData.phone,ageGroup:formData.age_group};try{const response=await fetch(\"https://morpheus.gametheory.in/api/booking/public/v1/coaching-class/trial/add/new/adult\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(bodyForApi)});const data=await response.json();setBookingStatus(data.data);if(data.data.status===\"BOOKED\"){callAfterBooking(formData);}}catch(error){console.error(\"There was a problem with the fetch operation:\",error);}};const notifyApi=async()=>{const bodyForApi={ageGroup:formData.age_group,childDob:\"\",childGender:formData.gender,childName:\"\",facilityId:formData.facility,parentEmail:formData.email,parentGender:formData.gender,parentName:formData.name,parentPhoneNumber:formData.phone,sportId:formData.sport};try{const response=await fetch(\"https://morpheus.gametheory.in/api/booking/v1/coaching-class/trial/capture-interest\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(bodyForApi)});if(response.status===200){window.location.href=\"https://www.gametheory.in/\";}else{console.error(\"Failed to capture interest.\");}setThankYou(true);}catch(error){console.error(\"There was a problem with the fetch operation:\",error);}};const handleformSubmit=form=>{if(validateForm()){if(selectedBookingId){if(formData.age_group===\"Adults\"){bookTrialForAdult();}else{bookTrialForKid();}}}else{console.error(\"Form is invalid\");}};const notifyMeBtnSubmit=e=>{e.preventDefault();setNotifyMeEnabled(true);notifyApi();};useEffect(()=>{const handler=e=>closeDropdown(e);document.addEventListener(\"mousedown\",handler);return()=>{document.removeEventListener(\"mousedown\",handler);};},[]);useEffect(()=>{fetchFacilities();fetchAgeGroups(selectedSportId);},[selectedSportId]);async function fetchAgeGroups(sportId){try{const response=await fetch(`https://morpheus.gametheory.in/api/age-group/public/v1/sport/${sportId}`);const data=await response.json();// Store full age group objects\n//   setAvailableAgeGroups(data.data);\nsetFetchedAges(data.data);// console.log(data.data)\n}catch(error){console.error(\"Error fetching age groups:\",error);}}useEffect(()=>{if(selectedDate)fetchAvailabilityDatesApi({selectedDate:selectedDate});},[selectedDate]);const findFacilities=filterFacilities.find(facility=>facility._id===selectedFacilityId)?.name||\"Select Location\";useEffect(()=>{const allFieldsFilled=Object.values(formData).every(value=>value.trim()!==\"\");setSubmitEnabled(allFieldsFilled&&validateForm());},[formData]);useEffect(()=>{if(showAParticularCenter?.id?.length>5){setSelectedFacilityId(showAParticularCenter.id);handleOptionClick(\"facility\",showAParticularCenter.id)// optional if it updates global/form state\n;}},[showAParticularCenter]);// helper function to render facilities\nfunction renderFacilityDropdown(){// Show dropdown only if sport-group logic matches\nif(dropdownsOpen.facility&&(!showSportGroupDropDown||hasUserSelectedSport&&showSportGroupDropDown)){return /*#__PURE__*/_jsx(\"div\",{style:{...getSelectItemsStyles(dropdownsOpen.facility),maxHeight:isMobile?\"150px\":\"200px\",overflow:\"scroll\"},children:/*#__PURE__*/_jsx(\"div\",{style:styles.selectItems,children:filterFacilities.map((facility,ind)=>/*#__PURE__*/_jsx(\"div\",{style:{...getItemStyles(isMobile)},onMouseOver:e=>e.target.style.backgroundColor=\"rgba(0, 0, 0, 0.1)\",onMouseOut:e=>e.target.style.backgroundColor=\"transparent\",onClick:()=>{setSelectedFacilityId(facility._id);handleOptionClick(\"facility\",facility._id);},children:facility.name},facility._id||ind))})});}// Show \"Select a sport first\" ONLY when dropdown is open AND sport not selected\nif(dropdownsOpen.facility&&showSportGroupDropDown&&!hasUserSelectedSport){return /*#__PURE__*/_jsx(\"div\",{style:{padding:\"12px\",color:\"red\"},children:\"Select a sport first\"});}return null;}return /*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:`${bgColor}`,width:\"100%\",visibility:thankYou?\"hidden\":\"visible\",border:`1px solid ${borderColor}`,boxShadow:`4px 4px 0px ${borderColor}`,overflow:\"visible\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.main,children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.top,children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"p\",{style:styles.top_left,children:\"Book a FREE Trial Class\"}),/*#__PURE__*/_jsx(\"p\",{style:styles.top_left_bottom,children:\"Get confirmation on WhatsApp\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:styles.top_right,children:[!showSportGroupDropDown?sportNameIdMap[selectedSportId]:\"\",/*#__PURE__*/_jsx(\"p\",{style:styles.top_right_bottom,children:!showAgeGroupDropDown?selectedAgeGroupWithTitle===\"Select age group\"?\"\":selectedAgeGroupWithTitle:\"\"})]})]}),showSportGroupDropDown&&/*#__PURE__*/_jsxs(\"div\",{ref:dropdownRefs.sport,style:styles.container,children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.selectSelected,onClick:()=>{toggleDropdown(\"sport\");},children:[hasUserSelectedSport?sportNameIdMap[formData.sport]:/*#__PURE__*/_jsx(\"div\",{style:{color:\"#0000004D\",marginTop:\"2px\"},children:\"Select sport\"}),/*#__PURE__*/_jsx(DropDownIcon,{size:16,color:\"#000\",rotated:dropdownsOpen.sport})]}),dropdownsOpen.sport&&/*#__PURE__*/_jsx(\"div\",{style:{...getSelectItemsStyles(dropdownsOpen.sport),maxHeight:isMobile?\"348px\":\"328px\",overflow:\"scroll\"},children:/*#__PURE__*/_jsx(\"div\",{style:styles.selectItems,children:allFacilitySports.filter(sportId=>allowedSportIds.includes(sportId)).map((sportId,ind)=>/*#__PURE__*/_jsx(\"div\",{style:{...getItemStyles(isMobile),height:\"40px\"},onMouseOver:e=>e.target.style.backgroundColor=\"rgba(0, 0, 0, 0.1)\",onMouseOut:e=>e.target.style.backgroundColor=\"transparent\",onClick:()=>{handleOptionClick(\"sport\",sportId);setHasUserSelectedSport(true);},children:sportNameIdMap[sportId]},ind))})})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"2px\"}}),showAgeGroupDropDown&&/*#__PURE__*/_jsxs(\"div\",{ref:dropdownRefs.age_group,style:styles.container,children:[/*#__PURE__*/_jsxs(\"div\",{style:{...styles.selectSelected,color:findFacilities===\"Select Age Group\"?\"#0000004D\":\"#000\"},onClick:()=>{toggleDropdown(\"age_group\");},children:[hasUserSelectedAge?selectedAgeGroupWithTitle:/*#__PURE__*/_jsx(\"div\",{style:{color:\"#0000004D\",marginTop:\"2px\"},children:\"Select Age Group\"}),/*#__PURE__*/_jsx(DropDownIcon,{size:16,color:\"#000\",rotated:dropdownsOpen.age_group})]}),dropdownsOpen.age_group&&/*#__PURE__*/_jsx(\"div\",{style:{...getSelectItemsStyles(dropdownsOpen.age_group),maxHeight:isMobile?\"348px\":\"328px\",overflow:\"scroll\"},children:/*#__PURE__*/_jsx(\"div\",{style:styles.selectItems,children:fetchedAges.map((age,ind)=>/*#__PURE__*/_jsxs(\"div\",{style:{...getItemStyles(isMobile)},onMouseOver:e=>e.target.style.backgroundColor=\"rgba(0, 0, 0, 0.1)\",onMouseOut:e=>e.target.style.backgroundColor=\"transparent\",onClick:()=>{handleOptionClick(\"age_group\",age.title);setHasUserSelectedAge(true);},children:[age.title,\" \",formatAgeRange(age.minAgeMonths,age.maxAgeMonths)]},ind))})})]}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",value:formData.name,onChange:e=>handleChange(\"name\",e.target.value),style:styles.input,placeholder:arrForKids.includes(formData.age_group)?\"Parent's Name\":\"Name\"}),errors.name&&/*#__PURE__*/_jsx(\"div\",{style:styles.error,children:errors.name}),/*#__PURE__*/_jsx(\"input\",{type:\"tel\",value:formData.phone,onChange:e=>handleChange(\"phone\",e.target.value),maxLength:10,style:styles.input,placeholder:arrForKids.includes(formData.age_group)?\"Parent's Phone Number\":\"Phone Number\"}),errors.phone&&/*#__PURE__*/_jsx(\"div\",{style:styles.error,children:errors.phone}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",value:formData.email,onChange:e=>handleChange(\"email\",e.target.value),style:styles.input,placeholder:arrForKids.includes(formData.age_group)?\"Parent's Email\":\"Email\"}),errors.email&&/*#__PURE__*/_jsx(\"div\",{style:styles.error,children:errors.email}),/*#__PURE__*/_jsxs(\"div\",{ref:dropdownRefs.facility,style:styles.container,children:[showAParticularCenter.id.length>5?/*#__PURE__*/_jsx(\"div\",{style:{...styles.selectSelected,color:\"#000\"},children:showAParticularCenter.name}):/*#__PURE__*/_jsxs(\"div\",{style:{...styles.selectSelected,color:findFacilities===\"Select Location\"?\"#0000004D\":\"#000\"},onClick:()=>toggleDropdown(\"facility\"),children:[selectedFacilityId?filterFacilities.find(facility=>facility._id===selectedFacilityId)?.name||\"Select a facility\":\"Select a facility\",/*#__PURE__*/_jsx(DropDownIcon,{size:16,color:\"#000\",rotated:dropdownsOpen.facility})]}),renderFacilityDropdown()]}),availableDates?.length>0&&/*#__PURE__*/_jsxs(\"div\",{style:styles.dateWrap,children:[/*#__PURE__*/_jsx(CalendarComponent,{refData:dropdownRefs.date,setDropdownsOpen:setDropdownsOpen,dropdownsOpen:dropdownsOpen,selectedDate:selectedDate,setSelectedDate:setSelectedDate,availableDates:availableDates,labelStyle:labelStyle,facilities:findFacilities!==\"Select Location\"}),/*#__PURE__*/_jsxs(\"div\",{ref:dropdownRefs.time,style:{...styles.container,width:\"50%\",position:\"relative\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{...styles.selectSelected,color:!selectedTime?\"#0000004D\":\"#000\"},onClick:()=>setDropdownsOpen({...dropdownsOpen,time:!dropdownsOpen.time}),children:[selectedTime?formatTimeTo12Hour(selectedTime):\"Select Time\",/*#__PURE__*/_jsx(DropDownIcon,{size:16,color:\"#000\",rotated:dropdownsOpen.time})]}),dropdownsOpen.time&&availableTimes.length>0&&/*#__PURE__*/_jsx(\"div\",{style:{...getSelectItemsStyles(dropdownsOpen.time),maxHeight:isMobile?\"100px\":\"160px\",overflow:\"scroll\"},children:/*#__PURE__*/_jsx(\"div\",{style:styles.selectItems,children:availableTimes.length>0&&availableTimes.map((time,ind)=>/*#__PURE__*/_jsx(\"div\",{style:{...getItemStyles(isMobile)},onMouseOver:e=>e.currentTarget.style.backgroundColor=\"rgba(0, 0, 0, 0.1)\",onMouseOut:e=>e.currentTarget.style.backgroundColor=\"transparent\",onClick:()=>{setSelectedTime(time.startTime);setSelectedBookingId(time._id);setSubmitEnabled(true);setDropdownsOpen({...dropdownsOpen,time:false});},children:formatTimeTo12Hour(time.startTime)},time._id||ind))})}),dropdownsOpen.time&&availableTimes.length===0&&/*#__PURE__*/_jsx(ErrorMsg,{text:\"No available time\"})]})]}),availableDates?.length===0&&fetchedDates?/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(\"button\",{className:\"btn-style\",onClick:notifyMeBtnSubmit,disabled:!submitEnabled,children:\"Notify Me\"})}):/*#__PURE__*/_jsx(\"button\",{className:\"btn-style\",disabled:!submitEnabled,onClick:handleformSubmit,children:\"SUBMIT\"})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n                input::placeholder {\n                    color: #0000004D;\n                    font-family: Urbanist;\n                    font-size: 16px;\n                    font-weight: 400;\n                    line-height: 24px;\n                    letter-spacing: 0.5px;\n                }\n                .btn-style {\n                    padding: 0.7rem 1.5rem;\n                    border: 1px solid black;\n                    background: #000;\n                    font-weight: bold;\n                    cursor: pointer;\n                    box-shadow: 4px 4px 0px white;\n                    transition: box-shadow 0.3s ease;\n                    margin-top: 24px;\n                    font-size: 16px;\n                    font-weight: 900;\n                    color:#fff;\n                    width: 100%\n                }\n\n                .btn-style:hover {\n                    box-shadow: none;\n                }\n\n                .btn-disabled {\n                    opacity: 0.6;\n                    pointer-events: none;\n                }\n            `})]});};const styles={main:{fontFamily:\"Urbanist\",width:\"100%\",position:\"relative\",padding:\"16px 16px\"},error:{fontSize:\"10px\",color:\"red\",fontStyle:\"normal\",fontWeight:400,letterSpacing:\"0.5px\",marginLeft:\"10px\",marginTop:\"-5px\"},container:{position:\"relative\"},selectSelected:{backgroundColor:\"#F7F7F7\",width:\"100%\",minHeight:\"40px\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",padding:\"4px 10px\",cursor:\"pointer\",userSelect:\"none\",fontFamily:\"Urbanist\",fontSize:\"16px\",fontStyle:\"normal\",fontWeight:400,lineHeight:\"24px\",letterSpacing:\"0.5px\",margin:\"8px 0px\"},selectItems:{fontSize:\"16px\",fontStyle:\"normal\",fontWeight:400},input:{backgroundColor:\"#F7F7F7\",margin:\"8px 0px\",width:\"100%\",height:\"40px\",padding:\"12px 10px\",fontSize:\"16px\",color:\"#000\",border:\"none\",letterSpacing:\".5px\",fontWeight:400,fontFamily:\"Urbanist\"},dateWrap:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},dateBtn:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",background:\"#F7F7F7\",width:\"48%\",height:\"40px\",padding:\"0px\",position:\"relative\",border:\"none\",fontSize:\"16px\",fontWeight:400,cursor:\"pointer\"},dateInp:{fontFamily:\"Urbanist\",lineHeight:\"24px\",letterSpacing:\"0.5px\",background:\"transparent\",width:\"100%\",border:\"none\",fontWeight:400,fontSize:\"16px\",zIndex:5,cursor:\"pointer\",position:\"relative\",paddingLeft:\"10px\",height:\"40px\"},top:{display:\"flex\",width:\"100%\",flexDirection:\"column\",// flexDirection: \"row\",\njustifyContent:\"space-between\",alignItems:\"baseline\",fontWeight:900},top_left:{width:\"100%\",fontSize:\"20px\",// textTransform: \"uppercase\",\nmargin:\"0 0 2px\"},top_left_bottom:{width:\"100%\",fontSize:\"16px\",fontWeight:400,marginTop:\"0px\"},top_right:{// width: \"20%\",\nfontSize:\"16px\",textAlign:\"right\",fontWeight:900,margin:\"0 0 2px\"},top_right_bottom:{fontSize:\"16px\",margin:0,fontWeight:400,textAlign:\"left\",marginTop:\"0px\"}};export default function MainForm(props){const{showAgeGroupDropDown,ageGroup,age_group_text,heading,pageTitle,sportId,bgColor,borderColor,showAParticularCenter,showSportGroupDropDown,placeHolderName}=props;return /*#__PURE__*/_jsx(MainFormComponent,{bgColor:bgColor,borderColor:borderColor,sportId:sportId,showAgeGroupDropDown:showAgeGroupDropDown,showSportGroupDropDown:showSportGroupDropDown,ageGroup:ageGroup,heading:heading,pageTitle:pageTitle,showAParticularCenter:showAParticularCenter,placeHolderName:placeHolderName,age_group_text:age_group_text});}const sportNameIdMap={\"6641c82fff8fa544f5e674b7\":\"Badminton\",\"6641c82fff8fa544f5e674b9\":\"Table Tennis\",\"6641c82fff8fa544f5e674bb\":\"Swimming\",\"6641c82fff8fa544f5e674bd\":\"Cricket\",\"6641c82fff8fa544f5e674bf\":\"Football\",\"6641c82fff8fa544f5e674b5\":\"Squash\",\"668d724ea6137772f36c2350\":\"Frisbee\",\"66bdc423d40856f461b45bf2\":\"Tennis\",\"66bdc4f7d40856f461b45bf3\":\"Cricket Nets\",\"66bdc55ed40856f461b45bf4\":\"Teqball\",\"674eae4832565a216d52dc48\":\"Basketball\",\"674eae7232565a216d52dc4b\":\"Pickle Ball\",\"679882c1aae668fb098377df\":\"Padel\"};const sportAgeGroupMap={\"6641c82fff8fa544f5e674b7\":[\"Kids\",\"Teens\",\"Adults\"],\"6641c82fff8fa544f5e674b9\":[\"Kids\",\"Teens\",\"Adults\"],\"6641c82fff8fa544f5e674bb\":[\"Toddlers\",\"Kids\",\"Teens\",\"Adults\"],\"6641c82fff8fa544f5e674bd\":[\"Kids\",\"Teens\",\"Adults\"],\"6641c82fff8fa544f5e674bf\":[\"Toddlers\",\"Kids\",\"Teens\",\"Adults\"],\"6641c82fff8fa544f5e674b5\":[\"Teens\",\"Adults\"],\"668d724ea6137772f36c2350\":[\"Kids\",\"Teens\",\"Adults\"],\"66bdc423d40856f461b45bf2\":[\"Kids\",\"Teens\",\"Adults\"],\"66bdc4f7d40856f461b45bf3\":[\"Kids\",\"Teens\",\"Adults\"],\"66bdc55ed40856f461b45bf4\":[\"Teens\",\"Adults\"],\"674eae4832565a216d52dc48\":[\"Kids\",\"Teens\",\"Adults\"],\"674eae7232565a216d52dc4b\":[\"Kids\",\"Teens\",\"Adults\"],\"679882c1aae668fb098377df\":[\"Teens\",\"Adults\"]};const allowedSportIds=[\"674eae4832565a216d52dc48\",\"6641c82fff8fa544f5e674bb\",\"6641c82fff8fa544f5e674bf\",\"6641c82fff8fa544f5e674b7\",\"6641c82fff8fa544f5e674b9\",\"6641c82fff8fa544f5e674b5\",\"674eae7232565a216d52dc4b\"];const sportOptions=Object.keys(sportNameIdMap);const sportOptionTitles=Object.values(sportNameIdMap);addPropertyControls(MainForm,{bgColor:{type:ControlType.Color,title:\"Form Background\",defaultValue:\"#fff\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#218AFA\"},heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Book a free trial class\"},pageTitle:{type:ControlType.String,title:\"Page Title\",defaultValue:\"Swimming\"},showDateTime:{type:ControlType.Boolean,title:\"Show Date & Time\",defaultValue:true},inputBg:{type:ControlType.Color,title:\"Input Background\",defaultValue:\"#F5F5F5\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder Color\",defaultValue:\"#999999\"},placeholderFontSize:{type:ControlType.Number,title:\"Placeholder Font Size\",defaultValue:16,min:10,max:30},sportId:{type:ControlType.Enum,title:\"Sport\",defaultValue:\"6641c82fff8fa544f5e674b7\",options:sportOptions,optionTitles:sportOptionTitles},showAgeGroupDropDown:{type:ControlType.Boolean,title:\"Show Age Group Drop Down\",defaultValue:false},ageGroup:{type:ControlType.Enum,title:\"Age Group\",defaultValue:\"Kids\",options:[\"Toddlers\",\"Kids\",\"Teens\",\"Adults\"],optionTitles:[\"None\",\"Toddlers\",\"Kids\",\"Teens\",\"Adults\"]},age_group_text:{type:ControlType.String,title:\"Age Title\",defaultValue:\"\"},showSportGroupDropDown:{type:ControlType.Boolean,title:\"Show Sport Drop Down\",defaultValue:false},showAParticularCenter:{title:\"Show A Particular Center\",type:ControlType.Object,controls:{id:{type:ControlType.String,title:\"ID\"},name:{type:ControlType.String,title:\"Name\"}},defaultValue:{id:\"\",name:\"\"}},placeHolderName:{title:\"Place Holder Name\",type:ControlType.Object,controls:{name:{type:ControlType.String,title:\"Name\"},phone:{type:ControlType.String,title:\"phone\"},email:{type:ControlType.String,title:\"email\"}},defaultValue:{id:\"\",name:\"\"}}});const getSelectItemsStyles=isOpen=>({position:\"absolute\",backgroundColor:\"#fff\",top:\"45px\",right:\"0\",zIndex:99,display:isOpen?\"block\":\"none\",fontSize:\"16px\",fontWeight:400,lineHeight:\"24px\",letterSpacing:\"0.5px\",padding:\"8px\",width:\"fit-content\",// checking for dropdown height\n    // paddingBottom: \"160px\",\n    height:\"fit-content\",//\n    border:\"1px solid #F1F1F1\"});const getItemStyles=isMobile=>({color:\"#000\",padding:\"8px\",cursor:\"pointer\",userSelect:\"none\",borderRadius:\"8px\",letterSpacing:\".5px\",lineHeight:1.5,display:\"flex\",alignItems:\"center\",margin:\"8px 0px\"});const CalendarComponent=({selectedDate,setSelectedDate,availableDates,labelStyle,facilities,setDropdownsOpen,dropdownsOpen,refData})=>{const[hasTriedToOpen,setHasTriedToOpen]=useState(false);const[currentMonth,setCurrentMonth]=useState(new Date);const[calendarPosition,setCalendarPosition]=useState(\"bottom\");// Calculate position when dropdown opens or window resizes\nuseEffect(()=>{if(dropdownsOpen.date&&refData.current){const calculatePosition=()=>{const rect=refData.current.getBoundingClientRect();const viewportHeight=window.innerHeight;const calendarHeight=400// Approximate height of calendar\n;const spaceBelow=viewportHeight-rect.bottom;const spaceAbove=rect.top;// If not enough space below but enough above, show at top\nif(spaceBelow<calendarHeight&&spaceAbove>calendarHeight){setCalendarPosition(\"top\");}else{setCalendarPosition(\"bottom\");}};calculatePosition();// Recalculate on window resize\nconst handleResize=()=>calculatePosition();window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);}},[dropdownsOpen.date]);// Toggle function that matches your other dropdowns EXACTLY\nconst toggleDateDropdown=()=>{// Don't allow opening if no facility selected or no dates available\nif(!facilities||availableDates.length===0){setHasTriedToOpen(true);return;}setDropdownsOpen(prev=>{const newState={};Object.keys(prev).forEach(key=>{newState[key]=key===\"date\"?!prev[key]:false;});return newState;});};const handleDateSelect=date=>{setSelectedDate(date);setDropdownsOpen(prev=>({...prev,date:false}));};// Generate calendar days\nconst generateCalendarDays=()=>{const year=currentMonth.getFullYear();const month=currentMonth.getMonth();// First day of the month\nconst firstDay=new Date(year,month,1);// Last day of the month\nconst lastDay=new Date(year,month+1,0);// Start from Sunday of the week containing the first day\nconst startDate=new Date(firstDay);startDate.setDate(startDate.getDate()-firstDay.getDay());// Generate 42 days (6 weeks)\nconst days=[];for(let i=0;i<42;i++){const date=new Date(startDate);date.setDate(startDate.getDate()+i);days.push(date);}return days;};const isDateAvailable=date=>{return availableDates.some(availableDate=>date.getDate()===availableDate.getDate()&&date.getMonth()===availableDate.getMonth()&&date.getFullYear()===availableDate.getFullYear());};const isDateSelected=date=>{return selectedDate&&date.getDate()===selectedDate.getDate()&&date.getMonth()===selectedDate.getMonth()&&date.getFullYear()===selectedDate.getFullYear();};const isCurrentMonth=date=>{return date.getMonth()===currentMonth.getMonth();};const goToPreviousMonth=()=>{setCurrentMonth(new Date(currentMonth.getFullYear(),currentMonth.getMonth()-1,1));};const goToNextMonth=()=>{setCurrentMonth(new Date(currentMonth.getFullYear(),currentMonth.getMonth()+1,1));};const monthNames=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];const shouldShowError=hasTriedToOpen&&(!facilities||availableDates.length===0);return /*#__PURE__*/_jsxs(\"div\",{ref:refData,style:{...styles.container,width:\"48%\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{...styles.selectSelected,color:selectedDate?\"#000\":\"#0000004D\"},onClick:toggleDateDropdown,children:[selectedDate?formatDateWithOrdinal(selectedDate):\"Pick a Date\",/*#__PURE__*/_jsx(DropDownIcon,{size:16,color:\"#000\",rotated:dropdownsOpen.date})]}),dropdownsOpen.date&&availableDates.length>0&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",backgroundColor:\"#fff\",[calendarPosition===\"bottom\"?\"top\":\"bottom\"]:\"45px\",left:\"0\",zIndex:99,border:\"1px solid #e6e6e6\",borderRadius:\"5px\",boxShadow:calendarPosition===\"top\"?\"0 -3px 13px rgba(0,0,0,0.08)\":\"0 3px 13px rgba(0,0,0,0.08)\",padding:\"0\",fontFamily:\"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif\",width:\"315px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",[calendarPosition===\"bottom\"?\"top\":\"bottom\"]:\"-6px\",left:\"20px\",width:\"12px\",height:\"12px\",backgroundColor:\"#fff\",border:\"1px solid #e6e6e6\",borderRight:calendarPosition===\"bottom\"?\"none\":\"1px solid #e6e6e6\",borderBottom:calendarPosition===\"bottom\"?\"none\":\"1px solid #e6e6e6\",borderTop:calendarPosition===\"bottom\"?\"1px solid #e6e6e6\":\"none\",borderLeft:calendarPosition===\"bottom\"?\"1px solid #e6e6e6\":\"none\",transform:calendarPosition===\"bottom\"?\"rotate(45deg)\":\"rotate(225deg)\",zIndex:100}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"16px 20px 8px\",borderBottom:\"1px solid #f0f0f0\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:goToPreviousMonth,style:{background:\"none\",border:\"none\",cursor:\"pointer\",padding:\"4px\",fontSize:\"16px\",color:\"#999\"},children:\"‹\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:600,fontSize:\"15px\",color:\"#333\"},children:monthNames[currentMonth.getMonth()]}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:400,fontSize:\"15px\",color:\"#666\"},children:currentMonth.getFullYear()})]}),/*#__PURE__*/_jsx(\"button\",{onClick:goToNextMonth,style:{background:\"none\",border:\"none\",cursor:\"pointer\",padding:\"4px\",fontSize:\"16px\",color:\"#999\"},children:\"›\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",padding:\"8px 20px\",gap:\"0\"},children:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"].map(day=>/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",fontSize:\"11px\",fontWeight:600,color:\"#999\",padding:\"8px 0\",textTransform:\"uppercase\"},children:day},day))}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",padding:\"0 20px 20px\",gap:\"2px\"},children:generateCalendarDays().map((date,index)=>{const available=isDateAvailable(date);const selected=isDateSelected(date);const currentMonthDate=isCurrentMonth(date);const isToday=date.toDateString()===new Date().toDateString();return /*#__PURE__*/_jsx(\"button\",{onClick:()=>available&&handleDateSelect(date),disabled:!available,style:{width:\"35px\",height:\"35px\",border:\"none\",borderRadius:\"50%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"13px\",cursor:available?\"pointer\":\"default\",backgroundColor:selected?\"#569ff7\":\"transparent\",color:selected?\"white\":!currentMonthDate?\"#ddd\":!available?\"#ccc\":isToday?\"#569ff7\":\"#333\",fontWeight:selected?600:isToday?600:400,transition:\"all 0.1s ease\",outline:\"none\"},onMouseOver:e=>{if(available&&!selected){e.currentTarget.style.backgroundColor=\"#f0f0f0\";}},onMouseOut:e=>{if(available&&!selected){e.currentTarget.style.backgroundColor=\"transparent\";}},children:date.getDate()},index);})})]}),shouldShowError&&!facilities&&/*#__PURE__*/_jsx(ErrorMsg,{text:\"Please select a location first\"}),shouldShowError&&facilities&&availableDates.length===0&&/*#__PURE__*/_jsx(ErrorMsg,{text:\"No available dates\"})]});};const arrForKids=[\"Kids\",\"Toddlers\",\"Teens\"];function getGenderName(id){const genderObj=gender.find(item=>item.id===id);return genderObj?genderObj.value:\"Unknown\"// Return \"Unknown\" if not found\n;}const gender=[{id:\"M\",value:\"Male\"},{id:\"F\",value:\"Female\"},{id:\"O\",value:\"Others\"}];var CoachingBatchAgeGroup;(function(CoachingBatchAgeGroup){CoachingBatchAgeGroup[\"ADULTS\"]=\"ADULTS\";CoachingBatchAgeGroup[\"TEENS\"]=\"TEENS\";CoachingBatchAgeGroup[\"KIDS\"]=\"KIDS\";CoachingBatchAgeGroup[\"TODDLERS\"]=\"TODDLERS\";CoachingBatchAgeGroup[\"NONE\"]=\"\";})(CoachingBatchAgeGroup||(CoachingBatchAgeGroup={}));const formatTimeTo12Hour=time24=>{const[hours,minutes]=time24?.split(\":\");let hour=parseInt(hours);const isPM=hour>=12;hour=hour%12;if(hour===0)hour=12;const formattedTime=`${hour.toString().padStart(2,\"0\")}:${minutes} ${isPM?\"PM\":\"AM\"}`;return formattedTime;};const formatDateForSending=date=>{if(!date)return\"\";const year=date.getFullYear();const month=String(date.getMonth()+1).padStart(2,\"0\")// Months are 0-indexed\n;const day=String(date.getDate()).padStart(2,\"0\");return`${year}-${month}-${day}`;};const ErrorMsg=({text})=>{return /*#__PURE__*/_jsx(\"div\",{style:{...styles.error,bottom:\"-16px\",left:\"0px\",position:\"absolute\"},children:text});};// Function to format age range into years and months as desired\nconst formatAgeRange=(min,max)=>{const minYears=Math.floor(min/12);const maxYears=Math.floor(max/12);const minMonths=min%12;// Toddlers\nif(min<12){return`from ${min} months`;}// Adults\nif(maxYears>25){return`${minYears}+ years`;}// Everything else (range in years)\nreturn`${minYears} to ${maxYears} years`;};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MainForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TrialClassForm.map"],"mappings":"mOAsHgK,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,uBAAqB,WAAS,iBAAe,UAAQ,YAAU,UAAQ,UAAQ,cAAY,wBAAsB,yBAAuB,mBAAiB,EAAM,OAAoB,EAAK,EAAkB,CAAS,UAAoB,cAAoB,UAA6B,uBAA4C,yBAAgC,WAAiB,UAAkB,YAAgC,wBAAsC,kBAA+B,iBAAe,CAAC,+DAtH3nB,IAAoD,KAAoD,CAAM,EAAiB,GAAK,CAAC,IAAM,EAAS,CAAC,KAAK,KAAK,KAAK,KAAK,CAA+C,MAAM,GAAG,IAAM,EAAlD,EAAI,IAAI,EAAI,IAAK,EAAI,GAAG,EAAT,EAAa,EAAI,KAAkC,EAAS,MACzU,GAAsB,GAAM,CAAC,GAAG,CAAC,GAAM,EAAE,aAAgB,OAAO,MAAM,EAAK,SAAS,CAAC,CAAE,MAAM,eAAgB,IAAM,EAAW,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,CAAO,EAAI,EAAK,SAAS,CAAO,EAAM,EAAW,EAAK,UAAU,EAAQ,EAAK,EAAK,aAAa,CAAwC,MAAM,GAAG,EAAM,GAArC,EAAiB,EAAI,CAA8B,IAAI,KAAe,GAAc,CAAC,OAAK,GAAG,QAAM,eAAe,UAAQ,MAA8B,EAAK,MAAM,CAAC,MAAM,6BAA6B,MAAM,EAAK,OAAO,EAAK,KAAK,EAAM,QAAQ,YAAY,MAAM,CAAC,UAAU,EAAQ,iBAAiB,gBAAgB,WAAW,sBAAsB,CAAC,SAAsB,EAAK,OAAO,CAAC,EAAE,qFAAqF,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