@kontur.candy/generator 5.92.0-progress-bar-normalization.6 → 5.92.0-visual-fixes.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +837 -86
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -45658,7 +45658,8 @@ __webpack_require__.r(__webpack_exports__);
45658
45658
  let FufCombineMethod = /*#__PURE__*/function (FufCombineMethod) {
45659
45659
  FufCombineMethod["Merge"] = "Merge";
45660
45660
  FufCombineMethod["AddToEnd"] = "AddToEnd";
45661
- FufCombineMethod["Replace"] = "Replace";
45661
+ FufCombineMethod["ReplaceThenAddToEnd"] = "ReplaceThenAddToEnd";
45662
+ FufCombineMethod["ReplaceThenMerge"] = "ReplaceThenMerge";
45662
45663
  return FufCombineMethod;
45663
45664
  }({});
45664
45665
  let SumCombineMethod = /*#__PURE__*/function (SumCombineMethod) {
@@ -47412,12 +47413,15 @@ class ModelPathBuilder {
47412
47413
  "use strict";
47413
47414
  __webpack_require__.r(__webpack_exports__);
47414
47415
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47416
+ /* harmony export */ checkIsReservedPath: () => (/* binding */ checkIsReservedPath),
47415
47417
  /* harmony export */ getMask: () => (/* binding */ getMask),
47416
47418
  /* harmony export */ getMaskWithInstances: () => (/* binding */ getMaskWithInstances),
47417
47419
  /* harmony export */ isAggregationPath: () => (/* binding */ isAggregationPath),
47418
47420
  /* harmony export */ replaceInstancesWithMultiplicity: () => (/* binding */ replaceInstancesWithMultiplicity)
47419
47421
  /* harmony export */ });
47420
- /* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
47422
+ /* harmony import */ var _PathConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../PathConstants */ "./Common/PathConstants.ts");
47423
+ /* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
47424
+
47421
47425
 
47422
47426
  function isAggregationPath(modelPath) {
47423
47427
  const tokens = modelPath.getPathPartsAsArray();
@@ -47425,28 +47429,31 @@ function isAggregationPath(modelPath) {
47425
47429
  return lastToken === "Sum" || lastToken === "Count";
47426
47430
  }
47427
47431
  function getMask(exactPath) {
47428
- return (0,_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(Iterator.from(exactPath.getPathParts()).map(x => _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isInstanceToken(x) ? _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each : x).toArray());
47432
+ return (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(Iterator.from(exactPath.getPathParts()).map(x => _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isInstanceToken(x) ? _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each : x).toArray());
47429
47433
  }
47430
47434
  function getMaskWithInstances(exactPath) {
47431
47435
  const reduceResult = Iterator.from(exactPath.getPathParts()).reduce((result, token) => {
47432
- if (_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isInstanceToken(token) || _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isMultiToken(token)) {
47436
+ if (_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isInstanceToken(token) || _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isMultiToken(token)) {
47433
47437
  result.instances.push(token);
47434
47438
  }
47435
- result.tokens.push(_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isInstanceToken(token) ? _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each : token);
47439
+ result.tokens.push(_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isInstanceToken(token) ? _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each : token);
47436
47440
  return result;
47437
47441
  }, {
47438
47442
  tokens: [],
47439
47443
  instances: []
47440
47444
  });
47441
47445
  return {
47442
- mask: (0,_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(reduceResult.tokens),
47446
+ mask: (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(reduceResult.tokens),
47443
47447
  instances: reduceResult.instances
47444
47448
  };
47445
47449
  }
47446
- function replaceInstancesWithMultiplicity(path, replaceToken = _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each) {
47450
+ function replaceInstancesWithMultiplicity(path, replaceToken = _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each) {
47447
47451
  const isAbsolute = path.isAbsolute();
47448
- const resultTokens = path.getPathPartsAsArray().map(x => _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isInstanceToken(x) ? replaceToken : x);
47449
- return isAbsolute ? (0,_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(resultTokens) : (0,_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeFromTokens)(resultTokens);
47452
+ const resultTokens = path.getPathPartsAsArray().map(x => _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isInstanceToken(x) ? replaceToken : x);
47453
+ return isAbsolute ? (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(resultTokens) : (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(resultTokens);
47454
+ }
47455
+ function checkIsReservedPath(path) {
47456
+ return _PathConstants__WEBPACK_IMPORTED_MODULE_0__.reservedForTechnicalUsageFields.some(field => path.endsWith((0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(field, false)));
47450
47457
  }
47451
47458
 
47452
47459
  /***/ }),
@@ -47661,14 +47668,24 @@ class Set2 {
47661
47668
  __webpack_require__.r(__webpack_exports__);
47662
47669
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47663
47670
  /* harmony export */ AttachmentInfoPath: () => (/* binding */ AttachmentInfoPath),
47671
+ /* harmony export */ FalsyTechnicalFieldValue: () => (/* binding */ FalsyTechnicalFieldValue),
47672
+ /* harmony export */ OptionalBlockVisibilityFieldName: () => (/* binding */ OptionalBlockVisibilityFieldName),
47673
+ /* harmony export */ OptionalElementsExistenceFieldName: () => (/* binding */ OptionalElementsExistenceFieldName),
47664
47674
  /* harmony export */ OptionalSectionFilledFieldName: () => (/* binding */ OptionalSectionFilledFieldName),
47665
- /* harmony export */ UnitLabelPath: () => (/* binding */ UnitLabelPath)
47675
+ /* harmony export */ TruthyTechnicalFieldValue: () => (/* binding */ TruthyTechnicalFieldValue),
47676
+ /* harmony export */ UnitLabelPath: () => (/* binding */ UnitLabelPath),
47677
+ /* harmony export */ reservedForTechnicalUsageFields: () => (/* binding */ reservedForTechnicalUsageFields)
47666
47678
  /* harmony export */ });
47667
47679
  /* harmony import */ var _ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
47668
47680
 
47669
47681
  const UnitLabelPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("label");
47670
47682
  const AttachmentInfoPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("attachment");
47683
+ const TruthyTechnicalFieldValue = "1";
47684
+ const FalsyTechnicalFieldValue = null;
47671
47685
  const OptionalSectionFilledFieldName = "isFilledOptional";
47686
+ const OptionalElementsExistenceFieldName = "isExists";
47687
+ const OptionalBlockVisibilityFieldName = "isOptionalBlockVisible";
47688
+ const reservedForTechnicalUsageFields = [OptionalSectionFilledFieldName, OptionalElementsExistenceFieldName, OptionalBlockVisibilityFieldName];
47672
47689
 
47673
47690
  /***/ }),
47674
47691
 
@@ -47776,9 +47793,9 @@ function arrayIsNotEmpty(items) {
47776
47793
  function arrayHasAtLeastOneItem(items) {
47777
47794
  return items.length > 0;
47778
47795
  }
47779
- function ensureArrayIsNotEmpty(items) {
47796
+ function ensureArrayIsNotEmpty(items, message) {
47780
47797
  if (!arrayIsNotEmpty(items)) {
47781
- throw new Error(`Array must be not empty`);
47798
+ throw new Error(message !== null && message !== void 0 ? message : `Array must be not empty`);
47782
47799
  }
47783
47800
  }
47784
47801
  function ensureArrayHasLength(items, length) {
@@ -62151,7 +62168,8 @@ __webpack_require__.r(__webpack_exports__);
62151
62168
  /* harmony export */ FormSchemaRng: () => (/* binding */ FormSchemaRng),
62152
62169
  /* harmony export */ FormSchemaRngAttribute: () => (/* binding */ FormSchemaRngAttribute),
62153
62170
  /* harmony export */ FormSchemaRngElement: () => (/* binding */ FormSchemaRngElement),
62154
- /* harmony export */ FormSchemaRngTypeInfo: () => (/* binding */ FormSchemaRngTypeInfo)
62171
+ /* harmony export */ FormSchemaRngTypeInfo: () => (/* binding */ FormSchemaRngTypeInfo),
62172
+ /* harmony export */ isFormSchemaRngElement: () => (/* binding */ isFormSchemaRngElement)
62155
62173
  /* harmony export */ });
62156
62174
  /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
62157
62175
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
@@ -62212,6 +62230,7 @@ class FormSchemaRngElement {
62212
62230
  this.errorAndWarningCountRequired = void 0;
62213
62231
  this.lazyLoadingThreshold = void 0;
62214
62232
  this.disableValueAutoInit = void 0;
62233
+ this.hasInnerText = false;
62215
62234
  this.innerTextType = void 0;
62216
62235
  this.children = new Map();
62217
62236
  this.maxOccurs = void 0;
@@ -62260,9 +62279,15 @@ class FormSchemaRngElement {
62260
62279
  getChildren() {
62261
62280
  return this.children;
62262
62281
  }
62282
+ getChildrenArray() {
62283
+ return this.children.values().toArray();
62284
+ }
62263
62285
  getAttributes() {
62264
62286
  return this.attributes;
62265
62287
  }
62288
+ getAttributesArray() {
62289
+ return this.attributes.values().toArray();
62290
+ }
62266
62291
  isIgnoreForcedValueSet() {
62267
62292
  var _this$disableValueAut2;
62268
62293
  return (_this$disableValueAut2 = this.disableValueAutoInit) !== null && _this$disableValueAut2 !== void 0 ? _this$disableValueAut2 : this.parent instanceof FormSchemaRngElement ? this.parent.isIgnoreForcedValueSet() : false;
@@ -62271,6 +62296,9 @@ class FormSchemaRngElement {
62271
62296
  return this.useServerFilters;
62272
62297
  }
62273
62298
  }
62299
+ function isFormSchemaRngElement(obj) {
62300
+ return obj instanceof FormSchemaRngElement;
62301
+ }
62274
62302
  class FormSchemaRng {
62275
62303
  constructor(rootElement) {
62276
62304
  this.map = new Map();
@@ -62287,6 +62315,7 @@ class FormSchemaRng {
62287
62315
  static convertSchemaRngElement(schemaRngElement, parent) {
62288
62316
  const result = new FormSchemaRngElement(schemaRngElement.name, parent, schemaRngElement.optional, schemaRngElement.multiple, schemaRngElement.nillable, schemaRngElement.maxOccurs, schemaRngElement.lazyLoadMode, schemaRngElement.lazyLoadAggregations, schemaRngElement.errorAndWarningCountRequired, schemaRngElement.lazyLoadingThreshold, schemaRngElement.disableValueAutoInit, schemaRngElement.editorOnly, schemaRngElement.useServerFilters);
62289
62317
  if (schemaRngElement.innerText != undefined) {
62318
+ result.hasInnerText = true;
62290
62319
  if (schemaRngElement.innerText.type != undefined) {
62291
62320
  result.setInnerTextType(this.buildTypeInfo(schemaRngElement.innerText.type));
62292
62321
  }
@@ -69472,8 +69501,10 @@ __webpack_require__.r(__webpack_exports__);
69472
69501
  /* harmony import */ var _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../markupGenerator/ElementProcessors/FormParts/Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
69473
69502
  /* harmony import */ var _markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
69474
69503
  /* harmony import */ var _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../markupGenerator/Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
69475
- /* harmony import */ var _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
69476
- /* harmony import */ var _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
69504
+ /* harmony import */ var _markupGenerator_ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode.ts");
69505
+ /* harmony import */ var _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
69506
+ /* harmony import */ var _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
69507
+
69477
69508
 
69478
69509
 
69479
69510
 
@@ -69526,22 +69557,22 @@ class DataDeclarationGenerationContext {
69526
69557
  return;
69527
69558
  }
69528
69559
  const objVal = objDataValue[objDataValue.length - 1];
69529
- const nodeWithSettings = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.SETTINGS);
69560
+ const nodeWithSettings = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_12__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.SETTINGS);
69530
69561
  if (nodeWithSettings) {
69531
69562
  return nodeWithSettings;
69532
69563
  }
69533
- if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT && srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69564
+ if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DEFAULT && srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69534
69565
  if (objVal) {
69535
69566
  const res = lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default()(objValue, srcValue);
69536
69567
  res.value[res.value.length - 1] = objVal;
69537
69568
  return res;
69538
69569
  }
69539
- } else if (srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69570
+ } else if (srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69540
69571
  return srcValue;
69541
- } else if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69572
+ } else if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69542
69573
  return objValue;
69543
69574
  }
69544
- const nodeDisabled = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DISABLED);
69575
+ const nodeDisabled = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_12__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DISABLED);
69545
69576
  if (nodeDisabled) {
69546
69577
  return nodeDisabled;
69547
69578
  }
@@ -69566,6 +69597,15 @@ class DataDeclarationGenerationContext {
69566
69597
  }
69567
69598
  return undefined;
69568
69599
  }
69600
+ isMultipleElement(path) {
69601
+ const resolvedSchemaEntity = this.formSchemaRng.getElementByPath(path);
69602
+ const entityIsElement = (0,_common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_5__.isFormSchemaRngElement)(resolvedSchemaEntity);
69603
+ if (!entityIsElement) {
69604
+ return false;
69605
+ }
69606
+ const isMultipleElement = Boolean(resolvedSchemaEntity.multiple);
69607
+ return isMultipleElement;
69608
+ }
69569
69609
  getTypeNode(node) {
69570
69610
  if (node.anonymousType != undefined) {
69571
69611
  return node.anonymousType;
@@ -69715,6 +69755,7 @@ class DataDeclarationGenerationContext {
69715
69755
  }
69716
69756
  getSections(node, requisite, requisiteMode = RequisiteSectionMode.AsRequisiteAttribute) {
69717
69757
  const page = node instanceof _markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode ? node : node.findParentOfType(_markupGenerator_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_7__.PageNode);
69758
+ const optionalBlock = node.findParentOfType(_markupGenerator_ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_10__.OptionalBlockNode);
69718
69759
  const pageName = page === null || page === void 0 ? void 0 : page.id;
69719
69760
  const pageRequiresResolution = page != undefined && (page.multiple || Iterator.from(this.getAllParentPages(page)).some(x => {
69720
69761
  var _x$multiple;
@@ -69727,7 +69768,13 @@ class DataDeclarationGenerationContext {
69727
69768
  }];
69728
69769
  }
69729
69770
  }
69730
- const sections = pageName != undefined ? [pageName] : [];
69771
+ const sections = [];
69772
+ if (optionalBlock != undefined) {
69773
+ sections.push(optionalBlock.id);
69774
+ }
69775
+ if (pageName != undefined) {
69776
+ sections.push(pageName);
69777
+ }
69731
69778
  if (requisiteMode === RequisiteSectionMode.AsRequisiteAttribute) {
69732
69779
  if (requisite) {
69733
69780
  sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.requisitesSection);
@@ -69797,6 +69844,8 @@ __webpack_require__.r(__webpack_exports__);
69797
69844
  /* harmony import */ var _Engine_src_Engine_Core_CoreTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Engine/src/Engine/Core/CoreTypes */ "./Engine/src/Engine/Core/CoreTypes.ts");
69798
69845
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
69799
69846
  /* harmony import */ var _Common_ModelPath_Set_Set2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/Set2 */ "./Common/ModelPath/Set/Set2.ts");
69847
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
69848
+
69800
69849
 
69801
69850
 
69802
69851
 
@@ -69855,13 +69904,22 @@ class DataDeclarationGenerationTimeHelper {
69855
69904
  }
69856
69905
  getOptionalSections() {
69857
69906
  var _this$dataDeclaration, _this$dataDeclaration2;
69907
+ const rootPath = this.getDataDeclarationRootPath();
69908
+ return (_this$dataDeclaration = (_this$dataDeclaration2 = this.dataDeclaration[rootPath]) === null || _this$dataDeclaration2 === void 0 ? void 0 : _this$dataDeclaration2.optionalSections) !== null && _this$dataDeclaration !== void 0 ? _this$dataDeclaration : [];
69909
+ }
69910
+ getOptionalBlocksPaths() {
69911
+ const visibilityFieldsPaths = Object.keys(this.dataDeclaration).filter(path => path.endsWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockVisibilityFieldName));
69912
+ const optionalBlocksPaths = visibilityFieldsPaths.map(fieldPath => (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromMask)(fieldPath, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each).getParentPath());
69913
+ return optionalBlocksPaths;
69914
+ }
69915
+ getDataDeclarationRootPath() {
69858
69916
  const anyPath = Object.keys(this.dataDeclaration)[0];
69859
69917
  if (anyPath == undefined) {
69860
69918
  return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.reject)();
69861
69919
  }
69862
69920
  const absolutePath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsolute)(anyPath);
69863
69921
  const root = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.first(absolutePath.getPathParts());
69864
- return (_this$dataDeclaration = (_this$dataDeclaration2 = this.dataDeclaration[root !== null && root !== void 0 ? root : ""]) === null || _this$dataDeclaration2 === void 0 ? void 0 : _this$dataDeclaration2.optionalSections) !== null && _this$dataDeclaration !== void 0 ? _this$dataDeclaration : [];
69922
+ return root !== null && root !== void 0 ? root : "";
69865
69923
  }
