(window["wpcalMainWebpackJsonp"] = window["wpcalMainWebpackJsonp"] || []).push([["chunk-common"],{

/***/ "0d02":
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "0e01":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingStep1_vue_vue_type_style_index_0_id_d8a2b7ca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0d02");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingStep1_vue_vue_type_style_index_0_id_d8a2b7ca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingStep1_vue_vue_type_style_index_0_id_d8a2b7ca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ 1:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ "1619":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b85c");
/* harmony import */ var _Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2909");
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("4de4");
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("4e82");
/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a15b");
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("7db0");
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("ac1f");
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("1276");
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("a9e3");
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("498a");
/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("2b0e");
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("b166");
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("4602");
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("9a80");
/* harmony import */ var date_fns_tz__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("fe33");
/* harmony import */ var date_fns_tz__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("78b2");
/* harmony import */ var date_fns_tz__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("27eb");
/* harmony import */ var _utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("d1ff");















vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_format_time_only", function (value) {
  var time_format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "HH:mm";

  if (!value) {
    return "";
  }

  if (value && !(value instanceof Date)) {
    value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* date_parse */ "i"])("2000-01-01 " + value);
  }

  var return_value = Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, time_format);
  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_format_std_date", function (value) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* date_parse */ "i"])(value);
  }

  var return_value = Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "yyyy-MM-dd");
  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_format_date_style1", function (value) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* date_parse */ "i"])(value);
  }

  var return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* _x */ "g"])(Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "MMM"), "three-letter month abbreviation", "wpcal") + " " + Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "d, yyyy"); //"MMM d, yyyy" -- "MMM"  is Jan, Feb, ..., Dec

  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_format_full_date_day", function (value) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* date_parse */ "i"])(value);
  }

  var return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "EEEE"), "wpcal") + ", " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "do"), "wpcal") + " " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "LLLL"), "wpcal") + ", " + Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "yyyy"); //"EEEE, do LLLL, yyyy" -- "EEEE"  is Monday, Tuesday, ..., Sunday | "LLLL" is January, February, ..., December | do	is 1st, 2nd, ..., 31st

  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_format_fw_fm_dth_y", function (value) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* date_parse */ "i"])(value);
  }

  var format_str = "EEEE, LLLL do";

  var return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "EEEE"), "wpcal") + ", " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "LLLL"), "wpcal") + " " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, "do"), "wpcal"); //"EEEE, LLLL do" -- "EEEE"  is Monday, Tuesday, ..., Sunday | "LLLL" is January, February, ..., December | do	is 1st, 2nd, ..., 31st


  if (new Date().getFullYear() != value.getFullYear()) {
    format_str = "EEEE, LLLL do, yyyy";
    return_value += Object(date_fns__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"])(value, ", yyyy");
  }

  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_convert_tz_std_date_to_month_year_obj", function (value, from_tz, to_tz) {
  if (!value) {
    return "";
  }

  var date_from_tz = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_15__[/* default */ "a"])(value, {
    timeZone: from_tz
  });
  var date_to_tz = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(date_from_tz, to_tz);
  var month = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(date_to_tz, "L", {
    timeZone: to_tz
  });
  var year = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(date_to_tz, "yyyy", {
    timeZone: to_tz
  });
  var month_year_obj = {
    month: parseInt(month),
    year: parseInt(year)
  };
  return month_year_obj;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_unix_to_time", function (value, tz) {
  var time_format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "HH:mm";

  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(value);
  }

  value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(value, tz);
  var return_value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, time_format, {
    timeZone: tz
  });
  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_unix_to_date", function (value, tz) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(value);
  }

  value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(value, tz);
  var return_value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "yyyy-MM-dd", {
    timeZone: tz
  });
  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_unix_to_sm_sd_if_fy", function (value, tz) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(value);
  }

  value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(value, tz);
  var format_str = "MMM d";
  var return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* _x */ "g"])(Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "MMM", {
    timeZone: tz
  }), "three-letter month abbreviation", "wpcal") + " " + Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "d", {
    timeZone: tz
  }); //"MMM d" -- "MMM"  is Jan, Feb, ..., Dec

  if (new Date().getFullYear() != value.getFullYear()) {
    format_str = "MMM d, yyyy";
    return_value += Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, ", yyyy", {
      timeZone: tz
    });
  }

  return return_value;
});

var helper_plain_unix_to_full_date_day = function helper_plain_unix_to_full_date_day(value, tz) {
  var return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "EEEE", {
    timeZone: tz
  }), "wpcal") + ", " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "do", {
    timeZone: tz
  }), "wpcal") + " " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "LLLL", {
    timeZone: tz
  }), "wpcal") + ", " + Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "yyyy", {
    timeZone: tz
  }); //"EEEE, do LLLL, yyyy" -- "EEEE"  is Monday, Tuesday, ..., Sunday | "LLLL" is January, February, ..., December | do	is 1st, 2nd, ..., 31st

  return return_value;
};

vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_unix_to_full_date_day", function (value, tz) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(value);
  }

  value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(value, tz);
  var return_value = helper_plain_unix_to_full_date_day(value, tz);
  var tz_name = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* get_tz_name */ "k"])(tz);
  return_value += " (" + tz_name + ")";
  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_unix_to_from_to_time_full_date_day_tz", function (from_time, to_time, tz) {
  var time_format = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "HH:mm";

  if (!from_time || !to_time) {
    return "";
  }

  if (!(from_time instanceof Date)) {
    from_time = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(from_time);
  }

  if (!(to_time instanceof Date)) {
    to_time = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(to_time);
  }

  from_time = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(from_time, tz);
  to_time = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(to_time, tz);
  var date_std = "yyyy-MM-dd";
  var date1_std = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(from_time, date_std, {
    timeZone: tz
  });
  var date2_std = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(to_time, date_std, {
    timeZone: tz
  });
  var date_long_format = "EEEE, do LLLL, yyyy";
  var from_time_format = time_format;
  var from_time_display = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(from_time, from_time_format, {
    timeZone: tz
  });
  var to_time_format = time_format + ", " + date_long_format;
  var to_time_display = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(to_time, time_format, {
    timeZone: tz
  }) + ",<br>" + helper_plain_unix_to_full_date_day(to_time, tz);

  if (date1_std != date2_std) {
    from_time_format = time_format + ", " + date_long_format;
    from_time_display = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(from_time, time_format, {
      timeZone: tz
    }) + ", " + helper_plain_unix_to_full_date_day(from_time, tz);
  } // let from_time_display = tz_format(from_time, from_time_format, {
  //   timeZone: tz
  // });
  // let to_time_display = tz_format(to_time, to_time_format, { timeZone: tz });


  var tz_name = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* get_tz_name */ "k"])(tz);
  var return_value = from_time_display + " - " + to_time_display + "<br>(" + tz_name + ")";
  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_unix_to_unix_only_date", function (value, tz) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(value);
  }

  value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(value, tz);
  value.setHours(0);
  value.setMinutes(0);
  value.setSeconds(0);
  var only_date = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "yyyy-MM-dd", {
    timeZone: tz
  }); //there is some bug or some unknown with data-fns-tz package while converting to unix so this workaround is used.

  value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_15__[/* default */ "a"])(only_date, {
    timeZone: tz
  });
  var return_value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "t", {
    timeZone: tz
  });
  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_unix_to_sw_sm_sd_if_fy", function (value, tz) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(value);
  }

  value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(value, tz);
  var format_str = "iii, MMM d";
  var return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* __ */ "c"])(Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "iii", {
    timeZone: tz
  }), "wpcal") + ", " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* _x */ "g"])(Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "MMM", {
    timeZone: tz
  }), "three-letter month abbreviation", "wpcal") + " " + Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, "d", {
    timeZone: tz
  }); //"iii, MMM d" -- MMM	is Jan, Feb, ..., Dec | iii is Mon, Tue, Wed, ..., Sun

  if (new Date().getFullYear() != value.getFullYear()) {
    format_str = "iii, MMM d, yyyy";
    return_value += Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(value, ", yyyy", {
      timeZone: tz
    });
  } //let return_value = tz_format(value, format_str, { timeZone: tz });


  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_unix_to_relative_day", function (value, tz) {
  if (!value) {
    return "";
  }

  if (!(value instanceof Date)) {
    value = Object(date_fns__WEBPACK_IMPORTED_MODULE_13__[/* default */ "a"])(value);
  }

  value = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(value, tz);
  var today_zero = new Date();
  today_zero = Object(date_fns_tz__WEBPACK_IMPORTED_MODULE_16__[/* default */ "a"])(today_zero, tz);
  today_zero.setHours(0);
  today_zero.setMinutes(0);
  today_zero.setSeconds(0);
  today_zero.setMilliseconds(0);
  var hours_diff = Object(date_fns__WEBPACK_IMPORTED_MODULE_14__[/* default */ "a"])(value, today_zero);
  var return_value = "";

  if (hours_diff > 48) {
    return return_value;
  }

  if (value >= today_zero) {
    if (hours_diff > -1 && hours_diff < 24) {
      return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* T__ */ "a"])("TODAY", "wpcal");
    } else if (hours_diff >= 24 && hours_diff < 48) {
      return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* T__ */ "a"])("TOMORROW", "wpcal");
    }
  } else {
    if (hours_diff < 0 && hours_diff >= -24) {
      return_value = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* T__ */ "a"])("YESTERDAY", "wpcal");
    }
  }

  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_format_tz", function (tz) {
  if (!tz) {
    return "";
  }

  var tz_name = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* get_tz_name */ "k"])(tz);
  return tz_name;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_format_weekdays_summary", function (selected_days) {
  var weekdays = _utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* weekdays_list */ "A"];

  if (!Array.isArray(selected_days) || selected_days.length < 1) {
    return "";
  }

  var selected_days_final = Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(selected_days);

  selected_days_final.sort();
  var show_days = [];
  var is_continuity = true;
  var last_index = "";

  var _iterator = Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(selected_days_final),
      _step;

  try {
    var _loop = function _loop() {
      var day_index = _step.value;
      var weekday_detail_final = weekdays.find(function (weekday_detail) {
        return weekday_detail.index == day_index;
      });
      show_days.push(weekday_detail_final.short_day);

      if (last_index !== "") {
        if (is_continuity && parseInt(last_index) + 1 != weekday_detail_final.index) {
          is_continuity = false;
        }
      }

      last_index = day_index;
    };

    for (_iterator.s(); !(_step = _iterator.n()).done;) {
      _loop();
    }
  } catch (err) {
    _iterator.e(err);
  } finally {
    _iterator.f();
  }

  var days_str = show_days.join(", ");

  if (is_continuity && show_days.length > 1) {
    days_str = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* Tsprintf */ "b"])(
    /* translators: 1: Weekday abbreviation 2: Weekday abbreviation */
    Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* T__ */ "a"])("%1$s to %2$s", "wpcal"), show_days.shift(), show_days.pop());
  }

  return days_str;
}); //------------------------------------------------------->

vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("wpcal_get_firstname", function (value) {
  if (!value && typeof value !== "string") {
    return "";
  }

  var return_value = value.split(" ")[0];
  return return_value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("relationship_type_str", function (value) {
  if (value === "1to1") {
    return Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* T__ */ "a"])("One-on-One", "wpcal");
  }

  return value;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("mins_to_str", function (d) {
  d = Number(d);
  d = d * 60;
  var h = Math.floor(d / 3600);
  var m = Math.floor(d % 3600 / 60); //let s = Math.floor((d % 3600) % 60);

  var hDisplay = h > 0 ? h + " " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* _n */ "e"])("hr", "hrs", h, "wpcal") : "";
  var mDisplay = m > 0 ? m + " " + Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* _n */ "e"])("min", "mins", m, "wpcal") : ""; //let sDisplay = s > 0 ? s + (s == 1 ? " second" : " seconds") : "";

  var display = [hDisplay, mDisplay];
  display = display.filter(function (v) {
    return v.trim() ? true : false;
  });
  return display.join(" "); // + sDisplay;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("calendar_provider_name", function (provider) {
  var providers = {
    google_calendar: "Google Calendar",
    office365_calendar: "Office 365",
    outlook_calendar: "Outlook Plug-in",
    icloud_calendar: "iCloud Calendar"
  };

  if (providers.hasOwnProperty(provider)) {
    return providers[provider];
  }

  return provider;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("tp_provider_name", function (provider) {
  var providers = {
    zoom_meeting: "Zoom",
    gotomeeting_meeting: "GoToMeeting",
    googlemeet_meeting: "Google Meet / Hangouts"
  };

  if (providers.hasOwnProperty(provider)) {
    return providers[provider];
  }

  return provider;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("locations_summary", function (locations) {
  if (!Array.isArray(locations)) {
    return locations;
  }

  if (!locations.length) {
    return "";
  }

  if (!locations[0].hasOwnProperty("type")) {
    return locations;
  }

  var total_locations = locations.length;
  var more_locations_count = total_locations - 1;
  var summary;

  if (locations[0].hasOwnProperty("form") && locations[0].form && locations[0].form.hasOwnProperty("location") && locations[0].form.location) {
    summary = '<span style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 205px;" >' + locations[0].form.location + "</span>";
  } else {
    summary = Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* location_prop_by_type */ "p"])(locations[0].type, "name");
  }

  if (more_locations_count > 0) {
    summary += " (+" + more_locations_count + " more)";
  }

  return summary;
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("location_name_by_type", function (location_type) {
  return Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* location_prop_by_type */ "p"])(location_type, "name");
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("location_short_descr_by_type", function (location_type) {
  return Object(_utils_common_func_js__WEBPACK_IMPORTED_MODULE_18__[/* location_prop_by_type */ "p"])(location_type, "short_descr");
});
vue__WEBPACK_IMPORTED_MODULE_11__["default"].filter("admin_booking_status", function (status, booking_to_time) {
  var current_time_ts = new Date().getTime() / 1000;
  var result = "Unknown";

  switch (true) {
    case status == 1 && booking_to_time >= current_time_ts:
      result = "Active";
      break;

    case status == 1 && booking_to_time < current_time_ts:
      result = "Past";
      break;

    case status == -1:
      result = "Cancelled";
      break;

    case status == -5:
      result = "Rescheduled";
      break;
  }

  return result;
});

/***/ }),

/***/ "2242":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__("ade3");

// EXTERNAL MODULE: ./src/utils/common_func.js
var common_func = __webpack_require__("d1ff");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form_elements/ValidationFormGroup.vue?vue&type=template&id=08d18502&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[(_vm.validator.hasOwnProperty('$dirty'))?_c('div',{staticClass:"wpc-form-row",class:{ 'has-error': _vm.validator.$dirty && _vm.validator.$error },style:(_vm.style_form_row)},[_vm._t("default"),(_vm.hasErrors)?_c('div',{staticClass:"wpc-form-error-msg"},_vm._l((_vm.activeErrorMessages),function(error,index){return _c('div',{key:index},[_vm._v(" "+_vm._s(error)+" ")])}),0):_vm._e(),_vm._t("after")],2):_c('div',{staticClass:"wpc-form-row",style:(_vm.style_form_row)},[_vm._t("default"),_vm._t("after")],2)])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/form_elements/ValidationFormGroup.vue?vue&type=template&id=08d18502&

// EXTERNAL MODULE: ./node_modules/vuelidate-error-extractor/dist/vuelidate-error-extractor.esm.js + 2 modules
var vuelidate_error_extractor_esm = __webpack_require__("7f53");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form_elements/ValidationFormGroup.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var ValidationFormGroupvue_type_script_lang_js_ = ({
  mixins: [vuelidate_error_extractor_esm["b" /* singleErrorExtractorMixin */]],
  props: {
    style_form_row: {
      type: String,
      default: ""
    }
  }
});
// CONCATENATED MODULE: ./src/components/form_elements/ValidationFormGroup.vue?vue&type=script&lang=js&
 /* harmony default export */ var form_elements_ValidationFormGroupvue_type_script_lang_js_ = (ValidationFormGroupvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/form_elements/ValidationFormGroup.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  form_elements_ValidationFormGroupvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var ValidationFormGroup = (component.exports);
// CONCATENATED MODULE: ./src/utils/vuelidate_error_extractor_options.js


var _messages;

 // _lang - to avoid name changed by webpack


/* harmony default export */ var vuelidate_error_extractor_options = __webpack_exports__["a"] = ({
  name: "form-row",
  template: ValidationFormGroup,
  // you can also pass your own custom template
  messages: (_messages = {
    // error messages to use
    // required: "This {attribute} field is required1.",
    // email: "This {attribute} field must a valid email.",
    // integer: "This {attribute} field must be a number.",
    required: common_func["d" /* _lang */].__("This field is required.", "wpcal"),
    email: common_func["d" /* _lang */].__("This field must a valid email.", "wpcal"),
    integer: common_func["d" /* _lang */].__("This field must be a number.", "wpcal"),
    between_duration: common_func["d" /* _lang */].T__("This field must be between 1 and 1440 (including).", "wpcal"),
    between_display_start_time_every: common_func["d" /* _lang */].T__("This field must be between 1 and 1440 (including).", "wpcal"),
    between_max_booking_per_day: common_func["d" /* _lang */].T__("This field must be between 1 and 1440 (including).", "wpcal"),
    between_event_buffer_before: common_func["d" /* _lang */].__("Please select valid field.", "wpcal")
  }, Object(defineProperty["a" /* default */])(_messages, "between_event_buffer_before", common_func["d" /* _lang */].__("Please select valid field.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "min_date", common_func["d" /* _lang */].T__("Too bad, we can't time travel yet. The TO date should be later than the FROM date.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "min_time", common_func["d" /* _lang */].T__("Too bad, we can't time travel yet. The TO time should be later than the FROM time.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "valid_date", common_func["d" /* _lang */].__("This field date must be valid.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "valid_time", common_func["d" /* _lang */].__("This field time must be valid.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "check_periods_collide", common_func["d" /* _lang */].T__("This time periods clashing with each other.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "must_be_1_or_0", common_func["d" /* _lang */].T__("This field value must be 1 or 0.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "in_array_time_format", common_func["d" /* _lang */].T__("This field value must be 12hrs or 24hrs.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "subset_working_days", common_func["d" /* _lang */].T__("This field value must be between 1 and 7(including).", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "max_char_length_500", common_func["d" /* _lang */].__("This field can contain a maximum of 500 characters.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "valid_color", common_func["d" /* _lang */].T__("Please enter a valid hex color code. Eg. #eee, #eeeeee.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "branding_font_in_array", common_func["d" /* _lang */].__("Invalid selection value.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "use_wp_mail_in_array", common_func["d" /* _lang */].__("Invalid selection value.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "hide_premium_info_badges_in_array", common_func["d" /* _lang */].__("Invalid selection value.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "valid_phone", common_func["d" /* _lang */].__("This field value must be valid phone number.", "wpcal")), Object(defineProperty["a" /* default */])(_messages, "valid_phone_if", common_func["d" /* _lang */].__("This field value must be valid phone number.", "wpcal")), _messages),
  attributes: {
    // maps form keys to actual field names
    email: "Email",
    first_name: "First name",
    last_name: "Last name"
  }
});

/***/ }),

/***/ "2c7e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingOldInfo_vue_vue_type_style_index_0_id_1a5c2e60_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b205");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingOldInfo_vue_vue_type_style_index_0_id_1a5c2e60_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingOldInfo_vue_vue_type_style_index_0_id_1a5c2e60_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "2f7b":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/LocationAdvanced.vue?vue&type=template&id=bc0ab744&
var render = function () {
var _obj, _obj$1;
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[(
      _vm.type == 'display_booking_left_info_section' &&
        _vm.is_single_location_and_no_input_required
    )?_c('span',[_c('div',{staticClass:"event-type-location",class:( _obj = {}, _obj['location_' + _vm.single_location_label_before_booking.type] = true, _obj )},[_vm._v(" "+_vm._s(_vm.single_location_label_before_booking.label)+" ")])]):_vm._e(),(
      _vm.type == 'display_booking_location_options' &&
        _vm.is_multiple_locations_or_input_required
    )?_c('span',[_c('form-row',{attrs:{"validator":_vm.$v.type}},[_c('label',{staticClass:"wpc-label"},[_vm._v(_vm._s(_vm.__("How shall we connect?", "wpcal"))),_c('em',[_vm._v(_vm._s(_vm.__("required", "wpcal")))])]),_c('ul',{staticClass:"selector block location",style:(_vm.is_multiple_locations ? '' : '')},_vm._l((_vm.locations),function(location,index){
    var _obj;
return _c('li',{key:index},[(_vm.is_multiple_locations)?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.selected_location_index),expression:"selected_location_index"}],attrs:{"type":"radio","name":"location_radio","id":'location_' + index},domProps:{"value":index,"checked":_vm._q(_vm.selected_location_index,index)},on:{"focus":function($event){_vm.is_location_requires_input(location) &&
                _vm.booking_location_option_focus_on_txt_box(
                  'location_txt_' + index
                )},"click":function($event){_vm.is_location_requires_input(location) &&
                _vm.booking_location_option_focus_on_txt_box(
                  'location_txt_' + index
                )},"change":function($event){_vm.selected_location_index=index}}}):_vm._e(),_c('label',{staticClass:"wpc-label",class:( _obj = {}, _obj['location_' + location.type] = true, _obj ),attrs:{"for":'location_' + index}},[(location.type === 'phone')?_c('svg',{staticClass:"icon-fill phone-reciever"},[_c('use',{attrs:{"xlink:href":"#icon-phone-reciever"}})]):_vm._e(),(
                location.type === 'physical' ||
                  location.type === 'ask_invitee'
              )?_c('svg',{staticClass:"icon-fill pin-solid"},[_c('use',{attrs:{"xlink:href":"#icon-pin-solid"}})]):_vm._e(),_vm._v(" "+_vm._s(_vm.booking_location_option_label(location))+" "),_c('div',[(
                  _vm.booking_location_option_help_txt(location) &&
                    (location.type == 'ask_invitee' ||
                      _vm.selected_location_index === index)
                )?_c('div',{staticClass:"txt-help",class:{ pre: location.type == 'ask_invitee' }},[_vm._v(" "+_vm._s(_vm.booking_location_option_help_txt(location))+" ")]):_vm._e(),(
                  _vm.is_location_requires_input(location) &&
                    _vm.selected_location_index === index
                )?_c('form-row',{attrs:{"validator":_vm.get_validator_for_location_while_booking(index),"style_form_row":location.type != 'ask_invitee' ? 'margin-bottom:0;' : ''}},[((location.type == 'phone' ? 'tel' : 'text')==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(location.form.location),expression:"location.form.location"}],ref:'location_txt_' + index,refInFor:true,attrs:{"maxlength":_vm.get_maxlength_from_validation(_vm.$v.form.location),"autocomplete":location.type == 'phone' ? 'tel' : '',"inputmode":location.type == 'phone' ? 'tel' : '',"type":"checkbox"},domProps:{"checked":Array.isArray(location.form.location)?_vm._i(location.form.location,null)>-1:(location.form.location)},on:{"change":[function($event){var $$a=location.form.location,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(location.form, "location", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(location.form, "location", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(location.form, "location", $$c)}},function($event){return _vm.$v.form.location.$touch()}]}}):((location.type == 'phone' ? 'tel' : 'text')==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(location.form.location),expression:"location.form.location"}],ref:'location_txt_' + index,refInFor:true,attrs:{"maxlength":_vm.get_maxlength_from_validation(_vm.$v.form.location),"autocomplete":location.type == 'phone' ? 'tel' : '',"inputmode":location.type == 'phone' ? 'tel' : '',"type":"radio"},domProps:{"checked":_vm._q(location.form.location,null)},on:{"change":[function($event){return _vm.$set(location.form, "location", null)},function($event){return _vm.$v.form.location.$touch()}]}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(location.form.location),expression:"location.form.location"}],ref:'location_txt_' + index,refInFor:true,attrs:{"maxlength":_vm.get_maxlength_from_validation(_vm.$v.form.location),"autocomplete":location.type == 'phone' ? 'tel' : '',"inputmode":location.type == 'phone' ? 'tel' : '',"type":location.type == 'phone' ? 'tel' : 'text'},domProps:{"value":(location.form.location)},on:{"change":function($event){return _vm.$v.form.location.$touch()},"input":function($event){if($event.target.composing){ return; }_vm.$set(location.form, "location", $event.target.value)}}}),(location.type == 'ask_invitee')?_c('CharLeft',{attrs:{"maxlength":_vm.get_maxlength_from_validation(_vm.$v.form.location),"input_text":location.form.location}}):_vm._e(),(location.type == 'phone')?_c('div',{staticClass:"txt-help"},[_vm._v(" "+_vm._s(_vm.__( "Please enter phone number with country code. E.g. +1 555 555 1234", "wpcal" ))+" ")]):_vm._e()],1):(
                  location.type !== 'phone' &&
                    location.type !== 'ask_invitee' &&
                    location.form &&
                    location.form.location
                )?_c('div',[_vm._v(" "+_vm._s(location.form.location)+" ")]):_vm._e()],1)])])}),0)])],1):_vm._e(),(
      _vm.type == 'display_user_after_booking_location' &&
        !_vm._isEmpty(_vm.location_details) &&
        _vm.location_details.type
    )?_c('span',[(_vm.after_booking_location_details)?_c('div',{staticClass:"event-type-location",class:( _obj$1 = {}, _obj$1['location_' + _vm.location_details.type] = true, _obj$1 )},[_vm._v(" "+_vm._s(_vm.after_booking_location_details.location)+" "),(_vm.after_booking_location_details.link)?_c('span',[_vm._v(" - "),_c('a',{attrs:{"href":_vm.after_booking_location_details.link,"target":"_blank"}},[_vm._v(_vm._s(_vm.after_booking_location_details.link))])]):_vm._e(),(
          _vm.after_booking_location_details.display_meeting_id_str &&
            _vm.after_booking_location_details.display_meeting_id_str
        )?_c('div',[_vm._v(" "+_vm._s(_vm.after_booking_location_details.display_meeting_id_str)+" ")]):_vm._e(),(_vm.after_booking_location_details.location_extra)?_c('div',{staticClass:"pre"},[_vm._v(" "+_vm._s(_vm.after_booking_location_details.location_extra)+" ")]):_vm._e(),(
          _vm.after_booking_location_details.password_data &&
            _vm.after_booking_location_details.password_data.password
        )?_c('div',[_vm._v(" "+_vm._s(_vm.after_booking_location_details.password_data.label)+": "+_vm._s(_vm.after_booking_location_details.password_data.password)+" ")]):_vm._e()]):_vm._e()]):_vm._e()])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/LocationAdvanced.vue?vue&type=template&id=bc0ab744&

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
var es_array_find_index = __webpack_require__("c740");

