"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_settings_index_js"],{

/***/ "./assets/src/admin/components/notification/EmailCustomizeModal.js":
/*!*************************************************************************!*\
  !*** ./assets/src/admin/components/notification/EmailCustomizeModal.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 react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react_quill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-quill */ \"./node_modules/react-quill/lib/index.js\");\n/* harmony import */ var react_quill__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_quill__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_quill_dist_quill_snow_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-quill/dist/quill.snow.css */ \"./node_modules/react-quill/dist/quill.snow.css\");\n/* harmony import */ var _common_icons_Icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/icons/Icons */ \"./assets/src/common/icons/Icons.js\");\n/* harmony import */ var _common_SelectInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/SelectInput */ \"./assets/src/common/SelectInput.js\");\n/* harmony import */ var _common_TextInput__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/TextInput */ \"./assets/src/common/TextInput.js\");\n/* harmony import */ var _actionCreators_actions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../actionCreators/actions */ \"./assets/src/admin/actionCreators/actions.js\");\n/* harmony import */ var _actionCreators_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../actionCreators/common */ \"./assets/src/admin/actionCreators/common.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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 useState = window.React.useState;\nvar _window$antd = window.antd,\n  Modal = _window$antd.Modal,\n  Form = _window$antd.Form,\n  Input = _window$antd.Input,\n  Button = _window$antd.Button,\n  Space = _window$antd.Space,\n  Row = _window$antd.Row,\n  Typography = _window$antd.Typography;\nvar Title = Typography.Title;\nvar __ = wp.i18n.__;\n\n\n\n\n\n\n\n\n\n\nfunction EmailCustomizeModal(_ref) {\n  var open = _ref.open,\n    dispatch = _ref.dispatch,\n    title = _ref.title;\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_8__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 1),\n    _useStateValue2$ = _useStateValue2[0],\n    meetingReducer = _useStateValue2$.meeting,\n    settingsReducer = _useStateValue2$.settings;\n  var _Form$useForm = Form.useForm(),\n    _Form$useForm2 = _slicedToArray(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n  var reactQuillRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();\n  var _useState = useState(\"\"),\n    _useState2 = _slicedToArray(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  var notificationDataPrefix = settingsReducer.notificationDataPrefix,\n    settings = settingsReducer.settings;\n  var onSaveEmailData = /*#__PURE__*/function () {\n    var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {\n      var res;\n      return _regeneratorRuntime().wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_9__.generalSettings)({\n                method: \"PUT\",\n                data: _objectSpread({}, values)\n              });\n            case 2:\n              res = _context.sent;\n              dispatch({\n                type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_6__.actions.SET_EMAIL_CUSTOMIZE_DATA,\n                payload: {\n                  customizeEmail: false\n                }\n              });\n            case 4:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function onSaveEmailData(_x) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n  var onReset = function onReset() {\n    form.resetFields();\n    dispatch({\n      type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_6__.actions.SET_EMAIL_CUSTOMIZE_DATA,\n      payload: {\n        customizeEmail: false\n      }\n    });\n  };\n  var handleEmailPlaceholder = function handleEmailPlaceholder(_ref3) {\n    var _reactQuillRef$curren2;\n    var target = _ref3.target;\n    var editor = reactQuillRef.current.getEditor();\n    var _reactQuillRef$curren = reactQuillRef === null || reactQuillRef === void 0 ? void 0 : (_reactQuillRef$curren2 = reactQuillRef.current) === null || _reactQuillRef$curren2 === void 0 ? void 0 : _reactQuillRef$curren2.unprivilegedEditor.getSelection(true),\n      placeholderInsertIndex = _reactQuillRef$curren.index;\n    editor === null || editor === void 0 ? void 0 : editor.insertText(placeholderInsertIndex, target.value);\n  };\n  return /*#__PURE__*/React.createElement(Modal, {\n    className: \"tt-booking-modal\",\n    centered: true,\n    style: {\n      top: 40\n    },\n    open: open,\n    onOk: function onOk() {\n      return dispatch({\n        type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_6__.actions.SET_EMAIL_CUSTOMIZE_DATA,\n        payload: {\n          customizeEmail: false\n        }\n      });\n    },\n    onCancel: function onCancel() {\n      return dispatch({\n        type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_6__.actions.SET_EMAIL_CUSTOMIZE_DATA,\n        payload: {\n          customizeEmail: false\n        }\n      });\n    },\n    width: 670,\n    okText: \"Save\",\n    cancelText: \"Cancel\",\n    closeIcon: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_3__.CloseFillIcon, null),\n    footer: null\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-booking-modal-wrapper\"\n  }, /*#__PURE__*/React.createElement(Title, {\n    level: 3,\n    className: \"tt-mt-0 tt-mb-15\"\n  }, __(title, \"timetics\")), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\"\n  }, /*#__PURE__*/React.createElement(Form, {\n    layout: \"vertical\",\n    form: form,\n    onFinish: onSaveEmailData,\n    initialValues: settings\n  }, /*#__PURE__*/React.createElement(_common_TextInput__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n    label: __(\"FROM\", \"timetics\"),\n    name: \"\".concat(notificationDataPrefix, \"email_from\"),\n    required: true,\n    rules: [{\n      required: true,\n      type: \"email\",\n      message: __(\"Please enter valid E-mail\", \"timetics\")\n    }],\n    type: \"email\",\n    size: \"small\",\n    placeholder: __(\"Select email\", \"timetics\")\n  }), /*#__PURE__*/React.createElement(_common_TextInput__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n    label: __(\"EMAIL SUBJECT\", \"timetics\"),\n    name: \"\".concat(notificationDataPrefix, \"email_title\"),\n    required: true,\n    rules: [{\n      required: true,\n      message: __(\"Please enter E-mail subject!\", \"timetics\")\n    }],\n    type: \"text\",\n    size: \"small\",\n    placeholder: __(\"Your meeting with {Meeting_title}\", \"timetics\")\n  }), /*#__PURE__*/React.createElement(Form.Item, {\n    className: \"timetics-input\",\n    label: __(\"EMAIL BODY\"),\n    labelCol: 24,\n    wrapperCol: 24,\n    name: \"\".concat(notificationDataPrefix, \"email_body\")\n  }, /*#__PURE__*/React.createElement((react_quill__WEBPACK_IMPORTED_MODULE_1___default()), {\n    theme: \"snow\",\n    value: value,\n    className: \"tt-mb-20\",\n    onChange: setValue,\n    modules: modules,\n    ref: reactQuillRef\n  })), /*#__PURE__*/React.createElement(Space, {\n    wrap: true\n  }, emailPreset === null || emailPreset === void 0 ? void 0 : emailPreset.map(function (item, ind) {\n    return /*#__PURE__*/React.createElement(Input, {\n      readOnly: true,\n      key: ind,\n      value: item,\n      onClick: handleEmailPlaceholder\n    });\n  })), /*#__PURE__*/React.createElement(Row, {\n    justify: \"end\"\n  }, /*#__PURE__*/React.createElement(Form.Item, {\n    className: \"tt-mb-0\"\n  }, /*#__PURE__*/React.createElement(Space, {\n    className: \"tt-mt-10\"\n  }, /*#__PURE__*/React.createElement(Button, {\n    type: \"default\",\n    htmlType: \"button\",\n    onClick: onReset\n  }, __(\"Cancel\")), /*#__PURE__*/React.createElement(Button, {\n    type: \"primary\",\n    htmlType: \"submit\"\n  }, __(\"Save\", \"timetics\")))))))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EmailCustomizeModal);\n\n// uses for ReactQuill editor\nvar modules = {\n  toolbar: [[{\n    header: [1, 2, false]\n  }, {\n    font: []\n  }], [\"bold\", \"italic\", \"underline\", \"strike\", \"blockquote\"], [{\n    list: \"ordered\"\n  }, {\n    list: \"bullet\"\n  }, {\n    indent: \"-1\"\n  }, {\n    indent: \"+1\"\n  }], [\"link\", \"image\"], [\"clean\"]]\n};\nvar emailPreset = [\"{%meeting_title%}\", \"{%meeting_date%}\", \"{%meeting_time%}\", \"{%meeting_location%}\", \"{%meeting_duration%}\", \"{%host_name%}\", \"{%host_email%}\", \"{%customer_name%}\", \"{%customer_email%}\"];\n\n//# sourceURL=webpack://timetics/./assets/src/admin/components/notification/EmailCustomizeModal.js?");

/***/ }),

/***/ "./assets/src/admin/components/notification/NotificationOption.js":
/*!************************************************************************!*\
  !*** ./assets/src/admin/components/notification/NotificationOption.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 _actionCreators_actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../actionCreators/actions */ \"./assets/src/admin/actionCreators/actions.js\");\n/* harmony import */ var _actionCreators_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../actionCreators/common */ \"./assets/src/admin/actionCreators/common.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.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 _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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; }\n\n\n\nvar _window$antd = window.antd,\n  Collapse = _window$antd.Collapse,\n  Space = _window$antd.Space,\n  Switch = _window$antd.Switch,\n  Button = _window$antd.Button,\n  Divider = _window$antd.Divider,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col,\n  Typography = _window$antd.Typography;\nvar Title = Typography.Title;\nvar Panel = Collapse.Panel;\nvar __ = wp.i18n.__;\n\nfunction NotificationOption(_ref) {\n  var i = _ref.i,\n    activeKey = _ref.activeKey,\n    setActiveKey = _ref.setActiveKey,\n    panelTitle = _ref.panelTitle,\n    customerModalTitle = _ref.customerModalTitle,\n    customerActionDescription = _ref.customerActionDescription,\n    hostModalTitle = _ref.hostModalTitle,\n    hostActionDescription = _ref.hostActionDescription,\n    customerNotification = _ref.customerNotification,\n    hostNotification = _ref.hostNotification,\n    children = _ref.children,\n    notificationToCustomer = _ref.notificationToCustomer,\n    notificationToHost = _ref.notificationToHost,\n    emailDataPrefix = _ref.emailDataPrefix;\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_2__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    _useStateValue2$ = _useStateValue2[0],\n    meetingReducer = _useStateValue2$.meeting,\n    settingsReducer = _useStateValue2$.settings,\n    dispatch = _useStateValue2[1];\n  var meeting = meetingReducer.meeting;\n  var settings = settingsReducer.settings;\n  var onNotificationStatusChange = /*#__PURE__*/function () {\n    var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(checked, notificationStatusKey) {\n      var _res$data;\n      var res;\n      return _regeneratorRuntime().wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_3__.generalSettings)({\n                method: \"PUT\",\n                data: _defineProperty({}, notificationStatusKey, checked)\n              });\n            case 2:\n              res = _context.sent;\n              dispatch({\n                type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_0__.actions.SET_SETTINGS,\n                payload: res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.data\n              });\n            case 4:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function onNotificationStatusChange(_x, _x2) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n  return /*#__PURE__*/React.createElement(Space, {\n    direction: \"vertical\",\n    size: \"middle\",\n    style: {\n      display: \"flex\"\n    },\n    className: \"tt-mb-20\"\n  }, /*#__PURE__*/React.createElement(Collapse, {\n    accordion: true,\n    expandIconPosition: \"end\",\n    activeKey: activeKey,\n    onChange: function onChange(e) {\n      setActiveKey(e);\n    }\n  }, /*#__PURE__*/React.createElement(Panel, {\n    className: \"tt-notification-content\",\n    header: panelTitle,\n    key: i\n  }, children ? children : null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {\n    span: 18\n  }, /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(Title, {\n    level: 5,\n    className: \"tt-margin-0\"\n  }, __(\" Notification to Customers/Attendees/Clients\", \"timetics\")), /*#__PURE__*/React.createElement(\"p\", {\n    className: \"tt-margin-0\"\n  }, customerActionDescription))), /*#__PURE__*/React.createElement(Col, {\n    span: 6\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-text-right\"\n  }, /*#__PURE__*/React.createElement(Switch, {\n    checked: !!settings[notificationToCustomer],\n    onChange: function onChange(checked) {\n      onNotificationStatusChange(checked, notificationToCustomer);\n    }\n  }), /*#__PURE__*/React.createElement(Button, {\n    type: \"link\",\n    className: \"tt-link-btn tt-mt-10\",\n    onClick: function onClick(e) {\n      dispatch({\n        type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_0__.actions.SET_EMAIL_CUSTOMIZE_DATA,\n        payload: {\n          customizeEmail: true,\n          modalTitle: customerModalTitle,\n          notificationDataPrefix: \"\".concat(emailDataPrefix, \"customer_\")\n        }\n      });\n    }\n  }, __(\"Configure Email\", \"timetics\"))))), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {\n    span: 18\n  }, /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(Title, {\n    level: 5,\n    className: \"tt-margin-0\"\n  }, __(\"Notification to Host\", \"timetics\")), /*#__PURE__*/React.createElement(\"p\", {\n    className: \"tt-margin-0\"\n  }, hostActionDescription))), /*#__PURE__*/React.createElement(Col, {\n    span: 6\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-text-right\"\n  }, /*#__PURE__*/React.createElement(Switch, {\n    checked: !!settings[notificationToHost],\n    onChange: function onChange(checked) {\n      onNotificationStatusChange(checked, notificationToHost);\n    }\n  }), /*#__PURE__*/React.createElement(Button, {\n    type: \"link\",\n    className: \"tt-link-btn tt-mt-10\",\n    onClick: function onClick(e) {\n      dispatch({\n        type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_0__.actions.SET_EMAIL_CUSTOMIZE_DATA,\n        payload: {\n          customizeEmail: true,\n          modalTitle: hostModalTitle,\n          notificationDataPrefix: \"\".concat(emailDataPrefix, \"host_\")\n        }\n      });\n    }\n  }, __(\"Configure Email\", \"timetics\"))))))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotificationOption);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/components/notification/NotificationOption.js?");