69866
69924
  *getAllPaths() {
69867
69925
  for (const key of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.iterateKeys)(this.dataDeclaration)) {
@@ -72137,6 +72195,10 @@ __webpack_require__.r(__webpack_exports__);
72137
72195
  /* harmony import */ var _ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./ExtendedSchema/ExtendedSchemaInfoUtils */ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts");
72138
72196
  /* harmony import */ var _markupGenerator_ElementProcessors_Commons_NodePathsContext__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./markupGenerator/ElementProcessors/Commons/NodePathsContext */ "./Generator/src/generators/markupGenerator/ElementProcessors/Commons/NodePathsContext.ts");
72139
72197
  /* harmony import */ var _markupGenerator_IMarkupBuildingContext__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./markupGenerator/IMarkupBuildingContext */ "./Generator/src/generators/markupGenerator/IMarkupBuildingContext.ts");
72198
+ /* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_OptionalElementsRulesBuilder__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder.ts");
72199
+ /* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_OptionalBlocksRulesBuilder__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder.ts");
72200
+
72201
+
72140
72202
 
72141
72203
 
72142
72204
 
@@ -72246,12 +72308,14 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
72246
72308
  const sugarRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_SugarRulesBuilder__WEBPACK_IMPORTED_MODULE_40__.SugarRulesBuilder(sugarRoot, formSchemaRng, controlCustomizationContext, fetchFunctions, dataDeclarationHelper, typeRegistry, useSchemaValidations);
72247
72309
  const validationRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_ValidationRulesBuilder__WEBPACK_IMPORTED_MODULE_41__.ValidationRulesBuilder(dataDeclarationHelper, formSchemaRng, formulaExprConverter, kcXmlConditions);
72248
72310
  const optionalSectionRuleBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalSectionRulesBuilder__WEBPACK_IMPORTED_MODULE_34__.OptionalSectionRulesBuilder(sugarRoot, dataDeclarationHelper);
72249
- const normalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_26__.NormalizationRulesGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, false);
72250
- const formulaOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_FormulaOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_31__.FormulaOnlyNormalizationRuleGenerator(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter, validationRulesBuilder, {
72311
+ const optionalElementsRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalElementsRulesBuilder__WEBPACK_IMPORTED_MODULE_52__.OptionalElementsRulesBuilder(formSchemaRng, dataDeclarationHelper);
72312
+ const optionalBlocksRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalBlocksRulesBuilder__WEBPACK_IMPORTED_MODULE_53__.OptionalBlocksRulesBuilder(dataDeclarationHelper);
72313
+ const normalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_26__.NormalizationRulesGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, false);
72314
+ const formulaOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_FormulaOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_31__.FormulaOnlyNormalizationRuleGenerator(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter, validationRulesBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, {
72251
72315
  enableTypedFlang: (_additionalContent$fo9 = (_additionalContent$fo10 = additionalContent.formJsonSettings) === null || _additionalContent$fo10 === void 0 ? void 0 : _additionalContent$fo10.enableTypedFlang) !== null && _additionalContent$fo9 !== void 0 ? _additionalContent$fo9 : false
72252
72316
  });
72253
- const formulaAndInitOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_FormulaAndInitOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_42__.FormulaAndInitOnlyNormalizationRuleGenerator(sugarRulesBuilder, formulaRulesBuilder, optionalSectionRuleBuilder, formSchemaRng);
72254
- const autoValueForValueByDefaultNormalizationRuleGenerator = new _ServerSideFLangNormalization_Normalizers_AutoValueForValueByDefaultNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_46__.AutoValueForValueByDefaultNormalizationRuleGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, dataDeclarationHelper);
72317
+ const formulaAndInitOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_FormulaAndInitOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_42__.FormulaAndInitOnlyNormalizationRuleGenerator(sugarRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalSectionRuleBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder);
72318
+ const autoValueForValueByDefaultNormalizationRuleGenerator = new _ServerSideFLangNormalization_Normalizers_AutoValueForValueByDefaultNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_46__.AutoValueForValueByDefaultNormalizationRuleGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, dataDeclarationHelper);
72255
72319
  const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_13__.MarkupGenerator(markupBuilderContext);
72256
72320
  markupGenerator.generate(sugarRoot, builder);
72257
72321
  builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_10__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings, additionalContent.formJsonSettings));
@@ -74340,6 +74404,29 @@ class SetStatement extends FLangStatement {
74340
74404
 
74341
74405
  /***/ }),
74342
74406
 
74407
+ /***/ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts":
74408
+ /*!***************************************************************************************!*\
74409
+ !*** ./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts ***!
74410
+ \***************************************************************************************/
74411
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
74412
+
74413
+ "use strict";
74414
+ __webpack_require__.r(__webpack_exports__);
74415
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
74416
+ /* harmony export */ FalthyFlangTechnicalFieldExpression: () => (/* binding */ FalthyFlangTechnicalFieldExpression),
74417
+ /* harmony export */ FalthyOptionalElementExistenceExpression: () => (/* binding */ FalthyOptionalElementExistenceExpression),
74418
+ /* harmony export */ TruthyFlangTechnicalFieldExpression: () => (/* binding */ TruthyFlangTechnicalFieldExpression)
74419
+ /* harmony export */ });
74420
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
74421
+ /* harmony import */ var _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
74422
+
74423
+
74424
+ const TruthyFlangTechnicalFieldExpression = new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_0__.TruthyTechnicalFieldValue);
74425
+ const FalthyFlangTechnicalFieldExpression = new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NullLiteralExpression();
74426
+ const FalthyOptionalElementExistenceExpression = new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression("");
74427
+
74428
+ /***/ }),
74429
+
74343
74430
  /***/ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts":
74344
74431
  /*!***********************************************************************************!*\
74345
74432
  !*** ./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts ***!
@@ -74359,6 +74446,7 @@ __webpack_require__.r(__webpack_exports__);
74359
74446
  /* harmony export */ combineByAndFlangExpr: () => (/* binding */ combineByAndFlangExpr),
74360
74447
  /* harmony export */ combineByOrFlangExpr: () => (/* binding */ combineByOrFlangExpr),
74361
74448
  /* harmony export */ combineRulesWithOptionalSectionChecking: () => (/* binding */ combineRulesWithOptionalSectionChecking),
74449
+ /* harmony export */ composeFlangExpressionsByOr: () => (/* binding */ composeFlangExpressionsByOr),
74362
74450
  /* harmony export */ decimalWrapper: () => (/* binding */ decimalWrapper),
74363
74451
  /* harmony export */ dictFieldNameSuffix: () => (/* binding */ dictFieldNameSuffix),
74364
74452
  /* harmony export */ ensureCorrectFieldNameByExpressionType: () => (/* binding */ ensureCorrectFieldNameByExpressionType),
@@ -74367,6 +74455,7 @@ __webpack_require__.r(__webpack_exports__);
74367
74455
  /* harmony export */ getAllExpressionChildren: () => (/* binding */ getAllExpressionChildren),
74368
74456
  /* harmony export */ getSelectorIdFromRule: () => (/* binding */ getSelectorIdFromRule),
74369
74457
  /* harmony export */ hashSetFieldNameSuffix: () => (/* binding */ hashSetFieldNameSuffix),
74458
+ /* harmony export */ isSetStatement: () => (/* binding */ isSetStatement),
74370
74459
  /* harmony export */ makeGetOld: () => (/* binding */ makeGetOld),
74371
74460
  /* harmony export */ makeNoDeps: () => (/* binding */ makeNoDeps),
74372
74461
  /* harmony export */ makeStringValueReference: () => (/* binding */ makeStringValueReference),
@@ -74407,7 +74496,7 @@ function createValueRuleWithDisableValueAutoInitCheck(path, originalExpression)
74407
74496
  }
74408
74497
  function wrapWithDisableValueAutoInitFlagCheckIfRequired(formSchemaRng, x) {
74409
74498
  var _formSchemaRng$getEle;
74410
- return x instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement && x.left.valueName === "value" && (_formSchemaRng$getEle = formSchemaRng.getElementByPath(x.left.modePath)) !== null && _formSchemaRng$getEle !== void 0 && _formSchemaRng$getEle.isIgnoreForcedValueSet() ? [createValueRuleWithDisableValueAutoInitCheck(x.left.modePath, x.right)] : [x];
74499
+ return isSetStatement(x) && x.left.valueName === "value" && (_formSchemaRng$getEle = formSchemaRng.getElementByPath(x.left.modePath)) !== null && _formSchemaRng$getEle !== void 0 && _formSchemaRng$getEle.isIgnoreForcedValueSet() ? [createValueRuleWithDisableValueAutoInitCheck(x.left.modePath, x.right)] : [x];
74411
74500
  }
74412
74501
  function wrapWithArgumentsCondition(expression) {
74413
74502
  const childFilter = node => !(node instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.ReduceCallExpression || node instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.GetSumByKeysExpression || node instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.NoDepsExpression);
@@ -74473,9 +74562,9 @@ const mergeRules = function (items) {
74473
74562
  }
74474
74563
  return rulesDictionary.values();
74475
74564
  };
74476
- function combineRulesWithOptionalSectionChecking(allRules, optionalSectionRulesBuilder) {
74565
+ function combineRulesWithOptionalSectionChecking(allRules, optionalSectionRulesBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder) {
74477
74566
  const allUniqueRules = mergeRules(allRules);
74478
- const allUniqueRulesWithOptionalChecks = Iterator.from(optionalSectionRulesBuilder.wrapRulesWithOptionalPageCheck(allUniqueRules)).map(x => x.convertToString()).reduce((x, y) => x + (x ? "\n" : "") + y, "");
74567
+ const allUniqueRulesWithOptionalChecks = Iterator.from(optionalBlocksRulesBuilder.wrapRulesInsideOptionalBlocks(optionalBlocksRulesBuilder.patchOptionalBlocksExistenceRules(optionalSectionRulesBuilder.wrapRulesWithOptionalPageCheck(optionalElementsRulesBuilder.wrapRulesWithOptionalElementCheck(allUniqueRules))))).map(x => x.convertToString()).reduce((x, y) => x + (x ? "\n" : "") + y, "");
74479
74568
  return allUniqueRulesWithOptionalChecks;
74480
74569
  }
74481
74570
  function tryExtractValueReferenceAsStringFromDecimal(expression) {
@@ -74530,6 +74619,10 @@ function ensureOperandsOfTypeOrNull(type, ...operands) {
74530
74619
  }
74531
74620
  }
74532
74621
  }
74622
+ function composeFlangExpressionsByOr(expressions) {
74623
+ var _expressions$reduce;
74624
+ return (_expressions$reduce = expressions.reduce(combineByOrFlangExpr, undefined)) !== null && _expressions$reduce !== void 0 ? _expressions$reduce : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.reject)("composeFlangExpressionsByOr should consume an array of length in grater or equal to 1");
74625
+ }
74533
74626
  function combineByOrFlangExpr(acc, current) {
74534
74627
  return acc != undefined ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.OrBinaryExpression(acc, current) : current;
74535
74628
  }
@@ -74587,6 +74680,9 @@ function ensureCorrectFieldNameByExpressionType(statement) {
74587
74680
  }
74588
74681
  }
74589
74682
  }
74683
+ function isSetStatement(statement) {
74684
+ return statement instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement;
74685
+ }
74590
74686
 
74591
74687
  /***/ }),
74592
74688
 
@@ -75496,7 +75592,6 @@ __webpack_require__.r(__webpack_exports__);
75496
75592
 
75497
75593
 
75498
75594
 
75499
-
75500
75595
  /**
75501
75596
  * Нормализатор, соответсвующий дефолтному за исключением метода нормализации значений,
75502
75597
  * отсутсвующих в исходном иннере:
@@ -75504,7 +75599,7 @@ __webpack_require__.r(__webpack_exports__);
75504
75599
  * а при его отсутсвии дефолтным значением"
75505
75600
  */
75506
75601
  class AutoValueForValueByDefaultNormalizationRuleGenerator {
75507
- constructor(optionalSectionRulesBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, dataDeclarationHelper) {
75602
+ constructor(optionalSectionRulesBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlockRulesBuilder, dataDeclarationHelper) {
75508
75603
  this.formulaRulesBuilder = void 0;
75509
75604
  this.dataDeclarationHelper = void 0;
75510
75605
  this.initializationRulesBuilder = void 0;
@@ -75512,6 +75607,8 @@ class AutoValueForValueByDefaultNormalizationRuleGenerator {
75512
75607
  this.lazyLoadingRulesBuilder = void 0;
75513
75608
  this.validationRulesBuilder = void 0;
75514
75609
  this.optionalSectionRulesBuilder = void 0;
75610
+ this.optionalElementsRulesBuilder = void 0;
75611
+ this.optionalBlockRulesBuilder = void 0;
75515
75612
  this.formSchemaRng = void 0;
75516
75613
  this.formulaRulesBuilder = formulaRulesBuilder;
75517
75614
  this.initializationRulesBuilder = initializationRulesBuilder;
@@ -75519,6 +75616,8 @@ class AutoValueForValueByDefaultNormalizationRuleGenerator {
75519
75616
  this.lazyLoadingRulesBuilder = lazyLoadingRulesBuilder;
75520
75617
  this.validationRulesBuilder = validationRulesBuilder;
75521
75618
  this.optionalSectionRulesBuilder = optionalSectionRulesBuilder;
75619
+ this.optionalElementsRulesBuilder = optionalElementsRulesBuilder;
75620
+ this.optionalBlockRulesBuilder = optionalBlockRulesBuilder;
75522
75621
  this.formSchemaRng = formSchemaRng;
75523
75622
  this.dataDeclarationHelper = dataDeclarationHelper;
75524
75623
  }
@@ -75526,6 +75625,8 @@ class AutoValueForValueByDefaultNormalizationRuleGenerator {
75526
75625
  const initializeRules = this.initializationRulesBuilder.buildRules();
75527
75626
  const lazyLoadingRules = this.lazyLoadingRulesBuilder.buildRules();
75528
75627
  const optionalSectionRules = this.optionalSectionRulesBuilder.buildRules();
75628
+ const optionalElementsRules = this.optionalElementsRulesBuilder.buildRules();
75629
+ const optionalBlocksRules = this.optionalBlockRulesBuilder.buildRules();
75529
75630
  const sugarValidationRules = this.validationRulesBuilder.buildRules();
75530
75631
  const dataDeclarationRules = this.sugarRulesBuilder.buildRules();
75531
75632
  const formulaFLangRules = [...this.formulaRulesBuilder.buildRules()];
@@ -75538,11 +75639,11 @@ class AutoValueForValueByDefaultNormalizationRuleGenerator {
75538
75639
  const autoFlagRefCurrentIteration = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ValueReferenceExpression(autoValueRule.left.modePath.toCurrentIteration(), "autoFlag");
75539
75640
  return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement(valueRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.AndBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.makeNoDeps)(valueRefCurrentIteration), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.makeNoDeps)(autoFlagRefCurrentIteration), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullLiteralExpression())), autoValueRule.right, formulaRulesMap.has(valueRef) ? (_formulaRulesMap$get$ = (_formulaRulesMap$get = formulaRulesMap.get(valueRef)) === null || _formulaRulesMap$get === void 0 ? void 0 : _formulaRulesMap$get.right) !== null && _formulaRulesMap$get$ !== void 0 ? _formulaRulesMap$get$ : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.reject)("Unexpected error") : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullCoalesceExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ValueReferenceExpression(autoValueRule.left.modePath.toCurrentIteration(), "value"), autoValueExpressionType === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.BuildInTypeExpression.string ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.StringLiteralExpression(this.dataDeclarationHelper.getDefaultValue(autoValueRule.left.modePath)) : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullLiteralExpression())));
75540
75641
  };
75541
- const updatedFormulaRules = Iterator.from(formulaFLangRules).flatMap(x => x instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement && x.left.valueName === "autoValue" ? [x, createValueRuleFromAutoValueRule(x)] : [x]);
75642
+ const updatedFormulaRules = Iterator.from(formulaFLangRules).flatMap(x => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.isSetStatement)(x) && x.left.valueName === "autoValue" ? [x, createValueRuleFromAutoValueRule(x)] : [x]);
75542
75643
 
75543
75644
  // Порядок важен, т.к. потом делаем distinctBy.
75544
- const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(initializeRules, lazyLoadingRules, updatedFormulaRules, optionalSectionRules, dataDeclarationRules, sugarValidationRules).flatMap(rule => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.wrapWithDisableValueAutoInitFlagCheckIfRequired)(this.formSchemaRng, rule));
75545
- return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRulesBuilder);
75645
+ const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(initializeRules, lazyLoadingRules, updatedFormulaRules, optionalSectionRules, optionalElementsRules, optionalBlocksRules, dataDeclarationRules, sugarValidationRules).flatMap(rule => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.wrapWithDisableValueAutoInitFlagCheckIfRequired)(this.formSchemaRng, rule));
75646
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRulesBuilder, this.optionalElementsRulesBuilder, this.optionalBlockRulesBuilder);
75546
75647
  }
75547
75648
  }
75548
75649
 
@@ -75565,22 +75666,25 @@ __webpack_require__.r(__webpack_exports__);
75565
75666
 
75566
75667
 
75567
75668
 
