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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./init.js */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/init.js");
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_init_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _common_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/common.scss");



/***/ }),

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

__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");

__webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");

window.addEventListener('load', function (event) {
  $(document).on('select2:open', function () {
    document.querySelector('.select2-search__field').focus();
  });
  SovNotification.init();
  SovWidgets.setDateRange();
  $('.btn-confirm-js, .action-confirm').click(function () {
    return confirm('Êtes-vous sûr de vouloir réaliser cette action ?');
  });
  /* Tooltip */

  $('[data-toggle="tooltip"]').tooltip();

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

  $('.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();
    });
  });
  var elements = $('.lc-ckeditor');

  if (elements.length) {
    for (var i = 0; i < elements.length; ++i) {
      if ($(elements[i]).data('config') === 'simple_config') {
        CKEDITOR.replace(elements[i], {
          "toolbar": [{
            items: ['Bold', 'Italic', 'Underline', 'Strike']
          }, {
            items: ["TextColor"]
          }],
          "language": "fr",
          'height': 100
        });
      } else {
        CKEDITOR.replace(elements[i], {
          "toolbar": [{
            name: "styles",
            items: ["Format", 'Bold', 'Italic', 'Underline', 'Strike', "Link", "BulletedList"]
          }, {
            items: ["TextColor"]
          }, {
            name: 'paragraph',
            items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']
          }, {
            name: 'insert',
            items: ['Image', 'SpecialChar']
          }, {
            name: "document",
            items: ["Source"]
          }],
          "language": "fr"
        });
      }
    }
  }

  SovWidgets.setAutoCompleteField();
});

/***/ }),

/***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/common.scss":
/*!********************************************************************************!*\
  !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/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_export_js","vendors-node_modules_core-js_modules_es_string_replace_js"], () => (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/app.main.js")));
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ }
]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8424 characters]