@kontur.candy/generator 5.92.0-progress-bar-normalization.0 → 5.92.0

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 +835 -85
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47412,12 +47412,15 @@ class ModelPathBuilder {
47412
47412
  "use strict";
47413
47413
  __webpack_require__.r(__webpack_exports__);
47414
47414
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47415
+ /* harmony export */ checkIsReservedPath: () => (/* binding */ checkIsReservedPath),
47415
47416
  /* harmony export */ getMask: () => (/* binding */ getMask),
47416
47417
  /* harmony export */ getMaskWithInstances: () => (/* binding */ getMaskWithInstances),
47417
47418
  /* harmony export */ isAggregationPath: () => (/* binding */ isAggregationPath),
47418
47419
  /* harmony export */ replaceInstancesWithMultiplicity: () => (/* binding */ replaceInstancesWithMultiplicity)
47419
47420
  /* harmony export */ });
47420
- /* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
47421
+ /* harmony import */ var _PathConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../PathConstants */ "./Common/PathConstants.ts");
47422
+ /* harmony import */ var _ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModelPath */ "./Common/ModelPath/ModelPath.ts");
47423
+
47421
47424
 
47422
47425
  function isAggregationPath(modelPath) {
47423
47426
  const tokens = modelPath.getPathPartsAsArray();
@@ -47425,28 +47428,31 @@ function isAggregationPath(modelPath) {
47425
47428
  return lastToken === "Sum" || lastToken === "Count";
47426
47429
  }
47427
47430
  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());
47431
+ 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
47432
  }
47430
47433
  function getMaskWithInstances(exactPath) {
47431
47434
  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)) {
47435
+ if (_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isInstanceToken(token) || _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isMultiToken(token)) {
47433
47436
  result.instances.push(token);
47434
47437
  }
47435
- result.tokens.push(_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.isInstanceToken(token) ? _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each : token);
47438
+ result.tokens.push(_ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isInstanceToken(token) ? _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each : token);
47436
47439
  return result;
47437
47440
  }, {
47438
47441
  tokens: [],
47439
47442
  instances: []
47440
47443
  });
47441
47444
  return {
47442
- mask: (0,_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(reduceResult.tokens),
47445
+ mask: (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(reduceResult.tokens),
47443
47446
  instances: reduceResult.instances
47444
47447
  };
47445
47448
  }
47446
- function replaceInstancesWithMultiplicity(path, replaceToken = _ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each) {
47449
+ function replaceInstancesWithMultiplicity(path, replaceToken = _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.each) {
47447
47450
  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);
47451
+ const resultTokens = path.getPathPartsAsArray().map(x => _ModelPath__WEBPACK_IMPORTED_MODULE_1__.PathTokens.isInstanceToken(x) ? replaceToken : x);
47452
+ return isAbsolute ? (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsoluteFromTokens)(resultTokens) : (0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createRelativeFromTokens)(resultTokens);
47453
+ }
47454
+ function checkIsReservedPath(path) {
47455
+ return _PathConstants__WEBPACK_IMPORTED_MODULE_0__.reservedForTechnicalUsageFields.some(field => path.endsWith((0,_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(field, false)));
47450
47456
  }
47451
47457
 
47452
47458
  /***/ }),
@@ -47661,14 +47667,24 @@ class Set2 {
47661
47667
  __webpack_require__.r(__webpack_exports__);
47662
47668
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47663
47669
  /* harmony export */ AttachmentInfoPath: () => (/* binding */ AttachmentInfoPath),
47670
+ /* harmony export */ FalsyTechnicalFieldValue: () => (/* binding */ FalsyTechnicalFieldValue),
47671
+ /* harmony export */ OptionalBlockVisibilityFieldName: () => (/* binding */ OptionalBlockVisibilityFieldName),
47672
+ /* harmony export */ OptionalElementsExistenceFieldName: () => (/* binding */ OptionalElementsExistenceFieldName),
47664
47673
  /* harmony export */ OptionalSectionFilledFieldName: () => (/* binding */ OptionalSectionFilledFieldName),
47665
- /* harmony export */ UnitLabelPath: () => (/* binding */ UnitLabelPath)
47674
+ /* harmony export */ TruthyTechnicalFieldValue: () => (/* binding */ TruthyTechnicalFieldValue),
47675
+ /* harmony export */ UnitLabelPath: () => (/* binding */ UnitLabelPath),
47676
+ /* harmony export */ reservedForTechnicalUsageFields: () => (/* binding */ reservedForTechnicalUsageFields)
47666
47677
  /* harmony export */ });
47667
47678
  /* harmony import */ var _ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
47668
47679
 
47669
47680
  const UnitLabelPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("label");
47670
47681
  const AttachmentInfoPath = (0,_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createRelativeResolvedModelPath)("attachment");
47682
+ const TruthyTechnicalFieldValue = "1";
47683
+ const FalsyTechnicalFieldValue = null;
47671
47684
  const OptionalSectionFilledFieldName = "isFilledOptional";
47685
+ const OptionalElementsExistenceFieldName = "isExists";
47686
+ const OptionalBlockVisibilityFieldName = "isOptionalBlockVisible";
47687
+ const reservedForTechnicalUsageFields = [OptionalSectionFilledFieldName, OptionalElementsExistenceFieldName, OptionalBlockVisibilityFieldName];
47672
47688
 
47673
47689
  /***/ }),
47674
47690
 
@@ -47776,9 +47792,9 @@ function arrayIsNotEmpty(items) {
47776
47792
  function arrayHasAtLeastOneItem(items) {
47777
47793
  return items.length > 0;
47778
47794
  }
47779
- function ensureArrayIsNotEmpty(items) {
47795
+ function ensureArrayIsNotEmpty(items, message) {
47780
47796
  if (!arrayIsNotEmpty(items)) {
47781
- throw new Error(`Array must be not empty`);
47797
+ throw new Error(message !== null && message !== void 0 ? message : `Array must be not empty`);
47782
47798
  }
47783
47799
  }
47784
47800
  function ensureArrayHasLength(items, length) {
@@ -62151,7 +62167,8 @@ __webpack_require__.r(__webpack_exports__);
62151
62167
  /* harmony export */ FormSchemaRng: () => (/* binding */ FormSchemaRng),
62152
62168
  /* harmony export */ FormSchemaRngAttribute: () => (/* binding */ FormSchemaRngAttribute),
62153
62169
  /* harmony export */ FormSchemaRngElement: () => (/* binding */ FormSchemaRngElement),
62154
- /* harmony export */ FormSchemaRngTypeInfo: () => (/* binding */ FormSchemaRngTypeInfo)
62170
+ /* harmony export */ FormSchemaRngTypeInfo: () => (/* binding */ FormSchemaRngTypeInfo),
62171
+ /* harmony export */ isFormSchemaRngElement: () => (/* binding */ isFormSchemaRngElement)
62155
62172
  /* harmony export */ });
62156
62173
  /* harmony import */ var _Common_Errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/Errors */ "./Common/Errors.ts");
