"use strict";
/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunktimetics"] = self["webpackChunktimetics"] || []).push([["assets_src_admin_pages_overview_index_js"],{

/***/ "./assets/src/admin/pages/meeting/hook/useDateRange.js":
/*!*************************************************************!*\
  !*** ./assets/src/admin/pages/meeting/hook/useDateRange.js ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__);\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar _window$React = window.React,\n  useEffect = _window$React.useEffect,\n  useState = _window$React.useState;\n\nvar useDateRange = function useDateRange() {\n  var _useState = useState({\n      currentWeek: {},\n      lastWeek: {},\n      currentMonth: {},\n      lastMonth: {},\n      lastThreeMonths: {}\n    }),\n    _useState2 = _slicedToArray(_useState, 2),\n    dateRanges = _useState2[0],\n    setDateRanges = _useState2[1];\n  useEffect(function () {\n    // Today date initialization\n    var today = dayjs__WEBPACK_IMPORTED_MODULE_0___default()();\n    // current currentWeek calculation from today date\n    var currentWeek = {\n      startDate: today.startOf(\"week\").format(\"YYYY-MM-DD\"),\n      endDate: today.endOf(\"week\").format(\"YYYY-MM-DD\")\n    };\n    // current lastWeek calculation from today date\n    var lastWeek = {\n      startDate: today.subtract(1, \"week\").startOf(\"week\").format(\"YYYY-MM-DD\"),\n      endDate: today.subtract(1, \"week\").endOf(\"week\").format(\"YYYY-MM-DD\")\n    };\n    // current currentMonth calculation from today date\n    var currentMonth = {\n      startDate: today.startOf(\"month\").format(\"YYYY-MM-DD\"),\n      endDate: today.endOf(\"month\").format(\"YYYY-MM-DD\")\n    };\n    // current lastMonth calculation from today date\n    var lastMonth = {\n      startDate: today.subtract(1, \"month\").startOf(\"month\").format(\"YYYY-MM-DD\"),\n      endDate: today.subtract(1, \"month\").endOf(\"month\").format(\"YYYY-MM-DD\")\n    };\n    // current week calculation from today date\n    var lastThreeMonths = {\n      startDate: today.subtract(3, \"months\").startOf(\"month\").format(\"YYYY-MM-DD\"),\n      endDate: today.subtract(1, \"month\").endOf(\"month\").format(\"YYYY-MM-DD\")\n    };\n    setDateRanges({\n      currentWeek: currentWeek,\n      lastWeek: lastWeek,\n      currentMonth: currentMonth,\n      lastMonth: lastMonth,\n      lastThreeMonths: lastThreeMonths\n    });\n  }, []);\n  return dateRanges;\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useDateRange);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/meeting/hook/useDateRange.js?");

/***/ }),

/***/ "./assets/src/admin/pages/overview/GroupedBarChart.js":
/*!************************************************************!*\
  !*** ./assets/src/admin/pages/overview/GroupedBarChart.js ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var chart_js_auto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! chart.js/auto */ \"./node_modules/chart.js/auto/auto.js\");\n/* harmony import */ var react_chartjs_2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-chartjs-2 */ \"./node_modules/react-chartjs-2/dist/index.js\");\nvar _window$React = window.React,\n  useState = _window$React.useState,\n  useEffect = _window$React.useEffect,\n  useRef = _window$React.useRef;\n\n\nvar GroupedBarChart = function GroupedBarChart(_ref) {\n  var chartData = _ref.chartData;\n  if (!chartData) {\n    return null;\n  }\n\n  // get all necessary data\n  var keys = Object.keys(chartData);\n  var cancelValues = Object.values(chartData).map(function (item) {\n    return item.cancel;\n  });\n  var completedValues = Object.values(chartData).map(function (item) {\n    return item.completed;\n  });\n  var labels = keys;\n  var data = {\n    labels: labels,\n    datasets: [{\n      label: \"Booked\",\n      backgroundColor: \"#4B78FF\",\n      borderColor: \"#4B78FF\",\n      data: completedValues,\n      borderRadius: 10,\n      borderWidth: 0\n    }, {\n      label: \"Canceled\",\n      backgroundColor: \"#FF8694\",\n      borderColor: \"#FF8694\",\n      data: cancelValues,\n      borderRadius: 10,\n      borderWidth: 0\n    }]\n  };\n  var chartOptions = {\n    responsive: true,\n    indexAxis: \"x\",\n    scales: {\n      x: {\n        grid: {\n          display: false // Hide the x-axis grid lines\n        },\n\n        ticks: {\n          display: true // Hide the x-axis labels\n        }\n      },\n\n      y: {\n        grid: {\n          display: true // Hide the y-axis grid lines\n        },\n\n        ticks: {\n          display: true // Hide the y-axis labels\n        }\n      }\n    },\n\n    plugins: {\n      legend: {\n        display: true // Hide the legend\n      }\n    }\n  };\n\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-grupedbar chart\"\n  }, /*#__PURE__*/React.createElement(react_chartjs_2__WEBPACK_IMPORTED_MODULE_1__.Bar, {\n    data: data,\n    options: chartOptions\n  }));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GroupedBarChart);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/overview/GroupedBarChart.js?");

