{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/OhYtuui3SAlci95ntOVQ/MJ32PW80VTh4vbrkt1JN/Availabilities.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{initializeApp,getApps}from\"firebase/app\";import{getAuth,onAuthStateChanged}from\"firebase/auth\";import{getFirestore,doc,collection,query,where,getDocs}from\"firebase/firestore\";import{useState,useEffect}from\"react\";// Learn more: https://www.framer.com/docs/guides/overrides/\n// Configuration de Firebase - remplacez ceci par vos propres cl\u00E9s\nconst firebaseConfig={apiKey:\"AIzaSyCB9gOlRlul_-a0os70OP717-bPa9epvac\",authDomain:\"location-voisins.firebaseapp.com\",projectId:\"location-voisins\",storageBucket:\"location-voisins.appspot.com\",messagingSenderId:\"33753739528\",appId:\"1:33753739528:web:326f9364e5edb226bfbcbd\",measurementId:\"G-XC9KGH5FJ1\"};// Initialiser Firebase\nif(!getApps().length){initializeApp(firebaseConfig);}/*else {\n    getApps().forEach((app) => {\n        console.log(\"D\u00E9tails de l'application :\", app.name, app.options)\n    })\n}*/function formatDateToYYYYMMDD(dateString){const dateObj=new Date(dateString);const year=dateObj.getFullYear();const month=dateObj.getMonth()+1// getMonth() renvoie 0-11\n;const day=dateObj.getDate();// Ajouter un z\u00E9ro devant pour les mois et jours \u00E0 un chiffre\nconst monthFormatted=month<10?`0${month}`:month;const dayFormatted=day<10?`0${day}`:day;return`${year}-${monthFormatted}-${dayFormatted}`;}// Fonction pour calculer la date future\nfunction calculateFutureDate(baseDate,hours,allowWeekend){const futureDate=new Date(baseDate);// TODO : Ajouter le weekend. On ne doit pas pouvoir d\u00E9marrer le samedi ou le dimanche\n// TODO : le 16 nov \u00E0 22h je ne peut pas r\u00E9server avant Vendredi 22h. dans ce cas on arrive sur le weekend donc pas avant lundi. Pas top.... si j'ai une date calcul\u00E9 17nov 22h. Il faudrait permettre jusqu'\u00E0 minuit de r\u00E9server pour le lendemain 18h. \u00E7a semble donc bon!\nfutureDate.setHours(futureDate.getHours()+hours);// Si les week-ends ne sont pas autoris\u00E9s, ajustez la date pour \u00E9viter le week-end\nif(!allowWeekend){while(isWeekend(futureDate)){futureDate.setDate(futureDate.getDate()+1)// Ajoutez un jour jusqu'\u00E0 ce que ce ne soit plus un week-end\n;}}return futureDate;}function isWeekend(date){const dayOfWeek=date.getDay();return dayOfWeek===6||dayOfWeek===0// 6 = Samedi, 0 = Dimanche\n;}function toDateFull(shortDate){return new Date(shortDate+\"T05:00:00.000Z\").toLocaleDateString(\"fr-CA\",{weekday:\"short\",month:\"long\",day:\"numeric\"});}function determineStartDate(selectedStartDate,allowWeekend){let startDate=new Date(selectedStartDate+\"T05:00:00.000Z\");// Si les week-ends ne sont pas autoris\u00E9s, ajustez la date pour \u00E9viter le week-end\nif(!allowWeekend){while(isWeekend(startDate)){startDate.setDate(startDate.getDate()+1)// Ajoutez un jour jusqu'\u00E0 ce que ce ne soit plus un week-end\n;}}return startDate.toISOString().split(\"T\")[0];}function determineEndDate(startDate,selectedEndDate,daysBetween,allowWeekend){let endDate=calculateFutureDate(startDate,daysBetween*24,allowWeekend);if(selectedEndDate){const selectedEndDateObj=new Date(selectedEndDate);const startDateObj=new Date(startDate+\"T05:00:00.000Z\");if(selectedEndDateObj>endDate){endDate=selectedEndDateObj;}}// Si les week-ends ne sont pas autoris\u00E9s, ajustez la date pour \u00E9viter le week-end\nif(!allowWeekend){while(isWeekend(endDate)){endDate.setDate(endDate.getDate()+1)// Ajoutez un jour jusqu'\u00E0 ce que ce ne soit plus un week-end\n;}}return endDate.toISOString().split(\"T\")[0];}function calculateDuration(startDate,endDate){// Calculer la diff\u00E9rence en jours\nconst startDateObj=new Date(startDate);const endDateObj=new Date(endDate);const diffTime=Math.abs(endDateObj.getTime()-startDateObj.getTime());const diffDays=Math.ceil(diffTime/(1e3*60*60*24));return diffDays;}function getUnitPrice(price,price3,price7,diffDays){let unitPrice=price// Valeur par d\u00E9faut\n;if(diffDays>=5&&price7){unitPrice=price7// Utiliser le priceId pour 7 jours ou plus\n;}else if(diffDays>=3&&price3){unitPrice=price3// Utiliser le priceId pour 3 jours ou plus\n;}return unitPrice;}const useStore=createStore({documentId:null,accountId:null,email:null,itemCommunity:null,userCommunity:null,isLogged:false,isSpecial:false,isWeekDeal:false,isBiWeekDeal:false,isFree:false,isEmailVerified:false,isTestMode:false,isRedirecting:false,totalAmount:12,discountAmount:10,percentDiscount:0,amountOff:0,unitDiscountPrice:10,unitPrice:12,isDiscount:false,discountMessage:\"\",totalDailyAmount:null,discountDailyAmount:null,price:null,price_id:null,price_id_preprod:null,price3:null,price3_id:null,price3_id_preprod:null,price7:null,price7_id:null,price7_id_preprod:null,priceWeek:null,priceWeek_id:null,priceWeek_id_preprod:null,priceSpecial:null,priceSpecial_id:null,priceSpecial_id_preprod:null,hoursToAdd:12,daysBetweenDates:3,diffDays:3,startDate:null,startDateFull:null,endDate:null,isAvailable:true,isLoading:true,unavailableDaysString:\"2023-11-04,2023-11-05,2023-12-05,2023-12-06,2023-12-24,2023-12-25\"});// Fonction simul\u00E9e pour v\u00E9rifier le stock\nasync function checkItemStock(itemId){// Remplacez ceci par un appel API r\u00E9el\nreturn new Promise(resolve=>{setTimeout(()=>{resolve(5)// Simule un stock disponible\n;},1e3);});}export function withAvailability(Component){return props=>{// Ajoutez cet effet pour surveiller les changements de selectedDate dans le store\nconst[store,setStore]=useStore()// Utilisez useStore pour acc\u00E9der \u00E0 l'\u00E9tat du store\n;const[isStockAvailable,setIsStockAvailable]=useState(true)// \u00C9tat pour le stock\n;const[unavailabilities,setUnavailabilities]=useState([]);useEffect(()=>{const auth=getAuth();const unsubscribe=onAuthStateChanged(auth,user=>{if(user){setStore({isLogged:true,email:user.email,isEmailVerified:user.emailVerified});}else{setStore({isLogged:false,isEmailVerified:false,email:null});}});return()=>unsubscribe();},[]);useEffect(()=>{setStore({isLoading:true})// D\u00E9marrez avec l'\u00E9tat de chargement\n;console.log(\"Starting availability check...\");// Log the DocumentID\nif(props.documentId!==undefined){// Fetch the document from Firestore\n// Fetch related orders\nconst fetchRelatedOrders=async()=>{try{const db=getFirestore();const docRef=doc(db,\"items\",props.documentId);const ordersQuery=query(collection(db,\"orders\"),where(\"itemsBooked\",\"array-contains\",docRef));console.log(\"documentID = \",props.documentId);setStore({documentId:props.documentId});// --- 1. R\u00E9servations ---\nconst ordersSnapshot=await getDocs(ordersQuery);const reservationDates=[];ordersSnapshot.forEach(orderDoc=>{const orderData=orderDoc.data();const startDate=orderData.dateStart.toDate();const endDate=orderData.dateEnd.toDate();let currentDate=new Date(startDate);while(currentDate<=endDate){reservationDates.push(currentDate.toISOString().split(\"T\")[0]);currentDate.setDate(currentDate.getDate()+1);}});// --- 2. Indisponibilit\u00E9s manuelles ---\nconst unavQuery=query(collection(db,\"unavailabilities\"),where(\"accountId\",\"==\",props.accountId),where(\"endDate\",\">=\",new Date));const unavSnapshot=await getDocs(unavQuery);const unavDates=[];unavSnapshot.forEach(doc=>{const data=doc.data();const appliesToThisItem=!data.productId||data.productId===props.documentId;if(appliesToThisItem){const start=data.startDate.toDate();const end=data.endDate.toDate();let current=new Date(start);while(current<=end){unavDates.push(current.toISOString().split(\"T\")[0]);current.setDate(current.getDate()+1);}}});// --- \uD83D\uDD0D LOG AVANT FUSION ---\nconsole.log(\"\uD83D\uDD35 Dates de r\\xe9servation :\",reservationDates);console.log(\"\uD83D\uDD34 Dates d'indisponibilit\\xe9 manuelle :\",unavDates);// --- Fusion des deux tableaux\nconst mergedUnavailableDates=[...reservationDates,...unavDates];const unavailableDaysString=mergedUnavailableDates.join(\",\");console.log(\"\u2705 Fusion finale :\",unavailableDaysString);// --- Enregistrement dans le store\nsetStore(prevStore=>({...prevStore,unavailableDaysString}));}catch(error){console.error(\"Error fetching related orders:\",error);}};fetchRelatedOrders();}else{console.log(\"DocumentID is not provided.\");}// V\u00E9rification du stock\nconst checkStock=async()=>{try{const stock=await checkItemStock(props.documentId);setIsStockAvailable(stock>0);}catch(error){console.error(\"Erreur lors de la v\\xe9rification du stock:\",error);setIsStockAvailable(false);}};checkStock();//console.log(\"props = \", props)\nif(props.isTestMode!==undefined){setStore({isTestMode:props.isTestMode});}if(props.accountId!==undefined){setStore({accountId:props.accountId});}if(props.hoursToAdd!==undefined){setStore({hoursToAdd:props.hoursToAdd});}if(props.price!==undefined){setStore({price:props.price,unitPrice:props.price});}//console.log(\"props.price_id \" + props.price_id)\nif(props.priceId!==\"\"){setStore({price_id:props.priceId});}if(props.priceIdPreprod!==\"\"){setStore({price_id_preprod:props.priceIdPreprod});}if(props.price3!==undefined){setStore({price3:props.price3});}if(props.price3Id!==\"\"){setStore({price3_id:props.price3Id});}if(props.price3IdPreprod!==\"\"){setStore({price3_id_preprod:props.price3IdPreprod});}if(props.price7!==undefined){setStore({price7:props.price7});}if(props.price7Id!==\"\"){setStore({price7_id:props.price7Id});}if(props.price7IdPreprod!==\"\"){setStore({price7_id_preprod:props.price7IdPreprod});}if(props.priceWeek!==undefined){setStore({priceWeek:props.priceWeek});}if(props.priceWeekId!==\"\"){setStore({priceWeek_id:props.priceWeekId});}if(props.priceWeekIdPreprod!==\"\"){setStore({priceWeek_id_preprod:props.priceWeekIdPreprod});}if(props.priceSpecial!==\"\"){setStore({priceSpecial:props.priceSpecial});}if(props.priceSpecialId!==\"\"){setStore({priceSpecial_id:props.priceSpecialId});}if(props.priceSpecialIdPreprod!==\"\"){setStore({priceSpecial_id_preprod:props.priceSpecialIdPreprod});}if(props.priceSpecialId!==\"\"&&props.priceSpecial!==\"\"){setStore({isSpecial:true});console.log(\"SPECIAL!\");}else{console.log(\"STANDARD\");}if(props.isFree!==undefined){setStore({isFree:props.isFree});}if(props.daysBetweenDates!==undefined){setStore({daysBetweenDates:props.daysBetweenDates});}console.log(\"Props community = \",props.userCommunity);// now with local timezone\nconst now=new Date;const minimumStartDate=calculateFutureDate(now,props.hoursToAdd,false);// Retrieve the currently stored start date from localStorage and convert it to a Date object\nconst storedStartDate=localStorage.getItem(\"selectedStartDate\");const storedStartDateObj=storedStartDate?new Date(storedStartDate+\"T18:00:00\"):null;// Check if the stored start date is valid and after the minimum start date\nconst isStoredStartDateValid=storedStartDateObj&&storedStartDateObj>minimumStartDate;// Use the stored start date if it is valid, otherwise use the minimum start date\nconst startDateToUse=isStoredStartDateValid?storedStartDate:minimumStartDate.toLocaleDateString(\"fr-CA\",{year:\"numeric\",month:\"2-digit\",day:\"2-digit\"});// Update the store and localStorage with the appropriate start date\nsetStore({startDate:startDateToUse});setStore({startDateFull:toDateFull(startDateToUse)});if(!isStoredStartDateValid){localStorage.setItem(\"selectedStartDate\",startDateToUse);}const selectedEndDate=localStorage.getItem(\"selectedEndDate\");const endDateToUse=determineEndDate(startDateToUse,selectedEndDate,store.daysBetweenDates,false);setStore({endDate:endDateToUse});localStorage.setItem(\"selectedEndDate\",endDateToUse);const diffDays=calculateDuration(startDateToUse,endDateToUse);let discountMessage=\"Location pour 1 jour\";if(diffDays>=5){discountMessage=\"Location pour \"+diffDays+\" jours\";}else if(diffDays>=2){discountMessage=\"Location pour \"+diffDays+\" jours\";}const unitPrice=getUnitPrice(props.price,props.price3,props.price7,props.priceWeek,diffDays);const totalAmount=props.price*diffDays;let discountAmount=unitPrice*diffDays;const reductionPercentage=((totalAmount-discountAmount)/totalAmount*100).toFixed(2);const amountOff=(totalAmount-discountAmount).toFixed(0);let isDiscount=false;if(totalAmount-discountAmount>0){isDiscount=true;}let isWeekDeal=false;console.log(\"unitPrice = \",unitPrice);if(props.priceWeek){console.log(\"price week = \",props.priceWeek);if(totalAmount>props.priceWeek&&diffDays<8){discountAmount=props.priceWeek;isWeekDeal=true;}else console.log(\"nomal price to apply !\");}else{console.log(\"no price week\");isWeekDeal=false;}setStore({diffDays:diffDays,unitDiscountPrice:unitPrice,totalAmount:totalAmount,discountAmount:discountAmount,isDiscount:isDiscount,isWeekDeal:isWeekDeal,percentDiscount:reductionPercentage,amountOff:amountOff,discountMessage:discountMessage});setStore({isLoading:false});setStore({isAvailable:true});console.log(\"CHECK AVAILABILITY\");},[]);const checkDateOverlap=(startDate,endDate,unavailableDaysString)=>{const unavailableDays=unavailableDaysString.split(\",\");const start=new Date(startDate);const end=new Date(endDate);for(let date of unavailableDays){const unavailableDate=new Date(date);if(unavailableDate>=start&&unavailableDate<=end){return true;}}return false;};let variantAvailable=props.isMyCommunity?\"MyCommunity\":\"Available\";console.log(\"ALL GOOD!\",store.isLoading);// Verifier si membre\nlet variant;if(!store.isLogged){variant=\"notLogged\";}else if(!store.isEmailVerified){variant=\"notVerified\";}else if(store.isLoading){variant=\"Waiting\";}else{//we remove callback in case of login to not redirect anymore\nlocalStorage.setItem(\"callbackURL\",null);if(store.unavailableDaysString&&checkDateOverlap(store.startDate,store.endDate,store.unavailableDaysString)){variant=\"Unavailable\";}else{variant=store.isAvailable?variantAvailable:\"Unavailable\";console.log(\"ALL GOOD! checkDateOverlap = \",variant);}}console.log(\"ALL GOOD! variant = \",variant);return /*#__PURE__*/_jsx(Component,{...props,Title:store.isAvailable,isRedirecting:store.isRedirecting,variant:variant,isSpecial:store.isSpecial,isWeekDeal:store.isWeekDeal,startDate:store.startDateFull,unitPrice:store.unitPrice,bookingDuration:store.diffDays,amountOff:store.amountOff.toLocaleString(\"fr-FR\",{style:\"decimal\",minimumFractionDigits:0}),amountSubtotal:store.totalAmount.toLocaleString(\"fr-FR\",{style:\"decimal\",minimumFractionDigits:0}),amountTotal:store.discountAmount.toLocaleString(\"fr-FR\",{style:\"decimal\",minimumFractionDigits:0}),discountMessage:store.discountMessage,percentDiscount:store.percentDiscount.toLocaleString(\"fr-FR\",{style:\"decimal\",minimumFractionDigits:0})});};}export function withStartDateChange(Component){return props=>{const[store,setStore]=useStore();const handleStartDateChange=event=>{const startDateUpdated=event.target.value;const startDateUpdatedObj=startDateUpdated?new Date(determineStartDate(startDateUpdated,false)+\"T05:00:00.000Z\"):null;const minimumStartDate=calculateFutureDate(new Date,store.hoursToAdd,false);// Check if the stored end date is valid and after the minimum end date\nconst isStartDateValid=startDateUpdatedObj&&startDateUpdatedObj>minimumStartDate;// Use the stored end date if it is valid, otherwise use the minimum end date\nconst startDateToUse=isStartDateValid?startDateUpdatedObj.toLocaleDateString(\"fr-CA\",{year:\"numeric\",month:\"2-digit\",day:\"2-digit\"}):minimumStartDate.toLocaleDateString(\"fr-CA\",{year:\"numeric\",month:\"2-digit\",day:\"2-digit\"});isStartDateValid;// Update the store and localStorage with the appropriate end date\nsetStore({startDate:startDateToUse});setStore({startDateFull:toDateFull(startDateToUse)});localStorage.setItem(\"selectedStartDate\",startDateToUse);const selectedEndDate=store.endDate;const endDateToUse=determineEndDate(startDateToUse,selectedEndDate,store.daysBetweenDates,false);setStore({endDate:endDateToUse});localStorage.setItem(\"selectedEndDate\",endDateToUse);const diffDays=calculateDuration(startDateToUse,endDateToUse);let discountMessage=\"Location pour 1 jour\";if(diffDays>=5){discountMessage=\"Location pour \"+diffDays+\" jours\";}else if(diffDays>=2){discountMessage=\"Location pour \"+diffDays+\" jours\";}const unitPrice=getUnitPrice(store.price,store.price3,store.price7,diffDays);const totalAmount=store.price*diffDays;let discountAmount=unitPrice*diffDays;const reductionPercentage=((totalAmount-discountAmount)/totalAmount*100).toFixed(2);const amountOff=(totalAmount-discountAmount).toFixed(0);let isDiscount=false;if(totalAmount-discountAmount>0){isDiscount=true;}let isWeekDeal=false;console.log(\"unitPrice = \",unitPrice);if(store.priceWeek){console.log(\"price week = \",store.priceWeek);if(totalAmount>store.priceWeek&&diffDays<8){discountAmount=store.priceWeek;console.log(\"price week to apply !\");isWeekDeal=true;}else console.log(\"nomal price to apply !\");}else{console.log(\"no price week : \",store.priceWeek);isWeekDeal=false;}setStore({diffDays:diffDays,totalAmount:totalAmount,unitDiscountPrice:unitPrice,discountAmount:discountAmount,isDiscount:isDiscount,isWeekDeal:isWeekDeal,amountOff:amountOff,percentDiscount:reductionPercentage,discountMessage:discountMessage});// UPDATE END DATE IF NOT VALIDE\n};return /*#__PURE__*/_jsx(Component,{...props,date:store.startDate,onClick:()=>console.log(\"clicked\"),onChange:handleStartDateChange});};}export function withEndDateChange(Component){return props=>{const[store,setStore]=useStore();const handleEndDateChange=event=>{const endDateUpdated=event.target.value;const endDateUpdatedObj=endDateUpdated?new Date(endDateUpdated+\"T05:00:00.000Z\"):null;// TODO authorization des weekend. Pour le moment non permis\nif(true){while(isWeekend(endDateUpdatedObj)){endDateUpdatedObj.setDate(endDateUpdatedObj.getDate()+1)// test\n;}}const minimumEndDate=calculateFutureDate(new Date(store.startDate+\"T05:00:00.000Z\"),store.daysBetweenDates*24,false);//TODO refactor : toujours besoin de g\u00E9rer le cas ou le end date selectionn\u00E9 est un weekend.\n// Check if the stored end date is valid and after the minimum end date\nconst isEndDateValid=endDateUpdatedObj&&endDateUpdatedObj>minimumEndDate;// Use the stored end date if it is valid, otherwise use the minimum end date\nconst endDateToUse=isEndDateValid?endDateUpdatedObj.toLocaleDateString(\"fr-CA\",{year:\"numeric\",month:\"2-digit\",day:\"2-digit\"}):minimumEndDate.toLocaleDateString(\"fr-CA\",{year:\"numeric\",month:\"2-digit\",day:\"2-digit\"});// Update the store and localStorage with the appropriate end date\nlocalStorage.setItem(\"selectedEndDate\",endDateToUse);setStore({...store,endDate:endDateToUse});const diffDays=calculateDuration(store.startDate,endDateToUse);let discountMessage=\"Location pour 1 jour\";if(diffDays>=5){discountMessage=\"Location pour \"+diffDays+\" jours\";}else if(diffDays>=2){discountMessage=\"Location pour \"+diffDays+\" jours\";}const unitPrice=getUnitPrice(store.price,store.price3,store.price7,diffDays);const totalAmount=store.price*diffDays;let discountAmount=unitPrice*diffDays;const reductionPercentage=((totalAmount-discountAmount)/totalAmount*100).toFixed(2);const amountOff=(totalAmount-discountAmount).toFixed(0);let isDiscount=false;if(totalAmount-discountAmount>0){isDiscount=true;}let isWeekDeal=false;console.log(\"unitPrice = \",unitPrice);if(store.priceWeek){console.log(\"price week = \",store.priceWeek);if(totalAmount>store.priceWeek&&diffDays<8){discountAmount=store.priceWeek;console.log(\"price week to apply !\");isWeekDeal=true;}else console.log(\"nomal price to apply !\");}else{console.log(\"no price week\");isWeekDeal=false;}setStore({diffDays:diffDays,totalAmount:totalAmount,unitDiscountPrice:unitPrice,discountAmount:discountAmount,percentDiscount:reductionPercentage,isDiscount:isDiscount,isWeekDeal:isWeekDeal,amountOff:amountOff,discountMessage:discountMessage});};//setStore({ isAvailable: true })\nreturn /*#__PURE__*/_jsx(Component,{...props,date:store.endDate,onClick:()=>console.log(\"clicked\"),onChange:handleEndDateChange});};}export function withTogglePeriod(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>console.log(\"clicked !\")});};}export function withCalendar(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,unavailableDaysString:store.unavailableDaysString});};}export function withItemPrice(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.isDiscount===true?\"Discount\":\"Without Discount\",unitDiscountPrice:store.unitDiscountPrice.toLocaleString(\"fr-FR\",{style:\"decimal\",minimumFractionDigits:2}),unitPrice:store.unitPrice.toLocaleString(\"fr-FR\",{style:\"decimal\",minimumFractionDigits:2})});};}export function withConfirmation(Component){return props=>{useEffect(()=>{initializeAmplitude().then(amplitude=>{amplitude.logEvent(\"booking_created\",{date_view:new Date().toISOString()});}).catch(error=>console.error(\"Erreur lors de l'initialisation d'Amplitude:\",error));},[]);return /*#__PURE__*/_jsx(Component,{...props});};}const initializeAmplitude=()=>{return new Promise((resolve,reject)=>{if(window.amplitude&&typeof window.amplitude.logEvent===\"function\"){resolve(window.amplitude);}else{reject(new Error(\"Amplitude n'est pas disponible\"));}});};export function withCreateCheckout(Component){return props=>{const[store,setStore]=useStore();const handleCreateCheckout=async event=>{// we need to have the number of rental days\n// Emp\u00EAche le formulaire de soumettre et de rafra\u00EEchir la page\nevent.preventDefault();try{initializeAmplitude().then(amplitude=>{amplitude.logEvent(\"checkout_cta\",{date_view:new Date().toISOString()});}).catch(error=>console.error(\"Erreur lors de l'initialisation d'Amplitude:\",error));if(window.gtag){console.log(\"add_to_cart\");window.gtag(\"event\",\"add_to_cart\",{event_category:\"Ecommerce\",event_label:\"Click checkout CTA\"});console.log(\"sent to GA4\");}setStore({isRedirecting:true});let diffDays=store.diffDays;let priceId=\"\";// TODO manage week price\n// if weekdeal => priceId = priceWeekId and qty = 1\n// if biWeekdeal => priceId = priceWeekId and qty = 2\nif(store.isTestMode){priceId=store.price_id_preprod;if(diffDays>=5&&store.price7_id_preprod){priceId=store.price7_id_preprod// Utiliser le priceId pour 7 jours ou plus\n;}else if(diffDays>=5&&store.price7_id_preprod){priceId=store.price7_id_preprod// Utiliser le priceId pour 7 jours ou plus\n;}else if(diffDays>=3&&store.price3_id_preprod){priceId=store.price3_id_preprod// Utiliser le priceId pour 3 jours ou plus\n;}//console.log(\"priceIdPreprod = \", priceId)\n}else{if(store.isWeekDeal){console.log(\"priceId week = \",store.priceWeek_id);priceId=store.priceWeek_id;diffDays=1;}else{priceId=store.price_id;if(diffDays>=5&&store.price7_id){priceId=store.price7_id// Utiliser le priceId pour 7 jours ou plus\n;}else if(diffDays>=3&&store.price3_id){priceId=store.price3_id// Utiliser le priceId pour 3 jours ou plus\n;}}//console.log(\"priceIdProd = \", priceId)\n}// D\u00E9terminer le priceId en fonction de diffDays\nconst cancelUrl=window.location.href;// V\u00E9rifier si l'URL contient '/en/'\nconst isEnglish=window.location.href.includes(\"/en/\");const successUrl=isEnglish?\"https://www.locationvoisins.ca/en/payment-confirmation\":\"https://www.locationvoisins.ca/payment-confirmation\";const stripeLocale=isEnglish?\"en\":\"fr-CA\";// R\u00E9cup\u00E9rer la locale de l'utilisateur\nconst userLocale=navigator.language;console.log(\"userLocale \"+userLocale);console.log(\"window.location.href \"+window.location.href);// Pr\u00E9parer les donn\u00E9es \u00E0 envoyer\nconst requestData={priceId:priceId,quantity:diffDays,startDate:store.startDate,endDate:store.endDate,email:store.email,accountId:store.accountId,isTestMode:store.isTestMode,cancelUrl:cancelUrl,successUrl:successUrl,amountTotal:store.discountAmount,stripeLocale:stripeLocale};// Remplacez l'URL avec l'URL du webhook qui retourne l'URL de checkout\nconst response=await fetch(\"https://stripe-checkout-33753739528.northamerica-northeast1.run.app/stripe-checkout\",//\"https://rowy-hooks-yy5pmulsnq-nn.a.run.app/wh/orders/97m007431I1NtdxWw3zv\",\n//\"https://rowy-hooks-yy5pmulsnq-nn.a.run.app/wh/orders/LMZbBc2ZJTSTsg5wsGYh\",\n{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(requestData)});/*\n                // Remplacez l'URL avec l'URL du webhook qui retourne l'URL de checkout\n                const response = await fetch(\n                    \"https://rowy-hooks-yy5pmulsnq-nn.a.run.app/wh/orders/97m007431I1NtdxWw3zv\"\n                )*/const data=await response.json()// Parse la r\u00E9ponse JSON pour obtenir l'objet\n;if(response.ok&&data.checkoutUrl.startsWith(\"https://\")){// Vous \u00EAtes redirig\u00E9 vers l'URL de paiement Stripe\n//console.log(data.checkoutUrl)\ninitializeAmplitude().then(amplitude=>{amplitude.logEvent(\"begin_checkout\",{date_view:new Date().toISOString()});}).catch(error=>console.error(\"Erreur lors de l'initialisation d'Amplitude:\",error));if(window.gtag){console.log(\"begin_checkout\");window.gtag(\"event\",\"begin_checkout\",{event_category:\"Ecommerce\",event_label:\"Begin Checkout\"});console.log(\"sent to GA4\");}window.location.href=data.checkoutUrl;}else{// G\u00E9rer le cas o\u00F9 l'URL n'est pas valide ou l'API retourne une erreur\nconsole.error(\"Invalid URL or error returned from the API\",data);}}catch(error){setStore({isRedirecting:false});// G\u00E9rer les erreurs ici\nconsole.error(\"Error fetching checkout URL:\",error);}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleCreateCheckout});};}export function withCreateCheckoutSpecial(Component){return props=>{const[store,setStore]=useStore();const handleCreateCheckoutSpecial=async event=>{console.log(\"handleCreateCheckoutSpecial\");// we need to have the number of rental days\n// Emp\u00EAche le formulaire de soumettre et de rafra\u00EEchir la page\nevent.preventDefault();try{if(window.gtag){console.log(\"add_to_cart\");window.gtag(\"event\",\"add_to_cart\",{event_category:\"Ecommerce\",event_label:\"Click checkout CTA\"});console.log(\"sent to GA4\");}setStore({isRedirecting:true});const diffDays=store.diffDays;let priceId=\"\";if(store.isTestMode){priceId=store.priceSpecial_id_preprod;console.log(\"priceIdPreprod = \",priceId);}else{priceId=store.priceSpecial_id;console.log(\"priceIdProd = \",priceId);}// D\u00E9terminer le priceId en fonction de diffDays\nconst cancelUrl=window.location.href;// V\u00E9rifier si l'URL contient '/en/'\nconst isEnglish=window.location.href.includes(\"/en/\");const successUrl=isEnglish?\"https://www.locationvoisins.ca/en/payment-confirmation\":\"https://www.locationvoisins.ca/payment-confirmation\";const stripeLocale=isEnglish?\"en\":\"fr-CA\";// R\u00E9cup\u00E9rer la locale de l'utilisateur\nconst userLocale=navigator.language;console.log(\"userLocale \"+userLocale);console.log(\"window.location.href \"+window.location.href);// Pr\u00E9parer les donn\u00E9es \u00E0 envoyer\nconst requestData={priceId:priceId,quantity:1,startDate:store.startDate,endDate:store.startDate,email:store.email,accountId:store.accountId,isTestMode:store.isTestMode,cancelUrl:cancelUrl,successUrl:successUrl,amountTotal:store.discountAmount,stripeLocale:stripeLocale};// Remplacez l'URL avec l'URL du webhook qui retourne l'URL de checkout\nconst response=await fetch(\"https://rowy-hooks-yy5pmulsnq-nn.a.run.app/wh/orders/97m007431I1NtdxWw3zv\",//\"https://rowy-hooks-yy5pmulsnq-nn.a.run.app/wh/orders/LMZbBc2ZJTSTsg5wsGYh\",\n{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(requestData)});/*\n                // Remplacez l'URL avec l'URL du webhook qui retourne l'URL de checkout\n                const response = await fetch(\n                    \"https://rowy-hooks-yy5pmulsnq-nn.a.run.app/wh/orders/97m007431I1NtdxWw3zv\"\n                )*/const data=await response.json()// Parse la r\u00E9ponse JSON pour obtenir l'objet\n;if(response.ok&&data.checkoutUrl.startsWith(\"https://\")){// Vous \u00EAtes redirig\u00E9 vers l'URL de paiement Stripe\n//console.log(data.checkoutUrl)\nif(window.gtag){console.log(\"begin_checkout\");window.gtag(\"event\",\"begin_checkout\",{event_category:\"Ecommerce\",event_label:\"Begin Checkout\"});console.log(\"sent to GA4\");}window.location.href=data.checkoutUrl;}else{// G\u00E9rer le cas o\u00F9 l'URL n'est pas valide ou l'API retourne une erreur\nconsole.error(\"Invalid URL or error returned from the API\",data);}}catch(error){setStore({isRedirecting:false});// G\u00E9rer les erreurs ici\nconsole.error(\"Error fetching checkout URL:\",error);}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleCreateCheckoutSpecial});};}export function withCreateFreeCheckout(Component){return props=>{const[store,setStore]=useStore();const handleCreateFreeOrder=async event=>{console.log(\"withCreateFreeCheckout\");// we need to have the number of rental days\n// Emp\u00EAche le formulaire de soumettre et de rafra\u00EEchir la page\nevent.preventDefault();try{if(window.gtag){console.log(\"add_to_cart\");window.gtag(\"event\",\"add_to_cart\",{event_category:\"Ecommerce\",event_label:\"Click checkout CTA\"});console.log(\"sent to GA4\");}setStore({isRedirecting:true});const diffDays=store.diffDays;const cancelUrl=window.location.href;const isEnglish=window.location.href.includes(\"/en/\");const successUrl=isEnglish?\"https://www.locationvoisins.ca/en/free-confirmation\":\"https://www.locationvoisins.ca/free-confirmation\";const stripeLocale=isEnglish?\"en\":\"fr-CA\";// R\u00E9cup\u00E9rer la locale de l'utilisateur\nconst userLocale=navigator.language;console.log(\"userLocale \"+userLocale);console.log(\"window.location.href \"+window.location.href);// Pr\u00E9paration des donn\u00E9es de la requ\u00EAte\nconst requestData={livemode:!store.isTestMode,userName:store.userName,userEmail:store.email,userPhone:\"+15145855001\",startDate:store.startDate,endDate:store.endDate,line_items:[{quantity:\"1\",documentId:store.documentId}]};// Remplacez l'URL avec l'URL du webhook qui retourne l'URL de checkout\n/*const response = await fetch(\n                    \"https://rowy-hooks-yy5pmulsnq-nn.a.run.app/wh/orders/41U1PbC2on7zJfJDtFFZ\",\n                    //\"https://rowy-hooks-yy5pmulsnq-nn.a.run.app/wh/orders/LMZbBc2ZJTSTsg5wsGYh\",\n                    {\n                        method: \"POST\",\n                        headers: {\n                            \"Content-Type\": \"application/json\",\n                        },\n                        body: JSON.stringify(requestData),\n                    }\n                )*/// Appel de l'API de cr\u00E9ation de commande gratuite\nconst response=await fetch(\"https://free-order-33753739528.northamerica-northeast1.run.app/free-order\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(requestData)});const data=await response.json()// Parse la r\u00E9ponse JSON pour obtenir l'objet\n;if(response.ok){// Vous \u00EAtes redirig\u00E9 vers l'URL de paiement Stripe\n//console.log(data.checkoutUrl)\nif(window.gtag){console.log(\"begin_checkout\");window.gtag(\"event\",\"begin_checkout\",{event_category:\"Ecommerce\",event_label:\"Begin Checkout\"});console.log(\"sent to GA4\");}window.location.href=successUrl;}else{// G\u00E9rer le cas o\u00F9 l'URL n'est pas valide ou l'API retourne une erreur\nconsole.error(\"Invalid URL or error returned from the API\",data);}}catch(error){setStore({isRedirecting:false});// G\u00E9rer les erreurs ici\nconsole.error(\"Error fetching checkout URL:\",error);}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleCreateFreeOrder});};}export function withCalendat(Component){return props=>{const[store]=useStore();return /*#__PURE__*/_jsx(Component,{...props,unavailableDaysString:store.unavailableDaysString});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCreateFreeCheckout\":{\"type\":\"reactHoc\",\"name\":\"withCreateFreeCheckout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCreateCheckout\":{\"type\":\"reactHoc\",\"name\":\"withCreateCheckout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withItemPrice\":{\"type\":\"reactHoc\",\"name\":\"withItemPrice\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEndDateChange\":{\"type\":\"reactHoc\",\"name\":\"withEndDateChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStartDateChange\":{\"type\":\"reactHoc\",\"name\":\"withStartDateChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCreateCheckoutSpecial\":{\"type\":\"reactHoc\",\"name\":\"withCreateCheckoutSpecial\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAvailability\":{\"type\":\"reactHoc\",\"name\":\"withAvailability\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withConfirmation\":{\"type\":\"reactHoc\",\"name\":\"withConfirmation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTogglePeriod\":{\"type\":\"reactHoc\",\"name\":\"withTogglePeriod\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalendar\":{\"type\":\"reactHoc\",\"name\":\"withCalendar\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalendat\":{\"type\":\"reactHoc\",\"name\":\"withCalendat\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Availabilities.map"],
  "mappings": "4NAEA,IAAMA,GAAe,CAAC,OAAO,0CAA0C,WAAW,mCAAmC,UAAU,mBAAmB,cAAc,+BAA+B,kBAAkB,cAAc,MAAM,2CAA2C,cAAc,cAAc,EACxSC,GAAQ,EAAE,QAAQC,GAAcF,EAAc,EAOlD,SAASG,EAAoBC,EAASC,EAAMC,EAAa,CAAC,IAAMC,EAAW,IAAI,KAAKH,CAAQ,EAG5F,GADAG,EAAW,SAASA,EAAW,SAAS,EAAEF,CAAK,EAC5C,CAACC,EAAc,KAAME,EAAUD,CAAU,GAAGA,EAAW,QAAQA,EAAW,QAAQ,EAAE,CAAC,EACrF,OAAOA,CAAW,CAAC,SAASC,EAAUC,EAAK,CAAC,IAAMC,EAAUD,EAAK,OAAO,EAAE,OAAOC,IAAY,GAAGA,IAAY,CAC9G,CAAC,SAASC,GAAWC,EAAU,CAAC,OAAO,IAAI,KAAKA,EAAU,gBAAgB,EAA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AYtNc,EAAS,MAAM,MAAM,4EAA4E,CAAC,OAAO,OAAO,QAAQ,CAAC,eAAe,kBAAkB,EAAE,KAAK,KAAK,UAAUD,CAAW,CAAC,CAAC,EAAQE,EAAK,MAAMD,EAAS,KAAK,EAChOA,EAAS,IAEVT,EAAO,OAAM,QAAQ,IAAI,gBAAgB,EAAEA,EAAO,KAAK,QAAQ,iBAAiB,CAAC,eAAe,YAAY,YAAY,gBAAgB,CAAC,EAAE,QAAQ,IAAI,aAAa,GAAGA,EAAO,SAAS,KAAKI,GAC/L,QAAQ,MAAM,6CAA6CM,CAAI,CAAG,OAAOC,EAAM,CAACf,EAAS,CAAC,cAAc,EAAK,CAAC,EAC9G,QAAQ,MAAM,+BAA+Be,CAAK,CAAE,CAAC,CAA4E,CAAC,CAAE,CAAE",
  "names": ["firebaseConfig", "getApps", "initializeApp", "calculateFutureDate", "baseDate", "hours", "allowWeekend", "futureDate", "isWeekend", "date", "dayOfWeek", "toDateFull", "shortDate", "determineStartDate", "selectedStartDate", "startDate", "determineEndDate", "selectedEndDate", "daysBetween", "endDate", "selectedEndDateObj", "startDateObj", "calculateDuration", "endDateObj", "diffTime", "getUnitPrice", "price", "price3", "price7", "diffDays", "unitPrice", "useStore", "createStore", "checkItemStock", "itemId", "resolve", "withAvailability", "Component", "props", "store", "setStore", "isStockAvailable", "setIsStockAvailable", "ye", "unavailabilities", "setUnavailabilities", "ue", "auth", "getAuth", "unsubscribe", "onAuthStateChanged", "user", "db", "La", "docRef", "sa", "ordersQuery", "Mh", "ea", "$h", "ordersSnapshot", "dl", "reservationDates", "orderDoc", "orderData", "currentDate", "unavQuery", "unavSnapshot", "unavDates", "doc", "data", "start", "end", "current", "unavailableDaysString", "prevStore", "error", "stock", "minimumStartDate", "storedStartDate", "storedStartDateObj", "isStoredStartDateValid", "startDateToUse", "endDateToUse", "discountMessage", "totalAmount", "discountAmount", "reductionPercentage", "amountOff", "isDiscount", "isWeekDeal", "checkDateOverlap", "unavailableDays", "unavailableDate", "variantAvailable", "variant", "p", "withStartDateChange", "handleStartDateChange", "event", "startDateUpdated", "startDateUpdatedObj", "isStartDateValid", "withEndDateChange", "handleEndDateChange", "endDateUpdated", "endDateUpdatedObj", "minimumEndDate", "withCalendar", "Component", "props", "store", "setStore", "useStore", "p", "withItemPrice", "withConfirmation", "ue", "initializeAmplitude", "amplitude", "error", "resolve", "reject", "window", "withCreateCheckout", "event", "diffDays", "priceId", "cancelUrl", "isEnglish", "successUrl", "stripeLocale", "userLocale", "navigator", "requestData", "response", "data", "withCreateFreeCheckout", "Component", "props", "store", "setStore", "useStore", "p", "event", "window", "diffDays", "cancelUrl", "isEnglish", "successUrl", "stripeLocale", "userLocale", "navigator", "requestData", "response", "data", "error"]
}
