(self["webpackChunk"] = self["webpackChunk"] || []).push([["adminlte-common"],{

/***/ "../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/app.common.js":
/*!*************************************************************************************!*\
  !*** ../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/app.common.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "./node_modules/jquery/src/jquery.js");
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var adminlte_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! adminlte-js */ "./node_modules/admin-lte/dist/js/adminlte.min.js");
/* harmony import */ var adminlte_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(adminlte_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var adminlte_plugin_bootstrap_js_bootstrap_min_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! adminlte-plugin/bootstrap/js/bootstrap.min.js */ "./node_modules/admin-lte/plugins/bootstrap/js/bootstrap.min.js");
/* harmony import */ var adminlte_plugin_bootstrap_js_bootstrap_min_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(adminlte_plugin_bootstrap_js_bootstrap_min_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var adminlte_plugin_select2_js_select2_min_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! adminlte-plugin/select2/js/select2.min.js */ "./node_modules/admin-lte/plugins/select2/js/select2.min.js");
/* harmony import */ var adminlte_plugin_select2_js_select2_min_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(adminlte_plugin_select2_js_select2_min_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var adminlte_plugin_select2_js_i18n_fr_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! adminlte-plugin/select2/js/i18n/fr.js */ "./node_modules/admin-lte/plugins/select2/js/i18n/fr.js");
/* harmony import */ var adminlte_plugin_select2_js_i18n_fr_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(adminlte_plugin_select2_js_i18n_fr_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var adminlte_plugin_select2_css_select2_min_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! adminlte-plugin/select2/css/select2.min.css */ "./node_modules/admin-lte/plugins/select2/css/select2.min.css");
/* harmony import */ var adminlte_plugin_select2_bootstrap4_theme_select2_bootstrap4_min_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! adminlte-plugin/select2-bootstrap4-theme/select2-bootstrap4.min.css */ "./node_modules/admin-lte/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css");
/* harmony import */ var toastr_toastr_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! toastr/toastr.js */ "./node_modules/toastr/toastr.js");
/* harmony import */ var toastr_toastr_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(toastr_toastr_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var toastr_toastr_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! toastr/toastr.scss */ "./node_modules/toastr/toastr.scss");
/* harmony import */ var _tools_tools_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../tools/tools.js */ "../LaclicBundles/SovBundle/Resources/assets/tools/tools.js");
/* harmony import */ var _js_notification_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./js/notification.js */ "../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/js/notification.js");
/* harmony import */ var _common_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./common.scss */ "../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/common.scss");
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./common.js */ "../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/common.js");
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_common_js__WEBPACK_IMPORTED_MODULE_12__);
// JQuery

__webpack_require__.g.$ = __webpack_require__.g.jQuery = $; // Adminlte

 // Bootstrap

 // Select2




 // Toastr



__webpack_require__.g.toastr = (toastr_toastr_js__WEBPACK_IMPORTED_MODULE_7___default()); // Tools


__webpack_require__.g.Tools = _tools_tools_js__WEBPACK_IMPORTED_MODULE_9__.Tools;

__webpack_require__.g.Notification = _js_notification_js__WEBPACK_IMPORTED_MODULE_10__.Notification;
_js_notification_js__WEBPACK_IMPORTED_MODULE_10__.Notification.init(); // Common




/***/ }),

/***/ "../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/common.js":
/*!*********************************************************************************!*\
  !*** ../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/common.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

__webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");

/* Notifications */
//Notification.init() ;

/* Tooltip */
$('[data-toggle="tooltip"]').tooltip();
/* Select2 */

if ($('.select2, select.form-control').length) {
  $('form .form-widget>select.form-control, .select2').each(function (i, elm) {
    if (!$(this).hasClass('disable-select2')) {
      setSelect2($(elm));
    }
  });
  $('form select.form-control').each(function (i, elm) {
    if (!$(this).hasClass('disable-select2')) {
      setSelect2($(elm));
    }
  });
}

function setSelect2($select) {
  if (typeof $select.data('select2-id') === 'undefined') {
    $select.data('init', 'set');
    var options = {
      width: "100%",
      theme: "bootstrap4",
      dropdownAutoWidth: false,
      allowClear: true,
      minimumResultsForSearch: 8
    };

    if ($select.data('allow-clear') == 'false') {
      options.allowClear = false;
    }

    if ($select.data('width')) {
      options.width = 'auto';
    }

    if ($select.find('option[value=""]')) {
      options.placeholder = $select.find('option[value=""]').html();
    }
    /*if($select.is(':required') == false) {
        options.allowclear = true
    }*/


    var myselect = $select.select2(options);
    myselect.on('select2:select', function (e) {
      var event = new Event('change');
      e.target.dispatchEvent(event);
    });
    myselect.on('select2:unselect', function (e) {
      var event = new Event('change');
      e.target.dispatchEvent(event);
    });
    return myselect;
  }
}