/***/ }),

/***/ "./assets/src/admin/pages/overview/OverviewBanner.js":
/*!***********************************************************!*\
  !*** ./assets/src/admin/pages/overview/OverviewBanner.js ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _images_logo_png__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../images/logo.png */ \"./assets/images/logo.png\");\n/* harmony import */ var _images_banner_bg_png__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../images/banner_bg.png */ \"./assets/images/banner_bg.png\");\nvar React = window.React;\nvar _window$antd = window.antd,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col;\n\n\nvar __ = wp.i18n.__;\nfunction OverviewBanner() {\n  var style = {\n    backgroundImage: \"url(\".concat(_images_banner_bg_png__WEBPACK_IMPORTED_MODULE_1__[\"default\"], \")\")\n  };\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-banner\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"banner-overlay\",\n    style: style\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"banner-info\"\n  }, /*#__PURE__*/React.createElement(\"img\", {\n    src: _images_logo_png__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n    alt: __(\"Timetics Logo\", \"timetics\")\n  }), /*#__PURE__*/React.createElement(\"h2\", {\n    className: \"banner-heading\"\n  }, __(\"Effortless Scheduling\", \"timetics\"), \" \", /*#__PURE__*/React.createElement(\"span\", null, __(\"for Everyone\", \"timetics\")))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OverviewBanner);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/overview/OverviewBanner.js?");

/***/ }),

/***/ "./assets/src/admin/pages/overview/OverviewCard.js":
/*!*********************************************************!*\
  !*** ./assets/src/admin/pages/overview/OverviewCard.js ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nvar React = window.React;\nvar _window$antd = window.antd,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col,\n  Card = _window$antd.Card,\n  Space = _window$antd.Space,\n  Avatar = _window$antd.Avatar,\n  Typography = _window$antd.Typography,\n  Select = _window$antd.Select;\nvar Meta = Card.Meta;\nvar Title = Typography.Title;\nvar __ = wp.i18n.__;\nvar OverviewCard = function OverviewCard(_ref) {\n  var title = _ref.title,\n    description = _ref.description,\n    onChange = _ref.onChange;\n  var handleInputChange = function handleInputChange(value) {\n    onChange(value);\n  };\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-card-wrapper tt-overview-performance\"\n  }, /*#__PURE__*/React.createElement(Card, {\n    className: \"tt-overview-card\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-heading\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-card-title\"\n  }, /*#__PURE__*/React.createElement(Title, {\n    level: 4,\n    className: \"tt-overview-title\"\n  }, title)), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-fillter-report\"\n  }, /*#__PURE__*/React.createElement(Select, {\n    defaultValue: \"currentMonth\",\n    className: \"timetics-input\",\n    style: {\n      width: 150\n    },\n    onChange: handleInputChange,\n    options: [{\n      value: \"currentWeek\",\n      label: __(\"Current Week\", \"timetics\")\n    }, {\n      value: \"lastWeek\",\n      label: __(\"Last Week\", \"timetics\")\n    }, {\n      value: \"currentMonth\",\n      label: __(\"Current Month\", \"timetics\")\n    }, {\n      value: \"lastMonth\",\n      label: __(\"Last Month\", \"timetics\")\n    }, {\n      value: \"lastThreeMonth\",\n      label: __(\"Last 3 Month\", \"timetics\")\n    }]\n  }))), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-card-content tt-performance-result\"\n  }, /*#__PURE__*/React.createElement(Title, {\n    className: \"tt-overview-card-data\",\n    level: 3\n  }, description || 0))));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OverviewCard);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/overview/OverviewCard.js?");

/***/ }),

