{"version":3,"file":"MobileCheckAvailability.DFJDAae1.mjs","names":["useState","useRef","today","e","_Fragment","useRef","useState","React","p","url","workshopData","selectedDate","email","phoneNumber","name","e","formatDate","price","_Fragment","useState","useRef","useCallback","useMemo","_Fragment"],"sources":["https:/framer.com/m/FramerDatePicker-MJo2.js@DYizUVqY2ImXfhBuIXGZ","https:/framerusercontent.com/modules/Ic0Eh7vhyhGsKOgYWtcX/Kzgr6hq92Pimn8VuJOzh/Booking_Prod.js","https:/framerusercontent.com/modules/bEP6i27RLxoAawpSy3Cj/XzzOMLVNPuuXINQnt98E/MobileCheckAvailability.js"],"sourcesContent":["// FramerDatePicker.tsx - Mobile-First Date Picker Component\n// Integrated with booking form available dates system\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";export default function FramerDatePicker({selectedDate,availableDates,minDate,maxDate,onDateSelect,onMonthNavigate,loading=false,placeholder=\"Select a date\",primaryColor=\"#4f46e5\"}){// State\nconst[isOpen,setIsOpen]=useState(false);const[currentMonth,setCurrentMonth]=useState(new Date);const[isMobile,setIsMobile]=useState(false);// Mobile detection\nuseEffect(()=>{const checkMobile=()=>{const width=window.innerWidth;const mobile=width<=500;setIsMobile(mobile);};checkMobile();window.addEventListener(\"resize\",checkMobile);return()=>window.removeEventListener(\"resize\",checkMobile);},[]);// Calculate dropdown position for desktop (relative to input)\nconst[dropdownPosition,setDropdownPosition]=useState({top:0,left:0,width:0});const inputRef=useRef(null);useEffect(()=>{if(isOpen&&!isMobile&&inputRef.current){const rect=inputRef.current.getBoundingClientRect();setDropdownPosition({top:rect.height+8,left:0,width:Math.max(320,rect.width)});}},[isOpen,isMobile]);// Body scroll lock for mobile\nuseEffect(()=>{if(isOpen&&isMobile){document.body.style.overflow=\"hidden\";return()=>{document.body.style.overflow=\"\";};}},[isOpen,isMobile]);// Click outside to close (desktop only)\nuseEffect(()=>{if(isOpen&&!isMobile){const handleClickOutside=event=>{if(inputRef.current&&!inputRef.current.contains(event.target)){// Check if click is on the dropdown itself\nconst dropdownElement=document.querySelector(\"[data-datepicker-dropdown]\");if(dropdownElement&&!dropdownElement.contains(event.target)){setIsOpen(false);}else if(!dropdownElement){setIsOpen(false);}}};// Small delay to avoid closing immediately after opening\nconst timer=setTimeout(()=>{document.addEventListener(\"mousedown\",handleClickOutside);},100);return()=>{clearTimeout(timer);document.removeEventListener(\"mousedown\",handleClickOutside);};}},[isOpen,isMobile]);// Format date for display\nconst formatDisplayDate=dateString=>{if(!dateString)return\"\";const date=new Date(dateString);return date.toLocaleDateString(\"en-US\",{weekday:\"short\",month:\"short\",day:\"numeric\",year:\"numeric\"});};// Calendar helpers\nconst getDaysInMonth=date=>{return new Date(date.getFullYear(),date.getMonth()+1,0).getDate();};const getFirstDayOfMonth=date=>{return new Date(date.getFullYear(),date.getMonth(),1).getDay();};const formatDateString=(year,month,day)=>{const formattedMonth=String(month+1).padStart(2,\"0\");const formattedDay=String(day).padStart(2,\"0\");return`${year}-${formattedMonth}-${formattedDay}`;};// Date validation\nconst isDateAvailable=dateString=>{if(availableDates.size===0)return true;return availableDates.has(dateString);};const isDateInRange=dateString=>{const date=new Date(dateString);const today=new Date;today.setHours(0,0,0,0);if(date<today)return false;if(minDate&&date<new Date(minDate))return false;if(maxDate&&date>new Date(maxDate))return false;return true;};// Event handlers\nconst handleDateClick=dateString=>{if(!isDateInRange(dateString)||!isDateAvailable(dateString)){return;}onDateSelect(dateString);// Auto-close on both mobile and desktop after date selection\nsetIsOpen(false);};const navigateMonth=(direction,event)=>{console.log(\"📅 Navigation clicked:\",direction,{eventType:event?.type,eventTarget:event?.target,hasForm:!!event?.currentTarget.closest(\"form\")});if(event){event.preventDefault();event.stopPropagation();event.nativeEvent?.stopImmediatePropagation();}const newMonth=new Date(currentMonth);if(direction===\"prev\"){newMonth.setMonth(newMonth.getMonth()-1);}else{newMonth.setMonth(newMonth.getMonth()+1);}setCurrentMonth(newMonth);// Trigger pagination callback for new month\nif(onMonthNavigate){onMonthNavigate(newMonth.getFullYear(),newMonth.getMonth());}};// Generate calendar\nconst generateCalendarDays=()=>{const year=currentMonth.getFullYear();const month=currentMonth.getMonth();const daysInMonth=getDaysInMonth(currentMonth);const firstDay=getFirstDayOfMonth(currentMonth);const days=[];const daySize=isMobile?44:36;// Empty cells\nfor(let i=0;i<firstDay;i++){days.push(/*#__PURE__*/_jsx(\"div\",{style:{width:daySize,height:daySize}},`empty-${i}`));}// Days\nfor(let day=1;day<=daysInMonth;day++){const dateString=formatDateString(year,month,day);const isAvailable=isDateAvailable(dateString);const isInRange=isDateInRange(dateString);const isSelected=selectedDate===dateString;const isToday=dateString===new Date().toISOString().split(\"T\")[0];let dayStyle={width:daySize,height:daySize,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:isMobile?16:14,borderRadius:\"50%\",cursor:\"pointer\",border:\"none\",background:\"transparent\",transition:\"all 0.2s\",WebkitTapHighlightColor:\"transparent\"};if(!isInRange){dayStyle.color=\"#d1d5db\";dayStyle.cursor=\"not-allowed\";}else if(!isAvailable){dayStyle.color=\"#9ca3af\";dayStyle.background=\"#f3f4f6\";dayStyle.cursor=\"not-allowed\";dayStyle.textDecoration=\"line-through\";}else if(isSelected){dayStyle.background=primaryColor;dayStyle.color=\"white\";dayStyle.fontWeight=\"600\";dayStyle.boxShadow=`0 2px 8px ${primaryColor}40`;}else if(isToday){dayStyle.background=`${primaryColor}20`;dayStyle.color=primaryColor;dayStyle.fontWeight=\"600\";}else{dayStyle.color=\"#374151\";}days.push(/*#__PURE__*/_jsx(\"button\",{type:\"button\",style:dayStyle,onClick:()=>handleDateClick(dateString),disabled:!isInRange||!isAvailable,onMouseEnter:e=>{if(!isMobile&&isInRange&&isAvailable&&!isSelected){e.currentTarget.style.background=`${primaryColor}10`;e.currentTarget.style.color=primaryColor;}},onMouseLeave:e=>{if(!isMobile&&isInRange&&isAvailable&&!isSelected&&!isToday){e.currentTarget.style.background=\"transparent\";e.currentTarget.style.color=\"#374151\";}else if(isToday&&!isSelected){e.currentTarget.style.background=`${primaryColor}20`;e.currentTarget.style.color=primaryColor;}},children:day},day));}return days;};return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\"},children:/*#__PURE__*/_jsxs(\"div\",{ref:inputRef,onClick:()=>setIsOpen(!isOpen),className:\"mt-2 block w-full rounded-full border-0 py-1.5 pl-3 text-gray-900 pr-2 ring-1 ring-inset ring-gray-300 h-12 focus:ring-2 focus:ring-indigo-600\",style:{cursor:\"pointer\",background:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",paddingRight:\"12px\"},role:\"button\",tabIndex:0,onKeyDown:e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();setIsOpen(!isOpen);}},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:selectedDate?\"#374151\":\"#9ca3af\",fontSize:\"14px\"},children:selectedDate?formatDisplayDate(selectedDate):placeholder}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\"},children:[loading&&/*#__PURE__*/_jsx(\"div\",{className:\"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600 mr-2\"}),/*#__PURE__*/_jsx(\"svg\",{style:{width:20,height:20,color:\"#9ca3af\",transform:isOpen?\"rotate(180deg)\":\"rotate(0deg)\",transition:\"transform 0.2s\"},fill:\"none\",stroke:\"currentColor\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:2,d:\"M19 9l-7 7-7-7\"})})]})]})}),isOpen&&/*#__PURE__*/_jsx(_Fragment,{children:isMobile?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,background:\"rgba(0, 0, 0, 0.5)\",zIndex:999998,animation:\"fadeIn 0.2s ease-out\"},onClick:()=>setIsOpen(false)}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",bottom:0,left:0,right:0,background:\"white\",borderTopLeftRadius:\"24px\",borderTopRightRadius:\"24px\",zIndex:999999,maxHeight:\"80vh\",overflowY:\"auto\",animation:\"slideUp 0.3s ease-out\",paddingTop:\"max(24px, env(safe-area-inset-top))\",paddingBottom:\"max(24px, env(safe-area-inset-bottom))\",paddingLeft:\"max(16px, env(safe-area-inset-left))\",paddingRight:\"max(16px, env(safe-area-inset-right))\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"center\",padding:\"12px 0 8px\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:40,height:4,background:\"#d1d5db\",borderRadius:2}})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"8px 20px 16px\",borderBottom:\"1px solid #e5e7eb\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{fontSize:20,fontWeight:\"600\",color:\"#111827\",margin:0},children:\"Select Date\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:e=>{e.preventDefault();e.stopPropagation();setIsOpen(false);},style:{background:\"transparent\",border:\"none\",padding:8,cursor:\"pointer\"},children:/*#__PURE__*/_jsx(\"svg\",{style:{width:24,height:24,color:\"#6b7280\"},fill:\"none\",stroke:\"currentColor\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:2,d:\"M6 18L18 6M6 6l12 12\"})})})]}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:20},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",marginBottom:24},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:e=>{e.preventDefault();e.stopPropagation();navigateMonth(\"prev\",e);},onMouseDown:e=>e.preventDefault(),style:{padding:12,background:primaryColor,border:\"none\",borderRadius:12,cursor:\"pointer\",color:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"svg\",{style:{width:20,height:20},fill:\"none\",stroke:\"currentColor\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:2,d:\"M15 19l-7-7 7-7\"})})}),/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:18,fontWeight:\"600\",margin:0,color:\"#111827\"},children:currentMonth.toLocaleDateString(\"en-US\",{month:\"long\",year:\"numeric\"})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:e=>{e.preventDefault();e.stopPropagation();navigateMonth(\"next\",e);},onMouseDown:e=>e.preventDefault(),style:{padding:12,background:primaryColor,border:\"none\",borderRadius:12,cursor:\"pointer\",color:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"svg\",{style:{width:20,height:20},fill:\"none\",stroke:\"currentColor\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:2,d:\"M9 5l7 7-7 7\"})})})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",gap:4,marginBottom:12},children:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"].map(day=>/*#__PURE__*/_jsx(\"div\",{style:{width:44,height:32,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:14,fontWeight:\"600\",color:\"#6b7280\"},children:day},day))}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",gap:4},children:generateCalendarDays()})]})]})]}):/* Desktop Calendar *//*#__PURE__*/_jsxs(\"div\",{\"data-datepicker-dropdown\":true,style:{position:\"absolute\",background:\"white\",border:\"1px solid #e5e7eb\",borderRadius:16,boxShadow:\"0 20px 60px rgba(0,0,0,0.15)\",zIndex:999999,minWidth:Math.max(dropdownPosition.width,320),padding:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",marginBottom:16},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:e=>{e.preventDefault();e.stopPropagation();navigateMonth(\"prev\",e);},onMouseDown:e=>e.preventDefault(),style:{padding:8,background:\"transparent\",border:\"none\",borderRadius:\"50%\",cursor:\"pointer\"},onMouseEnter:e=>e.currentTarget.style.background=\"#f3f4f6\",onMouseLeave:e=>e.currentTarget.style.background=\"transparent\",children:/*#__PURE__*/_jsx(\"svg\",{style:{width:20,height:20,color:\"#4b5563\"},fill:\"none\",stroke:\"currentColor\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:2,d:\"M15 19l-7-7 7-7\"})})}),/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:18,fontWeight:\"600\",margin:0,color:\"#111827\"},children:currentMonth.toLocaleDateString(\"en-US\",{month:\"long\",year:\"numeric\"})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:e=>{e.preventDefault();e.stopPropagation();navigateMonth(\"next\",e);},onMouseDown:e=>e.preventDefault(),style:{padding:8,background:\"transparent\",border:\"none\",borderRadius:\"50%\",cursor:\"pointer\"},onMouseEnter:e=>e.currentTarget.style.background=\"#f3f4f6\",onMouseLeave:e=>e.currentTarget.style.background=\"transparent\",children:/*#__PURE__*/_jsx(\"svg\",{style:{width:20,height:20,color:\"#4b5563\"},fill:\"none\",stroke:\"currentColor\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:2,d:\"M9 5l7 7-7 7\"})})})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",gap:4,marginBottom:8},children:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"].map(day=>/*#__PURE__*/_jsx(\"div\",{style:{width:36,height:32,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:12,fontWeight:\"500\",color:\"#6b7280\"},children:day},day))}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",gap:4},children:generateCalendarDays()}),availableDates.size>0&&/*#__PURE__*/_jsx(\"div\",{style:{marginTop:16,paddingTop:12,borderTop:\"1px solid #f3f4f6\",fontSize:12,color:\"#6b7280\",textAlign:\"center\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:4},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:12,height:12,background:primaryColor,borderRadius:\"50%\"}}),/*#__PURE__*/_jsx(\"span\",{children:\"Available\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:4},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:12,height:12,background:\"#f3f4f6\",borderRadius:\"50%\"}}),/*#__PURE__*/_jsx(\"span\",{children:\"Unavailable\"})]})]})})]})}),/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes slideUp {\n                    from { transform: translateY(100%); }\n                    to { transform: translateY(0); }\n                }\n                @keyframes fadeIn {\n                    from { opacity: 0; }\n                    to { opacity: 1; }\n                }\n            `})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerDatePicker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FramerDatePicker.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import React,{useEffect,useState,useRef}from\"react\";import{EVENT_MAPPING,VALID_EVENT_IDS,toApiLocale}from\"https://framer.com/m/Mapping-nsDp.js\";import FramerDatePicker from\"https://framer.com/m/FramerDatePicker-MJo2.js@DYizUVqY2ImXfhBuIXGZ\";const fontInter={fontFamily:\"DM sans, sans-serif\"};const today=new Date().toISOString().split(\"T\")[0];// Retry utility function with exponential backoff\nconst retryWithBackoff=async(fn,maxRetries=3,baseDelay=1e3,maxDelay=1e4)=>{let lastError;for(let attempt=0;attempt<=maxRetries;attempt++){try{const result=await fn();return result;}catch(error){lastError=error;// Don't retry on the last attempt\nif(attempt===maxRetries){break;}// Check if error is a network connectivity issue\nconst isConnectivityError=error instanceof TypeError&&error.message.includes(\"fetch\")||error instanceof TypeError&&error.message.includes(\"network\")||error instanceof Error&&error.message.includes(\"timeout\")||error instanceof Error&&error.message.includes(\"NETWORK_ERROR\")||error instanceof Error&&error.message.includes(\"ERR_INTERNET_DISCONNECTED\")||error instanceof Error&&error.message.includes(\"ERR_NETWORK_CHANGED\")||error?.code===\"NETWORK_ERROR\"||error?.status===0||// Network error\nerror?.status>=500||// Server errors\nerror?.status===408||// Request timeout\nerror?.status===429// Too many requests\n;// Only retry on connectivity/network errors or server errors\nif(!isConnectivityError){throw error;}// Calculate delay with exponential backoff and jitter\nconst delay=Math.min(baseDelay*Math.pow(2,attempt)+Math.random()*1e3,maxDelay);console.log(`Retry attempt ${attempt+1}/${maxRetries} after ${delay}ms delay`);await new Promise(resolve=>setTimeout(resolve,delay));}}throw lastError;};// Get device and browser information\nconst getDeviceInfo=()=>{if(typeof window===\"undefined\")return{};return{screenResolution:`${window.screen.width}x${window.screen.height}`,viewport:`${window.innerWidth}x${window.innerHeight}`,platform:navigator.platform||\"unknown\",language:navigator.language||\"unknown\",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||\"unknown\",cookiesEnabled:navigator.cookieEnabled,onLine:navigator.onLine,referrer:document.referrer||\"direct\"};};// Logging function to send events to webhook\nconst logEvent=async(eventType,eventData,priority=\"normal\")=>{try{const payload={eventType,eventData,timestamp:new Date().toISOString(),pageUrl:typeof window!==\"undefined\"?window.location.href:\"unknown\",userAgent:typeof navigator!==\"undefined\"?navigator.userAgent:\"unknown\",sessionId:typeof window!==\"undefined\"?window.sessionStorage.getItem(\"bookingSessionId\")||\"unknown\":\"unknown\",deviceInfo:getDeviceInfo(),priority};// Use fetch with timeout to prevent hanging\nconst controller=new AbortController;const timeoutId=setTimeout(()=>controller.abort(),5e3)// 5 second timeout\n;const response=await fetch(\"https://crm.istanbulworkshops.com/framerAssets/webhook-handler.php\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(payload),signal:controller.signal});clearTimeout(timeoutId);// Log webhook errors but don't throw\nif(!response.ok){console.warn(`Webhook returned ${response.status}:`,await response.text());}}catch(error){// Silently fail - don't interrupt the booking process\nconsole.warn(\"Logging failed (non-critical):\",error);// For high priority events, try to store locally\nif(priority===\"high\"&&typeof window!==\"undefined\"){try{const failedLogs=JSON.parse(localStorage.getItem(\"failedBookingLogs\")||\"[]\");failedLogs.push({eventType,eventData,timestamp:new Date().toISOString(),error:error.message});// Keep only last 50 failed logs\nif(failedLogs.length>50){failedLogs.splice(0,failedLogs.length-50);}localStorage.setItem(\"failedBookingLogs\",JSON.stringify(failedLogs));}catch(e){// Even local storage failed, continue anyway\n}}}};// Meta Pixel Configuration and Helper Functions\nconst META_PIXEL_ID=\"1059332381844604\"// Your Pixel ID\n;/**\n * Sets user data for Meta's Advanced Matching. This securely hashes the data.\n * @param {object} userData - An object with user PII (e.g., { em: 'email', ph: 'phone' }).\n */const setPixelUserData=userData=>{if(typeof window.fbq===\"function\"){console.log(\"Setting Meta Pixel user data for Advanced Matching\");window.fbq(\"set\",\"user_data\",userData);}else{console.warn(\"Meta Pixel not loaded, cannot set user data\");}};/**\n * Tracks a standard or custom Meta Pixel event.\n * @param {string} eventName - The name of the event (e.g., 'Purchase', 'trackCustom').\n * @param {object} [parameters={}] - An object with event parameters.\n */const trackPixelEvent=(eventName,parameters={})=>{if(typeof window.fbq===\"function\"){// For custom events, the actual event name is passed in the parameters.\nif(eventName===\"trackCustom\"){console.log(`Meta Pixel Custom Event: ${parameters.customEventName}`,parameters.data);window.fbq(\"trackCustom\",parameters.customEventName,parameters.data);}else{console.log(`Meta Pixel Event: ${eventName}`,parameters);window.fbq(\"track\",eventName,parameters);}}else{console.warn(`Meta Pixel not loaded. Skipped event: ${eventName}`);}};// Google Analytics & Ads Helper Functions\nconst trackGoogleEvent=(eventName,parameters={},attempt=1)=>{if(typeof window.gtag===\"function\"){console.log(`Google Event: ${eventName}`,parameters);window.gtag(\"event\",eventName,parameters);}else if(attempt<=5){// Retry up to 5 times (total of ~2.5 seconds)\nconsole.warn(`Google Tag (gtag.js) not loaded. Retrying event: ${eventName} (Attempt ${attempt})`);setTimeout(()=>{trackGoogleEvent(eventName,parameters,attempt+1);},500)// Wait 500ms before retrying\n;}else{console.error(`Google Tag (gtag.js) did not load after several attempts. Skipped event: ${eventName}`);}};// TikTok Pixel Helper Functions\nconst setTikTokUserData=userData=>{if(typeof window.ttq===\"object\"&&typeof window.ttq.identify===\"function\"){console.log(\"Setting TikTok user data for Advanced Matching\");window.ttq.identify(userData);}else{console.warn(\"TikTok Pixel not loaded, cannot set user data\");}};const trackTikTokEvent=(eventName,parameters={})=>{if(typeof window.ttq===\"object\"&&typeof window.ttq.track===\"function\"){console.log(`TikTok Event: ${eventName}`,parameters);window.ttq.track(eventName,parameters);}else{console.warn(\"TikTok Pixel not loaded. Skipped event:\",eventName);}};// Yandex Metrica Helper Functions\nconst YANDEX_COUNTER_ID=98182107;const trackYandexGoal=(goalName,parameters={})=>{if(typeof window.ym===\"function\"){console.log(`Yandex Metrica Goal: ${goalName}`,parameters);window.ym(YANDEX_COUNTER_ID,\"reachGoal\",goalName,parameters);}else{console.warn(\"Yandex Metrica (ym) not loaded. Skipped goal:\",goalName);}};export default function Booking(props){const containerRef=useRef(null);const scrollToTop=()=>{if(containerRef.current){containerRef.current.scrollIntoView({behavior:\"smooth\"});}};// Version tracking for debugging deployment issues\nuseEffect(()=>{const COMPONENT_VERSION=\"2.2.2\"// Fixed date calculation and added next month prefetch\n;const BUILD_TIMESTAMP=new Date().toISOString();console.log(`🔄 BookingComponent v${COMPONENT_VERSION} | Built: ${BUILD_TIMESTAMP}`);console.log(\"📋 Changes in v2.2.2:\");console.log(\"  - FIXED: Month start dates (no more 2025-11-30, now 2025-11-01)\");console.log(\"  - Added next month prefetch on every navigation\");console.log(\"  - Always ensures current + next month are loaded\");console.log(\"  - Direct string formatting to avoid timezone issues\");},[]);// Constants\nconst DEFAULT_DISCOUNT_PERCENT=25// Default 25% discount\n;const[maxUsagePerUser,setMaxUsagePerUser]=useState(0);// Mapping centralized in eventMapping.ts\n// State Variables\nconst[workshopData,setWorkshopData]=useState({usd:null,try:null});const[preferredCurrency,setPreferredCurrency]=useState(\"\");const[selectedDate,setSelectedDate]=useState(new Date().toISOString().split(\"T\")[0]);const[numberOfPeople,setNumberOfPeople]=useState(1);const[language,setLanguage]=useState(\"English\");const[selectedTime,setSelectedTime]=useState(\"\");const[price,setPrice]=useState(0);const[isLoading,setIsLoading]=useState(false);const[isAvailabilityChecked,setIsAvailabilityChecked]=useState(false);const[referralCodeFromURL,setReferralCodeFromURL]=useState(\"\");const[urlEventId,setUrlEventId]=useState(\"\");const[availabilityError,setAvailabilityError]=useState(\"\")// New state for availability errors\n;// Available dates state\nconst[availableDates,setAvailableDates]=useState(new Set);const[availableDatesLoading,setAvailableDatesLoading]=useState(false);const[loadedMonths,setLoadedMonths]=useState(new Set);const[minAvailableDate,setMinAvailableDate]=useState(\"\");const[maxAvailableDate,setMaxAvailableDate]=useState(\"\");// Track active requests to prevent duplicates\nconst activeRequestsRef=React.useRef(new Set);const[referralCode,setReferralCode]=useState(\"\");const[discountPercent,setDiscountPercent]=useState(0)// Referral code discount\n;const[referralCodeValid,setReferralCodeValid]=useState(null)// true, false, or null\n;const[referralCodeError,setReferralCodeError]=useState(\"\");const[isReferralCodeLoading,setIsReferralCodeLoading]=useState(false);const[name,setName]=useState(\"\");const[nameTouched,setNameTouched]=useState(false);const[email,setEmail]=useState(\"\");const[phoneNumber,setPhoneNumber]=useState(\"\");const[bookingSuccess,setBookingSuccess]=useState(false);const[eventLocation,setEventLocation]=useState(\"Location not specified\");const[eventName,setEventName]=useState(\"\")// Initialized as empty\n;const[showSecondPartForm,setShowSecondPartForm]=useState(false);const[hasCheckedOnce,setHasCheckedOnce]=useState(false)// Track if user has checked availability at least once\n;const[originalPrice,setOriginalPrice]=useState(0);const[bookingRef,setBookingRef]=useState(\"\");const[selectedSlotAvailable,setSelectedSlotAvailable]=useState(null);const[hasInitiatedCheckout,setHasInitiatedCheckout]=useState(false);const[emailTouched,setEmailTouched]=useState(false);const[phoneNumberTouched,setPhoneNumberTouched]=useState(false);// Phone validation state - simplified\nconst[userCountry,setUserCountry]=useState(\"us\");// *** New State Variable for First Available Date ***\nconst[firstAvailableDate,setFirstAvailableDate]=useState(today);// Add these new state variables\nconst[availableTimes,setAvailableTimes]=useState([]);const[currentWorkshop,setCurrentWorkshop]=useState(null);const[currencySymbol,setCurrencySymbol]=useState(\"\");const[isCheckingAvailability,setIsCheckingAvailability]=useState(false);// Add new state for transition\nconst[isChangingCurrency,setIsChangingCurrency]=useState(false);// Add these at the top of your component, after state declarations\nconst CACHE_DURATION=30*1e3// 30 seconds in milliseconds\n;const[currencyCache,setCurrencyCache]=useState({});// Initialize Meta Pixel properly - runs once on component mount\nuseEffect(()=>{if(typeof window.fbq!==\"function\"){console.log(\"Meta Pixel script not found, will not initialize\");// If the script is added via Framer's site settings, it might already be loaded.\nreturn;}// Check if this specific pixel ID has already been initialized.\n// This prevents the \"Duplicate Pixel ID\" warning if Framer already did it.\nif(window.fbq.getState&&window.fbq.getState().pixels.some(p=>p.id===META_PIXEL_ID)){console.log(`Meta Pixel ID ${META_PIXEL_ID} already initialized.`);}else{console.log(`Initializing Meta Pixel ID ${META_PIXEL_ID}.`);window.fbq(\"init\",META_PIXEL_ID);window.fbq(\"track\",\"PageView\");}},[])// Empty dependency array ensures this runs only once on mount\n;// Update the URL parsing logic with retry\nuseEffect(()=>{const parseUrl=()=>{if(typeof window===\"undefined\"){console.log(\"Window not available yet\");return;}console.log(\"Current URL:\",window.location.href);console.log(\"Current pathname:\",window.location.pathname);console.log(\"Current search:\",window.location.search);const params=new URLSearchParams(window.location.search);console.log(\"URL Parameters:\",Object.fromEntries(params.entries()));const refCode=params.get(\"REF\");console.log(\"Referral code from URL:\",refCode);setReferralCodeFromURL(refCode||\"\");const findEventIdFromUrl=(url,retryCount=0)=>{console.log(`Attempting to find event ID (attempt ${retryCount+1})`);// First try: exact match from query params\nconst eventIdParam=params.get(\"eventId\");console.log(\"Event ID from query params:\",eventIdParam);if(eventIdParam&&VALID_EVENT_IDS.includes(eventIdParam)){console.log(\"Found valid event ID from query params:\",eventIdParam);setUrlEventId(eventIdParam);return eventIdParam;}// Second try: check URL keywords\nfor(const[key,value]of Object.entries(EVENT_MAPPING)){console.log(`Checking keyword: ${key}`);if(url.toLowerCase().includes(key.toLowerCase())){console.log(`Found event ID ${value} from keyword ${key}`);setUrlEventId(value);return value;}}// Third try: check URL for direct event IDs\nfor(const id of VALID_EVENT_IDS){console.log(`Checking for direct event ID: ${id}`);if(url.includes(`/${id}`)||url.includes(`event-${id}`)){console.log(`Found direct event ID: ${id}`);setUrlEventId(id);return id;}}// If no match found and we haven't exceeded retry limit\nif(retryCount<2){console.log(`No event ID found, will retry (${retryCount+1}/2)`);setTimeout(()=>{const fullUrl=window.location.href;console.log(`Retrying with full URL: ${fullUrl}`);const eventId=findEventIdFromUrl(fullUrl,retryCount+1);if(eventId){console.log(`Found event ID on retry: ${eventId}`);setUrlEventId(eventId);}else if(retryCount===1){console.error(\"Could not determine event ID after all retries\");setAvailabilityError(\"Could not determine event. Please check the URL or contact support.\");}},500*(retryCount+1));}return null;};const url=window.location.href;console.log(\"Processing URL:\",url);console.log(\"Valid event IDs:\",VALID_EVENT_IDS);console.log(\"Event mapping:\",EVENT_MAPPING);const foundEventId=findEventIdFromUrl(url);if(foundEventId){console.log(\"Setting event ID:\",foundEventId);setUrlEventId(foundEventId);}else{console.log(\"No event ID found in initial check\");}};// Initial parse\nparseUrl();// Add URL change listener\nconst handleUrlChange=()=>{console.log(\"URL changed, re-parsing\");parseUrl();};window.addEventListener(\"popstate\",handleUrlChange);return()=>window.removeEventListener(\"popstate\",handleUrlChange);},[]);// Update referral code from URL\nuseEffect(()=>{setReferralCode(referralCodeFromURL);},[referralCodeFromURL]);// Update the useEffect that fetches data to handle missing eventId\nuseEffect(()=>{async function fetchData(){if(!urlEventId){console.log(\"No event ID available yet, skipping fetch\");return;}console.log(\"Fetching data for event ID:\",urlEventId);try{const apiUrl=`https://iw-api.istanbulworkshops.com/api/events?eventId=${urlEventId}`;console.log(\"Constructed API URL:\",apiUrl);const responseData=await retryWithBackoff(async()=>{const response=await fetch(apiUrl);if(!response.ok){logEvent(\"api_error\",{endpoint:\"workshop_data_fetch\",eventId:urlEventId,httpStatus:response.status,statusText:response.statusText,url:apiUrl},\"high\");const error=new Error(`HTTP error! status: ${response.status}`);error.status=response.status;throw error;}return await response.json();},3,1e3,1e4);console.log(\"Received data:\",responseData);if(!responseData.success||!responseData.data){throw new Error(\"Invalid response format\");}const workshopData=responseData.data;// Set initial workshop data\nsetWorkshopData(prev=>({...prev,usd:workshopData,try:null}));// Set current workshop\nsetCurrentWorkshop(workshopData);// Set event name\nsetEventName(workshopData.name||\"\");// Set available languages from the response\nif(Array.isArray(workshopData.languages)){setLanguage(workshopData.languages[0]||\"English\")// Set first language as default\n;}// Set available times from slots\nif(Array.isArray(workshopData.slots)){setAvailableTimes(workshopData.slots);}// Set currency symbol based on the response\nsetCurrencySymbol(workshopData.currency===\"USD\"?\"$\":\"₺\");setPreferredCurrency(workshopData.currency===\"USD\"?\"en\":\"tr\");// Log workshop data loaded\nlogEvent(\"workshop_data_loaded\",{eventId:urlEventId,eventName:workshopData.name,currency:workshopData.currency,slotsAvailable:workshopData.slots?.length||0,languages:workshopData.languages});// Track ViewContent across all platforms\nconst itemValue=workshopData.discountedPriceAmount||parseFloat(workshopData.priceAmount||workshopData.price||0);const currency=workshopData.currency||\"USD\";// Meta Pixel\ntrackPixelEvent(\"ViewContent\",{content_type:\"product\",content_ids:[urlEventId],content_name:workshopData.name,value:itemValue,currency:currency});// Google Analytics 4\ntrackGoogleEvent(\"view_item\",{currency:currency,value:itemValue,items:[{item_id:urlEventId,item_name:workshopData.name,price:itemValue,quantity:1,item_category:\"Workshop\"}]});// TikTok Pixel\ntrackTikTokEvent(\"ViewContent\",{content_id:urlEventId,content_name:workshopData.name,content_type:\"product\",price:itemValue,value:itemValue,currency:currency});// Yandex Metrica\ntrackYandexGoal(\"view_content\",{event_id:urlEventId,event_name:workshopData.name,value:itemValue,currency:currency});}catch(error){console.error(\"Error fetching workshop data:\",error);setAvailabilityError(\"Could not load workshop data. Please try again later.\");// Log API error\nlogEvent(\"api_error\",{endpoint:\"workshop_data_fetch\",eventId:urlEventId,error:{message:error.message,stack:error.stack,type:error.name},apiUrl:`https://iw-api.istanbulworkshops.com/api/events?eventId=${urlEventId}`,networkOnline:typeof navigator!==\"undefined\"?navigator.onLine:true,userAgent:typeof navigator!==\"undefined\"?navigator.userAgent:\"unknown\",timeoutOccurred:error.name===\"AbortError\"||error.message.includes(\"timeout\"),fetchFailed:error.name===\"TypeError\"&&error.message.includes(\"fetch\")},\"high\");}}fetchData();},[urlEventId]);// Generate booking reference and session ID when component mounts\nuseEffect(()=>{setBookingRef(generateBookingRef());// Generate session ID if not exists\nif(typeof window!==\"undefined\"){let sessionId=window.sessionStorage.getItem(\"bookingSessionId\");if(!sessionId){sessionId=`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;window.sessionStorage.setItem(\"bookingSessionId\",sessionId);window.sessionStorage.setItem(\"sessionStartTime\",Date.now().toString());}// Log page load event\nlogEvent(\"page_load\",{eventId:urlEventId,referralCode:referralCodeFromURL,timestamp:new Date().toISOString()});}},[]);// Automatic availability check after user has clicked \"Check Availability\" at least once\nuseEffect(()=>{// Only auto-check if user has manually checked at least once\nif(hasCheckedOnce&&selectedDate&&language&&numberOfPeople&&urlEventId){// Don't show loading spinner for automatic checks\ncheckAvailability(false);}},[selectedDate,language,numberOfPeople,hasCheckedOnce]);// Effect to recalculate price when selectedTime, numberOfPeople, or availableTimes change\nuseEffect(()=>{if(selectedTime){updatePrice(selectedTime);}},[selectedTime,numberOfPeople,availableTimes]);// Recalculate price when discountPercent changes\nuseEffect(()=>{if(selectedTime){updatePrice(selectedTime);}},[discountPercent,selectedTime]);// *** Function to increment date by a certain number of days ***\nconst incrementDate=(dateStr,days)=>{const date=new Date(dateStr);date.setDate(date.getDate()+days);return date.toISOString().split(\"T\")[0];};// *** useEffect to load available dates ***\nuseEffect(()=>{if(urlEventId&&!activeRequestsRef.current.size){// Load current month AND next month for smooth navigation\nconst currentMonthStart=new Date;currentMonthStart.setDate(1)// First day of current month\n;const currentStartDate=currentMonthStart.toISOString().split(\"T\")[0];const nextMonthStart=new Date;nextMonthStart.setDate(1);nextMonthStart.setMonth(nextMonthStart.getMonth()+1)// Next month\n;const nextStartDate=nextMonthStart.toISOString().split(\"T\")[0];console.log(\"🚀 Initial load for event:\",urlEventId);console.log(\"📅 Loading current month:\",currentStartDate);console.log(\"📅 Loading next month:\",nextStartDate);// Load both months (2 separate requests)\nfetchAvailableDates(urlEventId,currentStartDate,31);fetchAvailableDates(urlEventId,nextStartDate,31);}},[urlEventId]);// *** New useEffect to find the first available date ***\nuseEffect(()=>{async function findFirstAvailableDate(){if(!urlEventId){console.log(\"No event ID available for finding first date\");return;}// Skip if we already have a selected date that's not today\nif(selectedDate&&selectedDate!==today){console.log(\"Skipping first date search - already have selected date:\",selectedDate);return;}let dateToCheck=today;const maxDays=30// Adjust this value based on how far ahead you want to search\n;for(let i=0;i<maxDays;i++){try{console.log(`Checking availability for date ${dateToCheck} with event ID ${urlEventId}`);const apiUrl=`https://iw-api.istanbulworkshops.com/api/events?eventId=${urlEventId}&date=${dateToCheck}&language=${language}&numPeople=${numberOfPeople}&locale=${toApiLocale(preferredCurrency)}`;console.log(\"Checking availability with URL:\",apiUrl);const responseData=await retryWithBackoff(async()=>{const response=await fetch(apiUrl);if(!response.ok){const error=new Error(`HTTP error! status: ${response.status}`);error.status=response.status;throw error;}return await response.json();},3,1e3,1e4);console.log(`Availability data for ${dateToCheck}:`,responseData);// Check if response is successful and has data\nif(responseData.success&&responseData.data){const workshopData=responseData.data;// Check if slots exist and are available\nif(workshopData.slots&&workshopData.slots.length>0){console.log(`Found available slots for ${dateToCheck}`);setFirstAvailableDate(dateToCheck);// Update workshop data immediately\nsetWorkshopData(prev=>({...prev,[preferredCurrency===\"tr\"?\"try\":\"usd\"]:workshopData}));// Update available times\nsetAvailableTimes(workshopData.slots);break;}else{console.log(`No slots available for ${dateToCheck}, trying next date`);dateToCheck=incrementDate(dateToCheck,1);}}else{console.log(`Invalid response format for ${dateToCheck}, trying next date`);dateToCheck=incrementDate(dateToCheck,1);}}catch(error){console.error(`Error checking availability for ${dateToCheck}:`,error);dateToCheck=incrementDate(dateToCheck,1);}}}// Only run on initial load when we don't have a selected date\nif(urlEventId&&language&&numberOfPeople&&!selectedDate){console.log(\"Starting first available date search with:\",{eventId:urlEventId,language,numberOfPeople});findFirstAvailableDate();}},[urlEventId,language,numberOfPeople,today,preferredCurrency,selectedDate]);// *** Optional: Update selectedDate when firstAvailableDate changes ***\nuseEffect(()=>{if(firstAvailableDate!==today){setSelectedDate(firstAvailableDate);}},[firstAvailableDate]);// Update the useEffect that sets currentWorkshop\nuseEffect(()=>{if(workshopData){const workshop=preferredCurrency===\"tr\"?workshopData.try:workshopData.usd;setCurrentWorkshop(workshop);setCurrencySymbol(preferredCurrency===\"tr\"?\"₺\":\"$\");if(workshop?.slots){// Only update slots if we don't have any or if the date matches\nif(availableTimes.length===0||workshop.requestedDate===selectedDate){setAvailableTimes(workshop.slots);}// Update price if we have a selected time\nif(selectedTime){const selectedSlot=workshop.slots.find(slot=>slot.start_time===selectedTime);if(selectedSlot){updatePrice(selectedTime);}}}}},[workshopData,preferredCurrency]);// Update the findAvailableDate function to also use urlEventId properly\nconst findAvailableDate=async(currentDate,attemptsLeft)=>{if(!urlEventId){console.error(\"No event ID available for finding available date\");return;}setIsCheckingAvailability(true);try{const apiUrl=`https://iw-api.istanbulworkshops.com/api/events?eventId=${urlEventId}&locale=${toApiLocale(preferredCurrency)}&date=${currentDate}`;console.log(\"Checking availability with URL:\",apiUrl);const responseData=await retryWithBackoff(async()=>{const response=await fetch(apiUrl);if(!response.ok){const error=new Error(`HTTP error! status: ${response.status}`);error.status=response.status;throw error;}return await response.json();},3,1e3,1e4);console.log(\"Response data:\",responseData);if(responseData.success){const workshopData=responseData.data;if(workshopData?.slots&&Array.isArray(workshopData.slots)&&workshopData.slots.length>0){console.log(\"Found slots:\",workshopData.slots);setAvailableTimes(workshopData.slots);setSelectedDate(currentDate);setIsAvailabilityChecked(true);setShowSecondPartForm(true);setHasCheckedOnce(true)// Mark that user has checked availability at least once\n;setAvailabilityError(\"\");setCurrentWorkshop(workshopData);setEventName(workshopData.name||\"\");if(currentDate!==selectedDate){setSelectedTime(\"\");}// Log successful availability check\nlogEvent(\"availability_check_success\",{eventId:urlEventId,date:currentDate,slotsFound:workshopData.slots.length,eventName:workshopData.name});}else if(workshopData?.nextAvailableDate){const nextDateUrl=`https://iw-api.istanbulworkshops.com/api/events?eventId=${urlEventId}&locale=${toApiLocale(preferredCurrency)}&date=${workshopData.nextAvailableDate}`;console.log(\"Checking next available date with URL:\",nextDateUrl);const nextDateData=await retryWithBackoff(async()=>{const response=await fetch(nextDateUrl);if(!response.ok){const error=new Error(`HTTP error! status: ${response.status}`);error.status=response.status;throw error;}return await response.json();},3,1e3,1e4);if(nextDateData.success&&nextDateData.data?.slots&&nextDateData.data.slots.length>0){setAvailableTimes(nextDateData.data.slots);setSelectedDate(workshopData.nextAvailableDate);setIsAvailabilityChecked(true);setShowSecondPartForm(true);setHasCheckedOnce(true)// Mark that user has checked availability at least once\n;setAvailabilityError(\"\");setCurrentWorkshop(nextDateData.data);setEventName(nextDateData.data.name||\"\");setSelectedTime(\"\");}else{handleNoAvailability();}}else{handleNoAvailability();}}else{handleNoAvailability();}}catch(error){console.error(\"Error fetching availability:\",error);handleNoAvailability();// Log availability API error\nlogEvent(\"availability_check_error\",{eventId:urlEventId,date:currentDate,error:{message:error.message,stack:error.stack,type:error.name},requestData:{numberOfPeople:numberOfPeople,language:language,preferredCurrency:preferredCurrency},apiUrl:`https://iw-api.istanbulworkshops.com/api/events?eventId=${urlEventId}&locale=${toApiLocale(preferredCurrency)}&date=${currentDate}`,networkOnline:typeof navigator!==\"undefined\"?navigator.onLine:true,fetchFailed:error.name===\"TypeError\"&&error.message.includes(\"fetch\")},\"high\");}finally{setIsCheckingAvailability(false);setIsLoading(false);}};// Update the handleNoAvailability function\nconst handleNoAvailability=()=>{setAvailableTimes([]);setShowSecondPartForm(false);setAvailabilityError(\"No available slots on this date. Please try another date.\")// Add error message\n;// Log no availability\nlogEvent(\"availability_check_no_slots\",{eventId:urlEventId,date:selectedDate,numberOfPeople:numberOfPeople,language:language});};// Available dates functions\nconst fetchAvailableDates=async(eventId,startDate,days=31)=>{if(!eventId)return;// Create a unique key for this request\nconst requestKey=`${eventId}-${startDate||\"initial\"}-${days}`;// Check if this exact request is already in progress\nif(activeRequestsRef.current.has(requestKey)){console.log(\"⏭️ Skipping duplicate request:\",requestKey,\"Active:\",Array.from(activeRequestsRef.current));return;}// Mark this request as active\nactiveRequestsRef.current.add(requestKey);setAvailableDatesLoading(true);try{const params=new URLSearchParams({eventId:eventId,days:days.toString(),timeZone:\"Europe/Istanbul\"});if(startDate){params.append(\"startDate\",startDate);}const apiUrl=`https://iw-api.istanbulworkshops.com/api/event-available-dates?${params.toString()}`;console.log(\"Fetching available dates with URL:\",apiUrl);const response=await retryWithBackoff(async()=>{const res=await fetch(apiUrl);if(!res.ok){throw new Error(`HTTP error! status: ${res.status}`);}return res.json();},3,1e3,1e4);if(response.success&&response.data?.availableDates){const dates=Array.isArray(response.data.availableDates)?response.data.availableDates:[];// Add dates to our set\nsetAvailableDates(prev=>{const newSet=new Set(prev);dates.forEach(date=>newSet.add(date));return newSet;});// Update min/max dates\nif(dates.length>0){const sortedDates=dates.sort();setMinAvailableDate(prev=>!prev||sortedDates[0]<prev?sortedDates[0]:prev);setMaxAvailableDate(prev=>!prev||sortedDates[sortedDates.length-1]>prev?sortedDates[sortedDates.length-1]:prev);}// Simple: Mark only the month we requested as loaded\nconst requestStartDate=new Date(startDate||today);const monthKey=requestStartDate.toISOString().substring(0,7);console.log(\"📅 Marking month as loaded:\",monthKey,\"from request:\",startDate,\"with\",days,\"days\");setLoadedMonths(prev=>new Set([...prev,monthKey]));// Just log pagination info if available - NO auto-fetching\nif(response.data.pagination){const{currentPage,totalPages}=response.data.pagination;console.log(\"📄 Pagination info received:\",{currentPage,totalPages});// NO automatic fetching - only manual when user navigates\n}// Log successful fetch\nlogEvent(\"available_dates_fetched\",{eventId:eventId,datesCount:dates.length,startDate:startDate,days:days});}}catch(error){console.error(\"Error fetching available dates:\",error);// Remove this request from active requests\nactiveRequestsRef.current.delete(requestKey);logEvent(\"available_dates_error\",{eventId:eventId,error:{message:error.message,stack:error.stack,type:error.name},startDate:startDate,days:days,apiUrl:`https://iw-api.istanbulworkshops.com/api/event-available-dates?${new URLSearchParams({eventId:eventId,days:days.toString(),timeZone:\"Europe/Istanbul\",...startDate?{startDate}:{}}).toString()}`,networkOnline:typeof navigator!==\"undefined\"?navigator.onLine:true,fetchFailed:error.name===\"TypeError\"&&error.message.includes(\"fetch\")},\"high\");}finally{// Remove this request from active requests\nactiveRequestsRef.current.delete(requestKey);setAvailableDatesLoading(false);}};// Check if a date is available (align with DatePicker semantics)\nconst isDateAvailable=date=>{if(!availableDates||availableDates.size===0)return true;return availableDates.has(date);};// Load more dates if user selects a date near the edge of loaded data\nconst handleDateSelection=async date=>{console.log(\"🗓️ Date selection started:\",date);setSelectedDate(date);setAvailabilityError(\"\");// Date validity is enforced by the DatePicker (unavailable dates are disabled)\n// Check if we need to load more dates (if user selected date in last/next month)\nconst selectedMonth=date.substring(0,7);const selectedDate=new Date(date);const currentMonth=selectedDate.getMonth();const currentYear=selectedDate.getFullYear();// Load next 3 months if user selected a date in the last 7 days of our loaded range\n// Simple: No prefetching from date selection, let navigation handle it\nconsole.log(\"📅 Date selected in month:\",selectedDate.toISOString().substring(0,7));// Log date selection\nlogEvent(\"date_selected\",{eventId:urlEventId,eventName:eventName,selectedDate:date,numberOfPeople:numberOfPeople,isAvailable:isDateAvailable(date)});};// Handle month navigation - simple approach: fetch each month as needed\nconst handleMonthNavigation=async(year,month)=>{console.log(\"📅 Month navigation:\",{year,month});// Create date string directly to avoid timezone issues\nconst monthKey=`${year}-${String(month+1).padStart(2,\"0\")}`;const startDate=`${year}-${String(month+1).padStart(2,\"0\")}-01`;console.log(\"📅 Checking month:\",monthKey,\"startDate:\",startDate,\"loadedMonths:\",Array.from(loadedMonths));// Load current month if not loaded\nif(!loadedMonths.has(monthKey)){console.log(\"📅 Loading month:\",monthKey,\"from:\",startDate);await fetchAvailableDates(urlEventId,startDate,31);}else{console.log(\"📅 Month already loaded:\",monthKey);}// Also check and load next month for smooth navigation\nconst nextYear=month===11?year+1:year;const nextMonth=month===11?0:month+1;const nextMonthKey=`${nextYear}-${String(nextMonth+1).padStart(2,\"0\")}`;const nextStartDate=`${nextYear}-${String(nextMonth+1).padStart(2,\"0\")}-01`;if(!loadedMonths.has(nextMonthKey)){console.log(\"📅 Preloading next month:\",nextMonthKey,\"from:\",nextStartDate);fetchAvailableDates(urlEventId,nextStartDate,31)// Don't await\n;}else{console.log(\"📅 Next month already loaded:\",nextMonthKey);}};// Update the handleTimeSelection function to be more robust\nconst handleTimeSelection=time=>{if(!time||isCheckingAvailability)return;setSelectedTime(time);const selectedSlotData=availableTimes.find(slot=>slot.start_time===time);if(selectedSlotData){setSelectedSlotAvailable(selectedSlotData.available);updatePrice(time);setShowSecondPartForm(true);// Removed complex Meta Pixel events here - InitiateCheckout will be triggered\n// when user starts filling their details, which is the key conversion point\n// Log time selection\nlogEvent(\"time_slot_selected\",{eventId:urlEventId,date:selectedDate,time:time,available:selectedSlotData.available,price:selectedSlotData.basePrice,numberOfPeople:numberOfPeople});}};// Auto-select the only available time slot (if exactly one)\nuseEffect(()=>{if(!showSecondPartForm)return;if(selectedTime)return;if(!availableTimes||availableTimes.length===0)return;const availableSlots=availableTimes.filter(slot=>parseInt(slot.available,10)>0);if(availableSlots.length===1){const soleSlot=availableSlots[0];handleTimeSelection(soleSlot.start_time);// Log auto-selection for diagnostics\nlogEvent(\"auto_time_slot_selected\",{eventId:urlEventId,date:selectedDate,time:soleSlot.start_time,available:soleSlot.available,numberOfPeople:numberOfPeople});}},[availableTimes,showSecondPartForm,selectedTime]);// Load external CSS and phone validation libraries\nuseEffect(()=>{// Prevent iOS zoom on input focus\nlet viewportMeta=document.querySelector('meta[name=\"viewport\"]');if(!viewportMeta){viewportMeta=document.createElement(\"meta\");viewportMeta.name=\"viewport\";viewportMeta.content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0\";document.head.appendChild(viewportMeta);}else{viewportMeta.setAttribute(\"content\",\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0\");}// Font Awesome CSS\nconst faLink=document.createElement(\"link\");faLink.href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css\";faLink.rel=\"stylesheet\";document.head.appendChild(faLink);// Tailwind CSS\nconst twLink=document.createElement(\"link\");twLink.href=\"https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css\";twLink.rel=\"stylesheet\";document.head.appendChild(twLink);// Datepicker CSS with cache busting\nconst dpLink=document.createElement(\"link\");const version=Math.random()// Generates a random number\n;dpLink.href=`https://crm.istanbulworkshops.com/framerAssets/datepicker.css?v=${version}`;dpLink.rel=\"stylesheet\";document.head.appendChild(dpLink);// Add libphonenumber-js as fallback\nconst libPhoneScript=document.createElement(\"script\");libPhoneScript.src=\"https://unpkg.com/libphonenumber-js@1.12.10/bundle/libphonenumber-js.min.js\";libPhoneScript.async=true;document.head.appendChild(libPhoneScript);return()=>{document.head.removeChild(faLink);document.head.removeChild(twLink);document.head.removeChild(dpLink);document.head.removeChild(libPhoneScript);};},[]);// Function to format time\nconst formatTime=timeString=>{const[hours,minutes]=timeString.split(\":\");const date=new Date;date.setHours(hours,minutes);return new Intl.DateTimeFormat(\"en-US\",{hour:\"numeric\",minute:\"numeric\",hour12:true}).format(date);};// Validation Functions\nconst isValidEmail=React.useCallback(email=>{// Comprehensive regex for email validation\nconst emailRegex=/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?\\d{1,2})\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?\\d{1,2}|[a-z0-9-]*[a-z0-9]:[^\\]]+)\\])/;// Basic validation\nconst basicValidation=emailRegex.test(email);if(!basicValidation)return false;// Split email into local part and domain\nconst[localPart,domain]=email.split(\"@\");// Ensure reasonable lengths\nif(localPart.length<2||domain.length<5){return false;}// Ensure domain has a period and valid TLD\nconst domainParts=domain.split(\".\");if(domainParts.length<2||domainParts.some(part=>part.length<2)){return false;}return true;},[]);// Enhanced phone validation with smart pre-filtering\nconst isValidPhoneNumber=React.useCallback(phoneNumber=>{// Step 1: Immediately handle empty or short inputs without using the library.\nif(!phoneNumber||phoneNumber.length<5){// Most valid numbers are longer than 5 chars\nreturn{isValid:false,errorMessage:\"Phone number is required.\"};}// Step 2: Check if the library is available.\n// @ts-ignore - libphonenumber-js is loaded from CDN\nif(!window.libphonenumber){// Fallback validation if library hasn't loaded yet\nreturn{isValid:/^\\+[1-9]\\d{6,14}$/.test(phoneNumber.replace(/[\\s\\-\\(\\)\\.]/g,\"\")),errorMessage:\"Basic validation: Must start with + and have 7-15 digits\"};}// Step 3: Only now, with a potentially valid string, use the library.\ntry{// @ts-ignore - libphonenumber-js is loaded from CDN\nif(!window.libphonenumber.isValidPhoneNumber(phoneNumber)){return{isValid:false,errorMessage:\"Invalid phone number for this country.\"};}return{isValid:true,errorMessage:\"\"};}catch(error){// The library throws errors for malformed strings. We catch them.\nconsole.warn(\"Phone validation library error:\",error.message);return{isValid:false,errorMessage:\"Invalid phone number format.\"};}},[]);const isValidName=React.useCallback(name=>{const nameRegex=RegExp(\"^[\\\\p{L}][\\\\p{L}\\\\s'-]{1,}$\",\"u\");return nameRegex.test(name.trim());},[]);// Function to track InitiateCheckout once per session\nconst trackInitiateCheckout=()=>{if(!hasInitiatedCheckout&&currentWorkshop){setHasInitiatedCheckout(true);// Track InitiateCheckout across all platforms\nconst checkoutValue=price||parseFloat(currentWorkshop.priceAmount||currentWorkshop.price||0);const checkoutCurrency=currentWorkshop.currency||(preferredCurrency===\"tr\"?\"TRY\":\"USD\");const workshopName=currentWorkshop.name||eventName;// Meta Pixel\ntrackPixelEvent(\"InitiateCheckout\",{content_type:\"product\",content_ids:[urlEventId],content_name:workshopName,value:checkoutValue,currency:checkoutCurrency,num_items:numberOfPeople});// Google Analytics 4\ntrackGoogleEvent(\"begin_checkout\",{currency:checkoutCurrency,value:checkoutValue,items:[{item_id:urlEventId,item_name:workshopName,price:checkoutValue/numberOfPeople,quantity:numberOfPeople,item_category:\"Workshop\"}]});// TikTok Pixel\ntrackTikTokEvent(\"InitiateCheckout\",{content_id:urlEventId,content_name:workshopName,content_type:\"product\",quantity:numberOfPeople,price:checkoutValue,value:checkoutValue,currency:checkoutCurrency});// Yandex Metrica\ntrackYandexGoal(\"begin_checkout\",{event_id:urlEventId,event_name:workshopName,value:checkoutValue,currency:checkoutCurrency,quantity:numberOfPeople});// Also log to your backend\nlogEvent(\"checkout_initiated\",{eventId:urlEventId,eventName:currentWorkshop.name||eventName,date:selectedDate,time:selectedTime,language:language,numberOfPeople:numberOfPeople,price:price});}};// Handlers for input changes\nconst handleNameChange=e=>{setName(e.target.value);if(!nameTouched)setNameTouched(true);trackInitiateCheckout()// Track when user starts filling form\n;};const handleEmailChange=e=>{setEmail(e.target.value);if(!emailTouched)setEmailTouched(true);trackInitiateCheckout()// Track when user starts filling form\n;};const handlePhoneNumberChange=e=>{setPhoneNumber(e.target.value);if(!phoneNumberTouched)setPhoneNumberTouched(true);};// Function to check form validity\nconst isValidForm=()=>{const{isValid}=isValidPhoneNumber(phoneNumber);const isBasicFormValid=isValidEmail(email)&&isValidName(name)&&isValid&&selectedTime!==\"\"&&isAvailabilityChecked;// If referral code is entered, it must be validated and valid\nif(referralCode.trim()){return isBasicFormValid&&referralCodeValid===true;}return isBasicFormValid;};// Function to generate booking reference\nconst generateBookingRef=()=>{// Get the current time in milliseconds\nconst timestampNum=new Date().getTime();// Convert to a string and remove the first few characters\nconst timestampStr=timestampNum.toString().slice(5);// Generate a random number\nconst randomNumber=Math.floor(10+Math.random()*90);// Return the booking reference\nreturn`IW${randomNumber}${timestampStr}`;};// Function to handle form submission\nconst handleSubmit=async event=>{console.log(\"🚨 FORM SUBMISSION TRIGGERED!\",{eventType:event.type,eventTarget:event.target,formData:{selectedDate,selectedTime,eventId:urlEventId},stackTrace:new Error().stack});event.preventDefault();setIsLoading(true);// Ensure the latest price is used\nupdatePrice(selectedTime);// Use the phone number directly since we're not using intlTelInput\nconst finalPhoneNumber=phoneNumber;const bookingData={eventId:urlEventId,selectedDate,selectedTime,numberOfPeople,language,name,email,phoneNumber:finalPhoneNumber,phoneCountry:userCountry,phoneCountryName:\"Unknown\",price,bookingRef,referralCode,discountPercent,// Add currency information\ncurrency:preferredCurrency===\"tr\"?\"TRY\":\"USD\",currencySymbol:preferredCurrency===\"tr\"?\"₺\":\"$\",originalPrice};// Log complete form submission with all data\nlogEvent(\"booking_form_submitted\",{formData:bookingData,formState:{availableSlots:selectedSlotAvailable,isReferralValid:referralCodeValid,validationStatus:{name:isValidName(name),email:isValidEmail(email),phone:isValidPhoneNumber(phoneNumber).isValid},workshopDetails:{eventName:eventName,originalPrice:originalPrice,discountedPrice:price,discountPercent:DEFAULT_DISCOUNT_PERCENT+discountPercent}}},\"high\");console.log(\"Sending booking data:\",bookingData);try{const data=await retryWithBackoff(async()=>{const response=await fetch(\"https://crm.istanbulworkshops.com/framerAssets/handleTest.php\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(bookingData)});if(!response.ok){const error=new Error(`HTTP error! status: ${response.status}`);error.status=response.status;throw error;}return await response.json();},3,2e3,15e3)// Longer delays for booking submission\n;if(data.status===\"success\"){// ========================================================================\n// CRITICAL FIX: Send all tracking events BEFORE changing UI state\n// This prevents React re-render from interrupting the tracking calls\n// ========================================================================\n// STEP 1: Set user data for Advanced Matching (securely hashes PII)\nconst purchaseCurrency=preferredCurrency===\"tr\"?\"TRY\":\"USD\";// Meta Advanced Matching\nsetPixelUserData({em:email,ph:phoneNumber,fn:name});// TikTok Advanced Matching\nsetTikTokUserData({email:email,phone_number:phoneNumber});// STEP 2: Track Purchase events across all platforms (NO PII in parameters)\n// Meta Pixel\ntrackPixelEvent(\"Purchase\",{content_type:\"product\",content_ids:[urlEventId],content_name:eventName,value:price,currency:purchaseCurrency,num_items:numberOfPeople});// Google Analytics 4 & Google Ads\ntrackGoogleEvent(\"purchase\",{transaction_id:bookingRef,value:price,currency:purchaseCurrency,items:[{item_id:urlEventId,item_name:eventName,price:price/numberOfPeople,quantity:numberOfPeople,item_category:\"Workshop\"}]});// TikTok Pixel\ntrackTikTokEvent(\"CompletePayment\",{content_id:urlEventId,content_name:eventName,content_type:\"product\",quantity:numberOfPeople,price:price,value:price,currency:purchaseCurrency});// Yandex Metrica\ntrackYandexGoal(\"purchase\",{order_price:price,currency:purchaseCurrency,booking_ref:bookingRef,products:[{id:urlEventId,name:eventName,price:price/numberOfPeople,quantity:numberOfPeople}]});// Track custom BookingCompleted event for internal analytics (NO PII)\ntrackPixelEvent(\"trackCustom\",{customEventName:\"BookingCompleted\",data:{booking_reference:bookingRef,event_id:urlEventId,discount_applied:discountPercent>0,discount_percent:discountPercent}});// Log successful booking with complete details\nlogEvent(\"booking_success\",{bookingRef:bookingRef,bookingData:bookingData,responseData:data,sessionDuration:Date.now()-(window.sessionStorage.getItem(\"sessionStartTime\")||Date.now())},\"high\");// ========================================================================\n// NOW that all tracking is complete, it's safe to change the UI\n// ========================================================================\nsetIsLoading(false);setBookingSuccess(true);}else{setIsLoading(false);throw new Error(data.message||\"Failed to submit booking.\");}}catch(error){console.error(\"Error submitting booking:\",error);setAvailabilityError(error.message||\"Failed to submit booking.\");setIsLoading(false);// Log booking error with full details\nlogEvent(\"booking_error\",{error:{message:error.message,stack:error.stack,type:error.name},bookingData:bookingData,formState:{name:name,email:email,phoneNumber:phoneNumber,selectedTime:selectedTime,selectedDate:selectedDate,numberOfPeople:numberOfPeople,price:price},apiUrl:\"https://crm.istanbulworkshops.com/framerAssets/handleTest.php\",networkOnline:typeof navigator!==\"undefined\"?navigator.onLine:true,fetchFailed:error.name===\"TypeError\"&&error.message.includes(\"fetch\")},\"high\");}};// Validation for Name\nconst handleNameBlur=()=>{setNameTouched(true);// Log name validation\nif(!isValidName(name)){logEvent(\"form_validation_error\",{eventId:urlEventId,field:\"name\",value:name,error:\"Invalid name format\"});}};// Validation for Email\nconst handleEmailBlur=()=>{setEmailTouched(true);// Log email validation\nif(!isValidEmail(email)){logEvent(\"form_validation_error\",{eventId:urlEventId,field:\"email\",value:email,error:\"Invalid email format\"});}};// Validation for Phone Number\nconst handlePhoneNumberBlur=()=>{setPhoneNumberTouched(true);// Log phone validation\nconst phoneValidation=isValidPhoneNumber(phoneNumber);if(!phoneValidation.isValid){logEvent(\"form_validation_error\",{eventId:urlEventId,field:\"phoneNumber\",value:phoneNumber,error:phoneValidation.errorMessage});}};// Function to generate ICS file content\nconst generateICS=event=>{const formatDate=date=>date.toISOString().replace(/-|:|\\.\\d+/g,\"\");const startDate=new Date(`${event.date}T${event.startTime}`);const endDate=new Date(`${event.date}T${event.endTime}`);const icsContent=[\"BEGIN:VCALENDAR\",\"VERSION:2.0\",\"BEGIN:VEVENT\",`DTSTART:${formatDate(startDate)}`,`DTEND:${formatDate(endDate)}`,`SUMMARY:${event.name} - Istanbul Workshops - ${event.bookingRef}`,`DESCRIPTION:`+`Contact: +90 533 167 62 71 (WhatsApp)\\\\n`+`Instagram: @istanbulworkshops\\\\n`+`Enjoy your experience with Istanbul Workshops!`+`\\\\nBooking Reference: ${event.bookingRef}\\\\n`,`LOCATION:${event.location||\"Istanbul, Turkey\"}`,'ORGANIZER;CN=Istanbul Workshops;DIR=\"https://istanbulworkshops.com\";LANGUAGE=en;SENT-BY=\"mailto:info@istanbulworkshops.com\";TEL=\"+90-533-167-62-71\":mailto:info@istanbulworkshops.com',\"CATEGORIES:Workshop,Istanbul,Travel\",\"URL:https://istanbulworkshops.com/contact\",\"BEGIN:VALARM\",\"PRIORITY:1\",\"TRIGGER:-PT3H\",\"ACTION:DISPLAY\",\"DESCRIPTION:Reminder\",\"END:VALARM\",\"END:VEVENT\",\"END:VCALENDAR\"].join(\"\\r\\n\");return icsContent;};// Function to download ICS file\nconst downloadICS=event=>{const icsContent=generateICS(event);const blob=new Blob([icsContent],{type:\"text/calendar;charset=utf-8\"});const link=document.createElement(\"a\");link.href=URL.createObjectURL(blob);link.download=`Istanbul_Workshops_${event.name.replace(/\\s+/g,\"_\")}_booking.ics`;document.body.appendChild(link);link.click();document.body.removeChild(link);};// Function to format date\nconst formatDate=dateStr=>{const date=new Date(dateStr);return date.toLocaleDateString(\"en-US\",{weekday:\"long\",year:\"numeric\",month:\"long\",day:\"numeric\"});};// Update the updatePrice function\nconst updatePrice=time=>{const selectedSlot=availableTimes.find(slot=>slot.start_time===time);if(selectedSlot){// Get amounts from the slot\nconst baseAmount=parseFloat(selectedSlot.basePriceAmount);const discountedAmount=selectedSlot.discountedPriceAmount;// Calculate original price (before any additional discounts)\nconst baseTotal=baseAmount*numberOfPeople;setOriginalPrice(baseTotal);// Calculate price with default workshop discount\nlet finalPrice=discountedAmount*numberOfPeople;// Apply additional referral discount if valid\nif(discountPercent>0){const eligiblePeople=Math.min(maxUsagePerUser,numberOfPeople);const nonEligiblePeople=numberOfPeople-eligiblePeople;const eligiblePrice=discountedAmount*eligiblePeople*(1-discountPercent/100);const nonEligiblePrice=discountedAmount*nonEligiblePeople;finalPrice=eligiblePrice+nonEligiblePrice;}setPrice(Math.round(finalPrice));}};// Update the checkAvailability function to be more user-friendly\nconst checkAvailability=async(showLoadingSpinner=true)=>{if(isCheckingAvailability)return;// Only show loading spinner for manual checks, not automatic ones\nif(showLoadingSpinner){setIsLoading(true);}setAvailabilityError(\"\");// Log availability check\nlogEvent(\"availability_check_started\",{eventId:urlEventId,date:selectedDate,numberOfPeople:numberOfPeople,language:language});// Keep existing slots visible while checking\nawait findAvailableDate(selectedDate,3);};// Function to handle referral code application\nconst handleApplyReferralCode=async()=>{if(!referralCode.trim()){setReferralCodeError(\"Please enter a referral code.\");setReferralCodeValid(false);return;}if(!isValidEmail(email)){setReferralCodeError(\"Please enter a valid email before applying the referral code.\");setReferralCodeValid(false);return;}setIsReferralCodeLoading(true);setReferralCodeError(\"\");setReferralCodeValid(null);// Log referral code validation attempt\nlogEvent(\"referral_code_validation_started\",{eventId:urlEventId,referralCode:referralCode,email:email});try{const data=await retryWithBackoff(async()=>{const response=await fetch(`https://crm.istanbulworkshops.com/framerAssets/validateReferral.php?code=${encodeURIComponent(referralCode)}&email=${encodeURIComponent(email)}`);if(!response.ok){const error=new Error(`HTTP error! status: ${response.status}`);error.status=response.status;throw error;}return await response.json();},3,1e3,1e4);if(data.isValid){setDiscountPercent(data.discountPercent)// e.g., 75\n;setMaxUsagePerUser(data.maxUsagePerUser)// e.g., 3\n;setReferralCodeValid(true);setReferralCodeError(\"\");// Track DiscountApplied custom event - great for analysis\ntrackPixelEvent(\"trackCustom\",{customEventName:\"DiscountApplied\",data:{event_id:urlEventId,discount_code:referralCode,discount_percent:data.discountPercent}});// Log successful validation\nlogEvent(\"referral_code_valid\",{eventId:urlEventId,referralCode:referralCode,discountPercent:data.discountPercent,maxUsagePerUser:data.maxUsagePerUser});}else{setDiscountPercent(0);setMaxUsagePerUser(0);setReferralCodeValid(false);setReferralCodeError(data.message||\"Invalid referral code.\");// Log failed validation\nlogEvent(\"referral_code_invalid\",{eventId:urlEventId,referralCode:referralCode,error:data.message||\"Invalid referral code.\"});}}catch(error){console.error(\"Error validating referral code:\",error);setDiscountPercent(0);setReferralCodeValid(false);setReferralCodeError(\"Error validating referral code.\");// Log validation error\nlogEvent(\"referral_code_validation_error\",{eventId:urlEventId,referralCode:referralCode,error:{message:error.message,stack:error.stack,type:error.name},apiUrl:`https://crm.istanbulworkshops.com/framerAssets/validateReferral.php?code=${encodeURIComponent(referralCode)}&email=${encodeURIComponent(email)}`,email:email,networkOnline:typeof navigator!==\"undefined\"?navigator.onLine:true,fetchFailed:error.name===\"TypeError\"&&error.message.includes(\"fetch\")});}setIsReferralCodeLoading(false);};// Update the toggleCurrency function\nconst toggleCurrency=async()=>{const newCurrency=preferredCurrency===\"tr\"?\"en\":\"tr\";setIsChangingCurrency(true);// Log currency toggle\nlogEvent(\"currency_toggled\",{eventId:urlEventId,fromCurrency:preferredCurrency===\"tr\"?\"TRY\":\"USD\",toCurrency:newCurrency===\"tr\"?\"TRY\":\"USD\"});try{// Use the current selected date instead of checking availability again\nconst cacheKey=`${urlEventId}-${newCurrency}-${selectedDate}`;const now=Date.now();const cachedData=currencyCache[cacheKey];let responseData;// Check if we have valid cached data\nif(cachedData&&now-cachedData.timestamp<CACHE_DURATION){console.log(\"Using cached data for currency switch:\",cachedData);responseData=cachedData.data;}else{console.log(\"Fetching fresh data for currency switch\");responseData=await retryWithBackoff(async()=>{const response=await fetch(`https://iw-api.istanbulworkshops.com/api/events?eventId=${urlEventId}&locale=${toApiLocale(newCurrency)}&date=${selectedDate}`);if(!response.ok){const error=new Error(`HTTP error! status: ${response.status}`);error.status=response.status;throw error;}return await response.json();},3,1e3,1e4);console.log(\"Received fresh data:\",responseData);// Cache the new data\nsetCurrencyCache(prev=>({...prev,[cacheKey]:{data:responseData,timestamp:now}}));}// Ensure we have valid response data\nif(responseData&&responseData.success&&responseData.data){const workshopData=responseData.data;console.log(\"Processing workshop data:\",workshopData);// Update workshop data with the new currency data\nsetWorkshopData(prev=>({...prev,[newCurrency===\"tr\"?\"try\":\"usd\"]:workshopData}));// Update currency preferences\nsetPreferredCurrency(newCurrency);setCurrencySymbol(newCurrency===\"tr\"?\"₺\":\"$\");// Update current workshop and available times\nsetCurrentWorkshop(workshopData);if(workshopData.slots){setAvailableTimes(workshopData.slots);// Update price if a time is selected\nif(selectedTime){const selectedSlot=workshopData.slots.find(slot=>slot.start_time===selectedTime);if(selectedSlot){updatePrice(selectedTime);}}}}}catch(error){console.error(\"Error updating currency:\",error);// Log currency change error\nlogEvent(\"currency_change_error\",{eventId:urlEventId,fromCurrency:preferredCurrency===\"tr\"?\"TRY\":\"USD\",toCurrency:newCurrency===\"tr\"?\"TRY\":\"USD\",error:{message:error.message,stack:error.stack,type:error.name},apiUrl:`https://iw-api.istanbulworkshops.com/api/events?eventId=${urlEventId}&locale=${toApiLocale(newCurrency)}&date=${selectedDate}`,networkOnline:typeof navigator!==\"undefined\"?navigator.onLine:true,fetchFailed:error.name===\"TypeError\"&&error.message.includes(\"fetch\"),selectedDate:selectedDate});}finally{setIsChangingCurrency(false);}};// Add this helper function\nconst formatPrice=price=>{return new Intl.NumberFormat(\"en-US\").format(price);};// Conditional Rendering for Loading State\nif(isLoading&&!bookingSuccess){return /*#__PURE__*/_jsx(\"div\",{className:\"flex flex-col overflow-auto p-5 bg-blue-900 rounded-xl max-w-md mx-auto text-white text-base w-full min-w-full\",children:/*#__PURE__*/_jsx(\"h2\",{className:\"mb-2.5 text-white text-2xl font-bold\",children:\"Booking is preparing :)\"})});}// Conditional Rendering for Booking Success\nif(bookingSuccess){return /*#__PURE__*/_jsxs(\"div\",{className:\"flex flex-col items-center justify-center overflow-auto p-5 bg-blue-900 rounded-xl max-w-md mx-auto text-white text-base w-full min-w-full\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"bg-blue-900 text-white pb-6 rounded-t-lg w-full\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"text-4xl font-bold mb-2\",children:eventName||\"Event Name\"}),/*#__PURE__*/_jsxs(\"p\",{className:\"text-base\",children:[language,\" • \",formatDate(selectedDate),\" • \",bookingRef]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"bg-green-600 text-white py-3 w-full rounded-tr rounded-tl text-center font-semibold\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-check-circle mr-2\"}),\" Your booking is confirmed!\"]}),/*#__PURE__*/_jsxs(\"div\",{className:\"bg-white rounded-b-lg shadow-lg p-4 w-full text-left\",children:[/*#__PURE__*/_jsxs(\"h3\",{className:\"text-xl font-semibold text-gray-800 mb-4\",children:[\"Thank you for booking with\",\" \",/*#__PURE__*/_jsxs(\"span\",{className:\"text-blue-900\",children:[\" \",\"Istanbul Workshops,\"]})]}),/*#__PURE__*/_jsxs(\"p\",{className:\"text-md text-gray-800 mb-4\",children:[\"We are excited to host you for\",/*#__PURE__*/_jsxs(\"span\",{className:\"font-semibold\",children:[\" \",eventName]}),\".\"]}),/*#__PURE__*/_jsx(\"div\",{className:\"mt-6 border-gray-300 rounded my-4 border-dashed border-2\",children:/*#__PURE__*/_jsxs(\"dl\",{className:\"divide-y-2 divide-gray-200 divide-dashed text-left\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6\",children:[/*#__PURE__*/_jsxs(\"dt\",{className:\"text-sm font-medium text-gray-900\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"far fa-user mr-2\"}),\" Lead Traveler\"]}),/*#__PURE__*/_jsx(\"dd\",{className:\"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0\",children:name||\"Guest\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6\",children:[/*#__PURE__*/_jsxs(\"dt\",{className:\"text-sm font-medium text-gray-900\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"far fa-calendar mr-2\"}),\" \",\"Date\"]}),/*#__PURE__*/_jsx(\"dd\",{className:\"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0\",children:formatDate(selectedDate)})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6\",children:[/*#__PURE__*/_jsxs(\"dt\",{className:\"text-sm font-medium text-gray-900\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"far fa-clock mr-2\"}),\" Start Time\"]}),/*#__PURE__*/_jsx(\"dd\",{className:\"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0\",children:selectedTime})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6\",children:[/*#__PURE__*/_jsxs(\"dt\",{className:\"text-sm font-medium text-gray-900\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"fa-solid fa-users mr-2\"}),\" \",\"Number of Guests\"]}),/*#__PURE__*/_jsx(\"dd\",{className:\"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0\",children:numberOfPeople})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6\",children:[/*#__PURE__*/_jsxs(\"dt\",{className:\"text-sm font-medium text-gray-900\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"far fa-file-alt mr-2\"}),\" \",\"Booking Reference\"]}),/*#__PURE__*/_jsx(\"dd\",{className:\"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0\",children:bookingRef})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6\",children:[/*#__PURE__*/_jsxs(\"dt\",{className:\"text-sm font-medium text-gray-900\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"fa-solid fa-dollar-sign mr-2\"}),\" \",\"Total Price\"]}),/*#__PURE__*/_jsxs(\"dd\",{className:\"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0 text-lg text-blue-900\",children:[currencySymbol,formatPrice(price)]})]})]})}),/*#__PURE__*/_jsxs(\"div\",{className:\"mb-4 w-full\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"bg-blue-900 text-white rounded py-3 px-6 mb-4 hover:bg-blue-700 w-full\",onClick:()=>{const selectedSlot=currentWorkshop.slots.find(slot=>slot.start_time===selectedTime);downloadICS({id:currentWorkshop.id,name:currentWorkshop.name,date:selectedDate,startTime:selectedSlot.start_time,endTime:selectedSlot.end_time,bookingRef:bookingRef,location:eventLocation});},children:\"Add to Calendar\"}),/*#__PURE__*/_jsx(\"a\",{href:\"https://istanbulworkshops.com/contact\",className:\"block w-full\",children:/*#__PURE__*/_jsx(\"button\",{className:\"bg-gray-300 text-gray-800 rounded py-3 px-6 hover:bg-gray-400 w-full\",children:\"Contact Support\"})})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"py-6\",children:[/*#__PURE__*/_jsx(\"dt\",{className:\"text-sm font-medium text-red-500\",children:\"Note\"}),/*#__PURE__*/_jsxs(\"dd\",{className:\"mt-1 text-sm text-gray-700 sm:mt-0\",children:[\"We will contact you as soon as possible with detailed arrival instructions. If you have any immediate questions or concerns, feel free to reach out to us directly on WhatsApp.\",/*#__PURE__*/_jsxs(\"a\",{href:`https://wa.me/905331676271?text=Hello%20there,%20%0A%0AI%20have%20booked%20an%20event%20on%20the%20website.%0AMy%20booking%20reference%20is%20${bookingRef}.%0AI%20have%20booked%20for%20the%20${eventName}%20on%20${formatDate(selectedDate)}%20at%20${selectedTime}.`,className:\"block py-3 px-6 bg-green-600 text-white font-bold rounded hover:bg-green-700 mt-4 w-full\",target:\"_blank\",rel:\"noopener noreferrer\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"fab fa-whatsapp mr-2\"}),\" Chat with us on WhatsApp\"]})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"justify-center text-right\"})]})]});}// Conditional Rendering for Loading Event Data\nif(!currentWorkshop){return /*#__PURE__*/_jsx(\"div\",{className:\"flex flex-col overflow-auto p-5 bg-blue-900 rounded-xl max-w-md mx-auto text-white text-base w-full min-w-full\",children:/*#__PURE__*/_jsx(\"h2\",{className:\"mb-2.5 text-white text-2xl font-bold\",children:\"Loading event details...\"})});}return /*#__PURE__*/_jsx(\"div\",{id:\"booking-form-container\",className:\"w-full relative z-35\",children:/*#__PURE__*/_jsx(\"div\",{ref:containerRef,className:\"flex flex-col items-center justify-center overflow-auto p-5 bg-blue-900 rounded-xl max-w-md mx-auto text-white text-base w-full min-w-full\",style:fontInter,children:/*#__PURE__*/_jsxs(\"form\",{onSubmit:handleSubmit,className:\"w-full flex flex-col items-start gap-2.5 min-w-full\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"mb-2.5 text-white text-2xl font-bold\",children:\"Select participants, date, and language\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"flex flex-col gap-2 w-full sm:flex-row\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"flex-1\",children:/*#__PURE__*/_jsx(\"select\",{value:numberOfPeople,style:{WebkitAppearance:\"none\"},className:\"mt-2 block w-full rounded-full border-0 py-1.5 pl-3 text-gray-900 pr-2 ring-1 ring-inset ring-gray-300 h-12 focus:ring-2 focus:ring-indigo-600\",onChange:e=>{const newValue=parseInt(e.target.value,10);setNumberOfPeople(newValue);setAvailabilityError(\"\")// Clear error when number of people changes\n;// Log participant change\nlogEvent(\"participants_changed\",{eventId:urlEventId,oldValue:numberOfPeople,newValue:newValue});},children:availableTimes.length>0?[...Array(Math.min(parseInt(availableTimes[0].max_people,10)||15,Math.max(1,...availableTimes.map(slot=>parseInt(slot.available,10)||1))))].map((_,num)=>/*#__PURE__*/_jsxs(\"option\",{value:num+1,children:[num+1,\" x participants\"]},num)):/*#__PURE__*/_jsx(\"option\",{value:1,children:\"1 x participants\"})})}),/*#__PURE__*/_jsx(\"div\",{className:\"flex-1\",children:/*#__PURE__*/_jsx(FramerDatePicker,{selectedDate:selectedDate,availableDates:availableDates,minDate:minAvailableDate||today,maxDate:maxAvailableDate,onDateSelect:handleDateSelection,onMonthNavigate:handleMonthNavigation,loading:availableDatesLoading,placeholder:\"Select a date\",primaryColor:\"#4f46e5\"})}),/*#__PURE__*/_jsx(\"div\",{className:\"flex-1\",children:/*#__PURE__*/_jsx(\"select\",{value:language,style:{WebkitAppearance:\"none\"},className:\"mt-2 block w-full rounded-full border-0 py-1.5 pl-3 text-gray-900 pr-2 ring-1 ring-inset ring-gray-300 h-12 focus:ring-2 focus:ring-indigo-600\",onChange:e=>{const newLanguage=e.target.value;setLanguage(newLanguage);setAvailabilityError(\"\")// Clear error when language changes\n;// Log language change\nlogEvent(\"language_changed\",{eventId:urlEventId,oldLanguage:language,newLanguage:newLanguage});},children:currentWorkshop?.languages?.map(lang=>/*#__PURE__*/_jsx(\"option\",{value:lang,children:lang},lang))||/*#__PURE__*/_jsx(\"option\",{value:\"English\",children:\"English\"})})})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:checkAvailability,className:\"mt-2.5 w-full h-12 bg-blue-600 text-white border-none rounded-full cursor-pointer flex justify-center items-center\",children:isLoading?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-spinner fa-spin mr-2\"}),\" \",\"Checking...\"]}):\"Check Availability\"}),availabilityError&&/*#__PURE__*/_jsx(\"div\",{className:\"mt-4 text-left w-full\",children:/*#__PURE__*/_jsxs(\"div\",{className:`p-4 rounded-lg ${availabilityError.includes(\"not available\")?\"bg-red-100 border border-red-300\":\"bg-yellow-100 border border-yellow-300\"}`,children:[/*#__PURE__*/_jsx(\"h3\",{className:`text-lg font-semibold ${availabilityError.includes(\"not available\")?\"text-red-800\":\"text-yellow-800\"}`,children:availabilityError}),availabilityError.includes(\"not available\")&&availableDates.size>0&&/*#__PURE__*/_jsx(\"div\",{className:\"mt-2 text-sm text-red-700\",children:\"Please use the date picker to select an available date.\"})]})}),showSecondPartForm&&availableTimes.filter(slot=>parseInt(slot.available,10)>0).length===0?/*#__PURE__*/_jsx(\"div\",{className:\"mt-5 bg-white rounded-xl text-black p-5 w-full\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"text-center\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-calendar-times text-4xl text-red-500 mb-4\"}),/*#__PURE__*/_jsx(\"h3\",{className:\"text-xl font-bold mb-2\",children:\"No Available Slots\"}),/*#__PURE__*/_jsx(\"p\",{className:\"text-gray-600 mb-4\",children:\"There are no available slots for this date. Please try selecting a different date.\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>{setShowSecondPartForm(false);setSelectedTime(\"\");setAvailabilityError(\"\");},className:\"bg-blue-600 text-white px-6 py-2 rounded-full hover:bg-blue-700 transition-colors\",children:\"Choose Another Date\"})]})}):showSecondPartForm&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mt-5 bg-white rounded-xl text-black p-5 w-full\",children:[/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsxs(\"h3\",{className:\"text-xl font-bold\",children:[\" \",eventName,\" \"]})}),/*#__PURE__*/_jsx(\"div\",{className:\"h-0.5 w-full bg-gray-100 my-5\"}),/*#__PURE__*/_jsxs(\"label\",{className:\"font-bold\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"fa-regular fa-clock\"}),\" \",\"Select a starting time\"]}),/*#__PURE__*/_jsxs(\"div\",{className:\"py-2\",children:[\" \",selectedDate&&/*#__PURE__*/_jsxs(\"p\",{children:[\" \",formatDate(selectedDate)]}),\" \"]}),/*#__PURE__*/_jsx(\"div\",{className:\"flex flex-row flex-wrap justify-start gap-2.5\",children:availableTimes.filter(slot=>parseInt(slot.available,10)>0).sort((a,b)=>a.start_time.localeCompare(b.start_time)).map(slot=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:`inline-flex items-center px-4 py-2 border border-gray-300 rounded-lg text-base cursor-pointer ${selectedTime===slot.start_time?\"bg-blue-900 text-white border-blue-900\":\"bg-white text-blue-900\"}`,onClick:()=>handleTimeSelection(slot.start_time),children:formatTime(slot.start_time)},slot.start_time))}),selectedTime&&parseInt(selectedSlotAvailable,10)>0&&/*#__PURE__*/_jsx(\"p\",{className:\"mt-2 text-lg\",children:/*#__PURE__*/_jsxs(\"span\",{className:\"inline-flex items-center gap-x-1.5 rounded-lg bg-red-100 px-2 py-1 text-xs font-medium text-red-700\",children:[\"Only\",\" \",/*#__PURE__*/_jsx(\"strong\",{children:selectedSlotAvailable}),\" \",\"slots left\"]})}),/*#__PURE__*/_jsx(\"div\",{className:\"font-medium text-base pt-2\",children:\"Name\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"relative mt-2 rounded-md shadow-sm\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"text\",value:name,onChange:handleNameChange,onBlur:handleNameBlur,className:`block w-full rounded-md py-2 px-3 pr-10 ${nameTouched&&!isValidName(name)?\"text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-red-500\":\"ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600\"} sm:text-sm sm:leading-6`,placeholder:\"Full Name\",\"aria-invalid\":nameTouched&&!isValidName(name)?\"true\":\"false\"}),nameTouched&&isValidName(name)&&/*#__PURE__*/_jsx(\"div\",{className:\"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3\",children:/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-check-circle text-green-500\"})}),nameTouched&&!isValidName(name)&&/*#__PURE__*/_jsx(\"div\",{className:\"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3\",children:/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-exclamation-circle text-red-500\"})})]}),nameTouched&&!isValidName(name)&&/*#__PURE__*/_jsx(\"p\",{className:\"mt-2 text-sm text-red-600\",id:\"name-error\",children:\"Name must be at least 2 characters and may include spaces, hyphens, and apostrophes.\"}),/*#__PURE__*/_jsx(\"div\",{className:\"font-medium text-base pt-2\",children:\"Email\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"relative mt-2 rounded-md shadow-sm\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"email\",value:email,onChange:handleEmailChange,onBlur:handleEmailBlur,className:`block w-full rounded-md py-2 px-3 pr-10 ${emailTouched&&!isValidEmail(email)?\"text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-red-500\":\"ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600\"} sm:text-sm sm:leading-6`,placeholder:\"you@example.com\",\"aria-invalid\":emailTouched&&!isValidEmail(email)?\"true\":\"false\"}),emailTouched&&isValidEmail(email)&&/*#__PURE__*/_jsx(\"div\",{className:\"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3\",children:/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-check-circle text-green-500\"})}),emailTouched&&!isValidEmail(email)&&/*#__PURE__*/_jsx(\"div\",{className:\"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3\",children:/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-exclamation-circle text-red-500\"})})]}),emailTouched&&!isValidEmail(email)&&/*#__PURE__*/_jsx(\"p\",{className:\"mt-2 text-sm text-red-600\",id:\"email-error\",children:\"Not a valid email address.\"}),/*#__PURE__*/_jsx(\"div\",{className:\"font-medium text-base pt-2\",children:\"Phone Number\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"relative mt-2 rounded-md shadow-sm\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"tel\",value:phoneNumber,onChange:handlePhoneNumberChange,onBlur:handlePhoneNumberBlur,className:`block w-full rounded-md py-2 px-3 pr-10 ${phoneNumberTouched&&!isValidPhoneNumber(phoneNumber).isValid?\"text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-red-500\":\"ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600\"} sm:text-sm sm:leading-6`,placeholder:\"e.g., +901234567890\",\"aria-invalid\":phoneNumberTouched&&!isValidPhoneNumber(phoneNumber).isValid?\"true\":\"false\"}),phoneNumberTouched&&isValidPhoneNumber(phoneNumber).isValid&&/*#__PURE__*/_jsx(\"div\",{className:\"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3\",children:/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-check-circle text-green-500\"})}),phoneNumberTouched&&!isValidPhoneNumber(phoneNumber).isValid&&/*#__PURE__*/_jsx(\"div\",{className:\"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3\",children:/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-exclamation-circle text-red-500\"})})]}),phoneNumberTouched&&!isValidPhoneNumber(phoneNumber).isValid&&/*#__PURE__*/_jsx(\"p\",{className:\"mt-2 text-sm text-red-600\",id:\"phone-number-error\",children:isValidPhoneNumber(phoneNumber).errorMessage}),!phoneNumberTouched&&/*#__PURE__*/_jsxs(\"p\",{className:\"mt-2 text-xs text-gray-500\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-info-circle mr-1\"}),\"Enter your phone number with country code (e.g., +1 555 123 4567)\"]}),/*#__PURE__*/_jsxs(\"div\",{className:\"flex-1 mt-2.5 w-full\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"font-medium text-base pt-2\",children:\"Referral Code (optional)\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mt-2 flex\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"text\",value:referralCode,onChange:e=>{setReferralCode(e.target.value);setReferralCodeValid(null)// Reset validation status\n;setReferralCodeError(\"\");setDiscountPercent(0);},className:\"block w-full rounded-l-full border-0 py-1.5 pl-3 text-gray-900 ring-1 ring-inset ring-gray-300 h-12 focus:ring-2 focus:ring-indigo-600\",placeholder:\"Enter your referral code\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleApplyReferralCode,className:`rounded-r-full px-4 py-1.5 h-12 inline-flex items-center justify-center whitespace-nowrap ${referralCode.trim()&&isValidEmail(email)?\"bg-blue-600 text-white\":\"bg-gray-200 text-gray-600 cursor-not-allowed\"}`,disabled:!referralCode.trim()||!isValidEmail(email),children:isReferralCodeLoading?/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-spinner fa-spin\"}):\"Apply Code\"})]}),referralCodeError&&/*#__PURE__*/_jsx(\"p\",{className:\"mt-2 text-sm text-red-600\",children:referralCodeError}),referralCodeValid&&/*#__PURE__*/_jsxs(\"div\",{className:\"mt-2 text-sm text-green-600\",children:[/*#__PURE__*/_jsx(\"p\",{children:\"Referral code applied!\"}),/*#__PURE__*/_jsxs(\"p\",{children:[\"Enjoy an extra\",\" \",discountPercent,'% off with the \"',referralCode,'\" coupon.']})]}),maxUsagePerUser>0&&numberOfPeople>maxUsagePerUser&&/*#__PURE__*/_jsxs(\"div\",{className:\"mt-2 p-3 bg-yellow-100 text-yellow-700 rounded\",children:[\"The discount is applied to only \",maxUsagePerUser,\" \",\"participant\",maxUsagePerUser>1?\"s\":\"\",\".\"]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"bg-gray-100 rounded-lg p-5 mt-3.5\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"flex justify-between items-center mb-2\",children:/*#__PURE__*/_jsx(\"div\",{className:\"text-xs text-gray-500\",children:\"Total price\"})}),/*#__PURE__*/_jsxs(\"div\",{className:\"flex justify-between items-center mb-2\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"text-3xl font-bold text-red-600\",children:isChangingCurrency?/*#__PURE__*/_jsx(\"div\",{className:\"animate-pulse bg-gray-200 h-8 w-24 rounded\"}):/*#__PURE__*/_jsxs(_Fragment,{children:[currencySymbol,formatPrice(price)]})}),/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:toggleCurrency,disabled:isChangingCurrency,className:`flex items-center gap-1.5 text-gray-600 hover:text-gray-800 transition-colors text-sm bg-white px-3 py-1.5 rounded-full border border-gray-200 shadow-sm ${isChangingCurrency?\"opacity-50 cursor-not-allowed\":\"\"}`,children:[/*#__PURE__*/_jsx(\"span\",{children:preferredCurrency===\"tr\"?\"₺ TRY\":\"$ USD\"}),isChangingCurrency?/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-spinner fa-spin text-sm\"}):/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 9l4-4 4 4m0 6l-4 4-4-4\"})})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"text-sm text-gray-500\",children:[/*#__PURE__*/_jsxs(\"span\",{className:\"line-through\",children:[currencySymbol,formatPrice(originalPrice)]}),\" \",\"-\",\" \",DEFAULT_DISCOUNT_PERCENT+discountPercent,\"%\",\" \"]}),/*#__PURE__*/_jsx(\"div\",{className:\"text-xs text-gray-500\",children:\"All taxes and fees included\"})]})]}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",className:`mt-5 w-full h-12 rounded-full text-white ${isValidForm()?\"bg-blue-600 cursor-pointer\":\"bg-gray-200 text-gray-600 cursor-not-allowed\"}`,disabled:!isValidForm(),onClick:event=>{scrollToTop();handleSubmit(event);},children:\"Reserve Now Pay later\"})]})]})})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Booking\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Booking_Prod.map","/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState,useCallback,useMemo,useRef,useLayoutEffect}from\"react\";import{EVENT_MAPPING}from\"https://framer.com/m/Mapping-nsDp.js\";// Pre-render loading skeleton\nconst LoadingSkeleton=()=>/*#__PURE__*/_jsxs(\"div\",{className:\"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4 flex items-center justify-between animate-pulse\",// Account for iOS safe area while loading\n    style:{paddingBottom:\"calc(env(safe-area-inset-bottom) + 16px)\",// Older Safari fallback\n    // @ts-ignore\n    paddingBottomFallback:\"calc(constant(safe-area-inset-bottom) + 16px)\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"space-y-2\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"h-4 w-16 bg-gray-200 rounded\"}),/*#__PURE__*/_jsx(\"div\",{className:\"h-6 w-24 bg-gray-200 rounded\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"h-12 w-40 bg-gray-200 rounded-lg\"})]});// Pre-render currency toggle icon\nconst CurrencyToggleIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",className:\"ml-1\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 9l4-4 4 4m0 6l-4 4-4-4\"})});const scrollToBookingForm=()=>{const bookingForm=document.getElementById(\"booking-form-container\");if(bookingForm){bookingForm.scrollIntoView({behavior:\"smooth\",block:\"start\"});}};export default function MobileReservationBar(props){const[workshopData,setWorkshopData]=useState({usd:null,try:null});const[isLoading,setIsLoading]=useState(true);const[preferredCurrency,setPreferredCurrency]=useState(\"\");const[eventId,setEventId]=useState(null);// ---- Safari/iOS safe-area + dynamic toolbar helpers ----\nconst barRef=useRef(null);const[barSpacerHeight,setBarSpacerHeight]=useState(0);// Measure the bar height (includes env(safe-area-inset-bottom)) and set spacer\nconst measureBar=useCallback(()=>{if(barRef.current){const h=barRef.current.clientHeight;setBarSpacerHeight(h);}},[]);useLayoutEffect(()=>{measureBar();// Re-measure on viewport changes common to iOS Safari\nwindow.addEventListener(\"resize\",measureBar);window.addEventListener(\"orientationchange\",measureBar);// Some iOS versions fire visualViewport events when the URL bar hides/shows\nif(window.visualViewport){window.visualViewport.addEventListener(\"resize\",measureBar);}return()=>{window.removeEventListener(\"resize\",measureBar);window.removeEventListener(\"orientationchange\",measureBar);if(window.visualViewport){window.visualViewport.removeEventListener(\"resize\",measureBar);}};},[measureBar]);// --------------------------------------------------------\n// Initialize locale and event ID on mount\nuseEffect(()=>{if(typeof window!==\"undefined\"){// Set locale -> preferred currency\nconst locale=navigator.language;setPreferredCurrency(locale.startsWith(\"tr\")?\"tr\":\"en\");// Get event ID from URL\nconst url=window.location.href.toLowerCase();let foundEventId=props.eventId||\"1\";for(const[key,value]of Object.entries(EVENT_MAPPING)){if(url.includes(key)){foundEventId=value;break;}}setEventId(foundEventId);}},[props.eventId]);// Memoize the fetch function\nconst fetchWorkshopData=useCallback(async()=>{if(!eventId)return;try{const today=new Date().toISOString().split(\"T\")[0];const apiBase=\"https://iw-api.istanbulworkshops.com/api/events\";const[tryResponse,usdResponse]=await Promise.all([fetch(`${apiBase}?eventId=${eventId}&locale=tr-TR`),fetch(`${apiBase}?eventId=${eventId}&locale=en-US`)]);const[tryData,usdData]=await Promise.all([tryResponse.json(),usdResponse.json()]);setWorkshopData({try:tryData?.data||null,usd:usdData?.data||null});}catch(error){console.error(\"Error fetching workshop data:\",error);}finally{setIsLoading(false);// Re-measure after content loads (fonts/metrics may change size)\nrequestAnimationFrame(measureBar);}},[eventId,measureBar]);// Only fetch when we have an eventId\nuseEffect(()=>{if(eventId){fetchWorkshopData();}},[fetchWorkshopData,eventId]);// Memoize toggle function\nconst toggleCurrency=useCallback(()=>{setPreferredCurrency(prev=>prev===\"tr\"?\"en\":\"tr\");// Re-measure after currency toggle as numbers/labels may change width/height\nrequestAnimationFrame(measureBar);},[measureBar]);// Memoize current workshop data\nconst workshop=useMemo(()=>preferredCurrency===\"tr\"?workshopData.try:workshopData.usd,[preferredCurrency,workshopData]);if(isLoading)return /*#__PURE__*/_jsx(LoadingSkeleton,{});if(!workshop)return null;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{height:barSpacerHeight?`${barSpacerHeight}px`:0}}),/*#__PURE__*/_jsxs(\"div\",{ref:barRef,className:\"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4 flex items-center justify-between transform\",// Safari/iOS fix: respect the home-indicator safe area and dynamic toolbar\nstyle:{// Add safe area to the bottom padding\npaddingBottom:\"calc(env(safe-area-inset-bottom) + 16px)\",// Older Safari fallback (pre-13)\n// @ts-ignore\npaddingBottomFallback:\"calc(constant(safe-area-inset-bottom) + 16px)\",// Promote to its own layer; helps with scroll/UI bar animations\nwillChange:\"transform\",WebkitTransform:\"translateZ(0)\",transform:\"translateZ(0)\",// Prevent overscroll artifacts on iOS\nWebkitBackfaceVisibility:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"flex flex-col\",children:[/*#__PURE__*/_jsxs(\"button\",{onClick:toggleCurrency,className:\"text-sm text-gray-500 flex items-center\",children:[\"From\",\" \",/*#__PURE__*/_jsx(\"span\",{className:\"line-through\",children:workshop.price}),/*#__PURE__*/_jsx(\"span\",{className:\"ml-1 text-gray-400\",children:preferredCurrency===\"tr\"?\"TRY\":\"USD\"}),/*#__PURE__*/_jsx(CurrencyToggleIcon,{})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"flex items-baseline\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"text-3xl font-bold text-red-500\",children:workshop.discountedPrice}),/*#__PURE__*/_jsx(\"span\",{className:\"text-sm text-gray-700 ml-1\",children:\"per person\"})]})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>{scrollToBookingForm();props.onCheckAvailability?.();},className:\"bg-red-500 text-white text-lg px-6 py-3 rounded-lg font-semibold hover:bg-red-600 transition-colors\",style:{// Prevent edge-to-edge overlap with rounded corners near home indicator\nWebkitTransform:\"translateZ(0)\",transform:\"translateZ(0)\"},children:\"Check Availability\"})]})]});}// Add property controls for Framer\naddPropertyControls(MobileReservationBar,{eventId:{type:ControlType.String,title:\"Event ID\",defaultValue:\"1\"},onCheckAvailability:{type:ControlType.EventHandler}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MobileReservationBar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MobileCheckAvailability.map"],"mappings":"qfAE4H,SAAwB,GAAiB,CAAC,eAAa,iBAAe,UAAQ,UAAQ,eAAa,kBAAgB,UAAQ,GAAM,cAAY,gBAAgB,eAAa,WAAW,CACjT,GAAK,CAAC,EAAO,GAAWmB,EAAS,GAAM,CAAM,CAAC,EAAa,IAAiBA,EAAS,IAAI,KAAK,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAM,CAC1I,MAAc,CAAC,IAAM,MAAgB,CAA+B,IAAM,EAAxB,EAAO,YAA+B,IAAI,EAAY,EAAO,EAA+D,OAA5D,GAAa,CAAC,EAAO,iBAAiB,SAAS,EAAY,KAAW,EAAO,oBAAoB,SAAS,EAAY,EAAG,EAAE,CAAC,CAC9O,GAAK,CAAC,EAAiB,IAAqBA,EAAS,CAAC,IAAI,EAA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