{"id":2368,"date":"2022-03-18T10:58:13","date_gmt":"2022-03-18T09:58:13","guid":{"rendered":"https:\/\/beautiful-meitner.82-223-11-199.plesk.page\/?page_id=2368"},"modified":"2022-03-18T11:03:03","modified_gmt":"2022-03-18T10:03:03","slug":"online-reservations","status":"publish","type":"page","link":"https:\/\/www.caraveando.com\/en\/online-reservations\/","title":{"rendered":"Online Reservations"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row full_width=&#8221;stretch_row_content_no_spaces&#8221; full_height=&#8221;yes&#8221; content_placement=&#8221;middle&#8221; el_class=&#8221;padding-mob cabecera&#8221; el_id=&#8221;book&#8221; css=&#8221;.vc_custom_1643793388198{background-image: url(https:\/\/www.caraveando.es\/wp-content\/uploads\/coches-baratos-barcelona-2.jpg?id=3002) !important;}&#8221;][vc_column css=&#8221;.vc_custom_1639260695882{padding-top: 5px !important;padding-right: 30px !important;padding-bottom: 30px !important;padding-left: 30px !important;background-color: rgba(137,137,137,0.7) !important;*background-color: rgb(137,137,137) !important;}&#8221;][vc_column_text]<\/p>\n<h1 style=\"font-size: 20px; font-family: Montserrat; font-weight: 600; line-height: 1.4; text-align: center;\"><span style=\"color: #ffffff;\"><a style=\"color: #ffffff;\" href=\"#instrucciones\">Discover how<\/a> our car rental service saves you time and avoids surprises.<\/span><\/h1>\n<p>[\/vc_column_text]<div id=\"search9615\"><div class=\"row search_form_row step1 list\" id=\"search_form\">\n\t<form id=\"search-form\" name=\"formElem\" action=\"\" method=\"post\">\n\t\t<div class=\"col-xs-12 col-md-10\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-xs-12 col-sm-6\">\n\t\t\t\t\t<span class=\"form_title\">Pick-Up Information<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"pickup_location_id\" class=\"form-control pickup-location home-select\">\n\t\t\t\t\t\t\t\t<option value=\"0\" selected=\"selected\">Pick-Up City &amp; Location:<\/option><option data-is_custom_address=\"0\" value=\"1\">Castelldefels - Paseo Maritimo 38-42<\/option><option data-is_custom_address=\"1\" value=\"8\">Castelldefels - Custom address<\/option><option data-is_custom_address=\"0\" value=\"2\">BCN Airport - Terminal 1<\/option><option data-is_custom_address=\"0\" value=\"3\">BCN Airport - Terminal 2<\/option><option data-is_custom_address=\"0\" value=\"5\">Caraveando Sant Boi De Llobregat<\/option><option data-is_custom_address=\"1\" value=\"7\">Custom address<\/option>\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t\t<div class=\"soft-hide\" id=\"custom-pickup-address-wrapper\">\n\t\t\t\t\t\t\t\t<span class=\"form_title\">Custom address<\/span>\n\t\t\t\t\t\t\t\t<input type=\"text\" name=\"custom_pickup_address\" class=\"custom-pickup-address\" role=\"presentation\"\n\t\t\t\t\t\t\t\t\t   placeholder=\"Enter custom address\"\n\t\t\t\t\t\t\t\t\t   value=\"\"\/>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<div class=\"col-xs-7 col-sm-8 date top_margin\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"pickup_date\"\n\t\t\t\t\t\t\t\t\t\t   value=\"Date:\"\n\t\t\t\t\t\t\t\t\t\t   placeholder=\"Date:\"\n\t\t\t\t\t\t\t\t\t\t   class=\"pickup-date\"\n\t\t\t\t\t\t\t\t\t\t   readonly=\"readonly\" AUTOCOMPLETE=\"off\"\/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"col-xs-5 col-sm-4 time top_margin\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select class=\"hidden\" id=\"pickup_time_select\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"00:00:00\">Midnight<\/option><option value=\"00:30:00\">00:30<\/option><option value=\"01:00:00\">01:00<\/option><option value=\"01:30:00\">01:30<\/option><option value=\"02:00:00\">02:00<\/option><option value=\"02:30:00\">02:30<\/option><option value=\"03:00:00\">03:00<\/option><option value=\"03:30:00\">03:30<\/option><option value=\"04:00:00\">04:00<\/option><option value=\"04:30:00\">04:30<\/option><option value=\"05:00:00\">05:00<\/option><option value=\"05:30:00\">05:30<\/option><option value=\"06:00:00\">06:00<\/option><option value=\"06:30:00\">06:30<\/option><option value=\"07:00:00\">07:00<\/option><option value=\"07:30:00\">07:30<\/option><option value=\"08:00:00\">08:00<\/option><option value=\"08:30:00\">08:30<\/option><option value=\"09:00:00\">09:00<\/option><option value=\"09:30:00\">09:30<\/option><option value=\"10:00:00\">10:00<\/option><option value=\"10:30:00\">10:30<\/option><option value=\"11:00:00\">11:00<\/option><option value=\"11:30:00\">11:30<\/option><option value=\"12:00:00\" selected=\"selected\">Noon<\/option><option value=\"12:30:00\">12:30<\/option><option value=\"13:00:00\">13:00<\/option><option value=\"13:30:00\">13:30<\/option><option value=\"14:00:00\">14:00<\/option><option value=\"14:30:00\">14:30<\/option><option value=\"15:00:00\">15:00<\/option><option value=\"15:30:00\">15:30<\/option><option value=\"16:00:00\">16:00<\/option><option value=\"16:30:00\">16:30<\/option><option value=\"17:00:00\">17:00<\/option><option value=\"17:30:00\">17:30<\/option><option value=\"18:00:00\">18:00<\/option><option value=\"18:30:00\">18:30<\/option><option value=\"19:00:00\">19:00<\/option><option value=\"19:30:00\">19:30<\/option><option value=\"20:00:00\">20:00<\/option><option value=\"20:30:00\">20:30<\/option><option value=\"21:00:00\">21:00<\/option><option value=\"21:30:00\">21:30<\/option><option value=\"22:00:00\">22:00<\/option><option value=\"22:30:00\">22:30<\/option><option value=\"23:00:00\">23:00<\/option><option value=\"23:30:00\">23:30<\/option>\t\t\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"pickup-time\" readonly>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"pickup_time\" id=\"pickup_time\" value=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"col-xs-12 col-sm-6\">\n\t\t\t\t\t<span class=\"form_title fix_margin\">Return Information<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"return_location_id\" class=\"form-control return-location home-select\">\n\t\t\t\t\t\t\t\t<option value=\"0\" selected=\"selected\">Return City &amp; Location:<\/option><option data-is_custom_address=\"0\" value=\"1\">Castelldefels - Paseo Maritimo 38-42<\/option><option data-is_custom_address=\"1\" value=\"8\">Castelldefels - Custom address<\/option><option data-is_custom_address=\"0\" value=\"2\">BCN Airport - Terminal 1<\/option><option data-is_custom_address=\"0\" value=\"3\">BCN Airport - Terminal 2<\/option><option data-is_custom_address=\"0\" value=\"5\">Caraveando Sant Boi De Llobregat<\/option><option data-is_custom_address=\"1\" value=\"7\">Custom address<\/option>\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t\t<div class=\"soft-hide\" id=\"custom-return-address-wrapper\">\n\t\t\t\t\t\t\t\t<span class=\"form_title\">Custom address<\/span>\n\t\t\t\t\t\t\t\t<input type=\"text\" name=\"custom_return_address\" class=\"custom-return-address\" role=\"presentation\"\n\t\t\t\t\t\t\t\t\t   placeholder=\"Enter custom address\"\n\t\t\t\t\t\t\t\t\t   value=\"\"\/>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xs-7 col-sm-8 date top_margin\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"return_date\" class=\"return-date\"\n\t\t\t\t\t\t\t\t\t\t   value=\"Date:\"\n\t\t\t\t\t\t\t\t\t\t   placeholder=\"Date:\"\n\t\t\t\t\t\t\t\t\t\t   readonly=\"readonly\" AUTOCOMPLETE=\"off\"\/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"col-xs-5 col-sm-4 time top_margin\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select class=\"hidden\" id=\"return_time_select\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"00:00:00\">Midnight<\/option><option value=\"00:30:00\">00:30<\/option><option value=\"01:00:00\">01:00<\/option><option value=\"01:30:00\">01:30<\/option><option value=\"02:00:00\">02:00<\/option><option value=\"02:30:00\">02:30<\/option><option value=\"03:00:00\">03:00<\/option><option value=\"03:30:00\">03:30<\/option><option value=\"04:00:00\">04:00<\/option><option value=\"04:30:00\">04:30<\/option><option value=\"05:00:00\">05:00<\/option><option value=\"05:30:00\">05:30<\/option><option value=\"06:00:00\">06:00<\/option><option value=\"06:30:00\">06:30<\/option><option value=\"07:00:00\">07:00<\/option><option value=\"07:30:00\">07:30<\/option><option value=\"08:00:00\">08:00<\/option><option value=\"08:30:00\">08:30<\/option><option value=\"09:00:00\">09:00<\/option><option value=\"09:30:00\">09:30<\/option><option value=\"10:00:00\">10:00<\/option><option value=\"10:30:00\">10:30<\/option><option value=\"11:00:00\">11:00<\/option><option value=\"11:30:00\">11:30<\/option><option value=\"12:00:00\" selected=\"selected\">Noon<\/option><option value=\"12:30:00\">12:30<\/option><option value=\"13:00:00\">13:00<\/option><option value=\"13:30:00\">13:30<\/option><option value=\"14:00:00\">14:00<\/option><option value=\"14:30:00\">14:30<\/option><option value=\"15:00:00\">15:00<\/option><option value=\"15:30:00\">15:30<\/option><option value=\"16:00:00\">16:00<\/option><option value=\"16:30:00\">16:30<\/option><option value=\"17:00:00\">17:00<\/option><option value=\"17:30:00\">17:30<\/option><option value=\"18:00:00\">18:00<\/option><option value=\"18:30:00\">18:30<\/option><option value=\"19:00:00\">19:00<\/option><option value=\"19:30:00\">19:30<\/option><option value=\"20:00:00\">20:00<\/option><option value=\"20:30:00\">20:30<\/option><option value=\"21:00:00\">21:00<\/option><option value=\"21:30:00\">21:30<\/option><option value=\"22:00:00\">22:00<\/option><option value=\"22:30:00\">22:30<\/option><option value=\"23:00:00\">23:00<\/option><option value=\"23:30:00\">23:30<\/option>\t\t\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"return-time\" readonly>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"return_time\" id=\"return_time\" value=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"col-xs-12\">\n\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xxs-12 col-xs-6 col-sm-3\">\n\t\t\t\t\t\t\t<span class=\"form_title fix_margin\">Driver\u2019s age<\/span>\n\t\t\t\t\t\t\t<select name=\"driver_age\" class=\"form-control driver-age\" required>\n\t\t\t\t\t\t\t\t<option value=\"\">Select<\/option>\n\t\t\t\t\t\t\t\t<option value=\"18\" >18 - 20<\/option>\n\t\t\t\t\t\t\t\t<option value=\"21\" >21 - 24<\/option>\n\t\t\t\t\t\t\t\t<option value=\"25\" >25+<\/option>\n\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xxs-12 col-xs-6 col-sm-3 codes\">\n\t\t\t\t\t\t\t\t<span class=\"form_title\">Coupon code<\/span>\n\t\t\t\t\t\t\t\t<input type=\"text\" name=\"coupon_code\" value=\"I have coupon code:\"\n\t\t\t\t\t\t\t\t\t   class=\"coupon-code\"\n\t\t\t\t\t\t\t\t\t   onfocus=\"if(this.value == 'I have coupon code:') {this.value=''}\"\n\t\t\t\t\t\t\t\t\t   onblur=\"if(this.value == ''){this.value ='I have coupon code:'}\"\/>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-xxs-12 col-xs-6 col-sm-3 hidden-md hidden-lg float_right md-add-margin sm-add-margin\">\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"car_rental_came_from_step1\" value=\"yes\"\/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"car_rental_do_search\" value=\"Search\" class=\"car-rental-do-search\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"modal fade cancel-order-confirmation\" tabindex=\"-1\" role=\"dialog\">\n\t\t\t\t\t\t\t<div class=\"modal-dialog\" role=\"document\">\n\t\t\t\t\t\t\t\t<div class=\"modal-content\">\n\t\t\t\t\t\t\t\t\t<div class=\"modal-header\">\n\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"close float_right\" data-dismiss=\"modal\" aria-label=\"Close\"><span\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-hidden=\"true\">&times;<\/span>\n\t\t\t\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t\t\t\t\t<h4 class=\"modal-title\">Cancel Reservation<\/h4>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"modal-body\">\n\t\t\t\t\t\t\t\t\t\tAre you sure that you want to cancel this reservation?\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"modal-footer\">\n\t\t\t\t\t\t\t\t\t\t<button name=\"car_rental_cancel_booking\" class=\"cancel float_left\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"submit\">Cancel Reservation\t\t\t\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"hidden-xs hidden-sm col-md-2 crs-form-submit\">\n\t\t\t<div class=\"spacer_36\"><\/div>\n\t\t\t<input type=\"hidden\" name=\"car_rental_came_from_step1\" value=\"yes\"\/>\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"car_rental_do_search\" value=\"Search\" class=\"car-rental-do-search\" \/>\t\t\t\t\t<\/div>\n\t<\/form>\n<\/div>\n<script type=\"text\/javascript\">\n    var autoFocus = '0';\n    var locationsS2 = '';\n    var durationS2 = '1';\n    var priceType = '1';\n    var returnLocation = '1';\n    var returnDate = '1';\n    var NRS_SELECT_BOOKING_DATE_TEXT = 'Date:';\n    var isCustomPickupAddressSet = '' !== '';\n    var isCustomReturnAddressSet = '' !== '';\n    var hasGooglePlaceApiKey = 'AIzaSyAgJLxN9mb_uzRHXyEpXatcx5REcQiy3-8' !== '';\n\n    jQuery(document).ready(function () {\n        var options = {};\n        options.useDatePicker = '1';\n        options.unavailableDates = [];\n        options.autoFocus = autoFocus;\n        options.timeMode = 'picker';\n        options.minimumBookingPeriodInseconds = '3600';\n        options.nrsDateFormat = 'dd\/mm\/yy';\n        options.firstDay = '1';\n        options.locationsS2 = locationsS2;\n        options.filtersS2 = '';\n        options.durationS2 = durationS2;\n        options.priceType = priceType;\n        options.returnLocation = returnLocation;\n        options.returnDate = returnDate;\n        options.minDate = '0';\n        options.existingBookingCodeVisible = '';\n        options.couponCodeRequired = '';\n        options.pickupLocationRequired = '1';\n        options.returnLocationRequired = '1';\n        options.pickupDateRequired = '1';\n        options.returnDateRequired = '1';\n        options.timeFormat = 'H:i';\n        options.NRS_SELECT_BOOKING_DATE_TEXT = NRS_SELECT_BOOKING_DATE_TEXT;\n        options.NRS_I_HAVE_BOOKING_CODE_TEXT = \"I have a reservation code:\";\n        options.NRS_COUPON_CODE_ALERT_TEXT = \"Please enter coupon code!\";\n        options.NRS_PICKUP_LOCATION_ALERT_TEXT = \"Please select pick-up location!\";\n        options.NRS_RETURN_LOCATION_ALERT_TEXT = \"Please select return location!\";\n        options.NRS_PICKUP_DATE_ALERT_TEXT = \"Please select pickup date!\";\n        options.NRS_RETURN_DATE_ALERT_TEXT = \"Please select return date!\";\n        options.NRS_BOOKING_PERIOD_ALERT_TEXT = \"Please select reservation period!\";\n        options.NRS_MINUTES_TEXT = \"minutes\";\n        options.NRS_HOURS_TEXT = \"hours\";\n        options.NRS_ERROR_MINIMUM_NUMBER_OF_NIGHT_SHOULD_NOT_BE_LESS_THAN_TEXT = \"Minimum number of night should not be less than\";\n        options.NRS_ERROR_PLEASE_MODIFY_YOUR_SEARCH_CRITERIA_TEXT = \"Please modify your searching criteria.\";\n        step1.init(options);\n        SetSubmitButtonHeight();\n        showHideCustomPickupAddress();\n        showHideCustomReturnAddress()\n    });\n    jQuery(window).resize(function () {\n        SetSubmitButtonHeight();\n    });\n\n    \/\/ Set submit button height\n    function SetSubmitButtonHeight() {\n        var button = jQuery('.car-rental-do-search');\n        if (window.innerWidth > 991) {\n            var height = jQuery('.search_form_row input:visible, .search_form_row select').length > 5 ? 80 : 35;\n            button.css('height', height + 'px');\n        } else {\n            button.css('height', '');\n        }\n    }\n\n    jQuery('.pickup-location').on('change', function () {\n        showHideCustomPickupAddress();\n    });\n\n    jQuery('.custom-pickup-address').keyup(function () {\n        isCustomPickupAddressSet = false;\n    });\n\n    jQuery('.return-location').on('change', function () {\n        showHideCustomReturnAddress();\n    });\n\n    jQuery('.custom-return-address').keyup(function () {\n        isCustomReturnAddressSet = false;\n    });\n\n    function showHideCustomPickupAddress() {\n        var pickupCustomAddressWrapper = jQuery('#custom-pickup-address-wrapper');\n        var pickupCustomAddress = document.querySelector('.custom-pickup-address');\n        if (jQuery('.pickup-location option:selected').data('is_custom_address')) {\n            pickupCustomAddressWrapper.slideDown();\n            initAutocomplete(pickupCustomAddress);\n        } else {\n            pickupCustomAddressWrapper.slideUp();\n            pickupCustomAddress.value = '';\n        }\n    }\n\n    function showHideCustomReturnAddress() {\n        var returnCustomAddressWrapper = jQuery('#custom-return-address-wrapper');\n        var returnCustomAddress = document.querySelector('.custom-return-address');\n        if (jQuery('.return-location option:selected').data('is_custom_address')) {\n            returnCustomAddressWrapper.slideDown();\n            initAutocomplete(returnCustomAddress);\n        } else {\n            returnCustomAddressWrapper.slideUp();\n            returnCustomAddress.value = '';\n        }\n    }\n\n    jQuery('#search-form').submit(function (e) {\n        if (!hasGooglePlaceApiKey) {\n            return true;\n        }\n        if (jQuery('.pickup-location option:selected').data('is_custom_address') &&\n            !isCustomPickupAddressSet) {\n            e.preventDefault();\n            alert('Please select pickup custom address from the provided options.');\n        }\n        if (jQuery('.return-location option:selected').data('is_custom_address') && !isCustomReturnAddressSet) {\n            e.preventDefault();\n            alert('Please select return custom address from the provided options.');\n        }\n    });\n\n    function initAutocomplete(input) {\n\t\tif (!hasGooglePlaceApiKey) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar euCountries = [\n\t\t\t\"AT\", \"BE\", \"BG\", \"CY\", \"CZ\", \"DE\", \"DK\", \"EE\", \"ES\", \"FI\", \"FR\", \"GR\", \"HR\",\n\t\t\t\"HU\", \"IE\", \"IT\", \"LT\", \"LU\", \"LV\", \"MT\", \"NL\", \"PL\", \"PT\", \"RO\", \"SE\", \"SI\", \"SK\"\n\t\t];\n\n\t\tvar euBounds = new google.maps.LatLngBounds(\n\t\t\tnew google.maps.LatLng(35, -10),   \/\/ Southwest corner\n\t\t\tnew google.maps.LatLng(71, 30)     \/\/ Northeast corner\n\t\t);\n\n\t\tvar autocomplete = new google.maps.places.Autocomplete(input, {\n\t\t\tbounds: euBounds,\n\t\t\tstrictBounds: true,\n\t\t\tfields: [\"address_components\", \"geometry\"],\n\t\t});\n\n\t\tgoogle.maps.event.addListener(autocomplete, 'place_changed', function () {\n\t\t\tvar place = autocomplete.getPlace();\n\t\t\tvar countryCode = place.address_components.find(function(component) {\n\t\t\t\treturn component.types.includes(\"country\");\n\t\t\t}).short_name;\n\n\t\t\tif (!euCountries.includes(countryCode)) {\n\t\t\t\talert('Only European Union countries are allowed');\n\t\t\t\tinput.value = '';  \/\/ Clear the input field\n\t\t\t}\n\t\t\tswitch (input.name) {\n\t\t\t\tcase 'custom_pickup_address':\n\t\t\t\t\tisCustomPickupAddressSet = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'custom_return_address':\n\t\t\t\t\tisCustomReturnAddressSet = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t});\n    }\n\n\t\n    \/\/ Control timepicker closing\n    function controlTimeSelectorClosing() {\n        if (autoFocus === '1') {\n            if (returnLocation) {\n                var returnLocationField = jQuery('.return-location');\n                if (returnLocationField.val() === '0') {\n                    locationsS2 === '1' ? returnLocationField.select2('open') : returnLocationField.focus();\n                }\n            } else if (returnDate === '1') {\n                if (priceType === '2') {\n                    var bookingPeriod = jQuery('.booking-period');\n                    if (bookingPeriod.val() === '') {\n                        durationS2 === '1' ? bookingPeriod.select2('open') : bookingPeriod.focus();\n                    }\n                } else if (priceType !== '2') {\n                    var selectedReturnDate = jQuery('.return-date');\n                    if (NRS_SELECT_BOOKING_DATE_TEXT === selectedReturnDate.val() || selectedReturnDate.val() === '') {\n                        selectedReturnDate.focus();\n                    }\n                }\n            }\n        }\n    }\n\t<\/script><\/div>[\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row_content_no_spaces&#8221; full_height=&#8221;yes&#8221; content_placement=&#8221;middle&#8221; el_class=&#8221;padding-mob cabecera&#8221; el_id=&#8221;book&#8221; css=&#8221;.vc_custom_1643793388198{background-image: url(https:\/\/www.caraveando.es\/wp-content\/uploads\/coches-baratos-barcelona-2.jpg?id=3002) !important;}&#8221;][vc_column css=&#8221;.vc_custom_1639260695882{padding-top: 5px !important;padding-right: 30px !important;padding-bottom: 30px !important;padding-left: 30px !important;background-color: rgba(137,137,137,0.7) !important;*background-color: rgb(137,137,137) !important;}&#8221;][vc_column_text] Discover how our car rental service saves you time and avoids surprises. [\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":23,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"homepage.php","meta":{"footnotes":""},"class_list":["post-2368","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.caraveando.com\/en\/wp-json\/wp\/v2\/pages\/2368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.caraveando.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.caraveando.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.caraveando.com\/en\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.caraveando.com\/en\/wp-json\/wp\/v2\/comments?post=2368"}],"version-history":[{"count":0,"href":"https:\/\/www.caraveando.com\/en\/wp-json\/wp\/v2\/pages\/2368\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.caraveando.com\/en\/wp-json\/wp\/v2\/media?parent=2368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}