62157
62174
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
@@ -62212,6 +62229,7 @@ class FormSchemaRngElement {
62212
62229
  this.errorAndWarningCountRequired = void 0;
62213
62230
  this.lazyLoadingThreshold = void 0;
62214
62231
  this.disableValueAutoInit = void 0;
62232
+ this.hasInnerText = false;
62215
62233
  this.innerTextType = void 0;
62216
62234
  this.children = new Map();
62217
62235
  this.maxOccurs = void 0;
@@ -62260,9 +62278,15 @@ class FormSchemaRngElement {
62260
62278
  getChildren() {
62261
62279
  return this.children;
62262
62280
  }
62281
+ getChildrenArray() {
62282
+ return this.children.values().toArray();
62283
+ }
62263
62284
  getAttributes() {
62264
62285
  return this.attributes;
62265
62286
  }
62287
+ getAttributesArray() {
62288
+ return this.attributes.values().toArray();
62289
+ }
62266
62290
  isIgnoreForcedValueSet() {
62267
62291
  var _this$disableValueAut2;
62268
62292
  return (_this$disableValueAut2 = this.disableValueAutoInit) !== null && _this$disableValueAut2 !== void 0 ? _this$disableValueAut2 : this.parent instanceof FormSchemaRngElement ? this.parent.isIgnoreForcedValueSet() : false;
@@ -62271,6 +62295,9 @@ class FormSchemaRngElement {
62271
62295
  return this.useServerFilters;
62272
62296
  }
62273
62297
  }
62298
+ function isFormSchemaRngElement(obj) {
62299
+ return obj instanceof FormSchemaRngElement;
62300
+ }
62274
62301
  class FormSchemaRng {
62275
62302
  constructor(rootElement) {
62276
62303
  this.map = new Map();
@@ -62287,6 +62314,7 @@ class FormSchemaRng {
62287
62314
  static convertSchemaRngElement(schemaRngElement, parent) {
62288
62315
  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
62316
  if (schemaRngElement.innerText != undefined) {
62317
+ result.hasInnerText = true;
62290
62318
  if (schemaRngElement.innerText.type != undefined) {
62291
62319
  result.setInnerTextType(this.buildTypeInfo(schemaRngElement.innerText.type));
62292
62320
  }
@@ -69472,8 +69500,10 @@ __webpack_require__.r(__webpack_exports__);
69472
69500
  /* 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
69501
  /* harmony import */ var _markupGenerator_getBindingPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../markupGenerator/getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
69474
69502
  /* 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");
69503
+ /* 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");
69504
+ /* harmony import */ var _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DataDeclaration */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclaration.ts");
69505
+ /* harmony import */ var _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./DataDeclarationInitSourceSequenceFactory */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationInitSourceSequenceFactory.ts");
69506
+
69477
69507
 
69478
69508
 
69479
69509
 
@@ -69526,22 +69556,22 @@ class DataDeclarationGenerationContext {
69526
69556
  return;
69527
69557
  }
69528
69558
  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);
69559
+ const nodeWithSettings = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_12__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.SETTINGS);
69530
69560
  if (nodeWithSettings) {
69531
69561
  return nodeWithSettings;
69532
69562
  }
69533
- if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT && srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69563
+ if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DEFAULT && srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69534
69564
  if (objVal) {
69535
69565
  const res = lodash_mergewith__WEBPACK_IMPORTED_MODULE_0___default()(objValue, srcValue);
69536
69566
  res.value[res.value.length - 1] = objVal;
69537
69567
  return res;
69538
69568
  }
69539
- } else if (srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69569
+ } else if (srcDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69540
69570
  return srcValue;
69541
- } else if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69571
+ } else if (objDataValue.sequenceType === _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DEFAULT) {
69542
69572
  return objValue;
69543
69573
  }
69544
- const nodeDisabled = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_10__.DataDeclarationInitSourceValueSequence.DISABLED);
69574
+ const nodeDisabled = _DataDeclarationInitSourceSequenceFactory__WEBPACK_IMPORTED_MODULE_12__.DataDeclarationInitSourceSequenceFactory.getTypedValue([srcValue, srcDataValue.sequenceType], [objValue, objDataValue.sequenceType], _DataDeclaration__WEBPACK_IMPORTED_MODULE_11__.DataDeclarationInitSourceValueSequence.DISABLED);
69545
69575
  if (nodeDisabled) {
69546
69576
  return nodeDisabled;
69547
69577
  }
@@ -69566,6 +69596,15 @@ class DataDeclarationGenerationContext {
69566
69596
  }
69567
69597
  return undefined;
69568
69598
  }
69599
+ isMultipleElement(path) {
69600
+ const resolvedSchemaEntity = this.formSchemaRng.getElementByPath(path);
69601
+ const entityIsElement = (0,_common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_5__.isFormSchemaRngElement)(resolvedSchemaEntity);
69602
+ if (!entityIsElement) {
69603
+ return false;
69604
+ }
69605
+ const isMultipleElement = Boolean(resolvedSchemaEntity.multiple);
69606
+ return isMultipleElement;
69607
+ }
69569
69608
  getTypeNode(node) {
69570
69609
  if (node.anonymousType != undefined) {
69571
69610
  return node.anonymousType;
@@ -69715,6 +69754,7 @@ class DataDeclarationGenerationContext {
69715
69754
  }
69716
69755
  getSections(node, requisite, requisiteMode = RequisiteSectionMode.AsRequisiteAttribute) {
69717
69756
  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);
69757
+ const optionalBlock = node.findParentOfType(_markupGenerator_ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_10__.OptionalBlockNode);
69718
69758
  const pageName = page === null || page === void 0 ? void 0 : page.id;
69719
69759
  const pageRequiresResolution = page != undefined && (page.multiple || Iterator.from(this.getAllParentPages(page)).some(x => {
69720
69760
  var _x$multiple;
@@ -69727,7 +69767,13 @@ class DataDeclarationGenerationContext {
69727
69767
  }];
69728
69768
  }
69729
69769
  }
69730
- const sections = pageName != undefined ? [pageName] : [];
69770
+ const sections = [];
69771
+ if (optionalBlock != undefined) {
69772
+ sections.push(optionalBlock.id);
69773
+ }
69774
+ if (pageName != undefined) {
69775
+ sections.push(pageName);
69776
+ }
69731
69777
  if (requisiteMode === RequisiteSectionMode.AsRequisiteAttribute) {
69732
69778
  if (requisite) {
69733
69779
  sections.push(_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_2__.SectionNames.requisitesSection);
@@ -69797,6 +69843,8 @@ __webpack_require__.r(__webpack_exports__);
69797
69843
  /* 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
69844
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
69799
69845
  /* harmony import */ var _Common_ModelPath_Set_Set2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../Common/ModelPath/Set/Set2 */ "./Common/ModelPath/Set/Set2.ts");
69846
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
69847
+
69800
69848
 
69801
69849
 
69802
69850
 
@@ -69855,13 +69903,22 @@ class DataDeclarationGenerationTimeHelper {
69855
69903
  }
69856
69904
  getOptionalSections() {
69857
69905
  var _this$dataDeclaration, _this$dataDeclaration2;
69906
+ const rootPath = this.getDataDeclarationRootPath();
69907
+ 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 : [];
69908
+ }
69909
+ getOptionalBlocksPaths() {
69910
+ const visibilityFieldsPaths = Object.keys(this.dataDeclaration).filter(path => path.endsWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockVisibilityFieldName));
69911
+ 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());
69912
+ return optionalBlocksPaths;
69913
+ }
69914
+ getDataDeclarationRootPath() {
69858
69915
  const anyPath = Object.keys(this.dataDeclaration)[0];
69859
69916
  if (anyPath == undefined) {
69860
69917
  return (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_3__.reject)();
69861
69918
  }
69862
69919
  const absolutePath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createAbsolute)(anyPath);
69863
69920
  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 : [];
69921
+ return root !== null && root !== void 0 ? root : "";
69865
69922
  }
69866
69923
  *getAllPaths() {
69867
69924
  for (const key of (0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.iterateKeys)(this.dataDeclaration)) {
@@ -72137,6 +72194,10 @@ __webpack_require__.r(__webpack_exports__);
72137
72194
  /* harmony import */ var _ExtendedSchema_ExtendedSchemaInfoUtils__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./ExtendedSchema/ExtendedSchemaInfoUtils */ "./Generator/src/generators/ExtendedSchema/ExtendedSchemaInfoUtils.ts");
72138
72195
  /* 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
72196
  /* harmony import */ var _markupGenerator_IMarkupBuildingContext__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./markupGenerator/IMarkupBuildingContext */ "./Generator/src/generators/markupGenerator/IMarkupBuildingContext.ts");
72197
+ /* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_OptionalElementsRulesBuilder__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder.ts");
72198
+ /* harmony import */ var _ServerSideFLangNormalization_RuleBuilders_OptionalBlocksRulesBuilder__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder.ts");
72199
+
72200
+
72140
72201
 
72141
72202
 
72142
72203
 
@@ -72246,12 +72307,14 @@ function processSugar(formSugarContent, additionalContent, generationOptions) {
72246
72307
  const sugarRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_SugarRulesBuilder__WEBPACK_IMPORTED_MODULE_40__.SugarRulesBuilder(sugarRoot, formSchemaRng, controlCustomizationContext, fetchFunctions, dataDeclarationHelper, typeRegistry, useSchemaValidations);
72247
72308
  const validationRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_ValidationRulesBuilder__WEBPACK_IMPORTED_MODULE_41__.ValidationRulesBuilder(dataDeclarationHelper, formSchemaRng, formulaExprConverter, kcXmlConditions);
72248
72309
  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, {
72310
+ const optionalElementsRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalElementsRulesBuilder__WEBPACK_IMPORTED_MODULE_52__.OptionalElementsRulesBuilder(formSchemaRng, dataDeclarationHelper);
72311
+ const optionalBlocksRulesBuilder = new _ServerSideFLangNormalization_RuleBuilders_OptionalBlocksRulesBuilder__WEBPACK_IMPORTED_MODULE_53__.OptionalBlocksRulesBuilder(dataDeclarationHelper);
72312
+ const normalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_NormalizationRulesGenerator__WEBPACK_IMPORTED_MODULE_26__.NormalizationRulesGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, false);
72313
+ const formulaOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_FormulaOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_31__.FormulaOnlyNormalizationRuleGenerator(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter, validationRulesBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, {
72251
72314
  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
72315
  });
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);
72316
+ const formulaAndInitOnlyNormalizationRulesGenerator = new _ServerSideFLangNormalization_Normalizers_FormulaAndInitOnlyNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_42__.FormulaAndInitOnlyNormalizationRuleGenerator(sugarRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalSectionRuleBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder);
72317
+ const autoValueForValueByDefaultNormalizationRuleGenerator = new _ServerSideFLangNormalization_Normalizers_AutoValueForValueByDefaultNormalizationRuleGenerator__WEBPACK_IMPORTED_MODULE_46__.AutoValueForValueByDefaultNormalizationRuleGenerator(optionalSectionRuleBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, dataDeclarationHelper);
72255
72318
  const markupGenerator = new _markupGenerator_MarkupGenerator__WEBPACK_IMPORTED_MODULE_13__.MarkupGenerator(markupBuilderContext);
72256
72319
  markupGenerator.generate(sugarRoot, builder);
72257
72320
  builder.addResource("settings.js", (0,_markupGenerator_getSettings__WEBPACK_IMPORTED_MODULE_10__.getSettings)(sugarRoot, additionalContent.gfv, additionalSettings, additionalContent.formJsonSettings));
@@ -74340,6 +74403,29 @@ class SetStatement extends FLangStatement {
74340
74403
 
74341
74404
  /***/ }),
74342
74405
 
74406
+ /***/ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts":
74407
+ /*!***************************************************************************************!*\
74408
+ !*** ./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts ***!
74409
+ \***************************************************************************************/
74410
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
74411
+
74412
+ "use strict";
74413
+ __webpack_require__.r(__webpack_exports__);
74414
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
74415
+ /* harmony export */ FalthyFlangTechnicalFieldExpression: () => (/* binding */ FalthyFlangTechnicalFieldExpression),
74416
+ /* harmony export */ FalthyOptionalElementExistenceExpression: () => (/* binding */ FalthyOptionalElementExistenceExpression),
74417
+ /* harmony export */ TruthyFlangTechnicalFieldExpression: () => (/* binding */ TruthyFlangTechnicalFieldExpression)
74418
+ /* harmony export */ });
74419
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
74420
+ /* harmony import */ var _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
74421
+
74422
+
74423
+ const TruthyFlangTechnicalFieldExpression = new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_0__.TruthyTechnicalFieldValue);
74424
+ const FalthyFlangTechnicalFieldExpression = new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NullLiteralExpression();
74425
+ const FalthyOptionalElementExistenceExpression = new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression("");
74426
+
74427
+ /***/ }),
74428
+
74343
74429
  /***/ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts":
74344
74430
  /*!***********************************************************************************!*\
74345
74431
  !*** ./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts ***!
@@ -74359,6 +74445,7 @@ __webpack_require__.r(__webpack_exports__);
74359
74445
  /* harmony export */ combineByAndFlangExpr: () => (/* binding */ combineByAndFlangExpr),
74360
74446
  /* harmony export */ combineByOrFlangExpr: () => (/* binding */ combineByOrFlangExpr),
74361
74447
  /* harmony export */ combineRulesWithOptionalSectionChecking: () => (/* binding */ combineRulesWithOptionalSectionChecking),
74448
+ /* harmony export */ composeFlangExpressionsByOr: () => (/* binding */ composeFlangExpressionsByOr),
74362
74449
  /* harmony export */ decimalWrapper: () => (/* binding */ decimalWrapper),
74363
74450
  /* harmony export */ dictFieldNameSuffix: () => (/* binding */ dictFieldNameSuffix),
74364
74451
  /* harmony export */ ensureCorrectFieldNameByExpressionType: () => (/* binding */ ensureCorrectFieldNameByExpressionType),
