|
- (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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvYXBwL2JhY2tlbmQvY29tbW9uL2FwcC5jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uc2NzcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsIm9uIiwiZmluZCIsImVhY2giLCJpIiwiZSIsIlNvdldpZGdldHMiLCJzZXRTZWxlY3QyIiwic2V0U3VidGhlbWUiLCJzZWxlY3QiLCJ0cmlnZ2VyIiwiJHNlbGVjdCIsIlNvdlRvb2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