No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

86 líneas
8.4KB

  1. (self["webpackChunk"] = self["webpackChunk"] || []).push([["app-backend"],{
  2. /***/ "./assets/app/backend/common/app.common.js":
  3. /*!*************************************************!*\
  4. !*** ./assets/app/backend/common/app.common.js ***!
  5. \*************************************************/
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. "use strict";
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony import */ var _common_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common.scss */ "./assets/app/backend/common/common.scss");
  10. /* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common.js */ "./assets/app/backend/common/common.js");
  11. /* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_common_js__WEBPACK_IMPORTED_MODULE_1__);
  12. /*
  13. * Welcome to your app's main JavaScript file!
  14. *
  15. * We recommend including the built version of this JavaScript file
  16. * (and its CSS file) in your base layout (base.html.twig).
  17. */
  18. // any CSS you import will output into a single css file (app.css in this case)
  19. // start the Stimulus application
  20. //import './bootstrap';
  21. /***/ }),
  22. /***/ "./assets/app/backend/common/common.js":
  23. /*!*********************************************!*\
  24. !*** ./assets/app/backend/common/common.js ***!
  25. \*********************************************/
  26. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  27. __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
  28. $(document).ready(function () {
  29. $('.field-collection[data-prototype]').on('collection-add-item', function () {
  30. $(this).find('select').each(function (i, e) {
  31. SovWidgets.setSelect2($(e));
  32. setSubtheme($(e));
  33. });
  34. });
  35. $('.theme').each(function (i, select) {
  36. setSubtheme($(select));
  37. $(select).trigger('change');
  38. }); //setSubtheme();
  39. // $(document).on('click', '.theme option', function (e) {
  40. // alert('test');
  41. // $(this).closest('.form-widget-compound').find('.subtheme option').show();
  42. // $(this).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(this).data('class') + "']").hide();
  43. // });
  44. });
  45. function setSubtheme($select) {
  46. $select.on('change', function (e) {
  47. SovTools.log($(e.target).find('option:selected').data('class'));
  48. $(e.target).closest('.form-widget-compound').find('.subtheme option').prop('disabled', false);
  49. $(e.target).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(e.target).find('option:selected').data('class') + "']").prop('disabled', true);
  50. SovWidgets.setSelect2($(this).closest('.form-widget-compound').find('.subtheme'));
  51. });
  52. }
  53. /***/ }),
  54. /***/ "./assets/app/backend/common/common.scss":
  55. /*!***********************************************!*\
  56. !*** ./assets/app/backend/common/common.scss ***!
  57. \***********************************************/
  58. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  59. "use strict";
  60. __webpack_require__.r(__webpack_exports__);
  61. // extracted by mini-css-extract-plugin
  62. /***/ })
  63. },
  64. /******/ __webpack_require__ => { // webpackRuntimeModules
  65. /******/ "use strict";
  66. /******/
  67. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  68. /******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_export_js","vendors-node_modules_core-js_modules_es_array_find_js-_7db00"], () => (__webpack_exec__("./assets/app/backend/common/app.common.js")));
  69. /******/ var __webpack_exports__ = __webpack_require__.O();
  70. /******/ }
  71. ]);
  72. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvYXBwL2JhY2tlbmQvY29tbW9uL2FwcC5jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9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