75568
-
75569
75669
  /**
75570
75670
  * Нормализатор для сценария пересчёта части полей (пример: Распил Прибыли), когда необходимо поведение:
75571
75671
  * "если в исходных данных отсутствует value, то необходимо проинициализировать
75572
75672
  * его значением из autoValue, вместо дефолта (как это работает в базовом нормализаторе)"
75573
75673
  */
75574
75674
  class FormulaAndInitOnlyNormalizationRuleGenerator {
75575
- constructor(sugarRulesBuilder, formulaRulesBuilder, optionalSectionRuleBuilder, formSchemaRng) {
75675
+ constructor(sugarRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalSectionRuleBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder) {
75576
75676
  this.optionalSectionRuleBuilder = void 0;
75577
75677
  this.formulaRulesBuilder = void 0;
75678
+ this.optionalElementsRulesBuilder = void 0;
75679
+ this.optionalBlocksRulesBuilder = void 0;
75578
75680
  this.formSchemaRng = void 0;
75579
75681
  this.sugarRulesBuilder = void 0;
75580
75682
  this.formSchemaRng = formSchemaRng;
75581
75683
  this.sugarRulesBuilder = sugarRulesBuilder;
75582
75684
  this.formulaRulesBuilder = formulaRulesBuilder;
75583
75685
  this.optionalSectionRuleBuilder = optionalSectionRuleBuilder;
75686
+ this.optionalElementsRulesBuilder = optionalElementsRulesBuilder;
75687
+ this.optionalBlocksRulesBuilder = optionalBlocksRulesBuilder;
75584
75688
  }
75585
75689
  generateRules() {
75586
75690
  const createValueRuleFromAutoValueRule = autoValueRule => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ValueReferenceExpression(autoValueRule.left.modePath, "value"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NotEqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_2__.makeNoDeps)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ValueReferenceExpression(autoValueRule.left.modePath.toCurrentIteration(), "value")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NullLiteralExpression()), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_2__.makeNoDeps)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ValueReferenceExpression(autoValueRule.left.modePath.toCurrentIteration(), "value")), autoValueRule.right));
@@ -75591,11 +75695,13 @@ class FormulaAndInitOnlyNormalizationRuleGenerator {
75591
75695
  return x instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement && x.left.valueName === "value" && (_this$formSchemaRng$g = this.formSchemaRng.getElementByPath(x.left.modePath)) !== null && _this$formSchemaRng$g !== void 0 && _this$formSchemaRng$g.isIgnoreForcedValueSet() ? [createValueRuleEmptyRule(x.left.modePath), createDisableValueAutoInitRule(x.left.modePath)] : [x];
75592
75696
  };
75593
75697
  const allFormulaRules = this.formulaRulesBuilder.buildRules();
75594
- const updatedFormulaRules = Iterator.from(allFormulaRules).flatMap(x => x instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement && x.left.valueName === "autoValue" ? [x, createValueRuleFromAutoValueRule(x)] : [x]);
75698
+ const updatedFormulaRules = Iterator.from(allFormulaRules).flatMap(x => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_2__.isSetStatement)(x) && x.left.valueName === "autoValue" ? [x, createValueRuleFromAutoValueRule(x)] : [x]);
75595
75699
  const sugarRules = this.sugarRulesBuilder.buildRules();
75596
75700
  const optionalSectionRules = this.optionalSectionRuleBuilder.buildRules();
75597
- const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(updatedFormulaRules, sugarRules, optionalSectionRules).flatMap(ignoredValueSetRuleMapper);
75598
- return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_2__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRuleBuilder);
75701
+ const optionalElementsRules = this.optionalElementsRulesBuilder.buildRules();
75702
+ const optionalBlocksRules = this.optionalBlocksRulesBuilder.buildRules();
75703
+ const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(updatedFormulaRules, sugarRules, optionalSectionRules, optionalElementsRules, optionalBlocksRules).flatMap(ignoredValueSetRuleMapper);
75704
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_2__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRuleBuilder, this.optionalElementsRulesBuilder, this.optionalBlocksRulesBuilder);
75599
75705
  }
75600
75706
  }
75601
75707
 
@@ -75631,13 +75737,15 @@ __webpack_require__.r(__webpack_exports__);
75631
75737
  * 2) переводит autoFlag в true
75632
75738
  */
