@magic-xpa/engine 4.1101.0-dev4111.331 → 4.1101.0-dev4111.332

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSU1pcnJvclhNTC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvdXRpbC9JTWlycm9yWE1MLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1htbFBhcnNlcn0gZnJvbSBcIkBtYWdpYy14cGEvdXRpbHNcIjtcclxuaW1wb3J0IHtQYXJhbVBhcnNlUmVzdWx0fSBmcm9tIFwiLi9QYXJhbVBhcnNlUmVzdWx0XCI7XHJcblxyXG4vLy8gPHN1bW1hcnk+IEludGVyZmFjZSBmb3IgbWlycm9yaW5nIGEgc2luZ2xlIGl0ZW08L3N1bW1hcnk+XHJcbmV4cG9ydCBpbnRlcmZhY2UgSU1pcnJvclhNTCB7XHJcbiAgbWlycm9yVG9YTUwoKTogc3RyaW5nO1xyXG5cclxuICBpbml0KG5hbWU6IHN0cmluZywgeG1sUGFyc2VyOiBYbWxQYXJzZXIpOiBQYXJhbVBhcnNlUmVzdWx0O1xyXG59XHJcbiJdfQ==
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSU1pcnJvclhNTC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvdXRpbC9JTWlycm9yWE1MLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1htbFBhcnNlcn0gZnJvbSBcIkBtYWdpYy14cGEvdXRpbHNcIjtcclxuaW1wb3J0IHtQYXJhbVBhcnNlUmVzdWx0fSBmcm9tIFwiLi9QYXJhbVBhcnNlUmVzdWx0XCI7XHJcblxyXG4vLy8gPHN1bW1hcnk+IEludGVyZmFjZSBmb3IgbWlycm9yaW5nIGEgc2luZ2xlIGl0ZW08L3N1bW1hcnk+XHJcbmV4cG9ydCBpbnRlcmZhY2UgSU1pcnJvclhNTCB7XHJcbiAgbWlycm9yVG9YTUwoKTogc3RyaW5nO1xyXG5cclxuICBpbml0KG5hbWU6IHN0cmluZywgeG1sUGFyc2VyOiBYbWxQYXJzZXIsIHVuZXNjYXBlRmxhZz86Ym9vbGVhbik6IFBhcmFtUGFyc2VSZXN1bHQ7XHJcbn1cclxuIl19
@@ -100,17 +100,17 @@ export class MirrorPrmMap extends PrmMap {
100
100
  while (this.mirrorFromXML(parser.getNextTag(), parser)) {
101
101
  }
102
102
  }