@@ -74367,6 +74454,7 @@ __webpack_require__.r(__webpack_exports__);
74367
74454
  /* harmony export */ getAllExpressionChildren: () => (/* binding */ getAllExpressionChildren),
74368
74455
  /* harmony export */ getSelectorIdFromRule: () => (/* binding */ getSelectorIdFromRule),
74369
74456
  /* harmony export */ hashSetFieldNameSuffix: () => (/* binding */ hashSetFieldNameSuffix),
74457
+ /* harmony export */ isSetStatement: () => (/* binding */ isSetStatement),
74370
74458
  /* harmony export */ makeGetOld: () => (/* binding */ makeGetOld),
74371
74459
  /* harmony export */ makeNoDeps: () => (/* binding */ makeNoDeps),
74372
74460
  /* harmony export */ makeStringValueReference: () => (/* binding */ makeStringValueReference),
@@ -74407,7 +74495,7 @@ function createValueRuleWithDisableValueAutoInitCheck(path, originalExpression)
74407
74495
  }
74408
74496
  function wrapWithDisableValueAutoInitFlagCheckIfRequired(formSchemaRng, x) {
74409
74497
  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];
74498
+ 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
74499
  }
74412
74500
  function wrapWithArgumentsCondition(expression) {
74413
74501
  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 +74561,9 @@ const mergeRules = function (items) {
74473
74561
  }
74474
74562
  return rulesDictionary.values();
74475
74563
  };
74476
- function combineRulesWithOptionalSectionChecking(allRules, optionalSectionRulesBuilder) {
74564
+ function combineRulesWithOptionalSectionChecking(allRules, optionalSectionRulesBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder) {
74477
74565
  const allUniqueRules = mergeRules(allRules);
74478
- const allUniqueRulesWithOptionalChecks = Iterator.from(optionalSectionRulesBuilder.wrapRulesWithOptionalPageCheck(allUniqueRules)).map(x => x.convertToString()).reduce((x, y) => x + (x ? "\n" : "") + y, "");
74566
+ 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
74567
  return allUniqueRulesWithOptionalChecks;
74480
74568
  }
74481
74569
  function tryExtractValueReferenceAsStringFromDecimal(expression) {
@@ -74530,6 +74618,10 @@ function ensureOperandsOfTypeOrNull(type, ...operands) {
74530
74618
  }
74531
74619
  }
74532
74620
  }
74621
+ function composeFlangExpressionsByOr(expressions) {
74622
+ var _expressions$reduce;
74623
+ 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");
74624
+ }
74533
74625
  function combineByOrFlangExpr(acc, current) {
74534
74626
  return acc != undefined ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.OrBinaryExpression(acc, current) : current;
74535
74627
  }
@@ -74587,6 +74679,9 @@ function ensureCorrectFieldNameByExpressionType(statement) {
74587
74679
  }
74588
74680
  }
74589
74681
  }
74682
+ function isSetStatement(statement) {
74683
+ return statement instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_6__.SetStatement;
74684
+ }
74590
74685
 
74591
74686
  /***/ }),
74592
74687
 
@@ -75496,7 +75591,6 @@ __webpack_require__.r(__webpack_exports__);
75496
75591
 
75497
75592
 
75498
75593
 
75499
-
75500
75594
  /**
75501
75595
  * Нормализатор, соответсвующий дефолтному за исключением метода нормализации значений,
75502
75596
  * отсутсвующих в исходном иннере:
@@ -75504,7 +75598,7 @@ __webpack_require__.r(__webpack_exports__);
75504
75598
  * а при его отсутсвии дефолтным значением"
75505
75599
  */
75506
75600
  class AutoValueForValueByDefaultNormalizationRuleGenerator {
75507
- constructor(optionalSectionRulesBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, dataDeclarationHelper) {
75601
+ constructor(optionalSectionRulesBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlockRulesBuilder, dataDeclarationHelper) {
75508
75602
  this.formulaRulesBuilder = void 0;
75509
75603
  this.dataDeclarationHelper = void 0;
75510
75604
  this.initializationRulesBuilder = void 0;
@@ -75512,6 +75606,8 @@ class AutoValueForValueByDefaultNormalizationRuleGenerator {
75512
75606
  this.lazyLoadingRulesBuilder = void 0;
75513
75607
  this.validationRulesBuilder = void 0;
75514
75608
  this.optionalSectionRulesBuilder = void 0;
75609
+ this.optionalElementsRulesBuilder = void 0;
75610
+ this.optionalBlockRulesBuilder = void 0;
75515
75611
  this.formSchemaRng = void 0;
75516
75612
  this.formulaRulesBuilder = formulaRulesBuilder;
75517
75613
  this.initializationRulesBuilder = initializationRulesBuilder;
@@ -75519,6 +75615,8 @@ class AutoValueForValueByDefaultNormalizationRuleGenerator {
75519
75615
  this.lazyLoadingRulesBuilder = lazyLoadingRulesBuilder;
75520
75616
  this.validationRulesBuilder = validationRulesBuilder;
75521
75617
  this.optionalSectionRulesBuilder = optionalSectionRulesBuilder;
75618
+ this.optionalElementsRulesBuilder = optionalElementsRulesBuilder;
75619
+ this.optionalBlockRulesBuilder = optionalBlockRulesBuilder;
75522
75620
  this.formSchemaRng = formSchemaRng;
75523
75621
  this.dataDeclarationHelper = dataDeclarationHelper;
75524
75622
  }
@@ -75526,6 +75624,8 @@ class AutoValueForValueByDefaultNormalizationRuleGenerator {
75526
75624
  const initializeRules = this.initializationRulesBuilder.buildRules();
75527
75625
  const lazyLoadingRules = this.lazyLoadingRulesBuilder.buildRules();
75528
75626
  const optionalSectionRules = this.optionalSectionRulesBuilder.buildRules();
75627
+ const optionalElementsRules = this.optionalElementsRulesBuilder.buildRules();
75628
+ const optionalBlocksRules = this.optionalBlockRulesBuilder.buildRules();
75529
75629
  const sugarValidationRules = this.validationRulesBuilder.buildRules();
75530
75630
  const dataDeclarationRules = this.sugarRulesBuilder.buildRules();
75531
75631
  const formulaFLangRules = [...this.formulaRulesBuilder.buildRules()];
@@ -75538,11 +75638,11 @@ class AutoValueForValueByDefaultNormalizationRuleGenerator {
75538
75638
  const autoFlagRefCurrentIteration = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ValueReferenceExpression(autoValueRule.left.modePath.toCurrentIteration(), "autoFlag");
75539
75639
  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
75640
  };
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]);
75641
+ 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
75642
 
75543
75643
  // Порядок важен, т.к. потом делаем 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);
75644
+ 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));
75645
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRulesBuilder, this.optionalElementsRulesBuilder, this.optionalBlockRulesBuilder);
75546
75646
  }
75547
75647
  }
75548
75648
 
@@ -75565,22 +75665,25 @@ __webpack_require__.r(__webpack_exports__);
75565
75665
 
75566
75666
 
75567
75667
 
75568
-
75569
75668
  /**
75570
75669
  * Нормализатор для сценария пересчёта части полей (пример: Распил Прибыли), когда необходимо поведение:
75571
75670
  * "если в исходных данных отсутствует value, то необходимо проинициализировать
75572
75671
  * его значением из autoValue, вместо дефолта (как это работает в базовом нормализаторе)"
75573
75672
  */
75574
75673
  class FormulaAndInitOnlyNormalizationRuleGenerator {
75575
- constructor(sugarRulesBuilder, formulaRulesBuilder, optionalSectionRuleBuilder, formSchemaRng) {
75674
+ constructor(sugarRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalSectionRuleBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder) {
75576
75675
  this.optionalSectionRuleBuilder = void 0;
75577
75676
  this.formulaRulesBuilder = void 0;
75677
+ this.optionalElementsRulesBuilder = void 0;
75678
+ this.optionalBlocksRulesBuilder = void 0;
75578
75679
  this.formSchemaRng = void 0;
75579
75680
  this.sugarRulesBuilder = void 0;
75580
75681
  this.formSchemaRng = formSchemaRng;
75581
75682
  this.sugarRulesBuilder = sugarRulesBuilder;
75582
75683
  this.formulaRulesBuilder = formulaRulesBuilder;
75583
75684
  this.optionalSectionRuleBuilder = optionalSectionRuleBuilder;
75685
+ this.optionalElementsRulesBuilder = optionalElementsRulesBuilder;
75686
+ this.optionalBlocksRulesBuilder = optionalBlocksRulesBuilder;
75584
75687
  }
75585
75688
  generateRules() {
75586
75689
  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 +75694,13 @@ class FormulaAndInitOnlyNormalizationRuleGenerator {
75591
75694
  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
75695
  };
75593
75696
  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]);
75697
+ 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
75698
  const sugarRules = this.sugarRulesBuilder.buildRules();
75596
75699
  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);
75700
+ const optionalElementsRules = this.optionalElementsRulesBuilder.buildRules();
75701
+ const optionalBlocksRules = this.optionalBlocksRulesBuilder.buildRules();
75702
+ const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(updatedFormulaRules, sugarRules, optionalSectionRules, optionalElementsRules, optionalBlocksRules).flatMap(ignoredValueSetRuleMapper);
75703
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_2__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRuleBuilder, this.optionalElementsRulesBuilder, this.optionalBlocksRulesBuilder);
75599
75704
  }
75600
75705
  }
75601
75706
 
@@ -75631,13 +75736,15 @@ __webpack_require__.r(__webpack_exports__);
75631
75736
  * 2) переводит autoFlag в true
75632
75737
  */