// EXTERNAL MODULE: ./src/components/form_elements/CharLeft.vue + 4 modules
var CharLeft = __webpack_require__("84af");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/LocationAdvanced.vue?vue&type=script&lang=js&

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var LocationAdvancedvue_type_script_lang_js_ = ({
  name: "LocationAdvanced",
  components: {
    CharLeft: CharLeft["a" /* default */]
  },
  model: {
    prop: "booking_selected_location",
    event: "booking-selected-location-value-changed"
  },
  props: {
    type: {
      type: String
    },
    locations: {
      type: Array ///default: () => []

    },
    location_details: {//type: Object //commented for console error empty object coming as empty array due to php - if condition later checked
    },
    booking_details: {
      type: Object
    },
    service_admin_details: {
      type: Object
    },
    booking_selected_location: {},
    $v: {}
  },
  data: function data() {
    return {};
  },
  computed: {
    is_single_location: function is_single_location() {
      if (Array.isArray(this.locations) && this.locations.length == 1) {
        return true;
      }

      return false;
    },
    is_single_location_and_no_input_required: function is_single_location_and_no_input_required() {
      if (this.is_single_location) {
        if (!this.is_location_requires_input(this.locations[0])) {
          return true;
        }
      }

      return false;
    },
    is_multiple_locations_or_input_required: function is_multiple_locations_or_input_required() {
      if (this.is_multiple_locations) {
        return true;
      }

      if (this.locations.length === 1 && this.is_location_requires_input(this.locations[0])) {
        return true;
      }

      return false;
    },
    is_multiple_locations: function is_multiple_locations() {
      if (!Array.isArray(this.locations) || this.locations.length == 0) {
        return false;
      }

      if (this.locations.length > 1) {
        return true;
      }

      return false;
    },
    single_location_label_before_booking: function single_location_label_before_booking() {
      if (this.is_single_location_and_no_input_required) {
        if (this.locations[0].type == "physical" || this.locations[0].type == "custom") {
          return {
            type: this.locations[0].type,
            label: this.locations[0].form.location,
            location_extra: this.locations[0].form.location_extra ? this.locations[0].form.location_extra : ""
          };
        }

        if (this.locations[0].type == "phone") {
          //who_calls invitee already checked
          return {
            type: this.locations[0].type,
            label: "Phone",
            location_extra: null
          };
        }
      }

      return {
        type: this.locations[0].type,
        label: this.__("Web conference - The meeting link will be emailed upon confirmation.", "wpcal"),
        location_extra: null
      };
    },
    selected_location_index: {
      get: function get() {
        return this.find_index_of_selected_location(this.locations, this.booking_selected_location);
      },
      set: function set(index) {
        var selected_location = {};

        if (typeof this.locations[index] !== "undefined") {
          selected_location = this.locations[index];
        }

        this.$emit("booking-selected-location-value-changed", selected_location);
      }
    },
    after_booking_location_details: function after_booking_location_details() {
      return this.get_after_booking_location_details(this.location_details);
    }
  },
  methods: {
    is_location_requires_input: function is_location_requires_input(location) {
      if (location.type == "ask_invitee") {
        return true;
      } else if (location.type == "phone" && location.form && location.form.who_calls == "admin") {
        return true;
      }

      return false;
    },
    find_index_of_selected_location: function find_index_of_selected_location(locations, selected_location) {
      if (this._isEmpty(selected_location) || !selected_location.hasOwnProperty("type") || !selected_location.type) {
        return "";
      }

      var selected_location_index = locations.findIndex(function (list_item) {
        if (selected_location.type === list_item.type) {
          if (selected_location.type === "physical" || selected_location.type === "custom") {
            return selected_location.form.location == list_item.form.location;
          } else {
            return true;
          }
        }

        return false;
      });

      if (selected_location_index != -1) {
        return selected_location_index;
      }

      return "";
    },
    check_and_set_if_single_location: function check_and_set_if_single_location() {
      if (this.is_single_location) {
        this.selected_location_index = 0;
      }
    },
    get_after_booking_location_details: function get_after_booking_location_details(location) {
      if (!location || !location.type) {
        return {
          location: ""
        };
      }

      if (location.type === "physical" || location.type === "custom") {
        var location_extra = "";

        if (location.form && location.form.location_extra) {
          location_extra = location.form.location_extra;
        }

        return {
          location: location.form.location,
          location_extra: location_extra
        };
      }

      if (location.type === "ask_invitee") {
        return {
          location: location.form.location
        };
      }

      if (location.type === "phone" && location.form) {
        var location_str;

        if (this.client_end === "admin") {
          var invitee_name = this.booking_details.invitee_name;

          if (location.form.who_calls == "invitee") {
            location_str = this.Tsprintf(
            /* translators: 1: invitee/admin name 2: phone number */
            this.__("%1$s will call you on %2$s", "wpcal"), invitee_name, location.form.location);
          } else if (location.form.who_calls == "admin") {
            location_str = this.Tsprintf(
            /* translators: 1: invitee/admin name 2: phone number */
            this.__("You will call %1$s on %2$s", "wpcal"), invitee_name, location.form.location);
          }
        } else if (this.client_end === "user") {
          var admin_name = this.service_admin_details.display_name;

          if (location.form.who_calls == "invitee") {
            location_str = this.Tsprintf(
            /* translators: 1: invitee/admin name 2: phone number */
            this.__("You will call %1$s on %2$s", "wpcal"), admin_name, location.form.location);
          } else if (location.form.who_calls == "admin") {
            location_str = this.Tsprintf(
            /* translators: 1: invitee/admin name 2: phone number */
            this.__("%1$s will call you on %2$s", "wpcal"), admin_name, location.form.location);
          }
        }

        return {
          location: location_str
        };
      }

      if (location.type === "googlemeet_meeting" || location.type === "zoom_meeting" || location.type === "gotomeeting_meeting") {
        if (this.client_end === "admin") {
          var link = "";

          var _location_str = this.Tsprintf(
          /* translators: %s: meeting app name */
          this.__("%s Web conference", "wpcal"), this.$options.filters.location_name_by_type(location.type));

          if (location.form && location.form.location) {
            link = location.form.location;
          }

          var password_data = {};

          if (location.form && location.form.password_data) {
            password_data = location.form.password_data;
          }

          var display_meeting_id_str = "";

          if (location.form && location.form.display_meeting_id) {
            var meeting_id_label = this.__("Meeting ID", "wpcal");

            if (location.type === "googlemeet_meeting") {
              meeting_id_label = this.__("Meeting code", "wpcal");
            }

            display_meeting_id_str = this.$options.filters.location_name_by_type(location.type) + " " + meeting_id_label + ": " + location.form.display_meeting_id;
          }

          return {
            location: _location_str,
            password_data: password_data,
            link: link,
            display_meeting_id_str: display_meeting_id_str
          };
        } else if (this.client_end === "user") {
          return {
            location: this.Tsprintf(
            /* translators: %s: Location name */
            this.__("%s - The web conferencing details will be emailed to you.", "wpcal"), this.$options.filters.location_name_by_type(location.type))
          };
        }
      }
    },
    get_validator_for_location_while_booking: function get_validator_for_location_while_booking(index) {
      if (index === this.selected_location_index) {
        return this.$v.form.location;
      }

      return {};
    },
    booking_location_option_label: function booking_location_option_label(location) {
      if (location.type === "physical" || location.type === "custom") {
        return "";
      }

      if (location.type === "ask_invitee") {
        return this.__("Enter a location of your choice", "wpcal");
      }

      if (location.type === "phone" && location.form && location.form.who_calls === "invitee") {
        return this.__("You call me at the scheduled time.", "wpcal");
      }

      return this.$options.filters.location_name_by_type(location.type);
    },
    booking_location_option_help_txt: function booking_location_option_help_txt(location) {
      if (location.type === "phone" && location.form) {
        if (location.form.who_calls === "admin") {
          return this.Tsprintf(
          /* translators: %s: admin name */
          this.__("Enter your phone number. %s will call you here at the scheduled time.", "wpcal"), this.service_admin_details.display_name);
        } else if (location.form.who_calls === "invitee") {
          return this.__("The phone number will be provided upon confirmation.", "wpcal");
        }
      }

      if (location.type === "googlemeet_meeting" || location.type === "zoom_meeting" || location.type === "gotomeeting_meeting") {
        return this.__("Web conference - The meeting link will be emailed upon confirmation.", "wpcal");
      }

      if (location.type == "ask_invitee" && location.form && location.form.location_extra) {
        return location.form.location_extra;
      }

      return "";
    },
    booking_location_option_focus_on_txt_box: function booking_location_option_focus_on_txt_box(ref) {
      var _this = this;

      setTimeout(function () {
        _this.$refs[ref][0].focus();
      }, 100);
    }
  },
  mounted: function mounted() {
    if (this.type === "display_booking_location_options") {
      this.check_and_set_if_single_location();
    }
  }
});
// CONCATENATED MODULE: ./src/components/LocationAdvanced.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_LocationAdvancedvue_type_script_lang_js_ = (LocationAdvancedvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/LocationAdvanced.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_LocationAdvancedvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var LocationAdvanced = __webpack_exports__["a"] = (component.exports);

/***/ }),

/***/ "2f8f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeZoneSelector_vue_vue_type_style_index_0_id_060cdab6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3626");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeZoneSelector_vue_vue_type_style_index_0_id_060cdab6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeZoneSelector_vue_vue_type_style_index_0_id_060cdab6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "3626":
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "399f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__("53ca");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
var es_array_join = __webpack_require__("a15b");

// EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
var vue_runtime_esm = __webpack_require__("2b0e");

// CONCATENATED MODULE: ./src/utils/event_bus.js

/* harmony default export */ var utils_event_bus = (new vue_runtime_esm["default"]());
// EXTERNAL MODULE: ./node_modules/lodash-es/isEmpty.js
var isEmpty = __webpack_require__("7ee8");

// EXTERNAL MODULE: ./node_modules/lodash-es/cloneDeep.js + 29 modules
var cloneDeep = __webpack_require__("5c8a");

// EXTERNAL MODULE: ./src/utils/common_func.js
var common_func = __webpack_require__("d1ff");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/admin/AdminHeaderRight.vue?vue&type=template&id=36f5696a&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"mla",staticStyle:{"margin-right":"20px"}},[_vm._v(_vm._s(_vm.T__("Need help?"))+" "),_c('a',{staticClass:"support-link",attrs:{"href":"https://help.wpcal.io/?utm_source=wpcal_plugin&utm_medium=admin_header","target":"_blank"}},[_vm._v(_vm._s(_vm.T__("Help docs")))]),_vm._v(" • "),_c('a',{staticClass:"support-link",attrs:{"href":"https://wpcal.io/support/?utm_source=wpcal_plugin&utm_medium=admin_header","target":"_blank"}},[_vm._v(_vm._s(_vm.T__("Contact Support")))])])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/admin/AdminHeaderRight.vue?vue&type=template&id=36f5696a&

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/admin/AdminHeaderRight.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var AdminHeaderRightvue_type_script_lang_js_ = ({
  name: "AdminHeaderRight"
});
// CONCATENATED MODULE: ./src/components/admin/AdminHeaderRight.vue?vue&type=script&lang=js&
 /* harmony default export */ var admin_AdminHeaderRightvue_type_script_lang_js_ = (AdminHeaderRightvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/admin/AdminHeaderRight.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  admin_AdminHeaderRightvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var AdminHeaderRight = (component.exports);
// CONCATENATED MODULE: ./src/utils/common_mixin.js







vue_runtime_esm["default"].mixin({
  components: {
    AdminHeaderRight: AdminHeaderRight //admin only

  },
  data: function data() {
    return {
      notification_system: {
        validation_errors: {
          target: ".validation_errors_cont",
          timeout: false,
          zindex: "auto"
        },
        error: {
          resetOnHover: true
        }
      }
    };
  },
  computed: {
    client_end: function client_end() {
      return this.$store.getters.get_client_end;
    },
    tz: function tz() {
      return this.$store.getters.get_tz;
    },
    time_format: function time_format() {
      return this.$store.getters.get_time_display_format;
    },
    document_title_final: function document_title_final() {
      if (typeof this.get_document_title === "function") {
        return this.get_document_title();
      } else if (this.document_title) {
        return this.document_title;
      }

      return "";
    },
    event_bus: function event_bus() {
      return utils_event_bus;
    }
  },
  methods: {
    log: function log() {
      var _console;

      (_console = console).log.apply(_console, arguments);
    },
    _isEmpty: function _isEmpty(v) {
      return Object(isEmpty["a" /* default */])(v);
    },
    clone_deep: function clone_deep(v) {
      return Object(cloneDeep["a" /* default */])(v);
    },
    ref_focus: function ref_focus(ref_name) {
      var _this = this;

      setTimeout(function () {
        //this.log("focus:" + ref_name);
        _this.$refs[ref_name].focus();
      }, 100);
    },
    ref_click: function ref_click(ref_name) {
      var _this2 = this;

      setTimeout(function () {
        //this.log("click:" + ref_name);
        _this2.$refs[ref_name].click();
      }, 100);
    },
    date_parse: function date_parse(date_str) {
      var parsed = Object(common_func["i" /* date_parse */])(date_str);

      return parsed;
    },
    //Notification related
    notify_single_action_result: function notify_single_action_result(single_action_result) {
      var notify_options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

      if (!single_action_result || Object(esm_typeof["a" /* default */])(single_action_result) !== "object" || !single_action_result.hasOwnProperty("status")) {
        return;
      }

      if (single_action_result.status === "success") {
        if (notify_options !== null && notify_options !== void 0 && notify_options.dont_notify_success) {
          return;
        }

        var success_msg = notify_options.success_msg ? notify_options.success_msg : "Succesfully done.";
        var success_title = notify_options.success_title ? notify_options.success_title : "Ok";
        this.$toast.success(success_msg, success_title, notify_options);
      } else if (single_action_result.status === "error") {
        if (single_action_result.error === "validation_errors") {
          return this.notify_validation_errors(single_action_result, notify_options);
        }

        var error_msg = single_action_result.hasOwnProperty("error_msg") && single_action_result.error_msg ? single_action_result.error_msg : "Error while processing the request";
        var error_title = "Oops";
        var error_notify_options = Object.assign({}, this.notification_system.error, notify_options.error);
        this.$toast.error(error_msg, error_title, error_notify_options);
      }
    },
    notify_validation_errors: function notify_validation_errors(single_action_result) {
      var notify_options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var this_notify_options = Object.assign({}, this.notification_system.validation_errors, notify_options.validation_errors);
      var error_msg = single_action_result.hasOwnProperty("error_msg") && single_action_result.error_msg ? single_action_result.error_msg : "";
      var error_title = "Oops";
      var error_list = [];

      if (single_action_result.hasOwnProperty("error_data") && single_action_result.error_data && Object(esm_typeof["a" /* default */])(single_action_result.error_data) === "object") {
        for (var key in single_action_result.error_data) {
          for (var key_level2 in single_action_result.error_data[key]) {
            error_list.push(single_action_result.error_data[key][key_level2]);
          }
        }
      }

      if (error_list.length > 0) {
        error_msg += "<ul><li>" + error_list.join("</li><li>") + "</li></ul>";
      }

      this.clear_validation_errors_cont();
      this.$toast.error(error_msg, error_title, this_notify_options);
      this.scroll_to_first_validation_error(this_notify_options.target);
    },
    clear_validation_errors_cont: function clear_validation_errors_cont() {
      if (!this.notification_system.validation_errors.target) {
        return false;
      }

      var error_cont_selector = this.notification_system.validation_errors.target;
      var errors_cont = document.querySelector(error_cont_selector);

      if (errors_cont) {
        errors_cont.innerHTML = ""; //reset exisiting
      }
    },
    scroll_to_first_validation_error: function scroll_to_first_validation_error() {
      var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ".form-row.has-error";
      this.scroll_to(query);
    },
    scroll_to: function scroll_to(query) {
      var _this3 = this;

      var adjust_y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -50;
      var check_view_port = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

      if (this.client_end == "admin") {
        adjust_y = adjust_y - 20; //go little more top - because admin bar
      }

      this.$nextTick(function () {
        if (!query) {
          return false;
        }

        var elmnt = document.querySelector(query);

        if (elmnt) {
          if (check_view_port && _this3.is_element_top_in_view_port(elmnt)) {
            return;
          }

          var top = elmnt.getBoundingClientRect().top + adjust_y;
          window.scrollBy({
            top: top,
            left: 0,
            behavior: "smooth"
          });
        }
      });
    },
    scroll_to_if_not_in_view_port: function scroll_to_if_not_in_view_port(query) {
      var adjust_y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -50;
      return this.scroll_to(query, adjust_y, true);
    },
    is_element_top_in_view_port: function is_element_top_in_view_port(el) {
      var rect = el.getBoundingClientRect();
      return rect.top >= 0 && rect.left >= 0 && rect.top <= (window.innerHeight || document.documentElement.clientHeight) && rect.left <= (window.innerWidth || document.documentElement.clientWidth);
    },
    is_element_in_view_port: function is_element_in_view_port(el) {
      var rect = el.getBoundingClientRect();
      return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);
    },
    scroll_to_within_cont: function scroll_to_within_cont(element_selector, container_selector) {
      var ele = document.querySelector(element_selector);
      var container = document.querySelector(container_selector);

      if (!ele || !container) {
        return;
      }

      var eleTop = ele.offsetTop;
      var eleBottom = eleTop + ele.clientHeight;
      var containerTop = container.scrollTop;
      var containerBottom = containerTop + container.clientHeight;

      if (eleTop < containerTop) {
        // Scroll to the top of container
        container.scrollTop -= containerTop - eleTop;
      } else if (eleBottom > containerBottom) {
        // Scroll to the bottom of container
        container.scrollTop += eleBottom - containerBottom + container.clientHeight / 2;
      }
    },
    on_click_outside: function on_click_outside(selector, call_back) {
      var element = document.querySelector(selector);

      var outsideClickListener = function outsideClickListener(event) {
        if (element && !element.contains(event.target)) {
          if (isVisible(element)) {
            if (call_back) {
              call_back();
            }
          }

          removeClickListener();
        }
      };

      var removeClickListener = function removeClickListener() {
        document.removeEventListener("click", outsideClickListener);
      };

      var isVisible = function isVisible(elem) {
        return !!elem && !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
      };

      document.addEventListener("click", outsideClickListener);
    },
    show_delete_highlight: function show_delete_highlight(del_highlight_index, index) {
      return this[del_highlight_index] === index;
    },
    set_mouseover_on_delete: function set_mouseover_on_delete(del_highlight_index, index, is_hover) {
      if (is_hover) {
        this[del_highlight_index] = index;
      } else {
        this[del_highlight_index] = null;
      }
    },
    get_maxlength_from_validation: function get_maxlength_from_validation(element_details) {
      var default_return = "";

      if (!element_details.hasOwnProperty("$params")) {
        return default_return;
      }

      if (!element_details.$params) {
        return default_return;
      }

      for (var key in element_details.$params) {
        if (element_details.$params[key].hasOwnProperty("max") && element_details.$params[key].max && element_details.$params[key].hasOwnProperty("type") && element_details.$params[key].type == "maxLength") {
          return element_details.$params[key].max;
        }
      }

      return default_return;
    },
    on_click_if_same_page_target_router_push: function on_click_if_same_page_target_router_push(event, router_path) {
      //contextmenu open is new window will not be considered as click, no worries
      //ctrl + click open in new tab, shift + click open in new window
      // Functionality is if opening in new window leave it, if not open using router push. The element <a> with href is tested
      // this.log( 'event.ctrlKey', event.ctrlKey, 'event.shiftKey', event.shiftKey, 'event.metaKey', event.metaKey);
      if (event.ctrlKey || event.shiftKey || event.metaKey || // apple
      event.button && event.button == 1 // middle click, >IE9 + everyone else
      ) {
        //do it normal browser way
        return;
      }

      if (router_path) {
        event.preventDefault();
        this.$router.push(router_path);
      }
    }
  }
});

/***/ }),

