{"id":954,"date":"2023-05-14T17:43:19","date_gmt":"2023-05-14T14:43:19","guid":{"rendered":"https:\/\/chanioportarestaurant.gr\/?page_id=954"},"modified":"2023-05-14T17:53:10","modified_gmt":"2023-05-14T14:53:10","slug":"reservation","status":"publish","type":"page","link":"https:\/\/chanioportarestaurant.gr\/fr\/reservation\/","title":{"rendered":"Reservation"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"954\" class=\"elementor elementor-954\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b0f2fa9 e-flex e-con-boxed e-con e-parent\" data-id=\"b0f2fa9\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e087a02 elementor-widget elementor-widget-wp-widget-mod_vikrestaurants_quickres\" data-id=\"e087a02\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wp-widget-mod_vikrestaurants_quickres.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5>Table de lecture<\/h5>\n<div class=\"vr-quick-reservation-mod\">\n\t\n\t<div class=\"vr-quickres-header\">\n\n\t\t\t\t\n\t\t\n\t<\/div>\n\t\n\t<div class=\"vr-quickres-content\">\n\t\n\t\t<div class=\"vr-quickres-step-unactive-field\" id=\"vrqr-nostep1-REPLACE_TO_ID\" style=\"display: none;\" data-step=\"1\">\n\t\t\t\t\n\t\t<\/div>\n\t\n\t\t<!-- DATE - TIME - PEOPLE SELECTION -->\n\n\t\t<div class=\"vr-quickres-step\" id=\"vrqr-step1-REPLACE_TO_ID\">\n\t\t\t\n\t\t\t<div class=\"vr-quickres-step-field quickres-calendar\">\n\t\t\t\t<span class=\"calendar-icon-append\">&nbsp;<\/span>\n\t\t\t\t<input type=\"text\" id=\"vrqr-calendar-modREPLACE_TO_ID\" class=\"vr-quickres-calendar\" value=\"10\/05\/2026\" \/>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"vr-quickres-step-field vre-select-wrapper half-size\">\n\t\t\t\t<select id=\"vrqr-hour-modREPLACE_TO_ID\" name=\"hourmin\" class=\"vre-select\">\n\t\t<option value=\"14:0\">14:00 HEURES<\/option>\n\t\t<option value=\"14:30\">02:30<\/option>\n\t\t<option value=\"15:0\">15:00 HEURES<\/option>\n\t\t<option value=\"15:30\">15:30 HEURES<\/option>\n\t\t<option value=\"16:0\">16:00 HEURES<\/option>\n\t\t<option value=\"16:30\" selected=\"selected\">04:30<\/option>\n\t\t<option value=\"17:0\">17:00 HEURES<\/option>\n\t\t<option value=\"17:30\">05:30<\/option>\n\t\t<option value=\"18:0\">18:00 HEURES<\/option>\n\t\t<option value=\"18:30\">06:30 HEURES<\/option>\n\t\t<option value=\"19:0\">19:00 HEURES<\/option>\n\t\t<option value=\"19:30\">07:30 HEURES<\/option>\n\t\t<option value=\"20:0\">20:00 HEURES<\/option>\n\t\t<option value=\"20:30\">08:30<\/option>\n\t\t<option value=\"21:0\">09:00 HEURES<\/option>\n\t\t<option value=\"21:30\">09:30 HEURES<\/option>\n\t\t<option value=\"22:0\">10:00 HEURES<\/option>\n\t\t<option value=\"22:30\">10:30 HEURES<\/option>\n\t\t<option value=\"23:0\">11:00 HEURES<\/option>\n<\/select>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"vr-quickres-step-field vre-select-wrapper half-size float-right\">\n\t\t\t\t<select  id=\"vrqr-people-modREPLACE_TO_ID\" class=\"vre-select\" name=\"people\"><option value=\"1\">1 person<\/option>\n<option value=\"2\" selected=\"selected\">2 people<\/option>\n<option value=\"3\">3 people<\/option>\n<option value=\"4\">4 people<\/option>\n<option value=\"5\">5 people<\/option>\n<option value=\"6\">6 people<\/option>\n<option value=\"7\">7 people<\/option>\n<option value=\"8\">8 people<\/option>\n<option value=\"9\">9 people<\/option>\n<option value=\"10\">10 people<\/option>\n<option value=\"11\">11 people<\/option>\n<option value=\"12\">12 people<\/option>\n<option value=\"13\">13 people<\/option>\n<option value=\"14\">14 people<\/option>\n<option value=\"15\">15 people<\/option>\n<option value=\"16\">16 people<\/option>\n<option value=\"17\">17 people<\/option>\n<option value=\"18\">18 people<\/option>\n<option value=\"19\">19 people<\/option>\n<option value=\"20\">20 people<\/option>\n<\/select>\t\t\t<\/div>\n\n\t\t\t\t\t\t\n\t\t\t<div class=\"vr-quickres-step-hints\" id=\"vrqr-hints1-REPLACE_TO_ID\" style=\"display: none;\">\n\t\t\t\t<div class=\"vr-quickres-step-hints-title\">\n\t\t\t\t\tNone of the tables is available at the selected date and time. Please check the available times below:\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"vr-quickres-step-hints-content\">\n\t\t\t\t\t\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"vr-quickres-step-error\" id=\"vrqr-error1-REPLACE_TO_ID\" style=\"display: none;\"><\/div>\n\t\t\t\n\t\t\t<div class=\"vr-quickres-step-field\">\n\t\t\t\t<button class=\"vr-quickres-button\" id=\"vrqr-buttonfind-REPLACE_TO_ID\" onclick=\"vrModFindTableCall(this);\">Find a Table<\/button>\n\t\t\t<\/div>\n\t\t\t\n\t\t<\/div>\n\t\t\n\t\t<!-- ROOM SELECTION -->\n\n\t\t\t\t\n\t\t<div class=\"vr-quickres-step-unactive-field\" id=\"vrqr-nostep3-REPLACE_TO_ID\" data-step=\"3\">\n\t\t\tFill in your Details\t\t<\/div>\n\t\t\n\t\t<!-- FILL IN CUSTOM FIELDS -->\n\n\t\t<div class=\"vr-quickres-step\" id=\"vrqr-step3-REPLACE_TO_ID\" style=\"display: none;\">\n\n\t\t\t<form method=\"POST\" id=\"vrqr-custfields-modformREPLACE_TO_ID\" action=\"\">\n\n\t\t\t\t\t\t\t\t\t<div class=\"vr-quickres-step-field\">\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\tname=\"vrcf1\"\n\t\t\t\t\t\t\t\tid=\"vrcf1-REPLACE_TO_ID\"\n\t\t\t\t\t\t\t\tplaceholder=\"First Name\"\n\t\t\t\t\t\t\t\tvalue=\"\"\n\t\t\t\t\t\t\t\tclass=\"required\"\t\t\t\t\t\t\t\/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t\t\t\t<div class=\"vr-quickres-step-field\">\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\tname=\"vrcf2\"\n\t\t\t\t\t\t\t\tid=\"vrcf2-REPLACE_TO_ID\"\n\t\t\t\t\t\t\t\tplaceholder=\"Last Name\"\n\t\t\t\t\t\t\t\tvalue=\"\"\n\t\t\t\t\t\t\t\tclass=\"required\"\t\t\t\t\t\t\t\/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t\t\t\t<div class=\"vr-quickres-step-field\">\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\t\t\tname=\"vrcf3\"\n\t\t\t\t\t\t\t\tid=\"vrcf3-REPLACE_TO_ID\"\n\t\t\t\t\t\t\t\tplaceholder=\"E-mail\"\n\t\t\t\t\t\t\t\tvalue=\"\"\n\t\t\t\t\t\t\t\tclass=\"required\"\t\t\t\t\t\t\t\/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t\t\t\t<div class=\"vr-quickres-step-field\">\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype=\"tel\"\n\t\t\t\t\t\t\t\tname=\"vrcf4\"\n\t\t\t\t\t\t\t\tid=\"vrcf4-REPLACE_TO_ID\"\n\t\t\t\t\t\t\t\tplaceholder=\"Phone Number\"\n\t\t\t\t\t\t\t\tvalue=\"\"\n\t\t\t\t\t\t\t\tclass=\"required\"\t\t\t\t\t\t\t\/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t\t\t\t<div class=\"vr-quickres-step-field\">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tname=\"vrcf13\"\n\t\t\t\t\t\t\t\tid=\"vrcf13-REPLACE_TO_ID\"\n\t\t\t\t\t\t\t\tclass=\"vre-select required\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\tvalue=\"\"\n\t\t\t\t\t\t\t\t\tdisabled=\"disabled\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>J'ai lu et j'accepte les termes et conditions<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\tvalue=\"Oui\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>Oui<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\tvalue=\"Non\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>Non<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/select>\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\n\t\t\t<input type=\"hidden\" name=\"trp-form-language\" value=\"fr\"\/><\/form>\n\t\t\t\n\t\t\t<div class=\"vr-quickres-step-error\" id=\"vrqr-error3-REPLACE_TO_ID\" style=\"display: none;\"><\/div>\n\t\t\t\n\t\t\t<div class=\"vr-quickres-step-field\">\n\t\t\t\t<button type=\"button\" class=\"vr-quickres-button\" onclick=\"vrModValidateCustomFields(this);\">Confirm Reservation<\/button>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\t\t\n\t\t<!-- SEE SUMMARY -->\n\n\t\t\t\t\t<div class=\"vr-quickres-step-unactive-field\" id=\"vrqr-nostep4-REPLACE_TO_ID\" data-step=\"4\">\n\t\t\t\tOrder Summary\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"vr-quickres-step\" id=\"vrqr-step4-REPLACE_TO_ID\" style=\"display: none;\">\n\n\t\t\t\t<div class=\"vrqr-content vrqr-successfull\">\n\t\t\t\t\t\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"vr-quickres-step-field\">\n\t\t\t\t\t<button type=\"button\" class=\"vr-quickres-button\" id=\"vrqr-buttonurl-REPLACE_TO_ID\" onclick=\"\">Visit Order Page<\/button>\n\t\t\t\t<\/div>\n\n\t\t\t<\/div>\n\t\t\t\t\t\n\t<\/div>\n\t\n<\/div>\n\n\n<script type=\"text\/javascript\">\n\n\tvar vrqr_current_step = 1;\n\t\n\tjQuery(document).ready(function() {\n\n\t\tjQuery('#vrqr-calendar-modREPLACE_TO_ID:input').on('change', function() {\n\t\t\t\/\/ refresh times\n\t\t\tvrUpdateWorkingShifts('#vrqr-calendar-modREPLACE_TO_ID', '#vrqr-hour-modREPLACE_TO_ID');\n\t\t});\n\n\t\tjQuery('.vr-quickres-step-unactive-field').on('click', function(){\n\t\t\tvrModStepClicked(jQuery(this).data('step'));\n\t\t});\n\t\t\n\t\tjQuery('.vr-quickres-header, .vr-quickres-step-unactive-field').disableSelection();\n\n\t\tjQuery('.vrfamilyqrmod-help').tooltip();\n\t\t\n\t});\n\t\n\tfunction vrModStepClicked(step) {\n\t\tif (vrqr_current_step == 4 || step >= vrqr_current_step) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor (var i = step; i <= 3; i++) {\n\t\t\tjQuery('#vrqr-nostep' + i + '-REPLACE_TO_ID').removeClass('clickable');\n\t\t}\n\t\t\n\t\tjQuery('.vr-quickres-step-error').hide();\n\t\t\n\t\tjQuery('.vr-quickres-step').slideUp();\n\t\tjQuery('#vrqr-nostep' + step + '-REPLACE_TO_ID').hide();\n\t\t\n\t\tjQuery('#vrqr-step' + step + '-REPLACE_TO_ID').slideDown();\n\t\tjQuery('.vr-quickres-step-unactive-field:not(#vrqr-nostep' + step + '-REPLACE_TO_ID)').show();\n\t\t\n\t\tvrqr_current_step = step;\n\t}\n\t\n\t\/\/ STEP 1\n\t\n\tfunction vrModFindTableCall(button) {\n\t\tif (jQuery(button).hasClass('clicked')) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tjQuery(button).addClass('clicked');\n\t\t\n\t\tvar date \t= jQuery('#vrqr-calendar-modREPLACE_TO_ID').val();\n\t\tvar hourmin = jQuery('#vrqr-hour-modREPLACE_TO_ID').val();\n\t\tvar people \t= jQuery('#vrqr-people-modREPLACE_TO_ID').val();\n\t\tvar family  = jQuery('#vrfamilyqrmodREPLACE_TO_ID').is(':checked') ? 1 : 0;\n\t\t\n\t\t\n\t\tUIAjax.do(\n\t\t\t'https:\/\/chanioportarestaurant.gr\/wp-admin\/admin-ajax.php?task=quickres.findtable&tmpl=component&Itemid=359&action=vikrestaurants&vik_ajax_client=site',\n\t\t\t{\n\t\t\t\tdate: \t date,\n\t\t\t\thourmin: hourmin,\n\t\t\t\tpeople:  people,\n\t\t\t\tfamily:  family,\n\t\t\t},\n\t\t\tfunction(resp) {\n\t\t\t\tvar obj = jQuery.parseJSON(resp);\n\t\t\t\n\t\t\t\tif (obj[0] == 1) {\n\t\t\t\t\tjQuery('#vrqr-error1-REPLACE_TO_ID').hide();\n\t\t\t\t\tjQuery('#vrqr-hints1-REPLACE_TO_ID').hide();\n\t\t\t\t\t\n\t\t\t\t\tvrModFindTableCompleted(obj[1], obj[2]);\n\t\t\t\t} else if (obj[0] == -1 && obj[1].length > 0) {\n\t\t\t\t\tjQuery('#vrqr-error1-REPLACE_TO_ID').hide();\n\t\t\t\t\t\n\t\t\t\t\tvrModFillHints(obj[1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tjQuery(button).removeClass('clicked');\n\t\t\t},\n\t\t\tfunction(err) {\n\t\t\t\tif (!err.responseText) {\n\t\t\t\t\t\/\/ use default \"connection lost\" error\n\t\t\t\t\terr.responseText = Joomla.JText._('VRCONNECTIONLOST');\n\t\t\t\t}\n\n\t\t\t\tjQuery('#vrqr-hints1-REPLACE_TO_ID').hide();\n\t\t\t\t\n\t\t\t\tjQuery('#vrqr-error1-REPLACE_TO_ID').html(err.responseText);\n\t\t\t\tjQuery('#vrqr-error1-REPLACE_TO_ID').show();\n\t\t\t\n\t\t\t\tjQuery(button).removeClass('clicked');\n\t\t\t}\n\t\t);\n\t}\n\t\n\tfunction vrModFindTableCompleted(str, rooms) {\n\t\tjQuery('#vrqr-nostep1-REPLACE_TO_ID').html(str);\n\t\tjQuery('#vrqr-nostep1-REPLACE_TO_ID').addClass('clickable');\n\t\t\n\t\tjQuery('#vrqr-step1-REPLACE_TO_ID').slideUp();\n\t\tjQuery('#vrqr-nostep1-REPLACE_TO_ID').show();\n\t\t\n\t\tif (0 == 1) {\n\t\t\t\n\t\t\tvar html = '';\n\t\t\t\n\t\t\tfor (var i = 0; i < rooms.length; i++) {\n\t\t\t\thtml += '<option value=\"' + rooms[i].id + '\">' + rooms[i].name + '<\/option>';\n\t\t\t}\n\n\t\t\tjQuery('#vrqr-room-mod-REPLACE_TO_ID').html(html);\n\t\t\t\n\t\t\tif (rooms.length == 1) {\n\t\t\t\tjQuery('#vrqr-nostep2-REPLACE_TO_ID').html(rooms[0].str);\n\t\t\t\tjQuery('#vrqr-step3-REPLACE_TO_ID').slideDown();\n\t\t\t\t\n\t\t\t\tvrqr_current_step = 3;\n\t\t\t} else {\n\t\t\t\tjQuery('#vrqr-nostep2-REPLACE_TO_ID').slideUp();\n\t\t\t\tjQuery('#vrqr-step2-REPLACE_TO_ID').slideDown();\n\t\t\t\t\n\t\t\t\tvrqr_current_step = 2;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tjQuery('#vrqr-step3-REPLACE_TO_ID').slideDown();\n\t\t\tvrqr_current_step = 3;\n\t\t}\n\t}\n\t\n\tfunction vrModFillHints(hints) {\n\t\tvar _html = \"\";\n\n\t\tfor (var i = 0; i < hints.length; i++) {\n\t\t\tif (hints[i]) {\n\t\t\t\t_html += '<div class=\"vr-quickres-hint-block\"><a href=\"javascript: void(0);\" onClick=\"vrModHintClicked(\\'' + hints[i].hour + ':' + hints[i].min + '\\')\">' + hints[i].format + '<\/a><\/div>\\n';\n\t\t\t}\n\t\t}\n\n\t\tjQuery('#vrqr-hints1-REPLACE_TO_ID .vr-quickres-step-hints-content').html(_html);\n\t\tjQuery('#vrqr-hints1-REPLACE_TO_ID').show();\n\t}\n\t\n\tfunction vrModHintClicked(time) {\n\t\tjQuery('#vrqr-hour-modREPLACE_TO_ID').val(time);\n\t\t\n\t\tjQuery('#vrqr-buttonfind-REPLACE_TO_ID').trigger('click');\n\t}\n\t\n\t\/\/ STEP 2\n\t\n\tfunction vrModRoomSelected(button) {\n\t\tif (jQuery(button).hasClass('clicked')) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tjQuery(button).addClass('clicked');\n\t\t\n\t\tvar room = jQuery('#vrqr-room-mod-REPLACE_TO_ID').val();\n\t\t\n\t\tUIAjax.do(\n\t\t\t'https:\/\/chanioportarestaurant.gr\/wp-admin\/admin-ajax.php?task=quickres.selectroom&tmpl=component&Itemid=359&action=vikrestaurants&vik_ajax_client=site',\n\t\t\t{\n\t\t\t\tid_room: room,\n\t\t\t},\n\t\t\tfunction(resp) {\n\t\t\t\tvar obj = jQuery.parseJSON(resp);\n\t\t\t\n\t\t\t\tif (obj[0]) {\n\t\t\t\t\tjQuery('#vrqr-room-mod-REPLACE_TO_ID').removeClass('vrqr-required-field');\n\t\t\t\t\tvrModRoomSelectedCompleted(obj[1]);\n\t\t\t\t} else {\n\t\t\t\t\tjQuery('#vrqr-room-mod-REPLACE_TO_ID').addClass('vrqr-required-field');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tjQuery(button).removeClass('clicked');\n\t\t\t},\n\t\t\tfunction(err) {\n\t\t\t\tif (!err.responseText) {\n\t\t\t\t\t\/\/ use default error message if not provided\n\t\t\t\t\terr.responseText = Joomla.JText._('VRCONNECTIONLOST');\n\t\t\t\t}\n\n\t\t\t\talert(err.responseText);\n\t\t\t\n\t\t\t\tjQuery(button).removeClass('clicked');\n\t\t\t}\n\t\t);\n\t}\n\t\n\tfunction vrModRoomSelectedCompleted(str) {\n\t\tjQuery('#vrqr-nostep2-REPLACE_TO_ID').html(str);\n\t\tjQuery('#vrqr-nostep2-REPLACE_TO_ID').addClass('clickable');\n\t\t\n\t\tjQuery('#vrqr-step2-REPLACE_TO_ID').slideUp();\n\t\tjQuery('#vrqr-nostep2-REPLACE_TO_ID').show();\n\t\t\n\t\tjQuery('#vrqr-nostep3-REPLACE_TO_ID').slideUp();\n\t\tjQuery('#vrqr-step3-REPLACE_TO_ID').slideDown();\n\t\t\n\t\tvrqr_current_step = 3;\n\t}\n\t\n\t\/\/ STEP 3 \n\n\tvar vrQuickResCustomFieldsValidator;\n\n\tjQuery(document).ready(function() {\n\t\tvrQuickResCustomFieldsValidator = new VikFormValidator(\n\t\t\t'#vrqr-step3-REPLACE_TO_ID',\n\t\t\t'vrqr-required-field'\n\t\t);\n\n\t\t\/**\n\t\t * Overwrite getLabel method to properly access the\n\t\t * label by using our custom layout.\n\t\t *\n\t\t * @param \tmixed \tinput  The input element.\n\t\t *\n\t\t * @return \tmixed \tThe label of the input.\n\t\t *\/\n\t\tvrQuickResCustomFieldsValidator.getLabel = function(input) {\n\t\t\tif (jQuery(input).is(':checkbox')) {\n\t\t\t\t\/\/ return label in case of checkbox\n\t\t\t\treturn jQuery(input).next();\n\t\t\t}\n\n\t\t\t\/\/ return input itself\n\t\t\treturn jQuery(this);\n\t\t}\n\n\t\t\t});\n\t\n\tfunction vrModValidateCustomFields(button) {\n\t\tif (jQuery(button).hasClass('clicked')) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tjQuery(button).addClass('clicked');\n\t\t\n\t\tif (vrQuickResCustomFieldsValidator.validate()) {\n\t\t\tvrModRegisterReservation(button);\n\t\t} else {\n\t\t\tjQuery(button).removeClass('clicked');\n\t\t}\n\t}\n\t\n\tfunction vrModRegisterReservation(button) {\n\t\tvar form = jQuery('#vrqr-custfields-modformREPLACE_TO_ID');\n\n\t\t\/\/ include dial code within the phone number\n\t\tjQuery(form).find('.iti input').filter('[type=\"text\"],[type=\"tel\"]').each(function() {\n\t\t\tvar input = jQuery(this);\n\t\t\tvar phone = input.val();\n\n\t\t\tif (phone.length) {\n\t\t\t\tvar country = input.intlTelInput('getSelectedCountryData');\n\n\t\t\t\t\/\/ make sure the phone number doesn't already specify the dial code\n\t\t\t\tif (phone.indexOf('+' + country.dialCode) === -1) {\n\t\t\t\t\t\/\/ prepend dial code before submit\n\t\t\t\t\tinput.val('+' + country.dialCode + ' ' + input.val());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tUIAjax.do(\n\t\t\t'https:\/\/chanioportarestaurant.gr\/wp-admin\/admin-ajax.php?task=quickres.save&tmpl=component&Itemid=359&action=vikrestaurants&vik_ajax_client=site',\n\t\t\tform.serialize(),\n\t\t\tfunction(resp) {\n\t\t\t\tvar obj = jQuery.parseJSON(resp);\n\n\t\t\t\tjQuery('#vrqr-error3-REPLACE_TO_ID').hide();\n\t\t\t\tvrModReservationConfirmed(obj[1], obj[2]);\n\t\t\t\t\n\t\t\t\tjQuery(button).removeClass('clicked');\n\t\t\t},\n\t\t\tfunction(err) {\n\t\t\t\tif (!err.responseText) {\n\t\t\t\t\t\/\/ use default error message\n\t\t\t\t\terr.responseText = Joomla.JText._('VRCONNECTIONLOST');\n\t\t\t\t}\n\n\t\t\t\tjQuery('#vrqr-error3-REPLACE_TO_ID').html(err.responseText);\n\t\t\t\tjQuery('#vrqr-error3-REPLACE_TO_ID').show();\n\t\t\t\n\t\t\t\tjQuery(button).removeClass('clicked');\n\t\t\t}\n\t\t);\n\t}\n\t\n\tfunction vrModReservationConfirmed(custom_fields, url) {\n\t\t\t\t\n\t\tjQuery('#vrqr-nostep3-REPLACE_TO_ID').html(custom_fields);\n\t\tjQuery('#vrqr-nostep3-REPLACE_TO_ID').addClass('clickable');\n\t\tjQuery('#vrqr-step4-REPLACE_TO_ID .vrqr-content').html('\u0395\u03c5\u03c7\u03b1\u03c1\u03b9\u03c3\u03c4\u03bf\u03cd\u03bc\u03b5 \u03b3\u03b9\u03b1 \u03c4\u03b7\u03bd \u03ba\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7!');\n\t\t\n\t\tjQuery('#vrqr-buttonurl-REPLACE_TO_ID').attr('onClick', \"document.location.href='\" + url + \"';\");\n\t\t\n\t\tjQuery('#vrqr-step3-REPLACE_TO_ID').slideUp();\n\t\tjQuery('#vrqr-nostep3-REPLACE_TO_ID').show();\n\t\t\n\t\tjQuery('#vrqr-nostep4-REPLACE_TO_ID').hide();\n\t\t\n\t\tjQuery('#vrqr-step4-REPLACE_TO_ID').slideDown();\n\t\t\n\t\tjQuery('.vr-quickres-step-unactive-field').removeClass('clickable');\n\t\t\n\t\tvrqr_current_step = 4;\n\t}\n\t\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-954","page","type-page","status-publish","hentry"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/chanioportarestaurant.gr\/fr\/wp-json\/wp\/v2\/pages\/954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chanioportarestaurant.gr\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/chanioportarestaurant.gr\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/chanioportarestaurant.gr\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chanioportarestaurant.gr\/fr\/wp-json\/wp\/v2\/comments?post=954"}],"version-history":[{"count":13,"href":"https:\/\/chanioportarestaurant.gr\/fr\/wp-json\/wp\/v2\/pages\/954\/revisions"}],"predecessor-version":[{"id":967,"href":"https:\/\/chanioportarestaurant.gr\/fr\/wp-json\/wp\/v2\/pages\/954\/revisions\/967"}],"wp:attachment":[{"href":"https:\/\/chanioportarestaurant.gr\/fr\/wp-json\/wp\/v2\/media?parent=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}