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

/***/ "./admin/assets/js/components/pixelio_cart_abandon_recovery_more_loader_spinner.js":
/*!*****************************************************************************************!*\
  !*** ./admin/assets/js/components/pixelio_cart_abandon_recovery_more_loader_spinner.js ***!
  \*****************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PixelioCartAbandonRecoveryMoreLoaderSpinner: function() { return /* binding */ PixelioCartAbandonRecoveryMoreLoaderSpinner; }\n/* harmony export */ });\nclass PixelioCartAbandonRecoveryMoreLoaderSpinner {\n  constructor() {\n    const self = this;\n  }\n  showPixelioLoader() {\n    const overlay = document.getElementById(\"pixelio-cart-abandon-recovery-more-loader-overlay\");\n    overlay.style.display = \"flex\";\n  }\n  hidePixelioLoader() {\n    const overlay = document.getElementById(\"pixelio-cart-abandon-recovery-more-loader-overlay\");\n    overlay.style.display = \"none\";\n  }\n}\n\n//# sourceURL=webpack://pixelio-cart-abandon-recovery-more/./admin/assets/js/components/pixelio_cart_abandon_recovery_more_loader_spinner.js?");

/***/ }),

/***/ "./admin/assets/js/components/pixelio_cart_abandon_recovery_more_update_popup.js":
/*!***************************************************************************************!*\
  !*** ./admin/assets/js/components/pixelio_cart_abandon_recovery_more_update_popup.js ***!
  \***************************************************************************************/
/***/ (function() {

eval("(function ($) {\n  const STORAGE_KEY = 'pixelio_update_popup_hidden_until';\n  $(document).on('click', '.pixelio-cart-abandon-recovery-more-close-update-popup', function (e) {\n    e.preventDefault();\n    localStorage.setItem(STORAGE_KEY, Date.now() + 60 * 60 * 1000 // 1 heure\n    );\n    $('#pixelio-cart-abandon-recovery-more-update-popup-container').fadeOut(200);\n  });\n  $(function () {\n    const hiddenUntil = parseInt(localStorage.getItem(STORAGE_KEY) || '0', 10);\n    if (hiddenUntil > Date.now()) {\n      $('#pixelio-cart-abandon-recovery-more-update-popup-container').hide();\n    }\n  });\n})(jQuery);\n\n//# sourceURL=webpack://pixelio-cart-abandon-recovery-more/./admin/assets/js/components/pixelio_cart_abandon_recovery_more_update_popup.js?");

/***/ }),

/***/ "./admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_integration.js":
/*!***************************************************************************************!*\
  !*** ./admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_integration.js ***!
  \***************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components_pixelio_cart_abandon_recovery_more_loader_spinner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/pixelio_cart_abandon_recovery_more_loader_spinner */ \"./admin/assets/js/components/pixelio_cart_abandon_recovery_more_loader_spinner.js\");\n/* harmony import */ var _components_pixelio_cart_abandon_recovery_more_update_popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/pixelio_cart_abandon_recovery_more_update_popup */ \"./admin/assets/js/components/pixelio_cart_abandon_recovery_more_update_popup.js\");\n/* harmony import */ var _components_pixelio_cart_abandon_recovery_more_update_popup__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_components_pixelio_cart_abandon_recovery_more_update_popup__WEBPACK_IMPORTED_MODULE_1__);\n\n\njQuery(function ($) {\n  var loadSpinner = new _components_pixelio_cart_abandon_recovery_more_loader_spinner__WEBPACK_IMPORTED_MODULE_0__.PixelioCartAbandonRecoveryMoreLoaderSpinner();\n  var already_vote = $(\".pixelio-cart-abandon-recovery-more-already-voted\").length > 0;\n  if (already_vote) {\n    $('.pixelio-cart-abandon-recovery-more-submit-vote').hide();\n  }\n  $('.pixelio-cart-abandon-recovery-more-integration-option').on('click', function () {\n    $('.pixelio-cart-abandon-recovery-more-integration-option').removeClass('selected');\n    $('.pixelio-other-input-container').hide();\n    $('.pixelio-cart-abandon-recovery-more-other-input').val('');\n    $(this).toggleClass('selected');\n  });\n  $('.pixelio-cart-abandon-recovery-more-submit-vote').on('click', function () {\n    loadSpinner.showPixelioLoader();\n    var selected = $('.pixelio-cart-abandon-recovery-more-integration-option.selected').data('value');\n    if (!selected) {\n      loadSpinner.hidePixelioLoader();\n      alert(pixelioVoteData.alert_choose_integration);\n      return;\n    }\n    $.ajax({\n      url: pixelioVoteData.vote_endpoint,\n      method: 'POST',\n      contentType: 'application/json',\n      data: JSON.stringify({\n        name: selected,\n        userId: pixelioVoteData.user_id\n      }),\n      headers: {\n        'x-api-key': pixelioVoteData.api_key\n      },\n      success: function (response) {\n        if (response.success) {\n          alert(pixelioVoteData.alert_success);\n          location.reload();\n        } else {\n          alert(pixelioVoteData.alert_error);\n        }\n        loadSpinner.hidePixelioLoader();\n      },\n      error: function () {\n        alert(pixelioVoteData.alert_error);\n        loadSpinner.hidePixelioLoader();\n      }\n    });\n  });\n});\n\n//# sourceURL=webpack://pixelio-cart-abandon-recovery-more/./admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_integration.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 */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("./admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_integration.js");
/******/ 	
/******/ })()
;