/***/ "40d3":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingCancelModal_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("465f");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingCancelModal_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BookingCancelModal_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "40f7":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingInfo.vue?vue&type=template&id=ce57735c&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"event-preset-cont"},[_c('div',{staticClass:"event-preset"},[_c('div',[_c('div',{staticClass:"inviter-pic"},[_c('img',{attrs:{"src":_vm.service_admin_details.profile_picture}})]),_c('div',{staticClass:"inviter-name"},[_vm._v(_vm._s(_vm.service_admin_details.display_name))]),_c('div',{staticClass:"event-type-name"},[_vm._v(_vm._s(_vm.service_details.name))]),_c('div',{staticClass:"event-type-duration"},[_vm._v(" "+_vm._s(_vm._f("mins_to_str")(_vm.service_details.duration))+" ")]),_c('LocationAdvanced',{attrs:{"type":"display_booking_left_info_section","locations":_vm.service_details.locations}}),(_vm.service_details.descr)?_c('div',{staticClass:"event-type-description",staticStyle:{"font-size":"13px","margin-top":"10px"}},[_c('span',{staticClass:"pre"},[_vm._v(_vm._s(_vm.service_details.descr))])]):_vm._e()],1),(
        _vm.booking_type == 'reschedule' &&
          _vm.old_booking &&
          typeof _vm.old_booking === 'object' &&
          _vm.old_booking.hasOwnProperty('unique_link')
      )?_c('BookingOldInfo',{attrs:{"old_booking":_vm.old_booking,"booking_step":_vm.booking_step}}):_vm._e()],1)])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/user/BookingInfo.vue?vue&type=template&id=ce57735c&

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingOldInfo.vue?vue&type=template&id=1a5c2e60&scoped=true&
var BookingOldInfovue_type_template_id_1a5c2e60_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"font-size":"15px","margin-top":"20px"}},[_c('div',[_c('div',{staticStyle:{"text-decoration":"underline"}},[_vm._v(" "+_vm._s(_vm.__("Original Booking Info", "wpcal"))+" ")]),_c('div',{class:{ striked: _vm.booking_step == 2 },domProps:{"innerHTML":_vm._s(
        _vm.$options.filters.wpcal_unix_to_from_to_time_full_date_day_tz(
          _vm.old_booking.booking_from_time,
          _vm.old_booking.booking_to_time,
          _vm.tz,
          _vm.time_format
        ) + '.'
      )}})])])}
var BookingOldInfovue_type_template_id_1a5c2e60_scoped_true_staticRenderFns = []


// CONCATENATED MODULE: ./src/components/user/BookingOldInfo.vue?vue&type=template&id=1a5c2e60&scoped=true&

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingOldInfo.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var BookingOldInfovue_type_script_lang_js_ = ({
  props: {
    old_booking: {
      type: Object
    },
    booking_step: {
      type: String
    }
  }
});
// CONCATENATED MODULE: ./src/components/user/BookingOldInfo.vue?vue&type=script&lang=js&
 /* harmony default export */ var user_BookingOldInfovue_type_script_lang_js_ = (BookingOldInfovue_type_script_lang_js_); 
// EXTERNAL MODULE: ./src/components/user/BookingOldInfo.vue?vue&type=style&index=0&id=1a5c2e60&scoped=true&lang=css&
var BookingOldInfovue_type_style_index_0_id_1a5c2e60_scoped_true_lang_css_ = __webpack_require__("2c7e");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/user/BookingOldInfo.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  user_BookingOldInfovue_type_script_lang_js_,
  BookingOldInfovue_type_template_id_1a5c2e60_scoped_true_render,
  BookingOldInfovue_type_template_id_1a5c2e60_scoped_true_staticRenderFns,
  false,
  null,
  "1a5c2e60",
  null
  
)

/* harmony default export */ var BookingOldInfo = (component.exports);
// EXTERNAL MODULE: ./src/components/LocationAdvanced.vue + 4 modules
var LocationAdvanced = __webpack_require__("2f7b");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingInfo.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


/* harmony default export */ var BookingInfovue_type_script_lang_js_ = ({
  components: {
    BookingOldInfo: BookingOldInfo,
    LocationAdvanced: LocationAdvanced["a" /* default */]
  },
  props: {
    booking_type: {
      type: String
    },
    service_details: {
      type: Object
    },
    service_admin_details: {
      type: Object
    },
    old_booking: {
      type: Object
    },
    booking_step: {
      type: String
    }
  }
});
// CONCATENATED MODULE: ./src/components/user/BookingInfo.vue?vue&type=script&lang=js&
 /* harmony default export */ var user_BookingInfovue_type_script_lang_js_ = (BookingInfovue_type_script_lang_js_); 
// CONCATENATED MODULE: ./src/components/user/BookingInfo.vue





/* normalize component */

var BookingInfo_component = Object(componentNormalizer["a" /* default */])(
  user_BookingInfovue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var BookingInfo = __webpack_exports__["a"] = (BookingInfo_component.exports);

/***/ }),

/***/ "465f":
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "529d":
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "5618":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_user_booking_css_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("529d");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_user_booking_css_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_user_booking_css_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "751a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("53ca");
/* harmony import */ var _Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1da1");
/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("96cf");
/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("ac1f");
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("1276");
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("3ca3");
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("ddb0");
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("bc3a");
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("4328");
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_9__);









 // import admin_store from "@/store/admin.js";

var admin_store = null; // (async () => {

function may_init_admin_store() {
  return _may_init_admin_store.apply(this, arguments);
}

function _may_init_admin_store() {
  _may_init_admin_store = Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
    var admin_store_module;
    return regeneratorRuntime.wrap(function _callee2$(_context2) {
      while (1) {
        switch (_context2.prev = _context2.next) {
          case 0:
            if (!(window.__wpcal_client_end == "admin")) {
              _context2.next = 5;
              break;
            }

            _context2.next = 3;
            return __webpack_require__.e(/* import() */ "chunk-2d0cedee").then(__webpack_require__.bind(null, "60fd"));

          case 3:
            admin_store_module = _context2.sent;
            admin_store = admin_store_module.default;

          case 5:
          case "end":
            return _context2.stop();
        }
      }
    }, _callee2);
  }));
  return _may_init_admin_store.apply(this, arguments);
}

may_init_admin_store();
axios__WEBPACK_IMPORTED_MODULE_8___default.a.interceptors.request.use(function (config) {
  var new_config = config; //console.log(config);

  var options = {};
  var show_loading_indicator = true;

  if (new_config.hasOwnProperty("params") && new_config.params.hasOwnProperty("_remove_options_before_call")) {
    options = Object.assign(options, new_config.params._remove_options_before_call);
    delete new_config.params._remove_options_before_call;
  }

  if (Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(new_config.data) === "object" && new_config.data) {
    // adding nonce to all admin ajax calls STARTS here
    if (window.__wpcal_client_end == "admin" && admin_store) {
      var admin_main_nonce = admin_store.getters.get_admin_main_nonce;
      new_config.data["wpcal_admin_main_nonce"] = admin_main_nonce;
    } // adding nonce to all admin ajax calls Ends here


    new_config.data = qs__WEBPACK_IMPORTED_MODULE_9___default.a.stringify(new_config.data);
  }

  if (options.hasOwnProperty("background_call") && options.background_call) {
    show_loading_indicator = false;
  } // spinning start to show global loading indicator


  var client_end = window.__wpcal_client_end;

  if (show_loading_indicator) {
    var _document$getElementB;

    (_document$getElementB = document.getElementById("wpcal_" + client_end + "_app")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.classList.add("loading-indicator");
  }

  new_config.__custom_options = options;
  return new_config;
}, function (error) {
  return (// Do something with request error
    Promise.reject(error)
  );
});
axios__WEBPACK_IMPORTED_MODULE_8___default.a.interceptors.response.use( /*#__PURE__*/function () {
  var _ref = Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee(response) {
    var _document$getElementB2;

    var client_end, _response$data, _response$data2, error_message, is_ok;

    return regeneratorRuntime.wrap(function _callee$(_context) {
      while (1) {
        switch (_context.prev = _context.next) {
          case 0:
            // Disabling below code to get is_debug, alternate solution coded
            // let store_all = await import(
            //   "@/store/" + window.__wpcal_client_end + ".js"
            // );
            // let store = store_all.default;
            // spinning hide global loading indicator
            client_end = window.__wpcal_client_end;
            (_document$getElementB2 = document.getElementById("wpcal_" + client_end + "_app")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.classList.remove("loading-indicator");

            if (response.status == 200 && typeof response.data === "string") {
              response.data = wpcal_clean_and_parse_json_response(response.data);

              if ((_response$data = response.data) !== null && _response$data !== void 0 && _response$data.wpcal_main_error) {
                error_message = (_response$data2 = response.data) !== null && _response$data2 !== void 0 && _response$data2.wpcal_main_error_msg ? response.data.wpcal_main_error_msg : 'Something went wrong, Click "Ok" to reload the page.';
                is_ok = confirm(error_message);

                if (is_ok) {
                  location.reload();
                }
              }
            }

            if (window.wpcal_ajax.is_debug) {
              console.log(response.data);
            }

            return _context.abrupt("return", response);

          case 5:
          case "end":
            return _context.stop();
        }
      }
    }, _callee);
  }));

  return function (_x) {
    return _ref.apply(this, arguments);
  };
}(), function (error) {
  var _document$getElementB3;

  // spinning hide global loading indicator
  var client_end = window.__wpcal_client_end;
  (_document$getElementB3 = document.getElementById("wpcal_" + client_end + "_app")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.classList.remove("loading-indicator");
  return Promise.reject(error);
});

function wpcal_clean_response(response_data) {
  //return substring closed by <wpcal_response> and </wpcal_response>
  return response_data.split("<wpcal_response>").pop().split("</wpcal_response>").shift();
}

function wpcal_clean_and_parse_json_response(response_data) {
  response_data = wpcal_clean_response(response_data);

  try {
    return JSON.parse(response_data);
  } catch (e) {
    console.log(e);
    console.log("Unexpected HTTP response(JSON Parse Error) - Response text:\n", response_data);
    return "JSON_PARSE_ERROR";
  }
} // })();

/***/ }),

/***/ "81cb":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingBottomPoweredBy.vue?vue&type=template&id=1590ddcb&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.client_end === 'user')?_c('div',{staticClass:"bottom_powered_by",staticStyle:{"font-size":"13px","text-align":"center","padding-top":"5px"}},[_vm._v(" "+_vm._s(_vm.__( "Want your own scheduler for Free? This booking is powered by", "wpcal" ))+" "),_c('a',{staticStyle:{"color":"#131336"},attrs:{"href":"https://wpcal.io/?utm_source=wpcal_plugin&utm_medium=booking_bottom_link","target":"_blank"}},[_vm._v("WPCal.io")])]):_vm._e()}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/user/BookingBottomPoweredBy.vue?vue&type=template&id=1590ddcb&

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/user/BookingBottomPoweredBy.vue

var script = {}


/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  script,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var BookingBottomPoweredBy = __webpack_exports__["a"] = (component.exports);

/***/ }),

/***/ "84af":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form_elements/CharLeft.vue?vue&type=template&id=109f033d&
var render = function () {
var _obj;
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.maxlength)?_c('div',{class:( _obj = {}, _obj[_vm.char_left_class] = true, _obj ),staticStyle:{"text-align":"right","margin-top":"5px","margin-bottom":"10px","float":"right"},style:({ color: _vm.char_left_class })},[_vm._v(" "+_vm._s(_vm.char_left)+" "+_vm._s(_vm.__("char remaining", "wpcal"))+" ")]):_vm._e()}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/form_elements/CharLeft.vue?vue&type=template&id=109f033d&

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
var es_number_constructor = __webpack_require__("a9e3");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form_elements/CharLeft.vue?vue&type=script&lang=js&

//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var CharLeftvue_type_script_lang_js_ = ({
  props: {
    maxlength: {
      type: Number
    },
    input_text: {
      type: String
    }
  },
  computed: {
    char_left: function char_left() {
      return this.maxlength - this.input_text.length;
    },
    char_left_class: function char_left_class() {
      //   let char_left_percent = this.char_left / this.maxlength;
      //   if (char_left_percent <= 0.1 && char_left_percent > 0.05) {
      //     return "orange";
      //   } else if (char_left_percent <= 0.05) {
      //     return "red";
      //   }
      if (this.char_left <= 25 && this.char_left > 10) {
        return "orange";
      } else if (this.char_left <= 10) {
        return "red";
      }

      return "inherit";
    }
  }
});
// CONCATENATED MODULE: ./src/components/form_elements/CharLeft.vue?vue&type=script&lang=js&
 /* harmony default export */ var form_elements_CharLeftvue_type_script_lang_js_ = (CharLeftvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/form_elements/CharLeft.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  form_elements_CharLeftvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var CharLeft = __webpack_exports__["a"] = (component.exports);

/***/ }),

/***/ "93fb":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/assets/images/IconFillSVG.vue?vue&type=template&id=9ffadf62&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"hidden",attrs:{"width":"0","height":"0"}},[_c('symbol',{attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 23 22.96","id":"icon-phone-reciever"}},[_c('path',{staticStyle:{"fill":"rgb(var(--accentClrRGB))"},attrs:{"d":"M22.17 16.49L19.72 14a2.82 2.82 0 00-4 0l-.5.5a54.68 54.68 0 01-6.8-6.81l.5-.5a2.83 2.83 0 000-4L6.48.8a2.87 2.87 0 00-4 0L1.16 2.14a4 4 0 00-.5 5 54 54 0 0015.17 15.17 4 4 0 005-.5l1.34-1.34a2.81 2.81 0 000-4z"}})]),_c('symbol',{attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 13","id":"icon-pin-solid"}},[_c('path',{staticStyle:{"fill":"rgb(var(--accentClrRGB))"},attrs:{"d":"M5 0a5 5 0 00-5 5c0 3.17 4.46 7.66 4.65 7.85a.49.49 0 00.68 0C5.54 12.66 10 8.17 10 5a5 5 0 00-5-5zm0 3.25A1.75 1.75 0 113.25 5 1.75 1.75 0 015 3.25z"}})])])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/assets/images/IconFillSVG.vue?vue&type=template&id=9ffadf62&

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/assets/images/IconFillSVG.vue

var script = {}


/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  script,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var IconFillSVG = __webpack_exports__["a"] = (component.exports);

/***/ }),

/***/ "a046":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BookingCancelModal.vue?vue&type=template&id=b24dc692&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('modal',{staticStyle:{"z-index":"9999"},attrs:{"name":"booking_cancel_confirm_modal","height":'auto',"adaptive":true}},[_c('div',{staticClass:"modal_close_cont"},[_c('button',{on:{"click":function($event){return _vm.$modal.hide('booking_cancel_confirm_modal')}}})]),_c('div',{staticStyle:{"font-size":"16px","padding":"20px"}},[_c('strong',{staticStyle:{"font-size":"18px","line-height":"1.2em","margin-bottom":"20px","display":"block"}},[_vm._v(" "+_vm._s(_vm.__("Are you sure you want to cancel this meeting?", "wpcal"))+" ")]),_c('span',{domProps:{"innerHTML":_vm._s(
          _vm.$options.filters.wpcal_unix_to_from_to_time_full_date_day_tz(
            _vm.booking_details.booking_from_time,
            _vm.booking_details.booking_to_time,
            _vm.tz,
            _vm.time_format
          ) + '.'
        )}}),_c('br'),(_vm.client_end == 'admin')?_c('div',[_vm._v(" with "+_vm._s(_vm.booking_details.invitee_name)+" ("+_vm._s(_vm.booking_details.invitee_email)+") ")]):_vm._e(),_c('div',{staticStyle:{"margin-top":"10px"}},[_vm._v(" "+_vm._s(_vm.__("Reason for cancellation:", "wpcal"))+" ")]),_c('div',{staticClass:"wpc-form-row"},[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.cancel_reason_final),expression:"cancel_reason_final"}],attrs:{"rows":"2"},domProps:{"value":(_vm.cancel_reason_final)},on:{"input":function($event){if($event.target.composing){ return; }_vm.cancel_reason_final=$event.target.value}}}),_vm._v(" "),(_vm.client_end == 'admin')?_c('div',{staticClass:"txt-help"},[_vm._v(" "+_vm._s(_vm.T__( "Cancellation reason will be communicated to invitee.", "wpcal" ))+" ")]):_vm._e()]),_c('div',{staticClass:"booking-cancel-action-btns"},[_c('button',{staticClass:"wpc-btn primary lg",staticStyle:{"margin":"10px 10px 10px 0","padding-left":"10px","padding-right":"10px"},attrs:{"type":"button","disabled":!_vm.cancel_booking_btn_is_enabled},on:{"click":function($event){return _vm.$emit('cancel-booking', _vm.booking_details)}}},[_vm._v(" "+_vm._s(_vm.__("Yes, cancel.", "wpcal"))+" ")]),_c('button',{staticClass:"wpc-btn primary lg",staticStyle:{"margin":"10px 10px 10px 0","padding-left":"10px","padding-right":"10px"},attrs:{"type":"button"},on:{"click":function($event){return _vm.$modal.hide('booking_cancel_confirm_modal')}}},[_vm._v(" "+_vm._s(_vm.__("No, don't.", "wpcal"))+" ")])])])])],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/BookingCancelModal.vue?vue&type=template&id=b24dc692&

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BookingCancelModal.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var BookingCancelModalvue_type_script_lang_js_ = ({
  name: "BookingCancelModal",
  model: {
    prop: "cancel_reason",
    event: "changed-cancel-reason"
  },
  props: {
    cancel_reason: {
      type: String
    },
    booking_details: {
      type: Object
    },
    cancel_booking_btn_is_enabled: {
      type: Boolean
    }
  },
  computed: {
    cancel_reason_final: {
      get: function get() {
        return this.cancel_reason;
      },
      set: function set(new_value) {
        this.$emit("changed-cancel-reason", new_value);
      }
    }
  }
});
// CONCATENATED MODULE: ./src/components/BookingCancelModal.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_BookingCancelModalvue_type_script_lang_js_ = (BookingCancelModalvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./src/components/BookingCancelModal.vue?vue&type=style&index=0&lang=css&
var BookingCancelModalvue_type_style_index_0_lang_css_ = __webpack_require__("40d3");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/BookingCancelModal.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_BookingCancelModalvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var BookingCancelModal = __webpack_exports__["a"] = (component.exports);

/***/ }),

/***/ "b205":
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "cdab":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b85c");
/* harmony import */ var _Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("53ca");
/* harmony import */ var _Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("1da1");
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ac1f");
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("1276");
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("96cf");
/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("bc3a");
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var lodash_es__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("85b1");








axios__WEBPACK_IMPORTED_MODULE_6___default.a.defaults.withCredentials = true; //to allow send and receive cookie