/***/ }),

/***/ "./assets/src/admin/components/notification/ReminderTime.js":
/*!******************************************************************!*\
  !*** ./assets/src/admin/components/notification/ReminderTime.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_SelectInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/SelectInput */ \"./assets/src/common/SelectInput.js\");\n/* harmony import */ var _common_TextInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/TextInput */ \"./assets/src/common/TextInput.js\");\n/* harmony import */ var _actionCreators_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../actionCreators/common */ \"./assets/src/admin/actionCreators/common.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _common_icons_Icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/icons/Icons */ \"./assets/src/common/icons/Icons.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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; }\n\n\n\n\nvar __ = wp.i18n.__;\nvar _window$antd = window.antd,\n  Col = _window$antd.Col,\n  Row = _window$antd.Row,\n  Typography = _window$antd.Typography,\n  Form = _window$antd.Form,\n  Space = _window$antd.Space,\n  Button = _window$antd.Button,\n  Divider = _window$antd.Divider;\nvar Title = Typography.Title;\nvar _window$React = window.React,\n  useState = _window$React.useState,\n  useEffect = _window$React.useEffect;\n\n\nfunction ReminderTime() {\n  var _Form$useForm = Form.useForm(),\n    _Form$useForm2 = _slicedToArray(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_3__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 1),\n    settingsReducer = _useStateValue2[0].settings;\n  var settings = settingsReducer.settings;\n  /**\n   * On finish method that can handle staff create\n   * @param {Object} values\n   */\n  var onFinish = /*#__PURE__*/function () {\n    var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {\n      var res;\n      return _regeneratorRuntime().wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_5__.generalSettings)({\n                method: \"PUT\",\n                data: _objectSpread({}, values)\n              });\n            case 2:\n              res = _context.sent;\n            case 3:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function onFinish(_x) {\n      return _ref.apply(this, arguments);\n    };\n  }();\n\n  /**\n   * On finish faild method that can handle staff create faild\n   * @param {Object} values\n   */\n  var onFinishFailed = function onFinishFailed(errorInfo) {\n    message.error(errorInfo);\n  };\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {\n    span: 24\n  }, /*#__PURE__*/React.createElement(Title, {\n    level: 5,\n    className: \"tt-mb-10\"\n  }, __(\"Send a Reminder Email Before\", \"timetics\"))), /*#__PURE__*/React.createElement(Col, {\n    span: 24\n  }, /*#__PURE__*/React.createElement(Form, {\n    name: \"duration_form\",\n    layout: \"vertical\",\n    autoComplete: \"off\",\n    onFinish: onFinish,\n    form: form,\n    onFinishFailed: onFinishFailed,\n    initialValues: _objectSpread(_objectSpread({}, settings), {}, {\n      remainder_time: settings !== null && settings !== void 0 && settings.remainder_time ? settings === null || settings === void 0 ? void 0 : settings.remainder_time : [{\n        \"duration-time\": 15,\n        custom_duration_type: \"min\"\n      }]\n    })\n  }, /*#__PURE__*/React.createElement(Form.List, {\n    name: \"remainder_time\"\n  }, function (fields, _ref2) {\n    var add = _ref2.add,\n      remove = _ref2.remove;\n    return /*#__PURE__*/React.createElement(\"div\", null, fields.map(function (field, index) {\n      return /*#__PURE__*/React.createElement(Space, {\n        key: \"duration-time-\".concat(index)\n      }, /*#__PURE__*/React.createElement(_common_TextInput__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        key: \"duration-time_\".concat(index),\n        name: [index, \"duration-time\"],\n        type: \"number\",\n        size: \"small\",\n        min: 1,\n        label: __(\"Set custom time\", \"timetics\")\n      }), /*#__PURE__*/React.createElement(_common_SelectInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n        label: __(\"Day/Hour/Minute\", \"timetics\"),\n        name: [index, \"custom_duration_type\"],\n        key: \"custom_duration_type\",\n        data: reminderTime\n      }), fields.length > 1 ? /*#__PURE__*/React.createElement(Button, {\n        className: \"dynamic-delete-button\",\n        type: \"link\",\n        onClick: function onClick() {\n          return remove(field.name);\n        },\n        icon: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_4__.CloseFillIcon, null)\n      }) : null);\n    }), /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {\n      onClick: function onClick() {\n        return add();\n      }\n    }, __(\"add\", \"timetics\")), /*#__PURE__*/React.createElement(Button, {\n      type: \"primary\",\n      htmlType: \"submit\"\n    }, __(\"Save\")))));\n  })))), /*#__PURE__*/React.createElement(Divider, {\n    orientation: \"left\",\n    plain: true\n  }));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReminderTime);\nvar reminderTime = [{\n  id: 1,\n  label: \"day(s) before\",\n  value: \"day\"\n}, {\n  id: 2,\n  label: \"hour(s) before\",\n  value: \"hour\"\n}, {\n  id: 3,\n  label: \"min(s) before\",\n  value: \"min\"\n}];\n\n//# sourceURL=webpack://timetics/./assets/src/admin/components/notification/ReminderTime.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/Availability.js":
/*!*********************************************************!*\
  !*** ./assets/src/admin/pages/settings/Availability.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 _helper_availabilityModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helper/availabilityModel */ \"./assets/src/helper/availabilityModel.js\");\n/* harmony import */ var _components_TooltipText__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/TooltipText */ \"./assets/src/admin/components/TooltipText.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.js\");\n/* harmony import */ var _BlockedDays__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BlockedDays */ \"./assets/src/admin/pages/settings/BlockedDays.js\");\n/* harmony import */ var _WeeklyHours__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WeeklyHours */ \"./assets/src/admin/pages/settings/WeeklyHours.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); }); }; }\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; }\n\n\n\n\n\n\nvar React = window.React;\nvar useState = React.useState,\n  useMemo = React.useMemo;\nvar _window$antd = window.antd,\n  Button = _window$antd.Button,\n  Tabs = _window$antd.Tabs,\n  Tooltip = _window$antd.Tooltip;\nvar __ = wp.i18n.__;\nfunction Availability() {\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_2__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    _useStateValue2$ = _useStateValue2[0],\n    settingsReducer = _useStateValue2$.settings,\n    meetingReducer = _useStateValue2$.meeting,\n    dispatch = _useStateValue2[1];\n  var timeCompareError = meetingReducer.timeCompareError;\n  var settings = settingsReducer.settings;\n  var schedules = settings.availability,\n    blocked_days = settings.blocked_days;\n  var _useState = useState(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    loading = _useState2[0],\n    setLoading = _useState2[1];\n  var tabsData = useMemo(function () {\n    return [{\n      label: __(\"Weekly Hours\", \"timetics\"),\n      key: \"weekly\",\n      children: /*#__PURE__*/React.createElement(_WeeklyHours__WEBPACK_IMPORTED_MODULE_5__[\"default\"], null)\n    }, {\n      label: __(\"Blocked Dates\", \"timetics\"),\n      key: \"blocked\",\n      children: /*#__PURE__*/React.createElement(_BlockedDays__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        weeklySchedules: schedules[\"staff\"]\n      })\n    }];\n  }, []);\n  var saveAvailability = /*#__PURE__*/function () {\n    var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n      var convertedSchedule, res;\n      return _regeneratorRuntime().wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              if (!(timeCompareError !== null && timeCompareError !== void 0 && timeCompareError.hasError)) {\n                _context.next = 2;\n                break;\n              }\n              return _context.abrupt(\"return\");\n            case 2:\n              convertedSchedule = (0,_helper_availabilityModel__WEBPACK_IMPORTED_MODULE_0__.convertSchedulesForApi)(schedules[\"staff\"]);\n              setLoading(true);\n              _context.next = 6;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_3__.generalSettings)({\n                method: \"PUT\",\n                data: {\n                  availability: convertedSchedule,\n                  blocked_days: blocked_days\n                }\n              });\n            case 6:\n              res = _context.sent;\n              setLoading(false);\n            case 8:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function saveAvailability() {\n      return _ref.apply(this, arguments);\n    };\n  }();\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-schedules-container\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-form-container timetics-input\"\n  }, /*#__PURE__*/React.createElement(Tabs, {\n    defaultActiveKey: \"general\",\n    size: \"large\",\n    className: \"tt-settings-wrapper\",\n    items: tabsData,\n    tabPosition: \"top\"\n  }))), /*#__PURE__*/React.createElement(Button, {\n    type: \"primary\",\n    htmlType: \"button\",\n    size: \"large\",\n    loading: loading,\n    onClick: function onClick(e) {\n      saveAvailability();\n    },\n    disabled: !!(timeCompareError !== null && timeCompareError !== void 0 && timeCompareError.hasError)\n  }, __(\"Save change\", \"timetics\")));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Availability);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/Availability.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/BlockedDays.js":
/*!********************************************************!*\
  !*** ./assets/src/admin/pages/settings/BlockedDays.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\": () => (/* binding */ BlockedDays)\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__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _CalendarInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CalendarInput */ \"./assets/src/admin/pages/settings/CalendarInput.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _common_icons_Icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/icons/Icons */ \"./assets/src/common/icons/Icons.js\");\n/* harmony import */ var _actionCreators_actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../actionCreators/actions */ \"./assets/src/admin/actionCreators/actions.js\");\n/* harmony import */ var _components_NoticeProFeature__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/NoticeProFeature */ \"./assets/src/admin/components/NoticeProFeature.js\");\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 _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 useState = window.React.useState;\nvar _window$antd = window.antd,\n  Button = _window$antd.Button,\n  Modal = _window$antd.Modal,\n  List = _window$antd.List;\n\nvar __ = wp.i18n.__;\n\n\n\n\n\n\nfunction BlockedDays(_ref) {\n  var _window, _window$timetics;\n  var weeklySchedules = _ref.weeklySchedules;\n  var _useState = useState(null),\n    _useState2 = _slicedToArray(_useState, 2),\n    selectedDate = _useState2[0],\n    setSelectedDate = _useState2[1];\n  var _useState3 = useState(null),\n    _useState4 = _slicedToArray(_useState3, 2),\n    schedule = _useState4[0],\n    setSchedule = _useState4[1];\n  var _useState5 = useState(false),\n    _useState6 = _slicedToArray(_useState5, 2),\n    isModalOpen = _useState6[0],\n    setIsModalOpen = _useState6[1];\n  var _useState7 = useState(null),\n    _useState8 = _slicedToArray(_useState7, 2),\n    blockedDays = _useState8[0],\n    setBlockedDays = _useState8[1];\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_3__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var settings = settingsReducer.settings;\n  var showModal = function showModal() {\n    setIsModalOpen(true);\n  };\n  var handleOk = function handleOk() {\n    var foundedBlockedDay = blockedDays && selectedDate && blockedDays.find(function (day) {\n      return day.date === selectedDate;\n    });\n    if (foundedBlockedDay) {\n      var newBlockedDays = blockedDays.map(function (day) {\n        if (day.date === selectedDate) {\n          day.schedule = schedule;\n          return day;\n        } else {\n          return day;\n        }\n      });\n      dispatch({\n        type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_5__.actions.SET_SETTINGS,\n        payload: {\n          blocked_days: newBlockedDays\n        }\n      });\n      // setBlockedDays(newBlockedDays);\n    } else {\n      if (selectedDate && schedule) {\n        var blocked_days = blockedDays || [];\n        var _newBlockedDays = [].concat(_toConsumableArray(blocked_days), [{\n          key: \"date\",\n          date: selectedDate,\n          schedule: schedule\n        }]);\n        dispatch({\n          type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_5__.actions.SET_SETTINGS,\n          payload: {\n            blocked_days: _newBlockedDays\n          }\n        });\n      }\n    }\n    setIsModalOpen(false);\n  };\n  var handleCancel = function handleCancel() {\n    setSelectedDate(null);\n    setIsModalOpen(false);\n  };\n  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    if (settings !== null && settings !== void 0 && settings.blocked_days) setBlockedDays(settings.blocked_days);\n  }, [settings === null || settings === void 0 ? void 0 : settings.blocked_days]);\n  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    if (selectedDate) {\n      var foundedSchedule = blockedDays === null || blockedDays === void 0 ? void 0 : blockedDays.find(function (day) {\n        return day.date === selectedDate;\n      });\n      if (foundedSchedule) {\n        setSchedule(foundedSchedule.schedule);\n      } else {\n        var selectedDateDay = dayjs__WEBPACK_IMPORTED_MODULE_0___default()(selectedDate).format(\"dddd\");\n        var selectedDateSchedules = weeklySchedules.find(function (schdule) {\n          return schdule.name === selectedDateDay;\n        }).schedules;\n        setSchedule(selectedDateSchedules);\n      }\n    } else {\n      setSchedule(null);\n    }\n  }, [selectedDate]);\n  return /*#__PURE__*/React.createElement(React.Fragment, null, Boolean((_window = window) === null || _window === void 0 ? void 0 : (_window$timetics = _window.timetics) === null || _window$timetics === void 0 ? void 0 : _window$timetics.timeticsPro) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {\n    block: true,\n    onClick: showModal\n  }, __(\"Add Blocked Dates\", \"timetics\")), /*#__PURE__*/React.createElement(List, {\n    dataSource: blockedDays || [],\n    rowKey: function rowKey(item) {\n      return item.date;\n    },\n    renderItem: function renderItem(item, index) {\n      return /*#__PURE__*/React.createElement(List.Item, {\n        key: item.date,\n        actions: [/*#__PURE__*/React.createElement(Button, {\n          onClick: function onClick() {\n            setSelectedDate(item.date);\n            setIsModalOpen(true);\n          }\n        }, /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_4__.EditIcon, null)), /*#__PURE__*/React.createElement(Button, {\n          onClick: function onClick() {\n            if (blockedDays && blockedDays.length) {\n              var newBlockedDays = blockedDays.filter(function (day) {\n                return day.date !== item.date;\n              });\n              dispatch({\n                type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_5__.actions.SET_SETTINGS,\n                payload: {\n                  blocked_days: newBlockedDays\n                }\n              });\n            }\n          }\n        }, /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_4__.DeleteIcon, null))]\n      }, /*#__PURE__*/React.createElement(List.Item.Meta, {\n        title: item.date,\n        description: !item.schedule.length ? \"unavailable\" : item.schedule.map(function (slot) {\n          return /*#__PURE__*/React.createElement(\"p\", {\n            key: slot.start.value\n          }, slot.start.label, \" -\", slot.end.label);\n        })\n      }));\n    }\n  }), /*#__PURE__*/React.createElement(Modal, {\n    title: __(\"Assign Block Hours\", \"timetics\"),\n    open: isModalOpen,\n    onOk: handleOk,\n    onCancel: handleCancel,\n    destroyOnClose: true,\n    className: \"tt-booking-modal\"\n  }, /*#__PURE__*/React.createElement(_CalendarInput__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n    selectedDate: selectedDate,\n    schedule: schedule,\n    setSchedule: setSchedule,\n    setSelectedDate: setSelectedDate\n  }))) :\n  /*#__PURE__*/\n  /* notice show if timetics pro plugin not active */\n  React.createElement(_components_NoticeProFeature__WEBPACK_IMPORTED_MODULE_6__[\"default\"], null));\n}\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/BlockedDays.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/CalendarInput.js":