75633
75738
  class FormulaOnlyNormalizationRuleGenerator {
75634
- constructor(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter, validationRulesBuilder, options) {
75739
+ constructor(dataDeclarationHelper, formSchemaRng, formulas, optionalSectionRuleBuilder, formulaExprConverter, validationRulesBuilder, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, options) {
75635
75740
  this.dataDeclarationHelper = void 0;
75636
75741
  this.formSchemaRng = void 0;
75637
75742
  this.formulas = void 0;
75638
75743
  this.options = void 0;
75639
75744
  this.formulaExprConverter = void 0;
75640
75745
  this.optionalSectionRuleBuilder = void 0;
75746
+ this.optionalElementsRulesBuilder = void 0;
75747
+ this.optionalBlocksRulesBuilder = void 0;
75641
75748
  this.validationRulesBuilder = void 0;
75642
75749
  this.options = options;
75643
75750
  this.optionalSectionRuleBuilder = optionalSectionRuleBuilder;
@@ -75646,12 +75753,14 @@ class FormulaOnlyNormalizationRuleGenerator {
75646
75753
  this.formulas = formulas;
75647
75754
  this.formulaExprConverter = formulaExprConverter;
75648
75755
  this.validationRulesBuilder = validationRulesBuilder;
75756
+ this.optionalElementsRulesBuilder = optionalElementsRulesBuilder;
75757
+ this.optionalBlocksRulesBuilder = optionalBlocksRulesBuilder;
75649
75758
  }
75650
75759
  generateRules() {
75651
- const calculationRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(this.buildFormulaFLangRules(), this.optionalSectionRuleBuilder.buildRules());
75760
+ const calculationRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(this.buildFormulaFLangRules(), this.optionalSectionRuleBuilder.buildRules(), this.optionalElementsRulesBuilder.buildRules(), this.optionalBlocksRulesBuilder.buildRules());
75652
75761
  const validationRules = this.validationRulesBuilder.buildRules();
75653
75762
  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);
75763
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_5__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRuleBuilder, this.optionalElementsRulesBuilder, this.optionalBlocksRulesBuilder);
75655
75764
  }
75656
75765
  *buildFormulaFLangRules() {
75657
75766
  for (const formula of (_this$formulas = this.formulas) !== null && _this$formulas !== void 0 ? _this$formulas : []) {
@@ -75708,12 +75817,11 @@ __webpack_require__.r(__webpack_exports__);
75708
75817
 
75709
75818
 
75710
75819
 
75711
-
75712
75820
  /**
75713
75821
  * Базовый нормализатор для основного сценария серверной нормализации
75714
75822
  */
75715
75823
  class NormalizationRulesGenerator {
75716
- constructor(optionalSectionRulesBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, calculateServerOnlyPaths) {
75824
+ constructor(optionalSectionRulesBuilder, validationRulesBuilder, lazyLoadingRulesBuilder, sugarRulesBuilder, initializationRulesBuilder, formulaRulesBuilder, formSchemaRng, optionalElementsRulesBuilder, optionalBlocksRulesBuilder, calculateServerOnlyPaths) {
75717
75825
  this.formulaRulesBuilder = void 0;
75718
75826
  this.calculateServerOnlyPaths = void 0;
75719
75827
  this.initializationRulesBuilder = void 0;
@@ -75721,6 +75829,8 @@ class NormalizationRulesGenerator {
75721
75829
  this.lazyLoadingRulesBuilder = void 0;
75722
75830
  this.validationRulesBuilder = void 0;
75723
75831
  this.optionalSectionRulesBuilder = void 0;
75832
+ this.optionalElementsRulesBuilder = void 0;
75833
+ this.optionalBlocksRulesBuilder = void 0;
75724
75834
  this.formSchemaRng = void 0;
75725
75835
  this.calculateServerOnlyPaths = calculateServerOnlyPaths;
75726
75836
  this.formulaRulesBuilder = formulaRulesBuilder;
@@ -75729,6 +75839,8 @@ class NormalizationRulesGenerator {
75729
75839
  this.lazyLoadingRulesBuilder = lazyLoadingRulesBuilder;
75730
75840
  this.validationRulesBuilder = validationRulesBuilder;
75731
75841
  this.optionalSectionRulesBuilder = optionalSectionRulesBuilder;
75842
+ this.optionalElementsRulesBuilder = optionalElementsRulesBuilder;
75843
+ this.optionalBlocksRulesBuilder = optionalBlocksRulesBuilder;
75732
75844
  this.formSchemaRng = formSchemaRng;
75733
75845
  }
75734
75846
  generateRules() {
@@ -75738,14 +75850,16 @@ class NormalizationRulesGenerator {
75738
75850
  const optionalSectionRules = this.optionalSectionRulesBuilder.buildRules();
75739
75851
  const sugarValidationRules = this.validationRulesBuilder.buildRules();
75740
75852
  const dataDeclarationRules = this.sugarRulesBuilder.buildRules();
75853
+ const optionalElementsRules = this.optionalElementsRulesBuilder.buildRules();
75854
+ const optionalBlocksRules = this.optionalBlocksRulesBuilder.buildRules();
75741
75855
 
75742
75856
  // Порядок важен, т.к. потом делаем distinctBy.
75743
- const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(initializeRules, lazyLoadingRules, formulaFLangRules, optionalSectionRules, dataDeclarationRules, sugarValidationRules).flatMap(rule => {
75857
+ const allRules = _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.IterUtils.concat(initializeRules, lazyLoadingRules, formulaFLangRules, optionalSectionRules, optionalElementsRules, optionalBlocksRules, dataDeclarationRules, sugarValidationRules).flatMap(rule => {
75744
75858
  (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.ensureCorrectFieldNameByExpressionType)(rule);
75745
75859
  return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.wrapWithDisableValueAutoInitFlagCheckIfRequired)(this.formSchemaRng, rule);
75746
75860
  }).toArray();
75747
75861
  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);
75862
+ const content = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_1__.combineRulesWithOptionalSectionChecking)(allRules, this.optionalSectionRulesBuilder, this.optionalElementsRulesBuilder, this.optionalBlocksRulesBuilder);
75749
75863
  return {
75750
75864
  content: content,
75751
75865
  serverOnlyPaths: this.calculateServerOnlyPaths ? getDictionaryTargets() : []
@@ -75966,6 +76080,435 @@ class LazyLoadingRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_
75966
76080
 
75967
76081
  /***/ }),
75968
76082
 
76083
+ /***/ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder.ts":
76084
+ /*!**********************************************************************************************************!*\
76085
+ !*** ./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalBlocksRulesBuilder.ts ***!
76086
+ \**********************************************************************************************************/
76087
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
76088
+
76089
+ "use strict";
76090
+ __webpack_require__.r(__webpack_exports__);
76091
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
76092
+ /* harmony export */ OptionalBlocksRulesBuilder: () => (/* binding */ OptionalBlocksRulesBuilder)
76093
+ /* harmony export */ });
76094
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
76095
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
76096
+ /* harmony import */ var _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
76097
+ /* harmony import */ var _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../FLang/FlangConstants */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts");
76098
+ /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
76099
+ /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
76100
+
76101
+
76102
+
76103
+
76104
+
76105
+
76106
+ class OptionalBlocksRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_5__.BaseRuleBuilder {
76107
+ constructor(dataDeclarationHelper) {
76108
+ super();
76109
+ this.dataDeclarationHelper = void 0;
76110
+ this.dataDeclarationHelper = dataDeclarationHelper;
76111
+ }
76112
+ buildRulesInternal() {
76113
+ const optionalBlocksPaths = this.dataDeclarationHelper.getOptionalBlocksPaths();
76114
+ const rules = this.buildRulesForOptionalBlocks(optionalBlocksPaths);
76115
+ return rules;
76116
+ }
76117
+ buildRulesForOptionalBlocks(blocksPaths) {
76118
+ const rules = blocksPaths.map(path => {
76119
+ const visibilityRule = this.buildOptionalBlockVisibilityRule(path);
76120
+ return visibilityRule;
76121
+ });
76122
+ return rules;
76123
+ }
76124
+ buildOptionalBlockVisibilityRule(blockPath) {
76125
+ const visibilityValueRef = this.createBlockVisibilityValueRef(blockPath);
76126
+ const isBlockVisibleExpression = this.createIsBlockVisibleExpression(blockPath);
76127
+ 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));
76128
+ }
76129
+ createBlockVisibilityValueRef(blockPath) {
76130
+ const visibilityValuePath = blockPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalBlockVisibilityFieldName);
76131
+ const visibilityValueRef = this.createValueReferenceExpression(visibilityValuePath);
76132
+ return visibilityValueRef;
76133
+ }
76134
+ createBlockVisibilityValueRefForRightPart(blockPath) {
76135
+ const currentIterationBlockPath = blockPath.toCurrentIteration();
76136
+ const visibilityValueRef = this.createBlockVisibilityValueRef(currentIterationBlockPath);
76137
+ return visibilityValueRef;
76138
+ }
76139
+ createIsBlockVisibleExpression(blockPath) {
76140
+ const currentIterationBlockPath = blockPath.toCurrentIteration();
76141
+ const existenceValueRef = this.createBlockExistenceValueRef(currentIterationBlockPath);
76142
+ const notNullExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NotEqExpression(existenceValueRef, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.NullLiteralExpression());
76143
+ return notNullExpression;
76144
+ }
76145
+ createValueReferenceExpression(valuePath) {
76146
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ValueReferenceExpression(valuePath, "value");
76147
+ }
76148
+ createBlockExistenceValueRef(blockPath) {
76149
+ const existenceValuePath = blockPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalElementsExistenceFieldName);
76150
+ const existenceValueRef = this.createValueReferenceExpression(existenceValuePath);
76151
+ return existenceValueRef;
76152
+ }
76153
+ patchOptionalBlocksExistenceRules(rules) {
76154
+ const optionalBlocksPaths = this.dataDeclarationHelper.getOptionalBlocksPaths();
76155
+ const optionalBlocksExistenceFieldsPaths = optionalBlocksPaths.map(path => path.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createModelPath)(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalElementsExistenceFieldName, false)));
76156
+ const wrappedRules = Iterator.from(rules).map(rule => this.checkIsRuleShouldBePatched(rule, optionalBlocksExistenceFieldsPaths) ? this.patchOptionalBlocksExistenceRule(rule) : rule);
76157
+ return wrappedRules;
76158
+ }
76159
+ checkIsRuleShouldBePatched(rule, existenceFieldsPaths) {
76160
+ const isSetStatement = rule instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement;
76161
+ if (!isSetStatement) {
76162
+ return false;
76163
+ }
76164
+ const ruleExpression = rule.right;
76165
+ const isConditionalExpression = ruleExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.ConditionalExpression;
76166
+ if (!isConditionalExpression) {
76167
+ return false;
76168
+ }
76169
+ const modelPath = rule.left.modePath;
76170
+ const isOptionalBlockExistenceFieldRule = existenceFieldsPaths.some(path => path.isEquals(modelPath));
76171
+ return isOptionalBlockExistenceFieldRule;
76172
+ }
76173
+ patchOptionalBlocksExistenceRule(rule) {
76174
+ const ruleExpression = rule.right;
76175
+ const existenceFieldPath = rule.left.modePath;
76176
+ const optionalBlockPath = existenceFieldPath.getParentPath();
76177
+ const visibilityFieldValueRef = this.createBlockVisibilityValueRefForRightPart(optionalBlockPath);
76178
+ 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());
76179
+ 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));
76180
+ }
76181
+ wrapRulesInsideOptionalBlocks(rules) {
76182
+ const sortedOptionalBlocksPaths = [...this.dataDeclarationHelper.getOptionalBlocksPaths()].sort((cur, next) => {
76183
+ const curLength = cur.getPathPartsAsArray().length;
76184
+ const nextLength = next.getPathPartsAsArray().length;
76185
+ return nextLength - curLength;
76186
+ });
76187
+ const wrappedRules = Iterator.from(rules).map(rule => {
76188
+ const isValueSetStatement = this.checkIsValueSetStatement(rule);
76189
+ if (isValueSetStatement) {
76190
+ const modelPath = rule.left.modePath;
76191
+ const parentOptionalBlockPath = this.findParentOptionalBlockPath(modelPath, sortedOptionalBlocksPaths);
76192
+ if (parentOptionalBlockPath) {
76193
+ return this.wrapSetStatementsInsideOptionalBlocks(rule, parentOptionalBlockPath);
76194
+ }
76195
+ }
76196
+ return rule;
76197
+ });
76198
+ return wrappedRules;
76199
+ }
76200
+ checkIsValueSetStatement(rule) {
76201
+ const isSetStatement = rule instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_2__.SetStatement;
76202
+ if (!isSetStatement) {
76203
+ return false;
76204
+ }
76205
+ const modelPath = rule.left.modePath;
76206
+ const modelStringPath = modelPath.toString();
76207
+ const notReserved = !_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.reservedForTechnicalUsageFields.some(field => modelStringPath.endsWith(field));
76208
+ const isValueField = rule.left.valueName === "value";
76209
+ return notReserved && isValueField;
76210
+ }
76211
+ findParentOptionalBlockPath(modelPath, sortedOptionalBlocksPaths) {
76212
+ const parentOptionalBlockPath = sortedOptionalBlocksPaths.find(path => modelPath.startsWith(path));
76213
+ return parentOptionalBlockPath;
76214
+ }
76215
+ wrapSetStatementsInsideOptionalBlocks(rule, parentOptionalBlockPath) {
76216
+ const visibilityFieldValueRef = this.createBlockVisibilityValueRefForRightPart(parentOptionalBlockPath);
76217
+ 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));
76218
+ }
76219
+ }
76220
+
76221
+ /***/ }),
76222
+
76223
+ /***/ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder.ts":
76224
+ /*!************************************************************************************************************!*\
76225
+ !*** ./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalElementsRulesBuilder.ts ***!
76226
+ \************************************************************************************************************/
76227
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
76228
+
76229
+ "use strict";
76230
+ __webpack_require__.r(__webpack_exports__);
76231
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
76232
+ /* harmony export */ OptionalElementsRulesBuilder: () => (/* binding */ OptionalElementsRulesBuilder)
76233
+ /* harmony export */ });
76234
+ /* harmony import */ var _Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPathHelper */ "./Common/ModelPath/ModelPathHelper.ts");
76235
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
76236
+ /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
76237
+ /* harmony import */ var _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/SchemaRng/FormSchemaRng */ "./Generator/src/common/SchemaRng/FormSchemaRng.ts");
76238
+ /* harmony import */ var _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
76239
+ /* harmony import */ var _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../FLang/FlangConstants */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts");
76240
+ /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
76241
+ /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
76242
+
76243
+
76244
+
76245
+
76246
+
76247
+
76248
+
76249
+
76250
+ class OptionalElementsRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_7__.BaseRuleBuilder {
76251
+ constructor(formSchemaRng, dataDeclarationHelper) {
76252
+ super();
76253
+ this.formSchemaRng = void 0;
76254
+ this.dataDeclarationHelper = void 0;
76255
+ this.optionalBlocksPaths = void 0;
76256
+ this.rules = [];
76257
+ this.formSchemaRng = formSchemaRng;
76258
+ this.dataDeclarationHelper = dataDeclarationHelper;
76259
+ this.initOptionalBlocksPaths();
76260
+ }
76261
+ initOptionalBlocksPaths() {
76262
+ const bindingPaths = this.dataDeclarationHelper.getOptionalBlocksPaths().map(path => path.toString());
76263
+ this.optionalBlocksPaths = new Set(bindingPaths);
76264
+ }
76265
+ buildRulesInternal() {
76266
+ const primaryElements = this.selectPrimaryElements();
76267
+ primaryElements.forEach(element => {
76268
+ this.buildRulesForElement(element);
76269
+ });
76270
+ return this.rules;
76271
+ }
76272
+ selectPrimaryElements() {
76273
+ const optionalBlocksPaths = this.dataDeclarationHelper.getOptionalBlocksPaths();
76274
+ 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);
76275
+ return primaryElements;
76276
+ }
76277
+ buildRulesForElement(element) {
76278
+ const shouldBuildRule = this.checkShouldBuildExistenceRule(element);
76279
+ if (shouldBuildRule) {
76280
+ const rule = this.buildOptionalElementExistenceRule(element);
76281
+ this.addRule(rule);
76282
+ }
76283
+ const hasChildren = this.checkElementHasChildren(element);
76284
+ if (hasChildren) {
76285
+ this.buildRulesForChildren(element);
76286
+ }
76287
+ }
76288
+ buildRulesForChildren(element) {
76289
+ const children = element.getChildrenArray();
76290
+ children.forEach(child => this.buildRulesForElement(child));
76291
+ }
76292
+ addRule(rule) {
76293
+ this.rules.push(rule);
76294
+ }
76295
+ buildOptionalElementExistenceRule(element) {
76296
+ const existenceValueRef = this.createElementExistenceValueRefForLeftPart(element);
76297
+ const isElementExistsExpression = this.createIsElementExistsExpression(element);
76298
+ const rule = this.buildExistenceRuleSetStatement(existenceValueRef, isElementExistsExpression);
76299
+ return rule;
76300
+ }
76301
+ checkShouldBuildExistenceRule(element) {
76302
+ const single = !element.multiple;
76303
+ const optional = element.isOptional();
76304
+ const contentful = this.checkElementHasContent(element);
76305
+ const leaksToFuf = this.checkElementLeaksToFuf(element);
76306
+ const shouldBeProcessed = single && optional && contentful && leaksToFuf;
76307
+ return shouldBeProcessed;
76308
+ }
76309
+ checkShouldBuildExistenceExpression(element) {
76310
+ const contentful = this.checkElementHasContent(element);
76311
+ const shouldBeProcessed = contentful;
76312
+ return shouldBeProcessed;
76313
+ }
76314
+ checkElementHasContent(element) {
76315
+ const elementHasAttributes = this.checkElementHasAttributes(element);
76316
+ const elementHasChildren = this.checkElementHasChildren(element);
76317
+ const elementHasInnerText = this.checkElementHasInnerText(element);
76318
+ const elementHasContent = elementHasAttributes || elementHasChildren || elementHasInnerText;
76319
+ return elementHasContent;
76320
+ }
76321
+ checkElementHasAttributes(element) {
76322
+ return element.attributes.size > 0;
76323
+ }
76324
+ checkElementHasChildren(element) {
76325
+ return element.children.size > 0;
76326
+ }
76327
+ checkElementHasInnerText(element) {
76328
+ return element.hasInnerText;
76329
+ }
76330
+ checkElementLeaksToFuf(element) {
76331
+ return !element.isEditorOnly();
76332
+ }
76333
+ createIsElementExistsExpression(element) {
76334
+ const hasInnerText = this.checkElementHasInnerText(element);
76335
+ if (hasInnerText) {
76336
+ return this.createElementWithInnerTextExistenceExpression(element);
76337
+ }
76338
+ return this.createElementWithAttributesAndChildrenExistenceExpression(element);
76339
+ }
76340
+ createElementWithInnerTextExistenceExpression(element) {
76341
+ const elementPath = this.formSchemaRng.getPath(element).toCurrentIteration();
76342
+ const valueRef = this.createValueReferenceExpression(elementPath);
76343
+ 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());
76344
+ 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(""));
76345
+ const isElementExistsExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.AndBinaryExpression(valueNotNullExpression, valueNotEmptyExpression);
76346
+ return isElementExistsExpression;
76347
+ }
76348
+ createElementWithAttributesAndChildrenExistenceExpression(element) {
76349
+ const attributes = element.getAttributesArray();
76350
+ const children = element.getChildrenArray().filter(el => this.checkShouldBuildExistenceExpression(el));
76351
+ const isElementHasAttributesAndChildren = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.arrayIsNotEmpty)(attributes) && (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.arrayIsNotEmpty)(children);
76352
+ if (isElementHasAttributesAndChildren) {
76353
+ const isSomeAttributeExistsExpression = this.createIsSomeAttributeExistsExpression(attributes);
76354
+ const isSomeChildrenExistsExpression = this.createIsSomeChildrenExistsExpression(children);
76355
+ const isElementExistsExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.OrBinaryExpression(isSomeAttributeExistsExpression, isSomeChildrenExistsExpression);
76356
+ return isElementExistsExpression;
76357
+ }
76358
+ const isElementHasOnlyAttributes = (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.arrayIsNotEmpty)(attributes);
76359
+ if (isElementHasOnlyAttributes) {
76360
+ const isSomeAttributeExistsExpression = this.createIsSomeAttributeExistsExpression(attributes);
76361
+ return isSomeAttributeExistsExpression;
76362
+ }
76363
+ (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayIsNotEmpty)(children, "Element must have children to build children existence expression");
76364
+ const isSomeChildrenExistsExpression = this.createIsSomeChildrenExistsExpression(children);
76365
+ return isSomeChildrenExistsExpression;
76366
+ }
76367
+ buildExistenceRuleSetStatement(existenceValueRef, existenceExpression) {
76368
+ 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()));
76369
+ }
76370
+ createIsSomeAttributeExistsExpression(attributes) {
76371
+ if ((0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.arrayHasLength)(attributes, 1)) {
76372
+ return this.createIsAttributeExistsExpression(attributes[0]);
76373
+ }
76374
+ const attributesNotNullExpressions = attributes.map(attr => this.createIsAttributeExistsExpression(attr));
76375
+ (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayLengthGreaterThenOrEqual)(attributesNotNullExpressions, 2);
76376
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.composeFlangExpressionsByOr)(attributesNotNullExpressions);
76377
+ }
76378
+ createIsAttributeExistsExpression(attribute) {
76379
+ const attributePath = this.formSchemaRng.getPath(attribute).toCurrentIteration();
76380
+ const attributeValueRef = this.createValueReferenceExpression(attributePath);
76381
+ 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());
76382
+ 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(""));
76383
+ const isAttributeExistsExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.AndBinaryExpression(attributeNotNullExpression, attributeNotEmptyExpression);
76384
+ return isAttributeExistsExpression;
76385
+ }
76386
+ createIsSomeChildrenExistsExpression(children) {
76387
+ (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayIsNotEmpty)(children, "Input array of FormSchemaRngElements must be not empty");
76388
+ const {
76389
+ optional,
76390
+ required,
76391
+ multiple
76392
+ } = this.splitElementsByRole(children);
76393
+ const optionalChildrenExistenceExpressions = this.createOptionalChildrenExistenceExpressions(optional);
76394
+ const requiredChildrenExistenceExpressions = this.createRequiredChildrenExistenceExpressions(required);
76395
+ const multipleChildrenExistenceExpressions = this.createMultipleChildrenExistenceExpressions(multiple);
76396
+ const childrenExistenceExpressions = [...requiredChildrenExistenceExpressions, ...optionalChildrenExistenceExpressions, ...multipleChildrenExistenceExpressions];
76397
+ if (childrenExistenceExpressions.length === 1 && childrenExistenceExpressions[0]) {
76398
+ return childrenExistenceExpressions[0];
76399
+ }
76400
+ (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__.ensureArrayIsNotEmpty)(childrenExistenceExpressions, "Output array of existence expressions must be not empty");
76401
+ return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.composeFlangExpressionsByOr)(childrenExistenceExpressions);
76402
+ }
76403
+ splitElementsByRole(elements) {
76404
+ const elementsByRole = {
76405
+ optional: [],
76406
+ required: [],
76407
+ multiple: []
76408
+ };
76409
+ return elements.reduce((acc, cur) => {
76410
+ if (cur.multiple) {
76411
+ acc.multiple.push(cur);
76412
+ } else if (cur.isOptional()) {
76413
+ acc.optional.push(cur);
76414
+ } else {
76415
+ acc.required.push(cur);
76416
+ }
76417
+ return acc;
76418
+ }, elementsByRole);
76419
+ }
76420
+ createOptionalChildrenExistenceExpressions(elements) {
76421
+ return elements.map(element => this.createIsOptionalChildExistsExpression(element));
76422
+ }
76423
+ createIsOptionalChildExistsExpression(element) {
76424
+ const existenceValueRef = this.createElementExistenceValueRefForRightPart(element);
76425
+ 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());
76426
+ return notNullExpression;
76427
+ }
76428
+ createRequiredChildrenExistenceExpressions(elements) {
76429
+ return elements.map(element => this.createIsElementExistsExpression(element));
76430
+ }
76431
+ createMultipleChildrenExistenceExpressions(elements) {
76432
+ return elements.map(element => this.createIsMultipleChildExistsExpression(element));
76433
+ }
76434
+ createIsMultipleChildExistsExpression(element) {
76435
+ const childrenPath = this.formSchemaRng.getPath(element).trimLastStarIfLastToken();
76436
+ 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);
76437
+ 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));
76438
+ }
76439
+ createElementExistenceValueRefForLeftPart(element) {
76440
+ const elementPath = this.formSchemaRng.getPath(element).toEachIteration();
76441
+ const existenceValueRef = this.createExistenceValueRef(elementPath);
76442
+ return existenceValueRef;
76443
+ }
76444
+ createElementExistenceValueRefForRightPart(element) {
76445
+ const elementPath = this.formSchemaRng.getPath(element).toCurrentIteration();
76446
+ const existenceValueRef = this.createExistenceValueRef(elementPath);
76447
+ return existenceValueRef;
76448
+ }
76449
+ createExistenceValueRef(modelPath) {
76450
+ const existenceValuePath = modelPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalElementsExistenceFieldName);
76451
+ const existenceValueRef = this.createValueReferenceExpression(existenceValuePath);
76452
+ return existenceValueRef;
76453
+ }
76454
+ createValueReferenceExpression(valuePath) {
76455
+ return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.ValueReferenceExpression(valuePath, "value");
76456
+ }
76457
+ wrapRulesWithOptionalElementCheck(rules) {
76458
+ const wrappedRules = Iterator.from(rules).map(rule => this.checkIsRuleShouldBeWrapped(rule) ? this.wrapSetStatementWithOptionalElementCheckIfNeeded(rule) : rule);
76459
+ return wrappedRules;
76460
+ }
76461
+ checkIsRuleShouldBeWrapped(rule) {
76462
+ const isSetStatement = rule instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_4__.SetStatement;
76463
+ if (!isSetStatement) {
76464
+ return false;
76465
+ }
76466
+ const modelPath = rule.left.modePath;
76467
+ const notReservedPath = !(0,_Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_0__.checkIsReservedPath)(modelPath);
76468
+ const isValueField = rule.left.valueName === "value";
76469
+ const placedInsideOptionalBlock = this.checkElementPlacedInsideOptionalBlock(modelPath);
76470
+ return notReservedPath && isValueField && placedInsideOptionalBlock;
76471
+ }
76472
+ checkElementPlacedInsideOptionalBlock(path) {
76473
+ const currentElementIsOptionalBlock = this.optionalBlocksPaths.has(path.toString());
76474
+ if (currentElementIsOptionalBlock) {
76475
+ return true;
76476
+ }
76477
+ const parentPath = path.getParentPath();
76478
+ if (parentPath.isEmpty()) {
76479
+ return false;
76480
+ }
76481
+ return this.checkElementPlacedInsideOptionalBlock(parentPath);
76482
+ }
76483
+ wrapSetStatementWithOptionalElementCheckIfNeeded(rule) {
76484
+ const targetPath = rule.left.modePath;
76485
+ const parentOptionalElementPath = this.findNearestOptionalBySchemeParentElementPath(targetPath);
76486
+ if (!parentOptionalElementPath) {
76487
+ return rule;
76488
+ }
76489
+ const targetIsExistsPath = parentOptionalElementPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalElementsExistenceFieldName);
76490
+ const targetIsExistsValueRef = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_6__.makeStringValueReference)(targetIsExistsPath.toCurrentIteration(), "value");
76491
+ 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));
76492
+ }
76493
+ findNearestOptionalBySchemeParentElementPath(path) {
76494
+ const currentElement = this.formSchemaRng.getElementByPath(path);
76495
+ if (currentElement && currentElement.isOptional()) {
76496
+ return path;
76497
+ }
76498
+ const parentPath = path.getParentPath();
76499
+ const parentElement = this.formSchemaRng.getElementByPath(parentPath);
76500
+ if (!parentElement) {
76501
+ return undefined;
76502
+ }
76503
+ if (parentElement instanceof _common_SchemaRng_FormSchemaRng__WEBPACK_IMPORTED_MODULE_3__.FormSchemaRngElement && parentElement.multiple) {
76504
+ return undefined;
76505
+ }
76506
+ return this.findNearestOptionalBySchemeParentElementPath(parentPath);
76507
+ }
76508
+ }
76509
+
76510
+ /***/ }),
76511
+
75969
76512
  /***/ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalSectionRulesBuilder.ts":