var common_module = {
  state: {
    client: {
      tz: null,
      //client is browser for tz
      mobile: window.innerWidth <= 699,
      initial_document_title: "",
      app_cont_width: "" //#wpcal_user_app or #wpcal_admin_app

    },
    store: {
      script_version: "0.9.4.4",
      is_debug: false,
      tz: null,
      site_tz: null,
      site_locale: "en_US",
      site_locale_intl: "en-US",
      general_settings: {},
      ajax_main_action: "",
      tp_locations_refresh_interval_instance: null,
      dynamic_cache: {}
    }
  },
  mutations: {
    set_client_tz: function set_client_tz(state, value) {
      state.client.tz = value;
    },
    set_client_mobile: function set_client_mobile(state, value) {
      state.client.mobile = value;
    },
    set_client_initial_document_title: function set_client_initial_document_title(state, value) {
      state.client.initial_document_title = value;
    },
    set_is_debug: function set_is_debug(state, value) {
      state.store.is_debug = value;
    },
    set_tz: function set_tz(state, value) {
      state.store.tz = value;
    },
    set_app_cont_width: function set_app_cont_width(state, value) {
      state.client.app_cont_width = value;
    },
    set_ajax_main_action: function set_ajax_main_action(state, value) {
      state.store.ajax_main_action = value;
    },
    set_general_settings: function set_general_settings(state, value) {
      state.store.general_settings = value;
    },
    set_tp_locations_refresh_interval_instance: function set_tp_locations_refresh_interval_instance(state, value) {
      state.store.tp_locations_refresh_interval_instance = value;
    },
    set_store_by_obj: function set_store_by_obj(state, value_obj) {
      for (var prop in value_obj) {
        if (state.store.hasOwnProperty(prop)) {
          state.store[prop] = value_obj[prop];
        }
      }
    },
    set_dynamic_cache_by_prop: function set_dynamic_cache_by_prop(state, prop_details) {
      state.store.dynamic_cache[prop_details.prop] = {
        value: prop_details.value,
        expiry_secs: prop_details.expiry_secs,
        cached_ts: Math.floor(Date.now() / 1000)
      };
    },
    delete_dynamic_cache_by_prop: function delete_dynamic_cache_by_prop(state, prop) {
      if (state.store.dynamic_cache.hasOwnProperty(prop)) {
        delete state.store.dynamic_cache[prop];
      }
    }
  },
  getters: {
    // get_client: state => state.client,
    // get_store: state => state.store,
    get_client_end: function get_client_end(state, getters, rootState) {
      return rootState.client_end;
    },
    get_client_tz: function get_client_tz(state) {
      return state.client.tz;
    },
    get_client_initial_document_title: function get_client_initial_document_title(state) {
      return state.client.initial_document_title;
    },
    get_tz: function get_tz(state) {
      if (state.store.tz) {
        return state.store.tz;
      }

      return state.client.tz;
    },
    get_app_cont_width: function get_app_cont_width(state) {
      return state.client.app_cont_width;
    },
    is_debug: function is_debug(state) {
      return state.store.is_debug;
    },
    get_script_version: function get_script_version(state) {
      return state.store.script_version;
    },
    get_site_tz: function get_site_tz(state) {
      return state.store.site_tz;
    },
    get_site_locale: function get_site_locale(state) {
      return state.store.site_locale;
    },
    get_site_locale_intl: function get_site_locale_intl(state) {
      return state.store.site_locale_intl;
    },
    get_ajax_main_action: function get_ajax_main_action(state) {
      return state.store.ajax_main_action;
    },
    get_general_settings: function get_general_settings(state) {
      return state.store.general_settings;
    },
    get_tp_locations_refresh_interval_instance: function get_tp_locations_refresh_interval_instance(state) {
      return state.store.tp_locations_refresh_interval_instance;
    },
    get_time_display_format: function get_time_display_format(state) {
      var time_display_format = "HH:mm";

      if (state.store.general_settings.time_format == "12hrs") {
        time_display_format = "hh:mm aaaaa'm'";
      }

      return time_display_format;
    },
    get_client_mobile: function get_client_mobile(state) {
      return state.client.mobile;
    },
    get_dynamic_cache: function get_dynamic_cache(state) {
      return state.store.dynamic_cache;
    }
  },
  actions: {
    init: function init(context) {
      context.dispatch("set_current_client_tz");
      context.dispatch("set_ajax_main_action");
      context.dispatch("get_settings_and_defaults");
      context.dispatch("manage_background_task");
      context.dispatch("listen_window_resize");
      context.dispatch("get_and_set_initial_document_title");
      context.dispatch("may_debug_listen_and_log_booking_events");
      setInterval(function () {
        return context.dispatch("clear_expired_props_in_dynamic_cache");
      }, 5000);
      setTimeout(function () {
        return context.dispatch("check_asset_preloading_will_benefit");
      }, 15000);
    },
    set_ajax_main_action: function set_ajax_main_action(context) {
      var ajax_main_action = "wpcal_process_" + context.rootState.client_end + "_ajax_request";
      context.commit("set_ajax_main_action", ajax_main_action);
    },
    set_current_client_tz: function set_current_client_tz(context) {
      var current_client_tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
      context.commit("set_client_tz", current_client_tz);
    },
    set_tz: function set_tz(context, value) {
      if (context.state.client.tz == value) {
        context.commit("set_tz", null);
      } else {
        context.commit("set_tz", value);
      }

      return context.dispatch("save_tz_in_db_or_cookie");
    },
    save_tz_in_db_or_cookie: function save_tz_in_db_or_cookie(context) {
      var user_tz = context.state.store.tz;
      var wpcal_request = {};
      var action = "save_user_tz";
      wpcal_request[action] = {
        tz: user_tz
      };
      var post_data = {
        action: context.getters.get_ajax_main_action,
        wpcal_request: wpcal_request
      };
      axios__WEBPACK_IMPORTED_MODULE_6___default.a.post(window.wpcal_ajax.ajax_url, post_data).then(function (response) {
        //console.log(response);
        if (response.data[action].status != "success") {
          console.log("Failed to save tz");
        }
      }).catch(function (error) {
        console.log(error);
      });
    },
    get_tz_from_db_or_cookie: function get_tz_from_db_or_cookie(context) {
      var wpcal_request = {};
      var action = "get_user_tz";
      wpcal_request[action] = {
        dummy__: ""
      };
      var post_data = {
        action: context.getters.get_ajax_main_action,
        wpcal_request: wpcal_request
      };
      axios__WEBPACK_IMPORTED_MODULE_6___default.a.post(window.wpcal_ajax.ajax_url, post_data).then(function (response) {
        //console.log(response);
        if (response.data[action].status == "success" && response.data[action].tz) {
          context.commit("set_tz", response.data[action].tz);
        }
      }).catch(function (error) {
        console.log(error);
      });
    },
    listen_window_resize: function listen_window_resize(context) {
      var _document$getElementB;

      //initial value
      var app_cont_width = (_document$getElementB = document.getElementById("wpcal_" + context.rootState.client_end + "_app")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.clientWidth;
      context.commit("set_app_cont_width", app_cont_width);
      window.addEventListener("resize", Object(lodash_es__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(function () {
        var _document$getElementB2;

        var mobile = window.innerWidth <= 699;
        context.commit("set_client_mobile", mobile); //following for unsupported ResizeObserver browsers
        // console.log("NON ResizeObserver");

        var app_cont_width = (_document$getElementB2 = document.getElementById("wpcal_" + context.rootState.client_end + "_app")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.clientWidth;
        context.commit("set_app_cont_width", app_cont_width);
      }, 100));

      try {
        // ResizeObserver will not be supporting in iOS < 13.4, other mobile browsers and old browsers, above resize event works well.
        var ro = new ResizeObserver(Object(lodash_es__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(function (entries) {
          var _document$getElementB3;

          //console.log("ResizeObserver");
          var app_cont_width = (_document$getElementB3 = document.getElementById("wpcal_" + context.rootState.client_end + "_app")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.clientWidth;
          context.commit("set_app_cont_width", app_cont_width);
        }, 100));
        setTimeout(function () {
          //setTimeout required because the initial div replaced by vue
          var mount_element = document.getElementById("wpcal_" + context.rootState.client_end + "_app");

          if (!mount_element) {
            return;
          }

          ro.observe(mount_element);
        }, 100);
      } catch (err) {}
    },
    get_settings_and_defaults: function get_settings_and_defaults(context, options) {
      return Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
        var wpcal_request, action_user_tz, action_is_debug, action_general_settings, action_license_status, action_initial_common_data, action_intial_client_end_data, post_data, request_options;
        return regeneratorRuntime.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                wpcal_request = {};
                action_user_tz = "get_user_tz";
                wpcal_request[action_user_tz] = {
                  dummy__: ""
                };
                action_is_debug = "get_is_debug";
                wpcal_request[action_is_debug] = "dummy__";
                action_general_settings = "get_general_settings_by_options";

                if (context.rootState.client_end === "admin") {
                  action_general_settings = "get_general_settings";
                }

                wpcal_request[action_general_settings] = {
                  options: ["time_format", "branding_color", "branding_font"]
                };
                action_license_status = "license_status";

                if (context.rootState.client_end === "admin") {
                  wpcal_request[action_license_status] = "dummy__";
                }

                action_initial_common_data = "initial_common_data";
                wpcal_request[action_initial_common_data] = "dummy__";
                action_intial_client_end_data = "initial_" + context.rootState.client_end + "_data";
                wpcal_request[action_intial_client_end_data] = "dummy__";
                post_data = {
                  action: context.getters.get_ajax_main_action,
                  wpcal_request: wpcal_request
                };
                request_options = {};

                if (options && options.hasOwnProperty("background_call")) {
                  request_options = {
                    params: {
                      _remove_options_before_call: {}
                    }
                  };
                  request_options.params._remove_options_before_call.background_call = options.background_call;
                }

                _context.next = 19;
                return axios__WEBPACK_IMPORTED_MODULE_6___default.a.post(window.wpcal_ajax.ajax_url, post_data, request_options).then(function (response) {
                  var _response$data;

                  //console.log(response);
                  if (context.rootState.client_end === "admin" && ((_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.request_result) == "access_denied") {
                    context.commit("set_store_by_obj", {
                      is_admin_end_access_granted: false
                    }, {
                      root: true
                    });
                    return;
                  }

                  if (response.data[action_user_tz].status === "success" && response.data[action_user_tz].tz) {
                    context.commit("set_tz", response.data[action_user_tz].tz);
                  }

                  if (response.data[action_is_debug].status === "success" && response.data[action_is_debug].is_debug) {
                    context.commit("set_is_debug", response.data[action_is_debug].is_debug);
                  }

                  if (response.data[action_general_settings].status === "success" && response.data[action_general_settings].general_settings) {
                    context.commit("set_general_settings", response.data[action_general_settings].general_settings);
                  }

                  if (context.rootState.client_end === "admin") {
                    if (response.data[action_license_status].status === "success" && response.data[action_license_status].hasOwnProperty("license_info")) {
                      context.commit("set_license_info", response.data[action_license_status].license_info, {
                        root: true
                      });
                    }
                  }

                  if (response.data[action_initial_common_data].status === "success" && response.data[action_initial_common_data].hasOwnProperty("data")) {
                    context.commit("set_store_by_obj", response.data[action_initial_common_data].data);
                  }

                  if (response.data[action_intial_client_end_data].status === "success" && response.data[action_intial_client_end_data].hasOwnProperty("data")) {
                    context.commit("set_store_by_obj", response.data[action_intial_client_end_data].data, {
                      root: true
                    });
                  }
                }).catch(function (error) {
                  console.log(error);
                });

              case 19:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }))();
    },
    manage_background_task: function manage_background_task(context) {
      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var initial_time_out = 5000;

      if (!options || Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(options) != "object") {
        options = {};
      }

      if (options.hasOwnProperty("initial_time_out")) {
        initial_time_out = options.initial_time_out;
      }

      clearTimeout(window.wpcal_run_background_timeout);
      window.wpcal_run_background_timeout = setTimeout(function () {
        return context.dispatch("run_background_task");
      }, initial_time_out);
    },
    run_background_task: function run_background_task(context) {
      var wpcal_request = {};
      var action_run_background_task = "run_background_task";
      wpcal_request[action_run_background_task] = {
        dummy__: ""
      };
      var post_data = {
        action: context.getters.get_ajax_main_action,
        wpcal_request: wpcal_request
      };
      var nextCallAfterNms = 2 * 60 * 1000; //2 mins in milli-seconds

      axios__WEBPACK_IMPORTED_MODULE_6___default.a.post(window.wpcal_ajax.ajax_url, post_data, {
        params: {
          _remove_options_before_call: {
            background_call: true
          }
        }
      }).then(function (response) {
        //console.log(response);
        if (response.data.hasOwnProperty("is_task_waiting_now") && response.data.is_task_waiting_now) {
          nextCallAfterNms = 15 * 1000; // 15 secs in milli-seconds
        }
      }).catch(function (error) {
        console.log(error);
      }).then(function () {
        // always executed
        window.wpcal_run_background_timeout = setTimeout(function () {
          return context.dispatch("run_background_task");
        }, nextCallAfterNms);
      });
    },
    run_booking_background_tasks_by_unique_link: function run_booking_background_tasks_by_unique_link(context, booking_details) {
      var wpcal_request = {};
      var action_run_booking_background_tasks = "run_booking_background_tasks_by_unique_link";
      wpcal_request[action_run_booking_background_tasks] = booking_details;
      var post_data = {
        action: context.getters.get_ajax_main_action,
        wpcal_request: wpcal_request
      };
      axios__WEBPACK_IMPORTED_MODULE_6___default.a.post(window.wpcal_ajax.ajax_url, post_data, {
        params: {
          _remove_options_before_call: {
            background_call: true
          }
        }
      }).then(function (response) {//console.log(response);
      }).catch(function (error) {
        console.log(error);
      });
    },
    get_and_set_initial_document_title: function get_and_set_initial_document_title(context) {
      var client_initial_document_title = document.title;
      context.commit("set_client_initial_document_title", client_initial_document_title);
    },
    set_document_title: function set_document_title(context, title) {
      var initial_title = context.getters.get_client_initial_document_title;

      if (!title) {
        document.title = initial_title;
        return;
      }

      var final_title = title + " ‹ " + initial_title;
      document.title = final_title;
    },
    check_asset_preloading_will_benefit: function check_asset_preloading_will_benefit(context) {
      //currently in end user section asset will be loaded if there is booking widget, this should be called only during that time
      if (context.rootState.client_end != "user") {
        return;
      }

      var match_count = 0;
      var ver_str = "?ver=" + context.getters.get_script_version;
      var urls = ["css/chunk-vendors.css" + ver_str, "css/chunk-common.css" + ver_str, "css/user.css" + ver_str, "js/chunk-vendors.min.js" + ver_str, "js/chunk-common.min.js" + ver_str, "js/user.min.js" + ver_str];
      var scripts = document.getElementsByTagName("script");

      var _iterator = Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(scripts),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var script = _step.value;

          if (script !== null && script !== void 0 && script.src && script.src.indexOf("/wpcal/dist/") > -1) {
            var url_split_parts = script.src.split("/wpcal/dist/", 2);

            if (urls.indexOf(url_split_parts[1]) > -1) {
              match_count++;
            }
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var links = document.getElementsByTagName("link");

      var _iterator2 = Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(links),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var link = _step2.value;

          if (link !== null && link !== void 0 && link.rel && link.rel == "stylesheet" && link !== null && link !== void 0 && link.href && link.href.indexOf("/wpcal/dist/") > -1) {
            var _url_split_parts = link.href.split("/wpcal/dist/", 2);

            if (urls.indexOf(_url_split_parts[1]) > -1) {
              match_count++;
            }
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var score = match_count / urls.length;
      var enable_preload = 0;

      if (score > 0.7) {
        enable_preload = 1;
      }

      var wpcal_request = {};
      var action_update_enable_preloading = "update_enable_preloading";
      wpcal_request[action_update_enable_preloading] = enable_preload;
      var post_data = {
        action: context.getters.get_ajax_main_action,
        wpcal_request: wpcal_request
      };
      axios__WEBPACK_IMPORTED_MODULE_6___default.a.post(window.wpcal_ajax.ajax_url, post_data, {
        params: {
          _remove_options_before_call: {
            background_call: true
          }
        }
      }).then(function (response) {//console.log(response);
      }).catch(function (error) {
        console.log(error);
      });
    },
    get_dynamic_cache_by_prop: function get_dynamic_cache_by_prop(context, prop) {
      var dynamic_cache = context.getters.get_dynamic_cache;

      if (!dynamic_cache.hasOwnProperty(prop)) {
        return "";
      }

      var time_now_ts = Math.floor(Date.now() / 1000);

      if (dynamic_cache[prop].expiry_secs && time_now_ts - dynamic_cache[prop].cached_ts > dynamic_cache[prop].expiry_secs) {
        context.commit("delete_dynamic_cache_by_prop", prop);
        return "";
      }

      return dynamic_cache[prop].value;
    },
    clear_expired_props_in_dynamic_cache: function clear_expired_props_in_dynamic_cache(context) {
      var dynamic_cache = context.getters.get_dynamic_cache;
      var time_now_ts = Math.floor(Date.now() / 1000);

      for (var prop in dynamic_cache) {
        if (dynamic_cache[prop].expiry_secs && time_now_ts - dynamic_cache[prop].cached_ts > dynamic_cache[prop].expiry_secs) {
          context.commit("delete_dynamic_cache_by_prop", prop);
        }
      }
    },
    may_debug_listen_and_log_booking_events: function may_debug_listen_and_log_booking_events() {
      var _window, _window$wpcal_ajax;

      if (!((_window = window) !== null && _window !== void 0 && (_window$wpcal_ajax = _window.wpcal_ajax) !== null && _window$wpcal_ajax !== void 0 && _window$wpcal_ajax.is_debug)) {
        return;
      }

      var booking_event_handler = function booking_event_handler(e) {
        console.log(e);
      };

      document.addEventListener("wpcal_booking_new", booking_event_handler);
      document.addEventListener("wpcal_booking_rescheduled", booking_event_handler);
      document.addEventListener("wpcal_booking_cancelled", booking_event_handler);
    }
  }
};
/* harmony default export */ __webpack_exports__["a"] = (common_module);

/***/ }),

/***/ "d1ff":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return _x; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return _n; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return _nx; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __; });
/* unused harmony export T_x */
/* unused harmony export T_n */
/* unused harmony export T_nx */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Tsprintf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return _lang; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return debug_log; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return must_be_1_or_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return in_array; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return subset; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return get_url_param_by_name; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return html_entities; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return valid_phone; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return valid_phone_if; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return valid_date; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return min_date_as; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return valid_time; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return min_time_as; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return check_periods_collide; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return valid_color; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return hex_to_rgb_txt; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return date_parse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return timezone_list; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return get_tz_name; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return weekdays_list; });
/* unused harmony export month_list */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return location_prop_by_type; });
/* harmony import */ var _Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("53ca");
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("99af");
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("c740");
/* harmony import */ var core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("ac1f");
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("841c");
/* harmony import */ var core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("3ca3");
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("ddb0");
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("9861");
/* harmony import */ var core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("5319");
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("00b4");
/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("a15b");
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("d81d");
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("466d");
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("7db0");
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("b0c0");
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("b5ae");
/* harmony import */ var vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("e3ee");
/* harmony import */ var url_polyfill__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("4f5a");
/* harmony import */ var url_polyfill__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(url_polyfill__WEBPACK_IMPORTED_MODULE_18__);



















 // i18n - related fuctions starts here

var _wp$i18n = wp.i18n,
    wp__ = _wp$i18n.__,
    wp_x = _wp$i18n._x,
    wp_n = _wp$i18n._n,
    wp_nx = _wp$i18n._nx,
    sprintf = _wp$i18n.sprintf;

var __ = function __(str) {
  var domain = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "default";

  if (window.__wpcal_client_end != "user") {
    return str;
  }

  return wp__(str, domain);
};

var _x = function _x(str, context) {
  var domain = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "default";

  if (window.__wpcal_client_end != "user") {
    return str;
  }

  return wp_x(str, context, domain);
};

var _n = function _n(singular_str, plural_str, num) {
  var domain = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "default";

  if (window.__wpcal_client_end != "user") {
    return parseInt(num) == 1 ? singular_str : plural_str;
  }

  return wp_n(singular_str, plural_str, parseInt(num), domain);
};

var _nx = function _nx(singular_str, plural_str, num, context) {
  var domain = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : "default";

  if (window.__wpcal_client_end != "user") {
    return parseInt(num) == 1 ? singular_str : plural_str;
  }

  return wp_nx(singular_str, plural_str, parseInt(num), context, domain);
};

var Tsprintf = function Tsprintf(format) {
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }

  return sprintf.apply(void 0, [format].concat(args));
}; // i18n - related fuctions ends here
//to avoid name changed by webpack for pot file scanning "_lang.__()"" even if "_lang" changes "__()"" will not change


var _lang = {
  __: __,
  _x: _x,
  _n: _n,
  _nx: _nx,
  T__: __,
  T_x: _x,
  T_n: _n,
  T_nx: _nx
};

var must_be_1_or_0 = function must_be_1_or_0(value) {
  return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || value === "1" || value === "0" || value === 1 || value === 0;
};

var in_array = function in_array(param_array) {
  return function (value) {
    //console.log(value);
    return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || param_array.indexOf(value) !== -1;
  };
};

var subset = function subset(param_array) {
  return function (value_array) {
    //console.log(param_array, value_array);
    return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value_array) || value_array.every(function (val) {
      //console.log(val);
      return param_array.findIndex(function (param_val) {
        //console.log(param_val, val, param_val == val);
        return param_val == val;
      }) !== -1;
    });
  };
};

var get_url_param_by_name = function get_url_param_by_name(name) {
  var url_params = window.location.search;
  var search = new URLSearchParams(url_params);
  var result = search.get(name);
  return result;
};

var html_entities = function html_entities(input_str) {
  return input_str.replace(/\&/g, "&amp;").replace(/\</g, "&lt;").replace(/\>/g, "&gt;").replace(/\"/g, "&quot;").replace(/\'/g, "&#x27;").replace(/\//g, "&#x2F;");
};

var valid_phone = function valid_phone(value, v2, v3) {
  var _value = value.replace(/extension|ext/gi, "");

  return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || /^([+]?[\s0-9]+)?(\d{3}|[(]?[0-9]+[)])?([-]?[\s]?[0-9])+$/.test(_value); //regex - https://stackoverflow.com/a/53297852/188371
};

var valid_phone_if = function valid_phone_if(value, parent) {
  if (Object(_Users_yuvanathan_Projects_WPCal_sites_wpcal_03_local_app_public_wp_content_plugins_wpcal_client_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(parent) !== "object" || (parent === null || parent === void 0 ? void 0 : parent.answer_type) !== "input_phone") {
    return true;
  }

  var _value = value.replace(/extension|ext/gi, "");

  return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || /^([+]?[\s0-9]+)?(\d{3}|[(]?[0-9]+[)])?([-]?[\s]?[0-9])+$/.test(_value); //regex - https://stackoverflow.com/a/53297852/188371
};

var valid_date = function valid_date(value) {
  return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || /^([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))$/.test(value);
};

var min_date_as = function min_date_as(param) {
  return function (value, model) {
    return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || model.hasOwnProperty(param) && date_parse(model[param]).getTime() <= date_parse(value).getTime();
  };
};

var valid_time = function valid_time(value) {
  return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || /^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/.test(value);
};

var valid_color = function valid_color(value) {
  return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(value);
};

var min_time_as = function min_time_as(param) {
  return function (value, model) {
    return !vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value) || model.hasOwnProperty(param) && date_parse("2000-01-01 " + model[param]).getTime() <= date_parse("2000-01-01 " + value).getTime();
  };
};

var check_periods_collide = function check_periods_collide(value) {
  if (!vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_16__["helpers"].req(value)) {
    return false;
  }

  if (!Array.isArray(value)) {
    return true;
  }

  if (value.length == 1) {
    return true;
  }

  for (var index1 in value) {
    var check_period = value[index1];

    if (!check_period.from_time || !check_period.to_time) {
      continue;
    }

    var slot1_from_time = date_parse("2000-01-01 " + check_period.from_time).getTime();
    var slot1_to_time = date_parse("2000-01-01 " + check_period.to_time).getTime();

    for (var index2 in value) {
      var against_period = value[index2];

      if (index1 == index2 || !against_period.from_time || !against_period.to_time) {
        continue;
      }

      var slot2_from_time = date_parse("2000-01-01 " + against_period.from_time).getTime();
      var slot2_to_time = date_parse("2000-01-01 " + against_period.to_time).getTime();

      if (is_two_slots_collide(slot1_from_time, slot1_to_time, slot2_from_time, slot2_to_time)) {
        return false;
      }
    }
  }

  return true;
};

var is_two_slots_collide = function is_two_slots_collide(slot1_from_time, slot1_to_time, slot2_from_time, slot2_to_time) {
  if (slot1_from_time >= slot2_from_time && slot1_from_time < slot2_to_time) {
    return true;
  }

  if (slot2_from_time >= slot1_from_time && slot2_from_time < slot1_to_time) {
    return true;
  }

  return false;
};

var hex_to_rgb_txt = function hex_to_rgb_txt(hex) {
  return hex_to_rgb(hex).join(",");
};

var hex_to_rgb = function hex_to_rgb(hex) {
  return hex.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function (m, r, g, b) {
    return "#" + r + r + g + g + b + b;
  }).substring(1).match(/.{2}/g).map(function (x) {
    return parseInt(x, 16);
  });
};

var location_prop_by_type = function location_prop_by_type(location_type, prop) {
  var location_details = {
    physical: {
      name: __("In-person meeting", "wpcal"),
      short_descr: __("Set an address or place", "wpcal")
    },
    phone: {
      name: __("Phone call", "wpcal"),
      short_descr: __("Inbound or Outbound call", "wpcal")
    },
    googlemeet_meeting: {
      name: "Google Meet / Hangouts",
      short_descr: __("Web conference", "wpcal")
    },
    zoom_meeting: {
      name: "Zoom",
      short_descr: __("Web conference", "wpcal")
    },
    gotomeeting_meeting: {
      name: "GoToMeeting",
      short_descr: __("Web conference", "wpcal")
    },
    custom: {
      name: __("Custom", "wpcal"),
      short_descr: __("Leave customized location details", "wpcal")
    },
    ask_invitee: {
      name: __("Ask Invitee", "wpcal"),
      short_descr: __("My Invitee will set the location", "wpcal")
    }
  };

  if (location_details.hasOwnProperty(location_type) && location_details[location_type].hasOwnProperty(prop)) {
    return location_details[location_type][prop];
  }

  return location_type;
};

var debug_log = function debug_log() {
  var _console;

  window.wpcal_ajax.is_debug ? (_console = console).log.apply(_console, arguments) : "";
};

var date_parse = function date_parse(date_str) {
  var parsed = Object(date_fns__WEBPACK_IMPORTED_MODULE_17__[/* default */ "a"])(date_str);

  if (parsed === "Invalid Date") {
    return "";
  }

  return parsed;
};

var get_tz_name = function get_tz_name(tz) {
  var tz_obj = timezone_list.find(function (tz_obj) {
    return tz_obj.tz === tz;
  });

  if (!tz_obj) {
    return tz.replace("/", " - ").replace("_", " ");
  }

  return tz_obj.name;
};

