Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

332 lines
29KB

  1. (self["webpackChunk"] = self["webpackChunk"] || []).push([["adminlte-sort"],{
  2. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/app.sort.js":
  3. /*!********************************************************************************!*\
  4. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/app.sort.js ***!
  5. \********************************************************************************/
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. "use strict";
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony import */ var jquery_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery-ui */ "./node_modules/jquery-ui-dist/jquery-ui.js");
  10. /* harmony import */ var jquery_ui__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery_ui__WEBPACK_IMPORTED_MODULE_0__);
  11. /* harmony import */ var _sort_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sort.js */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.js");
  12. /* harmony import */ var _sort_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_sort_js__WEBPACK_IMPORTED_MODULE_1__);
  13. /* harmony import */ var _sort_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sort.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.scss");
  14. /***/ }),
  15. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.js":
  16. /*!****************************************************************************!*\
  17. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.js ***!
  18. \****************************************************************************/
  19. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  20. __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
  21. __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");
  22. __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
  23. __webpack_require__(/*! core-js/modules/es.string.pad-start.js */ "./node_modules/core-js/modules/es.string.pad-start.js");
  24. __webpack_require__(/*! core-js/modules/es.date.to-string.js */ "./node_modules/core-js/modules/es.date.to-string.js");
  25. __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
  26. __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
  27. jQuery(document).ready(function () {
  28. initSovSortableList();
  29. });
  30. function initSovSortableList() {
  31. if ($('.sov-sortable').length > 0) {
  32. $('.sov-sortable tbody').sortable({
  33. placeholder: "ui-state-highlight"
  34. });
  35. $('.sov-sortable tbody').on("sortupdate", function (event, ui) {
  36. prototype = $('#form_entities').data('prototype');
  37. $('.sov-sortable tr.sov-draggable').each(function (index, li) {
  38. // instead be a number based on how many items we have
  39. var newForm = prototype.replace(/__name__/g, index); // Replace '__name__' in the prototype's HTML to
  40. $(li).find('div:last-child').remove();
  41. $(li).append(newForm);
  42. $(li).find('#form_entities_' + index + '_id').val($(li).data('id'));
  43. if ($('.sov-sortable').data('parent-position') !== '') {
  44. //Ajout d'un 0 initial pour les nuémros <10
  45. indexAsString = index.toString().padStart(2, '0');
  46. val = $('.sov-sortable').data('parent-position') + '.' + indexAsString;
  47. } else {
  48. val = index;
  49. }
  50. $(li).find('#form_entities_' + index + '_position').val(val);
  51. });
  52. });
  53. }
  54. }
  55. /***/ }),
  56. /***/ "./node_modules/core-js/internals/classof.js":
  57. /*!***************************************************!*\
  58. !*** ./node_modules/core-js/internals/classof.js ***!
  59. \***************************************************/
  60. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  61. var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
  62. var classofRaw = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
  63. var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
  64. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  65. // ES3 wrong here
  66. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  67. // fallback for IE11 Script Access Denied error
  68. var tryGet = function (it, key) {
  69. try {
  70. return it[key];
  71. } catch (error) { /* empty */ }
  72. };
  73. // getting tag from ES6+ `Object.prototype.toString`
  74. module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  75. var O, tag, result;
  76. return it === undefined ? 'Undefined' : it === null ? 'Null'
  77. // @@toStringTag case
  78. : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
  79. // builtinTag case
  80. : CORRECT_ARGUMENTS ? classofRaw(O)
  81. // ES3 arguments fallback
  82. : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
  83. };
  84. /***/ }),
  85. /***/ "./node_modules/core-js/internals/object-to-string.js":
  86. /*!************************************************************!*\
  87. !*** ./node_modules/core-js/internals/object-to-string.js ***!
  88. \************************************************************/
  89. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  90. "use strict";
  91. var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
  92. var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js");
  93. // `Object.prototype.toString` method implementation
  94. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  95. module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  96. return '[object ' + classof(this) + ']';
  97. };
  98. /***/ }),
  99. /***/ "./node_modules/core-js/internals/string-pad-webkit-bug.js":
  100. /*!*****************************************************************!*\
  101. !*** ./node_modules/core-js/internals/string-pad-webkit-bug.js ***!
  102. \*****************************************************************/
  103. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  104. // https://github.com/zloirock/core-js/issues/280
  105. var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
  106. // eslint-disable-next-line unicorn/no-unsafe-regex -- safe
  107. module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
  108. /***/ }),
  109. /***/ "./node_modules/core-js/internals/string-pad.js":
  110. /*!******************************************************!*\
  111. !*** ./node_modules/core-js/internals/string-pad.js ***!
  112. \******************************************************/
  113. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  114. // https://github.com/tc39/proposal-string-pad-start-end
  115. var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
  116. var repeat = __webpack_require__(/*! ../internals/string-repeat */ "./node_modules/core-js/internals/string-repeat.js");
  117. var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
  118. var ceil = Math.ceil;
  119. // `String.prototype.{ padStart, padEnd }` methods implementation
  120. var createMethod = function (IS_END) {
  121. return function ($this, maxLength, fillString) {
  122. var S = String(requireObjectCoercible($this));
  123. var stringLength = S.length;
  124. var fillStr = fillString === undefined ? ' ' : String(fillString);
  125. var intMaxLength = toLength(maxLength);
  126. var fillLen, stringFiller;
  127. if (intMaxLength <= stringLength || fillStr == '') return S;
  128. fillLen = intMaxLength - stringLength;
  129. stringFiller = repeat.call(fillStr, ceil(fillLen / fillStr.length));
  130. if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
  131. return IS_END ? S + stringFiller : stringFiller + S;
  132. };
  133. };
  134. module.exports = {
  135. // `String.prototype.padStart` method
  136. // https://tc39.es/ecma262/#sec-string.prototype.padstart
  137. start: createMethod(false),
  138. // `String.prototype.padEnd` method
  139. // https://tc39.es/ecma262/#sec-string.prototype.padend
  140. end: createMethod(true)
  141. };
  142. /***/ }),
  143. /***/ "./node_modules/core-js/internals/string-repeat.js":
  144. /*!*********************************************************!*\
  145. !*** ./node_modules/core-js/internals/string-repeat.js ***!
  146. \*********************************************************/
  147. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  148. "use strict";
  149. var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
  150. var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
  151. // `String.prototype.repeat` method implementation
  152. // https://tc39.es/ecma262/#sec-string.prototype.repeat
  153. module.exports = function repeat(count) {
  154. var str = String(requireObjectCoercible(this));
  155. var result = '';
  156. var n = toInteger(count);
  157. if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
  158. for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
  159. return result;
  160. };
  161. /***/ }),
  162. /***/ "./node_modules/core-js/internals/to-string-tag-support.js":
  163. /*!*****************************************************************!*\
  164. !*** ./node_modules/core-js/internals/to-string-tag-support.js ***!
  165. \*****************************************************************/
  166. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  167. var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
  168. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  169. var test = {};
  170. test[TO_STRING_TAG] = 'z';
  171. module.exports = String(test) === '[object z]';
  172. /***/ }),
  173. /***/ "./node_modules/core-js/modules/es.object.to-string.js":
  174. /*!*************************************************************!*\
  175. !*** ./node_modules/core-js/modules/es.object.to-string.js ***!
  176. \*************************************************************/
  177. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  178. var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
  179. var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
  180. var toString = __webpack_require__(/*! ../internals/object-to-string */ "./node_modules/core-js/internals/object-to-string.js");
  181. // `Object.prototype.toString` method
  182. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  183. if (!TO_STRING_TAG_SUPPORT) {
  184. redefine(Object.prototype, 'toString', toString, { unsafe: true });
  185. }
  186. /***/ }),
  187. /***/ "./node_modules/core-js/modules/es.regexp.to-string.js":
  188. /*!*************************************************************!*\
  189. !*** ./node_modules/core-js/modules/es.regexp.to-string.js ***!
  190. \*************************************************************/
  191. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  192. "use strict";
  193. var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
  194. var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
  195. var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
  196. var flags = __webpack_require__(/*! ../internals/regexp-flags */ "./node_modules/core-js/internals/regexp-flags.js");
  197. var TO_STRING = 'toString';
  198. var RegExpPrototype = RegExp.prototype;
  199. var nativeToString = RegExpPrototype[TO_STRING];
  200. var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
  201. // FF44- RegExp#toString has a wrong name
  202. var INCORRECT_NAME = nativeToString.name != TO_STRING;
  203. // `RegExp.prototype.toString` method
  204. // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
  205. if (NOT_GENERIC || INCORRECT_NAME) {
  206. redefine(RegExp.prototype, TO_STRING, function toString() {
  207. var R = anObject(this);
  208. var p = String(R.source);
  209. var rf = R.flags;
  210. var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
  211. return '/' + p + '/' + f;
  212. }, { unsafe: true });
  213. }
  214. /***/ }),
  215. /***/ "./node_modules/core-js/modules/es.string.pad-start.js":
  216. /*!*************************************************************!*\
  217. !*** ./node_modules/core-js/modules/es.string.pad-start.js ***!
  218. \*************************************************************/
  219. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  220. "use strict";
  221. var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
  222. var $padStart = __webpack_require__(/*! ../internals/string-pad */ "./node_modules/core-js/internals/string-pad.js").start;
  223. var WEBKIT_BUG = __webpack_require__(/*! ../internals/string-pad-webkit-bug */ "./node_modules/core-js/internals/string-pad-webkit-bug.js");
  224. // `String.prototype.padStart` method
  225. // https://tc39.es/ecma262/#sec-string.prototype.padstart
  226. $({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
  227. padStart: function padStart(maxLength /* , fillString = ' ' */) {
  228. return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
  229. }
  230. });
  231. /***/ }),
  232. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.scss":
  233. /*!******************************************************************************!*\
  234. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.scss ***!
  235. \******************************************************************************/
  236. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  237. "use strict";
  238. __webpack_require__.r(__webpack_exports__);
  239. // extracted by mini-css-extract-plugin
  240. /***/ })
  241. },
  242. /******/ __webpack_require__ => { // webpackRuntimeModules
  243. /******/ "use strict";
  244. /******/
  245. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  246. /******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_export_js","vendors-node_modules_core-js_modules_es_string_replace_js","vendors-node_modules_jquery_src_jquery_js","vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_date_to-6fef76","vendors-node_modules_jquery-ui-dist_jquery-ui_js"], () => (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/app.sort.js")));
  247. /******/ var __webpack_exports__ = __webpack_require__.O();
  248. /******/ }
  249. ]);
  250. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9zb3J0L2FwcC5zb3J0LmpzIiwid2VicGFjazovLy8uLi9MYUNsaWNCdW5kbGUvU292QnVuZGxlL1Jlc291cmNlcy9hc3NldHMvYXBwL2FkbWlubHRlL3NvcnQvc29ydC5qcyIsIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvY2xhc3NvZi5qcyIsIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LXRvLXN0cmluZy5qcyIsIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvc3RyaW5nLXBhZC13ZWJraXQtYnVnLmpzIiwid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zdHJpbmctcGFkLmpzIiwid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zdHJpbmctcmVwZWF0LmpzIiwid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy90by1zdHJpbmctdGFnLXN1cHBvcnQuanMiLCJ3ZWJwYWNrOi8vLy4vbm9kZV9tb2R1bGVzL2NvcmUtanMvbW9kdWxlcy9lcy5vYmplY3QudG8tc3RyaW5nLmpzIiwid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9jb3JlLWpzL21vZHVsZXMvZXMucmVnZXhwLnRvLXN0cmluZy5qcyIsIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvY29yZS1qcy9tb2R1bGVzL2VzLnN0cmluZy5wYWQtc3RhcnQuanMiL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2Omxhc3QtY2hpbGQnKS5yZW1vdmUoKTtcblxuICAgICAgICAgICAgICAgICQobGkpLmFwcGVuZChuZXdGb3JtKTtcbiAgICAgICAgICAgICAgICAkKGxpKS5maW5kKCcjZm9ybV9lbnRpdGllc18nICsgaW5kZXggKyAnX2lkJykudmFsKCQobGkpLmRhdGEoJ2lkJykpO1xuICAgICAgICAgICAgICAgIGlmICgkKCcuc292LXNvcnRhYmxlJykuZGF0YSgncGFyZW50LXBvc2l0aW9uJykgIT09ICcnKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vQWpvdXQgZCd1biAwIGluaXRpYWwgcG91ciBsZXMgbnXDqW1yb3MgPDEwXG4gICAgICAgICAgICAgICAgICAgIGluZGV4QXNTdHJpbmcgPSBpbmRleC50b1N0cmluZygpLnBhZFN0YXJ0KDIsICcwJyk7XG4gICAgICAgICAgICAgICAgICAgIHZhbCA9ICQoJy5zb3Ytc29ydGFibGUnKS5kYXRhKCdwYXJlbnQtcG9zaXRpb24nKSArICcuJyArIGluZGV4QXNTdHJpbmdcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB2YWwgPSBpbmRleDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgJChsaSkuZmluZCgnI2Zvcm1fZW50aXRpZXNfJyArIGluZGV4ICsgJ19wb3NpdGlvbicpLnZhbCh2YWwpO1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgfSk7XG4gICAgfVxufVxuXG4iLCJ2YXIgVE9fU1RSSU5HX1RBR19TVVBQT1JUID0gcmVxdWlyZSgnLi4vaW50ZXJuYWxzL3RvLXN0cmluZy10YWctc3VwcG9ydCcpO1xudmFyIGNsYXNzb2ZSYXcgPSByZXF1aXJlKCcuLi9pbnRlcm5hbHMvY2xhc3NvZi1yYXcnKTtcbnZhciB3ZWxsS25vd25TeW1ib2wgPSByZXF1aXJlKCcuLi9pbnRlcm5hbHMvd2VsbC1rbm93bi1zeW1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