You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
7.2KB

  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. });
  39. });
  40. function setSubtheme($select) {
  41. $select.on('change', function (e) {
  42. $(e.target).closest('.form-widget-compound').find('.subtheme option').prop('disabled', false);
  43. $(e.target).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(e.target).find('option:selected').data('class') + "']").prop('disabled', true);
  44. SovWidgets.setSelect2($(this).closest('.form-widget-compound').find('.subtheme'));
  45. });
  46. }
  47. /***/ }),
  48. /***/ "./assets/app/backend/common/common.scss":
  49. /*!***********************************************!*\
  50. !*** ./assets/app/backend/common/common.scss ***!
  51. \***********************************************/
  52. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  53. "use strict";
  54. __webpack_require__.r(__webpack_exports__);
  55. // extracted by mini-css-extract-plugin
  56. /***/ })
  57. },
  58. /******/ __webpack_require__ => { // webpackRuntimeModules
  59. /******/ "use strict";
  60. /******/
  61. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  62. /******/ __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")));
  63. /******/ var __webpack_exports__ = __webpack_require__.O();
  64. /******/ }
  65. ]);
  66. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvYXBwL2JhY2tlbmQvY29tbW9uL2FwcC5jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uc2NzcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsIm9uIiwiZmluZCIsImVhY2giLCJpIiwiZSIsIlNvdldpZGdldHMiLCJzZXRTZWxlY3QyIiwic2V0U3VidGhlbWUiLCJzZWxlY3QiLCJ0cmlnZ2VyIiwiJHNlbGVjdCIsInRhcmdldC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