var weekdays_list = [{
  index: 1,
  full_day:
  /* translators: Weekday. */
  __("Monday", "wpcal"),
  mini_day: _x("M", "weekday monday shortest", "wpcal"),
  short_day:
  /* translators: Three-letter abbreviation of the weekday. */
  __("Mon", "wpcal")
}, {
  index: 2,
  full_day:
  /* translators: Weekday. */
  __("Tuesday", "wpcal"),
  mini_day: _x("Tu", "weekday tuesday shortest", "wpcal"),
  short_day:
  /* translators: Three-letter abbreviation of the weekday. */
  __("Tue", "wpcal")
}, {
  index: 3,
  full_day:
  /* translators: Weekday. */
  __("Wednesday", "wpcal"),
  mini_day: _x("W", "weekday wednesday shortest", "wpcal"),
  short_day:
  /* translators: Three-letter abbreviation of the weekday. */
  __("Wed", "wpcal")
}, {
  index: 4,
  full_day:
  /* translators: Weekday. */
  __("Thursday", "wpcal"),
  mini_day: _x("Th", "weekday thursday shortest", "wpcal"),
  short_day:
  /* translators: Three-letter abbreviation of the weekday. */
  __("Thu", "wpcal")
}, {
  index: 5,
  full_day:
  /* translators: Weekday. */
  __("Friday", "wpcal"),
  mini_day: _x("F", "weekday friday shortest", "wpcal"),
  short_day:
  /* translators: Three-letter abbreviation of the weekday. */
  __("Fri", "wpcal")
}, {
  index: 6,
  full_day:
  /* translators: Weekday. */
  __("Saturday", "wpcal"),
  mini_day: _x("Sa", "weekday saturday shortest", "wpcal"),
  short_day:
  /* translators: Three-letter abbreviation of the weekday. */
  __("Sat", "wpcal")
}, {
  index: 7,
  full_day:
  /* translators: Weekday. */
  __("Sunday", "wpcal"),
  mini_day: _x("Su", "weekday sunday shortest", "wpcal"),
  short_day:
  /* translators: Three-letter abbreviation of the weekday. */
  __("Sun", "wpcal")
}];
var month_list = [//this is just here for language scanner deduction
{
  index: 1,
  full_month:
  /* translators: Month name. */
  __("January", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Jan", "three-letter month abbreviation", "wpcal")
}, {
  index: 2,
  full_month:
  /* translators: Month name. */
  __("February", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Feb", "three-letter month abbreviation", "wpcal")
}, {
  index: 3,
  full_month:
  /* translators: Month name. */
  __("March", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Mar", "three-letter month abbreviation", "wpcal")
}, {
  index: 4,
  full_month:
  /* translators: Month name. */
  __("April", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Apr", "three-letter month abbreviation", "wpcal")
}, {
  index: 5,
  full_month:
  /* translators: Month name. */
  __("May", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("May", "three-letter month abbreviation", "wpcal")
}, {
  index: 6,
  full_month:
  /* translators: Month name. */
  __("June", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Jun", "three-letter month abbreviation", "wpcal")
}, {
  index: 7,
  full_month:
  /* translators: Month name. */
  __("July", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Jul", "three-letter month abbreviation", "wpcal")
}, {
  index: 8,
  full_month:
  /* translators: Month name. */
  __("August", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Aug", "three-letter month abbreviation", "wpcal")
}, {
  index: 9,
  full_month:
  /* translators: Month name. */
  __("September", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Sep", "three-letter month abbreviation", "wpcal")
}, {
  index: 10,
  full_month:
  /* translators: Month name. */
  __("October", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Oct", "three-letter month abbreviation", "wpcal")
}, {
  index: 11,
  full_month:
  /* translators: Month name. */
  __("November", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Nov", "three-letter month abbreviation", "wpcal")
}, {
  index: 12,
  full_month:
  /* translators: Month name. */
  __("December", "wpcal"),
  short_month:
  /* translators: Three-letter abbreviation of the month. */
  _x("Dec", "three-letter month abbreviation", "wpcal")
}];
var _lang_support = [__("1st", "wpcal"), __("2nd", "wpcal"), __("3rd", "wpcal"), __("4th", "wpcal"), __("5th", "wpcal"), __("6th", "wpcal"), __("7th", "wpcal"), __("8th", "wpcal"), __("9th", "wpcal"), __("10th", "wpcal"), __("11th", "wpcal"), __("12th", "wpcal"), __("13th", "wpcal"), __("14th", "wpcal"), __("15th", "wpcal"), __("16th", "wpcal"), __("17th", "wpcal"), __("18th", "wpcal"), __("19th", "wpcal"), __("20th", "wpcal"), __("21st", "wpcal"), __("22nd", "wpcal"), __("23rd", "wpcal"), __("24th", "wpcal"), __("25th", "wpcal"), __("26th", "wpcal"), __("27th", "wpcal"), __("28th", "wpcal"), __("29th", "wpcal"), __("30th", "wpcal"), __("31st", "wpcal")]; //a copy of this timezone list in in [plugin]/includes/time_zone_list.json

var timezone_list = [{
  tz: "Africa/Abidjan",
  name: "Africa - Abidjan"
}, {
  tz: "Africa/Accra",
  name: "Africa - Accra"
}, {
  tz: "Africa/Addis_Ababa",
  name: "Africa - Addis Ababa"
}, {
  tz: "Africa/Algiers",
  name: "Africa - Algiers"
}, {
  tz: "Africa/Asmara",
  name: "Africa - Asmara"
}, {
  tz: "Africa/Bamako",
  name: "Africa - Bamako"
}, {
  tz: "Africa/Bangui",
  name: "Africa - Bangui"
}, {
  tz: "Africa/Banjul",
  name: "Africa - Banjul"
}, {
  tz: "Africa/Bissau",
  name: "Africa - Bissau"
}, {
  tz: "Africa/Blantyre",
  name: "Africa - Blantyre"
}, {
  tz: "Africa/Brazzaville",
  name: "Africa - Brazzaville"
}, {
  tz: "Africa/Bujumbura",
  name: "Africa - Bujumbura"
}, {
  tz: "Africa/Cairo",
  name: "Africa - Cairo"
}, {
  tz: "Africa/Casablanca",
  name: "Africa - Casablanca"
}, {
  tz: "Africa/Ceuta",
  name: "Africa - Ceuta"
}, {
  tz: "Africa/Conakry",
  name: "Africa - Conakry"
}, {
  tz: "Africa/Dakar",
  name: "Africa - Dakar"
}, {
  tz: "Africa/Dar_es_Salaam",
  name: "Africa - Dar es Salaam"
}, {
  tz: "Africa/Djibouti",
  name: "Africa - Djibouti"
}, {
  tz: "Africa/Douala",
  name: "Africa - Douala"
}, {
  tz: "Africa/El_Aaiun",
  name: "Africa - El Aaiun"
}, {
  tz: "Africa/Freetown",
  name: "Africa - Freetown"
}, {
  tz: "Africa/Gaborone",
  name: "Africa - Gaborone"
}, {
  tz: "Africa/Harare",
  name: "Africa - Harare"
}, {
  tz: "Africa/Johannesburg",
  name: "Africa - Johannesburg"
}, {
  tz: "Africa/Juba",
  name: "Africa - Juba"
}, {
  tz: "Africa/Kampala",
  name: "Africa - Kampala"
}, {
  tz: "Africa/Khartoum",
  name: "Africa - Khartoum"
}, {
  tz: "Africa/Kigali",
  name: "Africa - Kigali"
}, {
  tz: "Africa/Kinshasa",
  name: "Africa - Kinshasa"
}, {
  tz: "Africa/Lagos",
  name: "Africa - Lagos"
}, {
  tz: "Africa/Libreville",
  name: "Africa - Libreville"
}, {
  tz: "Africa/Lome",
  name: "Africa - Lome"
}, {
  tz: "Africa/Luanda",
  name: "Africa - Luanda"
}, {
  tz: "Africa/Lubumbashi",
  name: "Africa - Lubumbashi"
}, {
  tz: "Africa/Lusaka",
  name: "Africa - Lusaka"
}, {
  tz: "Africa/Malabo",
  name: "Africa - Malabo"
}, {
  tz: "Africa/Maputo",
  name: "Africa - Maputo"
}, {
  tz: "Africa/Maseru",
  name: "Africa - Maseru"
}, {
  tz: "Africa/Mbabane",
  name: "Africa - Mbabane"
}, {
  tz: "Africa/Mogadishu",
  name: "Africa - Mogadishu"
}, {
  tz: "Africa/Monrovia",
  name: "Africa - Monrovia"
}, {
  tz: "Africa/Nairobi",
  name: "Africa - Nairobi"
}, {
  tz: "Africa/Ndjamena",
  name: "Africa - Ndjamena"
}, {
  tz: "Africa/Niamey",
  name: "Africa - Niamey"
}, {
  tz: "Africa/Nouakchott",
  name: "Africa - Nouakchott"
}, {
  tz: "Africa/Ouagadougou",
  name: "Africa - Ouagadougou"
}, {
  tz: "Africa/Porto-Novo",
  name: "Africa - Porto-Novo"
}, {
  tz: "Africa/Sao_Tome",
  name: "Africa - Sao Tome"
}, {
  tz: "Africa/Tripoli",
  name: "Africa - Tripoli"
}, {
  tz: "Africa/Tunis",
  name: "Africa - Tunis"
}, {
  tz: "Africa/Windhoek",
  name: "Africa - Windhoek"
}, {
  tz: "America/Adak",
  name: "America - Adak"
}, {
  tz: "America/Anchorage",
  name: "America - Anchorage"
}, {
  tz: "America/Anguilla",
  name: "America - Anguilla"
}, {
  tz: "America/Antigua",
  name: "America - Antigua"
}, {
  tz: "America/Araguaina",
  name: "America - Araguaina"
}, {
  tz: "America/Argentina/Buenos_Aires",
  name: "America - Argentina - Buenos Aires"
}, {
  tz: "America/Argentina/Catamarca",
  name: "America - Argentina - Catamarca"
}, {
  tz: "America/Argentina/Cordoba",
  name: "America - Argentina - Cordoba"
}, {
  tz: "America/Argentina/Jujuy",
  name: "America - Argentina - Jujuy"
}, {
  tz: "America/Argentina/La_Rioja",
  name: "America - Argentina - La Rioja"
}, {
  tz: "America/Argentina/Mendoza",
  name: "America - Argentina - Mendoza"
}, {
  tz: "America/Argentina/Rio_Gallegos",
  name: "America - Argentina - Rio Gallegos"
}, {
  tz: "America/Argentina/Salta",
  name: "America - Argentina - Salta"
}, {
  tz: "America/Argentina/San_Juan",
  name: "America - Argentina - San Juan"
}, {
  tz: "America/Argentina/San_Luis",
  name: "America - Argentina - San Luis"
}, {
  tz: "America/Argentina/Tucuman",
  name: "America - Argentina - Tucuman"
}, {
  tz: "America/Argentina/Ushuaia",
  name: "America - Argentina - Ushuaia"
}, {
  tz: "America/Aruba",
  name: "America - Aruba"
}, {
  tz: "America/Asuncion",
  name: "America - Asuncion"
}, {
  tz: "America/Atikokan",
  name: "America - Atikokan"
}, {
  tz: "America/Bahia",
  name: "America - Bahia"
}, {
  tz: "America/Bahia_Banderas",
  name: "America - Bahia Banderas"
}, {
  tz: "America/Barbados",
  name: "America - Barbados"
}, {
  tz: "America/Belem",
  name: "America - Belem"
}, {
  tz: "America/Belize",
  name: "America - Belize"
}, {
  tz: "America/Blanc-Sablon",
  name: "America - Blanc-Sablon"
}, {
  tz: "America/Boa_Vista",
  name: "America - Boa Vista"
}, {
  tz: "America/Bogota",
  name: "America - Bogota"
}, {
  tz: "America/Boise",
  name: "America - Boise"
}, {
  tz: "America/Cambridge_Bay",
  name: "America - Cambridge Bay"
}, {
  tz: "America/Campo_Grande",
  name: "America - Campo Grande"
}, {
  tz: "America/Cancun",
  name: "America - Cancun"
}, {
  tz: "America/Caracas",
  name: "America - Caracas"
}, {
  tz: "America/Cayenne",
  name: "America - Cayenne"
}, {
  tz: "America/Cayman",
  name: "America - Cayman"
}, {
  tz: "America/Chicago",
  name: "America - Chicago"
}, {
  tz: "America/Chihuahua",
  name: "America - Chihuahua"
}, {
  tz: "America/Costa_Rica",
  name: "America - Costa Rica"
}, {
  tz: "America/Creston",
  name: "America - Creston"
}, {
  tz: "America/Cuiaba",
  name: "America - Cuiaba"
}, {
  tz: "America/Curacao",
  name: "America - Curacao"
}, {
  tz: "America/Danmarkshavn",
  name: "America - Danmarkshavn"
}, {
  tz: "America/Dawson",
  name: "America - Dawson"
}, {
  tz: "America/Dawson_Creek",
  name: "America - Dawson Creek"
}, {
  tz: "America/Denver",
  name: "America - Denver"
}, {
  tz: "America/Detroit",
  name: "America - Detroit"
}, {
  tz: "America/Dominica",
  name: "America - Dominica"
}, {
  tz: "America/Edmonton",
  name: "America - Edmonton"
}, {
  tz: "America/Eirunepe",
  name: "America - Eirunepe"
}, {
  tz: "America/El_Salvador",
  name: "America - El Salvador"
}, {
  tz: "America/Fortaleza",
  name: "America - Fortaleza"
}, {
  tz: "America/Fort_Nelson",
  name: "America - Fort Nelson"
}, {
  tz: "America/Glace_Bay",
  name: "America - Glace Bay"
}, {
  tz: "America/Godthab",
  name: "America - Godthab"
}, {
  tz: "America/Goose_Bay",
  name: "America - Goose Bay"
}, {
  tz: "America/Grand_Turk",
  name: "America - Grand Turk"
}, {
  tz: "America/Grenada",
  name: "America - Grenada"
}, {
  tz: "America/Guadeloupe",
  name: "America - Guadeloupe"
}, {
  tz: "America/Guatemala",
  name: "America - Guatemala"
}, {
  tz: "America/Guayaquil",
  name: "America - Guayaquil"
}, {
  tz: "America/Guyana",
  name: "America - Guyana"
}, {
  tz: "America/Halifax",
  name: "America - Halifax"
}, {
  tz: "America/Havana",
  name: "America - Havana"
}, {
  tz: "America/Hermosillo",
  name: "America - Hermosillo"
}, {
  tz: "America/Indiana/Indianapolis",
  name: "America - Indiana - Indianapolis"
}, {
  tz: "America/Indiana/Knox",
  name: "America - Indiana - Knox"
}, {
  tz: "America/Indiana/Marengo",
  name: "America - Indiana - Marengo"
}, {
  tz: "America/Indiana/Petersburg",
  name: "America - Indiana - Petersburg"
}, {
  tz: "America/Indiana/Tell_City",
  name: "America - Indiana - Tell City"
}, {
  tz: "America/Indiana/Vevay",
  name: "America - Indiana - Vevay"
}, {
  tz: "America/Indiana/Vincennes",
  name: "America - Indiana - Vincennes"
}, {
  tz: "America/Indiana/Winamac",
  name: "America - Indiana - Winamac"
}, {
  tz: "America/Inuvik",
  name: "America - Inuvik"
}, {
  tz: "America/Iqaluit",
  name: "America - Iqaluit"
}, {
  tz: "America/Jamaica",
  name: "America - Jamaica"
}, {
  tz: "America/Juneau",
  name: "America - Juneau"
}, {
  tz: "America/Kentucky/Louisville",
  name: "America - Kentucky - Louisville"
}, {
  tz: "America/Kentucky/Monticello",
  name: "America - Kentucky - Monticello"
}, {
  tz: "America/Kralendijk",
  name: "America - Kralendijk"
}, {
  tz: "America/La_Paz",
  name: "America - La Paz"
}, {
  tz: "America/Lima",
  name: "America - Lima"
}, {
  tz: "America/Los_Angeles",
  name: "America - Los Angeles"
}, {
  tz: "America/Lower_Princes",
  name: "America - Lower Princes"
}, {
  tz: "America/Maceio",
  name: "America - Maceio"
}, {
  tz: "America/Managua",
  name: "America - Managua"
}, {
  tz: "America/Manaus",
  name: "America - Manaus"
}, {
  tz: "America/Marigot",
  name: "America - Marigot"
}, {
  tz: "America/Martinique",
  name: "America - Martinique"
}, {
  tz: "America/Matamoros",
  name: "America - Matamoros"
}, {
  tz: "America/Mazatlan",
  name: "America - Mazatlan"
}, {
  tz: "America/Menominee",
  name: "America - Menominee"
}, {
  tz: "America/Merida",
  name: "America - Merida"
}, {
  tz: "America/Metlakatla",
  name: "America - Metlakatla"
}, {
  tz: "America/Mexico_City",
  name: "America - Mexico City"
}, {
  tz: "America/Miquelon",
  name: "America - Miquelon"
}, {
  tz: "America/Moncton",
  name: "America - Moncton"
}, {
  tz: "America/Monterrey",
  name: "America - Monterrey"
}, {
  tz: "America/Montevideo",
  name: "America - Montevideo"
}, {
  tz: "America/Montserrat",
  name: "America - Montserrat"
}, {
  tz: "America/Nassau",
  name: "America - Nassau"
}, {
  tz: "America/New_York",
  name: "America - New York"
}, {
  tz: "America/Nipigon",
  name: "America - Nipigon"
}, {
  tz: "America/Nome",
  name: "America - Nome"
}, {
  tz: "America/Noronha",
  name: "America - Noronha"
}, {
  tz: "America/North_Dakota/Beulah",
  name: "America - North Dakota - Beulah"
}, {
  tz: "America/North_Dakota/Center",
  name: "America - North Dakota - Center"
}, {
  tz: "America/North_Dakota/New_Salem",
  name: "America - North Dakota - New Salem"
}, {
  tz: "America/Ojinaga",
  name: "America - Ojinaga"
}, {
  tz: "America/Panama",
  name: "America - Panama"
}, {
  tz: "America/Pangnirtung",
  name: "America - Pangnirtung"
}, {
  tz: "America/Paramaribo",
  name: "America - Paramaribo"
}, {
  tz: "America/Phoenix",
  name: "America - Phoenix"
}, {
  tz: "America/Port-au-Prince",
  name: "America - Port-au-Prince"
}, {
  tz: "America/Port_of_Spain",
  name: "America - Port of Spain"
}, {
  tz: "America/Porto_Velho",
  name: "America - Porto Velho"
}, {
  tz: "America/Puerto_Rico",
  name: "America - Puerto Rico"
}, {
  tz: "America/Punta_Arenas",
  name: "America - Punta Arenas"
}, {
  tz: "America/Rainy_River",
  name: "America - Rainy River"
}, {
  tz: "America/Rankin_Inlet",
  name: "America - Rankin Inlet"
}, {
  tz: "America/Recife",
  name: "America - Recife"
}, {
  tz: "America/Regina",
  name: "America - Regina"
}, {
  tz: "America/Resolute",
  name: "America - Resolute"
}, {
  tz: "America/Rio_Branco",
  name: "America - Rio Branco"
}, {
  tz: "America/Santarem",
  name: "America - Santarem"
}, {
  tz: "America/Santiago",
  name: "America - Santiago"
}, {
  tz: "America/Santo_Domingo",
  name: "America - Santo Domingo"
}, {
  tz: "America/Sao_Paulo",
  name: "America - Sao Paulo"
}, {
  tz: "America/Scoresbysund",
  name: "America - Scoresbysund"
}, {
  tz: "America/Sitka",
  name: "America - Sitka"
}, {
  tz: "America/St_Barthelemy",
  name: "America - St Barthelemy"
}, {
  tz: "America/St_Johns",
  name: "America - St Johns"
}, {
  tz: "America/St_Kitts",
  name: "America - St Kitts"
}, {
  tz: "America/St_Lucia",
  name: "America - St Lucia"
}, {
  tz: "America/St_Thomas",
  name: "America - St Thomas"
}, {
  tz: "America/St_Vincent",
  name: "America - St Vincent"
}, {
  tz: "America/Swift_Current",
  name: "America - Swift Current"
}, {
  tz: "America/Tegucigalpa",
  name: "America - Tegucigalpa"
}, {
  tz: "America/Thule",
  name: "America - Thule"
}, {
  tz: "America/Thunder_Bay",
  name: "America - Thunder Bay"
}, {
  tz: "America/Tijuana",
  name: "America - Tijuana"
}, {
  tz: "America/Toronto",
  name: "America - Toronto"
}, {
  tz: "America/Tortola",
  name: "America - Tortola"
}, {
  tz: "America/Vancouver",
  name: "America - Vancouver"
}, {
  tz: "America/Whitehorse",
  name: "America - Whitehorse"
}, {
  tz: "America/Winnipeg",
  name: "America - Winnipeg"
}, {
  tz: "America/Yakutat",
  name: "America - Yakutat"
}, {
  tz: "America/Yellowknife",
  name: "America - Yellowknife"
}, {
  tz: "Antarctica/Casey",
  name: "Antarctica - Casey"
}, {
  tz: "Antarctica/Davis",
  name: "Antarctica - Davis"
}, {
  tz: "Antarctica/DumontDUrville",
  name: "Antarctica - DumontDUrville"
}, {
  tz: "Antarctica/Macquarie",
  name: "Antarctica - Macquarie"
}, {
  tz: "Antarctica/Mawson",
  name: "Antarctica - Mawson"
}, {
  tz: "Antarctica/McMurdo",
  name: "Antarctica - McMurdo"
}, {
  tz: "Antarctica/Palmer",
  name: "Antarctica - Palmer"
}, {
  tz: "Antarctica/Rothera",
  name: "Antarctica - Rothera"
}, {
  tz: "Antarctica/Syowa",
  name: "Antarctica - Syowa"
}, {
  tz: "Antarctica/Troll",
  name: "Antarctica - Troll"
}, {
  tz: "Antarctica/Vostok",
  name: "Antarctica - Vostok"
}, {
  tz: "Arctic/Longyearbyen",
  name: "Arctic - Longyearbyen"
}, {
  tz: "Asia/Aden",
  name: "Asia - Aden"
}, {
  tz: "Asia/Almaty",
  name: "Asia - Almaty"
}, {
  tz: "Asia/Amman",
  name: "Asia - Amman"
}, {
  tz: "Asia/Anadyr",
  name: "Asia - Anadyr"
}, {
  tz: "Asia/Aqtau",
  name: "Asia - Aqtau"
}, {
  tz: "Asia/Aqtobe",
  name: "Asia - Aqtobe"
}, {
  tz: "Asia/Ashgabat",
  name: "Asia - Ashgabat"
}, {
  tz: "Asia/Atyrau",
  name: "Asia - Atyrau"
}, {
  tz: "Asia/Baghdad",
  name: "Asia - Baghdad"
}, {
  tz: "Asia/Bahrain",
  name: "Asia - Bahrain"
}, {
  tz: "Asia/Baku",
  name: "Asia - Baku"
}, {
  tz: "Asia/Bangkok",
  name: "Asia - Bangkok"
}, {
  tz: "Asia/Barnaul",
  name: "Asia - Barnaul"
}, {
  tz: "Asia/Beirut",
  name: "Asia - Beirut"
}, {
  tz: "Asia/Bishkek",
  name: "Asia - Bishkek"
}, {
  tz: "Asia/Brunei",
  name: "Asia - Brunei"
}, {
  tz: "Asia/Chita",
  name: "Asia - Chita"
}, {
  tz: "Asia/Choibalsan",
  name: "Asia - Choibalsan"
}, {
  tz: "Asia/Colombo",
  name: "Asia - Colombo"
}, {
  tz: "Asia/Damascus",
  name: "Asia - Damascus"
}, {
  tz: "Asia/Dhaka",
  name: "Asia - Dhaka"
}, {
  tz: "Asia/Dili",
  name: "Asia - Dili"
}, {
  tz: "Asia/Dubai",
  name: "Asia - Dubai"
}, {
  tz: "Asia/Dushanbe",
  name: "Asia - Dushanbe"
}, {
  tz: "Asia/Famagusta",
  name: "Asia - Famagusta"
}, {
  tz: "Asia/Gaza",
  name: "Asia - Gaza"
}, {
  tz: "Asia/Hebron",
  name: "Asia - Hebron"
}, {
  tz: "Asia/Ho_Chi_Minh",
  name: "Asia - Ho Chi Minh"
}, {
  tz: "Asia/Hong_Kong",
  name: "Asia - Hong Kong"
}, {
  tz: "Asia/Hovd",
  name: "Asia - Hovd"
}, {
  tz: "Asia/Irkutsk",
  name: "Asia - Irkutsk"
}, {
  tz: "Asia/Jakarta",
  name: "Asia - Jakarta"
}, {
  tz: "Asia/Jayapura",
  name: "Asia - Jayapura"
}, {
  tz: "Asia/Jerusalem",
  name: "Asia - Jerusalem"
}, {
  tz: "Asia/Kabul",
  name: "Asia - Kabul"
}, {
  tz: "Asia/Kamchatka",
  name: "Asia - Kamchatka"
}, {
  tz: "Asia/Karachi",
  name: "Asia - Karachi"
}, {
  tz: "Asia/Kathmandu",
  name: "Asia - Kathmandu"
}, {
  tz: "Asia/Khandyga",
  name: "Asia - Khandyga"
}, {
  tz: "Asia/Kolkata",
  name: "Asia - Kolkata"
}, {
  tz: "Asia/Krasnoyarsk",
  name: "Asia - Krasnoyarsk"
}, {
  tz: "Asia/Kuala_Lumpur",
  name: "Asia - Kuala Lumpur"
}, {
  tz: "Asia/Kuching",
  name: "Asia - Kuching"
}, {
  tz: "Asia/Kuwait",
  name: "Asia - Kuwait"
}, {
  tz: "Asia/Macau",
  name: "Asia - Macau"
}, {
  tz: "Asia/Magadan",
  name: "Asia - Magadan"
}, {
  tz: "Asia/Makassar",
  name: "Asia - Makassar"
}, {
  tz: "Asia/Manila",
  name: "Asia - Manila"
}, {
  tz: "Asia/Muscat",
  name: "Asia - Muscat"
}, {
  tz: "Asia/Nicosia",
  name: "Asia - Nicosia"
}, {
  tz: "Asia/Novokuznetsk",
  name: "Asia - Novokuznetsk"
}, {
  tz: "Asia/Novosibirsk",
  name: "Asia - Novosibirsk"
}, {
  tz: "Asia/Omsk",
  name: "Asia - Omsk"
}, {
  tz: "Asia/Oral",
  name: "Asia - Oral"
}, {
  tz: "Asia/Phnom_Penh",
  name: "Asia - Phnom Penh"
}, {
  tz: "Asia/Pontianak",
  name: "Asia - Pontianak"
}, {
  tz: "Asia/Pyongyang",
  name: "Asia - Pyongyang"
}, {
  tz: "Asia/Qatar",
  name: "Asia - Qatar"
}, {
  tz: "Asia/Qostanay",
  name: "Asia - Qostanay"
}, {
  tz: "Asia/Qyzylorda",
  name: "Asia - Qyzylorda"
}, {
  tz: "Asia/Riyadh",
  name: "Asia - Riyadh"
}, {
  tz: "Asia/Sakhalin",
  name: "Asia - Sakhalin"
}, {
  tz: "Asia/Samarkand",
  name: "Asia - Samarkand"
}, {
  tz: "Asia/Seoul",
  name: "Asia - Seoul"
}, {
  tz: "Asia/Shanghai",
  name: "Asia - Shanghai"
}, {
  tz: "Asia/Singapore",
  name: "Asia - Singapore"
}, {
  tz: "Asia/Srednekolymsk",
  name: "Asia - Srednekolymsk"
}, {
  tz: "Asia/Taipei",
  name: "Asia - Taipei"
}, {
  tz: "Asia/Tashkent",
  name: "Asia - Tashkent"
}, {
  tz: "Asia/Tbilisi",
  name: "Asia - Tbilisi"
}, {
  tz: "Asia/Tehran",
  name: "Asia - Tehran"
}, {
  tz: "Asia/Thimphu",
  name: "Asia - Thimphu"
}, {
  tz: "Asia/Tokyo",
  name: "Asia - Tokyo"
}, {
  tz: "Asia/Tomsk",
  name: "Asia - Tomsk"
}, {
  tz: "Asia/Ulaanbaatar",
  name: "Asia - Ulaanbaatar"
}, {
  tz: "Asia/Urumqi",
  name: "Asia - Urumqi"
}, {
  tz: "Asia/Ust-Nera",
  name: "Asia - Ust-Nera"
}, {
  tz: "Asia/Vientiane",
  name: "Asia - Vientiane"
}, {
  tz: "Asia/Vladivostok",
  name: "Asia - Vladivostok"
}, {
  tz: "Asia/Yakutsk",
  name: "Asia - Yakutsk"
}, {
  tz: "Asia/Yangon",
  name: "Asia - Yangon"
}, {
  tz: "Asia/Yekaterinburg",
  name: "Asia - Yekaterinburg"
}, {
  tz: "Asia/Yerevan",
  name: "Asia - Yerevan"
}, {
  tz: "Atlantic/Azores",
  name: "Atlantic - Azores"
}, {
  tz: "Atlantic/Bermuda",
  name: "Atlantic - Bermuda"
}, {
  tz: "Atlantic/Canary",
  name: "Atlantic - Canary"
}, {
  tz: "Atlantic/Cape_Verde",
  name: "Atlantic - Cape Verde"
}, {
  tz: "Atlantic/Faroe",
  name: "Atlantic - Faroe"
}, {
  tz: "Atlantic/Madeira",
  name: "Atlantic - Madeira"
}, {
  tz: "Atlantic/Reykjavik",
  name: "Atlantic - Reykjavik"
}, {
  tz: "Atlantic/South_Georgia",
  name: "Atlantic - South Georgia"
}, {
  tz: "Atlantic/Stanley",
  name: "Atlantic - Stanley"
}, {
  tz: "Atlantic/St_Helena",
  name: "Atlantic - St Helena"
}, {
  tz: "Australia/Adelaide",
  name: "Australia - Adelaide"
}, {
  tz: "Australia/Brisbane",
  name: "Australia - Brisbane"
}, {
  tz: "Australia/Broken_Hill",
  name: "Australia - Broken Hill"
}, {
  tz: "Australia/Currie",
  name: "Australia - Currie"
}, {
  tz: "Australia/Darwin",
  name: "Australia - Darwin"
}, {
  tz: "Australia/Eucla",
  name: "Australia - Eucla"
}, {
  tz: "Australia/Hobart",
  name: "Australia - Hobart"
}, {
  tz: "Australia/Lindeman",
  name: "Australia - Lindeman"
}, {
  tz: "Australia/Lord_Howe",
  name: "Australia - Lord Howe"
}, {
  tz: "Australia/Melbourne",
  name: "Australia - Melbourne"
}, {
  tz: "Australia/Perth",
  name: "Australia - Perth"
}, {
  tz: "Australia/Sydney",
  name: "Australia - Sydney"
}, {
  tz: "Europe/Amsterdam",
  name: "Europe - Amsterdam"
}, {
  tz: "Europe/Andorra",
  name: "Europe - Andorra"
}, {
  tz: "Europe/Astrakhan",
  name: "Europe - Astrakhan"
}, {
  tz: "Europe/Athens",
  name: "Europe - Athens"
}, {
  tz: "Europe/Belgrade",
  name: "Europe - Belgrade"
}, {
  tz: "Europe/Berlin",
  name: "Europe - Berlin"
}, {
  tz: "Europe/Bratislava",
  name: "Europe - Bratislava"
}, {
  tz: "Europe/Brussels",
  name: "Europe - Brussels"
}, {
  tz: "Europe/Bucharest",
  name: "Europe - Bucharest"
}, {
  tz: "Europe/Budapest",
  name: "Europe - Budapest"
}, {
  tz: "Europe/Busingen",
  name: "Europe - Busingen"
}, {
  tz: "Europe/Chisinau",
  name: "Europe - Chisinau"
}, {
  tz: "Europe/Copenhagen",
  name: "Europe - Copenhagen"
}, {
  tz: "Europe/Dublin",
  name: "Europe - Dublin"
}, {
  tz: "Europe/Gibraltar",
  name: "Europe - Gibraltar"
}, {
  tz: "Europe/Guernsey",
  name: "Europe - Guernsey"
}, {
  tz: "Europe/Helsinki",
  name: "Europe - Helsinki"
}, {
  tz: "Europe/Isle_of_Man",
  name: "Europe - Isle of Man"
}, {
  tz: "Europe/Istanbul",
  name: "Europe - Istanbul"
}, {
  tz: "Europe/Jersey",
  name: "Europe - Jersey"
}, {
  tz: "Europe/Kaliningrad",
  name: "Europe - Kaliningrad"
}, {
  tz: "Europe/Kiev",
  name: "Europe - Kiev"
}, {
  tz: "Europe/Kirov",
  name: "Europe - Kirov"
}, {
  tz: "Europe/Lisbon",
  name: "Europe - Lisbon"
}, {
  tz: "Europe/Ljubljana",
  name: "Europe - Ljubljana"
}, {
  tz: "Europe/London",
  name: "Europe - London"
}, {
  tz: "Europe/Luxembourg",
  name: "Europe - Luxembourg"
}, {
  tz: "Europe/Madrid",
  name: "Europe - Madrid"
}, {
  tz: "Europe/Malta",
  name: "Europe - Malta"
}, {
  tz: "Europe/Mariehamn",
  name: "Europe - Mariehamn"
}, {
  tz: "Europe/Minsk",
  name: "Europe - Minsk"
}, {
  tz: "Europe/Monaco",
  name: "Europe - Monaco"
}, {
  tz: "Europe/Moscow",
  name: "Europe - Moscow"
}, {
  tz: "Europe/Oslo",
  name: "Europe - Oslo"
}, {
  tz: "Europe/Paris",
  name: "Europe - Paris"
}, {
  tz: "Europe/Podgorica",
  name: "Europe - Podgorica"
}, {
  tz: "Europe/Prague",
  name: "Europe - Prague"
}, {
  tz: "Europe/Riga",
  name: "Europe - Riga"
}, {
  tz: "Europe/Rome",
  name: "Europe - Rome"
}, {
  tz: "Europe/Samara",
  name: "Europe - Samara"
}, {
  tz: "Europe/San_Marino",
  name: "Europe - San Marino"
}, {
  tz: "Europe/Sarajevo",
  name: "Europe - Sarajevo"
}, {
  tz: "Europe/Saratov",
  name: "Europe - Saratov"
}, {
  tz: "Europe/Simferopol",
  name: "Europe - Simferopol"
}, {
  tz: "Europe/Skopje",
  name: "Europe - Skopje"
}, {
  tz: "Europe/Sofia",
  name: "Europe - Sofia"
}, {
  tz: "Europe/Stockholm",
  name: "Europe - Stockholm"
}, {
  tz: "Europe/Tallinn",
  name: "Europe - Tallinn"
}, {
  tz: "Europe/Tirane",
  name: "Europe - Tirane"
}, {
  tz: "Europe/Ulyanovsk",
  name: "Europe - Ulyanovsk"
}, {
  tz: "Europe/Uzhgorod",
  name: "Europe - Uzhgorod"
}, {
  tz: "Europe/Vaduz",
  name: "Europe - Vaduz"
}, {
  tz: "Europe/Vatican",
  name: "Europe - Vatican"
}, {
  tz: "Europe/Vienna",
  name: "Europe - Vienna"
}, {
  tz: "Europe/Vilnius",
  name: "Europe - Vilnius"
}, {
  tz: "Europe/Volgograd",
  name: "Europe - Volgograd"
}, {
  tz: "Europe/Warsaw",
  name: "Europe - Warsaw"
}, {
  tz: "Europe/Zagreb",
  name: "Europe - Zagreb"
}, {
  tz: "Europe/Zaporozhye",
  name: "Europe - Zaporozhye"
}, {
  tz: "Europe/Zurich",
  name: "Europe - Zurich"
}, {
  tz: "Indian/Antananarivo",
  name: "Indian - Antananarivo"
}, {
  tz: "Indian/Chagos",
  name: "Indian - Chagos"
}, {
  tz: "Indian/Christmas",
  name: "Indian - Christmas"
}, {
  tz: "Indian/Cocos",
  name: "Indian - Cocos"
}, {
  tz: "Indian/Comoro",
  name: "Indian - Comoro"
}, {
  tz: "Indian/Kerguelen",
  name: "Indian - Kerguelen"
}, {
  tz: "Indian/Mahe",
  name: "Indian - Mahe"
}, {
  tz: "Indian/Maldives",
  name: "Indian - Maldives"
}, {
  tz: "Indian/Mauritius",
  name: "Indian - Mauritius"
}, {
  tz: "Indian/Mayotte",
  name: "Indian - Mayotte"
}, {
  tz: "Indian/Reunion",
  name: "Indian - Reunion"
}, {
  tz: "Pacific/Apia",
  name: "Pacific - Apia"
}, {
  tz: "Pacific/Auckland",
  name: "Pacific - Auckland"
}, {
  tz: "Pacific/Bougainville",
  name: "Pacific - Bougainville"
}, {
  tz: "Pacific/Chatham",
  name: "Pacific - Chatham"
}, {
  tz: "Pacific/Chuuk",
  name: "Pacific - Chuuk"
}, {
  tz: "Pacific/Easter",
  name: "Pacific - Easter"
}, {
  tz: "Pacific/Efate",
  name: "Pacific - Efate"
}, {
  tz: "Pacific/Enderbury",
  name: "Pacific - Enderbury"
}, {
  tz: "Pacific/Fakaofo",
  name: "Pacific - Fakaofo"
}, {
  tz: "Pacific/Fiji",
  name: "Pacific - Fiji"
}, {
  tz: "Pacific/Funafuti",
  name: "Pacific - Funafuti"
}, {
  tz: "Pacific/Galapagos",
  name: "Pacific - Galapagos"
}, {
  tz: "Pacific/Gambier",
  name: "Pacific - Gambier"
}, {
  tz: "Pacific/Guadalcanal",
  name: "Pacific - Guadalcanal"
}, {
  tz: "Pacific/Guam",
  name: "Pacific - Guam"
}, {
  tz: "Pacific/Honolulu",
  name: "Pacific - Honolulu"
}, {
  tz: "Pacific/Kiritimati",
  name: "Pacific - Kiritimati"
}, {
  tz: "Pacific/Kosrae",
  name: "Pacific - Kosrae"
}, {
  tz: "Pacific/Kwajalein",
  name: "Pacific - Kwajalein"
}, {
  tz: "Pacific/Majuro",
  name: "Pacific - Majuro"
}, {
  tz: "Pacific/Marquesas",
  name: "Pacific - Marquesas"
}, {
  tz: "Pacific/Midway",
  name: "Pacific - Midway"
}, {
  tz: "Pacific/Nauru",
  name: "Pacific - Nauru"
}, {
  tz: "Pacific/Niue",
  name: "Pacific - Niue"
}, {
  tz: "Pacific/Norfolk",
  name: "Pacific - Norfolk"
}, {
  tz: "Pacific/Noumea",
  name: "Pacific - Noumea"
}, {
  tz: "Pacific/Pago_Pago",
  name: "Pacific - Pago Pago"
}, {
  tz: "Pacific/Palau",
  name: "Pacific - Palau"
}, {
  tz: "Pacific/Pitcairn",
  name: "Pacific - Pitcairn"
}, {
  tz: "Pacific/Pohnpei",
  name: "Pacific - Pohnpei"
}, {
  tz: "Pacific/Port_Moresby",
  name: "Pacific - Port Moresby"
}, {
  tz: "Pacific/Rarotonga",
  name: "Pacific - Rarotonga"
}, {
  tz: "Pacific/Saipan",
  name: "Pacific - Saipan"
}, {
  tz: "Pacific/Tahiti",
  name: "Pacific - Tahiti"
}, {
  tz: "Pacific/Tarawa",
  name: "Pacific - Tarawa"
}, {
  tz: "Pacific/Tongatapu",
  name: "Pacific - Tongatapu"
}, {
  tz: "Pacific/Wake",
  name: "Pacific - Wake"
}, {
  tz: "Pacific/Wallis",
  name: "Pacific - Wallis"
}];

/***/ }),

/***/ "e0f2":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingStep2.vue?vue&type=template&id=b2863abe&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{attrs:{"id":"wpcal-widget"}},[_c('div',{staticClass:"widget-main state-form cf"},[(_vm.client_end == 'admin')?_c('div',{staticClass:"modal_close_cont"},[_c('button',{on:{"click":function($event){return _vm.$modal.hide('service_booking_modal')}}})]):_vm._e(),_c('BookingInfo',{attrs:{"service_details":_vm.service_details,"service_admin_details":_vm.service_admin_details,"old_booking":_vm.old_booking,"booking_type":_vm.booking_type,"booking_step":"2"}}),_c('div',{staticClass:"event-form"},[_c('div',{staticClass:"icon-back",on:{"click":_vm.go_back}},[_c('span',[_vm._v(_vm._s(_vm.__("Back", "wpcal")))])]),_c('div',{staticClass:"confirmed-timing",domProps:{"innerHTML":_vm._s(
            _vm.$options.filters.wpcal_unix_to_from_to_time_full_date_day_tz(
              _vm.form.booking_slot.from_time,
              _vm.form.booking_slot.to_time,
              _vm.tz,
              _vm.time_format
            ) + '.'
          )}}),(_vm.booking_type === 'new')?_c('div',{staticClass:"txt-h4"},[_vm._v(" "+_vm._s(_vm.__("Please enter your details", "wpcal"))+" ")]):_vm._e(),_c('div',{staticClass:"wpc-form"},[(_vm.booking_type === 'new')?_c('div',[_c('form-row',{attrs:{"validator":_vm.$v.form.invitee_name}},[_c('label',{staticClass:"wpc-label"},[_vm._v(_vm._s(_vm.__( "Full Name", "wpcal" ) /* intentional line break, i18n search replace */)+" "),_c('em',[_vm._v(_vm._s(_vm.__("required", "wpcal")))])]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.form.invitee_name),expression:"form.invitee_name"}],ref:"invitee_name",attrs:{"type":"text","name":"name","autocomplete":"name"},domProps:{"value":(_vm.form.invitee_name)},on:{"blur":function($event){return _vm.$v.form.invitee_name.$touch()},"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.form, "invitee_name", $event.target.value)}}})]),_c('form-row',{attrs:{"validator":_vm.$v.form.invitee_email}},[_c('label',{staticClass:"wpc-label"},[_vm._v(_vm._s(_vm.__( "Email Address", "wpcal" ) /* intentional line break, i18n search replace */)+" "),_c('em',[_vm._v(_vm._s(_vm.__("required", "wpcal")))])]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.form.invitee_email),expression:"form.invitee_email"}],attrs:{"type":"email","name":"email","autocomplete":"email","autocapitalize":"off","autocorrect":"off"},domProps:{"value":(_vm.form.invitee_email)},on:{"blur":function($event){return _vm.$v.form.invitee_email.$touch()},"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.form, "invitee_email", $event.target.value)}}})])],1):_vm._e(),(_vm.booking_type === 'reschedule')?_c('div',[_c('form-row',{attrs:{"validator":_vm.$v.form.reschedule_reason}},[_c('label',{staticClass:"wpc-label"},[_vm._v(_vm._s(_vm.__("Reason for reschedule", "wpcal")))]),_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.form.reschedule_reason),expression:"form.reschedule_reason"}],ref:"reschedule_reason",domProps:{"value":(_vm.form.reschedule_reason)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.form, "reschedule_reason", $event.target.value)}}}),_vm._v(" "),(_vm.client_end == 'admin')?_c('div',{staticClass:"txt-help"},[_vm._v(" "+_vm._s(_vm.T__( "Reschedule reason will be communicated to invitee.", "wpcal" ))+" ")]):_vm._e()])],1):_vm._e(),_c('LocationAdvanced',{attrs:{"type":"display_booking_location_options","locations":_vm.service_locations,"service_admin_details":_vm.service_admin_details,"$v":_vm.$v.form.location},model:{value:(_vm.form.location),callback:function ($$v) {_vm.$set(_vm.form, "location", $$v)},expression:"form.location"}}),_vm._l((_vm.questions),function(question,index){return _c('form-row',{key:index,attrs:{"validator":_vm.$v.form.invitee_question_answers.$each.$iter[index].answer}},[_c('label',{staticClass:"wpc-label"},[_c('span',{staticClass:"pre"},[_vm._v(_vm._s(question.question))]),_c('em',[_vm._v(_vm._s(question.is_required == 1 ? _vm.__("required", "wpcal") : _vm.__("optional", "wpcal"))+" ")])]),(question.answer_type == 'textarea')?_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(question.answer),expression:"question.answer"}],attrs:{"rows":"3"},domProps:{"value":(question.answer)},on:{"blur":function($event){_vm.$v.form.invitee_question_answers.$each.$iter[
                  index
                ].answer.$touch()},"input":function($event){if($event.target.composing){ return; }_vm.$set(question, "answer", $event.target.value)}}}):_vm._e(),_vm._v(" "),((question.answer_type == 'input_phone' ? 'tel' : 'text')==='checkbox'&&(
                question.answer_type == 'input_text' ||
                  question.answer_type == 'input_phone'
              ))?_c('input',{directives:[{name:"model",rawName:"v-model",value:(question.answer),expression:"question.answer"}],attrs:{"autocomplete":question.answer_type == 'input_phone' ? 'tel' : '',"inputmode":question.answer_type == 'input_phone' ? 'tel' : '',"type":"checkbox"},domProps:{"checked":Array.isArray(question.answer)?_vm._i(question.answer,null)>-1:(question.answer)},on:{"blur":function($event){_vm.$v.form.invitee_question_answers.$each.$iter[
                  index
                ].answer.$touch()},"change":function($event){var $$a=question.answer,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(question, "answer", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(question, "answer", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(question, "answer", $$c)}}}}):((question.answer_type == 'input_phone' ? 'tel' : 'text')==='radio'&&(
                question.answer_type == 'input_text' ||
                  question.answer_type == 'input_phone'
              ))?_c('input',{directives:[{name:"model",rawName:"v-model",value:(question.answer),expression:"question.answer"}],attrs:{"autocomplete":question.answer_type == 'input_phone' ? 'tel' : '',"inputmode":question.answer_type == 'input_phone' ? 'tel' : '',"type":"radio"},domProps:{"checked":_vm._q(question.answer,null)},on:{"blur":function($event){_vm.$v.form.invitee_question_answers.$each.$iter[
                  index
                ].answer.$touch()},"change":function($event){return _vm.$set(question, "answer", null)}}}):(
                question.answer_type == 'input_text' ||
                  question.answer_type == 'input_phone'
              )?_c('input',{directives:[{name:"model",rawName:"v-model",value:(question.answer),expression:"question.answer"}],attrs:{"autocomplete":question.answer_type == 'input_phone' ? 'tel' : '',"inputmode":question.answer_type == 'input_phone' ? 'tel' : '',"type":question.answer_type == 'input_phone' ? 'tel' : 'text'},domProps:{"value":(question.answer)},on:{"blur":function($event){_vm.$v.form.invitee_question_answers.$each.$iter[
                  index
                ].answer.$touch()},"input":function($event){if($event.target.composing){ return; }_vm.$set(question, "answer", $event.target.value)}}}):_vm._e()])}),_c('div',{staticClass:"wpc-form-row mb0"},[(_vm.booking_type === 'new')?_c('button',{staticClass:"wpc-btn primary lg mt20",attrs:{"type":"button","disabled":!_vm.create_booking_btn_is_enabled},on:{"click":function($event){return _vm.$emit('form-submit')}}},[_vm._v(" "+_vm._s(_vm.__("Schedule my Event", "wpcal"))+" ")]):_vm._e(),(_vm.booking_type === 'reschedule')?_c('button',{staticClass:"wpc-btn primary lg",attrs:{"type":"button","disabled":!_vm.create_booking_btn_is_enabled},on:{"click":function($event){return _vm.$emit('reschedule-form-submit')}}},[_vm._v(" "+_vm._s(_vm.__("Reschedule my Event", "wpcal"))+" ")]):_vm._e()])],2)])],1)])])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/user/BookingStep2.vue?vue&type=template&id=b2863abe&

