jQuery(document).ready(function($)
{
var bookingForm=$('#chbs_booking_form_42C6256542C941EE2754A13B431BDA20').chauffeurBookingForm(
{
booking_form_id:21,
plugin_version:'6.4',
ajax_url:'https://kiwicabs.nz/wp-admin/admin-ajax.php',
length_unit:1,
time_format:'g:i a',
date_format:'d-m-Y',
date_format_js:'dd-mm-yy',
message:
{
designate_route_error:'It is not possible to create a route between chosen points.',
place_geometry_error:'Google Maps API cannot find details for this place.'
},
text:
{
unit_length_short:'km',
unit_time_hour_short:'h',
unit_time_minute_short:'h',
},
date_exclude:[],
datetime_min:'20-07-2025 21:00:00',
datetime_max:'',
datetime_min_format:'20-07-2025',
datetime_max_format:'',
business_hour:{"1":{"start":"04:00","stop":"23:30"},"2":{"start":"04:00","stop":"23:30"},"3":{"start":"04:00","stop":"23:30"},"4":{"start":"04:00","stop":"23:30"},"5":{"start":"04:00","stop":"23:30"},"6":{"start":"04:00","stop":"23:30"},"7":{"start":"04:00","stop":"23:30"}},
timepicker_step:15,
timepicker_dropdown_list_enable:1,
timepicker_hour_range_enable:0,
timepicker_field_readonly:0,
summary_sidebar_sticky_enable:0,
ride_time_multiplier:1.00,
extra_time_unit:1,
driving_zone:
{
pickup:
{
enable:1,
country:["NZ"],
area:
{
radius:500,
coordinate:
{
lat:'-45.8667783',
lng:'170.4910567'
}
}
},
waypoint:
{
enable:0,
country:[-1],
area:
{
radius:500,
coordinate:
{
lat:'',
lng:''
}
}
},
dropoff:
{
enable:1,
country:["NZ"],
area:
{
radius:500,
coordinate:
{
lat:'-45.8667783',
lng:'170.4910567'
}
}
}
},
gooogle_map_option:
{
route_type:1,
route_avoid:[-1],
draggable:
{
enable:1 },
draggable_location:
{
enable:0 },
traffic_layer:
{
enable:1 },
scrollwheel:
{
enable:1 },
map_control:
{
enable:0,
id:'ROADMAP',
style:'DEFAULT',
position:'TOP_CENTER'
},
zoom_control:
{
enable:0,
style:'DEFAULT',
position:'TOP_RIGHT',
level:7
},
default_location:
{
type:2,
coordinate:
{
lat:'-45.8795455',
lng:'170.5005957'
}
}
},
base_location:
{
coordinate:
{
lat:'',
lng:''
}
},
widget:
{
mode:0,
booking_form_url:''
},
rtl_mode:0 ,
scroll_to_booking_extra_after_select_vehicle_enable:1,
current_date:'20-07-2025',
current_time:'20:49',
google_autosugestion_address_type:1,
icon_field_enable:1,
use_my_location_link_enable:1,
client_country_code:'NZ',
ride_time_rounding:1 });
bookingForm.setup();
});