$('.action-delete').on('click', function (e) {
  e.preventDefault();
  var formAction = $(this).attr('formaction');
  $('#modal-delete').modal({
    backdrop: true,
    keyboard: true
  }).off('click', '#modal-delete-button').on('click', '#modal-delete-button', function () {
    var deleteForm = $('#delete-form');
    deleteForm.attr('action', formAction);
    deleteForm.submit();
  });
});

/***/ }),

/***/ "../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/js/notification.js":
/*!******************************************************************************************!*\
  !*** ../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/js/notification.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Notification": () => (/* binding */ Notification)
/* harmony export */ });
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_3__);





function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var Notification = /*#__PURE__*/function () {
  function Notification() {
    _classCallCheck(this, Notification);
  }

  _createClass(Notification, null, [{
    key: "init",
    value: function init() {
      toastr.options.timeOut = 3000;
      toastr.options.positionClass = 'toast-bottom-right';

      toastr.options.onHidden = function () {
        if ($('#toast-container .toast').length == 1) {
          $('#toast-close-all').remove();
        }
      };
    }
  }, {
    key: "set",
    value: function set(notifications) {
      var currentNotifications = new Array();

      for (var type in notifications) {
        for (var key in notifications[type]) {
          if (!currentNotifications.includes(notifications[type][key])) {
            currentNotifications.push(notifications[type][key]);
            self.add(type, notifications[type][key]);
          }
        }
      }
    }
  }, {
    key: "add",
    value: function add(type, text) {
      toastr[type](text);
      var $container = $('#toast-container');
      var selectorButtonCloseAll = '#toast-close-all';
      var countMessages = $container.find('.toast').length;

      if ($(selectorButtonCloseAll).length == 0 && countMessages > 2) {
        $container.prepend('<button id="toast-close-all"><i class="fa fa-times"></i></button>');
      }

      $(selectorButtonCloseAll).off('click').on('click', function () {
        toastr.remove();

        if (countMessages == 0) {
          $('#toast-close-all').remove();
        }
      });
    }
  }]);

  return Notification;
}();

/***/ }),

/***/ "../LaclicBundles/SovBundle/Resources/assets/tools/tools.js":
/*!******************************************************************!*\
  !*** ../LaclicBundles/SovBundle/Resources/assets/tools/tools.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Tools": () => (/* binding */ Tools)
/* harmony export */ });
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.date.to-string.js */ "./node_modules/core-js/modules/es.date.to-string.js");
/* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.search.js */ "./node_modules/core-js/modules/es.string.search.js");
/* harmony import */ var core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_5__);







function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var Tools = /*#__PURE__*/function () {
  function Tools() {
    _classCallCheck(this, Tools);
  }

  _createClass(Tools, null, [{
    key: "log",
    value: function log(value) {
      try {
        console.log(value);
      } catch (_unused) {}
    }
  }, {
    key: "arrayRemove",
    value: function arrayRemove(arr, value) {
      return arr.filter(function (ele) {
        return ele != value;
      });
    }
  }, {
    key: "toPlainText",
    value: function toPlainText(html) {
      var scratchDiv = document.createElement('div');
      scratchDiv.innerHTML = html;
      return scratchDiv.textContent;
    }
  }, {
    key: "getDateFormatted",
    value: function getDateFormatted(date, separator) {
      if (date) {
        var date = new Date(date);

        var _d = date.getDate(),
            d = _d > 9 ? _d : '0' + _d,
            _m = date.getMonth() + 1,
            m = _m > 9 ? _m : '0' + _m,
            formatted = d + separator + m + separator + date.getFullYear();

        return formatted;
      } else {
        return '';
      }
    }
  }, {
    key: "getUrlParameter",
    value: function getUrlParameter(sParam) {
      var sPageURL = window.location.search.substring(1),
          sURLVariables = sPageURL.split('&'),
          sParameterName,
          i;

      for (i = 0; i < sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');

        if (sParameterName[0] === sParam) {
          return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
        }
      }
    }
  }, {
    key: "indexOfFirstDigit",
    value: function indexOfFirstDigit(input) {
      var i = 0;

      for (; input[i] < '0' || input[i] > '9'; i++) {
        ;
      }

      return i == input.length ? -1 : i;
    }
  }, {
    key: "indexOfLastDigit",
    value: function indexOfLastDigit(input) {
      var i = input.length - 1;

      for (; input[i] < '0' || input[i] > '9'; i--) {
        ;
      }

      return i == input.length ? -1 : i;
    }
  }]);

  return Tools;
}();

/***/ }),

/***/ "../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/common.scss":
/*!***********************************************************************************!*\
  !*** ../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/common.scss ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ })

},
/******/ __webpack_require__ => { // webpackRuntimeModules
/******/ "use strict";
/******/ 
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
/******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_a-function_js-node_modules_core-js_internals_export_js","vendors-node_modules_core-js_modules_es_array_find_js","vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0","vendors-node_modules_jquery_src_jquery_js","vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_admin-lte_plugins_bootstr-9c1f64"], () => (__webpack_exec__("../LaclicBundles/SovBundle/Resources/assets/app/adminlte/common/app.common.js")));
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ }
]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64, 