(self["webpackChunk"] = self["webpackChunk"] || []).push([["sov-reminder"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _reminder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reminder.js */ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.js");
/* harmony import */ var _reminder_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_reminder_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _reminder_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reminder.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.scss");



/***/ }),

/***/ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.js":
/*!*********************************************************************************!*\
  !*** ../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.js ***!
  \*********************************************************************************/
/***/ (() => {

$(document).ready(function () {
  initReminder();
});

function initReminder() {
  var selectorModal = '#modal-reminder';
  $('.btn-reminder').click(function () {
    $.post($(this).attr('href'), {
      crudAction: $(this).data('crud-action'),
      crudControllerFqcn: $(this).data('crud-controller-fqcn'),
      entityId: $(this).data('entity-id'),
      id: $(this).data('id')
    }, function (html) {
      $(selectorModal).remove();
      $('body').append(html);
      $(selectorModal).modal('show');
    });
    return false;
  });
  $('.checkbox-reminder').click(function () {
    $.post($(this).data('url'), {
      id: $(this).data('id'),
      done: $(this).is(':checked')
    }, function (data) {
      SovNotification.add('success', 'Pense-bête mis à jour');
    }, 'json');
  });
}

/***/ }),

/***/ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.scss":
/*!***********************************************************************************!*\
  !*** ../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.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))
/******/ var __webpack_exports__ = (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/app.reminder.js"));
/******/ }
]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbi9yZW1pbmRlci9hcHAucmVtaW5kZXIuanMiLCJ3ZWJwYWNrOi8vLy4uL0xhQ2xpY0J1bmRsZS9Tb3ZCdW5kbGUvUmVzb3VyY2VzL2Fzc2V0cy9hcHAvYWRtaW4vcmVtaW5kZXIvcmVtaW5kZXIuanMiLCJ3ZWJwYWNrOi8vLy4uL0xhQ2xpY0J1bmRsZS9Tb3ZCdW5kbGUvUmVzb3VyY2VzL2Fzc2V0cy9hcHAvYWRtaW4vcmVtaW5kZXIvcmVtaW5kZXIuc2NzcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImluaXRSZW1pbmRlciIsInNlbGVjdG9yTW9kYWwiLCJjbGljayIsInBvc3QiLCJhdHRyIiwiY3J1ZEFjdGlvbiIsImRhdGEiLCJjcnVkQ29udHJvbGxlckZxY24iLCJlbnRpdHlJZCIsImlkIiwiaHRtbCIsInJlbW92ZSIsImFwcGVuZCIsIm1vZGFsIiwiZG9uZSIsImlzIiwiU292Tm90aWZpY2F0aW9uIiwiYWRkIl0sIm1hcHBpbmdzIjoiO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