/***/ "./assets/src/admin/pages/overview/Performance.js":
/*!********************************************************!*\
  !*** ./assets/src/admin/pages/overview/Performance.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nvar React = window.React;\nvar _window$antd = window.antd,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col,\n  Card = _window$antd.Card,\n  Space = _window$antd.Space,\n  Avatar = _window$antd.Avatar,\n  Typography = _window$antd.Typography,\n  Select = _window$antd.Select;\nvar Meta = Card.Meta;\nvar Title = Typography.Title;\nvar __ = wp.i18n.__;\nvar Performance = function Performance(_ref) {\n  var data = _ref.data;\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-performance\"\n  }, /*#__PURE__*/React.createElement(Row, {\n    gutter: [30, 30]\n  }, data === null || data === void 0 ? void 0 : data.map(function (item, index) {\n    return /*#__PURE__*/React.createElement(Col, {\n      xs: 24,\n      md: 12,\n      xl: 6,\n      key: \"\".concat(index)\n    }, /*#__PURE__*/React.createElement(Card, {\n      bordered: false,\n      className: \"tt-overview-card\"\n    }, /*#__PURE__*/React.createElement(Meta, {\n      className: \"tt-performance-result\",\n      avatar: /*#__PURE__*/React.createElement(Avatar, {\n        src: item === null || item === void 0 ? void 0 : item.icon,\n        size: 70\n      }),\n      title: item === null || item === void 0 ? void 0 : item.title,\n      description: (item === null || item === void 0 ? void 0 : item.count) || \"0\"\n    })));\n  })));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Performance);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/overview/Performance.js?");

/***/ }),

/***/ "./assets/src/admin/pages/overview/Reports.js":
/*!****************************************************!*\
  !*** ./assets/src/admin/pages/overview/Reports.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _GroupedBarChart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GroupedBarChart */ \"./assets/src/admin/pages/overview/GroupedBarChart.js\");\n\nvar React = window.React;\nvar _window$antd = window.antd,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col,\n  Typography = _window$antd.Typography,\n  Select = _window$antd.Select;\nvar Title = Typography.Title;\nvar __ = wp.i18n.__;\nvar Reports = function Reports(_ref) {\n  var data = _ref.data,\n    onChange = _ref.onChange;\n  var reportChatData = data === null || data === void 0 ? void 0 : data.booking_reports;\n  var handleInputChange = function handleInputChange(value) {\n    onChange(value, \"booking_reports\");\n  };\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-reports\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-heading\"\n  }, /*#__PURE__*/React.createElement(Title, {\n    level: 4,\n    className: \"tt-overview-title\"\n  }, __(\"Reports\", \"timetics\")), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-fillter-report\"\n  }, /*#__PURE__*/React.createElement(Select, {\n    defaultValue: \"currentMonth\",\n    className: \"timetics-input\",\n    style: {\n      width: 150\n    },\n    onChange: handleInputChange,\n    options: [{\n      value: \"currentWeek\",\n      label: __(\"Current Week\", \"timetics\")\n    }, {\n      value: \"lastWeek\",\n      label: __(\"Last Week\", \"timetics\")\n    }, {\n      value: \"currentMonth\",\n      label: __(\"Current Month\", \"timetics\")\n    }, {\n      value: \"lastMonth\",\n      label: __(\"Last Month\", \"timetics\")\n    }, {\n      value: \"lastThreeMonth\",\n      label: __(\"Last 3 Month\", \"timetics\")\n    }]\n  }))), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-report-chart\"\n  }, /*#__PURE__*/React.createElement(_GroupedBarChart__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    chartData: reportChatData\n  })));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Reports);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/overview/Reports.js?");

/***/ }),

