	<script type="text/javascript">
		
		window.buyCredUrl = '<a href="/nos-offres/" style="color:red">Votre solde de crédit est insuffisant. <strong>Cliquez ici pour créditer votre compte.<strong></h3></a>';
		window.ameliaActions = {
		 	beforeBooking: function (success = null, error = null, data) {

			    console.log('Before booking is created HOOK')
			    jQuery.ajax({
			      	type: "POST",
			      	url:  my_ajax_object.ajax_url + '?action=wpamelia_api&call=/payments/amount',
			      	data: JSON.stringify(data),
		      		contentType: "application/json; charset=utf-8",
			      	dataType: "json",
			      	success: function (resultData){
			        	if ( resultData.data.amount > myCredBalance ) {
			        		error('You dont have enough points.');
			        		jQuery('<a href="/buypoints"><h4>Click here to Buy.</h4></a>').insertBefore('.am-fs__payments-heading-main');
			        		console.log('you dont have enoug points');
			        	}else {
			        		success()
			        	}
			      	},
			      	error: function (errMsg) {
			        	error('Something went wrong. Try again');
			      	}
				})
		  	},
		}

		window.beforeConfirmBookingLoaded = function (reservation, bookable, employee, location) {
			var totalPrice = !bookable.ticketsData ? reservation.bookings[0].persons * bookable.price : bookable.price;
			console.log(totalPrice);
			jQuery(document).ready( function(){
				if( isUserLoggedIn == 0 ) {
					
					jQuery('.payment-dialog-footer').hide();
					jQuery('.am-confirmation-booking-cost').after('<h4>Login to Book.</h4>');
					return false;
					
				}
				
				if ( totalPrice > myCredBalance ) {
					jQuery('.payment-dialog-footer').hide();
					jQuery('.am-confirmation-booking-cost').after('<a href="/nos-offres/" style="color:red">Votre solde de crédit est insuffisant. <strong>Cliquez ici pour créditer votre compte.<strong></h3></a>');
				}
			} );
		}
	</script>

	<script type="text/javascript">
		window.beforeConfirmBookingLoaded = function (reservation, bookable, employee, location) {
			var totalPrice = bookable.aggregatedPrice ? reservation.bookings[0].persons * bookable.price : bookable.price;
			jQuery( document ).ready( function(){
				console.log( totalPrice );
				if( isUserLoggedIn == 0 ) {
					
					jQuery('.payment-dialog-footer').hide();
					jQuery('.am-confirmation-booking-cost').after('<h4>Login to Book.</h4>');
					return false;
					
				}
				if ( totalPrice > myCredBalance ) {
					jQuery('.payment-dialog-footer').hide();
					jQuery('.am-confirmation-booking-cost').after('<a href="/nos-offres/" style="color:red">Votre solde de crédit est insuffisant. <strong>Cliquez ici pour créditer votre compte.<strong></h3></a>');
				}
			} );
		}
	</script>

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Blumenfeld - Écurie &amp; Équicoaching - ECPv6.8.3//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Blumenfeld - Écurie &amp; Équicoaching
X-ORIGINAL-URL:https://ecurie-blumenfeld.com
X-WR-CALDESC:évènements pour Blumenfeld - Écurie &amp; Équicoaching
REFRESH-INTERVAL;VALUE=DURATION:PT1H
X-Robots-Tag:noindex
X-PUBLISHED-TTL:PT1H
BEGIN:VTIMEZONE
TZID:Europe/Paris
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:20250330T010000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:20251026T010000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=Europe/Paris:20250516T080000
DTEND;TZID=Europe/Paris:20250518T170000
DTSTAMP:20260501T122129
CREATED:20250124T074616Z
LAST-MODIFIED:20250124T074809Z
UID:3763-1747382400-1747587600@ecurie-blumenfeld.com
SUMMARY:WEEK-END A LA MER
DESCRIPTION:L’écurie vous propose de partir en Week-End à la mer  . Sorties plages matin et soir ! Diner en ville. \n 
URL:https://ecurie-blumenfeld.com/evenement/week-end-a-la-mer/
ATTACH;FMTTYPE=image/jpeg:https://ecurie-blumenfeld.com/datas/uploads/e1905f47-410d-4008-b270-ddfe4413f613.jpg
ORGANIZER;CN="Ecurie Blumenfeld":MAILTO:ecurieaudreyblumenfeld@gmail.com
END:VEVENT
END:VCALENDAR