{"version":3,"file":"BaseBooklaComponent.CdrSyFtU.mjs","names":["useMemo","BooklaSDK","useState","useRef","uuid","useCallback","error","FormView","_Fragment","DatePicker","ResourcePicker","TimePicker","AddonsPicker","CodeField","AcceptTerms"],"sources":["https:/framerusercontent.com/modules/aAISrJOcNslmECdBIuH6/eSYkr0OjXUa7PzraDg12/BaseBooklaComponent.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import DatePicker from\"https://framerusercontent.com/modules/ONd2gzYdinvDzO8zXcxq/pD1K2KUp435iu5R319xm/DatePicker.js\";import TimePicker from\"https://framerusercontent.com/modules/R1swBv2gZiy9nRMk3H4s/bJ4fdG1CXGiDEJBHkTkU/TimePicker.js\";import FormView,{customFormPropertyControls}from\"https://framerusercontent.com/modules/6HKiEuZG4q1lGPyooYq3/uw1ZNczVMj9zWWhx4prK/FormView.js\";import ResourcePicker from\"https://framerusercontent.com/modules/KbLkPmFoswCXpce2Acyb/sbrQ8BQ5ktgGdAQNvik8/ResourcePicker.js\";import{useState,useEffect,useMemo,useRef,useCallback}from\"react\";import{ControlType}from\"framer\";import{adjustToSize,getRouteId}from\"https://framerusercontent.com/modules/yMu9AtrvZjKjtSUz4NJg/xChxVXI0xYCscQVZjf7o/Utils.js\";import{headline2,spinnerStyle}from\"https://framerusercontent.com/modules/1Jy8oQunPSXjUAa9kZlG/GPOK7OB59hHCUkIPhV7u/Styles.js\";import AcceptTerms,{acceptTermsPropertyControls}from\"https://framerusercontent.com/modules/aOva5I3JJ3g24FlkcCDD/Q3etssMjmMohELUw00cL/AcceptTerms.js\";import CodeField,{CodeValidationState}from\"https://framerusercontent.com/modules/qYb8X84BeoOu1h0BvHkM/0BwZMhl4wckEu0lXQWEM/CodeField.js\";import{BooklaSDK}from\"https://esm.sh/@bookla-app/react-client-sdk@0.6.2\";import{v4 as uuid}from\"uuid\";// @ts-ignore\nimport{useRouter}from\"framer\";import AddonsPicker from\"https://framerusercontent.com/modules/5fxisXM1u7XfMKYefg7y/KieNyAnGJfuYOCWnIUAY/AddonsPicker.js\";// Singleton instance of SDK\nlet sdkInstance=null;export const useBookla=(apiUrl,apiKey)=>{return useMemo(()=>{if(sdkInstance){sdkInstance=null;}// Create new instance with updated credentials\nsdkInstance=new BooklaSDK({apiUrl:apiUrl,apiKey:apiKey,debug:false,retry:{maxAttempts:3,delayMs:1e3,statusCodesToRetry:[408,429,500,502,503,504]}});return sdkInstance;},[apiUrl,apiKey])// Add dependencies to trigger reinitialization\n;};export var BaseComponentStep;(function(BaseComponentStep){BaseComponentStep[BaseComponentStep[\"Date\"]=0]=\"Date\";BaseComponentStep[BaseComponentStep[\"CustomForm\"]=1]=\"CustomForm\";BaseComponentStep[BaseComponentStep[\"TicketSelect\"]=2]=\"TicketSelect\";BaseComponentStep[BaseComponentStep[\"Guest\"]=3]=\"Guest\";BaseComponentStep[BaseComponentStep[\"Form\"]=4]=\"Form\";BaseComponentStep[BaseComponentStep[\"Success\"]=5]=\"Success\";BaseComponentStep[BaseComponentStep[\"Pending\"]=6]=\"Pending\";BaseComponentStep[BaseComponentStep[\"Error\"]=7]=\"Error\";})(BaseComponentStep||(BaseComponentStep={}));// Custom hook for common Bookla functionality\nexport const useBooklaBase=props=>{const{navigate,routes}=useRouter();const region=props.prodMode===undefined||props.prodMode===true?props.bkla.apiRegion:\"dev-api\";const apiUrl=\"https://\"+region+\".bookla.com/api\";const bookla=useBookla(apiUrl,props.bkla.apiKey);const[loading,setLoading]=useState(false);const[submiting,setSubmiting]=useState(false);const[timeSlots,setTimeSlots]=useState([]);const[selectedTime,setSelectedTime]=useState(null);const[clientData,setClientData]=useState(undefined);const[resources,setResources]=useState([]);const[timeZone,setTimeZone]=useState(Intl.DateTimeFormat().resolvedOptions().timeZone);const[error,setError]=useState(null);//code-related state\nconst[code,setCodeInternal]=useState(\"\");const[codeValidationState,setCodeValidationState]=useState(CodeValidationState.None);const[booklaClientId,setBooklaClientId]=useState(\"\");const[booklaClientEmail,setBooklaClientEmail]=useState(\"\");const preselectedDate=()=>{if(props.selectedDate===undefined){return new Date;}let presDate=new Date(props.selectedDate);let curDate=new Date;return presDate.getTime()<curDate.getTime()?curDate:presDate;};const[availableDates,setAvailableDates]=useState([]);const[selectedDate,setSelectedDate]=useState(preselectedDate());const[selectedResourceID,setSelectedResourceID]=useState(props.selectedResourceID&&props.selectedResourceID!==\"\"?props.selectedResourceID:null);const[termsAccepted,setTermsAccepted]=useState(false);const clientUUID=useRef(uuid()).current;const[isAuthorized,setIsAuthorized]=useState(false);const[formRef,setFormRef]=useState(null);const[formData,setFormData]=useState({});const[addons,setAddons]=useState([]);const[selectedAddons,setSelectedAddons]=useState([]);const[addonsLoading,setAddonsLoading]=useState(false);const validateAndProceed=()=>{if(props.customForm?.fields?.length>0){const validation=formRef?.validateForm?.();if(!validation?.isValid){return false;}}return true;};const handleClientDataChange=useCallback(data=>{if(data.email!==\"\"){data.id=clientUUID;setClientData(data);}else{setClientData(null);}},[clientUUID]);const handleFormDataChange=useCallback(data=>{handleClientDataChange({email:data[\"email\"]??\"\",firstName:data[\"firstName\"],lastName:data[\"lastName\"]});const{email,firstName,lastName,...rest}=data;setFormData(prev=>{const keys=Object.keys(rest);if(keys.length===Object.keys(prev).length&&keys.every(k=>prev[k]===rest[k]))return prev;return rest;});},[handleClientDataChange]);const getServiceData=async()=>{if(props.bkla.companyID===\"\"||props.serviceID===\"\"){return;}setLoading(true);setError(null);try{const response=await bookla.services.get(props.bkla.companyID,props.serviceID);setResources(response.resources??[]);if(response.timeZone&&props.localTime===true){setTimeZone(response.timeZone);}return response;}catch(err){setError(\"Failed to load service data: \"+err);}finally{setLoading(false);}};const proceedToRoute=route=>{let routeId=getRouteId(routes,route);if(routeId===\"\"){routeId=getRouteId(routes,\"/\");}navigate(routeId,\"\");};const fetchAvailableDates=async(duration,participants,tickets)=>{if(props.bkla.companyID===\"\"||props.serviceID===\"\"){setAvailableDates([]);return;}try{const today=preselectedDate();today.setHours(0,0,0,0);const threeMonthsLater=new Date(today);threeMonthsLater.setMonth(today.getMonth()+3);threeMonthsLater.setHours(23,59,59,999);const params={from:today.toISOString(),to:threeMonthsLater.toISOString()};if(selectedResourceID){params.resourceIDs=[selectedResourceID];}if(duration){params.duration=duration;}if(participants){params.spots=participants;}if(tickets){params.tickets=tickets;}const response=await bookla.services.getDates(props.bkla.companyID,props.serviceID,params);const allDates=Object.values(response.dates).flat();const uniqueDates=[...new Set(allDates)].sort();setAvailableDates(uniqueDates);}catch(err){console.error(\"Failed to load available dates:\",err);setAvailableDates([]);}};const setCode=async(codeValue,tickets)=>{setCodeInternal(codeValue);if(!codeValue.trim()){setCodeValidationState(CodeValidationState.None);setBooklaClientId(\"\");setBooklaClientEmail(\"\");return;}// Set loading state\nsetCodeValidationState(CodeValidationState.Loading);try{// Validate code using bookla SDK\nconst req={companyID:props.bkla.companyID,serviceID:props.serviceID,resourceID:selectedTime?.resourceID||\"\",startTime:selectedTime?new Date(selectedTime.timeSlot.startTime).toISOString():new Date().toISOString(),spots:1,duration:selectedTime?.timeSlot.duration,...tickets&&{tickets}};const response=await bookla.codes.validateCode(codeValue.trim(),req);if(response.canApply){setCodeValidationState(CodeValidationState.Valid);if(response.clientID&&response.clientID!==\"\"&&response.clientID!==\"00000000-0000-0000-0000-000000000000\"&&response.clientEmail&&response.clientEmail!==\"\"){// If the code is valid and has a client ID, set the Bookla Client ID\nsetBooklaClientId(response.clientID);setBooklaClientEmail(response.clientEmail||\"\");}}else{setCodeValidationState(CodeValidationState.Invalid);setBooklaClientId(\"\");setBooklaClientEmail(\"\");}}catch(error){console.error(\"Code validation failed:\",error);setCodeValidationState(CodeValidationState.Invalid);setBooklaClientId(\"\");setBooklaClientEmail(\"\");}};// Check if user is authorized (including Bookla client ID from code)\nconst isAuthorizedWithCode=()=>{if(booklaClientId&&booklaClientId!==\"\"){return true;}return isAuthorized;};const fetchAddons=async()=>{if(!props.bkla.companyID||!props.serviceID)return;setAddonsLoading(true);try{const response=await bookla.addons.discoverAddons(props.bkla.companyID,props.serviceID);setAddons(response.items||[]);}catch(err){console.error(\"Failed to load addons:\",err);setAddons([]);}finally{setAddonsLoading(false);}};const handleAddonsChange=selected=>{setSelectedAddons(selected);};useEffect(()=>{const checkAuth=async()=>{if(props.clientTokens){bookla.setAuthTokens(props.clientTokens);const authState=await bookla.isAuthenticated();setIsAuthorized(authState.isAuthenticated);}else{bookla.clearAuth();setIsAuthorized(false);}};checkAuth();},[props.clientTokens,setIsAuthorized]);useEffect(()=>{if(props.datesCount?.focusOnFirstAvailableDate&&availableDates.length>0&&props.selectedDate===undefined){const firstDate=new Date(availableDates[0]);setSelectedDate(firstDate);}},[availableDates,props.datesCount?.focusOnFirstAvailableDate,props.selectedDate]);return{bookla,loading,setLoading,submiting,setSubmiting,timeSlots,setTimeSlots,selectedTime,setSelectedTime,clientData,resources,error,setError,selectedDate,setSelectedDate,selectedResourceID,setSelectedResourceID,isAuthorized,handleClientDataChange,getServiceData,proceedToRoute,termsAccepted,setTermsAccepted,timeZone,formData,setFormData,formRef,validateAndProceed,availableDates,fetchAvailableDates,handleFormDataChange,code,setCode,codeValidationState,booklaClientId,booklaClientEmail,isAuthorizedWithCode,//addons\naddons,selectedAddons,addonsLoading,fetchAddons,handleAddonsChange};};export function formatSlots(response){const times=response[\"times\"];const resourceIDs=Object.keys(times);let timeSlots=resourceIDs.flatMap(resourceID=>{return times[resourceID].map(time=>{return{timeSlot:time,resourceID:resourceID};});});// Sort by time first\ntimeSlots=timeSlots.sort((a,b)=>{return new Date(a.timeSlot.startTime).getTime()-new Date(b.timeSlot.startTime).getTime();});// Group slots by time using timestamp as key\nconst uniqueTimeSlots=new Map;timeSlots.forEach(slot=>{const timeKey=new Date(slot.timeSlot.startTime).getTime();if(!uniqueTimeSlots.has(timeKey)){uniqueTimeSlots.set(timeKey,[]);}uniqueTimeSlots.get(timeKey).push(slot);});// Randomly pick one slot from each time group\nconst result=Array.from(uniqueTimeSlots.entries()).sort((a,b)=>a[0]-b[0])// Sort by timestamp to maintain order\n.map(([timestamp,slotsAtSameTime])=>{const randomIndex=Math.floor(Math.random()*slotsAtSameTime.length);const selected=slotsAtSameTime[randomIndex];return selected;});return result;}// Base component with common UI elements\nexport const BooklaBaseComponent=({props,state,onTimeChange,onResourceChange,onDateChange,proceedToNextStep,onBack,currentStep,buttonTitle,additionalControls,tickets})=>{const datePickerRef=useRef(null);const bookButtonEnabled=!state.submiting&&(state.isAuthorizedWithCode()||props.guestMode)&&state.selectedTime!==null&&(!props.showTerms||state.termsAccepted);const formRef=useRef();const containerStyle={height:\"100%\",width:\"100%\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"};const buttonStyle=isDisabled=>({...headline2,fontFamily:props.fontFamily!==\"\"?props.fontFamily:null,width:\"100%\",margin:\"0 auto\",border:\"none\",padding:adjustToSize(16,props.size),backgroundColor:props.button.bgColor,color:props.button.textColor,fontSize:adjustToSize(17,props.size),borderRadius:props.button.borderRadius,opacity:isDisabled||state.submiting?.2:1,cursor:state.submiting?\"not-allowed\":\"pointer\"});const handleProceed=()=>{if(currentStep===4){const validation=formRef.current?.validateForm();if(!validation?.isValid){return;}}proceedToNextStep();};const timeChangeHandler=slot=>{onTimeChange(slot);if(props.addonsEnabled){state.fetchAddons();}};const rootRef=useRef(null);const didMount=useRef(false);useEffect(()=>{if(!didMount.current){didMount.current=true;return;}const el=rootRef.current;if(!el)return;const reduceMotion=typeof window!==\"undefined\"&&window.matchMedia?.(\"(prefers-reduced-motion: reduce)\")?.matches;// Wait one frame so the new step has rendered and layout is stable\nrequestAnimationFrame(()=>{const top=el.getBoundingClientRect().top+window.scrollY-12// small offset; tweak if you have a sticky header\n;window.scrollTo({top,behavior:reduceMotion?\"auto\":\"smooth\"});});},[currentStep]);return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:containerStyle,children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes spin {\n                    0% { transform: translateY(-50%) rotate(0deg); }\n                    100% { transform: translateY(-50%) rotate(360deg); }\n                }\n                `}),currentStep===4?/*#__PURE__*/_jsx(FormView,{ref:formRef,size:props.size,backgroundColor:props.backgroundColor,primaryColor:props.primaryColor,secondaryColor:props.secondaryColor,padding:props.blocks.padding,border:props.blocks.border,borderRadius:props.blocks.borderRadius,itemTextColor:props.primaryColor,itemBgColor:props.item.bgColor,itemBorderRadius:props.item.borderRadius,enabled:!state.submiting,onDataChange:state.handleFormDataChange,error:state.error,fields:props.customForm.fields,fontFamily:props.fontFamily,title:props.guestMode?props.guestModeTexts.title:props.customForm.formTitle,subtitle:props.guestMode?props.guestModeTexts.subtitle:props.customForm.formSubtitle,firstName:props.guestModeTexts.firstName,lastName:props.guestModeTexts.lastName,email:props.guestModeTexts.email,onBack:onBack,guestFormEnabled:props.guestMode,booklaClientId:state.booklaClientId,isClientAuthenticated:state.isAuthorized}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(DatePicker,{ref:datePickerRef,size:props.size,padding:props.blocks.padding,startOnMonday:true,primary:props.primaryColor,onDateChange:onDateChange,border:props.blocks.border,borderRadius:props.blocks.borderRadius,backgroundColor:props.backgroundColor,itemBgColor:props.item.bgColor,itemSelectColor:props.item.selectColor,itemTextColor:props.primaryColor,itemSecondaryTextColor:props.secondaryColor,itemSelectedTextColor:props.item.selectedTextColor,itemSelectedSecondaryTextColor:props.item.selectedSecondaryTextColor,itemBorderRadius:props.item.borderRadius,fontFamily:props.fontFamily,value:state.selectedDate,locale:props.locale,minDates:props.datesCount?.min??3,maxDates:props.datesCount?.max??7,availableDates:state.availableDates}),additionalControls,props.resourcePicker.visible&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{padding:adjustToSize(props.blocks.gap,props.size)}}),/*#__PURE__*/_jsx(ResourcePicker,{size:props.size,padding:props.blocks.padding,title:props.resourcePicker.selectResourceText,backgroundColor:props.backgroundColor,border:props.blocks.border,borderRadius:props.blocks.borderRadius,itemBgColor:props.item.bgColor,itemSelectColor:props.item.selectColor,itemSecondaryTextColor:props.secondaryColor,itemTextColor:props.primaryColor,itemBorderRadius:props.item.borderRadius,itemSelectedTextColor:props.item.selectedTextColor,anyResourceText:props.resourcePicker.anyResourceText,fontFamily:props.fontFamily,resources:state.resources,selectedResourceID:props.selectedResourceID,onResourceChange:onResourceChange})]}),/*#__PURE__*/_jsx(\"div\",{style:{padding:adjustToSize(props.blocks.gap,props.size)}}),/*#__PURE__*/_jsx(TimePicker,{size:props.size,padding:props.blocks.padding,isLoading:state.loading,backgroundColor:props.backgroundColor,border:props.blocks.border,borderRadius:props.blocks.borderRadius,itemBgColor:props.item.bgColor,itemSelectColor:props.item.selectColor,itemTextColor:props.primaryColor,itemSecondaryTextColor:props.secondaryColor,itemSelectedTextColor:props.item.selectedTextColor,itemSelectedSecondaryTextColor:props.item.selectedSecondaryTextColor,itemBorderRadius:props.item.borderRadius,fontFamily:props.fontFamily,locale:props.locale,times:state.timeSlots,timeZone:state.timeZone,noTimesText:props.texts.noTimes,onTimeChange:timeChangeHandler,priceConfig:props.priceConfig??{showPrice:true,showComparedPrice:true,showDecimalPlaces:true},availableDates:state.availableDates,selectedDate:state.selectedDate,onDateChange:newDate=>{// Call the DatePicker's doChangeDate method directly\ndatePickerRef.current?.doChangeDate(newDate);// Also call the original onDateChange\nonDateChange(newDate);},viewStyle:props.timeConfig.style,selectLabel:props.timeConfig.label}),props.addonsEnabled&&state.selectedTime&&state.addons.length>0&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{padding:adjustToSize(props.blocks.gap,props.size)}}),/*#__PURE__*/_jsx(AddonsPicker,{size:props.size,padding:props.blocks.padding,backgroundColor:props.backgroundColor,border:props.blocks.border,borderRadius:props.blocks.borderRadius,itemBgColor:props.item.bgColor,itemSelectColor:props.item.selectColor,itemTextColor:props.primaryColor,itemSecondaryTextColor:props.secondaryColor,itemSelectedTextColor:props.item.selectedTextColor,listItemBorder:props.addonConfig.styles.border,listItemBg:props.addonConfig.styles.bgColor,itemBorderRadius:props.item.borderRadius,fontFamily:props.fontFamily,locale:props.locale,addons:state.addons,selectedAddons:state.selectedAddons,onAddonsChange:state.handleAddonsChange,priceConfig:props.priceConfig,isLoading:state.addonsLoading,enabled:!state.submiting,texts:props.addonConfig.texts,bookla:state.bookla,companyID:props.bkla.companyID,serviceID:props.serviceID,slotDuration:state.selectedTime.timeSlot.duration})]}),props.codeField&&props.codeField.enabled&&state.selectedTime&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{padding:adjustToSize(props.blocks.gap,props.size)}}),/*#__PURE__*/_jsx(CodeField,{size:props.size,backgroundColor:props.backgroundColor,border:props.blocks.border,borderRadius:props.blocks.borderRadius,padding:props.blocks.padding,itemBgColor:props.item.bgColor,itemTextColor:props.primaryColor,itemSecondaryTextColor:props.secondaryColor,itemBorderRadius:props.item.borderRadius,fontFamily:props.fontFamily,code:state.code,codeValidationState:state.codeValidationState,onCodeChange:codeValue=>state.setCode(codeValue,tickets),fieldLabel:props.codeField.fieldLabel,fieldPlaceholder:props.codeField.fieldPlaceholder,fieldError:props.codeField.fieldError,notFoundError:props.codeField.notFoundError,enabled:props.codeField.enabled})]}),props.showTerms&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{padding:adjustToSize(props.blocks.gap,props.size)}}),/*#__PURE__*/_jsx(AcceptTerms,{padding:props.blocks.padding,size:props.size,borderRadius:props.blocks.borderRadius,backgroundColor:props.backgroundColor,itemBgColor:props.item.bgColor,itemSelectColor:props.item.selectColor,itemTextColor:props.primaryColor,itemSecondaryTextColor:props.secondaryColor,fontFamily:props.fontFamily,text:props.terms.text,highlightedText:props.terms.highlightedText,termsLink:props.terms.termsLink,accepted:state.termsAccepted,onAcceptChange:state.setTermsAccepted})]})]}),/*#__PURE__*/_jsx(\"div\",{style:{padding:adjustToSize(props.blocks.gap,props.size)}}),state.isAuthorizedWithCode()||props.guestMode?/*#__PURE__*/_jsxs(\"button\",{style:buttonStyle(!bookButtonEnabled),disabled:!bookButtonEnabled,onClick:handleProceed,children:[buttonTitle(),state.submiting&&/*#__PURE__*/_jsx(\"div\",{style:spinnerStyle(props.item.selectedTextColor)})]}):/*#__PURE__*/_jsx(\"button\",{style:buttonStyle(false),onClick:()=>{window.location.href=\"/login\";},children:props.texts.loginToBook})]});};const formInputTypes=[\"checkbox\",\"text\",\"number\",\"select\",\"radio\"];// Base property controls that are common to all Bookla components\nexport const basePropertyControls={size:{type:ControlType.Enum,title:\"Size\",defaultValue:\"md\",options:[\"sm\",\"md\",\"lg\"],optionTitles:[\"Small\",\"Medium\",\"Large\"]},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"white\"},primaryColor:{type:ControlType.Color,title:\"Primary\",defaultValue:\"black\"},secondaryColor:{type:ControlType.Color,title:\"Secondary\",defaultValue:\"#666\"},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Inter\"},item:{type:ControlType.Object,title:\"Item\",controls:{bgColor:{type:ControlType.Color,title:\"Bg Color\",defaultValue:\"#f5f5f5\"},selectColor:{type:ControlType.Color,title:\"Brand\",defaultValue:\"black\"},selectedTextColor:{type:ControlType.Color,title:\"Primary On Brand\",defaultValue:\"white\"},selectedSecondaryTextColor:{type:ControlType.Color,title:\"Secondary On Brand\",defaultValue:\"white\"},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:\"8px\",step:1}}},blocks:{type:ControlType.Object,title:\"Blocks\",controls:{gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"20px\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:2,borderStyle:\"solid\",borderColor:\"#F5F5F5\"}},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:\"16px\",step:1}}},button:{type:ControlType.Object,title:\"Button\",controls:{bgColor:{type:ControlType.Color,title:\"Bg Color\",defaultValue:\"black\"},textColor:{type:ControlType.Color,title:\"Text color\",defaultValue:\"white\"},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:\"32px\",step:1}}},datesCount:{type:ControlType.Object,title:\"Dates count\",controls:{min:{type:ControlType.Number,title:\"Min\",defaultValue:3},max:{type:ControlType.Number,title:\"Max\",defaultValue:7},focusOnFirstAvailableDate:{type:ControlType.Boolean,title:\"Select first available date\",defaultValue:false,description:\"The first available date will be preselected automatically if enabled.\"}}},locale:{type:ControlType.String,title:\"Locale\",defaultValue:\"en-US\"},localTime:{type:ControlType.Boolean,title:\"Use local time\",defaultValue:true},timeConfig:{type:ControlType.Object,title:\"Time Config\",controls:{style:{type:ControlType.Enum,title:\"Style\",defaultValue:\"grid\",options:[\"grid\",\"select\"],optionTitles:[\"Grid\",\"Select\"]},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Select time\",hidden:props=>props.style===\"grid\"}}},guestMode:{type:ControlType.Boolean,title:\"Guest mode\",defaultValue:true},guestModeTexts:{type:ControlType.Object,title:\"Guest texts\",hidden(props){return props.guestMode===false;},controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Client's data\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"Please fill the form below\"},firstName:{type:ControlType.String,title:\"First Name\",defaultValue:\"First Name\"},lastName:{type:ControlType.String,title:\"Last Name\",defaultValue:\"Last Name\"},email:{type:ControlType.String,title:\"Email\",defaultValue:\"Email\"}}},resourcePicker:{type:ControlType.Object,title:\"Resource selector\",controls:{visible:{type:ControlType.Boolean,title:\"Visible\",defaultValue:true},selectResourceText:{type:ControlType.String,title:\"Select resource\",defaultValue:\"Select resource\"},anyResourceText:{type:ControlType.String,title:\"Any resource\",defaultValue:\"Any resource\"}}},codeField:{type:ControlType.Object,title:\"Code Field\",controls:{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:false},fieldLabel:{type:ControlType.String,title:\"Field Label\",defaultValue:\"Promo Code\",hidden:props=>props.enabled===false},fieldPlaceholder:{type:ControlType.String,title:\"Field Placeholder\",defaultValue:\"XXXX-XXXX\",hidden:props=>props.enabled===false},fieldError:{type:ControlType.String,title:\"Field Error\",defaultValue:\"This field is required\",hidden:props=>props.enabled===false},notFoundError:{type:ControlType.String,title:\"Not Found Error\",defaultValue:\"Code not found or invalid\",hidden:props=>props.enabled===false}}},priceConfig:{type:ControlType.Object,title:\"Price Config\",controls:{showPrice:{type:ControlType.Boolean,title:\"Price\",defaultValue:true},showComparedPrice:{type:ControlType.Boolean,title:\"Compared Price\",defaultValue:true},showDecimalPlaces:{type:ControlType.Boolean,title:\"Decimal Places\",defaultValue:true}}},...acceptTermsPropertyControls,routes:{type:ControlType.Object,title:\"Routes\",controls:{confirmed:{type:ControlType.Link,title:\"Confirmed\",defaultValue:\"/\"},pending:{type:ControlType.Link,title:\"Pending\",defaultValue:\"/\"}}},texts:{type:ControlType.Object,title:\"Texts\",controls:{noTimes:{type:ControlType.String,title:\"No times message\",defaultValue:\"Sorry, but no times are available for this date\"},continue:{type:ControlType.String,title:\"Continue\",defaultValue:\"Continue\"},makeBooking:{type:ControlType.String,title:\"Book\",defaultValue:\"Make booking\"},loginToBook:{type:ControlType.String,title:\"Login button\",defaultValue:\"Please login to book\"}}},...customFormPropertyControls,bkla:{type:ControlType.Object,title:\"Bookla\",controls:{apiRegion:{type:ControlType.Enum,title:\"API region\",defaultValue:\"us\",options:[\"us\",\"eu\"],optionTitles:[\"U.S.\",\"Europe\"]},apiKey:{type:ControlType.String,title:\"API Key\",defaultValue:\"\"},companyID:{type:ControlType.String,title:\"Company ID\",defaultValue:\"\"}}},prodMode:{type:ControlType.Boolean,title:\"Prod mode\",hidden:props=>props.texts.loginToBook!==\"dev\",defaultValue:true},addonsEnabled:{type:ControlType.Boolean,title:\"Add-ons Enabled\",defaultValue:false},addonConfig:{type:ControlType.Object,title:\"Add-ons config\",hidden:props=>props.addonsEnabled===false,controls:{texts:{type:ControlType.Object,title:\"Texts\",controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Add-ons\"},required:{type:ControlType.String,title:\"Required\",defaultValue:\"Required\"},selectOption:{type:ControlType.String,title:\"Select placeholder\",defaultValue:\"Select an Option\"},total:{type:ControlType.String,title:\"Total\",defaultValue:\"Total Add-ons:\"}}},styles:{type:ControlType.Object,title:\"Styles\",controls:{border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:2,borderStyle:\"solid\",borderColor:\"#EFEFEF\"}},bgColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFF\"}}}}},serviceID:{type:ControlType.String,title:\"Service ID\",defaultValue:\"\"},selectedResourceID:{type:ControlType.String,title:\"Resource ID\",defaultValue:\"\",description:\"This property can be used to pre-select specific resource.\"}};// Helper function to merge property controls\nexport const mergePropertyControls=(baseControls,additionalControls,componentType)=>{const filteredBaseControls={...baseControls};if(componentType===\"days\"){// Remove locale control for days component\n//delete filteredBaseControls.locale\n// Remove datesCount control for days component\ndelete filteredBaseControls.datesCount;}return{...filteredBaseControls,...additionalControls,// Special handling for nested objects that need to be merged\ntexts:additionalControls.texts?{...baseControls.texts,controls:{...baseControls.texts.controls,...additionalControls.texts.controls}}:baseControls.texts};};\nexport const __FramerMetadata__ = {\"exports\":{\"BooklaBaseProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatSlots\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useBookla\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useBooklaBase\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BooklaBaseComponent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"basePropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mergePropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BaseComponentStep\":{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