/*
 * 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/).
 */
/******/ (function() { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ "./lite/admin/js/src/index.js":
/*!************************************!*\
  !*** ./lite/admin/js/src/index.js ***!
  \************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _css_styles1_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../css/styles1.css */ \"./lite/admin/css/styles1.css\");\n/* harmony import */ var _css_styles1_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_styles1_css__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _views_campaign_Dashboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./views/campaign/Dashboard */ \"./lite/admin/js/src/views/campaign/Dashboard.js\");\n/* harmony import */ var _views_campaign_CampaignEdit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./views/campaign/CampaignEdit */ \"./lite/admin/js/src/views/campaign/CampaignEdit.js\");\n/* harmony import */ var _views_templates_Gallery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./views/templates/Gallery */ \"./lite/admin/js/src/views/templates/Gallery.js\");\n/* harmony import */ var _views_templates_TemplateEdit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./views/templates/TemplateEdit */ \"./lite/admin/js/src/views/templates/TemplateEdit.js\");\n//This is the main file where all the intialization and routing will happen\n\n\n\n\n\nif ('undefined' !== typeof wp.i18n) {\n  __webpack_require__.g.__ = wp.i18n.__;\n} else {\n  // Create a dummy fallback function incase i18n library isn't available.\n  __webpack_require__.g.__ = function (text, textDomain) {\n    return text;\n  };\n}\nvar element = document.getElementById('ig-es-campaign-gallery-items-wrapper'); // TODO:: check this for router and campaign\nvar campaign_dashboard_element = document.getElementById('ig-es-campaign-dashboard'); // TODO:: check this for router and campaign\n\nvar canUpsellESTemplate = function canUpsellESTemplate(templatePlan, templateVersion) {\n  var canUpsellTemplate = false;\n  if ('lite' === ig_es_main_js_data.es_plan || 'trial' === ig_es_main_js_data.es_plan) {\n    canUpsellTemplate = templatePlan === 'starter' || templatePlan === 'pro';\n  } else if ('starter' === ig_es_main_js_data.es_plan) {\n    canUpsellTemplate = templatePlan === 'pro';\n  }\n  if ('1.0.1' === templateVersion) {\n    if ('lite' === ig_es_main_js_data.es_plan || 'trial' === ig_es_main_js_data.es_plan) {\n      canUpsellTemplate = templatePlan === 'pro' || templatePlan === 'max';\n    } else if ('starter' === ig_es_main_js_data.es_plan) {\n      canUpsellTemplate = templatePlan === 'max';\n    }\n  }\n  return canUpsellTemplate;\n};\n__webpack_require__.g.canUpsellESTemplate = canUpsellESTemplate;\nm.route(campaign_dashboard_element, \"/campaigns\", {\n  \"/campaigns\": {\n    view: function view(vnode) {\n      return [m(_views_campaign_Dashboard__WEBPACK_IMPORTED_MODULE_1__[\"default\"], vnode.attrs)];\n    }\n  },\n  \"/campaign/edit\": {\n    view: function view(vnode) {\n      return [m(_views_campaign_CampaignEdit__WEBPACK_IMPORTED_MODULE_2__[\"default\"], vnode.attrs)];\n    }\n  },\n  \"/campaign/edit/:campaignId\": {\n    view: function view(vnode) {\n      return [m(_views_campaign_CampaignEdit__WEBPACK_IMPORTED_MODULE_2__[\"default\"], vnode.attrs)];\n    }\n  },\n  \"/template/edit\": {\n    view: function view(vnode) {\n      return [m(_views_templates_TemplateEdit__WEBPACK_IMPORTED_MODULE_4__[\"default\"], vnode.attrs)];\n    }\n  },\n  \"/template/edit/:templateId\": {\n    view: function view(vnode) {\n      return [m(_views_templates_TemplateEdit__WEBPACK_IMPORTED_MODULE_4__[\"default\"], vnode.attrs)];\n    }\n  },\n  \"/gallery\": {\n    view: function view(vnode) {\n      vnode.attrs.campaignType = 'undefined' !== typeof vnode.attrs.campaignType ? vnode.attrs.campaignType : ig_es_main_js_data.post_notification_campaign_type;\n      vnode.attrs.campaignId = 'undefined' !== typeof vnode.attrs.campaignId ? vnode.attrs.campaignId : 0;\n      vnode.attrs.manageTemplates = 'undefined' !== typeof vnode.attrs.manageTemplates ? vnode.attrs.manageTemplates : 'no';\n      return [m(_views_templates_Gallery__WEBPACK_IMPORTED_MODULE_3__[\"default\"], vnode.attrs)];\n    }\n  }\n});\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/index.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/models/campaigns/CampaignKPIsModel.js":
/*!*****************************************************************!*\
  !*** ./lite/admin/js/src/models/campaigns/CampaignKPIsModel.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar CampaignKIPsModel = /*#__PURE__*/function () {\n  function CampaignKIPsModel() {\n    _classCallCheck(this, CampaignKIPsModel);\n    _defineProperty(this, \"filters\", {\n      searchText: '',\n      selectedCampaignType: '',\n      selectedCampaignStatus: ''\n    });\n    _defineProperty(this, \"showLoader\", true);\n    this.data = {\n      kpis: {},\n      campaigns: []\n    };\n    this.getCampaignsAndStats();\n  }\n  return _createClass(CampaignKIPsModel, [{\n    key: \"getCampaignsAndStats\",\n    value: function getCampaignsAndStats() {\n      var _this = this;\n      var params = {\n        requestData: {\n          method: 'get_kpis',\n          handler: 'campaigns',\n          data: {\n            days: 30\n          }\n        },\n        callback: function callback(response) {\n          if (response.success) {\n            // Campaign.details.campaignId = response.last_inserted_id;\n            // this.data.campaigns.push(Campaign.details);\n            _this.data.kpis = response.data || {};\n          }\n          _this.showLoader = false;\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignKIPsModel);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/models/campaigns/CampaignKPIsModel.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/models/campaigns/CampaignModel.js":
/*!*************************************************************!*\
  !*** ./lite/admin/js/src/models/campaigns/CampaignModel.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _CampaignsModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CampaignsModel */ \"./lite/admin/js/src/models/campaigns/CampaignsModel.js\");\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\n/* harmony import */ var _utils_CampaignConfirmationPopup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/CampaignConfirmationPopup */ \"./lite/admin/js/src/utils/CampaignConfirmationPopup.js\");\n/* harmony import */ var _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/SuccessPopup */ \"./lite/admin/js/src/utils/SuccessPopup.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _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 _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\nvar CampaignModel = /*#__PURE__*/function () {\n  function CampaignModel(urlParams) {\n    _classCallCheck(this, CampaignModel);\n    // Initialize details object if not already set\n    if (typeof CampaignModel.details === 'undefined') {\n      CampaignModel.details = {\n        id: 0,\n        name: '',\n        subject: '',\n        body: '',\n        meta: {}\n      };\n    }\n\n    // Skip default initialization in iframe mode - CampaignEdit will handle loading\n    var urlSearchParams = new URLSearchParams(window.location.search);\n    var isIframeMode = urlSearchParams.get('iframeMode') === 'true' || window.self !== window.top;\n    if (!isIframeMode) {\n      CampaignModel.initialize();\n    }\n  }\n  return _createClass(CampaignModel, null, [{\n    key: \"initialize\",\n    value: function initialize() {\n      CampaignModel.setCurrentCampaign(CampaignModel.currentCampaignID);\n      CampaignModel.setRecipientRules();\n      CampaignModel.updateMatchingRecipientsCount();\n    }\n  }, {\n    key: \"setCurrentCampaign\",\n    value: function setCurrentCampaign(campaignId) {\n      var defaultCampaignData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      var fallbackEditorType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n      var campaignData = {};\n      if (campaignId > 0) {\n        campaignData = _CampaignsModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].data.campaigns.filter(function (x) {\n          return x.id == campaignId;\n        })[0];\n        // If campaign not found in array, use default data\n        if (!campaignData) {\n          console.error(\"[CampaignModel] Campaign with ID \".concat(campaignId, \" not found in campaigns array\"));\n          campaignData = defaultCampaignData;\n        }\n      } else {\n        campaignData = defaultCampaignData;\n      }\n      var meta = campaignData.meta || {};\n      if (typeof meta === 'string') {\n        try {\n          meta = JSON.parse(meta);\n        } catch (e) {\n          meta = {};\n        }\n      }\n      if (fallbackEditorType && (!meta.editor_type || meta.editor_type === '' || meta.editor_type === 'undefined')) {\n        meta.editor_type = fallbackEditorType;\n      }\n      CampaignModel.details = {\n        id: campaignData.id || 0,\n        name: campaignData.name || '',\n        subject: campaignData.subject || '',\n        es_admin_email: campaignData.es_admin_email || '',\n        slug: campaignData.slug || '',\n        type: campaignData.type || '',\n        parent_id: campaignData.parent_id || '',\n        body: campaignData.body || '',\n        from_name: campaignData.from_name || '',\n        from_email: campaignData.from_email || '',\n        reply_to_name: campaignData.reply_to_name || '',\n        reply_to_email: campaignData.reply_to_email || '',\n        categories: campaignData.categories || '',\n        list_names: campaignData.list_ids || '',\n        // list_ids contain contains actual list names\n        base_template_id: campaignData.base_template_id || '',\n        status: campaignData.status || 0,\n        created_at: campaignData.created_at || '',\n        updated_at: campaignData.updated_at || '',\n        meta: meta,\n        formattedCategories: campaignData.formatted_categories || {}\n      };\n    }\n  }, {\n    key: \"setRecipientRules\",\n    value: function setRecipientRules() {\n      var ruleData = ig_es_main_js_data.recipient_rules;\n      var allRules = {};\n      Object.values(ruleData).map(function (x) {\n        allRules = Object.assign(allRules, x);\n      });\n      CampaignModel.allRules = allRules;\n      CampaignModel.ruleRow = {\n        'field': 'list',\n        'operator': 'is',\n        'value': '',\n        'group': 'List'\n      };\n      CampaignModel.ruleGroup = [CampaignModel.ruleRow];\n    }\n  }, {\n    key: \"hasPostBlock\",\n    value: function hasPostBlock() {\n      var postBlockCount = CampaignModel.details.postBlockCount;\n      if (postBlockCount === undefined || postBlockCount === 0) {\n        return false;\n      }\n      return true;\n    }\n  }, {\n    key: \"saveCamapign\",\n    value: function saveCamapign() {\n      var campaignType = CampaignModel.details.type;\n      var editorType = CampaignModel.details.meta.editor_type;\n      if (CampaignModel.details.meta.send_posts_now === 'yes' && campaignType === ig_es_main_js_data.post_notification_campaign_type && editorType === ig_es_main_js_data.dnd_editor_slug) {\n        if (!CampaignModel.hasPostBlock()) {\n          alert(__('Please add at least one post block to send now.', 'email-subscribers'));\n          return;\n        }\n      }\n      CampaignModel.formatCampaignDetail();\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = __('Campaign Saving', 'email-subscribers');\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = true;\n      var params = {\n        requestData: {\n          method: 'save',\n          handler: 'campaign',\n          data: CampaignModel.details\n        },\n        callback: function callback(response) {\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = false;\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = 'Loading';\n          if (response.success) {\n            if (response.data.campaignId) {\n              CampaignModel.details.id = response.data.campaign_id || 0;\n            }\n            _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"].message = 'Campaign Saved Succesfully!';\n            _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"].show = true;\n          } else {\n            if (response.message) {\n              alert(response.message);\n            } else {\n              alert(__('An error occured while processing the request', 'email-subscribers'));\n            }\n          }\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"formatCampaignDetail\",\n    value: function formatCampaignDetail() {\n      var _CampaignModel$detail;\n      if ((_CampaignModel$detail = CampaignModel.details) !== null && _CampaignModel$detail !== void 0 && (_CampaignModel$detail = _CampaignModel$detail.meta) !== null && _CampaignModel$detail !== void 0 && _CampaignModel$detail.list_conditions) {\n        CampaignModel.convertRecipientRules();\n      }\n      CampaignModel.syncEditorData();\n      CampaignModel.addAttachments();\n    }\n  }, {\n    key: \"addAttachments\",\n    value: function addAttachments() {\n      var _CampaignModel$detail2;\n      var existingAttachments = ((_CampaignModel$detail2 = CampaignModel.details) === null || _CampaignModel$detail2 === void 0 || (_CampaignModel$detail2 = _CampaignModel$detail2.meta) === null || _CampaignModel$detail2 === void 0 ? void 0 : _CampaignModel$detail2.attachments) || [];\n      if (!Array.isArray(existingAttachments)) {\n        existingAttachments = existingAttachments ? [existingAttachments] : [];\n      }\n      var attachments = _toConsumableArray(existingAttachments);\n\n      // Read attachments from DOM inputs \n      document.querySelectorAll('input[name=\"data[meta][attachments][]\"]').forEach(function (input) {\n        var attachment = input.value;\n        if (attachment && !attachments.includes(attachment)) {\n          attachments.push(attachment);\n        }\n      });\n      if (!CampaignModel.details.meta) {\n        CampaignModel.details.meta = {};\n      }\n      CampaignModel.details.meta.attachments = attachments;\n    }\n\n    // TODO: Handle this through migrating recipient rules in backend\n  }, {\n    key: \"convertRecipientRules\",\n    value: function convertRecipientRules() {\n      CampaignModel.details.meta.list_conditions = CampaignModel.details.meta.list_conditions.map(function (ruleGroup) {\n        ruleGroup = ruleGroup.map(function (rule) {\n          if (rule.field === 'list') {\n            if (rule.operator === 'is') {\n              rule.field = '_lists__in';\n            } else {\n              rule.field = '_lists__not_in';\n              rule.operator = 'is';\n            }\n          }\n          return rule;\n        });\n        return ruleGroup;\n      });\n    }\n  }, {\n    key: \"syncEditorData\",\n    value: function syncEditorData() {\n      if (CampaignModel.usingDndEditor()) {\n        CampaignModel.addDnDEditorData();\n      } else {\n        CampaignModel.addClassicEditorData();\n      }\n    }\n  }, {\n    key: \"addDnDEditorData\",\n    value: function addDnDEditorData() {\n      CampaignModel.addDnDContentData();\n      if (_utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPostCampaign(CampaignModel.details.type)) {\n        CampaignModel.addCategoryData();\n      }\n    }\n  }, {\n    key: \"addDnDContentData\",\n    value: function addDnDContentData() {\n      try {\n        if (typeof esVisualEditor === 'undefined') {\n          throw new Error('Editor not initialized');\n        }\n        if (typeof esVisualEditor.exportEditorContent !== 'function') {\n          throw new Error('Editor export function not available');\n        }\n        var editorContent = esVisualEditor.exportEditorContent();\n        if (!editorContent || !editorContent.html && !editorContent.data) {\n          throw new Error('No content exported from editor');\n        }\n        CampaignModel.details.body = editorContent.html || '';\n        CampaignModel.details.meta.dnd_editor_data = editorContent.data || '';\n      } catch (error) {\n        console.error('[CampaignModel] Error in addDnDContentData:', error);\n        throw error; // Re-throw to be caught by calling function\n      }\n    }\n  }, {\n    key: \"addCategoryData\",\n    value: function addCategoryData() {\n      if (CampaignModel.usingDndEditor()) {\n        var componentsWrapper = esVisualEditor.getWrapper();\n        var postsComponents = _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].filterComponentsByType('es-posts', componentsWrapper);\n        if (postsComponents.length > 0) {\n          var noOfPosts = [];\n          var categoriesSettings = [];\n          var isPostDigest = false;\n          var sortingOrders = [];\n          postsComponents.forEach(function (component, index) {\n            var postFormat = component.get('post-format');\n            if (typeof postFormat === 'undefined' || postFormat === '') {\n              return false;\n            }\n            var postCategory = component.get('post-category');\n            var postCount = component.get('post-count');\n            if (postCount > 1 || index > 0) {\n              isPostDigest = true;\n            }\n            var postCategories = component.get('post-categories');\n            var customPostTypes = component.get('custom-post-types');\n            var sortingOrder = component.get('sorting-order');\n            var customPostTypesTerms = component.get('custom-post-types-terms');\n            var categorySetting = 'post:';\n            if (postCategory === 'custom') {\n              categorySetting += postCategories.join(',');\n            } else {\n              categorySetting += postCategory;\n            }\n            if (customPostTypes.length > 0) {\n              customPostTypes.forEach(function (cpt) {\n                categorySetting += '|' + cpt + ':';\n                if (customPostTypesTerms && customPostTypesTerms.hasOwnProperty(cpt) && customPostTypesTerms[cpt].length > 0) {\n                  categorySetting += customPostTypesTerms[cpt].join(',');\n                } else {\n                  categorySetting += 'all';\n                }\n              });\n            }\n            categoriesSettings.push(categorySetting);\n            noOfPosts.push(postCount);\n            sortingOrders.push(sortingOrder);\n          });\n          CampaignModel.details.categories = '##' + categoriesSettings.join('##') + '##';\n          if (typeof CampaignModel.details.meta.rules === 'undefined') {\n            CampaignModel.details.meta.rules = {};\n          }\n          CampaignModel.details.meta.rules.no_of_posts = noOfPosts;\n          CampaignModel.details.meta.rules.sorting_orders = sortingOrders;\n          CampaignModel.details.type = isPostDigest ? ig_es_main_js_data.post_digest_campaign_type : ig_es_main_js_data.post_notification_campaign_type;\n        } else {\n          CampaignModel.details.categories = '##post:all##';\n        }\n      } else {\n        var _categoriesSettings = [];\n        var formattedCategories = CampaignModel.details.formattedCategories;\n        if (Object.keys(formattedCategories).length > 0) {\n          for (var postType in formattedCategories) {\n            var categoriesString = '';\n            if (formattedCategories.hasOwnProperty(postType)) {\n              categoriesString += postType + ':';\n              var postTypeCategories = formattedCategories[postType];\n              if (Array.isArray(postTypeCategories)) {\n                postTypeCategories = postTypeCategories.join(',');\n              }\n              categoriesString += postTypeCategories;\n              _categoriesSettings.push(categoriesString);\n            }\n          }\n          CampaignModel.details.categories = '##' + _categoriesSettings.join('|') + '##';\n        }\n      }\n    }\n  }, {\n    key: \"findTypeBasedOnPostsComponents\",\n    value: function findTypeBasedOnPostsComponents() {}\n  }, {\n    key: \"addClassicEditorData\",\n    value: function addClassicEditorData() {\n      if (_utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPostCampaign(CampaignModel.details.type)) {\n        CampaignModel.addCategoryData();\n      }\n      CampaignModel.addClassicEditorContentData();\n    }\n  }, {\n    key: \"addClassicEditorContentData\",\n    value: function addClassicEditorContentData() {\n      if ('undefined' !== typeof window.tinyMCE) {\n        // Trigger save event for content of wp_editor instances to sync its content with actual textarea field\n        window.tinyMCE.triggerSave();\n      }\n      var editorElem = document.getElementById('es-campaign-body');\n      if (editorElem !== null) {\n        var content = editorElem.value;\n        CampaignModel.details.body = content;\n      }\n    }\n  }, {\n    key: \"usingDndEditor\",\n    value: function usingDndEditor() {\n      var _CampaignModel$detail3;\n      return ((_CampaignModel$detail3 = CampaignModel.details) === null || _CampaignModel$detail3 === void 0 || (_CampaignModel$detail3 = _CampaignModel$detail3.meta) === null || _CampaignModel$detail3 === void 0 ? void 0 : _CampaignModel$detail3.editor_type) && CampaignModel.details.meta.editor_type === ig_es_main_js_data.dnd_editor_slug;\n    }\n  }, {\n    key: \"getAdminEmail\",\n    value: function getAdminEmail() {\n      var esTestEmail = document.getElementById(\"es_test_email\").value;\n      if (esTestEmail === \"\") {\n        alert(__('Please enter the valid email id', 'email-subscribers'));\n        return false;\n      } else {\n        CampaignModel.details.es_test_email = esTestEmail;\n      }\n    }\n  }, {\n    key: \"updateCampaignStatus\",\n    value: function updateCampaignStatus(CampaignDetail) {\n      if (CampaignDetail.scheduling_option == 'schedule_now') {\n        CampaignDetail.status = ig_es_main_js_data.campaign_status_codes.queued;\n      } else {\n        CampaignDetail.status = ig_es_main_js_data.campaign_status_codes.scheduled;\n      }\n    }\n  }, {\n    key: \"sendCamapign\",\n    value: function sendCamapign(CampaignDetail) {\n      var isSchedulingOptionSelected = CampaignDetail.scheduling_option === 'schedule_later';\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = isSchedulingOptionSelected ? __('Scheduling campaign', 'email-subscribers') : __('Sending campaign', 'email-subscribers');\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = true;\n      CampaignModel.formatCampaignDetail();\n      CampaignModel.updateCampaignStatus(CampaignDetail);\n      var params = {\n        requestData: {\n          method: 'save_and_schedule',\n          handler: 'campaign',\n          data: CampaignDetail\n        },\n        callback: function callback(response) {\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = false;\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = 'Loading';\n          if (response.success) {\n            _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"].message = 'Campaign Scheduled Successfully!';\n            _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"].show = true;\n            CampaignDetail.status = ig_es_main_js_data.campaign_status_codes.finished;\n          } else {\n            if (response.message) {\n              alert(response.message);\n            } else {\n              alert(__('An error occured while processing the request', 'email-subscribers'));\n            }\n          }\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"testCamapign\",\n    value: function testCamapign(CampaignDetail) {\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = __('Sending test email', 'email-subscribers');\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = true;\n      CampaignModel.formatCampaignDetail();\n      CampaignModel.getAdminEmail();\n      var params = {\n        requestData: {\n          method: 'send_test_email',\n          handler: 'campaign',\n          data: CampaignDetail\n        },\n        callback: function callback(response) {\n          if (response.success) {}\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = false;\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = 'Loading';\n          _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"].message = 'Email Sent Succesfully!';\n          _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"].show = true;\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"closeSpamScoreModal\",\n    value: function closeSpamScoreModal() {\n      var spamScoreModal = document.getElementById('spam_score_modal');\n      spamScoreModal.style.display = 'none';\n    }\n  }, {\n    key: \"appendSpamScore\",\n    value: function appendSpamScore(response) {\n      if (response.data.status === 'success') {\n        if (response.data.res && typeof response.data.res.spamScoreData !== 'undefined') {\n          var score = response.data.res.spamScoreData.score;\n          score = score < 0 ? 0 : score;\n          var esSpamScore = document.querySelector('.es-spam-score');\n          esSpamScore.textContent = score;\n          var spam_score_text = document.querySelector('#spam_score');\n          spam_score_text.textContent = 'Your Spam Score is : ' + score;\n          var esSpamSuccess = document.querySelector('.es-spam-success');\n          var esSpamError = document.querySelector('.es-spam-error');\n          var esSpamErrorLog = document.querySelector('.es-spam-error-log');\n          if (parseInt(score) < 4) {\n            esSpamSuccess.style.display = 'block';\n            esSpamError.style.display = 'none';\n            esSpamErrorLog.style.display = 'none';\n            esSpamScore.classList.add('es-spam-score-success', 'text-green-600');\n            esSpamScore.classList.remove('es-spam-score-error');\n          } else {\n            esSpamError.style.display = 'block';\n            esSpamSuccess.style.display = 'none';\n            esSpamScore.classList.add('es-spam-score-error', 'text-red-600');\n            esSpamScore.classList.remove('es-spam-score-success');\n            esSpamErrorLog.style.display = 'block';\n            var rules = response.data.res.spamScoreData.rules;\n            var esSpamErrorLogUl = esSpamErrorLog.querySelector('ul');\n            esSpamErrorLogUl.innerHTML = '';\n            var ruleClasses = document.getElementById('spam_score_modal') ? 'text-base pb-1 list-none text-center font-medium text-red-400' : '';\n            for (var i = rules.length - 1; i >= 0; i--) {\n              if (rules[i].score > 1.2) {\n                var li = document.createElement('li');\n                li.className = ruleClasses;\n                li.textContent = rules[i].description;\n                esSpamErrorLogUl.appendChild(li);\n              }\n            }\n          }\n          var spamScoreModal = document.getElementById('spam_score_modal');\n          spamScoreModal.style.display = 'block';\n          var spam_check = document.getElementById('spam_check');\n          if (spam_check) {\n            spam_check.textContent = 'Recheck';\n          }\n        }\n      } else {\n        alert(response.data.res.error_message);\n      }\n    }\n  }, {\n    key: \"getSpamScore\",\n    value: function getSpamScore(CampaignDetail) {\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = true;\n      CampaignModel.formatCampaignDetail();\n      var params = {\n        requestData: {\n          method: 'get_spam_score',\n          handler: 'campaign',\n          data: CampaignDetail\n        },\n        callback: function callback(response) {\n          if (response.success) {\n            if (response.data.res && typeof response.data.status !== 'undefined') {\n              CampaignModel.appendSpamScore(response);\n            }\n          }\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = false;\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = 'Loading';\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"getCampaign\",\n    value: function getCampaign(campaignId) {\n      var _this = this;\n      var fallbackEditorType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = true;\n      var params = {\n        requestData: {\n          method: 'get_campaigns',\n          handler: 'campaigns',\n          data: {\n            campaigns_in: [campaignId]\n          }\n        },\n        cacheable: true,\n        callback: function callback(response) {\n          if (response.success) {\n            _CampaignsModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].data.campaigns = response.data.campaigns || [];\n            _this.setCurrentCampaign(campaignId, {}, fallbackEditorType);\n            _this.setRecipientRules();\n            _this.updateMatchingRecipientsCount();\n          }\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = false;\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"saveAndPreview\",\n    value: function saveAndPreview(callBack) {\n      CampaignModel.formatCampaignDetail();\n      var params = {\n        requestData: {\n          method: 'save_and_preview',\n          handler: 'campaign',\n          data: CampaignModel.details\n        },\n        callback: callBack\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"updateMatchingRecipientsCount\",\n    value: function updateMatchingRecipientsCount() {\n      var _CampaignModel$detail4;\n      var listConditions = (_CampaignModel$detail4 = CampaignModel.details) === null || _CampaignModel$detail4 === void 0 || (_CampaignModel$detail4 = _CampaignModel$detail4.meta) === null || _CampaignModel$detail4 === void 0 ? void 0 : _CampaignModel$detail4.list_conditions;\n      if (listConditions) {\n        CampaignModel.convertRecipientRules();\n      }\n      var params = {\n        requestData: {\n          method: 'get_matching_recipients_count',\n          handler: 'campaign',\n          data: {\n            list_conditions: listConditions,\n            status: 'subscribed'\n          }\n        },\n        callback: function callback(response) {\n          if (response.success) {\n            CampaignModel.details.meta.recipient_matching_count = response.data.total || 0;\n          }\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignModel);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/models/campaigns/CampaignModel.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/models/campaigns/CampaignsModel.js":
/*!**************************************************************!*\
  !*** ./lite/admin/js/src/models/campaigns/CampaignsModel.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nvar CampaignsModel = /*#__PURE__*/function () {\n  function CampaignsModel() {\n    _classCallCheck(this, CampaignsModel);\n    _defineProperty(this, \"filters\", {\n      searchText: '',\n      selectedCampaignType: '',\n      selectedCampaignStatus: ''\n    });\n    _defineProperty(this, \"showLoader\", true);\n    this.getCampaignsCount(1);\n    this.getCampaigns(1);\n  }\n  return _createClass(CampaignsModel, [{\n    key: \"getCampaigns\",\n    value: function getCampaigns(currentPage) {\n      var _this = this;\n      CampaignsModel.prepareFilterData();\n      var params = {\n        requestData: {\n          method: 'get_campaigns',\n          handler: 'campaigns',\n          data: {\n            exclude_types: ['sequence_message', 'workflow_email'],\n            order_by_column: 'id',\n            order: 'DESC',\n            currentPage: 1,\n            include_types: CampaignsModel.includeTypes.length > 0 ? CampaignsModel.includeTypes : null,\n            status: CampaignsModel.campaignStatus.length > 0 ? CampaignsModel.campaignStatus : null\n          }\n        },\n        callback: function callback(response) {\n          if (response.success) {\n            CampaignsModel.data.campaigns = response.data.campaigns || [];\n          }\n          _this.showLoader = false;\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"getCampaignsCount\",\n    value: function getCampaignsCount(currentPage) {\n      var selectedCampaignType = '';\n      var selectedCampaignStatus = '';\n      var searchText = '';\n      if (CampaignsModel.selectedCampaignType) {\n        selectedCampaignType = CampaignsModel.selectedCampaignType;\n      }\n      if (CampaignsModel.selectedCampaignStatus) {\n        selectedCampaignStatus = CampaignsModel.selectedCampaignStatus;\n      }\n      if (CampaignsModel.searchText) {\n        searchText = CampaignsModel.searchText;\n      }\n      var params = {\n        requestData: {\n          method: 'get_campaigns_count',\n          handler: 'campaigns',\n          data: {\n            currentPage: currentPage,\n            campaign_type: selectedCampaignType,\n            campaign_status: selectedCampaignStatus,\n            search_text: searchText\n          }\n        },\n        callback: function callback(response) {\n          if (response.success) {\n            CampaignsModel.data.campaign_data = response.data || [];\n          }\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_1__[\"default\"].showLoader = false;\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"deleteCampaigns\",\n    value: function deleteCampaigns(campaignIds, callback) {\n      var params = {\n        requestData: {\n          method: 'delete_campaigns',\n          handler: 'campaigns',\n          data: {\n            campaign_ids: campaignIds\n          }\n        },\n        callback: callback\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"toggleStatus\",\n    value: function toggleStatus(campaignId, newStatus, callback) {\n      var params = {\n        requestData: {\n          method: 'toggle_status',\n          handler: 'campaign',\n          data: {\n            campaign_ids: [campaignId],\n            new_status: newStatus\n          }\n        },\n        callback: callback\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"duplicateCampaign\",\n    value: function duplicateCampaign(campaignId, callback) {\n      var params = {\n        requestData: {\n          method: 'duplicate_campaign',\n          handler: 'campaigns',\n          data: {\n            campaign_id: campaignId\n          }\n        },\n        callback: callback\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"pauseCampaign\",\n    value: function pauseCampaign(campaignId, campaignAction, callback) {\n      var params = {\n        requestData: {\n          method: 'pause_resume_campaign',\n          handler: 'starter_campaigns',\n          data: {\n            campaign_id: campaignId,\n            campaign_action: campaignAction\n          }\n        },\n        callback: callback\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }], [{\n    key: \"prepareFilterData\",\n    value: function prepareFilterData() {\n      CampaignsModel.includeTypes = [];\n      CampaignsModel.campaignStatus = [];\n      var selectedCampaignType = CampaignsModel.selectedCampaignType;\n      var selectedCampaignStatus = CampaignsModel.selectedCampaignStatus;\n      if (selectedCampaignType) {\n        CampaignsModel.includeTypes.push(selectedCampaignType);\n      }\n      if (selectedCampaignStatus) {\n        CampaignsModel.campaignStatus.push(selectedCampaignStatus);\n      }\n    }\n  }, {\n    key: \"getNextCampaigns\",\n    value: function getNextCampaigns(currentPage) {\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_1__[\"default\"].showLoader = true;\n      CampaignsModel.prepareFilterData();\n      var params = {\n        requestData: {\n          method: 'get_campaigns',\n          handler: 'campaigns',\n          data: {\n            exclude_types: ['sequence_message', 'workflow_email'],\n            order_by_column: 'id',\n            order: 'DESC',\n            currentPage: currentPage,\n            include_types: CampaignsModel.includeTypes.length > 0 ? CampaignsModel.includeTypes : null,\n            status: CampaignsModel.campaignStatus.length > 0 ? CampaignsModel.campaignStatus : null\n          }\n        },\n        callback: function callback(response) {\n          if (response.success) {\n            CampaignsModel.data.campaigns = response.data.campaigns || [];\n            CampaignsModel.data.currentPage = response.data.currentPage || [];\n          }\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_1__[\"default\"].showLoader = false;\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }]);\n}();\n_defineProperty(CampaignsModel, \"selectedCampaignType\", '');\n_defineProperty(CampaignsModel, \"selectedCampaignStatus\", '');\n_defineProperty(CampaignsModel, \"searchText\", '');\n_defineProperty(CampaignsModel, \"includeTypes\", []);\n_defineProperty(CampaignsModel, \"campaignStatus\", []);\n_defineProperty(CampaignsModel, \"data\", {\n  campaigns: []\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignsModel);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/models/campaigns/CampaignsModel.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/models/templates/GalleryItems.js":
/*!************************************************************!*\
  !*** ./lite/admin/js/src/models/templates/GalleryItems.js ***!
  \************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ GalleryItems; }\n/* harmony export */ });\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nvar GalleryItems = /*#__PURE__*/function () {\n  function GalleryItems() {\n    _classCallCheck(this, GalleryItems);\n  }\n  return _createClass(GalleryItems, null, [{\n    key: \"loadItems\",\n    value: function loadItems() {\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = true;\n      var params = {\n        requestData: {\n          handler: 'gallery',\n          method: 'get_gallery_items'\n        },\n        callback: function callback(response) {\n          if (response.success) {\n            GalleryItems.items = response.data.items;\n          }\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = false;\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"loadTemplatePreviewData\",\n    value: function loadTemplatePreviewData(templateId, galleryType, callback) {\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = true;\n      var params = {\n        requestData: {\n          handler: 'gallery',\n          method: 'preview_template',\n          data: {\n            gallery_type: galleryType,\n            template_id: templateId\n          }\n        },\n        callback: callback\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"deleteTemplate\",\n    value: function deleteTemplate(templateId, callback) {\n      var params = {\n        requestData: {\n          handler: 'gallery',\n          method: 'delete_template',\n          data: {\n            template_id: templateId\n          }\n        },\n        callback: callback\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].requestHandler(params);\n    }\n  }]);\n}();\n_defineProperty(GalleryItems, \"items\", []);\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/models/templates/GalleryItems.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/models/templates/TemplateModel.js":
/*!*************************************************************!*\
  !*** ./lite/admin/js/src/models/templates/TemplateModel.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\n/* harmony import */ var _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/SuccessPopup */ \"./lite/admin/js/src/utils/SuccessPopup.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar TemplateModel = /*#__PURE__*/function () {\n  function TemplateModel(urlParams) {\n    _classCallCheck(this, TemplateModel);\n    TemplateModel.initialize();\n  }\n  return _createClass(TemplateModel, null, [{\n    key: \"initialize\",\n    value: function initialize() {\n      TemplateModel.setCurrentTemplate(TemplateModel.currentCampaignID);\n    }\n  }, {\n    key: \"setCurrentTemplate\",\n    value: function setCurrentTemplate(templateId) {\n      var defaultCampaignData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      var campaignData = {};\n      if (templateId > 0) {\n        campaignData = CampaignsModel.data.campaigns.filter(function (x) {\n          return x.id == templateId;\n        })[0];\n      } else {\n        campaignData = defaultCampaignData;\n      }\n      TemplateModel.details = {\n        id: campaignData.id || 0,\n        subject: campaignData.subject || '',\n        body: campaignData.body || '',\n        meta: campaignData.meta || {}\n      };\n    }\n  }, {\n    key: \"saveTemplate\",\n    value: function saveTemplate() {\n      TemplateModel.formatCampaignDetail();\n      _utils_Loader__WEBPACK_IMPORTED_MODULE_1__[\"default\"].showLoader = true;\n      var params = {\n        requestData: {\n          method: 'save',\n          handler: 'template',\n          data: TemplateModel.details\n        },\n        callback: function callback(response) {\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_1__[\"default\"].showLoader = false;\n          if (response.success) {\n            if (response.data.templateId) {\n              TemplateModel.details.id = response.data.templateId || 0;\n            }\n            _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_2__[\"default\"].message = __('Template saved.', 'email-subscribers');\n            _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_2__[\"default\"].show = true;\n          } else {\n            alert(__('An error occured while processing the request', 'email-subscribers'));\n          }\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"formatCampaignDetail\",\n    value: function formatCampaignDetail() {\n      TemplateModel.syncEditorData();\n    }\n  }, {\n    key: \"syncEditorData\",\n    value: function syncEditorData() {\n      if (TemplateModel.usingDndEditor()) {\n        TemplateModel.addDnDEditorData();\n      } else {\n        TemplateModel.addClassicEditorData();\n      }\n    }\n  }, {\n    key: \"addDnDEditorData\",\n    value: function addDnDEditorData() {\n      TemplateModel.addDnDContentData();\n    }\n  }, {\n    key: \"addDnDContentData\",\n    value: function addDnDContentData() {\n      var editorContent = esVisualEditor.exportEditorContent();\n      TemplateModel.details.body = editorContent.html;\n      TemplateModel.details.meta.es_dnd_editor_data = editorContent.data;\n    }\n  }, {\n    key: \"addClassicEditorData\",\n    value: function addClassicEditorData() {\n      if ('undefined' !== typeof window.tinyMCE) {\n        // Trigger save event for content of wp_editor instances to sync its content with actual textarea field\n        window.tinyMCE.triggerSave();\n      }\n      var content = document.getElementById('es-campaign-body').value;\n      TemplateModel.details.body = content;\n    }\n  }, {\n    key: \"usingDndEditor\",\n    value: function usingDndEditor() {\n      var _TemplateModel$detail;\n      return ((_TemplateModel$detail = TemplateModel.details) === null || _TemplateModel$detail === void 0 || (_TemplateModel$detail = _TemplateModel$detail.meta) === null || _TemplateModel$detail === void 0 ? void 0 : _TemplateModel$detail.es_editor_type) && TemplateModel.details.meta.es_editor_type === ig_es_main_js_data.dnd_editor_slug;\n    }\n  }, {\n    key: \"getTemplate\",\n    value: function getTemplate(templateId) {\n      var _this = this;\n      var params = {\n        requestData: {\n          method: 'get_template',\n          handler: 'template',\n          data: {\n            templateId: templateId\n          }\n        },\n        callback: function callback(response) {\n          if (response.success) {\n            TemplateModel.details = response.data || {};\n          }\n          _this.showLoader = false;\n        }\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }, {\n    key: \"getPreview\",\n    value: function getPreview(callBack) {\n      var params = {\n        requestData: {\n          method: 'get_preview',\n          handler: 'campaign',\n          data: TemplateModel.details\n        },\n        callback: callBack\n      };\n      return _utils_Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].requestHandler(params);\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (TemplateModel);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/models/templates/TemplateModel.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/CampaignConfirmationPopup.js":
/*!**************************************************************!*\
  !*** ./lite/admin/js/src/utils/CampaignConfirmationPopup.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignConfirmationPopup; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Icons */ \"./lite/admin/js/src/utils/Icons.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar CampaignConfirmationPopup = /*#__PURE__*/function () {\n  function CampaignConfirmationPopup() {\n    _classCallCheck(this, CampaignConfirmationPopup);\n    CampaignConfirmationPopup.show = false;\n  }\n  return _createClass(CampaignConfirmationPopup, [{\n    key: \"view\",\n    value: function view(vnode) {\n      var _CampaignModel$detail, _CampaignModel$detail2, _CampaignModel$detail3, _CampaignModel$detail4, _CampaignModel$detail5, _CampaignModel$detail6, _CampaignModel$detail7, _CampaignModel$detail8, _CampaignModel$detail9;\n      var isSchedulingOptionSelected = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.scheduling_option === 'schedule_later';\n      var trackingStatusIcon = function trackingStatusIcon(isEnabled) {\n        return isEnabled === 'yes' ? m(\"div\", {\n          class: \"flex h-5 w-5 items-center justify-center rounded-full bg-green-100 mr-2\"\n        }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_1__[\"default\"].successIcon)) : m(\"div\", {\n          class: \"flex h-5 w-5 items-center justify-center rounded-full bg-red-100 mr-2\"\n        }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_1__[\"default\"].failureIcon));\n      };\n      var trackingStatus = function trackingStatus(isEnabled) {\n        return isEnabled === 'yes' ? \"enabled\" : \"disabled\";\n      };\n      return m(\"div\", {\n        class: \"form-fields ig-es-popup-container\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-overlay\"\n      }), m(\"div\", {\n        class: \"ig-es-popup\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-close-container\"\n      }, m(\"button\", {\n        onclick: function onclick(e) {\n          e.preventDefault();\n          CampaignConfirmationPopup.show = false;\n        },\n        class: \"cross\"\n      }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_1__[\"default\"].close))), m(\"div\", {\n        class: \"px-12 py-6\"\n      }, m(\"div\", {\n        class: \"mt-3 text-center sm:mt-5\"\n      }, m(\"h1\", {\n        class: \"modal-headline\",\n        id: \"modal-title\"\n      }, _utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro() && isSchedulingOptionSelected ? __('Ready to schedule the campaign?', 'email-subscribers') : __('Ready to send the campaign?', 'email-subscribers')), m(\"p\", {\n        class: \"mt-3 text-left font-medium\"\n      }, \" \", __('Double-Check Recipients and Configuration once.', 'email-subscribers')), m(\"div\", {\n        class: \"mt-3\"\n      }, m(\"p\", {\n        class: \"text-sm font-medium text-left\"\n      }, __('Total recipients', 'email-subscribers'), \" : \", m(\"span\", {\n        class: \"text-sm text-gray-500\"\n      }, ((_CampaignModel$detail = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail === void 0 ? void 0 : _CampaignModel$detail.meta.recipient_matching_count) || 0)), m(\"div\", {\n        class: \"mt-3 text-left\"\n      }, m(\"p\", {\n        class: \"text-sm font-medium\"\n      }, __('Tracking configuration', 'email-subscribers'), \" :\"), m(\"ul\", {\n        class: \"pl-5 mt-2 text-sm text-gray-500\"\n      }, m(\"li\", {\n        class: \"flex items-center\"\n      }, trackingStatusIcon((_CampaignModel$detail2 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail2 === void 0 || (_CampaignModel$detail2 = _CampaignModel$detail2.meta) === null || _CampaignModel$detail2 === void 0 ? void 0 : _CampaignModel$detail2.enable_open_tracking), m(\"span\", null, \" \", __('Open tracking', 'email-subscribers'), \" \", trackingStatus((_CampaignModel$detail3 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail3 === void 0 || (_CampaignModel$detail3 = _CampaignModel$detail3.meta) === null || _CampaignModel$detail3 === void 0 ? void 0 : _CampaignModel$detail3.enable_open_tracking))), _utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro() && m(\"li\", {\n        class: \"flex items-center\"\n      }, trackingStatusIcon((_CampaignModel$detail4 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail4 === void 0 || (_CampaignModel$detail4 = _CampaignModel$detail4.meta) === null || _CampaignModel$detail4 === void 0 ? void 0 : _CampaignModel$detail4.enable_link_tracking), m(\"span\", null, \" \", __('Click tracking ', 'email-subscribers'), trackingStatus((_CampaignModel$detail5 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail5 === void 0 || (_CampaignModel$detail5 = _CampaignModel$detail5.meta) === null || _CampaignModel$detail5 === void 0 ? void 0 : _CampaignModel$detail5.enable_link_tracking))), (_utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro() || _utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isTrial()) && m(\"li\", {\n        class: \"flex items-center\"\n      }, trackingStatusIcon((_CampaignModel$detail6 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail6 === void 0 || (_CampaignModel$detail6 = _CampaignModel$detail6.meta) === null || _CampaignModel$detail6 === void 0 ? void 0 : _CampaignModel$detail6.enable_utm_tracking), m(\"span\", null, \" \", __('UTM tracking ', 'email-subscribers'), trackingStatus((_CampaignModel$detail7 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail7 === void 0 || (_CampaignModel$detail7 = _CampaignModel$detail7.meta) === null || _CampaignModel$detail7 === void 0 ? void 0 : _CampaignModel$detail7.enable_utm_tracking))))), _utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro() && isSchedulingOptionSelected && m(\"p\", {\n        class: \" mt-3 text-sm font-medium text-left\"\n      }, __('Scheduled At', 'email-subscribers'), \" : \", m(\"span\", {\n        class: \"text-sm text-gray-500\"\n      }), ((_CampaignModel$detail8 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail8 === void 0 ? void 0 : _CampaignModel$detail8.meta.es_schedule_date) || '00:00:00', \" \", ((_CampaignModel$detail9 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail9 === void 0 ? void 0 : _CampaignModel$detail9.meta.es_schedule_time) || '00:00:00', \" \", m(\"span\", null)), m(\"div\", {\n        class: \"pt-4\"\n      }, m(\"button\", {\n        class: \"primary text-white text-center inline-flex items-center ml-3 mr-2\",\n        type: \"button\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].sendCamapign(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details);\n        }\n      }, _utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro() && isSchedulingOptionSelected ? m(\"span\", null, \" \", __('Schedule', 'email-subscribers')) : m(\"span\", null, \" \", __('Send', 'email-subscribers'))), m(\"button\", {\n        onclick: function onclick(e) {\n          e.preventDefault();\n          CampaignConfirmationPopup.show = false;\n        },\n        class: \"secondary\"\n      }, __('Edit', 'email-subscribers'))))))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/CampaignConfirmationPopup.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/CampaignTagsWithToggle.js":
/*!***********************************************************!*\
  !*** ./lite/admin/js/src/utils/CampaignTagsWithToggle.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _Icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Icons */ \"./lite/admin/js/src/utils/Icons.js\");\n\n\nvar CampaignTagsWithToggle = {\n  showAllTags: 'no',\n  toggleTags: function toggleTags() {\n    CampaignTagsWithToggle.showAllTags = CampaignTagsWithToggle.showAllTags === 'yes' ? 'no' : 'yes';\n  },\n  view: function view(_ref) {\n    var attrs = _ref.attrs;\n    var campaignType = attrs.campaignType;\n    var tags = _Functions__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getCampaignWiseTags(campaignType);\n    if (tags.length === 0) {\n      return '';\n    }\n    return m(\"div\", {\n      class: \"all-tags\"\n    }, m(\"div\", {\n      class: \"flex flex-col gap-3\"\n    }, m(\"ul\", {\n      class: \"primary-list flex flex-wrap gap-3\"\n    }, tags.length > 0 && tags.filter(function (tag, index) {\n      return index < 5;\n    }).map(function (tag) {\n      return m(\"li\", null, m(\"span\", null, tag));\n    })), m(\"ul\", {\n      class: \"secondary-list flex flex-wrap gap-3 \".concat(CampaignTagsWithToggle.showAllTags === 'no' ? 'hidden' : '')\n    }, tags.length > 0 && tags.filter(function (tag, index) {\n      return index >= 5;\n    }).map(function (tag) {\n      return m(\"li\", null, m(\"span\", null, tag));\n    }))), m(\"div\", {\n      class: \"flex flex-shrink-0\"\n    }, m(\"a\", {\n      href: \"#\",\n      id: \"view-all-tags\",\n      \"data-dropdown-toggle\": \"dropdown\",\n      class: \"text-xs text-gray-900  text-center inline-flex items-center\",\n      onclick: function onclick(e) {\n        e.preventDefault();\n        CampaignTagsWithToggle.toggleTags();\n      }\n    }, CampaignTagsWithToggle.showAllTags === 'no' && m('[', null, m(\"span\", null, __('View All Tags', 'email-subscribers')), m.trust(_Icons__WEBPACK_IMPORTED_MODULE_1__[\"default\"].downArrow)), CampaignTagsWithToggle.showAllTags === 'yes' && m('[', null, m(\"span\", null, __('Hide Tags', 'email-subscribers')), m(\"svg\", {\n      class: \"w-2.5 h-2.5 ml-2.5 transition-transform transform\",\n      \"aria-hidden\": \"true\",\n      xmlns: \"http://www.w3.org/2000/svg\",\n      fill: \"none\",\n      viewBox: \"0 0 10 6\"\n    }, m(\"path\", {\n      stroke: \"#575362\",\n      \"stroke-linecap\": \"round\",\n      \"stroke-linejoin\": \"round\",\n      \"stroke-width\": \"2\",\n      d: \"m1 1 4 4 4-4\"\n    }))))));\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignTagsWithToggle);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/CampaignTagsWithToggle.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/DeleteCampaignPopup.js":
/*!********************************************************!*\
  !*** ./lite/admin/js/src/utils/DeleteCampaignPopup.js ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ DeleteCampaignPopup; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/campaigns/CampaignsModel */ \"./lite/admin/js/src/models/campaigns/CampaignsModel.js\");\n/* harmony import */ var _utils_Icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Icons */ \"./lite/admin/js/src/utils/Icons.js\");\n/* harmony import */ var _Loader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Loader */ \"./lite/admin/js/src/utils/Loader.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar DeleteCampaignPopup = /*#__PURE__*/function () {\n  function DeleteCampaignPopup() {\n    var _this = this;\n    _classCallCheck(this, DeleteCampaignPopup);\n    _defineProperty(this, \"pauseCampaign\", function (campaignId, actionData) {\n      DeleteCampaignPopup.show = false;\n      var paused = ig_es_main_js_data.campaign_status_codes.paused;\n      var queued = ig_es_main_js_data.campaign_status_codes.queued;\n      var campaignAction = actionData.status === paused ? 'resume' : 'pause';\n      _this.model.pauseCampaign(campaignId, campaignAction, function (response) {\n        if (response.success) {\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns.map(function (campaign) {\n            if (campaign.id === campaignId) {\n              campaign.status = campaignAction === 'pause' ? paused : queued;\n              campaign.status_text = campaignAction === 'pause' ? __('Paused', 'email-subscribers') : __('Sending', 'email-subscribers');\n            }\n            return campaign;\n          });\n        } else {\n          alert(__('Failed to change campaign status.', 'email-subscribers'));\n        }\n      });\n    });\n    this.initialize();\n  }\n  return _createClass(DeleteCampaignPopup, [{\n    key: \"initialize\",\n    value: function initialize() {\n      this.model = new _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n    }\n  }, {\n    key: \"deleteCampaign\",\n    value: function deleteCampaign(campaignId) {\n      if (campaignId) {\n        var campaignIds = [campaignId];\n        if (campaignIds.length > 0) {\n          DeleteCampaignPopup.show = false;\n          _Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = __('Deleting campaign', 'email-subscribers');\n          _Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = true;\n          this.model.deleteCampaigns(campaignIds, function (response) {\n            _Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].showLoader = false;\n            _Loader__WEBPACK_IMPORTED_MODULE_2__[\"default\"].msg = 'Loading';\n            if (response.success) {\n              _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns.filter(function (item) {\n                return !campaignIds.includes(item.id);\n              });\n            } else {\n              alert(ig_es_js_data.i18n_data.ajax_error_message);\n            }\n          });\n        }\n      }\n    }\n  }, {\n    key: \"view\",\n    value: function view(vnode) {\n      var _this2 = this;\n      return m(\"div\", {\n        class: \"form-fields\\r ig-es-popup-container\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-overlay\"\n      }), m(\"div\", {\n        class: \"ig-es-popup\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-close-container\"\n      }, m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          DeleteCampaignPopup.show = false;\n        },\n        class: \"cross\"\n      }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_1__[\"default\"].close))), m(\"div\", {\n        class: \"px-12 py-6\"\n      }, m(\"div\", {\n        class: \"mx-auto flex h-20 w-20 items-center justify-center\"\n      }, m(\"img\", {\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/image 29.png\",\n        alt: \"Campaign delete\"\n      })), m(\"div\", {\n        class: \"mt-3 text-center sm:mt-5\"\n      }, m(\"h3\", {\n        class: \"modal-headline\",\n        id: \"modal-title\"\n      }, DeleteCampaignPopup.deletePopupText), m(\"div\", {\n        class: \"mt-2\"\n      }, DeleteCampaignPopup.isCampaignSending == true && ig_es_js_data.is_premium ? m('[', null, \"   \", m(\"p\", {\n        class: \"text-sm text-gray-500\"\n      }, __('Alternatively you can also pause the campaign to halt sending.', 'email-subscribers'))) : '', m(\"div\", {\n        class: \"pt-4\"\n      }, m(\"button\", {\n        id: \"dropdownDefaultButton\",\n        \"data-dropdown-toggle\": \"dropdown\",\n        class: \"primary text-white text-center inline-flex items-center ml-3 mr-2\",\n        type: \"button\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this2.deleteCampaign(DeleteCampaignPopup.campaignId);\n        }\n      }, m(\"span\", null, __('Delete', 'email-subscribers'))), DeleteCampaignPopup.isCampaignSending == true && ig_es_js_data.is_premium ? m('[', null, m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this2.pauseCampaign(DeleteCampaignPopup.campaignId, DeleteCampaignPopup.actionData);\n        },\n        class: \"secondary\"\n      }, __('Pause', 'email-subscribers'))) : '', DeleteCampaignPopup.isCampaignSending == false ? m('[', null, m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          DeleteCampaignPopup.show = false;\n        },\n        class: \"secondary\"\n      }, __('Cancel', 'email-subscribers'))) : ''))))));\n    }\n  }], [{\n    key: \"mayDeleteCampaign\",\n    value: function mayDeleteCampaign(campaignId, actionData) {\n      var campaignType = actionData.campaignType;\n      var campaignStatus = actionData.campaignStatus;\n      var campaignStatusCodes = ig_es_main_js_data.campaign_status_codes;\n      var campaignTypeNames = ig_es_main_js_data.campaign_types;\n      DeleteCampaignPopup.campaignId = campaignId;\n      DeleteCampaignPopup.actionData = actionData;\n      if (campaignType == campaignTypeNames.sequence || campaignStatus == campaignStatusCodes.draft) {\n        DeleteCampaignPopup.isCampaignSending = false;\n        DeleteCampaignPopup.deletePopupText = __('Are you sure you want to delete this campaign?', 'email-subscribers');\n      } else if (campaignStatus == campaignStatusCodes.queued) {\n        DeleteCampaignPopup.isCampaignSending = true;\n        DeleteCampaignPopup.deletePopupText = __('Are you sure you want to delete this ongoing campaign and its report?', 'email-subscribers');\n      } else {\n        DeleteCampaignPopup.isCampaignSending = false;\n        DeleteCampaignPopup.deletePopupText = __('Are you sure you want to delete this ongoing campaign and its report?', 'email-subscribers');\n      }\n      DeleteCampaignPopup.show = true;\n    }\n  }]);\n}();\n_defineProperty(DeleteCampaignPopup, \"show\", false);\n_defineProperty(DeleteCampaignPopup, \"campaignId\", null);\n_defineProperty(DeleteCampaignPopup, \"actionData\", []);\n_defineProperty(DeleteCampaignPopup, \"deletePopupText\", null);\n_defineProperty(DeleteCampaignPopup, \"isCampaignSending\", false);\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/DeleteCampaignPopup.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/Functions.js":
/*!**********************************************!*\
  !*** ./lite/admin/js/src/utils/Functions.js ***!
  \**********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ ESFunctions; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar ESFunctions = /*#__PURE__*/function () {\n  function ESFunctions() {\n    _classCallCheck(this, ESFunctions);\n  }\n  return _createClass(ESFunctions, null, [{\n    key: \"requestHandler\",\n    value:\n    // 5 minutes in milliseconds\n\n    function requestHandler(params) {\n      var data = new FormData(),\n        requestData = {\n          security: ig_es_js_data.security\n        };\n      requestData = _objectSpread(_objectSpread({}, requestData), params.requestData);\n      var method = requestData.method;\n      var handler = requestData.handler;\n      var isCacheable = params.cacheable === true;\n      var cacheKey = null;\n      if (isCacheable) {\n        // Generate cache key from handler, method, and request data\n        cacheKey = \"\".concat(handler, \":\").concat(method, \":\").concat(JSON.stringify(requestData.data || {}));\n        var cached = ESFunctions.responseCache.get(cacheKey);\n        if (cached && Date.now() - cached.timestamp < ESFunctions.CACHE_TTL) {\n          if (params.hasOwnProperty('callback')) {\n            setTimeout(function () {\n              return params.callback(cached.response);\n            }, 0);\n          }\n          return Promise.resolve(cached.response);\n        }\n      }\n      ESFunctions.appendNestedJSONToFormData(data, requestData);\n      return m.request({\n        method: params.method || 'POST',\n        url: ajaxurl,\n        params: {\n          action: 'icegram-express'\n        },\n        body: data,\n        withCredentials: params.withCredentials || false,\n        responseType: params.responseType || \"json\"\n      }).then(function (response) {\n        if (isCacheable && response.success && cacheKey) {\n          ESFunctions.responseCache.set(cacheKey, {\n            response: response,\n            timestamp: Date.now()\n          });\n        }\n        if (params.hasOwnProperty('callback')) {\n          params.callback(response);\n        }\n        return response;\n      });\n    }\n  }, {\n    key: \"appendNestedJSONToFormData\",\n    value: function appendNestedJSONToFormData(formData, data) {\n      var parentKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n      for (var key in data) {\n        if (data.hasOwnProperty(key)) {\n          var newKey = parentKey ? \"\".concat(parentKey, \"[\").concat(key, \"]\") : key;\n          if (_typeof(data[key]) === 'object') {\n            // If the value is an object, recursively call the function\n            ESFunctions.appendNestedJSONToFormData(formData, data[key], newKey);\n          } else {\n            // If the value is not an object, append it to FormData\n            formData.append(newKey, data[key]);\n          }\n        }\n      }\n    }\n  }, {\n    key: \"getAFWParams\",\n    value: function getAFWParams() {\n      var param = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n      var params = esDashboardParams || {};\n      if ('' !== param) {\n        return param in params ? params[param] : '';\n      }\n      return params;\n    }\n  }, {\n    key: \"getCampaignDefaultSubject\",\n    value: function getCampaignDefaultSubject(campaignType) {\n      return ig_es_main_js_data.campaigns_default_data[campaignType].subject;\n    }\n  }, {\n    key: \"getCampaignDefaultContent\",\n    value: function getCampaignDefaultContent(campaignType) {\n      return ig_es_main_js_data.campaigns_default_data[campaignType].content;\n    }\n  }, {\n    key: \"isPostCampaign\",\n    value: function isPostCampaign(campaignType) {\n      var postNotificationType = ig_es_main_js_data.post_notification_campaign_type;\n      var postDigestType = ig_es_main_js_data.post_digest_campaign_type;\n      var postCampaignTypes = [postNotificationType, postDigestType];\n      return postCampaignTypes.includes(campaignType);\n    }\n  }, {\n    key: \"filterCampaignWiseBlocks\",\n    value: function filterCampaignWiseBlocks(dndblocks, currentCampaignType) {\n      dndblocks = dndblocks.filter(function (block) {\n        var blockCampaignTypes = block.get('campaignTypes');\n        return typeof blockCampaignTypes === 'undefined' || blockCampaignTypes.includes(currentCampaignType);\n      });\n      return dndblocks;\n    }\n  }, {\n    key: \"isDnDEditor\",\n    value: function isDnDEditor(editorType) {\n      return editorType === ig_es_main_js_data.dnd_editor_slug;\n    }\n  }, {\n    key: \"filterComponentsByType\",\n    value: function filterComponentsByType(targetType, component) {\n      var filteredComponents = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n      if (component.get('type') === targetType) {\n        filteredComponents.push(component);\n      }\n\n      // Check if the component has child components\n      if (component.has('components')) {\n        var childComponents = component.get('components');\n\n        // Recursively filter child components\n        childComponents.each(function (childComponent) {\n          ESFunctions.filterComponentsByType(targetType, childComponent, filteredComponents);\n        });\n      }\n      return filteredComponents;\n    }\n  }, {\n    key: \"isPro\",\n    value: function isPro() {\n      return ig_es_main_js_data.es_plan === 'pro';\n    }\n  }, {\n    key: \"isTrial\",\n    value: function isTrial() {\n      return ig_es_main_js_data.es_plan === 'trial';\n    }\n  }, {\n    key: \"getCampaignWiseTags\",\n    value: function getCampaignWiseTags(campaignType) {\n      var tags = [];\n      if (ESFunctions.isPostCampaign(campaignType)) {\n        tags = ig_es_main_js_data.tags.campaign_tags.post_notification;\n      }\n      var subscriberTags = ig_es_main_js_data.tags.subscriber_tags;\n      var siteTags = ig_es_main_js_data.tags.site_tags;\n      tags = tags.concat(subscriberTags).concat(siteTags);\n      return tags;\n    }\n  }, {\n    key: \"getSidebarCampaignTags\",\n    value: function getSidebarCampaignTags() {\n      var postNotificationTags = ig_es_main_js_data.tags.campaign_tags.post_notification ? ig_es_main_js_data.tags.campaign_tags.post_notification : [];\n      var subscriberTags = ig_es_main_js_data.tags.subscriber_tags ? ig_es_main_js_data.tags.subscriber_tags : [];\n      var siteTags = ig_es_main_js_data.tags.site_tags ? ig_es_main_js_data.tags.site_tags : [];\n      var allTags = {\n        postNotificationTags: postNotificationTags,\n        subscriberTags: subscriberTags,\n        siteTags: siteTags\n      };\n      return allTags;\n    }\n  }, {\n    key: \"getSenderDetails\",\n    value: function getSenderDetails(campaign, senderDetail) {\n      var fromName = campaign.from_name ? campaign.from_name : senderDetail.from_name;\n      var fromEmail = campaign.from_email ? campaign.from_email : senderDetail.from_email;\n      var replyToName = campaign.reply_to_name ? campaign.reply_to_name : senderDetail.reply_to_name;\n      var replyToEmail = campaign.reply_to_email ? campaign.reply_to_email : senderDetail.reply_to_email;\n      var senderDetails = {\n        fromName: fromName,\n        fromEmail: fromEmail,\n        replyToName: replyToName,\n        replyToEmail: replyToEmail\n      };\n      return senderDetails;\n    }\n  }, {\n    key: \"toggleAdminMenuVisibility\",\n    value: function toggleAdminMenuVisibility() {\n      var isFullScreenPage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n      var elements = {\n        adminMenu: document.getElementById('adminmenu'),\n        adminBar: document.getElementById('wpadminbar'),\n        adminMenuBack: document.getElementById('adminmenuback'),\n        remainingContent: document.getElementById('wpcontent'),\n        htmlTag: document.getElementsByTagName('html')[0]\n      };\n      if (isFullScreenPage) {\n        var _elements$adminMenu, _elements$adminBar, _elements$adminMenuBa;\n        (_elements$adminMenu = elements.adminMenu) === null || _elements$adminMenu === void 0 || _elements$adminMenu.classList.add('hidden');\n        (_elements$adminBar = elements.adminBar) === null || _elements$adminBar === void 0 || _elements$adminBar.classList.add('hidden');\n        (_elements$adminMenuBa = elements.adminMenuBack) === null || _elements$adminMenuBa === void 0 || _elements$adminMenuBa.classList.add('hidden');\n        if (elements.remainingContent) {\n          elements.remainingContent.style.marginLeft = '2px';\n          //elements.remainingContent.style.width = '100%';\n          elements.htmlTag.style.paddingTop = '0';\n        }\n      } else {\n        var _elements$adminMenu2, _elements$adminBar2, _elements$adminMenuBa2;\n        (_elements$adminMenu2 = elements.adminMenu) === null || _elements$adminMenu2 === void 0 || _elements$adminMenu2.classList.remove('hidden');\n        (_elements$adminBar2 = elements.adminBar) === null || _elements$adminBar2 === void 0 || _elements$adminBar2.classList.remove('hidden');\n        (_elements$adminMenuBa2 = elements.adminMenuBack) === null || _elements$adminMenuBa2 === void 0 || _elements$adminMenuBa2.classList.remove('hidden');\n        if (elements.remainingContent) {\n          elements.remainingContent.style.marginLeft = '160px';\n          elements.remainingContent.style.width = '';\n          elements.htmlTag.style.paddingTop = '32px';\n        }\n      }\n    }\n  }, {\n    key: \"isCampaignSending\",\n    value: function isCampaignSending(campaignStatus) {\n      if (campaignStatus !== undefined && campaignStatus !== null) {\n        return campaignStatus == ig_es_main_js_data.campaign_status_codes.queued || campaignStatus == ig_es_main_js_data.campaign_status_codes.paused || campaignStatus == ig_es_main_js_data.campaign_status_codes.finished;\n      } else {\n        return false;\n      }\n    }\n  }]);\n}();\n// Response cache with 5-minute TTL (matches React frontend caching)\n_defineProperty(ESFunctions, \"responseCache\", new Map());\n_defineProperty(ESFunctions, \"CACHE_TTL\", 5 * 60 * 1000);\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/Functions.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/Icons.js":
/*!******************************************!*\
  !*** ./lite/admin/js/src/utils/Icons.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\nvar Icons = {\n  'draggable': \"<svg width=\\\"12\\\" height=\\\"8\\\" viewBox=\\\"0 0 12 8\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n    <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M11.9999 1.40007C11.9999 2.06282 11.4626 2.60007 10.7999 2.60007C10.1371 2.60007 9.59985 2.06282 9.59985 1.40007C9.59985 0.737331 10.1371 0.200073 10.7999 0.200073C11.4626 0.200073 11.9999 0.737331 11.9999 1.40007Z\\\" fill=\\\"#C4C4C4\\\"/>\\n    <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M11.9999 6.20012C11.9999 6.86288 11.4626 7.40012 10.7999 7.40012C10.1371 7.40012 9.59985 6.86288 9.59985 6.20012C9.59985 5.53736 10.1371 5.00012 10.7999 5.00012C11.4626 5.00012 11.9999 5.53736 11.9999 6.20012Z\\\" fill=\\\"#C4C4C4\\\"/>\\n    <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M7.20005 6.20012C7.20005 6.86288 6.66281 7.40012 6.00005 7.40012C5.33729 7.40012 4.80005 6.86288 4.80005 6.20012C4.80005 5.53736 5.33729 5.00012 6.00005 5.00012C6.66281 5.00012 7.20005 5.53736 7.20005 6.20012Z\\\" fill=\\\"#C4C4C4\\\"/>\\n    <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M2.40024 1.40007C2.40024 2.06282 1.86299 2.60007 1.20024 2.60007C0.537502 2.60007 0.000244141 2.06282 0.000244141 1.40007C0.000244141 0.737331 0.537502 0.200073 1.20024 0.200073C1.86299 0.200073 2.40024 0.737331 2.40024 1.40007Z\\\" fill=\\\"#C4C4C4\\\"/>\\n    <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M2.40024 6.20012C2.40024 6.86288 1.86299 7.40012 1.20024 7.40012C0.537502 7.40012 0.000244141 6.86288 0.000244141 6.20012C0.000244141 5.53736 0.537502 5.00012 1.20024 5.00012C1.86299 5.00012 2.40024 5.53736 2.40024 6.20012Z\\\" fill=\\\"#C4C4C4\\\"/>\\n    <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M7.20005 1.40007C7.20005 2.06282 6.66281 2.60007 6.00005 2.60007C5.33729 2.60007 4.80005 2.06282 4.80005 1.40007C4.80005 0.737331 5.33729 0.200073 6.00005 0.200073C6.66281 0.200073 7.20005 0.737331 7.20005 1.40007Z\\\" fill=\\\"#C4C4C4\\\"/>\\n    </svg>\\n    \",\n  'close': \"<svg class=\\\"h-5\\\" width=\\\"30\\\" height=\\\"30\\\" viewBox=\\\"0 0 15 15\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n    <path d=\\\"M5.04366 4.17217L7.49984 6.62835L9.94329 4.1849C9.99726 4.12745 10.0623 4.08149 10.1344 4.04978C10.2066 4.01807 10.2844 4.00127 10.3633 4.00037C10.532 4.00037 10.6939 4.06741 10.8132 4.18674C10.9325 4.30607 10.9996 4.46792 10.9996 4.63668C11.0011 4.71469 10.9866 4.79219 10.957 4.86441C10.9275 4.93663 10.8835 5.00204 10.8278 5.05665L8.3525 7.5001L10.8278 9.97537C10.9326 10.078 10.9941 10.2169 10.9996 10.3635C10.9996 10.5323 10.9325 10.6941 10.8132 10.8135C10.6939 10.9328 10.532 10.9998 10.3633 10.9998C10.2822 11.0032 10.2013 10.9897 10.1257 10.9601C10.0501 10.9305 9.98147 10.8855 9.9242 10.828L7.49984 8.37185L5.05002 10.8217C4.99626 10.8772 4.93203 10.9215 4.86104 10.9521C4.79005 10.9827 4.71371 10.9989 4.63642 10.9998C4.46766 10.9998 4.30581 10.9328 4.18648 10.8135C4.06714 10.6941 4.0001 10.5323 4.0001 10.3635C3.99862 10.2855 4.01309 10.208 4.04264 10.1358C4.07218 10.0636 4.11617 9.99816 4.17191 9.94355L6.64718 7.5001L4.17191 5.02483C4.06703 4.92223 4.00554 4.7833 4.0001 4.63668C4.0001 4.46792 4.06714 4.30607 4.18648 4.18674C4.30581 4.06741 4.46766 4.00037 4.63642 4.00037C4.78913 4.00228 4.93549 4.064 5.04366 4.17217Z\\\" fill=\\\"#575362\\\"/>\\n    </svg>\",\n  'copy': \"<svg width=\\\"13\\\" height=\\\"13\\\" viewBox=\\\"0 0 13 13\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n    <path d=\\\"M11.2157 0H4.07843C3.6052 0 3.15135 0.171205 2.81673 0.475951C2.48211 0.780698 2.29412 1.19402 2.29412 1.625V2.08929H1.78431C1.31108 2.08929 0.857237 2.26049 0.522613 2.56524C0.18799 2.86998 0 3.28331 0 3.71429V11.375C0 11.806 0.18799 12.2193 0.522613 12.524C0.857237 12.8288 1.31108 13 1.78431 13H8.92157C9.3948 13 9.84865 12.8288 10.1833 12.524C10.5179 12.2193 10.7059 11.806 10.7059 11.375V10.9107H11.2157C11.6889 10.9107 12.1428 10.7395 12.4774 10.4348C12.812 10.13 13 9.71669 13 9.28571V1.625C13 1.19402 12.812 0.780698 12.4774 0.475951C12.1428 0.171205 11.6889 0 11.2157 0ZM9.68627 11.375C9.68627 11.5597 9.60571 11.7368 9.4623 11.8674C9.31889 11.9981 9.12438 12.0714 8.92157 12.0714H1.78431C1.5815 12.0714 1.38699 11.9981 1.24358 11.8674C1.10017 11.7368 1.01961 11.5597 1.01961 11.375V3.71429C1.01961 3.52958 1.10017 3.35244 1.24358 3.22184C1.38699 3.09123 1.5815 3.01786 1.78431 3.01786H8.92157C9.12438 3.01786 9.31889 3.09123 9.4623 3.22184C9.60571 3.35244 9.68627 3.52958 9.68627 3.71429V11.375ZM11.9804 9.28571C11.9804 9.47042 11.8998 9.64756 11.7564 9.77816C11.613 9.90877 11.4185 9.98214 11.2157 9.98214H10.7059V3.71429C10.7059 3.28331 10.5179 2.86998 10.1833 2.56524C9.84865 2.26049 9.3948 2.08929 8.92157 2.08929H3.31373V1.625C3.31373 1.4403 3.39429 1.26316 3.5377 1.13255C3.68111 1.00194 3.87562 0.928571 4.07843 0.928571H11.2157C11.4185 0.928571 11.613 1.00194 11.7564 1.13255C11.8998 1.26316 11.9804 1.4403 11.9804 1.625V9.28571Z\\\" fill=\\\"#575362\\\"/>\\n    <path d=\\\"M8.1572 4.17859H2.54935C2.41415 4.17859 2.28448 4.2275 2.18887 4.31458C2.09326 4.40165 2.03955 4.51974 2.03955 4.64287C2.03955 4.76601 2.09326 4.8841 2.18887 4.97117C2.28448 5.05824 2.41415 5.10716 2.54935 5.10716H8.1572C8.29241 5.10716 8.42208 5.05824 8.51768 4.97117C8.61329 4.8841 8.667 4.76601 8.667 4.64287C8.667 4.51974 8.61329 4.40165 8.51768 4.31458C8.42208 4.2275 8.29241 4.17859 8.1572 4.17859Z\\\" fill=\\\"#575362\\\"/>\\n    <path d=\\\"M8.1572 6.03571H2.54935C2.41415 6.03571 2.28448 6.08462 2.18887 6.17169C2.09326 6.25876 2.03955 6.37686 2.03955 6.49999C2.03955 6.62313 2.09326 6.74122 2.18887 6.82829C2.28448 6.91536 2.41415 6.96428 2.54935 6.96428H8.1572C8.29241 6.96428 8.42208 6.91536 8.51768 6.82829C8.61329 6.74122 8.667 6.62313 8.667 6.49999C8.667 6.37686 8.61329 6.25876 8.51768 6.17169C8.42208 6.08462 8.29241 6.03571 8.1572 6.03571Z\\\" fill=\\\"#575362\\\"/>\\n    <path d=\\\"M5.35328 7.89288H2.54935C2.41415 7.89288 2.28448 7.9418 2.18887 8.02887C2.09326 8.11594 2.03955 8.23403 2.03955 8.35717C2.03955 8.48031 2.09326 8.5984 2.18887 8.68547C2.28448 8.77254 2.41415 8.82145 2.54935 8.82145H5.35328C5.48848 8.82145 5.61816 8.77254 5.71376 8.68547C5.80937 8.5984 5.86308 8.48031 5.86308 8.35717C5.86308 8.23403 5.80937 8.11594 5.71376 8.02887C5.61816 7.9418 5.48848 7.89288 5.35328 7.89288Z\\\" fill=\\\"#575362\\\"/>\\n    </svg>\",\n  'delete': \"    <svg\\n    class=\\\"h-5\\\"\\n    width=\\\"30\\\"\\n    height=\\\"30\\\"\\n    viewBox=\\\"0 0 15 15\\\"\\n    fill=\\\"none\\\"\\n    xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  >\\n    <path\\n      d=\\\"M12.6071 3.03125H10.5844L9.7496 1.59033C9.51585 1.22412 9.15491 1 8.74241 1H6.25759C5.84509 1 5.46205 1.22412 5.25089 1.59033L4.41558 3.03125H2.39286C2.17494 3.03125 2 3.21229 2 3.4375V3.84375C2 4.06973 2.17494 4.25 2.39286 4.25H2.78571V12.375C2.78571 13.2726 3.48917 14 4.35714 14H10.6429C11.5108 14 12.2143 13.2726 12.2143 12.375V4.25H12.6071C12.8257 4.25 13 4.06973 13 3.84375V3.4375C13 3.21229 12.8257 3.03125 12.6071 3.03125ZM6.22076 2.29188C6.24531 2.24744 6.29442 2.21875 6.34598 2.21875H8.65402C8.70619 2.21875 8.7553 2.24731 8.77986 2.29175L9.20893 3.03125H5.79107L6.22076 2.29188ZM10.6429 12.7812H4.35714C4.14016 12.7812 3.96429 12.5994 3.96429 12.375V4.25H11.0357V12.375C11.0357 12.5984 10.8589 12.7812 10.6429 12.7812ZM7.5 11.5625C7.71715 11.5625 7.89286 11.3808 7.89286 11.1562V5.875C7.89286 5.65045 7.71715 5.46875 7.5 5.46875C7.28285 5.46875 7.10714 5.65156 7.10714 5.875V11.1562C7.10714 11.3797 7.28393 11.5625 7.5 11.5625ZM5.53571 11.5625C5.75179 11.5625 5.92857 11.3797 5.92857 11.1562V5.875C5.92857 5.65045 5.75287 5.46875 5.53571 5.46875C5.31856 5.46875 5.14286 5.65156 5.14286 5.875V11.1562C5.14286 11.3797 5.31964 11.5625 5.53571 11.5625ZM9.46429 11.5625C9.68144 11.5625 9.85714 11.3808 9.85714 11.1562V5.875C9.85714 5.65045 9.68144 5.46875 9.46429 5.46875C9.24713 5.46875 9.07143 5.65156 9.07143 5.875V11.1562C9.07143 11.3797 9.24821 11.5625 9.46429 11.5625Z\\\"\\n      fill=\\\"#575772\\\"\\n    />\\n  </svg>\\n\",\n  'downArrow': \"<svg\\nclass=\\\"w-2.5 h-2.5 ml-2.5 transition-transform transform\\\"\\naria-hidden=\\\"true\\\"\\nxmlns=\\\"http://www.w3.org/2000/svg\\\"\\n    fill=\\\"none\\\"\\n    viewBox=\\\"0 0 10 6\\\"\\n    >\\n    <path\\n    stroke=\\\"#575362\\\"\\n    stroke-linecap=\\\"round\\\"\\n        stroke-linejoin=\\\"round\\\"\\n        stroke-width=\\\"2\\\"\\n        d=\\\"m1 1 4 4 4-4\\\"\\n    />\\n</svg>\",\n  'search': \"<svg\\nclass=\\\"w-4 h-4 text-gray-500 dark:text-gray-400\\\"\\naria-hidden=\\\"true\\\"\\nxmlns=\\\"http://www.w3.org/2000/svg\\\"\\nfill=\\\"none\\\"\\nviewBox=\\\"0 0 20 20\\\"\\n>\\n<path\\n  stroke=\\\"currentColor\\\"\\n  stroke-linecap=\\\"round\\\"\\n  stroke-linejoin=\\\"round\\\"\\n  stroke-width=\\\"2\\\"\\n  d=\\\"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z\\\"\\n/>\\n</svg>\",\n  'action': \" <svg\\nwidth=\\\"17\\\"\\nheight=\\\"17\\\"\\nviewBox=\\\"0 0 17 17\\\"\\nfill=\\\"none\\\"\\nxmlns=\\\"http://www.w3.org/2000/svg\\\"\\n>\\n<path\\n  d=\\\"M7.5 13.7001C7.5 13.1478 7.94772 12.7001 8.5 12.7001C9.05228 12.7001 9.5 13.1478 9.5 13.7001C9.5 14.2524 9.05228 14.7001 8.5 14.7001C7.94772 14.7001 7.5 14.2524 7.5 13.7001Z\\\"\\n  fill=\\\"#575362\\\"\\n  stroke=\\\"#575362\\\"\\n  stroke-linecap=\\\"round\\\"\\n  stroke-linejoin=\\\"round\\\"\\n/>\\n<path\\n  d=\\\"M7.5 8.5C7.5 7.94772 7.94772 7.5 8.5 7.5C9.05228 7.5 9.5 7.94772 9.5 8.5C9.5 9.05228 9.05228 9.5 8.5 9.5C7.94772 9.5 7.5 9.05228 7.5 8.5Z\\\"\\n  fill=\\\"#575362\\\"\\n  stroke=\\\"#575362\\\"\\n  stroke-linecap=\\\"round\\\"\\n  stroke-linejoin=\\\"round\\\"\\n/>\\n<path\\n  d=\\\"M7.5 3.30005C7.5 2.74776 7.94772 2.30005 8.5 2.30005C9.05228 2.30005 9.5 2.74776 9.5 3.30005C9.5 3.85233 9.05228 4.30005 8.5 4.30005C7.94772 4.30005 7.5 3.85233 7.5 3.30005Z\\\"\\n  fill=\\\"#575362\\\"\\n  stroke=\\\"#575362\\\"\\n  stroke-linecap=\\\"round\\\"\\n  stroke-linejoin=\\\"round\\\"\\n/>\\n</svg>\",\n  'successIcon': \"<svg class=\\\"h-5 w-5 text-green-600\\\" fill=\\\"none\\\" viewBox=\\\"0 0 24 24\\\" stroke-width=\\\"1.5\\\" stroke=\\\"currentColor\\\" aria-hidden=\\\"true\\\">\\n                    <path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M4.5 12.75l6 6 9-13.5\\\" />\\n                </svg>\",\n  'failureIcon': \"<svg class=\\\"h-5 w-5 text-red-600\\\" fill=\\\"none\\\" viewBox=\\\"0 0 24 24\\\" stroke-width=\\\"1.5\\\" stroke=\\\"currentColor\\\" aria-hidden=\\\"true\\\">\\n                    <path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M6 18L18 6M6 6l12 12\\\" />\\n                </svg>\"\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Icons);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/Icons.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/IframeIntegration.js":
/*!******************************************************!*\
  !*** ./lite/admin/js/src/utils/IframeIntegration.js ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n/**\r\n * IframeIntegration handles communication between React parent and Mithril iframe\r\n * \r\n * Note: Plan data (ig_es_main_js_data.es_plan or icegramExpressAdminData.plan) is \r\n * already available in the iframe context - no need to pass from parent\r\n */\nvar IframeIntegration = /*#__PURE__*/function () {\n  function IframeIntegration() {\n    _classCallCheck(this, IframeIntegration);\n    this.isIframeMode = false;\n    this.parentOrigin = window.location.origin;\n    this.hasNotifiedParent = false;\n    this.initialize();\n  }\n  return _createClass(IframeIntegration, [{\n    key: \"initialize\",\n    value: function initialize() {\n      var _this = this;\n      this.isIframeMode = window.self !== window.top;\n      var urlParams = new URLSearchParams(window.location.search);\n      var iframeModeParam = urlParams.get('iframeMode');\n      if (iframeModeParam === 'true') {\n        this.isIframeMode = true;\n      }\n      if (this.isIframeMode) {\n        this.setupMessageListener();\n\n        // Wait for editor to actually load before notifying parent\n        // Listen for the custom event that fires when drag-and-drop editor is ready\n        document.addEventListener('es_drag_and_drop_editor_loaded', function () {\n          _this.notifyParentLoaded();\n        });\n\n        // For classic editor or fallback: wait for content to be visible\n        this.waitForEditorContent();\n      }\n    }\n  }, {\n    key: \"waitForEditorContent\",\n    value: function waitForEditorContent() {\n      var _this2 = this;\n      // Check if editor content area exists and has loaded\n      var checkInterval = setInterval(function () {\n        // Look for the main editor containers that indicate content is ready\n        var dndEditor = document.querySelector('#es-email-subscribers');\n        var classicEditor = document.querySelector('.ig-es-campaign-design-classic-editor');\n        var campaignContent = document.querySelector('.ig-es-campaign-content');\n        if (dndEditor || classicEditor || campaignContent) {\n          clearInterval(checkInterval);\n          setTimeout(function () {\n            _this2.notifyParentLoaded();\n          }, 300);\n        }\n      }, 100);\n      setTimeout(function () {\n        clearInterval(checkInterval);\n        _this2.notifyParentLoaded();\n      }, 5000);\n    }\n  }, {\n    key: \"setupMessageListener\",\n    value: function setupMessageListener() {\n      var _this3 = this;\n      window.addEventListener('message', function (event) {\n        var message = event.data;\n        if (message.type === 'REQUEST_CONTENT') {\n          _this3.sendContentToParent();\n        }\n      });\n    }\n  }, {\n    key: \"notifyParentLoaded\",\n    value: function notifyParentLoaded() {\n      // Only notify once to prevent duplicate messages\n      if (this.hasNotifiedParent) {\n        return;\n      }\n      if (window.parent && this.isIframeMode) {\n        this.hasNotifiedParent = true;\n        window.parent.postMessage({\n          type: 'EDITOR_LOADED'\n        }, '*');\n      }\n    }\n  }, {\n    key: \"sendContentToParent\",\n    value: function sendContentToParent() {\n      try {\n        // Call formatCampaignDetail which handles both DND and Classic editor\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].formatCampaignDetail();\n\n        // Validate body content exists\n        if (!_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.body || _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.body.trim() === '') {\n          throw new Error('No content to save. Please add some content to your email.');\n        }\n\n        // Send content directly to React parent without saving\n        // React will handle the actual save to database\n        this._sendContentData();\n      } catch (error) {\n        console.error('[Mithril IframeIntegration] Error in sendContentToParent:', error);\n        window.parent.postMessage({\n          type: 'SAVE_ERROR',\n          error: error.message || 'Failed to process request'\n        }, '*');\n      }\n    }\n  }, {\n    key: \"_sendContentData\",\n    value: function _sendContentData() {\n      var body = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.body;\n      var editorType = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.editor_type;\n      var dndEditorData = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.dnd_editor_data;\n      var campaignId = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.id;\n      var customCSS = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.es_custom_css;\n      var attachments = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.attachments || [];\n\n      // Send editor_type directly as-is (PHP values: 'drag-and-drop' or 'classic')\n      // React now uses the same values - no conversion needed\n      var payload = {\n        type: 'CONTENT_READY',\n        campaign_id: campaignId,\n        body: body,\n        editor_type: editorType,\n        // Direct pass-through\n        custom_css: customCSS,\n        attachments: attachments\n      };\n      if (editorType === 'drag-and-drop' && dndEditorData) {\n        payload.dnd_editor_data = dndEditorData;\n      }\n      window.parent.postMessage(payload, '*');\n    }\n\n    /**\r\n     * Check if currently in iframe mode\r\n     */\n  }, {\n    key: \"isInIframeMode\",\n    value: function isInIframeMode() {\n      return this.isIframeMode;\n    }\n  }]);\n}(); // Create singleton instance\nvar iframeIntegration = new IframeIntegration();\n/* harmony default export */ __webpack_exports__[\"default\"] = (iframeIntegration);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/IframeIntegration.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/Loader.js":
/*!*******************************************!*\
  !*** ./lite/admin/js/src/utils/Loader.js ***!
  \*******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ ESLoader; }\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar ESLoader = /*#__PURE__*/function () {\n  function ESLoader() {\n    _classCallCheck(this, ESLoader);\n    ESLoader.msg = ESLoader.msg || 'Loading';\n  }\n  return _createClass(ESLoader, [{\n    key: \"view\",\n    value: function view(vnode) {\n      return m(\"div\", {\n        class: \"fixed w-full mt-64 flex flex-col justify-center text-center items-center space-y-4 z-50\"\n      }, m(\"div\", {\n        class: \"text-lg text-gray-600\"\n      }, ESLoader.msg || ''), m(\"div\", {\n        class: \"text-indigo-600\"\n      }, m(\"svg\", {\n        xmlns: \"http://www.w3.org/2000/svg\",\n        class: \"w-16 h-16\",\n        stroke: \"currentColor\",\n        fill: \"none\",\n        viewBox: \"0 0 57 57\"\n      }, m(\"g\", {\n        transform: \"translate(1 1)\",\n        \"stroke-width\": \"2\",\n        fill: \"none\",\n        \"fill-rule\": \"evenodd\"\n      }, m(\"circle\", {\n        cx: \"5\",\n        cy: \"50\",\n        r: \"5\"\n      }, m(\"animate\", {\n        attributeName: \"cy\",\n        begin: \"0s\",\n        dur: \"2.2s\",\n        values: \"50;5;50;50\",\n        calcMode: \"linear\",\n        repeatCount: \"indefinite\"\n      }), m(\"animate\", {\n        attributeName: \"cx\",\n        begin: \"0s\",\n        dur: \"2.2s\",\n        values: \"5;27;49;5\",\n        calcMode: \"linear\",\n        repeatCount: \"indefinite\"\n      })), m(\"circle\", {\n        cx: \"27\",\n        cy: \"5\",\n        r: \"5\"\n      }, m(\"animate\", {\n        attributeName: \"cy\",\n        begin: \"0s\",\n        dur: \"2.2s\",\n        from: \"5\",\n        to: \"5\",\n        values: \"5;50;50;5\",\n        calcMode: \"linear\",\n        repeatCount: \"indefinite\"\n      }), m(\"animate\", {\n        attributeName: \"cx\",\n        begin: \"0s\",\n        dur: \"2.2s\",\n        from: \"27\",\n        to: \"27\",\n        values: \"27;49;5;27\",\n        calcMode: \"linear\",\n        repeatCount: \"indefinite\"\n      })), m(\"circle\", {\n        cx: \"49\",\n        cy: \"50\",\n        r: \"5\"\n      }, m(\"animate\", {\n        attributeName: \"cy\",\n        begin: \"0s\",\n        dur: \"2.2s\",\n        values: \"50;50;5;50\",\n        calcMode: \"linear\",\n        repeatCount: \"indefinite\"\n      }), m(\"animate\", {\n        attributeName: \"cx\",\n        from: \"49\",\n        to: \"49\",\n        begin: \"0s\",\n        dur: \"2.2s\",\n        values: \"49;5;27;49\",\n        calcMode: \"linear\",\n        repeatCount: \"indefinite\"\n      }))))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/Loader.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/Select2.js":
/*!********************************************!*\
  !*** ./lite/admin/js/src/utils/Select2.js ***!
  \********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\nvar Select2 = {\n  oncreate: function oncreate(_ref) {\n    var attrs = _ref.attrs;\n    var selectId = attrs.id;\n    var changeHandler = attrs.changeHandler;\n    jQuery('#' + selectId).select2({\n      placeholder: \"Select\",\n      closeOnSelect: false\n    });\n    jQuery('#' + selectId).on(\"change\", function (e) {\n      var value = jQuery('#' + selectId).val();\n      changeHandler(value);\n    });\n  },\n  view: function view(_ref2) {\n    var attrs = _ref2.attrs;\n    var selectId = attrs.id;\n    var options = attrs.options;\n    var selectedOptions = attrs.selectedOptions ? attrs.selectedOptions : [];\n    var multiple = attrs.multiple;\n    return m(\"select\", {\n      id: selectId,\n      multiple: multiple ? 'multiple' : ''\n    }, m(\"option\", {\n      value: \"\"\n    }, \"Select\"), options.map(function (option) {\n      return m(\"option\", {\n        value: option.value,\n        selected: selectedOptions.indexOf(option.value) > -1 ? 'selected' : ''\n      }, option.name);\n    }));\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Select2);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/Select2.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/SelectTime.js":
/*!***********************************************!*\
  !*** ./lite/admin/js/src/utils/SelectTime.js ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\nvar SelectTime = {\n  options: {\n    '0': '12:00 am',\n    '3600': '1:00 am',\n    '7200': '2:00 am',\n    '10800': '3:00 am',\n    '14400': '4:00 am',\n    '18000': '5:00 am',\n    '21600': '6:00 am',\n    '25200': '7:00 am',\n    '28800': '8:00 am',\n    '32400': '9:00 am',\n    '36000': '10:00 am',\n    '39600': '11:00 am',\n    '43200': '12:00 pm',\n    '46800': '1:00 pm',\n    '50400': '2:00 pm',\n    '54000': '3:00 pm',\n    '57600': '4:00 pm',\n    '61200': '5:00 pm',\n    '64800': '6:00 pm',\n    '68400': '7:00 pm',\n    '72000': '8:00 pm',\n    '75600': '9:00 pm',\n    '79200': '10:00 pm',\n    '82800': '11:00 pm'\n  },\n  view: function view(_ref) {\n    var attrs = _ref.attrs;\n    var options = SelectTime.options;\n    var value = attrs.value;\n    return m(\"select\", {\n      onchange: function onchange(e) {\n        return attrs.changeHandler(e.target.value);\n      },\n      class: \"w-28\"\n    }, Object.keys(options).map(function (key) {\n      return m(\"option\", {\n        value: key,\n        selected: key === value ? 'selected' : ''\n      }, options[key]);\n    }));\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (SelectTime);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/SelectTime.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/SpamScoreModal.js":
/*!***************************************************!*\
  !*** ./lite/admin/js/src/utils/SpamScoreModal.js ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ SpamScoreModal; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar SpamScoreModal = /*#__PURE__*/function () {\n  function SpamScoreModal() {\n    _classCallCheck(this, SpamScoreModal);\n  }\n  return _createClass(SpamScoreModal, [{\n    key: \"view\",\n    value: function view(vnode) {\n      return m(\"div\", {\n        class: \"hidden\",\n        id: \"spam_score_modal\"\n      }, m(\"div\", {\n        class: \"fixed z-50 top-0 left-0 w-full h-full flex items-center justify-center\",\n        style: \"background-color: rgba(0,0,0,.5);\"\n      }, m(\"div\", {\n        class: \"text-left bg-white h-auto p-2 md:max-w-xl md:p-2 lg:p-6 shadow-xl rounded mx-2 md:mx-0\"\n      }, m(\"h3\", {\n        class: \"text-2xl uppercase text-center text-gray-800\"\n      }, \"Spam score\"), m(\"h3\", {\n        class: \"es-spam-score text-4xl font-bold pb-1 text-center mt-8\"\n      }), m(\"div\", {\n        class: \"es-logs es-spam-success\",\n        style: \"display:none;\"\n      }, \"Awesome score. Your email is almost perfect.\"), m(\"div\", {\n        class: \"es-logs es-spam-error text-base font-normal text-gray-500 pb-2 text-center pt-4 list-none\",\n        style: \"display:none;\"\n      }, \"Ouch! your email needs improvement.\"), m(\"div\", {\n        class: \"es-spam-error-log\",\n        style: \"display:none;\"\n      }, m(\"div\", {\n        class: \"text-base font-normal text-gray-500 pb-2 list-none text-center\"\n      }, \"Here are some things to fix:\"), m(\"ul\", null)), m(\"div\", {\n        class: \"flex justify-center mt-8\"\n      }, m(\"button\", {\n        id: \"close_score\",\n        class: \"secondary\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].closeSpamScoreModal();\n        }\n      }, \"Close\")))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/SpamScoreModal.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/SuccessPopup.js":
/*!*************************************************!*\
  !*** ./lite/admin/js/src/utils/SuccessPopup.js ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ ESSuccessPopup; }\n/* harmony export */ });\n/* harmony import */ var _utils_Icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/Icons */ \"./lite/admin/js/src/utils/Icons.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar ESSuccessPopup = /*#__PURE__*/function () {\n  function ESSuccessPopup() {\n    _classCallCheck(this, ESSuccessPopup);\n    ESSuccessPopup.show = false;\n  }\n  return _createClass(ESSuccessPopup, [{\n    key: \"view\",\n    value: function view(vnode) {\n      return m(\"div\", {\n        class: \"form-fields\\r ig-es-popup-container\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-overlay\"\n      }), m(\"div\", {\n        class: \"ig-es-popup\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-close-container\"\n      }, m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          ESSuccessPopup.show = false;\n        },\n        class: \"cross\"\n      }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_0__[\"default\"].close))), m(\"div\", {\n        class: \"p-8\"\n      }, m(\"div\", {\n        class: \"mx-auto flex h-20 w-20 items-center justify-center rounded-full bg-green-100\"\n      }, m(\"svg\", {\n        class: \"h-12 w-12 text-green-600\",\n        fill: \"none\",\n        viewBox: \"0 0 24 24\",\n        \"stroke-width\": \"1.5\",\n        stroke: \"currentColor\",\n        \"aria-hidden\": \"true\"\n      }, m(\"path\", {\n        \"stroke-linecap\": \"round\",\n        \"stroke-linejoin\": \"round\",\n        d: \"M4.5 12.75l6 6 9-13.5\"\n      }))), m(\"div\", {\n        class: \"mt-3 text-center sm:mt-5\"\n      }, m(\"h3\", {\n        class: \"modal-headline\",\n        id: \"modal-title\"\n      }, ESSuccessPopup.message), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"p\", {\n        class: \"text-sm text-gray-500\"\n      }, \"Success\"))))));\n    }\n  }]);\n}();\n_defineProperty(ESSuccessPopup, \"message\", void 0);\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/SuccessPopup.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/TestmailPopup.js":
/*!**************************************************!*\
  !*** ./lite/admin/js/src/utils/TestmailPopup.js ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ TestmailPopup; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Icons */ \"./lite/admin/js/src/utils/Icons.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nvar TestmailPopup = /*#__PURE__*/function () {\n  function TestmailPopup() {\n    _classCallCheck(this, TestmailPopup);\n    TestmailPopup.show = false;\n  }\n  return _createClass(TestmailPopup, [{\n    key: \"view\",\n    value: function view(vnode) {\n      var es_test_email = \"\";\n      return m(\"div\", {\n        class: \"fixed z-50 top-0 left-0 w-full h-full flex items-center justify-center\",\n        style: \"background-color: rgba(0,0,0,.5);\"\n      }, m(\"div\", {\n        class: \"form-fields\\r ig-es-popup-container\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-overlay\"\n      }), m(\"div\", {\n        class: \"ig-es-popup\",\n        style: \"padding:20px;height:250px;width:500px;border-radius:2px; z-index:99;\"\n      }, m(\"h1\", null, \"Test Email\"), m(\"div\", {\n        class: \"ig-es-popup-close-container\"\n      }, m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          TestmailPopup.show = false;\n        },\n        class: \"cross\"\n      }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_1__[\"default\"].close))), m(\"div\", {\n        class: \"p-8 pt-1\"\n      }, m(\"div\", {\n        style: \"background-color:#F8F8F8;padding:20px;\"\n      }, m(\"label\", {\n        for: \"email\",\n        class: \"\"\n      }, \"Email Id\"), m(\"input\", {\n        type: \"email\",\n        id: \"es_test_email\",\n        class: \"\",\n        placeholder: \"Enter email here\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.es_admin_email,\n        required: true\n      })), m(\"div\", {\n        style: \"display: inline-block; float:right; padding-top: 50px; text-align: center;\"\n      }, m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          TestmailPopup.show = false;\n        },\n        class: \"secondary\",\n        style: \"margin-right: 10px;\"\n      }, \"Cancel\"), m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].testCamapign(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details);\n        },\n        class: \"primary\"\n      }, \"Send\"))))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/TestmailPopup.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/badge-icon-down.js":
/*!****************************************************!*\
  !*** ./lite/admin/js/src/utils/badge-icon-down.js ***!
  \****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\nvar BadgeIconDown = {\n  view: function view() {\n    return m(\"svg\", {\n      width: \"13\",\n      height: \"8\",\n      viewBox: \"0 0 13 8\",\n      fill: \"none\",\n      xmlns: \"http://www.w3.org/2000/svg\"\n    }, m(\"path\", {\n      d: \"M6.91634 6.91634H11.583M11.583 6.91634V2.24967M11.583 6.91634L6.91634 2.24967L4.58301 4.58301L1.08301 1.08301\",\n      stroke: \"#CA3131\",\n      \"stroke-width\": \"1.3125\",\n      \"stroke-linecap\": \"round\",\n      \"stroke-linejoin\": \"round\"\n    }));\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (BadgeIconDown);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/badge-icon-down.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/badge-icon-up.js":
/*!**************************************************!*\
  !*** ./lite/admin/js/src/utils/badge-icon-up.js ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\nvar BadgeIconUp = {\n  view: function view() {\n    return m(\"svg\", {\n      width: \"13\",\n      height: \"8\",\n      viewBox: \"0 0 13 8\",\n      fill: \"none\",\n      xmlns: \"http://www.w3.org/2000/svg\"\n    }, m(\"path\", {\n      d: \"M7.24984 1.08366H11.9165M11.9165 1.08366V5.75033M11.9165 1.08366L7.24984 5.75033L4.9165 3.41699L1.4165 6.91699\",\n      stroke: \"#1D9E2A\",\n      \"stroke-width\": \"1.3125\",\n      \"stroke-linecap\": \"round\",\n      \"stroke-linejoin\": \"round\"\n    }));\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (BadgeIconUp);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/badge-icon-up.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/badge-icon.js":
/*!***********************************************!*\
  !*** ./lite/admin/js/src/utils/badge-icon.js ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _badge_icon_up__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./badge-icon-up */ \"./lite/admin/js/src/utils/badge-icon-up.js\");\n/* harmony import */ var _badge_icon_down__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./badge-icon-down */ \"./lite/admin/js/src/utils/badge-icon-down.js\");\n\n\nvar BadgeIcon = {\n  view: function view(_ref) {\n    var attrs = _ref.attrs;\n    if (attrs.class === 'up') {\n      return m(_badge_icon_up__WEBPACK_IMPORTED_MODULE_0__[\"default\"], null);\n    } else if (attrs.class === 'down') {\n      return m(_badge_icon_down__WEBPACK_IMPORTED_MODULE_1__[\"default\"], null);\n    }\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (BadgeIcon);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/badge-icon.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/badge.js":
/*!******************************************!*\
  !*** ./lite/admin/js/src/utils/badge.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _badge_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./badge-icon */ \"./lite/admin/js/src/utils/badge-icon.js\");\n\nvar Badge = {\n  view: function view(_ref) {\n    var attrs = _ref.attrs;\n    var badgeText = attrs.badgeText,\n      badgeClass = attrs.badgeClass;\n    return m(\"div\", {\n      class: \"change \".concat(badgeClass)\n    }, m(\"span\", {\n      class: \"value\"\n    }, badgeText), m(\"span\", null, m(_badge_icon__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n      class: badgeClass\n    })));\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Badge);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/badge.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/utils/campaignPagination.js":
/*!*******************************************************!*\
  !*** ./lite/admin/js/src/utils/campaignPagination.js ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignPagination; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/campaigns/CampaignsModel */ \"./lite/admin/js/src/models/campaigns/CampaignsModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar CampaignPagination = /*#__PURE__*/function () {\n  function CampaignPagination() {\n    _classCallCheck(this, CampaignPagination);\n  }\n  return _createClass(CampaignPagination, [{\n    key: \"view\",\n    value: function view(vnode) {\n      var totalCampaigns = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaign_data[0];\n      var totalPages = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaign_data[1];\n      var currentPage = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.currentPage;\n      if (currentPage !== undefined && currentPage !== null) {\n        currentPage = parseInt(currentPage, 10);\n        if (isNaN(currentPage) || currentPage < 1) {\n          currentPage = 1;\n        }\n      } else {\n        currentPage = 1;\n      }\n      var next_page;\n      if (currentPage !== undefined && currentPage !== null && currentPage < totalPages) {\n        next_page = currentPage + 1;\n      } else {\n        next_page = totalPages;\n      }\n      var previous_page;\n      if (currentPage !== undefined && currentPage !== null && currentPage > 1) {\n        previous_page = currentPage - 1;\n      } else {\n        previous_page = 1;\n      }\n      return m(\"div\", {\n        class: \"tablenav-pages\",\n        style: \"text-align: right\"\n      }, m(\"span\", {\n        class: \"displaying-num\",\n        style: \"padding-right:25px\"\n      }, currentPage ? currentPage : 1, \" \", __('Page of ', 'email-subscribers'), \" \", totalCampaigns, \" \", __('items', 'email-subscribers')), m(\"span\", {\n        class: \"pagination-links\"\n      }, m(\"a\", {\n        class: \"first-page button mr-2\",\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getNextCampaigns(1);\n        }\n      }, m(\"span\", {\n        class: \"screen-reader-text\"\n      }, __('First page', 'email-subscribers')), m(\"span\", {\n        \"aria-hidden\": \"true\"\n      }, \"\\xAB\")), m(\"a\", {\n        class: \"prev-page button  mr-2\",\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getNextCampaigns(previous_page);\n        }\n      }, m(\"span\", {\n        class: \"screen-reader-text\"\n      }, __('Previous page', 'email-subscribers')), m(\"span\", {\n        \"aria-hidden\": \"true\"\n      }, \"\\u2039\")), m(\"a\", {\n        class: \"prev-page button  mr-2\",\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getNextCampaigns(currentPage);\n        }\n      }, currentPage ? currentPage : 1), m(\"a\", {\n        class: \"next-page button  mr-2\",\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getNextCampaigns(next_page);\n        }\n      }, m(\"span\", {\n        class: \"screen-reader-text\"\n      }, __('Next page', 'email-subscribers')), m(\"span\", {\n        \"aria-hidden\": \"true\"\n      }, \"\\u203A\")), m(\"a\", {\n        class: \"last-page button  mr-2\",\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getNextCampaigns(totalPages);\n        }\n      }, m(\"span\", {\n        class: \"screen-reader-text\"\n      }, __('Last page', 'email-subscribers')), m(\"span\", {\n        \"aria-hidden\": \"true\"\n      }, \"\\xBB\"))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/utils/campaignPagination.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/BroadcastSchedule.js":
/*!***************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/BroadcastSchedule.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ BroadcastSchedule; }\n/* harmony export */ });\n/* harmony import */ var mithril__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! mithril */ \"./node_modules/mithril/index.js\");\n/* harmony import */ var mithril__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(mithril__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _CamapignTooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\n/* harmony import */ var _OptimizeEmailDeliveryMessage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OptimizeEmailDeliveryMessage */ \"./lite/admin/js/src/views/campaign/OptimizeEmailDeliveryMessage.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n // Import Mithril library\n\n\n\n\nvar BroadcastSchedule = /*#__PURE__*/function () {\n  function BroadcastSchedule() {\n    _classCallCheck(this, BroadcastSchedule);\n  }\n  return _createClass(BroadcastSchedule, [{\n    key: \"oninit\",\n    value: function oninit() {\n      // Ensure CampaignModel.details.meta.scheduling_option is initialized properly\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.meta.scheduling_option === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.scheduling_option = 'schedule_now';\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.meta.scheduling_option = 'schedule_now';\n      } else {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.scheduling_option = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.meta.scheduling_option;\n      }\n    }\n  }, {\n    key: \"handleScheduleOptionChange\",\n    value: function handleScheduleOptionChange(option) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.scheduling_option = option;\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.meta.scheduling_option = option;\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      var _this = this;\n      return mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"flex space-x-2\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"h2\", null, __('Send Options', 'email-subscribers')), mithril__WEBPACK_IMPORTED_MODULE_0___default()(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        tooltipText: __('When to send this email', 'email-subscribers')\n      })), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"flex flex-row space-x-4 justify-between rounded-sm\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", null, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"label\", {\n        class: \"relative inline-flex items-center cursor-pointer\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"input\", {\n        type: \"radio\",\n        value: \"schedule_now\",\n        id: \"schedule_now\",\n        name: \"schedule_option\",\n        class: \"w-6 h-6 text-purple-600 bg-gray-100 border-gray-300 focus:ring-purple-500 dark:focus:ring-purple-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600\",\n        style: \"width:25px;height:25px;\",\n        checked: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.scheduling_option === 'schedule_now',\n        onchange: function onchange() {\n          return _this.handleScheduleOptionChange('schedule_now');\n        }\n      }))), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", null, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"span\", {\n        class: \"text-sm\"\n      }, __('Send Now', 'email-subscribers')))), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", null, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"label\", {\n        class: \"relative inline-flex items-center cursor-pointer\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"input\", {\n        type: \"radio\",\n        value: \"schedule_later\",\n        id: \"schedule_later\",\n        name: \"schedule_option\",\n        class: \"w-6 h-6 text-purple-600 bg-gray-100 border-gray-300 focus:ring-purple-500 dark:focus:ring-purple-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600\",\n        style: \"width:25px;height:25px;\",\n        checked: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.scheduling_option === 'schedule_later',\n        onchange: function onchange() {\n          return _this.handleScheduleOptionChange('schedule_later');\n        }\n      }))), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", null, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"span\", {\n        class: \"text-sm\"\n      }, __('Schedule For Later', 'email-subscribers'))))), _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.scheduling_option === 'schedule_later' && mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"flex\",\n        style: \"padding-left: 26.6rem;\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"span\", {\n        class: \"pr-4\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"input\", {\n        type: \"date\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.meta.es_schedule_date,\n        name: \"\",\n        id: \"\",\n        class: \"w-48 h-10\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.es_schedule_date = e.target.value;\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.meta.es_schedule_date = e.target.value;\n        }\n      })), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"span\", null, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"input\", {\n        type: \"time\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.meta.es_schedule_time,\n        name: \"\",\n        id: \"\",\n        class: \"w-48 h-10\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.es_schedule_time = e.target.value;\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.meta.es_schedule_time = e.target.value;\n        }\n      }))), _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.scheduling_option === 'schedule_later' && mithril__WEBPACK_IMPORTED_MODULE_0___default()(_OptimizeEmailDeliveryMessage__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/BroadcastSchedule.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/CamapignChoicePopup.js":
/*!*****************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/CamapignChoicePopup.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CamapignChoicePopup; }\n/* harmony export */ });\n/* harmony import */ var _utils_Functions_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Functions.js */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _templates_Gallery_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../templates/Gallery.js */ \"./lite/admin/js/src/views/templates/Gallery.js\");\n/* harmony import */ var _Dashboard_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dashboard.js */ \"./lite/admin/js/src/views/campaign/Dashboard.js\");\n/* harmony import */ var _utils_Icons_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/Icons.js */ \"./lite/admin/js/src/utils/Icons.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\nvar CamapignChoicePopup = /*#__PURE__*/function () {\n  function CamapignChoicePopup() {\n    _classCallCheck(this, CamapignChoicePopup);\n  }\n  return _createClass(CamapignChoicePopup, [{\n    key: \"view\",\n    value: function view() {\n      var cols = _utils_Functions_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPro() ? 3 : 2;\n      return m(\"div\", {\n        class: \"form-fields ig-es-popup-container\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-overlay\"\n      }), m(\"div\", {\n        class: \"ig-es-popup\"\n      }, m(\"div\", {\n        class: \"ig-es-popup-title\"\n      }, m(\"h3\", null, \"Create A New Campaign\"), m(\"div\", {\n        class: \"ig-es-popup-close-container\"\n      }, m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _Dashboard_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].hideCampaignChoicePopup();\n        },\n        class: \"cross\"\n      }, m.trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].close)))), m(\"div\", {\n        class: \"p-6 bg-gray-50 grid grid-cols-1 \".concat(_utils_Functions_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPro() ? 'md:grid-cols-3' : 'md:grid-cols-2', \" gap-5\")\n      }, m(\"div\", {\n        class: \"ig-es-new-campaign-type-tab\",\n        onclick: function onclick(e) {\n          m.route.set('/gallery', {\n            campaignType: ig_es_main_js_data.post_notification_campaign_type\n          });\n        }\n      }, m(\"img\", {\n        class: \"inline\",\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/image 9.png\",\n        alt: \"\"\n      }), m(\"p\", {\n        class: \"ig-es-campaign-type-title\"\n      }, \"Post Notification\")), m(\"div\", {\n        class: \"ig-es-new-campaign-type-tab\",\n        onclick: function onclick(e) {\n          m.route.set('/gallery', {\n            campaignType: ig_es_main_js_data.newsletter_campaign_type\n          });\n        }\n      }, m(\"img\", {\n        class: \"inline\",\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/image 10.png\",\n        alt: \"\"\n      }), m(\"p\", {\n        class: \"ig-es-campaign-type-title\"\n      }, \"Broadcast\")), _utils_Functions_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPro() && m(\"div\", {\n        class: \"ig-es-new-campaign-type-tab\",\n        onclick: function onclick(e) {\n          location.href = \"admin.php?page=es_sequence&action=new\";\n        }\n      }, m(\"img\", {\n        class: \"inline\",\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/image 12.png\",\n        alt: \"\"\n      }), m(\"p\", {\n        class: \"ig-es-campaign-type-title\"\n      }, \"Sequence\")))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/CamapignChoicePopup.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/CamapignTooltip.js":
/*!*************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/CamapignTooltip.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar CampaignTooltip = /*#__PURE__*/function () {\n  function CampaignTooltip() {\n    _classCallCheck(this, CampaignTooltip);\n  }\n  return _createClass(CampaignTooltip, [{\n    key: \"view\",\n    value: function view(_ref) {\n      var attrs = _ref.attrs;\n      return m(\"span\", {\n        class: \"relative flex flex-col items-center group cursor-pointer\"\n      }, m(\"svg\", {\n        width: \"18\",\n        height: \"18\",\n        viewBox: \"0 0 18 18\",\n        fill: \"none\",\n        xmlns: \"http://www.w3.org/2000/svg\"\n      }, m(\"path\", {\n        d: \"M9.00188 4.36987C7.62484 4.36987 6.48877 5.48872 6.48877 6.88299C6.48877 7.24446 6.78139 7.51987 7.12565 7.51987C7.46992 7.51987 7.76254 7.22725 7.76254 6.88299C7.76254 6.21168 8.31336 5.66086 8.98467 5.66086C9.69041 5.66086 10.2068 6.16004 10.2068 6.83135C10.2068 6.83135 10.2068 6.84856 10.2068 6.88299C10.2068 7.26168 10.1035 8.15676 8.88139 8.3461C8.57156 8.39774 8.33057 8.65594 8.33057 8.98299V10.7215C8.33057 11.083 8.6232 11.3584 8.96746 11.3584C9.31172 11.3584 9.60434 11.0658 9.60434 10.7215V9.49938C11.2224 9.0002 11.4806 7.60594 11.4806 6.83135C11.515 5.4543 10.3789 4.36987 9.00188 4.36987Z\",\n        fill: \"#575362\"\n      }), m(\"path\", {\n        d: \"M8.99908 12.1328C8.53433 12.1328 8.17285 12.5115 8.17285 12.959C8.17285 13.4066 8.55154 13.7853 8.99908 13.7853C9.44662 13.7853 9.82531 13.4066 9.82531 12.959C9.82531 12.5115 9.44662 12.1328 8.99908 12.1328Z\",\n        fill: \"#575362\"\n      }), m(\"path\", {\n        d: \"M9.00058 0.600098C4.37026 0.600098 0.600586 4.36977 0.600586 9.0001C0.600586 13.6304 4.37026 17.4001 9.00058 17.4001C13.6309 17.4001 17.4006 13.6304 17.4006 9.0001C17.4006 4.36977 13.6309 0.600098 9.00058 0.600098ZM9.00058 16.1263C5.07599 16.1263 1.87436 12.9247 1.87436 9.0001C1.87436 5.07551 5.07599 1.87387 9.00058 1.87387C12.9252 1.87387 16.1268 5.07551 16.1268 9.0001C16.1096 12.9247 12.9252 16.1263 9.00058 16.1263Z\",\n        fill: \"#575362\"\n      })), m(\"div\", {\n        class: \"absolute top-0 flex flex-col items-center hidden mb-6 group-hover:flex z-10\"\n      }, m(\"div\", {\n        class: \"w-2 h-2 mt-6 rotate-45  bg-white\"\n      }), m(\"span\", {\n        class: \"relative w-48 h-16 p-2 text-xs font-medium flex items-center justify-center shadow-lg rounded-sm bg-white bg-opacity-100\"\n      }, attrs.tooltipText)));\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignTooltip);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/CamapignTooltip.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/CampaignActions.js":
/*!*************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/CampaignActions.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Icons */ \"./lite/admin/js/src/utils/Icons.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nvar CampaignActions = /*#__PURE__*/function () {\n  function CampaignActions() {\n    _classCallCheck(this, CampaignActions);\n    this.showActionDropdown = false;\n  }\n  return _createClass(CampaignActions, [{\n    key: \"oninit\",\n    value: function oninit(vnode) {\n      var _this = this;\n      vnode.state.handleAction = function (campaignId, actionData) {\n        m.redraw();\n        vnode.attrs.onAction(campaignId, actionData);\n        _this.showActionDropdown = false;\n        CampaignActions.activeCampaignId = null;\n      };\n    }\n  }, {\n    key: \"toggleActionsDropdown\",\n    value: function toggleActionsDropdown(campaignId) {\n      var isDifferentCampaign = CampaignActions.activeCampaignId && CampaignActions.activeCampaignId !== campaignId;\n      CampaignActions.activeCampaignId = isDifferentCampaign || CampaignActions.activeCampaignId === null ? campaignId : null;\n      this.showActionDropdown = CampaignActions.activeCampaignId === campaignId;\n      m.redraw();\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref) {\n      var _this2 = this;\n      var attrs = _ref.attrs,\n        state = _ref.state;\n      var campaignId = attrs.campaignId,\n        actions = attrs.actions;\n      var showActionDropdown = CampaignActions.activeCampaignId === campaignId;\n      var dropDownClasses = \"absolute font-normal text-left dropdown-menu scale-95 z-50\";\n      return m(\"div\", {\n        class: \"text-right dropdown\"\n      }, m(\"div\", null, m(\"button\", {\n        type: \"button\",\n        id: \"menu-button\",\n        class: \"px-2 secondary menu-button\",\n        \"aria-expanded\": showActionDropdown,\n        \"aria-haspopup\": \"true\",\n        onclick: function onclick() {\n          return _this2.toggleActionsDropdown(campaignId);\n        }\n      }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_1__[\"default\"].action))), m(\"div\", {\n        class: \"\".concat(dropDownClasses, \" \").concat(showActionDropdown ? \"\" : \"hidden opacity-0\"),\n        role: \"menu\",\n        \"aria-orientation\": \"vertical\",\n        \"aria-labelledby\": \"menu-button\",\n        tabindex: \"-1\",\n        id: \"dropdown-menu\"\n      }, actions.map(function (actionData) {\n        return m(\"div\", {\n          role: \"none\"\n        }, m(\"a\", {\n          href: \"#\",\n          role: \"menuitem\",\n          tabindex: \"-1\",\n          onclick: function onclick(e) {\n            e.preventDefault();\n            state.handleAction(campaignId, actionData);\n          }\n        }, actionData.title));\n      })));\n    }\n  }, {\n    key: \"onremove\",\n    value: function onremove() {\n      if (CampaignActions.activeCampaignId === this.campaignId) {\n        CampaignActions.activeCampaignId = null;\n      }\n    }\n  }]);\n}();\n_defineProperty(CampaignActions, \"activeCampaignId\", null);\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignActions);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/CampaignActions.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/CampaignDetail.js":
/*!************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/CampaignDetail.js ***!
  \************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _editors_dnd_DNDEditorCanvas__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../editors/dnd/DNDEditorCanvas */ \"./lite/admin/js/src/views/editors/dnd/DNDEditorCanvas.js\");\n/* harmony import */ var _editors_dnd_DnDEditorSidebar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editors/dnd/DnDEditorSidebar */ \"./lite/admin/js/src/views/editors/dnd/DnDEditorSidebar.js\");\n/* harmony import */ var _editors_classic_ClassicEditorBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../editors/classic/ClassicEditorBody */ \"./lite/admin/js/src/views/editors/classic/ClassicEditorBody.js\");\n/* harmony import */ var _editors_classic_CampaignClassicEditorSidebar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../editors/classic/CampaignClassicEditorSidebar */ \"./lite/admin/js/src/views/editors/classic/CampaignClassicEditorSidebar.js\");\n/* harmony import */ var _editors_classic_CustomCSS__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../editors/classic/CustomCSS */ \"./lite/admin/js/src/views/editors/classic/CustomCSS.js\");\n/* harmony import */ var _templates_TemplateActions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../templates/TemplateActions */ \"./lite/admin/js/src/views/templates/TemplateActions.js\");\n/* harmony import */ var _utils_CampaignTagsWithToggle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/CampaignTagsWithToggle */ \"./lite/admin/js/src/utils/CampaignTagsWithToggle.js\");\n/* harmony import */ var _utils_Functions_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/Functions.js */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _CamapignTooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\n/* harmony import */ var _utils_IframeIntegration__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/IframeIntegration */ \"./lite/admin/js/src/utils/IframeIntegration.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n\n\nvar CampaignDetail = /*#__PURE__*/function () {\n  function CampaignDetail() {\n    _classCallCheck(this, CampaignDetail);\n    // Check if we're in iframe mode\n    this.isIframeMode = _utils_IframeIntegration__WEBPACK_IMPORTED_MODULE_10__[\"default\"].isInIframeMode();\n    this.dropdownVisible = false;\n  }\n  return _createClass(CampaignDetail, [{\n    key: \"switchEditor\",\n    value: function switchEditor() {\n      var isDnDEditor = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].usingDndEditor();\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.editor_type = isDnDEditor ? ig_es_campaign_editor_data.classicEditor : ig_es_campaign_editor_data.dndEditor;\n      if (isDnDEditor) {\n        var editorContent = esVisualEditor.exportEditorContent();\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.body = editorContent.html;\n      }\n    }\n  }, {\n    key: \"updateContent\",\n    value: function updateContent(content) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.body = content;\n    }\n  }, {\n    key: \"updateCustomCSS\",\n    value: function updateCustomCSS(customCSS) {\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta = {};\n      }\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.es_custom_css = customCSS;\n    }\n  }, {\n    key: \"toggleDropdown\",\n    value: function toggleDropdown() {\n      this.dropdownVisible = !this.dropdownVisible;\n    }\n  }, {\n    key: \"onremove\",\n    value: function onremove(vnode) {\n      var campaignType = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.type;\n      var editorType = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.editor_type;\n      if (_utils_Functions_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPostCampaign(campaignType) && _utils_Functions_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isDnDEditor(editorType)) {\n        var postBlockCount = esVisualEditor.Canvas.getDocument().getElementsByClassName('es-posts').length;\n        vnode.attrs.onRemove(postBlockCount);\n      }\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref) {\n      var _this = this;\n      var attrs = _ref.attrs;\n      var campaign = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details;\n\n      // If campaign id is 0 and campaign body is empty, it means campaign data is still not loaded. Return in this case.\n      if (campaign.id === 0 && campaign.body === '') {\n        return;\n      }\n      var campaignType = campaign.type;\n      var editorType = campaign.meta.editor_type;\n      var isDnDEditor = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].usingDndEditor();\n      var content = isDnDEditor ? campaign.meta.dnd_editor_data || '' : campaign.body;\n      return m(\"div\", {\n        class: \"flex justify-between w-full \".concat(this.isIframeMode ? 'pt-4' : '')\n      }, m(\"div\", {\n        id: \"campaign-content\",\n        class: \"template-editor h-screen\"\n      }, !this.isIframeMode && m('[', null, m(\"div\", {\n        class: \"flex flex-col gap-4 px-5 pt-5\"\n      }, m(\"div\", null, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"label\", {\n        for: \"Subject\"\n      }, __('Subject', 'email-subscribers'), \" \"), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        tooltipText: __('The email subject line is the first single-line text recipients see', 'email-subscribers')\n      })), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"subject\",\n        id: \"subject\",\n        placeholder: \"Subject line goes here {{post.title}}\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.subject || '',\n        onchange: function onchange(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.subject = e.target.value;\n        }\n      }))), m(_utils_CampaignTagsWithToggle__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n        campaignType: campaignType\n      })), m(\"div\", {\n        class: \"px-5\"\n      }, m(\"div\", null, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"label\", {\n        for: \"Preheader\"\n      }, __('Preheader', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        tooltipText: __('The summary text that follows a subject line when the email is viewed in an inbox', 'email-subscribers')\n      })), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"Preheader\",\n        id: \"Preheader\",\n        placeholder: \"Enter Preheader\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.preheader || '',\n        onchange: function onchange(e) {\n          return _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.preheader = e.target.value;\n        }\n      }))))), m(\"div\", {\n        class: \"template-preview w-full px-5\"\n      }, isDnDEditor ? m(_editors_dnd_DNDEditorCanvas__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        campaignType: campaignType,\n        content: content\n      }) : '', !isDnDEditor ? m(_editors_classic_ClassicEditorBody__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n        campaignType: campaignType,\n        content: content,\n        onRemove: this.updateContent\n      }) : '', function (_ig_es_main_js_data, _campaign$meta) {\n        // Plan data is already available in iframe via ig_es_main_js_data.es_plan\n        var userPlan = ((_ig_es_main_js_data = ig_es_main_js_data) === null || _ig_es_main_js_data === void 0 ? void 0 : _ig_es_main_js_data.es_plan) || 'lite';\n        var isPro = userPlan === 'pro' || userPlan === 'starter';\n        var isTrial = userPlan === 'trial';\n        var showCustomCSS = !isDnDEditor && (isPro || isTrial);\n        return showCustomCSS ? m(_editors_classic_CustomCSS__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n          customCSS: (_campaign$meta = campaign.meta) === null || _campaign$meta === void 0 ? void 0 : _campaign$meta.es_custom_css,\n          onChangeHandler: _this.updateCustomCSS\n        }) : '';\n      }())), m(\"div\", {\n        class: \"sidebar\"\n      }, m(\"div\", {\n        class: \"switch\"\n      }, m(\"p\", null, __('Switch To', 'email-subscribers'), \" \", isDnDEditor ? __('Classic Editor', 'email-subscribers') : __('Drag & Drop Editor', 'email-subscribers'), \" \"), m(\"a\", {\n        class: \"cursor-pointer\",\n        onclick: this.switchEditor\n      }, __('Switch', 'email-subscribers'))), m(\"div\", {\n        class: \"w-full\"\n      }, isDnDEditor ? m(_editors_dnd_DnDEditorSidebar__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        campaignType: campaignType\n      }) : '', !isDnDEditor ? m(_editors_classic_CampaignClassicEditorSidebar__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        campaignType: campaignType\n      }) : '')));\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignDetail);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/CampaignDetail.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/CampaignEdit.js":
/*!**********************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/CampaignEdit.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignEdit; }\n/* harmony export */ });\n/* harmony import */ var mithril__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! mithril */ \"./node_modules/mithril/index.js\");\n/* harmony import */ var mithril__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(mithril__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _CampaignDetail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CampaignDetail */ \"./lite/admin/js/src/views/campaign/CampaignDetail.js\");\n/* harmony import */ var _CampaignPublish__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CampaignPublish */ \"./lite/admin/js/src/views/campaign/CampaignPublish.js\");\n/* harmony import */ var _templates_TemplateActions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../templates/TemplateActions */ \"./lite/admin/js/src/views/templates/TemplateActions.js\");\n/* harmony import */ var _utils_TestmailPopup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/TestmailPopup */ \"./lite/admin/js/src/utils/TestmailPopup.js\");\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\n/* harmony import */ var _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/SuccessPopup */ \"./lite/admin/js/src/utils/SuccessPopup.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Icons_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils/Icons.js */ \"./lite/admin/js/src/utils/Icons.js\");\n/* harmony import */ var _utils_CampaignConfirmationPopup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/CampaignConfirmationPopup */ \"./lite/admin/js/src/utils/CampaignConfirmationPopup.js\");\n/* harmony import */ var _utils_IframeIntegration__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/IframeIntegration */ \"./lite/admin/js/src/utils/IframeIntegration.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n\n\n\nvar CampaignEdit = /*#__PURE__*/function () {\n  function CampaignEdit(_ref) {\n    var attrs = _ref.attrs;\n    _classCallCheck(this, CampaignEdit);\n    _defineProperty(this, \"activeTab\", 'design');\n    this.initialize(attrs);\n  }\n  return _createClass(CampaignEdit, [{\n    key: \"initialize\",\n    value: function initialize(attrs) {\n      _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].toggleAdminMenuVisibility(true);\n      this.model = new _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n\n      // Check if we're in iframe mode\n      this.isIframeMode = _utils_IframeIntegration__WEBPACK_IMPORTED_MODULE_11__[\"default\"].isInIframeMode();\n\n      // Parse query parameters from URL hash\n      // URL format: #!/campaign/edit/123?campaignType=newsletter&editorType=dnd_editor\n      var parseQueryParams = function parseQueryParams() {\n        var hash = window.location.hash;\n        var queryStart = hash.indexOf('?');\n        if (queryStart !== -1) {\n          var queryString = hash.substring(queryStart + 1);\n          var params = new URLSearchParams(queryString);\n          var result = {};\n          params.forEach(function (value, key) {\n            result[key] = value;\n          });\n          return result;\n        }\n        return {};\n      };\n      var queryParams = parseQueryParams();\n      var mergedAttrs = _objectSpread(_objectSpread({}, attrs), queryParams);\n      var campaignId = typeof mergedAttrs.campaignId !== 'undefined' ? parseInt(mergedAttrs.campaignId, 10) : 0;\n      var shouldReload = this.isIframeMode || !_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.id || _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.id !== campaignId;\n      if (shouldReload) {\n        if (campaignId > 0) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getCampaign(campaignId, mergedAttrs.editorType);\n        } else {\n          var campaignDefaultData = this.getCampaignDefaultData(mergedAttrs);\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].setCurrentCampaign(campaignId, campaignDefaultData);\n          mithril__WEBPACK_IMPORTED_MODULE_0___default().redraw();\n        }\n      }\n    }\n  }, {\n    key: \"switchTab\",\n    value: function switchTab(newTab) {\n      this.activeTab = newTab;\n    }\n  }, {\n    key: \"updatePostBlockCount\",\n    value: function updatePostBlockCount(postBlockCount) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.postBlockCount = postBlockCount ? postBlockCount : 0;\n    }\n  }, {\n    key: \"getCampaignDefaultData\",\n    value: function getCampaignDefaultData(attrs) {\n      var campaignType = typeof attrs.campaignType !== 'undefined' ? attrs.campaignType : ig_es_main_js_data.post_notification_campaign_type;\n      var editorType = typeof attrs.editorType !== 'undefined' ? attrs.editorType : ig_es_main_js_data.dnd_editor_slug;\n      var isDnDEditor = editorType === ig_es_main_js_data.dnd_editor_slug;\n      var subject = _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getCampaignDefaultSubject(campaignType);\n      var content = _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getCampaignDefaultContent(campaignType);\n      var campaignDefaultData = {\n        type: campaignType,\n        subject: subject,\n        body: content[ig_es_main_js_data.classic_editor_slug],\n        meta: {\n          editor_type: editorType,\n          enable_open_tracking: ig_es_main_js_data.tracking_details.is_track_email_opens,\n          enable_link_tracking: ig_es_main_js_data.tracking_details.ig_es_track_link_clicks,\n          enable_utm_tracking: ig_es_main_js_data.tracking_details.ig_es_track_utm\n        }\n      };\n      if (isDnDEditor) {\n        campaignDefaultData.meta.dnd_editor_data = content[ig_es_main_js_data.dnd_editor_slug];\n      }\n      return campaignDefaultData;\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref2) {\n      var _this = this;\n      var attr = _ref2.attr;\n      var isCampaignScheduled = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.scheduling_option === 'schedule_later';\n      return mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"absolute w-full bg-white\"\n      }, !this.isIframeMode && _utils_TestmailPopup__WEBPACK_IMPORTED_MODULE_5__[\"default\"].show ? mithril__WEBPACK_IMPORTED_MODULE_0___default()(_utils_TestmailPopup__WEBPACK_IMPORTED_MODULE_5__[\"default\"], null) : null, !this.isIframeMode && _utils_Loader__WEBPACK_IMPORTED_MODULE_6__[\"default\"].showLoader ? mithril__WEBPACK_IMPORTED_MODULE_0___default()(_utils_Loader__WEBPACK_IMPORTED_MODULE_6__[\"default\"], null) : null, !this.isIframeMode && _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_7__[\"default\"].show ? mithril__WEBPACK_IMPORTED_MODULE_0___default()(_utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_7__[\"default\"], null) : null, !this.isIframeMode && mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"sticky top-0 z-10\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"header\", null, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"nav\", {\n        \"aria-label\": \"Global\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"brand-logo\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"span\", null, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"img\", {\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/brand-logo/IG LOGO 192X192.svg\",\n        alt: \"brand logo\"\n      }), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"divide\"\n      }), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"h1\", null, _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.subject ? _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.subject : _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.name))), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"links\"\n      }, mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"a\", {\n        href: \"#\",\n        class: this.activeTab === 'design' ? 'active' : '',\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this.switchTab('design');\n        }\n      }, __('Design', 'email-subscribers')), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"a\", {\n        href: \"#\",\n        class: this.activeTab === 'publish' ? 'active' : '',\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this.switchTab('publish');\n        }\n      }, __('Publish', 'email-subscribers'))), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"div\", {\n        class: \"cta\"\n      }, this.activeTab === 'design' && mithril__WEBPACK_IMPORTED_MODULE_0___default()('[', null, _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPro() && mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _utils_TestmailPopup__WEBPACK_IMPORTED_MODULE_5__[\"default\"].show = true;\n        },\n        class: \"secondary\"\n      }, \"  \", __('Test Mail', 'email-subscribers')), mithril__WEBPACK_IMPORTED_MODULE_0___default()(_templates_TemplateActions__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        switchTab: this.switchTab.bind(this)\n      })), this.activeTab === 'publish' && mithril__WEBPACK_IMPORTED_MODULE_0___default()('[', null, !_utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isCampaignSending(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.status) && mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"button\", {\n        href: \"#\",\n        class: \"secondary\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.status = 0;\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].saveCamapign(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details);\n        }\n      }, __('Save As Draft', 'email-subscribers')), !_utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPostCampaign(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.type) && mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isCampaignSending(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.status) ? _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].saveCamapign(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details) : _utils_CampaignConfirmationPopup__WEBPACK_IMPORTED_MODULE_10__[\"default\"].show = true;\n        },\n        class: \"primary\"\n      }, _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isCampaignSending(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.status) ? __('Save', 'email-subscribers') : isCampaignScheduled ? __('Schedule', 'email-subscribers') : __('Send', 'email-subscribers')), _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPostCampaign(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.type) && mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].details.status = 1;\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].saveCamapign();\n        },\n        class: \"primary\"\n      }, __('Activate', 'email-subscribers'))), mithril__WEBPACK_IMPORTED_MODULE_0___default()(\"button\", {\n        href: \"#\",\n        class: \"cross\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          window.location.href = (ig_es_main_js_data.admin_url || '/wp-admin/').replace(/\\/$/, '') + '/admin.php?page=es_dashboard#campaigns';\n        }\n      }, \" \", mithril__WEBPACK_IMPORTED_MODULE_0___default().trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"].close)))))), (this.activeTab === 'design' || this.isIframeMode) && mithril__WEBPACK_IMPORTED_MODULE_0___default()(_CampaignDetail__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        onRemove: function onRemove(count) {\n          return _this.updatePostBlockCount(count);\n        }\n      }), this.activeTab === 'publish' && !this.isIframeMode && mithril__WEBPACK_IMPORTED_MODULE_0___default()(_CampaignPublish__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/CampaignEdit.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/CampaignPreview.js":
/*!*************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/CampaignPreview.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignPreview; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar CampaignPreview = /*#__PURE__*/function () {\n  function CampaignPreview() {\n    _classCallCheck(this, CampaignPreview);\n  }\n  return _createClass(CampaignPreview, [{\n    key: \"oncreate\",\n    value: function oncreate() {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].saveAndPreview(function (response) {\n        if (response.success) {\n          if (response.data.preview_html) {\n            _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.id = response.data.id;\n            _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].previewHTML = response.data.preview_html;\n            ig_es_load_iframe_preview('.campaign-preview', _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].previewHTML);\n          }\n        } else {\n          alert(__('An error occured while processing the request', 'email-subscribers'));\n        }\n      });\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      return m(\"div\", {\n        class: \"campaign-preview w-full \",\n        style: \"height: 140vh;\"\n      });\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/CampaignPreview.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/CampaignPublish.js":
/*!*************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/CampaignPublish.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _BroadcastSchedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BroadcastSchedule */ \"./lite/admin/js/src/views/campaign/BroadcastSchedule.js\");\n/* harmony import */ var _newsletter_BroadcastArchive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./newsletter/BroadcastArchive */ \"./lite/admin/js/src/views/campaign/newsletter/BroadcastArchive.js\");\n/* harmony import */ var _CampaignTracking__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CampaignTracking */ \"./lite/admin/js/src/views/campaign/CampaignTracking.js\");\n/* harmony import */ var _post_notification_PostNotificationSchedule__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./post-notification/PostNotificationSchedule */ \"./lite/admin/js/src/views/campaign/post-notification/PostNotificationSchedule.js\");\n/* harmony import */ var _RecipientRuleGroup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./RecipientRuleGroup */ \"./lite/admin/js/src/views/campaign/RecipientRuleGroup.js\");\n/* harmony import */ var _utils_SpamScoreModal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/SpamScoreModal */ \"./lite/admin/js/src/utils/SpamScoreModal.js\");\n/* harmony import */ var _CampaignPreview__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CampaignPreview */ \"./lite/admin/js/src/views/campaign/CampaignPreview.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _CamapignTooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\n/* harmony import */ var _campaign_upsell_CamapignTrackingMessageUpsale__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../campaign/upsell/CamapignTrackingMessageUpsale */ \"./lite/admin/js/src/views/campaign/upsell/CamapignTrackingMessageUpsale.js\");\n/* harmony import */ var _campaign_upsell_CamapignRulesMessageUpsale__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../campaign/upsell/CamapignRulesMessageUpsale */ \"./lite/admin/js/src/views/campaign/upsell/CamapignRulesMessageUpsale.js\");\n/* harmony import */ var _campaign_upsell_CamapignOptimizeEmailDelivery__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../campaign/upsell/CamapignOptimizeEmailDelivery */ \"./lite/admin/js/src/views/campaign/upsell/CamapignOptimizeEmailDelivery.js\");\n/* harmony import */ var _utils_CampaignConfirmationPopup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils/CampaignConfirmationPopup */ \"./lite/admin/js/src/utils/CampaignConfirmationPopup.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar CampaignPublish = /*#__PURE__*/function () {\n  function CampaignPublish() {\n    _classCallCheck(this, CampaignPublish);\n    this.initialize();\n  }\n  return _createClass(CampaignPublish, [{\n    key: \"initialize\",\n    value: function initialize() {\n      var _campaign$meta;\n      var campaign = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details;\n      if (campaign !== null && campaign !== void 0 && (_campaign$meta = campaign.meta) !== null && _campaign$meta !== void 0 && _campaign$meta.list_conditions && campaign.meta.list_conditions.length > 0) {\n        this.ruleGroups = campaign.meta.list_conditions;\n      } else {\n        this.ruleGroups = [_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ruleGroup];\n      }\n    }\n  }, {\n    key: \"addNewRuleGroup\",\n    value: function addNewRuleGroup() {\n      var newRuleGroup = JSON.parse(JSON.stringify(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ruleGroup));\n      this.ruleGroups.push(newRuleGroup);\n    }\n  }, {\n    key: \"updateData\",\n    value: function updateData(data, operation, index) {\n      if (operation == \"update\") {\n        if (data.length === 0) {\n          delete this.ruleGroups.splice(index, 1);\n        } else {\n          this.ruleGroups[index] = data;\n        }\n      } else if (operation == \"add\") {\n        this.addNewRuleGroup();\n      } else if (operation == \"delete\") {\n        this.ruleGroups.splice(index, 1);\n      }\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.list_conditions = this.ruleGroups;\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].updateMatchingRecipientsCount();\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref) {\n      var _this = this;\n      var attrs = _ref.attrs;\n      var campaign = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details;\n      var campaignType = campaign.type;\n      var isbroadcast = campaignType === 'newsletter';\n      var senderDetail = ig_es_main_js_data.sender_details;\n      var senderDetails = _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getSenderDetails(campaign, senderDetail);\n      if (senderDetails.length === 0) {\n        return '';\n      }\n      var recipientRulesClasses = 'flex flex-col space-y-4 justify-start bg-white p-4 rounded-sm';\n      return m(\"main\", null, m(_utils_SpamScoreModal__WEBPACK_IMPORTED_MODULE_6__[\"default\"], null), _utils_CampaignConfirmationPopup__WEBPACK_IMPORTED_MODULE_13__[\"default\"].show ? m(_utils_CampaignConfirmationPopup__WEBPACK_IMPORTED_MODULE_13__[\"default\"], null) : null, m(\"div\", {\n        class: \"flex flex-col lg:flex-row justify-between w-full overflow-hidden mt-0\"\n      }, m(\"div\", {\n        class: \"dnd-editor template-editor bg-light-gray w-full\"\n      }, m(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, m(\"div\", null, m(\"h2\", null, __('Campaign Details', 'email-subscribers'))), m(\"div\", null, m(\"label\", {\n        for: \"title\"\n      }, __('Title', 'email-subscribers')), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"title\",\n        id: \"title\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.name = e.target.value;\n        },\n        placeholder: \"\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.name\n      })))), m(\"div\", {\n        class: \"h-px border border-lighter-gray\"\n      }), m(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"h2\", null, __('Sender Details', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        tooltipText: __('The sender name in an email is the name that appears in the recipients\\' inboxes', 'email-subscribers')\n      })), m(\"div\", {\n        class: \"flex space-x-4\"\n      }, m(\"div\", {\n        class: \"w-full\"\n      }, m(\"label\", {\n        for: \"name\"\n      }, __('From Name', 'email-subscribers')), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"name\",\n        id: \"name\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.from_name = e.target.value;\n        },\n        placeholder: \"\",\n        value: senderDetails.fromName\n      }))), m(\"div\", {\n        class: \"w-full\"\n      }, m(\"label\", {\n        for: \"email\"\n      }, __('From Email', 'email-subscribers')), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"email\",\n        name: \"email\",\n        id: \"email\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.from_email = e.target.value;\n        },\n        placeholder: \"\",\n        value: senderDetails.fromEmail\n      })))), m(\"div\", {\n        class: \"flex space-x-4\"\n      }, m(\"div\", {\n        class: \"w-full\"\n      }, m(\"label\", {\n        for: \"title\"\n      }, __('Reply To Name', 'email-subscribers')), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"title\",\n        id: \"title\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.reply_to_name = e.target.value;\n        },\n        placeholder: \"\",\n        value: senderDetails.replyToName\n      }))), m(\"div\", {\n        class: \"w-full\"\n      }, m(\"label\", {\n        for: \"title\"\n      }, __('Reply To Email', 'email-subscribers')), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"title\",\n        id: \"title\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.reply_to_email = e.target.value;\n        },\n        placeholder: \"\",\n        value: senderDetails.replyToEmail\n      }))))), m(\"div\", {\n        class: \"h-px border border-lighter-gray\"\n      }), m(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, m(\"div\", {\n        class: \"flex justify-between items-center\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"h2\", null, __('Recipients', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        tooltipText: __('Group of individuals who would receive your email(s) ', 'email-subscribers')\n      })), m(\"span\", {\n        class: \"float-right\"\n      }, __('Recipients Count : ', 'email-subscribers'), m(\"span\", {\n        class: \"font-bold pr-2\"\n      }, _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.recipient_matching_count || 0))), m(\"div\", {\n        class: \"\".concat(recipientRulesClasses, \" \").concat(_utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isCampaignSending(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.status) ? 'pointer-events-none' : ''),\n        id: \"recipient_rules\"\n      }, this.ruleGroups.map(function (ruleGroupObj, index) {\n        return m('[', null, index > 0 && m(\"div\", {\n          class: \"h-4 justify-start items-center gap-2 inline-flex\"\n        }, m(\"div\", {\n          class: \"grow shrink basis-0 h-px border border-dashed border-neutral-200\"\n        }), m(\"p\", {\n          class: \"text-center\"\n        }, __('And', 'email-subscribers')), m(\"div\", {\n          class: \"grow shrink basis-0 h-px border border-dashed border-neutral-200\"\n        })), m(_RecipientRuleGroup__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n          index: index,\n          isOnlyOne: _this.ruleGroups.length === 1,\n          callbackToParent: _this.updateData.bind(_this),\n          ruleGroup: ruleGroupObj\n        }));\n      }), m(_campaign_upsell_CamapignRulesMessageUpsale__WEBPACK_IMPORTED_MODULE_11__[\"default\"], null)), m(\"div\", null, _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPro() && m(\"button\", {\n        href: \"#\",\n        class: \"white\",\n        onclick: function onclick() {\n          return _this.updateData(null, \"add\", null);\n        }\n      }, \"+ \", __('And', 'email-subscribers')))), m(\"div\", {\n        class: \"h-px border border-lighter-gray\"\n      }), isbroadcast && _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPro() ? m(_newsletter_BroadcastArchive__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null) : '', isbroadcast && _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPro() ? m(_BroadcastSchedule__WEBPACK_IMPORTED_MODULE_1__[\"default\"], null) : '', !isbroadcast && _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPro() ? m(_post_notification_PostNotificationSchedule__WEBPACK_IMPORTED_MODULE_4__[\"default\"], null) : '', m(_campaign_upsell_CamapignOptimizeEmailDelivery__WEBPACK_IMPORTED_MODULE_12__[\"default\"], null), m(_CampaignTracking__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null), (_utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPro() || _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isTrial()) && m('[', null, m(\"div\", {\n        class: \"h-px border border-lighter-gray\"\n      }), m(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, m(\"div\", null, m(\"h2\", null, __('Email Authentication', 'email-subscribers'))), m(\"div\", {\n        class: \"flex flex-row space-x-4 justify-between rounded-sm\"\n      }, m(\"div\", {\n        class: \"flex flex-row space-x-3 justify-between bg-white p-4 rounded-sm w-full\"\n      }, m(\"div\", null, m(\"span\", {\n        class: \"text-sm\",\n        id: \"spam_score\"\n      }, __('Get Spam Score', 'email-subscribers')), m(\"span\", {\n        class: \"text-sm hidden\"\n      }, __('Your Span Score is', 'email-subscribers'), \" \", m(\"span\", {\n        class: \"font-semibold\"\n      }, __('2.5', 'email-subscribers')))), m(\"div\", null, m(\"button\", {\n        class: \"secondary\",\n        id: \"spam_check\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getSpamScore(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details);\n        }\n      }, __('Check', 'email-subscribers')))), _utils_Functions__WEBPACK_IMPORTED_MODULE_8__[\"default\"].isPro() && m(\"div\", {\n        class: \"flex flex-row space-x-3 justify-between bg-white p-4 rounded-sm w-full\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"span\", {\n        class: \"text-sm\"\n      }, __('Email Authentication check', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        tooltipText: __('Check if email headers are present to authenticate the email sent', 'email-subscribers')\n      })), m(\"div\", null, m(\"button\", {\n        class: \"secondary\",\n        id: \"spam_recheck\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          window.open('?page=es_settings&btn=check_auth_header#tabs-email_sending', '_blank').focus();\n        }\n      }, __('Check', 'email-subscribers'))))))), m(_campaign_upsell_CamapignTrackingMessageUpsale__WEBPACK_IMPORTED_MODULE_10__[\"default\"], null)), m(\"aside\", {\n        class: \"sidebar\"\n      }, m(\"div\", {\n        class: \"template-editor dnd-editor side-editor w-full\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"h2\", null, __('Mail Preview', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        tooltipText: __('This is how your email looks', 'email-subscribers')\n      })), m(\"div\", null, m(\"div\", null, m(\"label\", {\n        for: \"Subject\"\n      }, __('Subject', 'email-subscribers')), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"subject\",\n        id: \"subject\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.subject = e.target.value;\n        },\n        placeholder: \"Add subject here\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.subject || ''\n      })))), m(\"div\", null, m(\"div\", null, m(\"label\", {\n        for: \"Preheader\"\n      }, __('Preheader', 'email-subscribers')), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"Preheader\",\n        id: \"Preheader\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.preheader = e.target.value;\n        },\n        placeholder: \"Enter Preheader\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.preheader || ''\n      })))), m(_CampaignPreview__WEBPACK_IMPORTED_MODULE_7__[\"default\"], null)))));\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignPublish);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/CampaignPublish.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/CampaignTracking.js":
/*!**************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/CampaignTracking.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _CamapignTooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar CampaignTracking = /*#__PURE__*/function () {\n  function CampaignTracking() {\n    _classCallCheck(this, CampaignTracking);\n  }\n  return _createClass(CampaignTracking, [{\n    key: \"toggleOpenTracking\",\n    value: function toggleOpenTracking() {\n      if (_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_open_tracking === 'yes') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_open_tracking = 'no';\n      } else {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_open_tracking = 'yes';\n      }\n    }\n  }, {\n    key: \"toggleLinkTracking\",\n    value: function toggleLinkTracking() {\n      if (_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_link_tracking === 'yes') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_link_tracking = 'no';\n      } else {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_link_tracking = 'yes';\n      }\n    }\n  }, {\n    key: \"toggleUTMTracking\",\n    value: function toggleUTMTracking() {\n      if (_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_utm_tracking === 'yes') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_utm_tracking = 'no';\n      } else {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_utm_tracking = 'yes';\n      }\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref) {\n      var _this = this;\n      var attrs = _ref.attrs;\n      var isUTMtrackingEnabled = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_utm_tracking === 'yes';\n      if (!_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_open_tracking || _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_open_tracking === '') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_open_tracking = ig_es_main_js_data.tracking_details.is_track_email_opens;\n      }\n      return m(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"h2\", null, \"Tracking\"), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        tooltipText: __('Monitoring how recipients interact with emails', 'email-subscribers')\n      })), m(\"div\", {\n        class: \"flex flex-row space-x-4 justify-between rounded-sm\"\n      }, m(\"div\", {\n        class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\"\n      }, m(\"div\", null, m(\"label\", {\n        class: \"relative inline-flex items-center cursor-pointer\"\n      }, m(\"input\", {\n        type: \"checkbox\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_open_tracking || '',\n        id: \"enable_open_tracking\",\n        class: \"sr-only peer\",\n        onchange: function onchange(e) {\n          e.preventDefault();\n          _this.toggleOpenTracking();\n        },\n        checked: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_open_tracking === 'yes'\n      }), m(\"div\", {\n        class: \"w-11 h-6 bg-gray-200 rounded-full peer  dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-primary\"\n      }))), m(\"div\", null, m(\"span\", {\n        class: \"text-sm\"\n      }, \"Open Tracking\"))), _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPro() ? m(\"div\", {\n        class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\"\n      }, m(\"div\", null, m(\"label\", {\n        class: \"relative inline-flex items-center cursor-pointer\"\n      }, m(\"input\", {\n        type: \"checkbox\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_link_tracking || '',\n        id: \"enable_link_tracking\",\n        class: \"sr-only peer\",\n        onchange: function onchange(e) {\n          e.preventDefault();\n          _this.toggleLinkTracking();\n        },\n        checked: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_link_tracking === 'yes'\n      }), m(\"div\", {\n        class: \"w-11 h-6 bg-gray-200 rounded-full peer  dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-primary\"\n      }))), m(\"div\", null, m(\"span\", {\n        class: \"text-sm\"\n      }, \"Link Tracking\"))) : '', _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPro() || _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isTrial() ? m(\"div\", {\n        class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\"\n      }, m(\"div\", null, m(\"label\", {\n        class: \"relative inline-flex items-center cursor-pointer\"\n      }, m(\"input\", {\n        type: \"checkbox\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_utm_tracking || '',\n        id: \"enable_utm_tracking\",\n        class: \"sr-only peer\",\n        onchange: function onchange(e) {\n          e.preventDefault();\n          _this.toggleUTMTracking();\n        },\n        checked: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_utm_tracking === 'yes'\n      }), m(\"div\", {\n        class: \"w-11 h-6 bg-gray-200 rounded-full peer  dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-primary\"\n      }))), m(\"div\", null, m(\"span\", {\n        class: \"text-sm\"\n      }, \"UTM Tracking\"))) : '', (_utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPro() || _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isTrial()) && isUTMtrackingEnabled ? m(\"div\", {\n        class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\",\n        id: \"es_utm_campaign_container\"\n      }, m(\"div\", null), m(\"div\", null), m(\"div\", {\n        id: \"campaignInput\"\n      }, m(\"input\", {\n        name: \"es_utm_campaign\",\n        placeholder: \"Campaign Name\",\n        id: \"es_utm_campaign\",\n        class: \"form-input border-gray-400 text-sm relative rounded-md shadow-sm block w-2/4 sm:leading-5\",\n        oninput: function oninput(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.es_utm_campaign = e.target.value;\n        },\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.es_utm_campaign || ''\n      }))) : ''));\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CampaignTracking);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/CampaignTracking.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/Dashboard.js":
/*!*******************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/Dashboard.js ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignsDashboard; }\n/* harmony export */ });\n/* harmony import */ var _Kpi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Kpi */ \"./lite/admin/js/src/views/campaign/Kpi.js\");\n/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List */ \"./lite/admin/js/src/views/campaign/List.js\");\n/* harmony import */ var _CamapignChoicePopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CamapignChoicePopup */ \"./lite/admin/js/src/views/campaign/CamapignChoicePopup.js\");\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\nvar CampaignsDashboard = /*#__PURE__*/function () {\n  function CampaignsDashboard() {\n    _classCallCheck(this, CampaignsDashboard);\n    CampaignsDashboard.CamapignChoicePopup = false;\n  }\n  return _createClass(CampaignsDashboard, [{\n    key: \"showCampaignChoicePopup\",\n    value: function showCampaignChoicePopup() {\n      CampaignsDashboard.CamapignChoicePopup = true;\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      var _this = this;\n      return m(\"main\", {\n        class: \"gap-5\"\n      }, m(\"div\", {\n        class: \"sticky top-0 z-10\"\n      }, m(\"header\", null, m(\"nav\", {\n        \"aria-label\": \"Global\",\n        class: \"pb-5 w-full\"\n      }, m(\"div\", {\n        class: \"brand-logo\"\n      }, m(\"span\", null, m(\"img\", {\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/brand-logo/IG LOGO 192X192.svg\",\n        alt: \"brand logo\"\n      }), m(\"div\", {\n        class: \"divide\"\n      }), m(\"h1\", null, \"Campaigns\"))), m(\"div\", {\n        class: \"cta\"\n      }, m(\"button\", {\n        href: \"#\",\n        class: \"secondary\",\n        onclick: function onclick(e) {\n          m.route.set('/gallery', {\n            manageTemplates: 'yes'\n          });\n        }\n      }, \"Templates\"), m(\"button\", {\n        href: \"#\",\n        class: \"primary\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"].currentCampaignID = '';\n          _this.showCampaignChoicePopup();\n        }\n      }, \"Create New\"))))), m(_Kpi__WEBPACK_IMPORTED_MODULE_0__[\"default\"], null), m(_List__WEBPACK_IMPORTED_MODULE_1__[\"default\"], null), CampaignsDashboard.CamapignChoicePopup ? m(_CamapignChoicePopup__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null) : '');\n    }\n  }], [{\n    key: \"hideCampaignChoicePopup\",\n    value: function hideCampaignChoicePopup() {\n      CampaignsDashboard.CamapignChoicePopup = false;\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/Dashboard.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/Kpi.js":
/*!*************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/Kpi.js ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignKPI; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignKPIsModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignKPIsModel */ \"./lite/admin/js/src/models/campaigns/CampaignKPIsModel.js\");\n/* harmony import */ var _utils_badge__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/badge */ \"./lite/admin/js/src/utils/badge.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\n/* harmony import */ var _CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\nvar CampaignKPI = /*#__PURE__*/function () {\n  function CampaignKPI(vnode) {\n    _classCallCheck(this, CampaignKPI);\n    this.initialize(vnode.attrs);\n  }\n  return _createClass(CampaignKPI, [{\n    key: \"initialize\",\n    value: function initialize(params) {\n      _utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].toggleAdminMenuVisibility(false);\n      this.model = new _models_campaigns_CampaignKPIsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"](this.urlParams);\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      var _this$model$data;\n      var kpis = (_this$model$data = this.model.data) === null || _this$model$data === void 0 ? void 0 : _this$model$data.kpis;\n      var totalSent = kpis === null || kpis === void 0 ? void 0 : kpis.total_message_sent;\n      var sentPercentageGrowth = kpis === null || kpis === void 0 ? void 0 : kpis.sent_percentage_growth;\n      var openRate = kpis === null || kpis === void 0 ? void 0 : kpis.avg_open_rate;\n      var openPercentageGrowth = kpis === null || kpis === void 0 ? void 0 : kpis.open_percentage_growth;\n      var clickRate = kpis === null || kpis === void 0 ? void 0 : kpis.avg_click_rate;\n      var clickPercentageGrowth = kpis === null || kpis === void 0 ? void 0 : kpis.click_percentage_growth;\n      var unsubscribeRate = kpis === null || kpis === void 0 ? void 0 : kpis.avg_unsubscribe_rate;\n      var unsubscribePercentageGrowth = kpis === null || kpis === void 0 ? void 0 : kpis.unsubscribe_percentage_growth;\n      var bounceRate = kpis === null || kpis === void 0 ? void 0 : kpis.avg_bounce_rate;\n      var boucnePercentageGrowth = kpis === null || kpis === void 0 ? void 0 : kpis.hard_bounces_percentage_growth;\n      if (this.model.showLoader) {\n        return m(_utils_Loader__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null);\n      }\n      if (!_utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro()) {\n        bounceRate = 0;\n        clickRate = 0;\n      }\n      return m(\"div\", {\n        class: \"overview\"\n      }, m(\"div\", {\n        class: \"flex flex-row justify-between\"\n      }, m(\"h2\", null, \"Overview\"), m(\"p\", {\n        class: \"text-gray-500\"\n      }, \"Compared to last 30 days\")), m(\"div\", {\n        class: \"flex flex-row w-full\"\n      }, m(\"div\", {\n        class: \"hidden lg:flex\"\n      }, m(\"img\", {\n        width: \"180\",\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/overview-snippet.png\",\n        alt: \"\"\n      })), m(\"div\", {\n        class: \"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 w-full ml-0 lg:ml-5\"\n      }, m(\"div\", {\n        class: \"kpi\"\n      }, m(\"div\", {\n        class: \"stats\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"span\", {\n        class: \"kpi-title\"\n      }, \"Email Sent \"), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        tooltipText: __(\"Count of email sent\", \"email-subscribers\")\n      })), m(\"span\", {\n        class: \"kpi-stats\"\n      }, totalSent ? totalSent : 0)), sentPercentageGrowth ? m(_utils_badge__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        badgeText: sentPercentageGrowth + '%',\n        badgeClass: sentPercentageGrowth > 0 ? 'up' : 'down'\n      }) : ''), m(\"div\", {\n        class: \"kpi\"\n      }, m(\"div\", {\n        class: \"stats\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"span\", {\n        class: \"kpi-title\"\n      }, \"Open Rate  \"), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        tooltipText: __(\"The percentage of subscribers who open a specific email out of your total number of subscribers\", \"email-subscribers\")\n      })), m(\"span\", {\n        class: \"kpi-stats\"\n      }, openRate, \"%\")), openPercentageGrowth ? m(_utils_badge__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        badgeText: openPercentageGrowth + '%',\n        badgeClass: openPercentageGrowth > 0 ? 'up' : 'down'\n      }) : ''), m(\"div\", {\n        class: \"kpi\"\n      }, m(\"div\", {\n        class: \"stats\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"span\", {\n        class: \"kpi-title\"\n      }, \"CTR \", !_utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro() && m(\"a\", {\n        class: \"ml-1\",\n        target: \"_blank\",\n        href: \"https://www.icegram.com/documentation/what-analytics-does-email-subscribers-track/?utm_source=in_app&utm_medium=dashboard-click-stat&utm_campaign=es_upsell\"\n      }, m(\"span\", {\n        class: \"premium-icon inline-block max\"\n      }))), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        tooltipText: __(\"The percentage of people who click on a link or other action in an email.\", \"email-subscribers\")\n      })), m(\"span\", {\n        class: \"kpi-stats\"\n      }, clickRate, \"%\")), clickPercentageGrowth ? m(_utils_badge__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        badgeText: clickPercentageGrowth + '%',\n        badgeClass: clickPercentageGrowth > 0 ? 'up' : 'down'\n      }) : ''), m(\"div\", {\n        class: \"kpi\"\n      }, m(\"div\", {\n        class: \"stats\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"span\", {\n        class: \"kpi-title\"\n      }, \"Unsubscribe Rate  \"), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        tooltipText: __(\"Count of unsubscribers\", \"email-subscribers\")\n      })), m(\"span\", {\n        class: \"kpi-stats\"\n      }, unsubscribeRate, \"%\")), unsubscribePercentageGrowth ? m(_utils_badge__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        badgeText: unsubscribePercentageGrowth + '%',\n        badgeClass: unsubscribePercentageGrowth < 0 ? 'up' : 'down'\n      }) : ''), m(\"div\", {\n        class: \"kpi\"\n      }, m(\"div\", {\n        class: \"stats\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"span\", {\n        class: \"kpi-title\"\n      }, \"Bounce Rate \", !_utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro() && m(\"a\", {\n        class: \"ml-1\",\n        target: \"_blank\",\n        href: \"https://www.icegram.com/docs/category/icegram-express-premium/handle-bounced-email-addresses/?utm_source=in_app&utm_medium=dashboard-bounce-stat&utm_campaign=es_upsell\"\n      }, m(\"span\", {\n        class: \"premium-icon inline-block max\"\n      }))), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        tooltipText: __(\"The percentage of emails that fail to reach the recipient's inbox.\", \"email-subscribers\")\n      })), m(\"span\", {\n        class: \"kpi-stats\"\n      }, bounceRate, \"%\")), boucnePercentageGrowth ? m(_utils_badge__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        badgeText: boucnePercentageGrowth + '%',\n        badgeClass: boucnePercentageGrowth < 0 ? 'up' : 'down'\n      }) : ''))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/Kpi.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/List.js":
/*!**************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/List.js ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignList; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignsModel */ \"./lite/admin/js/src/models/campaigns/CampaignsModel.js\");\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _CampaignActions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CampaignActions */ \"./lite/admin/js/src/views/campaign/CampaignActions.js\");\n/* harmony import */ var _utils_campaignPagination__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/campaignPagination */ \"./lite/admin/js/src/utils/campaignPagination.js\");\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Icons_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/Icons.js */ \"./lite/admin/js/src/utils/Icons.js\");\n/* harmony import */ var _utils_DeleteCampaignPopup_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/DeleteCampaignPopup.js */ \"./lite/admin/js/src/utils/DeleteCampaignPopup.js\");\n/* harmony import */ var _CamapignTooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\nvar CampaignList = /*#__PURE__*/function () {\n  function CampaignList() {\n    var _this = this;\n    _classCallCheck(this, CampaignList);\n    _defineProperty(this, \"handleCampaignAction\", function (campaignId, actionData) {\n      if (actionData.handler === 'editCampaign') {\n        _this.editCampaign(campaignId, actionData);\n      } else if (actionData.handler === 'toggleStatus') {\n        _this.toggleStatus(campaignId, actionData);\n      } else if (actionData.handler === 'deleteCampaign') {\n        _utils_DeleteCampaignPopup_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].mayDeleteCampaign(campaignId, actionData);\n      } else if (actionData.handler === 'viewReport') {\n        _this.redirectToReportPage(campaignId, actionData);\n      } else if (actionData.handler === 'duplicateCampaign') {\n        _this.duplicateCampaign(campaignId);\n      } else if (actionData.handler === 'pauseCampaign') {\n        _this.pauseCampaign(campaignId, actionData);\n      }\n    });\n    _defineProperty(this, \"toggleStatus\", function (campaignId, actionData) {\n      var newStatus = actionData.currentStatus === '1' ? '0' : '1';\n      _this.model.toggleStatus(campaignId, newStatus, function (response) {\n        if (response.success) {\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns.map(function (campaign) {\n            if (campaign.id === campaignId) {\n              campaign.status = newStatus;\n              campaign.status_text = newStatus === '1' ? __('Active', 'email-subscribers') : __('Draft', 'email-subscribers');\n            }\n            return campaign;\n          });\n        } else {\n          alert(__('Failed to change campaign status.', 'email-subscribers'));\n        }\n      });\n    });\n    _defineProperty(this, \"redirectToReportPage\", function (campaignId, actionData) {\n      window.location.href = actionData.url;\n    });\n    _defineProperty(this, \"duplicateCampaign\", function (campaignId, actionData) {\n      _this.model.duplicateCampaign(campaignId, function (response) {\n        if (response.success) {\n          var duplicateCampaign = response.data;\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns.unshift(duplicateCampaign);\n        } else {\n          alert(__('Failed to duplicate campaign. Please try again later.', 'email-subscribers'));\n        }\n      });\n    });\n    _defineProperty(this, \"pauseCampaign\", function (campaignId, actionData) {\n      var campaignAction = actionData.status === '4' ? 'resume' : 'pause';\n      _this.model.pauseCampaign(campaignId, campaignAction, function (response) {\n        if (response.success) {\n          _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns.map(function (campaign) {\n            if (campaign.id === campaignId) {\n              campaign.status = campaignAction === 'pause' ? '4' : '3';\n              campaign.status_text = campaignAction === 'pause' ? __('Paused', 'email-subscribers') : __('Sending', 'email-subscribers');\n            }\n            return campaign;\n          });\n        } else {\n          alert(__('Failed to change campaign status.', 'email-subscribers'));\n        }\n      });\n    });\n    this.initialize();\n  }\n  return _createClass(CampaignList, [{\n    key: \"initialize\",\n    value: function initialize() {\n      this.model = new _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n    }\n  }, {\n    key: \"refreshCampaignModel\",\n    value: function refreshCampaignModel(campaignId) {\n      var currentCampaignId = campaignId;\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].currentCampaignID = currentCampaignId;\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].setCurrentCampaign(currentCampaignId);\n    }\n  }, {\n    key: \"setSearchText\",\n    value: function setSearchText(searchText) {\n      this.model.filters.searchText = searchText;\n      _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].searchText = searchText;\n      this.model.getCampaigns();\n      this.model.getCampaignsCount(1);\n    }\n  }, {\n    key: \"setSelectedCampaignType\",\n    value: function setSelectedCampaignType(campaignType) {\n      this.model.filters.selectedCampaignType = campaignType;\n      _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].selectedCampaignType = campaignType;\n      this.model.getCampaigns();\n      this.model.getCampaignsCount(1);\n    }\n  }, {\n    key: \"setSelectedCampaignStatus\",\n    value: function setSelectedCampaignStatus(campaignStatus) {\n      this.model.filters.selectedCampaignStatus = campaignStatus;\n      _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].selectedCampaignStatus = campaignStatus;\n      this.model.getCampaigns();\n      this.model.getCampaignsCount(1);\n    }\n  }, {\n    key: \"toggleCheckbox\",\n    value: function toggleCheckbox(checked) {\n      document.querySelectorAll('.ig-es-list-table tbody input[type=\"checkbox\"]').forEach(function (checkbox) {\n        checkbox.checked = checked;\n      });\n    }\n  }, {\n    key: \"redirectToEditUrl\",\n    value: function redirectToEditUrl(campaign) {\n      var campaignType = campaign.type;\n      var _ig_es_main_js_data = ig_es_main_js_data,\n        newsletter_campaign_type = _ig_es_main_js_data.newsletter_campaign_type,\n        post_notification_campaign_type = _ig_es_main_js_data.post_notification_campaign_type,\n        post_digest_campaign_type = _ig_es_main_js_data.post_digest_campaign_type,\n        sequence_campaign_type = _ig_es_main_js_data.sequence_campaign_type,\n        workflow_campaign_type = _ig_es_main_js_data.workflow_campaign_type;\n      var campaignsUsingNewUI = [newsletter_campaign_type, post_notification_campaign_type, post_digest_campaign_type];\n      if (campaignsUsingNewUI.indexOf(campaignType) > -1) {\n        this.refreshCampaignModel(campaign.id);\n        m.route.set('/campaign/edit/:campaignId', {\n          campaignId: campaign.id\n        });\n      } else {\n        if (campaignType === sequence_campaign_type) {\n          window.location.href = '?page=es_sequence&action=edit&id=' + campaign.id;\n        } else if (campaignType === workflow_campaign_type) {\n          window.location.href = '?page=es_workflows&action=edit&id=' + campaign.parent_id;\n        }\n      }\n    }\n  }, {\n    key: \"mayDeleteCampaigns\",\n    value: function mayDeleteCampaigns() {\n      var campaignIds = [];\n      document.querySelectorAll('.ig-es-list-table tbody input[type=\"checkbox\"]').forEach(function (checkbox) {\n        if (checkbox.checked) {\n          campaignIds.push(checkbox.value);\n        }\n      });\n      if (campaignIds.length === 0) {\n        alert(__('Please select campaigns to delete.', 'email-subscribers'));\n        return;\n      }\n      var deleteCampaign = confirm(__('Do you really want to delete selected campaigns?', 'email-subscribers'));\n      if (deleteCampaign) {\n        _utils_Loader__WEBPACK_IMPORTED_MODULE_4__[\"default\"].msg = __('Deleting campaigns', 'email-subscribers');\n        _utils_Loader__WEBPACK_IMPORTED_MODULE_4__[\"default\"].showLoader = true;\n        this.model.deleteCampaigns(campaignIds, function (response) {\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_4__[\"default\"].showLoader = false;\n          _utils_Loader__WEBPACK_IMPORTED_MODULE_4__[\"default\"].msg = 'Loading';\n          if (response.success) {\n            _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns.filter(function (item) {\n              return !campaignIds.includes(item.id);\n            });\n            m.redraw(); // Trigger a redraw to update the parent's view\n          } else {\n            alert(ig_es_js_data.i18n_data.ajax_error_message);\n          }\n        });\n      }\n    }\n  }, {\n    key: \"editCampaign\",\n    value: function editCampaign(campaignId, actionData) {\n      this.redirectToEditUrl(actionData.campaign);\n    }\n  }, {\n    key: \"view\",\n    value:\n    // openEditScreen( campaignID, campaignType ) {\n    //   this.refreshCampaignModel(campaignID);\n    // }\n\n    function view(_ref) {\n      var _this2 = this;\n      var attrs = _ref.attrs;\n      if (this.model.showLoader) {\n        return '';\n      }\n      var campaignIconImages = {\n        \"post_notification\": \"notification.svg\",\n        \"newsletter\": \"broadcast.svg\",\n        \"post_digest\": \"notification.svg\",\n        \"sequence\": \"sequences.svg\",\n        \"workflow_email\": \"sequences.svg\",\n        \"workflow\": \"sequences.svg\"\n      };\n      var campaignTypeNames = ig_es_main_js_data.campaign_types;\n      var campaignStatusNames = ig_es_main_js_data.campaign_status_names;\n      var campaignStatusCodes = ig_es_main_js_data.campaign_status_codes;\n      var campaigns = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaigns.filter(function (campaign) {\n        return campaign.name.toLowerCase().indexOf(_this2.model.filters.searchText.toLowerCase()) >= 0;\n      });\n      var postNotificationType = ig_es_main_js_data.post_notification_campaign_type;\n      var postDigestType = ig_es_main_js_data.post_digest_campaign_type;\n      var newsletterType = ig_es_main_js_data.newsletter_campaign_type;\n      var sequenceType = ig_es_main_js_data.sequence_campaign_type;\n      var workflowType = ig_es_main_js_data.workflow_campaign_type;\n      var campaign_count = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaign_data[0];\n      var per_page = _models_campaigns_CampaignsModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].data.campaign_data[3];\n      var showpagination = true; // Initialize the variable\n      if (campaign_count !== null && campaign_count <= per_page) {\n        showpagination = false;\n      }\n      return m(\"div\", null, _utils_DeleteCampaignPopup_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].show ? m(_utils_DeleteCampaignPopup_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"], null) : null, m(\"div\", {\n        class: \"ig-es-list-table\"\n      }, m(\"div\", {\n        class: \"flex flex-col justify-start gap-4 md:gap-0 md:flex-row md:justify-between\"\n      }, m(\"div\", {\n        class: \"flex flex-row space-x-1\"\n      }, m(\"h2\", null, campaigns ? campaigns.length : 0, \" Items\")), m(\"div\", {\n        class: \"flex flex-row flex-wrap gap-5\"\n      }, m(\"div\", {\n        class: \"cta\"\n      }, m(\"button\", {\n        href: \"#\",\n        class: \"cross\",\n        onclick: function onclick() {\n          return _this2.mayDeleteCampaigns();\n        }\n      }, m.trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].delete))), m(\"div\", null, m(\"div\", {\n        class: \"relative\"\n      }, m(\"div\", {\n        class: \"search-icon\"\n      }, m.trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].search)), m(\"input\", {\n        type: \"search\",\n        id: \"default-search\",\n        class: \"search\",\n        placeholder: \"Search\",\n        oninput: function oninput(e) {\n          _this2.setSearchText(e.target.value);\n        }\n      }))), m(\"div\", null, m(\"select\", {\n        class: \"w-32 text-sm\",\n        onchange: function onchange(e) {\n          return _this2.setSelectedCampaignType(e.target.value);\n        }\n      }, m(\"option\", {\n        value: \"\"\n      }, \" \", __('All Types', 'email-subscribers')), Object.keys(campaignTypeNames).map(function (key) {\n        return m(\"option\", {\n          value: key\n        }, campaignTypeNames[key]);\n      }))), m(\"div\", null, m(\"select\", {\n        class: \"w-32 text-sm\",\n        onchange: function onchange(e) {\n          return _this2.setSelectedCampaignStatus(e.target.value);\n        }\n      }, m(\"option\", {\n        value: \"\"\n      }, __('All Status', 'email-subscribers')), Object.keys(campaignStatusNames).map(function (key) {\n        return m(\"option\", {\n          value: key\n        }, campaignStatusNames[key]);\n      }))))), _utils_Loader__WEBPACK_IMPORTED_MODULE_4__[\"default\"].showLoader ? m(_utils_Loader__WEBPACK_IMPORTED_MODULE_4__[\"default\"], null) : null, m(\"div\", {\n        class: \"overflow-x-auto\"\n      }, m(\"div\", {\n        class: \"table\"\n      }, m(\"table\", null, m(\"thead\", {\n        class: \"bg-light-gray\"\n      }, m(\"tr\", null, m(\"th\", {\n        scope: \"col\"\n      }, m(\"input\", {\n        type: \"checkbox\",\n        class: \"checkbox\",\n        onchange: function onchange(e) {\n          return _this2.toggleCheckbox(e.target.checked);\n        }\n      })), m(\"th\", {\n        scope: \"col\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, \"   \", m(\"label\", {\n        for: \"Name\"\n      }, __('NAME', 'email-subscribers')))), m(\"th\", {\n        scope: \"col\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, \"  \", m(\"label\", {\n        for: \"CATEGORY\"\n      }, __('CATEGORY', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n        tooltipText: __('Category of Post Notification', 'email-subscribers')\n      }), \" \")), m(\"th\", {\n        scope: \"col\"\n      }, \" \", m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"label\", {\n        for: \"open\"\n      }, __('OPEN', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n        tooltipText: __('Open rate of campaign', 'email-subscribers')\n      }), \" \")), _utils_Functions__WEBPACK_IMPORTED_MODULE_5__[\"default\"].isPro() && m(\"th\", {\n        scope: \"col\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"label\", {\n        for: \"click\"\n      }, __('CLICKS', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n        tooltipText: __('Click rate of campaign', 'email-subscribers')\n      }), \" \")), m(\"th\", {\n        scope: \"col\"\n      }, \" \", __('STATUS', 'email-subscribers')), m(\"th\", {\n        scope: \"col\"\n      }, __('ACTIONS', 'email-subscribers')))), m(\"tbody\", null, campaigns && campaigns.map(function (campaign) {\n        var campaignId = campaign.id;\n        var campaignType = campaign.type;\n        var campaignSlug = [postNotificationType, postDigestType].includes(campaignType) ? 'es_notifications' : 'es_' + campaignType;\n        var campaignStatus = campaign.status;\n        var campaignEditPage = '';\n        var campaignEditUrl = '';\n        var actions = [];\n        campaign.created_at = campaign.created_at.startsWith('<') ? '' : campaign.created_at;\n        campaign.editUrl = campaignEditUrl;\n        actions = [{\n          title: __('Edit', 'email-subscribers'),\n          handler: 'editCampaign',\n          campaign: campaign\n        }, {\n          title: __('Delete', 'email-subscribers'),\n          handler: 'deleteCampaign',\n          campaignType: campaignType,\n          campaignStatus: campaignStatus\n        }];\n        if (campaignType !== newsletterType) {\n          actions.push({\n            title: campaignStatus === '1' ? __('Disable', 'email-subscribers') : __('Enable', 'email-subscribers'),\n            handler: 'toggleStatus',\n            currentStatus: campaignStatus\n          });\n        }\n        if (campaign.report_link) {\n          actions.push({\n            title: __('View report', 'email-subscribers'),\n            handler: 'viewReport',\n            url: campaign.report_link\n          });\n        }\n        if (ig_es_main_js_data.es_plan === 'starter' || ig_es_main_js_data.es_plan === 'pro') {\n          if (campaignType === newsletterType && (campaignStatus === '3' || campaignStatus === '4')) {\n            actions.push({\n              title: campaignStatus === '3' ? __('Pause', 'email-subscribers') : __('Resume', 'email-subscribers'),\n              handler: 'pauseCampaign',\n              status: campaignStatus\n            });\n          }\n        }\n        if (ig_es_main_js_data.es_plan === 'pro') {\n          if (campaignType === newsletterType || campaignType === sequenceType) {\n            actions.push({\n              title: __('Duplicate', 'email-subscribers'),\n              handler: 'duplicateCampaign'\n            });\n          }\n        }\n        return m(\"tr\", null, m(\"td\", null, m(\"input\", {\n          type: \"checkbox\",\n          class: \"checkbox\",\n          value: campaign.id\n        })), m(\"td\", null, m(\"div\", {\n          class: \"list-item\"\n        }, m(\"div\", {\n          class: \"avatar\"\n        }, m(\"img\", {\n          src: ig_es_main_js_data.image_path + \"lite/admin/images/new/\" + campaignIconImages[campaign.type],\n          alt: \"\"\n        })), m(\"div\", {\n          class: \"item-details\"\n        }, m(\"p\", null, m(\"a\", {\n          href: \"#\",\n          onclick: function onclick(e) {\n            e.preventDefault();\n            _this2.redirectToEditUrl(campaign);\n          }\n        }, campaign.name)), m(\"div\", {\n          class: \"item-meta\"\n        }, m(\"span\", null, campaign.list_ids ? 'Lists: ' + campaign.list_ids : ''), m(\"span\", null, campaign.created_at))))), m(\"td\", null, campaign.categories ? campaign.categories : '-'), m(\"td\", null, campaign.open_rate, \"%\"), _utils_Functions__WEBPACK_IMPORTED_MODULE_5__[\"default\"].isPro() && m(\"td\", null, campaign.click_rate, \"%\"), m(\"td\", null, m(\"div\", {\n          class: \"status\"\n        }, campaign.status == campaignStatusCodes.draft ? m('[', null, m(\"p\", {\n          class: \"text-indigo-600\"\n        }, m(\"span\", {\n          class: \"bg-indigo-600 dot\"\n        }), campaign.status_text)) : '', campaign.status == campaignStatusCodes.active ? m('[', null, m(\"p\", {\n          class: \"text-green-600\"\n        }, m(\"span\", {\n          class: \"bg-green-600 dot\"\n        }), campaign.status_text)) : '', campaign.status == campaignStatusCodes.scheduled ? m('[', null, m(\"p\", {\n          class: \"text-red-600\"\n        }, m(\"span\", {\n          class: \"bg-red-600 dot\"\n        }), campaign.status_text), m(\"span\", {\n          class: \"sub-text\",\n          title: __('Campaign scheduled at', 'email-subscribers')\n        }, campaign.start_at)) : '', campaign.status == campaignStatusCodes.queued ? m('[', null, m(\"p\", {\n          class: \"text-blue-600\"\n        }, m(\"span\", {\n          class: \"bg-blue-600 dot\"\n        }), campaign.status_text), m(\"span\", {\n          class: \"sub-text\",\n          title: __('Campaign scheduled at', 'email-subscribers')\n        }, campaign.start_at)) : '', campaign.status == campaignStatusCodes.paused ? m('[', null, m(\"p\", {\n          class: \"text-gray-400\"\n        }, m(\"span\", {\n          class: \"bg-gray-400 dot\"\n        }), campaign.status_text), m(\"span\", {\n          class: \"sub-text\",\n          title: __('Campaign scheduled at', 'email-subscribers')\n        }, campaign.start_at)) : '', campaign.status == campaignStatusCodes.finished ? m('[', null, m(\"p\", {\n          class: \"text-green-600\"\n        }, m(\"span\", {\n          class: \"bg-green-600 dot\"\n        }), campaign.status_text), m(\"span\", {\n          class: \"sub-text\",\n          title: __('Campaign scheduled at', 'email-subscribers')\n        }, campaign.start_at)) : '')), m(\"td\", null, m(\"div\", {\n          class: \"\"\n        }, m(_CampaignActions__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n          campaignId: campaign.id,\n          actions: actions,\n          onAction: _this2.handleCampaignAction\n        }))));\n      }), !this.model.showLoader && campaigns.length === 0 ? m(\"tr\", null, m(\"td\", {\n        colspan: \"7\"\n      }, __('No campaigns found', 'email-subscribers'))) : '', this.model.showLoader ? __('Loading campaigns', 'email-subscribers') : '')))), showpagination ? m(_utils_campaignPagination__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null) : ''));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/List.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/OptimizeEmailDeliveryMessage.js":
/*!**************************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/OptimizeEmailDeliveryMessage.js ***!
  \**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _campaign_upsell_UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../campaign/upsell/UpsellDescriptionMessageBox */ \"./lite/admin/js/src/views/campaign/upsell/UpsellDescriptionMessageBox.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar OptimizeEmailDeliveryMessage = /*#__PURE__*/function () {\n  function OptimizeEmailDeliveryMessage() {\n    _classCallCheck(this, OptimizeEmailDeliveryMessage);\n  }\n  return _createClass(OptimizeEmailDeliveryMessage, [{\n    key: \"view\",\n    value: function view(_ref) {\n      var attrs = _ref.attrs;\n      var plans = ['lite', 'starter', 'trial'];\n      var showForPlans = _campaign_upsell_UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canUpsellFeatures(plans);\n      var settingLink = '?page=es_settings';\n      var optimizationOptionMessage = OptimizeEmailDeliveryMessage.getOptimizationOption();\n      if (!showForPlans) {\n        return m(\"div\", null, m(\"p\", {\n          class: \"field-desciption mb-2 text-xs italic font-normal leading-snug text-gray-500 helper \"\n        }, optimizationOptionMessage, \" \", m(\"a\", {\n          class: \"underline text-blue-600\",\n          href: settingLink,\n          target: \"_blank\"\n        }, \"here\"), \" \"));\n      } else {\n        return null;\n      }\n    }\n  }], [{\n    key: \"getOptimizationOption\",\n    value: function getOptimizationOption() {\n      var optimizationOptionMessage = '';\n      var _ig_es_main_js_data = ig_es_main_js_data,\n        optimization_option = _ig_es_main_js_data.optimization_option;\n      if (optimization_option === 'subscriber_timezone') {\n        optimizationOptionMessage = \"Email will send in 'Subscriber timezone' as per your settings set \";\n      } else if (optimization_option === 'subscriber_average_open_time') {\n        optimizationOptionMessage = \" Emails will be sent at the average open time of subscribers as per your settings set \";\n      } else {\n        optimizationOptionMessage = \"You can optimize email delivery time option available for you \";\n      }\n      return optimizationOptionMessage;\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (OptimizeEmailDeliveryMessage);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/OptimizeEmailDeliveryMessage.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/RecipientRuleCondition.js":
/*!********************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/RecipientRuleCondition.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ RecipientRuleCondition; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Icons_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Icons.js */ \"./lite/admin/js/src/utils/Icons.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nvar RecipientRuleCondition = /*#__PURE__*/function () {\n  function RecipientRuleCondition(vnode) {\n    _classCallCheck(this, RecipientRuleCondition);\n    this.ruleRow = vnode.attrs.ruleRow;\n    this.field = vnode.attrs.ruleRow.field;\n    this.index = vnode.attrs.index;\n    this.groupIndex = vnode.attrs.groupIndex;\n    this.group = vnode.attrs.group;\n    this.operator = vnode.attrs.ruleRow.operator;\n    this.value = vnode.attrs.ruleRow.value;\n    this.callbackToParent = vnode.attrs.callbackToParent;\n    this.operators = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].allRules[this.field].operators;\n    this.valueFieldType = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].allRules[this.field].value_field_type;\n    this.isOnlyOne = vnode.attrs.isOnlyOne;\n    this.isOnlyOneGroup = vnode.attrs.isOnlyOneGroup;\n    this.select_id = Math.random().toString(36).substring(7);\n  }\n  return _createClass(RecipientRuleCondition, [{\n    key: \"oncreate\",\n    value: function oncreate(vnode) {\n      if (this.valueFieldType === 'select' || this.valueFieldType === 'multi-select') {}\n      this.intializeSelectwoo();\n    }\n  }, {\n    key: \"onupdate\",\n    value: function onupdate(vnode) {\n      this.index = vnode.attrs.index;\n      this.intializeSelectwoo();\n    }\n  }, {\n    key: \"getDetails\",\n    value: function getDetails() {\n      return {\n        field: this.field,\n        operator: this.operator,\n        value: this.value\n      };\n    }\n  }, {\n    key: \"refreshValues\",\n    value: function refreshValues(field) {\n      this.value = '';\n      this.field = field;\n      this.operators = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].allRules[this.field].operators;\n      this.valueFieldType = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].allRules[this.field].value_field_type;\n      this.renderValues();\n    }\n  }, {\n    key: \"getRowID\",\n    value: function getRowID() {\n      return 'rule-row-' + this.groupIndex + '-' + this.index;\n    }\n  }, {\n    key: \"intializeSelectwoo\",\n    value: function intializeSelectwoo() {\n      var _this = this;\n      if (jQuery('#' + this.getRowID() + ' select.rule-value-field').data('select2')) {\n        jQuery('#' + this.getRowID() + ' select.rule-value-field').select2('destroy');\n      }\n      jQuery('#' + this.getRowID() + ' .select2-container').remove();\n      jQuery('#' + this.getRowID() + ' select.rule-value-field').select2();\n      jQuery(document).off('change', '#' + this.getRowID() + ' .rule-value-field');\n      jQuery(document).on('change', '#' + this.getRowID() + ' .rule-value-field', function (e) {\n        _this.value = jQuery(e.target).val();\n        _this.informParent();\n      });\n    }\n  }, {\n    key: \"renderFieldSelect\",\n    value: function renderFieldSelect(ruleRow) {\n      var _this2 = this;\n      var recipientRules = ig_es_main_js_data.recipient_rules;\n      var field = this.field || '';\n      return m(\"select\", {\n        class: \"py-1 pl-3 pr-8 text-sm font-medium leading-5 text-gray-700 bg-transparent form-select\",\n        onchange: function onchange(e) {\n          _this2.refreshValues(e.target.value);\n        }\n      }, Object.keys(recipientRules).map(function (ruleGroup, id) {\n        return m(\"optgroup\", {\n          label: ruleGroup\n        }, Object.keys(recipientRules[ruleGroup]).map(function (rule, id1) {\n          return m(\"option\", {\n            value: rule,\n            selected: field === rule ? \"selected\" : \"\"\n          }, recipientRules[ruleGroup][rule].title);\n        }));\n      }));\n    }\n  }, {\n    key: \"renderOperatorSelect\",\n    value: function renderOperatorSelect(ruleRow) {\n      var _this3 = this;\n      if (!this.operators || this.operators.length === 0) {\n        this.operator = 'is';\n        return '';\n      }\n      var operator = this.operator || '';\n      return m(\"select\", {\n        class: \"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select\",\n        style: \"width:220px\",\n        onchange: function onchange(e) {\n          _this3.listenOpChange(e);\n        }\n      }, this.operators.map(function (key) {\n        return m(\"option\", {\n          value: key['op'],\n          selected: operator === key['op'] ? \"selected\" : \"\"\n        }, key['label']);\n      }));\n    }\n  }, {\n    key: \"listenOpChange\",\n    value: function listenOpChange(e) {\n      this.operator = e.target.value;\n      this.informParent();\n    }\n  }, {\n    key: \"informParent\",\n    value: function informParent() {\n      this.callbackToParent(this.getDetails(), \"update\", this.index);\n    }\n  }, {\n    key: \"deleteRule\",\n    value: function deleteRule() {\n      this.callbackToParent(null, \"delete\", this.index);\n    }\n  }, {\n    key: \"renderValues\",\n    value: function renderValues(ruleRow) {\n      var _this4 = this;\n      var idNameMaps = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].allRules[this.field].allowed_values || {};\n      var valueFieldType = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].allRules[this.field].value_field_type;\n      return m(\"div\", {\n        class: \"flex-1 relative\"\n      }, ('text' === valueFieldType || 'date' === valueFieldType) && m(\"input\", {\n        type: valueFieldType,\n        class: \"rule-value-field w-full max-w-fullpy-1 text-sm leading-5 text-gray-700 form-input\",\n        value: this.value\n      }), 'number' === valueFieldType && m(\"input\", {\n        type: \"number\",\n        min: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].allRules[this.field].min_value,\n        max: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].allRules[this.field].max_value,\n        class: \"rule-value-field w-full max-w-fullpy-1 text-sm leading-5 text-gray-700 form-input\",\n        value: this.value\n      }), 'select' === valueFieldType && m(\"select\", {\n        class: \"rule-value-field max-w-full py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select w-full block\",\n        value: this.value\n      }, Object.keys(idNameMaps).map(function (key) {\n        return m(\"option\", {\n          value: key\n        }, idNameMaps[key]);\n      })), 'multi-select' === valueFieldType && m(\"select\", {\n        class: \"rule-value-field max-w-full py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select w-full block\",\n        multiple: true\n      }, Object.keys(idNameMaps).map(function (key) {\n        return m(\"option\", {\n          value: key,\n          selected: _this4.value.includes(key) ? \"selected\" : \"\"\n        }, idNameMaps[key]);\n      })));\n    }\n  }, {\n    key: \"addConditionRow\",\n    value: function addConditionRow(ruleRow) {\n      var _this5 = this;\n      return m('[', null, m(\"div\", {\n        id: this.getRowID(),\n        class: \"flex space-x-4\"\n      }, m(\"div\", {\n        class: \"w-full\"\n      }, this.renderFieldSelect(ruleRow)), this.renderOperatorSelect(ruleRow), m(\"div\", {\n        class: \"w-full\"\n      }, m(\"div\", {\n        class: \"dropdown\"\n      }, m(\"div\", null, this.renderValues(ruleRow)))), m(\"div\", {\n        class: \"cta\"\n      }, m(\"button\", {\n        href: \"#\",\n        onclick: function onclick() {\n          _this5.deleteRule();\n        },\n        class: (this.isOnlyOne && this.isOnlyOneGroup ? \"invisible\" : \"\") + \" cross\"\n      }, m.trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].close)))));\n    }\n  }, {\n    key: \"view\",\n    value: function view(vnode) {\n      this.isOnlyOne = vnode.attrs.isOnlyOne;\n      return m('[', null, this.addConditionRow(this.ruleRow));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/RecipientRuleCondition.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/RecipientRuleGroup.js":
/*!****************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/RecipientRuleGroup.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ RecipientRuleGroup; }\n/* harmony export */ });\n/* harmony import */ var _RecipientRuleCondition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RecipientRuleCondition */ \"./lite/admin/js/src/views/campaign/RecipientRuleCondition.js\");\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar RecipientRuleGroup = /*#__PURE__*/function () {\n  function RecipientRuleGroup(vnode) {\n    _classCallCheck(this, RecipientRuleGroup);\n    this.callbackToParent = vnode.attrs.callbackToParent;\n    this.index = vnode.attrs.index;\n    this.rules = vnode.attrs.ruleGroup;\n    this.isOnlyOne = vnode.attrs.isOnlyOne;\n  }\n  return _createClass(RecipientRuleGroup, [{\n    key: \"updateData\",\n    value: function updateData(data, operation, index) {\n      if (operation == \"update\") {\n        this.rules[index] = data;\n      } else if (operation == \"delete\") {\n        this.rules.splice(index, 1);\n      }\n      this.informParent();\n    }\n  }, {\n    key: \"onupdate\",\n    value: function onupdate(vnode) {\n      this.index = vnode.attrs.index;\n    }\n  }, {\n    key: \"addNewRule\",\n    value: function addNewRule() {\n      var newRule = JSON.parse(JSON.stringify(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ruleRow));\n      this.rules.push(newRule);\n      this.informParent();\n    }\n  }, {\n    key: \"getDetails\",\n    value: function getDetails() {\n      return this.rules;\n    }\n  }, {\n    key: \"informParent\",\n    value: function informParent() {\n      this.callbackToParent(this.getDetails(), \"update\", this.index);\n    }\n  }, {\n    key: \"addNewRuleGroup\",\n    value: function addNewRuleGroup() {\n      this.callbackToParent(null, \"add\", null);\n    }\n  }, {\n    key: \"deleteRuleGroup\",\n    value: function deleteRuleGroup() {\n      this.callbackToParent(null, \"delete\", this.index);\n    }\n  }, {\n    key: \"view\",\n    value: function view(vnode) {\n      var _this = this;\n      return m(\"div\", {\n        class: \"flex flex-col space-y-4 justify-start bg-white p-4 rounded-sm\"\n      }, this.rules.map(function (ruleObj, index) {\n        if (ruleObj.field === '_lists__in') {\n          ruleObj.field = 'list';\n        } else if (ruleObj.field === '_lists__not_in') {\n          ruleObj.field = 'list';\n          ruleObj.operator = 'is_not';\n        }\n        return m('[', null, index > 0 && m(\"div\", {\n          class: \"h-4 justify-start items-center gap-2 inline-flex\"\n        }, m(\"div\", {\n          class: \"grow shrink basis-0 h-px border border-dashed border-neutral-200\"\n        }), m(\"p\", {\n          class: \"text-center\"\n        }, \"Or\"), m(\"div\", {\n          class: \"grow shrink basis-0 h-px border border-dashed border-neutral-200\"\n        })), m(_RecipientRuleCondition__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n          isOnlyOneGroup: _this.isOnlyOne,\n          isOnlyOne: _this.rules.length === 1,\n          groupIndex: _this.index,\n          index: index,\n          callbackToParent: _this.updateData.bind(_this),\n          ruleRow: ruleObj\n        }));\n      }), m(\"div\", null, _utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isPro() && m(\"button\", {\n        href: \"#\",\n        class: \"secondary\",\n        onclick: function onclick() {\n          _this.addNewRule();\n        }\n      }, \"+ or\")));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/RecipientRuleGroup.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/newsletter/BroadcastArchive.js":
/*!*************************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/newsletter/BroadcastArchive.js ***!
  \*************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ BroadcastArchive; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar BroadcastArchive = /*#__PURE__*/function () {\n  function BroadcastArchive() {\n    _classCallCheck(this, BroadcastArchive);\n  }\n  return _createClass(BroadcastArchive, [{\n    key: \"view\",\n    value: function view() {\n      return m(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, m(\"div\", null, m(\"h2\", null, __('Archive Settings', 'email-subscribers'))), m(\"div\", {\n        class: \"flex flex-row space-x-4 justify-between rounded-sm\"\n      }, m(\"div\", {\n        class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\"\n      }, m(\"div\", null, m(\"label\", {\n        class: \"relative inline-flex items-center cursor-pointer\"\n      }, m(\"input\", {\n        type: \"checkbox\",\n        value: \"\",\n        class: \"sr-only peer\",\n        onchange: function onchange(e) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.enable_archive = e.target.checked ? 'yes' : 'no';\n        }\n      }), m(\"div\", {\n        class: \"w-11 h-6 bg-gray-200 rounded-full peer  dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-primary\"\n      }))), m(\"div\", null, m(\"span\", {\n        class: \"text-sm\"\n      }, __('Show In Archive', 'email-subscribers'))))), m(\"div\", {\n        class: \"h-px border border-lighter-gray\"\n      }));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/newsletter/BroadcastArchive.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/post-notification/PostNotificationSchedule.js":
/*!****************************************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/post-notification/PostNotificationSchedule.js ***!
  \****************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ PostNotificationSchedule; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_SelectTime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/SelectTime */ \"./lite/admin/js/src/utils/SelectTime.js\");\n/* harmony import */ var _CamapignTooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\n/* harmony import */ var _campaign_OptimizeEmailDeliveryMessage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../campaign/OptimizeEmailDeliveryMessage */ \"./lite/admin/js/src/views/campaign/OptimizeEmailDeliveryMessage.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\nvar PostNotificationSchedule = /*#__PURE__*/function () {\n  function PostNotificationSchedule() {\n    _classCallCheck(this, PostNotificationSchedule);\n    _defineProperty(this, \"timeFrameOptions\", {\n      // 'immediately': __( 'Immediately', 'email-subscribers' ),\n      'daily': __('Every Day', 'email-subscribers'),\n      'weekly': __('Every Week On', 'email-subscribers'),\n      'monthly': __('Every Month On', 'email-subscribers')\n    });\n    _defineProperty(this, \"weekDays\", [__('Sunday', 'email-subscribers'), __('Monday', 'email-subscribers'), __('Tuesday', 'email-subscribers'), __('Wednesday', 'email-subscribers'), __('Thursday', 'email-subscribers'), __('Friday', 'email-subscribers'), __('Saturday', 'email-subscribers')]);\n    _defineProperty(this, \"monthDays\", {\n      '1': '1st',\n      '2': '2nd',\n      '3': '3rd',\n      '4': '4th',\n      '5': '5th',\n      '6': '6th',\n      '7': '7th',\n      '8': '8th',\n      '9': '9th',\n      '10': '10th',\n      '11': '11th',\n      '12': '12th',\n      '13': '13th',\n      '14': '14th',\n      '15': '15th',\n      '16': '16th',\n      '17': '17th',\n      '18': '18th',\n      '19': '19th',\n      '20': '20th',\n      '21': '21th',\n      '22': '22th',\n      '23': '23th',\n      '24': '24th',\n      '25': '25th',\n      '26': '26th',\n      '27': '27th',\n      '28': '28th',\n      '30': '30th'\n    });\n  }\n  return _createClass(PostNotificationSchedule, [{\n    key: \"oninit\",\n    value: function oninit() {\n      this.setDefaultValues();\n    }\n  }, {\n    key: \"setDefaultValues\",\n    value: function setDefaultValues() {\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules = {};\n      }\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.time_frame === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.time_frame = 'immediately';\n      }\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.week_day === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.week_day = 0;\n      }\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.month_day === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.month_day = 1;\n      }\n    }\n  }, {\n    key: \"setTimeFrame\",\n    value: function setTimeFrame(timeFrame) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.time_frame = timeFrame;\n      if (timeFrame === 'immediately') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.type = ig_es_main_js_data.post_notification_campaign_type;\n      } else {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.type = ig_es_main_js_data.post_digest_campaign_type;\n      }\n      this.resetNextRunDate();\n    }\n  }, {\n    key: \"setWeekDay\",\n    value: function setWeekDay(weekDay) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.week_day = weekDay;\n      this.resetNextRunDate();\n    }\n  }, {\n    key: \"setTime\",\n    value: function setTime(time) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.time_of_day = time;\n      this.resetNextRunDate();\n    }\n  }, {\n    key: \"setMonthDay\",\n    value: function setMonthDay(monthDay) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.month_day = monthDay;\n      this.resetNextRunDate();\n    }\n  }, {\n    key: \"resetNextRunDate\",\n    value: function resetNextRunDate() {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.next_run = '';\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.scheduled = 0;\n    }\n  }, {\n    key: \"toggleSendNowMatchingPost\",\n    value: function toggleSendNowMatchingPost() {\n      if (_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.send_posts_now === 'yes') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.send_posts_now = 'no';\n      } else {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.send_posts_now = 'yes';\n      }\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      var _CampaignModel$detail,\n        _CampaignModel$detail2,\n        _CampaignModel$detail3,\n        _CampaignModel$detail4,\n        _this = this;\n      var timeFrame = (_CampaignModel$detail = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail === void 0 || (_CampaignModel$detail = _CampaignModel$detail.meta) === null || _CampaignModel$detail === void 0 || (_CampaignModel$detail = _CampaignModel$detail.rules) === null || _CampaignModel$detail === void 0 ? void 0 : _CampaignModel$detail.time_frame;\n      var weekDay = (_CampaignModel$detail2 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail2 === void 0 || (_CampaignModel$detail2 = _CampaignModel$detail2.meta) === null || _CampaignModel$detail2 === void 0 || (_CampaignModel$detail2 = _CampaignModel$detail2.rules) === null || _CampaignModel$detail2 === void 0 ? void 0 : _CampaignModel$detail2.week_day;\n      var timeOfDay = (_CampaignModel$detail3 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail3 === void 0 || (_CampaignModel$detail3 = _CampaignModel$detail3.meta) === null || _CampaignModel$detail3 === void 0 || (_CampaignModel$detail3 = _CampaignModel$detail3.rules) === null || _CampaignModel$detail3 === void 0 ? void 0 : _CampaignModel$detail3.time_of_day;\n      var monthDay = (_CampaignModel$detail4 = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail4 === void 0 || (_CampaignModel$detail4 = _CampaignModel$detail4.meta) === null || _CampaignModel$detail4 === void 0 || (_CampaignModel$detail4 = _CampaignModel$detail4.rules) === null || _CampaignModel$detail4 === void 0 ? void 0 : _CampaignModel$detail4.month_day;\n      var campaignType = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.type;\n      var isPostDigest = campaignType === ig_es_main_js_data.post_digest_campaign_type;\n      if (isPostDigest) {\n        // Immediate option isn't available in the post digest.\n        delete this.timeFrameOptions.immediately;\n      }\n      return m('[', null, m(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, m(\"div\", {\n        class: \"flex space-x-2\"\n      }, m(\"h2\", null, \" \", __('When To Send', 'email-subscribers')), m(_CamapignTooltip__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        tooltipText: __('When to send this email', 'email-subscribers')\n      })), m(\"div\", {\n        class: \"flex flex-col space-y-4 justify-start rounded-sm\"\n      }, m(\"div\", {\n        class: \"flex space-x-4 items-center\"\n      }, m(\"div\", {\n        class: \"w-36\"\n      }, m(\"div\", {\n        class: \"w-full\"\n      }, m(\"select\", {\n        class: \"w-full text-sm\",\n        onchange: function onchange(e) {\n          return _this.setTimeFrame(e.target.value);\n        },\n        value: timeFrame\n      }, m(\"option\", {\n        value: \"immediately\",\n        class: \"bg-white\"\n      }, \"Immediately\"), Object.keys(this.timeFrameOptions).map(function (key) {\n        return m(\"option\", {\n          value: key,\n          class: \"bg-white\"\n        }, _this.timeFrameOptions[key]);\n      })))), timeFrame === 'immediately' && m(\"div\", {\n        class: \"items-center\"\n      }, m(\"p\", null, __('After post is published', 'email-subscribers'))), timeFrame === 'daily' && m('[', null, m(\"div\", {\n        class: \"items-center\"\n      }, m(\"p\", null, __('At', 'email-subscribers'))), m(\"div\", null, m(_utils_SelectTime__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        changeHandler: this.setTime.bind(this),\n        value: timeOfDay\n      }))), timeFrame === 'weekly' && m('[', null, m(\"div\", {\n        class: \"\"\n      }, m(\"div\", {\n        class: \"w-full\"\n      }, m(\"select\", {\n        class: \"w-32 text-sm\",\n        onchange: function onchange(e) {\n          return _this.setWeekDay(e.target.value);\n        },\n        value: weekDay\n      }, this.weekDays.map(function (dayName, dayIndex) {\n        return m(\"option\", {\n          value: dayIndex,\n          class: \"bg-white\"\n        }, dayName);\n      })))), m(\"div\", {\n        class: \"items-center\"\n      }, m(\"p\", null, \"At\")), m(\"div\", null, m(_utils_SelectTime__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        changeHandler: this.setTime.bind(this),\n        value: timeOfDay\n      }))), timeFrame === 'monthly' && m('[', null, m(\"div\", {\n        class: \"\"\n      }, m(\"div\", {\n        class: \"w-full\"\n      }, m(\"select\", {\n        class: \"w-20 text-sm\",\n        value: monthDay,\n        onchange: function onchange(e) {\n          return _this.setMonthDay(e.target.value);\n        }\n      }, Object.keys(this.monthDays).map(function (day) {\n        return m(\"option\", {\n          value: day,\n          class: \"bg-white\"\n        }, _this.monthDays[day]);\n      })))), m(\"div\", {\n        class: \"items-center\"\n      }, m(\"p\", null, \"At\")), m(\"div\", null, m(_utils_SelectTime__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        changeHandler: this.setTime.bind(this),\n        value: timeOfDay\n      }))))), (timeFrame === 'monthly' || timeFrame === 'daily' || timeFrame === 'weekly') && m(\"div\", {\n        className: \"flex flex-col space-y-4 justify-start rounded-sm\"\n      }, m(\"div\", {\n        className: \"flex space-x-4 items-center\"\n      }, m(\"div\", {\n        className: \"w-full\"\n      }, m(_campaign_OptimizeEmailDeliveryMessage__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null)))), m(\"div\", {\n        class: \"flex flex-col space-y-4 justify-start rounded-sm\"\n      }, m(\"div\", {\n        class: \"flex space-x-4 items-center\"\n      }, m(\"div\", {\n        class: \"\"\n      }, m(\"div\", {\n        class: \"w-full\"\n      }, m(\"label\", {\n        class: \"relative items-center cursor-pointer\"\n      }, m(\"input\", {\n        type: \"checkbox\",\n        value: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.send_posts_now || '',\n        id: \"send_posts_now\",\n        class: \"sr-only peer\",\n        onchange: function onchange(e) {\n          e.preventDefault();\n          _this.toggleSendNowMatchingPost();\n        },\n        checked: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.send_posts_now === 'yes'\n      }), m(\"div\", {\n        class: \"w-11 h-6 bg-gray-200 rounded-full peer  dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-primary\"\n      })))), m(\"div\", {\n        class: \"items-center\"\n      }, m(\"p\", null, __('Include latest post in campaign and send now', 'email-subscribers')))))), m(\"div\", {\n        class: \"h-px border border-lighter-gray\"\n      }));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/post-notification/PostNotificationSchedule.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/post-notification/PostsSettingsTabContent.js":
/*!***************************************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/post-notification/PostsSettingsTabContent.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ PostsSettingsTabContent; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Select2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/Select2 */ \"./lite/admin/js/src/utils/Select2.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar PostsSettingsTabContent = /*#__PURE__*/function () {\n  function PostsSettingsTabContent() {\n    _classCallCheck(this, PostsSettingsTabContent);\n  }\n  return _createClass(PostsSettingsTabContent, [{\n    key: \"oninit\",\n    value: function oninit() {\n      this.setDefaultPostSettings();\n    }\n  }, {\n    key: \"setDefaultPostSettings\",\n    value: function setDefaultPostSettings() {\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules = {};\n      }\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.no_of_posts === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.no_of_posts = [1];\n      }\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.sorting_orders === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.sorting_orders = ['descending'];\n      }\n    }\n  }, {\n    key: \"setPostsCount\",\n    value: function setPostsCount(postCount) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.no_of_posts = [postCount]; // In classic editor, since only one Post block is present, we store post count for only one block.\n      if (postCount > 1) {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.type = ig_es_main_js_data.post_digest_campaign_type;\n      } else {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.type = ig_es_main_js_data.post_notification_campaign_type;\n      }\n    }\n  }, {\n    key: \"setCustomPostType\",\n    value: function setCustomPostType(checkbox) {\n      var postType = checkbox.value;\n      if (checkbox.checked) {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories[postType] = 'all';\n      } else {\n        delete _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories[postType];\n      }\n    }\n  }, {\n    key: \"setCustomPostTypeTerms\",\n    value: function setCustomPostTypeTerms(postType, termIds) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories[postType] = termIds;\n    }\n  }, {\n    key: \"setSortOrder\",\n    value: function setSortOrder(order) {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.rules.sorting_orders = [order];\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      var _CampaignModel$detail,\n        _ig_es_main_js_data,\n        _this = this;\n      var postsCount = 1;\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules !== 'undefined' && typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.no_of_posts !== 'undefined' && _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.no_of_posts.length > 0) {\n        postsCount = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.no_of_posts[0]; // In classic editor, we save only one Posts block\n      }\n      var postCategoriesOption = [{\n        value: 'all',\n        name: __('All', 'email-subscribers')\n      }, {\n        value: 'none',\n        name: __('None', 'email-subscribers')\n      }, {\n        value: 'custom',\n        name: __('Custom', 'email-subscribers')\n      }];\n      if (typeof _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories.post === 'undefined') {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories.post = 'all';\n      }\n      var selectedPostCategoriesOption = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories.post;\n      var postCategories = Object.keys(ig_es_main_js_data.post_categories).map(function (key) {\n        return {\n          value: parseInt(key),\n          name: ig_es_main_js_data.post_categories[key]\n        };\n      });\n      var selectedCategories = (_CampaignModel$detail = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories) !== null && _CampaignModel$detail !== void 0 && _CampaignModel$detail.post && Array.isArray(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories.post) ? _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories.post : [];\n\n      // If admin has set some categories then it means it selectedPostCategoriesOption will be custom\n      if (Array.isArray(selectedCategories) && selectedCategories.length > 0) {\n        selectedPostCategoriesOption = 'custom';\n      }\n      var postTypes = Object.keys(ig_es_main_js_data.post_types_name).filter(function (post_type) {\n        return post_type !== 'post';\n      }).map(function (post_type) {\n        return {\n          value: post_type,\n          name: ig_es_main_js_data.post_types_name[post_type]\n        };\n      });\n      var selectedPostTypes = Object.keys(_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories);\n      if (typeof selectedPostTypes === 'undefined') {\n        selectedPostTypes = [];\n      }\n      var customPostTypesCategories = (_ig_es_main_js_data = ig_es_main_js_data) !== null && _ig_es_main_js_data !== void 0 && _ig_es_main_js_data.custom_post_types_categories ? ig_es_main_js_data.custom_post_types_categories : {};\n      return m(\"div\", {\n        class: \"flex flex-col gap-4 px-8 py-2\"\n      }, _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPro() && m(\"div\", {\n        class: \"\"\n      }, m(\"label\", {\n        for: \"total_posts\"\n      }, \"Number of Posts\"), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"number\",\n        name: \"meta[posts_count]\",\n        id: \"posts_count\",\n        placeholder: \"Enter no. of posts to include\",\n        value: postsCount,\n        onchange: function onchange(e) {\n          var postsCount = e.target.value;\n          _this.setPostsCount(postsCount);\n        }\n      }))), m(\"div\", null, m(\"label\", {\n        for: \"post-category\"\n      }, \"Post Category\"), m(\"div\", {\n        class: \"mt-2\"\n      }, m(_utils_Select2__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        name: \"ig-es-post-category\",\n        id: \"ig-es-post-category\",\n        options: postCategoriesOption,\n        selectedOptions: [selectedPostCategoriesOption],\n        changeHandler: function changeHandler(value) {\n          _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories['post'] = value;\n          m.redraw();\n        }\n      })), selectedPostCategoriesOption === 'custom' && m(\"div\", {\n        class: \"mt-2\"\n      }, m(_utils_Select2__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        id: \"post-categories\",\n        options: postCategories,\n        selectedOptions: selectedCategories,\n        multiple: true,\n        changeHandler: function changeHandler(value) {\n          return _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories['post'] = value;\n        }\n      }))), m(\"div\", null, m(\"label\", {\n        for: \"post-types\"\n      }, \"Post Types\"), m(\"div\", {\n        class: \"mt-2\"\n      }, postTypes.map(function (postType) {\n        return m(\"div\", null, m(\"div\", {\n          class: \"block pr-4 text-sm font-medium text-gray-600 pb-2\"\n        }, m(\"input\", {\n          type: \"checkbox\",\n          id: \"es_custom_post_type_\".concat(postType.value),\n          value: postType.value,\n          class: \"es_custom_post_type form-checkbox\",\n          checked: selectedPostTypes.indexOf(postType.value) > -1 ? 'checked' : '',\n          onchange: function onchange(e) {\n            return _this.setCustomPostType(e.target);\n          }\n        }), m(\"label\", {\n          for: \"es_custom_post_type_\".concat(postType.value)\n        }, postType.name), _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPro() && typeof customPostTypesCategories[postType.value] !== 'undefined' && selectedPostTypes.indexOf(postType.value) > -1 && m(\"div\", {\n          class: \"es-post-type-categories\"\n        }, m(_utils_Select2__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n          id: postType.value + '-categories',\n          options: Object.keys(customPostTypesCategories[postType.value]).map(function (termId) {\n            return {\n              value: parseInt(termId),\n              name: customPostTypesCategories[postType.value][termId]\n            };\n          }),\n          selectedOptions: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.formattedCategories[postType.value],\n          changeHandler: function changeHandler(value) {\n            _this.setCustomPostTypeTerms(postType.value, value);\n          },\n          multiple: true\n        }))));\n      }))), postsCount > 1 && m(\"div\", null, m(\"h2\", null, \"Sort Order of Posts\"), m(\"div\", {\n        class: \"mt-2 flex flex-row gap-3 text-sm\"\n      }, m(\"div\", {\n        class: \"radio-section\"\n      }, m(\"input\", {\n        type: \"radio\",\n        name: \"post_order\",\n        value: \"descending\",\n        onchange: function onchange(e) {\n          return _this.setSortOrder(e.target.value);\n        },\n        checked: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.sorting_orders[0] === 'descending' ? 'checked' : ''\n      }), m(\"span\", {\n        class: \"ml-1\"\n      }, \"Newest First\")), m(\"div\", {\n        class: \"radio-section\"\n      }, m(\"input\", {\n        type: \"radio\",\n        name: \"post_order\",\n        value: \"ascending\",\n        onchange: function onchange(e) {\n          return _this.setSortOrder(e.target.value);\n        },\n        checked: _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.rules.sorting_orders[0] === 'ascending' ? 'checked' : ''\n      }), m(\"span\", {\n        class: \"ml-1\"\n      }, \"Oldest First\")))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/post-notification/PostsSettingsTabContent.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/upsell/CamapignOptimizeEmailDelivery.js":
/*!**********************************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/upsell/CamapignOptimizeEmailDelivery.js ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UpsellDescriptionMessageBox */ \"./lite/admin/js/src/views/campaign/upsell/UpsellDescriptionMessageBox.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar CamapignOptimizeEmailDelivery = /*#__PURE__*/function () {\n  function CamapignOptimizeEmailDelivery() {\n    _classCallCheck(this, CamapignOptimizeEmailDelivery);\n  }\n  return _createClass(CamapignOptimizeEmailDelivery, [{\n    key: \"view\",\n    value: function view(_ref) {\n      var attrs = _ref.attrs;\n      var plans = ['lite', 'starter', 'trial'];\n      var showForPlans = _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canUpsellFeatures(plans);\n      var utmArgs = {\n        utmMedium: 'optimize_delivery_time',\n        url: 'https://www.icegram.com/docs/category/icegram-express/'\n      };\n      var pricingUrl = _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getUtmTrackingUrl(utmArgs);\n      var upsellInfo = {\n        upgradeTitle: \"Optimize the email delivery with MAX\",\n        pricingUrl: pricingUrl,\n        upsellMessage: \"Optimize email delivery time based on 'Subscriber timezone' or 'Average open time'. This feature is exclusively available in Icegram Max. Please upgrade to Icegram Max to access this feature.\",\n        ctaHtml: false\n      };\n      if (showForPlans) {\n        return m(\"div\", {\n          class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\"\n        }, m(\"div\", {\n          class: \"block\"\n        }, m(_UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n          upsellInfo: upsellInfo\n        })));\n      } else {\n        return null;\n      }\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CamapignOptimizeEmailDelivery);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/upsell/CamapignOptimizeEmailDelivery.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/upsell/CamapignRulesMessageUpsale.js":
/*!*******************************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/upsell/CamapignRulesMessageUpsale.js ***!
  \*******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UpsellDescriptionMessageBox */ \"./lite/admin/js/src/views/campaign/upsell/UpsellDescriptionMessageBox.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar CamapignRulesMessageUpsale = /*#__PURE__*/function () {\n  function CamapignRulesMessageUpsale() {\n    _classCallCheck(this, CamapignRulesMessageUpsale);\n  }\n  return _createClass(CamapignRulesMessageUpsale, [{\n    key: \"view\",\n    value: function view(_ref) {\n      var attrs = _ref.attrs;\n      var plans = ['lite', 'starter', 'trial'];\n      var showForPlans = _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canUpsellFeatures(plans);\n      var utmArgs = {\n        utmMedium: 'campaign_rules',\n        url: 'https://www.icegram.com/documentation/how-to-send-broadcast-post-notification-post-digest-to-multiple-lists-in-one-campaign/'\n      };\n      var pricingUrl = _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getUtmTrackingUrl(utmArgs);\n      var upsellInfo = {\n        upgradeTitle: 'Send campaign to specific audience with MAX',\n        pricingUrl: pricingUrl,\n        upsellMessage: 'Now, you can select multiple lists and also filter your subscribers based on their country, emails and whether they have received, opened or clicked a specific campaign or not and then send campaign emails to them.',\n        ctaHtml: false\n      };\n      if (showForPlans) {\n        return m(\"div\", {\n          class: \"block\"\n        }, m(_UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n          upsellInfo: upsellInfo\n        }));\n      } else {\n        return null;\n      }\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CamapignRulesMessageUpsale);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/upsell/CamapignRulesMessageUpsale.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/upsell/CamapignTrackingMessageUpsale.js":
/*!**********************************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/upsell/CamapignTrackingMessageUpsale.js ***!
  \**********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UpsellDescriptionMessageBox */ \"./lite/admin/js/src/views/campaign/upsell/UpsellDescriptionMessageBox.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar CamapignTrackingMessageUpsale = /*#__PURE__*/function () {\n  function CamapignTrackingMessageUpsale() {\n    _classCallCheck(this, CamapignTrackingMessageUpsale);\n  }\n  return _createClass(CamapignTrackingMessageUpsale, [{\n    key: \"view\",\n    value: function view(_ref) {\n      var attrs = _ref.attrs;\n      var plans = ['lite', 'starter', 'trial'];\n      var showForPlans = _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canUpsellFeatures(plans);\n      var utmArgs = {\n        utmMedium: 'campaign_summary'\n      };\n      var pricingUrl = _UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getUtmTrackingUrl(utmArgs);\n      var upsellInfo = {\n        upgradeTitle: 'Reduce the possibility to land in spam with MAX',\n        pricingUrl: pricingUrl,\n        upsellMessage: 'Build your brand, track your links with the help of Link tracking, UTM tracking and schedule your next campaign accordingly. Also prevent your emails from landing into spam by checking its spam score',\n        ctaHtml: false\n      };\n      if (showForPlans) {\n        return m(\"div\", {\n          class: \"flex flex-row space-x-3 justify-start bg-white p-4 rounded-sm w-full\"\n        }, m(\"div\", {\n          class: \"block\"\n        }, m(_UpsellDescriptionMessageBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n          upsellInfo: upsellInfo\n        })));\n      } else {\n        return null;\n      }\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (CamapignTrackingMessageUpsale);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/upsell/CamapignTrackingMessageUpsale.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/campaign/upsell/UpsellDescriptionMessageBox.js":
/*!********************************************************************************!*\
  !*** ./lite/admin/js/src/views/campaign/upsell/UpsellDescriptionMessageBox.js ***!
  \********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar UpsellDescriptionMessageBox = /*#__PURE__*/function () {\n  function UpsellDescriptionMessageBox() {\n    _classCallCheck(this, UpsellDescriptionMessageBox);\n  }\n  return _createClass(UpsellDescriptionMessageBox, [{\n    key: \"view\",\n    value: function view(vnode) {\n      var upsellInfo = vnode.attrs.upsellInfo || {};\n      var messageHtml = \"\\n            <div class=\\\"inline-flex rounded-md shadow bg-teal-50 px-2 pt-1 my-2 w-full font-sans\\\">\\n                <div class=\\\"px-2 pt-2 pb-2\\\">\\n                    <div class=\\\"flex\\\">\\n                        <div class=\\\"flex-shrink-0\\\">\\n                            <svg class='h-5 w-5 text-teal-400' fill='currentColor' viewBox='0 0 20 20'>\\n                                <path fill-rule='evenodd'\\n                                      d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z'\\n                                      clip-rule='evenodd'/>\\n                            </svg>\\n                        </div>\\n                        <div class=\\\"ml-3\\\">\\n                            <h3 class=\\\"text-sm leading-5 font-medium text-blue-800 hover:underline\\\">\\n                                <a href=\\\"\".concat(upsellInfo.pricingUrl || '#', \"\\\" target=\\\"_blank\\\">\\n                                    \").concat(upsellInfo.upgradeTitle || '', \"\\n                                </a>\\n                            </h3>\\n                        </div>\\n                    </div>\\n                    <div class=\\\"mt-2 ml-8 text-sm leading-5 text-teal-700\\\">\\n                        <p>\\n                            \").concat(upsellInfo.upsellMessage || '', \"\\n                        </p>\\n        \\n                <p class=\\\"mb-1 mt-3\\\">\\n                    Upgrade now & get <b>10% discount!</b> <br/><br/>\\n                    Use coupon code:\\n                    <span class=\\\"ml-2 px-1.5 py-1 font-medium bg-yellow-100 rounded-md border-2 border-dotted border-indigo-300 select-all\\\">PREMIUM10</span>\\n                </p>\\n            \");\n      if (upsellInfo.ctaHtml) {\n        messageHtml += \"\\n                <div class=\\\"pt-6 text-center -ml-6 pb-2\\\">\\n                    <a href=\\\"\".concat(upsellInfo.pricingUrl || '#', \"\\\" target=\\\"_blank\\\"\\n                       class=\\\"rounded-md border border-transparent px-3 py-2 bg-white text-sm leading-7 font-medium text-white bg-indigo-600 hover:text-white hover:bg-indigo-500 transition ease-in-out duration-150 mt-2\\\">\\n                        Upgrade\\n                    </a>\\n                </div>\\n            \");\n      }\n      messageHtml += \"\\n                    </div>\\n                </div>\\n            </div>\\n        \";\n      return m.trust(messageHtml);\n    }\n  }], [{\n    key: \"getUtmTrackingUrl\",\n    value: function getUtmTrackingUrl() {\n      var utmArgs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      var url = utmArgs.url || 'https://icegram.com/email-subscribers-pricing/';\n      var utmSource = utmArgs.utmSource || 'in_app';\n      var utmMedium = utmArgs.utmMedium || '';\n      var utmCampaign = utmArgs.utmCampaign || 'es_upsell';\n      if (utmSource) {\n        url = new URL(url);\n        url.searchParams.append('utm_source', utmSource);\n      }\n      if (utmMedium) {\n        url.searchParams.append('utm_medium', utmMedium);\n      }\n      if (utmCampaign) {\n        url.searchParams.append('utm_campaign', utmCampaign);\n      }\n      return url.toString();\n    }\n  }, {\n    key: \"canUpsellFeatures\",\n    value: function canUpsellFeatures() {\n      var plans = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n      var esCurrentPlan = ig_es_main_js_data.es_plan;\n      if (plans.includes(esCurrentPlan)) {\n        return true;\n      }\n      return false;\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (UpsellDescriptionMessageBox);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/campaign/upsell/UpsellDescriptionMessageBox.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/classic/CampaignClassicEditorSidebar.js":
/*!*********************************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/classic/CampaignClassicEditorSidebar.js ***!
  \*********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignClassicEditorSidebar; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _CampaignTagsTabContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CampaignTagsTabContent */ \"./lite/admin/js/src/views/editors/classic/CampaignTagsTabContent.js\");\n/* harmony import */ var _campaign_post_notification_PostsSettingsTabContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../campaign/post-notification/PostsSettingsTabContent */ \"./lite/admin/js/src/views/campaign/post-notification/PostsSettingsTabContent.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar CampaignClassicEditorSidebar = /*#__PURE__*/function () {\n  function CampaignClassicEditorSidebar() {\n    _classCallCheck(this, CampaignClassicEditorSidebar);\n    _defineProperty(this, \"activeTab\", 'post_setting');\n  }\n  return _createClass(CampaignClassicEditorSidebar, [{\n    key: \"setActiveTab\",\n    value: function setActiveTab(activeTab) {\n      this.activeTab = activeTab;\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      var _this = this;\n      var tagsTab = 'tags_tab';\n      var postSettingTab = 'post_setting';\n      var campaign = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details;\n      var isPostCampaign = campaign.type === ig_es_main_js_data.post_notification_campaign_type || campaign.type === ig_es_main_js_data.post_digest_campaign_type;\n\n      // Check if we're in iframe mode (being called from React)\n      var urlParams = new URLSearchParams(window.location.search);\n      var isIframeMode = urlParams.get('iframeMode') === 'true' || window.self !== window.top;\n\n      // Hide post settings in iframe mode since React handles it\n      var showPostSettings = isPostCampaign && !isIframeMode;\n      return m('[', null, showPostSettings && m(\"div\", null, m(\"nav\", null, m(\"div\", {\n        class: \"links w-full text-center\"\n      }, m(\"a\", {\n        onclick: function onclick() {\n          return _this.setActiveTab(tagsTab);\n        },\n        class: \"cursor-pointer ig-es-campaign-sidebar-nav-menu ig-es-campaign-tags-nav w-1/2 \".concat(this.activeTab === tagsTab ? 'active' : '')\n      }, \"Tags\"), m(\"a\", {\n        onclick: function onclick() {\n          return _this.setActiveTab(postSettingTab);\n        },\n        class: \"cursor-pointer ig-es-campaign-sidebar-nav-menu  ig-es-post-settings-nav w-1/2 \".concat(this.activeTab === postSettingTab ? 'active' : '')\n      }, \"Post Settings\")))), m(\"div\", {\n        class: \"nav-child-sections\"\n      }, m(\"div\", {\n        id: \"ig-es-campaign-tags-section\",\n        class: \"nav-child \".concat(this.activeTab === tagsTab || !showPostSettings ? 'active' : 'hidden')\n      }, m(_CampaignTagsTabContent__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        campaignType: campaign.type\n      })), showPostSettings && m(\"div\", {\n        id: \"ig-es-post-settings-section\",\n        class: \"nav-child \".concat(this.activeTab === postSettingTab ? 'active' : 'hidden')\n      }, m(_campaign_post_notification_PostsSettingsTabContent__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/classic/CampaignClassicEditorSidebar.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/classic/CampaignTagsTabContent.js":
/*!***************************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/classic/CampaignTagsTabContent.js ***!
  \***************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignTagsTabContent; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/Icons */ \"./lite/admin/js/src/utils/Icons.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar CampaignTagsTabContent = /*#__PURE__*/function () {\n  function CampaignTagsTabContent() {\n    _classCallCheck(this, CampaignTagsTabContent);\n    this.postNotificationDropdownVisible = false;\n    this.broadcastDropdownVisible = false;\n    this.postDigestDropdownVisible = false;\n  }\n  return _createClass(CampaignTagsTabContent, [{\n    key: \"postNotificationToggleDropdown\",\n    value: function postNotificationToggleDropdown() {\n      this.postNotificationDropdownVisible = !this.postNotificationDropdownVisible;\n    }\n  }, {\n    key: \"broadcastToggleDropdown\",\n    value: function broadcastToggleDropdown() {\n      this.broadcastDropdownVisible = !this.broadcastDropdownVisible;\n    }\n  }, {\n    key: \"postDigestToggleDropdown\",\n    value: function postDigestToggleDropdown() {\n      this.postDigestDropdownVisible = !this.postDigestDropdownVisible;\n    }\n  }, {\n    key: \"copyTagToClipboard\",\n    value: function copyTagToClipboard(tag) {\n      var _this = this;\n      if (navigator.clipboard) {\n        navigator.clipboard.writeText(tag).then(function () {\n          // alert(\"Copied to clipboard: \" + tag);\n        }).catch(function (error) {\n          console.error(\"Copy to clipboard failed: \" + error);\n          _this.copyTagManually(tag);\n        });\n      } else {\n        console.error(\"Clipboard API is not supported in this browser.\");\n        this.copyTagManually(tag);\n      }\n    }\n  }, {\n    key: \"copyTagManually\",\n    value: function copyTagManually(tag) {\n      var tempInput = document.createElement(\"input\");\n      tempInput.value = tag;\n      document.body.appendChild(tempInput);\n      tempInput.select();\n      document.execCommand(\"copy\");\n      document.body.removeChild(tempInput);\n      //alert(\"Copied to clipboard: \" + tag);\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref) {\n      var _this2 = this;\n      var attrs = _ref.attrs;\n      var campaignType = attrs.campaignType;\n      var isnewsletter = false;\n      var ispost_notification = false;\n      var ispost_digest = false;\n      if (campaignType === \"newsletter\") {\n        isnewsletter = true;\n      } else if (campaignType === \"post_notification\") {\n        ispost_notification = true;\n      } else {\n        ispost_digest = true;\n      }\n      var allTags = _utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].getSidebarCampaignTags();\n      if (allTags.length === 0) {\n        return '';\n      }\n      return m('[', null, m(\"p\", {\n        class: \"font-medium text-sm px-8 py-3\"\n      }, \"Tags\"), m(\"div\", {\n        class: \"accordion ig-es-campaign-tags-list\"\n      }, ispost_notification ? m(\"div\", {\n        class: \"ig-es-campaign-tags\"\n      }, m(\"div\", null, m(\"p\", {\n        class: \"campaign-tags-title\"\n      }, m(\"svg\", {\n        \"aria-hidden\": \"true\",\n        xmlns: \"http://www.w3.org/2000/svg\",\n        fill: \"none\",\n        viewBox: \"0 0 24 24\",\n        \"stroke-width\": \"1.5\",\n        stroke: \"currentColor\",\n        class: \"w-3 h-3 inline-flex\"\n      }, m(\"path\", {\n        \"stroke-linecap\": \"round\",\n        \"stroke-linejoin\": \"round\",\n        d: \"M8.25 4.5l7.5 7.5-7.5 7.5\"\n      })), m(\"span\", {\n        class: \"ml-2\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this2.postNotificationToggleDropdown();\n        }\n      }, \" \", __('Post Notification', 'email-subscribers')), \"                \")), m(\"div\", {\n        class: \"panel active\"\n      }, m(\"div\", {\n        class: \"all-tags\",\n        style: \" \".concat(this.postNotificationDropdownVisible ? '' : 'display:none')\n      }, m(\"ul\", null, allTags.postNotificationTags.map(function (tag) {\n        return m(\"li\", null, m(\"span\", {\n          onclick: function onclick(e) {\n            e.preventDefault();\n            _this2.copyTagToClipboard(tag);\n          }\n        }, tag, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_2__[\"default\"].copy)));\n      }))))) : '', isnewsletter ? m(\"div\", {\n        class: \"ig-es-campaign-tags\"\n      }, m(\"div\", null, m(\"p\", {\n        class: \"campaign-tags-title\"\n      }, m(\"svg\", {\n        \"aria-hidden\": \"true\",\n        xmlns: \"http://www.w3.org/2000/svg\",\n        fill: \"none\",\n        viewBox: \"0 0 24 24\",\n        \"stroke-width\": \"1.5\",\n        stroke: \"currentColor\",\n        class: \"w-3 h-3 inline-flex\"\n      }, m(\"path\", {\n        \"stroke-linecap\": \"round\",\n        \"stroke-linejoin\": \"round\",\n        d: \"M8.25 4.5l7.5 7.5-7.5 7.5\"\n      })), m(\"span\", {\n        class: \"ml-2\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this2.broadcastToggleDropdown();\n        }\n      }, \" \", __('Broadcast', 'email-subscribers')))), m(\"div\", {\n        class: \"panel active\"\n      }, m(\"div\", {\n        class: \"all-tags\",\n        style: \" \".concat(this.broadcastDropdownVisible ? '' : 'display:none')\n      }, m(\"ul\", null, allTags.subscriberTags.map(function (tag) {\n        return m(\"li\", null, m(\"span\", {\n          onclick: function onclick(e) {\n            e.preventDefault();\n            _this2.copyTagToClipboard(tag);\n          }\n        }, tag, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_2__[\"default\"].copy)));\n      }), allTags.siteTags.map(function (tag) {\n        return m(\"li\", null, m(\"span\", {\n          onclick: function onclick(e) {\n            e.preventDefault();\n            _this2.copyTagToClipboard(tag);\n          }\n        }, tag, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_2__[\"default\"].copy)));\n      }))))) : '', ispost_digest ? m(\"div\", {\n        class: \"ig-es-campaign-tags\"\n      }, m(\"div\", null, m(\"p\", {\n        class: \"campaign-tags-title\"\n      }, m(\"svg\", {\n        \"aria-hidden\": \"true\",\n        xmlns: \"http://www.w3.org/2000/svg\",\n        fill: \"none\",\n        viewBox: \"0 0 24 24\",\n        \"stroke-width\": \"1.5\",\n        stroke: \"currentColor\",\n        class: \"w-3 h-3 inline-flex\"\n      }, m(\"path\", {\n        \"stroke-linecap\": \"round\",\n        \"stroke-linejoin\": \"round\",\n        d: \"M8.25 4.5l7.5 7.5-7.5 7.5\"\n      })), m(\"span\", {\n        class: \"ml-2\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this2.postDigestToggleDropdown();\n        }\n      }, __('Post Digest', 'email-subscribers')))), m(\"div\", {\n        class: \"panel active\"\n      }, m(\"div\", {\n        class: \"all-tags\",\n        style: \" \".concat(this.postDigestDropdownVisible ? '' : 'display:none')\n      }, m(\"ul\", null, allTags.subscriberTags.map(function (tag) {\n        return m(\"li\", null, m(\"span\", {\n          onclick: function onclick(e) {\n            e.preventDefault();\n            _this2.copyTagToClipboard({\n              tag: tag\n            });\n          }\n        }, tag, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_2__[\"default\"].copy)));\n      }), allTags.siteTags.map(function (tag) {\n        return m(\"li\", null, m(\"span\", {\n          onclick: function onclick(e) {\n            e.preventDefault();\n            _this2.copyTagToClipboard({\n              tag: tag\n            });\n          }\n        }, tag, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_2__[\"default\"].copy)));\n      }))))) : ''));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/classic/CampaignTagsTabContent.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/classic/ClassicEditorBody.js":
/*!**********************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/classic/ClassicEditorBody.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ ClassicEditorBody; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _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 _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar ClassicEditorBody = /*#__PURE__*/function () {\n  function ClassicEditorBody() {\n    _classCallCheck(this, ClassicEditorBody);\n    _defineProperty(this, \"editorId\", 'es-campaign-body');\n  }\n  return _createClass(ClassicEditorBody, [{\n    key: \"oncreate\",\n    value: function oncreate(_ref) {\n      var attrs = _ref.attrs;\n      var content = attrs.content;\n      var campaignType = attrs.campaignType || 'newsletter';\n      if (!content || content.trim() === '') {\n        if (campaignType === 'post_notification' || campaignType === 'post_digest') {\n          // Post notification default content\n          content = \"<!DOCTYPE html>\\n<html>\\n<head>\\n</head>\\n<body>\\n<p>Hello {{subscriber.name | fallback='there'}},</p>\\n<p>We have published a new blog article on our website.<br />{{campaign.posts}}<br />{{post.title}}<br />{{post.image}}</p>\\n<p>{{post.link}}<br />{{/campaign.posts}}</p>\\n<p>Thanks &amp; Regards,<br />Admin</p>\\n<p>You received this email because in the past you have provided us your email address : {{subscriber.email}} to receive notifications when new updates are posted.</p>\\n</body>\\n</html>\";\n        } else {\n          // Newsletter/Broadcast default content\n          content = \"<!DOCTYPE html>\\n<html>\\n<head>\\n</head>\\n<body>\\n<p>Hello {{subscriber.name | fallback='there'}},</p>\\n<p>Your content...</p>\\n<p>Thanks &amp; Regards,<br />Admin</p>\\n<p>You received this email because in the past you have provided us your email address : {{subscriber.email}} to receive notifications when new updates are posted.</p>\\n</body>\\n</html>\";\n        }\n      }\n      renderESClassicEditor(this.editorId, content);\n    }\n  }, {\n    key: \"onremove\",\n    value: function onremove(_ref2) {\n      var attrs = _ref2.attrs;\n      if ('undefined' !== typeof window.tinyMCE) {\n        // Trigger save event for content of wp_editor instances to sync its content with actual textarea field\n        window.tinyMCE.triggerSave();\n      }\n      ClassicEditorBody.addAttachments();\n      var content = document.getElementById(this.editorId).value;\n      attrs.onRemove(content);\n      removeESClassicEditor(this.editorId);\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref3) {\n      var attrs = _ref3.attrs;\n      return m(\"div\", {\n        class: \"es-classic-editor\"\n      }, m(\"textarea\", {\n        id: this.editorId,\n        name: \"body\",\n        class: \"wp-campaign-body-editor\",\n        rows: \"40\"\n      }));\n    }\n  }], [{\n    key: \"addAttachments\",\n    value: function addAttachments() {\n      var _CampaignModel$detail;\n      var existingAttachments = ((_CampaignModel$detail = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details) === null || _CampaignModel$detail === void 0 || (_CampaignModel$detail = _CampaignModel$detail.meta) === null || _CampaignModel$detail === void 0 ? void 0 : _CampaignModel$detail.attachments) || [];\n      if (!Array.isArray(existingAttachments)) {\n        existingAttachments = existingAttachments ? [existingAttachments] : [];\n      }\n      var attachments = _toConsumableArray(existingAttachments);\n\n      // Read attachments from DOM inputs\n      document.querySelectorAll('input[name=\"data[meta][attachments][]\"]').forEach(function (input) {\n        var attachment = input.value;\n        if (attachment && !attachments.includes(attachment)) {\n          attachments.push(attachment);\n        }\n      });\n      if (!_models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta) {\n        _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta = {};\n      }\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.attachments = attachments;\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/classic/ClassicEditorBody.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/classic/CustomCSS.js":
/*!**************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/classic/CustomCSS.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CustomCSS; }\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar CustomCSS = /*#__PURE__*/function () {\n  function CustomCSS() {\n    _classCallCheck(this, CustomCSS);\n  }\n  return _createClass(CustomCSS, [{\n    key: \"view\",\n    value: function view(_ref) {\n      var attrs = _ref.attrs;\n      var customCSS = typeof attrs.customCSS !== 'undefined' ? attrs.customCSS : \"<style type=\\\"text/css\\\">\\n</style>\";\n      return m(\"div\", {\n        class: \"es-classic-css\"\n      }, m(\"label\", null, __('Custom CSS', 'email-subscribers')), m(\"textarea\", {\n        id: \"es-campaign-css\",\n        name: \"css\",\n        class: \"w-full\",\n        rows: \"5\",\n        onchange: function onchange(e) {\n          return attrs.onChangeHandler(e.target.value);\n        }\n      }, customCSS));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/classic/CustomCSS.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/classic/TemplateClassicEditorSidebar.js":
/*!*********************************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/classic/TemplateClassicEditorSidebar.js ***!
  \*********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ CampaignClassicEditorSidebar; }\n/* harmony export */ });\n/* harmony import */ var _CampaignTagsTabContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CampaignTagsTabContent */ \"./lite/admin/js/src/views/editors/classic/CampaignTagsTabContent.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar CampaignClassicEditorSidebar = /*#__PURE__*/function () {\n  function CampaignClassicEditorSidebar() {\n    _classCallCheck(this, CampaignClassicEditorSidebar);\n    _defineProperty(this, \"activeTab\", 'tags_tab');\n  }\n  return _createClass(CampaignClassicEditorSidebar, [{\n    key: \"setActiveTab\",\n    value: function setActiveTab(activeTab) {\n      this.activeTab = activeTab;\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      var _this = this;\n      var tagsTab = 'tags_tab';\n      return m('[', null, m(\"div\", null, m(\"nav\", null, m(\"div\", {\n        class: \"links w-full text-center\"\n      }, m(\"a\", {\n        onclick: function onclick() {\n          return _this.setActiveTab(tagsTab);\n        },\n        class: \"cursor-pointer ig-es-campaign-sidebar-nav-menu ig-es-campaign-tags-nav w-1/2 \".concat(this.activeTab === tagsTab ? 'active' : '')\n      }, \"Tags\")))), m(\"div\", {\n        class: \"nav-child-sections\"\n      }, m(\"div\", {\n        id: \"ig-es-campaign-tags-section\",\n        class: \"nav-child\"\n      }, m(_CampaignTagsTabContent__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n        campaignType: \"newsletter\"\n      }))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/classic/TemplateClassicEditorSidebar.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/dnd/BlockManager.js":
/*!*************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/dnd/BlockManager.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ BlockManager; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/Icons */ \"./lite/admin/js/src/utils/Icons.js\");\n/* harmony import */ var _DnDEditorSidebar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DnDEditorSidebar */ \"./lite/admin/js/src/views/editors/dnd/DnDEditorSidebar.js\");\n/* harmony import */ var _views_campaign_CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../views/campaign/CamapignTooltip */ \"./lite/admin/js/src/views/campaign/CamapignTooltip.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\nvar BlockManager = /*#__PURE__*/function () {\n  function BlockManager() {\n    _classCallCheck(this, BlockManager);\n  }\n  return _createClass(BlockManager, [{\n    key: \"oncreate\",\n    value: function oncreate(_ref) {\n      var attrs = _ref.attrs;\n      var campaignType = attrs.campaignType;\n      if (_utils_Functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPostCampaign(campaignType)) {\n        esVisualEditor.on('component:update:post-format', this.updateCategoryData);\n      }\n    }\n  }, {\n    key: \"onDragStart\",\n    value: function onDragStart(block) {\n      BlockManager.dragStart(block);\n    }\n  }, {\n    key: \"onDragStop\",\n    value: function onDragStop() {\n      BlockManager.dragStop();\n    }\n  }, {\n    key: \"updateCategoryData\",\n    value: function updateCategoryData(updateComponent) {\n      var postFormat = updateComponent.get('post-format');\n      if (postFormat === 'blank') {\n        _DnDEditorSidebar__WEBPACK_IMPORTED_MODULE_3__[\"default\"].activeTab = 'blocksManager';\n        var postsBlockTabIndex = 2;\n        BlockManager.activeTab = postsBlockTabIndex;\n        m.redraw();\n      }\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref2) {\n      var _this = this;\n      var attrs = _ref2.attrs;\n      var blocks = BlockManager.blocks;\n      var categoryWiseBlocks = {};\n      var _iterator = _createForOfIteratorHelper(blocks),\n        _step;\n      try {\n        for (_iterator.s(); !(_step = _iterator.n()).done;) {\n          var block = _step.value;\n          var blockCategory = block.getCategoryLabel();\n          if (typeof categoryWiseBlocks[blockCategory] === 'undefined') {\n            categoryWiseBlocks[blockCategory] = [];\n          }\n          categoryWiseBlocks[blockCategory].push(block);\n        }\n      } catch (err) {\n        _iterator.e(err);\n      } finally {\n        _iterator.f();\n      }\n      return m(\"div\", {\n        class: \"gjs-blocks-cs gjs-one-bg gjs-two-color\"\n      }, m(\"div\", {\n        class: \"gjs-block-categories\"\n      }, m(\"nav\", null, Object.keys(categoryWiseBlocks).map(function (category, index) {\n        return m(\"div\", {\n          class: \"links\",\n          onclick: function onclick() {\n            BlockManager.activeTab = index;\n          }\n        }, m(\"a\", {\n          class: \"cursor-pointer\" + (BlockManager.activeTab === index ? ' active' : '')\n        }, category !== 'Post blocks' && category, category === 'Post blocks' && m(\"div\", {\n          class: \"flex space-x-2 text-black\"\n        }, m(\"span\", null, \" \", category), m(_views_campaign_CamapignTooltip__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n          tooltipText: __(\"Manage Post related settings\", 'email-subscribers')\n        }))));\n      })), Object.keys(categoryWiseBlocks).map(function (category, index) {\n        return m(\"div\", {\n          class: 'gjs-blocks-c ' + (index === BlockManager.activeTab ? 'active' : 'hidden')\n        }, categoryWiseBlocks[category].map(function (block) {\n          var _block$attributes, _block$attributes2;\n          var extraClass = block === null || block === void 0 || (_block$attributes = block.attributes) === null || _block$attributes === void 0 || (_block$attributes = _block$attributes.attributes) === null || _block$attributes === void 0 ? void 0 : _block$attributes.class;\n          var disable = block === null || block === void 0 || (_block$attributes2 = block.attributes) === null || _block$attributes2 === void 0 ? void 0 : _block$attributes2.disable;\n          return m(\"div\", {\n            class: 'gjs-block gjs-one-bg gjs-four-color-h' + (typeof extraClass !== 'undefined' ? ' ' + extraClass : ''),\n            ondragstart: function ondragstart() {\n              return _this.onDragStart(block);\n            },\n            ondragend: function ondragend() {\n              return _this.onDragStop();\n            },\n            draggable: disable ? '' : 'draggable'\n          }, m(\"div\", {\n            class: \"gjs-block-media\"\n          }, m.trust(block.getMedia())), m(\"div\", {\n            class: \"gjs-block-label\"\n          }, block.getLabel()), m(\"div\", {\n            class: \"gjs-block-icon-draggable\"\n          }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_2__[\"default\"].draggable)));\n        }));\n      })));\n    }\n  }]);\n}();\n_defineProperty(BlockManager, \"blocks\", []);\n_defineProperty(BlockManager, \"dragStart\", void 0);\n_defineProperty(BlockManager, \"dragStop\", void 0);\n_defineProperty(BlockManager, \"activeTab\", 0);\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/dnd/BlockManager.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/dnd/DNDEditorCanvas.js":
/*!****************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/dnd/DNDEditorCanvas.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ DNDEditorCanvas; }\n/* harmony export */ });\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar DNDEditorCanvas = /*#__PURE__*/function () {\n  function DNDEditorCanvas() {\n    _classCallCheck(this, DNDEditorCanvas);\n  }\n  return _createClass(DNDEditorCanvas, [{\n    key: \"oncreate\",\n    value: function oncreate(_ref) {\n      var attrs = _ref.attrs;\n      var content = attrs.content;\n      var containerId = 'ig-es-dnd-builder';\n      if (typeof esVisualEditor !== 'undefined' && esVisualEditor.destroy) {\n        try {\n          esVisualEditor.destroy();\n        } catch (error) {\n          console.warn('[DNDEditorCanvas] Cleanup warning:', error);\n        }\n      }\n\n      // Remove all existing GrapesJS panels to prevent duplicates\n      var existingPanels = document.querySelectorAll('.gjs-pn-panel, .gjs-pn-devices-c, .gjs-pn-buttons');\n      if (existingPanels.length > 0) {\n        existingPanels.forEach(function (el) {\n          return el.remove();\n        });\n      }\n      renderESDNDEditor(containerId);\n\n      // Add CSS to hide any duplicate panels that GrapesJS might create\n      setTimeout(function () {\n        var style = document.createElement('style');\n        style.id = 'es-hide-duplicate-panels';\n        style.textContent = \"\\n                /* Hide duplicate device/button panels - keep only first occurrence */\\n                .gjs-pn-panel:nth-of-type(n+2).gjs-pn-devices-c,\\n                .gjs-pn-panel:nth-of-type(n+2) .gjs-pn-buttons {\\n                    display: none !important;\\n                }\\n                /* Alternative: hide all duplicates by checking if parent already has one */\\n                body .gjs-pn-devices-c ~ .gjs-pn-devices-c,\\n                body .gjs-pn-buttons ~ .gjs-pn-buttons {\\n                    display: none !important;\\n                }\\n            \";\n        // Remove existing style if present\n        var existingStyle = document.getElementById('es-hide-duplicate-panels');\n        if (existingStyle) {\n          existingStyle.remove();\n        }\n        document.head.appendChild(style);\n      }, 100);\n      var is_valid_json = ig_es_is_valid_json(content);\n      if (is_valid_json) {\n        content = JSON.parse(\"\".concat(content));\n      }\n      if (typeof content === 'undefined' || content === '') {\n        var campaignType = attrs.campaignType || 'newsletter';\n        if (campaignType === 'post_notification' || campaignType === 'post_digest') {\n          // Post notification default MJML - matches class-es-post-notifications.php\n          content = \"<mjml>\\n            <mj-body>\\n                <mj-section background-color=\\\"#FFFFFF\\\">\\n                    <mj-column width=\\\"100%\\\">\\n                        <mj-image src=\\\"https://webstockreview.net/images/sample-png-images-14.png\\\" height=\\\"70px\\\"\\n                                width=\\\"140px\\\"/>\\n                    </mj-column>\\n                </mj-section>\\n                <mj-section background-color=\\\"#FFFFFF\\\">\\n                    <mj-column width=\\\"100%\\\">\\n                        <mj-text line-height=\\\"26px\\\">Hello {{subscriber.name | fallback='there'}},</mj-text>\\n                        <mj-text line-height=\\\"26px\\\">We have published a new post on our site.</mj-text>\\n                    </mj-column>\\n                </mj-section>\\n                <mj-section background-color=\\\"#FFFFFF\\\">\\n                    <mj-column width=\\\"100%\\\">\\n                        <div class=\\\"es-posts\\\">\\n                            <span style=\\\"visibility:hidden;font-size:3px\\\">{{campaign.posts}}</span>\\n                            <mj-section class=\\\"post-format-content\\\" background-color=\\\"#ffffff\\\" padding-top=\\\"0px\\\" padding-bottom=\\\"0px\\\">\\n                                <mj-group>\\n                                    <mj-column width=\\\"100%\\\">\\n                                    <mj-text line-height=\\\"26px\\\">\\n                                        <font size=\\\"4\\\">{{post.title}}</font>\\n                                    </mj-text>\\n                                    <mj-text line-height=\\\"26px\\\" font-size=\\\"14px\\\">\\n                                        {{post.excerpt}}\\n                                    </mj-text>\\n                                    <mj-button border-radius=\\\"5px 5px 5px 5px\\\" align=\\\"left\\\" href=\\\"{{post.link_only}}\\\" container-background-color=\\\"#ffffff\\\" background-color=\\\"#e69626\\\">\\n                                        Read More\\n                                    </mj-button>\\n                                    </mj-column>\\n                                </mj-group>\\n                            </mj-section>\\n                            <span style=\\\"visibility:hidden;font-size:3px\\\">{{/campaign.posts}}</span>\\n                        </div>\\n                    </mj-column>\\n                </mj-section>\\n                <mj-section background-color=\\\"#f3f3f3\\\">\\n                    <mj-column width=\\\"100%\\\">\\n                        <mj-text align=\\\"center\\\" line-height=\\\"26px\\\">@2022, Your Brand Name.</mj-text>\\n                        <mj-text align=\\\"center\\\" line-height=\\\"26px\\\">You received this email because in the past you have provided us your email address : {{subscriber.email}} to receive notifications when new updates are posted. If you wish to unsubscribe from our newsletter, click <a data-gjs-type=\\\"link\\\" href=\\\"{{UNSUBSCRIBE-LINK}}\\\" >here</a>\\n                        </mj-text>\\n                    </mj-column>\\n                </mj-section>\\n            </mj-body>\\n        </mjml> \";\n        } else {\n          // Newsletter/Broadcast default MJML - matches class-es-newsletters.php\n          content = \"<mjml>\\n            <mj-body>\\n                <mj-section background-color=\\\"#FFFFFF\\\">\\n                    <mj-column width=\\\"100%\\\">\\n                        <mj-image src=\\\"https://webstockreview.net/images/sample-png-images-14.png\\\" height=\\\"70px\\\"\\n                                  width=\\\"140px\\\"/>\\n                    </mj-column>\\n                </mj-section>\\n                <mj-section background-color=\\\"#FFFFFF\\\">\\n                    <mj-column width=\\\"100%\\\">\\n                        <mj-text line-height=\\\"26px\\\">Hello {{subscriber.name | fallback='there'}},</mj-text>\\n                    </mj-column>\\n                </mj-section>\\n                <mj-section background-color=\\\"#FFFFFF\\\">\\n                    <mj-column width=\\\"100%\\\">\\n                        <mj-text line-height=\\\"26px\\\">Your content...</mj-text>\\n                    </mj-column>\\n                </mj-section>\\n                <mj-section background-color=\\\"#f3f3f3\\\">\\n                    <mj-column width=\\\"100%\\\">\\n                        <mj-text align=\\\"center\\\" line-height=\\\"26px\\\">@2023, Your Brand Name.</mj-text>\\n                        <mj-text align=\\\"center\\\" line-height=\\\"26px\\\">You are receiving this email because you have visited our site or asked\\n                            about our regular newsletter. If you wish to unsubscribe from our newsletter, click <a data-gjs-type=\\\"link\\\" href=\\\"{{UNSUBSCRIBE-LINK}}\\\" >here </a>\\n                        </mj-text>\\n                    </mj-column>\\n                </mj-section>\\n            </mj-body>\\n        </mjml> \";\n        }\n      }\n\n      // Listen to content update event\n      //esVisualEditor.on('update', this.updateCampaignContent )\n\n      setTimeout(function () {\n        try {\n          esVisualEditor.importMjml(content);\n          if (esVisualEditor.Canvas) {\n            esVisualEditor.Canvas.refresh();\n          }\n          if (esVisualEditor.render) {\n            esVisualEditor.render();\n          }\n        } catch (error) {\n          console.error('DNDEditorCanvas: Error importing MJML:', error);\n        }\n      }, 500);\n      this.fixComponentSelectIssueOnScroll();\n    }\n  }, {\n    key: \"onremove\",\n    value: function onremove() {\n      // Cleanup: Remove scroll event listener\n      var campaignContent = document.getElementById('campaign-content');\n      if (campaignContent) {\n        campaignContent.removeEventListener('scroll', this.scrollHandler);\n      }\n\n      // Cleanup: Destroy editor instance if it exists\n      if (typeof esVisualEditor !== 'undefined' && esVisualEditor.destroy) {\n        try {\n          esVisualEditor.destroy();\n        } catch (error) {\n          console.warn('Editor cleanup warning:', error);\n        }\n      }\n    }\n  }, {\n    key: \"fixComponentSelectIssueOnScroll\",\n    value: function fixComponentSelectIssueOnScroll() {\n      this.scrollHandler = function () {\n        var event = new Event('scroll');\n        window.dispatchEvent(event);\n      };\n      var campaignContent = document.getElementById('campaign-content');\n      if (campaignContent) {\n        campaignContent.addEventListener('scroll', this.scrollHandler);\n      }\n    }\n  }, {\n    key: \"updateCampaignContent\",\n    value: function updateCampaignContent() {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].addDnDEditorData();\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref2) {\n      var attrs = _ref2.attrs;\n      return m(\"div\", {\n        class: \"es-dnd-editor\"\n      }, m(\"div\", {\n        id: \"ig-es-dnd-builder\"\n      }));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/dnd/DNDEditorCanvas.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/dnd/DnDEditorSidebar.js":
/*!*****************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/dnd/DnDEditorSidebar.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ DnDEditorSidebar; }\n/* harmony export */ });\n/* harmony import */ var _BlockManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BlockManager */ \"./lite/admin/js/src/views/editors/dnd/BlockManager.js\");\n/* harmony import */ var _StyleManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StyleManager */ \"./lite/admin/js/src/views/editors/dnd/StyleManager.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_IframeIntegration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../utils/IframeIntegration */ \"./lite/admin/js/src/utils/IframeIntegration.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\nvar DnDEditorSidebar = /*#__PURE__*/function () {\n  function DnDEditorSidebar() {\n    _classCallCheck(this, DnDEditorSidebar);\n  }\n  return _createClass(DnDEditorSidebar, [{\n    key: \"oncreate\",\n    value: function oncreate(_ref) {\n      var attrs = _ref.attrs;\n      DnDEditorSidebar.campaignType = attrs.campaignType;\n\n      // Check if we're in iframe mode (being called from React)\n      DnDEditorSidebar.isIframeMode = _utils_IframeIntegration__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isInIframeMode();\n      esVisualEditor.on('style:custom', this.setupStyleManager);\n      esVisualEditor.on('component:remove', this.showBlockManager);\n      esVisualEditor.on('block:custom', this.setupBlockManager);\n      esVisualEditor.on('component:add', this.showStyleManager);\n      esVisualEditor.on('component:selected', this.showStyleManager);\n      esVisualEditor.on('show_es_dnd_block_manager', this.showBlockManager);\n    }\n  }, {\n    key: \"setupBlockManager\",\n    value: function setupBlockManager(_ref2) {\n      var blocks = _ref2.blocks,\n        dragStart = _ref2.dragStart,\n        dragStop = _ref2.dragStop;\n      var currentCampaignType = DnDEditorSidebar.campaignType;\n      DnDEditorSidebar.updateBlocks(blocks, currentCampaignType);\n      _BlockManager__WEBPACK_IMPORTED_MODULE_0__[\"default\"].dragStart = dragStart;\n      _BlockManager__WEBPACK_IMPORTED_MODULE_0__[\"default\"].dragStop = dragStop;\n    }\n  }, {\n    key: \"setupStyleManager\",\n    value: function setupStyleManager(props) {\n      _StyleManager__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sectors = esVisualEditor.StyleManager.getSectors({\n        visible: true\n      });\n      m.redraw();\n    }\n  }, {\n    key: \"showBlockManager\",\n    value: function showBlockManager() {\n      DnDEditorSidebar.setActiveTab('blocksManager');\n    }\n  }, {\n    key: \"showStyleManager\",\n    value: function showStyleManager() {\n      // In iframe mode, hide traits panel for Posts block in post notification/digest campaigns\n      // React handles post settings in the main UI for these campaign types\n      if (DnDEditorSidebar.isIframeMode) {\n        var selected = esVisualEditor.getSelected();\n        var campaignType = DnDEditorSidebar.campaignType;\n\n        // Hide traits only for Posts block in post notification and post digest campaigns\n        if (selected && selected.get('type') === 'es-posts' && (campaignType === 'post_notification' || campaignType === 'post_digest')) {\n          // Don't show style manager for Posts block in post notification/digest\n          // Stay on blocks manager instead\n          DnDEditorSidebar.setActiveTab('blocksManager');\n          return;\n        }\n      }\n      DnDEditorSidebar.setActiveTab('styleManager');\n    }\n  }, {\n    key: \"view\",\n    value: function view() {\n      return m(\"div\", {\n        class: \"es-dnd-editor\"\n      }, m(\"div\", {\n        class: \"es-sidebar sticky top-0\"\n      }, m(\"div\", {\n        id: \"bs-container\"\n      }, m(\"div\", {\n        id: \"gj-blocks-container\"\n      }, _BlockManager__WEBPACK_IMPORTED_MODULE_0__[\"default\"].blocks.length > 0 && DnDEditorSidebar.activeTab === 'blocksManager' && m(_BlockManager__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n        campaignType: DnDEditorSidebar.campaignType\n      })), m(\"div\", {\n        id: \"gj-design-container\"\n      }, m(\"div\", {\n        id: \"gj-settings-container\",\n        style: DnDEditorSidebar.activeTab !== 'styleManager' ? 'display:none' : ''\n      }), _StyleManager__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sectors.length > 0 && DnDEditorSidebar.activeTab === 'styleManager' && m(_StyleManager__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        setActiveTab: DnDEditorSidebar.setActiveTab\n      })))));\n    }\n  }], [{\n    key: \"updateBlocks\",\n    value: function updateBlocks(blocks, currentCampaignType) {\n      blocks = _utils_Functions__WEBPACK_IMPORTED_MODULE_2__[\"default\"].filterCampaignWiseBlocks(blocks, currentCampaignType);\n      _BlockManager__WEBPACK_IMPORTED_MODULE_0__[\"default\"].blocks = blocks;\n      m.redraw();\n    }\n  }, {\n    key: \"setActiveTab\",\n    value: function setActiveTab(activeTab) {\n      DnDEditorSidebar.activeTab = activeTab;\n      m.redraw();\n    }\n  }]);\n}();\n_defineProperty(DnDEditorSidebar, \"activeTab\", 'blocksManager');\n_defineProperty(DnDEditorSidebar, \"campaignType\", '');\n_defineProperty(DnDEditorSidebar, \"isIframeMode\", false);\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/dnd/DnDEditorSidebar.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/dnd/Prop.js":
/*!*****************************************************!*\
  !*** ./lite/admin/js/src/views/editors/dnd/Prop.js ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ Prop; }\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar Prop = /*#__PURE__*/function () {\n  function Prop() {\n    _classCallCheck(this, Prop);\n  }\n  return _createClass(Prop, [{\n    key: \"view\",\n    value: function view(_ref) {\n      var attrs = _ref.attrs;\n      var prefix = 'gjs-';\n      var prop = attrs.prop;\n      var propId = prop.getId();\n      var propName = prop.getName();\n      var propType = prop.getType();\n      var inputValue = prop.hasValue() ? prop.getValue() : '';\n      var defaultValue = prop.getDefaultValue();\n      var selectedComponent = attrs.selectedComponent;\n      return m(\"div\", {\n        id: propId,\n        class: \"\".concat(prefix, \"sm-property \").concat(prefix, \"sm-\").concat(propName, \" \").concat(prefix, \"sm-property__\").concat(propName, \" \").concat(propType === 'composite' ? \"\".concat(prefix, \"sm-property--full\") : '')\n      }, m(\"div\", null, m(\"div\", {\n        class: \"\".concat(prefix, \"sm-label\")\n      }, m(\"span\", {\n        class: \"\".concat(prefix, \"sm-icon\")\n      }, prop.getLabel()), prop.canClear() && m(\"b\", {\n        class: \"\".concat(prefix, \"sm-clear\"),\n        \"data-clear-style\": true,\n        onclick: function onclick(e) {\n          e.preventDefault();\n          prop.clear();\n        }\n      }, \"\\u2A2F\")), m(\"div\", {\n        class: \"\".concat(prefix, \"fields\"),\n        \"data-sm-fields\": \"\"\n      }, m(\"div\", {\n        class: \"\".concat(prefix, \"field \").concat(prefix, \"field-\").concat(propType)\n      }, (propType === 'number' || propType === 'integer' || propType === 'slider') && m(\"input\", {\n        type: \"number\",\n        placeholder: defaultValue,\n        value: inputValue,\n        oninput: function oninput(e) {\n          return prop.upValue(e.target.value, {\n            partial: true\n          });\n        },\n        onchange: function onchange(e) {\n          prop.upValue(e.target.value);\n        },\n        step: prop.getStep(),\n        min: prop.getMin(),\n        max: prop.getMax()\n      }), propType === 'radio' && m(\"div\", {\n        class: \"\".concat(prefix, \"radio-items\")\n      }, prop.getOptions().map(function (option) {\n        var optionValue = prop.getOptionId(option);\n        var groupName = propName + '-' + selectedComponent.getId();\n        var inputId = groupName + '-' + optionValue;\n        var optionClass = option.className ? \"\".concat(option.className, \" \").concat(prefix, \"icon \").concat(prefix, \"radio-item-label\") : '';\n        var optionLabel = optionClass ? '' : prop.getOptionLabel(option);\n        var titleAttr = option.title ? option.title : '';\n        var checked = inputValue === optionValue ? 'checked' : '';\n        return m(\"div\", {\n          class: \"\".concat(prefix, \"radio-item\")\n        }, m(\"input\", {\n          id: inputId,\n          type: \"radio\",\n          class: \"\".concat(prefix, \"sm-radio \").concat(prefix, \"sm-radio-\").concat(propName),\n          name: groupName,\n          value: optionValue,\n          onchange: function onchange(e) {\n            prop.upValue(e.target.value);\n          },\n          checked: checked\n        }), m(\"label\", {\n          class: optionClass ? optionClass : prefix + 'radio-item-label',\n          for: inputId,\n          title: titleAttr\n        }, optionLabel));\n      })), propType === 'select' && m(\"select\", {\n        value: inputValue,\n        onchange: function onchange(e) {\n          prop.upValue(e.target.value);\n        }\n      }, prop.getOptions().map(function (option) {\n        return m(\"option\", {\n          value: prop.getOptionId(option)\n        }, prop.getOptionLabel(option));\n      })), propType === 'color' && m(\"div\", {\n        class: \"ig-es-color-picker\"\n      }, m(\"input\", {\n        type: \"text\",\n        placeholder: defaultValue,\n        value: inputValue,\n        onchange: function onchange(e) {\n          prop.upValue(e.target.value);\n        }\n      }), m(\"div\", {\n        style: \"background-color:\" + prop.hasValue() ? prop.getValue() : 0,\n        class: \"ig-es-color-picker-input\"\n      }, m(\"input\", {\n        class: \"ig-es-input-color\",\n        type: \"color\",\n        value: prop.hasValue() ? prop.getValue() : defaultValue,\n        onchange: function onchange(e) {\n          prop.upValue(e.target.value);\n        },\n        oninput: function oninput(e) {\n          prop.upValue(e.target.value, {\n            partial: true\n          });\n        }\n      }))), propType === 'file' && m(\"div\", {\n        class: \"\".concat(prefix, \"field \").concat(prefix, \"file\")\n      }, m(\"div\", {\n        id: \"\".concat(prefix, \"input-holder\")\n      }, m(\"div\", {\n        class: \"\".concat(prefix, \"btn-c\")\n      }, m(\"button\", {\n        onclick: function onclick() {\n          var _esVisualEditor = esVisualEditor,\n            Assets = _esVisualEditor.Assets;\n          Assets.open({\n            select: function select(asset, complete) {\n              prop.upValue(asset.getSrc(), {\n                partial: !complete\n              });\n              complete && Assets.close();\n            },\n            types: ['image'],\n            accept: 'image/*'\n          });\n        }\n      }, __('Image', 'email-subscribers')))), prop.getValue() && prop.getValue() !== defaultValue && m(\"div\", {\n        class: \"ig-es-btn-prv\",\n        style: \"background-image: url(\".concat(prop.getValue(), \")\")\n      })), propType === 'composite' && m(\"div\", {\n        class: \"ig-es-type-cmp pa-2\"\n      }, prop.getProperties().map(function (property) {\n        return m(Prop, {\n          prop: property\n        });\n      }))))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/dnd/Prop.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/editors/dnd/StyleManager.js":
/*!*************************************************************!*\
  !*** ./lite/admin/js/src/views/editors/dnd/StyleManager.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ StyleManager; }\n/* harmony export */ });\n/* harmony import */ var _Prop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Prop */ \"./lite/admin/js/src/views/editors/dnd/Prop.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\nvar StyleManager = /*#__PURE__*/function () {\n  function StyleManager() {\n    _classCallCheck(this, StyleManager);\n  }\n  return _createClass(StyleManager, [{\n    key: \"view\",\n    value: function view(_ref) {\n      var attrs = _ref.attrs;\n      var selectedComponent = esVisualEditor.getSelected();\n      if (!selectedComponent) {\n        return '';\n      }\n      var stylableProps = selectedComponent.get('stylable');\n      if (!stylableProps || !Array.isArray(stylableProps)) {\n        return '';\n      }\n      var sectors = StyleManager.sectors;\n      return selectedComponent && m(\"div\", {\n        class: \"p-4 bg-light-gray\"\n      }, m(\"div\", {\n        class: \"prev-sector-cta\"\n      }, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          attrs.setActiveTab('blocksManager');\n        }\n      }, m(\"svg\", {\n        width: \"14\",\n        height: \"14\",\n        viewBox: \"0 0 14 14\",\n        fill: \"none\",\n        xmlns: \"http://www.w3.org/2000/svg\"\n      }, m(\"path\", {\n        d: \"M8.19151 2.87899L4.73472 6.45346C4.44225 6.75589 4.44225 7.24421 4.73472 7.54664L8.19151 11.1211C8.48671 11.4264 8.96747 11.4264 9.26267 11.1211C9.55515 10.8187 9.55515 10.3304 9.26267 10.0279L6.33448 7.00005L9.26267 3.97217C9.55515 3.66974 9.55515 3.18142 9.26268 2.87899C8.96747 2.57374 8.48671 2.57374 8.19151 2.87899Z\",\n        fill: \"#575362\",\n        stroke: \"#575362\",\n        \"stroke-width\": \"0.3\"\n      }))), m(\"span\", null, __('Go to Blocks', 'email-subscribers'))), sectors.map(function (sector) {\n        return m(\"div\", {\n          id: sector.getId(),\n          class: \"gjs-sm-sector gjs-sm-sector__\".concat(sector.getName())\n        }, m(\"div\", {\n          class: \"gjs-sm-title\"\n        }, sector.getName()), m(\"div\", {\n          class: \"gjs-sm-properties\"\n        }, sector.getProperties().map(function (prop) {\n          return stylableProps.includes(prop.getName()) && m(_Prop__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n            selectedComponent: selectedComponent,\n            prop: prop\n          });\n        })));\n      }));\n    }\n  }]);\n}();\n_defineProperty(StyleManager, \"sectors\", []);\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/editors/dnd/StyleManager.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/templates/EditorChoicePopup.js":
/*!****************************************************************!*\
  !*** ./lite/admin/js/src/views/templates/EditorChoicePopup.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Gallery_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Gallery.js */ \"./lite/admin/js/src/views/templates/Gallery.js\");\n/* harmony import */ var _utils_Icons_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Icons.js */ \"./lite/admin/js/src/utils/Icons.js\");\n\n\nvar EditorChoicePopup = {\n  view: function view(vnode) {\n    var campaignType = vnode.attrs.campaignType;\n    var createText = '';\n    if (_Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].manageTemplates) {\n      createText = __('Template', 'email-subscribers');\n    } else {\n      createText = __('Campaign', 'email-subscribers');\n    }\n    return m(\"div\", {\n      class: \"form-fields\\r ig-es-popup-container\"\n    }, m(\"div\", {\n      class: \"ig-es-popup-overlay\"\n    }), m(\"div\", {\n      class: \"ig-es-popup\"\n    }, m(\"div\", {\n      class: \"ig-es-popup-title\"\n    }, m(\"h3\", null, __('Create New', 'email-subscribers'), \" \", createText), m(\"div\", {\n      class: \"ig-es-popup-close-container\"\n    }, m(\"button\", {\n      onclick: function onclick() {\n        _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hideEditorChoicePopup();\n      },\n      href: \"#\",\n      class: \"cross\"\n    }, m.trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].close)))), m(\"div\", {\n      class: \"p-6 bg-gray-50 grid grid-cols-1 md:grid-cols-2 gap-5\"\n    }, m(\"div\", {\n      class: \"ig-es-new-campaign-type-tab\",\n      onclick: function onclick(e) {\n        if (_Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].manageTemplates) {\n          m.route.set('/template/edit', {\n            editorType: ig_es_main_js_data.classic_editor_slug\n          });\n        } else {\n          m.route.set('/campaign/edit', {\n            campaignType: campaignType,\n            editorType: ig_es_main_js_data.classic_editor_slug\n          });\n        }\n      }\n    }, m(\"img\", {\n      class: \"inline\",\n      src: ig_es_main_js_data.image_path + \"lite/admin/images/new/image-31.png\",\n      alt: \"\"\n    }), m(\"p\", {\n      class: \"ig-es-campaign-type-title\"\n    }, \"Classic Editor\")), m(\"div\", {\n      class: \"ig-es-new-campaign-type-tab\",\n      onclick: function onclick(e) {\n        if (_Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].manageTemplates) {\n          m.route.set('/template/edit', {\n            editorType: ig_es_main_js_data.dnd_editor_slug\n          });\n        } else {\n          m.route.set('/campaign/edit', {\n            campaignType: campaignType,\n            editorType: ig_es_main_js_data.dnd_editor_slug\n          });\n        }\n      }\n    }, m(\"img\", {\n      class: \"inline\",\n      src: ig_es_main_js_data.image_path + \"lite/admin/images/new/image-30.png\",\n      alt: \"\"\n    }), m(\"p\", {\n      class: \"ig-es-campaign-type-title\"\n    }, __(' Drag-n-Drop Editor', 'email-subscribers'))))));\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditorChoicePopup);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/templates/EditorChoicePopup.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/templates/Gallery.js":
/*!******************************************************!*\
  !*** ./lite/admin/js/src/views/templates/Gallery.js ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ GalleryDashboard; }\n/* harmony export */ });\n/* harmony import */ var _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/templates/GalleryItems */ \"./lite/admin/js/src/models/templates/GalleryItems.js\");\n/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Item */ \"./lite/admin/js/src/views/templates/Item.js\");\n/* harmony import */ var _ItemFilters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ItemFilters */ \"./lite/admin/js/src/views/templates/ItemFilters.js\");\n/* harmony import */ var _ItemPreview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ItemPreview */ \"./lite/admin/js/src/views/templates/ItemPreview.js\");\n/* harmony import */ var _EditorChoicePopup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EditorChoicePopup */ \"./lite/admin/js/src/views/templates/EditorChoicePopup.js\");\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/Icons */ \"./lite/admin/js/src/utils/Icons.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\nvar GalleryDashboard = /*#__PURE__*/function () {\n  function GalleryDashboard(vnode) {\n    _classCallCheck(this, GalleryDashboard);\n    _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canShowEditorChoicePopup = false;\n    _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters = [];\n    _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].manageTemplates = false;\n    _utils_Functions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].toggleAdminMenuVisibility(true);\n  }\n  return _createClass(GalleryDashboard, [{\n    key: \"oninit\",\n    value: function oninit(vnode) {\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].loadItems();\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canShowEditorChoicePopup = false;\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters = [];\n      GalleryDashboard.manageTemplates = vnode.attrs.manageTemplates === 'yes';\n      var filterByCampaignType = !GalleryDashboard.manageTemplates; // Since on manage templates page, we need to show all templates irrespective of their campaign type, we aren't filtering by campaign type on page load.\n      var campaignType = vnode.attrs.campaignType;\n      if (!_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type) {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type = [];\n      }\n      if (!_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type) {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type = [\n          // ig_es_main_js_data.classic_editor_slug,\n          // ig_es_main_js_data.dnd_editor_slug\n        ];\n        // GalleryItems.activeFilters.editor_type.push();\n        // GalleryItems.activeFilters.editor_type.push(ig_es_main_js_data.dnd_editor_slug);\n      }\n      if (!_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.gallery_type) {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.gallery_type = [\n          //ig_es_main_js_data.local_gallery_type,\n          //ig_es_main_js_data.remote_gallery_type\n        ];\n        // GalleryItems.activeFilters.editor_type.push();\n        // GalleryItems.activeFilters.editor_type.push(ig_es_main_js_data.dnd_editor_slug);\n      }\n      if (filterByCampaignType && _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.length >= 0 && _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.indexOf(campaignType) === -1) {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.push(campaignType);\n        var isPostNotificationCampaign = campaignType === ig_es_main_js_data.post_notification_campaign_type;\n        if (isPostNotificationCampaign) {\n          _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.push(ig_es_main_js_data.post_digest_campaign_type);\n        }\n      }\n    }\n  }, {\n    key: \"view\",\n    value: function view(vnode) {\n      var campaignType = vnode.attrs.campaignType;\n      var sortedGalleryItems = _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items;\n      if (_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items.length > 0) {\n        if (Object.keys(_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters).length > 0 || Object.keys(_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters).length > 0) {\n          if (_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.length > 0) {\n            sortedGalleryItems = _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items.filter(function (item) {\n              return _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.includes(item.type);\n            });\n          }\n          if (_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type.length > 0) {\n            sortedGalleryItems = sortedGalleryItems.filter(function (item) {\n              return _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type.includes(item.editor_type);\n            });\n          }\n          if (_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.gallery_type.length > 0) {\n            sortedGalleryItems = sortedGalleryItems.filter(function (item) {\n              return _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.gallery_type.includes(item.gallery_type);\n            });\n          }\n\n          // if( GalleryItems.activeFilters['type'] !== undefined && GalleryItems.activeFilters['type'].length <= 0 && GalleryItemsPage.activeFilters['editor_type'] !== undefined && GalleryItemsPage.activeFilters['editor_type'].length <= 0 ){\n          //     sortedGalleryItems = GalleryItems.items;\n          // }\n        }\n      }\n      return m(\"main\", {\n        class: \"gap-5\"\n      }, _utils_Loader__WEBPACK_IMPORTED_MODULE_5__[\"default\"].showLoader ? m(_utils_Loader__WEBPACK_IMPORTED_MODULE_5__[\"default\"], null) : null, m(\"div\", {\n        class: \"sticky top-0 z-10\"\n      }, m(\"header\", null, m(\"nav\", {\n        \"aria-label\": \"Global\",\n        class: \"pb-5 w-full\"\n      }, m(\"div\", {\n        class: \"brand-logo\"\n      }, m(\"span\", null, m(\"img\", {\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/brand-logo/IG LOGO 192X192.svg\",\n        alt: \"brand logo\"\n      }), m(\"div\", {\n        class: \"divide\"\n      }), m(\"h1\", null, __('Gallery Items', 'email-subscribers')))), m(\"button\", {\n        href: \"#\",\n        class: \"cross\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          window.location.href = (ig_es_main_js_data.admin_url || '/wp-admin/').replace(/\\/$/, '') + '/admin.php?page=es_dashboard#campaigns';\n        }\n      }, m.trust(_utils_Icons__WEBPACK_IMPORTED_MODULE_7__[\"default\"].close)), \" \"))), m(_ItemFilters__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null), m(\"div\", {\n        class: \"templates\"\n      }, m(\"div\", {\n        class: \"create-new\"\n      }, m(\"div\", {\n        class: \"card-head\"\n      }, m(\"img\", {\n        class: \"mx-auto\",\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/create-new-template.png\",\n        alt: \"\"\n      })), m(\"div\", {\n        class: \"flex flex-col w-48 gap-4 card-desc\"\n      }, m(\"button\", {\n        class: \"primary w-28 mx-auto test123\",\n        onclick: function onclick(e) {\n          GalleryDashboard.showEditorChoicePopup();\n        }\n      }, \" Create New\"), m(\"a\", {\n        class: \"font-normal text-xs text-gray-500\"\n      }, \"Click here to create a new template from scratch.\"))), sortedGalleryItems.map(function (item, key) {\n        if (ig_es_main_js_data.post_digest_campaign_type === item.type || ig_es_main_js_data.post_notification_campaign_type === item.type) {\n          campaignType = item.type;\n        }\n        return m(_Item__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n          key: key,\n          item: item,\n          campaignType: campaignType,\n          campaignId: vnode.attrs.campaignId\n        });\n      })), _ItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].showPreview ? m(_ItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null) : '', _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canShowEditorChoicePopup ? m(_EditorChoicePopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        campaignType: vnode.attrs.campaignType\n      }) : '');\n    }\n  }], [{\n    key: \"showPreview\",\n    value: function showPreview(item, campaignType, galleryType) {\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].loadTemplatePreviewData(item.ID, galleryType, function (response) {\n        _utils_Loader__WEBPACK_IMPORTED_MODULE_5__[\"default\"].showLoader = false;\n        _ItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].previewHTML = response.data.template_html;\n        _ItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].item = item;\n        _ItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].showPreview = true;\n        _ItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].campaignType = campaignType;\n      });\n    }\n  }, {\n    key: \"showEditorChoicePopup\",\n    value: function showEditorChoicePopup() {\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canShowEditorChoicePopup = true;\n    }\n  }, {\n    key: \"hideEditorChoicePopup\",\n    value: function hideEditorChoicePopup() {\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].canShowEditorChoicePopup = false;\n    }\n  }, {\n    key: \"deleteGalleryTemplate\",\n    value: function deleteGalleryTemplate(templateID) {\n      var confirmDelete = confirm(__('Do you really want to delete this template?', 'email-subscribers'));\n      if (confirmDelete) {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].deleteTemplate(templateID, function (response) {\n          if (response.success) {\n            _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items = _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items.filter(function (item) {\n              return item.ID !== templateID;\n            });\n          } else {\n            alert(__('An error has occured. Please try again later', 'email-subscribers'));\n          }\n        });\n      }\n    }\n  }, {\n    key: \"setActiveFilters\",\n    value: function setActiveFilters(filter, filterVal) {\n      if (typeof _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters === 'undefined') {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters = [];\n      }\n      if (typeof _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters[filter] === 'undefined') {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters[filter] = [];\n      }\n      if (_models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters[filter].indexOf(filterVal) > -1) {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters[filter] = _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters[filter].filter(function (e) {\n          return e !== filterVal;\n        });\n      } else {\n        _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters[filter].push(filterVal);\n      }\n    }\n  }, {\n    key: \"clearAllActiveFilters\",\n    value: function clearAllActiveFilters() {\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type = [];\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type = [];\n      _models_templates_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.gallery_type = [];\n    }\n  }]);\n}();\n_defineProperty(GalleryDashboard, \"manageTemplates\", false);\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/templates/Gallery.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/templates/Item.js":
/*!***************************************************!*\
  !*** ./lite/admin/js/src/views/templates/Item.js ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ GalleryItem; }\n/* harmony export */ });\n/* harmony import */ var _Gallery_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Gallery.js */ \"./lite/admin/js/src/views/templates/Gallery.js\");\n/* harmony import */ var _utils_Icons_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Icons.js */ \"./lite/admin/js/src/utils/Icons.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nvar GalleryItem = /*#__PURE__*/function () {\n  function GalleryItem() {\n    _classCallCheck(this, GalleryItem);\n  }\n  return _createClass(GalleryItem, [{\n    key: \"view\",\n    value: function view(vnode) {\n      var item = vnode.attrs.item;\n      var campaignType = vnode.attrs.campaignType;\n      var galleryType = item.gallery_type;\n      var templatePlan = item.es_plan;\n      var templateVersion = item.template_version;\n      var canUpsell = canUpsellESTemplate(templatePlan, templateVersion);\n      var isTemplatePage = _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].manageTemplates;\n      var canUseTemplate = !isTemplatePage && !canUpsell; // Template can only be used if not on template page and is not premium template.\n      var canManageTemplate = isTemplatePage && galleryType === 'local';\n      var canImportTemplate = isTemplatePage && galleryType === 'remote' && !canUpsell;\n      return m(\"div\", {\n        class: \"ig-es-card\"\n      }, m(\"div\", {\n        class: \"card-head\"\n      }, m(\"div\", {\n        class: \"group\"\n      }, item.thumbnail ? m(\"img\", {\n        src: item.thumbnail,\n        alt: \"{item.title}\"\n      }) : m(\"svg\", {\n        xmlns: \"http://www.w3.org/2000/svg\",\n        class: \"h-40 w-full mb-8 \",\n        fill: \"none\",\n        viewBox: \"0 0 24 24\",\n        stroke: \"#d2d6dc\"\n      }, m(\"path\", {\n        \"stroke-linecap\": \"round\",\n        \"stroke-linejoin\": \"round\",\n        \"stroke-width\": \"1\",\n        d: \"M3 19v-8.93a2 2 0 01.89-1.664l7-4.666a2 2 0 012.22 0l7 4.666A2 2 0 0121 10.07V19M3 19a2 2 0 002 2h14a2 2 0 002-2M3 19l6.75-4.5M21 19l-6.75-4.5M3 10l6.75 4.5M21 10l-6.75 4.5m0 0l-1.14.76a2 2 0 01-2.22 0l-1.14-.76\"\n      })), m(\"div\", {\n        class: \"hidden group-hover:flex group-hover:absolute w-full h-full top-0 right-3 flex-col items-center justify-start pt-6 space-y-8 cursor-pointer bg-gray-700/50\"\n      }, m(\"div\", {\n        class: \"flex justify-end w-full px-5\"\n      }, canManageTemplate && m(\"button\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].deleteGalleryTemplate(item.ID);\n        },\n        class: \"cross white text-end\"\n      }, m.trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].close)), canImportTemplate && m(\"button\", {\n        onclick: function onclick(e) {\n          location.href = '?action=ig_es_import_remote_gallery_template&template-id=' + item.ID + '&_wpnonce=' + ig_es_js_data.security;\n        },\n        class: \"font-semibold text-base text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0\",\n        title: __('Import this template', 'email-subscribers')\n      }, m(\"svg\", {\n        xmlns: \"http://www.w3.org/2000/svg\",\n        fill: \"none\",\n        viewBox: \"0 0 24 24\",\n        \"stroke-width\": \"1.5\",\n        stroke: \"currentColor\",\n        class: \"w-4 h-4\"\n      }, m(\"path\", {\n        \"stroke-linecap\": \"round\",\n        \"stroke-linejoin\": \"round\",\n        d: \"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3\"\n      })))), m(\"div\", {\n        class: \"flex flex-col space-y-3\"\n      }, m(\"button\", {\n        onclick: function onclick() {\n          return _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showPreview(item, campaignType, galleryType);\n        },\n        class: \"white\"\n      }, \"Preview\"), canUseTemplate && m(\"button\", {\n        onclick: function onclick() {\n          return location.href = '?action=ig_es_import_gallery_item&template-id=' + item.ID + '&campaign-type=' + campaignType + '&gallery-type=' + galleryType + '&_wpnonce=' + ig_es_js_data.security;\n        },\n        class: \"outline\"\n      }, \"Use This\"), canManageTemplate && m(\"button\", {\n        onclick: function onclick() {\n          m.route.set('/template/edit/' + item.ID);\n        },\n        class: \"outline\"\n      }, \" \", __('Edit This', 'email-subscribers')))))), m(\"div\", {\n        class: \"card-desc\"\n      }, m(\"div\", {\n        class: \"title\"\n      }, m(\"div\", null, m(\"h2\", null, item.title)), canManageTemplate && m(\"div\", {\n        class: \"saved\"\n      }, m(\"div\", {\n        class: \"relative flex flex-row-reverse items-center group\"\n      }, m(\"button\", {\n        onclick: function onclick() {\n          return location.href = '?action=ig_es_duplicate_template&template-id=' + item.ID + '&_wpnonce=' + ig_es_js_data.security;\n        }\n      }, m(\"svg\", {\n        width: \"11\",\n        height: \"13\",\n        viewBox: \"0 0 11 13\",\n        fill: \"none\",\n        xmlns: \"http://www.w3.org/2000/svg\"\n      }, m(\"path\", {\n        \"fill-rule\": \"evenodd\",\n        \"clip-rule\": \"evenodd\",\n        d: \"M0.400391 0.609805C0.400391 0.272989 0.670663 0 1.00404 0H9.79675C10.1301 0 10.4004 0.272989 10.4004 0.609805V12.3902C10.4004 12.6141 10.2789 12.8201 10.0839 12.9266C9.8889 13.0331 9.65179 13.0231 9.46627 12.9005L5.40039 10.2134L1.33451 12.9005C1.14903 13.0231 0.91192 13.0331 0.716902 12.9266C0.521924 12.8201 0.400391 12.6141 0.400391 12.3902V0.609805ZM1.60768 1.21961V11.2625L5.06991 8.97442C5.27065 8.84173 5.53013 8.84173 5.73087 8.97442L9.1931 11.2625V1.21961H1.60768Z\",\n        fill: \"#5E19CF\"\n      }))), m(\"div\", {\n        class: \"absolute top-0 right-4 flex flex-row-reverse items-center hidden mb-6 group-hover:flex\"\n      }, m(\"div\", {\n        class: \"relative w-2 h-2 rotate-45 -left-1 bg-neutral-950\"\n      }), m(\"span\", {\n        class: \"relative w-11 z-10 p-2 text-xs font-medium justify-center leading-none text-white bg-neutral-950 shadow-lg rounded-sm\"\n      }, __('Duplicate', 'email-subscribers'))))), canImportTemplate && m(\"div\", {\n        class: \"save\"\n      }, m(\"div\", {\n        class: \"relative flex flex-row-reverse items-center group\"\n      }, m(\"button\", {\n        onclick: function onclick() {\n          return location.href = '?action=ig_es_import_remote_gallery_template&template-id=' + item.ID + '&_wpnonce=' + ig_es_js_data.security;\n        }\n      }, m(\"svg\", {\n        width: \"11\",\n        height: \"13\",\n        viewBox: \"0 0 11 13\",\n        fill: \"none\",\n        xmlns: \"http://www.w3.org/2000/svg\"\n      }, m(\"path\", {\n        \"fill-rule\": \"evenodd\",\n        \"clip-rule\": \"evenodd\",\n        d: \"M0.400391 0.609805C0.400391 0.272989 0.670663 0 1.00404 0H9.79675C10.1301 0 10.4004 0.272989 10.4004 0.609805V12.3902C10.4004 12.6141 10.2789 12.8201 10.0839 12.9266C9.8889 13.0331 9.65179 13.0231 9.46627 12.9005L5.40039 10.2134L1.33451 12.9005C1.14903 13.0231 0.91192 13.0331 0.716902 12.9266C0.521924 12.8201 0.400391 12.6141 0.400391 12.3902V0.609805ZM1.60768 1.21961V11.2625L5.06991 8.97442C5.27065 8.84173 5.53013 8.84173 5.73087 8.97442L9.1931 11.2625V1.21961H1.60768Z\",\n        fill: \"#5E19CF\"\n      }))), m(\"div\", {\n        class: \"absolute top-0 right-4 flex flex-row-reverse items-center hidden mb-6 group-hover:flex\"\n      }, m(\"div\", {\n        class: \"relative w-2 h-2 rotate-45 -left-1 bg-neutral-950\"\n      }), m(\"span\", {\n        class: \"relative w-11 z-10 p-2 text-xs font-medium justify-center leading-none text-white bg-neutral-950 shadow-lg rounded-sm\"\n      }, __('Import', 'email-subscribers')))))), m(\"ul\", {\n        class: \"meta-tags\"\n      }, item.categories.map(function (name, key) {\n        var cat = item.categories[key].replace(/_/g, ' ');\n        // Map starter plan to pro plan and pro plan to max plan\n        if ('1.0.0' == templateVersion) {\n          if (cat === 'starter') {\n            cat = 'pro';\n          } else if (cat === 'pro') {\n            cat = 'max';\n          }\n        }\n        return m(\"li\", {\n          class: \"text-purple-500 bg-purple-500/20\"\n        }, cat);\n      }))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/templates/Item.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/templates/ItemFilters.js":
/*!**********************************************************!*\
  !*** ./lite/admin/js/src/views/templates/ItemFilters.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ GalleryItemFilter; }\n/* harmony export */ });\n/* harmony import */ var _Gallery_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Gallery.js */ \"./lite/admin/js/src/views/templates/Gallery.js\");\n/* harmony import */ var _models_templates_GalleryItems_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/templates/GalleryItems.js */ \"./lite/admin/js/src/models/templates/GalleryItems.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\nvar GalleryItemFilter = /*#__PURE__*/function () {\n  function GalleryItemFilter() {\n    _classCallCheck(this, GalleryItemFilter);\n  }\n  return _createClass(GalleryItemFilter, [{\n    key: \"view\",\n    value: function view(vnode) {\n      return m(\"div\", {\n        class: \"tabs\"\n      }, m(\"ul\", null, m(\"li\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].clearAllActiveFilters();\n          e.even.addClss('active');\n        },\n        class: \"tab\"\n      }, __('All', 'email-subscribers'))), m(\"li\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.newsletter_campaign_type);\n        },\n        class: (_models_templates_GalleryItems_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.newsletter_campaign_type) > -1 ? \"active \" : \"\") + \"tab secondary\"\n      }, __('Newsletter', 'email-subscribers'))), m(\"li\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.post_notification_campaign_type);\n        },\n        class: (_models_templates_GalleryItems_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.post_notification_campaign_type) > -1 ? \"active \" : \"\") + \"tab secondary\"\n      }, __('Post Notification', 'email-subscribers'))), m(\"li\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.post_digest_campaign_type);\n        },\n        class: (_models_templates_GalleryItems_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.post_digest_campaign_type) > -1 ? \"active \" : \"\") + \"tab secondary\"\n      }, __('Post Digest', 'email-subscribers'))), m(\"li\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('editor_type', ig_es_main_js_data.classic_editor_slug);\n        },\n        class: (_models_templates_GalleryItems_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].activeFilters.editor_type.indexOf(ig_es_main_js_data.classic_editor_slug) > -1 ? \"active \" : \"\") + \"tab secondary\"\n      }, __('Classic Editor', 'email-subscribers'))), m(\"li\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('editor_type', ig_es_main_js_data.dnd_editor_slug);\n        },\n        class: (_models_templates_GalleryItems_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].activeFilters.editor_type.indexOf(ig_es_main_js_data.dnd_editor_slug) > -1 ? \"active \" : \"\") + \"tab secondary\"\n      }, __('Drag & Drop Editor', 'email-subscribers')))));\n    }\n  }]);\n}();\n\n;\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/templates/ItemFilters.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/templates/ItemPreview.js":
/*!**********************************************************!*\
  !*** ./lite/admin/js/src/views/templates/ItemPreview.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Gallery_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Gallery.js */ \"./lite/admin/js/src/views/templates/Gallery.js\");\n/* harmony import */ var _utils_Icons_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Icons.js */ \"./lite/admin/js/src/utils/Icons.js\");\n\n\nvar ItemPreview = {\n  previewHTML: '',\n  item: {},\n  campaignType: '',\n  galleryType: '',\n  showPreview: false,\n  oncreate: function oncreate() {\n    ig_es_load_iframe_preview('#gallery-item-preview-iframe-container', ItemPreview.previewHTML);\n  },\n  hidePopup: function hidePopup() {\n    ItemPreview.showPreview = false;\n  },\n  view: function view(vnode) {\n    var templatePlan = ItemPreview.item.es_plan;\n    var templateVersion = ItemPreview.item.template_version;\n    var canUpsell = canUpsellESTemplate(templatePlan, templateVersion);\n    var isTemplatePage = _Gallery_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].manageTemplates;\n    var galleryType = ItemPreview.item.gallery_type;\n    var canManageTemplate = isTemplatePage && galleryType === 'local';\n    var canUseTemplate = !isTemplatePage && !canUpsell; // Template can only be used if not on template page and is not premium template.\n    var canImportTemplate = isTemplatePage && galleryType === 'remote' && !canUpsell;\n    var upsellText = '';\n    if (canUpsell) {\n      if (templateVersion === '1.0.1') {\n        upsellText = ItemPreview.item.es_plan === 'pro' ? 'PRO' : 'MAX';\n      } else {\n        upsellText = ItemPreview.item.es_plan === 'starter' ? 'PRO' : 'MAX';\n      }\n    }\n    return m(\"div\", {\n      id: \"campaign-preview-popup\"\n    }, m(\"div\", {\n      class: \"fixed top-0 left-0 z-50 flex items-center justify-center w-full h-full\",\n      style: \"background-color: rgba(0,0,0,.5);\"\n    }, m(\"div\", {\n      id: \"campaign-preview-main-container\",\n      class: \"absolute h-auto pt-2 ml-16 mr-4 text-left bg-white rounded shadow-xl z-80 w-1/2 md:max-w-5xl lg:max-w-7xl md:pt-3 lg:pt-2\"\n    }, m(\"main\", {\n      class: \"gap-5\"\n    }, m(\"div\", {\n      class: \"sticky top-0 z-10\"\n    }, m(\"header\", null, m(\"nav\", {\n      \"aria-label\": \"Global\"\n    }, m(\"div\", {\n      class: \"brand-logo\"\n    }, m(\"span\", null, m(\"img\", {\n      src: ig_es_main_js_data.image_path + \"lite/admin/images/new/brand-logo/IG LOGO 192X192.svg\",\n      alt: \"brand logo\"\n    }), m(\"div\", {\n      class: \"divide\"\n    }), m(\"h1\", null, \" \", __('Preview', 'email-subscribers')))), m(\"div\", {\n      class: \"cta\"\n    }, m(\"div\", {\n      class: \"ig-es-popup-close-container\",\n      onclick: ItemPreview.hidePopup\n    }, m(\"button\", {\n      href: \"#\",\n      class: \"cross\"\n    }, m.trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].close))))))), m(\"div\", {\n      id: \"gallery-item-preview-container\",\n      class: \"template-preview mx-auto mt-1 mb-6\"\n    }, m(\"div\", {\n      id: \"gallery-item-preview-iframe-container\",\n      class: \"py-4 list-decimal popup-preview\"\n    })), m(\"div\", {\n      class: \"flex justify-center py-5\"\n    }, canUseTemplate && m(\"a\", {\n      href: '?action=ig_es_import_gallery_item&template-id=' + ItemPreview.item.ID + '&campaign-type=' + ItemPreview.campaignType + '&gallery-type=' + ItemPreview.item.gallery_type + '&_wpnonce=' + ig_es_js_data.security,\n      class: \"primary mx-auto ig-es-primary-link\"\n    }, __('Use this template', 'email-subscribers'), \" \"), canManageTemplate && m(\"button\", {\n      class: \"primary mx-auto\",\n      onclick: function onclick() {\n        m.route.set('/template/edit/' + ItemPreview.item.ID);\n      }\n    }, __('Edit this template', 'email-subscribers')), canImportTemplate && m(\"button\", {\n      class: \"primary mx-auto\",\n      onclick: function onclick() {\n        return window.location.href = '?action=ig_es_import_remote_gallery_template&template-id=' + ItemPreview.item.ID + '&_wpnonce=' + ig_es_js_data.security;\n      }\n    }, __('Import this template', 'email-subscribers')), canUpsell && m(\"button\", {\n      class: \"primary mx-auto capitalize\",\n      onclick: function onclick() {\n        return window.open('https://www.icegram.com/email-subscribers-pricing/?utm_source=in_app&utm_medium=remote_gallery_template&utm_campaign=es_upsell');\n      },\n      target: \"_blank\"\n    }, __('Upgrade to', 'email-subscribers') + ' ' + upsellText))))));\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ItemPreview);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/templates/ItemPreview.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/templates/TemplateActions.js":
/*!**************************************************************!*\
  !*** ./lite/admin/js/src/views/templates/TemplateActions.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/campaigns/CampaignModel */ \"./lite/admin/js/src/models/campaigns/CampaignModel.js\");\n/* harmony import */ var _campaign_CampaignDetail__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../campaign/CampaignDetail */ \"./lite/admin/js/src/views/campaign/CampaignDetail.js\");\n/* harmony import */ var _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/templates/TemplateModel */ \"./lite/admin/js/src/models/templates/TemplateModel.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar TemplateActions = /*#__PURE__*/function () {\n  function TemplateActions() {\n    _classCallCheck(this, TemplateActions);\n    _defineProperty(this, \"showTemplateActionDropdown\", false);\n  }\n  return _createClass(TemplateActions, [{\n    key: \"oncreate\",\n    value: function oncreate(_ref) {\n      var attrs = _ref.attrs;\n      this.switchTab = attrs.switchTab;\n    }\n  }, {\n    key: \"toggleActionsDropdown\",\n    value: function toggleActionsDropdown() {\n      this.showTemplateActionDropdown = !this.showTemplateActionDropdown;\n    }\n  }, {\n    key: \"saveAsDraft\",\n    value: function saveAsDraft() {\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.status = 0;\n      _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].saveCamapign();\n      this.toggleActionsDropdown();\n    }\n  }, {\n    key: \"saveAndContinue\",\n    value: function saveAndContinue() {\n      this.toggleActionsDropdown();\n      this.switchTab('publish');\n    }\n  }, {\n    key: \"saveAsTemplate\",\n    value: function saveAsTemplate() {\n      this.formatCampaignDetail();\n      _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].saveTemplate();\n      this.toggleActionsDropdown();\n    }\n  }, {\n    key: \"formatCampaignDetail\",\n    value: function formatCampaignDetail() {\n      this.model = new _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\n      var templateDetails = _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].details;\n      var campaignDetails = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details;\n      templateDetails.subject = campaignDetails.subject;\n      templateDetails.meta.es_template_type = campaignDetails.type;\n      templateDetails.meta.es_custom_css = campaignDetails.meta.es_custom_css;\n      templateDetails.meta.es_editor_type = _models_campaigns_CampaignModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].usingDndEditor() ? ig_es_main_js_data.dnd_editor_slug : ig_es_main_js_data.classic_editor_slug;\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref2) {\n      var _this = this;\n      var attrs = _ref2.attrs;\n      var dropDownClasses = \"absolute font-normal text-left dropdown-menu scale-95 z-50 w-40\";\n\n      //  let dropDownClasses = \"w-44 absolute font-normal text-left dropdown-menu hidden opacity-0 scale-95\"\n      return m(\"div\", {\n        class: \"relative inline-block text-left w-auto dropdown\"\n      }, m(\"div\", {\n        class: \"w-24\"\n      }, m(\"button\", {\n        type: \"button\",\n        id: \"menu-button\",\n        class: \"primary text-white text-center inline-flex items-center menu-button\",\n        \"aria-expanded\": \"false\",\n        \"aria-haspopup\": \"true\",\n        onclick: function onclick() {\n          return _this.toggleActionsDropdown();\n        }\n      }, m(\"span\", null, \" \", __('Save', 'email-subscribers')), m(\"svg\", {\n        class: \"w-2.5 h-2.5 ml-2.5\",\n        \"aria-hidden\": \"true\",\n        xmlns: \"http://www.w3.org/2000/svg\",\n        fill: \"none\",\n        viewBox: \"0 0 10 6\"\n      }, m(\"path\", {\n        stroke: \"currentColor\",\n        \"stroke-linecap\": \"round\",\n        \"stroke-linejoin\": \"round\",\n        \"stroke-width\": \"2\",\n        d: \"m1 1 4 4 4-4\"\n      })))), m(\"div\", {\n        class: \"\".concat(dropDownClasses, \" \").concat(this.showTemplateActionDropdown ? '' : 'hidden opacity-0'),\n        role: \"menu\",\n        \"aria-orientation\": \"vertical\",\n        \"aria-labelledby\": \"menu-button\",\n        tabindex: \"-1\",\n        id: \"dropdown-menu\"\n      }, m(\"div\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this.saveAndContinue();\n        }\n      }, \"  \", __('Save & Continue', 'email-subscribers'))), m(\"div\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this.saveAsDraft();\n        }\n      }, __('Save As Draft', 'email-subscribers'))), m(\"div\", null, m(\"a\", {\n        href: \"#\",\n        onclick: function onclick(e) {\n          e.preventDefault();\n          _this.saveAsTemplate();\n        }\n      }, __('Save As Template', 'email-subscribers')))));\n    }\n  }]);\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (TemplateActions);\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/templates/TemplateActions.js?\n}");

/***/ }),

/***/ "./lite/admin/js/src/views/templates/TemplateEdit.js":
/*!***********************************************************!*\
  !*** ./lite/admin/js/src/views/templates/TemplateEdit.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ TemplateEdit; }\n/* harmony export */ });\n/* harmony import */ var _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/templates/TemplateModel */ \"./lite/admin/js/src/models/templates/TemplateModel.js\");\n/* harmony import */ var _editors_dnd_DNDEditorCanvas__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../editors/dnd/DNDEditorCanvas */ \"./lite/admin/js/src/views/editors/dnd/DNDEditorCanvas.js\");\n/* harmony import */ var _editors_dnd_DnDEditorSidebar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editors/dnd/DnDEditorSidebar */ \"./lite/admin/js/src/views/editors/dnd/DnDEditorSidebar.js\");\n/* harmony import */ var _editors_classic_ClassicEditorBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../editors/classic/ClassicEditorBody */ \"./lite/admin/js/src/views/editors/classic/ClassicEditorBody.js\");\n/* harmony import */ var _editors_classic_CustomCSS__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../editors/classic/CustomCSS */ \"./lite/admin/js/src/views/editors/classic/CustomCSS.js\");\n/* harmony import */ var _editors_classic_TemplateClassicEditorSidebar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../editors/classic/TemplateClassicEditorSidebar */ \"./lite/admin/js/src/views/editors/classic/TemplateClassicEditorSidebar.js\");\n/* harmony import */ var _utils_Functions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/Functions */ \"./lite/admin/js/src/utils/Functions.js\");\n/* harmony import */ var _utils_Loader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/Loader */ \"./lite/admin/js/src/utils/Loader.js\");\n/* harmony import */ var _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/SuccessPopup */ \"./lite/admin/js/src/utils/SuccessPopup.js\");\n/* harmony import */ var _utils_CampaignTagsWithToggle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils/CampaignTagsWithToggle */ \"./lite/admin/js/src/utils/CampaignTagsWithToggle.js\");\n/* harmony import */ var _utils_Icons_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/Icons.js */ \"./lite/admin/js/src/utils/Icons.js\");\n/* harmony import */ var _editors_dnd_BlockManager_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../editors/dnd/BlockManager.js */ \"./lite/admin/js/src/views/editors/dnd/BlockManager.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\n\n\n\n\n\n\n\n\n\nvar TemplateEdit = /*#__PURE__*/function () {\n  function TemplateEdit(_ref) {\n    var attrs = _ref.attrs;\n    _classCallCheck(this, TemplateEdit);\n    this.initialize(attrs);\n    this.campaignType = _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.es_template_type;\n  }\n  return _createClass(TemplateEdit, [{\n    key: \"initialize\",\n    value: function initialize(attrs) {\n      _utils_Functions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].toggleAdminMenuVisibility(true);\n      this.model = new _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n      if (!_models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.id) {\n        var templateId = typeof attrs.templateId !== 'undefined' ? attrs.templateId : 0;\n        if (templateId > 0) {\n          _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getTemplate(templateId);\n        } else {\n          var campaignDefaultData = this.getCampaignDefaultData(attrs);\n          _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setCurrentTemplate(templateId, campaignDefaultData);\n        }\n      }\n    }\n  }, {\n    key: \"switchEditor\",\n    value: function switchEditor() {\n      var template = _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details;\n      var isDnDEditor = template.meta.es_editor_type === ig_es_campaign_editor_data.dndEditor;\n      _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.es_editor_type = isDnDEditor ? ig_es_campaign_editor_data.classicEditor : ig_es_campaign_editor_data.dndEditor;\n    }\n  }, {\n    key: \"updateContent\",\n    value: function updateContent(content) {\n      _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.body = content;\n    }\n  }, {\n    key: \"getCampaignDefaultData\",\n    value: function getCampaignDefaultData(attrs) {\n      var campaignType = typeof attrs.campaignType !== 'undefined' ? attrs.campaignType : ig_es_main_js_data.post_notification_campaign_type;\n      var editorType = typeof attrs.editorType !== 'undefined' ? attrs.editorType : ig_es_main_js_data.dnd_editor_slug;\n      var isDnDEditor = editorType === ig_es_main_js_data.dnd_editor_slug;\n      var subject = _utils_Functions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].getCampaignDefaultSubject(campaignType);\n      var content = _utils_Functions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].getCampaignDefaultContent(campaignType);\n      var campaignDefaultData = {\n        subject: subject,\n        body: content[ig_es_main_js_data.classic_editor_slug],\n        meta: {\n          es_editor_type: editorType,\n          es_template_type: campaignType\n        }\n      };\n      if (isDnDEditor) {\n        campaignDefaultData.meta.dnd_editor_data = content[ig_es_main_js_data.dnd_editor_slug];\n      }\n      return campaignDefaultData;\n    }\n  }, {\n    key: \"updateCustomCSS\",\n    value: function updateCustomCSS(customCSS) {\n      if (typeof _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta === 'undefined') {\n        _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta = {};\n      }\n      _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.es_custom_css = customCSS;\n    }\n  }, {\n    key: \"updateCampaignType\",\n    value: function updateCampaignType(campaignType) {\n      _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta.es_template_type = campaignType;\n      this.campaignType = campaignType;\n      _editors_dnd_DnDEditorSidebar__WEBPACK_IMPORTED_MODULE_2__[\"default\"].campaignType = campaignType;\n      var blocks = esVisualEditor.BlockManager.blocks.models;\n      blocks = _utils_Functions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].filterCampaignWiseBlocks(blocks, campaignType);\n      _editors_dnd_BlockManager_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"].blocks = blocks;\n      m.redraw();\n    }\n  }, {\n    key: \"view\",\n    value: function view(_ref2) {\n      var _this = this,\n        _TemplateModel$detail;\n      var attrs = _ref2.attrs;\n      var template = _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details;\n      var campaignType = template.meta.es_template_type;\n      var editorType = template.meta.es_editor_type;\n      var isDnDEditor = editorType === ig_es_campaign_editor_data.dndEditor;\n      var content = isDnDEditor ? template.meta.es_dnd_editor_data : template.body;\n      if (content === '') {\n        return;\n      }\n      return m(\"div\", {\n        class: \"absolute w-full bg-white\"\n      }, m(\"div\", {\n        class: \"sticky top-0 z-10\"\n      }, m(\"header\", null, m(\"nav\", {\n        \"aria-label\": \"Global\"\n      }, m(\"div\", {\n        class: \"brand-logo\"\n      }, m(\"span\", null, m(\"img\", {\n        src: ig_es_main_js_data.image_path + \"lite/admin/images/new/brand-logo/IG LOGO 192X192.svg\",\n        alt: \"brand logo\"\n      }), m(\"div\", {\n        class: \"divide\"\n      }), m(\"h1\", null, _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.post_title))), m(\"div\", {\n        class: \"links\"\n      }, m(\"a\", {\n        href: \"#\"\n      }, \"  \", __('Template', 'email-subscribers')), m(\"a\", {\n        href: \"#\",\n        class: \"active\"\n      }, \"  \", __('Edit', 'email-subscribers'))), m(\"div\", {\n        class: \"cta\"\n      }, m(\"select\", {\n        value: campaignType,\n        style: \"width:147px\",\n        onchange: function onchange(e) {\n          _this.updateCampaignType(e.target.value);\n        }\n      }, m(\"option\", {\n        value: \"post_notification\"\n      }, \"Post Notification\"), _utils_Functions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].isPro() && m(\"option\", {\n        value: \"post_digest\"\n      }, \"Post Digest\"), m(\"option\", {\n        value: \"newsletter\"\n      }, \"Broadcast\")), m(\"div\", {\n        class: \"flex flex-col\"\n      }, m(\"button\", {\n        id: \"dropdownDefaultButton\",\n        \"data-dropdown-toggle\": \"dropdown\",\n        class: \"primary text-white text-center inline-flex items-center\",\n        type: \"button\",\n        onclick: function onclick() {\n          _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].saveTemplate();\n        }\n      }, m(\"span\", null, \"  \", __('Save', 'email-subscribers')))), m(\"button\", {\n        href: \"#\",\n        class: \"cross\",\n        onclick: function onclick(e) {\n          m.route.set('/gallery', {\n            manageTemplates: 'yes'\n          });\n        }\n      }, m.trust(_utils_Icons_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"].close)))))), _utils_Loader__WEBPACK_IMPORTED_MODULE_7__[\"default\"].showLoader ? m(_utils_Loader__WEBPACK_IMPORTED_MODULE_7__[\"default\"], null) : null, _utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_8__[\"default\"].show ? m(_utils_SuccessPopup__WEBPACK_IMPORTED_MODULE_8__[\"default\"], null) : null, m(\"div\", {\n        class: \"flex justify-between w-full overflow-hidden\"\n      }, m(\"div\", {\n        id: \"campaign-content\",\n        class: \"template-editor dnd-editor\"\n      }, m(\"div\", {\n        class: \"flex flex-col gap-4\"\n      }, m(\"div\", null, m(\"label\", {\n        for: \"Subject\"\n      }, \"  \", __('Subject', 'email-subscribers')), m(\"div\", {\n        class: \"mt-2\"\n      }, m(\"input\", {\n        type: \"text\",\n        name: \"subject\",\n        id: \"subject\",\n        placeholder: \"Subject line goes here {{post.title}}\",\n        value: _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.subject || '',\n        onchange: function onchange(e) {\n          return _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.subject = e.target.value;\n        }\n      }))), m(_utils_CampaignTagsWithToggle__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n        campaignType: campaignType\n      })), m(\"div\", {\n        class: \"template-preview w-full\"\n      }, isDnDEditor ? m(_editors_dnd_DNDEditorCanvas__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        campaignType: campaignType,\n        content: content\n      }) : '', !isDnDEditor ? m(_editors_classic_ClassicEditorBody__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n        campaignType: campaignType,\n        content: content,\n        onRemove: this.updateContent\n      }) : '', !isDnDEditor && (_utils_Functions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].isPro() || _utils_Functions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].isTrial()) ? m(_editors_classic_CustomCSS__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        customCSS: (_TemplateModel$detail = _models_templates_TemplateModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].details.meta) === null || _TemplateModel$detail === void 0 ? void 0 : _TemplateModel$detail.es_custom_css,\n        onChangeHandler: this.updateCustomCSS\n      }) : '')), m(\"div\", {\n        class: \"sidebar\"\n      }, m(\"div\", {\n        class: \"switch\"\n      }, m(\"p\", null, \"Switch To \", isDnDEditor ? __('Classic Editor', 'email-subscribers') : __('Drag & Drop Editor', 'email-subscribers'), \" \"), m(\"a\", {\n        class: \"cursor-pointer\",\n        onclick: this.switchEditor\n      }, \"Switch\")), m(\"div\", {\n        class: \"w-full\"\n      }, isDnDEditor ? m(_editors_dnd_DnDEditorSidebar__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        campaignType: campaignType\n      }) : '', !isDnDEditor ? m(_editors_classic_TemplateClassicEditorSidebar__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n        campaignType: campaignType\n      }) : ''))));\n    }\n  }]);\n}();\n\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/js/src/views/templates/TemplateEdit.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/api/mount-redraw.js":
/*!**************************************************!*\
  !*** ./node_modules/mithril/api/mount-redraw.js ***!
  \**************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar Vnode = __webpack_require__(/*! ../render/vnode */ \"./node_modules/mithril/render/vnode.js\");\nmodule.exports = function (render, schedule, console) {\n  var subscriptions = [];\n  var pending = false;\n  var offset = -1;\n  function sync() {\n    for (offset = 0; offset < subscriptions.length; offset += 2) {\n      try {\n        render(subscriptions[offset], Vnode(subscriptions[offset + 1]), redraw);\n      } catch (e) {\n        console.error(e);\n      }\n    }\n    offset = -1;\n  }\n  function redraw() {\n    if (!pending) {\n      pending = true;\n      schedule(function () {\n        pending = false;\n        sync();\n      });\n    }\n  }\n  redraw.sync = sync;\n  function mount(root, component) {\n    if (component != null && component.view == null && typeof component !== \"function\") {\n      throw new TypeError(\"m.mount expects a component, not a vnode.\");\n    }\n    var index = subscriptions.indexOf(root);\n    if (index >= 0) {\n      subscriptions.splice(index, 2);\n      if (index <= offset) offset -= 2;\n      render(root, []);\n    }\n    if (component != null) {\n      subscriptions.push(root, component);\n      render(root, Vnode(component), redraw);\n    }\n  }\n  return {\n    mount: mount,\n    redraw: redraw\n  };\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/api/mount-redraw.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/api/router.js":
/*!********************************************!*\
  !*** ./node_modules/mithril/api/router.js ***!
  \********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nvar Vnode = __webpack_require__(/*! ../render/vnode */ \"./node_modules/mithril/render/vnode.js\");\nvar hyperscript = __webpack_require__(/*! ../render/hyperscript */ \"./node_modules/mithril/render/hyperscript.js\");\nvar decodeURIComponentSafe = __webpack_require__(/*! ../util/decodeURIComponentSafe */ \"./node_modules/mithril/util/decodeURIComponentSafe.js\");\nvar buildPathname = __webpack_require__(/*! ../pathname/build */ \"./node_modules/mithril/pathname/build.js\");\nvar parsePathname = __webpack_require__(/*! ../pathname/parse */ \"./node_modules/mithril/pathname/parse.js\");\nvar compileTemplate = __webpack_require__(/*! ../pathname/compileTemplate */ \"./node_modules/mithril/pathname/compileTemplate.js\");\nvar censor = __webpack_require__(/*! ../util/censor */ \"./node_modules/mithril/util/censor.js\");\nmodule.exports = function ($window, mountRedraw) {\n  var p = Promise.resolve();\n  var scheduled = false;\n  var ready = false;\n  var hasBeenResolved = false;\n  var dom, compiled, fallbackRoute;\n  var currentResolver, component, attrs, currentPath, _lastUpdate;\n  var RouterRoot = {\n    onremove: function onremove() {\n      ready = hasBeenResolved = false;\n      $window.removeEventListener(\"popstate\", fireAsync, false);\n    },\n    view: function view() {\n      // The route has already been resolved.\n      // Therefore, the following early return is not needed.\n      // if (!hasBeenResolved) return\n\n      var vnode = Vnode(component, attrs.key, attrs);\n      if (currentResolver) return currentResolver.render(vnode);\n      // Wrap in a fragment to preserve existing key semantics\n      return [vnode];\n    }\n  };\n  var SKIP = route.SKIP = {};\n  function resolveRoute() {\n    scheduled = false;\n    // Consider the pathname holistically. The prefix might even be invalid,\n    // but that's not our problem.\n    var prefix = $window.location.hash;\n    if (route.prefix[0] !== \"#\") {\n      prefix = $window.location.search + prefix;\n      if (route.prefix[0] !== \"?\") {\n        prefix = $window.location.pathname + prefix;\n        if (prefix[0] !== \"/\") prefix = \"/\" + prefix;\n      }\n    }\n    var path = decodeURIComponentSafe(prefix).slice(route.prefix.length);\n    var data = parsePathname(path);\n    Object.assign(data.params, $window.history.state);\n    function reject(e) {\n      console.error(e);\n      route.set(fallbackRoute, null, {\n        replace: true\n      });\n    }\n    loop(0);\n    function loop(i) {\n      for (; i < compiled.length; i++) {\n        if (compiled[i].check(data)) {\n          var payload = compiled[i].component;\n          var matchedRoute = compiled[i].route;\n          var localComp = payload;\n          var update = _lastUpdate = function lastUpdate(comp) {\n            if (update !== _lastUpdate) return;\n            if (comp === SKIP) return loop(i + 1);\n            component = comp != null && (typeof comp.view === \"function\" || typeof comp === \"function\") ? comp : \"div\";\n            attrs = data.params, currentPath = path, _lastUpdate = null;\n            currentResolver = payload.render ? payload : null;\n            if (hasBeenResolved) mountRedraw.redraw();else {\n              hasBeenResolved = true;\n              mountRedraw.mount(dom, RouterRoot);\n            }\n          };\n          // There's no understating how much I *wish* I could\n          // use `async`/`await` here...\n          if (payload.view || typeof payload === \"function\") {\n            payload = {};\n            update(localComp);\n          } else if (payload.onmatch) {\n            p.then(function () {\n              return payload.onmatch(data.params, path, matchedRoute);\n            }).then(update, path === fallbackRoute ? null : reject);\n          } else update(/* \"div\" */);\n          return;\n        }\n      }\n      if (path === fallbackRoute) {\n        throw new Error(\"Could not resolve default route \" + fallbackRoute + \".\");\n      }\n      route.set(fallbackRoute, null, {\n        replace: true\n      });\n    }\n  }\n  function fireAsync() {\n    if (!scheduled) {\n      scheduled = true;\n      // TODO: just do `mountRedraw.redraw()` here and elide the timer\n      // dependency. Note that this will muck with tests a *lot*, so it's\n      // not as easy of a change as it sounds.\n      setTimeout(resolveRoute);\n    }\n  }\n  function route(root, defaultRoute, routes) {\n    if (!root) throw new TypeError(\"DOM element being rendered to does not exist.\");\n    compiled = Object.keys(routes).map(function (route) {\n      if (route[0] !== \"/\") throw new SyntaxError(\"Routes must start with a '/'.\");\n      if (/:([^\\/\\.-]+)(\\.{3})?:/.test(route)) {\n        throw new SyntaxError(\"Route parameter names must be separated with either '/', '.', or '-'.\");\n      }\n      return {\n        route: route,\n        component: routes[route],\n        check: compileTemplate(route)\n      };\n    });\n    fallbackRoute = defaultRoute;\n    if (defaultRoute != null) {\n      var defaultData = parsePathname(defaultRoute);\n      if (!compiled.some(function (i) {\n        return i.check(defaultData);\n      })) {\n        throw new ReferenceError(\"Default route doesn't match any known routes.\");\n      }\n    }\n    dom = root;\n    $window.addEventListener(\"popstate\", fireAsync, false);\n    ready = true;\n\n    // The RouterRoot component is mounted when the route is first resolved.\n    resolveRoute();\n  }\n  route.set = function (path, data, options) {\n    if (_lastUpdate != null) {\n      options = options || {};\n      options.replace = true;\n    }\n    _lastUpdate = null;\n    path = buildPathname(path, data);\n    if (ready) {\n      fireAsync();\n      var state = options ? options.state : null;\n      var title = options ? options.title : null;\n      if (options && options.replace) $window.history.replaceState(state, title, route.prefix + path);else $window.history.pushState(state, title, route.prefix + path);\n    } else {\n      $window.location.href = route.prefix + path;\n    }\n  };\n  route.get = function () {\n    return currentPath;\n  };\n  route.prefix = \"#!\";\n  route.Link = {\n    view: function view(vnode) {\n      // Omit the used parameters from the rendered element - they are\n      // internal. Also, censor the various lifecycle methods.\n      //\n      // We don't strip the other parameters because for convenience we\n      // let them be specified in the selector as well.\n      var child = hyperscript(vnode.attrs.selector || \"a\", censor(vnode.attrs, [\"options\", \"params\", \"selector\", \"onclick\"]), vnode.children);\n      var options, onclick, href;\n\n      // Let's provide a *right* way to disable a route link, rather than\n      // letting people screw up accessibility on accident.\n      //\n      // The attribute is coerced so users don't get surprised over\n      // `disabled: 0` resulting in a button that's somehow routable\n      // despite being visibly disabled.\n      if (child.attrs.disabled = Boolean(child.attrs.disabled)) {\n        child.attrs.href = null;\n        child.attrs[\"aria-disabled\"] = \"true\";\n        // If you *really* do want add `onclick` on a disabled link, use\n        // an `oncreate` hook to add it.\n      } else {\n        options = vnode.attrs.options;\n        onclick = vnode.attrs.onclick;\n        // Easier to build it now to keep it isomorphic.\n        href = buildPathname(child.attrs.href, vnode.attrs.params);\n        child.attrs.href = route.prefix + href;\n        child.attrs.onclick = function (e) {\n          var result;\n          if (typeof onclick === \"function\") {\n            result = onclick.call(e.currentTarget, e);\n          } else if (onclick == null || _typeof(onclick) !== \"object\") {\n            // do nothing\n          } else if (typeof onclick.handleEvent === \"function\") {\n            onclick.handleEvent(e);\n          }\n\n          // Adapted from React Router's implementation:\n          // https://github.com/ReactTraining/react-router/blob/520a0acd48ae1b066eb0b07d6d4d1790a1d02482/packages/react-router-dom/modules/Link.js\n          //\n          // Try to be flexible and intuitive in how we handle links.\n          // Fun fact: links aren't as obvious to get right as you\n          // would expect. There's a lot more valid ways to click a\n          // link than this, and one might want to not simply click a\n          // link, but right click or command-click it to copy the\n          // link target, etc. Nope, this isn't just for blind people.\n          if (\n          // Skip if `onclick` prevented default\n          result !== false && !e.defaultPrevented && (\n          // Ignore everything but left clicks\n          e.button === 0 || e.which === 0 || e.which === 1) && (\n          // Let the browser handle `target=_blank`, etc.\n          !e.currentTarget.target || e.currentTarget.target === \"_self\") &&\n          // No modifier keys\n          !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey) {\n            e.preventDefault();\n            e.redraw = false;\n            route.set(href, null, options);\n          }\n        };\n      }\n      return child;\n    }\n  };\n  route.param = function (key) {\n    return attrs && key != null ? attrs[key] : attrs;\n  };\n  return route;\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/api/router.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/hyperscript.js":
/*!*********************************************!*\
  !*** ./node_modules/mithril/hyperscript.js ***!
  \*********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar hyperscript = __webpack_require__(/*! ./render/hyperscript */ \"./node_modules/mithril/render/hyperscript.js\");\nhyperscript.trust = __webpack_require__(/*! ./render/trust */ \"./node_modules/mithril/render/trust.js\");\nhyperscript.fragment = __webpack_require__(/*! ./render/fragment */ \"./node_modules/mithril/render/fragment.js\");\nmodule.exports = hyperscript;\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/hyperscript.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/index.js":
/*!***************************************!*\
  !*** ./node_modules/mithril/index.js ***!
  \***************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar hyperscript = __webpack_require__(/*! ./hyperscript */ \"./node_modules/mithril/hyperscript.js\");\nvar mountRedraw = __webpack_require__(/*! ./mount-redraw */ \"./node_modules/mithril/mount-redraw.js\");\nvar request = __webpack_require__(/*! ./request */ \"./node_modules/mithril/request.js\");\nvar router = __webpack_require__(/*! ./route */ \"./node_modules/mithril/route.js\");\nvar m = function m() {\n  return hyperscript.apply(this, arguments);\n};\nm.m = hyperscript;\nm.trust = hyperscript.trust;\nm.fragment = hyperscript.fragment;\nm.Fragment = \"[\";\nm.mount = mountRedraw.mount;\nm.route = router;\nm.render = __webpack_require__(/*! ./render */ \"./node_modules/mithril/render.js\");\nm.redraw = mountRedraw.redraw;\nm.request = request.request;\nm.parseQueryString = __webpack_require__(/*! ./querystring/parse */ \"./node_modules/mithril/querystring/parse.js\");\nm.buildQueryString = __webpack_require__(/*! ./querystring/build */ \"./node_modules/mithril/querystring/build.js\");\nm.parsePathname = __webpack_require__(/*! ./pathname/parse */ \"./node_modules/mithril/pathname/parse.js\");\nm.buildPathname = __webpack_require__(/*! ./pathname/build */ \"./node_modules/mithril/pathname/build.js\");\nm.vnode = __webpack_require__(/*! ./render/vnode */ \"./node_modules/mithril/render/vnode.js\");\nm.censor = __webpack_require__(/*! ./util/censor */ \"./node_modules/mithril/util/censor.js\");\nm.domFor = __webpack_require__(/*! ./render/domFor */ \"./node_modules/mithril/render/domFor.js\");\nmodule.exports = m;\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/index.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/mount-redraw.js":
/*!**********************************************!*\
  !*** ./node_modules/mithril/mount-redraw.js ***!
  \**********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar render = __webpack_require__(/*! ./render */ \"./node_modules/mithril/render.js\");\nmodule.exports = __webpack_require__(/*! ./api/mount-redraw */ \"./node_modules/mithril/api/mount-redraw.js\")(render, typeof requestAnimationFrame !== \"undefined\" ? requestAnimationFrame : null, typeof console !== \"undefined\" ? console : null);\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/mount-redraw.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/pathname/build.js":
/*!************************************************!*\
  !*** ./node_modules/mithril/pathname/build.js ***!
  \************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar buildQueryString = __webpack_require__(/*! ../querystring/build */ \"./node_modules/mithril/querystring/build.js\");\n\n// Returns `path` from `template` + `params`\nmodule.exports = function (template, params) {\n  if (/:([^\\/\\.-]+)(\\.{3})?:/.test(template)) {\n    throw new SyntaxError(\"Template parameter names must be separated by either a '/', '-', or '.'.\");\n  }\n  if (params == null) return template;\n  var queryIndex = template.indexOf(\"?\");\n  var hashIndex = template.indexOf(\"#\");\n  var queryEnd = hashIndex < 0 ? template.length : hashIndex;\n  var pathEnd = queryIndex < 0 ? queryEnd : queryIndex;\n  var path = template.slice(0, pathEnd);\n  var query = {};\n  Object.assign(query, params);\n  var resolved = path.replace(/:([^\\/\\.-]+)(\\.{3})?/g, function (m, key, variadic) {\n    delete query[key];\n    // If no such parameter exists, don't interpolate it.\n    if (params[key] == null) return m;\n    // Escape normal parameters, but not variadic ones.\n    return variadic ? params[key] : encodeURIComponent(String(params[key]));\n  });\n\n  // In case the template substitution adds new query/hash parameters.\n  var newQueryIndex = resolved.indexOf(\"?\");\n  var newHashIndex = resolved.indexOf(\"#\");\n  var newQueryEnd = newHashIndex < 0 ? resolved.length : newHashIndex;\n  var newPathEnd = newQueryIndex < 0 ? newQueryEnd : newQueryIndex;\n  var result = resolved.slice(0, newPathEnd);\n  if (queryIndex >= 0) result += template.slice(queryIndex, queryEnd);\n  if (newQueryIndex >= 0) result += (queryIndex < 0 ? \"?\" : \"&\") + resolved.slice(newQueryIndex, newQueryEnd);\n  var querystring = buildQueryString(query);\n  if (querystring) result += (queryIndex < 0 && newQueryIndex < 0 ? \"?\" : \"&\") + querystring;\n  if (hashIndex >= 0) result += template.slice(hashIndex);\n  if (newHashIndex >= 0) result += (hashIndex < 0 ? \"\" : \"&\") + resolved.slice(newHashIndex);\n  return result;\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/pathname/build.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/pathname/compileTemplate.js":
/*!**********************************************************!*\
  !*** ./node_modules/mithril/pathname/compileTemplate.js ***!
  \**********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar parsePathname = __webpack_require__(/*! ./parse */ \"./node_modules/mithril/pathname/parse.js\");\n\n// Compiles a template into a function that takes a resolved path (without query\n// strings) and returns an object containing the template parameters with their\n// parsed values. This expects the input of the compiled template to be the\n// output of `parsePathname`. Note that it does *not* remove query parameters\n// specified in the template.\nmodule.exports = function (template) {\n  var templateData = parsePathname(template);\n  var templateKeys = Object.keys(templateData.params);\n  var keys = [];\n  var regexp = new RegExp(\"^\" + templateData.path.replace(\n  // I escape literal text so people can use things like `:file.:ext` or\n  // `:lang-:locale` in routes. This is all merged into one pass so I\n  // don't also accidentally escape `-` and make it harder to detect it to\n  // ban it from template parameters.\n  /:([^\\/.-]+)(\\.{3}|\\.(?!\\.)|-)?|[\\\\^$*+.()|\\[\\]{}]/g, function (m, key, extra) {\n    if (key == null) return \"\\\\\" + m;\n    keys.push({\n      k: key,\n      r: extra === \"...\"\n    });\n    if (extra === \"...\") return \"(.*)\";\n    if (extra === \".\") return \"([^/]+)\\\\.\";\n    return \"([^/]+)\" + (extra || \"\");\n  }) + \"\\\\/?$\");\n  return function (data) {\n    // First, check the params. Usually, there isn't any, and it's just\n    // checking a static set.\n    for (var i = 0; i < templateKeys.length; i++) {\n      if (templateData.params[templateKeys[i]] !== data.params[templateKeys[i]]) return false;\n    }\n    // If no interpolations exist, let's skip all the ceremony\n    if (!keys.length) return regexp.test(data.path);\n    var values = regexp.exec(data.path);\n    if (values == null) return false;\n    for (var i = 0; i < keys.length; i++) {\n      data.params[keys[i].k] = keys[i].r ? values[i + 1] : decodeURIComponent(values[i + 1]);\n    }\n    return true;\n  };\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/pathname/compileTemplate.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/pathname/parse.js":
/*!************************************************!*\
  !*** ./node_modules/mithril/pathname/parse.js ***!
  \************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar parseQueryString = __webpack_require__(/*! ../querystring/parse */ \"./node_modules/mithril/querystring/parse.js\");\n\n// Returns `{path, params}` from `url`\nmodule.exports = function (url) {\n  var queryIndex = url.indexOf(\"?\");\n  var hashIndex = url.indexOf(\"#\");\n  var queryEnd = hashIndex < 0 ? url.length : hashIndex;\n  var pathEnd = queryIndex < 0 ? queryEnd : queryIndex;\n  var path = url.slice(0, pathEnd).replace(/\\/{2,}/g, \"/\");\n  if (!path) path = \"/\";else {\n    if (path[0] !== \"/\") path = \"/\" + path;\n  }\n  return {\n    path: path,\n    params: queryIndex < 0 ? {} : parseQueryString(url.slice(queryIndex + 1, queryEnd))\n  };\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/pathname/parse.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/querystring/build.js":
/*!***************************************************!*\
  !*** ./node_modules/mithril/querystring/build.js ***!
  \***************************************************/
/***/ (function(module) {

"use strict";
eval("{\n\nmodule.exports = function (object) {\n  if (Object.prototype.toString.call(object) !== \"[object Object]\") return \"\";\n  var args = [];\n  for (var key in object) {\n    destructure(key, object[key]);\n  }\n  return args.join(\"&\");\n  function destructure(key, value) {\n    if (Array.isArray(value)) {\n      for (var i = 0; i < value.length; i++) {\n        destructure(key + \"[\" + i + \"]\", value[i]);\n      }\n    } else if (Object.prototype.toString.call(value) === \"[object Object]\") {\n      for (var i in value) {\n        destructure(key + \"[\" + i + \"]\", value[i]);\n      }\n    } else args.push(encodeURIComponent(key) + (value != null && value !== \"\" ? \"=\" + encodeURIComponent(value) : \"\"));\n  }\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/querystring/build.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/querystring/parse.js":
/*!***************************************************!*\
  !*** ./node_modules/mithril/querystring/parse.js ***!
  \***************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar decodeURIComponentSafe = __webpack_require__(/*! ../util/decodeURIComponentSafe */ \"./node_modules/mithril/util/decodeURIComponentSafe.js\");\nmodule.exports = function (string) {\n  if (string === \"\" || string == null) return {};\n  if (string.charAt(0) === \"?\") string = string.slice(1);\n  var entries = string.split(\"&\"),\n    counters = {},\n    data = {};\n  for (var i = 0; i < entries.length; i++) {\n    var entry = entries[i].split(\"=\");\n    var key = decodeURIComponentSafe(entry[0]);\n    var value = entry.length === 2 ? decodeURIComponentSafe(entry[1]) : \"\";\n    if (value === \"true\") value = true;else if (value === \"false\") value = false;\n    var levels = key.split(/\\]\\[?|\\[/);\n    var cursor = data;\n    if (key.indexOf(\"[\") > -1) levels.pop();\n    for (var j = 0; j < levels.length; j++) {\n      var level = levels[j],\n        nextLevel = levels[j + 1];\n      var isNumber = nextLevel == \"\" || !isNaN(parseInt(nextLevel, 10));\n      if (level === \"\") {\n        var key = levels.slice(0, j).join();\n        if (counters[key] == null) {\n          counters[key] = Array.isArray(cursor) ? cursor.length : 0;\n        }\n        level = counters[key]++;\n      }\n      // Disallow direct prototype pollution\n      else if (level === \"__proto__\") break;\n      if (j === levels.length - 1) cursor[level] = value;else {\n        // Read own properties exclusively to disallow indirect\n        // prototype pollution\n        var desc = Object.getOwnPropertyDescriptor(cursor, level);\n        if (desc != null) desc = desc.value;\n        if (desc == null) cursor[level] = desc = isNumber ? [] : {};\n        cursor = desc;\n      }\n    }\n  }\n  return data;\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/querystring/parse.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render.js":
/*!****************************************!*\
  !*** ./node_modules/mithril/render.js ***!
  \****************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nmodule.exports = __webpack_require__(/*! ./render/render */ \"./node_modules/mithril/render/render.js\")();\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/cachedAttrsIsStaticMap.js":
/*!***************************************************************!*\
  !*** ./node_modules/mithril/render/cachedAttrsIsStaticMap.js ***!
  \***************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar emptyAttrs = __webpack_require__(/*! ./emptyAttrs */ \"./node_modules/mithril/render/emptyAttrs.js\");\n\n// This Map manages the following:\n// - Whether an attrs is cached attrs generated by compileSelector().\n// - Whether the cached attrs is \"static\", i.e., does not contain any form attributes.\n// These information will be useful to skip updating attrs in render().\n//\n// Since the attrs used as keys in this map are not released from the selectorCache object,\n// there is no risk of memory leaks. Therefore, Map is used here instead of WeakMap.\nmodule.exports = new Map([[emptyAttrs, true]]);\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/cachedAttrsIsStaticMap.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/delayedRemoval.js":
/*!*******************************************************!*\
  !*** ./node_modules/mithril/render/delayedRemoval.js ***!
  \*******************************************************/
/***/ (function(module) {

"use strict";
eval("{\n\nmodule.exports = new WeakMap();\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/delayedRemoval.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/domFor.js":
/*!***********************************************!*\
  !*** ./node_modules/mithril/render/domFor.js ***!
  \***********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nfunction _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\nfunction _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\nvar _marked = /*#__PURE__*/_regenerator().m(domFor);\nvar delayedRemoval = __webpack_require__(/*! ./delayedRemoval */ \"./node_modules/mithril/render/delayedRemoval.js\");\nfunction domFor(vnode) {\n  var dom, domSize, generation, nextSibling;\n  return _regenerator().w(function (_context) {\n    while (1) switch (_context.n) {\n      case 0:\n        // To avoid unintended mangling of the internal bundler,\n        // parameter destructuring is not used here.\n        dom = vnode.dom;\n        domSize = vnode.domSize;\n        generation = delayedRemoval.get(dom);\n        if (!(dom != null)) {\n          _context.n = 5;\n          break;\n        }\n      case 1:\n        nextSibling = dom.nextSibling;\n        if (!(delayedRemoval.get(dom) === generation)) {\n          _context.n = 3;\n          break;\n        }\n        _context.n = 2;\n        return dom;\n      case 2:\n        domSize--;\n      case 3:\n        dom = nextSibling;\n      case 4:\n        if (domSize) {\n          _context.n = 1;\n          break;\n        }\n      case 5:\n        return _context.a(2);\n    }\n  }, _marked);\n}\nmodule.exports = domFor;\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/domFor.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/emptyAttrs.js":
/*!***************************************************!*\
  !*** ./node_modules/mithril/render/emptyAttrs.js ***!
  \***************************************************/
/***/ (function(module) {

"use strict";
eval("{\n\n// This is an attrs object that is used by default when attrs is undefined or null.\nmodule.exports = {};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/emptyAttrs.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/fragment.js":
/*!*************************************************!*\
  !*** ./node_modules/mithril/render/fragment.js ***!
  \*************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar Vnode = __webpack_require__(/*! ../render/vnode */ \"./node_modules/mithril/render/vnode.js\");\nvar hyperscriptVnode = __webpack_require__(/*! ./hyperscriptVnode */ \"./node_modules/mithril/render/hyperscriptVnode.js\");\nmodule.exports = function (attrs) {\n  for (var _len = arguments.length, children = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    children[_key - 1] = arguments[_key];\n  }\n  var vnode = hyperscriptVnode(attrs, children);\n  if (vnode.attrs == null) vnode.attrs = {};\n  vnode.tag = \"[\";\n  vnode.children = Vnode.normalizeChildren(vnode.children);\n  return vnode;\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/fragment.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/hyperscript.js":
/*!****************************************************!*\
  !*** ./node_modules/mithril/render/hyperscript.js ***!
  \****************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar Vnode = __webpack_require__(/*! ../render/vnode */ \"./node_modules/mithril/render/vnode.js\");\nvar hyperscriptVnode = __webpack_require__(/*! ./hyperscriptVnode */ \"./node_modules/mithril/render/hyperscriptVnode.js\");\nvar hasOwn = __webpack_require__(/*! ../util/hasOwn */ \"./node_modules/mithril/util/hasOwn.js\");\nvar emptyAttrs = __webpack_require__(/*! ./emptyAttrs */ \"./node_modules/mithril/render/emptyAttrs.js\");\nvar cachedAttrsIsStaticMap = __webpack_require__(/*! ./cachedAttrsIsStaticMap */ \"./node_modules/mithril/render/cachedAttrsIsStaticMap.js\");\nvar selectorParser = /(?:(^|#|\\.)([^#\\.\\[\\]]+))|(\\[(.+?)(?:\\s*=\\s*(\"|'|)((?:\\\\[\"'\\]]|.)*?)\\5)?\\])/g;\nvar selectorCache = Object.create(null);\nfunction isEmpty(object) {\n  for (var key in object) if (hasOwn.call(object, key)) return false;\n  return true;\n}\nfunction isFormAttributeKey(key) {\n  return key === \"value\" || key === \"checked\" || key === \"selectedIndex\" || key === \"selected\";\n}\nfunction compileSelector(selector) {\n  var match,\n    tag = \"div\",\n    classes = [],\n    attrs = {},\n    isStatic = true;\n  while (match = selectorParser.exec(selector)) {\n    var type = match[1],\n      value = match[2];\n    if (type === \"\" && value !== \"\") tag = value;else if (type === \"#\") attrs.id = value;else if (type === \".\") classes.push(value);else if (match[3][0] === \"[\") {\n      var attrValue = match[6];\n      if (attrValue) attrValue = attrValue.replace(/\\\\([\"'])/g, \"$1\").replace(/\\\\\\\\/g, \"\\\\\");\n      if (match[4] === \"class\") classes.push(attrValue);else {\n        attrs[match[4]] = attrValue === \"\" ? attrValue : attrValue || true;\n        if (isFormAttributeKey(match[4])) isStatic = false;\n      }\n    }\n  }\n  if (classes.length > 0) attrs.className = classes.join(\" \");\n  if (isEmpty(attrs)) attrs = emptyAttrs;else cachedAttrsIsStaticMap.set(attrs, isStatic);\n  return selectorCache[selector] = {\n    tag: tag,\n    attrs: attrs,\n    is: attrs.is\n  };\n}\nfunction execSelector(state, vnode) {\n  vnode.tag = state.tag;\n  var attrs = vnode.attrs;\n  if (attrs == null) {\n    vnode.attrs = state.attrs;\n    vnode.is = state.is;\n    return vnode;\n  }\n  if (hasOwn.call(attrs, \"class\")) {\n    if (attrs.class != null) attrs.className = attrs.class;\n    attrs.class = null;\n  }\n  if (state.attrs !== emptyAttrs) {\n    var className = attrs.className;\n    attrs = Object.assign({}, state.attrs, attrs);\n    if (state.attrs.className != null) attrs.className = className != null ? String(state.attrs.className) + \" \" + String(className) : state.attrs.className;\n  }\n\n  // workaround for #2622 (reorder keys in attrs to set \"type\" first)\n  // The DOM does things to inputs based on the \"type\", so it needs set first.\n  // See: https://github.com/MithrilJS/mithril.js/issues/2622\n  if (state.tag === \"input\" && hasOwn.call(attrs, \"type\")) {\n    attrs = Object.assign({\n      type: attrs.type\n    }, attrs);\n  }\n\n  // This reduces the complexity of the evaluation of \"is\" within the render function.\n  vnode.is = attrs.is;\n  vnode.attrs = attrs;\n  return vnode;\n}\nfunction hyperscript(selector, attrs) {\n  if (selector == null || typeof selector !== \"string\" && typeof selector !== \"function\" && typeof selector.view !== \"function\") {\n    throw Error(\"The selector must be either a string or a component.\");\n  }\n  for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n    children[_key - 2] = arguments[_key];\n  }\n  var vnode = hyperscriptVnode(attrs, children);\n  if (typeof selector === \"string\") {\n    vnode.children = Vnode.normalizeChildren(vnode.children);\n    if (selector !== \"[\") return execSelector(selectorCache[selector] || compileSelector(selector), vnode);\n  }\n  if (vnode.attrs == null) vnode.attrs = {};\n  vnode.tag = selector;\n  return vnode;\n}\nmodule.exports = hyperscript;\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/hyperscript.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/hyperscriptVnode.js":
/*!*********************************************************!*\
  !*** ./node_modules/mithril/render/hyperscriptVnode.js ***!
  \*********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _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 _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nvar Vnode = __webpack_require__(/*! ../render/vnode */ \"./node_modules/mithril/render/vnode.js\");\n\n// Note: the processing of variadic parameters is perf-sensitive.\n//\n// In native ES6, it might be preferable to define hyperscript and fragment\n// factories with a final ...args parameter and call hyperscriptVnode(...args),\n// since modern engines can optimize spread calls.\n//\n// However, benchmarks showed this was not faster. As a result, spread is used\n// only in the parameter lists of hyperscript and fragment, while an array is\n// passed to hyperscriptVnode.\nmodule.exports = function (attrs, children) {\n  if (attrs == null || _typeof(attrs) === \"object\" && attrs.tag == null && !Array.isArray(attrs)) {\n    if (children.length === 1 && Array.isArray(children[0])) children = children[0];\n  } else {\n    children = children.length === 0 && Array.isArray(attrs) ? attrs : [attrs].concat(_toConsumableArray(children));\n    attrs = undefined;\n  }\n  return Vnode(\"\", attrs && attrs.key, attrs, children);\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/hyperscriptVnode.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/render.js":
/*!***********************************************!*\
  !*** ./node_modules/mithril/render/render.js ***!
  \***********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar Vnode = __webpack_require__(/*! ./vnode */ \"./node_modules/mithril/render/vnode.js\");\nvar delayedRemoval = __webpack_require__(/*! ./delayedRemoval */ \"./node_modules/mithril/render/delayedRemoval.js\");\nvar domFor = __webpack_require__(/*! ./domFor */ \"./node_modules/mithril/render/domFor.js\");\nvar cachedAttrsIsStaticMap = __webpack_require__(/*! ./cachedAttrsIsStaticMap */ \"./node_modules/mithril/render/cachedAttrsIsStaticMap.js\");\nmodule.exports = function () {\n  var nameSpace = {\n    svg: \"http://www.w3.org/2000/svg\",\n    math: \"http://www.w3.org/1998/Math/MathML\"\n  };\n  var currentRedraw;\n  var currentRender;\n  function getDocument(dom) {\n    return dom.ownerDocument;\n  }\n  function getNameSpace(vnode) {\n    return vnode.attrs && vnode.attrs.xmlns || nameSpace[vnode.tag];\n  }\n\n  //sanity check to discourage people from doing `vnode.state = ...`\n  function checkState(vnode, original) {\n    if (vnode.state !== original) throw new Error(\"'vnode.state' must not be modified.\");\n  }\n\n  //Note: the hook is passed as the `this` argument to allow proxying the\n  //arguments without requiring a full array allocation to do so. It also\n  //takes advantage of the fact the current `vnode` is the first argument in\n  //all lifecycle methods.\n  function callHook(vnode) {\n    var original = vnode.state;\n    try {\n      return this.apply(original, arguments);\n    } finally {\n      checkState(vnode, original);\n    }\n  }\n\n  // IE11 (at least) throws an UnspecifiedError when accessing document.activeElement when\n  // inside an iframe. Catch and swallow this error, and heavy-handidly return null.\n  function activeElement(dom) {\n    try {\n      return getDocument(dom).activeElement;\n    } catch (e) {\n      return null;\n    }\n  }\n  //create\n  function createNodes(parent, vnodes, start, end, hooks, nextSibling, ns) {\n    for (var i = start; i < end; i++) {\n      var vnode = vnodes[i];\n      if (vnode != null) {\n        createNode(parent, vnode, hooks, ns, nextSibling);\n      }\n    }\n  }\n  function createNode(parent, vnode, hooks, ns, nextSibling) {\n    var tag = vnode.tag;\n    if (typeof tag === \"string\") {\n      vnode.state = {};\n      if (vnode.attrs != null) initLifecycle(vnode.attrs, vnode, hooks);\n      switch (tag) {\n        case \"#\":\n          createText(parent, vnode, nextSibling);\n          break;\n        case \"<\":\n          createHTML(parent, vnode, ns, nextSibling);\n          break;\n        case \"[\":\n          createFragment(parent, vnode, hooks, ns, nextSibling);\n          break;\n        default:\n          createElement(parent, vnode, hooks, ns, nextSibling);\n      }\n    } else createComponent(parent, vnode, hooks, ns, nextSibling);\n  }\n  function createText(parent, vnode, nextSibling) {\n    vnode.dom = getDocument(parent).createTextNode(vnode.children);\n    insertDOM(parent, vnode.dom, nextSibling);\n  }\n  var possibleParents = {\n    caption: \"table\",\n    thead: \"table\",\n    tbody: \"table\",\n    tfoot: \"table\",\n    tr: \"tbody\",\n    th: \"tr\",\n    td: \"tr\",\n    colgroup: \"table\",\n    col: \"colgroup\"\n  };\n  function createHTML(parent, vnode, ns, nextSibling) {\n    var match = vnode.children.match(/^\\s*?<(\\w+)/im) || [];\n    // not using the proper parent makes the child element(s) vanish.\n    //     var div = document.createElement(\"div\")\n    //     div.innerHTML = \"<td>i</td><td>j</td>\"\n    //     console.log(div.innerHTML)\n    // --> \"ij\", no <td> in sight.\n    var temp = getDocument(parent).createElement(possibleParents[match[1]] || \"div\");\n    if (ns === \"http://www.w3.org/2000/svg\") {\n      temp.innerHTML = \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\">\" + vnode.children + \"</svg>\";\n      temp = temp.firstChild;\n    } else {\n      temp.innerHTML = vnode.children;\n    }\n    vnode.dom = temp.firstChild;\n    vnode.domSize = temp.childNodes.length;\n    var fragment = getDocument(parent).createDocumentFragment();\n    var child;\n    while (child = temp.firstChild) {\n      fragment.appendChild(child);\n    }\n    insertDOM(parent, fragment, nextSibling);\n  }\n  function createFragment(parent, vnode, hooks, ns, nextSibling) {\n    var fragment = getDocument(parent).createDocumentFragment();\n    if (vnode.children != null) {\n      var children = vnode.children;\n      createNodes(fragment, children, 0, children.length, hooks, null, ns);\n    }\n    vnode.dom = fragment.firstChild;\n    vnode.domSize = fragment.childNodes.length;\n    insertDOM(parent, fragment, nextSibling);\n  }\n  function createElement(parent, vnode, hooks, ns, nextSibling) {\n    var tag = vnode.tag;\n    var attrs = vnode.attrs;\n    var is = vnode.is;\n    ns = getNameSpace(vnode) || ns;\n    var element = ns ? is ? getDocument(parent).createElementNS(ns, tag, {\n      is: is\n    }) : getDocument(parent).createElementNS(ns, tag) : is ? getDocument(parent).createElement(tag, {\n      is: is\n    }) : getDocument(parent).createElement(tag);\n    vnode.dom = element;\n    if (attrs != null) {\n      setAttrs(vnode, attrs, ns);\n    }\n    insertDOM(parent, element, nextSibling);\n    if (!maybeSetContentEditable(vnode)) {\n      if (vnode.children != null) {\n        var children = vnode.children;\n        createNodes(element, children, 0, children.length, hooks, null, ns);\n        if (vnode.tag === \"select\" && attrs != null) setLateSelectAttrs(vnode, attrs);\n      }\n    }\n  }\n  function initComponent(vnode, hooks) {\n    var sentinel;\n    if (typeof vnode.tag.view === \"function\") {\n      vnode.state = Object.create(vnode.tag);\n      sentinel = vnode.state.view;\n      if (sentinel.$$reentrantLock$$ != null) return;\n      sentinel.$$reentrantLock$$ = true;\n    } else {\n      vnode.state = void 0;\n      sentinel = vnode.tag;\n      if (sentinel.$$reentrantLock$$ != null) return;\n      sentinel.$$reentrantLock$$ = true;\n      vnode.state = vnode.tag.prototype != null && typeof vnode.tag.prototype.view === \"function\" ? new vnode.tag(vnode) : vnode.tag(vnode);\n    }\n    initLifecycle(vnode.state, vnode, hooks);\n    if (vnode.attrs != null) initLifecycle(vnode.attrs, vnode, hooks);\n    vnode.instance = Vnode.normalize(callHook.call(vnode.state.view, vnode));\n    if (vnode.instance === vnode) throw Error(\"A view cannot return the vnode it received as argument\");\n    sentinel.$$reentrantLock$$ = null;\n  }\n  function createComponent(parent, vnode, hooks, ns, nextSibling) {\n    initComponent(vnode, hooks);\n    if (vnode.instance != null) {\n      createNode(parent, vnode.instance, hooks, ns, nextSibling);\n      vnode.dom = vnode.instance.dom;\n      vnode.domSize = vnode.instance.domSize;\n    } else {\n      vnode.domSize = 0;\n    }\n  }\n\n  //update\n  /**\n   * @param {Element|Fragment} parent - the parent element\n   * @param {Vnode[] | null} old - the list of vnodes of the last `render()` call for\n   *                               this part of the tree\n   * @param {Vnode[] | null} vnodes - as above, but for the current `render()` call.\n   * @param {Function[]} hooks - an accumulator of post-render hooks (oncreate/onupdate)\n   * @param {Element | null} nextSibling - the next DOM node if we're dealing with a\n   *                                       fragment that is not the last item in its\n   *                                       parent\n   * @param {'svg' | 'math' | String | null} ns) - the current XML namespace, if any\n   * @returns void\n   */\n  // This function diffs and patches lists of vnodes, both keyed and unkeyed.\n  //\n  // We will:\n  //\n  // 1. describe its general structure\n  // 2. focus on the diff algorithm optimizations\n  // 3. discuss DOM node operations.\n\n  // ## Overview:\n  //\n  // The updateNodes() function:\n  // - deals with trivial cases\n  // - determines whether the lists are keyed or unkeyed based on the first non-null node\n  //   of each list.\n  // - diffs them and patches the DOM if needed (that's the brunt of the code)\n  // - manages the leftovers: after diffing, are there:\n  //   - old nodes left to remove?\n  // \t - new nodes to insert?\n  // \t deal with them!\n  //\n  // The lists are only iterated over once, with an exception for the nodes in `old` that\n  // are visited in the fourth part of the diff and in the `removeNodes` loop.\n\n  // ## Diffing\n  //\n  // Reading https://github.com/localvoid/ivi/blob/ddc09d06abaef45248e6133f7040d00d3c6be853/packages/ivi/src/vdom/implementation.ts#L617-L837\n  // may be good for context on longest increasing subsequence-based logic for moving nodes.\n  //\n  // In order to diff keyed lists, one has to\n  //\n  // 1) match nodes in both lists, per key, and update them accordingly\n  // 2) create the nodes present in the new list, but absent in the old one\n  // 3) remove the nodes present in the old list, but absent in the new one\n  // 4) figure out what nodes in 1) to move in order to minimize the DOM operations.\n  //\n  // To achieve 1) one can create a dictionary of keys => index (for the old list), then iterate\n  // over the new list and for each new vnode, find the corresponding vnode in the old list using\n  // the map.\n  // 2) is achieved in the same step: if a new node has no corresponding entry in the map, it is new\n  // and must be created.\n  // For the removals, we actually remove the nodes that have been updated from the old list.\n  // The nodes that remain in that list after 1) and 2) have been performed can be safely removed.\n  // The fourth step is a bit more complex and relies on the longest increasing subsequence (LIS)\n  // algorithm.\n  //\n  // the longest increasing subsequence is the list of nodes that can remain in place. Imagine going\n  // from `1,2,3,4,5` to `4,5,1,2,3` where the numbers are not necessarily the keys, but the indices\n  // corresponding to the keyed nodes in the old list (keyed nodes `e,d,c,b,a` => `b,a,e,d,c` would\n  //  match the above lists, for example).\n  //\n  // In there are two increasing subsequences: `4,5` and `1,2,3`, the latter being the longest. We\n  // can update those nodes without moving them, and only call `insertNode` on `4` and `5`.\n  //\n  // @localvoid adapted the algo to also support node deletions and insertions (the `lis` is actually\n  // the longest increasing subsequence *of old nodes still present in the new list*).\n  //\n  // It is a general algorithm that is fireproof in all circumstances, but it requires the allocation\n  // and the construction of a `key => oldIndex` map, and three arrays (one with `newIndex => oldIndex`,\n  // the `LIS` and a temporary one to create the LIS).\n  //\n  // So we cheat where we can: if the tails of the lists are identical, they are guaranteed to be part of\n  // the LIS and can be updated without moving them.\n  //\n  // If two nodes are swapped, they are guaranteed not to be part of the LIS, and must be moved (with\n  // the exception of the last node if the list is fully reversed).\n  //\n  // ## Finding the next sibling.\n  //\n  // `updateNode()` and `createNode()` expect a nextSibling parameter to perform DOM operations.\n  // When the list is being traversed top-down, at any index, the DOM nodes up to the previous\n  // vnode reflect the content of the new list, whereas the rest of the DOM nodes reflect the old\n  // list. The next sibling must be looked for in the old list using `getNextSibling(... oldStart + 1 ...)`.\n  //\n  // In the other scenarios (swaps, upwards traversal, map-based diff),\n  // the new vnodes list is traversed upwards. The DOM nodes at the bottom of the list reflect the\n  // bottom part of the new vnodes list, and we can use the `v.dom`  value of the previous node\n  // as the next sibling (cached in the `nextSibling` variable).\n\n  // ## DOM node moves\n  //\n  // In most scenarios `updateNode()` and `createNode()` perform the DOM operations. However,\n  // this is not the case if the node moved (second and fourth part of the diff algo). We move\n  // the old DOM nodes before updateNode runs because it enables us to use the cached `nextSibling`\n  // variable rather than fetching it using `getNextSibling()`.\n\n  function updateNodes(parent, old, vnodes, hooks, nextSibling, ns) {\n    if (old === vnodes || old == null && vnodes == null) return;else if (old == null || old.length === 0) createNodes(parent, vnodes, 0, vnodes.length, hooks, nextSibling, ns);else if (vnodes == null || vnodes.length === 0) removeNodes(parent, old, 0, old.length);else {\n      var isOldKeyed = old[0] != null && old[0].key != null;\n      var isKeyed = vnodes[0] != null && vnodes[0].key != null;\n      var start = 0,\n        oldStart = 0;\n      if (!isOldKeyed) while (oldStart < old.length && old[oldStart] == null) oldStart++;\n      if (!isKeyed) while (start < vnodes.length && vnodes[start] == null) start++;\n      if (isOldKeyed !== isKeyed) {\n        removeNodes(parent, old, oldStart, old.length);\n        createNodes(parent, vnodes, start, vnodes.length, hooks, nextSibling, ns);\n      } else if (!isKeyed) {\n        // Don't index past the end of either list (causes deopts).\n        var commonLength = old.length < vnodes.length ? old.length : vnodes.length;\n        // Rewind if necessary to the first non-null index on either side.\n        // We could alternatively either explicitly create or remove nodes when `start !== oldStart`\n        // but that would be optimizing for sparse lists which are more rare than dense ones.\n        start = start < oldStart ? start : oldStart;\n        for (; start < commonLength; start++) {\n          o = old[start];\n          v = vnodes[start];\n          if (o === v || o == null && v == null) continue;else if (o == null) createNode(parent, v, hooks, ns, getNextSibling(old, start + 1, nextSibling));else if (v == null) removeNode(parent, o);else updateNode(parent, o, v, hooks, getNextSibling(old, start + 1, nextSibling), ns);\n        }\n        if (old.length > commonLength) removeNodes(parent, old, start, old.length);\n        if (vnodes.length > commonLength) createNodes(parent, vnodes, start, vnodes.length, hooks, nextSibling, ns);\n      } else {\n        // keyed diff\n        var oldEnd = old.length - 1,\n          end = vnodes.length - 1,\n          map,\n          o,\n          v,\n          oe,\n          ve,\n          topSibling;\n\n        // bottom-up\n        while (oldEnd >= oldStart && end >= start) {\n          oe = old[oldEnd];\n          ve = vnodes[end];\n          if (oe.key !== ve.key) break;\n          if (oe !== ve) updateNode(parent, oe, ve, hooks, nextSibling, ns);\n          if (ve.dom != null) nextSibling = ve.dom;\n          oldEnd--, end--;\n        }\n        // top-down\n        while (oldEnd >= oldStart && end >= start) {\n          o = old[oldStart];\n          v = vnodes[start];\n          if (o.key !== v.key) break;\n          oldStart++, start++;\n          if (o !== v) updateNode(parent, o, v, hooks, getNextSibling(old, oldStart, nextSibling), ns);\n        }\n        // swaps and list reversals\n        while (oldEnd >= oldStart && end >= start) {\n          if (start === end) break;\n          if (o.key !== ve.key || oe.key !== v.key) break;\n          topSibling = getNextSibling(old, oldStart, nextSibling);\n          moveDOM(parent, oe, topSibling);\n          if (oe !== v) updateNode(parent, oe, v, hooks, topSibling, ns);\n          if (++start <= --end) moveDOM(parent, o, nextSibling);\n          if (o !== ve) updateNode(parent, o, ve, hooks, nextSibling, ns);\n          if (ve.dom != null) nextSibling = ve.dom;\n          oldStart++;\n          oldEnd--;\n          oe = old[oldEnd];\n          ve = vnodes[end];\n          o = old[oldStart];\n          v = vnodes[start];\n        }\n        // bottom up once again\n        while (oldEnd >= oldStart && end >= start) {\n          if (oe.key !== ve.key) break;\n          if (oe !== ve) updateNode(parent, oe, ve, hooks, nextSibling, ns);\n          if (ve.dom != null) nextSibling = ve.dom;\n          oldEnd--, end--;\n          oe = old[oldEnd];\n          ve = vnodes[end];\n        }\n        if (start > end) removeNodes(parent, old, oldStart, oldEnd + 1);else if (oldStart > oldEnd) createNodes(parent, vnodes, start, end + 1, hooks, nextSibling, ns);else {\n          // inspired by ivi https://github.com/ivijs/ivi/ by Boris Kaul\n          var originalNextSibling = nextSibling,\n            vnodesLength = end - start + 1,\n            oldIndices = new Array(vnodesLength),\n            li = 0,\n            i = 0,\n            pos = 2147483647,\n            matched = 0,\n            map,\n            lisIndices;\n          for (i = 0; i < vnodesLength; i++) oldIndices[i] = -1;\n          for (i = end; i >= start; i--) {\n            if (map == null) map = getKeyMap(old, oldStart, oldEnd + 1);\n            ve = vnodes[i];\n            var oldIndex = map[ve.key];\n            if (oldIndex != null) {\n              pos = oldIndex < pos ? oldIndex : -1; // becomes -1 if nodes were re-ordered\n              oldIndices[i - start] = oldIndex;\n              oe = old[oldIndex];\n              old[oldIndex] = null;\n              if (oe !== ve) updateNode(parent, oe, ve, hooks, nextSibling, ns);\n              if (ve.dom != null) nextSibling = ve.dom;\n              matched++;\n            }\n          }\n          nextSibling = originalNextSibling;\n          if (matched !== oldEnd - oldStart + 1) removeNodes(parent, old, oldStart, oldEnd + 1);\n          if (matched === 0) createNodes(parent, vnodes, start, end + 1, hooks, nextSibling, ns);else {\n            if (pos === -1) {\n              // the indices of the indices of the items that are part of the\n              // longest increasing subsequence in the oldIndices list\n              lisIndices = makeLisIndices(oldIndices);\n              li = lisIndices.length - 1;\n              for (i = end; i >= start; i--) {\n                v = vnodes[i];\n                if (oldIndices[i - start] === -1) createNode(parent, v, hooks, ns, nextSibling);else {\n                  if (lisIndices[li] === i - start) li--;else moveDOM(parent, v, nextSibling);\n                }\n                if (v.dom != null) nextSibling = vnodes[i].dom;\n              }\n            } else {\n              for (i = end; i >= start; i--) {\n                v = vnodes[i];\n                if (oldIndices[i - start] === -1) createNode(parent, v, hooks, ns, nextSibling);\n                if (v.dom != null) nextSibling = vnodes[i].dom;\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  function updateNode(parent, old, vnode, hooks, nextSibling, ns) {\n    var oldTag = old.tag,\n      tag = vnode.tag;\n    if (oldTag === tag && old.is === vnode.is) {\n      vnode.state = old.state;\n      vnode.events = old.events;\n      if (shouldNotUpdate(vnode, old)) return;\n      if (typeof oldTag === \"string\") {\n        if (vnode.attrs != null) {\n          updateLifecycle(vnode.attrs, vnode, hooks);\n        }\n        switch (oldTag) {\n          case \"#\":\n            updateText(old, vnode);\n            break;\n          case \"<\":\n            updateHTML(parent, old, vnode, ns, nextSibling);\n            break;\n          case \"[\":\n            updateFragment(parent, old, vnode, hooks, nextSibling, ns);\n            break;\n          default:\n            updateElement(old, vnode, hooks, ns);\n        }\n      } else updateComponent(parent, old, vnode, hooks, nextSibling, ns);\n    } else {\n      removeNode(parent, old);\n      createNode(parent, vnode, hooks, ns, nextSibling);\n    }\n  }\n  function updateText(old, vnode) {\n    if (old.children.toString() !== vnode.children.toString()) {\n      old.dom.nodeValue = vnode.children;\n    }\n    vnode.dom = old.dom;\n  }\n  function updateHTML(parent, old, vnode, ns, nextSibling) {\n    if (old.children !== vnode.children) {\n      removeDOM(parent, old);\n      createHTML(parent, vnode, ns, nextSibling);\n    } else {\n      vnode.dom = old.dom;\n      vnode.domSize = old.domSize;\n    }\n  }\n  function updateFragment(parent, old, vnode, hooks, nextSibling, ns) {\n    updateNodes(parent, old.children, vnode.children, hooks, nextSibling, ns);\n    var domSize = 0,\n      children = vnode.children;\n    vnode.dom = null;\n    if (children != null) {\n      for (var i = 0; i < children.length; i++) {\n        var child = children[i];\n        if (child != null && child.dom != null) {\n          if (vnode.dom == null) vnode.dom = child.dom;\n          domSize += child.domSize || 1;\n        }\n      }\n    }\n    vnode.domSize = domSize;\n  }\n  function updateElement(old, vnode, hooks, ns) {\n    var element = vnode.dom = old.dom;\n    ns = getNameSpace(vnode) || ns;\n    if (old.attrs != vnode.attrs || vnode.attrs != null && !cachedAttrsIsStaticMap.get(vnode.attrs)) {\n      updateAttrs(vnode, old.attrs, vnode.attrs, ns);\n    }\n    if (!maybeSetContentEditable(vnode)) {\n      updateNodes(element, old.children, vnode.children, hooks, null, ns);\n    }\n  }\n  function updateComponent(parent, old, vnode, hooks, nextSibling, ns) {\n    vnode.instance = Vnode.normalize(callHook.call(vnode.state.view, vnode));\n    if (vnode.instance === vnode) throw Error(\"A view cannot return the vnode it received as argument\");\n    updateLifecycle(vnode.state, vnode, hooks);\n    if (vnode.attrs != null) updateLifecycle(vnode.attrs, vnode, hooks);\n    if (vnode.instance != null) {\n      if (old.instance == null) createNode(parent, vnode.instance, hooks, ns, nextSibling);else updateNode(parent, old.instance, vnode.instance, hooks, nextSibling, ns);\n      vnode.dom = vnode.instance.dom;\n      vnode.domSize = vnode.instance.domSize;\n    } else {\n      if (old.instance != null) removeNode(parent, old.instance);\n      vnode.domSize = 0;\n    }\n  }\n  function getKeyMap(vnodes, start, end) {\n    var map = Object.create(null);\n    for (; start < end; start++) {\n      var vnode = vnodes[start];\n      if (vnode != null) {\n        var key = vnode.key;\n        if (key != null) map[key] = start;\n      }\n    }\n    return map;\n  }\n  // Lifted from ivi https://github.com/ivijs/ivi/\n  // takes a list of unique numbers (-1 is special and can\n  // occur multiple times) and returns an array with the indices\n  // of the items that are part of the longest increasing\n  // subsequence\n  var lisTemp = [];\n  function makeLisIndices(a) {\n    var result = [0];\n    var u = 0,\n      v = 0,\n      i = 0;\n    var il = lisTemp.length = a.length;\n    for (var i = 0; i < il; i++) lisTemp[i] = a[i];\n    for (var i = 0; i < il; ++i) {\n      if (a[i] === -1) continue;\n      var j = result[result.length - 1];\n      if (a[j] < a[i]) {\n        lisTemp[i] = j;\n        result.push(i);\n        continue;\n      }\n      u = 0;\n      v = result.length - 1;\n      while (u < v) {\n        // Fast integer average without overflow.\n        // eslint-disable-next-line no-bitwise\n        var c = (u >>> 1) + (v >>> 1) + (u & v & 1);\n        if (a[result[c]] < a[i]) {\n          u = c + 1;\n        } else {\n          v = c;\n        }\n      }\n      if (a[i] < a[result[u]]) {\n        if (u > 0) lisTemp[i] = result[u - 1];\n        result[u] = i;\n      }\n    }\n    u = result.length;\n    v = result[u - 1];\n    while (u-- > 0) {\n      result[u] = v;\n      v = lisTemp[v];\n    }\n    lisTemp.length = 0;\n    return result;\n  }\n  function getNextSibling(vnodes, i, nextSibling) {\n    for (; i < vnodes.length; i++) {\n      if (vnodes[i] != null && vnodes[i].dom != null) return vnodes[i].dom;\n    }\n    return nextSibling;\n  }\n\n  // This handles fragments with zombie children (removed from vdom, but persisted in DOM through onbeforeremove)\n  function moveDOM(parent, vnode, nextSibling) {\n    if (vnode.dom != null) {\n      var target;\n      if (vnode.domSize == null || vnode.domSize === 1) {\n        // don't allocate for the common case\n        target = vnode.dom;\n      } else {\n        target = getDocument(parent).createDocumentFragment();\n        var _iterator = _createForOfIteratorHelper(domFor(vnode)),\n          _step;\n        try {\n          for (_iterator.s(); !(_step = _iterator.n()).done;) {\n            var dom = _step.value;\n            target.appendChild(dom);\n          }\n        } catch (err) {\n          _iterator.e(err);\n        } finally {\n          _iterator.f();\n        }\n      }\n      insertDOM(parent, target, nextSibling);\n    }\n  }\n  function insertDOM(parent, dom, nextSibling) {\n    if (nextSibling != null) parent.insertBefore(dom, nextSibling);else parent.appendChild(dom);\n  }\n  function maybeSetContentEditable(vnode) {\n    if (vnode.attrs == null || vnode.attrs.contenteditable == null &&\n    // attribute\n    vnode.attrs.contentEditable == null // property\n    ) return false;\n    var children = vnode.children;\n    if (children != null && children.length === 1 && children[0].tag === \"<\") {\n      var content = children[0].children;\n      if (vnode.dom.innerHTML !== content) vnode.dom.innerHTML = content;\n    } else if (children != null && children.length !== 0) throw new Error(\"Child node of a contenteditable must be trusted.\");\n    return true;\n  }\n\n  //remove\n  function removeNodes(parent, vnodes, start, end) {\n    for (var i = start; i < end; i++) {\n      var vnode = vnodes[i];\n      if (vnode != null) removeNode(parent, vnode);\n    }\n  }\n  function tryBlockRemove(parent, vnode, source, counter) {\n    var original = vnode.state;\n    var result = callHook.call(source.onbeforeremove, vnode);\n    if (result == null) return;\n    var generation = currentRender;\n    var _iterator2 = _createForOfIteratorHelper(domFor(vnode)),\n      _step2;\n    try {\n      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n        var dom = _step2.value;\n        delayedRemoval.set(dom, generation);\n      }\n    } catch (err) {\n      _iterator2.e(err);\n    } finally {\n      _iterator2.f();\n    }\n    counter.v++;\n    Promise.resolve(result).finally(function () {\n      checkState(vnode, original);\n      tryResumeRemove(parent, vnode, counter);\n    });\n  }\n  function tryResumeRemove(parent, vnode, counter) {\n    if (--counter.v === 0) {\n      onremove(vnode);\n      removeDOM(parent, vnode);\n    }\n  }\n  function removeNode(parent, vnode) {\n    var counter = {\n      v: 1\n    };\n    if (typeof vnode.tag !== \"string\" && typeof vnode.state.onbeforeremove === \"function\") tryBlockRemove(parent, vnode, vnode.state, counter);\n    if (vnode.attrs && typeof vnode.attrs.onbeforeremove === \"function\") tryBlockRemove(parent, vnode, vnode.attrs, counter);\n    tryResumeRemove(parent, vnode, counter);\n  }\n  function removeDOM(parent, vnode) {\n    if (vnode.dom == null) return;\n    if (vnode.domSize == null || vnode.domSize === 1) {\n      parent.removeChild(vnode.dom);\n    } else {\n      var _iterator3 = _createForOfIteratorHelper(domFor(vnode)),\n        _step3;\n      try {\n        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n          var dom = _step3.value;\n          parent.removeChild(dom);\n        }\n      } catch (err) {\n        _iterator3.e(err);\n      } finally {\n        _iterator3.f();\n      }\n    }\n  }\n  function onremove(vnode) {\n    if (typeof vnode.tag !== \"string\" && typeof vnode.state.onremove === \"function\") callHook.call(vnode.state.onremove, vnode);\n    if (vnode.attrs && typeof vnode.attrs.onremove === \"function\") callHook.call(vnode.attrs.onremove, vnode);\n    if (typeof vnode.tag !== \"string\") {\n      if (vnode.instance != null) onremove(vnode.instance);\n    } else {\n      if (vnode.events != null) vnode.events._ = null;\n      var children = vnode.children;\n      if (Array.isArray(children)) {\n        for (var i = 0; i < children.length; i++) {\n          var child = children[i];\n          if (child != null) onremove(child);\n        }\n      }\n    }\n  }\n\n  //attrs\n  function setAttrs(vnode, attrs, ns) {\n    for (var key in attrs) {\n      setAttr(vnode, key, null, attrs[key], ns);\n    }\n  }\n  function setAttr(vnode, key, old, value, ns) {\n    if (key === \"key\" || value == null || isLifecycleMethod(key) || old === value && !isFormAttribute(vnode, key) && _typeof(value) !== \"object\") return;\n    if (key[0] === \"o\" && key[1] === \"n\") return updateEvent(vnode, key, value);\n    if (key.slice(0, 6) === \"xlink:\") vnode.dom.setAttributeNS(\"http://www.w3.org/1999/xlink\", key.slice(6), value);else if (key === \"style\") updateStyle(vnode.dom, old, value);else if (hasPropertyKey(vnode, key, ns)) {\n      if (key === \"value\") {\n        // Only do the coercion if we're actually going to check the value.\n        /* eslint-disable no-implicit-coercion */\n        //setting input[value] to same value by typing on focused element moves cursor to end in Chrome\n        //setting input[type=file][value] to same value causes an error to be generated if it's non-empty\n        //minlength/maxlength validation isn't performed on script-set values(#2256)\n        if ((vnode.tag === \"input\" || vnode.tag === \"textarea\") && vnode.dom.value === \"\" + value) return;\n        //setting select[value] to same value while having select open blinks select dropdown in Chrome\n        if (vnode.tag === \"select\" && old !== null && vnode.dom.value === \"\" + value) return;\n        //setting option[value] to same value while having select open blinks select dropdown in Chrome\n        if (vnode.tag === \"option\" && old !== null && vnode.dom.value === \"\" + value) return;\n        //setting input[type=file][value] to different value is an error if it's non-empty\n        // Not ideal, but it at least works around the most common source of uncaught exceptions for now.\n        if (vnode.tag === \"input\" && vnode.attrs.type === \"file\" && \"\" + value !== \"\") {\n          console.error(\"`value` is read-only on file inputs!\");\n          return;\n        }\n        /* eslint-enable no-implicit-coercion */\n      }\n      // If you assign an input type that is not supported by IE 11 with an assignment expression, an error will occur.\n      if (vnode.tag === \"input\" && key === \"type\") vnode.dom.setAttribute(key, value);else vnode.dom[key] = value;\n    } else {\n      if (typeof value === \"boolean\") {\n        if (value) vnode.dom.setAttribute(key, \"\");else vnode.dom.removeAttribute(key);\n      } else vnode.dom.setAttribute(key === \"className\" ? \"class\" : key, value);\n    }\n  }\n  function removeAttr(vnode, key, old, ns) {\n    if (key === \"key\" || old == null || isLifecycleMethod(key)) return;\n    if (key[0] === \"o\" && key[1] === \"n\") updateEvent(vnode, key, undefined);else if (key === \"style\") updateStyle(vnode.dom, old, null);else if (hasPropertyKey(vnode, key, ns) && key !== \"className\" && key !== \"title\" // creates \"null\" as title\n    && !(key === \"value\" && (vnode.tag === \"option\" || vnode.tag === \"select\" && vnode.dom.selectedIndex === -1 && vnode.dom === activeElement(vnode.dom))) && !(vnode.tag === \"input\" && key === \"type\")) {\n      vnode.dom[key] = null;\n    } else {\n      var nsLastIndex = key.indexOf(\":\");\n      if (nsLastIndex !== -1) key = key.slice(nsLastIndex + 1);\n      if (old !== false) vnode.dom.removeAttribute(key === \"className\" ? \"class\" : key);\n    }\n  }\n  function setLateSelectAttrs(vnode, attrs) {\n    if (\"value\" in attrs) {\n      if (attrs.value === null) {\n        if (vnode.dom.selectedIndex !== -1) vnode.dom.value = null;\n      } else {\n        var normalized = \"\" + attrs.value; // eslint-disable-line no-implicit-coercion\n        if (vnode.dom.value !== normalized || vnode.dom.selectedIndex === -1) {\n          vnode.dom.value = normalized;\n        }\n      }\n    }\n    if (\"selectedIndex\" in attrs) setAttr(vnode, \"selectedIndex\", null, attrs.selectedIndex, undefined);\n  }\n  function updateAttrs(vnode, old, attrs, ns) {\n    // Some attributes may NOT be case-sensitive (e.g. data-***),\n    // so removal should be done first to prevent accidental removal for newly setting values.\n    var val;\n    if (old != null) {\n      if (old === attrs && !cachedAttrsIsStaticMap.has(attrs)) {\n        console.warn(\"Don't reuse attrs object, use new object for every redraw, this will throw in next major\");\n      }\n      for (var key in old) {\n        if ((val = old[key]) != null && (attrs == null || attrs[key] == null)) {\n          removeAttr(vnode, key, val, ns);\n        }\n      }\n    }\n    if (attrs != null) {\n      for (var key in attrs) {\n        setAttr(vnode, key, old && old[key], attrs[key], ns);\n      }\n    }\n  }\n  function isFormAttribute(vnode, attr) {\n    return attr === \"value\" || attr === \"checked\" || attr === \"selectedIndex\" || attr === \"selected\" && (vnode.dom === activeElement(vnode.dom) || vnode.tag === \"option\" && vnode.dom.parentNode === activeElement(vnode.dom));\n  }\n  function isLifecycleMethod(attr) {\n    return attr === \"oninit\" || attr === \"oncreate\" || attr === \"onupdate\" || attr === \"onremove\" || attr === \"onbeforeremove\" || attr === \"onbeforeupdate\";\n  }\n  function hasPropertyKey(vnode, key, ns) {\n    // Filter out namespaced keys\n    return ns === undefined && (\n    // If it's a custom element, just keep it.\n    vnode.tag.indexOf(\"-\") > -1 || vnode.is ||\n    // If it's a normal element, let's try to avoid a few browser bugs.\n    key !== \"href\" && key !== \"list\" && key !== \"form\" && key !== \"width\" && key !== \"height\" // && key !== \"type\"\n    // Defer the property check until *after* we check everything.\n    ) && key in vnode.dom;\n  }\n\n  //style\n  function updateStyle(element, old, style) {\n    if (old === style) {\n      // Styles are equivalent, do nothing.\n    } else if (style == null) {\n      // New style is missing, just clear it.\n      element.style = \"\";\n    } else if (_typeof(style) !== \"object\") {\n      // New style is a string, let engine deal with patching.\n      element.style = style;\n    } else if (old == null || _typeof(old) !== \"object\") {\n      // `old` is missing or a string, `style` is an object.\n      element.style = \"\";\n      // Add new style properties\n      for (var key in style) {\n        var value = style[key];\n        if (value != null) {\n          if (key.includes(\"-\")) element.style.setProperty(key, String(value));else element.style[key] = String(value);\n        }\n      }\n    } else {\n      // Both old & new are (different) objects.\n      // Remove style properties that no longer exist\n      // Style properties may have two cases(dash-case and camelCase),\n      // so removal should be done first to prevent accidental removal for newly setting values.\n      for (var key in old) {\n        if (old[key] != null && style[key] == null) {\n          if (key.includes(\"-\")) element.style.removeProperty(key);else element.style[key] = \"\";\n        }\n      }\n      // Update style properties that have changed\n      for (var key in style) {\n        var value = style[key];\n        if (value != null && (value = String(value)) !== String(old[key])) {\n          if (key.includes(\"-\")) element.style.setProperty(key, value);else element.style[key] = value;\n        }\n      }\n    }\n  }\n\n  // Here's an explanation of how this works:\n  // 1. The event names are always (by design) prefixed by `on`.\n  // 2. The EventListener interface accepts either a function or an object\n  //    with a `handleEvent` method.\n  // 3. The object does not inherit from `Object.prototype`, to avoid\n  //    any potential interference with that (e.g. setters).\n  // 4. The event name is remapped to the handler before calling it.\n  // 5. In function-based event handlers, `ev.target === this`. We replicate\n  //    that below.\n  // 6. In function-based event handlers, `return false` prevents the default\n  //    action and stops event propagation. We replicate that below.\n  function EventDict() {\n    // Save this, so the current redraw is correctly tracked.\n    this._ = currentRedraw;\n  }\n  EventDict.prototype = Object.create(null);\n  EventDict.prototype.handleEvent = function (ev) {\n    var handler = this[\"on\" + ev.type];\n    var result;\n    if (typeof handler === \"function\") result = handler.call(ev.currentTarget, ev);else if (typeof handler.handleEvent === \"function\") handler.handleEvent(ev);\n    var self = this;\n    if (self._ != null) {\n      if (ev.redraw !== false) (0, self._)();\n      if (result != null && typeof result.then === \"function\") {\n        Promise.resolve(result).then(function () {\n          if (self._ != null && ev.redraw !== false) (0, self._)();\n        });\n      }\n    }\n    if (result === false) {\n      ev.preventDefault();\n      ev.stopPropagation();\n    }\n  };\n\n  //event\n  function updateEvent(vnode, key, value) {\n    if (vnode.events != null) {\n      vnode.events._ = currentRedraw;\n      if (vnode.events[key] === value) return;\n      if (value != null && (typeof value === \"function\" || _typeof(value) === \"object\")) {\n        if (vnode.events[key] == null) vnode.dom.addEventListener(key.slice(2), vnode.events, false);\n        vnode.events[key] = value;\n      } else {\n        if (vnode.events[key] != null) vnode.dom.removeEventListener(key.slice(2), vnode.events, false);\n        vnode.events[key] = undefined;\n      }\n    } else if (value != null && (typeof value === \"function\" || _typeof(value) === \"object\")) {\n      vnode.events = new EventDict();\n      vnode.dom.addEventListener(key.slice(2), vnode.events, false);\n      vnode.events[key] = value;\n    }\n  }\n\n  //lifecycle\n  function initLifecycle(source, vnode, hooks) {\n    if (typeof source.oninit === \"function\") callHook.call(source.oninit, vnode);\n    if (typeof source.oncreate === \"function\") hooks.push(callHook.bind(source.oncreate, vnode));\n  }\n  function updateLifecycle(source, vnode, hooks) {\n    if (typeof source.onupdate === \"function\") hooks.push(callHook.bind(source.onupdate, vnode));\n  }\n  function shouldNotUpdate(vnode, old) {\n    do {\n      if (vnode.attrs != null && typeof vnode.attrs.onbeforeupdate === \"function\") {\n        var force = callHook.call(vnode.attrs.onbeforeupdate, vnode, old);\n        if (force !== undefined && !force) break;\n      }\n      if (typeof vnode.tag !== \"string\" && typeof vnode.state.onbeforeupdate === \"function\") {\n        var force = callHook.call(vnode.state.onbeforeupdate, vnode, old);\n        if (force !== undefined && !force) break;\n      }\n      return false;\n    } while (false); // eslint-disable-line no-constant-condition\n    vnode.dom = old.dom;\n    vnode.domSize = old.domSize;\n    vnode.instance = old.instance;\n    // One would think having the actual latest attributes would be ideal,\n    // but it doesn't let us properly diff based on our current internal\n    // representation. We have to save not only the old DOM info, but also\n    // the attributes used to create it, as we diff *that*, not against the\n    // DOM directly (with a few exceptions in `setAttr`). And, of course, we\n    // need to save the children and text as they are conceptually not\n    // unlike special \"attributes\" internally.\n    vnode.attrs = old.attrs;\n    vnode.children = old.children;\n    vnode.text = old.text;\n    return true;\n  }\n  var currentDOM;\n  return function (dom, vnodes, redraw) {\n    if (!dom) throw new TypeError(\"DOM element being rendered to does not exist.\");\n    if (currentDOM != null && dom.contains(currentDOM)) {\n      throw new TypeError(\"Node is currently being rendered to and thus is locked.\");\n    }\n    var prevRedraw = currentRedraw;\n    var prevDOM = currentDOM;\n    var hooks = [];\n    var active = activeElement(dom);\n    var namespace = dom.namespaceURI;\n    currentDOM = dom;\n    currentRedraw = typeof redraw === \"function\" ? redraw : undefined;\n    currentRender = {};\n    try {\n      // First time rendering into a node clears it out\n      if (dom.vnodes == null) dom.textContent = \"\";\n      vnodes = Vnode.normalizeChildren(Array.isArray(vnodes) ? vnodes : [vnodes]);\n      updateNodes(dom, dom.vnodes, vnodes, hooks, null, namespace === \"http://www.w3.org/1999/xhtml\" ? undefined : namespace);\n      dom.vnodes = vnodes;\n      // `document.activeElement` can return null: https://html.spec.whatwg.org/multipage/interaction.html#dom-document-activeelement\n      if (active != null && activeElement(dom) !== active && typeof active.focus === \"function\") active.focus();\n      for (var i = 0; i < hooks.length; i++) hooks[i]();\n    } finally {\n      currentRedraw = prevRedraw;\n      currentDOM = prevDOM;\n    }\n  };\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/render.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/trust.js":
/*!**********************************************!*\
  !*** ./node_modules/mithril/render/trust.js ***!
  \**********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar Vnode = __webpack_require__(/*! ../render/vnode */ \"./node_modules/mithril/render/vnode.js\");\nmodule.exports = function (html) {\n  if (html == null) html = \"\";\n  return Vnode(\"<\", undefined, undefined, html, undefined, undefined);\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/trust.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/render/vnode.js":
/*!**********************************************!*\
  !*** ./node_modules/mithril/render/vnode.js ***!
  \**********************************************/
/***/ (function(module) {

"use strict";
eval("{\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction Vnode(tag, key, attrs, children, text, dom) {\n  return {\n    tag: tag,\n    key: key,\n    attrs: attrs,\n    children: children,\n    text: text,\n    dom: dom,\n    is: undefined,\n    domSize: undefined,\n    state: undefined,\n    events: undefined,\n    instance: undefined\n  };\n}\nVnode.normalize = function (node) {\n  if (Array.isArray(node)) return Vnode(\"[\", undefined, undefined, Vnode.normalizeChildren(node), undefined, undefined);\n  if (node == null || typeof node === \"boolean\") return null;\n  if (_typeof(node) === \"object\") return node;\n  return Vnode(\"#\", undefined, undefined, String(node), undefined, undefined);\n};\nVnode.normalizeChildren = function (input) {\n  // Preallocate the array length (initially holey) and fill every index immediately in order.\n  // Benchmarking shows better performance on V8.\n  var children = new Array(input.length);\n  // Count the number of keyed normalized vnodes for consistency check.\n  // Note: this is a perf-sensitive check.\n  // Fun fact: merging the loop like this is somehow faster than splitting\n  // the check within updateNodes(), noticeably so.\n  var numKeyed = 0;\n  for (var i = 0; i < input.length; i++) {\n    children[i] = Vnode.normalize(input[i]);\n    if (children[i] !== null && children[i].key != null) numKeyed++;\n  }\n  if (numKeyed !== 0 && numKeyed !== input.length) {\n    throw new TypeError(children.includes(null) ? \"In fragments, vnodes must either all have keys or none have keys. You may wish to consider using an explicit keyed empty fragment, m.fragment({key: ...}), instead of a hole.\" : \"In fragments, vnodes must either all have keys or none have keys.\");\n  }\n  return children;\n};\nmodule.exports = Vnode;\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/render/vnode.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/request.js":
/*!*****************************************!*\
  !*** ./node_modules/mithril/request.js ***!
  \*****************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar mountRedraw = __webpack_require__(/*! ./mount-redraw */ \"./node_modules/mithril/mount-redraw.js\");\nmodule.exports = __webpack_require__(/*! ./request/request */ \"./node_modules/mithril/request/request.js\")(typeof window !== \"undefined\" ? window : null, mountRedraw.redraw);\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/request.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/request/request.js":
/*!*************************************************!*\
  !*** ./node_modules/mithril/request/request.js ***!
  \*************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar buildPathname = __webpack_require__(/*! ../pathname/build */ \"./node_modules/mithril/pathname/build.js\");\nvar hasOwn = __webpack_require__(/*! ../util/hasOwn */ \"./node_modules/mithril/util/hasOwn.js\");\nmodule.exports = function ($window, oncompletion) {\n  function PromiseProxy(executor) {\n    return new Promise(executor);\n  }\n  function makeRequest(url, args) {\n    return new Promise(function (resolve, reject) {\n      url = buildPathname(url, args.params);\n      var method = args.method != null ? args.method.toUpperCase() : \"GET\";\n      var body = args.body;\n      var assumeJSON = (args.serialize == null || args.serialize === JSON.serialize) && !(body instanceof $window.FormData || body instanceof $window.URLSearchParams);\n      var responseType = args.responseType || (typeof args.extract === \"function\" ? \"\" : \"json\");\n      var xhr = new $window.XMLHttpRequest(),\n        aborted = false,\n        isTimeout = false;\n      var original = xhr,\n        replacedAbort;\n      var abort = xhr.abort;\n      xhr.abort = function () {\n        aborted = true;\n        abort.call(this);\n      };\n      xhr.open(method, url, args.async !== false, typeof args.user === \"string\" ? args.user : undefined, typeof args.password === \"string\" ? args.password : undefined);\n      if (assumeJSON && body != null && !hasHeader(args, \"content-type\")) {\n        xhr.setRequestHeader(\"Content-Type\", \"application/json; charset=utf-8\");\n      }\n      if (typeof args.deserialize !== \"function\" && !hasHeader(args, \"accept\")) {\n        xhr.setRequestHeader(\"Accept\", \"application/json, text/*\");\n      }\n      if (args.withCredentials) xhr.withCredentials = args.withCredentials;\n      if (args.timeout) xhr.timeout = args.timeout;\n      xhr.responseType = responseType;\n      for (var key in args.headers) {\n        if (hasOwn.call(args.headers, key)) {\n          xhr.setRequestHeader(key, args.headers[key]);\n        }\n      }\n      xhr.onreadystatechange = function (ev) {\n        // Don't throw errors on xhr.abort().\n        if (aborted) return;\n        if (ev.target.readyState === 4) {\n          try {\n            var success = ev.target.status >= 200 && ev.target.status < 300 || ev.target.status === 304 || /^file:\\/\\//i.test(url);\n            // When the response type isn't \"\" or \"text\",\n            // `xhr.responseText` is the wrong thing to use.\n            // Browsers do the right thing and throw here, and we\n            // should honor that and do the right thing by\n            // preferring `xhr.response` where possible/practical.\n            var response = ev.target.response,\n              message;\n            if (responseType === \"json\") {\n              // For IE and Edge, which don't implement\n              // `responseType: \"json\"`.\n              if (!ev.target.responseType && typeof args.extract !== \"function\") {\n                // Handle no-content which will not parse.\n                try {\n                  response = JSON.parse(ev.target.responseText);\n                } catch (e) {\n                  response = null;\n                }\n              }\n            } else if (!responseType || responseType === \"text\") {\n              // Only use this default if it's text. If a parsed\n              // document is needed on old IE and friends (all\n              // unsupported), the user should use a custom\n              // `config` instead. They're already using this at\n              // their own risk.\n              if (response == null) response = ev.target.responseText;\n            }\n            if (typeof args.extract === \"function\") {\n              response = args.extract(ev.target, args);\n              success = true;\n            } else if (typeof args.deserialize === \"function\") {\n              response = args.deserialize(response);\n            }\n            if (success) {\n              if (typeof args.type === \"function\") {\n                if (Array.isArray(response)) {\n                  for (var i = 0; i < response.length; i++) {\n                    response[i] = new args.type(response[i]);\n                  }\n                } else response = new args.type(response);\n              }\n              resolve(response);\n            } else {\n              var completeErrorResponse = function completeErrorResponse() {\n                try {\n                  message = ev.target.responseText;\n                } catch (e) {\n                  message = response;\n                }\n                var error = new Error(message);\n                error.code = ev.target.status;\n                error.response = response;\n                reject(error);\n              };\n              if (xhr.status === 0) {\n                // Use setTimeout to push this code block onto the event queue\n                // This allows `xhr.ontimeout` to run in the case that there is a timeout\n                // Without this setTimeout, `xhr.ontimeout` doesn't have a chance to reject\n                // as `xhr.onreadystatechange` will run before it\n                setTimeout(function () {\n                  if (isTimeout) return;\n                  completeErrorResponse();\n                });\n              } else completeErrorResponse();\n            }\n          } catch (e) {\n            reject(e);\n          }\n        }\n      };\n      xhr.ontimeout = function (ev) {\n        isTimeout = true;\n        var error = new Error(\"Request timed out\");\n        error.code = ev.target.status;\n        reject(error);\n      };\n      if (typeof args.config === \"function\") {\n        xhr = args.config(xhr, args, url) || xhr;\n\n        // Propagate the `abort` to any replacement XHR as well.\n        if (xhr !== original) {\n          replacedAbort = xhr.abort;\n          xhr.abort = function () {\n            aborted = true;\n            replacedAbort.call(this);\n          };\n        }\n      }\n      if (body == null) xhr.send();else if (typeof args.serialize === \"function\") xhr.send(args.serialize(body));else if (body instanceof $window.FormData || body instanceof $window.URLSearchParams) xhr.send(body);else xhr.send(JSON.stringify(body));\n    });\n  }\n\n  // In case the global Promise is some userland library's where they rely on\n  // `foo instanceof this.constructor`, `this.constructor.resolve(value)`, or\n  // similar. Let's *not* break them.\n  PromiseProxy.prototype = Promise.prototype;\n  PromiseProxy.__proto__ = Promise; // eslint-disable-line no-proto\n\n  function hasHeader(args, name) {\n    for (var key in args.headers) {\n      if (hasOwn.call(args.headers, key) && key.toLowerCase() === name) return true;\n    }\n    return false;\n  }\n  return {\n    request: function request(url, args) {\n      if (typeof url !== \"string\") {\n        args = url;\n        url = url.url;\n      } else if (args == null) args = {};\n      var promise = makeRequest(url, args);\n      if (args.background === true) return promise;\n      var count = 0;\n      function complete() {\n        if (--count === 0 && typeof oncompletion === \"function\") oncompletion();\n      }\n      return wrap(promise);\n      function wrap(promise) {\n        var then = promise.then;\n        // Set the constructor, so engines know to not await or resolve\n        // this as a native promise. At the time of writing, this is\n        // only necessary for V8, but their behavior is the correct\n        // behavior per spec. See this spec issue for more details:\n        // https://github.com/tc39/ecma262/issues/1577. Also, see the\n        // corresponding comment in `request/tests/test-request.js` for\n        // a bit more background on the issue at hand.\n        promise.constructor = PromiseProxy;\n        promise.then = function () {\n          count++;\n          var next = then.apply(promise, arguments);\n          next.then(complete, function (e) {\n            complete();\n            if (count === 0) throw e;\n          });\n          return wrap(next);\n        };\n        return promise;\n      }\n    }\n  };\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/request/request.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/route.js":
/*!***************************************!*\
  !*** ./node_modules/mithril/route.js ***!
  \***************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\nvar mountRedraw = __webpack_require__(/*! ./mount-redraw */ \"./node_modules/mithril/mount-redraw.js\");\nmodule.exports = __webpack_require__(/*! ./api/router */ \"./node_modules/mithril/api/router.js\")(typeof window !== \"undefined\" ? window : null, mountRedraw);\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/route.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/util/censor.js":
/*!*********************************************!*\
  !*** ./node_modules/mithril/util/censor.js ***!
  \*********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("{\n\n// Note: this is mildly perf-sensitive.\n//\n// It does *not* use `delete` - dynamic `delete`s usually cause objects to bail\n// out into dictionary mode and just generally cause a bunch of optimization\n// issues within engines.\n//\n// Ideally, I would've preferred to do this, if it weren't for the optimization\n// issues:\n//\n// ```js\n// const hasOwn = require(\"./hasOwn\")\n// const magic = [\n//     \"key\", \"oninit\", \"oncreate\", \"onbeforeupdate\", \"onupdate\",\n//     \"onbeforeremove\", \"onremove\",\n// ]\n// module.exports = (attrs, extras) => {\n//     const result = Object.assign(Object.create(null), attrs)\n//     for (const key of magic) delete result[key]\n//     if (extras != null) for (const key of extras) delete result[key]\n//     return result\n// }\n// ```\nvar hasOwn = __webpack_require__(/*! ./hasOwn */ \"./node_modules/mithril/util/hasOwn.js\");\nvar magic = /^(?:key|oninit|oncreate|onbeforeupdate|onupdate|onbeforeremove|onremove)$/;\nmodule.exports = function (attrs, extras) {\n  var result = {};\n  if (extras != null) {\n    for (var key in attrs) {\n      if (hasOwn.call(attrs, key) && !magic.test(key) && extras.indexOf(key) < 0) {\n        result[key] = attrs[key];\n      }\n    }\n  } else {\n    for (var key in attrs) {\n      if (hasOwn.call(attrs, key) && !magic.test(key)) {\n        result[key] = attrs[key];\n      }\n    }\n  }\n  return result;\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/util/censor.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/util/decodeURIComponentSafe.js":
/*!*************************************************************!*\
  !*** ./node_modules/mithril/util/decodeURIComponentSafe.js ***!
  \*************************************************************/
/***/ (function(module) {

"use strict";
eval("{\n\n/*\nPercent encodings encode UTF-8 bytes, so this regexp needs to match that.\nHere's how UTF-8 encodes stuff:\n- `00-7F`: 1-byte, for U+0000-U+007F\n- `C2-DF 80-BF`: 2-byte, for U+0080-U+07FF\n- `E0-EF 80-BF 80-BF`: 3-byte, encodes U+0800-U+FFFF\n- `F0-F4 80-BF 80-BF 80-BF`: 4-byte, encodes U+10000-U+10FFFF\nIn this, there's a number of invalid byte sequences:\n- `80-BF`: Continuation byte, invalid as start\n- `C0-C1 80-BF`: Overlong encoding for U+0000-U+007F\n- `E0 80-9F 80-BF`: Overlong encoding for U+0080-U+07FF\n- `ED A0-BF 80-BF`: Encoding for UTF-16 surrogate U+D800-U+DFFF\n- `F0 80-8F 80-BF 80-BF`: Overlong encoding for U+0800-U+FFFF\n- `F4 90-BF`: RFC 3629 restricted UTF-8 to only code points UTF-16 could encode.\n- `F5-FF`: RFC 3629 restricted UTF-8 to only code points UTF-16 could encode.\nSo in reality, only the following sequences can encode are valid characters:\n- 00-7F\n- C2-DF 80-BF\n- E0    A0-BF 80-BF\n- E1-EC 80-BF 80-BF\n- ED    80-9F 80-BF\n- EE-EF 80-BF 80-BF\n- F0    90-BF 80-BF 80-BF\n- F1-F3 80-BF 80-BF 80-BF\n- F4    80-8F 80-BF 80-BF\n\nThe regexp just tries to match this as compactly as possible.\n*/\nvar validUtf8Encodings = /%(?:[0-7]|(?!c[01]|e0%[89]|ed%[ab]|f0%8|f4%[9ab])(?:c|d|(?:e|f[0-4]%[89ab])[\\da-f]%[89ab])[\\da-f]%[89ab])[\\da-f]/gi;\nmodule.exports = function (str) {\n  return String(str).replace(validUtf8Encodings, decodeURIComponent);\n};\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/util/decodeURIComponentSafe.js?\n}");

/***/ }),

/***/ "./node_modules/mithril/util/hasOwn.js":
/*!*********************************************!*\
  !*** ./node_modules/mithril/util/hasOwn.js ***!
  \*********************************************/
/***/ (function(module) {

"use strict";
eval("{// This exists so I'm only saving it once.\n\n\nmodule.exports = {}.hasOwnProperty;\n\n//# sourceURL=webpack://email-subscribers/./node_modules/mithril/util/hasOwn.js?\n}");

/***/ }),

/***/ "./lite/admin/css/styles1.css":
/*!************************************!*\
  !*** ./lite/admin/css/styles1.css ***!
  \************************************/
/***/ (function() {

eval("{// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://email-subscribers/./lite/admin/css/styles1.css?\n}");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		if (!(moduleId in __webpack_modules__)) {
/******/ 			delete __webpack_module_cache__[moduleId];
/******/ 			var e = new Error("Cannot find module '" + moduleId + "'");
/******/ 			e.code = 'MODULE_NOT_FOUND';
/******/ 			throw e;
/******/ 		}
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/global */
/******/ 	!function() {
/******/ 		__webpack_require__.g = (function() {
/******/ 			if (typeof globalThis === 'object') return globalThis;
/******/ 			try {
/******/ 				return this || new Function('return this')();
/******/ 			} catch (e) {
/******/ 				if (typeof window === 'object') return window;
/******/ 			}
/******/ 		})();
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("./lite/admin/js/src/index.js");
/******/ 	
/******/ })()
;