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

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n// For Announcement scripts;\n(function ($) {\n  $(document).ready(function () {\n    $('.dokan-announcement-wrapper').on('click', 'a.remove_announcement', /*#__PURE__*/function () {\n      var _ref = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(e) {\n        var answer, self, data, row_count;\n        return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                e.preventDefault();\n                _context.next = 3;\n                return dokan_sweetalert(dokan.delete_confirm, {\n                  action: 'confirm',\n                  icon: 'warning'\n                });\n\n              case 3:\n                answer = _context.sent;\n\n                if ('undefined' !== answer && answer.isConfirmed) {\n                  self = $(this), data = {\n                    'action': 'dokan_announcement_remove_row',\n                    'row_id': self.data('notice_row'),\n                    '_wpnonce': dokan.nonce\n                  };\n                  self.closest('.dokan-announcement-wrapper-item').append('<span class=\"dokan-loading\" style=\"position:absolute;top:2px; right:15px\"> </span>');\n                  row_count = $('.dokan-announcement-wrapper-item').length;\n                  $.post(dokan.ajaxurl, data, function (response) {\n                    if (response.success) {\n                      self.closest('.dokan-announcement-wrapper-item').find('span.dokan-loading').remove();\n                      self.closest('.dokan-announcement-wrapper-item').fadeOut(function () {\n                        $(this).remove();\n\n                        if (row_count == 1) {\n                          $('.dokan-announcement-wrapper').html(response.data);\n                        }\n                      });\n                    } else {\n                      dokan_sweetalert(dokan.wrong_message, {\n                        icon: 'error'\n                      });\n                    }\n                  });\n                }\n\n              case 5:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee, this);\n      }));\n\n      return function (_x) {\n        return _ref.apply(this, arguments);\n      };\n    }());\n  });\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/announcement.js?");

/***/ }),

/***/ "./assets/src/js/coupon.js":
/*!*********************************!*\
  !*** ./assets/src/js/coupon.js ***!
  \*********************************/
/***/ (() => {

eval("// Coupon\n(function ($) {\n  $.validator.setDefaults({\n    ignore: \":hidden\"\n  });\n\n  var validatorError = function validatorError(error, element) {\n    var form_group = $(element).closest('.form-group');\n    form_group.addClass('has-error').append(error);\n  };\n\n  var validatorSuccess = function validatorSuccess(label, element) {\n    $(element).closest('.form-group').removeClass('has-error');\n  };\n\n  var Dokan_Coupons = {\n    init: function init() {\n      var self = this;\n      this.couponsValidation(self);\n      $('select#discount_type').on('change', this.type_options).trigger('change');\n    },\n    couponsValidation: function couponsValidation(self) {\n      $(\"form.coupons\").validate({\n        errorElement: 'span',\n        errorClass: 'error',\n        errorPlacement: validatorError,\n        success: validatorSuccess\n      });\n    },\n    type_options: function type_options() {\n      $('#coupon_amount').removeClass('wc_input_decimal').addClass('wc_input_price');\n    }\n  };\n  Dokan_Coupons.init();\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/coupon.js?");

/***/ }),

/***/ "./assets/src/js/dokan-pro.js":
/*!************************************!*\
  !*** ./assets/src/js/dokan-pro.js ***!
  \************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _less_dokan_pro_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../less/dokan-pro.less */ \"./assets/src/less/dokan-pro.less\");\n/* harmony import */ var _announcement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./announcement */ \"./assets/src/js/announcement.js\");\n/* harmony import */ var _coupon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./coupon */ \"./assets/src/js/coupon.js\");\n/* harmony import */ var _coupon__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_coupon__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _inline_editable_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inline-editable-table */ \"./assets/src/js/inline-editable-table.js\");\n/* harmony import */ var _inline_editable_table__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_inline_editable_table__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _product_variation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./product-variation */ \"./assets/src/js/product-variation.js\");\n/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./product */ \"./assets/src/js/product.js\");\n/* harmony import */ var _reviews__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./reviews */ \"./assets/src/js/reviews.js\");\n/* harmony import */ var _reviews__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_reviews__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _reviews_min__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./reviews.min */ \"./assets/src/js/reviews.min.js\");\n/* harmony import */ var _reviews_min__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_reviews_min__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _shipping__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./shipping */ \"./assets/src/js/shipping.js\");\n/* harmony import */ var _shipping__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_shipping__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _store_lists__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./store-lists */ \"./assets/src/js/store-lists.js\");\n/* harmony import */ var _store_seo__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./store-seo */ \"./assets/src/js/store-seo.js\");\n/* harmony import */ var _store_seo__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_store_seo__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _orders__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./orders */ \"./assets/src/js/orders.js\");\n/* harmony import */ var _product_bulk_edit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./product-bulk-edit */ \"./assets/src/js/product-bulk-edit.js\");\n/* harmony import */ var _product_bulk_edit__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_product_bulk_edit__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _progressbar_closer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./progressbar-closer */ \"./assets/src/js/progressbar-closer.js\");\n/* harmony import */ var _progressbar_closer__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_progressbar_closer__WEBPACK_IMPORTED_MODULE_13__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/dokan-pro.js?");

/***/ }),

/***/ "./assets/src/js/inline-editable-table.js":
/*!************************************************!*\
  !*** ./assets/src/js/inline-editable-table.js ***!
  \************************************************/
