(self["webpackChunk"] = self["webpackChunk"] || []).push([["app-backend"],{

/***/ "./assets/app/backend/common/app.common.js":
/*!*************************************************!*\
  !*** ./assets/app/backend/common/app.common.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _common_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common.scss */ "./assets/app/backend/common/common.scss");
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common.js */ "./assets/app/backend/common/common.js");
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_common_js__WEBPACK_IMPORTED_MODULE_1__);
/*
 * Welcome to your app's main JavaScript file!
 *
 * We recommend including the built version of this JavaScript file
 * (and its CSS file) in your base layout (base.html.twig).
 */
// any CSS you import will output into a single css file (app.css in this case)

 // start the Stimulus application
//import './bootstrap';

/***/ }),

/***/ "./assets/app/backend/common/common.js":
/*!*********************************************!*\
  !*** ./assets/app/backend/common/common.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

__webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");

$(document).ready(function () {
  $('.field-collection[data-prototype]').on('collection-add-item', function () {
    $(this).find('select').each(function (i, e) {
      SovWidgets.setSelect2($(e));
      setSubtheme($(e));
    });
  });
  $('.theme').each(function (i, select) {
    setSubtheme($(select));
    $(select).trigger('change');
  }); //setSubtheme();
  // $(document).on('click', '.theme option', function (e) {
  //     alert('test');
  //     $(this).closest('.form-widget-compound').find('.subtheme option').show();
  //     $(this).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(this).data('class') + "']").hide();
  // });
});

function setSubtheme($select) {
  $select.on('change', function (e) {
    SovTools.log($(e.target).find('option:selected').data('class'));
    $(e.target).closest('.form-widget-compound').find('.subtheme option').prop('disabled', false);
    $(e.target).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(e.target).find('option:selected').data('class') + "']").prop('disabled', true);
    SovWidgets.setSelect2($(this).closest('.form-widget-compound').find('.subtheme'));
  });
}

/***/ }),

/***/ "./assets/app/backend/common/common.scss":
/*!***********************************************!*\
  !*** ./assets/app/backend/common/common.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))
/******/ __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")));
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ }
]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4752 characters]