// EXTERNAL MODULE: ./src/components/user/BookingInfo.vue + 9 modules
var BookingInfo = __webpack_require__("40f7");

// EXTERNAL MODULE: ./src/components/LocationAdvanced.vue + 4 modules
var LocationAdvanced = __webpack_require__("2f7b");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingStep2.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


/* harmony default export */ var BookingStep2vue_type_script_lang_js_ = ({
  components: {
    BookingInfo: BookingInfo["a" /* default */],
    LocationAdvanced: LocationAdvanced["a" /* default */]
  },
  props: {
    booking_type: {
      type: String
    },
    service_details: {
      type: Object
    },
    service_admin_details: {
      type: Object
    },
    form: {
      type: Object
    },
    old_booking: {
      type: Object
    },
    create_booking_btn_is_enabled: {},
    service_locations: {},
    $v: {}
  },
  computed: {
    questions: function questions() {
      if (!this.form.invitee_question_answers || !Array.isArray(this.form.invitee_question_answers)) {
        return [];
      }

      return this.form.invitee_question_answers;
    }
  },
  methods: {
    go_back: function go_back() {
      if (this.client_end == "user") {
        this.$router.go(-1);
        return;
      }

      if (this.client_end == "admin") {
        this.$emit("change-step", 1);
      }
    }
  },
  mounted: function mounted() {
    if (this.$refs.invitee_name) {
      this.$refs.invitee_name.focus();
    } else if (this.$refs.reschedule_reason) {
      this.$refs.reschedule_reason.focus();
    }
  }
});
// CONCATENATED MODULE: ./src/components/user/BookingStep2.vue?vue&type=script&lang=js&
 /* harmony default export */ var user_BookingStep2vue_type_script_lang_js_ = (BookingStep2vue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/user/BookingStep2.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  user_BookingStep2vue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var BookingStep2 = __webpack_exports__["a"] = (component.exports);

/***/ }),