75633
75739
  class FormulaOnlyNormalizationRuleGenerator {
75634
- constructor(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter, validationRulesBuilder, options) {
75740
+ constructor(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter, validationRulesBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, options) {
75635
75741
  this.dataDeclarationHelper = void 0;
75636
75742
  this.formSchemaRng = void 0;
75637
75743
  this.formulas = void 0;
75638
75744
  this.options = void 0;
75639
75745
  this.formulaExprConverter = void 0;
75640
75746
  this.optionalSectionRuleBuilder = void 0;
75747
+ this.optionalElementsRulesBuilder = void 0;
75748
+ this.optionalBlocksRulesBuilder = void 0;
75641
75749
  this.validationRulesBuilder = void 0;
75642
75750
  this.options = options;
75643
75751
  this.optionalSectionRuleBuilder = optionalSectionRuleBuilder;
@@ -75646,12 +75754,14 @@ class FormulaOnlyNormalizationRuleGenerator {
75646
75754
  this.formulas = formulas;
75647
75755
  this.formulaExprConverter = formulaExprConverter;
75648
75756
  this.validationRulesBuilder = validationRulesBuilder;
75757
+ this.optionalElementsRulesBuilder = optionalElementsRulesBuilder;
75758
+ this.optionalBlocksRulesBuilder = optionalBlocksRulesBuilder;
75649
75759
  }
75650
75760
  generateRules() {
75651
- const calculationRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(this.buildFormulaFLangRules(), this.optionalSectionRuleBuilder.buildRules());
75761
+ const calculationRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(this.buildFormulaFLangRules(), this.optionalSectionRuleBuilder.buildRules(), this.optionalElementsRulesBuilder.buildRules(), this.optionalBlocksRulesBuilder.buildRules());
75652
75762
  const validationRules = this.validationRulesBuilder.buildRules();
75653
75763
  const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(calculationRules, validationRules);
75654
- return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRuleBuilder);
75764
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRuleBuilder, this.optionalElementsRulesBuilder, this.optionalBlocksRulesBuilder);
75655
75765
  }
75656
75766
  *buildFormulaFLangRules() {
75657
75767
  for (const formula of (_this$formulas = this.formulas) !== null && _this$formulas !== void 0 ? _this$formulas : []) {
@@ -75708,12 +75818,11 @@ __webpack_require__.r(__webpack_exports__);
75708
75818
 
75709
75819
 
75710
75820
 
75711
-
75712
75821
  /**
75713
75822
  * Базовый нормализатор для основного сценария серверной нормализации
75714
75823
  */
75715
75824
  class NormalizationRulesGenerator {
75716
- constructor(optionalSectionRulesBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, calculateServerOnlyPaths) {
75825
+ constructor(optionalSectionRulesBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, calculateServerOnlyPaths) {
75717
75826
  this.formulaRulesBuilder = void 0;
75718
75827
  this.calculateServerOnlyPaths = void 0;
75719
75828
  this.initializationRulesBuilder = void 0;
@@ -75721,6 +75830,8 @@ class NormalizationRulesGenerator {
75721
75830
  this.lazyLoadingRulesBuilder = void 0;
75722
75831
  this.validationRulesBuilder = void 0;
75723
75832
  this.optionalSectionRulesBuilder = void 0;
75833
+ this.optionalElementsRulesBuilder = void 0;
75834
+ this.optionalBlocksRulesBuilder = void 0;
75724
75835
  this.formSchemaRng = void 0;
75725
75836
  this.calculateServerOnlyPaths = calculateServerOnlyPaths;
75726
75837
  this.formulaRulesBuilder = formulaRulesBuilder;
@@ -75729,6 +75840,8 @@ class NormalizationRulesGenerator {
75729
75840
  this.lazyLoadingRulesBuilder = lazyLoadingRulesBuilder;
75730
75841
  this.validationRulesBuilder = validationRulesBuilder;
75731
75842
  this.optionalSectionRulesBuilder = optionalSectionRulesBuilder;
75843
+ this.optionalElementsRulesBuilder = optionalElementsRulesBuilder;
75844
+ this.optionalBlocksRulesBuilder = optionalBlocksRulesBuilder;
75732
75845
  this.formSchemaRng = formSchemaRng;
75733
75846
  }
75734
75847
  generateRules() {
@@ -75738,14 +75851,16 @@ class NormalizationRulesGenerator {
75738
75851
  const optionalSectionRules = this.optionalSectionRulesBuilder.buildRules();
75739
75852
  const sugarValidationRules = this.validationRulesBuilder.buildRules();
75740
75853
  const dataDeclarationRules = this.sugarRulesBuilder.buildRules();
75854
+ const optionalElementsRules = this.optionalElementsRulesBuilder.buildRules();
75855
+ const optionalBlocksRules = this.optionalBlocksRulesBuilder.buildRules();
75741
75856
 
75742
75857
  // Порядок важен, т.к. потом делаем distinctBy.
75743
- const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(initializeRules, lazyLoadingRules, formulaFLangRules, optionalSectionRules, dataDeclarationRules, sugarValidationRules).flatMap(rule => {
75858
+ const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(initializeRules, lazyLoadingRules, formulaFLangRules, optionalSectionRules, optionalElementsRules, optionalBlocksRules, dataDeclarationRules, sugarValidationRules).flatMap(rule => {
75744
75859
  (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.ensureCorrectFieldNameByExpressionType)(rule);
75745
75860
  return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.wrapWithDisableValueAutoInitFlagCheckIfRequired)(this.formSchemaRng, rule);
75746
75861
  }).toArray();
75747
75862
  const getDictionaryTargets = () => Iterator.from(allRules).filter(rule => rule instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement && (rule.right.getType() === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.BuildInTypeExpression.dict || rule.right instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.CastExpression && rule.right.targetExpression.getType() === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.BuildInTypeExpression.dict || rule.right instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullCoalesceExpression && rule.right.expression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.CastExpression && rule.right.expression.targetExpression.getType() === _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.BuildInTypeExpression.dict)).map(x => x instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement ? new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_3__.AbsoluteModelFieldPath(x.left.modePath, x.left.valueName) : undefined).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.isNotNullOrUndefined).toArray();
75748
- const content = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRulesBuilder);
75863
+ const content = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRulesBuilder, this.optionalElementsRulesBuilder, this.optionalBlocksRulesBuilder);
75749
75864
  return {
75750
75865
  content: content,
75751
75866
  serverOnlyPaths: this.calculateServerOnlyPaths ? getDictionaryTargets() : []
@@ -75966,6 +76081,435 @@ class LazyLoadingRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_
75966
76081
 
75967
76082
  /***/ }),
75968
76083
 
76084
+ /***/ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder.ts":
76085
+ /*!**********************************************************************************************************!*\
76086
+ !*** ./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder.ts ***!
76087
+ \**********************************************************************************************************/
76088
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
76089
+
76090
+ "use strict";
76091
+ __webpack_require__.r(__webpack_exports__);
76092
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
76093
+ /* harmony export */ OptionalBlocksRulesBuilder: () => (/* binding */ OptionalBlocksRulesBuilder)
76094
+ /* harmony export */ });
76095
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
76096
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
76097
+ /* harmony import */ var _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
76098
+ /* harmony import */ var _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../FLang/FlangConstants */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts");
76099
+ /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
76100
+ /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
76101
+
76102
+
76103
+
76104
+
76105
+
76106
+
76107
+ class OptionalBlocksRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_5__.BaseRuleBuilder {
76108
+ constructor(dataDeclarationHelper) {
76109
+ super();
76110
+ this.dataDeclarationHelper = void 0;
76111
+ this.dataDeclarationHelper = dataDeclarationHelper;
76112
+ }
76113
+ buildRulesInternal() {
76114
+ const optionalBlocksPaths = this.dataDeclarationHelper.getOptionalBlocksPaths();
76115
+ const rules = this.buildRulesForOptionalBlocks(optionalBlocksPaths);
76116
+ return rules;
76117
+ }
76118
+ buildRulesForOptionalBlocks(blocksPaths) {
76119
+ const rules = blocksPaths.map(path => {
76120
+ const visibilityRule = this.buildOptionalBlockVisibilityRule(path);
76121
+ return visibilityRule;
76122
+ });
76123
+ return rules;
76124
+ }
76125
+ buildOptionalBlockVisibilityRule(blockPath) {
76126
+ const visibilityValueRef = this.createBlockVisibilityValueRef(blockPath);
76127
+ const isBlockVisibleExpression = this.createIsBlockVisibleExpression(blockPath);
76128
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement(visibilityValueRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ConditionalExpression(isBlockVisibleExpression, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_3__.TruthyFlangTechnicalFieldExpression, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_3__.FalthyFlangTechnicalFieldExpression));
76129
+ }
76130
+ createBlockVisibilityValueRef(blockPath) {
76131
+ const visibilityValuePath = blockPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalBlockVisibilityFieldName);
76132
+ const visibilityValueRef = this.createValueReferenceExpression(visibilityValuePath);
76133
+ return visibilityValueRef;
76134
+ }
76135
+ createBlockVisibilityValueRefForRightPart(blockPath) {
76136
+ const currentIterationBlockPath = blockPath.toCurrentIteration();
76137
+ const visibilityValueRef = this.createBlockVisibilityValueRef(currentIterationBlockPath);
76138
+ return visibilityValueRef;
76139
+ }
76140
+ createIsBlockVisibleExpression(blockPath) {
76141
+ const currentIterationBlockPath = blockPath.toCurrentIteration();
76142
+ const existenceValueRef = this.createBlockExistenceValueRef(currentIterationBlockPath);
76143
+ const notNullExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NotEqExpression(existenceValueRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullLiteralExpression());
76144
+ return notNullExpression;
76145
+ }
76146
+ createValueReferenceExpression(valuePath) {
76147
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ValueReferenceExpression(valuePath, "value");
76148
+ }
76149
+ createBlockExistenceValueRef(blockPath) {
76150
+ const existenceValuePath = blockPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalElementsExistenceFieldName);
76151
+ const existenceValueRef = this.createValueReferenceExpression(existenceValuePath);
76152
+ return existenceValueRef;
76153
+ }
76154
+ patchOptionalBlocksExistenceRules(rules) {
76155
+ const optionalBlocksPaths = this.dataDeclarationHelper.getOptionalBlocksPaths();
76156
+ const optionalBlocksExistenceFieldsPaths = optionalBlocksPaths.map(path => path.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createModelPath)(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalElementsExistenceFieldName, false)));
76157
+ const wrappedRules = Iterator.from(rules).map(rule => this.checkIsRuleShouldBePatched(rule, optionalBlocksExistenceFieldsPaths) ? this.patchOptionalBlocksExistenceRule(rule) : rule);
76158
+ return wrappedRules;
76159
+ }
76160
+ checkIsRuleShouldBePatched(rule, existenceFieldsPaths) {
76161
+ const isSetStatement = rule instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement;
76162
+ if (!isSetStatement) {
76163
+ return false;
76164
+ }
76165
+ const ruleExpression = rule.right;
76166
+ const isConditionalExpression = ruleExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ConditionalExpression;
76167
+ if (!isConditionalExpression) {
76168
+ return false;
76169
+ }
76170
+ const modelPath = rule.left.modePath;
76171
+ const isOptionalBlockExistenceFieldRule = existenceFieldsPaths.some(path => path.isEquals(modelPath));
76172
+ return isOptionalBlockExistenceFieldRule;
76173
+ }
76174
+ patchOptionalBlocksExistenceRule(rule) {
76175
+ const ruleExpression = rule.right;
76176
+ const existenceFieldPath = rule.left.modePath;
76177
+ const optionalBlockPath = existenceFieldPath.getParentPath();
76178
+ const visibilityFieldValueRef = this.createBlockVisibilityValueRefForRightPart(optionalBlockPath);
76179
+ const visibilityFieldNotNullExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NotEqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_4__.makeNoDeps)(visibilityFieldValueRef), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullLiteralExpression());
76180
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement(rule.left, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.OrBinaryExpression(ruleExpression.condition, visibilityFieldNotNullExpression), ruleExpression.trueResult, ruleExpression.falseResult));
76181
+ }
76182
+ wrapRulesInsideOptionalBlocks(rules) {
76183
+ const sortedOptionalBlocksPaths = [...this.dataDeclarationHelper.getOptionalBlocksPaths()].sort((cur, next) => {
76184
+ const curLength = cur.getPathPartsAsArray().length;
76185
+ const nextLength = next.getPathPartsAsArray().length;
76186
+ return nextLength - curLength;
76187
+ });
76188
+ const wrappedRules = Iterator.from(rules).map(rule => {
76189
+ const isValueSetStatement = this.checkIsValueSetStatement(rule);
76190
+ if (isValueSetStatement) {
76191
+ const modelPath = rule.left.modePath;
76192
+ const parentOptionalBlockPath = this.findParentOptionalBlockPath(modelPath, sortedOptionalBlocksPaths);
76193
+ if (parentOptionalBlockPath) {
76194
+ return this.wrapSetStatementsInsideOptionalBlocks(rule, parentOptionalBlockPath);
76195
+ }
76196
+ }
76197
+ return rule;
76198
+ });
76199
+ return wrappedRules;
76200
+ }
76201
+ checkIsValueSetStatement(rule) {
76202
+ const isSetStatement = rule instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement;
76203
+ if (!isSetStatement) {
76204
+ return false;
76205
+ }
76206
+ const modelPath = rule.left.modePath;
76207
+ const modelStringPath = modelPath.toString();
76208
+ const notReserved = !_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.reservedForTechnicalUsageFields.some(field => modelStringPath.endsWith(field));
76209
+ const isValueField = rule.left.valueName === "value";
76210
+ return notReserved && isValueField;
76211
+ }
76212
+ findParentOptionalBlockPath(modelPath, sortedOptionalBlocksPaths) {
76213
+ const parentOptionalBlockPath = sortedOptionalBlocksPaths.find(path => modelPath.startsWith(path));
76214
+ return parentOptionalBlockPath;
76215
+ }
76216
+ wrapSetStatementsInsideOptionalBlocks(rule, parentOptionalBlockPath) {
76217
+ const visibilityFieldValueRef = this.createBlockVisibilityValueRefForRightPart(parentOptionalBlockPath);
76218
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement(rule.left, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_4__.castOperandToStringIfNeed)(visibilityFieldValueRef), _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_3__.TruthyFlangTechnicalFieldExpression), rule.right, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_3__.FalthyFlangTechnicalFieldExpression));
76219
+ }
76220
+ }
76221
+
76222
+ /***/ }),
76223
+
76224
+ /***/ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder.ts":
76225
+ /*!************************************************************************************************************!*\
76226
+ !*** ./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder.ts ***!
76227
+ \************************************************************************************************************/
76228
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
76229
+
76230
+ "use strict";
76231
+ __webpack_require__.r(__webpack_exports__);
76232
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
76233
+ /* harmony export */ OptionalElementsRulesBuilder: () => (/* binding */ OptionalElementsRulesBuilder)
76234
+ /* harmony export */ });
76235
+ /* harmony import */ var _Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPathHelper */ "./Common/ModelPath/ModelPathHelper.ts");
76236
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
76237
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
76238
+ /* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
76239
+ /* harmony import */ var _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
76240
+ /* harmony import */ var _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../FLang/FlangConstants */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts");
76241
+ /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
76242
+ /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
76243
+
76244
+
76245
+
76246
+
76247
+
76248
+
76249
+
76250
+
76251
+ class OptionalElementsRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_7__.BaseRuleBuilder {
76252
+ constructor(formSchemaRng, dataDeclarationHelper) {
76253
+ super();
76254
+ this.formSchemaRng = void 0;
76255
+ this.dataDeclarationHelper = void 0;
76256
+ this.optionalBlocksPaths = void 0;
76257
+ this.rules = [];
76258
+ this.formSchemaRng = formSchemaRng;
76259
+ this.dataDeclarationHelper = dataDeclarationHelper;
76260
+ this.initOptionalBlocksPaths();
76261
+ }
76262
+ initOptionalBlocksPaths() {
76263
+ const bindingPaths = this.dataDeclarationHelper.getOptionalBlocksPaths().map(path => path.toString());
76264
+ this.optionalBlocksPaths = new Set(bindingPaths);
76265
+ }
76266
+ buildRulesInternal() {
76267
+ const primaryElements = this.selectPrimaryElements();
76268
+ primaryElements.forEach(element => {
76269
+ this.buildRulesForElement(element);
76270
+ });
76271
+ return this.rules;
76272
+ }
76273
+ selectPrimaryElements() {
76274
+ const optionalBlocksPaths = this.dataDeclarationHelper.getOptionalBlocksPaths();
76275
+ const primaryElements = optionalBlocksPaths.map(path => this.formSchemaRng.getElementByPath(path)).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.isNotNullOrUndefined).filter(_common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__.isFormSchemaRngElement);
76276
+ return primaryElements;
76277
+ }
76278
+ buildRulesForElement(element) {
76279
+ const shouldBuildRule = this.checkShouldBuildExistenceRule(element);
76280
+ if (shouldBuildRule) {
76281
+ const rule = this.buildOptionalElementExistenceRule(element);
76282
+ this.addRule(rule);
76283
+ }
76284
+ const hasChildren = this.checkElementHasChildren(element);
76285
+ if (hasChildren) {
76286
+ this.buildRulesForChildren(element);
76287
+ }
76288
+ }
76289
+ buildRulesForChildren(element) {
76290
+ const children = element.getChildrenArray();
76291
+ children.forEach(child => this.buildRulesForElement(child));
76292
+ }
76293
+ addRule(rule) {
76294
+ this.rules.push(rule);
76295
+ }
76296
+ buildOptionalElementExistenceRule(element) {
76297
+ const existenceValueRef = this.createElementExistenceValueRefForLeftPart(element);
76298
+ const isElementExistsExpression = this.createIsElementExistsExpression(element);
76299
+ const rule = this.buildExistenceRuleSetStatement(existenceValueRef, isElementExistsExpression);
76300
+ return rule;
76301
+ }
76302
+ checkShouldBuildExistenceRule(element) {
76303
+ const single = !element.multiple;
76304
+ const optional = element.isOptional();
76305
+ const contentful = this.checkElementHasContent(element);
76306
+ const leaksToFuf = this.checkElementLeaksToFuf(element);
76307
+ const shouldBeProcessed = single && optional && contentful && leaksToFuf;
76308
+ return shouldBeProcessed;
76309
+ }
76310
+ checkShouldBuildExistenceExpression(element) {
76311
+ const contentful = this.checkElementHasContent(element);
76312
+ const shouldBeProcessed = contentful;
76313
+ return shouldBeProcessed;
76314
+ }
76315
+ checkElementHasContent(element) {
76316
+ const elementHasAttributes = this.checkElementHasAttributes(element);
76317
+ const elementHasChildren = this.checkElementHasChildren(element);
76318
+ const elementHasInnerText = this.checkElementHasInnerText(element);
76319
+ const elementHasContent = elementHasAttributes || elementHasChildren || elementHasInnerText;
76320
+ return elementHasContent;
76321
+ }
76322
+ checkElementHasAttributes(element) {
76323
+ return element.attributes.size > 0;
76324
+ }
76325
+ checkElementHasChildren(element) {
76326
+ return element.children.size > 0;
76327
+ }
76328
+ checkElementHasInnerText(element) {
76329
+ return element.hasInnerText;
76330
+ }
76331
+ checkElementLeaksToFuf(element) {
76332
+ return !element.isEditorOnly();
76333
+ }
76334
+ createIsElementExistsExpression(element) {
76335
+ const hasInnerText = this.checkElementHasInnerText(element);
76336
+ if (hasInnerText) {
76337
+ return this.createElementWithInnerTextExistenceExpression(element);
76338
+ }
76339
+ return this.createElementWithAttributesAndChildrenExistenceExpression(element);
76340
+ }
76341
+ createElementWithInnerTextExistenceExpression(element) {
76342
+ const elementPath = this.formSchemaRng.getPath(element).toCurrentIteration();
76343
+ const valueRef = this.createValueReferenceExpression(elementPath);
76344
+ const valueNotNullExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NotEqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.makeNoDeps)(valueRef), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NullLiteralExpression());
76345
+ const valueNotEmptyExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NotEqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.makeNoDeps)(valueRef), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.StringLiteralExpression(""));
76346
+ const isElementExistsExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.AndBinaryExpression(valueNotNullExpression, valueNotEmptyExpression);
76347
+ return isElementExistsExpression;
76348
+ }
76349
+ createElementWithAttributesAndChildrenExistenceExpression(element) {
76350
+ const attributes = element.getAttributesArray();
76351
+ const children = element.getChildrenArray().filter(el => this.checkShouldBuildExistenceExpression(el));
76352
+ const isElementHasAttributesAndChildren = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.arrayIsNotEmpty)(attributes) && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.arrayIsNotEmpty)(children);
76353
+ if (isElementHasAttributesAndChildren) {
76354
+ const isSomeAttributeExistsExpression = this.createIsSomeAttributeExistsExpression(attributes);
76355
+ const isSomeChildrenExistsExpression = this.createIsSomeChildrenExistsExpression(children);
76356
+ const isElementExistsExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.OrBinaryExpression(isSomeAttributeExistsExpression, isSomeChildrenExistsExpression);
76357
+ return isElementExistsExpression;
76358
+ }
76359
+ const isElementHasOnlyAttributes = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.arrayIsNotEmpty)(attributes);
76360
+ if (isElementHasOnlyAttributes) {
76361
+ const isSomeAttributeExistsExpression = this.createIsSomeAttributeExistsExpression(attributes);
76362
+ return isSomeAttributeExistsExpression;
76363
+ }
76364
+ (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayIsNotEmpty)(children, "Element must have children to build children existence expression");
76365
+ const isSomeChildrenExistsExpression = this.createIsSomeChildrenExistsExpression(children);
76366
+ return isSomeChildrenExistsExpression;
76367
+ }
76368
+ buildExistenceRuleSetStatement(existenceValueRef, existenceExpression) {
76369
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.SetStatement(existenceValueRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ConditionalExpression(existenceExpression, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_5__.TruthyFlangTechnicalFieldExpression, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NullLiteralExpression()));
76370
+ }
76371
+ createIsSomeAttributeExistsExpression(attributes) {
76372
+ if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.arrayHasLength)(attributes, 1)) {
76373
+ return this.createIsAttributeExistsExpression(attributes[0]);
76374
+ }
76375
+ const attributesNotNullExpressions = attributes.map(attr => this.createIsAttributeExistsExpression(attr));
76376
+ (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(attributesNotNullExpressions, 2);
76377
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.composeFlangExpressionsByOr)(attributesNotNullExpressions);
76378
+ }
76379
+ createIsAttributeExistsExpression(attribute) {
76380
+ const attributePath = this.formSchemaRng.getPath(attribute).toCurrentIteration();
76381
+ const attributeValueRef = this.createValueReferenceExpression(attributePath);
76382
+ const attributeNotNullExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NotEqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.makeNoDeps)(attributeValueRef), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NullLiteralExpression());
76383
+ const attributeNotEmptyExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NotEqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.makeNoDeps)(attributeValueRef), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.StringLiteralExpression(""));
76384
+ const isAttributeExistsExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.AndBinaryExpression(attributeNotNullExpression, attributeNotEmptyExpression);
76385
+ return isAttributeExistsExpression;
76386
+ }
76387
+ createIsSomeChildrenExistsExpression(children) {
76388
+ (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayIsNotEmpty)(children, "Input array of FormSchemaRngElements must be not empty");
76389
+ const {
76390
+ optional,
76391
+ required,
76392
+ multiple
76393
+ } = this.splitElementsByRole(children);
76394
+ const optionalChildrenExistenceExpressions = this.createOptionalChildrenExistenceExpressions(optional);
76395
+ const requiredChildrenExistenceExpressions = this.createRequiredChildrenExistenceExpressions(required);
76396
+ const multipleChildrenExistenceExpressions = this.createMultipleChildrenExistenceExpressions(multiple);
76397
+ const childrenExistenceExpressions = [...requiredChildrenExistenceExpressions, ...optionalChildrenExistenceExpressions, ...multipleChildrenExistenceExpressions];
76398
+ if (childrenExistenceExpressions.length === 1 && childrenExistenceExpressions[0]) {
76399
+ return childrenExistenceExpressions[0];
76400
+ }
76401
+ (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayIsNotEmpty)(childrenExistenceExpressions, "Output array of existence expressions must be not empty");
76402
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.composeFlangExpressionsByOr)(childrenExistenceExpressions);
76403
+ }
76404
+ splitElementsByRole(elements) {
76405
+ const elementsByRole = {
76406
+ optional: [],
76407
+ required: [],
76408
+ multiple: []
76409
+ };
76410
+ return elements.reduce((acc, cur) => {
76411
+ if (cur.multiple) {
76412
+ acc.multiple.push(cur);
76413
+ } else if (cur.isOptional()) {
76414
+ acc.optional.push(cur);
76415
+ } else {
76416
+ acc.required.push(cur);
76417
+ }
76418
+ return acc;
76419
+ }, elementsByRole);
76420
+ }
76421
+ createOptionalChildrenExistenceExpressions(elements) {
76422
+ return elements.map(element => this.createIsOptionalChildExistsExpression(element));
76423
+ }
76424
+ createIsOptionalChildExistsExpression(element) {
76425
+ const existenceValueRef = this.createElementExistenceValueRefForRightPart(element);
76426
+ const notNullExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NotEqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.makeNoDeps)(existenceValueRef), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.NullLiteralExpression());
76427
+ return notNullExpression;
76428
+ }
76429
+ createRequiredChildrenExistenceExpressions(elements) {
76430
+ return elements.map(element => this.createIsElementExistsExpression(element));
76431
+ }
76432
+ createMultipleChildrenExistenceExpressions(elements) {
76433
+ return elements.map(element => this.createIsMultipleChildExistsExpression(element));
76434
+ }
76435
+ createIsMultipleChildExistsExpression(element) {
76436
+ const childrenPath = this.formSchemaRng.getPath(element).trimLastStarIfLastToken();
76437
+ const childrenFieldRef = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.CastExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(childrenPath, "children"), _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.BuildInTypeExpression.array);
76438
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.GtExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ArrayLengthExpression(childrenFieldRef), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.DecimalLiteralExpression(0));
76439
+ }
76440
+ createElementExistenceValueRefForLeftPart(element) {
76441
+ const elementPath = this.formSchemaRng.getPath(element).toEachIteration();
76442
+ const existenceValueRef = this.createExistenceValueRef(elementPath);
76443
+ return existenceValueRef;
76444
+ }
76445
+ createElementExistenceValueRefForRightPart(element) {
76446
+ const elementPath = this.formSchemaRng.getPath(element).toCurrentIteration();
76447
+ const existenceValueRef = this.createExistenceValueRef(elementPath);
76448
+ return existenceValueRef;
76449
+ }
76450
+ createExistenceValueRef(modelPath) {
76451
+ const existenceValuePath = modelPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalElementsExistenceFieldName);
76452
+ const existenceValueRef = this.createValueReferenceExpression(existenceValuePath);
76453
+ return existenceValueRef;
76454
+ }
76455
+ createValueReferenceExpression(valuePath) {
76456
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(valuePath, "value");
76457
+ }
76458
+ wrapRulesWithOptionalElementCheck(rules) {
76459
+ const wrappedRules = Iterator.from(rules).map(rule => this.checkIsRuleShouldBeWrapped(rule) ? this.wrapSetStatementWithOptionalElementCheckIfNeeded(rule) : rule);
76460
+ return wrappedRules;
76461
+ }
76462
+ checkIsRuleShouldBeWrapped(rule) {
76463
+ const isSetStatement = rule instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.SetStatement;
76464
+ if (!isSetStatement) {
76465
+ return false;
76466
+ }
76467
+ const modelPath = rule.left.modePath;
76468
+ const notReservedPath = !(0,_Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_0__.checkIsReservedPath)(modelPath);
76469
+ const isValueField = rule.left.valueName === "value";
76470
+ const placedInsideOptionalBlock = this.checkElementPlacedInsideOptionalBlock(modelPath);
76471
+ return notReservedPath && isValueField && placedInsideOptionalBlock;
76472
+ }
76473
+ checkElementPlacedInsideOptionalBlock(path) {
76474
+ const currentElementIsOptionalBlock = this.optionalBlocksPaths.has(path.toString());
76475
+ if (currentElementIsOptionalBlock) {
76476
+ return true;
76477
+ }
76478
+ const parentPath = path.getParentPath();
76479
+ if (parentPath.isEmpty()) {
76480
+ return false;
76481
+ }
76482
+ return this.checkElementPlacedInsideOptionalBlock(parentPath);
76483
+ }
76484
+ wrapSetStatementWithOptionalElementCheckIfNeeded(rule) {
76485
+ const targetPath = rule.left.modePath;
76486
+ const parentOptionalElementPath = this.findNearestOptionalBySchemeParentElementPath(targetPath);
76487
+ if (!parentOptionalElementPath) {
76488
+ return rule;
76489
+ }
76490
+ const targetIsExistsPath = parentOptionalElementPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalElementsExistenceFieldName);
76491
+ const targetIsExistsValueRef = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.makeStringValueReference)(targetIsExistsPath.toCurrentIteration(), "value");
76492
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.SetStatement(rule.left, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.EqExpression(targetIsExistsValueRef, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_5__.TruthyFlangTechnicalFieldExpression), rule.right, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_5__.FalthyOptionalElementExistenceExpression));
76493
+ }
76494
+ findNearestOptionalBySchemeParentElementPath(path) {
76495
+ const currentElement = this.formSchemaRng.getElementByPath(path);
76496
+ if (currentElement && currentElement.isOptional()) {
76497
+ return path;
76498
+ }
76499
+ const parentPath = path.getParentPath();
76500
+ const parentElement = this.formSchemaRng.getElementByPath(parentPath);
76501
+ if (!parentElement) {
76502
+ return undefined;
76503
+ }
76504
+ if (parentElement instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__.FormSchemaRngElement && parentElement.multiple) {
76505
+ return undefined;
76506
+ }
76507
+ return this.findNearestOptionalBySchemeParentElementPath(parentPath);
76508
+ }
76509
+ }
76510
+
76511
+ /***/ }),
76512
+
75969
76513
  /***/ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalSectionRulesBuilder.ts":