/***/ "./assets/src/admin/pages/overview/UpcommingBookings.js":
/*!**************************************************************!*\
  !*** ./assets/src/admin/pages/overview/UpcommingBookings.js ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _common_icons_Icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/icons/Icons */ \"./assets/src/common/icons/Icons.js\");\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router/dist/index.js\");\n\nvar React = window.React;\nvar _window$antd = window.antd,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col,\n  Typography = _window$antd.Typography,\n  Button = _window$antd.Button,\n  List = _window$antd.List,\n  Divider = _window$antd.Divider,\n  Skeleton = _window$antd.Skeleton;\nvar Title = Typography.Title;\n\nvar __ = wp.i18n.__;\nvar UpcommingBookings = function UpcommingBookings(_ref) {\n  var data = _ref.data,\n    loading = _ref.loading;\n  var navigate = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_1__.useNavigate)();\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-upcomming-bookings\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-heading\"\n  }, /*#__PURE__*/React.createElement(Title, {\n    level: 4,\n    className: \"tt-overview-title\"\n  }, __(\"Upcoming Bookings\", \"timetics\"))), /*#__PURE__*/React.createElement(Divider, {\n    style: {\n      marginBottom: \"5px\"\n    }\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-upcomming-booking-lists-area\"\n  }, /*#__PURE__*/React.createElement(List, {\n    className: \"tt-upcomming-booking-lists\",\n    itemLayout: \"horizontal\",\n    dataSource: data,\n    loading: loading,\n    renderItem: function renderItem(item) {\n      var _item$appointment;\n      return /*#__PURE__*/React.createElement(List.Item, null, /*#__PURE__*/React.createElement(Skeleton, {\n        loading: item.loading,\n        active: true\n      }, /*#__PURE__*/React.createElement(List.Item.Meta, {\n        title: /*#__PURE__*/React.createElement(Title, {\n          level: 5,\n          className: \"tt-upcomming-booking-name\"\n        }, item === null || item === void 0 ? void 0 : item.start_date),\n        description: /*#__PURE__*/React.createElement(\"div\", {\n          style: {\n            marginBottom: \"5px\"\n          }\n        }, /*#__PURE__*/React.createElement(\"p\", {\n          className: \"tt-margin-0\"\n        }, __(\"@ \"), \" \", item === null || item === void 0 ? void 0 : item.start_time, __(\" to \"), item === null || item === void 0 ? void 0 : item.end_time))\n      }), /*#__PURE__*/React.createElement(Title, {\n        level: 5,\n        className: \"tt-upcomming-booking-name\"\n      }, item === null || item === void 0 ? void 0 : (_item$appointment = item.appointment) === null || _item$appointment === void 0 ? void 0 : _item$appointment.name)));\n    }\n  }), data && (data === null || data === void 0 ? void 0 : data.length) > 4 && /*#__PURE__*/React.createElement(Button, {\n    block: true,\n    onClick: function onClick() {\n      navigate(\"/bookings\");\n    },\n    style: {\n      justifyContent: \"center\"\n    }\n  }, __(\"View All Bookings\"), /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_0__.ArrowRightIcon2, {\n    color: \"none\",\n    width: \"15\",\n    height: \"15\"\n  }))));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UpcommingBookings);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/overview/UpcommingBookings.js?");

/***/ }),

