{"version":3,"file":"BookingForm.LjMVT9T_.mjs","names":["useState","useRef","useCallback","useMemo","_Fragment","startTransition"],"sources":["https:/framerusercontent.com/modules/3avi12HXccAA6Kv95qUl/OOBhKJctgBVfGsx5Bw8M/BookingForm.js"],"sourcesContent":["// Beautiful booking form for hero section with floating labels, Airbnb style\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useRef,useEffect,useCallback,startTransition,useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function MirrorBookingForm(props){const{backgroundColor,textColor,primaryColor,borderColor,shadowColor,font,labelFont,buttonFont,forceMobileMode,propertyId,bannerColor,bannerTextColor,panelAbove,compact}=props;const[checkIn,setCheckIn]=useState(\"\");const[checkOut,setCheckOut]=useState(\"\");const[showCalendar,setShowCalendar]=useState(false);const[calendarMode,setCalendarMode]=useState(\"checkin\");const[currentMonth,setCurrentMonth]=useState(new Date);const[hoveredDate,setHoveredDate]=useState(null);const[isAutoMobile,setIsAutoMobile]=useState(false);const[dateError,setDateError]=useState(\"\");const[hasInteracted,setHasInteracted]=useState(false);const calendarRef=useRef(null);const checkInRef=useRef(null);const checkOutRef=useRef(null);const overlayRef=useRef(null);const mainContainerRef=useRef(null);const today=new Date;today.setHours(0,0,0,0);const checkInDate=checkIn?(()=>{const[year,month,day]=checkIn.split(\"-\").map(Number);return new Date(year,month-1,day);})():null;const checkOutDate=checkOut?(()=>{const[year,month,day]=checkOut.split(\"-\").map(Number);return new Date(year,month-1,day);})():null;const isIn2027ExclusionPeriod=useCallback(()=>{if(!checkInDate)return false;const year=checkInDate.getFullYear();if(year!==2027)return false;const exclusionStart=new Date(2027,4,28);const laborDay2027=new Date(2027,8,6);return checkInDate>=exclusionStart&&checkInDate<=laborDay2027;},[checkInDate]);const isAfterPromotionEnd=useCallback(()=>{if(!checkInDate)return false;const month=checkInDate.getMonth();const day=checkInDate.getDate();const isWithinPeriod2=month>4&&month<8||month===4&&day>=13||month===8&&day<=14;return!isWithinPeriod2;},[checkInDate]);const currentSeasonData=useMemo(()=>{if(isIn2027ExclusionPeriod()){return{dateRange:\"No discounts available for selected dates\",discounts:[]};}if(isAfterPromotionEnd()){return{dateRange:\"September 14 through May 24\",discounts:[{nights:[2,2],text:\"2 Nights — Save 10%\"},{nights:[3,3],text:\"3 Nights — Save 15%\"},{nights:[4,6],text:\"4–6 Nights — Save 20%\"},{nights:[7,29],text:\"7–29 Nights — Save 25%\"}]};}return{dateRange:\"(Applies to stays May 13 through September 14)\",discounts:[{nights:[2,2],text:\"2 Nights — Save 5%\"},{nights:[3,3],text:\"3 Nights — Save 10%\"},{nights:[4,6],text:\"4–6 Nights — Save 15%\"},{nights:[7,29],text:\"7–29 Nights — Save 20%\"}]};},[isAfterPromotionEnd,isIn2027ExclusionPeriod]);const nights=checkInDate&&checkOutDate?Math.ceil((checkOutDate.getTime()-checkInDate.getTime())/(1e3*60*60*24)):0;useEffect(()=>{const checkMobile=()=>{if(typeof window!==\"undefined\"){startTransition(()=>{setIsAutoMobile(window.innerWidth<768);});}};checkMobile();if(typeof window!==\"undefined\"){window.addEventListener(\"resize\",checkMobile);return()=>window.removeEventListener(\"resize\",checkMobile);}},[]);const isMobile=forceMobileMode||isAutoMobile;const isCompactMobile=isMobile&&compact;const shouldAttachDiscountPanel=!isMobile&&showCalendar;const panelIsAbove=panelAbove&&shouldAttachDiscountPanel;const markInteraction=useCallback(()=>{if(hasInteracted)return;startTransition(()=>setHasInteracted(true));},[hasInteracted]);useEffect(()=>{function handleClickOutside(event){if(mainContainerRef.current&&!mainContainerRef.current.contains(event.target)&&(!calendarRef.current||!calendarRef.current.contains(event.target))){startTransition(()=>{setShowCalendar(false);setCheckIn(\"\");setCheckOut(\"\");setDateError(\"\");});}}if(typeof document!==\"undefined\"){document.addEventListener(\"mousedown\",handleClickOutside);return()=>document.removeEventListener(\"mousedown\",handleClickOutside);}},[]);const formatDate=dateStr=>{if(!dateStr)return\"\";const[year,month,day]=dateStr.split(\"-\").map(Number);const date=new Date(year,month-1,day);return date.toLocaleDateString(\"en-US\",{month:\"short\",day:\"numeric\"});};const getDaysInMonth=date=>{const year=date.getFullYear();const month=date.getMonth();const firstDay=new Date(year,month,1);const lastDay=new Date(year,month+1,0);const daysInMonth=lastDay.getDate();const startingDayOfWeek=firstDay.getDay();const days=[];for(let i=0;i<startingDayOfWeek;i++){days.push(null);}for(let day=1;day<=daysInMonth;day++){days.push(new Date(year,month,day));}return days;};const isDateInRange=date=>{if(!checkInDate||!checkOutDate){if(checkInDate&&hoveredDate&&calendarMode===\"checkout\"){return date>=checkInDate&&date<=hoveredDate;}return false;}return date>=checkInDate&&date<=checkOutDate;};const isDateRangeStart=date=>{return checkInDate&&date.getTime()===checkInDate.getTime();};const isDateRangeEnd=date=>{if(checkOutDate&&date.getTime()===checkOutDate.getTime())return true;if(calendarMode===\"checkout\"&&hoveredDate&&checkInDate&&date.getTime()===hoveredDate.getTime())return true;return false;};const handleDateClick=date=>{const year=date.getFullYear();const month=String(date.getMonth()+1).padStart(2,\"0\");const day=String(date.getDate()).padStart(2,\"0\");const dateStr=`${year}-${month}-${day}`;if(calendarMode===\"checkin\"){startTransition(()=>{setCheckIn(dateStr);setCalendarMode(\"checkout\");setDateError(\"\");if(checkOut){const checkOutDateObj=new Date(checkOut);if(date>=checkOutDateObj){setCheckOut(\"\");}}});}else{if(checkInDate&&date<=checkInDate){startTransition(()=>{setDateError(\"Check-out date must be after check-in date\");setCheckIn(dateStr);setCheckOut(\"\");setCalendarMode(\"checkout\");});}else{startTransition(()=>{setCheckOut(dateStr);setShowCalendar(false);setDateError(\"\");});}}};const handleSearch=()=>{if(checkIn&&checkOut){const checkInDateObj=new Date(checkIn);const checkOutDateObj=new Date(checkOut);if(checkOutDateObj<=checkInDateObj){startTransition(()=>{setDateError(\"Check-out date must be after check-in date\");});return;}startTransition(()=>setDateError(\"\"));if(typeof window!==\"undefined\"){const bookingUrl=`https://hotels.cloudbeds.com/en/reservation/${propertyId}/?currency=usd&checkin=${checkIn}&checkout=${checkOut}`;window.open(bookingUrl,\"_blank\");}}else{startTransition(()=>{setDateError(\"Please select both check-in and check-out dates\");});}};const monthNames=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];const dayNames=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"];const qualifiedDiscount=currentSeasonData.discounts.find(discount=>nights>=discount.nights[0]&&nights<=discount.nights[1]);const qualifiedDiscountPercent=qualifiedDiscount?.text.match(/\\d+%/)?.[0]||\"\";const renderDiscountPanel=()=>/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":!showCalendar,style:{maxHeight:showCalendar?\"420px\":\"0px\",opacity:showCalendar?1:0,transform:showCalendar?\"translateY(0px)\":\"translateY(-6px)\",overflow:\"hidden\",transition:\"max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:bannerColor,borderRadius:panelIsAbove?`${isMobile?props.borderRadius*.75:props.borderRadius}px ${isMobile?props.borderRadius*.75:props.borderRadius}px 0 0`:`0 0 ${isMobile?props.borderRadius*.75:props.borderRadius}px ${isMobile?props.borderRadius*.75:props.borderRadius}px`,padding:isMobile?\"20px 16px\":\"24px 20px\",color:bannerTextColor,textAlign:\"center\",boxShadow:`0 8px 32px ${shadowColor}`,border:`1px solid ${borderColor}`,borderTop:panelIsAbove?`1px solid ${borderColor}`:\"none\",borderBottom:panelIsAbove?\"none\":`1px solid ${borderColor}`,marginTop:panelIsAbove?\"0\":\"-1px\",marginBottom:panelIsAbove?\"-1px\":\"0\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:isMobile?\"24px\":\"28px\",fontWeight:\"700\",marginBottom:\"4px\",lineHeight:\"1.1\",...font},children:\"Stay Longer. Save More.\"}),/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",color:bannerTextColor,opacity:.92,marginBottom:\"8px\",...labelFont,fontSize:isMobile?\"12px\":\"14px\",lineHeight:\"1.2\"},children:currentSeasonData.dateRange}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"1fr 1fr\",gap:\"0\",maxWidth:\"900px\",margin:\"0 auto\",fontSize:isMobile?\"15px\":\"17px\",marginBottom:nights>0?\"16px\":\"0\",...font},children:currentSeasonData.discounts.map((discount,index)=>{const isHighlighted=nights>=discount.nights[0]&&nights<=discount.nights[1];return /*#__PURE__*/_jsx(\"div\",{style:{fontWeight:\"500\",padding:\"2px 16px\",backgroundColor:isHighlighted?\"rgba(255, 255, 255, 0.2)\":\"transparent\",borderRadius:\"0\",transition:\"all 0.2s ease\"},children:discount.text},index);})}),nights>0&&qualifiedDiscountPercent?/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:\"rgba(255, 255, 255, 0.15)\",borderRadius:\"12px\",padding:isMobile?\"14px 16px\":\"16px 20px\",fontSize:isMobile?\"16px\":\"18px\",fontWeight:\"600\",textAlign:\"center\",lineHeight:\"1.2\",...font},children:`🎉 Your ${nights} night stay qualifies for ${qualifiedDiscountPercent} off!`}):null]})});const renderMobileCalendarDiscountContent=()=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 2px 0\",color:bannerTextColor,...font,fontSize:\"16px\",lineHeight:\"1.1\"},children:\"Stay Longer. Save More.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:bannerTextColor,opacity:.9,...labelFont,fontSize:\"11.5px\",lineHeight:\"1.2\"},children:currentSeasonData.dateRange})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"1fr 1fr\",gap:\"0\",...font,fontSize:\"12px\",lineHeight:\"1.2\"},children:currentSeasonData.discounts.map((discount,index)=>{const isHighlighted=nights>=discount.nights[0]&&nights<=discount.nights[1];return /*#__PURE__*/_jsx(\"div\",{style:{fontWeight:\"500\",padding:\"2px 8px\",backgroundColor:isHighlighted?\"rgba(255, 255, 255, 0.2)\":\"transparent\",borderRadius:\"0\",transition:\"all 0.2s ease\",color:bannerTextColor},children:discount.text},index);})}),nights>0&&qualifiedDiscountPercent?/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:\"rgba(255, 255, 255, 0.15)\",borderRadius:\"12px\",padding:\"8px 10px\",fontWeight:\"600\",textAlign:\"center\",color:bannerTextColor,...font,fontSize:\"12px\",lineHeight:\"1.15\"},children:`🎉 Your ${nights} night stay qualifies for ${qualifiedDiscountPercent} off!`}):/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",color:bannerTextColor,opacity:.95,...font,fontSize:\"12px\",lineHeight:\"1.2\"},children:\"Select your dates to see your savings\"})]});return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:\"1\",width:\"100%\",maxWidth:isMobile?\"100%\":\"800px\",margin:\"0 auto\"},children:[!isMobile&&panelAbove&&renderDiscountPanel(),/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:isMobile?\"#FFFFFF\":backgroundColor,borderRadius:isCompactMobile?\"16px\":shouldAttachDiscountPanel?panelIsAbove?`0 0 ${isMobile?props.borderRadius*.75:props.borderRadius}px ${isMobile?props.borderRadius*.75:props.borderRadius}px`:`${isMobile?props.borderRadius*.75:props.borderRadius}px ${isMobile?props.borderRadius*.75:props.borderRadius}px 0 0`:`${isMobile?props.borderRadius*.75:props.borderRadius}px`,boxShadow:isMobile?`0 4px 14px ${shadowColor}`:\"none\",border:`1px solid ${borderColor}`,borderTop:panelIsAbove?\"none\":`1px solid ${borderColor}`,borderBottom:shouldAttachDiscountPanel&&!panelIsAbove?\"none\":`1px solid ${borderColor}`,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{ref:mainContainerRef,style:{padding:isMobile?\"10px\":`${props.padding}px`,display:\"flex\",flexDirection:isMobile?\"column\":\"row\",gap:isMobile?\"8px\":\"0\",alignItems:\"stretch\",...font},children:isMobile?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"stretch\",flexWrap:\"nowrap\",gap:\"8px\",width:\"100%\",minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{ref:checkInRef,style:{flex:1,minWidth:0,minHeight:\"40px\",position:\"relative\",padding:\"10px 10px\",cursor:\"pointer\",borderRadius:\"10px\",transition:\"background-color 0.2s ease\",backgroundColor:\"#FFFFFF\",border:`1px solid ${borderColor}`,display:\"flex\",alignItems:\"center\"},onClick:()=>{markInteraction();startTransition(()=>{setCalendarMode(\"checkin\");setShowCalendar(true);});},children:/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"14px\",lineHeight:\"1.2\",color:textColor,fontWeight:\"500\",...font,whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\",minWidth:0},children:checkIn?formatDate(checkIn):\"Check-in\"})}),/*#__PURE__*/_jsx(\"div\",{ref:checkOutRef,style:{flex:1,minWidth:0,minHeight:\"40px\",position:\"relative\",padding:\"10px 10px\",cursor:\"pointer\",borderRadius:\"10px\",transition:\"background-color 0.2s ease\",backgroundColor:\"#FFFFFF\",border:`1px solid ${borderColor}`,display:\"flex\",alignItems:\"center\"},onClick:()=>{markInteraction();if(checkIn)startTransition(()=>{setCalendarMode(\"checkout\");setShowCalendar(true);});},children:/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"14px\",lineHeight:\"1.2\",color:textColor,fontWeight:\"500\",opacity:checkIn?1:.5,...font,whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\",minWidth:0},children:checkOut?formatDate(checkOut):\"Check-out\"})}),/*#__PURE__*/_jsxs(\"button\",{onClick:handleSearch,onMouseDown:markInteraction,disabled:!checkIn||!checkOut,style:{width:\"auto\",flexShrink:0,minHeight:\"40px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:\"8px\",backgroundColor:primaryColor,color:\"white\",border:\"none\",borderRadius:\"10px\",padding:\"0 14px\",fontSize:\"14px\",fontWeight:\"700\",cursor:checkIn&&checkOut?\"pointer\":\"not-allowed\",opacity:checkIn&&checkOut?1:.5,transition:\"all 0.2s ease\",...buttonFont},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"🔍\"}),/*#__PURE__*/_jsx(\"span\",{children:\"Search\"})]})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{ref:checkInRef,style:{flex:1,position:\"relative\",padding:\"14px 18px\",cursor:\"pointer\",borderRadius:\"0\",transition:\"background-color 0.2s ease\",backgroundColor:\"transparent\",border:\"none\",borderRight:\"none\"},onClick:()=>{markInteraction();startTransition(()=>{setCalendarMode(\"checkin\");setShowCalendar(true);});},children:/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"16px\",color:textColor,fontWeight:\"400\",...font},children:checkIn?formatDate(checkIn):\"Check-in\"})}),/*#__PURE__*/_jsx(\"div\",{ref:checkOutRef,style:{flex:1,position:\"relative\",padding:\"14px 18px\",cursor:\"pointer\",borderRadius:\"0\",transition:\"background-color 0.2s ease\",backgroundColor:\"transparent\",border:\"none\"},onClick:()=>{markInteraction();if(checkIn)startTransition(()=>{setCalendarMode(\"checkout\");setShowCalendar(true);});},children:/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"16px\",color:textColor,fontWeight:\"400\",opacity:checkIn?1:.5,...font},children:checkOut?formatDate(checkOut):\"Check-out\"})}),/*#__PURE__*/_jsx(\"button\",{onClick:handleSearch,onMouseDown:markInteraction,disabled:!checkIn||!checkOut,style:{backgroundColor:primaryColor,color:\"white\",border:\"none\",borderRadius:\"8px\",padding:\"20px 40px\",fontSize:\"16px\",fontWeight:\"600\",cursor:checkIn&&checkOut?\"pointer\":\"not-allowed\",opacity:checkIn&&checkOut?1:.5,transition:\"all 0.2s ease\",marginLeft:\"16px\",...buttonFont},children:\"Search\"})]})}),dateError&&/*#__PURE__*/_jsxs(\"div\",{style:{margin:\"0 16px 16px 16px\",padding:\"12px 16px\",backgroundColor:\"#FEE\",border:\"1px solid #FCC\",borderRadius:\"8px\",color:\"#C33\",fontSize:isMobile?\"13px\":\"14px\",fontWeight:\"500\",display:\"flex\",alignItems:\"center\",gap:\"8px\",...font},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"16px\"},children:\"⚠️\"}),dateError]})]}),!showCalendar&&nights>0&&qualifiedDiscountPercent&&/*#__PURE__*/_jsx(\"div\",{style:{marginTop:isMobile?\"8px\":\"10px\",display:\"flex\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:bannerColor,color:bannerTextColor,borderRadius:\"999px\",padding:isMobile?\"6px 10px\":\"5px 10px\",border:`1px solid ${bannerTextColor}`,textAlign:\"center\",fontWeight:\"600\",...font,fontSize:isMobile?\"12px\":\"13px\",lineHeight:\"1.2\"},children:`🎉 Your ${nights} night stay qualifies for ${qualifiedDiscountPercent} off!`})}),showCalendar&&/*#__PURE__*/_jsxs(_Fragment,{children:[isMobile&&/*#__PURE__*/_jsx(\"div\",{ref:overlayRef,style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",zIndex:999},onClick:()=>startTransition(()=>setShowCalendar(false))}),/*#__PURE__*/_jsx(\"div\",{ref:calendarRef,style:{position:isMobile?\"fixed\":\"absolute\",top:isMobile?\"auto\":\"auto\",bottom:isMobile?\"0\":\"100%\",left:isMobile?\"12px\":calendarMode===\"checkin\"?\"0\":\"auto\",right:isMobile?\"12px\":calendarMode===\"checkout\"?\"0\":\"auto\",transform:\"none\",backgroundColor:\"white\",borderRadius:isMobile?\"16px 16px 0 0\":\"16px\",boxShadow:isMobile?`0 -10px 28px ${shadowColor}`:`0 8px 32px ${shadowColor}`,border:`1px solid ${borderColor}`,padding:isMobile?\"12px 12px 0\":\"16px\",zIndex:1e3,width:isMobile?\"auto\":\"300px\",maxWidth:\"none\",maxHeight:isMobile?\"78vh\":\"none\",overflow:\"hidden\",marginBottom:isMobile?\"0\":\"12px\",paddingBottom:isMobile?\"max(env(safe-area-inset-bottom), 0px)\":\"16px\"},onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsxs(\"div\",{style:{overflowY:isMobile?\"auto\":\"visible\",maxHeight:isMobile?\"calc(78vh - 58px)\":\"none\",paddingBottom:isMobile?\"8px\":\"0\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",marginBottom:\"16px\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>{const newMonth=new Date(currentMonth);newMonth.setMonth(newMonth.getMonth()-1);startTransition(()=>setCurrentMonth(newMonth));},style:{background:\"none\",border:\"none\",fontSize:\"18px\",cursor:\"pointer\",padding:\"4px 8px\",borderRadius:\"6px\",color:textColor},children:\"←\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"8px\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"select\",{value:currentMonth.getMonth(),onChange:e=>{const newMonth=new Date(currentMonth);newMonth.setMonth(parseInt(e.target.value));startTransition(()=>setCurrentMonth(newMonth));},style:{fontSize:\"14px\",fontWeight:\"600\",color:textColor,border:`1px solid ${borderColor}`,borderRadius:\"6px\",padding:\"4px 8px\",backgroundColor:\"white\",cursor:\"pointer\",...font},children:monthNames.map((month,index)=>/*#__PURE__*/_jsx(\"option\",{value:index,children:month},month))}),/*#__PURE__*/_jsx(\"select\",{value:currentMonth.getFullYear(),onChange:e=>{const newMonth=new Date(currentMonth);newMonth.setFullYear(parseInt(e.target.value));startTransition(()=>setCurrentMonth(newMonth));},style:{fontSize:\"14px\",fontWeight:\"600\",color:textColor,border:`1px solid ${borderColor}`,borderRadius:\"6px\",padding:\"4px 8px\",backgroundColor:\"white\",cursor:\"pointer\",...font},children:Array.from({length:11},(_,i)=>today.getFullYear()+i).map(year=>/*#__PURE__*/_jsx(\"option\",{value:year,children:year},year))})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>{const newMonth=new Date(currentMonth);newMonth.setMonth(newMonth.getMonth()+1);startTransition(()=>setCurrentMonth(newMonth));},style:{background:\"none\",border:\"none\",fontSize:\"18px\",cursor:\"pointer\",padding:\"4px 8px\",borderRadius:\"6px\",color:textColor},children:\"→\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",gap:\"4px\",marginBottom:\"8px\"},children:dayNames.map(day=>/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",fontSize:\"11px\",fontWeight:\"600\",color:\"#666\",padding:\"4px 2px\",...labelFont},children:day},day))}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",gap:\"4px\"},children:getDaysInMonth(currentMonth).map((date,index)=>{if(!date)return /*#__PURE__*/_jsx(\"div\",{style:{padding:\"8px\"}},index);const isDisabled=date<today;const isSelected=checkInDate&&date.getTime()===checkInDate.getTime()||checkOutDate&&date.getTime()===checkOutDate.getTime();const isInRange=isDateInRange(date);const isRangeStart=isDateRangeStart(date);const isRangeEnd=isDateRangeEnd(date);return /*#__PURE__*/_jsx(\"button\",{onClick:()=>{if(!isDisabled){markInteraction();handleDateClick(date);}},onMouseEnter:()=>{if(calendarMode===\"checkout\"&&checkInDate&&!isDisabled)startTransition(()=>setHoveredDate(date));},onMouseLeave:()=>{startTransition(()=>setHoveredDate(null));},disabled:isDisabled,style:{padding:\"8px 4px\",border:\"none\",borderRadius:isRangeStart?\"50% 0 0 50%\":isRangeEnd?\"0 50% 50% 0\":isInRange?\"0\":\"50%\",backgroundColor:isSelected?primaryColor:isInRange?primaryColor:\"transparent\",color:isSelected?\"white\":isInRange?\"white\":isDisabled?\"#ccc\":textColor,cursor:isDisabled?\"not-allowed\":\"pointer\",fontSize:\"14px\",fontWeight:isSelected?\"600\":isInRange?\"500\":\"400\",transition:\"all 0.2s ease\",opacity:isInRange&&!isSelected?.7:1,...font},children:date.getDate()},index);})}),isMobile&&/*#__PURE__*/_jsx(\"div\",{style:{borderTop:`1px solid ${borderColor}`,marginTop:\"10px\",padding:\"8px 2px calc(8px + env(safe-area-inset-bottom))\",backgroundColor:bannerColor,color:bannerTextColor,borderRadius:\"12px\",display:\"flex\",flexDirection:\"column\",gap:\"6px\"},children:renderMobileCalendarDiscountContent()})]})})]}),!isMobile&&!panelAbove&&renderDiscountPanel()]});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function BookingForm(props){return /*#__PURE__*/_jsx(MirrorBookingForm,{...props});const{backgroundColor=\"#FFFFFF\",textColor=\"#000000\",primaryColor=\"#FF385C\",borderColor=\"#EEEEEE\",shadowColor=\"rgba(0, 0, 0, 0.1)\",font,labelFont,buttonFont,forceMobileMode=false,propertyId=\"9vuVnf\",errorColor=\"#DC2626\",padding=24,borderRadius=16,showDiscountPeriods=true,discountBackgroundColor=\"#877356\",discountTextColor=\"#FFFFFF\",discountHeadingFont,discountSubheadingFont,discountBodyFont,discountHighlightColor=\"rgba(255, 255, 255, 0.25)\",discountHighlightTextColor=\"#FFFFFF\",discountPanelAbove=false}=props;const[checkIn,setCheckIn]=useState(\"\");const[checkOut,setCheckOut]=useState(\"\");const[showCalendar,setShowCalendar]=useState(false);const[calendarMode,setCalendarMode]=useState(\"checkin\");const[currentMonth,setCurrentMonth]=useState(new Date);const[hoveredDate,setHoveredDate]=useState(null);const[isAutoMobile,setIsAutoMobile]=useState(false);const[errorMessage,setErrorMessage]=useState(\"\");const[showError,setShowError]=useState(false);const[hasInteracted,setHasInteracted]=useState(false);const calendarRef=useRef(null);const checkInRef=useRef(null);const checkOutRef=useRef(null);const showCalendarRef=useRef(showCalendar);const today=new Date;today.setHours(0,0,0,0);const parseLocalDate=dateStr=>{if(!dateStr)return null;const[year,month,day]=dateStr.split(\"-\").map(Number);return new Date(year,month-1,day);};const checkInDate=parseLocalDate(checkIn);const checkOutDate=parseLocalDate(checkOut);// Check if dates fall within 2027 exclusion period (May 28 - Labor Day)\nconst isIn2027ExclusionPeriod=()=>{if(!checkInDate)return false;const year=checkInDate.getFullYear();if(year!==2027)return false;// May 28, 2027\nconst exclusionStart=new Date(2027,4,28)// Month is 0-indexed\n;// Labor Day 2027 (first Monday in September = September 6, 2027)\nconst laborDay2027=new Date(2027,8,6);return checkInDate>=exclusionStart&&checkInDate<=laborDay2027;};// Calculate nights and applicable discount\nconst calculateDiscount=()=>{if(!checkInDate||!checkOutDate)return null;// Hide discounts for 2027 exclusion period\nif(isIn2027ExclusionPeriod()){const nights=Math.ceil((checkOutDate.getTime()-checkInDate.getTime())/(1e3*60*60*24));return{nights,discount:0,periodName:\"\"};}// Calculate number of nights\nconst nights=Math.ceil((checkOutDate.getTime()-checkInDate.getTime())/(1e3*60*60*24));// Define discount period (May 13 - Sept 14)\nconst period2Start=new Date(new Date().getFullYear(),4,13)// May 13\n;const period2End=new Date(new Date().getFullYear(),8,14)// Sept 14\n;// Determine discount based on Period 2 rates\nlet discount=0;let periodName=\"Period 2\";if(checkInDate>=period2Start&&checkInDate<=period2End){if(nights===2)discount=5;else if(nights===3)discount=10;else if(nights>=4&&nights<=6)discount=15;else if(nights>=7&&nights<=29)discount=20;}return{nights,discount,periodName};};const discountInfo=calculateDiscount();// Check if dates fall within peak season (May 20 - September 7)\nconst isPeakSeason=()=>{if(!checkInDate)return false;const year=checkInDate.getFullYear();const peakStart=new Date(year,4,20)// May 20 (month is 0-indexed)\n;const peakEnd=new Date(year,8,7)// September 7\n;return checkInDate>=peakStart&&checkInDate<=peakEnd;};// Check if user has selected exactly 1 night\nconst hasSelectedOneNight=()=>{if(!checkInDate||!checkOutDate)return false;const nights=Math.ceil((checkOutDate.getTime()-checkInDate.getTime())/(1e3*60*60*24));return nights===1;};// Determine which period to display\nconst getDiscountPeriodDisplay=()=>{// Hide discounts for 2027 exclusion period\nif(isIn2027ExclusionPeriod()){return{subheading:\"\",discounts:[]};}// Default to Period 2 (May 13 - September 14)\nreturn{subheading:\"(Applies to stays May 13 through September 14)\",discounts:[{text:\"2 Nights — Save 5%\",nights:2},{text:\"3 Nights — Save 10%\",nights:3},{text:\"4–6 Nights — Save 15%\",nights:[4,5,6]},{text:\"7–29 Nights — Save 20%\",nights:7}]};};const periodDisplay=getDiscountPeriodDisplay();const period2TierCards=[{label:\"2 nights\",save:5,nights:2},{label:\"3 nights\",save:10,nights:3},{label:\"4–6 nights\",save:15,nights:[4,5,6]},{label:\"7–29 nights\",save:20,nights:7}];const postSepTierCards=[{label:\"2 nights\",save:10,nights:2},{label:\"3 nights\",save:15,nights:3},{label:\"4–6 nights\",save:20,nights:[4,5,6]},{label:\"7–29 nights\",save:25,nights:7}];// Check if current date is after August 14\nconst isAfterPromotionEnd=()=>{// Check if checkout date is after September 14\nif(checkOutDate){const checkoutPromotionEnd=new Date(checkOutDate.getFullYear(),8,14)// Sept 14\n;return checkOutDate>checkoutPromotionEnd;}return false;};const getDisplayedTierSet=()=>{return isAfterPromotionEnd()?postSepTierCards:period2TierCards;};const getDisplayedDiscountForNights=nights=>{if(!nights)return 0;const tierSet=getDisplayedTierSet();const activeTier=tierSet.find(tier=>{if(Array.isArray(tier.nights))return tier.nights.includes(nights);if(tier.nights===7)return nights>=7&&nights<=29;return nights===tier.nights;});return activeTier?.save??0;};const isDisplayedTierActive=tierNights=>{if(!discountInfo||!discountInfo.nights)return false;const nights=discountInfo.nights;if(Array.isArray(tierNights))return tierNights.includes(nights);if(tierNights===7)return nights>=7&&nights<=29;return nights===tierNights;};const displayedDiscount=getDisplayedDiscountForNights(discountInfo?.nights??null);const hasSelectedDates=Boolean(checkInDate&&checkOutDate);const hasNoApplicableDiscount=hasSelectedDates&&(displayedDiscount<=0||getDisplayedTierSet().length===0||periodDisplay.discounts.length===0);const shouldShowNoDiscountFallback=isIn2027ExclusionPeriod()||hasNoApplicableDiscount;// Check if a discount tier matches the current nights\nconst isDiscountActive=tierNights=>{if(!discountInfo||discountInfo.discount===0)return false;const nights=discountInfo.nights;if(Array.isArray(tierNights)){return tierNights.includes(nights);}else if(tierNights===7){return nights>=7&&nights<=29;}else{return nights===tierNights;}};const markInteraction=useCallback(()=>{if(hasInteracted)return;startTransition(()=>setHasInteracted(true));},[hasInteracted]);// Check for mobile viewport\nuseEffect(()=>{const checkMobile=()=>{if(typeof window!==\"undefined\"){startTransition(()=>setIsAutoMobile(window.innerWidth<768));}};checkMobile();if(typeof window!==\"undefined\"){window.addEventListener(\"resize\",checkMobile);return()=>window.removeEventListener(\"resize\",checkMobile);}},[]);// Determine if mobile mode should be active\nconst isMobile=forceMobileMode||isAutoMobile;const shouldAttachDiscountPanel=!isMobile&&showDiscountPeriods&&showCalendar;const panelIsAbove=discountPanelAbove&&shouldAttachDiscountPanel;useEffect(()=>{showCalendarRef.current=showCalendar;},[showCalendar]);useEffect(()=>{function handleClickOutside(event){if(calendarRef.current&&!calendarRef.current.contains(event.target)&&!checkInRef.current?.contains(event.target)&&!checkOutRef.current?.contains(event.target)){startTransition(()=>{if(showCalendarRef.current===true){// If calendar is showing, just close it\nsetShowCalendar(false);}else{// If calendar is already closed, reset the dates\nsetCheckIn(\"\");setCheckOut(\"\");}});}}if(typeof document!==\"undefined\"){document.addEventListener(\"mousedown\",handleClickOutside);return()=>document.removeEventListener(\"mousedown\",handleClickOutside);}},[]);const formatDate=dateStr=>{if(!dateStr)return\"\";const[year,month,day]=dateStr.split(\"-\").map(Number);const date=new Date(year,month-1,day);return date.toLocaleDateString(\"en-US\",{month:\"short\",day:\"numeric\"});};const getDaysInMonth=date=>{const year=date.getFullYear();const month=date.getMonth();const firstDay=new Date(year,month,1);const lastDay=new Date(year,month+1,0);const daysInMonth=lastDay.getDate();const startingDayOfWeek=firstDay.getDay();const days=[];// Add empty cells for days before the first day of the month\nfor(let i=0;i<startingDayOfWeek;i++){days.push(null);}// Add all days of the month\nfor(let day=1;day<=daysInMonth;day++){days.push(new Date(year,month,day));}return days;};const isDateInRange=date=>{if(!checkInDate)return false;if(checkOutDate){return date>checkInDate&&date<checkOutDate;}if(calendarMode===\"checkout\"&&hoveredDate){return date>checkInDate&&date<hoveredDate;}return false;};const isDateRangeStart=date=>{return checkInDate&&date.getTime()===checkInDate.getTime();};const isDateRangeEnd=date=>{if(checkOutDate&&date.getTime()===checkOutDate.getTime())return true;if(calendarMode===\"checkout\"&&hoveredDate&&checkInDate&&date.getTime()===hoveredDate.getTime())return true;return false;};const handleDateClick=date=>{// Format date as YYYY-MM-DD in local timezone\nconst year=date.getFullYear();const month=String(date.getMonth()+1).padStart(2,\"0\");const day=String(date.getDate()).padStart(2,\"0\");const dateStr=`${year}-${month}-${day}`;if(calendarMode===\"checkin\"){startTransition(()=>{setCheckIn(dateStr);setCheckOut(\"\");setCalendarMode(\"checkout\");setErrorMessage(\"\");setShowError(false);});}else{const selectedDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());const checkInLocalDate=checkInDate?new Date(checkInDate.getFullYear(),checkInDate.getMonth(),checkInDate.getDate()):null;if(checkInLocalDate&&selectedDate<=checkInLocalDate){startTransition(()=>{setErrorMessage(\"Check-out date must be after check-in date\");setShowError(true);setTimeout(()=>setShowError(false),3e3);});}else{startTransition(()=>{setCheckOut(dateStr);setShowCalendar(false);setErrorMessage(\"\");setShowError(false);});}}};const handleSearch=()=>{if(!checkIn){startTransition(()=>{setErrorMessage(\"Please select a check-in date\");setShowError(true);setTimeout(()=>setShowError(false),3e3);});return;}if(!checkOut){startTransition(()=>{setErrorMessage(\"Please select a check-out date\");setShowError(true);setTimeout(()=>setShowError(false),3e3);});return;}if(checkIn&&checkOut){const url=`https://hotels.cloudbeds.com/en/reservation/${propertyId}/?currency=usd&checkin=${checkIn}&checkout=${checkOut}`;if(typeof window!==\"undefined\"){window.open(url,\"_blank\");}}};const monthNames=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];const dayNames=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"];// Generate year options (current year to 5 years in the future)\nconst currentYear=new Date().getFullYear();const yearOptions=Array.from({length:6},(_,i)=>currentYear+i);const renderDiscountPanel=()=>/*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":!showCalendar,style:{maxHeight:showCalendar?\"520px\":\"0px\",opacity:showCalendar?1:0,transform:showCalendar?\"translateY(0px)\":\"translateY(-6px)\",overflow:\"hidden\",transition:\"max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease\"},children:[props.showDiscountPeriods&&showCalendar&&!isAfterPromotionEnd()&&!shouldShowNoDiscountFallback&&/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:props.discountBackgroundColor,borderRadius:panelIsAbove?isMobile?`${props.borderRadius*.75}px ${props.borderRadius*.75}px 0 0`:`${props.borderRadius}px ${props.borderRadius}px 0 0`:isMobile?`0 0 ${props.borderRadius*.75}px ${props.borderRadius*.75}px`:`0 0 ${props.borderRadius}px ${props.borderRadius}px`,padding:isMobile?\"10px 12px 9px\":\"10px 14px 9px\",boxShadow:`0 ${isMobile?\"2px 8px\":\"4px 16px\"} ${shadowColor}`,border:`1px solid ${borderColor}`,borderTop:panelIsAbove?`1px solid ${borderColor}`:\"none\",borderBottom:panelIsAbove?\"none\":`1px solid ${borderColor}`,marginTop:panelIsAbove?\"0\":\"-1px\",marginBottom:panelIsAbove?\"-1px\":\"0\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:isMobile?\"7px\":\"6px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 2px 0\",color:props.discountTextColor,...props.discountHeadingFont},children:\"Stay Longer. Save More.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:props.discountTextColor,opacity:.9,...props.discountSubheadingFont},children:periodDisplay.subheading})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:isMobile?\"repeat(2, minmax(0, 1fr))\":\"repeat(4, minmax(0, 1fr))\",gap:isMobile?\"6px\":\"6px\"},children:period2TierCards.map((tier,index)=>{const isActive=isDisplayedTierActive(tier.nights);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",minHeight:isMobile?\"52px\":\"64px\",padding:isMobile?\"6px 6px 5px\":\"7px 7px 6px\",borderRadius:\"12px\",border:isActive?`1px solid ${props.discountHighlightTextColor}`:\"1px solid rgba(255, 255, 255, 0.35)\",backgroundColor:isActive?props.discountHighlightColor:\"rgba(255, 255, 255, 0.14)\",boxShadow:isActive?`0 8px 20px ${shadowColor}`:\"none\",transform:isActive?\"scale(1.03)\":\"scale(1)\",transition:\"all 0.25s ease\",color:isActive?props.discountHighlightTextColor:props.discountTextColor},children:[isActive&&/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:\"-9px\",padding:\"2px 8px\",borderRadius:\"999px\",backgroundColor:props.discountHighlightColor,color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,fontSize:\"11px\",fontWeight:600,lineHeight:1.2},children:\"Your stay\"}),/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:isMobile?\"19px\":\"21px\",lineHeight:1,fontWeight:700,marginBottom:\"1px\",...props.discountBodyFont},children:[tier.save,\"%\"]}),/*#__PURE__*/_jsx(\"div\",{style:{opacity:isActive?1:.9,...props.discountSubheadingFont},children:tier.label})]},index);})})]}),discountInfo&&displayedDiscount>0&&!isIn2027ExclusionPeriod()&&/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:isMobile?\"7px\":\"6px\",padding:isMobile?\"6px 10px\":\"5px 10px\",backgroundColor:props.discountHighlightColor,borderRadius:\"999px\",textAlign:\"center\",color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,...props.discountBodyFont,fontWeight:\"600\"},children:[\"🎉 Your \",discountInfo.nights,\" night stay qualifies for \",displayedDiscount,\"% off!\"]})]}),props.showDiscountPeriods&&showCalendar&&isAfterPromotionEnd()&&!shouldShowNoDiscountFallback&&/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:props.discountBackgroundColor,borderRadius:panelIsAbove?isMobile?`${props.borderRadius*.75}px ${props.borderRadius*.75}px 0 0`:`${props.borderRadius}px ${props.borderRadius}px 0 0`:isMobile?`0 0 ${props.borderRadius*.75}px ${props.borderRadius*.75}px`:`0 0 ${props.borderRadius}px ${props.borderRadius}px`,padding:isMobile?\"10px 12px 9px\":\"10px 14px 9px\",boxShadow:`0 ${isMobile?\"2px 8px\":\"4px 16px\"} ${shadowColor}`,border:`1px solid ${borderColor}`,borderTop:panelIsAbove?`1px solid ${borderColor}`:\"none\",borderBottom:panelIsAbove?\"none\":`1px solid ${borderColor}`,marginTop:panelIsAbove?\"0\":\"-1px\",marginBottom:panelIsAbove?\"-1px\":\"0\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:isMobile?\"7px\":\"6px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 2px 0\",color:props.discountTextColor,...props.discountHeadingFont},children:\"Stay Longer. Save More.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:props.discountTextColor,opacity:.9,...props.discountSubheadingFont},children:\"September 14 through May 24\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:isMobile?\"repeat(2, minmax(0, 1fr))\":\"repeat(4, minmax(0, 1fr))\",gap:isMobile?\"6px\":\"6px\"},children:postSepTierCards.map((tier,index)=>{const isActive=isDisplayedTierActive(tier.nights);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",minHeight:isMobile?\"52px\":\"64px\",padding:isMobile?\"6px 6px 5px\":\"7px 7px 6px\",borderRadius:\"12px\",border:isActive?`1px solid ${props.discountHighlightTextColor}`:\"1px solid rgba(255, 255, 255, 0.35)\",backgroundColor:isActive?props.discountHighlightColor:\"rgba(255, 255, 255, 0.14)\",boxShadow:isActive?`0 8px 20px ${shadowColor}`:\"none\",transform:isActive?\"scale(1.03)\":\"scale(1)\",transition:\"all 0.25s ease\",color:isActive?props.discountHighlightTextColor:props.discountTextColor},children:[isActive&&/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:\"-9px\",padding:\"2px 8px\",borderRadius:\"999px\",backgroundColor:props.discountHighlightColor,color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,fontSize:\"11px\",fontWeight:600,lineHeight:1.2},children:\"Your stay\"}),/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:isMobile?\"19px\":\"21px\",lineHeight:1,fontWeight:700,marginBottom:\"1px\",...props.discountBodyFont},children:[tier.save,\"%\"]}),/*#__PURE__*/_jsx(\"div\",{style:{opacity:isActive?1:.9,...props.discountSubheadingFont},children:tier.label})]},index);})})]}),discountInfo&&displayedDiscount>0&&!isIn2027ExclusionPeriod()&&/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:isMobile?\"7px\":\"6px\",padding:isMobile?\"6px 10px\":\"5px 10px\",backgroundColor:props.discountHighlightColor,borderRadius:\"999px\",textAlign:\"center\",color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,...props.discountBodyFont,fontWeight:\"600\"},children:[\"🎉 Your \",discountInfo.nights,\" night stay qualifies for \",displayedDiscount,\"% off!\"]})]}),props.showDiscountPeriods&&showCalendar&&shouldShowNoDiscountFallback&&/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:props.discountBackgroundColor,borderRadius:panelIsAbove?isMobile?`${props.borderRadius*.75}px ${props.borderRadius*.75}px 0 0`:`${props.borderRadius}px ${props.borderRadius}px 0 0`:isMobile?`0 0 ${props.borderRadius*.75}px ${props.borderRadius*.75}px`:`0 0 ${props.borderRadius}px ${props.borderRadius}px`,padding:isMobile?\"10px 12px 9px\":\"10px 14px 9px\",boxShadow:`0 ${isMobile?\"2px 8px\":\"4px 16px\"} ${shadowColor}`,border:`1px solid ${borderColor}`,borderTop:panelIsAbove?`1px solid ${borderColor}`:\"none\",borderBottom:panelIsAbove?\"none\":`1px solid ${borderColor}`,marginTop:panelIsAbove?\"0\":\"-1px\",marginBottom:panelIsAbove?\"-1px\":\"0\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:isMobile?\"7px\":\"6px\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 2px 0\",color:props.discountTextColor,...props.discountHeadingFont},children:\"Stay Longer. Save More.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:props.discountTextColor,opacity:.9,...props.discountSubheadingFont},children:\"No discounts available for selected dates\"}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:isMobile?\"7px\":\"6px\",padding:isMobile?\"6px 10px\":\"5px 10px\",backgroundColor:props.discountHighlightColor,borderRadius:\"999px\",textAlign:\"center\",color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,...props.discountBodyFont,fontWeight:\"600\"},children:isIn2027ExclusionPeriod()?\"Discounts are not offered during this seasonal period.\":\"This stay does not qualify for a discount tier.\"})]})})]});const renderMobileCalendarDiscountContent=()=>{if(!props.showDiscountPeriods){return /*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",...props.discountBodyFont,fontSize:\"12px\",lineHeight:\"1.2\"},children:\"Select your dates to see your savings\"});}if(!isAfterPromotionEnd()&&!shouldShowNoDiscountFallback){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 2px 0\",color:props.discountTextColor,...props.discountHeadingFont,fontSize:\"16px\",lineHeight:\"1.1\"},children:\"Stay Longer. Save More.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:props.discountTextColor,opacity:.9,...props.discountSubheadingFont,fontSize:\"11px\",lineHeight:\"1.2\"},children:periodDisplay.subheading})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(2, minmax(0, 1fr))\",gap:\"4px\"},children:period2TierCards.map((tier,index)=>{const isActive=isDisplayedTierActive(tier.nights);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",minHeight:\"44px\",padding:\"5px 5px 4px\",borderRadius:\"10px\",border:isActive?`1px solid ${props.discountHighlightTextColor}`:\"1px solid rgba(255, 255, 255, 0.35)\",backgroundColor:isActive?props.discountHighlightColor:\"rgba(255, 255, 255, 0.14)\",color:isActive?props.discountHighlightTextColor:props.discountTextColor,transition:\"all 0.25s ease\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{lineHeight:1,fontWeight:700,marginBottom:\"1px\",...props.discountBodyFont,fontSize:\"15px\"},children:[tier.save,\"%\"]}),/*#__PURE__*/_jsx(\"div\",{style:{opacity:isActive?1:.9,...props.discountSubheadingFont,fontSize:\"10.5px\",lineHeight:1.15},children:tier.label})]},index);})}),discountInfo&&displayedDiscount>0?/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:\"4px\",padding:\"5px 8px\",backgroundColor:props.discountHighlightColor,borderRadius:\"999px\",textAlign:\"center\",color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,...props.discountBodyFont,fontSize:\"12px\",lineHeight:\"1.2\",fontWeight:\"600\"},children:[\"🎉 Your \",discountInfo.nights,\" night stay qualifies for\",\" \",displayedDiscount,\"% off!\"]}):/*#__PURE__*/_jsx(\"div\",{style:{marginTop:\"4px\",textAlign:\"center\",...props.discountBodyFont,color:props.discountTextColor,fontSize:\"12px\",lineHeight:\"1.2\"},children:\"Select your dates to see your savings\"})]});}if(isAfterPromotionEnd()&&!shouldShowNoDiscountFallback){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 2px 0\",color:props.discountTextColor,...props.discountHeadingFont,fontSize:\"16px\",lineHeight:\"1.1\"},children:\"Stay Longer. Save More.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:props.discountTextColor,opacity:.9,...props.discountSubheadingFont,fontSize:\"11px\",lineHeight:\"1.2\"},children:\"September 14 through May 24\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(2, minmax(0, 1fr))\",gap:\"4px\"},children:postSepTierCards.map((tier,index)=>{const isActive=isDisplayedTierActive(tier.nights);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",minHeight:\"44px\",padding:\"5px 5px 4px\",borderRadius:\"10px\",border:isActive?`1px solid ${props.discountHighlightTextColor}`:\"1px solid rgba(255, 255, 255, 0.35)\",backgroundColor:isActive?props.discountHighlightColor:\"rgba(255, 255, 255, 0.14)\",color:isActive?props.discountHighlightTextColor:props.discountTextColor,transition:\"all 0.25s ease\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{lineHeight:1,fontWeight:700,marginBottom:\"1px\",...props.discountBodyFont,fontSize:\"15px\"},children:[tier.save,\"%\"]}),/*#__PURE__*/_jsx(\"div\",{style:{opacity:isActive?1:.9,...props.discountSubheadingFont,fontSize:\"10.5px\",lineHeight:1.15},children:tier.label})]},index);})}),discountInfo&&displayedDiscount>0?/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:\"4px\",padding:\"5px 8px\",backgroundColor:props.discountHighlightColor,borderRadius:\"999px\",textAlign:\"center\",color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,...props.discountBodyFont,fontSize:\"12px\",lineHeight:\"1.2\",fontWeight:\"600\"},children:[\"🎉 Your \",discountInfo.nights,\" night stay qualifies for\",\" \",displayedDiscount,\"% off!\"]}):/*#__PURE__*/_jsx(\"div\",{style:{marginTop:\"4px\",textAlign:\"center\",...props.discountBodyFont,color:props.discountTextColor,fontSize:\"12px\",lineHeight:\"1.2\"},children:\"Select your dates to see your savings\"})]});}return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"4px\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 2px 0\",color:props.discountTextColor,...props.discountHeadingFont,fontSize:\"16px\",lineHeight:\"1.1\"},children:\"Stay Longer. Save More.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:props.discountTextColor,opacity:.9,...props.discountSubheadingFont,fontSize:\"11px\",lineHeight:\"1.2\"},children:\"No discounts available for selected dates\"}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:\"4px\",padding:\"5px 8px\",backgroundColor:props.discountHighlightColor,borderRadius:\"999px\",textAlign:\"center\",color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,...props.discountBodyFont,fontSize:\"12px\",lineHeight:\"1.2\",fontWeight:\"600\"},children:isIn2027ExclusionPeriod()?\"Discounts are not offered during this seasonal period.\":\"This stay does not qualify for a discount tier.\"})]});};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",maxWidth:isMobile?\"100%\":\"800px\",margin:\"0 auto\"},children:[showError&&errorMessage&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"-60px\",left:\"50%\",transform:\"translateX(-50%)\",backgroundColor:errorColor,color:\"white\",padding:\"12px 20px\",borderRadius:\"8px\",fontSize:isMobile?\"13px\":\"14px\",fontWeight:\"500\",boxShadow:`0 4px 12px ${shadowColor}`,zIndex:1001,whiteSpace:\"nowrap\",animation:\"slideDown 0.3s ease\",...labelFont},children:errorMessage}),!isMobile&&discountPanelAbove&&renderDiscountPanel(),/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor,borderRadius:shouldAttachDiscountPanel?panelIsAbove?isMobile?`0 0 ${props.borderRadius*.75}px ${props.borderRadius*.75}px`:`0 0 ${props.borderRadius}px ${props.borderRadius}px`:isMobile?`${props.borderRadius*.75}px ${props.borderRadius*.75}px 0 0`:`${props.borderRadius}px ${props.borderRadius}px 0 0`:isMobile?`${props.borderRadius*.75}px`:`${props.borderRadius}px`,boxShadow:`0 ${isMobile?\"4px 16px\":\"8px 32px\"} ${shadowColor}`,padding:isMobile?`${props.padding*.67}px`:`${props.padding}px`,display:\"flex\",flexDirection:isMobile?\"column\":\"row\",gap:isMobile?\"12px\":\"1px\",alignItems:\"stretch\",border:`1px solid ${borderColor}`,borderTop:panelIsAbove?\"none\":`1px solid ${borderColor}`,borderBottom:shouldAttachDiscountPanel&&!panelIsAbove?\"none\":`1px solid ${borderColor}`,...font},children:[/*#__PURE__*/_jsxs(\"div\",{ref:checkInRef,style:{flex:1,position:\"relative\",padding:isMobile?\"10px 14px\":\"12px 16px\",cursor:\"pointer\",borderRadius:isMobile?\"8px\":\"12px 0 0 12px\",transition:\"background-color 0.2s ease\",backgroundColor:showCalendar&&calendarMode===\"checkin\"?\"#f7f7f7\":\"transparent\",border:isMobile?`1px solid ${borderColor}`:\"none\"},onClick:()=>{markInteraction();startTransition(()=>{setCalendarMode(\"checkin\");setShowCalendar(true);setErrorMessage(\"\");setShowError(false);});},children:[/*#__PURE__*/_jsx(\"label\",{style:{position:\"absolute\",top:checkIn?\"4px\":\"50%\",left:isMobile?\"14px\":\"16px\",transform:checkIn?\"translateY(0)\":\"translateY(-50%)\",fontSize:checkIn?\"10px\":isMobile?\"13px\":\"14px\",color:checkIn?\"#666\":textColor,transition:\"all 0.2s ease\",pointerEvents:\"none\",...labelFont},children:\"Check-in\"}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:checkIn?\"8px\":\"0\",fontSize:isMobile?\"13px\":\"14px\",color:checkIn?textColor:\"transparent\",minHeight:isMobile?\"18px\":\"20px\",display:\"flex\",alignItems:\"center\"},children:checkIn?formatDate(checkIn):\"Add dates\"})]}),!isMobile&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"1px\",backgroundColor:borderColor,margin:\"16px 0\"}}),/*#__PURE__*/_jsxs(\"div\",{ref:checkOutRef,style:{flex:1,position:\"relative\",padding:isMobile?\"10px 14px\":\"12px 16px\",cursor:\"pointer\",borderRadius:isMobile?\"8px\":\"0\",transition:\"background-color 0.2s ease\",backgroundColor:showCalendar&&calendarMode===\"checkout\"?\"#f7f7f7\":\"transparent\",border:isMobile?`1px solid ${borderColor}`:\"none\"},onClick:()=>{markInteraction();if(checkIn){startTransition(()=>{setCalendarMode(\"checkout\");setShowCalendar(true);setErrorMessage(\"\");setShowError(false);});}else{startTransition(()=>{setErrorMessage(\"Please select a check-in date first\");setShowError(true);setTimeout(()=>setShowError(false),3e3);});}},children:[/*#__PURE__*/_jsx(\"label\",{style:{position:\"absolute\",top:checkOut?\"4px\":\"50%\",left:isMobile?\"14px\":\"16px\",transform:checkOut?\"translateY(0)\":\"translateY(-50%)\",fontSize:checkOut?\"10px\":isMobile?\"13px\":\"14px\",color:checkOut?\"#666\":textColor,transition:\"all 0.2s ease\",pointerEvents:\"none\",opacity:checkIn?1:.5,...labelFont},children:\"Check-out\"}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:checkOut?\"8px\":\"0\",fontSize:isMobile?\"13px\":\"14px\",color:checkOut?textColor:\"transparent\",minHeight:isMobile?\"18px\":\"20px\",display:\"flex\",alignItems:\"center\"},children:checkOut?formatDate(checkOut):\"Add dates\"})]}),!isMobile&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"1px\",backgroundColor:borderColor,margin:\"16px 0\"}}),/*#__PURE__*/_jsx(\"button\",{onClick:handleSearch,onMouseDown:markInteraction,style:{backgroundColor:primaryColor,color:\"white\",border:\"none\",borderRadius:isMobile?\"8px\":\"0 12px 12px 0\",padding:isMobile?\"12px 20px\":\"12px 24px\",fontSize:isMobile?\"13px\":\"14px\",fontWeight:\"600\",cursor:\"pointer\",opacity:checkIn&&checkOut?1:.7,transition:\"all 0.2s ease\",marginTop:isMobile?\"8px\":\"0\",...buttonFont},children:\"Search\"})]}),!showCalendar&&discountInfo&&displayedDiscount>0&&!isIn2027ExclusionPeriod()&&/*#__PURE__*/_jsx(\"div\",{style:{marginTop:isMobile?\"8px\":\"10px\",display:\"flex\",justifyContent:\"center\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{padding:isMobile?\"6px 10px\":\"5px 10px\",backgroundColor:props.discountHighlightColor,borderRadius:\"999px\",textAlign:\"center\",color:props.discountHighlightTextColor,border:`1px solid ${props.discountHighlightTextColor}`,...props.discountBodyFont,fontWeight:\"600\"},children:[\"🎉 Your \",discountInfo.nights,\" night stay qualifies for \",displayedDiscount,\"% off!\"]})}),isPeakSeason()&&hasSelectedOneNight()&&/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor,padding:isMobile?\"8px 16px\":\"10px 24px\",borderLeft:`1px solid ${borderColor}`,borderRight:`1px solid ${borderColor}`,textAlign:\"center\"},children:/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:textColor,fontSize:isMobile?\"13px\":\"14px\",...labelFont},children:\"Minimum stay: 2 nights\"})}),!isMobile&&!discountPanelAbove&&renderDiscountPanel(),showCalendar&&/*#__PURE__*/_jsxs(_Fragment,{children:[isMobile&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",zIndex:9998},onClick:()=>startTransition(()=>setShowCalendar(false))}),/*#__PURE__*/_jsx(\"div\",{ref:calendarRef,style:{position:isMobile?\"fixed\":\"absolute\",top:isMobile?\"auto\":\"auto\",bottom:isMobile?\"0\":\"calc(100% + 8px)\",left:isMobile?\"12px\":\"50%\",right:isMobile?\"12px\":\"auto\",transform:isMobile?\"none\":\"translateX(-50%)\",backgroundColor:\"white\",borderRadius:isMobile?\"16px 16px 0 0\":\"16px\",boxShadow:isMobile?`0 -10px 28px ${shadowColor}`:`0 8px 32px ${shadowColor}`,border:`1px solid ${borderColor}`,padding:isMobile?\"12px 12px 0\":\"16px\",zIndex:9999,width:isMobile?\"auto\":\"360px\",maxWidth:isMobile?\"none\":\"none\",maxHeight:isMobile?\"78vh\":\"none\",overflow:\"hidden\",paddingBottom:isMobile?\"max(env(safe-area-inset-bottom), 0px)\":\"16px\"},onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsxs(\"div\",{style:{overflowY:isMobile?\"auto\":\"visible\",maxHeight:isMobile?\"calc(78vh - 58px)\":\"none\",paddingBottom:isMobile?\"8px\":\"0\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",marginBottom:isMobile?\"16px\":\"24px\",gap:isMobile?\"8px\":\"12px\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>{const newMonth=new Date(currentMonth);newMonth.setMonth(newMonth.getMonth()-1);startTransition(()=>setCurrentMonth(newMonth));},style:{background:\"none\",border:\"none\",fontSize:isMobile?\"14px\":\"16px\",cursor:\"pointer\",padding:isMobile?\"6px\":\"8px\",borderRadius:\"8px\",color:textColor,flexShrink:0},children:\"←\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:isMobile?\"6px\":\"8px\",alignItems:\"center\",flex:1,justifyContent:\"center\"},children:[/*#__PURE__*/_jsx(\"select\",{value:currentMonth.getMonth(),onChange:e=>{const newMonth=new Date(currentMonth);newMonth.setMonth(parseInt(e.target.value));startTransition(()=>setCurrentMonth(newMonth));},style:{fontSize:isMobile?\"12px\":\"14px\",fontWeight:\"600\",color:textColor,backgroundColor:\"white\",border:`1px solid ${borderColor}`,borderRadius:\"6px\",padding:isMobile?\"3px 5px\":\"4px 6px\",cursor:\"pointer\",...font},children:monthNames.map((month,index)=>/*#__PURE__*/_jsx(\"option\",{value:index,children:month},month))}),/*#__PURE__*/_jsx(\"select\",{value:currentMonth.getFullYear(),onChange:e=>{const newMonth=new Date(currentMonth);newMonth.setFullYear(parseInt(e.target.value));startTransition(()=>setCurrentMonth(newMonth));},style:{fontSize:isMobile?\"12px\":\"14px\",fontWeight:\"600\",color:textColor,backgroundColor:\"white\",border:`1px solid ${borderColor}`,borderRadius:\"6px\",padding:isMobile?\"3px 5px\":\"4px 6px\",cursor:\"pointer\",...font},children:yearOptions.map(year=>/*#__PURE__*/_jsx(\"option\",{value:year,children:year},year))})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>{const newMonth=new Date(currentMonth);newMonth.setMonth(newMonth.getMonth()+1);startTransition(()=>setCurrentMonth(newMonth));},style:{background:\"none\",border:\"none\",fontSize:isMobile?\"14px\":\"16px\",cursor:\"pointer\",padding:isMobile?\"6px\":\"8px\",borderRadius:\"8px\",color:textColor,flexShrink:0},children:\"→\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",gap:isMobile?\"2px\":\"4px\",marginBottom:isMobile?\"6px\":\"8px\"},children:dayNames.map(day=>/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",fontSize:isMobile?\"9px\":\"11px\",fontWeight:\"600\",color:\"#666\",padding:isMobile?\"3px\":\"6px\",...labelFont},children:day},day))}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(7, 1fr)\",gap:isMobile?\"2px\":\"4px\"},children:getDaysInMonth(currentMonth).map((date,index)=>{if(!date){return /*#__PURE__*/_jsx(\"div\",{style:{padding:isMobile?\"8px\":\"12px\"}},index);}const isDisabled=date<today;const isSelected=checkInDate&&date.getTime()===checkInDate.getTime()||checkOutDate&&date.getTime()===checkOutDate.getTime();const isInRange=isDateInRange(date);const isRangeStart=isDateRangeStart(date);const isRangeEnd=isDateRangeEnd(date);// Check if date is in hover range for checkout mode\nconst isInHoverRange=calendarMode===\"checkout\"&&checkInDate&&hoveredDate&&date>checkInDate&&date<hoveredDate;// Check if this is the hovered end date\nconst isHoveredEnd=calendarMode===\"checkout\"&&hoveredDate&&date.getTime()===hoveredDate.getTime();return /*#__PURE__*/_jsx(\"button\",{onClick:()=>{if(!isDisabled){markInteraction();handleDateClick(date);}},onMouseEnter:()=>{if(calendarMode===\"checkout\"&&checkInDate&&!isDisabled){startTransition(()=>setHoveredDate(date));}},onMouseLeave:()=>{startTransition(()=>setHoveredDate(null));},disabled:isDisabled,style:{padding:isMobile?\"6px 3px\":\"8px\",border:\"none\",borderRadius:isRangeStart?\"50% 0 0 50%\":isRangeEnd||isHoveredEnd?\"0 50% 50% 0\":isInRange||isInHoverRange?\"0\":\"50%\",backgroundColor:isSelected?primaryColor:isHoveredEnd?discountBackgroundColor:isInRange||isInHoverRange?`rgba(135, 115, 86, 0.3)`:\"transparent\",color:isSelected?\"white\":isHoveredEnd?\"white\":isDisabled?\"#ccc\":textColor,cursor:isDisabled?\"not-allowed\":\"pointer\",fontSize:isMobile?\"11px\":\"13px\",fontWeight:isSelected||isHoveredEnd?\"600\":\"400\",transition:\"all 0.2s ease\",minHeight:isMobile?\"28px\":\"auto\",opacity:isDisabled?.4:1,...font},children:date.getDate()},index);})}),isMobile&&/*#__PURE__*/_jsx(\"div\",{style:{borderTop:`1px solid ${borderColor}`,marginTop:\"10px\",padding:\"8px 2px calc(8px + env(safe-area-inset-bottom))\",backgroundColor:discountBackgroundColor,color:discountTextColor,borderRadius:\"12px\",display:\"flex\",flexDirection:\"column\",gap:\"4px\"},children:renderMobileCalendarDiscountContent()})]})})]})]});}addPropertyControls(BookingForm,{propertyId:{type:ControlType.String,title:\"Property ID\",defaultValue:\"9vuVnf\",placeholder:\"Enter property ID\"},bannerColor:{type:ControlType.Color,title:\"Banner Color\",defaultValue:\"#877356\"},bannerTextColor:{type:ControlType.Color,title:\"Banner Text\",defaultValue:\"#FFFFFF\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},primaryColor:{type:ControlType.Color,title:\"Primary Color\",defaultValue:\"#877356\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#DDDDDD\"},shadowColor:{type:ControlType.Color,title:\"Shadow Color\",defaultValue:\"rgba(0, 0, 0, 0.15)\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},labelFont:{type:ControlType.Font,title:\"Label Font\",defaultValue:{fontSize:\"12px\",variant:\"Medium\",letterSpacing:\"0em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},buttonFont:{type:ControlType.Font,title:\"Button Font\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"0em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},forceMobileMode:{type:ControlType.Boolean,title:\"Force Mobile Mode\",defaultValue:false,enabledTitle:\"Mobile\",disabledTitle:\"Auto\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:16,min:0,max:48,step:4,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:16,min:0,max:32,step:2,unit:\"px\"},panelAbove:{type:ControlType.Boolean,title:\"Panel Above\",defaultValue:false,enabledTitle:\"Above\",disabledTitle:\"Below\"},compact:{type:ControlType.Boolean,title:\"Compact (Persistent)\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BookingForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framer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