75970
76514
  /*!***********************************************************************************************************!*\
75971
76515
  !*** ./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalSectionRulesBuilder.ts ***!
@@ -75987,7 +76531,8 @@ __webpack_require__.r(__webpack_exports__);
75987
76531
  /* harmony import */ var _Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPathHelper */ "./Common/ModelPath/ModelPathHelper.ts");
75988
76532
  /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
75989
76533
  /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
75990
- /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
76534
+ /* harmony import */ var _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../FLang/FlangConstants */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts");
76535
+ /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
75991
76536
 
75992
76537
 
75993
76538
 
@@ -75999,7 +76544,8 @@ __webpack_require__.r(__webpack_exports__);
75999
76544
 
76000
76545
 
76001
76546
 
76002
- class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_10__.BaseRuleBuilder {
76547
+
76548
+ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_11__.BaseRuleBuilder {
76003
76549
  constructor(sugarRoot, dataDeclarationHelper) {
76004
76550
  super();
76005
76551
  this.sugarRoot = void 0;
@@ -76065,7 +76611,7 @@ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MOD
76065
76611
  }
76066
76612
  wrapRulesWithOptionalPageCheck(rules) {
76067
76613
  const allOrderedSections = (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_5__.reverseArray)(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_5__.IterUtils.sortBy(this.getAllSections(), x => x.path.toLegacyPath())).toArray();
76068
- const wrappedRules = Iterator.from(rules).map(rule => rule instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement && rule.left.valueName != "children" ? this.wrapSetStatementWithOptionalPageCheckIfNeeded(rule, allOrderedSections) : rule);
76614
+ const wrappedRules = Iterator.from(rules).map(rule => (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_9__.isSetStatement)(rule) && rule.left.valueName != "children" ? this.wrapSetStatementWithOptionalPageCheckIfNeeded(rule, allOrderedSections) : rule);
76069
76615
  return wrappedRules;
76070
76616
  }
76071
76617
  findParentOptionalForAggregationPath(targetPath, orderedSections) {
@@ -76083,9 +76629,12 @@ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MOD
76083
76629
  const targetOptionalSection = !(0,_Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_7__.isAggregationPath)(targetPath) ? this.findParentOptionalForNonAggregationPath(targetPath, rule.left.valueName, orderedSections) : this.findParentOptionalForAggregationPath(targetPath, orderedSections);
76084
76630
  if (targetOptionalSection != undefined && !targetOptionalSection.multiple) {
76085
76631
  const targetIsFilledPath = targetOptionalSection.path.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__.OptionalSectionFilledFieldName);
76086
- if (!targetIsFilledPath.isEquals(targetPath)) {
76632
+ const isFilledFieldPath = targetIsFilledPath.isEquals(targetPath);
76633
+ const isExistenceValuePath = targetPath.endsWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createModelPath)(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__.OptionalElementsExistenceFieldName, false));
76634
+ const shouldWrapRule = !isFilledFieldPath && !isExistenceValuePath;
76635
+ if (shouldWrapRule) {
76087
76636
  const targetIsFilledValueRef = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ValueReferenceExpression(targetIsFilledPath.toCurrentIteration(), "value");
76088
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement(rule.left, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_9__.castOperandToStringIfNeed)(targetIsFilledValueRef), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression("1")), rule.right, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NullLiteralExpression()));
76637
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement(rule.left, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.EqExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_9__.castOperandToStringIfNeed)(targetIsFilledValueRef), _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_10__.TruthyFlangTechnicalFieldExpression), rule.right, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_10__.FalthyFlangTechnicalFieldExpression));
76089
76638
  }
76090
76639
  }
76091
76640
  return rule;
@@ -76094,7 +76643,7 @@ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MOD
76094
76643
  const createDecimalCondExpr = checkExpt => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(checkExpt, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.DecimalLiteralExpression(1), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.DecimalLiteralExpression(0));
76095
76644
  const targetValueRefBase = targetPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__.OptionalSectionFilledFieldName);
76096
76645
  const targetValueRef = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ValueReferenceExpression(targetValueRefBase, "value");
76097
- const pathInfos = Iterator.from(pathsBySection).filter(path => !path.isEquals(targetValueRefBase)).map(path => {
76646
+ const pathInfos = Iterator.from(pathsBySection).filter(path => !path.endsWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createModelPath)(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__.OptionalElementsExistenceFieldName, false))).filter(path => !path.isEquals(targetValueRefBase)).map(path => {
76098
76647
  const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_2__.getMatchedAndDifferentModelPaths)(targetPath, path);
76099
76648
  const iterationEntries = (0,_Common_ModelPath_BuildIterationSequence__WEBPACK_IMPORTED_MODULE_3__.buildIterationSequence)(splitInfo.differentPath);
76100
76649
  return {
@@ -76116,8 +76665,12 @@ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MOD
76116
76665
  const pathCheckWithReduceIfRequiredExpr = iterationEntry != undefined ? !iterationEntry.iterable.isContainIteration() ? createSingleReduceCheckExpression(iterationEntry) : createMultipleReduceCheckExpression(iterationEntry) : pathCheckExpr;
76117
76666
  return pathCheckWithReduceIfRequiredExpr;
76118
76667
  });
76119
- const allChecksExpressions = pathTestRules.reduce((acc, current) => acc == undefined ? current : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.OrBinaryExpression(acc, current), undefined);
76120
- return allChecksExpressions != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement(targetValueRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(allChecksExpressions, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression("1"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NullLiteralExpression())) : undefined;
76668
+ const pathTestRulesArray = pathTestRules.toArray();
76669
+ if (!(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.arrayIsNotEmpty)(pathTestRulesArray)) {
76670
+ return undefined;
76671
+ }
76672
+ const allChecksExpressions = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_9__.composeFlangExpressionsByOr)(pathTestRulesArray);
76673
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement(targetValueRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(allChecksExpressions, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_10__.TruthyFlangTechnicalFieldExpression, _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_10__.FalthyFlangTechnicalFieldExpression));
76121
76674
  }
76122
76675
  }
76123
76676
 