/***/ (() => {

eval("jQuery(document).ready(function ($) {\n  'use strict';\n\n  function InlineEditableTable(table) {\n    this.$table = $(table);\n    this.current_tr = null;\n    this.current_tr_posX = 0;\n    this.edit_form = null;\n    this.current_product_id = 0;\n    this.bindElements();\n  }\n\n  InlineEditableTable.prototype.bindElements = function () {\n    var self = this;\n    self.$table.on('click', '.edit, .delete, .item-inline-edit, .duplicate', function (e) {\n      if (!dokan.is_vendor_enabled) {\n        e.preventDefault();\n        return dokan_sweetalert(dokan.not_enable_message, {\n          icon: 'error'\n        });\n      }\n    });\n    self.$table.on('click', '.item-inline-edit', function (e) {\n      e.preventDefault();\n\n      if (!dokan.is_vendor_enabled) {\n        return;\n      }\n\n      self.$table.find('tr.dokan-product-list-inline-edit-form').addClass('dokan-hide');\n      var anchor = $(this).children('a');\n      self.current_product_id = anchor.data('product-id');\n      self.current_tr = anchor.parents('tr');\n      self.current_tr_posX = self.current_tr.offset().top;\n      self.current_tr.addClass('dokan-hide');\n      self.edit_form = self.current_tr.next('.dokan-product-list-inline-edit-form');\n      self.edit_form.removeClass('dokan-hide');\n      self.bindSelect2();\n      self.scrollTop();\n    });\n    self.$table.on('click', '.inline-edit-cancel', function (e) {\n      e.preventDefault();\n\n      if (null === self.current_tr || !self.current_tr.length) {\n        return;\n      }\n\n      self.current_tr.removeClass('dokan-hide').next('.dokan-product-list-inline-edit-form').addClass('dokan-hide');\n      self.scrollTop();\n    });\n    self.$table.on('click', '.inline-edit-update', function (e) {\n      e.preventDefault();\n      var btn = $(this),\n          wrapper = btn.parent(),\n          fieldset = btn.parents('fieldset');\n      wrapper.addClass('show-loading-animation');\n      fieldset.attr('disabled', 'disabled');\n      var data = {};\n      self.edit_form.find('[data-field-name]').each(function () {\n        if ($(this).attr('type') === 'checkbox') {\n          data[$(this).data('field-name')] = $(this).is(':checked');\n        } else if ('chosen_product_cat' === $(this).data('field-name')) {\n          data[$(this).data('field-name')] ? '' : data[$(this).data('field-name')] = [];\n          data[$(this).data('field-name')].push($(this).val());\n        } else {\n          data[$(this).data('field-name')] = $(this).val();\n        }\n      });\n      $.ajax({\n        url: dokan.ajaxurl,\n        method: 'post',\n        dataType: 'json',\n        data: {\n          action: 'dokan_product_inline_edit',\n          security: dokan.product_inline_edit_nonce,\n          data: data\n        }\n      }).done(function (response) {\n        if (response.data && response.data.row) {\n          self.scrollTop(self.current_tr);\n          self.edit_form.addClass('dokan-hide').prev().replaceWith(response.data.row);\n        }\n      }).fail(function (response) {\n        if (response.responseJSON && typeof response.responseJSON.data === 'string') {\n          dokan_sweetalert(response.responseJSON.data, {\n            icon: 'error'\n          });\n        }\n      }).always(function () {\n        wrapper.removeClass('show-loading-animation');\n        fieldset.prop('disabled', false);\n      });\n    });\n    self.$table.on('click', '[data-field-toggler]', function (e) {\n      var name = $(this).data('field-name'),\n          is_checked = $(this).is(':checked');\n      self.edit_form.find('[data-field-toggle=\"' + name + '\"]').each(function () {\n        var el = $(this);\n        var compare_value = el.data('field-show-on');\n\n        if (is_checked == compare_value) {\n          // not comparing data type\n          el.removeClass('dokan-hide');\n        } else {\n          el.addClass('dokan-hide');\n        }\n\n        el.find('.dokan-select2').select2('destroy').removeClass('dokan-select2');\n        self.bindSelect2();\n      });\n    });\n  };\n\n  InlineEditableTable.prototype.bindSelect2 = function () {\n    this.edit_form.find('select:not(.dokan-select2)').addClass('dokan-select2').select2();\n  };\n\n  InlineEditableTable.prototype.scrollTop = function () {\n    $('html, body').scrollTop(this.current_tr_posX - 50);\n  };\n\n  $('.dokan-inline-editable-table').each(function () {\n    new InlineEditableTable(this);\n  });\n});\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/inline-editable-table.js?");

/***/ }),

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n\n;\n\n(function ($) {\n  /**\n   * Order Shipping Status Tracking Panel\n   */\n  var dokan_shipping_status_tracking_order_items = {\n    init: function init() {\n      var formatMap = {\n        // Day\n        d: 'dd',\n        D: 'D',\n        j: 'd',\n        l: 'DD',\n        // Month\n        F: 'MM',\n        m: 'mm',\n        M: 'M',\n        n: 'm',\n        // Year\n        o: 'yy',\n        // not exactly same. see php date doc for details\n        Y: 'yy',\n        y: 'y'\n      };\n      var i = 0;\n      var char = '';\n      var datepickerFormat = '';\n\n      for (i = 0; i < dokan.i18n_date_format.length; i++) {\n        char = dokan.i18n_date_format[i];\n\n        if (char in formatMap) {\n          datepickerFormat += formatMap[char];\n        } else {\n          datepickerFormat += char;\n        }\n      }\n\n      $(\".shipped_status_date\").datepicker({\n        dateFormat: datepickerFormat,\n        minDate: 0\n      });\n      $('body').on('change', '#shipping_status_provider', function (e) {\n        e.preventDefault();\n        var shipping_provider = $(this).val();\n\n        if (shipping_provider == 'sp-other') {\n          $(\".tracking-status-other-url\").show();\n        } else {\n          $(\".tracking-status-other-url\").hide();\n        }\n      });\n      $('body').on('change', '.update_shipping_provider', function (e) {\n        e.preventDefault();\n        var shipment_id = $(this).data('shipment_id');\n\n        if ($(this).val() == 'sp-other') {\n          $(\".tracking-status-other-area-\" + shipment_id).show();\n        } else {\n          $(\".tracking-status-other-area-\" + shipment_id).hide();\n        }\n      });\n      $('body').on('click', '#create-tracking-status-action', function (e) {\n        e.preventDefault();\n        $(this).hide();\n        $(\"#dokan-order-shipping-status-tracking\").show();\n        $(\".no-shipment-found-desc\").hide();\n      });\n      $('body').on('click', '#cancel-tracking-status-details', function (e) {\n        e.preventDefault();\n        $(\"#dokan-order-shipping-status-tracking\").hide();\n        $(\"#create-tracking-status-action\").show();\n        $(\".no-shipment-found-desc\").show();\n      });\n      $('body').on('click', '.shipment-notes-details-tab-toggle', function (e) {\n        e.preventDefault();\n        var shipment_id = $(this).data('shipment_id');\n        $(\".shipment-list-notes-inner-area\" + shipment_id).toggle();\n        $(this).find('span').toggleClass('dashicons-arrow-down-alt2 dashicons-arrow-up-alt2');\n      });\n      $('body').on('click', '.shipment-item-details-tab-toggle', function () {\n        var shipment_id = $(this).data('shipment_id');\n        $('.shipment_body_' + shipment_id).toggle();\n        $('.shipment_footer_' + shipment_id).toggle();\n        $(this).find('span').toggleClass('dashicons-arrow-down-alt2 dashicons-arrow-up-alt2');\n        return false;\n      });\n      $('body').on('click', '.shipment_order_item_select', function () {\n        var order_item_id = $(this).data('order_item_id');\n        $('.shipping_order_item_qty_' + order_item_id).toggle();\n      }); //saving shipping status tracking info\n\n      $('body').on('click', '#add-tracking-status-details', this.insertShippingStatusTrackingInfo);\n      $('body').on('click', '#update-tracking-status-details', this.updateShippingStatusTrackingInfo);\n    },\n    insertShippingStatusTrackingInfo: function insertShippingStatusTrackingInfo(e) {\n      e.preventDefault();\n      $('#add-tracking-status-details').prop('disabled', true);\n      $('#shipment-update-response-area').html('');\n      $('#shipment-update-response-area').removeClass('dokan-alert dokan-alert-success dokan-alert-warning'); // Get line item shippments\n\n      var item_qty = {};\n      var item_id = {};\n      $('.shipping-tracking input.shipping_order_item_qty').each(function (index, item) {\n        if ($(item).closest('tr').data('shipping_order_item_id')) {\n          var order_item_id = $(item).closest('tr').data('shipping_order_item_id');\n\n          if (item.value && $('#shipment_order_item_select_' + order_item_id).is(\":checked\")) {\n            item_qty[order_item_id] = item.value;\n          }\n        }\n      });\n      item_id = $('input[name=\"shipping_order_item_id[]\"]').map(function () {\n        if (this.value && $('#shipment_order_item_select_' + this.value).is(\":checked\")) {\n          return this.value;\n        }\n      }).get();\n      var shipping_tracking_info = {\n        shipping_provider: $('#shipping_status_provider').val(),\n        shipping_number: $('#tracking_status_number').val(),\n        shipped_date: $('#shipped_status_date').val(),\n        shipped_status: $('#shipping_status').val(),\n        is_notify: $('#shipped_status_is_notify').is(\":checked\") ? $('#shipped_status_is_notify').val() : 'off',\n        action: $('#action').val(),\n        post_id: $('#post-id').val(),\n        security: $('#security').val(),\n        other_provider: $('#tracking_status_other_provider').val(),\n        other_p_url: $('#tracking_status_other_p_url').val(),\n        shipment_comments: $('#tracking_status_comments').val(),\n        item_id: JSON.stringify(item_id, null, ''),\n        item_qty: JSON.stringify(item_qty, null, '')\n      };\n      $('#dokan-order-shipping-status-tracking').block({\n        message: null,\n        overlayCSS: {\n          background: '#fff url(' + dokan.ajax_loader + ') no-repeat center',\n          opacity: 0.6\n        }\n      });\n      $.post(dokan.ajaxurl, shipping_tracking_info, function (response) {\n        if (response) {\n          $('#shipment-update-response-area').html(response);\n          $('#shipment-update-response-area').addClass('dokan-alert dokan-alert-success');\n        } else {\n          $('#shipment-update-response-area').html(dokan.shipment_status_error_msg);\n          $('#shipment-update-response-area').addClass('dokan-alert dokan-alert-warning');\n        }\n\n        $('#dokan-order-shipping-status-tracking').unblock();\n\n        if (response) {\n          location.reload();\n        }\n\n        $('#add-tracking-status-details').prop('disabled', false);\n      });\n      return false;\n    },\n    updateShippingStatusTrackingInfo: function updateShippingStatusTrackingInfo(e) {\n      e.preventDefault();\n      var shipment_id = $(this).data('shipment_id');\n      $('#shipment-update-response-area_' + shipment_id).html('');\n\n      var shipping_tracking_info = (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n        shipped_status: $('#update_shipping_status_' + shipment_id).val(),\n        shipping_provider: $('#update_shipping_provider_' + shipment_id).val(),\n        shipped_status_date: $('#shipped_status_date_' + shipment_id).val(),\n        tracking_status_number: $('#tracking_status_number_' + shipment_id).val(),\n        status_other_provider: $('#tracking_status_other_provider_' + shipment_id).val(),\n        status_other_p_url: $('#tracking_status_other_p_url_' + shipment_id).val(),\n        shipment_comments: $('#tracking_status_comments_' + shipment_id).val(),\n        is_notify: $('#shipment_update_is_notify_' + shipment_id).is(\":checked\") ? $('#shipment_update_is_notify_' + shipment_id).val() : 'off',\n        action: 'dokan_update_shipping_status_tracking_info',\n        shipment_id: shipment_id,\n        post_id: $('#post-id').val(),\n        security: $('#security_update').val()\n      }, \"security\", $('#security_update').val());\n\n      $('.shipment_id_' + shipment_id).block({\n        message: null,\n        overlayCSS: {\n          background: '#fff url(' + dokan.ajax_loader + ') no-repeat center',\n          opacity: 0.6\n        }\n      });\n      $.post(dokan.ajaxurl, shipping_tracking_info, function (response) {\n        $('.shipment_id_' + shipment_id).unblock();\n\n        if (response) {\n          $('.status_label_' + shipment_id).html(response);\n          $('#tracking_status_comments_' + shipment_id).val('');\n          $('#shipment-update-response-area_' + shipment_id).html(dokan.shipment_status_update_msg);\n          setTimeout(function () {\n            $('#shipment-update-response-area_' + shipment_id).html('');\n          }, 3000);\n\n          if (response == 'Delivered' || response == 'Cancelled') {\n            location.reload();\n          }\n        }\n      });\n      return false;\n    }\n  };\n  dokan_shipping_status_tracking_order_items.init();\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/orders.js?");

/***/ }),

/***/ "./assets/src/js/product-bulk-edit.js":
/*!********************************************!*\
  !*** ./assets/src/js/product-bulk-edit.js ***!
  \********************************************/
/***/ (() => {

eval(";\n\n(function ($) {\n  var Dokan_Bulk_Edit = {\n    handleInput: function handleInput(idValue, id) {\n      if ($(idValue).val() !== '') {\n        $(id).removeClass('dokan-hide');\n      } else {\n        $(id).addClass('dokan-hide');\n      }\n    },\n    init: function init() {\n      var self = this; // Bulk edit\n\n      $('#bulk-product-action').on('click', function (e) {\n        // Stop bulk action if current vendor is not enabled.\n        if (!dokan.is_vendor_enabled) {\n          e.preventDefault();\n          return dokan_sweetalert(dokan.not_enable_message, {\n            icon: 'error'\n          });\n        }\n\n        if ('edit' === $('#bulk-product-action-selector').val()) {\n          e.preventDefault();\n          var product_name = $('input[name=\"bulk_products[]\"]:checked').map(function (index) {\n            return '<label class=\\'uncheck-product\\'><span class=\\'dokan-cross dashicons dashicons-dismiss\\'></span> <input class=\\'uncheck-product-id\\' checked type=\\'checkbox\\' value=\\'' + $(this).val() + '\\' name=\\'products_id[]\\' /> ' + $(this).data('product-name') + '</label>';\n          }).get();\n          var checkedValue = $('input[name=\"bulk_products[]\"]:checked').map(function () {\n            return $(this).val();\n          }).get();\n\n          if (checkedValue.length !== 0) {\n            $('#bulk-edit').removeClass('dokan-hide');\n            $('#products_id').val(checkedValue);\n            $('#bulk-product-list').html(product_name);\n          } else {\n            $('#bulk-edit').addClass('dokan-hide');\n          }\n        }\n      });\n      $('#change_regular_price').on('change', function (e) {\n        self.handleInput('#change_regular_price', '#dokan_bulk_regular_price');\n      });\n      $('#change_sale_price').on('change', function (e) {\n        self.handleInput('#change_sale_price', '#dokan_bulk_sale_price');\n      });\n      $('#change_weight').on('change', function (e) {\n        self.handleInput('#change_weight', '#_weight');\n      });\n      $('#change_stock').on('change', function (e) {\n        self.handleInput('#change_stock', '#_stock');\n      });\n      $('#change_dimensions').on('change', function (e) {\n        self.handleInput('#change_dimensions', '#_length');\n        self.handleInput('#change_dimensions', '#_width');\n        self.handleInput('#change_dimensions', '#_height');\n      });\n      $('.inline-edit-cancel').on('click', function (e) {\n        e.preventDefault();\n        $('#bulk-edit').addClass('dokan-hide');\n      });\n      $('.dokan-product-listing-area').on('click', '.uncheck-product', function (e) {\n        e.preventDefault();\n        var unchecked_product_id = $(this).find('input:checkbox').val();\n        $('input[name=\"bulk_products[]\"]:checked').map(function () {\n          if (unchecked_product_id === $(this).val()) {\n            $(this).prop('checked', false);\n          }\n        });\n        $(this).remove();\n      });\n    }\n  };\n  Dokan_Bulk_Edit.init();\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/product-bulk-edit.js?");

/***/ }),

/***/ "./assets/src/js/product-variation.js":
/*!********************************************!*\
  !*** ./assets/src/js/product-variation.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/* global wp, dokan, dokan_refund, accounting */\njQuery(function ($) {\n  /**\n   * Variations actions\n   */\n  var Dokan_Product_Variation_Actions = {\n    /**\n     * Initialize variations actions\n     */\n    init: function init() {\n      $('#dokan-variable-product-options').on('change', 'input.variable_is_downloadable', this.variable_is_downloadable).on('change', 'input.variable_is_virtual', this.variable_is_virtual).on('change', 'input.variable_manage_stock', this.variable_manage_stock).on('click', '.expand_all', this.expand_all).on('click', '.close_all', this.close_all) // .on( 'click', 'button.notice-dismiss', this.notice_dismiss )\n      .on('click', '.dokan-product-variation-itmes .sort', this.set_menu_order).on('reload', this.reload);\n      $('input.variable_is_downloadable, input.variable_is_virtual, input.variable_manage_stock').trigger('change');\n      $('.dokan-product-variation-wrapper').on('dokan_variations_loaded', this.variations_loaded);\n      $(document.body).on('dokan_variations_added', this.variation_added);\n      this.variation_toggle_init();\n    },\n\n    /**\n     * Reload UI\n     *\n     * @param {Object} event\n     * @param {Int} qty\n     */\n    reload: function reload() {\n      Dokan_Product_Variation_Ajax.load_variations(1);\n      Dokan_Product_Variation_PageNav.set_paginav(0);\n    },\n\n    /**\n     * Check if variation is downloadable and show/hide elements\n     */\n    variable_is_downloadable: function variable_is_downloadable() {\n      $(this).closest('.dokan-product-variation-itmes').find('.show_if_variation_downloadable').hide();\n\n      if ($(this).is(':checked')) {\n        $(this).closest('.dokan-product-variation-itmes').find('.show_if_variation_downloadable').show();\n      }\n    },\n\n    /**\n     * Check if variation is virtual and show/hide elements\n     */\n    variable_is_virtual: function variable_is_virtual() {\n      $(this).closest('.dokan-product-variation-itmes').find('.hide_if_variation_virtual').show();\n\n      if ($(this).is(':checked')) {\n        $(this).closest('.dokan-product-variation-itmes').find('.hide_if_variation_virtual').hide();\n      }\n    },\n\n    /**\n     * Check if variation manage stock and show/hide elements\n     */\n    variable_manage_stock: function variable_manage_stock() {\n      $(this).closest('.dokan-product-variation-itmes').find('.show_if_variation_manage_stock').hide();\n\n      if ($(this).is(':checked')) {\n        $(this).closest('.dokan-product-variation-itmes').find('.show_if_variation_manage_stock').show();\n      }\n    },\n    expand_all: function expand_all(e) {\n      $(this).closest('#dokan-variable-product-options-inner').find('.dokan-product-variation-itmes > .dokan-variable-attributes').show();\n      return false;\n    },\n    close_all: function close_all(e) {\n      $(this).closest('#dokan-variable-product-options-inner').find('.dokan-product-variation-itmes > .dokan-variable-attributes').hide();\n      return false;\n    },\n    variation_toggle_init: function variation_toggle_init() {\n      $('.dokan-attribute-variation-options').on('click', 'h3.variation-topbar-heading', function (e) {\n        e.preventDefault();\n        var self = $(this);\n        self.closest('.dokan-product-variation-itmes').find('.dokan-variable-attributes').slideToggle(300, function () {\n          if ($(this).is(':visible')) {\n            self.closest('.dokan-product-variation-itmes').find('i.fa-sort-desc').removeClass('fa-flip-horizointal').addClass('fa-flip-vertical');\n          } else {\n            self.closest('.dokan-product-variation-itmes').find('i.fa-sort-desc').removeClass('fa-flip-vertical').addClass('fa-flip-horizointal');\n          }\n        });\n      });\n      $('.dokan-attribute-variation-options').on('click', '.toggle-variation-content', function (e) {\n        e.preventDefault();\n        var self = $(this);\n        self.closest('.dokan-product-variation-itmes').find('.dokan-variable-attributes').slideToggle(300, function () {\n          if ($(this).is(':visible')) {\n            self.removeClass('fa-flip-horizointal').addClass('fa-flip-vertical');\n          } else {\n            self.removeClass('fa-flip-vertical').addClass('fa-flip-horizointal');\n          }\n        });\n        return false;\n      });\n    },\n\n    /**\n     * Run actions when variations is loaded\n     *\n     * @param {Object} event\n     * @param {Int} needsUpdate\n     */\n    variations_loaded: function variations_loaded(event, needsUpdate) {\n      needsUpdate = needsUpdate || false;\n      var wrapper = $('.dokan-attribute-variation-options');\n\n      if (!needsUpdate) {\n        // Show/hide downloadable, virtual and stock fields\n        $('input.variable_is_downloadable, input.variable_is_virtual, input.variable_manage_stock', wrapper).trigger('change'); // Open sale schedule fields when have some sale price date\n\n        $('.dokan-product-variation-itmes', wrapper).each(function (index, el) {\n          var $el = $(el),\n              date_from = $('.sale_price_dates_from', $el).val(),\n              date_to = $('.sale_price_dates_to', $el).val();\n\n          if ('' !== date_from || '' !== date_to) {\n            $('a.sale_schedule', $el).trigger('click');\n          }\n        }); // Remove variation-needs-update classes\n\n        $('.dokan-variations-container .variation-needs-update', wrapper).removeClass('variation-needs-update'); // Disable cancel and save buttons\n\n        $('button.cancel-variation-changes, button.save-variation-changes', wrapper).attr('disabled', 'disabled');\n      }\n\n      $('.tips').tooltip(); // disable saving button for variable product\n\n      function dokan_disable_variable_saving_button($element) {\n        if (Number($element.closest('.variable_pricing').find('span.vendor-price').text()) < 0) {\n          $element.closest('.variable_pricing').find('.save-variation-changes').attr('disabled', 'disabled');\n          $element.closest('.variable_pricing').find('.dokan-product-less-price-alert').removeClass('dokan-hide');\n          $('input[type=submit]').attr('disabled', 'disabled');\n        } else {\n          $element.closest('.variable_pricing').find('.dokan-product-less-price-alert').addClass('dokan-hide');\n          $element.closest('.variable_pricing').find('.save-variation-changes').removeAttr('disabled');\n          $('input[type=submit]').removeAttr('disabled');\n        }\n      } // variable product price error checking\n\n\n      function dokan_show_variable_product_earning_suggestion(callback) {\n        var selectedCategoryWrapper = $('select#product_cat').find('option:selected');\n\n        if (selectedCategoryWrapper.data('commission') != '') {\n          var commission = selectedCategoryWrapper.data('commission');\n          var product_id = selectedCategoryWrapper.data('product-id');\n        } else {\n          var commission = $('span.vendor-earning').data('commission');\n          var product_id = $('span.vendor-earning').data('product-id');\n        }\n\n        if ($('input.dokan-product-sales-price-variable').val() == '') {\n          $('input.dokan-product-regular-price-variable').each(function (i, elm) {\n            var $element = $(elm);\n            var earning_suggestion = $element.closest('.content-half-part').find('span.vendor-price');\n            var sale_price = $(this).closest(elm).val();\n            earning_suggestion.html('Calculating');\n            $.get(dokan.ajaxurl, {\n              action: 'get_vendor_earning',\n              product_id: product_id,\n              product_price: sale_price,\n              _wpnonce: dokan.nonce\n            }).done(function (response) {\n              earning_suggestion.html(response);\n              dokan_disable_variable_saving_button($element);\n\n              if (typeof callback === 'function') {\n                callback();\n              }\n            });\n          });\n        } else {\n          $('input.dokan-product-sales-price-variable').each(function (i, elm) {\n            var $element = $(elm);\n            var earning_suggestion = $element.closest('.variable_pricing').find('span.vendor-price');\n            var sale_price = $(this).closest(elm).val();\n            earning_suggestion.html('Calculating');\n            $.get(dokan.ajaxurl, {\n              action: 'get_vendor_earning',\n              product_id: product_id,\n              product_price: sale_price ? sale_price : 0,\n              _wpnonce: dokan.nonce\n            }).done(function (response) {\n              earning_suggestion.html(response);\n              dokan_disable_variable_saving_button($element);\n\n              if (typeof callback === 'function') {\n                callback();\n              }\n            });\n            dokan_disable_variable_saving_button($element);\n          });\n        }\n      }\n\n      $(\"input.dokan-product-regular-price-variable, input.dokan-product-sales-price-variable\").on('keyup', _.debounce(function () {\n        dokan_show_variable_product_earning_suggestion();\n      }, 750)); // Datepicker fields\n\n      $('.dokan-start-date').datepicker({\n        defaultDate: '',\n        dateFormat: 'yy-mm-dd',\n        numberOfMonths: 1,\n        onSelect: function onSelect(selectedDate) {\n          var date = new Date(selectedDate);\n          date.setDate(date.getDate() + 1);\n          $('.dokan-end-date').datepicker('option', {\n            minDate: date\n          });\n        }\n      });\n      $('.dokan-end-date').datepicker({\n        defaultDate: '',\n        dateFormat: 'yy-mm-dd',\n        numberOfMonths: 1,\n        onSelect: function onSelect(selectedDate) {\n          var date = new Date(selectedDate);\n          date.setDate(date.getDate() - 1);\n          $('dokan-start-date').datepicker('option', {\n            maxDate: date\n          });\n        }\n      }); // Allow sorting\n\n      $('.dokan-variations-container', wrapper).sortable({\n        items: '.dokan-product-variation-itmes',\n        cursor: 'move',\n        axis: 'y',\n        handle: '.sort',\n        scrollSensitivity: 40,\n        forcePlaceholderSize: true,\n        helper: 'clone',\n        opacity: 0.65,\n        stop: function stop() {\n          Dokan_Product_Variation_Actions.variation_row_indexes();\n        }\n      });\n    },\n\n    /**\n     * Run actions when added a variation\n     *\n     * @param {Object} event\n     * @param {Int} qty\n     */\n    variation_added: function variation_added(event, qty) {\n      if (1 === qty) {\n        Dokan_Product_Variation_Actions.variations_loaded(null, true);\n      }\n    },\n\n    /**\n     * Lets the user manually input menu order to move items around pages\n     */\n    set_menu_order: function () {\n      var _set_menu_order = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(event) {\n        var $menu_order, result, value;\n        return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                event.preventDefault();\n                $menu_order = $(this).closest('.dokan-product-variation-itmes').find('.variation_menu_order');\n                _context.next = 4;\n                return dokan_sweetalert(dokan.i18n_enter_menu_order, {\n                  action: 'prompt',\n                  input: 'number',\n                  inputValue: $menu_order.val()\n                });\n\n              case 4:\n                result = _context.sent;\n                value = result.value;\n\n                if (value != null) {\n                  // Set value, save changes and reload view\n                  $menu_order.val(parseInt(value, 10)).trigger('change');\n                  Dokan_Product_Variation_Ajax.save_variations();\n                }\n\n              case 7:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee, this);\n      }));\n\n      function set_menu_order(_x) {\n        return _set_menu_order.apply(this, arguments);\n      }\n\n      return set_menu_order;\n    }(),\n\n    /**\n     * Set menu order\n     */\n    variation_row_indexes: function variation_row_indexes() {\n      var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container'),\n          current_page = parseInt(wrapper.attr('data-page'), 10),\n          offset = parseInt((current_page - 1) * dokan.variations_per_page, 10);\n      $('.dokan-variations-container .dokan-product-variation-itmes').each(function (index, el) {\n        $('.variation_menu_order', el).val(parseInt($(el).index('.dokan-variations-container .dokan-product-variation-itmes'), 10) + 1 + offset).trigger('change');\n      });\n    }\n  };\n  /**\n   * Product variations metabox ajax methods\n   */\n\n  var Dokan_Product_Variation_Ajax = {\n    /**\n     * Initialize variations ajax methods\n     */\n    init: function init() {\n      this.load_variations();\n      this.initial_load();\n      $('#dokan-variable-product-options').on('click', 'button.save-variation-changes', this.save_variations).on('click', 'button.cancel-variation-changes', this.cancel_variations).on('click', '.remove_variation', this.remove_variation);\n      $(document.body).on('change', '#dokan-variable-product-options .dokan-variations-container :input', this.input_changed).on('change', '.dokan-variations-defaults select', this.defaults_changed);\n      $('form.dokan-product-edit-form').on('submit', this.save_on_submit);\n      $('#dokan-variable-product-options').on('click', 'a.do_variation_action', this.do_variation_action);\n    },\n\n    /**\n     * Check if have some changes before leave the page\n     *\n     * @return {Bool}\n     */\n    check_for_changes: function () {\n      var _check_for_changes = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee2() {\n        var need_update, isEditVariation;\n        return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee2$(_context2) {\n          while (1) {\n            switch (_context2.prev = _context2.next) {\n              case 0:\n                need_update = $('#dokan-variable-product-options').find('.dokan-variations-container .variation-needs-update');\n\n                if (!(0 < need_update.length)) {\n                  _context2.next = 11;\n                  break;\n                }\n\n                _context2.next = 4;\n                return dokan_sweetalert(dokan.i18n_edited_variations, {\n                  action: 'confirm',\n                  icon: 'warning'\n                });\n\n              case 4:\n                isEditVariation = _context2.sent;\n\n                if (!('undefined' !== isEditVariation && isEditVariation.isConfirmed)) {\n                  _context2.next = 9;\n                  break;\n                }\n\n                Dokan_Product_Variation_Ajax.save_changes();\n                _context2.next = 11;\n                break;\n\n              case 9:\n                need_update.removeClass('variation-needs-update');\n                return _context2.abrupt(\"return\", false);\n\n              case 11:\n                return _context2.abrupt(\"return\", true);\n\n              case 12:\n              case \"end\":\n                return _context2.stop();\n            }\n          }\n        }, _callee2);\n      }));\n\n      function check_for_changes() {\n        return _check_for_changes.apply(this, arguments);\n      }\n\n      return check_for_changes;\n    }(),\n\n    /**\n     * Block edit screen\n     */\n    block: function block() {\n      $('.dokan-product-variation-wrapper').block({\n        message: null,\n        fadeIn: 100,\n        fadeOut: 2000,\n        overlayCSS: {\n          background: '#fff',\n          opacity: 0.6\n        }\n      });\n    },\n\n    /**\n     * Unblock edit screen\n     */\n    unblock: function unblock() {\n      $('.dokan-product-variation-wrapper').unblock();\n    },\n\n    /**\n     * Initial load variations\n     *\n     * @return {Bool}\n     */\n    initial_load: function initial_load() {\n      if (0 === $('#dokan-variable-product-options').find('.dokan-variations-container .dokan-product-variation-itmes').length) {\n        Dokan_Product_Variation_PageNav.go_to_page();\n      }\n    },\n\n    /**\n     * Load variations via Ajax\n     *\n     * @param {Int} page (default: 1)\n     * @param {Int} per_page (default: 10)\n     */\n    load_variations: function load_variations(page, per_page) {\n      page = page || 1;\n      per_page = per_page || dokan.variations_per_page;\n      var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container');\n      Dokan_Product_Variation_Ajax.block();\n      $.ajax({\n        url: dokan.ajaxurl,\n        data: {\n          action: 'dokan_load_variations',\n          security: dokan.load_variations_nonce,\n          product_id: $('#dokan-edit-product-id').val(),\n          attributes: wrapper.data('attributes'),\n          page: page,\n          per_page: per_page\n        },\n        type: 'POST',\n        success: function success(response) {\n          wrapper.empty().append(response).attr('data-page', page);\n          $('.dokan-product-variation-wrapper').trigger('dokan_variations_loaded'); // $( '.dokan-product-variation-wrapper' ).trigger( 'dokan_variations_toggle_init' );\n\n          Dokan_Product_Variation_Ajax.unblock();\n        }\n      });\n    },\n\n    /**\n     * Ger variations fields and convert to object\n     *\n     * @param  {Object} fields\n     *\n     * @return {Object}\n     */\n    get_variations_fields: function get_variations_fields(fields) {\n      var data = $(':input', fields).serializeJSON();\n      $('.dokan-variations-defaults select').each(function (index, element) {\n        var select = $(element);\n        data[select.attr('name')] = select.val();\n      });\n      return data;\n    },\n\n    /**\n     * Save variations changes\n     *\n     * @param {Function} callback Called once saving is complete\n     */\n    save_changes: function save_changes(callback) {\n      var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container'),\n          need_update = $('.variation-needs-update', wrapper),\n          data = {}; // Save only with products need update.\n\n      if (0 < need_update.length) {\n        Dokan_Product_Variation_Ajax.block();\n        data = Dokan_Product_Variation_Ajax.get_variations_fields(need_update);\n        data.action = 'dokan_save_variations';\n        data.security = dokan.save_variations_nonce;\n        data.product_id = $('#dokan-edit-product-id').val();\n        data['product_type'] = $('#product_type').val();\n        $.ajax({\n          url: dokan.ajaxurl,\n          data: data,\n          type: 'POST',\n          success: function success(response) {\n            // Allow change page, delete and add new variations\n            need_update.removeClass('variation-needs-update');\n            $('button.cancel-variation-changes, button.save-variation-changes').attr('disabled', 'disabled');\n            $('.dokan-product-variation-wrapper').trigger('dokan_variations_saved');\n\n            if (typeof callback === 'function') {\n              callback(response);\n            }\n\n            Dokan_Product_Variation_Ajax.unblock();\n          }\n        });\n      }\n    },\n\n    /**\n     * Save variations\n     *\n     * @return {Bool}\n     */\n    save_variations: function save_variations() {\n      $('#dokan-variable-product-options').trigger('dokan_variations_save_variations_button');\n      Dokan_Product_Variation_Ajax.save_changes(function (error) {\n        var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container'),\n            current = wrapper.attr('data-page');\n        $('#dokan-variable-product-options').find('#dokan_errors').remove();\n\n        if (error) {\n          wrapper.before(error);\n        }\n\n        $('.dokan-variations-defaults select').each(function () {\n          $(this).attr('data-current', $(this).val());\n        });\n        Dokan_Product_Variation_PageNav.go_to_page(current);\n      });\n      return false;\n    },\n\n    /**\n     * Save on post form submit\n     */\n    save_on_submit: function save_on_submit(e) {\n      var need_update = $('#dokan-variable-product-options').find('.dokan-variations-container .variation-needs-update');\n\n      if (0 < need_update.length) {\n        e.preventDefault();\n        $('#dokan-variable-product-options').trigger('dokan_variations_save_variations_on_submit');\n        Dokan_Product_Variation_Ajax.save_changes(Dokan_Product_Variation_Ajax.save_on_submit_done);\n      }\n    },\n\n    /**\n     * After saved, continue with form submission\n     */\n    save_on_submit_done: function save_on_submit_done() {\n      $('form.dokan-product-edit-form').submit();\n    },\n\n    /**\n     * Discart changes.\n     *\n     * @return {Bool}\n     */\n    cancel_variations: function cancel_variations() {\n      var current = parseInt($('#dokan-variable-product-options').find('.dokan-variations-container').attr('data-page'), 10);\n      $('#dokan-variable-product-options').find('.dokan-variations-container .variation-needs-update').removeClass('variation-needs-update');\n      $('.dokan-variations-defaults select').each(function () {\n        $(this).val($(this).attr('data-current'));\n      });\n      Dokan_Product_Variation_PageNav.go_to_page(current);\n      return false;\n    },\n\n    /**\n     * Add variation\n     *\n     * @return {Bool}\n     */\n    add_variation: function add_variation() {\n      Dokan_Product_Variation_Ajax.block();\n      var data = {\n        action: 'dokan_add_variation',\n        post_id: $('#dokan-edit-product-id').val(),\n        loop: $('.dokan-product-variation-itmes').length,\n        security: dokan.add_variation_nonce\n      };\n      $.post(dokan.ajaxurl, data, function (response) {\n        var variation = $(response);\n        variation.addClass('variation-needs-update');\n        $('#dokan-variable-product-options').find('.dokan-variations-container').prepend(variation);\n        $('button.cancel-variation-changes, button.save-variation-changes').removeAttr('disabled');\n        $('.dokan-product-variation-wrapper').trigger('dokan_variations_added', 1);\n        var product_type = $('#product_type').val();\n        var is_virtual = $('input#_virtual:checked').length;\n        var is_downloadable = $('input#_downloadable:checked').length; // Hide/Show all with rules.\n\n        var hide_classes = '.hide_if_downloadable, .hide_if_virtual';\n        var show_classes = '.show_if_downloadable, .show_if_virtual';\n        $.each(['simple', 'external', 'variable', 'grouped', 'subscription', 'variable-subscription'], function (index, value) {\n          hide_classes = hide_classes + ', .hide_if_' + value;\n          show_classes = show_classes + ', .show_if_' + value;\n        });\n        $(hide_classes).show();\n        $(show_classes).hide();\n        $('.show_if_' + product_type).show();\n        $('.hide_if_' + product_type).hide();\n        $('input.variable_is_virtual').trigger('change');\n        Dokan_Product_Variation_Ajax.unblock();\n      });\n      return false;\n    },\n\n    /**\n     * Remove variation\n     *\n     * @return {Bool}\n     */\n    remove_variation: function () {\n      var _remove_variation = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee3(e) {\n        var isRemoved, variation, variation_ids, data;\n        return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee3$(_context3) {\n          while (1) {\n            switch (_context3.prev = _context3.next) {\n              case 0:\n                e.preventDefault();\n                Dokan_Product_Variation_Ajax.check_for_changes();\n                _context3.next = 4;\n                return dokan_sweetalert(dokan.i18n_remove_variation, {\n                  action: 'confirm',\n                  icon: 'warning'\n                });\n\n              case 4:\n                isRemoved = _context3.sent;\n\n                if ('undefined' !== isRemoved && isRemoved.isConfirmed) {\n                  variation = $(this).attr('rel'), variation_ids = [], data = {\n                    action: 'dokan_remove_variation'\n                  };\n                  Dokan_Product_Variation_Ajax.block();\n\n                  if (0 < variation) {\n                    variation_ids.push(variation);\n                    data.variation_ids = variation_ids;\n                    data.security = dokan.delete_variations_nonce;\n                    $.post(dokan.ajaxurl, data, function () {\n                      var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container'),\n                          current_page = parseInt(wrapper.attr('data-page'), 10),\n                          total_pages = Math.ceil((parseInt(wrapper.attr('data-total'), 10) - 1) / dokan.variations_per_page),\n                          page = 1;\n                      $('.dokan-product-variation-wrapper').trigger('dokan_variations_removed');\n\n                      if (current_page === total_pages || current_page <= total_pages) {\n                        page = current_page;\n                      } else if (current_page > total_pages && 0 !== total_pages) {\n                        page = total_pages;\n                      }\n\n                      Dokan_Product_Variation_PageNav.go_to_page(page, -1);\n                    });\n                  } else {\n                    Dokan_Product_Variation_Ajax.unblock();\n                  }\n                }\n\n                return _context3.abrupt(\"return\", false);\n\n              case 7:\n              case \"end\":\n                return _context3.stop();\n            }\n          }\n        }, _callee3, this);\n      }));\n\n      function remove_variation(_x2) {\n        return _remove_variation.apply(this, arguments);\n      }\n\n      return remove_variation;\n    }(),\n\n    /**\n     * Link all variations (or at least try :p)\n     *\n     * @return {Bool}\n     */\n    link_all_variations: function () {\n      var _link_all_variations = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee4() {\n        var isAllVariation, data;\n        return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee4$(_context4) {\n          while (1) {\n            switch (_context4.prev = _context4.next) {\n              case 0:\n                Dokan_Product_Variation_Ajax.check_for_changes();\n                _context4.next = 3;\n                return dokan_sweetalert(dokan.i18n_link_all_variations, {\n                  action: 'confirm',\n                  icon: 'warning'\n                });\n\n              case 3:\n                isAllVariation = _context4.sent;\n\n                if ('undefined' !== isAllVariation && isAllVariation.isConfirmed) {\n                  Dokan_Product_Variation_Ajax.block();\n                  data = {\n                    action: 'dokan_link_all_variations',\n                    post_id: $('#dokan-edit-product-id').val(),\n                    security: dokan.link_variation_nonce\n                  };\n                  $.post(dokan.ajaxurl, data, function (response) {\n                    var count = parseInt(response, 10);\n\n                    if (1 === count) {\n                      dokan_sweetalert(count + ' ' + dokan.i18n_variation_added, {\n                        icon: 'info'\n                      });\n                    } else if (0 === count || count > 1) {\n                      dokan_sweetalert(count + ' ' + dokan.i18n_variation_added, {\n                        icon: 'info'\n                      });\n                    } else {\n                      dokan_sweetalert(dokan.i18n_no_variations_added, {\n                        icon: 'info'\n                      });\n                    }\n\n                    if (count > 0) {\n                      Dokan_Product_Variation_PageNav.go_to_page(1, count);\n                      $('.dokan-product-variation-wrapper').trigger('dokan_variations_added', count);\n                    } else {\n                      Dokan_Product_Variation_Ajax.unblock();\n                    }\n                  });\n                }\n\n                return _context4.abrupt(\"return\", false);\n\n              case 6:\n              case \"end\":\n                return _context4.stop();\n            }\n          }\n        }, _callee4);\n      }));\n\n      function link_all_variations() {\n        return _link_all_variations.apply(this, arguments);\n      }\n\n      return link_all_variations;\n    }(),\n\n    /**\n     * Add new class when have changes in some input\n     */\n    input_changed: function input_changed() {\n      $(this).closest('.dokan-product-variation-itmes').addClass('variation-needs-update');\n      $('button.cancel-variation-changes, button.save-variation-changes').removeAttr('disabled');\n      $('.dokan-product-variation-wrapper').trigger('dokan_variations_input_changed');\n    },\n\n    /**\n     * Added new .variation-needs-update class when defaults is changed\n     */\n    defaults_changed: function defaults_changed() {\n      $(this).closest('#dokan-variable-product-options').find('.dokan-product-variation-itmes:first').addClass('variation-needs-update');\n      $('button.cancel-variation-changes, button.save-variation-changes').removeAttr('disabled');\n      $('#dokan-variable-product-options').trigger('dokan_variations_defaults_changed');\n    },\n\n    /**\n     * Actions\n     */\n    do_variation_action: function () {\n      var _do_variation_action = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee5() {\n        var do_variation_action, data, changes, value, variable_product, isDelAll, isConfirm, result;\n        return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee5$(_context5) {\n          while (1) {\n            switch (_context5.prev = _context5.next) {\n              case 0:\n                do_variation_action = $('select.variation-actions').val(), data = {}, changes = 0;\n                variable_product = $('.variable_product_wise_activation');\n                _context5.t0 = do_variation_action;\n                _context5.next = _context5.t0 === 'add_variation' ? 5 : _context5.t0 === 'link_all_variations' ? 7 : _context5.t0 === 'delete_all' ? 9 : _context5.t0 === 'variable_regular_price_increase' ? 18 : _context5.t0 === 'variable_regular_price_decrease' ? 18 : _context5.t0 === 'variable_sale_price_increase' ? 18 : _context5.t0 === 'variable_sale_price_decrease' ? 18 : _context5.t0 === 'variable_regular_price' ? 24 : _context5.t0 === 'variable_sale_price' ? 24 : _context5.t0 === 'variable_stock' ? 24 : _context5.t0 === 'variable_weight' ? 24 : _context5.t0 === 'variable_length' ? 24 : _context5.t0 === 'variable_width' ? 24 : _context5.t0 === 'variable_height' ? 24 : _context5.t0 === 'variable_download_limit' ? 24 : _context5.t0 === 'variable_download_expiry' ? 24 : _context5.t0 === 'variable_sale_schedule' ? 30 : _context5.t0 === 'variable_min_quantity' ? 41 : _context5.t0 === 'variable_max_quantity' ? 41 : _context5.t0 === 'variable_min_amount' ? 41 : _context5.t0 === 'variable_max_amount' ? 41 : _context5.t0 === 'min_max_deactivate_for_all' ? 53 : 56;\n                break;\n\n              case 5:\n                Dokan_Product_Variation_Ajax.add_variation();\n                return _context5.abrupt(\"return\");\n\n              case 7:\n                Dokan_Product_Variation_Ajax.link_all_variations();\n                return _context5.abrupt(\"return\");\n\n              case 9:\n                _context5.next = 11;\n                return dokan_sweetalert(dokan.i18n_delete_all_variations, {\n                  action: 'confirm',\n                  icon: 'warning'\n                });\n\n              case 11:\n                isDelAll = _context5.sent;\n\n                if (!('undefined' !== isDelAll && isDelAll.isConfirmed)) {\n                  _context5.next = 17;\n                  break;\n                }\n\n                _context5.next = 15;\n                return dokan_sweetalert(dokan.i18n_last_warning, {\n                  action: 'confirm',\n                  icon: 'warning'\n                });\n\n              case 15:\n                isConfirm = _context5.sent;\n\n                if ('undefined' !== isConfirm && isConfirm.isConfirmed) {\n                  data.allowed = true;\n                  changes = parseInt($('#dokan-variable-product-options').find('.dokan-variations-container').attr('data-total'), 10) * -1;\n                }\n\n              case 17:\n                return _context5.abrupt(\"break\", 59);\n\n              case 18:\n                _context5.next = 20;\n                return dokan_sweetalert(dokan.i18n_enter_a_value_fixed_or_percent, {\n                  action: 'prompt',\n                  input: 'text'\n                });\n\n              case 20:\n                result = _context5.sent;\n                value = result.value;\n\n                if (value != null) {\n                  if (value.indexOf('%') >= 0) {\n                    data.value = accounting.unformat(value.replace(/\\%/, ''), dokan_refund.mon_decimal_point) + '%';\n                  } else {\n                    data.value = accounting.unformat(value, dokan_refund.mon_decimal_point);\n                  }\n                }\n\n                return _context5.abrupt(\"break\", 59);\n\n              case 24:\n                _context5.next = 26;\n                return dokan_sweetalert(dokan.i18n_enter_a_value, {\n                  action: 'prompt',\n                  input: 'text'\n                });\n\n              case 26:\n                result = _context5.sent;\n                value = result.value;\n\n                if (value != null) {\n                  data.value = value;\n                }\n\n                return _context5.abrupt(\"break\", 59);\n\n              case 30:\n                _context5.next = 32;\n                return dokan_sweetalert(dokan.i18n_scheduled_sale_start, {\n                  action: 'prompt',\n                  input: 'text'\n                });\n\n              case 32:\n                result = _context5.sent;\n                data.date_from = result.value;\n                _context5.next = 36;\n                return dokan_sweetalert(dokan.i18n_scheduled_sale_end, {\n                  action: 'prompt',\n                  input: 'text'\n                });\n\n              case 36:\n                result = _context5.sent;\n                data.date_to = result.value;\n\n                if (null === data.date_from) {\n                  data.date_from = false;\n                }\n\n                if (null === data.date_to) {\n                  data.date_to = false;\n                }\n\n                return _context5.abrupt(\"break\", 59);\n\n              case 41:\n                _context5.next = 43;\n                return dokan_sweetalert(dokan.i18n_enter_a_value, {\n                  action: 'prompt',\n                  input: 'text'\n                });\n\n              case 43:\n                result = _context5.sent;\n                value = result.value;\n\n                if (!(value == null || value === '' || value < 1)) {\n                  _context5.next = 49;\n                  break;\n                }\n\n                variable_product.prop(\"checked\", false);\n                dokan_sweetalert(dokan.dokan_i18n_negative_value_not_approved, {\n                  icon: 'error'\n                });\n                return _context5.abrupt(\"return\", false);\n\n              case 49:\n                $('.' + do_variation_action).val(value);\n                variable_product.prop(\"checked\", true);\n                dokan_sweetalert(dokan.dokan_i18n_value_set_successfully, {\n                  icon: 'success'\n                });\n                return _context5.abrupt(\"return\", false);\n\n              case 53:\n                variable_product.prop(\"checked\", false);\n                dokan_sweetalert(dokan.dokan_i18n_deactivated_successfully, {\n                  icon: 'success'\n                });\n                return _context5.abrupt(\"return\", false);\n\n              case 56:\n                $('select.variation-actions').trigger(do_variation_action);\n                data = $('select.variation-actions').triggerHandler(do_variation_action + '_ajax_data', data);\n                return _context5.abrupt(\"break\", 59);\n\n              case 59:\n                if ('delete_all' === do_variation_action && data.allowed) {\n                  $('#dokan-variable-product-options').find('.variation-needs-update').removeClass('variation-needs-update');\n                } else {\n                  Dokan_Product_Variation_Ajax.check_for_changes();\n                }\n\n                Dokan_Product_Variation_Ajax.block();\n                $.ajax({\n                  url: dokan.ajaxurl,\n                  data: {\n                    action: 'dokan_bulk_edit_variations',\n                    security: dokan.bulk_edit_variations_nonce,\n                    product_id: $('#dokan-edit-product-id').val(),\n                    product_type: $('#product_type').val(),\n                    bulk_action: do_variation_action,\n                    data: data\n                  },\n                  type: 'POST',\n                  success: function success() {\n                    Dokan_Product_Variation_PageNav.go_to_page(1, changes);\n                  }\n                });\n\n              case 62:\n              case \"end\":\n                return _context5.stop();\n            }\n          }\n        }, _callee5);\n      }));\n\n      function do_variation_action() {\n        return _do_variation_action.apply(this, arguments);\n      }\n\n      return do_variation_action;\n    }()\n  };\n  /**\n   * Product variations pagenav\n   */\n\n  var Dokan_Product_Variation_PageNav = {\n    /**\n     * Initialize products variations meta box\n     */\n    init: function init() {\n      $(document.body).on('dokan_variations_added', this.update_single_quantity).on('change', '.dokan-variations-pagenav .page-selector', this.page_selector).on('click', '.dokan-variations-pagenav .first-page', this.first_page).on('click', '.dokan-variations-pagenav .prev-page', this.prev_page).on('click', '.dokan-variations-pagenav .next-page', this.next_page).on('click', '.dokan-variations-pagenav .last-page', this.last_page);\n    },\n\n    /**\n     * Set variations count\n     *\n     * @param {Int} qty\n     *\n     * @return {Int}\n     */\n    update_variations_count: function update_variations_count(qty) {\n      var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container'),\n          total = parseInt(wrapper.attr('data-total'), 10) + qty,\n          displaying_num = $('.dokan-variations-pagenav .displaying-num'); // Set the new total of variations\n\n      wrapper.attr('data-total', total);\n\n      if (1 === total) {\n        displaying_num.text(dokan.i18n_variation_count_single.replace('%qty%', total));\n      } else {\n        displaying_num.text(dokan.i18n_variation_count_plural.replace('%qty%', total));\n      }\n\n      return total;\n    },\n\n    /**\n     * Update variations quantity when add a new variation\n     *\n     * @param {Object} event\n     * @param {Int} qty\n     */\n    update_single_quantity: function update_single_quantity(event, qty) {\n      if (1 === qty) {\n        var page_nav = $('.dokan-variations-pagenav');\n        Dokan_Product_Variation_PageNav.update_variations_count(qty);\n\n        if (page_nav.is(':hidden')) {\n          $('option, optgroup', 'select.variation-actions').show();\n          $('select.variation-actions').val('add_variation');\n          $('#dokan-variable-product-options').find('.dokan-variation-action-toolbar').show();\n          page_nav.show();\n          $('.pagination-links', page_nav).hide();\n        }\n      }\n    },\n\n    /**\n     * Set the pagenav fields\n     *\n     * @param {Int} qty\n     */\n    set_paginav: function set_paginav(qty) {\n      var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container'),\n          new_qty = Dokan_Product_Variation_PageNav.update_variations_count(qty),\n          toolbar = $('#dokan-variable-product-options').find('.dokan-variation-action-toolbar'),\n          variation_action = $('select.variation-actions'),\n          page_nav = $('.dokan-variations-pagenav'),\n          displaying_links = $('.pagination-links', page_nav),\n          total_pages = Math.ceil(new_qty / dokan.variations_per_page),\n          options = ''; // Set the new total of pages\n\n      wrapper.attr('data-total_pages', total_pages);\n      $('.total-pages', page_nav).text(total_pages); // Set the new pagenav options\n\n      for (var i = 1; i <= total_pages; i++) {\n        options += '<option value=\"' + i + '\">' + i + '</option>';\n      }\n\n      $('.page-selector', page_nav).empty().html(options); // Show/hide pagenav\n\n      if (0 === new_qty) {\n        toolbar.not('.toolbar-top, .toolbar-buttons').hide();\n        page_nav.hide();\n        $('option, optgroup', variation_action).hide();\n        $('select.variation-actions').val('add_variation');\n        $('option[data-global=\"true\"]', variation_action).show();\n      } else {\n        toolbar.show();\n        page_nav.show();\n        $('option, optgroup', variation_action).show();\n        $('select.variation-actions').val('add_variation'); // Show/hide links\n\n        if (1 === total_pages) {\n          displaying_links.hide();\n        } else {\n          displaying_links.show();\n        }\n      }\n    },\n\n    /**\n     * Check button if enabled and if don't have changes\n     *\n     * @return {Bool}\n     */\n    check_is_enabled: function check_is_enabled(current) {\n      return !$(current).hasClass('disabled');\n    },\n\n    /**\n     * Change \"disabled\" class on pagenav\n     */\n    change_classes: function change_classes(selected, total) {\n      var first_page = $('.dokan-variations-pagenav .first-page'),\n          prev_page = $('.dokan-variations-pagenav .prev-page'),\n          next_page = $('.dokan-variations-pagenav .next-page'),\n          last_page = $('.dokan-variations-pagenav .last-page');\n\n      if (1 === selected) {\n        first_page.addClass('disabled');\n        prev_page.addClass('disabled');\n      } else {\n        first_page.removeClass('disabled');\n        prev_page.removeClass('disabled');\n      }\n\n      if (total === selected) {\n        next_page.addClass('disabled');\n        last_page.addClass('disabled');\n      } else {\n        next_page.removeClass('disabled');\n        last_page.removeClass('disabled');\n      }\n    },\n\n    /**\n     * Set page\n     */\n    set_page: function set_page(page) {\n      $('.dokan-variations-pagenav .page-selector').val(page).first().trigger('change');\n    },\n\n    /**\n     * Navigate on variations pages\n     *\n     * @param {Int} page\n     * @param {Int} qty\n     */\n    go_to_page: function go_to_page(page, qty) {\n      page = page || 1;\n      qty = qty || 0;\n      Dokan_Product_Variation_PageNav.set_paginav(qty);\n      Dokan_Product_Variation_PageNav.set_page(page);\n    },\n\n    /**\n     * Paginav pagination selector\n     */\n    page_selector: function page_selector() {\n      var selected = parseInt($(this).val(), 10),\n          wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container');\n      $('.dokan-variations-pagenav .page-selector').val(selected);\n      Dokan_Product_Variation_Ajax.check_for_changes();\n      Dokan_Product_Variation_PageNav.change_classes(selected, parseInt(wrapper.attr('data-total_pages'), 10));\n      Dokan_Product_Variation_Ajax.load_variations(selected);\n    },\n\n    /**\n     * Go to first page\n     *\n     * @return {Bool}\n     */\n    first_page: function first_page() {\n      if (Dokan_Product_Variation_PageNav.check_is_enabled(this)) {\n        Dokan_Product_Variation_PageNav.set_page(1);\n      }\n\n      return false;\n    },\n\n    /**\n     * Go to previous page\n     *\n     * @return {Bool}\n     */\n    prev_page: function prev_page() {\n      if (Dokan_Product_Variation_PageNav.check_is_enabled(this)) {\n        var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container'),\n            prev_page = parseInt(wrapper.attr('data-page'), 10) - 1,\n            new_page = 0 < prev_page ? prev_page : 1;\n        Dokan_Product_Variation_PageNav.set_page(new_page);\n      }\n\n      return false;\n    },\n\n    /**\n     * Go to next page\n     *\n     * @return {Bool}\n     */\n    next_page: function next_page() {\n      if (Dokan_Product_Variation_PageNav.check_is_enabled(this)) {\n        var wrapper = $('#dokan-variable-product-options').find('.dokan-variations-container'),\n            total_pages = parseInt(wrapper.attr('data-total_pages'), 10),\n            next_page = parseInt(wrapper.attr('data-page'), 10) + 1,\n            new_page = total_pages >= next_page ? next_page : total_pages;\n        Dokan_Product_Variation_PageNav.set_page(new_page);\n      }\n\n      return false;\n    },\n\n    /**\n     * Go to last page\n     *\n     * @return {Bool}\n     */\n    last_page: function last_page() {\n      if (Dokan_Product_Variation_PageNav.check_is_enabled(this)) {\n        var last_page = $('#dokan-variable-product-options').find('.dokan-variations-container').attr('data-total_pages');\n        Dokan_Product_Variation_PageNav.set_page(last_page);\n      }\n\n      return false;\n    }\n  }; // On DOM ready\n\n  $(function () {\n    if ($('#dokan-variable-product-options').length) {\n      Dokan_Product_Variation_Actions.init();\n      Dokan_Product_Variation_Ajax.init();\n      Dokan_Product_Variation_PageNav.init();\n    }\n  });\n});\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/product-variation.js?");

/***/ }),

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n\n\n;\n\n(function ($) {\n  var variantsHolder = $('#variants-holder');\n  var Dokan_Editor = {\n    init: function init() {\n      var product_type = 'simple'; // post status change\n\n      $('.dokan-toggle-sidebar').on('click', 'a.dokan-toggle-edit', this.sidebarToggle.showStatus);\n      $('.dokan-toggle-sidebar').on('click', 'a.dokan-toggle-save', this.sidebarToggle.saveStatus);\n      $('.dokan-toggle-sidebar').on('click', 'a.dokan-toggle-cacnel', this.sidebarToggle.cancel); // Tab view variants\n\n      $('#product-attributes').on('click', '.add-variant-category', this.variants.addCategory);\n      $('#variants-holder').on('click', '.box-header .row-remove', this.variants.removeCategory);\n      $('#variants-holder').on('click', '.item-action a.row-add', this.variants.addItem);\n      $('#variants-holder').on('click', '.item-action a.row-remove', this.variants.removeItem);\n      $('body, #variable_product_options').on('click', '.sale_schedule', this.variants.saleSchedule);\n      $('body, #variable_product_options').on('click', '.cancel_sale_schedule', this.variants.cancelSchedule);\n      $('#variable_product_options').on('woocommerce_variations_added', this.variants.onVariantAdded);\n      $('.save_attributes').on('click', this.variants.save);\n      this.variants.dates();\n      this.variants.initSaleSchedule(); //seo\n\n      $('.product-edit-new-container').on('click', '.snippet-btn', this.editProduct.seo.toggleSnippet);\n      $('.product-edit-new-container').on('input', 'input.wpseo-title-input, textarea.wpseo-meta-input', this.editProduct.seo.dataRender);\n      $('.product-edit-new-container').on('input', '#post_title', this.editProduct.seo.onChangePostTitle);\n      $('.product-edit-new-container').on('change', 'select#wpseo_title_shortcode, select#wpseo_meta_shortcode', this.editProduct.seo.shortcodeRender);\n      $('input.wpseo-title-input').trigger('input');\n      $('textarea.wpseo-meta-input').trigger('input'); // shipping\n\n      $('.product-edit-new-container, #product-shipping').on('change', 'input[type=checkbox]#_overwrite_shipping', this.editProduct.shipping.showHideOverride);\n      $('.product-edit-new-container').on('change', 'input[type=checkbox]#_disable_shipping', this.editProduct.shipping.disableOverride);\n      $('#product-shipping').on('click', '#_disable_shipping', this.shipping.disableOverride);\n      $('.product-edit-new-container, .product_lot_discount').on('change', 'input[type=checkbox]#_is_lot_discount', this.editProduct.showLotDiscountWrapper);\n      $('body').on('click', '.upload_image_button', this.editProduct.loadVariationImage);\n      this.editProduct.shipping.showHideOverride();\n      this.editProduct.shipping.disableOverride();\n      this.shipping.disableOverride();\n      $('#_disable_shipping').trigger('change');\n      $('#_overwrite_shipping').trigger('change');\n      $('.hide_if_lot_discount').hide();\n      $('.hide_if_order_discount').hide(); // save attributes\n\n      $('body').on('dokan-product-editor-loaded', this.bindProductTagDropdown);\n      $('body').on('dokan-product-editor-popup-opened', this.bindProductTagDropdown);\n    },\n    editProduct: {\n      showLotDiscountWrapper: function showLotDiscountWrapper() {\n        if ($(this).is(':checked')) {\n          $('.show_if_needs_lot_discount').slideDown('fast');\n        } else {\n          $('.show_if_needs_lot_discount').slideUp('fast');\n        }\n      },\n      loadVariationImage: function loadVariationImage(e) {\n        e.preventDefault();\n        var variable_image_frame,\n            $button = $(this),\n            post_id = $button.attr('rel'),\n            $parent = $button.closest('.upload_image'),\n            setting_variation_image = $parent,\n            placeholder_image = dokan.dokan_placeholder_img_src,\n            setting_variation_image_id = post_id;\n        e.preventDefault();\n\n        if ($button.is('.dokan-img-remove')) {\n          setting_variation_image.find('.upload_image_id').val('');\n          setting_variation_image.find('img').attr('src', placeholder_image);\n          setting_variation_image.find('.upload_image_button').removeClass('dokan-img-remove');\n          $button.closest('.dokan-product-variation-itmes').addClass('variation-needs-update');\n          $('button.cancel-variation-changes, button.save-variation-changes').removeAttr('disabled');\n          $('.dokan-product-variation-wrapper').trigger('dokan_variations_input_changed');\n        } else {\n          // If the media frame already exists, reopen it.\n          if (variable_image_frame) {\n            variable_image_frame.uploader.uploader.param('post_id', setting_variation_image_id);\n            variable_image_frame.open();\n            return;\n          } else {\n            wp.media.model.settings.post.id = setting_variation_image_id;\n            wp.media.model.settings.type = 'dokan';\n          } // Create the media frame.\n\n\n          variable_image_frame = wp.media.frames.variable_image = wp.media({\n            // Set the title of the modal.\n            title: dokan.i18n_choose_image,\n            button: {\n              text: dokan.i18n_set_image\n            }\n          }); // When an image is selected, run a callback.\n\n          variable_image_frame.on('select', function () {\n            var attachment = variable_image_frame.state().get('selection').first().toJSON();\n            setting_variation_image.find('.upload_image_id').val(attachment.id);\n            setting_variation_image.find('.upload_image_button').addClass('dokan-img-remove');\n            setting_variation_image.find('img').attr('src', attachment.url);\n            $button.closest('.dokan-product-variation-itmes').addClass('variation-needs-update');\n            $('button.cancel-variation-changes, button.save-variation-changes').removeAttr('disabled');\n            $('.dokan-product-variation-wrapper').trigger('dokan_variations_input_changed');\n            wp.media.model.settings.post.id = setting_variation_image_id;\n          }); // Finally, open the modal.\n\n          variable_image_frame.open();\n        }\n      },\n      seo: {\n        toggleSnippet: function toggleSnippet() {\n          $(\".dokan-seo-snippet-edit-wrap\").toggle();\n        },\n        replaceShortCodes: function replaceShortCodes(str, shortCodes) {\n          var codes = Object.keys(shortCodes),\n              i = 0;\n\n          for (i = 0; i < codes.length; i++) {\n            var escapedCode = codes[i].replace(/\\[/g, '\\\\[').replace(/\\]/g, '\\\\]'),\n                re = new RegExp(escapedCode, 'gi');\n\n            if (str) {\n              str = str.replace(re, shortCodes[codes[i]]);\n            }\n          }\n\n          return str;\n        },\n        dataRender: function dataRender() {\n          var self = $(this),\n              val = self.val(),\n              shortCodes = {\n            '[title]': self.data('title'),\n            '[sep]': self.data('sep'),\n            '[sitename]': self.data('sitename')\n          };\n\n          if (val == '') {\n            if ('text' == self[0].type) {\n              val = '[title] [sep] [sitename]';\n              self.val(val);\n            }\n\n            if ('textarea' == self[0].type) {\n              val = $('.seo-snippet').find('.seo-meta').data('default');\n              self.val(val);\n            }\n          }\n\n          var convertedString = Dokan_Editor.editProduct.seo.replaceShortCodes(val, shortCodes);\n          $('.dokan-seo-product-options').find(self.data('class')).html(convertedString);\n        },\n        shortcodeRender: function shortcodeRender() {\n          var self = $(this),\n              val = self.val();\n\n          if ('' == val) {\n            return;\n          }\n\n          var $txt = jQuery(self.data('class'));\n          var caretPos = $txt[0].selectionStart;\n          var textAreaTxt = $txt.val();\n          $txt.val(textAreaTxt.substring(0, caretPos) + ' ' + val + ' ' + textAreaTxt.substring(caretPos));\n          $txt.trigger('input').trigger('focus');\n        },\n        onChangePostTitle: function onChangePostTitle() {\n          var input = $(this),\n              title = input.val();\n          $('[name=\"_yoast_wpseo_title\"], [name=\"_yoast_wpseo_metadesc\"]').data('title', title).trigger('input');\n        }\n      },\n      shipping: {\n        showHideOverride: function showHideOverride() {\n          if ($('#_overwrite_shipping').is(':checked')) {\n            $('.show_if_override').show();\n          } else {\n            $('.show_if_override').hide();\n          }\n        },\n        disableOverride: function disableOverride() {\n          if ($('#_disable_shipping').is(':checked')) {\n            $('.show_if_needs_shipping').show();\n            $('#_overwrite_shipping').trigger('change');\n          } else {\n            $('.show_if_needs_shipping').hide();\n          }\n        }\n      }\n    },\n    variants: {\n      addCategory: function addCategory(e) {\n        e.preventDefault();\n        var product_types = $('#product_type').val();\n        var check = $(this).closest('p.toolbar').find('select.select-attribute').val();\n        var row = $('.inputs-box').length;\n\n        if (check == '') {\n          var category = wp.template('sc-category');\n          variantsHolder.append(category({\n            row: row\n          })).children(':last').hide().fadeIn();\n        } else {\n          var data = {\n            row: row,\n            name: check,\n            type: product_types,\n            action: 'dokan_pre_define_attribute'\n          };\n          $('#product-attributes .toolbar').block({\n            message: null,\n            overlayCSS: {\n              background: '#fff',\n              opacity: 0.6\n            }\n          });\n          $.post(dokan.ajaxurl, data, function (resp) {\n            if (resp.success) {\n              variantsHolder.append(resp.data).children(':last').hide().fadeIn();\n            }\n\n            $('#product-attributes .toolbar').unblock();\n          });\n        }\n\n        if (product_type === 'simple') {\n          variantsHolder.find('.show_if_variable').hide();\n        }\n      },\n      removeCategory: function () {\n        var _removeCategory = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(e) {\n          var answer;\n          return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {\n            while (1) {\n              switch (_context.prev = _context.next) {\n                case 0:\n                  e.preventDefault();\n                  _context.next = 3;\n                  return dokan_sweetalert(dokan.delete_confirm, {\n                    action: 'confirm',\n                    icon: 'warning'\n                  });\n\n                case 3:\n                  answer = _context.sent;\n\n                  if ('undefined' !== answer && answer.isConfirmed) {\n                    $(this).parents('.inputs-box').fadeOut(function () {\n                      $(this).remove();\n                    });\n                  }\n\n                case 5:\n                case \"end\":\n                  return _context.stop();\n              }\n            }\n          }, _callee, this);\n        }));\n\n        function removeCategory(_x) {\n          return _removeCategory.apply(this, arguments);\n        }\n\n        return removeCategory;\n      }(),\n      addItem: function addItem(e) {\n        e.preventDefault();\n        var self = $(this),\n            wrap = self.closest('.inputs-box'),\n            list = self.closest('ul.option-couplet');\n        var col = list.find('li').length,\n            row = wrap.data('count');\n\n        var template = _.template($('#tmpl-sc-category-item').html());\n\n        self.closest('li').after(template({\n          'row': row,\n          'col': col\n        }));\n      },\n      removeItem: function removeItem(e) {\n        e.preventDefault();\n        var options = $(this).parents('ul').find('li'); // don't remove if only one option is there\n\n        if (options.length > 1) {\n          $(this).parents('li').fadeOut(function () {\n            $(this).remove();\n          });\n        }\n      },\n      save: function save() {\n        var data = {\n          post_id: $(this).data('id'),\n          data: $('.woocommerce_attributes').find('input, select, textarea').serialize(),\n          action: 'dokan_save_attributes'\n        };\n        var this_page = window.location.toString();\n        $('#variants-holder').block({\n          message: null,\n          overlayCSS: {\n            background: '#fff',\n            opacity: 0.6\n          }\n        });\n        $.post(ajaxurl, data, function (resp) {\n          $('#variable_product_options').block({\n            message: null,\n            overlayCSS: {\n              background: '#fff',\n              opacity: 0.6\n            }\n          });\n          $('#variable_product_options').load(this_page + ' #variable_product_options_inner', function () {\n            $('#variable_product_options').unblock();\n          }); // fire change events for varaiations\n\n          $('input.variable_is_downloadable, input.variable_is_virtual, input.variable_manage_stock').trigger('change');\n          $('#variants-holder').unblock();\n        });\n      },\n      initSaleSchedule: function initSaleSchedule() {\n        // Sale price schedule\n        $('.sale_price_dates_fields').each(function () {\n          var $these_sale_dates = $(this);\n          var sale_schedule_set = false;\n          var $wrap = $these_sale_dates.closest('div, table');\n          $these_sale_dates.find('input').each(function () {\n            if ($(this).val() != '') sale_schedule_set = true;\n          });\n\n          if (sale_schedule_set) {\n            $wrap.find('.sale_schedule').hide();\n            $wrap.find('.cancel_sale_schedule').show();\n            $wrap.find('.sale_price_dates_fields').show();\n          } else {\n            $wrap.find('.sale_schedule').show();\n            $wrap.find('.cancel_sale_schedule').hide();\n            $wrap.find('.sale_price_dates_fields').hide();\n          }\n        });\n      },\n      saleSchedule: function saleSchedule() {\n        var $wrap = $(this).closest('div, table');\n        $(this).hide();\n        $wrap.find('.cancel_sale_schedule').show();\n        $wrap.find('.sale_price_dates_fields').show();\n        return false;\n      },\n      cancelSchedule: function cancelSchedule() {\n        var $wrap = $(this).closest('div, table');\n        $(this).hide();\n        $wrap.find('.sale_schedule').show();\n        $wrap.find('.sale_price_dates_fields').hide();\n        $wrap.find('.sale_price_dates_fields').find('input').val('');\n        return false;\n      },\n      dates: function dates() {\n        $('.sale_price_dates_fields input[name=\"_sale_price_dates_from\"]').datepicker({\n          defaultDate: \"\",\n          dateFormat: \"yy-mm-dd\",\n          numberOfMonths: 1,\n          onSelect: function onSelect(selectedDate) {\n            var date = new Date(selectedDate);\n            date.setDate(date.getDate() + 1);\n            $('input[name=\"_sale_price_dates_to\"]').datepicker('option', {\n              'minDate': date\n            });\n          }\n        });\n        $('.sale_price_dates_fields input[name=\"_sale_price_dates_to\"]').datepicker({\n          defaultDate: \"\",\n          dateFormat: \"yy-mm-dd\",\n          numberOfMonths: 1,\n          onSelect: function onSelect(selectedDate) {\n            var date = new Date(selectedDate);\n            date.setDate(date.getDate() - 1); // $('input[name=\"_sale_price_dates_from\"]').datepicker('option', {'maxDate': date})\n          }\n        });\n      },\n      onVariantAdded: function onVariantAdded() {\n        Dokan_Editor.variants.dates();\n      }\n    },\n    sidebarToggle: {\n      showStatus: function showStatus(e) {\n        var container = $(this).siblings('.dokan-toggle-select-container');\n\n        if (container.is(':hidden')) {\n          container.slideDown('fast');\n          $(this).hide();\n        }\n\n        return false;\n      },\n      saveStatus: function saveStatus(e) {\n        var container = $(this).closest('.dokan-toggle-select-container');\n        container.slideUp('fast');\n        container.siblings('a.dokan-toggle-edit').show(); // update the text\n\n        var text = $('option:selected', container.find('select.dokan-toggle-select')).text();\n        container.siblings('.dokan-toggle-selected-display').html(text);\n        return false;\n      },\n      cancel: function cancel(e) {\n        var container = $(this).closest('.dokan-toggle-select-container');\n        container.slideUp('fast');\n        container.siblings('a.dokan-toggle-edit').show();\n        return false;\n      }\n    },\n    shipping: {\n      disableOverride: function disableOverride() {\n        if ($('#_disable_shipping').is(':checked')) {\n          $('.hide_if_disable').hide();\n        } else {\n          $('.hide_if_disable').show();\n          Dokan_Editor.editProduct.shipping.showHideOverride();\n        }\n      }\n    },\n    bindProductTagDropdown: function bindProductTagDropdown() {\n      if (!(dokan.product_vendors_can_create_tags && 'on' === dokan.product_vendors_can_create_tags)) {\n        return;\n      }\n\n      $('#product_tag').select2({\n        tags: true,\n        language: {\n          noResults: function noResults() {\n            return dokan.i18n_no_result_found;\n          }\n        }\n      });\n    }\n  };\n  Dokan_Editor.init();\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/product.js?");

/***/ }),

/***/ "./assets/src/js/progressbar-closer.js":
/*!*********************************************!*\
  !*** ./assets/src/js/progressbar-closer.js ***!
  \*********************************************/
/***/ (() => {

eval(";\n\n(function ($) {\n  dokan.storeProgressBar = {\n    init: function init() {\n      $('#dokan-profile-progressbar-closer').on('click', function (ev) {\n        var nonce = $(ev.target).data('nonce');\n        $.ajax({\n          url: dokan.ajaxurl,\n          data: {\n            action: 'dokan_user_closed_progressbar',\n            nonce: nonce\n          },\n          type: 'POST',\n          success: function success(response) {\n            if (response.success) {\n              $(ev.target).closest('.dokan-profile-completeness').fadeOut('slow').remove();\n            } else {\n              dokan_sweetalert(response.data, {\n                icon: 'error'\n              });\n            }\n          },\n          fail: function fail(response) {\n            dokan_sweetalert(dokan.wrong_message, {\n              icon: 'error'\n            });\n            console.log(response);\n          }\n        });\n      });\n    }\n  };\n  dokan.storeProgressBar.init();\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/progressbar-closer.js?");

/***/ }),

/***/ "./assets/src/js/reviews.js":
/*!**********************************!*\
  !*** ./assets/src/js/reviews.js ***!
  \**********************************/
/***/ (() => {

eval(";\n\n(function ($) {\n  var Dokan_Comments = {\n    init: function init() {\n      $('#dokan-comments-table').on('click', '.dokan-cmt-action', this.setCommentStatus);\n      $('.dokan-check-all').on('click', this.toggleCheckbox);\n    },\n    toggleCheckbox: function toggleCheckbox() {\n      $(\".dokan-check-col\").prop('checked', $(this).prop('checked'));\n    },\n    setCommentStatus: function setCommentStatus(e) {\n      e.preventDefault();\n      var self = $(this),\n          comment_id = self.data('comment_id'),\n          comment_status = self.data('cmt_status'),\n          page_status = self.data('page_status'),\n          post_type = self.data('post_type'),\n          curr_page = self.data('curr_page'),\n          tr = self.closest('tr'),\n          data = {\n        'action': 'dokan_comment_status',\n        'comment_id': comment_id,\n        'comment_status': comment_status,\n        'page_status': page_status,\n        'post_type': post_type,\n        'curr_page': curr_page,\n        'nonce': dokan.nonce\n      };\n      $.post(dokan.ajaxurl, data, function (resp) {\n        if (resp.success == false) {\n          dokan_sweetalert(resp.data, {\n            icon: 'error'\n          });\n        } else {\n          if (page_status === 1) {\n            if (comment_status === 1 || comment_status === 0) {\n              tr.fadeOut(function () {\n                tr.replaceWith(resp.data['content']).fadeIn();\n              });\n            } else {\n              tr.fadeOut(function () {\n                $(this).remove();\n              });\n            }\n          } else {\n            tr.fadeOut(function () {\n              $(this).remove();\n            });\n          }\n\n          if (resp.data['pending'] == null) resp.data['pending'] = 0;\n          if (resp.data['spam'] == null) resp.data['spam'] = 0;\n          if (resp.data['trash'] == null) resp.data['trash'] = 0;\n          if (resp.data['approved'] == null) resp.data['approved'] = 0;\n          $('.comments-menu-approved').text(resp.data['approved']);\n          $('.comments-menu-pending').text(resp.data['pending']);\n          $('.comments-menu-spam').text(resp.data['spam']);\n          $('.comments-menu-trash').text(resp.data['trash']);\n        }\n      });\n    }\n  };\n  $(function () {\n    Dokan_Comments.init();\n  });\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/reviews.js?");

/***/ }),

/***/ "./assets/src/js/reviews.min.js":
/*!**************************************!*\
  !*** ./assets/src/js/reviews.min.js ***!
  \**************************************/
/***/ (() => {

eval("!function (a) {\n  var b = {\n    init: function init() {\n      a(\"#dokan-comments-table\").on(\"click\", \".dokan-cmt-action\", this.setCommentStatus), a(\"#dokan-comments-table\").on(\"click\", \"button.dokan-cmt-close-form\", this.closeForm), a(\"#dokan-comments-table\").on(\"click\", \"button.dokan-cmt-submit-form\", this.submitForm), a(\"#dokan-comments-table\").on(\"click\", \".dokan-cmt-edit\", this.populateForm), a(\".dokan-check-all\").on(\"click\", this.toggleCheckbox);\n    },\n    toggleCheckbox: function toggleCheckbox() {\n      a(\".dokan-check-col\").prop(\"checked\", a(this).prop(\"checked\"));\n    },\n    setCommentStatus: function setCommentStatus(b) {\n      b.preventDefault();\n      var c = a(this),\n          d = c.data(\"comment_id\"),\n          e = c.data(\"cmt_status\"),\n          f = c.data(\"page_status\"),\n          g = c.data(\"post_type\"),\n          h = c.data(\"curr_page\"),\n          i = c.closest(\"tr\"),\n          j = {\n        action: \"dokan_comment_status\",\n        comment_id: d,\n        comment_status: e,\n        page_status: f,\n        post_type: g,\n        curr_page: h,\n        nonce: dokan.nonce\n      };\n      a.post(dokan.ajaxurl, j, function (b) {\n        1 === f && (1 === e || 0 === e) ? i.fadeOut(function () {\n          i.replaceWith(b.data.content).fadeIn();\n        }) : i.fadeOut(function () {\n          a(this).remove();\n        }), null == b.data.pending && (b.data.pending = 0), null == b.data.spam && (b.data.spam = 0), null == b.data.trash && (b.data.trash = 0), a(\".comments-menu-pending\").text(b.data.pending), a(\".comments-menu-spam\").text(b.data.spam), a(\".comments-menu-trash\").text(b.data.trash);\n      });\n    },\n    populateForm: function populateForm(b) {\n      b.preventDefault();\n      var c = a(this).closest(\"tr\");\n      if (c.next().hasClass(\"dokan-comment-edit-row\")) return void c.next().remove();\n      var d = a(\"#dokan-edit-comment-row\").html(),\n          e = {\n        author: c.find(\".dokan-cmt-hid-author\").text(),\n        email: c.find(\".dokan-cmt-hid-email\").text(),\n        url: c.find(\".dokan-cmt-hid-url\").text(),\n        body: c.find(\".dokan-cmt-hid-body\").text(),\n        id: c.find(\".dokan-cmt-hid-id\").text(),\n        status: c.find(\".dokan-cmt-hid-status\").text()\n      };\n      c.after(_.template(d, e));\n    },\n    closeForm: function closeForm(b) {\n      b.preventDefault(), a(this).closest(\"tr.dokan-comment-edit-row\").remove();\n    },\n    submitForm: function submitForm(b) {\n      b.preventDefault();\n      var c = a(this),\n          d = c.closest(\"tr.dokan-comment-edit-row\"),\n          e = {\n        action: \"dokan_update_comment\",\n        comment_id: d.find(\"input.dokan-cmt-id\").val(),\n        content: d.find(\"textarea.dokan-cmt-body\").val(),\n        author: d.find(\"input.dokan-cmt-author\").val(),\n        email: d.find(\"input.dokan-cmt-author-email\").val(),\n        url: d.find(\"input.dokan-cmt-author-url\").val(),\n        status: d.find(\"input.dokan-cmt-status\").val(),\n        nonce: dokan.nonce,\n        post_type: d.find(\"input.dokan-cmt-post-type\").val()\n      };\n      a.post(dokan.ajaxurl, e, function (a) {\n        a.success === !0 ? (d.prev().replaceWith(a.data), d.remove()) : alert(a.data);\n      });\n    }\n  };\n  a(function () {\n    b.init();\n  });\n}(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/reviews.min.js?");

/***/ }),

/***/ "./assets/src/js/shipping.js":
/*!***********************************!*\
  !*** ./assets/src/js/shipping.js ***!
  \***********************************/
/***/ (() => {

eval("// Shipping tab js\n(function ($) {\n  $(document).ready(function () {\n    $('.dokan-shipping-location-wrapper').on('change', '.dps_country_selection', function () {\n      var self = $(this),\n          data = {\n        country_id: self.find(':selected').val(),\n        action: 'dps_select_state_by_country'\n      };\n\n      if (self.val() == '' || self.val() == 'everywhere') {\n        self.closest('.dps-shipping-location-content').find('table.dps-shipping-states tbody').html('');\n      } else {\n        $.post(dokan.ajaxurl, data, function (response) {\n          if (response.success) {\n            self.closest('.dps-shipping-location-content').find('table.dps-shipping-states tbody').html(response.data);\n          }\n        });\n      }\n    });\n    $('.dps-main-wrapper').on('click', 'a.dps-shipping-add', function (e) {\n      e.preventDefault();\n      var html = $('#dps-shipping-hidden-lcoation-content');\n      var row = $(html).first().clone().appendTo($('.dokan-shipping-location-wrapper')).show();\n      $('.dokan-shipping-location-wrapper').find('.dps-shipping-location-content').first().find('a.dps-shipping-remove').show();\n      $('.tips').tooltip();\n      row.removeAttr('id');\n      row.find('input,select').val('');\n      row.find('a.dps-shipping-remove').show();\n    });\n    $('.dokan-shipping-location-wrapper').on('click', 'a.dps-shipping-remove', function (e) {\n      e.preventDefault();\n      $(this).closest('.dps-shipping-location-content').remove();\n      $dpsElm = $('.dokan-shipping-location-wrapper').find('.dps-shipping-location-content');\n\n      if ($dpsElm.length == 1) {\n        $dpsElm.first().find('a.dps-shipping-remove').hide();\n      }\n    });\n    $('.dokan-shipping-location-wrapper').on('click', 'a.dps-add', function (e) {\n      e.preventDefault();\n      var row = $(this).closest('tr').first().clone().appendTo($(this).closest('table.dps-shipping-states'));\n      row.find('input,select').val('');\n      row.find('a.dps-remove').show();\n      $('.tips').tooltip();\n    });\n    $('.dokan-shipping-location-wrapper').on('click', 'a.dps-remove', function (e) {\n      e.preventDefault();\n\n      if ($(this).closest('table.dps-shipping-states').find('tr').length == 1) {\n        $(this).closest('.dps-shipping-location-content').find('td.dps_shipping_location_cost').show();\n      }\n\n      $(this).closest('tr').remove();\n    });\n    $('.dokan-shipping-location-wrapper').on('change keyup', '.dps_state_selection', function () {\n      var self = $(this);\n\n      if (self.val() == '' || self.val() == '-1') {\n        self.closest('.dps-shipping-location-content').find('td.dps_shipping_location_cost').show();\n      } else {\n        self.closest('.dps-shipping-location-content').find('td.dps_shipping_location_cost').hide();\n      }\n    });\n    $('.dokan-shipping-location-wrapper .dps_state_selection').trigger('change');\n    $('.dokan-shipping-location-wrapper .dps_state_selection').trigger('keyup');\n    var $wrap = $('.dokan-shipping-location-wrapper').find('.dps-shipping-location-content');\n\n    if ($wrap.length == 1) {\n      $wrap.first().find('a.dps-shipping-remove').hide();\n    }\n  });\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/shipping.js?");

/***/ }),

/***/ "./assets/src/js/store-lists.js":
/*!**************************************!*\
  !*** ./assets/src/js/store-lists.js ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\");\n\n;\n\n(function ($) {\n  var storeListsPro = {\n    /**\n     * Item array holder\n     *\n     * @type array\n     */\n    itemArray: [],\n\n    /**\n     * Item ID holder\n     *\n     * @type array\n     */\n    itemSlugs: [],\n\n    /**\n     * Selected category text holder\n     *\n     * @type string\n     */\n    itemString: '',\n\n    /**\n     * Init all the methods\n     *\n     * @return void\n     */\n    init: function init() {\n      $('#dokan-store-listing-filter-form-wrap .store-lists-category .category-input').on('click', this.toggleCategory);\n      $('body').on('click', this.hideCategory);\n      $('#dokan-store-listing-filter-form-wrap .store-lists-category .category-box ul li').on('click', this.selectCategory);\n      $('#dokan-store-listing-filter-form-wrap .featured.item #featured').on('change', this.toggleFeatured);\n      $('#dokan-store-listing-filter-form-wrap .open-now.item #open-now').on('change', this.toggleIsOpen);\n      $('#dokan-store-listing-filter-form-wrap .store-ratings.item i').on('click', this.setRatings);\n      var params = dokan.storeLists.getParams();\n\n      if (params.length) {\n        params.forEach(function (param) {\n          storeListsPro.setParams(Object.keys(param), Object.values(param));\n        });\n      }\n\n      this.makeStyleAdjustment();\n    },\n\n    /**\n     * Toggle category\n     *\n     * @return void\n     */\n    toggleCategory: function toggleCategory() {\n      $('.store-lists-category .category-box').slideToggle();\n      $('.store-lists-category .category-input .dokan-icon').toggleClass('dashicons-arrow-down-alt2 dashicons-arrow-up-alt2');\n    },\n\n    /**\n     * Hide category\n     *\n     * @return void\n     */\n    hideCategory: function hideCategory(event) {\n      var item = $(event.target);\n\n      if (!item.is('div.store_category') && !item.is('span.dokan-icon') && !item.is('div.store-lists-category') && !item.is('li') && !item.is('ul') && !item.is('div.category-input') && !item.is('span.category-label') && !item.is('span.category-items')) {\n        $('.store-lists-category .category-box').hide();\n        $('.store-lists-category .category-input .dokan-icon').addClass('dashicons-arrow-down-alt2');\n      }\n    },\n\n    /**\n     * Select Category\n     *\n     * @param  string event\n     *\n     * @return void\n     */\n    selectCategory: function selectCategory(event) {\n      var item = $(event.target);\n      var currentItem = item.text().trim();\n      var currentItemSlug = item.data('slug');\n      var self = storeListsPro;\n      item.toggleClass('dokan-btn-theme');\n\n      if (!self.itemSlugs.includes(currentItemSlug)) {\n        self.itemArray.push(currentItem);\n        self.itemSlugs.push(currentItemSlug);\n      } else {\n        var itemToRemove = self.itemSlugs.indexOf(currentItemSlug);\n        self.itemArray.splice(itemToRemove, 1);\n        self.itemSlugs.splice(itemToRemove, 1);\n      }\n\n      dokan.storeLists.query.store_categories = self.itemSlugs;\n      var itemString = self.itemArray.join(', ');\n      self.setCategoryHolder(itemString);\n    },\n\n    /**\n     * Toggle Featured\n     *\n     * @param  string\n     *\n     * @return void\n     */\n    toggleFeatured: function toggleFeatured(event) {\n      delete dokan.storeLists.query.featured;\n\n      if (event.target.checked) {\n        dokan.storeLists.query.featured = 'yes';\n      }\n    },\n\n    /**\n     * Toogle is Open\n     *\n     * @param  string\n     *\n     * @return void\n     */\n    toggleIsOpen: function toggleIsOpen(event) {\n      delete dokan.storeLists.query.open_now;\n\n      if (event.target.checked) {\n        dokan.storeLists.query.open_now = 'yes';\n      }\n    },\n\n    /**\n     * Set Ratings\n     *\n     * @param string\n     *\n     * @return void\n     */\n    setRatings: function setRatings(event) {\n      event.preventDefault();\n      var currentItem = $(event.target);\n      var parent = currentItem.parent();\n      parent.addClass('selected');\n\n      (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(parent.find('i')).forEach(function (item) {\n        if (currentItem.is(item)) {\n          if ($(item).hasClass('active')) {\n            parent.removeClass('selected');\n            $(item).removeClass('active');\n          } else {\n            $(item).addClass('active');\n          }\n        } else {\n          $(item).removeClass('active');\n        }\n      });\n\n      var rating = dokan.storeLists.query.rating;\n\n      if (rating != currentItem.data('rating')) {\n        dokan.storeLists.query.rating = currentItem.data('rating');\n      } else {\n        delete dokan.storeLists.query.rating;\n      }\n    },\n\n    /**\n     * Set Parrams\n     *\n     * @param string key\n     * @param mix value\n     */\n    setParams: function setParams(key, value) {\n      var self = storeListsPro;\n      var dokan = window.dokan.storeLists;\n      key.forEach(function (param, index) {\n        var charIndex = param.indexOf('['); // If charIndex is greater than 0, then it's an array; ei: category[]=cat_1\n\n        if (charIndex > 0) {\n          self.itemSlugs.push(value[index]);\n          dokan.query[param.substr(0, charIndex)] = self.itemSlugs;\n        }\n      });\n      var categoryHolder = $('.category-items');\n\n      if (dokan.cateItemStringArray.length) {\n        self.itemArray = dokan.cateItemStringArray;\n        var strings = self.itemArray.join(', ');\n        self.setCategoryHolder(strings);\n      }\n    },\n\n    /**\n     * Set Category Holder\n     *\n     * @param string\n     *\n     * @return void\n     */\n    setCategoryHolder: function setCategoryHolder(string) {\n      var categoryHolder = $('.category-items');\n\n      if (!string) {\n        return categoryHolder.text(dokan.all_categories);\n      }\n\n      if (string.length > 15) {\n        categoryHolder.text(' ').append(string.substr(0, 15) + '...');\n      } else {\n        categoryHolder.text(' ').append(string);\n      }\n    },\n\n    /**\n     * If only 2 elments found, make them stay closer ( open now and featured )\n     *\n     * Push apply button a little down\n     *\n     * @return void\n     */\n    makeStyleAdjustment: function makeStyleAdjustment() {\n      var element = $('.store-lists-other-filter-wrap');\n\n      if (element && element.children() && element.children().length === 2) {\n        if (element.children().first() && element.children().first().hasClass('featured')) {\n          $('#dokan-store-listing-filter-form-wrap .apply-filter').css('margin-top', '15px');\n        }\n      }\n    }\n  };\n\n  if (window.dokan && window.dokan.storeLists) {\n    storeListsPro.init();\n  }\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/store-lists.js?");

/***/ }),

/***/ "./assets/src/js/store-seo.js":
/*!************************************!*\
  !*** ./assets/src/js/store-seo.js ***!
  \************************************/
/***/ (() => {

eval("//dokan store seo form submit\n(function ($) {\n  var wrapper = $('.dokan-store-seo-wrapper');\n  var Dokan_Store_SEO = {\n    init: function init() {\n      wrapper.on('submit', 'form#dokan-store-seo-form', this.form.validate);\n    },\n    form: {\n      validate: function validate(e) {\n        e.preventDefault();\n        var self = $(this),\n            data = {\n          action: 'dokan_seo_form_handler',\n          data: self.serialize()\n        };\n        Dokan_Store_SEO.form.submit(data);\n        return false;\n      },\n      submit: function submit(data) {\n        var feedback = $('#dokan-seo-feedback');\n        feedback.fadeOut();\n        $.post(dokan.ajaxurl, data, function (resp) {\n          if (resp.success) {\n            feedback.html(resp.data);\n            feedback.removeClass('dokan-hide');\n            feedback.addClass('dokan-alert-success');\n            feedback.fadeIn();\n          } else {\n            feedback.html(resp.data);\n            feedback.addClass('dokan-alert-danger');\n            feedback.removeClass('dokan-hide');\n            feedback.fadeIn();\n          }\n        });\n      }\n    }\n  };\n  $(function () {\n    Dokan_Store_SEO.init();\n  });\n})(jQuery);\n\n//# sourceURL=webpack://dokan-pro/./assets/src/js/store-seo.js?");

/***/ }),

/***/ "./assets/src/less/dokan-pro.less":
/*!****************************************!*\
  !*** ./assets/src/less/dokan-pro.less ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://dokan-pro/./assets/src/less/dokan-pro.less?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
/*!*******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  \*******************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

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

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/typeof.js":
/*!*******************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  \*******************************************************/
/***/ ((module) => {

eval("function _typeof(obj) {\n  \"@babel/helpers - typeof\";\n\n  return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n    return typeof obj;\n  } : function (obj) {\n    return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\n\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/typeof.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/regenerator/index.js":
/*!**********************************************************!*\
  !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  \**********************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

eval("// TODO(Babel 8): Remove this file.\nvar runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ \"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js\")();\n\nmodule.exports = runtime; // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\n\ntry {\n  regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n  if (typeof globalThis === \"object\") {\n    globalThis.regeneratorRuntime = runtime;\n  } else {\n    Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n  }\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/regenerator/index.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack___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\": () => (/* binding */ _arrayLikeToArray)\n/* harmony export */ });\nfunction _arrayLikeToArray(arr, len) {\n  if (len == null || len > arr.length) len = arr.length;\n\n  for (var i = 0, arr2 = new Array(len); i < len; i++) {\n    arr2[i] = arr[i];\n  }\n\n  return arr2;\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack___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\": () => (/* binding */ _arrayWithoutHoles)\n/* harmony export */ });\n/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n  if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(arr);\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack___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\": () => (/* binding */ _asyncToGenerator)\n/* harmony export */ });\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n  try {\n    var info = gen[key](arg);\n    var value = info.value;\n  } catch (error) {\n    reject(error);\n    return;\n  }\n\n  if (info.done) {\n    resolve(value);\n  } else {\n    Promise.resolve(value).then(_next, _throw);\n  }\n}\n\nfunction _asyncToGenerator(fn) {\n  return function () {\n    var self = this,\n        args = arguments;\n    return new Promise(function (resolve, reject) {\n      var gen = fn.apply(self, args);\n\n      function _next(value) {\n        asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n      }\n\n      function _throw(err) {\n        asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n      }\n\n      _next(undefined);\n    });\n  };\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
/*!*******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack___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\": () => (/* binding */ _defineProperty)\n/* harmony export */ });\nfunction _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n\n  return obj;\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/esm/defineProperty.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
/*!********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
  \********************************************************************/
/***/ ((__unused_webpack___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\": () => (/* binding */ _iterableToArray)\n/* harmony export */ });\nfunction _iterableToArray(iter) {\n  if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack___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\": () => (/* binding */ _nonIterableSpread)\n/* harmony export */ });\nfunction _nonIterableSpread() {\n  throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack___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\": () => (/* binding */ _toConsumableArray)\n/* harmony export */ });\n/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles.js */ \"./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js\");\n/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js\");\n/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js\");\n/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableSpread.js */ \"./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js\");\n\n\n\n\nfunction _toConsumableArray(arr) {\n  return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])();\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js?");

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack___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\": () => (/* binding */ _unsupportedIterableToArray)\n/* harmony export */ });\n/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n  if (!o) return;\n  if (typeof o === \"string\") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(o, minLen);\n  var n = Object.prototype.toString.call(o).slice(8, -1);\n  if (n === \"Object\" && o.constructor) n = o.constructor.name;\n  if (n === \"Map\" || n === \"Set\") return Array.from(o);\n  if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(o, minLen);\n}\n\n//# sourceURL=webpack://dokan-pro/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js?");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// 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
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (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/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (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__("./assets/src/js/dokan-pro.js");
/******/ 	
/******/ })()
;