/*!**********************************************************!*\
  !*** ./assets/src/admin/pages/settings/CalendarInput.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\": () => (/* binding */ CalendarInput)\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__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _frontend_utils_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../frontend/utils/helper */ \"./assets/src/frontend/utils/helper.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _utils_dummyData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/dummyData */ \"./assets/src/admin/utils/dummyData.js\");\n/* harmony import */ var _actionCreators_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../actionCreators/common */ \"./assets/src/admin/actionCreators/common.js\");\n/* harmony import */ var _components_TooltipText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/TooltipText */ \"./assets/src/admin/components/TooltipText.js\");\n/* harmony import */ var _common_icons_Icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../common/icons/Icons */ \"./assets/src/common/icons/Icons.js\");\n/* harmony import */ var _helper_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../helper/helpers */ \"./assets/src/helper/helpers.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return 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 _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; }\n\n\n\n\n\n\n\n\n\nvar __ = wp.i18n.__;\nvar _window$React = window.React,\n  useRef = _window$React.useRef,\n  useEffect = _window$React.useEffect;\nvar _window$antd = window.antd,\n  Space = _window$antd.Space,\n  Select = _window$antd.Select,\n  Button = _window$antd.Button;\nvar startTime = \"01:00 AM\";\nvar endTime = \"23:50 PM\";\nvar timeInterval = 10;\nfunction CalendarInput(_ref) {\n  var selectedDate = _ref.selectedDate,\n    schedule = _ref.schedule,\n    setSelectedDate = _ref.setSelectedDate,\n    setSchedule = _ref.setSchedule;\n  var fp = useRef(null);\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_3__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 1),\n    _useStateValue2$ = _useStateValue2[0],\n    settingReducer = _useStateValue2$.settings,\n    meeting = _useStateValue2$.meeting;\n  var settings = settingReducer.settings;\n  var addScheduleDay = function addScheduleDay() {\n    var timeSlot = (0,_helper_helpers__WEBPACK_IMPORTED_MODULE_8__._getNextTimeSlot)({\n      schedules: schedule.length ? schedule : [(0,_utils_dummyData__WEBPACK_IMPORTED_MODULE_4__.getSlotTime)({\n        startTime: \"09:00\"\n      })],\n      duration: timeInterval\n    });\n    setSchedule(function (schedule) {\n      return schedule.concat(timeSlot);\n    });\n  };\n  var deleteSchedule = function deleteSchedule(index) {\n    var newSchedule = _toConsumableArray(schedule);\n    newSchedule.splice(index, 1);\n    setSchedule(newSchedule);\n  };\n  var onSelectTime = function onSelectTime(_ref2) {\n    var key = _ref2.key,\n      value = _ref2.value,\n      timeSlotIndex = _ref2.timeSlotIndex;\n    var newSchedule = _toConsumableArray(schedule);\n    newSchedule[timeSlotIndex] = _objectSpread(_objectSpread({}, newSchedule[timeSlotIndex]), {}, _defineProperty({}, key, value));\n    setSchedule(newSchedule);\n  };\n  useEffect(function () {\n    if (typeof window !== \"undefined\" && window.flatpickr) {\n      var _window, _window$timetics;\n      var inputEl = fp.current;\n      if (settings !== null && settings !== void 0 && settings.calendar_locale) window.flatpickr.localize(window.flatpickr.l10ns[settings === null || settings === void 0 ? void 0 : settings.calendar_locale]);\n      var flatpickrInstance = window.flatpickr(inputEl, {\n        //intially selected date is today, but don't fetch slots initially, that's defaultDate is commented\n        defaultDate: selectedDate,\n        inline: true,\n        altFormat: \"F j, Y\",\n        dateFormat: \"Y-m-d\",\n        minDate: new Date(),\n        monthSelectorType: \"static\",\n        locale: {\n          firstDayOfWeek: Number((_window = window) === null || _window === void 0 ? void 0 : (_window$timetics = _window.timetics) === null || _window$timetics === void 0 ? void 0 : _window$timetics.start_of_week) // start week on Monday\n        },\n\n        onChange: function onChange(selectedDates, dateStr, instance) {\n          setSelectedDate(dateStr);\n        }\n      });\n      return function () {\n        flatpickrInstance.destroy();\n      };\n    }\n  }, []);\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-flatpickr-calendar\"\n  }, /*#__PURE__*/React.createElement(\"input\", {\n    ref: fp,\n    type: \"text\",\n    className: \"flatpickr-input\"\n  })), schedule ? /*#__PURE__*/React.createElement(\"div\", {\n    style: {\n      padding: \"1.5rem\",\n      backgroundColor: \"#fafafa\",\n      borderRadius: \"0.5rem\"\n    },\n    className: \"timetics-input\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    style: {\n      display: \"flex\",\n      justifyContent: \"space-between\",\n      alignItems: \"center\",\n      marginBottom: \"0.5rem\"\n    }\n  }, /*#__PURE__*/React.createElement(\"span\", null, __(\"Which hours you are available for the meeting?\", \"timetics\")), /*#__PURE__*/React.createElement(Button, {\n    onClick: addScheduleDay\n  }, /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_7__.AddIcon, null))), /*#__PURE__*/React.createElement(React.Fragment, null, schedule.length ? schedule.map(function (item, i) {\n    var _item$start;\n    return /*#__PURE__*/React.createElement(React.Fragment, {\n      key: \"\".concat(i, \"-single-schedule-time-slot\")\n    }, /*#__PURE__*/React.createElement(Space, {\n      key: \"schedule-time-slot-\".concat(i),\n      style: {\n        margin: \"5px 0\"\n      },\n      size: [10]\n    }, /*#__PURE__*/React.createElement(Select, {\n      popupClassName: \"tt-availability-time-select-popup\",\n      placeholder: __(\"Select a time\", \"timetics\"),\n      optionFilterProp: \"children\",\n      onChange: function onChange(value) {\n        var _getTimeOptions;\n        onSelectTime({\n          value: (_getTimeOptions = (0,_utils_dummyData__WEBPACK_IMPORTED_MODULE_4__.getTimeOptions)({\n            startTime: startTime,\n            endTime: endTime,\n            duration: timeInterval\n          })) === null || _getTimeOptions === void 0 ? void 0 : _getTimeOptions.find(function (el) {\n            return el.value == value;\n          }),\n          key: \"start\",\n          timeSlotIndex: i\n        });\n      },\n      options: function () {\n        var _schedule$end;\n        return (0,_utils_dummyData__WEBPACK_IMPORTED_MODULE_4__.getTimeOptions)({\n          startTime: i == 0 ? startTime : (_schedule$end = schedule[i - 1].end) === null || _schedule$end === void 0 ? void 0 : _schedule$end.label,\n          endTime: endTime,\n          duration: timeInterval\n        });\n      }(),\n      value: item === null || item === void 0 ? void 0 : item.start\n    }), /*#__PURE__*/React.createElement(\"span\", null, \"-\"), /*#__PURE__*/React.createElement(Select, {\n      popupClassName: \"tt-availability-time-select-popup\",\n      placeholder: __(\"Select a time\", \"timetics\"),\n      onChange: function onChange(value) {\n        var _getTimeOptions2;\n        onSelectTime({\n          value: (_getTimeOptions2 = (0,_utils_dummyData__WEBPACK_IMPORTED_MODULE_4__.getTimeOptions)({\n            startTime: startTime,\n            endTime: endTime,\n            duration: timeInterval\n          })) === null || _getTimeOptions2 === void 0 ? void 0 : _getTimeOptions2.find(function (el) {\n            return el.value == value;\n          }),\n          key: \"end\",\n          timeSlotIndex: i\n        });\n      },\n      options: (0,_utils_dummyData__WEBPACK_IMPORTED_MODULE_4__.getTimeOptions)({\n        startTime: item === null || item === void 0 ? void 0 : (_item$start = item.start) === null || _item$start === void 0 ? void 0 : _item$start.label,\n        endTime: endTime,\n        duration: timeInterval\n      }),\n      value: item === null || item === void 0 ? void 0 : item.end\n    }), /*#__PURE__*/React.createElement(_components_TooltipText__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n      text: __(\"Remove time slot\", \"timetics\"),\n      placement: \"top\"\n    }, /*#__PURE__*/React.createElement(\"span\", {\n      style: {\n        cursor: \"pointer\"\n      },\n      onClick: function onClick() {\n        return deleteSchedule(i);\n      },\n      className: \"tt-schedule-time-slot-delete\"\n    }, /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_7__.DeleteIcon, {\n      color: \"#0A1018\"\n    })))));\n  }) : /*#__PURE__*/React.createElement(\"span\", {\n    style: {\n      fontWeight: \"100\",\n      color: \"#b9b9b9\"\n    }\n  }, __(\" Unavailable\", \"timetics\")))) : null);\n}\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/CalendarInput.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/CustomizeForm.js":
/*!**********************************************************!*\
  !*** ./assets/src/admin/pages/settings/CustomizeForm.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 _context_provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/icons/Icons */ \"./assets/src/common/icons/Icons.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.js\");\n/* harmony import */ var _components_NoticeProFeature__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/NoticeProFeature */ \"./assets/src/admin/components/NoticeProFeature.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); }); }; }\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; }\n\n\n\n\nvar useEffect = window.React.useEffect;\nvar _window$antd = window.antd,\n  Form = _window$antd.Form,\n  Button = _window$antd.Button,\n  Col = _window$antd.Col,\n  Row = _window$antd.Row,\n  Typography = _window$antd.Typography,\n  Tooltip = _window$antd.Tooltip;\nvar Title = Typography.Title,\n  Text = Typography.Text;\nvar __ = wp.i18n.__;\nvar React = window.React;\nvar useState = React.useState;\nfunction CustomizeForm() {\n  var _window, _window$timetics;\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_0__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var settings = settingsReducer.settings;\n  var custom_fields = settings.custom_fields;\n  var saveUpdate = /*#__PURE__*/function () {\n    var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {\n      var _res$data;\n      var res;\n      return _regeneratorRuntime().wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_2__.generalSettings)({\n                method: \"PUT\",\n                data: data\n              });\n            case 2:\n              res = _context.sent;\n              dispatch({\n                type: \"SET_SETTINGS\",\n                payload: res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.data\n              });\n            case 4:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function saveUpdate(_x) {\n      return _ref.apply(this, arguments);\n    };\n  }();\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-customize-form-container tt-mb-30\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-customize-form-header\"\n  }, /*#__PURE__*/React.createElement(Title, {\n    level: 5,\n    className: \"tt-mb-10\"\n  }, __(\"Booking questions\", \"timetics\")), /*#__PURE__*/React.createElement(Text, {\n    className: \"tt-customize-form-desc\"\n  }, __(\"Customize the questions asked on the booking page\", \"timttics\"))), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-customize-form-list\"\n  }, defaultFormFields.map(function (item, id) {\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: \"tt-single-field\",\n      key: id,\n      style: {\n        opacity: \"0.4\",\n        cursor: \"not-allowed\"\n      }\n    }, /*#__PURE__*/React.createElement(\"div\", {\n      className: \"tt-field-name-info\"\n    }, /*#__PURE__*/React.createElement(Title, {\n      level: 5\n    }, item === null || item === void 0 ? void 0 : item.fieldLabel, (item === null || item === void 0 ? void 0 : item.required) && /*#__PURE__*/React.createElement(\"span\", {\n      className: \"tt-field-required\"\n    }, __(\"Required\", \"timetics\")))));\n  }), (_window = window) !== null && _window !== void 0 && (_window$timetics = _window.timetics) !== null && _window$timetics !== void 0 && _window$timetics.timeticsPro ? wp.hooks.applyFilters(\"customizedFormList\", saveUpdate, custom_fields) : /*#__PURE__*/React.createElement(_components_NoticeProFeature__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CustomizeForm);\nvar defaultFormFields = [{\n  id: 0,\n  fieldLabel: \"Full Name\",\n  placeholder: \"name\",\n  fieldType: \"text\",\n  additionalText: \"Something\",\n  required: true\n}, {\n  id: 1,\n  fieldLabel: \"Email\",\n  placeholder: \"Email\",\n  fieldType: \"text\",\n  additionalText: \"Something\",\n  required: true\n}];\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/CustomizeForm.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/General.js":
