@player-ui/common-expressions-plugin 0.7.0 → 0.7.1-next.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.
@@ -634,19 +634,19 @@ class BindingInstance {
634
634
  }
635
635
  }
636
636
 
637
- var __defProp$e = Object.defineProperty;
638
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
639
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
640
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
641
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
642
- var __spreadValues$e = (a, b) => {
637
+ var __defProp$d = Object.defineProperty;
638
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
639
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
640
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
641
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
642
+ var __spreadValues$d = (a, b) => {
643
643
  for (var prop in b || (b = {}))
644
- if (__hasOwnProp$f.call(b, prop))
645
- __defNormalProp$e(a, prop, b[prop]);
646
- if (__getOwnPropSymbols$f)
647
- for (var prop of __getOwnPropSymbols$f(b)) {
648
- if (__propIsEnum$f.call(b, prop))
649
- __defNormalProp$e(a, prop, b[prop]);
644
+ if (__hasOwnProp$e.call(b, prop))
645
+ __defNormalProp$d(a, prop, b[prop]);
646
+ if (__getOwnPropSymbols$e)
647
+ for (var prop of __getOwnPropSymbols$e(b)) {
648
+ if (__propIsEnum$e.call(b, prop))
649
+ __defNormalProp$d(a, prop, b[prop]);
650
650
  }
651
651
  return a;
652
652
  };
@@ -663,7 +663,7 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
663
663
  if (node.name === "PathNode") {
664
664
  const nestedResolvedValue = resolveBindingAST(node, options);
665
665
  if (nestedResolvedValue.updates) {
666
- context.updates = __spreadValues$e(__spreadValues$e({}, context.updates), nestedResolvedValue.updates);
666
+ context.updates = __spreadValues$d(__spreadValues$d({}, context.updates), nestedResolvedValue.updates);
667
667
  }
668
668
  try {
669
669
  return options.convertToPath(options.getValue(nestedResolvedValue.path));
@@ -692,7 +692,7 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
692
692
  }
693
693
  function resolveNode(_node) {
694
694
  var _a2, _b;
695
- const resolvedNode = (_a2 = hooks == null ? void 0 : hooks.beforeResolveNode.call(_node, __spreadValues$e(__spreadValues$e({}, context), options))) != null ? _a2 : _node;
695
+ const resolvedNode = (_a2 = hooks == null ? void 0 : hooks.beforeResolveNode.call(_node, __spreadValues$d(__spreadValues$d({}, context), options))) != null ? _a2 : _node;
696
696
  switch (resolvedNode.name) {
697
697
  case "Expression":
698
698
  case "PathNode":
@@ -729,19 +729,19 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
729
729
  };
730
730
  }
731
731
 
732
- var __defProp$d = Object.defineProperty;
733
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
734
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
735
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
736
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
737
- var __spreadValues$d = (a, b) => {
732
+ var __defProp$c = Object.defineProperty;
733
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
734
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
735
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
736
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
737
+ var __spreadValues$c = (a, b) => {
738
738
  for (var prop in b || (b = {}))
739
- if (__hasOwnProp$e.call(b, prop))
740
- __defNormalProp$d(a, prop, b[prop]);
741
- if (__getOwnPropSymbols$e)
742
- for (var prop of __getOwnPropSymbols$e(b)) {
743
- if (__propIsEnum$e.call(b, prop))
744
- __defNormalProp$d(a, prop, b[prop]);
739
+ if (__hasOwnProp$d.call(b, prop))
740
+ __defNormalProp$c(a, prop, b[prop]);
741
+ if (__getOwnPropSymbols$d)
742
+ for (var prop of __getOwnPropSymbols$d(b)) {
743
+ if (__propIsEnum$d.call(b, prop))
744
+ __defNormalProp$c(a, prop, b[prop]);
745
745
  }
746
746
  return a;
747
747
  };
@@ -765,7 +765,7 @@ class BindingParser {
765
765
  skipOptimization: new tapable_ts__WEBPACK_IMPORTED_MODULE_1__["SyncBailHook"](),
766
766
  beforeResolveNode: new tapable_ts__WEBPACK_IMPORTED_MODULE_1__["SyncWaterfallHook"]()
767
767
  };
768
- this.parserOptions = __spreadValues$d(__spreadValues$d({}, DEFAULT_OPTIONS), options);
768
+ this.parserOptions = __spreadValues$c(__spreadValues$c({}, DEFAULT_OPTIONS), options);
769
769
  this.cache = {};
770
770
  this.parseCache = {};
771
771
  this.parse = this.parse.bind(this);
@@ -799,7 +799,7 @@ class BindingParser {
799
799
  if (isBinding(rawBinding)) {
800
800
  return rawBinding;
801
801
  }
802
- const options = __spreadValues$d(__spreadValues$d({}, this.parserOptions), overrides);
802
+ const options = __spreadValues$c(__spreadValues$c({}, this.parserOptions), overrides);
803
803
  let updates = {};
804
804
  const joined = Array.isArray(rawBinding) ? rawBinding.join(".") : String(rawBinding);
805
805
  const normalizeConfig = {
@@ -819,7 +819,7 @@ class BindingParser {
819
819
  }
820
820
  const normalized2 = this.normalizePath(String(path), normalizeConfig);
821
821
  if (normalized2.updates) {
822
- updates = __spreadValues$d(__spreadValues$d({}, updates), normalized2.updates);
822
+ updates = __spreadValues$c(__spreadValues$c({}, updates), normalized2.updates);
823
823
  }
824
824
  const joinedNormalizedPath = normalized2.path.join(".");
825
825
  if (joinedNormalizedPath === "") {
@@ -830,7 +830,7 @@ class BindingParser {
830
830
  };
831
831
  const normalized = this.normalizePath(joined, normalizeConfig);
832
832
  if (normalized.updates) {
833
- updates = __spreadValues$d(__spreadValues$d({}, updates), normalized.updates);
833
+ updates = __spreadValues$c(__spreadValues$c({}, updates), normalized.updates);
834
834
  }
835
835
  const updateKeys = Object.keys(updates);
836
836
  if (!options.readOnly && updateKeys.length > 0) {
@@ -1855,25 +1855,25 @@ function isObjectExpression(expr) {
1855
1855
  return typeof expr === "object" && expr !== null && !Array.isArray(expr) && "value" in expr;
1856
1856
  }
1857
1857
 
1858
- var __defProp$c = Object.defineProperty;
1859
- var __defProps$a = Object.defineProperties;
1860
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1861
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1862
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1863
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1864
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1865
- var __spreadValues$c = (a, b) => {
1858
+ var __defProp$b = Object.defineProperty;
1859
+ var __defProps$9 = Object.defineProperties;
1860
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1861
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1862
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1863
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1864
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1865
+ var __spreadValues$b = (a, b) => {
1866
1866
  for (var prop in b || (b = {}))
1867
- if (__hasOwnProp$d.call(b, prop))
1868
- __defNormalProp$c(a, prop, b[prop]);
1869
- if (__getOwnPropSymbols$d)
1870
- for (var prop of __getOwnPropSymbols$d(b)) {
1871
- if (__propIsEnum$d.call(b, prop))
1872
- __defNormalProp$c(a, prop, b[prop]);
1867
+ if (__hasOwnProp$c.call(b, prop))
1868
+ __defNormalProp$b(a, prop, b[prop]);
1869
+ if (__getOwnPropSymbols$c)
1870
+ for (var prop of __getOwnPropSymbols$c(b)) {
1871
+ if (__propIsEnum$c.call(b, prop))
1872
+ __defNormalProp$b(a, prop, b[prop]);
1873
1873
  }
1874
1874
  return a;
1875
1875
  };
1876
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1876
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1877
1877
  const andandOperator = (ctx, a, b) => {
1878
1878
  return ctx.evaluate(a) && ctx.evaluate(b);
1879
1879
  };
@@ -1925,7 +1925,7 @@ class ExpressionEvaluator {
1925
1925
  unary: new Map(Object.entries(DEFAULT_UNARY_OPERATORS)),
1926
1926
  expressions: new Map(Object.entries(DEFAULT_EXPRESSION_HANDLERS))
1927
1927
  };
1928
- this.defaultHookOptions = __spreadProps$a(__spreadValues$c({}, defaultOptions), {
1928
+ this.defaultHookOptions = __spreadProps$9(__spreadValues$b({}, defaultOptions), {
1929
1929
  evaluate: (expr) => this.evaluate(expr, this.defaultHookOptions),
1930
1930
  resolveNode: (node) => this._execAST(node, this.defaultHookOptions)
1931
1931
  });
@@ -1937,7 +1937,7 @@ class ExpressionEvaluator {
1937
1937
  }
1938
1938
  evaluate(expr, options) {
1939
1939
  var _a;
1940
- const resolvedOpts = this.hooks.resolveOptions.call(__spreadProps$a(__spreadValues$c(__spreadValues$c({}, this.defaultHookOptions), options), {
1940
+ const resolvedOpts = this.hooks.resolveOptions.call(__spreadProps$9(__spreadValues$b(__spreadValues$b({}, this.defaultHookOptions), options), {
1941
1941
  resolveNode: (node) => this._execAST(node, resolvedOpts)
1942
1942
  }));
1943
1943
  let expression = (_a = this.hooks.beforeEvaluate.call(expr, resolvedOpts)) != null ? _a : expr;
@@ -2003,7 +2003,7 @@ class ExpressionEvaluator {
2003
2003
  }
2004
2004
  _resolveNode(_currentValue, node, options) {
2005
2005
  const { resolveNode, model } = options;
2006
- const expressionContext = __spreadProps$a(__spreadValues$c({}, options), {
2006
+ const expressionContext = __spreadProps$9(__spreadValues$b({}, options), {
2007
2007
  evaluate: (expr) => this.evaluate(expr, options)
2008
2008
  });
2009
2009
  if (node.type === "Literal") {
@@ -2212,33 +2212,33 @@ class ProxyLogger {
2212
2212
  }
2213
2213
  }
2214
2214
 
2215
- var __defProp$b = Object.defineProperty;
2216
- var __defProps$9 = Object.defineProperties;
2217
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2218
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2219
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2220
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2221
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2222
- var __spreadValues$b = (a, b) => {
2215
+ var __defProp$a = Object.defineProperty;
2216
+ var __defProps$8 = Object.defineProperties;
2217
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2218
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2219
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2220
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2221
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2222
+ var __spreadValues$a = (a, b) => {
2223
2223
  for (var prop in b || (b = {}))
2224
- if (__hasOwnProp$c.call(b, prop))
2225
- __defNormalProp$b(a, prop, b[prop]);
2226
- if (__getOwnPropSymbols$c)
2227
- for (var prop of __getOwnPropSymbols$c(b)) {
2228
- if (__propIsEnum$c.call(b, prop))
2229
- __defNormalProp$b(a, prop, b[prop]);
2224
+ if (__hasOwnProp$b.call(b, prop))
2225
+ __defNormalProp$a(a, prop, b[prop]);
2226
+ if (__getOwnPropSymbols$b)
2227
+ for (var prop of __getOwnPropSymbols$b(b)) {
2228
+ if (__propIsEnum$b.call(b, prop))
2229
+ __defNormalProp$a(a, prop, b[prop]);
2230
2230
  }
2231
2231
  return a;
2232
2232
  };
2233
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2233
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2234
2234
  var __objRest$2 = (source, exclude) => {
2235
2235
  var target = {};
2236
2236
  for (var prop in source)
2237
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
2237
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
2238
2238
  target[prop] = source[prop];
2239
- if (source != null && __getOwnPropSymbols$c)
2240
- for (var prop of __getOwnPropSymbols$c(source)) {
2241
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
2239
+ if (source != null && __getOwnPropSymbols$b)
2240
+ for (var prop of __getOwnPropSymbols$b(source)) {
2241
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
2242
2242
  target[prop] = source[prop];
2243
2243
  }
2244
2244
  return target;
@@ -2310,7 +2310,7 @@ class SchemaController {
2310
2310
  if (!((_a = typeDef == null ? void 0 : typeDef.validation) == null ? void 0 : _a.length)) {
2311
2311
  return void 0;
2312
2312
  }
2313
- return typeDef.validation.map((vRef) => __spreadValues$b({
2313
+ return typeDef.validation.map((vRef) => __spreadValues$a({
2314
2314
  severity: "error",
2315
2315
  trigger: "change"
2316
2316
  }, vRef));
@@ -2349,7 +2349,7 @@ class SchemaController {
2349
2349
  if (baseType === void 0) {
2350
2350
  return schemaType;
2351
2351
  }
2352
- return __spreadProps$9(__spreadValues$b(__spreadValues$b({}, baseType), schemaType), {
2352
+ return __spreadProps$8(__spreadValues$a(__spreadValues$a({}, baseType), schemaType), {
2353
2353
  validation: [
2354
2354
  ...(_a = schemaType.validation) != null ? _a : [],
2355
2355
  ...(_b = baseType.validation) != null ? _b : []
@@ -2515,25 +2515,25 @@ function removeBindingAndChildrenFromMap(sourceMap, binding) {
2515
2515
  return targetMap;
2516
2516
  }
2517
2517
 
2518
- var __defProp$a = Object.defineProperty;
2519
- var __defProps$8 = Object.defineProperties;
2520
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2521
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2522
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2523
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2524
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2525
- var __spreadValues$a = (a, b) => {
2518
+ var __defProp$9 = Object.defineProperty;
2519
+ var __defProps$7 = Object.defineProperties;
2520
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2521
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2522
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2523
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2524
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2525
+ var __spreadValues$9 = (a, b) => {
2526
2526
  for (var prop in b || (b = {}))
2527
- if (__hasOwnProp$b.call(b, prop))
2528
- __defNormalProp$a(a, prop, b[prop]);
2529
- if (__getOwnPropSymbols$b)
2530
- for (var prop of __getOwnPropSymbols$b(b)) {
2531
- if (__propIsEnum$b.call(b, prop))
2532
- __defNormalProp$a(a, prop, b[prop]);
2527
+ if (__hasOwnProp$a.call(b, prop))
2528
+ __defNormalProp$9(a, prop, b[prop]);
2529
+ if (__getOwnPropSymbols$a)
2530
+ for (var prop of __getOwnPropSymbols$a(b)) {
2531
+ if (__propIsEnum$a.call(b, prop))
2532
+ __defNormalProp$9(a, prop, b[prop]);
2533
2533
  }
2534
2534
  return a;
2535
2535
  };
2536
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2536
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2537
2537
  class ValidationMiddleware {
2538
2538
  constructor(validator, options) {
2539
2539
  this.validator = validator;
@@ -2542,7 +2542,7 @@ class ValidationMiddleware {
2542
2542
  this.shouldIncludeInvalid = options == null ? void 0 : options.shouldIncludeInvalid;
2543
2543
  }
2544
2544
  set(transaction, options, next) {
2545
- const asModel = toModel(this, __spreadProps$8(__spreadValues$a({}, options), { includeInvalid: true }), next);
2545
+ const asModel = toModel(this, __spreadProps$7(__spreadValues$9({}, options), { includeInvalid: true }), next);
2546
2546
  const nextTransaction = [];
2547
2547
  const includedBindings = new Set();
2548
2548
  transaction.forEach(([binding, value]) => {
@@ -2647,33 +2647,33 @@ function getNodeID(node) {
2647
2647
  }
2648
2648
  }
2649
2649
 
2650
- var __defProp$9 = Object.defineProperty;
2651
- var __defProps$7 = Object.defineProperties;
2652
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2653
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2654
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2655
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2656
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2657
- var __spreadValues$9 = (a, b) => {
2650
+ var __defProp$8 = Object.defineProperty;
2651
+ var __defProps$6 = Object.defineProperties;
2652
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2653
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2654
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2655
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2656
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2657
+ var __spreadValues$8 = (a, b) => {
2658
2658
  for (var prop in b || (b = {}))
2659
- if (__hasOwnProp$a.call(b, prop))
2660
- __defNormalProp$9(a, prop, b[prop]);
2661
- if (__getOwnPropSymbols$a)
2662
- for (var prop of __getOwnPropSymbols$a(b)) {
2663
- if (__propIsEnum$a.call(b, prop))
2664
- __defNormalProp$9(a, prop, b[prop]);
2659
+ if (__hasOwnProp$9.call(b, prop))
2660
+ __defNormalProp$8(a, prop, b[prop]);
2661
+ if (__getOwnPropSymbols$9)
2662
+ for (var prop of __getOwnPropSymbols$9(b)) {
2663
+ if (__propIsEnum$9.call(b, prop))
2664
+ __defNormalProp$8(a, prop, b[prop]);
2665
2665
  }
2666
2666
  return a;
2667
2667
  };
2668
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2668
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2669
2669
  var __objRest$1 = (source, exclude) => {
2670
2670
  var target = {};
2671
2671
  for (var prop in source)
2672
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
2672
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
2673
2673
  target[prop] = source[prop];
2674
- if (source != null && __getOwnPropSymbols$a)
2675
- for (var prop of __getOwnPropSymbols$a(source)) {
2676
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
2674
+ if (source != null && __getOwnPropSymbols$9)
2675
+ for (var prop of __getOwnPropSymbols$9(source)) {
2676
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
2677
2677
  target[prop] = source[prop];
2678
2678
  }
2679
2679
  return target;
@@ -2754,7 +2754,7 @@ class Parser {
2754
2754
  if (localKey === "asset" && typeof localValue === "object") {
2755
2755
  const assetAST = this.parseObject(localValue, NodeType.Asset, options);
2756
2756
  if (assetAST) {
2757
- return __spreadProps$7(__spreadValues$9({}, rest), {
2757
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2758
2758
  children: [
2759
2759
  ...children2,
2760
2760
  {
@@ -2787,14 +2787,14 @@ class Parser {
2787
2787
  }
2788
2788
  return;
2789
2789
  }).filter((element) => !!element);
2790
- return __spreadProps$7(__spreadValues$9({}, rest), {
2790
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2791
2791
  children: [...children2, ...templateChildren]
2792
2792
  });
2793
2793
  } else if (localValue && this.hooks.determineNodeType.call(localValue) === NodeType.Switch) {
2794
2794
  const localSwitch = this.hooks.parseNode.call(localValue, NodeType.Value, options, NodeType.Switch);
2795
2795
  if (localSwitch && localSwitch.type === NodeType.Value && ((_b = localSwitch.children) == null ? void 0 : _b.length) === 1 && localSwitch.value === void 0) {
2796
2796
  const firstChild = localSwitch.children[0];
2797
- return __spreadProps$7(__spreadValues$9({}, rest), {
2797
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2798
2798
  children: [
2799
2799
  ...children2,
2800
2800
  {
@@ -2805,7 +2805,7 @@ class Parser {
2805
2805
  });
2806
2806
  }
2807
2807
  if (localSwitch) {
2808
- return __spreadProps$7(__spreadValues$9({}, rest), {
2808
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2809
2809
  children: [
2810
2810
  ...children2,
2811
2811
  {
@@ -2837,7 +2837,7 @@ class Parser {
2837
2837
  });
2838
2838
  }
2839
2839
  if (multiNode) {
2840
- return __spreadProps$7(__spreadValues$9({}, rest), {
2840
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2841
2841
  children: [
2842
2842
  ...children2,
2843
2843
  {
@@ -2853,7 +2853,7 @@ class Parser {
2853
2853
  if (determineNodeType === NodeType.Applicability) {
2854
2854
  const parsedNode = this.hooks.parseNode.call(localValue, NodeType.Value, options, determineNodeType);
2855
2855
  if (parsedNode) {
2856
- return __spreadProps$7(__spreadValues$9({}, rest), {
2856
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2857
2857
  children: [
2858
2858
  ...children2,
2859
2859
  {
@@ -2900,25 +2900,25 @@ class Parser {
2900
2900
  }
2901
2901
  }
2902
2902
 
2903
- var __defProp$8 = Object.defineProperty;
2904
- var __defProps$6 = Object.defineProperties;
2905
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2906
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2907
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2908
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2909
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2910
- var __spreadValues$8 = (a, b) => {
2903
+ var __defProp$7 = Object.defineProperty;
2904
+ var __defProps$5 = Object.defineProperties;
2905
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2906
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2907
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2908
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2909
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2910
+ var __spreadValues$7 = (a, b) => {
2911
2911
  for (var prop in b || (b = {}))
2912
- if (__hasOwnProp$9.call(b, prop))
2913
- __defNormalProp$8(a, prop, b[prop]);
2914
- if (__getOwnPropSymbols$9)
2915
- for (var prop of __getOwnPropSymbols$9(b)) {
2916
- if (__propIsEnum$9.call(b, prop))
2917
- __defNormalProp$8(a, prop, b[prop]);
2912
+ if (__hasOwnProp$8.call(b, prop))
2913
+ __defNormalProp$7(a, prop, b[prop]);
2914
+ if (__getOwnPropSymbols$8)
2915
+ for (var prop of __getOwnPropSymbols$8(b)) {
2916
+ if (__propIsEnum$8.call(b, prop))
2917
+ __defNormalProp$7(a, prop, b[prop]);
2918
2918
  }
2919
2919
  return a;
2920
2920
  };
2921
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2921
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2922
2922
  function caresAboutDataChanges(dataChanges, dependencies) {
2923
2923
  if (!dataChanges || !dependencies) {
2924
2924
  return true;
@@ -2928,7 +2928,7 @@ function caresAboutDataChanges(dataChanges, dependencies) {
2928
2928
  return depArray.find((dep) => !!dataChangeArray.find((change) => change === dep || change.contains(dep) || dep.contains(change))) !== void 0;
2929
2929
  }
2930
2930
  function toNodeResolveOptions(resolverOptions) {
2931
- return __spreadProps$6(__spreadValues$8({}, resolverOptions), {
2931
+ return __spreadProps$5(__spreadValues$7({}, resolverOptions), {
2932
2932
  data: {
2933
2933
  model: resolverOptions.model,
2934
2934
  formatValue: (ref, value) => {
@@ -2952,39 +2952,39 @@ function unpackAndPush(item, initial) {
2952
2952
  }
2953
2953
  }
2954
2954
 
2955
- var __defProp$7 = Object.defineProperty;
2956
- var __defProps$5 = Object.defineProperties;
2957
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2958
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2959
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2960
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2961
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2962
- var __spreadValues$7 = (a, b) => {
2955
+ var __defProp$6 = Object.defineProperty;
2956
+ var __defProps$4 = Object.defineProperties;
2957
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
2958
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
2959
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
2960
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
2961
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2962
+ var __spreadValues$6 = (a, b) => {
2963
2963
  for (var prop in b || (b = {}))
2964
- if (__hasOwnProp$8.call(b, prop))
2965
- __defNormalProp$7(a, prop, b[prop]);
2966
- if (__getOwnPropSymbols$8)
2967
- for (var prop of __getOwnPropSymbols$8(b)) {
2968
- if (__propIsEnum$8.call(b, prop))
2969
- __defNormalProp$7(a, prop, b[prop]);
2964
+ if (__hasOwnProp$7.call(b, prop))
2965
+ __defNormalProp$6(a, prop, b[prop]);
2966
+ if (__getOwnPropSymbols$7)
2967
+ for (var prop of __getOwnPropSymbols$7(b)) {
2968
+ if (__propIsEnum$7.call(b, prop))
2969
+ __defNormalProp$6(a, prop, b[prop]);
2970
2970
  }
2971
2971
  return a;
2972
2972
  };
2973
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2973
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
2974
2974
  const withContext = (model) => {
2975
2975
  return {
2976
2976
  get: (binding, options) => {
2977
- return model.get(binding, __spreadValues$7({
2977
+ return model.get(binding, __spreadValues$6({
2978
2978
  context: { model }
2979
2979
  }, options));
2980
2980
  },
2981
2981
  set: (transaction, options) => {
2982
- return model.set(transaction, __spreadValues$7({
2982
+ return model.set(transaction, __spreadValues$6({
2983
2983
  context: { model }
2984
2984
  }, options));
2985
2985
  },
2986
2986
  delete: (binding, options) => {
2987
- return model.delete(binding, __spreadValues$7({
2987
+ return model.delete(binding, __spreadValues$6({
2988
2988
  context: { model }
2989
2989
  }, options));
2990
2990
  }
@@ -3055,7 +3055,7 @@ class Resolver {
3055
3055
  return;
3056
3056
  const value = clonedNode[key];
3057
3057
  if (typeof value === "object" && value !== null) {
3058
- clonedNode[key] = Array.isArray(value) ? [...value] : __spreadValues$7({}, value);
3058
+ clonedNode[key] = Array.isArray(value) ? [...value] : __spreadValues$6({}, value);
3059
3059
  }
3060
3060
  });
3061
3061
  return clonedNode;
@@ -3065,8 +3065,8 @@ class Resolver {
3065
3065
  const dependencyModel = new DependencyModel(options.data.model);
3066
3066
  dependencyModel.trackSubset("core");
3067
3067
  const depModelWithParser = withContext(withParser(dependencyModel, this.options.parseBinding));
3068
- const resolveOptions = this.hooks.resolveOptions.call(__spreadProps$5(__spreadValues$7({}, options), {
3069
- data: __spreadProps$5(__spreadValues$7({}, options.data), {
3068
+ const resolveOptions = this.hooks.resolveOptions.call(__spreadProps$4(__spreadValues$6({}, options), {
3069
+ data: __spreadProps$4(__spreadValues$6({}, options.data), {
3070
3070
  model: depModelWithParser
3071
3071
  }),
3072
3072
  evaluate: (exp) => this.options.evaluator.evaluate(exp, { model: depModelWithParser }),
@@ -3076,7 +3076,7 @@ class Resolver {
3076
3076
  const previousDeps = previousResult == null ? void 0 : previousResult.dependencies;
3077
3077
  const dataChanged = caresAboutDataChanges(dataChanges, previousDeps);
3078
3078
  const shouldUseLastValue = this.hooks.skipResolve.call(!dataChanged, node, resolveOptions);
3079
- const clonedNode = __spreadProps$5(__spreadValues$7({}, this.cloneNode(node)), {
3079
+ const clonedNode = __spreadProps$4(__spreadValues$6({}, this.cloneNode(node)), {
3080
3080
  parent: partiallyResolvedParent
3081
3081
  });
3082
3082
  const resolvedAST = (_a = this.hooks.beforeResolve.call(clonedNode, resolveOptions)) != null ? _a : {
@@ -3084,14 +3084,14 @@ class Resolver {
3084
3084
  };
3085
3085
  const isNestedMultiNode = resolvedAST.type === NodeType.MultiNode && ((_b = partiallyResolvedParent == null ? void 0 : partiallyResolvedParent.parent) == null ? void 0 : _b.type) === NodeType.MultiNode && partiallyResolvedParent.type === NodeType.Value;
3086
3086
  if (previousResult && shouldUseLastValue) {
3087
- const update2 = __spreadProps$5(__spreadValues$7({}, previousResult), {
3087
+ const update2 = __spreadProps$4(__spreadValues$6({}, previousResult), {
3088
3088
  updated: false
3089
3089
  });
3090
3090
  const repopulateASTMapFromCache = (resolvedNode, AST, ASTParent) => {
3091
3091
  var _a2;
3092
3092
  const { node: resolvedASTLocal } = resolvedNode;
3093
3093
  this.ASTMap.set(resolvedASTLocal, AST);
3094
- const resolvedUpdate = __spreadProps$5(__spreadValues$7({}, resolvedNode), {
3094
+ const resolvedUpdate = __spreadProps$4(__spreadValues$6({}, resolvedNode), {
3095
3095
  updated: false
3096
3096
  });
3097
3097
  cacheUpdate.set(AST, resolvedUpdate);
@@ -3143,7 +3143,7 @@ class Resolver {
3143
3143
  }
3144
3144
  }
3145
3145
  updated = updated || childUpdated;
3146
- return __spreadProps$5(__spreadValues$7({}, child), { value: childNode });
3146
+ return __spreadProps$4(__spreadValues$6({}, child), { value: childNode });
3147
3147
  });
3148
3148
  resolvedAST.children = newChildren;
3149
3149
  } else if (resolvedAST.type === NodeType.MultiNode) {
@@ -3173,7 +3173,7 @@ class Resolver {
3173
3173
  if (previousResult && !updated) {
3174
3174
  resolved = previousResult == null ? void 0 : previousResult.value;
3175
3175
  }
3176
- resolved = this.hooks.afterResolve.call(resolved, resolvedAST, __spreadProps$5(__spreadValues$7({}, resolveOptions), {
3176
+ resolved = this.hooks.afterResolve.call(resolved, resolvedAST, __spreadProps$4(__spreadValues$6({}, resolveOptions), {
3177
3177
  getDependencies: (scope) => dependencyModel.getDependencies(scope)
3178
3178
  }));
3179
3179
  const update = {
@@ -3426,17 +3426,17 @@ class ApplicabilityPlugin {
3426
3426
  }
3427
3427
  }
3428
3428
 
3429
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
3430
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
3431
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
3429
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3430
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3431
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
3432
3432
  var __objRest = (source, exclude) => {
3433
3433
  var target = {};
3434
3434
  for (var prop in source)
3435
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
3435
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
3436
3436
  target[prop] = source[prop];
3437
- if (source != null && __getOwnPropSymbols$7)
3438
- for (var prop of __getOwnPropSymbols$7(source)) {
3439
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
3437
+ if (source != null && __getOwnPropSymbols$6)
3438
+ for (var prop of __getOwnPropSymbols$6(source)) {
3439
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
3440
3440
  target[prop] = source[prop];
3441
3441
  }
3442
3442
  return target;
@@ -3512,25 +3512,25 @@ class SwitchPlugin {
3512
3512
  }
3513
3513
  }
3514
3514
 
3515
- var __defProp$6 = Object.defineProperty;
3516
- var __defProps$4 = Object.defineProperties;
3517
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3518
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3519
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3520
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
3521
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3522
- var __spreadValues$6 = (a, b) => {
3515
+ var __defProp$5 = Object.defineProperty;
3516
+ var __defProps$3 = Object.defineProperties;
3517
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3518
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
3519
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
3520
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
3521
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3522
+ var __spreadValues$5 = (a, b) => {
3523
3523
  for (var prop in b || (b = {}))
3524
- if (__hasOwnProp$6.call(b, prop))
3525
- __defNormalProp$6(a, prop, b[prop]);
3526
- if (__getOwnPropSymbols$6)
3527
- for (var prop of __getOwnPropSymbols$6(b)) {
3528
- if (__propIsEnum$6.call(b, prop))
3529
- __defNormalProp$6(a, prop, b[prop]);
3524
+ if (__hasOwnProp$5.call(b, prop))
3525
+ __defNormalProp$5(a, prop, b[prop]);
3526
+ if (__getOwnPropSymbols$5)
3527
+ for (var prop of __getOwnPropSymbols$5(b)) {
3528
+ if (__propIsEnum$5.call(b, prop))
3529
+ __defNormalProp$5(a, prop, b[prop]);
3530
3530
  }
3531
3531
  return a;
3532
3532
  };
3533
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3533
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3534
3534
  class CrossfieldProvider {
3535
3535
  constructor(initialView, parser, logger) {
3536
3536
  this.allValidations = new Set();
@@ -3550,7 +3550,7 @@ class CrossfieldProvider {
3550
3550
  }
3551
3551
  xfieldRefs.forEach((vRef) => {
3552
3552
  var _a2;
3553
- const withDefaults = __spreadValues$6({
3553
+ const withDefaults = __spreadValues$5({
3554
3554
  trigger: "navigation",
3555
3555
  severity: "error"
3556
3556
  }, vRef);
@@ -3601,7 +3601,7 @@ class ViewInstance {
3601
3601
  const parser = new Parser();
3602
3602
  this.hooks.parser.call(parser);
3603
3603
  this.rootNode = parser.parseView(this.initialView);
3604
- this.resolver = new Resolver(this.rootNode, __spreadProps$4(__spreadValues$6({}, this.resolverOptions), {
3604
+ this.resolver = new Resolver(this.rootNode, __spreadProps$3(__spreadValues$5({}, this.resolverOptions), {
3605
3605
  parseNode: parser.parseObject.bind(parser)
3606
3606
  }));
3607
3607
  this.hooks.resolver.call(this.resolver);
@@ -3656,19 +3656,19 @@ class Builder {
3656
3656
  }
3657
3657
  }
3658
3658
 
3659
- var __defProp$5 = Object.defineProperty;
3660
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
3661
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
3662
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
3663
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3664
- var __spreadValues$5 = (a, b) => {
3659
+ var __defProp$4 = Object.defineProperty;
3660
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3661
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3662
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
3663
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3664
+ var __spreadValues$4 = (a, b) => {
3665
3665
  for (var prop in b || (b = {}))
3666
- if (__hasOwnProp$5.call(b, prop))
3667
- __defNormalProp$5(a, prop, b[prop]);
3668
- if (__getOwnPropSymbols$5)
3669
- for (var prop of __getOwnPropSymbols$5(b)) {
3670
- if (__propIsEnum$5.call(b, prop))
3671
- __defNormalProp$5(a, prop, b[prop]);
3666
+ if (__hasOwnProp$4.call(b, prop))
3667
+ __defNormalProp$4(a, prop, b[prop]);
3668
+ if (__getOwnPropSymbols$4)
3669
+ for (var prop of __getOwnPropSymbols$4(b)) {
3670
+ if (__propIsEnum$4.call(b, prop))
3671
+ __defNormalProp$4(a, prop, b[prop]);
3672
3672
  }
3673
3673
  return a;
3674
3674
  };
@@ -3792,7 +3792,7 @@ class FlowInstance {
3792
3792
  if (newCurrentState.value.state_type === "END" && this.flow.onEnd) {
3793
3793
  this.hooks.onEnd.call(this.flow.onEnd);
3794
3794
  }
3795
- this.hooks.transition.call(prevState, __spreadValues$5({}, newCurrentState));
3795
+ this.hooks.transition.call(prevState, __spreadValues$4({}, newCurrentState));
3796
3796
  this.isTransitioning = false;
3797
3797
  this.hooks.afterTransition.call(this);
3798
3798
  }
@@ -3891,25 +3891,25 @@ function replaceParams(message, params) {
3891
3891
  return message.slice().replace(ANY_CHAR_REGEX, (keyExpr) => params[keyExpr.slice(1)] || keyExpr);
3892
3892
  }
3893
3893
 
3894
- var __defProp$4 = Object.defineProperty;
3895
- var __defProps$3 = Object.defineProperties;
3896
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3897
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3898
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3899
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
3900
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3901
- var __spreadValues$4 = (a, b) => {
3894
+ var __defProp$3 = Object.defineProperty;
3895
+ var __defProps$2 = Object.defineProperties;
3896
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3897
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
3898
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
3899
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
3900
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3901
+ var __spreadValues$3 = (a, b) => {
3902
3902
  for (var prop in b || (b = {}))
3903
- if (__hasOwnProp$4.call(b, prop))
3904
- __defNormalProp$4(a, prop, b[prop]);
3905
- if (__getOwnPropSymbols$4)
3906
- for (var prop of __getOwnPropSymbols$4(b)) {
3907
- if (__propIsEnum$4.call(b, prop))
3908
- __defNormalProp$4(a, prop, b[prop]);
3903
+ if (__hasOwnProp$3.call(b, prop))
3904
+ __defNormalProp$3(a, prop, b[prop]);
3905
+ if (__getOwnPropSymbols$3)
3906
+ for (var prop of __getOwnPropSymbols$3(b)) {
3907
+ if (__propIsEnum$3.call(b, prop))
3908
+ __defNormalProp$3(a, prop, b[prop]);
3909
3909
  }
3910
3910
  return a;
3911
3911
  };
3912
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3912
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3913
3913
  const CONTEXT = "validation-binding-tracker";
3914
3914
  class ValidationBindingTrackerViewPlugin {
3915
3915
  constructor(options) {
@@ -3980,8 +3980,8 @@ class ValidationBindingTrackerViewPlugin {
3980
3980
  this.trackedBindings.add(parsed);
3981
3981
  (_d = (_c = this.options.callbacks) == null ? void 0 : _c.onAdd) == null ? void 0 : _d.call(_c, parsed);
3982
3982
  };
3983
- return __spreadProps$3(__spreadValues$4({}, options), {
3984
- validation: __spreadProps$3(__spreadValues$4({}, options.validation), {
3983
+ return __spreadProps$2(__spreadValues$3({}, options), {
3984
+ validation: __spreadProps$2(__spreadValues$3({}, options.validation), {
3985
3985
  get: (binding, getOptions) => {
3986
3986
  var _a, _b;
3987
3987
  if (getOptions == null ? void 0 : getOptions.track) {
@@ -4072,25 +4072,25 @@ class ValidationBindingTrackerViewPlugin {
4072
4072
  }
4073
4073
  }
4074
4074
 
4075
- var __defProp$3 = Object.defineProperty;
4076
- var __defProps$2 = Object.defineProperties;
4077
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4078
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4079
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4080
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4081
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4082
- var __spreadValues$3 = (a, b) => {
4075
+ var __defProp$2 = Object.defineProperty;
4076
+ var __defProps$1 = Object.defineProperties;
4077
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4078
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
4079
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
4080
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
4081
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4082
+ var __spreadValues$2 = (a, b) => {
4083
4083
  for (var prop in b || (b = {}))
4084
- if (__hasOwnProp$3.call(b, prop))
4085
- __defNormalProp$3(a, prop, b[prop]);
4086
- if (__getOwnPropSymbols$3)
4087
- for (var prop of __getOwnPropSymbols$3(b)) {
4088
- if (__propIsEnum$3.call(b, prop))
4089
- __defNormalProp$3(a, prop, b[prop]);
4084
+ if (__hasOwnProp$2.call(b, prop))
4085
+ __defNormalProp$2(a, prop, b[prop]);
4086
+ if (__getOwnPropSymbols$2)
4087
+ for (var prop of __getOwnPropSymbols$2(b)) {
4088
+ if (__propIsEnum$2.call(b, prop))
4089
+ __defNormalProp$2(a, prop, b[prop]);
4090
4090
  }
4091
4091
  return a;
4092
4092
  };
4093
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4093
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4094
4094
  const SCHEMA_VALIDATION_PROVIDER_NAME = "schema";
4095
4095
  const VIEW_VALIDATION_PROVIDER_NAME = "view";
4096
4096
  const VALIDATION_PROVIDER_NAME_SYMBOL = Symbol.for("validation-provider-name");
@@ -4143,12 +4143,9 @@ class ValidatedBinding {
4143
4143
  getAll() {
4144
4144
  return this.applicableValidations.reduce((all, statefulObj) => {
4145
4145
  if (statefulObj.state === "active" && statefulObj.response) {
4146
- return [
4147
- ...all,
4148
- __spreadProps$2(__spreadValues$3({}, statefulObj.response), {
4149
- blocking: this.checkIfBlocking(statefulObj)
4150
- })
4151
- ];
4146
+ all.push(__spreadProps$1(__spreadValues$2({}, statefulObj.response), {
4147
+ blocking: this.checkIfBlocking(statefulObj)
4148
+ }));
4152
4149
  }
4153
4150
  return all;
4154
4151
  }, []);
@@ -4158,7 +4155,7 @@ class ValidatedBinding {
4158
4155
  return statefulObj.state === "active" && statefulObj.response;
4159
4156
  });
4160
4157
  if ((firstInvalid == null ? void 0 : firstInvalid.state) === "active") {
4161
- return __spreadProps$2(__spreadValues$3({}, firstInvalid.response), {
4158
+ return __spreadProps$1(__spreadValues$2({}, firstInvalid.response), {
4162
4159
  blocking: this.checkIfBlocking(firstInvalid)
4163
4160
  });
4164
4161
  }
@@ -4193,7 +4190,7 @@ class ValidatedBinding {
4193
4190
  state: response ? "active" : "none",
4194
4191
  isBlockingNavigation,
4195
4192
  dismissable: obj.value.severity === "warning" && phase === "navigation",
4196
- response: response ? __spreadProps$2(__spreadValues$3({}, obj.value), {
4193
+ response: response ? __spreadProps$1(__spreadValues$2({}, obj.value), {
4197
4194
  message: (_b = response.message) != null ? _b : "Something is broken",
4198
4195
  severity: obj.value.severity,
4199
4196
  displayTarget: (_c = obj.value.displayTarget) != null ? _c : "field"
@@ -4348,7 +4345,7 @@ class ValidationController {
4348
4345
  if (!this.options) {
4349
4346
  return;
4350
4347
  }
4351
- const bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(__spreadProps$2(__spreadValues$3({}, this.options), {
4348
+ const bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(__spreadProps$1(__spreadValues$2({}, this.options), {
4352
4349
  callbacks: {
4353
4350
  onAdd: (binding) => {
4354
4351
  if (!this.options || this.getValidationForBinding(binding) !== void 0) {
@@ -4383,12 +4380,10 @@ class ValidationController {
4383
4380
  if (trigger === "load") {
4384
4381
  const possibleValidations = this.getValidationProviders().reduce((vals, provider) => {
4385
4382
  var _a2, _b, _c, _d;
4386
- return [
4387
- ...vals,
4388
- ...(_d = (_c = (_b = (_a2 = provider.provider).getValidationsForBinding) == null ? void 0 : _b.call(_a2, binding)) == null ? void 0 : _c.map((valObj) => __spreadProps$2(__spreadValues$3({}, valObj), {
4389
- [VALIDATION_PROVIDER_NAME_SYMBOL]: provider.source
4390
- }))) != null ? _d : []
4391
- ];
4383
+ vals.push(...(_d = (_c = (_b = (_a2 = provider.provider).getValidationsForBinding) == null ? void 0 : _b.call(_a2, binding)) == null ? void 0 : _c.map((valObj) => __spreadProps$1(__spreadValues$2({}, valObj), {
4384
+ [VALIDATION_PROVIDER_NAME_SYMBOL]: provider.source
4385
+ }))) != null ? _d : []);
4386
+ return vals;
4392
4387
  }, []);
4393
4388
  if (possibleValidations.length === 0) {
4394
4389
  return;
@@ -4425,12 +4420,12 @@ class ValidationController {
4425
4420
  const model = {
4426
4421
  get(b, options) {
4427
4422
  weakBindings.add(isBinding(b) ? binding : context.parseBinding(b));
4428
- return context.model.get(b, __spreadProps$2(__spreadValues$3({}, options), { includeInvalid: true }));
4423
+ return context.model.get(b, __spreadProps$1(__spreadValues$2({}, options), { includeInvalid: true }));
4429
4424
  },
4430
4425
  set: context.model.set,
4431
4426
  delete: context.model.delete
4432
4427
  };
4433
- const result = handler == null ? void 0 : handler(__spreadProps$2(__spreadValues$3({}, context), {
4428
+ const result = handler == null ? void 0 : handler(__spreadProps$1(__spreadValues$2({}, context), {
4434
4429
  evaluate: (exp, options = { model }) => context.evaluate(exp, options),
4435
4430
  model,
4436
4431
  validation: validationObj,
@@ -4721,25 +4716,6 @@ class AssetTransformCorePlugin {
4721
4716
  }
4722
4717
  }
4723
4718
 
4724
- var __defProp$2 = Object.defineProperty;
4725
- var __defProps$1 = Object.defineProperties;
4726
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4727
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
4728
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
4729
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
4730
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4731
- var __spreadValues$2 = (a, b) => {
4732
- for (var prop in b || (b = {}))
4733
- if (__hasOwnProp$2.call(b, prop))
4734
- __defNormalProp$2(a, prop, b[prop]);
4735
- if (__getOwnPropSymbols$2)
4736
- for (var prop of __getOwnPropSymbols$2(b)) {
4737
- if (__propIsEnum$2.call(b, prop))
4738
- __defNormalProp$2(a, prop, b[prop]);
4739
- }
4740
- return a;
4741
- };
4742
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4743
4719
  class ViewController {
4744
4720
  constructor(initialViews, options) {
4745
4721
  this.hooks = {
@@ -4749,9 +4725,10 @@ class ViewController {
4749
4725
  this.transformRegistry = new _player_ui_partial_match_registry__WEBPACK_IMPORTED_MODULE_11__["Registry"]();
4750
4726
  this.optimizeUpdates = true;
4751
4727
  this.viewOptions = options;
4752
- this.viewMap = initialViews.reduce((viewMap, view) => __spreadProps$1(__spreadValues$2({}, viewMap), {
4753
- [view.id]: view
4754
- }), {});
4728
+ this.viewMap = initialViews.reduce((viewMap, view) => {
4729
+ viewMap[view.id] = view;
4730
+ return viewMap;
4731
+ }, {});
4755
4732
  new AssetTransformCorePlugin(this.transformRegistry).apply(this);
4756
4733
  options.flowController.hooks.flow.tap("viewController", (flow) => {
4757
4734
  flow.hooks.transition.tap("viewController", (_oldState, newState) => {
@@ -4762,17 +4739,18 @@ class ViewController {
4762
4739
  }
4763
4740
  });
4764
4741
  });
4765
- const update = (updates) => {
4742
+ const update = (updates, silent = false) => {
4766
4743
  if (this.currentView) {
4767
4744
  if (this.optimizeUpdates) {
4768
- this.queueUpdate(updates);
4745
+ this.queueUpdate(updates, silent);
4769
4746
  } else {
4770
4747
  this.currentView.update();
4771
4748
  }
4772
4749
  }
4773
4750
  };
4774
- options.model.hooks.onUpdate.tap("viewController", (updates) => {
4775
- update(new Set(updates.map((t) => t.binding)));
4751
+ options.model.hooks.onUpdate.tap("viewController", (updates, updateOptions) => {
4752
+ var _a;
4753
+ update(new Set(updates.map((t) => t.binding)), (_a = updateOptions == null ? void 0 : updateOptions.silent) != null ? _a : false);
4776
4754
  });
4777
4755
  options.model.hooks.onDelete.tap("viewController", (binding) => {
4778
4756
  const parentBinding = binding.parent();
@@ -4784,7 +4762,7 @@ class ViewController {
4784
4762
  }
4785
4763
  });
4786
4764
  }
4787
- queueUpdate(bindings) {
4765
+ queueUpdate(bindings, silent = false) {
4788
4766
  var _a;
4789
4767
  if ((_a = this.pendingUpdate) == null ? void 0 : _a.changedBindings) {
4790
4768
  this.pendingUpdate.changedBindings = new Set([
@@ -4792,7 +4770,10 @@ class ViewController {
4792
4770
  ...bindings
4793
4771
  ]);
4794
4772
  } else {
4795
- this.pendingUpdate = { changedBindings: bindings };
4773
+ this.pendingUpdate = { changedBindings: bindings, scheduled: false };
4774
+ }
4775
+ if (!this.pendingUpdate.scheduled && !silent) {
4776
+ this.pendingUpdate.scheduled = true;
4796
4777
  queue_microtask__WEBPACK_IMPORTED_MODULE_10___default()(() => {
4797
4778
  var _a2, _b;
4798
4779
  const updates = (_a2 = this.pendingUpdate) == null ? void 0 : _a2.changedBindings;
@@ -5151,8 +5132,8 @@ var __async = (__this, __arguments, generator) => {
5151
5132
  step((generator = generator.apply(__this, __arguments)).next());
5152
5133
  });
5153
5134
  };
5154
- const PLAYER_VERSION = "0.7.0";
5155
- const COMMIT = "00b3c9d34a6983cf364452a8b24b30e0c369a222";
5135
+ const PLAYER_VERSION = "0.7.1-next.0";
5136
+ const COMMIT = "b0282a1b53e7a91069e97814edec091b3de9ec5f";
5156
5137
  const _Player = class {
5157
5138
  constructor(config) {
5158
5139
  this.logger = new TapableLogger();
@@ -5532,7 +5513,10 @@ const isNotEmpty = (ctx, val) => {
5532
5513
  const concat = Object(_player_ui_player__WEBPACK_IMPORTED_MODULE_1__["withoutContext"])((...args) => {
5533
5514
  if (args.every((v) => Array.isArray(v))) {
5534
5515
  const arrayArgs = args;
5535
- return arrayArgs.reduce((merged, next) => [...merged, ...next]);
5516
+ return arrayArgs.reduce((merged, next) => {
5517
+ merged.push(...next);
5518
+ return merged;
5519
+ });
5536
5520
  }
5537
5521
  return args.reduce((merged, next) => merged + (next != null ? next : ""), "");
5538
5522
  });