75970
76513
  /*!***********************************************************************************************************!*\
75971
76514
  !*** ./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/OptionalSectionRulesBuilder.ts ***!
@@ -75987,7 +76530,8 @@ __webpack_require__.r(__webpack_exports__);
75987
76530
  /* harmony import */ var _Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPathHelper */ "./Common/ModelPath/ModelPathHelper.ts");
75988
76531
  /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
75989
76532
  /* 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");
76533
+ /* harmony import */ var _FLang_FlangConstants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../FLang/FlangConstants */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangConstants.ts");
76534
+ /* harmony import */ var _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./BaseRuleBuilder */ "./Generator/src/generators/ServerSideFLangNormalization/RuleBuilders/BaseRuleBuilder.ts");
75991
76535
 
75992
76536
 
75993
76537
 
@@ -75999,7 +76543,8 @@ __webpack_require__.r(__webpack_exports__);
75999
76543
 
76000
76544
 
76001
76545
 
76002
- class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_10__.BaseRuleBuilder {
76546
+
76547
+ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MODULE_11__.BaseRuleBuilder {
76003
76548
  constructor(sugarRoot, dataDeclarationHelper) {
76004
76549
  super();
76005
76550
  this.sugarRoot = void 0;
@@ -76065,7 +76610,7 @@ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MOD
76065
76610
  }
76066
76611
  wrapRulesWithOptionalPageCheck(rules) {
76067
76612
  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);
76613
+ 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
76614
  return wrappedRules;
76070
76615
  }
76071
76616
  findParentOptionalForAggregationPath(targetPath, orderedSections) {
@@ -76083,9 +76628,12 @@ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MOD
76083
76628
  const targetOptionalSection = !(0,_Common_ModelPath_ModelPathHelper__WEBPACK_IMPORTED_MODULE_7__.isAggregationPath)(targetPath) ? this.findParentOptionalForNonAggregationPath(targetPath, rule.left.valueName, orderedSections) : this.findParentOptionalForAggregationPath(targetPath, orderedSections);
76084
76629
  if (targetOptionalSection != undefined && !targetOptionalSection.multiple) {
76085
76630
  const targetIsFilledPath = targetOptionalSection.path.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__.OptionalSectionFilledFieldName);
76086
- if (!targetIsFilledPath.isEquals(targetPath)) {
76631
+ const isFilledFieldPath = targetIsFilledPath.isEquals(targetPath);
76632
+ const isExistenceValuePath = targetPath.endsWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createModelPath)(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__.OptionalElementsExistenceFieldName, false));
76633
+ const shouldWrapRule = !isFilledFieldPath && !isExistenceValuePath;
76634
+ if (shouldWrapRule) {
76087
76635
  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()));