/*!****************************************************!*\
  !*** ./assets/src/admin/pages/settings/General.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_SelectInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/SelectInput */ \"./assets/src/common/SelectInput.js\");\n/* harmony import */ var _common_TextInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/TextInput */ \"./assets/src/common/TextInput.js\");\n/* harmony import */ var _components_TooltipText__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/TooltipText */ \"./assets/src/admin/components/TooltipText.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.js\");\n/* harmony import */ var _colorPickerSetting__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./colorPickerSetting */ \"./assets/src/admin/pages/settings/colorPickerSetting.js\");\n/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constant */ \"./assets/src/admin/pages/settings/constant.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 _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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  Button = _window$antd.Button,\n  Form = _window$antd.Form,\n  message = _window$antd.message,\n  Skeleton = _window$antd.Skeleton,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col,\n  Typography = _window$antd.Typography,\n  Space = _window$antd.Space,\n  Select = _window$antd.Select,\n  Tooltip = _window$antd.Tooltip,\n  Input = _window$antd.Input;\nvar Title = Typography.Title,\n  Text = Typography.Text;\nvar __ = wp.i18n.__;\nvar useState = React.useState,\n  useEffect = React.useEffect;\n\n\n\n\n\n\n\nvar timeticsObj = window.timetics;\nfunction General() {\n  var _timeticsObj$currency;\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_3__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var settings = settingsReducer.settings;\n  var wcPayment = settings !== null && settings !== void 0 && settings.wc_integration ? settings === null || settings === void 0 ? void 0 : settings.wc_integration : false;\n  var _useState = useState(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    loading = _useState2[0],\n    setLoading = _useState2[1];\n  var _Form$useForm = Form.useForm(),\n    _Form$useForm2 = _slicedToArray(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n  /**\n   * On finish method that can handle general settings\n   * @param {Object} values\n   */\n  var onFinish = /*#__PURE__*/function () {\n    var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {\n      var _values, res;\n      return _regeneratorRuntime().wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              _values = _objectSpread(_objectSpread({}, values), {}, {\n                primary_color: settings.primary_color,\n                secondary_color: settings.secondary_color\n              });\n              setLoading(true);\n              _context.next = 4;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_4__.generalSettings)({\n                method: \"PUT\",\n                data: _objectSpread({}, _values)\n              });\n            case 4:\n              res = _context.sent;\n              setLoading(false);\n            case 6:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function onFinish(_x) {\n      return _ref.apply(this, arguments);\n    };\n  }();\n  /**\n   * On finish faild method that can handle staff create faild\n   * @param {Object} values\n   */\n  var onFinishFailed = function onFinishFailed(errorInfo) {\n    message.error(errorInfo);\n  };\n  if (loading) {\n    return /*#__PURE__*/React.createElement(Skeleton, {\n      active: true\n    });\n  }\n  var generalSettingsData = [{\n    id: 1,\n    title: __(\"Date & Time Format\", \"timetics\"),\n    subtext: __(\"Change the date and time format to your likings\", \"timetics\"),\n    inputData: /*#__PURE__*/React.createElement(Form.Item, {\n      className: \"timetics-input tt-align-right\",\n      colon: false,\n      wrapperCol: {\n        span: 24\n      }\n    }, /*#__PURE__*/React.createElement(Space, {\n      direction: \"vertical \",\n      size: [10]\n    }, /*#__PURE__*/React.createElement(_components_TooltipText__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n      text: __(\"Selected current timezone is \".concat(timeticsObj === null || timeticsObj === void 0 ? void 0 : timeticsObj.default_timezone, \". Universal time is \").concat((timeticsObj === null || timeticsObj === void 0 ? void 0 : timeticsObj.date_format_string) + \" \" + (timeticsObj === null || timeticsObj === void 0 ? void 0 : timeticsObj.time_format_string), \" \"), \"timetics\"),\n      placement: \"top\"\n    }, /*#__PURE__*/React.createElement(Button, {\n      type: \"default\",\n      target: \"_blank\",\n      href: (timeticsObj === null || timeticsObj === void 0 ? void 0 : timeticsObj.admin_url) + \"/options-general.php#timezone_string\",\n      className: \"tt-mb-10\"\n    }, __(\"Update date & time format\", \"timetics\"))), /*#__PURE__*/React.createElement(Text, null, __(\"Default format:\", \"timetics\"), /*#__PURE__*/React.createElement(\"code\", null, timeticsObj === null || timeticsObj === void 0 ? void 0 : timeticsObj.date_format), /*#__PURE__*/React.createElement(\"code\", null, timeticsObj === null || timeticsObj === void 0 ? void 0 : timeticsObj.time_format))))\n  }, {\n    id: 2,\n    title: __(\"First Day of The Week\", \"timetics\"),\n    subtext: __(\"Choose the day your week starts with\", \"timetics\"),\n    inputData: /*#__PURE__*/React.createElement(Form.Item, {\n      className: \"timetics-input tt-align-right\",\n      colon: false,\n      wrapperCol: {\n        span: 24\n      }\n    }, /*#__PURE__*/React.createElement(Space, {\n      direction: \"vertical \",\n      size: [10]\n    }, /*#__PURE__*/React.createElement(Button, {\n      type: \"default\",\n      target: \"_blank\",\n      href: (timeticsObj === null || timeticsObj === void 0 ? void 0 : timeticsObj.admin_url) + \"/options-general.php#timezone_string\",\n      className: \"tt-mb-10\"\n    }, __(\"Update Week starts on\", \"timetics\")), /*#__PURE__*/React.createElement(_components_TooltipText__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n      text: __(\"Week starts on\", \"timetics\"),\n      placement: \"top\"\n    }, /*#__PURE__*/React.createElement(Text, null, __(\"Selected Day \", \"timetics\"), /*#__PURE__*/React.createElement(\"code\", null, [\"sunday\", \"monday\", \"tuesday\", \"wednesday\", \"thursday\", \"friday\", \"saturday\"][timeticsObj === null || timeticsObj === void 0 ? void 0 : timeticsObj.start_of_week])))))\n  }, {\n    id: 3,\n    title: __(\"Approval Status\", \"timetics\"),\n    subtext: __(\"Change the approval status to Approved or Pending or Cancelled\", \"timetics\"),\n    inputData: /*#__PURE__*/React.createElement(_common_SelectInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n      key: \"default_booking_status\",\n      colon: false,\n      wrapperCol: {\n        span: 24\n      },\n      defaultValue: \"approved\",\n      tooltip: __(\"Select Booking Status\", \"timetics\"),\n      options: [{\n        value: \"approved\",\n        label: \"Approved\"\n      }, {\n        value: \"pending\",\n        label: \"Pending\"\n      }, {\n        value: \"cancel\",\n        label: \"Cancelled\"\n      }],\n      name: \"default_booking_status\",\n      placeholder: __(\"Select Booking Status\", \"timetics\")\n    })\n  }, {\n    id: 4,\n    title: __(\"Select Currency\", \"timetics\"),\n    subtext: __(\"Select your preferred currency\", \"timetics\"),\n    inputData: /*#__PURE__*/React.createElement(Tooltip, {\n      title: wcPayment && \"You are not allowed to change currency here because WooCommerce payment is currently enabled.\",\n      overlayClassName: \"tt-tooltip-card\"\n    }, /*#__PURE__*/React.createElement(Form.Item, {\n      className: \"timetics-input\",\n      wrapperCol: {\n        span: 24\n      },\n      name: \"currency\",\n      placeholder: __(\"Select currency\", \"timetics\")\n    }, /*#__PURE__*/React.createElement(Select, {\n      showSearch: true,\n      disabled: wcPayment,\n      className: \"timetics-input\",\n      size: \"large\",\n      placeholder: \"Search currency by the country name\",\n      filterOption: function filterOption(input, option) {\n        var _option$children$0$to;\n        return ((_option$children$0$to = option === null || option === void 0 ? void 0 : option.children[0].toLowerCase()) !== null && _option$children$0$to !== void 0 ? _option$children$0$to : \"\").includes(input.toLowerCase());\n      },\n      filterSort: function filterSort(optionA, optionB) {\n        var _optionA$children$, _optionB$children$;\n        return ((_optionA$children$ = optionA === null || optionA === void 0 ? void 0 : optionA.children[0]) !== null && _optionA$children$ !== void 0 ? _optionA$children$ : \"\").toLowerCase().localeCompare(((_optionB$children$ = optionB === null || optionB === void 0 ? void 0 : optionB.children[0]) !== null && _optionB$children$ !== void 0 ? _optionB$children$ : \"\").toLowerCase());\n      }\n    }, timeticsObj === null || timeticsObj === void 0 ? void 0 : (_timeticsObj$currency = timeticsObj.currency_list) === null || _timeticsObj$currency === void 0 ? void 0 : _timeticsObj$currency.map(function (option, i) {\n      return /*#__PURE__*/React.createElement(Option, {\n        key: \"props.key-\".concat(i),\n        value: option === null || option === void 0 ? void 0 : option.name\n      }, option === null || option === void 0 ? void 0 : option.country, \" --\", /*#__PURE__*/React.createElement(\"span\", {\n        dangerouslySetInnerHTML: {\n          __html: (option === null || option === void 0 ? void 0 : option.name) + \"(\" + (option === null || option === void 0 ? void 0 : option.symbol) + \")\"\n        }\n      }));\n    }))))\n  }, {\n    id: 5,\n    title: __(\"Set primary color\", \"timetics\"),\n    subtext: __(\"Set your primary color\", \"timetics\"),\n    inputData: /*#__PURE__*/React.createElement(\"div\", {\n      className: \"tt-color-setting\"\n    }, /*#__PURE__*/React.createElement(_colorPickerSetting__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n      name: \"primary_color\",\n      onChange: function onChange(key, value) {}\n    }))\n  }, {\n    id: 6,\n    title: __(\"Set secondary color\", \"timetics\"),\n    subtext: __(\"Set your secondary color\", \"timetics\"),\n    inputData: /*#__PURE__*/React.createElement(\"div\", {\n      className: \"tt-color-setting\"\n    }, /*#__PURE__*/React.createElement(_colorPickerSetting__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n      name: \"secondary_color\",\n      onChange: function onChange(key, value) {}\n    }))\n  }, {\n    id: 7,\n    title: __(\"Calendar translator\", \"timetics\"),\n    subtext: __(\"Select the language for your user\", \"timetics\"),\n    inputData: /*#__PURE__*/React.createElement(_common_SelectInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n      key: \"calendar_locale\",\n      colon: false,\n      wrapperCol: {\n        span: 24\n      },\n      defaultValue: \"en\",\n      tooltip: __(\"Select Locale\", \"timetics\"),\n      options: Object.keys(_constant__WEBPACK_IMPORTED_MODULE_6__.LOCALES).map(function (local) {\n        return {\n          value: _constant__WEBPACK_IMPORTED_MODULE_6__.LOCALES[local],\n          label: local\n        };\n      }),\n      name: \"calendar_locale\",\n      placeholder: __(\"Select Locale\", \"timetics\")\n    })\n  }, {\n    id: 8,\n    title: __(\"Set Timezone\", \"timetics\"),\n    subtext: __(\"Select the timezone of timetics\", \"timetics\"),\n    inputData: /*#__PURE__*/React.createElement(_common_SelectInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n      showSearch: true,\n      filterOption: function filterOption(input, option) {\n        var _option$label;\n        return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : \"\").toLowerCase().includes(input.toLowerCase());\n      },\n      key: \"local_timezone\",\n      colon: false,\n      wrapperCol: {\n        span: 24\n      },\n      tooltip: __(\"Select Timezone\", \"timetics\"),\n      defaultValue: Intl.DateTimeFormat().resolvedOptions().timeZone,\n      options: function () {\n        if (!Intl.supportedValuesOf) {\n          return [{\n            label: \"Your browser does not support Intl.supportedValuesOf()\",\n            value: null\n          }];\n        } else {\n          var options = [];\n          var _iterator = _createForOfIteratorHelper(Intl.supportedValuesOf(\"timeZone\")),\n            _step;\n          try {\n            for (_iterator.s(); !(_step = _iterator.n()).done;) {\n              var timeZone = _step.value;\n              options.push({\n                label: timeZone,\n                value: timeZone\n              });\n            }\n          } catch (err) {\n            _iterator.e(err);\n          } finally {\n            _iterator.f();\n          }\n          return options;\n        }\n      }(),\n      name: \"locale_timezone\",\n      placeholder: __(\"Select Locale\", \"timetics\")\n    })\n  }];\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form, {\n    form: form,\n    name: \"settings\",\n    layout: \"horizontal\",\n    autoComplete: \"off\",\n    onFinish: onFinish,\n    onFinishFailed: onFinishFailed,\n    initialValues: settings\n  }, generalSettingsData === null || generalSettingsData === void 0 ? void 0 : generalSettingsData.map(function (settingItem) {\n    return /*#__PURE__*/React.createElement(Row, {\n      gutter: [0, 15],\n      className: \"tt-general-sitting tt-mb-20\",\n      key: settingItem === null || settingItem === void 0 ? void 0 : settingItem.id,\n      align: \"middle\"\n    }, /*#__PURE__*/React.createElement(Col, {\n      xs: 24,\n      md: 14\n    }, /*#__PURE__*/React.createElement(Title, {\n      level: 5,\n      className: \"tt-margin-0\"\n    }, settingItem === null || settingItem === void 0 ? void 0 : settingItem.title), /*#__PURE__*/React.createElement(Text, {\n      type: \"secondary\"\n    }, settingItem === null || settingItem === void 0 ? void 0 : settingItem.subtext)), /*#__PURE__*/React.createElement(Col, {\n      xs: 24,\n      md: 10\n    }, settingItem === null || settingItem === void 0 ? void 0 : settingItem.inputData));\n  }), /*#__PURE__*/React.createElement(Button, {\n    type: \"primary\",\n    htmlType: \"submit\",\n    size: \"large\",\n    loading: loading\n  }, __(\"Save change\", \"timetics\"))));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (General);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/General.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/Integrations.js":