@@ -76763,6 +77316,8 @@ __webpack_require__.r(__webpack_exports__);
76763
77316
  /* harmony import */ var _ElementProcessors_FormParts_ModalHeader_ModalHeaderConverter__WEBPACK_IMPORTED_MODULE_121__ = __webpack_require__(/*! ./ElementProcessors/FormParts/ModalHeader/ModalHeaderConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/ModalHeader/ModalHeaderConverter.ts");
76764
77317
  /* harmony import */ var _ElementProcessors_FormParts_GlobalModal_GlobalModalsConverter__WEBPACK_IMPORTED_MODULE_122__ = __webpack_require__(/*! ./ElementProcessors/FormParts/GlobalModal/GlobalModalsConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/GlobalModal/GlobalModalsConverter.ts");
76765
77318
  /* harmony import */ var _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberConverter__WEBPACK_IMPORTED_MODULE_123__ = __webpack_require__(/*! ./ElementProcessors/MultiControls/InstanceNumber/InstanceNumberConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/InstanceNumber/InstanceNumberConverter.ts");
77319
+ /* harmony import */ var _ElementProcessors_Layout_OptionalBlock_OptionalBlockConverter__WEBPACK_IMPORTED_MODULE_124__ = __webpack_require__(/*! ./ElementProcessors/Layout/OptionalBlock/OptionalBlockConverter */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockConverter.ts");
77320
+
76766
77321
 
76767
77322
 
76768
77323
 
@@ -76889,7 +77444,7 @@ __webpack_require__.r(__webpack_exports__);
76889
77444
 
76890
77445
  let convertersFromNodeClassMap;
76891
77446
  function buildConvertersFromNodeClassMap() {
76892
- const converters = [_ElementProcessors_FormParts_AddPageButton_AddPageButtonConverter__WEBPACK_IMPORTED_MODULE_8__.AddPageButtonConverter, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonConverter__WEBPACK_IMPORTED_MODULE_9__.AddRowButtonConverter, _ElementProcessors_FormParts_AttachmentForm_AttachmentFormConverter__WEBPACK_IMPORTED_MODULE_117__.AttachmentFormConverter, _ElementProcessors_Layout_Block_BlockConverter__WEBPACK_IMPORTED_MODULE_10__.BlockConverter, _ElementProcessors_Layout_Minitour_MinitourConverter__WEBPACK_IMPORTED_MODULE_11__.MinitourConverter, _ElementProcessors_Typography_Bold_BoldConverter__WEBPACK_IMPORTED_MODULE_13__.BoldConverter, _ElementProcessors_Layout_Br_BrConverter__WEBPACK_IMPORTED_MODULE_14__.BrConverter, _ElementProcessors_FormParts_Caption_CaptionConverter__WEBPACK_IMPORTED_MODULE_18__.CaptionConverter, _ElementProcessors_ValueEditors_Checkbox_CheckboxConverter__WEBPACK_IMPORTED_MODULE_19__.CheckboxConverter, _ElementProcessors_ControlFlow_Choice_ChoiceConverter__WEBPACK_IMPORTED_MODULE_20__.ChoiceConverter, _ElementProcessors_MultiControls_TableCell_TableCellConverter__WEBPACK_IMPORTED_MODULE_85__.TableCellConverter, _ElementProcessors_ValueEditors_Toggle_ToggleConverter__WEBPACK_IMPORTED_MODULE_88__.ToggleConverter, _ElementProcessors_ValueEditors_Combobox_ComboBoxConverter__WEBPACK_IMPORTED_MODULE_21__.ComboBoxConverter, _ElementProcessors_FormParts_Content_ContentConverter__WEBPACK_IMPORTED_MODULE_22__.ContentConverter, _ElementProcessors_FormParts_Cross_CrossConverter__WEBPACK_IMPORTED_MODULE_23__.CrossConverter, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonConverter__WEBPACK_IMPORTED_MODULE_97__.ColgroupButtonConverter, _ElementProcessors_ValueEditors_Date_DateConverter__WEBPACK_IMPORTED_MODULE_24__.DateConverter, _ElementProcessors_FormParts_DefaultContent_DefaultContentConverter__WEBPACK_IMPORTED_MODULE_25__.DefaultContentConverter, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxConverter__WEBPACK_IMPORTED_MODULE_26__.DiadocSuggestComboBoxConverter, _ElementProcessors_ValueEditors_RelativesComboBox_RelativesComboBoxConverter__WEBPACK_IMPORTED_MODULE_119__.RelativesComboBoxConverter, _ElementProcessors_Typography_Entity_EntityConverter__WEBPACK_IMPORTED_MODULE_27__.EntityConverter, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteConverter__WEBPACK_IMPORTED_MODULE_28__.ExpertNoteConverter, _ElementProcessors_ValueEditors_FileLoader_FileLoaderConverter__WEBPACK_IMPORTED_MODULE_29__.FileLoaderConverter, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeConverter__WEBPACK_IMPORTED_MODULE_30__.FilterDateRangeConverter, _ElementProcessors_MultiControls_FilterInput_FilterInputConverter__WEBPACK_IMPORTED_MODULE_31__.FilterInputConverter, _ElementProcessors_MultiControls_FilterList_FilterListConverter__WEBPACK_IMPORTED_MODULE_32__.FilterListConverter, _ElementProcessors_ValueViewers_FIO_FIOConverter__WEBPACK_IMPORTED_MODULE_33__.FIOConverter, _ElementProcessors_Layout_Flexbox_FlexboxConverter__WEBPACK_IMPORTED_MODULE_34__.FlexboxConverter, _ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_36__.FormConverter, _ElementProcessors_FormParts_FormInfo_FormInfoConverter__WEBPACK_IMPORTED_MODULE_37__.FormInfoConverter, _ElementProcessors_Typography_Gray_GrayConverter__WEBPACK_IMPORTED_MODULE_38__.GrayConverter, _ElementProcessors_Layout_GridCol_GridColConverter__WEBPACK_IMPORTED_MODULE_39__.GridColConverter, _ElementProcessors_Layout_GridRow_GridRowConverter__WEBPACK_IMPORTED_MODULE_40__.GridRowConverter, _ElementProcessors_FormParts_Header_HeaderConverter__WEBPACK_IMPORTED_MODULE_41__.HeaderConverter, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuConverter__WEBPACK_IMPORTED_MODULE_42__.HeaderMenuConverter, _ElementProcessors_Helpers_Help_HelpConverter__WEBPACK_IMPORTED_MODULE_43__.HelpConverter, _ElementProcessors_Helpers_Helpinfo_HelpInfoConverter__WEBPACK_IMPORTED_MODULE_44__.HelpInfoConverter, _ElementProcessors_Typography_Highlight_HighlightConverter__WEBPACK_IMPORTED_MODULE_45__.HighlightConverter, _ElementProcessors_Layout_Hr_HrConverter__WEBPACK_IMPORTED_MODULE_46__.HrConverter, _ElementProcessors_Typography_Icon_IconConverter__WEBPACK_IMPORTED_MODULE_47__.IconConverter, _ElementProcessors_ControlFlow_Captions_Short_ShortConverter__WEBPACK_IMPORTED_MODULE_110__.ShortConverter, _ElementProcessors_ControlFlow_Captions_Long_LongConverter__WEBPACK_IMPORTED_MODULE_111__.LongConverter, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintConverter__WEBPACK_IMPORTED_MODULE_112__.FillHintConverter, _ElementProcessors_ControlFlow_If_IfConverter__WEBPACK_IMPORTED_MODULE_48__.IfConverter, _ElementProcessors_Layout_Img_ImgConverter__WEBPACK_IMPORTED_MODULE_49__.ImgConverter, _ElementProcessors_ValueEditors_INN_INNConverter__WEBPACK_IMPORTED_MODULE_50__.INNConverter, _ElementProcessors_ValueEditors_Input_InputConverter__WEBPACK_IMPORTED_MODULE_51__.InputConverter, _ElementProcessors_Typography_Italic_ItalicConverter__WEBPACK_IMPORTED_MODULE_52__.ItalicConverter, _ElementProcessors_Layout_ListItem_ListItemConverter__WEBPACK_IMPORTED_MODULE_53__.ListItemConverter, _ElementProcessors_ValueEditors_Kladr_KladrConverter__WEBPACK_IMPORTED_MODULE_54__.KladrConverter, _ElementProcessors_ValueViewers_Linetext_LinetextConverter__WEBPACK_IMPORTED_MODULE_55__.LinetextConverter, _ElementProcessors_Action_Link_LinkConverter__WEBPACK_IMPORTED_MODULE_56__.LinkConverter, _ElementProcessors_Layout_List_ListConverter__WEBPACK_IMPORTED_MODULE_57__.ListConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_58__.ModalFormConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_61__.ModalFormLabelConverter, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_62__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_63__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_65__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_66__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_67__.PicklistConverter, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistConverter__WEBPACK_IMPORTED_MODULE_118__.TreePicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_68__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_69__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_70__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_71__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_72__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_73__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_74__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_75__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_76__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_77__.SupConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_86__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_87__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_96__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_92__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_93__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_94__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_7__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_64__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_95__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_91__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_90__.UnitItemConverter, _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_12__.BodyConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_35__.FooterConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_60__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormCancelConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_15__.ButtonConverter, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonConverter__WEBPACK_IMPORTED_MODULE_16__.DownloadExcelButtonConverter, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelConverter__WEBPACK_IMPORTED_MODULE_17__.DropDownButtonLoadExcelConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_89__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_78__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_83__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_79__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_81__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_80__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_82__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_84__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_2__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_1__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_6__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_5__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_101__.DropdownButtonConverter, _ElementProcessors_ValueEditors_Fias_FiasConverter__WEBPACK_IMPORTED_MODULE_0__.FiasConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_3__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_100__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_99__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_103__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_102__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_104__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_105__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_106__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_107__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_108__.TaxRebateConverter, _ElementProcessors_FormParts_Banner_BannerConverter__WEBPACK_IMPORTED_MODULE_109__.BannerConverter, _ElementProcessors_ValueViewers_DateView_DateViewConverter__WEBPACK_IMPORTED_MODULE_113__.DateViewConverter, _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_114__.KebabConverter, _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_115__.InfoBlockConverter, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_116__.SelectAllCheckboxConverter, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxConverter__WEBPACK_IMPORTED_MODULE_120__.SelectCheckboxConverter, _ElementProcessors_FormParts_ModalHeader_ModalHeaderConverter__WEBPACK_IMPORTED_MODULE_121__.ModalHeaderConverter, _ElementProcessors_FormParts_GlobalModal_GlobalModalsConverter__WEBPACK_IMPORTED_MODULE_122__.GlobalModalsConverter, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberConverter__WEBPACK_IMPORTED_MODULE_123__.InstanceNumberConverter];
77447
+ const converters = [_ElementProcessors_FormParts_AddPageButton_AddPageButtonConverter__WEBPACK_IMPORTED_MODULE_8__.AddPageButtonConverter, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonConverter__WEBPACK_IMPORTED_MODULE_9__.AddRowButtonConverter, _ElementProcessors_FormParts_AttachmentForm_AttachmentFormConverter__WEBPACK_IMPORTED_MODULE_117__.AttachmentFormConverter, _ElementProcessors_Layout_Block_BlockConverter__WEBPACK_IMPORTED_MODULE_10__.BlockConverter, _ElementProcessors_Layout_Minitour_MinitourConverter__WEBPACK_IMPORTED_MODULE_11__.MinitourConverter, _ElementProcessors_Typography_Bold_BoldConverter__WEBPACK_IMPORTED_MODULE_13__.BoldConverter, _ElementProcessors_Layout_Br_BrConverter__WEBPACK_IMPORTED_MODULE_14__.BrConverter, _ElementProcessors_FormParts_Caption_CaptionConverter__WEBPACK_IMPORTED_MODULE_18__.CaptionConverter, _ElementProcessors_ValueEditors_Checkbox_CheckboxConverter__WEBPACK_IMPORTED_MODULE_19__.CheckboxConverter, _ElementProcessors_ControlFlow_Choice_ChoiceConverter__WEBPACK_IMPORTED_MODULE_20__.ChoiceConverter, _ElementProcessors_MultiControls_TableCell_TableCellConverter__WEBPACK_IMPORTED_MODULE_85__.TableCellConverter, _ElementProcessors_ValueEditors_Toggle_ToggleConverter__WEBPACK_IMPORTED_MODULE_88__.ToggleConverter, _ElementProcessors_ValueEditors_Combobox_ComboBoxConverter__WEBPACK_IMPORTED_MODULE_21__.ComboBoxConverter, _ElementProcessors_FormParts_Content_ContentConverter__WEBPACK_IMPORTED_MODULE_22__.ContentConverter, _ElementProcessors_FormParts_Cross_CrossConverter__WEBPACK_IMPORTED_MODULE_23__.CrossConverter, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonConverter__WEBPACK_IMPORTED_MODULE_97__.ColgroupButtonConverter, _ElementProcessors_ValueEditors_Date_DateConverter__WEBPACK_IMPORTED_MODULE_24__.DateConverter, _ElementProcessors_FormParts_DefaultContent_DefaultContentConverter__WEBPACK_IMPORTED_MODULE_25__.DefaultContentConverter, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxConverter__WEBPACK_IMPORTED_MODULE_26__.DiadocSuggestComboBoxConverter, _ElementProcessors_ValueEditors_RelativesComboBox_RelativesComboBoxConverter__WEBPACK_IMPORTED_MODULE_119__.RelativesComboBoxConverter, _ElementProcessors_Typography_Entity_EntityConverter__WEBPACK_IMPORTED_MODULE_27__.EntityConverter, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteConverter__WEBPACK_IMPORTED_MODULE_28__.ExpertNoteConverter, _ElementProcessors_ValueEditors_FileLoader_FileLoaderConverter__WEBPACK_IMPORTED_MODULE_29__.FileLoaderConverter, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeConverter__WEBPACK_IMPORTED_MODULE_30__.FilterDateRangeConverter, _ElementProcessors_MultiControls_FilterInput_FilterInputConverter__WEBPACK_IMPORTED_MODULE_31__.FilterInputConverter, _ElementProcessors_MultiControls_FilterList_FilterListConverter__WEBPACK_IMPORTED_MODULE_32__.FilterListConverter, _ElementProcessors_ValueViewers_FIO_FIOConverter__WEBPACK_IMPORTED_MODULE_33__.FIOConverter, _ElementProcessors_Layout_Flexbox_FlexboxConverter__WEBPACK_IMPORTED_MODULE_34__.FlexboxConverter, _ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_36__.FormConverter, _ElementProcessors_FormParts_FormInfo_FormInfoConverter__WEBPACK_IMPORTED_MODULE_37__.FormInfoConverter, _ElementProcessors_Typography_Gray_GrayConverter__WEBPACK_IMPORTED_MODULE_38__.GrayConverter, _ElementProcessors_Layout_GridCol_GridColConverter__WEBPACK_IMPORTED_MODULE_39__.GridColConverter, _ElementProcessors_Layout_GridRow_GridRowConverter__WEBPACK_IMPORTED_MODULE_40__.GridRowConverter, _ElementProcessors_FormParts_Header_HeaderConverter__WEBPACK_IMPORTED_MODULE_41__.HeaderConverter, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuConverter__WEBPACK_IMPORTED_MODULE_42__.HeaderMenuConverter, _ElementProcessors_Helpers_Help_HelpConverter__WEBPACK_IMPORTED_MODULE_43__.HelpConverter, _ElementProcessors_Helpers_Helpinfo_HelpInfoConverter__WEBPACK_IMPORTED_MODULE_44__.HelpInfoConverter, _ElementProcessors_Typography_Highlight_HighlightConverter__WEBPACK_IMPORTED_MODULE_45__.HighlightConverter, _ElementProcessors_Layout_Hr_HrConverter__WEBPACK_IMPORTED_MODULE_46__.HrConverter, _ElementProcessors_Typography_Icon_IconConverter__WEBPACK_IMPORTED_MODULE_47__.IconConverter, _ElementProcessors_ControlFlow_Captions_Short_ShortConverter__WEBPACK_IMPORTED_MODULE_110__.ShortConverter, _ElementProcessors_ControlFlow_Captions_Long_LongConverter__WEBPACK_IMPORTED_MODULE_111__.LongConverter, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintConverter__WEBPACK_IMPORTED_MODULE_112__.FillHintConverter, _ElementProcessors_ControlFlow_If_IfConverter__WEBPACK_IMPORTED_MODULE_48__.IfConverter, _ElementProcessors_Layout_Img_ImgConverter__WEBPACK_IMPORTED_MODULE_49__.ImgConverter, _ElementProcessors_ValueEditors_INN_INNConverter__WEBPACK_IMPORTED_MODULE_50__.INNConverter, _ElementProcessors_ValueEditors_Input_InputConverter__WEBPACK_IMPORTED_MODULE_51__.InputConverter, _ElementProcessors_Typography_Italic_ItalicConverter__WEBPACK_IMPORTED_MODULE_52__.ItalicConverter, _ElementProcessors_Layout_ListItem_ListItemConverter__WEBPACK_IMPORTED_MODULE_53__.ListItemConverter, _ElementProcessors_ValueEditors_Kladr_KladrConverter__WEBPACK_IMPORTED_MODULE_54__.KladrConverter, _ElementProcessors_ValueViewers_Linetext_LinetextConverter__WEBPACK_IMPORTED_MODULE_55__.LinetextConverter, _ElementProcessors_Action_Link_LinkConverter__WEBPACK_IMPORTED_MODULE_56__.LinkConverter, _ElementProcessors_Layout_List_ListConverter__WEBPACK_IMPORTED_MODULE_57__.ListConverter, _ElementProcessors_Modal_ModalForm_ModalFormConverter__WEBPACK_IMPORTED_MODULE_58__.ModalFormConverter, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelConverter__WEBPACK_IMPORTED_MODULE_61__.ModalFormLabelConverter, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldConverter__WEBPACK_IMPORTED_MODULE_62__.MultilineFieldConverter, _ElementProcessors_Helpers_Normativehelp_NormativeHelpConverter__WEBPACK_IMPORTED_MODULE_63__.NormativeHelpConverter, _ElementProcessors_FormParts_Page_PageConverter__WEBPACK_IMPORTED_MODULE_65__.PageConverter, _ElementProcessors_Layout_Pencil_PencilConverter__WEBPACK_IMPORTED_MODULE_66__.PencilConverter, _ElementProcessors_ValueEditors_Picklist_PicklistConverter__WEBPACK_IMPORTED_MODULE_67__.PicklistConverter, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistConverter__WEBPACK_IMPORTED_MODULE_118__.TreePicklistConverter, _ElementProcessors_ValueEditors_radio_RadioConverter__WEBPACK_IMPORTED_MODULE_68__.RadioConverter, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupConverter__WEBPACK_IMPORTED_MODULE_69__.RadioGroupConverter, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonConverter__WEBPACK_IMPORTED_MODULE_70__.RemoveRowButtonConverter, _ElementProcessors_ValueEditors_Select_SelectConverter__WEBPACK_IMPORTED_MODULE_71__.SelectConverter, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupConverter__WEBPACK_IMPORTED_MODULE_72__.SortRadioGroupConverter, _ElementProcessors_Layout_Spoiler_SpoilerConverter__WEBPACK_IMPORTED_MODULE_73__.SpoilerConverter, _ElementProcessors_Typography_Strong_StrongConverter__WEBPACK_IMPORTED_MODULE_74__.StrongConverter, _ElementProcessors_Typography_Sub_SubConverter__WEBPACK_IMPORTED_MODULE_75__.SubConverter, _ElementProcessors_Layout_Subheader_SubheaderConverter__WEBPACK_IMPORTED_MODULE_76__.SubheaderConverter, _ElementProcessors_Typography_Sup_SupConverter__WEBPACK_IMPORTED_MODULE_77__.SupConverter, _ElementProcessors_ValueViewers_Text_TextConverter__WEBPACK_IMPORTED_MODULE_86__.TextConverter, _ElementProcessors_ValueEditors_Textarea_TextAreaConverter__WEBPACK_IMPORTED_MODULE_87__.TextAreaConverter, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaConverter__WEBPACK_IMPORTED_MODULE_96__.PopupTextAreaConverter, _ElementProcessors_ValueViewers_ValueLength_ValueLengthConverter__WEBPACK_IMPORTED_MODULE_92__.ValueLengthConverter, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockConverter__WEBPACK_IMPORTED_MODULE_93__.VisibilityBlockConverter, _ElementProcessors_Layout_Warning_WarningConverter__WEBPACK_IMPORTED_MODULE_94__.WarningConverter, _ElementProcessors_Layout_InnerText_InnertextConverter__WEBPACK_IMPORTED_MODULE_7__.InnertextConverter, _ElementProcessors_ControlFlow_Otherwise_OtherwiseConverter__WEBPACK_IMPORTED_MODULE_64__.OtherwiseConverter, _ElementProcessors_ControlFlow_When_WhenConverter__WEBPACK_IMPORTED_MODULE_95__.WhenConverter, _ElementProcessors_FormParts_UnitList_UnitListConverter__WEBPACK_IMPORTED_MODULE_91__.UnitListConverter, _ElementProcessors_FormParts_UnitItem_UnitItemConverter__WEBPACK_IMPORTED_MODULE_90__.UnitItemConverter, _ElementProcessors_Modal_Body_BodyConverter__WEBPACK_IMPORTED_MODULE_12__.BodyConverter, _ElementProcessors_Modal_Footer_FooterConverter__WEBPACK_IMPORTED_MODULE_35__.FooterConverter, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmConverter__WEBPACK_IMPORTED_MODULE_60__.ModalFormConfirmConverter, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelConverter__WEBPACK_IMPORTED_MODULE_59__.ModalFormCancelConverter, _ElementProcessors_Action_Button_ButtonConverter__WEBPACK_IMPORTED_MODULE_15__.ButtonConverter, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonConverter__WEBPACK_IMPORTED_MODULE_16__.DownloadExcelButtonConverter, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelConverter__WEBPACK_IMPORTED_MODULE_17__.DropDownButtonLoadExcelConverter, _ElementProcessors_FormParts_Tour_TourConverter__WEBPACK_IMPORTED_MODULE_89__.TourConverter, _ElementProcessors_ControlFlow_Switch_SwitchConverter__WEBPACK_IMPORTED_MODULE_78__.SwitchConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableColumnConverter__WEBPACK_IMPORTED_MODULE_83__.StickyTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableColumnConverter__WEBPACK_IMPORTED_MODULE_79__.CrossfitTableColumnConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableColumnConverter__WEBPACK_IMPORTED_MODULE_81__.SimpleTableColumnConverter, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableConverter__WEBPACK_IMPORTED_MODULE_80__.CrossfitTableConverter, _ElementProcessors_Layout_SimpleTable_SimpleTableConverter__WEBPACK_IMPORTED_MODULE_82__.SimpleTableConverter, _ElementProcessors_MultiControls_StickyTable_StickyTableWithMultilineConverter__WEBPACK_IMPORTED_MODULE_84__.StickyTableWithMultilineConverter, _ElementProcessors_Layout_Stack_StackConverter__WEBPACK_IMPORTED_MODULE_2__.StackConverter, _ElementProcessors_Layout_Grid_GridConverter__WEBPACK_IMPORTED_MODULE_1__.GridConverter, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelConverter__WEBPACK_IMPORTED_MODULE_6__.HeaderPanelConverter, _ElementProcessors_MultiControls_Tabs_TabsConverter__WEBPACK_IMPORTED_MODULE_5__.TabsConverter, _ElementProcessors_Action_DropdownButton_DropdownButtonConverter__WEBPACK_IMPORTED_MODULE_101__.DropdownButtonConverter, _ElementProcessors_ValueEditors_Fias_FiasConverter__WEBPACK_IMPORTED_MODULE_0__.FiasConverter, _ElementProcessors_MultiControls_FilterSelect_FilterSelectConverter__WEBPACK_IMPORTED_MODULE_3__.FilterSelectConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2Converter, _ElementProcessors_MultiControls_Table2_Table2RowConverter__WEBPACK_IMPORTED_MODULE_100__.Table2RowConverter, _ElementProcessors_MultiControls_Table2_Table2MultirowConverter__WEBPACK_IMPORTED_MODULE_99__.Table2MultirowConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2ColumnConverter, _ElementProcessors_MultiControls_Table2_Table2Converter__WEBPACK_IMPORTED_MODULE_4__.Table2VerticalColumnConverter, _ElementProcessors_Layout_FixedTabs_FixedTabsConverter__WEBPACK_IMPORTED_MODULE_103__.FixedTabsConverter, _ElementProcessors_Layout_FixedTabs_FixedTabConverter__WEBPACK_IMPORTED_MODULE_102__.FixedTabConverter, _ElementProcessors_MultiControls_Multiple_MultipleConverter__WEBPACK_IMPORTED_MODULE_104__.MultipleConverter, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelConverter__WEBPACK_IMPORTED_MODULE_105__.ExcelPastePanelConverter, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsConverter__WEBPACK_IMPORTED_MODULE_106__.ReferencedFieldsConverter, _ElementProcessors_FormParts_UserPicklist_UserPicklistConverter__WEBPACK_IMPORTED_MODULE_107__.UserPicklistConverter, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateConverter__WEBPACK_IMPORTED_MODULE_108__.TaxRebateConverter, _ElementProcessors_FormParts_Banner_BannerConverter__WEBPACK_IMPORTED_MODULE_109__.BannerConverter, _ElementProcessors_ValueViewers_DateView_DateViewConverter__WEBPACK_IMPORTED_MODULE_113__.DateViewConverter, _ElementProcessors_Action_Kebab_KebabConverter__WEBPACK_IMPORTED_MODULE_114__.KebabConverter, _ElementProcessors_Helpers_Clue_InfoBlockConverter__WEBPACK_IMPORTED_MODULE_115__.InfoBlockConverter, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxConverter__WEBPACK_IMPORTED_MODULE_116__.SelectAllCheckboxConverter, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxConverter__WEBPACK_IMPORTED_MODULE_120__.SelectCheckboxConverter, _ElementProcessors_FormParts_ModalHeader_ModalHeaderConverter__WEBPACK_IMPORTED_MODULE_121__.ModalHeaderConverter, _ElementProcessors_FormParts_GlobalModal_GlobalModalsConverter__WEBPACK_IMPORTED_MODULE_122__.GlobalModalsConverter, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberConverter__WEBPACK_IMPORTED_MODULE_123__.InstanceNumberConverter, _ElementProcessors_Layout_OptionalBlock_OptionalBlockConverter__WEBPACK_IMPORTED_MODULE_124__.OptionalBlockConverter];
76893
77448
  return new Map(
76894
77449
  // @ts-ignore
76895
77450
  converters.map(converterClass => [converterClass.getAcceptNodeClass(), converterClass]));
@@ -86613,6 +87168,179 @@ let MinitourNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
86613
87168
 
86614
87169
  /***/ }),
86615
87170
 
87171
+ /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockConverter.ts":
87172
+ /*!*******************************************************************************************************************!*\
87173
+ !*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockConverter.ts ***!
87174
+ \*******************************************************************************************************************/
87175
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
87176
+
87177
+ "use strict";
87178
+ __webpack_require__.r(__webpack_exports__);
87179
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
87180
+ /* harmony export */ OptionalBlockConverter: () => (/* binding */ OptionalBlockConverter)
87181
+ /* harmony export */ });
87182
+ /* harmony import */ var _Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../Common/CommonConstants/SectionNames */ "./Common/CommonConstants/SectionNames.ts");
87183
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
87184
+ /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
87185
+ /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
87186
+ /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
87187
+ /* harmony import */ var _OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./OptionalBlockNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode.ts");
87188
+
87189
+
87190
+
87191
+
87192
+
87193
+
87194
+ class OptionalBlockConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.SugarNodeConverterBase {
87195
+ static getAcceptNodeClass() {
87196
+ return _OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode;
87197
+ }
87198
+ doBuildDataDeclaration(context) {
87199
+ const node = this.getCurrentNodeAs(_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode);
87200
+ const nodePath = node.getFullPath();
87201
+ const visibilityFieldPath = nodePath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalBlockVisibilityFieldName).toString();
87202
+ return context.mergeDataDeclaration(context.addVisibilityPathDeclEntryNew(node), {
87203
+ [nodePath.toString()]: {
87204
+ section: [_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_0__.SectionNames.defaultSection, `${node.id}`]
87205
+ }
87206
+ }, {
87207
+ [visibilityFieldPath]: {
87208
+ value: context.initSequenceFactory.dataValue({
87209
+ defaultValue: "1",
87210
+ fetchfn: undefined,
87211
+ settings: undefined
87212
+ }, false, "1")
87213
+ }
87214
+ });
87215
+ }
87216
+ buildChildrenDataDeclaration(context) {
87217
+ const node = this.getCurrentNodeAs(_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode);
87218
+ return context.processChildrenDataDeclaration(node.children);
87219
+ }
87220
+ *doTraverseChildren() {
87221
+ const node = this.getCurrentNodeAs(_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode);
87222
+ yield* node.children;
87223
+ }
87224
+ doConvert(context) {
87225
+ const node = this.getCurrentNodeAs(_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode);
87226
+ const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("OptionalBlock");
87227
+ markupBuilder.prop(x => x.id).set(node.id);
87228
+ markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
87229
+ markupBuilder.prop(x => x.createTitle).set(node.createTitle);
87230
+ markupBuilder.prop(x => x.blockTitle).set(node.blockTitle);
87231
+ markupBuilder.prop(x => x.confirmOnDelete).set(Boolean(node.confirmOnDelete));
87232
+ markupBuilder.prop(x => x.confirmText).set(node.confirmText);
87233
+ markupBuilder.prop(x => x.confirmHeaderText).set(node.confirmHeaderText);
87234
+ markupBuilder.prop(x => x.confirmButtonText).set(node.confirmButtonText);
87235
+ markupBuilder.prop(x => x.discardButtonText).set(node.discardButtonText);
87236
+ markupBuilder.appendChild(context.convertChildNodes(node.children));
87237
+ return markupBuilder.buildConverterResult();
87238
+ }
87239
+ }
87240
+
87241
+ /***/ }),
87242
+
87243
+ /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode.ts":
87244
+ /*!**************************************************************************************************************!*\
87245
+ !*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode.ts ***!
87246
+ \**************************************************************************************************************/
87247
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
87248
+
87249
+ "use strict";
87250
+ __webpack_require__.r(__webpack_exports__);
87251
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
87252
+ /* harmony export */ OptionalBlockNode: () => (/* binding */ OptionalBlockNode)
87253
+ /* harmony export */ });
87254
+ /* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
87255
+ /* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
87256
+ /* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
87257
+ /* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
87258
+ /* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
87259
+ /* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
87260
+ /* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
87261
+ /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
87262
+ /* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
87263
+
87264
+
87265
+
87266
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
87267
+
87268
+
87269
+
87270
+ let OptionalBlockNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("optionalblock", "Блочный элемент, оборачивающий контент, опционально присутствующий в формe"), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_5__.DataBindingScopeMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("id", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string.required, `Уникальный идентификатор блока. Все скрываемые блоки в форме должны иметь уникальный идентификатор.`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("createTitle", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string.required, `Текст справа от иконки "добавить"`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("blockTitle", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, `Заголовок, отображающийся перед кнопкой "Удалить"`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("confirmOnDelete", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Показывать ли модалку для подтверждения удаления контента в блоке"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("confirmText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Сообщение пользователю в модалке подтверждения удаления"), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("confirmHeaderText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Заголовок в шапке модалки подтверждения удаления"), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("confirmButtonText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Текст на кнопке подтверждения в модалке"), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("discardButtonText", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string, "Текст на кнопке отмены в модалке"), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.children)(), _dec(_class = (_class2 = class OptionalBlockNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__.SugarNodeWithLegacyVisibility {
87271
+ constructor(...args) {
87272
+ super(...args);
87273
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor, this);
87274
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "id", _descriptor2, this);
87275
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "createTitle", _descriptor3, this);
87276
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "blockTitle", _descriptor4, this);
87277
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "confirmOnDelete", _descriptor5, this);
87278
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "confirmText", _descriptor6, this);
87279
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "confirmHeaderText", _descriptor7, this);
87280
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "confirmButtonText", _descriptor8, this);
87281
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "discardButtonText", _descriptor9, this);
87282
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor10, this);
87283
+ }
87284
+ getOwnPath() {
87285
+ return this.dataScope.getOwnPath();
87286
+ }
87287
+ get path() {
87288
+ return this.dataScope.path;
87289
+ }
87290
+ }, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataScope", [_dec2], {
87291
+ configurable: true,
87292
+ enumerable: true,
87293
+ writable: true,
87294
+ initializer: null
87295
+ }), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "id", [_dec3], {
87296
+ configurable: true,
87297
+ enumerable: true,
87298
+ writable: true,
87299
+ initializer: null
87300
+ }), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "createTitle", [_dec4], {
87301
+ configurable: true,
87302
+ enumerable: true,
87303
+ writable: true,
87304
+ initializer: null
87305
+ }), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "blockTitle", [_dec5], {
87306
+ configurable: true,
87307
+ enumerable: true,
87308
+ writable: true,
87309
+ initializer: null
87310
+ }), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "confirmOnDelete", [_dec6], {
87311
+ configurable: true,
87312
+ enumerable: true,
87313
+ writable: true,
87314
+ initializer: null
87315
+ }), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "confirmText", [_dec7], {
87316
+ configurable: true,
87317
+ enumerable: true,
87318
+ writable: true,
87319
+ initializer: null
87320
+ }), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "confirmHeaderText", [_dec8], {
87321
+ configurable: true,
87322
+ enumerable: true,
87323
+ writable: true,
87324
+ initializer: null
87325
+ }), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "confirmButtonText", [_dec9], {
87326
+ configurable: true,
87327
+ enumerable: true,
87328
+ writable: true,
87329
+ initializer: null
87330
+ }), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "discardButtonText", [_dec10], {
87331
+ configurable: true,
87332
+ enumerable: true,
87333
+ writable: true,
87334
+ initializer: null
87335
+ }), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec11], {
87336
+ configurable: true,
87337
+ enumerable: true,
87338
+ writable: true,
87339
+ initializer: null
87340
+ }), _class2)) || _class);
87341
+
87342
+ /***/ }),
87343
+
86616
87344
  /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Pencil/PencilConverter.ts":