103
- RestoreParams(xml) {
103
+ RestoreParams(xml, unescapeFlag) {
104
104
  let parser = new XmlParser(xml);
105
- while (this.mirrorFromXML(parser.getNextTag(), parser)) {
105
+ while (this.mirrorFromXML(parser.getNextTag(), parser, unescapeFlag)) {
106
106
  }
107
107
  }
108
- mirrorFromXML(foundTagName, xmlParser) {
108
+ mirrorFromXML(foundTagName, xmlParser, unescapeFlag) {
109
109
  if (foundTagName === null)
110
110
  return false;
111
111
  if (foundTagName === this.mirroredID) {
112
112
  xmlParser.setCurrIndex2EndOfTag();
113
- this.fillDataEntry(xmlParser);
113
+ this.fillDataEntry(xmlParser, unescapeFlag);
114
114
  return true;
115
115
  }
116
116
  else if (foundTagName === ("/" + this.mirroredID)) {
@@ -123,7 +123,7 @@ export class MirrorPrmMap extends PrmMap {
123
123
  return false;
124
124
  }
125
125
  }
126
- fillDataEntry(xmlParser) {
126
+ fillDataEntry(xmlParser, unescapeFlag) {
127
127
  let nextTag = xmlParser.getNextTag();
128
128
  while (nextTag === ConstInterface.MG_TAG_PARAM) {
129
129
  let nameStart = xmlParser.getXMLdata().indexOf(XMLConstants.MG_ATTR_NAME + "=\"", xmlParser.getCurrIndex()) +
@@ -133,7 +133,8 @@ export class MirrorPrmMap extends PrmMap {
133
133
  let name = xmlParser.getXMLsubstring(nameEnd).trim();
134
134
  xmlParser.setCurrIndex(nameEnd);
135
135
  let newVal = this.new();
136
- switch (newVal.init(name, xmlParser)) {
136
+ const ParamResult = newVal.init(name, xmlParser, unescapeFlag);
137
+ switch (ParamResult) {
137
138
  case ParamParseResult.OK:
138
139
  this.values.set_Item(name, newVal);
139
140
  break;
@@ -149,4 +150,4 @@ export class MirrorPrmMap extends PrmMap {
149
150
  }
150
151
  }
151
152
  }
152
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJtTWFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy91dGlsL1BybU1hcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLElBQUksRUFBRSxhQUFhLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN2RSxPQUFPLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNuRSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFbkQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFLcEQsTUFBTSxPQUFPLE1BQU07SUFDakIsTUFBTSxHQUF1QixJQUFJLENBQUM7SUFPeEIsUUFBUSxDQUFDLENBQVM7UUFDMUIsSUFBSSxJQUFJLENBQUMsTUFBTSxDQUFDLFdBQVcsQ0FBQyxDQUFDLENBQUM7WUFDNUIsT0FBTyxJQUFJLENBQUMsTUFBTSxDQUFDLFFBQVEsQ0FBQyx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ICAgICAgICB0aGlzLnZhbHVlcy5zZXRfSXRlbShuYW1lLnRvVXBwZXJDYXNlKCksIG5ld1ZhbCk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIFBhcmFtUGFyc2VSZXN1bHQuREVMRVRFOlxyXG4gICAgICAgICAgdGhpcy52YWx1ZXMuUmVtb3ZlKG5hbWUpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgIH1cclxuXHJcbiAgICAgIC8vIG1vdmUgdG8gbmV4dCB0YWdcclxuICAgICAgeG1sUGFyc2VyLnNldEN1cnJJbmRleDJFbmRPZlRhZygpO1xyXG4gICAgICBuZXh0VGFnID0geG1sUGFyc2VyLmdldE5leHRUYWcoKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
@@ -5577,8 +5577,8 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
5577
5577
  FlowMonitorQueue.Instance.enable(false);
5578
5578
  await this.ProcessResponse(respBuf, AccessHelper.mgDataTable.currMgdID, null, res);
5579
5579
  if (RemoteCommandsProcessor.IsSessionReInitializing) {
5580
- AccessHelper.globalParams.RestoreParams(globalParamsString);
5581
- AccessHelper.envParamsTable.RestoreParams(envVarsString);
5580
+ AccessHelper.globalParams.RestoreParams(globalParamsString, true);
5581
+ AccessHelper.envParamsTable.RestoreParams(envVarsString, true);
5582
5582
  let dataStorage = window.localStorage;
5583
5583
  let ctxRemoved = dataStorage.getItem(ConstInterface.CTX_REMOVED_FROM_SRVR);
5584
5584
  if (ctxRemoved === "1") {
@@ -8457,17 +8457,17 @@ class MirrorPrmMap extends PrmMap {
8457
8457
  while (this.mirrorFromXML(parser.getNextTag(), parser)) {
8458
8458
  }
8459
8459
  }
8460
- RestoreParams(xml) {
8460
+ RestoreParams(xml, unescapeFlag) {
8461
8461
  let parser = new XmlParser(xml);
8462
- while (this.mirrorFromXML(parser.getNextTag(), parser)) {
8462
+ while (this.mirrorFromXML(parser.getNextTag(), parser, unescapeFlag)) {
8463
8463
  }
8464
8464
  }
8465
- mirrorFromXML(foundTagName, xmlParser) {
8465
+ mirrorFromXML(foundTagName, xmlParser, unescapeFlag) {
8466
8466
  if (foundTagName === null)
8467
8467
  return false;
8468
8468
  if (foundTagName === this.mirroredID) {
8469
8469
  xmlParser.setCurrIndex2EndOfTag();
8470
- this.fillDataEntry(xmlParser);
8470
+ this.fillDataEntry(xmlParser, unescapeFlag);
8471
8471
  return true;
8472
8472
  }
8473
8473
  else if (foundTagName === ("/" + this.mirroredID)) {
@@ -8480,7 +8480,7 @@ class MirrorPrmMap extends PrmMap {
8480
8480
  return false;
8481
8481
  }
8482
8482
  }
8483
- fillDataEntry(xmlParser) {
8483
+ fillDataEntry(xmlParser, unescapeFlag) {
8484
8484
  let nextTag = xmlParser.getNextTag();
8485
8485
  while (nextTag === ConstInterface.MG_TAG_PARAM) {
8486
8486
  let nameStart = xmlParser.getXMLdata().indexOf(XMLConstants.MG_ATTR_NAME + "=\"", xmlParser.getCurrIndex()) +
@@ -8490,7 +8490,8 @@ class MirrorPrmMap extends PrmMap {
8490
8490
  let name = xmlParser.getXMLsubstring(nameEnd).trim();
8491
8491
  xmlParser.setCurrIndex(nameEnd);
8492
8492
  let newVal = this.new();
8493
- switch (newVal.init(name, xmlParser)) {
8493
+ const ParamResult = newVal.init(name, xmlParser, unescapeFlag);
8494
+ switch (ParamResult) {
8494
8495
  case ParamParseResult.OK:
8495
8496
  this.values.set_Item(name, newVal);
8496
8497
  break;
@@ -9906,7 +9907,7 @@ class MirrorString {
9906
9907
  mirrorToXML() {
9907
9908
  return ConstInterface.MG_ATTR_ENV_VALUE + "=\"" + XmlParser.escape(this._value) + "\"";
9908
9909
  }
9909
- init(name, xmlParser) {
9910
+ init(name, xmlParser, unescapeFlag) {
9910
9911
  let valueStart, valueEnd, reserveStart, paramEnd;
9911
9912
  let xmlData = xmlParser.getXMLdata();
9912
9913
  let valueAttr = ConstInterface.MG_ATTR_ENV_VALUE + "=\"";
@@ -9919,6 +9920,8 @@ class MirrorString {
9919
9920
  ? xmlData.indexOf(ConstInterface.MG_ATTR_ENV_RESERVED + "=\"", valueStart) - 2
9920
9921
  : paramEnd - 1;
9921
9922
  this._value = xmlData.substr(valueStart, valueEnd - valueStart).trim();
9923
+ if (unescapeFlag)
9924
+ this._value = XmlParser.unescape(this._value);
9922
9925
  if (reserveStart !== -1) {
9923
9926
  reserveStart += ConstInterface.MG_ATTR_ENV_RESERVED.length + 2;
9924
9927
  this._reserved = (xmlData[reserveStart] === 'Y');
@@ -29718,7 +29721,7 @@ class CommandsTable {
29718
29721
  }
29719
29722
  }
29720
29723
 
29721
- let CurrentClientVersion = '4.1101.0-dev4111.331';
29724
+ let CurrentClientVersion = '4.1101.0-dev4111.332';
29722
29725
 
29723
29726
  class ClientManager {
29724
29727
  static _instance = null;