/*!*********************************************************!*\
  !*** ./assets/src/admin/pages/settings/Integrations.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 _integrationForm_GoogleCalendarForm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./integrationForm/GoogleCalendarForm */ \"./assets/src/admin/pages/settings/integrationForm/GoogleCalendarForm.js\");\n/* harmony import */ var _common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/icons/Icons */ \"./assets/src/common/icons/Icons.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.js\");\n/* harmony import */ var _components_GoProButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/GoProButton */ \"./assets/src/admin/components/GoProButton.js\");\nvar React = window.React;\nvar useState = React.useState;\nvar _window$antd = window.antd,\n  Collapse = _window$antd.Collapse,\n  Card = _window$antd.Card,\n  Avatar = _window$antd.Avatar,\n  Space = _window$antd.Space,\n  Button = _window$antd.Button,\n  Switch = _window$antd.Switch;\nvar Meta = Card.Meta;\nvar Panel = Collapse.Panel;\n\nvar __ = wp.i18n.__;\n\n\n\n\nfunction Integrations() {\n  var _integrationLists$;\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Collapse\n  // defaultActiveKey=\"google_calendar\"\n  , {\n    className: \"tt-integration-settings\",\n    accordion: true,\n    bordered: true,\n    collapsible: \"header\",\n    ghost: true,\n    defaultActiveKey: (_integrationLists$ = integrationLists[0]) === null || _integrationLists$ === void 0 ? void 0 : _integrationLists$.key,\n    expandIconPosition: \"end\"\n  }, integrationLists === null || integrationLists === void 0 ? void 0 : integrationLists.map(function (item) {\n    var _timetics, _timetics2;\n    return /*#__PURE__*/React.createElement(Panel, {\n      collapsible: (item === null || item === void 0 ? void 0 : item.isPro) == true && ((_timetics = timetics) === null || _timetics === void 0 ? void 0 : _timetics.timeticsPro) != true ? \"disabled\" : \" \",\n      extra: (item === null || item === void 0 ? void 0 : item.isPro) == true && ((_timetics2 = timetics) === null || _timetics2 === void 0 ? void 0 : _timetics2.timeticsPro) != true ? /*#__PURE__*/React.createElement(_components_GoProButton__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        className: \"tt-go-pro-integration\"\n      }) : /*#__PURE__*/React.createElement(\"span\", {\n        className: \"tt-primary-color\"\n      }, __(\"Configure\", \"timetics\")),\n      header: /*#__PURE__*/React.createElement(Card, {\n        bodyStyle: {\n          padding: \"0\"\n        },\n        bordered: false,\n        size: \"small\",\n        style: {\n          backgroundColor: \"transparent\"\n        }\n      }, /*#__PURE__*/React.createElement(Meta, {\n        avatar: item === null || item === void 0 ? void 0 : item.icon,\n        title: item === null || item === void 0 ? void 0 : item.title,\n        description: item === null || item === void 0 ? void 0 : item.description\n      })),\n      key: item === null || item === void 0 ? void 0 : item.key\n    }, item === null || item === void 0 ? void 0 : item.form);\n  }), wp.hooks.applyFilters(\"iCalSetting\"), wp.hooks.applyFilters(\"outlookCalSetting\")));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Integrations);\nvar integrationList = [{\n  key: \"google_calendar\",\n  title: __(\"Google Calendar/Meet\", \"timetics\"),\n  icon: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.GoogleCalendar, null),\n  form: /*#__PURE__*/React.createElement(_integrationForm_GoogleCalendarForm__WEBPACK_IMPORTED_MODULE_0__[\"default\"], null),\n  isPro: false,\n  description: __(\"Connect Google Calendar/Meet to sync your events.\", \"timetics\")\n}, {\n  key: \"zoom\",\n  title: __(\"Zoom\", \"timetics\"),\n  icon: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.Zoom, null),\n  form: wp.hooks.applyFilters(\"zoomSetting\"),\n  isPro: true,\n  description: __(\"Connect Zoom to sync your events.\", \"timetics\")\n}, {\n  key: \"fluentCrm\",\n  title: __(\"Fluent CRM\", \"timetics\"),\n  icon: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.FluentcremIcon, null),\n  form: wp.hooks.applyFilters(\"fluentCrmSetting\"),\n  isPro: true,\n  description: __(\"Set Fluent CRM webhook to sync your booking data.\", \"timetics\")\n}, {\n  key: \"pabbly\",\n  title: __(\"Pabbly Webhook\", \"timetics\"),\n  icon: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.PabblyIcon, null),\n  form: wp.hooks.applyFilters(\"pabblySetting\"),\n  isPro: true,\n  description: __(\"Set pabbly webhook to sync your booking data.\", \"timetics\")\n}, {\n  key: \"zapier\",\n  title: __(\"Zapier Webhook\", \"timetics\"),\n  icon: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.ZapireIcon, null),\n  form: wp.hooks.applyFilters(\"zapierSetting\"),\n  isPro: true,\n  description: __(\"Set Zapier webhook to sync your booking data.\", \"timetics\")\n}, {\n  key: \"twilio\",\n  title: __(\"Twilio Messaging\", \"timetics\"),\n  icon: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.TwilioIcon, null),\n  form: wp.hooks.applyFilters(\"twilioSetting\"),\n  isPro: true,\n  description: __(\"WhatsApp messaging using the Twilio.\", \"timetics\")\n}];\nvar integrationLists = wp.hooks.applyFilters(\"timetics_integration_list\", integrationList);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/Integrations.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/Notification.js":
/*!*********************************************************!*\
  !*** ./assets/src/admin/pages/settings/Notification.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 _context_provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _components_notification_EmailCustomizeModal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/notification/EmailCustomizeModal */ \"./assets/src/admin/components/notification/EmailCustomizeModal.js\");\n/* harmony import */ var _components_notification_NotificationOption__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/notification/NotificationOption */ \"./assets/src/admin/components/notification/NotificationOption.js\");\n/* harmony import */ var _components_notification_ReminderTime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/notification/ReminderTime */ \"./assets/src/admin/components/notification/ReminderTime.js\");\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$antd = window.antd,\n  Button = _window$antd.Button,\n  Row = _window$antd.Row,\n  Col = _window$antd.Col;\nvar useState = window.React.useState;\n\n\n\n\nvar __ = wp.i18n.__;\nfunction Notification() {\n  var _useState = useState(0),\n    _useState2 = _slicedToArray(_useState, 2),\n    activeKey = _useState2[0],\n    setActiveKey = _useState2[1];\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_0__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    _useStateValue2$ = _useStateValue2[0],\n    meetingReducer = _useStateValue2$.meeting,\n    settingsReducer = _useStateValue2$.settings,\n    dispatch = _useStateValue2[1];\n  var customizeEmail = settingsReducer.customizeEmail,\n    modalTitle = settingsReducer.modalTitle,\n    settings = settingsReducer.settings;\n  var options = getNotificationOptions();\n  return /*#__PURE__*/React.createElement(React.Fragment, null, options === null || options === void 0 ? void 0 : options.map(function (_ref, index) {\n    var panelTitle = _ref.panelTitle,\n      customerModalTitle = _ref.customerModalTitle,\n      customerActionDescription = _ref.customerActionDescription,\n      customerNotification = _ref.customerNotification,\n      hostActionDescription = _ref.hostActionDescription,\n      hostNotification = _ref.hostNotification,\n      notificationToCustomer = _ref.notificationToCustomer,\n      notificationToHost = _ref.notificationToHost,\n      children = _ref.children,\n      emailDataPrefix = _ref.emailDataPrefix,\n      hostModalTitle = _ref.hostModalTitle;\n    return /*#__PURE__*/React.createElement(_components_notification_NotificationOption__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n      key: \"\".concat(index, \"-notification-item\"),\n      i: index,\n      activeKey: activeKey,\n      setActiveKey: setActiveKey,\n      panelTitle: panelTitle,\n      customerModalTitle: customerModalTitle,\n      customerActionDescription: customerActionDescription,\n      hostModalTitle: hostModalTitle,\n      hostActionDescription: hostActionDescription,\n      customerNotification: customerNotification,\n      hostNotification: hostNotification,\n      children: children,\n      notificationToCustomer: notificationToCustomer,\n      notificationToHost: notificationToHost,\n      emailDataPrefix: emailDataPrefix\n    });\n  }), /*#__PURE__*/React.createElement(_components_notification_EmailCustomizeModal__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    open: customizeEmail,\n    dispatch: dispatch,\n    title: modalTitle\n  }));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Notification);\nfunction getNotificationOptions() {\n  return [{\n    panelTitle: __(\"After Booking Confirmation\", \"timetics\"),\n    customerModalTitle: __(\"Notification to Customer After Booking Confirmation\", \"timetics\"),\n    customerActionDescription: __(\"Your Attendees/Customers/Clients will receive a confirmation email containing a link to create that event on their calendar\", \"timetics\"),\n    hostModalTitle: __(\"Notification to Host After Booking Confirmation\", \"timetics\"),\n    hostActionDescription: __(\"The Host will receive a confirmation email containing a link to create that event on their calendar\", \"timetics\"),\n    customerNotification: \"booking_created_email_customer\",\n    hostNotification: \"booking_created_email_host\",\n    notificationToHost: \"booking_created_host\",\n    notificationToCustomer: \"booking_created_customer\",\n    emailDataPrefix: \"booking_created_\"\n  }, {\n    panelTitle: __(\"After Booking Cancellation\", \"timetics\"),\n    customerModalTitle: __(\"Notification to Customer After Booking Canceled\", \"timetics\"),\n    customerActionDescription: __(\"Your Attendees/Customers/Clients will receive a cancellation email\", \"timetics\"),\n    hostModalTitle: __(\"Notification to Host After Booking Canceled\", \"timetics\"),\n    hostActionDescription: __(\"The Host will receive a cancellation email\", \"timetics\"),\n    customerNotification: \"booking_canceled_email_customer\",\n    hostNotification: \"booking_canceled_email_host\",\n    notificationToHost: \"booking_canceled_host\",\n    notificationToCustomer: \"booking_canceled_customer\",\n    emailDataPrefix: \"booking_canceled_\"\n  }, {\n    panelTitle: __(\"After Booking is Rescheduled\", \"timetics\"),\n    customerModalTitle: __(\"Notification to Customer After Booking Rescheduled\", \"timetics\"),\n    customerActionDescription: __(\"Your Attendees/Customers/Clients will receive a confirmation email containing a link to create that event on their calendar\", \"timetics\"),\n    hostModalTitle: __(\"Notification to Host After Booking Rescheduled\", \"timetics\"),\n    hostActionDescription: __(\"The Host will receive a confirmation email containing a link to create that event on their calendar\", \"timetics\"),\n    customerNotification: \"booking_rescheduled_email_customer\",\n    hostNotification: \"booking_rescheduled_email_host\",\n    notificationToHost: \"booking_rescheduled_host\",\n    notificationToCustomer: \"booking_rescheduled_customer\",\n    emailDataPrefix: \"booking_rescheduled_\"\n  }, {\n    panelTitle: __(\"Reminder Before Meeting\", \"timetics\"),\n    customerModalTitle: __(\"Notification to Customer Reminder Before Meeting\", \"timetics\"),\n    customerActionDescription: __(\"Your Attendees/Customers/Clients will receive an Email reminding them about the meeting\", \"timetics\"),\n    hostModalTitle: __(\"Notification to Host Reminder Before Meeting\", \"timetics\"),\n    hostActionDescription: __(\"The Host will receive a confirmation email containing a link to create that event on their calendar.\", \"timetics\"),\n    customerNotification: \"booking_created_email_customer\",\n    hostNotification: \"booking_created_email_host\",\n    children: /*#__PURE__*/React.createElement(_components_notification_ReminderTime__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null),\n    notificationToHost: \"booking_reminder_host\",\n    notificationToCustomer: \"booking_reminder_customer\",\n    emailDataPrefix: \"booking_reminder_\"\n    // key: notifications.booking_created_email_form,\n  }];\n}\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/Notification.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/Payments.js":