76636
+ 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
76637
  }
76090
76638
  }
76091
76639
  return rule;
@@ -76094,7 +76642,7 @@ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MOD
76094
76642
  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
76643
  const targetValueRefBase = targetPath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_8__.OptionalSectionFilledFieldName);
76096
76644
  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 => {
76645
+ 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
76646
  const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_2__.getMatchedAndDifferentModelPaths)(targetPath, path);
76099
76647
  const iterationEntries = (0,_Common_ModelPath_BuildIterationSequence__WEBPACK_IMPORTED_MODULE_3__.buildIterationSequence)(splitInfo.differentPath);
76100
76648
  return {
@@ -76116,8 +76664,12 @@ class OptionalSectionRulesBuilder extends _BaseRuleBuilder__WEBPACK_IMPORTED_MOD
76116
76664
  const pathCheckWithReduceIfRequiredExpr = iterationEntry != undefined ? !iterationEntry.iterable.isContainIteration() ? createSingleReduceCheckExpression(iterationEntry) : createMultipleReduceCheckExpression(iterationEntry) : pathCheckExpr;
76117
76665
  return pathCheckWithReduceIfRequiredExpr;
76118
76666
  });
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;
76667
+ const pathTestRulesArray = pathTestRules.toArray();
76668
+ if (!(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_4__.arrayIsNotEmpty)(pathTestRulesArray)) {
76669
+ return undefined;
76670
+ }
76671
+ const allChecksExpressions = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_9__.composeFlangExpressionsByOr)(pathTestRulesArray);
76672
+ 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
76673
  }