/***/ "e268":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form_elements/TimeZoneSelector.vue?vue&type=template&id=060cdab6&scoped=true&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tzs-cont"},[_c('v-select',{staticClass:"time-zone-v-selector",attrs:{"label":"name","options":_vm.options,"value":_vm.tz_model,"clearable":false,"appendToBody":true,"calculate-position":_vm.with_popper,"reduce":function (name) { return name.tz; }},on:{"input":function($event){return _vm.check_and_set_tz($event)}}})],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/form_elements/TimeZoneSelector.vue?vue&type=template&id=060cdab6&scoped=true&

// EXTERNAL MODULE: ./node_modules/vue-select/dist/vue-select.js
var vue_select = __webpack_require__("4a7a");
var vue_select_default = /*#__PURE__*/__webpack_require__.n(vue_select);

// EXTERNAL MODULE: ./node_modules/vue-select/dist/vue-select.css
var dist_vue_select = __webpack_require__("6dfc");

// EXTERNAL MODULE: ./node_modules/@popperjs/core/lib/popper.js + 51 modules
var lib_popper = __webpack_require__("39c3");

// EXTERNAL MODULE: ./src/utils/common_func.js
var common_func = __webpack_require__("d1ff");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form_elements/TimeZoneSelector.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//




/* harmony default export */ var TimeZoneSelectorvue_type_script_lang_js_ = ({
  components: {
    vSelect: vue_select_default.a
  },
  model: {
    prop: "form_tz",
    event: "changed-form-tz"
  },
  props: {
    use_as: {
      validator: function validator(value) {
        // The value must match one of these strings
        return ["view_in_tz", "form_tz"].indexOf(value) !== -1;
      },
      default: "view_in_tz"
    },
    form_tz: {
      type: String
    }
  },
  data: function data() {
    return {
      options: common_func["u" /* timezone_list */]
    };
  },
  computed: {
    tz_model: function tz_model() {
      if (this.use_as === "form_tz") {
        return this.form_tz;
      } //if this.use_as === "view_in_tz"


      return this.tz;
    }
  },
  methods: {
    check_and_set_tz: function check_and_set_tz(tz) {
      if (this.use_as === "form_tz") {
        this.$emit("changed-form-tz", tz);
        return;
      } //if this.use_as === "view_in_tz"


      if (!tz) {
        return;
      }

      this.$store.dispatch("set_tz", tz);
    },
    with_popper: function with_popper(dropdownList, component, _ref) {
      var width = _ref.width;
      //code taken from https://vue-select.org/guide/positioning.html#popper-js-integration

      /**
       * We need to explicitly define the dropdown width since
       * it is usually inherited from the parent with CSS.
       */
      dropdownList.style.width = width;
      dropdownList.style["z-index"] = 99000;
      dropdownList.classList.add("wpcal-v-select-body-dropdown"); //append to body class

      /**
       * Here we position the dropdownList relative to the $refs.toggle Element.
       *
       * The 'offset' modifier aligns the dropdown so that the $refs.toggle and
       * the dropdownList overlap by 1 pixel.
       *
       * The 'toggleClass' modifier adds a 'drop-up' class to the Vue Select
       * wrapper so that we can set some styles for when the dropdown is placed
       * above.
       */

      var popper = Object(lib_popper["a" /* createPopper */])(component.$refs.toggle, dropdownList, {
        //placement: this.placement,
        modifiers: [{
          name: "offset",
          options: {
            offset: [0, -1]
          }
        }, {
          name: "toggleClass",
          enabled: true,
          phase: "write",
          fn: function fn(_ref2) {
            var state = _ref2.state;
            component.$el.classList.toggle("drop-up", state.placement === "top");
          }
        }]
      });
      /**
       * To prevent memory leaks Popper needs to be destroyed.
       * If you return function, it will be called just before dropdown is removed from DOM.
       */

      return function () {
        return popper.destroy();
      };
    }
  }
});
// CONCATENATED MODULE: ./src/components/form_elements/TimeZoneSelector.vue?vue&type=script&lang=js&
 /* harmony default export */ var form_elements_TimeZoneSelectorvue_type_script_lang_js_ = (TimeZoneSelectorvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./src/components/form_elements/TimeZoneSelector.vue?vue&type=style&index=0&id=060cdab6&scoped=true&lang=css&
var TimeZoneSelectorvue_type_style_index_0_id_060cdab6_scoped_true_lang_css_ = __webpack_require__("2f8f");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/form_elements/TimeZoneSelector.vue






/* normalize component */

var TimeZoneSelector_component = Object(componentNormalizer["a" /* default */])(
  form_elements_TimeZoneSelectorvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "060cdab6",
  null
  
)

/* harmony default export */ var TimeZoneSelector = __webpack_exports__["a"] = (TimeZoneSelector_component.exports);

/***/ }),

/***/ "eb8b":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/user/Booking.vue?vue&type=template&id=31041e52&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.old_booking && _vm.old_booking.unique_link && _vm.client_end === 'user')?_c('div',{staticStyle:{"text-align":"center"}},[_vm._v(" "+_vm._s(_vm.__("Reschedule booking", "wpcal"))+" ")]):_vm._e(),(_vm.steps_flow.step1)?_c('BookingStep1',{attrs:{"booking_type":_vm.booking_type,"service_details":_vm.service_details,"form":_vm.form,"availabile_slots_details":_vm.availabile_slots_details,"available_dates":_vm.available_dates,"availability_date_ranges":_vm.availability_date_ranges,"move_to_first_available_date":_vm.move_to_first_available_date,"service_admin_details":_vm.service_admin_details,"old_booking":_vm.old_booking,"current_user_details":_vm.current_user_details},on:{"next-step":function($event){return _vm.set_active_step_and_toggle($event)},"calendar-month-moved-to":function($event){return _vm.process_calendar_month_move_event($event)}}}):_vm._e(),(_vm.client_end === 'admin' && _vm.steps_flow.step2)?_c('BookingStep2',{attrs:{"$v":_vm.$v,"booking_type":_vm.booking_type,"service_details":_vm.service_details,"form":_vm.form,"service_admin_details":_vm.service_admin_details,"old_booking":_vm.old_booking,"create_booking_btn_is_enabled":_vm.create_booking_btn_is_enabled,"service_locations":_vm.service_locations},on:{"form-submit":_vm.add_booking,"reschedule-form-submit":_vm.reschedule_booking,"change-step":function($event){return _vm.set_active_step_and_toggle($event)}}}):_vm._e(),(_vm.client_end === 'user' && _vm.steps_flow.step2)?_c('router-view',{attrs:{"name":"step2","$v":_vm.$v,"booking_type":_vm.booking_type,"service_details":_vm.service_details,"form":_vm.form,"service_admin_details":_vm.service_admin_details,"old_booking":_vm.old_booking,"create_booking_btn_is_enabled":_vm.create_booking_btn_is_enabled,"service_locations":_vm.service_locations},on:{"form-submit":_vm.add_booking,"reschedule-form-submit":_vm.reschedule_booking}}):_vm._e(),(
      _vm.service_details.hasOwnProperty('status') && _vm.service_details.status != 1
    )?_c('NewBookingsDisabled'):_vm._e(),_c('v-dialog',{on:{"before-closed":_vm.check_and_may_close_dialog}}),_c('BookingBottomPoweredBy')],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/views/user/Booking.vue?vue&type=template&id=31041e52&

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__("53ca");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
var es_array_sort = __webpack_require__("4e82");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
var es_string_trim = __webpack_require__("498a");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__("b0c0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
var es_json_stringify = __webpack_require__("e9c4");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingStep1.vue?vue&type=template&id=d8a2b7ca&scoped=true&
var BookingStep1vue_type_template_id_d8a2b7ca_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{attrs:{"id":"wpcal-widget"}},[_c('div',{staticClass:"widget-main",class:{
        'state-select-date': !(_vm.form.booking_date instanceof Date),
        'state-select-time': _vm.form.booking_date instanceof Date
      }},[(_vm.client_end == 'admin')?_c('div',{staticClass:"modal_close_cont"},[_c('button',{on:{"click":function($event){return _vm.$modal.hide('service_booking_modal')}}})]):_vm._e(),_c('BookingInfo',{attrs:{"service_details":_vm.service_details,"service_admin_details":_vm.service_admin_details,"old_booking":_vm.old_booking,"booking_type":_vm.booking_type}}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show_date_picker),expression:"show_date_picker"}],staticClass:"event-date-col"},[_c('h4',[_vm._v(_vm._s(_vm.__("Select a Date", "wpcal")))]),_c('v-date-picker',{ref:"booking_date_picker",staticStyle:{"width":"100%"},attrs:{"is-inline":"","locale":this.$store.getters.get_site_locale_intl,"value":"current_customizing_availability_date","available-dates":_vm.available_dates,"min-page":_vm.date_picker_min_page,"max-page":_vm.date_picker_max_page},on:{"update:to-page":function($event){return _vm.$emit('calendar-month-moved-to', $event)}},model:{value:(_vm.form.booking_date),callback:function ($$v) {_vm.$set(_vm.form, "booking_date", $$v)},expression:"form.booking_date"}}),(
            _vm.current_user_details &&
              _vm.current_user_details.hasOwnProperty('is_wpcal_admin') &&
              _vm.current_user_details.is_wpcal_admin
          )?_c('div',{staticClass:"visible-only-admins"},[_vm._m(0),_c('h6',[_c('svg',{staticClass:"eye",attrs:{"viewBox":"0 0 100 100","xmlns":"http://www.w3.org/2000/svg"}},[_c('g',{attrs:{"transform":"matrix(4.166666666666667,0,0,4.166666666666667,0,0)"}},[_c('path',{attrs:{"d":"M23.5,12S18.352,18.5,12,18.5.5,12,.5,12,5.648,5.5,12,5.5,23.5,12,23.5,12Z","fill":"none","stroke":"#000000","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M8.000 12.000 A4.000 4.000 0 1 0 16.000 12.000 A4.000 4.000 0 1 0 8.000 12.000 Z","fill":"none","stroke":"#000000","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M12,10a2,2,0,1,1-2,2","fill":"none","stroke":"#000000","stroke-linecap":"round","stroke-linejoin":"round"}})])]),_vm._v(" Visible only to WPCal admins ")])]):_vm._e(),_c('TimeZoneSelector')],1),_c('SlotSelector',{attrs:{"selected_date":_vm.form.booking_date,"availabile_slots_details":_vm.availabile_slots_details,"form":_vm.form,"show":_vm.show_slots_column},on:{"slot-selector-back-clicked":_vm.slot_selector_back_clicked,"slot-selected":_vm.emit_next_step},model:{value:(_vm.form.booking_slot),callback:function ($$v) {_vm.$set(_vm.form, "booking_slot", $$v)},expression:"form.booking_slot"}}),_c('div',{staticClass:"ribbon-mask"},[_c('a',{staticClass:"corner-brand",attrs:{"href":"https://wpcal.io/?utm_source=wpcal_plugin&utm_medium=booking_corner_brand","target":"_blank"}},[_c('div',{staticClass:"powered-by"},[_vm._v(_vm._s(_vm.__("POWERED BY", "wpcal")))]),_c('div',{staticClass:"brand-name"},[_vm._v("WPCal.io")])])]),_c('div',{staticClass:"onboard-select-date"})],1)])])}
var BookingStep1vue_type_template_id_d8a2b7ca_scoped_true_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"admin-only-content"},[_vm._v(" Some slots missing?"),_c('br'),_c('a',{attrs:{"href":"https://help.wpcal.io/en/article/troubleshooting-why-slots-are-missingnot-available-1tbj1hg/","target":"_blank"}},[_vm._v("See why")]),_vm._v(" ↗ ")])}]


// CONCATENATED MODULE: ./src/components/user/BookingStep1.vue?vue&type=template&id=d8a2b7ca&scoped=true&

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
var es_array_find_index = __webpack_require__("c740");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form_elements/SlotSelector.vue?vue&type=template&id=63c2181a&
var SlotSelectorvue_type_template_id_63c2181a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"event-time-col-cont"},[(_vm.show_component)?_c('div',{staticClass:"event-time-col"},[_c('h4',[_c('div',{staticClass:"icon-back",on:{"click":function($event){return _vm.$emit('slot-selector-back-clicked', 1)}}}),_vm._v(" "+_vm._s(_vm.__("Select a Time", "wpcal"))+" ")]),_c('div',{staticClass:"selected-date"},[_vm._v(" "+_vm._s(_vm._f("wpcal_format_fw_fm_dth_y")(_vm.selected_date))+" ")]),_c('ul',{staticClass:"time-slot-selector"},_vm._l((_vm.day_available_slots),function(option,index){return _c('li',{key:index,staticClass:"wpcal_slot",class:{
          confirmation: _vm.confirm_index === index,
          cf: _vm.confirm_index === index
        },attrs:{"date-slot-from-time":option.from_time},on:{"click":function($event){return _vm.show_confirm(index)}}},[_c('a',[_vm._v(_vm._s(_vm._f("wpcal_unix_to_time")(option.from_time,_vm.tz, _vm.time_format)))]),(_vm.confirm_index === index)?_c('button',{on:{"click":function($event){return _vm.confirmed_slot(option)}}},[_vm._v(" "+_vm._s(_vm.__("Confirm", "wpcal"))+" ")]):_vm._e()])}),0)]):_vm._e()])}
var SlotSelectorvue_type_template_id_63c2181a_staticRenderFns = []


// CONCATENATED MODULE: ./src/components/form_elements/SlotSelector.vue?vue&type=template&id=63c2181a&

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
var es_number_constructor = __webpack_require__("a9e3");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form_elements/SlotSelector.vue?vue&type=script&lang=js&

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var SlotSelectorvue_type_script_lang_js_ = ({
  model: {
    prop: "booking_slot",
    event: "change-selected-slot"
  },
  props: {
    show: {
      type: Boolean,
      required: true
    },
    selected_date: {
      required: true
    },
    availabile_slots_details: {
      type: Object,
      required: true
    },
    booking_slot: {
      required: true
    },
    form: {
      type: Object
    }
  },
  data: function data() {
    return {
      confirm_index: null
    };
  },
  computed: {
    show_component: function show_component() {
      return this.show && this.selected_date instanceof Date;
    },
    formatted_selected_date: function formatted_selected_date() {
      return this.$options.filters.wpcal_format_std_date(this.selected_date);
    },
    day_available_slots: function day_available_slots() {
      if (typeof this.availabile_slots_details.slots[this.formatted_selected_date] === "undefined") {
        return [];
      }

      return this.availabile_slots_details.slots[this.formatted_selected_date].slots;
    }
  },
  methods: {
    show_confirm: function show_confirm(index) {
      this.confirm_index = index;
    },
    confirmed_slot: function confirmed_slot(slot) {
      //this.booking_slot = slot;
      this.$emit("change-selected-slot", slot);
      this.$emit("slot-selected", 1);
    },
    may_set_confirm_index: function may_set_confirm_index() {
      if (this.confirm_index || !this.form.booking_slot) {
        return;
      }

      for (var slot_index in this.day_available_slots) {
        if (this.day_available_slots[slot_index].from_time == this.form.booking_slot.from_time && this.day_available_slots[slot_index].to_time == this.form.booking_slot.to_time) {
          this.confirm_index = Number(slot_index);
          this.scroll_to_within_cont('.wpcal_slot[date-slot-from-time="' + this.day_available_slots[slot_index].from_time + '"]', ".time-slot-selector");
          break;
        }
      }
    }
  },
  mounted: function mounted() {
    this.may_set_confirm_index();
  },
  watch: {
    formatted_selected_date: function formatted_selected_date() {
      this.confirm_index = null; //this is clear index when date selected
    },
    availabile_slots_details: function availabile_slots_details() {//this.confirm_index = null; //this is clear index when availabile_slots_details changes
    }
  }
});
// CONCATENATED MODULE: ./src/components/form_elements/SlotSelector.vue?vue&type=script&lang=js&
 /* harmony default export */ var form_elements_SlotSelectorvue_type_script_lang_js_ = (SlotSelectorvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/form_elements/SlotSelector.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  form_elements_SlotSelectorvue_type_script_lang_js_,
  SlotSelectorvue_type_template_id_63c2181a_render,
  SlotSelectorvue_type_template_id_63c2181a_staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var SlotSelector = (component.exports);
// EXTERNAL MODULE: ./src/components/user/BookingInfo.vue + 9 modules
var BookingInfo = __webpack_require__("40f7");

// EXTERNAL MODULE: ./src/components/form_elements/TimeZoneSelector.vue + 4 modules
var TimeZoneSelector = __webpack_require__("e268");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/BookingStep1.vue?vue&type=script&lang=js&

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var BookingStep1vue_type_script_lang_js_ = ({
  components: {
    SlotSelector: SlotSelector,
    BookingInfo: BookingInfo["a" /* default */],
    TimeZoneSelector: TimeZoneSelector["a" /* default */]
  },
  props: {
    booking_type: {
      type: String
    },
    service_details: {
      type: Object
    },
    form: {
      type: Object
    },
    availabile_slots_details: {
      type: Object
    },
    available_dates: {
      type: Array
    },
    availability_date_ranges: {
      type: Object
    },
    service_admin_details: {
      type: Object
    },
    move_to_first_available_date: {},
    old_booking: {
      type: Object
    },
    current_user_details: {
      type: Object
    }
  },
  data: function data() {
    return {
      show_slots_column: true,
      update_to_page: "update:topage"
    };
  },
  computed: {
    show_date_picker: function show_date_picker() {
      if (this.$store.getters.get_app_cont_width < 700 && this.form.booking_date instanceof Date) {
        return false;
      }

      return true;
    },
    date_picker_min_page: function date_picker_min_page() {
      //to restrict selectable dates
      if (!this.availability_date_ranges || !this.availability_date_ranges.current_available_from_date) {
        return undefined;
      }

      var date_str = this.availability_date_ranges.current_available_from_date;
      var from_tz = this.service_details.timezone;
      var to_tz = this.tz;
      var month_year_obj = this.$options.filters.wpcal_convert_tz_std_date_to_month_year_obj(date_str, from_tz, to_tz);
      return month_year_obj;
    },
    date_picker_max_page: function date_picker_max_page() {
      //to restrict selectable dates
      if (!this.availability_date_ranges || !this.availability_date_ranges.current_available_to_date) {
        return undefined;
      }

      var date_str = this.availability_date_ranges.current_available_to_date;
      var from_tz = this.service_details.timezone;
      var to_tz = this.tz;
      var month_year_obj = this.$options.filters.wpcal_convert_tz_std_date_to_month_year_obj(date_str, from_tz, to_tz);
      return month_year_obj;
    }
  },
  methods: {
    emit_next_step: function emit_next_step() {
      this.$emit("next-step", 2);
    },
    slot_selector_back_clicked: function slot_selector_back_clicked() {
      this.form.booking_date = "";
    }
  },
  watch: {
    tz: function tz() {
      var _this = this;

      //after changing timezone if selected booking_date is not in available_dates then empty the booking_date
      if (!(this.form.booking_date instanceof Date)) {
        return;
      }

      var result = this.available_dates.findIndex(function (date) {
        return date.getTime() == _this.form.booking_date.getTime();
      });

      if (result === -1) {
        this.form.booking_date = "";
      }
    },
    move_to_first_available_date: function move_to_first_available_date(new_value) {
      if (new_value) {
        var calendar = this.$refs.booking_date_picker;
        calendar.$refs.calendar.move(new_value);
      }
    }
  }
});
// CONCATENATED MODULE: ./src/components/user/BookingStep1.vue?vue&type=script&lang=js&
 /* harmony default export */ var user_BookingStep1vue_type_script_lang_js_ = (BookingStep1vue_type_script_lang_js_); 
// EXTERNAL MODULE: ./src/components/user/BookingStep1.vue?vue&type=style&index=0&id=d8a2b7ca&scoped=true&lang=css&
var BookingStep1vue_type_style_index_0_id_d8a2b7ca_scoped_true_lang_css_ = __webpack_require__("0e01");

// CONCATENATED MODULE: ./src/components/user/BookingStep1.vue






/* normalize component */

var BookingStep1_component = Object(componentNormalizer["a" /* default */])(
  user_BookingStep1vue_type_script_lang_js_,
  BookingStep1vue_type_template_id_d8a2b7ca_scoped_true_render,
  BookingStep1vue_type_template_id_d8a2b7ca_scoped_true_staticRenderFns,
  false,
  null,
  "d8a2b7ca",
  null
  
)

/* harmony default export */ var BookingStep1 = (BookingStep1_component.exports);
// EXTERNAL MODULE: ./src/components/user/BookingStep2.vue + 4 modules
var BookingStep2 = __webpack_require__("e0f2");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d205223-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/user/NewBookingsDisabled.vue?vue&type=template&id=7e60ae71&
var NewBookingsDisabledvue_type_template_id_7e60ae71_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"wpcal-widget"}},[_c('div',{staticClass:"widget-main"},[_c('div',{staticStyle:{"padding":"20px","text-align":"center","width":"100%"}},[_vm._v(" "+_vm._s(_vm.__("No more bookings allowed.", "wpcal"))+" ")])])])}
var NewBookingsDisabledvue_type_template_id_7e60ae71_staticRenderFns = []


// CONCATENATED MODULE: ./src/components/user/NewBookingsDisabled.vue?vue&type=template&id=7e60ae71&

// CONCATENATED MODULE: ./src/components/user/NewBookingsDisabled.vue

var script = {}


/* normalize component */