/*!*****************************************************!*\
  !*** ./assets/src/admin/pages/settings/Payments.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 _paymentsForm_Stripe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./paymentsForm/Stripe */ \"./assets/src/admin/pages/settings/paymentsForm/Stripe.js\");\n/* harmony import */ var _common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/icons/Icons */ \"./assets/src/common/icons/Icons.js\");\n/* harmony import */ var _paymentsForm_Local__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./paymentsForm/Local */ \"./assets/src/admin/pages/settings/paymentsForm/Local.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.js\");\n/* harmony import */ var _components_GoProButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/GoProButton */ \"./assets/src/admin/components/GoProButton.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); }); }; }\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  useState = _window$React.useState,\n  useEffect = _window$React.useEffect;\n\n\n\nvar _window$antd = window.antd,\n  Collapse = _window$antd.Collapse,\n  Card = _window$antd.Card,\n  Switch = _window$antd.Switch;\nvar Meta = Card.Meta;\nvar Panel = Collapse.Panel;\nvar __ = wp.i18n.__;\n\n\n\nfunction Payments() {\n  var _timetics, _timetics2, _timetics3;\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_3__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var _useState = useState(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    loading = _useState2[0],\n    setLoading = _useState2[1];\n  var settings = settingsReducer.settings;\n  var stripePaymentStatusChange = /*#__PURE__*/function () {\n    var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(checked) {\n      var _res$data;\n      var res;\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_generalSettings__WEBPACK_IMPORTED_MODULE_4__.generalSettings)({\n                method: \"PUT\",\n                data: {\n                  stripe_status: checked,\n                  wc_integration: false\n                }\n              });\n            case 3:\n              res = _context.sent;\n              dispatch({\n                type: \"SET_SETTINGS\",\n                payload: res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.data\n              });\n              setLoading(false);\n            case 6:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function stripePaymentStatusChange(_x) {\n      return _ref.apply(this, arguments);\n    };\n  }();\n  var onLocalPaymentStatusChange = /*#__PURE__*/function () {\n    var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(checked) {\n      var _res$data2;\n      var res;\n      return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n        while (1) {\n          switch (_context2.prev = _context2.next) {\n            case 0:\n              setLoading(true);\n              _context2.next = 3;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_4__.generalSettings)({\n                method: \"PUT\",\n                data: {\n                  local_pay_status: checked,\n                  wc_integration: false\n                }\n              });\n            case 3:\n              res = _context2.sent;\n              dispatch({\n                type: \"SET_SETTINGS\",\n                payload: res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.data\n              });\n              setLoading(false);\n            case 6:\n            case \"end\":\n              return _context2.stop();\n          }\n        }\n      }, _callee2);\n    }));\n    return function onLocalPaymentStatusChange(_x2) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n  var WooCommerceIntegration = /*#__PURE__*/function () {\n    var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(checked) {\n      var _res$data3;\n      var res;\n      return _regeneratorRuntime().wrap(function _callee3$(_context3) {\n        while (1) {\n          switch (_context3.prev = _context3.next) {\n            case 0:\n              setLoading(true);\n              _context3.next = 3;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_4__.generalSettings)({\n                method: \"PUT\",\n                data: {\n                  wc_integration: checked,\n                  local_pay_status: checked == true ? false : false,\n                  stripe_status: checked == true ? false : false,\n                  paypal_status: checked == true ? false : false\n                }\n              });\n            case 3:\n              res = _context3.sent;\n              dispatch({\n                type: \"SET_SETTINGS\",\n                payload: res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.data\n              });\n              setLoading(false);\n            case 6:\n            case \"end\":\n              return _context3.stop();\n          }\n        }\n      }, _callee3);\n    }));\n    return function WooCommerceIntegration(_x3) {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n  var paypalIntegration = /*#__PURE__*/function () {\n    var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(checked) {\n      var _res$data4;\n      var res;\n      return _regeneratorRuntime().wrap(function _callee4$(_context4) {\n        while (1) {\n          switch (_context4.prev = _context4.next) {\n            case 0:\n              setLoading(true);\n              _context4.next = 3;\n              return (0,_services_generalSettings__WEBPACK_IMPORTED_MODULE_4__.generalSettings)({\n                method: \"PUT\",\n                data: {\n                  paypal_status: checked,\n                  wc_integration: false\n                },\n                params: {\n                  stopToast: !window.timeticsPro ? true : false\n                }\n              });\n            case 3:\n              res = _context4.sent;\n              dispatch({\n                type: \"SET_SETTINGS\",\n                payload: res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.data\n              });\n              setLoading(false);\n            case 6:\n            case \"end\":\n              return _context4.stop();\n          }\n        }\n      }, _callee4);\n    }));\n    return function paypalIntegration(_x4) {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n  useEffect(function () {\n    !window.timeticsPro && (settings === null || settings === void 0 ? void 0 : settings.paypal_status) == true && paypalIntegration(false);\n  }, []);\n  return /*#__PURE__*/React.createElement(Collapse, {\n    className: \"tt-payment-settings\",\n    bordered: true,\n    ghost: true,\n    expandIconPosition: \"end\",\n    activeKey: !!settings[\"stripe_status\"] && !!settings[\"paypal_status\"] ? [\"1\", \"4\"] : !!settings[\"stripe_status\"] ? [\"1\"] : !!settings[\"paypal_status\"] ? [\"4\"] : null,\n    collapsible: \"header\",\n    expandIcon: function expandIcon(_ref5) {\n      var isActive = _ref5.isActive;\n      return /*#__PURE__*/React.createElement(Switch, {\n        onClick: function onClick() {\n          stripePaymentStatusChange(!settings[\"stripe_status\"]);\n        },\n        checked: settings[\"stripe_status\"]\n      });\n    }\n  }, /*#__PURE__*/React.createElement(Panel, {\n    key: \"1\",\n    header: /*#__PURE__*/React.createElement(Card, {\n      bodyStyle: {\n        padding: \"0\"\n      },\n      bordered: false,\n      onClick: function onClick(e) {\n        return stripePaymentStatusChange(!settings[\"stripe_status\"]);\n      },\n      size: \"small\",\n      style: {\n        backgroundColor: \"transparent\"\n      }\n    }, /*#__PURE__*/React.createElement(Meta, {\n      avatar: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.StripeIcon, null),\n      title: __(\"Stripe Payment\", \"timetics\"),\n      description: __(\"Connect your stripe payments.\", \"timetics\")\n    }))\n  }, /*#__PURE__*/React.createElement(_paymentsForm_Stripe__WEBPACK_IMPORTED_MODULE_0__[\"default\"], null)), /*#__PURE__*/React.createElement(Panel, {\n    className: \"tt-local-payment-panel\",\n    extra: /*#__PURE__*/React.createElement(_paymentsForm_Local__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n      onLocalPaymentStatusChange: onLocalPaymentStatusChange\n    }),\n    showArrow: false,\n    key: \"2\",\n    header: /*#__PURE__*/React.createElement(Card, {\n      bodyStyle: {\n        padding: \"0\"\n      },\n      bordered: false,\n      size: \"small\",\n      style: {\n        backgroundColor: \"transparent\"\n      },\n      onClick: function onClick(e) {\n        return onLocalPaymentStatusChange(!settings[\"local_pay_status\"]);\n      }\n    }, /*#__PURE__*/React.createElement(Meta, {\n      avatar: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.DocIcon, null),\n      title: __(\"Local Payment\", \"timetics\"),\n      description: __(\"Configure this section to pay locally.\", \"timetics\")\n    }))\n  }), /*#__PURE__*/React.createElement(Panel, {\n    className: \"tt-woocommerce-payment\",\n    extra: /*#__PURE__*/React.createElement(Switch, {\n      checked: !!settings[\"wc_integration\"],\n      onChange: function onChange(checked) {\n        WooCommerceIntegration(checked);\n      }\n    }),\n    showArrow: false,\n    key: \"3\",\n    header: /*#__PURE__*/React.createElement(Card, {\n      bodyStyle: {\n        padding: \"0\"\n      },\n      bordered: false,\n      size: \"small\",\n      style: {\n        backgroundColor: \"transparent\"\n      },\n      onClick: function onClick(e) {\n        return WooCommerceIntegration(!settings[\"wc_integration\"]);\n      }\n    }, /*#__PURE__*/React.createElement(Meta, {\n      avatar: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.WooCommerceIcon, null),\n      title: __(\"WooCommerce\", \"timetics\"),\n      description: __(\"Connect your WooCommerce to sync your booked events.\", \"timetics\")\n    }))\n  }), /*#__PURE__*/React.createElement(Panel, {\n    className: \"tt-paypal-payment\",\n    collapsible: ((_timetics = timetics) === null || _timetics === void 0 ? void 0 : _timetics.timeticsPro) != \"1\" ? \"disabled\" : \" \",\n    extra: ((_timetics2 = timetics) === null || _timetics2 === void 0 ? void 0 : _timetics2.timeticsPro) != \"1\" ? /*#__PURE__*/React.createElement(_components_GoProButton__WEBPACK_IMPORTED_MODULE_5__[\"default\"], null) : /*#__PURE__*/React.createElement(Switch, {\n      disabled: ((_timetics3 = timetics) === null || _timetics3 === void 0 ? void 0 : _timetics3.timeticsPro) != \"1\" ? true : false,\n      checked: !!settings[\"paypal_status\"],\n      onChange: function onChange(checked) {\n        window.timeticsPro && paypalIntegration(checked);\n      }\n    }),\n    showArrow: false,\n    key: \"4\",\n    header: /*#__PURE__*/React.createElement(Card, {\n      bodyStyle: {\n        padding: \"0\"\n      },\n      bordered: false,\n      size: \"small\",\n      style: {\n        backgroundColor: \"transparent\"\n      },\n      onClick: function onClick(e) {\n        e.preventDefault();\n        window.timeticsPro && paypalIntegration(!settings[\"paypal_status\"]);\n      }\n    }, /*#__PURE__*/React.createElement(Meta, {\n      avatar: /*#__PURE__*/React.createElement(_common_icons_Icons__WEBPACK_IMPORTED_MODULE_1__.PayPalIcon, null),\n      title: __(\"PayPal Payment\", \"timetics\"),\n      description: __(\"Connect your PayPal payments.\", \"timetics\")\n    }))\n  }, wp.hooks.applyFilters(\"paypalSetting\")));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Payments);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/Payments.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/WeeklyHours.js":
/*!********************************************************!*\
  !*** ./assets/src/admin/pages/settings/WeeklyHours.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_SingleDaySchedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../components/SingleDaySchedule */ \"./assets/src/admin/components/SingleDaySchedule.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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; }\n\n\nfunction WeeklyHours() {\n  var _schedules$staff;\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_1__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 1),\n    settingsReducer = _useStateValue2[0].settings;\n  var settings = settingsReducer.settings;\n  var schedules = settings.availability;\n  return /*#__PURE__*/React.createElement(React.Fragment, null, schedules && ((_schedules$staff = schedules[\"staff\"]) === null || _schedules$staff === void 0 ? void 0 : _schedules$staff.map(function (schedule, schduleIndex) {\n    return /*#__PURE__*/React.createElement(React.Fragment, {\n      key: \"schedule-item-\".concat(schduleIndex)\n    }, /*#__PURE__*/React.createElement(_components_SingleDaySchedule__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n      schedule: _objectSpread({}, schedule)\n      // key={`schdule-item-${index}`}\n      ,\n      scheduleIndex: schduleIndex,\n      schedules: schedules[\"staff\"],\n      staffId: \"staff\"\n    }));\n  })));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (WeeklyHours);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/WeeklyHours.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/colorPickerSetting.js":
/*!***************************************************************!*\
  !*** ./assets/src/admin/pages/settings/colorPickerSetting.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 _actionCreators_actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../actionCreators/actions */ \"./assets/src/admin/actionCreators/actions.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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 useState = React.useState,\n  useRef = React.useRef,\n  useEffect = React.useEffect;\n\n\nfunction ColorPickerSettings(_ref) {\n  var name = _ref.name,\n    defaultColor = _ref.defaultColor;\n  var colorPickerInput = useRef(null);\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_1__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var settings = settingsReducer.settings;\n  useEffect(function () {\n    jQuery(colorPickerInput.current).wpColorPicker({\n      change: function change(event, ui) {\n        dispatch({\n          type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_0__.actions.SET_SETTINGS_COLOR,\n          payload: _defineProperty({}, name, ui.color.toString())\n        });\n      }\n    });\n  }, []);\n  var handleChange = function handleChange(event) {\n    var newValue = event.target.value;\n    dispatch({\n      type: _actionCreators_actions__WEBPACK_IMPORTED_MODULE_0__.actions.SET_SETTINGS_COLOR,\n      payload: _defineProperty({}, name, newValue)\n    });\n  };\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-color-picker\"\n  }, /*#__PURE__*/React.createElement(\"input\", {\n    type: \"text\",\n    ref: colorPickerInput,\n    onChange: handleChange,\n    value: settings && settings[name] ? settings[name] : defaultColor\n  }));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ColorPickerSettings);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/colorPickerSetting.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/constant.js":
/*!*****************************************************!*\
  !*** ./assets/src/admin/pages/settings/constant.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 */   \"LOCALES\": () => (/* binding */ LOCALES)\n/* harmony export */ });\nvar LOCALES = {\n  Arabic: \"ar\",\n  Austria: \"at\",\n  Azerbaijan: \"az\",\n  Belarusian: \"be\",\n  Bosnian: \"bs\",\n  Bulgarian: \"bg\",\n  Bangla: \"bn\",\n  Catalan: \"cat\",\n  Kurdish: \"ckb\",\n  Czech: \"cs\",\n  Welsh: \"cy\",\n  Danish: \"da\",\n  German: \"de\",\n  english: \"en\",\n  Esperanto: \"eo\",\n  Spanish: \"es\",\n  Estonian: \"et\",\n  Persian: \"fa\",\n  Finnish: \"fi\",\n  Faroese: \"fo\",\n  French: \"fr\",\n  Greek: \"gr\",\n  Hebrew: \"he\",\n  Hindi: \"hi\",\n  Croatian: \"hr\",\n  Hungarian: \"hu\",\n  Armenian: \"hy\",\n  Indonesian: \"id\",\n  Icelandic: \"is\",\n  Italian: \"it\",\n  Japanese: \"ja\",\n  Georgian: \"ka\",\n  Korean: \"ko\",\n  Khmer: \"km\",\n  Kazakh: \"kz\",\n  Lithuanian: \"lt\",\n  Latvian: \"lv\",\n  Macedonian: \"mk\",\n  Mongolian: \"mn\",\n  Malaysian: \"ms\",\n  Burmese: \"my\",\n  Dutch: \"nl\",\n  NorwegianNynorsk: \"nn\",\n  Norwegian: \"no\",\n  Punjabi: \"pa\",\n  Polish: \"pl\",\n  Portuguese: \"pt\",\n  Romanian: \"ro\",\n  Russian: \"ru\",\n  Sinhala: \"si\",\n  Slovak: \"sk\",\n  Slovenian: \"sl\",\n  Albanian: \"sq\",\n  Serbian: \"sr\",\n  Swedish: \"sv\",\n  Thai: \"th\",\n  Turkish: \"tr\",\n  Ukrainian: \"uk\",\n  Uzbek: \"uz\",\n  UzbekLatin: \"uzLatn\",\n  Vietnamese: \"vn\",\n  Mandarin: \"zh\",\n  MandarinTraditional: \"zhTw\"\n};\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/constant.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/index.js":