86617
87345
  /*!*****************************************************************************************************!*\
86618
87346
  !*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Pencil/PencilConverter.ts ***!
@@ -104468,17 +105196,19 @@ __webpack_require__.r(__webpack_exports__);
104468
105196
  /* harmony import */ var _common_KCLang_CodeDom_InBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/InBlock */ "./Generator/src/common/KCLang/CodeDom/InBlock.ts");
104469
105197
  /* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
104470
105198
  /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
104471
- /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
104472
- /* harmony import */ var _AllConverters__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
104473
- /* harmony import */ var _ConverterResults_ConverterResult__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ConverterResults/ConverterResult */ "./Generator/src/generators/markupGenerator/ConverterResults/ConverterResult.ts");
104474
- /* harmony import */ var _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ElementProcessors/FormParts/Form/FormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormNode.ts");
104475
- /* harmony import */ var _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ElementProcessors/FormParts/Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
104476
- /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
104477
- /* harmony import */ var _SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./SugarNodes/DefaultSugarSerializer */ "./Generator/src/generators/markupGenerator/SugarNodes/DefaultSugarSerializer.ts");
104478
- /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
104479
- /* harmony import */ var _VisibilityProcessor__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./VisibilityProcessor */ "./Generator/src/generators/markupGenerator/VisibilityProcessor.ts");
104480
- /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
104481
- /* harmony import */ var _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./FocusManagementProcessor */ "./Generator/src/generators/markupGenerator/FocusManagementProcessor.ts");
105199
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
105200
+ /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
105201
+ /* harmony import */ var _AllConverters__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
105202
+ /* harmony import */ var _ConverterResults_ConverterResult__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ConverterResults/ConverterResult */ "./Generator/src/generators/markupGenerator/ConverterResults/ConverterResult.ts");
105203
+ /* harmony import */ var _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ElementProcessors/FormParts/Form/FormNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Form/FormNode.ts");
105204
+ /* harmony import */ var _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ElementProcessors/FormParts/Page/PageNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/FormParts/Page/PageNode.ts");
105205
+ /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
105206
+ /* harmony import */ var _SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SugarNodes/DefaultSugarSerializer */ "./Generator/src/generators/markupGenerator/SugarNodes/DefaultSugarSerializer.ts");
105207
+ /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
105208
+ /* harmony import */ var _VisibilityProcessor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./VisibilityProcessor */ "./Generator/src/generators/markupGenerator/VisibilityProcessor.ts");
105209
+ /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
105210
+ /* harmony import */ var _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./FocusManagementProcessor */ "./Generator/src/generators/markupGenerator/FocusManagementProcessor.ts");
105211
+
104482
105212
 
104483
105213
 
104484
105214
 
