Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

129 lines
13KB

  1. (self["webpackChunk"] = self["webpackChunk"] || []).push([["adminlte-main"],{
  2. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/app.main.js":
  3. /*!********************************************************************************!*\
  4. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/app.main.js ***!
  5. \********************************************************************************/
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. "use strict";
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./init.js */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/init.js");
  10. /* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_init_js__WEBPACK_IMPORTED_MODULE_0__);
  11. /* harmony import */ var _common_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/common.scss");
  12. /***/ }),
  13. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/init.js":
  14. /*!****************************************************************************!*\
  15. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/init.js ***!
  16. \****************************************************************************/
  17. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  18. __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
  19. __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");
  20. window.addEventListener('load', function (event) {
  21. SovNotification.init();
  22. SovWidgets.setDateRange();
  23. $('.btn-confirm-js, .action-confirm').click(function () {
  24. return confirm('Êtes-vous sûr de vouloir réaliser cette action ?');
  25. });
  26. /* Tooltip */
  27. $('[data-toggle="tooltip"]').tooltip();
  28. /* Select2 */
  29. if ($('.form-select, .select2, select.form-control').length) {
  30. $('form .form-widget>select.form-control, .select2, .form-select').each(function (i, elm) {
  31. if (!$(this).hasClass('disable-select2')) {
  32. SovWidgets.setSelect2($(elm));
  33. }
  34. });
  35. $('form select.form-control').each(function (i, elm) {
  36. if (!$(this).hasClass('disable-select2')) {
  37. SovWidgets.setSelect2($(elm));
  38. }
  39. });
  40. }
  41. $('.action-delete').on('click', function (e) {
  42. e.preventDefault();
  43. var formAction = $(this).attr('formaction');
  44. $('#modal-delete').modal({
  45. backdrop: true,
  46. keyboard: true
  47. }).off('click', '#modal-delete-button').on('click', '#modal-delete-button', function () {
  48. var deleteForm = $('#delete-form');
  49. deleteForm.attr('action', formAction);
  50. deleteForm.submit();
  51. });
  52. });
  53. var elements = $('.lc-ckeditor');
  54. if (elements.length) {
  55. for (var i = 0; i < elements.length; ++i) {
  56. if ($(elements[i]).data('config') === 'simple_config') {
  57. CKEDITOR.replace(elements[i], {
  58. "toolbar": [{
  59. items: ['Bold', 'Italic', 'Underline', 'Strike']
  60. }, {
  61. items: ["TextColor"]
  62. }],
  63. "language": "fr",
  64. 'height': 100
  65. });
  66. } else {
  67. CKEDITOR.replace(elements[i], {
  68. "toolbar": [{
  69. name: "styles",
  70. items: ["Format", 'Bold', 'Italic', 'Underline', 'Strike', "Link", "BulletedList"]
  71. }, {
  72. items: ["TextColor"]
  73. }, {
  74. name: 'paragraph',
  75. items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']
  76. }, {
  77. name: 'insert',
  78. items: ['Image', 'SpecialChar']
  79. }, {
  80. name: "document",
  81. items: ["Source"]
  82. }],
  83. "language": "fr"
  84. });
  85. }
  86. }
  87. }
  88. SovWidgets.setAutoCompleteField();
  89. });
  90. /***/ }),
  91. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/common.scss":
  92. /*!********************************************************************************!*\
  93. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/main/common.scss ***!
  94. \********************************************************************************/
  95. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  96. "use strict";
  97. __webpack_require__.r(__webpack_exports__);
  98. // extracted by mini-css-extract-plugin
  99. /***/ })
  100. },
  101. /******/ __webpack_require__ => { // webpackRuntimeModules
  102. /******/ "use strict";
  103. /******/
  104. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  105. /******/ __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")));
  106. /******/ var __webpack_exports__ = __webpack_require__.O();
  107. /******/ }
  108. ]);
  109. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9tYWluL2FwcC5tYWluLmpzIiwid2VicGFjazovLy8uLi9MYUNsaWNCdW5kbGUvU292QnVuZGxlL1Jlc291cmNlcy9hc3NldHMvYXBwL2FkbWlubHRlL21haW4vaW5pdC5qcyIsIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9tYWluL2NvbW1vbi5zY3NzIl0sIm5hbWVzIjpbIndpbmRvdyIsImFkZEV2ZW50TGlzdGVuZXIiLCJldmVudCIsIlNvdk5vdGlmaWNhdGlvbiIsImluaXQiLCJTb3ZXaWRnZXRzIiwic2V0RGF0ZVJhbmdlIiwiJCIsImNsaWNrIiwiY29uZmlybSIsInRvb2x0aXAiLCJsZW5ndGgiLCJlYWNoIiwiaSIsImVsbSIsImhhc0NsYXNzIiwic2V0U2VsZWN0MiIsIm9uIiwiZSIsIn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tcblxuXG4gICAgdmFyIGVsZW1lbnRzID0gJCgnLmxjLWNrZWRpdG9yJyk7XG5cbiAgICBpZiAoZWxlbWVudHMubGVuZ3RoKSB7XG4gICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZWxlbWVudHMubGVuZ3RoOyArK2kpIHtcbiAgICAgICAgICAgIGlmICgkKGVsZW1lbnRzW2ldKS5kYXRhKCdjb25maWcnKSA9PT0gJ3NpbXBsZV9jb25maWcnKSB7XG4gICAgICAgICAgICAgICAgQ0tFRElUT1IucmVwbGFjZShlbGVtZW50c1tpXSwge1xuICAgICAgICAgICAgICAgICAgICBcInRvb2xiYXJcIjogW1xuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGl0ZW1zOiBbJ0JvbGQnLCAnSXRhbGljJywgJ1VuZGVybGluZScsICdTdHJpa2UnXVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpdGVtczogW1wiVGV4dENvbG9yXCJdXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgIFwibGFuZ3VhZ2VcIjogXCJmclwiLFxuICAgICAgICAgICAgICAgICAgICAnaGVpZ2h0JzogMTAwXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIENLRURJVE9SLnJlcGxhY2UoZWxlbWVudHNbaV0sIHtcbiAgICAgICAgICAgICAgICAgICAgXCJ0b29sYmFyXCI6IFtcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lOiBcInN0eWxlc1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGl0ZW1zOiBbXCJGb3JtYXRcIiwgJ0JvbGQnLCAnSXRhbGljJywgJ1VuZGVybGluZScsICdTdHJpa2UnLCBcIkxpbmtcIiwgXCJCdWxsZXRlZExpc3RcIl1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaXRlbXM6IFtcIlRleHRDb2xvclwiXVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHtuYW1lOiAncGFyYWdyYXBoJywgaXRlbXM6IFsnSnVzdGlmeUxlZnQnLCAnSnVzdGlmeUNlbnRlcicsICdKdXN0aWZ5UmlnaHQnLCAnSnVzdGlmeUJsb2NrJ119LFxuICAgICAgICAgICAgICAgICAgICAgICAge25hbWU6ICdpbnNlcnQnLCBpdGVtczogWydJbWFnZScsICdTcGVjaWFsQ2hhciddfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHtuYW1lOiBcImRvY3VtZW50XCIsIGl0ZW1zOiBbXCJTb3VyY2VcIl19LFxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICBcImxhbmd1YWdlXCI6IFwiZnJcIlxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBTb3ZXaWRnZXRzLnNldEF1dG9Db21wbGV0ZUZpZWxkKCk7XG5cblxufSk7IiwiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQge307Il0sInNvdXJjZVJvb3QiOiIifQ==