/*!**************************************************!*\
  !*** ./assets/src/admin/pages/settings/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 _General__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./General */ \"./assets/src/admin/pages/settings/General.js\");\n/* harmony import */ var _components_MainPageHeader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/MainPageHeader */ \"./assets/src/admin/components/MainPageHeader.js\");\n/* harmony import */ var _Integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Integrations */ \"./assets/src/admin/pages/settings/Integrations.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _actionCreators_actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../actionCreators/actions */ \"./assets/src/admin/actionCreators/actions.js\");\n/* harmony import */ var _utils_dummyData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/dummyData */ \"./assets/src/admin/utils/dummyData.js\");\n/* harmony import */ var _Availability__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Availability */ \"./assets/src/admin/pages/settings/Availability.js\");\n/* harmony import */ var _Payments__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Payments */ \"./assets/src/admin/pages/settings/Payments.js\");\n/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Notification */ \"./assets/src/admin/pages/settings/Notification.js\");\n/* harmony import */ var _actionCreators_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../actionCreators/common */ \"./assets/src/admin/actionCreators/common.js\");\n/* harmony import */ var _CustomizeForm__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./CustomizeForm */ \"./assets/src/admin/pages/settings/CustomizeForm.js\");\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  Tabs = _window$antd.Tabs,\n  Skeleton = _window$antd.Skeleton;\nvar __ = wp.i18n.__;\n\n\n\n\n\nvar useEffect = React.useEffect,\n  useState = React.useState;\n\n\n\n\n\n\n\nvar Settings = function Settings() {\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_4__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var loading = settingsReducer.loading;\n  useEffect(function () {\n    (0,_actionCreators_common__WEBPACK_IMPORTED_MODULE_10__.setState)({\n      dispatch: dispatch,\n      name: \"editAvailability\",\n      value: true\n    });\n    return function () {\n      (0,_actionCreators_common__WEBPACK_IMPORTED_MODULE_10__.setState)({\n        dispatch: dispatch,\n        name: \"editAvailability\",\n        value: false\n      });\n    };\n  }, []);\n\n  /**\n   * Tabs data\n   */\n  var tabsData = [{\n    label: __(\"General\", \"timetics\"),\n    key: \"general\",\n    children: /*#__PURE__*/React.createElement(_General__WEBPACK_IMPORTED_MODULE_0__[\"default\"], null)\n  }, {\n    label: __(\"Availability\", \"timetics\"),\n    key: \"availability\",\n    children: /*#__PURE__*/React.createElement(_Availability__WEBPACK_IMPORTED_MODULE_7__[\"default\"], null)\n  }, {\n    label: __(\"Integrations\", \"timetics\"),\n    key: \"integrations\",\n    children: /*#__PURE__*/React.createElement(_Integrations__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null)\n  }, {\n    label: __(\"Notifications\", \"timetics\"),\n    key: \"notifications\",\n    children: /*#__PURE__*/React.createElement(_Notification__WEBPACK_IMPORTED_MODULE_9__[\"default\"], null)\n  }, {\n    label: __(\"Payment\", \"timetics\"),\n    key: \"payment\",\n    children: /*#__PURE__*/React.createElement(_Payments__WEBPACK_IMPORTED_MODULE_8__[\"default\"], null)\n  }, {\n    label: __(\"Customize form\", \"timetics\"),\n    key: \"customfields\",\n    children: /*#__PURE__*/React.createElement(_CustomizeForm__WEBPACK_IMPORTED_MODULE_11__[\"default\"], null)\n  }];\n  if (loading) {\n    return /*#__PURE__*/React.createElement(Skeleton, {\n      active: true\n    });\n  }\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components_MainPageHeader__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    title: __(\"Settings\", \"timetics\")\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-container-wrapper\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"tt-form-container\"\n  }, /*#__PURE__*/React.createElement(Tabs, {\n    defaultActiveKey: \"general\",\n    size: \"large\",\n    className: \"tt-settings-wrapper\",\n    items: tabsData,\n    tabPosition: \"top\"\n  }))));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Settings);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/index.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/integrationForm/GoogleCalendarForm.js":
/*!*******************************************************************************!*\
  !*** ./assets/src/admin/pages/settings/integrationForm/GoogleCalendarForm.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\": () => (/* binding */ GoogleCalendarForm)\n/* harmony export */ });\n/* harmony import */ var _common_TextInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../common/TextInput */ \"./assets/src/common/TextInput.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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  Button = _window$antd.Button,\n  Form = _window$antd.Form,\n  Input = _window$antd.Input,\n  Tooltip = _window$antd.Tooltip,\n  Typography = _window$antd.Typography,\n  message = _window$antd.message;\nvar Text = Typography.Text,\n  Link = Typography.Link;\nvar __ = wp.i18n.__;\nvar _window$React = window.React,\n  useState = _window$React.useState,\n  useEffect = _window$React.useEffect;\n\n\n\nfunction GoogleCalendarForm() {\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_1__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var settings = settingsReducer.settings;\n  var _useState = useState(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    loading = _useState2[0],\n    setLoading = _useState2[1];\n  var _Form$useForm = Form.useForm(),\n    _Form$useForm2 = _slicedToArray(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n\n  /**\n   * On finish method that can handle staff create\n   * @param {Object} values\n   */\n  var onFinish = /*#__PURE__*/function () {\n    var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {\n      var res;\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_generalSettings__WEBPACK_IMPORTED_MODULE_2__.generalSettings)({\n                method: \"PUT\",\n                data: _objectSpread({}, values)\n              });\n            case 3:\n              res = _context.sent;\n              setLoading(false);\n            case 5:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function onFinish(_x) {\n      return _ref.apply(this, arguments);\n    };\n  }();\n\n  /**\n   * On finish faild method that can handle staff create faild\n   * @param {Object} values\n   */\n  var onFinishFailed = function onFinishFailed(errorInfo) {\n    message.error(errorInfo);\n  };\n  var copyToClipBored = function copyToClipBored(e) {\n    navigator.clipboard.writeText(e.target.value);\n    message.success({\n      content: \"Redirect url copy to clipboard\",\n      style: {\n        marginTop: \"5vh\"\n      }\n    });\n  };\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form, {\n    form: form,\n    name: \"integration_form\",\n    layout: \"vertical\",\n    onFinish: onFinish,\n    onFinishFailed: onFinishFailed,\n    initialValues: settings\n  }, /*#__PURE__*/React.createElement(\"p\", null, __(\" Login to your Google account, go to Google Cloud Console, create a project, complete OAuth  Consent screen process, click on Create Credentials, and you'll get your client id and secret key. If you get the ID and Keys for Google Calendar, Goole Meet will be integrated automatically. For full details read the \", \"timetics\"), /*#__PURE__*/React.createElement(Link, {\n    target: \"_blank\",\n    type: \"link\",\n    href: \"https://docs.arraytics.com/docs/timetics/integrations/google-meet-calendar-integration/\"\n  }, __(\"documentation.\", \"timetics\"))), /*#__PURE__*/React.createElement(_common_TextInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    label: __(\"Client ID\", \"timetics\"),\n    name: \"google_app_client_id\",\n    type: \"text\",\n    size: \"middle\",\n    placeholder: __(\"Enter Client ID\", \"timetics\"),\n    tooltip: __(\"Enter Client ID\", \"timetics\")\n  }), /*#__PURE__*/React.createElement(_common_TextInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    label: __(\"Client Secret key\", \"timetics\"),\n    name: \"google_app_client_secret\",\n    type: \"text\",\n    size: \"middle\",\n    tooltip: __(\"Enter Client Secret Key\", \"timetics\"),\n    placeholder: __(\"Enter Client Secret Key\", \"timetics\")\n  }), /*#__PURE__*/React.createElement(_common_TextInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    label: __(\"Redirect URl\", \"timetics\"),\n    name: \"google_auth_redirect_uri\",\n    type: \"text\",\n    size: \"middle\",\n    readOnly: true,\n    tooltip: __(\"Redirect URL will be automatically generated when you connect Google Calendar and Google Meet\", \"timetics\"),\n    placeholder: __(\"Redirect url\", \"timetics\"),\n    onClick: copyToClipBored\n  }), /*#__PURE__*/React.createElement(Button, {\n    type: \"primary\",\n    htmlType: \"submit\",\n    size: \"large\",\n    loading: loading\n  }, __(\"Save\", \"timetics\"))));\n}\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/integrationForm/GoogleCalendarForm.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/paymentsForm/Local.js":
/*!***************************************************************!*\
  !*** ./assets/src/admin/pages/settings/paymentsForm/Local.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 _context_provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.js\");\nvar _window, _wp, _window2;\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 = window) === null || _window === void 0 ? void 0 : _window.React,\n  useState = _window$React.useState;\n\n\nvar _wp$i18n = (_wp = wp) === null || _wp === void 0 ? void 0 : _wp.i18n,\n  __ = _wp$i18n.__;\nvar _window$antd = (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.antd,\n  Switch = _window$antd.Switch,\n  Space = _window$antd.Space;\nfunction Local(_ref) {\n  var onLocalPaymentStatusChange = _ref.onLocalPaymentStatusChange;\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_0__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var _useState = useState(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    loading = _useState2[0],\n    setLoading = _useState2[1];\n  var settings = settingsReducer.settings;\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, {\n    direction: \"horizontal\"\n  }, /*#__PURE__*/React.createElement(Switch, {\n    checked: !!settings[\"local_pay_status\"],\n    onChange: function onChange(checked) {\n      onLocalPaymentStatusChange(checked);\n    },\n    loading: loading\n  })));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Local);\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/paymentsForm/Local.js?");

/***/ }),

/***/ "./assets/src/admin/pages/settings/paymentsForm/Stripe.js":
/*!****************************************************************!*\
  !*** ./assets/src/admin/pages/settings/paymentsForm/Stripe.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\": () => (/* binding */ Stripe)\n/* harmony export */ });\n/* harmony import */ var _common_TextInput__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../common/TextInput */ \"./assets/src/common/TextInput.js\");\n/* harmony import */ var _context_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../context/provider */ \"./assets/src/admin/context/provider.js\");\n/* harmony import */ var _services_generalSettings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/generalSettings */ \"./assets/src/admin/services/generalSettings.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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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  Button = _window$antd.Button,\n  Form = _window$antd.Form,\n  Typography = _window$antd.Typography;\nvar Link = Typography.Link;\nvar __ = wp.i18n.__;\nvar _window$React = window.React,\n  useState = _window$React.useState,\n  useEffect = _window$React.useEffect;\n\n\n\nfunction Stripe() {\n  var _useStateValue = (0,_context_provider__WEBPACK_IMPORTED_MODULE_1__.useStateValue)(),\n    _useStateValue2 = _slicedToArray(_useStateValue, 2),\n    settingsReducer = _useStateValue2[0].settings,\n    dispatch = _useStateValue2[1];\n  var settings = settingsReducer.settings;\n  var _useState = useState(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    loading = _useState2[0],\n    setLoading = _useState2[1];\n  var _Form$useForm = Form.useForm(),\n    _Form$useForm2 = _slicedToArray(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n\n  /**\n   * On finish method that can handle staff create\n   * @param {Object} values\n   */\n  var onFinish = /*#__PURE__*/function () {\n    var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {\n      var res;\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_generalSettings__WEBPACK_IMPORTED_MODULE_2__.generalSettings)({\n                method: \"PUT\",\n                data: _objectSpread({}, values)\n              });\n            case 3:\n              res = _context.sent;\n              setLoading(false);\n            case 5:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    return function onFinish(_x) {\n      return _ref.apply(this, arguments);\n    };\n  }();\n\n  /**\n   * On finish faild method that can handle staff create faild\n   * @param {Object} values\n   */\n  var onFinishFailed = function onFinishFailed(errorInfo) {\n    message.error(errorInfo);\n  };\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form, {\n    form: form,\n    name: \"payment_stripe_form\",\n    layout: \"vertical\",\n    onFinish: onFinish,\n    onFinishFailed: onFinishFailed,\n    initialValues: settings\n  }, /*#__PURE__*/React.createElement(\"p\", null, __(\" Connect or create a Stripe account to accept payments  directly onsite, including Payment Request buttons (such as Apple Pay and Google Pay), iDEAL, SEPA, Sofort, and more international payment methods.\", \"timetics\"), /*#__PURE__*/React.createElement(Link, {\n    target: \"_blank\",\n    type: \"link\",\n    href: \"https://dashboard.stripe.com/account/webhooks\"\n  }, __(\"Stripe account settings\", \"timetics\"))), /*#__PURE__*/React.createElement(_common_TextInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    label: __(\" Publishable key\", \"timetics\"),\n    name: \"stripe_pub_key\",\n    type: \"text\",\n    size: \"middle\",\n    placeholder: __(\"Enter  publishable key\", \"timetics\"),\n    tooltip: __('Only values starting with \"pk__\" will be saved.', \"timetics\")\n  }), /*#__PURE__*/React.createElement(_common_TextInput__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    label: __(\"Secret key\", \"timetics\"),\n    name: \"stripe_secret_key\",\n    type: \"text\",\n    size: \"middle\",\n    tooltip: __('Only values starting with \"sk__\" or \"rk__\" will be saved.', \"timetics\"),\n    placeholder: __(\"Enter  secret key\", \"timetics\")\n  }), /*#__PURE__*/React.createElement(Button, {\n    type: \"primary\",\n    htmlType: \"submit\",\n    size: \"large\",\n    loading: loading\n  }, __(\"Save\", \"timetics\"))));\n}\n\n//# sourceURL=webpack://timetics/./assets/src/admin/pages/settings/paymentsForm/Stripe.js?");