76122
76674
  }
76123
76675
 
@@ -76763,6 +77315,8 @@ __webpack_require__.r(__webpack_exports__);
76763
77315
  /* 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
77316
  /* 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
77317
  /* 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");
77318
+ /* 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");
77319
+
76766
77320
 
76767
77321
 
76768
77322
 
@@ -76889,7 +77443,7 @@ __webpack_require__.r(__webpack_exports__);
76889
77443
 
76890
77444
  let convertersFromNodeClassMap;
76891
77445
  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];
77446
+ 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
77447
  return new Map(
76894
77448
  // @ts-ignore
76895
77449
  converters.map(converterClass => [converterClass.getAcceptNodeClass(), converterClass]));
@@ -86613,6 +87167,179 @@ let MinitourNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODU
86613
87167
 
86614
87168
  /***/ }),
86615
87169
 
87170
+ /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockConverter.ts":
87171
+ /*!*******************************************************************************************************************!*\
87172
+ !*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockConverter.ts ***!
87173
+ \*******************************************************************************************************************/
87174
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
87175
+
87176
+ "use strict";
87177
+ __webpack_require__.r(__webpack_exports__);
87178
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
87179
+ /* harmony export */ OptionalBlockConverter: () => (/* binding */ OptionalBlockConverter)
87180
+ /* harmony export */ });
87181
+ /* harmony import */ var _Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../Common/CommonConstants/SectionNames */ "./Common/CommonConstants/SectionNames.ts");
87182
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../Common/PathConstants */ "./Common/PathConstants.ts");
87183
+ /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
87184
+ /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
87185
+ /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
87186
+ /* harmony import */ var _OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./OptionalBlockNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode.ts");
87187
+
87188
+
87189
+
87190
+
87191
+
87192
+
87193
+ class OptionalBlockConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_4__.SugarNodeConverterBase {
87194
+ static getAcceptNodeClass() {
87195
+ return _OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode;
87196
+ }
87197
+ doBuildDataDeclaration(context) {
87198
+ const node = this.getCurrentNodeAs(_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode);
87199
+ const nodePath = node.getFullPath();
87200
+ const visibilityFieldPath = nodePath.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_1__.OptionalBlockVisibilityFieldName).toString();
87201
+ return context.mergeDataDeclaration(context.addVisibilityPathDeclEntryNew(node), {
87202
+ [nodePath.toString()]: {
87203
+ section: [_Common_CommonConstants_SectionNames__WEBPACK_IMPORTED_MODULE_0__.SectionNames.defaultSection, `${node.id}`]
87204
+ }
87205
+ }, {
87206
+ [visibilityFieldPath]: {
87207
+ value: context.initSequenceFactory.dataValue({
87208
+ defaultValue: "1",
87209
+ fetchfn: undefined,
87210
+ settings: undefined
87211
+ }, false, "1")
87212
+ }
87213
+ });
87214
+ }
87215
+ buildChildrenDataDeclaration(context) {
87216
+ const node = this.getCurrentNodeAs(_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode);
87217
+ return context.processChildrenDataDeclaration(node.children);
87218
+ }
87219
+ *doTraverseChildren() {
87220
+ const node = this.getCurrentNodeAs(_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode);
87221
+ yield* node.children;
87222
+ }
87223
+ doConvert(context) {
87224
+ const node = this.getCurrentNodeAs(_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_5__.OptionalBlockNode);
87225
+ const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("OptionalBlock");
87226
+ markupBuilder.prop(x => x.id).set(node.id);
87227
+ markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
87228
+ markupBuilder.prop(x => x.createTitle).set(node.createTitle);
87229
+ markupBuilder.prop(x => x.blockTitle).set(node.blockTitle);
87230
+ markupBuilder.prop(x => x.confirmOnDelete).set(Boolean(node.confirmOnDelete));
87231
+ markupBuilder.prop(x => x.confirmText).set(node.confirmText);
87232
+ markupBuilder.prop(x => x.confirmHeaderText).set(node.confirmHeaderText);
87233
+ markupBuilder.prop(x => x.confirmButtonText).set(node.confirmButtonText);
87234
+ markupBuilder.prop(x => x.discardButtonText).set(node.discardButtonText);
87235
+ markupBuilder.appendChild(context.convertChildNodes(node.children));
87236
+ return markupBuilder.buildConverterResult();
87237
+ }
87238
+ }
87239
+
87240
+ /***/ }),
87241
+
87242
+ /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode.ts":
87243
+ /*!**************************************************************************************************************!*\
87244
+ !*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/OptionalBlock/OptionalBlockNode.ts ***!
87245
+ \**************************************************************************************************************/
87246
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
87247
+
87248
+ "use strict";
87249
+ __webpack_require__.r(__webpack_exports__);
87250
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
87251
+ /* harmony export */ OptionalBlockNode: () => (/* binding */ OptionalBlockNode)
87252
+ /* harmony export */ });
87253
+ /* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/initializerDefineProperty */ "./node_modules/@babel/runtime/helpers/initializerDefineProperty.js");
87254
+ /* harmony import */ var _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0__);
87255
+ /* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js");
87256
+ /* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1__);
87257
+ /* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "./node_modules/@babel/runtime/helpers/initializerWarningHelper.js");
87258
+ /* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_2__);
87259
+ /* harmony import */ var _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Serializer/SugarNodeWithLegacyVisibility */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeWithLegacyVisibility.ts");
87260
+ /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
87261
+ /* harmony import */ var _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../CommonNodeProperties/DataBindingMixinNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/DataBindingMixinNode.ts");
87262
+
87263
+
87264
+
87265
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
87266
+
87267
+
87268
+
87269
+ 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 {
87270
+ constructor(...args) {
87271
+ super(...args);
87272
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataScope", _descriptor, this);
87273
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "id", _descriptor2, this);
87274
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "createTitle", _descriptor3, this);
87275
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "blockTitle", _descriptor4, this);
87276
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "confirmOnDelete", _descriptor5, this);
87277
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "confirmText", _descriptor6, this);
87278
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "confirmHeaderText", _descriptor7, this);
87279
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "confirmButtonText", _descriptor8, this);
87280
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "discardButtonText", _descriptor9, this);
87281
+ _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor10, this);
87282
+ }
87283
+ getOwnPath() {
87284
+ return this.dataScope.getOwnPath();
87285
+ }
87286
+ get path() {
87287
+ return this.dataScope.path;
87288
+ }
87289
+ }, _descriptor = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "dataScope", [_dec2], {
87290
+ configurable: true,
87291
+ enumerable: true,
87292
+ writable: true,
87293
+ initializer: null
87294
+ }), _descriptor2 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "id", [_dec3], {
87295
+ configurable: true,
87296
+ enumerable: true,
87297
+ writable: true,
87298
+ initializer: null
87299
+ }), _descriptor3 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "createTitle", [_dec4], {
87300
+ configurable: true,
87301
+ enumerable: true,
87302
+ writable: true,
87303
+ initializer: null
87304
+ }), _descriptor4 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "blockTitle", [_dec5], {
87305
+ configurable: true,
87306
+ enumerable: true,
87307
+ writable: true,
87308
+ initializer: null
87309
+ }), _descriptor5 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "confirmOnDelete", [_dec6], {
87310
+ configurable: true,
87311
+ enumerable: true,
87312
+ writable: true,
87313
+ initializer: null
87314
+ }), _descriptor6 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "confirmText", [_dec7], {
87315
+ configurable: true,
87316
+ enumerable: true,
87317
+ writable: true,
87318
+ initializer: null
87319
+ }), _descriptor7 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "confirmHeaderText", [_dec8], {
87320
+ configurable: true,
87321
+ enumerable: true,
87322
+ writable: true,
87323
+ initializer: null
87324
+ }), _descriptor8 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "confirmButtonText", [_dec9], {
87325
+ configurable: true,
87326
+ enumerable: true,
87327
+ writable: true,
87328
+ initializer: null
87329
+ }), _descriptor9 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "discardButtonText", [_dec10], {
87330
+ configurable: true,
87331
+ enumerable: true,
87332
+ writable: true,
87333
+ initializer: null
87334
+ }), _descriptor10 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec11], {
87335
+ configurable: true,
87336
+ enumerable: true,
87337
+ writable: true,
87338
+ initializer: null
87339
+ }), _class2)) || _class);
87340
+
87341
+ /***/ }),
87342
+
86616
87343
  /***/ "./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Pencil/PencilConverter.ts":
86617
87344
  /*!*****************************************************************************************************!*\
86618
87345
  !*** ./Generator/src/generators/markupGenerator/ElementProcessors/Layout/Pencil/PencilConverter.ts ***!
@@ -104468,17 +105195,19 @@ __webpack_require__.r(__webpack_exports__);
104468
105195
  /* 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
105196
  /* 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
105197
  /* 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");
105198
+ /* harmony import */ var _Common_PathConstants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Common/PathConstants */ "./Common/PathConstants.ts");
105199
+ /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
105200
+ /* harmony import */ var _AllConverters__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AllConverters */ "./Generator/src/generators/markupGenerator/AllConverters.ts");
105201
+ /* harmony import */ var _ConverterResults_ConverterResult__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ConverterResults/ConverterResult */ "./Generator/src/generators/markupGenerator/ConverterResults/ConverterResult.ts");
105202
+ /* 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");
105203
+ /* 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");
105204
+ /* harmony import */ var _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Serializer/SugarSerializer */ "./Generator/src/generators/markupGenerator/Serializer/SugarSerializer.ts");
105205
+ /* harmony import */ var _SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SugarNodes/DefaultSugarSerializer */ "./Generator/src/generators/markupGenerator/SugarNodes/DefaultSugarSerializer.ts");
105206
+ /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
105207
+ /* harmony import */ var _VisibilityProcessor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./VisibilityProcessor */ "./Generator/src/generators/markupGenerator/VisibilityProcessor.ts");
105208
+ /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
105209
+ /* harmony import */ var _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./FocusManagementProcessor */ "./Generator/src/generators/markupGenerator/FocusManagementProcessor.ts");
105210
+
104482
105211
 