/***/ "./assets/src/admin/pages/overview/index.js":
/*!**************************************************!*\
  !*** ./assets/src/admin/pages/overview/index.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_MainPageHeader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../components/MainPageHeader */ \"./assets/src/admin/components/MainPageHeader.js\");\n/* harmony import */ var _OverviewBanner__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OverviewBanner */ \"./assets/src/admin/pages/overview/OverviewBanner.js\");\n/* harmony import */ var _Performance__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Performance */ \"./assets/src/admin/pages/overview/Performance.js\");\n/* harmony import */ var _services_overview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/overview */ \"./assets/src/admin/services/overview.js\");\n/* harmony import */ var _OverviewCard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./OverviewCard */ \"./assets/src/admin/pages/overview/OverviewCard.js\");\n/* harmony import */ var _Reports__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Reports */ \"./assets/src/admin/pages/overview/Reports.js\");\n/* harmony import */ var _UpcommingBookings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./UpcommingBookings */ \"./assets/src/admin/pages/overview/UpcommingBookings.js\");\n/* harmony import */ var _services_bookings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/bookings */ \"./assets/src/admin/services/bookings.js\");\n/* harmony import */ var _meeting_hook_useDateRange_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../meeting/hook/useDateRange.js */ \"./assets/src/admin/pages/meeting/hook/useDateRange.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_9__);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = \"function\" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || \"@@iterator\", asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\", toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, \"\"); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, \"_invoke\", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: \"normal\", arg: fn.call(obj, arg) }; } catch (err) { return { type: \"throw\", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { [\"next\", \"throw\", \"return\"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (\"throw\" !== record.type) { var result = record.arg, value = result.value; return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke(\"next\", value, resolve, reject); }, function (err) { invoke(\"throw\", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke(\"throw\", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, \"_invoke\", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = \"suspendedStart\"; return function (method, arg) { if (\"executing\" === state) throw new Error(\"Generator is already running\"); if (\"completed\" === state) { if (\"throw\" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) { if (\"suspendedStart\" === state) throw state = \"completed\", context.arg; context.dispatchException(context.arg); } else \"return\" === context.method && context.abrupt(\"return\", context.arg); state = \"executing\"; var record = tryCatch(innerFn, self, context); if (\"normal\" === record.type) { if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, \"throw\" === context.method) { if (delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method)) return ContinueSentinel; context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a 'throw' method\"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = \"normal\", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: \"root\" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if (\"function\" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) { var ctor = \"function\" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, \"toString\", function () { return \"[object Generator]\"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if (\"throw\" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if (\"root\" === entry.tryLoc) return handle(\"end\"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, \"catchLoc\"), hasFinally = hasOwn.call(entry, \"finallyLoc\"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error(\"try statement without catch or finally\"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if (\"throw\" === record.type) throw record.arg; return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, \"catch\": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (\"throw\" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar React = window.React;\nvar _window$antd = window.antd,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col;\n\n\n\nvar useState = React.useState,\n  useEffect = React.useEffect;\n\n\n\n\n\n\n\nvar __ = wp.i18n.__;\nvar doAction = wp.hooks.doAction;\nvar Overview = function Overview() {\n  var _useState = useState(),\n    _useState2 = _slicedToArray(_useState, 2),\n    overviewPerformanceData = _useState2[0],\n    setOverviewPerformanceData = _useState2[1];\n  var _useState3 = useState([]),\n    _useState4 = _slicedToArray(_useState3, 2),\n    allBookingsData = _useState4[0],\n    setAllBookingsData = _useState4[1];\n  var _useState5 = useState([]),\n    _useState6 = _slicedToArray(_useState5, 2),\n    selectedValues = _useState6[0],\n    setSelectedValues = _useState6[1];\n  var _useState7 = useState(false),\n    _useState8 = _slicedToArray(_useState7, 2),\n    loading = _useState8[0],\n    setLoading = _useState8[1];\n  var today = dayjs__WEBPACK_IMPORTED_MODULE_9___default()();\n  var dateRanges = (0,_meeting_hook_useDateRange_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"])();\n  var currentWeek = dateRanges.currentWeek,\n    lastWeek = dateRanges.lastWeek,\n    currentMonth = dateRanges.currentMonth,\n    lastMonth = dateRanges.lastMonth,\n    lastThreeMonths = dateRanges.lastThreeMonths;\n  var _useState9 = useState([{\n      report: \"total_booking\",\n      start_date: today.startOf(\"month\").format(\"YYYY-MM-DD\"),\n      end_date: today.endOf(\"month\").format(\"YYYY-MM-DD\")\n    }, {\n      report: \"total_earning\",\n      start_date: today.startOf(\"month\").format(\"YYYY-MM-DD\"),\n      end_date: today.endOf(\"month\").format(\"YYYY-MM-DD\")\n    }, {\n      report: \"total_customer\",\n      start_date: today.startOf(\"month\").format(\"YYYY-MM-DD\"),\n      end_date: today.endOf(\"month\").format(\"YYYY-MM-DD\")\n    }, {\n      report: \"booking_reports\",\n      start_date: today.startOf(\"month\").format(\"YYYY-MM-DD\"),\n      end_date: today.endOf(\"month\").format(\"YYYY-MM-DD\")\n    }]),\n    _useState10 = _slicedToArray(_useState9, 2),\n    reportDataArray = _useState10[0],\n    setReportDataArray = _useState10[1];\n  useEffect(function () {\n    var loadData = /*#__PURE__*/function () {\n      var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n        var _res$data, _response$data, _response$data$data;\n        var res, data, response;\n        return _regeneratorRuntime().wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                setLoading(true);\n                _context.next = 3;\n                return (0,_services_overview__WEBPACK_IMPORTED_MODULE_3__.getOverviewData)({\n                  method: \"POST\",\n                  data: reportDataArray\n                });\n              case 3:\n                res = _context.sent;\n                data = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.data;\n                setOverviewPerformanceData(data);\n                _context.next = 8;\n                return (0,_services_bookings__WEBPACK_IMPORTED_MODULE_7__.getAllBooking)({\n                  method: \"GET\",\n                  params: {\n                    start_date: today.format(\"YYYY-MM-DD\"),\n                    per_page: 5\n                  }\n                });\n              case 8:\n                response = _context.sent;\n                setAllBookingsData(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$data = _response$data.data) === null || _response$data$data === void 0 ? void 0 : _response$data$data.items);\n                setLoading(false);\n              case 11:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee);\n      }));\n      return function loadData() {\n        return _ref.apply(this, arguments);\n      };\n    }();\n    loadData();\n  }, []);\n  var featchReportData = /*#__PURE__*/function () {\n    var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(reports) {\n      var _res$data2;\n      var res, data;\n      return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n        while (1) {\n          switch (_context2.prev = _context2.next) {\n            case 0:\n              _context2.next = 2;\n              return (0,_services_overview__WEBPACK_IMPORTED_MODULE_3__.getOverviewData)({\n                method: \"POST\",\n                data: reports\n              });\n            case 2:\n              res = _context2.sent;\n              data = res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.data;\n              setOverviewPerformanceData(data);\n            case 5:\n            case \"end\":\n              return _context2.stop();\n          }\n        }\n      }, _callee2);\n    }));\n    return function featchReportData(_x) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n\n  // on handle overview data change function\n  var handleCardChange = function handleCardChange(index, selectedValue, report) {\n    setSelectedValues(function (prevState) {\n      var updatedValues = _toConsumableArray(prevState);\n      updatedValues[index] = selectedValue;\n      return updatedValues;\n    });\n    if (selectedValue == \"currentWeek\") {\n      var newObj = {\n        report: report,\n        start_date: currentWeek === null || currentWeek === void 0 ? void 0 : currentWeek.startDate,\n        end_date: currentWeek === null || currentWeek === void 0 ? void 0 : currentWeek.endDate\n      };\n      var updatedArray = reportDataArray.map(function (obj) {\n        if (obj.report === newObj.report) {\n          return newObj;\n        } else {\n          return obj;\n        }\n      });\n      setReportDataArray(updatedArray);\n      featchReportData(updatedArray);\n    }\n    if (selectedValue == \"lastWeek\") {\n      var _newObj = {\n        report: report,\n        start_date: lastWeek === null || lastWeek === void 0 ? void 0 : lastWeek.startDate,\n        end_date: lastWeek === null || lastWeek === void 0 ? void 0 : lastWeek.endDate\n      };\n      var _updatedArray = reportDataArray.map(function (obj) {\n        if (obj.report === _newObj.report) {\n          return _newObj;\n        } else {\n          return obj;\n        }\n      });\n      setReportDataArray(_updatedArray);\n      featchReportData(_updatedArray);\n    }\n    if (selectedValue == \"currentMonth\") {\n      var _newObj2 = {\n        report: report,\n        start_date: currentMonth === null || currentMonth === void 0 ? void 0 : currentMonth.startDate,\n        end_date: currentMonth === null || currentMonth === void 0 ? void 0 : currentMonth.endDate\n      };\n      var _updatedArray2 = reportDataArray.map(function (obj) {\n        if (obj.report === _newObj2.report) {\n          return _newObj2;\n        } else {\n          return obj;\n        }\n      });\n      setReportDataArray(_updatedArray2);\n      featchReportData(_updatedArray2);\n    }\n    if (selectedValue == \"lastMonth\") {\n      var _newObj3 = {\n        report: report,\n        start_date: lastMonth === null || lastMonth === void 0 ? void 0 : lastMonth.startDate,\n        end_date: lastMonth === null || lastMonth === void 0 ? void 0 : lastMonth.endDate\n      };\n      var _updatedArray3 = reportDataArray.map(function (obj) {\n        if (obj.report === _newObj3.report) {\n          return _newObj3;\n        } else {\n          return obj;\n        }\n      });\n      setReportDataArray(_updatedArray3);\n      featchReportData(_updatedArray3);\n    }\n    if (selectedValue == \"lastThreeMonth\") {\n      var _newObj4 = {\n        report: report,\n        start_date: lastThreeMonths === null || lastThreeMonths === void 0 ? void 0 : lastThreeMonths.startDate,\n        end_date: lastThreeMonths === null || lastThreeMonths === void 0 ? void 0 : lastThreeMonths.endDate\n      };\n      var _updatedArray4 = reportDataArray.map(function (obj) {\n        if (obj.report === _newObj4.report) {\n          return _newObj4;\n        } else {\n          return obj;\n        }\n      });\n      setReportDataArray(_updatedArray4);\n      featchReportData(_updatedArray4);\n    }\n  };\n  var cardsData = [{\n    title: __(\"Total bookings\", \"timetics\"),\n    description: overviewPerformanceData === null || overviewPerformanceData === void 0 ? void 0 : overviewPerformanceData.total_booking,\n    report: \"total_booking\"\n  }, {\n    title: __(\"Total revenue\", \"timetics\"),\n    description: overviewPerformanceData === null || overviewPerformanceData === void 0 ? void 0 : overviewPerformanceData.total_earning,\n    report: \"total_earning\"\n  }, {\n    title: __(\"Total customers\", \"timetics\"),\n    description: overviewPerformanceData === null || overviewPerformanceData === void 0 ? void 0 : overviewPerformanceData.total_customer,\n    report: \"total_customer\"\n  }];\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-wrapper\"\n  }, /*#__PURE__*/React.createElement(_components_MainPageHeader__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    title: __(\"Overview\", \"timetics\")\n  }), doAction(\"test\", \"timetics\"), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-overview-content-area\"\n  }, /*#__PURE__*/React.createElement(_OverviewBanner__WEBPACK_IMPORTED_MODULE_1__[\"default\"], null), /*#__PURE__*/React.createElement(Row, {\n    gutter: [20, 20],\n    className: \"tt-mb-20\"\n  }, cardsData.map(function (card, index) {\n    return /*#__PURE__*/React.createElement(Col, {\n      xs: 24,\n      md: 12,\n      xl: 8\n    }, /*#__PURE__*/React.createElement(_OverviewCard__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n      key: index,\n      title: card.title,\n      description: card.description,\n      report: card === null || card === void 0 ? void 0 : card.report,\n      onChange: function onChange(selectedValue) {\n        return handleCardChange(index, selectedValue, card === null || card === void 0 ? void 0 : card.report);\n      }\n    }));\n  })), /*#__PURE__*/React.createElement(Row, {\n    gutter: [20, 20]\n  }, /*#__PURE__*/React.createElement(Col, {\n    xs: 24,\n    md: 24,\n    xl: 12,\n    xxl: 12\n  }, /*#__PURE__*/React.createElement(_Reports__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n    data: overviewPerformanceData,\n    onChange: function onChange(value, report) {\n      return handleCardChange(0, value, report);\n    }\n  })), /*#__PURE__*/React.createElement(Col, {\n    xs: 24,\n    md: 24,\n    xl: 12,\n    xxl: 12\n  }, /*#__PURE__*/React.createElement(_UpcommingBookings__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n    loading: loading,\n    data: allBookingsData\n  })))));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Overview);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/overview/index.js?");

/***/ }),