/***/ }),

/***/ "./assets/src/common/constant.js":
/*!***************************************!*\
  !*** ./assets/src/common/constant.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 */   \"FRONTEND_STEPS\": () => (/* binding */ FRONTEND_STEPS),\n/* harmony export */   \"MEETING_TYPE\": () => (/* binding */ MEETING_TYPE),\n/* harmony export */   \"USER_STEPS\": () => (/* binding */ USER_STEPS)\n/* harmony export */ });\nvar FRONTEND_STEPS = {\n  bookingSchedule: 1,\n  seatMap: 2,\n  contactInfo: 3,\n  paymentForm: 4\n};\nvar USER_STEPS = {\n  userBookingsList: 1,\n  userProfile: 2,\n  userChangePassword: 3\n};\nvar MEETING_TYPE = {\n  oneToOne: \"One-to-One\",\n  oneToMany: \"One-to-Many\",\n  seat: \"seat\"\n};\n\n//# sourceURL=webpack://timetics/./assets/src/common/constant.js?");

/***/ }),

/***/ "./assets/src/frontend/utils/helper.js":
/*!*********************************************!*\
  !*** ./assets/src/frontend/utils/helper.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 */   \"convertMilisecondsToCurrentDateAsMiliseconds\": () => (/* binding */ convertMilisecondsToCurrentDateAsMiliseconds),\n/* harmony export */   \"genrateSeats\": () => (/* binding */ genrateSeats),\n/* harmony export */   \"getDateListFromDayStrings\": () => (/* binding */ getDateListFromDayStrings),\n/* harmony export */   \"getDateRangeOfStartDateAndEndOfTheMonth\": () => (/* binding */ getDateRangeOfStartDateAndEndOfTheMonth),\n/* harmony export */   \"getDayCountOfMonth\": () => (/* binding */ getDayCountOfMonth),\n/* harmony export */   \"getDayNumber\": () => (/* binding */ getDayNumber),\n/* harmony export */   \"getDayNumbers\": () => (/* binding */ getDayNumbers),\n/* harmony export */   \"getDaysThatNotAvailable\": () => (/* binding */ getDaysThatNotAvailable),\n/* harmony export */   \"getPaymentMethods\": () => (/* binding */ getPaymentMethods),\n/* harmony export */   \"getStepNo\": () => (/* binding */ getStepNo),\n/* harmony export */   \"getTimeSlot\": () => (/* binding */ getTimeSlot),\n/* harmony export */   \"getWeekDay\": () => (/* binding */ getWeekDay),\n/* harmony export */   \"isFreeMeeting\": () => (/* binding */ isFreeMeeting),\n/* harmony export */   \"isLocalPayment\": () => (/* binding */ isLocalPayment),\n/* harmony export */   \"isNoPayment\": () => (/* binding */ isNoPayment),\n/* harmony export */   \"isWCPayment\": () => (/* binding */ isWCPayment)\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__);\n/* harmony import */ var _common_constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../common/constant */ \"./assets/src/common/constant.js\");\n\n\n\n/**\n *Handler for getting the day of the week from a date.\n * @param {Object} date Js Date object\n * @returns {String} Day of the week\n */\nfunction getWeekDay(date) {\n  var days = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n  return days[date.getDay()];\n}\n\n/**\n *Handler for getting the day count of a month.\n * @param {Object} date Js Date object\n * @returns {Number} Day count of the month\n */\nvar getDayCountOfMonth = function getDayCountOfMonth() {\n  var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();\n  date.setDate(1); // Set date to the first of the month\n  date.setMonth(date.getMonth() + 1); // Set date to the first of the next month\n  date.setDate(date.getDate() - 1); // Set date to the last day of the current month\n  var dayCount = date.getDate();\n  return dayCount;\n};\nvar getDaysThatNotAvailable = function getDaysThatNotAvailable(schedules) {\n  if (!schedules) return [];\n  var days = schedules.filter(function (day) {\n    return !day.status;\n  });\n  return days.map(function (day) {\n    return day.name.toLocaleLowerCase();\n  });\n};\nvar getDateListFromDayStrings = function getDateListFromDayStrings(_ref) {\n  var _ref$days = _ref.days,\n    days = _ref$days === void 0 ? [] : _ref$days,\n    _ref$currentMonth = _ref.currentMonth,\n    currentMonth = _ref$currentMonth === void 0 ? new Date().getMonth() : _ref$currentMonth;\n  var unavailableDates = [];\n  var date = new Date();\n  var dateForCurrentMonth = new Date(date.setMonth(currentMonth));\n  // get currentMonth day count\n  var dayCount = getDayCountOfMonth(new Date(dateForCurrentMonth));\n  for (var i = 1; i <= dayCount; i++) {\n    var _date = new Date(dateForCurrentMonth);\n    _date.setDate(i);\n    var day = _date.toLocaleDateString(\"en\", {\n      weekday: \"long\"\n    }).toLocaleLowerCase();\n    if (days.includes(day)) {\n      unavailableDates.push(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(_date).format(\"YYYY-MM-DD\"));\n    }\n  }\n  return unavailableDates;\n};\nvar getTimeSlot = function getTimeSlot(_ref2) {\n  var schedule = _ref2.schedule,\n    selectedDate = _ref2.selectedDate,\n    selectedDay = _ref2.selectedDay,\n    duration = _ref2.duration;\n  //get number from du\n  var num = parseInt(duration);\n  //get unit from du\n  var splittedDuration = duration.split(\" \");\n  //convert unit to seconds\n  var multiplier = splittedDuration[1] == \"min\" ? 60 * 1000 : 60 * 60 * 1000;\n  var durationInMilliseconds = multiplier * splittedDuration[0];\n  var day = schedule.find(function (day) {\n    return day.name === selectedDay;\n  });\n\n  // divide the time slots into 30 minutes intervals and return the time slots\n\n  var timeSlots = [];\n  var startTime = convertMilisecondsToCurrentDateAsMiliseconds(day.schedules[0].start.value, selectedDate);\n  var endTime = convertMilisecondsToCurrentDateAsMiliseconds(day.schedules[0].end.value, selectedDate);\n  for (var i = startTime; endTime - i >= durationInMilliseconds; i += durationInMilliseconds) {\n    var date = new Date(selectedDate);\n    date.setHours(0, 0, 0, 0);\n    date.setHours(new Date(i).getHours(), new Date(i).getMinutes(), new Date(i).getSeconds(), new Date(i).getMilliseconds());\n    timeSlots.push(date.getTime());\n  }\n  return timeSlots;\n};\nvar convertMilisecondsToCurrentDateAsMiliseconds = function convertMilisecondsToCurrentDateAsMiliseconds(miliseconds, selectedDate) {\n  var date = new Date(miliseconds);\n  // date.setHours(0, 0, 0, 0);\n  date.setDate(new Date(selectedDate).getDate());\n  date.setHours(new Date(date).getHours(), new Date(date).getMinutes(), new Date(date).getSeconds(), new Date(date).getMilliseconds());\n  return date.getTime();\n};\nvar getDayNumber = function getDayNumber(_ref3) {\n  var days = _ref3.days;\n  var _days = {\n    sunday: 0,\n    monday: 1,\n    tuesday: 2,\n    wednesday: 3,\n    thursday: 4,\n    friday: 5,\n    saturday: 6\n  };\n\n  //convert days to numbers based on _days object\n  var dayNumbers = days.map(function (day) {\n    return _days[day];\n  });\n  return dayNumbers;\n};\nvar getDateRangeOfStartDateAndEndOfTheMonth = function getDateRangeOfStartDateAndEndOfTheMonth(date) {\n  //get date range of the month based on start date\n  var startDate = dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).toDate();\n  var endDate = new Date(date);\n  endDate.setDate(getDayCountOfMonth(startDate));\n  return {\n    startDate: dayjs__WEBPACK_IMPORTED_MODULE_0___default()(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).toDate()).format(\"YYYY-MM-DD\"),\n    endDate: dayjs__WEBPACK_IMPORTED_MODULE_0___default()(endDate).format(\"YYYY-MM-DD\")\n  };\n};\nvar getDayNumbers = function getDayNumbers(schedule) {\n  var _days = {\n    sun: 0,\n    mon: 1,\n    tue: 2,\n    wed: 3,\n    thu: 4,\n    fri: 5,\n    sat: 6\n  };\n\n  //convert days to numbers based on _days object\n  var dayNumbers = Object.keys(schedule).map(function (day) {\n    if (schedule[day].length < 1) {\n      return _days[\"\".concat(String(day).toLocaleLowerCase())];\n    }\n  });\n  //remove undefined values\n  var _dayNumbers = dayNumbers.filter(function (day) {\n    return day !== undefined;\n  });\n  return _dayNumbers;\n};\nvar isNoPayment = function isNoPayment(paymentMethods) {\n  var noPayment = paymentMethods === null || paymentMethods === void 0 ? void 0 : paymentMethods.every(function (method) {\n    return !method.status;\n  });\n  return noPayment;\n};\nvar isLocalPayment = function isLocalPayment(paymentMethods) {\n  var localPayment = paymentMethods.some(function (method) {\n    return method.name == \"Local Pay\" && method.status;\n  });\n  return localPayment;\n};\nvar isWCPayment = function isWCPayment(paymentMethods) {\n  var wcPayment = paymentMethods.some(function (method) {\n    return method.name == \"Woocommerce\" && method.status;\n  });\n  return wcPayment;\n};\nvar isFreeMeeting = function isFreeMeeting(total) {\n  var freeMeeting = total === 0;\n  return freeMeeting;\n};\nvar getPaymentMethods = function getPaymentMethods(paymentMethods) {\n  var methods = paymentMethods.filter(function (method) {\n    return method.status;\n  });\n  return methods;\n};\nvar getStepNo = function getStepNo(_ref4) {\n  var isFree = _ref4.isFree,\n    noPayment = _ref4.noPayment,\n    isLocalPaymentActive = _ref4.isLocalPaymentActive,\n    selectedPaymentMethod = _ref4.selectedPaymentMethod,\n    meetingType = _ref4.meetingType,\n    wcPayment = _ref4.wcPayment;\n  var status = 3;\n  if (isFree) {\n    status = _common_constant__WEBPACK_IMPORTED_MODULE_1__.FRONTEND_STEPS.bookingSchedule;\n    return status;\n  }\n  if (noPayment) {\n    status = _common_constant__WEBPACK_IMPORTED_MODULE_1__.FRONTEND_STEPS.bookingSchedule;\n    return status;\n  }\n  if (isLocalPaymentActive && selectedPaymentMethod == \"Local Pay\") {\n    status = _common_constant__WEBPACK_IMPORTED_MODULE_1__.FRONTEND_STEPS.bookingSchedule;\n    return status;\n  }\n  if (wcPayment) {\n    status = _common_constant__WEBPACK_IMPORTED_MODULE_1__.FRONTEND_STEPS.contactInfo;\n    return status;\n  }\n  if (selectedPaymentMethod == \"Paypal\" || selectedPaymentMethod == \"Stripe\") {\n    status = _common_constant__WEBPACK_IMPORTED_MODULE_1__.FRONTEND_STEPS.paymentForm;\n  }\n  return status;\n};\n\n// demo/test for seat generation\nvar genrateSeats = function genrateSeats(_ref5) {\n  var _ref5$row = _ref5.row,\n    row = _ref5$row === void 0 ? 4 : _ref5$row,\n    _ref5$column = _ref5.column,\n    column = _ref5$column === void 0 ? 12 : _ref5$column,\n    _ref5$label = _ref5.label,\n    label = _ref5$label === void 0 ? \"a,Z|0,100\" : _ref5$label,\n    _ref5$ticketType = _ref5.ticketType,\n    ticketType = _ref5$ticketType === void 0 ? \"vip\" : _ref5$ticketType;\n  var seats = [];\n  var labels = label.split(\"|\");\n  var rowLabels = labels[0].split(\",\");\n  var columnLabels = labels[1].split(\",\");\n  var rowLabelStart = rowLabels[0];\n  var rowLabelEnd = rowLabels[1];\n  var columnLabelStart = columnLabels[0];\n  var columnLabelEnd = columnLabels[1];\n  for (var i = 0; i < row; i++) {\n    var _row = [];\n    for (var j = 0; j < column; j++) {\n      var seat = {\n        row: String.fromCharCode(rowLabelStart.charCodeAt(0) + i),\n        column: +(columnLabelStart + j),\n        status: \"available\",\n        type: ticketType\n      };\n      _row.push(seat);\n    }\n    seats.push(_row);\n  }\n};\ngenrateSeats({\n  row: 4,\n  column: 12,\n  label: \"a,Z|0,100\",\n  ticketType: \"vip\"\n});\n\n//# sourceURL=webpack://timetics/./assets/src/frontend/utils/helper.js?");

/***/ })

}]);