var NewBookingsDisabled_component = Object(componentNormalizer["a" /* default */])(
  script,
  NewBookingsDisabledvue_type_template_id_7e60ae71_render,
  NewBookingsDisabledvue_type_template_id_7e60ae71_staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var NewBookingsDisabled = (NewBookingsDisabled_component.exports);
// EXTERNAL MODULE: ./src/components/user/BookingBottomPoweredBy.vue + 2 modules
var BookingBottomPoweredBy = __webpack_require__("81cb");

// EXTERNAL MODULE: ./node_modules/vuelidate/lib/validators/index.js
var validators = __webpack_require__("b5ae");

// EXTERNAL MODULE: ./src/utils/common_func.js
var common_func = __webpack_require__("d1ff");

// EXTERNAL MODULE: ./node_modules/date-fns/esm/compareAsc/index.js
var compareAsc = __webpack_require__("2613");

// EXTERNAL MODULE: ./node_modules/lodash-es/isEmpty.js
var isEmpty = __webpack_require__("7ee8");

// EXTERNAL MODULE: ./node_modules/axios/index.js
var axios = __webpack_require__("bc3a");
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/user/Booking.vue?vue&type=script&lang=js&





//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//









/* harmony default export */ var Bookingvue_type_script_lang_js_ = ({
  components: {
    BookingStep1: BookingStep1,
    BookingStep2: BookingStep2["a" /* default */],
    NewBookingsDisabled: NewBookingsDisabled,
    BookingBottomPoweredBy: BookingBottomPoweredBy["a" /* default */]
  },
  props: {
    admin_end_booking_type: {
      type: String
    },
    admin_end_service_id: {
      type: String
    },
    admin_end_old_booking_unique_link: {
      type: String
    },
    admin_end_is_schedule_invitee_again: {
      type: Boolean
    }
  },
  data: function data() {
    return {
      service_id: null,
      steps_flow: {
        step1: true,
        step2: false
      },
      form: {
        booking_date: "",
        booking_slot: null,
        invitee_name: "",
        invitee_email: "",
        invitee_tz: "",
        invitee_question_answers: [],
        reschedule_reason: "",
        location: {}
      },
      availabile_slots_details_db: {},
      availability_date_ranges: {},
      current_user_details: {},
      service_details: {},
      service_admin_details: {},
      move_to_first_available_date: false,
      can_load_slots_for_calendar_month_move_event: false,
      current_calendar_month: {},
      booking_type: "new",
      old_booking_unique_link: "",
      old_booking: {},
      is_schedule_invitee_again: false,
      create_booking_btn_is_enabled: true,
      service_locations: []
    };
  },
  validations: function validations() {
    var validations_rules = {
      form: {
        //booking_date: "",
        //booking_slot: null,
        invitee_name: {
          required: validators["required"]
        },
        invitee_email: {
          required: validators["required"],
          email: validators["email"]
        },
        invitee_question_answers: {
          $each: {
            answer: {
              required: Object(validators["requiredIf"])(function (value_model) {
                return value_model.is_required == 1;
              }),
              valid_phone_if: common_func["y" /* valid_phone_if */]
            }
          }
        },
        location: {
          type: {
            required: Object(validators["requiredIf"])(function () {
              return this.service_locations.length > 0;
            })
          },
          form: {
            location: {
              required: Object(validators["requiredIf"])(function () {
                if (this.form.location && (this.form.location.type == "ask_invitee" || this.form.location.type == "phone" && this.form.location.form.who_calls == "admin")) {
                  return true;
                }
              })
            }
          }
        }
      },
      step2: ["form.invitee_name", "form.invitee_email", "form.invitee_question_answers", "form.location.type", "form.location.form.location"],
      reschedule_step2: ["form.invitee_question_answers", "form.location.type", "form.location.form.location"]
    };

    if (this.form.location && (this.form.location.type == "ask_invitee" || this.form.location.type == "phone" && this.form.location.form.who_calls == "admin")) {
      validations_rules.form.location.form.location["max_char_length_500"] = Object(validators["maxLength"])(500);
    }

    if (this.form.location && this.form.location.type == "phone" && this.form.location.form.who_calls == "admin") {
      validations_rules.form.location.form.location["valid_phone"] = common_func["x" /* valid_phone */];
    }

    return validations_rules;
  },
  computed: {
    availabile_slots_details: function availabile_slots_details() {
      //recreating from this.availabile_slots_details_db for new date which used in object key for timezone changes
      var __all_details = this.availabile_slots_details_db;

      if (!__all_details || Object(esm_typeof["a" /* default */])(__all_details.slots) != "object") {
        return __all_details;
      }

      var __tmp = this.clone_deep(__all_details);

      __tmp.slots = {};

      for (var old_date in __all_details.slots) {
        for (var some_key in __all_details.slots[old_date].slots) {
          var _slot = __all_details.slots[old_date].slots[some_key];
          var new_date = this.$options.filters.wpcal_unix_to_date(_slot.from_time, this.tz);

          if (!__tmp.slots.hasOwnProperty(new_date)) {
            __tmp.slots[new_date] = {};
          }

          if (!__tmp.slots[new_date].hasOwnProperty("slots")) {
            __tmp.slots[new_date]["slots"] = [];
          }

          __tmp.slots[new_date].slots.push(_slot);
        }
      }

      for (var _new_date in __tmp.slots) {
        __tmp.slots[_new_date]["is_available"] = "1"; //as timezone changes available per day data splits to two days so always 1 here

        __tmp.slots[_new_date]["is_all_booked"] = "0";

        if (__tmp.slots[_new_date].slots.length == 0) {
          __tmp.slots[_new_date]["is_all_booked"] = "1";
        }
      }

      return __tmp;
    },
    available_dates: function available_dates() {
      var old_hidden_avaialble_date_to_disable_other_dates = [this.date_parse("1999-01-01")];
      var available_dates = [];

      if (Object(esm_typeof["a" /* default */])(this.availabile_slots_details) !== "object" || Object(esm_typeof["a" /* default */])(this.availabile_slots_details.slots) !== "object") {
        return old_hidden_avaialble_date_to_disable_other_dates;
      } // let current_view_year_month = "";
      // if (
      //   this.current_calendar_month &&
      //   this.current_calendar_month.hasOwnProperty("month")
      // ) {
      //   let zerofilled_month = ("00" + this.current_calendar_month.month).slice(
      //     -2
      //   );
      //   current_view_year_month =
      //     this.current_calendar_month.year + "-" + zerofilled_month;
      // }


      for (var date in this.availabile_slots_details.slots) {
        // if (current_view_year_month) {
        //   if (date.indexOf(current_view_year_month) === -1) {
        //     //to load only current view month slots after tz conversion
        //     continue;
        //   }
        // }
        if (this.availabile_slots_details.slots[date].is_available == "1" && this.availabile_slots_details.slots[date].is_all_booked == "0") {
          available_dates.push(this.date_parse(date));
        }
      }

      return available_dates.length ? available_dates : old_hidden_avaialble_date_to_disable_other_dates;
    },
    ajax_main_action: function ajax_main_action() {
      if (this.client_end === "admin") {
        return "wpcal_process_admin_ajax_request";
      }

      return "wpcal_process_user_ajax_request";
    }
  },
  methods: {
    set_active_step_and_toggle: function set_active_step_and_toggle(step) {
      if (step == 1) {
        this.steps_flow.step1 = true;
        this.steps_flow.step2 = false;
      } else if (step == 2) {
        this.steps_flow.step1 = false;
        this.steps_flow.step2 = true;

        if (this.client_end === "user") {
          this.$router.push("/booking/confirm");
        }
      }
    },
    get_first_available_date: function get_first_available_date() {
      if (this.available_dates.length == 0) {
        return "";
      }

      var available_dates = this.available_dates;
      available_dates.sort(compareAsc["a" /* default */]);

      if (available_dates[0].getTime() == this.date_parse("1999-01-01").getTime()) {
        return "";
      }

      return available_dates[0];
    },
    process_calendar_month_move_event: function process_calendar_month_move_event(to_month) {
      this.current_calendar_month = to_month;
      this.load_avaialble_slots_by_calendar_view(to_month);
    },
    pre_fill_form_from_url_params: function pre_fill_form_from_url_params() {
      var invitee_name = Object(common_func["l" /* get_url_param_by_name */])("wpcal_name");
      invitee_name = invitee_name ? Object(common_func["n" /* html_entities */])(invitee_name).trim() : "";
      var invitee_email = Object(common_func["l" /* get_url_param_by_name */])("wpcal_email");
      invitee_email = invitee_email ? Object(common_func["n" /* html_entities */])(invitee_email).trim() : "";

      if (invitee_name) {
        this.form.invitee_name = invitee_name;
      }

      if (invitee_email) {
        this.form.invitee_email = invitee_email;
      }
    },
    load_page_details: function load_page_details() {
      var _this = this;

      var wpcal_request = {};
      var action_service_details = "get_service_details_for_booking";
      wpcal_request[action_service_details] = {
        service_id: this.service_id
      };
      var action_user_details = "get_current_user_details_for_booking";
      wpcal_request[action_user_details] = {
        dummy__: ""
      };
      var action_availabile_slots = "get_initial_service_availabile_slots";
      wpcal_request[action_availabile_slots] = {
        service_id: this.service_id
      };

      if (this.booking_type == "reschedule") {
        wpcal_request[action_availabile_slots]["exclude_booking_unique_link"] = this.old_booking_unique_link;
      }

      var action_old_booking_details;

      if (this.booking_type == "reschedule" || this.booking_type == "new" && this.is_schedule_invitee_again === true) {
        action_old_booking_details = "get_booking_by_unique_link";
        wpcal_request[action_old_booking_details] = {
          unique_link: this.old_booking_unique_link
        };
      }

      var post_data = {
        action: this.ajax_main_action,
        wpcal_request: wpcal_request
      };
      axios_default.a.post(window.wpcal_ajax.ajax_url, post_data).then(function (response) {
        //console.log(response);
        if (response.data[action_service_details].status == "success") {
          _this.service_details = response.data[action_service_details].service_data;
          _this.service_admin_details = response.data[action_service_details].service_admin_data;
          _this.service_locations = _this.clone_deep(_this.service_details.locations);

          if (_this.service_details.status != 1) {
            _this.steps_flow = {};
          }
        }

        if (response.data[action_user_details].status == "success") {
          _this.current_user_details = response.data[action_user_details].user_data;

          if (_this.current_user_details && typeof _this.current_user_details["is_pre_fill_user_details"] !== "undefined" && _this.current_user_details.is_pre_fill_user_details) {
            if (typeof _this.current_user_details["name"] !== "undefined") {
              _this.form.invitee_name = _this.current_user_details.name;
            }

            if (typeof _this.current_user_details["email"] !== "undefined") {
              _this.form.invitee_email = _this.current_user_details.email;
            }
          }

          _this.pre_fill_form_from_url_params();
        }

        if (_this.booking_type == "reschedule" || _this.booking_type == "new" && _this.is_schedule_invitee_again === true) {
          if (response.data[action_old_booking_details].status == "success") {
            var _old_booking = response.data[action_old_booking_details].booking_data;
            _this.form.invitee_name = _old_booking.invitee_name;
            _this.form.invitee_email = _old_booking.invitee_email;
            _this.form.invitee_tz = _old_booking.invitee_tz;

            if (_this.booking_type == "reschedule") {
              var allow_reschedule = _this.check_old_booking_reschedulable(_old_booking);

              if (allow_reschedule) {
                _this.old_booking = _old_booking;
                _this.form.invitee_question_answers = _old_booking.invitee_question_answers;
              }
            }
          }
        }

        if (response.data[action_availabile_slots].status == "success" && response.data[action_availabile_slots].availabile_slots_details && !Object(isEmpty["a" /* default */])(response.data[action_availabile_slots].availabile_slots_details.slots)) {
          _this.availabile_slots_details_db = response.data[action_availabile_slots].availabile_slots_details;
          _this.move_to_first_available_date = _this.get_first_available_date();
          setTimeout(function () {
            _this.can_load_slots_for_calendar_month_move_event = true; //hackish fix to avoid inital calendar view change event and one after initial load
          }, 100);
        }

        if (response.data[action_availabile_slots].status == "success" && response.data[action_availabile_slots].availability_date_ranges) {
          _this.availability_date_ranges = response.data[action_availabile_slots].availability_date_ranges;
        }

        if (_this.booking_type == "new") {
          _this.add_questions_to_booking_form();
        }
      }).catch(function (error) {
        console.log(error);
      });
    },
    load_avaialble_slots_by_calendar_view: function load_avaialble_slots_by_calendar_view(to_month) {
      var _this2 = this;

      if (!this.can_load_slots_for_calendar_month_move_event || !to_month || Object(esm_typeof["a" /* default */])(to_month) !== "object" || !to_month.hasOwnProperty("month")) {
        return false;
      }

      this.move_to_first_available_date = false;
      var wpcal_request = {};
      var action_availabile_slots = "get_service_availabile_slots_by_month";
      wpcal_request[action_availabile_slots] = {
        service_id: this.service_id,
        current_month_view: to_month
      };

      if (this.booking_type == "reschedule") {
        wpcal_request[action_availabile_slots]["exclude_booking_unique_link"] = this.old_booking_unique_link;
      }

      var post_data = {
        action: this.ajax_main_action,
        wpcal_request: wpcal_request
      };
      axios_default.a.post(window.wpcal_ajax.ajax_url, post_data).then(function (response) {
        //console.log(response);
        if (response.data[action_availabile_slots].status == "success" && response.data[action_availabile_slots].month_availabile_slots_details && !Object(isEmpty["a" /* default */])(response.data[action_availabile_slots].month_availabile_slots_details.slots)) {
          _this2.availabile_slots_details_db.slots = response.data[action_availabile_slots].month_availabile_slots_details.slots;
        }
      }).catch(function (error) {
        console.log(error);
      });
    },
    add_booking: function add_booking() {
      var _this3 = this;

      this.$v.step2.$touch();

      if (this.$v.step2.$anyError) {
        this.scroll_to_first_validation_error();
        return;
      }

      this.create_booking_btn_is_enabled = false;
      var final_form = this.clone_deep(this.form);
      final_form.service_id = this.service_id; //final_form.location = this.service_details.locations;

      if (this.client_end === "user") {
        final_form.invitee_tz = this.tz;
        final_form.booking_page_current_url = window.location.href;
        final_form.booking_page_post_id = window.wpcal_post_id;
      }

      var wpcal_request = {};
      var action_add_booking = "add_booking";
      wpcal_request[action_add_booking] = {
        form: final_form
      };
      var post_data = {
        action: this.ajax_main_action,
        wpcal_request: wpcal_request
      };
      axios_default.a.post(window.wpcal_ajax.ajax_url, post_data).then(function (response) {
        //console.log(response);
        if (response.data[action_add_booking].status === "success") {
          var booking_unique_link = response.data[action_add_booking].booking_data.unique_link;
          setTimeout(function () {
            _this3.$store.dispatch("run_booking_background_tasks_by_unique_link", {
              unique_link: booking_unique_link
            });
          }, 500);
          var wpcal_booking_trigger = new CustomEvent("wpcal_booking_new", {
            detail: {
              booking_details: {
                unique_link: booking_unique_link
              }
            }
          });
          document.dispatchEvent(wpcal_booking_trigger);

          if (_this3.client_end === "user") {
            _this3.$router.push("/booking/view/" + booking_unique_link + "/confirmed");

            _this3.scroll_to("#wpcal-widget");
          } else if (_this3.client_end === "admin") {
            _this3.$emit("booking-added", {
              booking_unique_link: booking_unique_link
            });
          }
        } else {
          _this3.notify_single_action_result(response.data[action_add_booking], {
            success_msg: _this3.__("Booking saved.", "wpcal"),
            validation_errors: {
              //to get feal of normal toast instead of inline
              target: "",
              zindex: "99999"
            }
          });
        }
      }).catch(function (error) {
        console.log(error);
      }).then(function () {
        _this3.create_booking_btn_is_enabled = true;
      });
    },
    check_old_booking_reschedulable: function check_old_booking_reschedulable(old_booking) {
      var _this4 = this;

      if (old_booking && Object(esm_typeof["a" /* default */])(old_booking) === "object") {
        if (old_booking.hasOwnProperty("status") && old_booking.status != "1") {
          var dialog_text;

          if (old_booking.status == "-5") {
            dialog_text = this.__("Booking already rescheduled.", "wpcal");
          } else if (old_booking.status == "-1" || old_booking.status == "-2") {
            dialog_text = this.__("Booking already cancelled.", "wpcal");
          }

          this.on_close_go_to = "/booking/view/" + old_booking.unique_link; //unable to stop dialog close when clicking

          this.$modal.show("dialog", {
            title: this.__("Oops!", "wpcal"),
            text: dialog_text,
            //clickToClose: false, //clickToClose: false NOT WORKING
            buttons: [{
              title: this.__("Ok", "wpcal"),
              handler: function handler() {
                _this4.$router.push("/booking/view/" + old_booking.unique_link);

                _this4.can_close_dialog = true;

                _this4.$modal.hide("dialog");
              },
              default: true
            }]
          });
          return false;
        }

        var current_ts = Math.round(new Date().getTime() / 1000);

        if (old_booking.hasOwnProperty("booking_to_time") && old_booking.booking_to_time < current_ts) {
          this.on_close_go_to = "/booking/schedule_again/" + old_booking.unique_link; //unable to stop dialog close when clicking

          this.$modal.show("dialog", {
            title: this.__("Oops!", "wpcal"),
            text: this.__("Booking slot was in the past and cannot be rescheduled. Do you want to make new booking?", "wpcal"),
            //clickToClose: false, //clickToClose: false NOT WORKING
            buttons: [{
              title: this.__("Yes", "wpcal"),
              handler: function handler() {
                _this4.$router.push("/booking/schedule_again/" + old_booking.unique_link);

                _this4.can_close_dialog = true;

                _this4.$modal.hide("dialog");
              },
              default: true
            }, {
              title: this.__("No", "wpcal"),
              handler: function handler() {
                _this4.$router.push("/booking/view/" + old_booking.unique_link);

                _this4.can_close_dialog = true;

                _this4.$modal.hide("dialog");
              },
              default: true
            }]
          });
          return false;
        }
      }

      return true;
    },
    //eslint-disable-next-line
    check_and_may_close_dialog: function check_and_may_close_dialog(event) {
      if (typeof this.on_close_go_to !== "undefined" && this.on_close_go_to) {
        var on_close_go_to = this.on_close_go_to;
        this.on_close_go_to = undefined;
        this.$router.push(on_close_go_to); //event.stop(); - not working for dialog
      }
    },
    reschedule_booking: function reschedule_booking() {
      var _this5 = this;

      this.$v.reschedule_step2.$touch();

      if (this.$v.reschedule_step2.$anyError) {
        this.scroll_to_first_validation_error();
        return;
      }

      this.create_booking_btn_is_enabled = false;
      var final_form = this.clone_deep(this.form);
      final_form.service_id = this.service_id; //final_form.location = this.service_details.locations;

      if (this.client_end === "user") {
        final_form.invitee_tz = this.tz;
        final_form.booking_page_current_url = window.location.href;
        final_form.booking_page_post_id = window.wpcal_post_id;
      }

      var wpcal_request = {};
      var action_reschedule_booking = "reschedule_booking";
      wpcal_request[action_reschedule_booking] = {
        old_booking_unique_link: this.old_booking_unique_link,
        form: final_form
      };
      var post_data = {
        action: this.ajax_main_action,
        wpcal_request: wpcal_request
      };
      axios_default.a.post(window.wpcal_ajax.ajax_url, post_data).then(function (response) {
        //console.log(response);
        if (response.data[action_reschedule_booking].hasOwnProperty("status")) {
          //alert(response.data[action_reschedule_booking].status);
          if (response.data[action_reschedule_booking].status === "success") {
            var new_booking = response.data[action_reschedule_booking].new_booking_data;
            var new_booking_id = response.data[action_reschedule_booking].new_booking_id;
            var wpcal_booking_trigger = new CustomEvent("wpcal_booking_rescheduled", {
              detail: {
                booking_details: {
                  unique_link: new_booking.unique_link
                }
              }
            });
            document.dispatchEvent(wpcal_booking_trigger);
            setTimeout(function () {
              _this5.$store.dispatch("run_booking_background_tasks_by_unique_link", {
                unique_link: new_booking.unique_link
              });
            }, 500);

            if (_this5.client_end === "user") {
              _this5.$router.push("/booking/view/" + new_booking.unique_link + "/rescheduled");

              _this5.scroll_to("#wpcal-widget");
            } else if (_this5.client_end === "admin") {
              _this5.$emit("booking-rescheduled", {
                old_booking: _this5.old_booking,
                new_booking: new_booking,
                new_booking_id: new_booking_id
              });
            }
          } else {
            _this5.notify_single_action_result(response.data[action_reschedule_booking], {
              success_msg: _this5.__("Booking saved.", "wpcal"),
              validation_errors: {
                //to get feal of normal toast instead of inline
                target: "",
                zindex: "99999"
              }
            });
          }
        }
      }).catch(function (error) {
        console.log(error);
      }).then(function () {
        _this5.create_booking_btn_is_enabled = true;
      });
    },
    add_questions_to_booking_form: function add_questions_to_booking_form() {
      if (!this.service_details.invitee_questions || Object(esm_typeof["a" /* default */])(this.service_details.invitee_questions) !== "object" || !this.service_details.invitee_questions.hasOwnProperty("questions") || !Array.isArray(this.service_details.invitee_questions.questions)) {
        return;
      }

      this.form.invitee_question_answers = JSON.parse(JSON.stringify(this.service_details.invitee_questions.questions)); //JSON.parse(JSON.stringify()) for without reference

      for (var i in this.form.invitee_question_answers) {
        //this.form.invitee_question_answers[i]["answer"] = "";
        this.$set(this.form.invitee_question_answers[i], "answer", ""); //for reactivity
      }
    },
    load_page: function load_page() {
      Object.assign(this.$data, this.$options.data.apply(this)); //re-initilize data in Vue

      this.service_id = window.wpcal_booking_service_id;

      if (this.client_end === "user") {
        if (this.$route.name == "booking_reschedule") {
          this.booking_type = "reschedule";
          this.old_booking_unique_link = this.$route.params.unique_link;
        } else if (this.$route.name == "booking") {
          this.booking_type = "new";
          this.old_booking_unique_link = "";
        } else if (this.$route.name == "booking_schedule_again") {
          this.booking_type = "new";
          this.old_booking_unique_link = this.$route.params.unique_link;
          this.is_schedule_invitee_again = true;
        }
      } else if (this.client_end === "admin") {
        this.service_id = this.admin_end_service_id;

        if (this.admin_end_booking_type == "reschedule" && this.admin_end_old_booking_unique_link) {
          this.booking_type = "reschedule";
          this.old_booking_unique_link = this.admin_end_old_booking_unique_link;
        } else if (this.admin_end_booking_type == "new") {
          this.booking_type = "new";
          this.old_booking_unique_link = "";

          if (this.admin_end_is_schedule_invitee_again === true) {
            this.old_booking_unique_link = this.admin_end_old_booking_unique_link;
            this.is_schedule_invitee_again = this.admin_end_is_schedule_invitee_again;
          }
        }
      }

      this.load_page_details();
    }
  },
  watch: {
    // //eslint-disable-next-line
    // "$route.name": function(new_route_name, old_route_name) {
    //   //console.log(new_route_name, old_route_name);
    //   if (this.client_end === "user") {
    //     if (this.$route.path != "/booking/confirm") {
    //       this.load_page();
    //     }
    //   }
    // },
    "$route.path": function $routePath() {
      if (this.client_end === "user") {
        if (this.$route.name == "booking" || this.$route.name == "booking_reschedule" || this.$route.name == "booking_schedule_again") {
          this.set_active_step_and_toggle(1);
        }
      }
    },
    "$route.params.unique_link": function $routeParamsUnique_link(new_value) {
      if (this.$route.name == "booking_reschedule" || this.$route.name == "booking_schedule_again") {
        if (this.old_booking_unique_link != new_value) {
          this.load_page();
        }
      }
    }
  },
  created: function created() {
    if (this.client_end === "user") {
      this.service_id = window.wpcal_booking_service_id;
    }
  },
  mounted: function mounted() {
    var _this6 = this;

    if (this.$route.path == "/booking/confirm") {
      if (!this.form.booking_slot || Object(esm_typeof["a" /* default */])(this.form.booking_slot) !== "object") {
        this.$router.push("/booking");
        setTimeout(function () {
          _this6.scroll_to("#wpcal-widget");
        }, 200);
      }
    }

    this.load_page();
  }
});
// CONCATENATED MODULE: ./src/views/user/Booking.vue?vue&type=script&lang=js&
 /* harmony default export */ var user_Bookingvue_type_script_lang_js_ = (Bookingvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./src/assets/css/user_booking.css?vue&type=style&index=0&lang=css&
var user_bookingvue_type_style_index_0_lang_css_ = __webpack_require__("5618");

// CONCATENATED MODULE: ./src/views/user/Booking.vue






/* normalize component */

var Booking_component = Object(componentNormalizer["a" /* default */])(
  user_Bookingvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var Booking = __webpack_exports__["a"] = (Booking_component.exports);

/***/ })

}]);