/***/ "./assets/src/admin/services/overview.js":
/*!***********************************************!*\
  !*** ./assets/src/admin/services/overview.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"getOverviewData\": () => (/* binding */ getOverviewData)\n/* harmony export */ });\n/* harmony import */ var _axios_requestConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../axios/requestConfig */ \"./assets/src/axios/requestConfig.js\");\n/* harmony import */ var _apiEndPoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apiEndPoints */ \"./assets/src/admin/services/apiEndPoints.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = \"function\" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || \"@@iterator\", asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\", toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, \"\"); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, \"_invoke\", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: \"normal\", arg: fn.call(obj, arg) }; } catch (err) { return { type: \"throw\", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { [\"next\", \"throw\", \"return\"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (\"throw\" !== record.type) { var result = record.arg, value = result.value; return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke(\"next\", value, resolve, reject); }, function (err) { invoke(\"throw\", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke(\"throw\", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, \"_invoke\", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = \"suspendedStart\"; return function (method, arg) { if (\"executing\" === state) throw new Error(\"Generator is already running\"); if (\"completed\" === state) { if (\"throw\" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) { if (\"suspendedStart\" === state) throw state = \"completed\", context.arg; context.dispatchException(context.arg); } else \"return\" === context.method && context.abrupt(\"return\", context.arg); state = \"executing\"; var record = tryCatch(innerFn, self, context); if (\"normal\" === record.type) { if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, \"throw\" === context.method) { if (delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method)) return ContinueSentinel; context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a 'throw' method\"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = \"normal\", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: \"root\" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if (\"function\" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) { var ctor = \"function\" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, \"toString\", function () { return \"[object Generator]\"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if (\"throw\" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if (\"root\" === entry.tryLoc) return handle(\"end\"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, \"catchLoc\"), hasFinally = hasOwn.call(entry, \"finallyLoc\"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error(\"try statement without catch or finally\"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if (\"throw\" === record.type) throw record.arg; return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, \"catch\": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (\"throw\" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\nvar getOverviewData = /*#__PURE__*/function () {\n  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(config) {\n    return _regeneratorRuntime().wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            return _context.abrupt(\"return\", (0,_axios_requestConfig__WEBPACK_IMPORTED_MODULE_0__.request)(_apiEndPoints__WEBPACK_IMPORTED_MODULE_1__.apiEndpoint.overview.overview, config));\n          case 1:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee);\n  }));\n  return function getOverviewData(_x) {\n    return _ref.apply(this, arguments);\n  };\n}();\n\n\n//# sourceURL=webpack://timetics/./assets/src/admin/services/overview.js?");

/***/ }),

/***/ "./assets/images/banner_bg.png":
/*!*************************************!*\
  !*** ./assets/images/banner_bg.png ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + \"assets/images/banner_bg.png\");\n\n//# sourceURL=webpack://timetics/./assets/images/banner_bg.png?");

/***/ }),

/***/ "./assets/images/logo.png":
/*!********************************!*\
  !*** ./assets/images/logo.png ***!
  \********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + \"assets/images/logo.png\");\n\n//# sourceURL=webpack://timetics/./assets/images/logo.png?");

/***/ })

}]);