@@ -104504,12 +105234,12 @@ class SugarNodeConverterBase {
104504
105234
  constructor(node) {
104505
105235
  this.node = void 0;
104506
105236
  this.node = node;
104507
- if (node instanceof _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_10__.PageNode) {
105237
+ if (node instanceof _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__.PageNode) {
104508
105238
  deserializedPages.set(node.sourceXmlNode, node);
104509
105239
  }
104510
105240
  }
104511
105241
  static deserializeNodeAs(nodeClass, sourceXmlNode) {
104512
- const serializer = (0,_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_12__.createDefaultSugarSerializer)();
105242
+ const serializer = (0,_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_13__.createDefaultSugarSerializer)();
104513
105243
  const node = serializer.deserializeFromSugarXmlNode(sourceXmlNode, [nodeClass]);
104514
105244
  if (node instanceof nodeClass) {
104515
105245
  return node;
@@ -104546,10 +105276,28 @@ class SugarNodeConverterBase {
104546
105276
  return [];
104547
105277
  }
104548
105278
  buildDataDeclaration(context) {
104549
- return context.mergeDataDeclaration(this.doBuildDataDeclaration(context), this.buildChildrenDataDeclaration(context));
105279
+ const path = this.node.getFullPath();
105280
+ // Почему так назван, разве работает только для множественных?
105281
+ const isNodeOptionalFromScheme = context.isMultipleNodeOptionalFromScheme(path);
105282
+ const isMultipleNode = context.isMultipleElement(path);
105283
+ const optionalElementDataDeclaration = !isMultipleNode && isNodeOptionalFromScheme && this.buildOptionalElementDataDeclaration(context, path);
105284
+ return context.mergeDataDeclaration(this.doBuildDataDeclaration(context), optionalElementDataDeclaration, this.buildChildrenDataDeclaration(context));
105285
+ }
105286
+ buildOptionalElementDataDeclaration(context, path) {
105287
+ const existenceFieldPath = path.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_6__.OptionalElementsExistenceFieldName).toLegacyPath();
105288
+ const existenceDataDeclaration = context.mergeDataDeclaration(context.addPathSectionDeclarationEntry(this.node, false, false, (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_2__.createRelativeFromTokens)([_Common_PathConstants__WEBPACK_IMPORTED_MODULE_6__.OptionalElementsExistenceFieldName])), {
105289
+ [existenceFieldPath]: {
105290
+ value: context.initSequenceFactory.dataValue({
105291
+ defaultValue: "1",
105292
+ fetchfn: undefined,
105293
+ settings: undefined
105294
+ }, false, "1")
105295
+ }
105296
+ });
105297
+ return existenceDataDeclaration;
104550
105298
  }
104551
105299
  getCurrentNodeAs(nodeClass) {
104552
- return (0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_13__.strictCastNode)(this.node, nodeClass);
105300
+ return (0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_14__.strictCastNode)(this.node, nodeClass);
104553
105301
  }
104554
105302
  applyVisibilityPathProcessing() {
104555
105303
  return true;
@@ -104571,7 +105319,7 @@ class SugarNodeConverterBase {
104571
105319
  getParentPage() {
104572
105320
  const node = this.node.sourceXmlNode;
104573
105321
  const page = node.getParentPageStrict();
104574
- return page != undefined ? this.getNodeAs(_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_10__.PageNode, page) : undefined;
105322
+ return page != undefined ? this.getNodeAs(_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__.PageNode, page) : undefined;
104575
105323
  }
104576
105324
  getParentForm() {
104577
105325
  const node = this.node.sourceXmlNode;
@@ -104579,18 +105327,18 @@ class SugarNodeConverterBase {
104579
105327
  if (formNode == undefined) {
104580
105328
  throw new Error("InvalidProgramState");
104581
105329
  }
104582
- return this.getNodeAs(_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_9__.FormNode, formNode);
105330
+ return this.getNodeAs(_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_10__.FormNode, formNode);
104583
105331
  }
104584
105332
  findPage(id) {
104585
105333
  const node = this.node.sourceXmlNode;
104586
105334
  const root = node.getRoot();
104587
105335
  const pageNodes = root.getChildren("page");
104588
105336
  const page = pageNodes.find(pageNode => pageNode.attrAsString("id") === id);
104589
- return page != undefined ? this.getNodeAs(_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_10__.PageNode, page) : undefined;
105337
+ return page != undefined ? this.getNodeAs(_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__.PageNode, page) : undefined;
104590
105338
  }
104591
105339
  getEvaluatorsContextPathExpression() {
104592
105340
  var _this$node$parent;
104593
- return (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_6__.getNewBindingPathExpression)((_this$node$parent = this.node.parent) !== null && _this$node$parent !== void 0 ? _this$node$parent : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)());
105341
+ return (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_7__.getNewBindingPathExpression)((_this$node$parent = this.node.parent) !== null && _this$node$parent !== void 0 ? _this$node$parent : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.reject)());
104594
105342
  }
104595
105343
  buildValidations(validationGenerator, context) {
104596
105344
  this.doBuildNodeValidations(validationGenerator, context);
@@ -104621,7 +105369,7 @@ class SugarNodeConverterBase {
104621
105369
  // noop
104622
105370
  }
104623
105371
  getResolvedBindingPath(node) {
104624
- return (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_6__.getResolvedBindingPath)(node);
105372
+ return (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_7__.getResolvedBindingPath)(node);
104625
105373
  }
104626
105374
  getRequisitesFromFetchFunction(fetchFunctions) {
104627
105375
  const result = {};
@@ -104641,7 +105389,7 @@ class SugarNodeConverterBase {
104641
105389
  }
104642
105390
  getConverterResultFromAttributeWithMarkup(context, attributeValue) {
104643
105391
  if (Array.isArray(attributeValue)) {
104644
- return _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_15__.ComponentMarkupBuilder.createFragment(attributeValue.map(x => typeof x === "string" ? _ConverterResults_ConverterResult__WEBPACK_IMPORTED_MODULE_8__.ConverterResult.fromConverterResults([], x) : context.convertChildNodes([x])));
105392
+ return _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_16__.ComponentMarkupBuilder.createFragment(attributeValue.map(x => typeof x === "string" ? _ConverterResults_ConverterResult__WEBPACK_IMPORTED_MODULE_9__.ConverterResult.fromConverterResults([], x) : context.convertChildNodes([x])));
104645
105393
  }
104646
105394
  return attributeValue;
104647
105395
  }
@@ -104659,7 +105407,7 @@ class SugarNodeConverterBase {
104659
105407
  *buildNormalizeRules(builder, formSchemaRng) {
104660
105408
  yield* this.doBuildNormalizeRules(builder, formSchemaRng);
104661
105409
  for (const child of this.traverseChildren()) {
104662
- const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_7__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.getNodeClass)(child));
105410
+ const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_8__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.getNodeClass)(child));
104663
105411
  if (controlConverterClass == undefined) {
104664
105412
  const customControl = builder.controlCustomizationContext.tryGetCustomRegularControl(child.sourceXmlNode.name);
104665
105413
  if (customControl != undefined) {
@@ -104679,7 +105427,7 @@ class SugarNodeConverterBase {
104679
105427
  }
104680
105428
  getNodeAs(nodeClass, sourceXmlNode) {
104681
105429
  // @ts-ignore
104682
- if (nodeClass === _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_10__.PageNode) {
105430
+ if (nodeClass === _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__.PageNode) {
104683
105431
  var _deserializedPages$ge;
104684
105432
  // @ts-ignore
104685
105433
  return (_deserializedPages$ge = deserializedPages.get(sourceXmlNode !== null && sourceXmlNode !== void 0 ? sourceXmlNode : this.node)) !== null && _deserializedPages$ge !== void 0 ? _deserializedPages$ge : SugarNodeConverterBase.deserializeNodeAs(nodeClass, sourceXmlNode !== null && sourceXmlNode !== void 0 ? sourceXmlNode : this.node);
@@ -104688,12 +105436,12 @@ class SugarNodeConverterBase {
104688
105436
  }
104689
105437
  buildChildrenValidations(validationGenerator, context, children) {
104690
105438
  for (const child of children !== null && children !== void 0 ? children : this.doTraverseChildren()) {
104691
- const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_7__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.getNodeClass)(child));
105439
+ const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_8__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.getNodeClass)(child));
104692
105440
  if (controlConverterClass == undefined) {
104693
- if (child instanceof _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.UnknownSugarNode && child.name === "type") {
105441
+ if (child instanceof _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.UnknownSugarNode && child.name === "type") {
104694
105442
  continue;
104695
105443
  }
104696
- if (child instanceof _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.UnknownSugarNode) {
105444
+ if (child instanceof _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.UnknownSugarNode) {
104697
105445
  const customControl = validationGenerator.controlCustomizationContext.tryGetCustomRegularControl(child.name);
104698
105446
  if (customControl != undefined) {
104699
105447
  const childNode = child.sourceXmlNode;
@@ -104702,7 +105450,7 @@ class SugarNodeConverterBase {
104702
105450
  }
104703
105451
  continue;
104704
105452
  // eslint-disable-next-line no-console
104705
- console.error(`Cannot process node of type ${(0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.getNodeClass)(child).name}`);
105453
+ console.error(`Cannot process node of type ${(0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.getNodeClass)(child).name}`);
104706
105454
  // throw new SugarAttributeReadError(
104707
105455
  // `Cannot process node of type ${getNodeClass(child).name}`,
104708
105456
  // child.sourceXmlNode as SugarXmlNode,
@@ -104716,7 +105464,7 @@ class SugarNodeConverterBase {
104716
105464
  buildChildrenKCLangValidations(buildContext, formSchemaRng, children) {
104717
105465
  const result = [];
104718
105466
  for (const child of children !== null && children !== void 0 ? children : this.doTraverseChildren()) {
104719
- const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_7__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.getNodeClass)(child));
105467
+ const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_8__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.getNodeClass)(child));
104720
105468
  if (controlConverterClass == undefined) {
104721
105469
  continue;
104722
105470
  }
@@ -104734,10 +105482,10 @@ class SugarNodeConverterBase {
104734
105482
  return result;
104735
105483
  }
104736
105484
  processVisibilityPathAttributes(converterResult) {
104737
- return _VisibilityProcessor__WEBPACK_IMPORTED_MODULE_14__.VisibilityProcessor.processVisibilityPathAttributes(this.node, converterResult);
105485
+ return _VisibilityProcessor__WEBPACK_IMPORTED_MODULE_15__.VisibilityProcessor.processVisibilityPathAttributes(this.node, converterResult);
104738
105486
  }
104739
105487
  processFocusManagementAttributes(converterResult) {
104740
- return _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_16__.FocusManagementProcessor.processFocusManagementAttributes(this.node, converterResult);
105488
+ return _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_17__.FocusManagementProcessor.processFocusManagementAttributes(this.node, converterResult);
104741
105489
  }
104742
105490
  doBuildKCLangValidations(buildContext, formSchemaRng) {
104743
105491
  return [];
@@ -104906,6 +105654,8 @@ __webpack_require__.r(__webpack_exports__);
104906
105654
  /* harmony import */ var _ElementProcessors_ValueEditors_RelativesComboBox_RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_124__ = __webpack_require__(/*! ../ElementProcessors/ValueEditors/RelativesComboBox/RelativesComboBoxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/RelativesComboBox/RelativesComboBoxNode.ts");
104907
105655
  /* harmony import */ var _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_125__ = __webpack_require__(/*! ../ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts");
104908
105656
  /* harmony import */ var _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_126__ = __webpack_require__(/*! ../ElementProcessors/MultiControls/InstanceNumber/InstanceNumberNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/MultiControls/InstanceNumber/InstanceNumberNode.ts");
105657
+ /* harmony import */ var _ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_127__ = __webpack_require__(/*! ../ElementProcessors/Layout/OptionalBlock/OptionalBlockNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode.ts");
105658
+
104909
105659
 
104910
105660
 
104911
105661
 
@@ -105149,6 +105899,7 @@ function registerDefaultSugarNodes(result) {
105149
105899
  result.registerNode(_ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_121__.SelectAllCheckboxNode);
105150
105900
  result.registerNode(_ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_125__.SelectCheckboxNode);
105151
105901
  result.registerNode(_ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_126__.InstanceNumberNode);
105902
+ result.registerNode(_ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_127__.OptionalBlockNode);
105152
105903
  }
105153
105904
  function createDefaultSugarSerializer() {
105154
105905
  const result = new _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_106__.SugarSerializer({
@@ -105161,7 +105912,7 @@ function getAllSugarValidationNodeClasses() {
105161
105912
  return [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.TypeNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.CustomValidationTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.PatternTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.EnumerationTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.LengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinlengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MaxlengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.TotaldigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.IntegerdigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.FractiondigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ValueEqlAutoValueTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.DigestcheckTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MininclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MaxinclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ForcedTypeChecksNode];
105162
105913
  }
105163
105914
  function getAllSugarNodeClasses() {
105164
- return [_ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_96__.TextNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_91__.SwitchNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_91__.SwitchDefaultNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_91__.SwitchCaseNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_32__.AddButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddLineNode__WEBPACK_IMPORTED_MODULE_33__.AddLineNode, _ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonNode, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode, _ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_12__.BlockNode, _ElementProcessors_Layout_Minitour_MinitourNode__WEBPACK_IMPORTED_MODULE_13__.MinitourNode, _ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_14__.BodyNode, _ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_15__.BoldNode, _ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_16__.BrNode, _ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_17__.ButtonNode, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonNode__WEBPACK_IMPORTED_MODULE_18__.DownloadExcelButtonNode, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_19__.DropDownButtonLoadExcelNode, _ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_20__.CaptionNode, _ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_21__.CheckboxNode, _ElementProcessors_ValueEditors_Toggle_ToggleNode__WEBPACK_IMPORTED_MODULE_22__.ToggleNode, _ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_23__.ChoiceNode, _ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_24__.ComboBoxNode, _ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_25__.ContentNode, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_92__.CrossfitTableNode, _ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_26__.CrossNode, _ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_27__.DateNode, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_29__.DiadocSuggestComboBoxNode, _ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_30__.EntityNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_31__.ExpertNoteNode, _ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_39__.FileLoaderNode, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_40__.FilterDateRangeNode, _ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_41__.FilterInputNode, _ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_42__.FilterListNode, _ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_43__.FIONode, _ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_44__.FlexboxNode, _ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_45__.FooterNode, _ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_50__.FormInfoNode, _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_46__.FormNode, _ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_51__.GrayNode, _ElementProcessors_Layout_GridCol_GridColNode__WEBPACK_IMPORTED_MODULE_52__.GridColNode, _ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_53__.GridRowNode, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_55__.HeaderMenuNode, _ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_54__.HeaderNode, _ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_57__.HelpInfoNode, _ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_56__.HelpNode, _ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_58__.HighlightNode, _ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_59__.HrNode, _ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_60__.IconNode, _ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_62__.ImgNode, _ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_9__.InnertextNode, _ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_63__.INNNode, _ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_64__.InputNode, _ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_65__.ItalicNode, _ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_67__.KladrNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_69__.LinkNode, _ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_66__.ListItemNode, _ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_70__.ListNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_34__.MenuNode, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_72__.ModalFormCancelNode, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_73__.ModalFormConfirmNode, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_74__.ModalFormLabelNode, _ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_71__.ModalFormNode, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_75__.MultilineFieldNode, _ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_76__.NormativeHelpNode, _ElementProcessors_ControlFlow_Otherwise_OtherwiseNode__WEBPACK_IMPORTED_MODULE_77__.OtherwiseNode, _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_78__.PageNode, _ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_49__.PanelNode, _ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_79__.PencilNode, _ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_80__.PicklistNode, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistNode__WEBPACK_IMPORTED_MODULE_123__.TreePicklistNode, _ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_81__.RadioNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_RemoveButtonNode__WEBPACK_IMPORTED_MODULE_35__.RemoveButtonNode, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_83__.RemoveRowButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_36__.ReplaceButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceLineNode__WEBPACK_IMPORTED_MODULE_37__.ReplaceLineNode, _ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_84__.SelectNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_93__.SimpleTableNode, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_85__.SortRadioGroupNode, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_82__.RadioGroupNode, _ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_86__.SpoilerNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_94__.StickyTableNode, _ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_87__.StrongNode, _ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_89__.SubheaderNode, _ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_88__.SubNode, _ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_90__.SupNode, _ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_97__.TextAreaNode, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_104__.PopupTextAreaNode, _ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_98__.UnitItemNode, _ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_99__.UnitListNode, _ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_100__.ValueLengthNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_38__.ViewFileNode, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_101__.VisibilityBlockNode, _ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_102__.WarningNode, _ElementProcessors_ControlFlow_When_WhenNode__WEBPACK_IMPORTED_MODULE_103__.WhenNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_31__.ExpertNoteNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_31__.MessageBoxNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_69__.LinkNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_31__.NameNode, _ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_68__.LineTextNode, _ElementProcessors_ControlFlow_Captions_Short_ShortNode__WEBPACK_IMPORTED_MODULE_115__.ShortNode, _ElementProcessors_ControlFlow_Captions_Long_LongNode__WEBPACK_IMPORTED_MODULE_114__.LongNode, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintNode__WEBPACK_IMPORTED_MODULE_116__.FillHintNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.IfNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ElseNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ThenNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_93__.SimpleTableRowNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_93__.SimpleTableColumnNode, _ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_4__.StackNode, _ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_3__.GridNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_94__.StickyTableMultilineNode, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_2__.DropdownButtonNode, _ElementProcessors_Action_Common_ActionNode__WEBPACK_IMPORTED_MODULE_118__.ActionNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabsNode, _ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__.FiasNode, _ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_5__.FilterSelectNode, _ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_6__.Table2Node, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_107__.FixedTabsNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_107__.FixedTabNode, _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_108__.MultipleNode, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_109__.ExcelPastePanelNode, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_110__.ReferencedFieldsNode, _ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_111__.UserPicklistNode, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateNode__WEBPACK_IMPORTED_MODULE_112__.TaxRebateNode, _ElementProcessors_FormParts_Banner_BannerNode__WEBPACK_IMPORTED_MODULE_113__.BannerNode, _ElementProcessors_ValueViewers_DateView_DateViewNode__WEBPACK_IMPORTED_MODULE_117__.DateViewNode, _ElementProcessors_Action_Kebab_KebabNode__WEBPACK_IMPORTED_MODULE_119__.KebabNode, _ElementProcessors_Helpers_Clue_InfoBlockNode__WEBPACK_IMPORTED_MODULE_120__.InfoBlockNode, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_121__.SelectAllCheckboxNode, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_125__.SelectCheckboxNode, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_126__.InstanceNumberNode];
105915
+ return [_ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_96__.TextNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_91__.SwitchNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_91__.SwitchDefaultNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_91__.SwitchCaseNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_32__.AddButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddLineNode__WEBPACK_IMPORTED_MODULE_33__.AddLineNode, _ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonNode, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode, _ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_12__.BlockNode, _ElementProcessors_Layout_Minitour_MinitourNode__WEBPACK_IMPORTED_MODULE_13__.MinitourNode, _ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_14__.BodyNode, _ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_15__.BoldNode, _ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_16__.BrNode, _ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_17__.ButtonNode, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonNode__WEBPACK_IMPORTED_MODULE_18__.DownloadExcelButtonNode, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_19__.DropDownButtonLoadExcelNode, _ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_20__.CaptionNode, _ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_21__.CheckboxNode, _ElementProcessors_ValueEditors_Toggle_ToggleNode__WEBPACK_IMPORTED_MODULE_22__.ToggleNode, _ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_23__.ChoiceNode, _ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_24__.ComboBoxNode, _ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_25__.ContentNode, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_92__.CrossfitTableNode, _ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_26__.CrossNode, _ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_27__.DateNode, _ElementProcessors_ValueEditors_DiadocSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_29__.DiadocSuggestComboBoxNode, _ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_30__.EntityNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_31__.ExpertNoteNode, _ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_39__.FileLoaderNode, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_40__.FilterDateRangeNode, _ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_41__.FilterInputNode, _ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_42__.FilterListNode, _ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_43__.FIONode, _ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_44__.FlexboxNode, _ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_45__.FooterNode, _ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_50__.FormInfoNode, _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_46__.FormNode, _ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_51__.GrayNode, _ElementProcessors_Layout_GridCol_GridColNode__WEBPACK_IMPORTED_MODULE_52__.GridColNode, _ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_53__.GridRowNode, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_55__.HeaderMenuNode, _ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_54__.HeaderNode, _ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_57__.HelpInfoNode, _ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_56__.HelpNode, _ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_58__.HighlightNode, _ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_59__.HrNode, _ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_60__.IconNode, _ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_62__.ImgNode, _ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_9__.InnertextNode, _ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_63__.INNNode, _ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_64__.InputNode, _ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_65__.ItalicNode, _ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_67__.KladrNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_69__.LinkNode, _ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_66__.ListItemNode, _ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_70__.ListNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_34__.MenuNode, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_72__.ModalFormCancelNode, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_73__.ModalFormConfirmNode, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_74__.ModalFormLabelNode, _ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_71__.ModalFormNode, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_75__.MultilineFieldNode, _ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_76__.NormativeHelpNode, _ElementProcessors_ControlFlow_Otherwise_OtherwiseNode__WEBPACK_IMPORTED_MODULE_77__.OtherwiseNode, _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_78__.PageNode, _ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_49__.PanelNode, _ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_79__.PencilNode, _ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_80__.PicklistNode, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistNode__WEBPACK_IMPORTED_MODULE_123__.TreePicklistNode, _ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_81__.RadioNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_RemoveButtonNode__WEBPACK_IMPORTED_MODULE_35__.RemoveButtonNode, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_83__.RemoveRowButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_36__.ReplaceButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceLineNode__WEBPACK_IMPORTED_MODULE_37__.ReplaceLineNode, _ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_84__.SelectNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_93__.SimpleTableNode, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_85__.SortRadioGroupNode, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_82__.RadioGroupNode, _ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_86__.SpoilerNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_94__.StickyTableNode, _ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_87__.StrongNode, _ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_89__.SubheaderNode, _ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_88__.SubNode, _ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_90__.SupNode, _ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_97__.TextAreaNode, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_104__.PopupTextAreaNode, _ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_98__.UnitItemNode, _ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_99__.UnitListNode, _ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_100__.ValueLengthNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_38__.ViewFileNode, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_101__.VisibilityBlockNode, _ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_102__.WarningNode, _ElementProcessors_ControlFlow_When_WhenNode__WEBPACK_IMPORTED_MODULE_103__.WhenNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_31__.ExpertNoteNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_31__.MessageBoxNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_69__.LinkNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_31__.NameNode, _ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_68__.LineTextNode, _ElementProcessors_ControlFlow_Captions_Short_ShortNode__WEBPACK_IMPORTED_MODULE_115__.ShortNode, _ElementProcessors_ControlFlow_Captions_Long_LongNode__WEBPACK_IMPORTED_MODULE_114__.LongNode, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintNode__WEBPACK_IMPORTED_MODULE_116__.FillHintNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.IfNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ElseNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ThenNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_93__.SimpleTableRowNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_93__.SimpleTableColumnNode, _ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_4__.StackNode, _ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_3__.GridNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_94__.StickyTableMultilineNode, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_2__.DropdownButtonNode, _ElementProcessors_Action_Common_ActionNode__WEBPACK_IMPORTED_MODULE_118__.ActionNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabsNode, _ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__.FiasNode, _ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_5__.FilterSelectNode, _ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_6__.Table2Node, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_107__.FixedTabsNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_107__.FixedTabNode, _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_108__.MultipleNode, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_109__.ExcelPastePanelNode, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_110__.ReferencedFieldsNode, _ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_111__.UserPicklistNode, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateNode__WEBPACK_IMPORTED_MODULE_112__.TaxRebateNode, _ElementProcessors_FormParts_Banner_BannerNode__WEBPACK_IMPORTED_MODULE_113__.BannerNode, _ElementProcessors_ValueViewers_DateView_DateViewNode__WEBPACK_IMPORTED_MODULE_117__.DateViewNode, _ElementProcessors_Action_Kebab_KebabNode__WEBPACK_IMPORTED_MODULE_119__.KebabNode, _ElementProcessors_Helpers_Clue_InfoBlockNode__WEBPACK_IMPORTED_MODULE_120__.InfoBlockNode, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_121__.SelectAllCheckboxNode, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_125__.SelectCheckboxNode, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_126__.InstanceNumberNode, _ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_127__.OptionalBlockNode];
105165
105916
  }
105166
105917
  function getAllSchemaRngNodeClasses() {
105167
105918
  return [_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.SchemaRngElement, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.SchemaRngElementChoiceElement, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.SchemaRngInnerText, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.SchemaRngAttribute, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.SchemaRngType, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.MaxinclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.MininclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.FractiondigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.IntegerdigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.TotaldigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.MaxlengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.MinlengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.LengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.EnumerationTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_122__.PatternTypeCheck];