104483
105212
 
104484
105213
 
@@ -104504,12 +105233,12 @@ class SugarNodeConverterBase {
104504
105233
  constructor(node) {
104505
105234
  this.node = void 0;
104506
105235
  this.node = node;
104507
- if (node instanceof _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_10__.PageNode) {
105236
+ if (node instanceof _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__.PageNode) {
104508
105237
  deserializedPages.set(node.sourceXmlNode, node);
104509
105238
  }
104510
105239
  }
104511
105240
  static deserializeNodeAs(nodeClass, sourceXmlNode) {
104512
- const serializer = (0,_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_12__.createDefaultSugarSerializer)();
105241
+ const serializer = (0,_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_13__.createDefaultSugarSerializer)();
104513
105242
  const node = serializer.deserializeFromSugarXmlNode(sourceXmlNode, [nodeClass]);
104514
105243
  if (node instanceof nodeClass) {
104515
105244
  return node;
@@ -104546,10 +105275,28 @@ class SugarNodeConverterBase {
104546
105275
  return [];
104547
105276
  }
104548
105277
  buildDataDeclaration(context) {
104549
- return context.mergeDataDeclaration(this.doBuildDataDeclaration(context), this.buildChildrenDataDeclaration(context));
105278
+ const path = this.node.getFullPath();
105279
+ // Почему так назван, разве работает только для множественных?
105280
+ const isNodeOptionalFromScheme = context.isMultipleNodeOptionalFromScheme(path);
105281
+ const isMultipleNode = context.isMultipleElement(path);
105282
+ const optionalElementDataDeclaration = !isMultipleNode && isNodeOptionalFromScheme && this.buildOptionalElementDataDeclaration(context, path);
105283
+ return context.mergeDataDeclaration(this.doBuildDataDeclaration(context), optionalElementDataDeclaration, this.buildChildrenDataDeclaration(context));
105284
+ }
105285
+ buildOptionalElementDataDeclaration(context, path) {
105286
+ const existenceFieldPath = path.joinWith(_Common_PathConstants__WEBPACK_IMPORTED_MODULE_6__.OptionalElementsExistenceFieldName).toLegacyPath();
105287
+ 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])), {
105288
+ [existenceFieldPath]: {
105289
+ value: context.initSequenceFactory.dataValue({
105290
+ defaultValue: "1",
105291
+ fetchfn: undefined,
105292
+ settings: undefined
105293
+ }, false, "1")
105294
+ }
105295
+ });
105296
+ return existenceDataDeclaration;
104550
105297
  }
104551
105298
  getCurrentNodeAs(nodeClass) {
104552
- return (0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_13__.strictCastNode)(this.node, nodeClass);
105299
+ return (0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_14__.strictCastNode)(this.node, nodeClass);
104553
105300
  }
104554
105301
  applyVisibilityPathProcessing() {
104555
105302
  return true;
@@ -104571,7 +105318,7 @@ class SugarNodeConverterBase {
104571
105318
  getParentPage() {
104572
105319
  const node = this.node.sourceXmlNode;
104573
105320
  const page = node.getParentPageStrict();
104574
- return page != undefined ? this.getNodeAs(_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_10__.PageNode, page) : undefined;
105321
+ return page != undefined ? this.getNodeAs(_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__.PageNode, page) : undefined;
104575
105322
  }
104576
105323
  getParentForm() {
104577
105324
  const node = this.node.sourceXmlNode;
@@ -104579,18 +105326,18 @@ class SugarNodeConverterBase {
104579
105326
  if (formNode == undefined) {
104580
105327
  throw new Error("InvalidProgramState");
104581
105328
  }
104582
- return this.getNodeAs(_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_9__.FormNode, formNode);
105329
+ return this.getNodeAs(_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_10__.FormNode, formNode);
104583
105330
  }
104584
105331
  findPage(id) {
104585
105332
  const node = this.node.sourceXmlNode;
104586
105333
  const root = node.getRoot();
104587
105334
  const pageNodes = root.getChildren("page");
104588
105335
  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;
105336
+ return page != undefined ? this.getNodeAs(_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__.PageNode, page) : undefined;
104590
105337
  }
104591
105338
  getEvaluatorsContextPathExpression() {
104592
105339
  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)());
105340
+ 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
105341
  }
104595
105342
  buildValidations(validationGenerator, context) {
104596
105343
  this.doBuildNodeValidations(validationGenerator, context);
@@ -104621,7 +105368,7 @@ class SugarNodeConverterBase {
104621
105368
  // noop
104622
105369
  }
104623
105370
  getResolvedBindingPath(node) {
104624
- return (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_6__.getResolvedBindingPath)(node);
105371
+ return (0,_getBindingPath__WEBPACK_IMPORTED_MODULE_7__.getResolvedBindingPath)(node);
104625
105372
  }
104626
105373
  getRequisitesFromFetchFunction(fetchFunctions) {
104627
105374
  const result = {};
@@ -104641,7 +105388,7 @@ class SugarNodeConverterBase {
104641
105388
  }
104642
105389
  getConverterResultFromAttributeWithMarkup(context, attributeValue) {
104643
105390
  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])));
105391
+ 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
105392
  }
104646
105393
  return attributeValue;
104647
105394
  }
@@ -104659,7 +105406,7 @@ class SugarNodeConverterBase {
104659
105406
  *buildNormalizeRules(builder, formSchemaRng) {
104660
105407
  yield* this.doBuildNormalizeRules(builder, formSchemaRng);
104661
105408
  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));
105409
+ const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_8__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.getNodeClass)(child));
104663
105410
  if (controlConverterClass == undefined) {
104664
105411
  const customControl = builder.controlCustomizationContext.tryGetCustomRegularControl(child.sourceXmlNode.name);
104665
105412
  if (customControl != undefined) {
@@ -104679,7 +105426,7 @@ class SugarNodeConverterBase {
104679
105426
  }
104680
105427
  getNodeAs(nodeClass, sourceXmlNode) {
104681
105428
  // @ts-ignore
104682
- if (nodeClass === _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_10__.PageNode) {
105429
+ if (nodeClass === _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_11__.PageNode) {
104683
105430
  var _deserializedPages$ge;
104684
105431
  // @ts-ignore
104685
105432
  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 +105435,12 @@ class SugarNodeConverterBase {
104688
105435
  }
104689
105436
  buildChildrenValidations(validationGenerator, context, children) {
104690
105437
  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));
105438
+ const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_8__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.getNodeClass)(child));
104692
105439
  if (controlConverterClass == undefined) {
104693
- if (child instanceof _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.UnknownSugarNode && child.name === "type") {
105440
+ if (child instanceof _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.UnknownSugarNode && child.name === "type") {
104694
105441
  continue;
104695
105442
  }
104696
- if (child instanceof _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.UnknownSugarNode) {
105443
+ if (child instanceof _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.UnknownSugarNode) {
104697
105444
  const customControl = validationGenerator.controlCustomizationContext.tryGetCustomRegularControl(child.name);
104698
105445
  if (customControl != undefined) {
104699
105446
  const childNode = child.sourceXmlNode;
@@ -104702,7 +105449,7 @@ class SugarNodeConverterBase {
104702
105449
  }
104703
105450
  continue;
104704
105451
  // eslint-disable-next-line no-console
104705
- console.error(`Cannot process node of type ${(0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_11__.getNodeClass)(child).name}`);
105452
+ console.error(`Cannot process node of type ${(0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.getNodeClass)(child).name}`);
104706
105453
  // throw new SugarAttributeReadError(
104707
105454
  // `Cannot process node of type ${getNodeClass(child).name}`,
104708
105455
  // child.sourceXmlNode as SugarXmlNode,
@@ -104716,7 +105463,7 @@ class SugarNodeConverterBase {
104716
105463
  buildChildrenKCLangValidations(buildContext, formSchemaRng, children) {
104717
105464
  const result = [];
104718
105465
  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));
105466
+ const controlConverterClass = (0,_AllConverters__WEBPACK_IMPORTED_MODULE_8__.getConverterByNodeClass)((0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_12__.getNodeClass)(child));
104720
105467
  if (controlConverterClass == undefined) {
104721
105468
  continue;
104722
105469
  }
@@ -104734,10 +105481,10 @@ class SugarNodeConverterBase {
104734
105481
  return result;
104735
105482
  }
104736
105483
  processVisibilityPathAttributes(converterResult) {
104737
- return _VisibilityProcessor__WEBPACK_IMPORTED_MODULE_14__.VisibilityProcessor.processVisibilityPathAttributes(this.node, converterResult);
105484
+ return _VisibilityProcessor__WEBPACK_IMPORTED_MODULE_15__.VisibilityProcessor.processVisibilityPathAttributes(this.node, converterResult);
104738
105485
  }
104739
105486
  processFocusManagementAttributes(converterResult) {
104740
- return _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_16__.FocusManagementProcessor.processFocusManagementAttributes(this.node, converterResult);
105487
+ return _FocusManagementProcessor__WEBPACK_IMPORTED_MODULE_17__.FocusManagementProcessor.processFocusManagementAttributes(this.node, converterResult);
104741
105488
  }
104742
105489
  doBuildKCLangValidations(buildContext, formSchemaRng) {
104743
105490
  return [];
@@ -104906,6 +105653,8 @@ __webpack_require__.r(__webpack_exports__);
104906
105653
  /* 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
105654
  /* 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
105655
  /* 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");
105656
+ /* 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");
105657
+
104909
105658
 
104910
105659
 
104911
105660
 
@@ -105149,6 +105898,7 @@ function registerDefaultSugarNodes(result) {
105149
105898
  result.registerNode(_ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_121__.SelectAllCheckboxNode);
105150
105899
  result.registerNode(_ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_125__.SelectCheckboxNode);
105151
105900
  result.registerNode(_ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_126__.InstanceNumberNode);
105901
+ result.registerNode(_ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_127__.OptionalBlockNode);
105152
105902
  }
105153
105903
  function createDefaultSugarSerializer() {
105154
105904
  const result = new _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_106__.SugarSerializer({
@@ -105161,7 +105911,7 @@ function getAllSugarValidationNodeClasses() {
105161
105911
  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
105912
  }
105163
105913
  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];
105914
+ 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
105915
  }
105166
105916
  function getAllSchemaRngNodeClasses() {
105167
105917
  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];