@player-ui/async-node-plugin 0.15.3-next.0 → 0.15.3-next.2
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.
|
@@ -118,6 +118,7 @@ function _inherits(subClass, superClass) {
|
|
|
118
118
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
119
119
|
}
|
|
120
120
|
function _instanceof(left, right) {
|
|
121
|
+
"@swc/helpers - instanceof";
|
|
121
122
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
122
123
|
return !!right[Symbol.hasInstance](left);
|
|
123
124
|
} else {
|
|
@@ -201,12 +202,22 @@ function _object_spread_props(target, source) {
|
|
|
201
202
|
}
|
|
202
203
|
function _object_without_properties(source, excluded) {
|
|
203
204
|
if (source == null) return {};
|
|
204
|
-
var target =
|
|
205
|
-
|
|
205
|
+
var target = {}, sourceKeys, key, i;
|
|
206
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
207
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
208
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
209
|
+
key = sourceKeys[i];
|
|
210
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
211
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
212
|
+
target[key] = source[key];
|
|
213
|
+
}
|
|
214
|
+
return target;
|
|
215
|
+
}
|
|
216
|
+
target = _object_without_properties_loose(source, excluded);
|
|
206
217
|
if (Object.getOwnPropertySymbols) {
|
|
207
|
-
|
|
208
|
-
for(i = 0; i <
|
|
209
|
-
key =
|
|
218
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
219
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
220
|
+
key = sourceKeys[i];
|
|
210
221
|
if (excluded.indexOf(key) >= 0) continue;
|
|
211
222
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
212
223
|
target[key] = source[key];
|
|
@@ -216,12 +227,11 @@ function _object_without_properties(source, excluded) {
|
|
|
216
227
|
}
|
|
217
228
|
function _object_without_properties_loose(source, excluded) {
|
|
218
229
|
if (source == null) return {};
|
|
219
|
-
var target = {};
|
|
220
|
-
var sourceKeys = Object.keys(source);
|
|
221
|
-
var key, i;
|
|
230
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
222
231
|
for(i = 0; i < sourceKeys.length; i++){
|
|
223
232
|
key = sourceKeys[i];
|
|
224
233
|
if (excluded.indexOf(key) >= 0) continue;
|
|
234
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
225
235
|
target[key] = source[key];
|
|
226
236
|
}
|
|
227
237
|
return target;
|
|
@@ -303,9 +313,17 @@ function _ts_generator(thisArg, body) {
|
|
|
303
313
|
},
|
|
304
314
|
trys: [],
|
|
305
315
|
ops: []
|
|
306
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
307
|
-
return
|
|
308
|
-
|
|
316
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
317
|
+
return d(g, "next", {
|
|
318
|
+
value: verb(0)
|
|
319
|
+
}), d(g, "throw", {
|
|
320
|
+
value: verb(1)
|
|
321
|
+
}), d(g, "return", {
|
|
322
|
+
value: verb(2)
|
|
323
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
324
|
+
value: function() {
|
|
325
|
+
return this;
|
|
326
|
+
}
|
|
309
327
|
}), g;
|
|
310
328
|
function verb(n) {
|
|
311
329
|
return function(v) {
|
|
@@ -432,7 +450,7 @@ var AsyncNodePlugin = function() {
|
|
|
432
450
|
};
|
|
433
451
|
var createObjectMatcher = function createObjectMatcher(partialObj) {
|
|
434
452
|
var pairs = traverseObj(partialObj);
|
|
435
|
-
var matchFunction = function(searchObj) {
|
|
453
|
+
var matchFunction = function matchFunction(searchObj) {
|
|
436
454
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
437
455
|
try {
|
|
438
456
|
for(var _iterator = Array.from(pairs)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -462,7 +480,7 @@ var AsyncNodePlugin = function() {
|
|
|
462
480
|
return matchFunction;
|
|
463
481
|
};
|
|
464
482
|
var createBasicMatcher = function createBasicMatcher(seed) {
|
|
465
|
-
var matcher = function(match) {
|
|
483
|
+
var matcher = function matcher(match) {
|
|
466
484
|
return seed === match;
|
|
467
485
|
};
|
|
468
486
|
matcher.count = 1;
|
|
@@ -530,21 +548,21 @@ var AsyncNodePlugin = function() {
|
|
|
530
548
|
return middleware;
|
|
531
549
|
}
|
|
532
550
|
return {
|
|
533
|
-
get: function(binding, options) {
|
|
551
|
+
get: function get(binding, options) {
|
|
534
552
|
var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
|
|
535
553
|
if (middleware.get) {
|
|
536
554
|
return middleware.get(binding, resolvedOptions, next);
|
|
537
555
|
}
|
|
538
556
|
return next === null || next === void 0 ? void 0 : next.get(binding, resolvedOptions);
|
|
539
557
|
},
|
|
540
|
-
set: function(transaction, options) {
|
|
558
|
+
set: function set(transaction, options) {
|
|
541
559
|
var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
|
|
542
560
|
if (middleware.set) {
|
|
543
561
|
return middleware.set(transaction, resolvedOptions, next);
|
|
544
562
|
}
|
|
545
563
|
return next === null || next === void 0 ? void 0 : next.set(transaction, resolvedOptions);
|
|
546
564
|
},
|
|
547
|
-
delete: function(binding, options) {
|
|
565
|
+
delete: function _delete(binding, options) {
|
|
548
566
|
var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
|
|
549
567
|
if (middleware.delete) {
|
|
550
568
|
return middleware.delete(binding, resolvedOptions, next);
|
|
@@ -568,15 +586,15 @@ var AsyncNodePlugin = function() {
|
|
|
568
586
|
return model;
|
|
569
587
|
}
|
|
570
588
|
return {
|
|
571
|
-
get: function(binding, options) {
|
|
589
|
+
get: function get(binding, options) {
|
|
572
590
|
var _createModelWithOptions;
|
|
573
591
|
return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.get(binding, options);
|
|
574
592
|
},
|
|
575
|
-
set: function(transaction, options) {
|
|
593
|
+
set: function set(transaction, options) {
|
|
576
594
|
var _createModelWithOptions;
|
|
577
595
|
return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.set(transaction, options);
|
|
578
596
|
},
|
|
579
|
-
delete: function(binding, options) {
|
|
597
|
+
delete: function _delete(binding, options) {
|
|
580
598
|
var _createModelWithOptions;
|
|
581
599
|
return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.delete(binding, options);
|
|
582
600
|
}
|
|
@@ -650,13 +668,13 @@ var AsyncNodePlugin = function() {
|
|
|
650
668
|
return ch0 === OCURL_CODE && ch1 === OCURL_CODE;
|
|
651
669
|
};
|
|
652
670
|
var parseExpression = function parseExpression(expr, options) {
|
|
653
|
-
var
|
|
654
|
-
var strictMode = (
|
|
671
|
+
var _ref;
|
|
672
|
+
var strictMode = (_ref = options === null || options === void 0 ? void 0 : options.strict) !== null && _ref !== void 0 ? _ref : true;
|
|
655
673
|
var charAtFunc = expr.charAt;
|
|
656
674
|
var charCodeAtFunc = expr.charCodeAt;
|
|
657
675
|
var length = expr.length;
|
|
658
676
|
var index = 0;
|
|
659
|
-
var getLocation = function(startChar) {
|
|
677
|
+
var getLocation = function getLocation(startChar) {
|
|
660
678
|
return {
|
|
661
679
|
start: {
|
|
662
680
|
character: startChar
|
|
@@ -1423,17 +1441,17 @@ var AsyncNodePlugin = function() {
|
|
|
1423
1441
|
return _object_spread_props(_object_spread({}, resolverOptions), {
|
|
1424
1442
|
data: {
|
|
1425
1443
|
model: resolverOptions.model,
|
|
1426
|
-
formatValue: function(ref, value) {
|
|
1444
|
+
formatValue: function formatValue(ref, value) {
|
|
1427
1445
|
if (resolverOptions.formatValue) {
|
|
1428
1446
|
return resolverOptions.formatValue(ref, value);
|
|
1429
1447
|
}
|
|
1430
1448
|
return value;
|
|
1431
1449
|
},
|
|
1432
|
-
format: function(bindingLike, value) {
|
|
1450
|
+
format: function format(bindingLike, value) {
|
|
1433
1451
|
return resolverOptions.format ? resolverOptions.format(isBinding(bindingLike) ? bindingLike : resolverOptions.parseBinding(bindingLike), value) : value;
|
|
1434
1452
|
}
|
|
1435
1453
|
},
|
|
1436
|
-
evaluate: function(exp) {
|
|
1454
|
+
evaluate: function evaluate(exp) {
|
|
1437
1455
|
return resolverOptions.evaluator.evaluate(exp, resolverOptions);
|
|
1438
1456
|
}
|
|
1439
1457
|
});
|
|
@@ -1501,27 +1519,27 @@ var AsyncNodePlugin = function() {
|
|
|
1501
1519
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1502
1520
|
var __getProtoOf = Object.getPrototypeOf;
|
|
1503
1521
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1504
|
-
var __commonJS = function(cb, mod) {
|
|
1522
|
+
var __commonJS = function __commonJS(cb, mod) {
|
|
1505
1523
|
return function __require() {
|
|
1506
1524
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
|
|
1507
1525
|
exports: {}
|
|
1508
1526
|
}).exports, mod), mod.exports;
|
|
1509
1527
|
};
|
|
1510
1528
|
};
|
|
1511
|
-
var __export = function(target, all) {
|
|
1529
|
+
var __export = function __export(target, all) {
|
|
1512
1530
|
for(var name in all)__defProp(target, name, {
|
|
1513
1531
|
get: all[name],
|
|
1514
1532
|
enumerable: true
|
|
1515
1533
|
});
|
|
1516
1534
|
};
|
|
1517
|
-
var __copyProps = function(to, from, except, desc) {
|
|
1535
|
+
var __copyProps = function __copyProps(to, from, except, desc) {
|
|
1518
1536
|
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
1519
1537
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1520
1538
|
try {
|
|
1521
1539
|
var _loop = function() {
|
|
1522
1540
|
var key = _step.value;
|
|
1523
1541
|
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
1524
|
-
get: function() {
|
|
1542
|
+
get: function get() {
|
|
1525
1543
|
return from[key];
|
|
1526
1544
|
},
|
|
1527
1545
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
@@ -1545,7 +1563,7 @@ var AsyncNodePlugin = function() {
|
|
|
1545
1563
|
}
|
|
1546
1564
|
return to;
|
|
1547
1565
|
};
|
|
1548
|
-
var __toESM = function(mod, isNodeMode, target) {
|
|
1566
|
+
var __toESM = function __toESM(mod, isNodeMode, target) {
|
|
1549
1567
|
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
1550
1568
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1551
1569
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -1555,7 +1573,7 @@ var AsyncNodePlugin = function() {
|
|
|
1555
1573
|
enumerable: true
|
|
1556
1574
|
}) : target, mod);
|
|
1557
1575
|
};
|
|
1558
|
-
var __toCommonJS = function(mod) {
|
|
1576
|
+
var __toCommonJS = function __toCommonJS(mod) {
|
|
1559
1577
|
return __copyProps(__defProp({}, "__esModule", {
|
|
1560
1578
|
value: true
|
|
1561
1579
|
}), mod);
|
|
@@ -1657,7 +1675,7 @@ var AsyncNodePlugin = function() {
|
|
|
1657
1675
|
function toError(err) {
|
|
1658
1676
|
try {
|
|
1659
1677
|
return _instanceof(err, Error) ? err : new Error("Value that is not an instance of Error was thrown: ".concat(err));
|
|
1660
|
-
} catch (
|
|
1678
|
+
} catch (unused) {
|
|
1661
1679
|
return new Error("Failed to stringify non-instance of Error that was thrown.This is possibly due to the fact that toString() method of the valuedoesn't return a primitive value.");
|
|
1662
1680
|
}
|
|
1663
1681
|
}
|
|
@@ -1958,7 +1976,7 @@ var AsyncNodePlugin = function() {
|
|
|
1958
1976
|
var require_p_defer = __commonJS({
|
|
1959
1977
|
"../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/p-defer@3.0.0/node_modules/p-defer/index.js": function(exports, module) {
|
|
1960
1978
|
"use strict";
|
|
1961
|
-
var pDefer = function() {
|
|
1979
|
+
var pDefer = function pDefer() {
|
|
1962
1980
|
var deferred2 = {};
|
|
1963
1981
|
deferred2.promise = new Promise(function(resolve, reject) {
|
|
1964
1982
|
deferred2.resolve = resolve;
|
|
@@ -2067,19 +2085,19 @@ var AsyncNodePlugin = function() {
|
|
|
2067
2085
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/async-node/core/src/index.ts
|
|
2068
2086
|
var src_exports = {};
|
|
2069
2087
|
__export(src_exports, {
|
|
2070
|
-
AsyncNodePlugin: function() {
|
|
2088
|
+
AsyncNodePlugin: function AsyncNodePlugin1() {
|
|
2071
2089
|
return AsyncNodePlugin;
|
|
2072
2090
|
},
|
|
2073
|
-
AsyncNodePluginPlugin: function() {
|
|
2091
|
+
AsyncNodePluginPlugin: function AsyncNodePluginPlugin1() {
|
|
2074
2092
|
return AsyncNodePluginPlugin;
|
|
2075
2093
|
},
|
|
2076
|
-
AsyncNodePluginSymbol: function() {
|
|
2094
|
+
AsyncNodePluginSymbol: function AsyncNodePluginSymbol1() {
|
|
2077
2095
|
return AsyncNodePluginSymbol;
|
|
2078
2096
|
},
|
|
2079
|
-
asyncTransform: function() {
|
|
2097
|
+
asyncTransform: function asyncTransform1() {
|
|
2080
2098
|
return asyncTransform;
|
|
2081
2099
|
},
|
|
2082
|
-
createAsyncTransform: function() {
|
|
2100
|
+
createAsyncTransform: function createAsyncTransform1() {
|
|
2083
2101
|
return createAsyncTransform;
|
|
2084
2102
|
}
|
|
2085
2103
|
});
|
|
@@ -2604,7 +2622,7 @@ var AsyncNodePlugin = function() {
|
|
|
2604
2622
|
}
|
|
2605
2623
|
return pairs;
|
|
2606
2624
|
}
|
|
2607
|
-
var createSortedArray = function() {
|
|
2625
|
+
var createSortedArray = function createSortedArray() {
|
|
2608
2626
|
return new import_sorted_array.default([], function(c) {
|
|
2609
2627
|
return c.matcher.count;
|
|
2610
2628
|
});
|
|
@@ -2700,38 +2718,38 @@ var AsyncNodePlugin = function() {
|
|
|
2700
2718
|
}();
|
|
2701
2719
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@player-ui+player@0.0.0/node_modules/@player-ui/player/dist/index.mjs
|
|
2702
2720
|
var __defProp2 = Object.defineProperty;
|
|
2703
|
-
var __export2 = function(target, all) {
|
|
2721
|
+
var __export2 = function __export2(target, all) {
|
|
2704
2722
|
for(var name in all)__defProp2(target, name, {
|
|
2705
2723
|
get: all[name],
|
|
2706
2724
|
enumerable: true
|
|
2707
2725
|
});
|
|
2708
2726
|
};
|
|
2709
|
-
var toValue = function(value) {
|
|
2727
|
+
var toValue = function toValue(value) {
|
|
2710
2728
|
return {
|
|
2711
2729
|
name: "Value",
|
|
2712
2730
|
value: value
|
|
2713
2731
|
};
|
|
2714
2732
|
};
|
|
2715
|
-
var toExpression = function(value) {
|
|
2733
|
+
var toExpression = function toExpression(value) {
|
|
2716
2734
|
return {
|
|
2717
2735
|
name: "Expression",
|
|
2718
2736
|
value: value
|
|
2719
2737
|
};
|
|
2720
2738
|
};
|
|
2721
|
-
var toPath = function(path) {
|
|
2739
|
+
var toPath = function toPath(path) {
|
|
2722
2740
|
return {
|
|
2723
2741
|
name: "PathNode",
|
|
2724
2742
|
path: path
|
|
2725
2743
|
};
|
|
2726
2744
|
};
|
|
2727
|
-
var toQuery = function(key, value) {
|
|
2745
|
+
var toQuery = function toQuery(key, value) {
|
|
2728
2746
|
return {
|
|
2729
2747
|
name: "Query",
|
|
2730
2748
|
key: key,
|
|
2731
2749
|
value: value
|
|
2732
2750
|
};
|
|
2733
2751
|
};
|
|
2734
|
-
var toConcatenatedNode = function(values) {
|
|
2752
|
+
var toConcatenatedNode = function toConcatenatedNode(values) {
|
|
2735
2753
|
if (values.length === 1) {
|
|
2736
2754
|
return values[0];
|
|
2737
2755
|
}
|
|
@@ -2749,7 +2767,7 @@ var AsyncNodePlugin = function() {
|
|
|
2749
2767
|
var SINGLE_QUOTE = "'";
|
|
2750
2768
|
var DOUBLE_QUOTE = '"';
|
|
2751
2769
|
var BACK_TICK = "`";
|
|
2752
|
-
var isIdentifierChar = function(char) {
|
|
2770
|
+
var isIdentifierChar = function isIdentifierChar(char) {
|
|
2753
2771
|
if (!char) {
|
|
2754
2772
|
return false;
|
|
2755
2773
|
}
|
|
@@ -2769,10 +2787,10 @@ var AsyncNodePlugin = function() {
|
|
|
2769
2787
|
charCode === 125;
|
|
2770
2788
|
return !matches;
|
|
2771
2789
|
};
|
|
2772
|
-
var parse = function(path) {
|
|
2790
|
+
var parse = function parse(path) {
|
|
2773
2791
|
var index = 1;
|
|
2774
2792
|
var ch = path.charAt(0);
|
|
2775
|
-
var next = function(expected) {
|
|
2793
|
+
var next = function next(expected) {
|
|
2776
2794
|
if (expected && ch !== expected) {
|
|
2777
2795
|
throw new Error("Expected char: ".concat(expected, " but got: ").concat(ch));
|
|
2778
2796
|
}
|
|
@@ -2780,12 +2798,12 @@ var AsyncNodePlugin = function() {
|
|
|
2780
2798
|
index += 1;
|
|
2781
2799
|
return ch;
|
|
2782
2800
|
};
|
|
2783
|
-
var whitespace = function() {
|
|
2801
|
+
var whitespace = function whitespace() {
|
|
2784
2802
|
while(ch === " "){
|
|
2785
2803
|
next();
|
|
2786
2804
|
}
|
|
2787
2805
|
};
|
|
2788
|
-
var identifier = function() {
|
|
2806
|
+
var identifier = function identifier() {
|
|
2789
2807
|
var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
2790
2808
|
if (!isIdentifierChar(ch)) {
|
|
2791
2809
|
return;
|
|
@@ -2811,7 +2829,7 @@ var AsyncNodePlugin = function() {
|
|
|
2811
2829
|
return toValue(value);
|
|
2812
2830
|
}
|
|
2813
2831
|
};
|
|
2814
|
-
var expression = function() {
|
|
2832
|
+
var expression = function expression() {
|
|
2815
2833
|
if (ch === BACK_TICK) {
|
|
2816
2834
|
next(BACK_TICK);
|
|
2817
2835
|
var exp = ch;
|
|
@@ -2827,7 +2845,7 @@ var AsyncNodePlugin = function() {
|
|
|
2827
2845
|
}
|
|
2828
2846
|
}
|
|
2829
2847
|
};
|
|
2830
|
-
var regex = function(match) {
|
|
2848
|
+
var regex = function regex(match) {
|
|
2831
2849
|
if (!(ch === null || ch === void 0 ? void 0 : ch.match(match))) {
|
|
2832
2850
|
return;
|
|
2833
2851
|
}
|
|
@@ -2842,7 +2860,7 @@ var AsyncNodePlugin = function() {
|
|
|
2842
2860
|
return toValue(value);
|
|
2843
2861
|
}
|
|
2844
2862
|
};
|
|
2845
|
-
var nestedPath = function() {
|
|
2863
|
+
var nestedPath = function nestedPath() {
|
|
2846
2864
|
if (ch === OPEN_CURL) {
|
|
2847
2865
|
next(OPEN_CURL);
|
|
2848
2866
|
next(OPEN_CURL);
|
|
@@ -2852,12 +2870,12 @@ var AsyncNodePlugin = function() {
|
|
|
2852
2870
|
return modelRef;
|
|
2853
2871
|
}
|
|
2854
2872
|
};
|
|
2855
|
-
var simpleSegment = function() {
|
|
2873
|
+
var simpleSegment = function simpleSegment() {
|
|
2856
2874
|
var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
2857
|
-
var
|
|
2875
|
+
var _ref, _nestedPath;
|
|
2858
2876
|
return (_ref = (_nestedPath = nestedPath()) !== null && _nestedPath !== void 0 ? _nestedPath : expression()) !== null && _ref !== void 0 ? _ref : identifier(allowBoolValue);
|
|
2859
2877
|
};
|
|
2860
|
-
var segment = function() {
|
|
2878
|
+
var segment = function segment() {
|
|
2861
2879
|
var segments = [];
|
|
2862
2880
|
var nextSegment = simpleSegment();
|
|
2863
2881
|
while(nextSegment !== void 0){
|
|
@@ -2869,7 +2887,7 @@ var AsyncNodePlugin = function() {
|
|
|
2869
2887
|
}
|
|
2870
2888
|
return toConcatenatedNode(segments);
|
|
2871
2889
|
};
|
|
2872
|
-
var optionallyQuotedSegment = function() {
|
|
2890
|
+
var optionallyQuotedSegment = function optionallyQuotedSegment() {
|
|
2873
2891
|
var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
2874
2892
|
whitespace();
|
|
2875
2893
|
if (ch === SINGLE_QUOTE || ch === DOUBLE_QUOTE) {
|
|
@@ -2881,7 +2899,7 @@ var AsyncNodePlugin = function() {
|
|
|
2881
2899
|
}
|
|
2882
2900
|
return simpleSegment(allowBoolValue);
|
|
2883
2901
|
};
|
|
2884
|
-
var equals = function() {
|
|
2902
|
+
var equals = function equals() {
|
|
2885
2903
|
if (ch !== EQUALS) {
|
|
2886
2904
|
return false;
|
|
2887
2905
|
}
|
|
@@ -2890,7 +2908,7 @@ var AsyncNodePlugin = function() {
|
|
|
2890
2908
|
}
|
|
2891
2909
|
return true;
|
|
2892
2910
|
};
|
|
2893
|
-
var parseBracket = function() {
|
|
2911
|
+
var parseBracket = function parseBracket() {
|
|
2894
2912
|
if (ch === OPEN_BRACKET) {
|
|
2895
2913
|
next(OPEN_BRACKET);
|
|
2896
2914
|
whitespace();
|
|
@@ -2912,7 +2930,7 @@ var AsyncNodePlugin = function() {
|
|
|
2912
2930
|
return value;
|
|
2913
2931
|
}
|
|
2914
2932
|
};
|
|
2915
|
-
var parseSegmentAndBrackets = function() {
|
|
2933
|
+
var parseSegmentAndBrackets = function parseSegmentAndBrackets() {
|
|
2916
2934
|
var parsed = [];
|
|
2917
2935
|
var firstSegment = segment();
|
|
2918
2936
|
if (firstSegment) {
|
|
@@ -2929,7 +2947,7 @@ var AsyncNodePlugin = function() {
|
|
|
2929
2947
|
}
|
|
2930
2948
|
return parsed;
|
|
2931
2949
|
};
|
|
2932
|
-
var parsePath = function() {
|
|
2950
|
+
var parsePath = function parsePath() {
|
|
2933
2951
|
var parts = [];
|
|
2934
2952
|
var nextSegment = parseSegmentAndBrackets();
|
|
2935
2953
|
while(nextSegment !== void 0){
|
|
@@ -3040,6 +3058,7 @@ var AsyncNodePlugin = function() {
|
|
|
3040
3058
|
return _BindingInstance;
|
|
3041
3059
|
}();
|
|
3042
3060
|
function resolveBindingAST(bindingPathNode, options, hooks) {
|
|
3061
|
+
var _context_updates;
|
|
3043
3062
|
var context = {
|
|
3044
3063
|
updates: {},
|
|
3045
3064
|
path: []
|
|
@@ -3079,8 +3098,8 @@ var AsyncNodePlugin = function() {
|
|
|
3079
3098
|
}
|
|
3080
3099
|
}
|
|
3081
3100
|
function resolveNode(_node) {
|
|
3082
|
-
var
|
|
3083
|
-
var resolvedNode = (
|
|
3101
|
+
var _ref;
|
|
3102
|
+
var resolvedNode = (_ref = hooks === null || hooks === void 0 ? void 0 : hooks.beforeResolveNode.call(_node, _object_spread({}, context, options))) !== null && _ref !== void 0 ? _ref : _node;
|
|
3084
3103
|
switch(resolvedNode.name){
|
|
3085
3104
|
case "Expression":
|
|
3086
3105
|
case "PathNode":
|
|
@@ -3116,7 +3135,6 @@ var AsyncNodePlugin = function() {
|
|
|
3116
3135
|
}
|
|
3117
3136
|
}
|
|
3118
3137
|
bindingPathNode.path.forEach(resolveNode);
|
|
3119
|
-
var _context_updates;
|
|
3120
3138
|
return {
|
|
3121
3139
|
path: context.path,
|
|
3122
3140
|
updates: Object.keys((_context_updates = context.updates) !== null && _context_updates !== void 0 ? _context_updates : {}).length > 0 ? context.updates : void 0
|
|
@@ -3125,13 +3143,13 @@ var AsyncNodePlugin = function() {
|
|
|
3125
3143
|
var BINDING_BRACKETS_REGEX = /[\s()*=`{}'"[\]]/;
|
|
3126
3144
|
var LAZY_BINDING_REGEX = /^[^.]+(\..+)*$/;
|
|
3127
3145
|
var DEFAULT_OPTIONS = {
|
|
3128
|
-
get: function() {
|
|
3146
|
+
get: function get() {
|
|
3129
3147
|
throw new Error("Not Implemented");
|
|
3130
3148
|
},
|
|
3131
|
-
set: function() {
|
|
3149
|
+
set: function set() {
|
|
3132
3150
|
throw new Error("Not Implemented");
|
|
3133
3151
|
},
|
|
3134
|
-
evaluate: function() {
|
|
3152
|
+
evaluate: function evaluate() {
|
|
3135
3153
|
throw new Error("Not Implemented");
|
|
3136
3154
|
}
|
|
3137
3155
|
};
|
|
@@ -3154,18 +3172,18 @@ var AsyncNodePlugin = function() {
|
|
|
3154
3172
|
* representation of that path.
|
|
3155
3173
|
*/ key: "normalizePath",
|
|
3156
3174
|
value: function normalizePath(path, resolveOptions) {
|
|
3175
|
+
var _this_parseCache_path;
|
|
3157
3176
|
if (!BINDING_BRACKETS_REGEX.test(path) && LAZY_BINDING_REGEX.test(path) && this.hooks.skipOptimization.call(path) !== true) {
|
|
3158
3177
|
return {
|
|
3159
3178
|
path: path.split("."),
|
|
3160
3179
|
updates: void 0
|
|
3161
3180
|
};
|
|
3162
3181
|
}
|
|
3163
|
-
var _this_parseCache_path;
|
|
3164
3182
|
var ast = (_this_parseCache_path = this.parseCache[path]) !== null && _this_parseCache_path !== void 0 ? _this_parseCache_path : parse(path);
|
|
3165
3183
|
this.parseCache[path] = ast;
|
|
3166
3184
|
if ((typeof ast === "undefined" ? "undefined" : _type_of(ast)) !== "object" || !(ast === null || ast === void 0 ? void 0 : ast.status)) {
|
|
3167
|
-
var
|
|
3168
|
-
throw new TypeError('Cannot normalize path "'.concat(path, '": ').concat((
|
|
3185
|
+
var _ref;
|
|
3186
|
+
throw new TypeError('Cannot normalize path "'.concat(path, '": ').concat((_ref = ast === null || ast === void 0 ? void 0 : ast.error) !== null && _ref !== void 0 ? _ref : "Unknown Error."));
|
|
3169
3187
|
}
|
|
3170
3188
|
try {
|
|
3171
3189
|
return resolveBindingAST(ast.path, resolveOptions, this.hooks);
|
|
@@ -3198,14 +3216,14 @@ var AsyncNodePlugin = function() {
|
|
|
3198
3216
|
var updates = {};
|
|
3199
3217
|
var joined = Array.isArray(rawBinding) ? rawBinding.join(".") : String(rawBinding);
|
|
3200
3218
|
var normalizeConfig = {
|
|
3201
|
-
getValue: function(path) {
|
|
3219
|
+
getValue: function getValue(path) {
|
|
3202
3220
|
var normalized2 = _this.normalizePath(path.join("."), normalizeConfig);
|
|
3203
3221
|
return options.get(_this.getBindingForNormalizedResult(normalized2));
|
|
3204
3222
|
},
|
|
3205
|
-
evaluate: function(exp) {
|
|
3223
|
+
evaluate: function evaluate(exp) {
|
|
3206
3224
|
return options.evaluate(exp);
|
|
3207
3225
|
},
|
|
3208
|
-
convertToPath: function(path) {
|
|
3226
|
+
convertToPath: function convertToPath(path) {
|
|
3209
3227
|
if (path === void 0) {
|
|
3210
3228
|
throw new Error("Attempted to convert undefined value to binding path");
|
|
3211
3229
|
}
|
|
@@ -3270,9 +3288,9 @@ var AsyncNodePlugin = function() {
|
|
|
3270
3288
|
/** Grab all of the bindings that this depended on */ key: "getDependencies",
|
|
3271
3289
|
value: function getDependencies(name) {
|
|
3272
3290
|
if (name !== void 0) {
|
|
3291
|
+
var _ref;
|
|
3273
3292
|
var _this_namedDependencySets_name, _this_namedDependencySets;
|
|
3274
|
-
|
|
3275
|
-
return (_this_namedDependencySets_name_readDeps = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.readDeps) !== null && _this_namedDependencySets_name_readDeps !== void 0 ? _this_namedDependencySets_name_readDeps : /* @__PURE__ */ new Set();
|
|
3293
|
+
return (_ref = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.readDeps) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
|
|
3276
3294
|
}
|
|
3277
3295
|
return this.readDeps;
|
|
3278
3296
|
}
|
|
@@ -3294,9 +3312,9 @@ var AsyncNodePlugin = function() {
|
|
|
3294
3312
|
/** Grab all of the bindings this wrote to */ key: "getModified",
|
|
3295
3313
|
value: function getModified(name) {
|
|
3296
3314
|
if (name !== void 0) {
|
|
3315
|
+
var _ref;
|
|
3297
3316
|
var _this_namedDependencySets_name, _this_namedDependencySets;
|
|
3298
|
-
|
|
3299
|
-
return (_this_namedDependencySets_name_writeDeps = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.writeDeps) !== null && _this_namedDependencySets_name_writeDeps !== void 0 ? _this_namedDependencySets_name_writeDeps : /* @__PURE__ */ new Set();
|
|
3317
|
+
return (_ref = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.writeDeps) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
|
|
3300
3318
|
}
|
|
3301
3319
|
return this.writeDeps;
|
|
3302
3320
|
}
|
|
@@ -3618,19 +3636,19 @@ var AsyncNodePlugin = function() {
|
|
|
3618
3636
|
var thisStr = "this";
|
|
3619
3637
|
var evaluator_functions_exports = {};
|
|
3620
3638
|
__export2(evaluator_functions_exports, {
|
|
3621
|
-
conditional: function() {
|
|
3639
|
+
conditional: function conditional1() {
|
|
3622
3640
|
return conditional;
|
|
3623
3641
|
},
|
|
3624
|
-
deleteDataVal: function() {
|
|
3642
|
+
deleteDataVal: function deleteDataVal1() {
|
|
3625
3643
|
return deleteDataVal;
|
|
3626
3644
|
},
|
|
3627
|
-
getDataVal: function() {
|
|
3645
|
+
getDataVal: function getDataVal1() {
|
|
3628
3646
|
return getDataVal;
|
|
3629
3647
|
},
|
|
3630
|
-
setDataVal: function() {
|
|
3648
|
+
setDataVal: function setDataVal1() {
|
|
3631
3649
|
return setDataVal;
|
|
3632
3650
|
},
|
|
3633
|
-
waitFor: function() {
|
|
3651
|
+
waitFor: function waitFor1() {
|
|
3634
3652
|
return waitFor;
|
|
3635
3653
|
}
|
|
3636
3654
|
});
|
|
@@ -3642,7 +3660,7 @@ var AsyncNodePlugin = function() {
|
|
|
3642
3660
|
};
|
|
3643
3661
|
return promise;
|
|
3644
3662
|
}
|
|
3645
|
-
var setDataVal = function(_context, binding, value) {
|
|
3663
|
+
var setDataVal = function setDataVal(_context, binding, value) {
|
|
3646
3664
|
_context.model.set([
|
|
3647
3665
|
[
|
|
3648
3666
|
binding,
|
|
@@ -3650,13 +3668,13 @@ var AsyncNodePlugin = function() {
|
|
|
3650
3668
|
]
|
|
3651
3669
|
]);
|
|
3652
3670
|
};
|
|
3653
|
-
var getDataVal = function(_context, binding) {
|
|
3671
|
+
var getDataVal = function getDataVal(_context, binding) {
|
|
3654
3672
|
return _context.model.get(binding);
|
|
3655
3673
|
};
|
|
3656
|
-
var deleteDataVal = function(_context, binding) {
|
|
3674
|
+
var deleteDataVal = function deleteDataVal(_context, binding) {
|
|
3657
3675
|
return _context.model.delete(binding);
|
|
3658
3676
|
};
|
|
3659
|
-
var conditional = function(ctx, condition, ifTrue, ifFalse) {
|
|
3677
|
+
var conditional = function conditional(ctx, condition, ifTrue, ifFalse) {
|
|
3660
3678
|
var testResult = ctx.evaluate(condition);
|
|
3661
3679
|
if (isAwaitable(testResult)) {
|
|
3662
3680
|
return testResult.awaitableThen(function(resolvedTest) {
|
|
@@ -3678,14 +3696,14 @@ var AsyncNodePlugin = function() {
|
|
|
3678
3696
|
return null;
|
|
3679
3697
|
};
|
|
3680
3698
|
conditional.resolveParams = false;
|
|
3681
|
-
var waitFor = function(ctx, promise) {
|
|
3699
|
+
var waitFor = function waitFor(ctx, promise) {
|
|
3682
3700
|
return makeAwaitable(promise);
|
|
3683
3701
|
};
|
|
3684
|
-
var andandOperator = function(ctx, a, b, async) {
|
|
3702
|
+
var andandOperator = function andandOperator(ctx, a, b, async) {
|
|
3685
3703
|
return LogicalOperators.and(ctx, a, b, async);
|
|
3686
3704
|
};
|
|
3687
3705
|
andandOperator.resolveParams = false;
|
|
3688
|
-
var ororOperator = function(ctx, a, b, async) {
|
|
3706
|
+
var ororOperator = function ororOperator(ctx, a, b, async) {
|
|
3689
3707
|
return LogicalOperators.or(ctx, a, b, async);
|
|
3690
3708
|
};
|
|
3691
3709
|
ororOperator.resolveParams = false;
|
|
@@ -3811,7 +3829,7 @@ var AsyncNodePlugin = function() {
|
|
|
3811
3829
|
}
|
|
3812
3830
|
};
|
|
3813
3831
|
var LogicalOperators = {
|
|
3814
|
-
and: function(ctx, leftNode, rightNode, async) {
|
|
3832
|
+
and: function and(ctx, leftNode, rightNode, async) {
|
|
3815
3833
|
var leftResult = ctx.evaluate(leftNode);
|
|
3816
3834
|
if (async && isAwaitable(leftResult)) {
|
|
3817
3835
|
return leftResult.awaitableThen(function(awaitedLeft) {
|
|
@@ -3822,7 +3840,7 @@ var AsyncNodePlugin = function() {
|
|
|
3822
3840
|
}
|
|
3823
3841
|
return leftResult && ctx.evaluate(rightNode);
|
|
3824
3842
|
},
|
|
3825
|
-
or: function(ctx, leftNode, rightNode, async) {
|
|
3843
|
+
or: function or(ctx, leftNode, rightNode, async) {
|
|
3826
3844
|
var leftResult = ctx.evaluate(leftNode);
|
|
3827
3845
|
if (async && isAwaitable(leftResult)) {
|
|
3828
3846
|
return leftResult.awaitableThen(function(awaitedLeft) {
|
|
@@ -3860,10 +3878,10 @@ var AsyncNodePlugin = function() {
|
|
|
3860
3878
|
]))
|
|
3861
3879
|
};
|
|
3862
3880
|
this.defaultHookOptions = _object_spread_props(_object_spread({}, defaultOptions), {
|
|
3863
|
-
evaluate: function(expr) {
|
|
3881
|
+
evaluate: function evaluate(expr) {
|
|
3864
3882
|
return _this.evaluate(expr, _this.defaultHookOptions);
|
|
3865
3883
|
},
|
|
3866
|
-
resolveNode: function(node) {
|
|
3884
|
+
resolveNode: function resolveNode(node) {
|
|
3867
3885
|
return _this._execAST(node, _this.defaultHookOptions);
|
|
3868
3886
|
}
|
|
3869
3887
|
});
|
|
@@ -3883,12 +3901,12 @@ var AsyncNodePlugin = function() {
|
|
|
3883
3901
|
key: "evaluate",
|
|
3884
3902
|
value: function evaluate(expr, options) {
|
|
3885
3903
|
var _this = this;
|
|
3904
|
+
var _this_hooks_beforeEvaluate_call;
|
|
3886
3905
|
var resolvedOpts = this.hooks.resolveOptions.call(_object_spread_props(_object_spread({}, this.defaultHookOptions, options), {
|
|
3887
|
-
resolveNode: function(node) {
|
|
3906
|
+
resolveNode: function resolveNode(node) {
|
|
3888
3907
|
return _this._execAST(node, resolvedOpts);
|
|
3889
3908
|
}
|
|
3890
3909
|
}));
|
|
3891
|
-
var _this_hooks_beforeEvaluate_call;
|
|
3892
3910
|
var expression = (_this_hooks_beforeEvaluate_call = this.hooks.beforeEvaluate.call(expr, resolvedOpts)) !== null && _this_hooks_beforeEvaluate_call !== void 0 ? _this_hooks_beforeEvaluate_call : expr;
|
|
3893
3911
|
while(isObjectExpression(expression)){
|
|
3894
3912
|
expression = expression.value;
|
|
@@ -4012,11 +4030,11 @@ var AsyncNodePlugin = function() {
|
|
|
4012
4030
|
key: "_resolveNode",
|
|
4013
4031
|
value: function _resolveNode(_currentValue, node, options) {
|
|
4014
4032
|
var _this = this;
|
|
4015
|
-
var resolveNode = options.resolveNode, model = options.model;
|
|
4016
4033
|
var _options_async;
|
|
4034
|
+
var resolveNode = options.resolveNode, model = options.model;
|
|
4017
4035
|
var isAsync = (_options_async = options.async) !== null && _options_async !== void 0 ? _options_async : false;
|
|
4018
4036
|
var expressionContext = _object_spread_props(_object_spread({}, options), {
|
|
4019
|
-
evaluate: function(expr) {
|
|
4037
|
+
evaluate: function evaluate(expr) {
|
|
4020
4038
|
return _this.evaluate(expr, options);
|
|
4021
4039
|
}
|
|
4022
4040
|
});
|
|
@@ -4350,7 +4368,7 @@ var AsyncNodePlugin = function() {
|
|
|
4350
4368
|
]);
|
|
4351
4369
|
return ProxyLogger;
|
|
4352
4370
|
}();
|
|
4353
|
-
var identify = function(val) {
|
|
4371
|
+
var identify = function identify(val) {
|
|
4354
4372
|
return val;
|
|
4355
4373
|
};
|
|
4356
4374
|
var SchemaController = /*#__PURE__*/ function() {
|
|
@@ -4438,6 +4456,7 @@ var AsyncNodePlugin = function() {
|
|
|
4438
4456
|
{
|
|
4439
4457
|
key: "getApparentType",
|
|
4440
4458
|
value: function getApparentType(binding) {
|
|
4459
|
+
var _schemaType_validation, _baseType_validation;
|
|
4441
4460
|
var schemaType = this.getType(binding);
|
|
4442
4461
|
if (schemaType === void 0) {
|
|
4443
4462
|
return void 0;
|
|
@@ -4446,7 +4465,6 @@ var AsyncNodePlugin = function() {
|
|
|
4446
4465
|
if (baseType === void 0) {
|
|
4447
4466
|
return schemaType;
|
|
4448
4467
|
}
|
|
4449
|
-
var _schemaType_validation, _baseType_validation;
|
|
4450
4468
|
return _object_spread_props(_object_spread({}, baseType, schemaType), {
|
|
4451
4469
|
validation: _to_consumable_array((_schemaType_validation = schemaType.validation) !== null && _schemaType_validation !== void 0 ? _schemaType_validation : []).concat(_to_consumable_array((_baseType_validation = baseType.validation) !== null && _baseType_validation !== void 0 ? _baseType_validation : []))
|
|
4452
4470
|
});
|
|
@@ -4595,10 +4613,10 @@ var AsyncNodePlugin = function() {
|
|
|
4595
4613
|
{
|
|
4596
4614
|
key: "get",
|
|
4597
4615
|
value: function get(binding, options, next) {
|
|
4616
|
+
var _ref;
|
|
4598
4617
|
var _this_shouldIncludeInvalid, _this;
|
|
4599
4618
|
var val = next === null || next === void 0 ? void 0 : next.get(binding, options);
|
|
4600
|
-
|
|
4601
|
-
if ((_this_shouldIncludeInvalid1 = (_this_shouldIncludeInvalid = (_this = this).shouldIncludeInvalid) === null || _this_shouldIncludeInvalid === void 0 ? void 0 : _this_shouldIncludeInvalid.call(_this, options)) !== null && _this_shouldIncludeInvalid1 !== void 0 ? _this_shouldIncludeInvalid1 : (options === null || options === void 0 ? void 0 : options.includeInvalid) === true) {
|
|
4619
|
+
if ((_ref = (_this_shouldIncludeInvalid = (_this = this).shouldIncludeInvalid) === null || _this_shouldIncludeInvalid === void 0 ? void 0 : _this_shouldIncludeInvalid.call(_this, options)) !== null && _ref !== void 0 ? _ref : (options === null || options === void 0 ? void 0 : options.includeInvalid) === true) {
|
|
4602
4620
|
this.shadowModelPaths.forEach(function(shadowValue, shadowBinding) {
|
|
4603
4621
|
if (shadowBinding === binding) {
|
|
4604
4622
|
val = shadowValue;
|
|
@@ -4696,11 +4714,12 @@ var AsyncNodePlugin = function() {
|
|
|
4696
4714
|
templateDepth: 0
|
|
4697
4715
|
};
|
|
4698
4716
|
var _this = this;
|
|
4717
|
+
var _this_hooks_onCreateASTNode_call;
|
|
4699
4718
|
var parsedNode = this.hooks.parseNode.call(obj, type, options);
|
|
4700
4719
|
if (parsedNode || parsedNode === null) {
|
|
4701
4720
|
return parsedNode;
|
|
4702
4721
|
}
|
|
4703
|
-
var parseLocalObject = function(currentValue, objToParse) {
|
|
4722
|
+
var parseLocalObject = function parseLocalObject1(currentValue, objToParse) {
|
|
4704
4723
|
var path = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
4705
4724
|
if ((typeof objToParse === "undefined" ? "undefined" : _type_of(objToParse)) !== "object" || objToParse === null) {
|
|
4706
4725
|
return {
|
|
@@ -4770,30 +4789,29 @@ var AsyncNodePlugin = function() {
|
|
|
4770
4789
|
child.value.parent = parent;
|
|
4771
4790
|
});
|
|
4772
4791
|
}
|
|
4773
|
-
var _this_hooks_onCreateASTNode_call;
|
|
4774
4792
|
return (_this_hooks_onCreateASTNode_call = this.hooks.onCreateASTNode.call(baseAst, obj)) !== null && _this_hooks_onCreateASTNode_call !== void 0 ? _this_hooks_onCreateASTNode_call : null;
|
|
4775
4793
|
}
|
|
4776
4794
|
}
|
|
4777
4795
|
]);
|
|
4778
4796
|
return Parser;
|
|
4779
4797
|
}();
|
|
4780
|
-
var withContext = function(model) {
|
|
4798
|
+
var withContext = function withContext(model) {
|
|
4781
4799
|
return {
|
|
4782
|
-
get: function(binding, options) {
|
|
4800
|
+
get: function get(binding, options) {
|
|
4783
4801
|
return model.get(binding, _object_spread({
|
|
4784
4802
|
context: {
|
|
4785
4803
|
model: model
|
|
4786
4804
|
}
|
|
4787
4805
|
}, options));
|
|
4788
4806
|
},
|
|
4789
|
-
set: function(transaction, options) {
|
|
4807
|
+
set: function set(transaction, options) {
|
|
4790
4808
|
return model.set(transaction, _object_spread({
|
|
4791
4809
|
context: {
|
|
4792
4810
|
model: model
|
|
4793
4811
|
}
|
|
4794
4812
|
}, options));
|
|
4795
4813
|
},
|
|
4796
|
-
delete: function(binding, options) {
|
|
4814
|
+
delete: function _delete(binding, options) {
|
|
4797
4815
|
return model.delete(binding, _object_spread({
|
|
4798
4816
|
context: {
|
|
4799
4817
|
model: model
|
|
@@ -4832,16 +4850,16 @@ var AsyncNodePlugin = function() {
|
|
|
4832
4850
|
{
|
|
4833
4851
|
key: "update",
|
|
4834
4852
|
value: function update(dataChanges, nodeChanges) {
|
|
4853
|
+
var _ref;
|
|
4835
4854
|
this.hooks.beforeUpdate.call(dataChanges);
|
|
4836
4855
|
var resolveCache = /* @__PURE__ */ new Map();
|
|
4837
4856
|
this.idCache.clear();
|
|
4838
4857
|
var prevASTMap = new Map(this.ASTMap);
|
|
4839
4858
|
this.ASTMap.clear();
|
|
4840
4859
|
var realNodeChanges = /* @__PURE__ */ new Set();
|
|
4841
|
-
var _nodeChanges_values;
|
|
4842
4860
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
4843
4861
|
try {
|
|
4844
|
-
for(var _iterator = ((
|
|
4862
|
+
for(var _iterator = ((_ref = nodeChanges === null || nodeChanges === void 0 ? void 0 : nodeChanges.values()) !== null && _ref !== void 0 ? _ref : [])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
4845
4863
|
var node = _step.value;
|
|
4846
4864
|
var current = node;
|
|
4847
4865
|
while(current){
|
|
@@ -4924,6 +4942,7 @@ var AsyncNodePlugin = function() {
|
|
|
4924
4942
|
key: "computeTree",
|
|
4925
4943
|
value: function computeTree(node, rawParent, dataChanges, cacheUpdate, options, partiallyResolvedParent, prevASTMap, nodeChanges) {
|
|
4926
4944
|
var _this = this;
|
|
4945
|
+
var _this_hooks_beforeResolve_call;
|
|
4927
4946
|
var dependencyModel = new DependencyModel(options.data.model);
|
|
4928
4947
|
dependencyModel.trackSubset("core");
|
|
4929
4948
|
var depModelWithParser = withContext(withParser(dependencyModel, this.options.parseBinding));
|
|
@@ -4931,7 +4950,7 @@ var AsyncNodePlugin = function() {
|
|
|
4931
4950
|
data: _object_spread_props(_object_spread({}, options.data), {
|
|
4932
4951
|
model: depModelWithParser
|
|
4933
4952
|
}),
|
|
4934
|
-
evaluate: function(exp) {
|
|
4953
|
+
evaluate: function evaluate(exp) {
|
|
4935
4954
|
return _this.options.evaluator.evaluate(exp, {
|
|
4936
4955
|
model: depModelWithParser
|
|
4937
4956
|
});
|
|
@@ -4947,14 +4966,14 @@ var AsyncNodePlugin = function() {
|
|
|
4947
4966
|
var update2 = _object_spread_props(_object_spread({}, previousResult), {
|
|
4948
4967
|
updated: false
|
|
4949
4968
|
});
|
|
4950
|
-
var repopulateASTMapFromCache = function(resolvedNode, AST, ASTParent) {
|
|
4969
|
+
var repopulateASTMapFromCache = function repopulateASTMapFromCache1(resolvedNode, AST, ASTParent) {
|
|
4951
4970
|
var resolvedASTLocal = resolvedNode.node;
|
|
4952
4971
|
_this.ASTMap.set(resolvedASTLocal, AST);
|
|
4953
4972
|
var resolvedUpdate = _object_spread_props(_object_spread({}, resolvedNode), {
|
|
4954
4973
|
updated: false
|
|
4955
4974
|
});
|
|
4956
4975
|
cacheUpdate.set(AST, resolvedUpdate);
|
|
4957
|
-
var handleChildNode = function(childNode) {
|
|
4976
|
+
var handleChildNode = function handleChildNode(childNode) {
|
|
4958
4977
|
var _prevASTMap_get;
|
|
4959
4978
|
var originalChildNode = (_prevASTMap_get = prevASTMap.get(childNode)) !== null && _prevASTMap_get !== void 0 ? _prevASTMap_get : childNode;
|
|
4960
4979
|
var previousChildResult = _this.getPreviousResult(originalChildNode);
|
|
@@ -4979,7 +4998,6 @@ var AsyncNodePlugin = function() {
|
|
|
4979
4998
|
var clonedNode = _object_spread_props(_object_spread({}, this.cloneNode(node)), {
|
|
4980
4999
|
parent: partiallyResolvedParent
|
|
4981
5000
|
});
|
|
4982
|
-
var _this_hooks_beforeResolve_call;
|
|
4983
5001
|
var resolvedAST = (_this_hooks_beforeResolve_call = this.hooks.beforeResolve.call(clonedNode, resolveOptions)) !== null && _this_hooks_beforeResolve_call !== void 0 ? _this_hooks_beforeResolve_call : {
|
|
4984
5002
|
type: "empty"
|
|
4985
5003
|
};
|
|
@@ -5039,7 +5057,7 @@ var AsyncNodePlugin = function() {
|
|
|
5039
5057
|
resolved = previousResult === null || previousResult === void 0 ? void 0 : previousResult.value;
|
|
5040
5058
|
}
|
|
5041
5059
|
resolved = this.hooks.afterResolve.call(resolved, resolvedAST, _object_spread_props(_object_spread({}, resolveOptions), {
|
|
5042
|
-
getDependencies: function(scope) {
|
|
5060
|
+
getDependencies: function getDependencies(scope) {
|
|
5043
5061
|
return dependencyModel.getDependencies(scope);
|
|
5044
5062
|
}
|
|
5045
5063
|
}));
|
|
@@ -5477,7 +5495,7 @@ var AsyncNodePlugin = function() {
|
|
|
5477
5495
|
]);
|
|
5478
5496
|
return TemplatePlugin;
|
|
5479
5497
|
}();
|
|
5480
|
-
var createPatternMatcher = function(start, end) {
|
|
5498
|
+
var createPatternMatcher = function createPatternMatcher(start, end) {
|
|
5481
5499
|
return function(testStr) {
|
|
5482
5500
|
var startLocation = testStr.indexOf(start);
|
|
5483
5501
|
if (startLocation === -1) {
|
|
@@ -5517,18 +5535,18 @@ var AsyncNodePlugin = function() {
|
|
|
5517
5535
|
});
|
|
5518
5536
|
return newNode;
|
|
5519
5537
|
}
|
|
5520
|
-
var findBasePath = function(node, resolver) {
|
|
5538
|
+
var findBasePath = function findBasePath1(node, resolver) {
|
|
5521
5539
|
var parentNode = node.parent;
|
|
5522
5540
|
if (!parentNode) {
|
|
5523
5541
|
return [];
|
|
5524
5542
|
}
|
|
5525
5543
|
if ("children" in parentNode) {
|
|
5544
|
+
var _ref;
|
|
5526
5545
|
var _parentNode_children_find, _parentNode_children;
|
|
5527
5546
|
var original = resolver.getSourceNode(node);
|
|
5528
|
-
|
|
5529
|
-
return (_parentNode_children_find_path = (_parentNode_children = parentNode.children) === null || _parentNode_children === void 0 ? void 0 : (_parentNode_children_find = _parentNode_children.find(function(child) {
|
|
5547
|
+
return (_ref = (_parentNode_children = parentNode.children) === null || _parentNode_children === void 0 ? void 0 : (_parentNode_children_find = _parentNode_children.find(function(child) {
|
|
5530
5548
|
return child.value === original;
|
|
5531
|
-
})) === null || _parentNode_children_find === void 0 ? void 0 : _parentNode_children_find.path) !== null &&
|
|
5549
|
+
})) === null || _parentNode_children_find === void 0 ? void 0 : _parentNode_children_find.path) !== null && _ref !== void 0 ? _ref : [];
|
|
5532
5550
|
}
|
|
5533
5551
|
if (parentNode.type !== "multi-node") {
|
|
5534
5552
|
return [];
|
|
@@ -5553,9 +5571,9 @@ var AsyncNodePlugin = function() {
|
|
|
5553
5571
|
var _node_parent, _node_parent_parent, _node_parent1, _node_parent_parent1, _node_parent2, _node_parent_parent_value;
|
|
5554
5572
|
var propsToSkip;
|
|
5555
5573
|
if (node.type === "asset" || node.type === "view") {
|
|
5574
|
+
var _ref;
|
|
5556
5575
|
var _node_plugins_stringResolver, _node_plugins, _node_value;
|
|
5557
|
-
|
|
5558
|
-
propsToSkip = new Set((_node_plugins_stringResolver_propertiesToSkip = (_node_plugins = node.plugins) === null || _node_plugins === void 0 ? void 0 : (_node_plugins_stringResolver = _node_plugins.stringResolver) === null || _node_plugins_stringResolver === void 0 ? void 0 : _node_plugins_stringResolver.propertiesToSkip) !== null && _node_plugins_stringResolver_propertiesToSkip !== void 0 ? _node_plugins_stringResolver_propertiesToSkip : [
|
|
5576
|
+
propsToSkip = new Set((_ref = (_node_plugins = node.plugins) === null || _node_plugins === void 0 ? void 0 : (_node_plugins_stringResolver = _node_plugins.stringResolver) === null || _node_plugins_stringResolver === void 0 ? void 0 : _node_plugins_stringResolver.propertiesToSkip) !== null && _ref !== void 0 ? _ref : [
|
|
5559
5577
|
"exp"
|
|
5560
5578
|
]);
|
|
5561
5579
|
if ((_node_value = node.value) === null || _node_value === void 0 ? void 0 : _node_value.id) {
|
|
@@ -5976,11 +5994,11 @@ var AsyncNodePlugin = function() {
|
|
|
5976
5994
|
this.stateStore.clear();
|
|
5977
5995
|
view.hooks.resolver.tap("asset-transform", function(resolver) {
|
|
5978
5996
|
var lastUpdatedNode;
|
|
5979
|
-
var updateState = function(node) {
|
|
5997
|
+
var updateState = function updateState(node) {
|
|
5980
5998
|
lastUpdatedNode = node;
|
|
5981
5999
|
view.update(/* @__PURE__ */ new Set());
|
|
5982
6000
|
};
|
|
5983
|
-
var getStore = function(node, stepKey) {
|
|
6001
|
+
var getStore = function getStore(node, stepKey) {
|
|
5984
6002
|
var store;
|
|
5985
6003
|
var countKey = stepKey === _this.resolveSymbol ? _this.resolveCountSymbol : _this.beforeResolveCountSymbol;
|
|
5986
6004
|
var storedState = _this.stateStore.get(node);
|
|
@@ -5994,10 +6012,10 @@ var AsyncNodePlugin = function() {
|
|
|
5994
6012
|
_this.stateStore.set(node, store);
|
|
5995
6013
|
}
|
|
5996
6014
|
return {
|
|
5997
|
-
useSharedState: function(key) {
|
|
6015
|
+
useSharedState: function useSharedState(key) {
|
|
5998
6016
|
return store.useSharedState(key);
|
|
5999
6017
|
},
|
|
6000
|
-
useLocalState: function(initialState) {
|
|
6018
|
+
useLocalState: function useLocalState(initialState) {
|
|
6001
6019
|
return store.getLocalStateFunction(stepKey, countKey)(initialState);
|
|
6002
6020
|
}
|
|
6003
6021
|
};
|
|
@@ -6359,7 +6377,7 @@ var AsyncNodePlugin = function() {
|
|
|
6359
6377
|
return options;
|
|
6360
6378
|
}
|
|
6361
6379
|
tracked.delete(node);
|
|
6362
|
-
var track = function(binding) {
|
|
6380
|
+
var track = function track(binding) {
|
|
6363
6381
|
var _this_options_callbacks_onAdd, _this_options_callbacks;
|
|
6364
6382
|
var parsed = isBinding(binding) ? binding : _this.options.parseBinding(binding);
|
|
6365
6383
|
if (tracked.has(node)) {
|
|
@@ -6385,7 +6403,7 @@ var AsyncNodePlugin = function() {
|
|
|
6385
6403
|
};
|
|
6386
6404
|
return _object_spread_props(_object_spread({}, options), {
|
|
6387
6405
|
validation: _object_spread_props(_object_spread({}, options.validation), {
|
|
6388
|
-
get: function(binding, getOptions) {
|
|
6406
|
+
get: function get(binding, getOptions) {
|
|
6389
6407
|
var _options_validation__getValidationForBinding, _options_validation;
|
|
6390
6408
|
if (getOptions === null || getOptions === void 0 ? void 0 : getOptions.track) {
|
|
6391
6409
|
track(binding);
|
|
@@ -6397,14 +6415,14 @@ var AsyncNodePlugin = function() {
|
|
|
6397
6415
|
return firstFieldEOW;
|
|
6398
6416
|
},
|
|
6399
6417
|
getValidationsForBinding: function getValidationsForBinding(binding, getOptions) {
|
|
6418
|
+
var _ref;
|
|
6400
6419
|
var _options_validation__getValidationForBinding, _options_validation;
|
|
6401
6420
|
if (getOptions === null || getOptions === void 0 ? void 0 : getOptions.track) {
|
|
6402
6421
|
track(binding);
|
|
6403
6422
|
}
|
|
6404
|
-
|
|
6405
|
-
return (_options_validation__getValidationForBinding_getAll = (_options_validation = options.validation) === null || _options_validation === void 0 ? void 0 : (_options_validation__getValidationForBinding = _options_validation._getValidationForBinding(binding)) === null || _options_validation__getValidationForBinding === void 0 ? void 0 : _options_validation__getValidationForBinding.getAll(getOptions)) !== null && _options_validation__getValidationForBinding_getAll !== void 0 ? _options_validation__getValidationForBinding_getAll : [];
|
|
6423
|
+
return (_ref = (_options_validation = options.validation) === null || _options_validation === void 0 ? void 0 : (_options_validation__getValidationForBinding = _options_validation._getValidationForBinding(binding)) === null || _options_validation__getValidationForBinding === void 0 ? void 0 : _options_validation__getValidationForBinding.getAll(getOptions)) !== null && _ref !== void 0 ? _ref : [];
|
|
6406
6424
|
},
|
|
6407
|
-
getChildren: function(type) {
|
|
6425
|
+
getChildren: function getChildren(type) {
|
|
6408
6426
|
var _lastComputedBindingTree_get;
|
|
6409
6427
|
var validations = new Array();
|
|
6410
6428
|
(_lastComputedBindingTree_get = lastComputedBindingTree.get(node)) === null || _lastComputedBindingTree_get === void 0 ? void 0 : _lastComputedBindingTree_get.forEach(function(binding) {
|
|
@@ -6416,7 +6434,7 @@ var AsyncNodePlugin = function() {
|
|
|
6416
6434
|
});
|
|
6417
6435
|
return validations;
|
|
6418
6436
|
},
|
|
6419
|
-
getValidationsForSection: function() {
|
|
6437
|
+
getValidationsForSection: function getValidationsForSection() {
|
|
6420
6438
|
var _lastSectionBindingTree_get;
|
|
6421
6439
|
var validations = new Array();
|
|
6422
6440
|
(_lastSectionBindingTree_get = lastSectionBindingTree.get(node)) === null || _lastSectionBindingTree_get === void 0 ? void 0 : _lastSectionBindingTree_get.forEach(function(binding) {
|
|
@@ -6428,7 +6446,7 @@ var AsyncNodePlugin = function() {
|
|
|
6428
6446
|
});
|
|
6429
6447
|
return validations;
|
|
6430
6448
|
},
|
|
6431
|
-
register: function(registerOptions) {
|
|
6449
|
+
register: function register(registerOptions) {
|
|
6432
6450
|
if ((registerOptions === null || registerOptions === void 0 ? void 0 : registerOptions.type) === "section") {
|
|
6433
6451
|
if (!sections.has(node)) {
|
|
6434
6452
|
sections.set(node, /* @__PURE__ */ new Set());
|
|
@@ -6573,10 +6591,10 @@ var AsyncNodePlugin = function() {
|
|
|
6573
6591
|
value: function runApplicableValidations(runner, canDismiss, phase) {
|
|
6574
6592
|
var _this = this;
|
|
6575
6593
|
this.applicableValidations = this.applicableValidations.map(function(originalValue) {
|
|
6594
|
+
var _originalValue_value_blocking, _response_message, _obj_value_displayTarget;
|
|
6576
6595
|
if (originalValue.state === "dismissed") {
|
|
6577
6596
|
return originalValue;
|
|
6578
6597
|
}
|
|
6579
|
-
var _originalValue_value_blocking;
|
|
6580
6598
|
var blocking = (_originalValue_value_blocking = originalValue.value.blocking) !== null && _originalValue_value_blocking !== void 0 ? _originalValue_value_blocking : originalValue.value.severity === "warning" && "once" || true;
|
|
6581
6599
|
var obj = (0, import_timm9.setIn)(originalValue, [
|
|
6582
6600
|
"value",
|
|
@@ -6598,7 +6616,6 @@ var AsyncNodePlugin = function() {
|
|
|
6598
6616
|
}
|
|
6599
6617
|
}
|
|
6600
6618
|
var response = runner(obj.value);
|
|
6601
|
-
var _response_message, _obj_value_displayTarget;
|
|
6602
6619
|
var newState = {
|
|
6603
6620
|
type: obj.type,
|
|
6604
6621
|
value: obj.value,
|
|
@@ -6683,14 +6700,14 @@ var AsyncNodePlugin = function() {
|
|
|
6683
6700
|
var _this = this;
|
|
6684
6701
|
return [
|
|
6685
6702
|
{
|
|
6686
|
-
set: function(transaction, options, next) {
|
|
6687
|
-
var
|
|
6688
|
-
return (
|
|
6703
|
+
set: function set(transaction, options, next) {
|
|
6704
|
+
var _ref;
|
|
6705
|
+
return (_ref = next === null || next === void 0 ? void 0 : next.set(transaction, options)) !== null && _ref !== void 0 ? _ref : [];
|
|
6689
6706
|
},
|
|
6690
|
-
get: function(binding, options, next) {
|
|
6707
|
+
get: function get(binding, options, next) {
|
|
6691
6708
|
return next === null || next === void 0 ? void 0 : next.get(binding, options);
|
|
6692
6709
|
},
|
|
6693
|
-
delete: function(binding, options, next) {
|
|
6710
|
+
delete: function _delete(binding, options, next) {
|
|
6694
6711
|
_this.validations = removeBindingAndChildrenFromMap(_this.validations, binding);
|
|
6695
6712
|
return next === null || next === void 0 ? void 0 : next.delete(binding, options);
|
|
6696
6713
|
}
|
|
@@ -6753,11 +6770,11 @@ var AsyncNodePlugin = function() {
|
|
|
6753
6770
|
{
|
|
6754
6771
|
source: VIEW_VALIDATION_PROVIDER_NAME,
|
|
6755
6772
|
provider: {
|
|
6756
|
-
getValidationsForBinding: function(binding) {
|
|
6773
|
+
getValidationsForBinding: function getValidationsForBinding(binding) {
|
|
6757
6774
|
var _this_viewValidationProvider_getValidationsForBinding, _this_viewValidationProvider;
|
|
6758
6775
|
return (_this_viewValidationProvider = _this.viewValidationProvider) === null || _this_viewValidationProvider === void 0 ? void 0 : (_this_viewValidationProvider_getValidationsForBinding = _this_viewValidationProvider.getValidationsForBinding) === null || _this_viewValidationProvider_getValidationsForBinding === void 0 ? void 0 : _this_viewValidationProvider_getValidationsForBinding.call(_this_viewValidationProvider, binding);
|
|
6759
6776
|
},
|
|
6760
|
-
getValidationsForView: function() {
|
|
6777
|
+
getValidationsForView: function getValidationsForView() {
|
|
6761
6778
|
var _this_viewValidationProvider_getValidationsForView, _this_viewValidationProvider;
|
|
6762
6779
|
return (_this_viewValidationProvider = _this.viewValidationProvider) === null || _this_viewValidationProvider === void 0 ? void 0 : (_this_viewValidationProvider_getValidationsForView = _this_viewValidationProvider.getValidationsForView) === null || _this_viewValidationProvider_getValidationsForView === void 0 ? void 0 : _this_viewValidationProvider_getValidationsForView.call(_this_viewValidationProvider);
|
|
6763
6780
|
}
|
|
@@ -6784,7 +6801,7 @@ var AsyncNodePlugin = function() {
|
|
|
6784
6801
|
}
|
|
6785
6802
|
var bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(_object_spread_props(_object_spread({}, this.options), {
|
|
6786
6803
|
callbacks: {
|
|
6787
|
-
onAdd: function(binding) {
|
|
6804
|
+
onAdd: function onAdd(binding) {
|
|
6788
6805
|
if (!_this.options || _this.getValidationForBinding(binding) !== void 0) {
|
|
6789
6806
|
return;
|
|
6790
6807
|
}
|
|
@@ -6828,11 +6845,11 @@ var AsyncNodePlugin = function() {
|
|
|
6828
6845
|
var _this_options;
|
|
6829
6846
|
var possibleValidations = this.getValidationProviders().reduce(function(vals, provider) {
|
|
6830
6847
|
var _vals;
|
|
6848
|
+
var _ref;
|
|
6831
6849
|
var _provider_provider_getValidationsForBinding, _provider_provider_getValidationsForBinding1, _provider_provider;
|
|
6832
|
-
|
|
6833
|
-
(_vals = vals).push.apply(_vals, _to_consumable_array((_provider_provider_getValidationsForBinding_map = (_provider_provider_getValidationsForBinding1 = (_provider_provider = provider.provider).getValidationsForBinding) === null || _provider_provider_getValidationsForBinding1 === void 0 ? void 0 : (_provider_provider_getValidationsForBinding = _provider_provider_getValidationsForBinding1.call(_provider_provider, binding)) === null || _provider_provider_getValidationsForBinding === void 0 ? void 0 : _provider_provider_getValidationsForBinding.map(function(valObj) {
|
|
6850
|
+
(_vals = vals).push.apply(_vals, _to_consumable_array((_ref = (_provider_provider_getValidationsForBinding1 = (_provider_provider = provider.provider).getValidationsForBinding) === null || _provider_provider_getValidationsForBinding1 === void 0 ? void 0 : (_provider_provider_getValidationsForBinding = _provider_provider_getValidationsForBinding1.call(_provider_provider, binding)) === null || _provider_provider_getValidationsForBinding === void 0 ? void 0 : _provider_provider_getValidationsForBinding.map(function(valObj) {
|
|
6834
6851
|
return _object_spread_props(_object_spread({}, valObj), _define_property({}, VALIDATION_PROVIDER_NAME_SYMBOL, provider.source));
|
|
6835
|
-
})) !== null &&
|
|
6852
|
+
})) !== null && _ref !== void 0 ? _ref : []));
|
|
6836
6853
|
return vals;
|
|
6837
6854
|
}, []);
|
|
6838
6855
|
if (possibleValidations.length === 0) {
|
|
@@ -6873,10 +6890,10 @@ var AsyncNodePlugin = function() {
|
|
|
6873
6890
|
key: "validationRunner",
|
|
6874
6891
|
value: function validationRunner(validationObj, binding) {
|
|
6875
6892
|
var context = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.options;
|
|
6893
|
+
var _validationObj_handler;
|
|
6876
6894
|
if (!context) {
|
|
6877
6895
|
throw new Error("No context provided to validation runner");
|
|
6878
6896
|
}
|
|
6879
|
-
var _validationObj_handler;
|
|
6880
6897
|
var handler = (_validationObj_handler = validationObj.handler) !== null && _validationObj_handler !== void 0 ? _validationObj_handler : this.getValidator(validationObj.type);
|
|
6881
6898
|
var weakBindings = /* @__PURE__ */ new Set();
|
|
6882
6899
|
var model = {
|
|
@@ -6890,7 +6907,7 @@ var AsyncNodePlugin = function() {
|
|
|
6890
6907
|
delete: context.model.delete
|
|
6891
6908
|
};
|
|
6892
6909
|
var result = handler === null || handler === void 0 ? void 0 : handler(_object_spread_props(_object_spread({}, context), {
|
|
6893
|
-
evaluate: function(exp) {
|
|
6910
|
+
evaluate: function evaluate(exp) {
|
|
6894
6911
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
6895
6912
|
model: model
|
|
6896
6913
|
};
|
|
@@ -6928,7 +6945,7 @@ var AsyncNodePlugin = function() {
|
|
|
6928
6945
|
var _this = this;
|
|
6929
6946
|
var isNavigationTrigger = trigger === "navigation";
|
|
6930
6947
|
var lastActiveBindings = this.activeBindings;
|
|
6931
|
-
var updateValidations = function(dismissValidations) {
|
|
6948
|
+
var updateValidations = function updateValidations(dismissValidations) {
|
|
6932
6949
|
_this.getBindings().forEach(function(binding) {
|
|
6933
6950
|
var _this_validations_get;
|
|
6934
6951
|
(_this_validations_get = _this.validations.get(binding)) === null || _this_validations_get === void 0 ? void 0 : _this_validations_get.update(trigger, dismissValidations, function(obj) {
|
|
@@ -6973,9 +6990,9 @@ var AsyncNodePlugin = function() {
|
|
|
6973
6990
|
{
|
|
6974
6991
|
key: "getBindings",
|
|
6975
6992
|
value: function getBindings() {
|
|
6993
|
+
var _ref;
|
|
6976
6994
|
var _this_tracker;
|
|
6977
|
-
|
|
6978
|
-
return (_this_tracker_getBindings = (_this_tracker = this.tracker) === null || _this_tracker === void 0 ? void 0 : _this_tracker.getBindings()) !== null && _this_tracker_getBindings !== void 0 ? _this_tracker_getBindings : /* @__PURE__ */ new Set();
|
|
6995
|
+
return (_ref = (_this_tracker = this.tracker) === null || _this_tracker === void 0 ? void 0 : _this_tracker.getBindings()) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
|
|
6979
6996
|
}
|
|
6980
6997
|
},
|
|
6981
6998
|
{
|
|
@@ -7024,10 +7041,10 @@ var AsyncNodePlugin = function() {
|
|
|
7024
7041
|
value: function forView(parser) {
|
|
7025
7042
|
var _this = this;
|
|
7026
7043
|
return {
|
|
7027
|
-
_getValidationForBinding: function(binding) {
|
|
7044
|
+
_getValidationForBinding: function _getValidationForBinding(binding) {
|
|
7028
7045
|
return _this.getValidationForBinding(isBinding(binding) ? binding : parser(binding));
|
|
7029
7046
|
},
|
|
7030
|
-
getAll: function() {
|
|
7047
|
+
getAll: function getAll() {
|
|
7031
7048
|
var bindings = _this.getBindings();
|
|
7032
7049
|
if (bindings.size === 0) {
|
|
7033
7050
|
return void 0;
|
|
@@ -7054,13 +7071,13 @@ var AsyncNodePlugin = function() {
|
|
|
7054
7071
|
getValidationsForSection: function getValidationsForSection() {
|
|
7055
7072
|
throw new Error("Error rollup should be provided by the view plugin");
|
|
7056
7073
|
},
|
|
7057
|
-
track: function() {
|
|
7074
|
+
track: function track() {
|
|
7058
7075
|
throw new Error("Tracking should be provided by the view plugin");
|
|
7059
7076
|
},
|
|
7060
|
-
register: function() {
|
|
7077
|
+
register: function register() {
|
|
7061
7078
|
throw new Error("Section functionality should be provided by the view plugin");
|
|
7062
7079
|
},
|
|
7063
|
-
type: function(binding) {
|
|
7080
|
+
type: function type(binding) {
|
|
7064
7081
|
return _this.schema.getType(isBinding(binding) ? binding : parser(binding));
|
|
7065
7082
|
}
|
|
7066
7083
|
};
|
|
@@ -7069,9 +7086,9 @@ var AsyncNodePlugin = function() {
|
|
|
7069
7086
|
]);
|
|
7070
7087
|
return ValidationController;
|
|
7071
7088
|
}();
|
|
7072
|
-
var mergeSets = function(setA, setB) {
|
|
7073
|
-
var
|
|
7074
|
-
return /* @__PURE__ */ new Set(_to_consumable_array((
|
|
7089
|
+
var mergeSets = function mergeSets(setA, setB) {
|
|
7090
|
+
var _ref, _ref1;
|
|
7091
|
+
return /* @__PURE__ */ new Set(_to_consumable_array((_ref = setA === null || setA === void 0 ? void 0 : setA.values()) !== null && _ref !== void 0 ? _ref : []).concat(_to_consumable_array((_ref1 = setB === null || setB === void 0 ? void 0 : setB.values()) !== null && _ref1 !== void 0 ? _ref1 : [])));
|
|
7075
7092
|
};
|
|
7076
7093
|
var ViewController = /*#__PURE__*/ function() {
|
|
7077
7094
|
function ViewController(initialViews, options) {
|
|
@@ -7098,7 +7115,7 @@ var AsyncNodePlugin = function() {
|
|
|
7098
7115
|
}
|
|
7099
7116
|
});
|
|
7100
7117
|
});
|
|
7101
|
-
var update = function(updates) {
|
|
7118
|
+
var update = function update(updates) {
|
|
7102
7119
|
var silent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
7103
7120
|
if (_this1.currentView) {
|
|
7104
7121
|
if (_this1.optimizeUpdates) {
|
|
@@ -7109,10 +7126,10 @@ var AsyncNodePlugin = function() {
|
|
|
7109
7126
|
}
|
|
7110
7127
|
};
|
|
7111
7128
|
options.model.hooks.onUpdate.tap("viewController", function(updates, updateOptions) {
|
|
7112
|
-
var
|
|
7129
|
+
var _ref;
|
|
7113
7130
|
update(new Set(updates.map(function(t2) {
|
|
7114
7131
|
return t2.binding;
|
|
7115
|
-
})), (
|
|
7132
|
+
})), (_ref = updateOptions === null || updateOptions === void 0 ? void 0 : updateOptions.silent) !== null && _ref !== void 0 ? _ref : false);
|
|
7116
7133
|
});
|
|
7117
7134
|
options.model.hooks.onDelete.tap("viewController", function(binding) {
|
|
7118
7135
|
var parentBinding = binding.parent();
|
|
@@ -7147,8 +7164,8 @@ var AsyncNodePlugin = function() {
|
|
|
7147
7164
|
if (!this.pendingUpdate.scheduled && !silent) {
|
|
7148
7165
|
this.pendingUpdate.scheduled = true;
|
|
7149
7166
|
(0, import_queue_microtask2.default)(function() {
|
|
7150
|
-
var _this_currentView;
|
|
7151
7167
|
var _this_pendingUpdate;
|
|
7168
|
+
var _this_currentView;
|
|
7152
7169
|
var _ref = (_this_pendingUpdate = _this.pendingUpdate) !== null && _this_pendingUpdate !== void 0 ? _this_pendingUpdate : {}, changedBindings = _ref.changedBindings, changedNodes = _ref.changedNodes;
|
|
7153
7170
|
_this.pendingUpdate = void 0;
|
|
7154
7171
|
(_this_currentView = _this.currentView) === null || _this_currentView === void 0 ? void 0 : _this_currentView.update(changedBindings, changedNodes);
|
|
@@ -7473,10 +7490,10 @@ var AsyncNodePlugin = function() {
|
|
|
7473
7490
|
{
|
|
7474
7491
|
key: "getConstants",
|
|
7475
7492
|
value: function getConstants(key, namespace, fallback) {
|
|
7493
|
+
var _ref, _ref1;
|
|
7476
7494
|
var _this_tempStore_get, _this_store_get;
|
|
7477
7495
|
var path = new BindingInstance(key);
|
|
7478
|
-
|
|
7479
|
-
return (_ref = (_this_tempStore_get_get = (_this_tempStore_get = this.tempStore.get(namespace)) === null || _this_tempStore_get === void 0 ? void 0 : _this_tempStore_get.get(path)) !== null && _this_tempStore_get_get !== void 0 ? _this_tempStore_get_get : (_this_store_get = this.store.get(namespace)) === null || _this_store_get === void 0 ? void 0 : _this_store_get.get(path)) !== null && _ref !== void 0 ? _ref : fallback;
|
|
7496
|
+
return (_ref = (_ref1 = (_this_tempStore_get = this.tempStore.get(namespace)) === null || _this_tempStore_get === void 0 ? void 0 : _this_tempStore_get.get(path)) !== null && _ref1 !== void 0 ? _ref1 : (_this_store_get = this.store.get(namespace)) === null || _this_store_get === void 0 ? void 0 : _this_store_get.get(path)) !== null && _ref !== void 0 ? _ref : fallback;
|
|
7480
7497
|
}
|
|
7481
7498
|
},
|
|
7482
7499
|
{
|
|
@@ -7517,7 +7534,7 @@ var AsyncNodePlugin = function() {
|
|
|
7517
7534
|
value: function apply(player) {
|
|
7518
7535
|
var _this = this;
|
|
7519
7536
|
var expressionEvaluator;
|
|
7520
|
-
var handleEval = function(exp) {
|
|
7537
|
+
var handleEval = function handleEval(exp) {
|
|
7521
7538
|
if (exp) {
|
|
7522
7539
|
if ((typeof exp === "undefined" ? "undefined" : _type_of(exp)) === "object" && "exp" in exp) {
|
|
7523
7540
|
expressionEvaluator === null || expressionEvaluator === void 0 ? void 0 : expressionEvaluator.evaluate(exp.exp);
|
|
@@ -7538,7 +7555,7 @@ var AsyncNodePlugin = function() {
|
|
|
7538
7555
|
return handleEval(exp);
|
|
7539
7556
|
});
|
|
7540
7557
|
flow.hooks.resolveTransitionNode.intercept({
|
|
7541
|
-
call: function(nextState) {
|
|
7558
|
+
call: function call(nextState) {
|
|
7542
7559
|
if (nextState === null || nextState === void 0 ? void 0 : nextState.onStart) {
|
|
7543
7560
|
handleEval(nextState.onStart);
|
|
7544
7561
|
}
|
|
@@ -7551,13 +7568,13 @@ var AsyncNodePlugin = function() {
|
|
|
7551
7568
|
]);
|
|
7552
7569
|
return FlowExpPlugin;
|
|
7553
7570
|
}();
|
|
7554
|
-
var createFormatFunction = function(schema) {
|
|
7555
|
-
var handler = function(ctx, value, formatName) {
|
|
7571
|
+
var createFormatFunction = function createFormatFunction(schema) {
|
|
7572
|
+
var handler = function handler(ctx, value, formatName) {
|
|
7573
|
+
var _ref;
|
|
7556
7574
|
var _schema_getFormatterForType;
|
|
7557
|
-
|
|
7558
|
-
return (_schema_getFormatterForType_format = (_schema_getFormatterForType = schema.getFormatterForType({
|
|
7575
|
+
return (_ref = (_schema_getFormatterForType = schema.getFormatterForType({
|
|
7559
7576
|
type: formatName
|
|
7560
|
-
})) === null || _schema_getFormatterForType === void 0 ? void 0 : _schema_getFormatterForType.format(value)) !== null &&
|
|
7577
|
+
})) === null || _schema_getFormatterForType === void 0 ? void 0 : _schema_getFormatterForType.format(value)) !== null && _ref !== void 0 ? _ref : value;
|
|
7561
7578
|
};
|
|
7562
7579
|
return handler;
|
|
7563
7580
|
};
|
|
@@ -7609,8 +7626,8 @@ var AsyncNodePlugin = function() {
|
|
|
7609
7626
|
ref: Symbol("not-started"),
|
|
7610
7627
|
status: "not-started"
|
|
7611
7628
|
};
|
|
7612
|
-
var PLAYER_VERSION = true ? "0.15.3-next.
|
|
7613
|
-
var COMMIT = true ? "
|
|
7629
|
+
var PLAYER_VERSION = true ? "0.15.3-next.2" : "unknown";
|
|
7630
|
+
var COMMIT = true ? "21f4b09d55c325c5fe951d2fd08caaebb81db483" : "unknown";
|
|
7614
7631
|
var _Player = /*#__PURE__*/ function() {
|
|
7615
7632
|
function _Player2(config) {
|
|
7616
7633
|
var _this = this;
|
|
@@ -7725,13 +7742,13 @@ var AsyncNodePlugin = function() {
|
|
|
7725
7742
|
var expressionEvaluator;
|
|
7726
7743
|
var dataController;
|
|
7727
7744
|
var pathResolver = new BindingParser({
|
|
7728
|
-
get: function(binding) {
|
|
7745
|
+
get: function get(binding) {
|
|
7729
7746
|
return dataController.get(binding);
|
|
7730
7747
|
},
|
|
7731
|
-
set: function(transaction) {
|
|
7748
|
+
set: function set(transaction) {
|
|
7732
7749
|
return dataController.set(transaction);
|
|
7733
7750
|
},
|
|
7734
|
-
evaluate: function(expression) {
|
|
7751
|
+
evaluate: function evaluate(expression) {
|
|
7735
7752
|
return expressionEvaluator.evaluate(expression);
|
|
7736
7753
|
}
|
|
7737
7754
|
});
|
|
@@ -7875,23 +7892,23 @@ var AsyncNodePlugin = function() {
|
|
|
7875
7892
|
transition: flowController.transition,
|
|
7876
7893
|
model: dataController,
|
|
7877
7894
|
utils: {
|
|
7878
|
-
findPlugin: function(pluginSymbol) {
|
|
7895
|
+
findPlugin: function findPlugin(pluginSymbol) {
|
|
7879
7896
|
return _this.findPlugin(pluginSymbol);
|
|
7880
7897
|
}
|
|
7881
7898
|
},
|
|
7882
7899
|
logger: this.logger,
|
|
7883
7900
|
flowController: flowController,
|
|
7884
7901
|
schema: schema,
|
|
7885
|
-
format: function(binding, value) {
|
|
7902
|
+
format: function format(binding, value) {
|
|
7886
7903
|
var formatter = schema.getFormatter(binding);
|
|
7887
7904
|
return (formatter === null || formatter === void 0 ? void 0 : formatter.format) ? formatter.format(value) : value;
|
|
7888
7905
|
},
|
|
7889
|
-
formatValue: function(ref, value) {
|
|
7906
|
+
formatValue: function formatValue(ref, value) {
|
|
7890
7907
|
var formatter = schema.getFormatterForType(ref);
|
|
7891
7908
|
return (formatter === null || formatter === void 0 ? void 0 : formatter.format) ? formatter.format(value) : value;
|
|
7892
7909
|
},
|
|
7893
7910
|
validation: _object_spread_props(_object_spread({}, validationController.forView(parseBinding)), {
|
|
7894
|
-
type: function(b) {
|
|
7911
|
+
type: function type(b) {
|
|
7895
7912
|
return schema.getType(parseBinding(b));
|
|
7896
7913
|
}
|
|
7897
7914
|
}),
|
|
@@ -7903,7 +7920,7 @@ var AsyncNodePlugin = function() {
|
|
|
7903
7920
|
});
|
|
7904
7921
|
this.hooks.viewController.call(viewController);
|
|
7905
7922
|
return {
|
|
7906
|
-
start: function() {
|
|
7923
|
+
start: function start() {
|
|
7907
7924
|
flowController.start().then(function(endState) {
|
|
7908
7925
|
var flowResult = {
|
|
7909
7926
|
endState: resolveStrings(endState, false),
|
|
@@ -7940,13 +7957,13 @@ var AsyncNodePlugin = function() {
|
|
|
7940
7957
|
key: "start",
|
|
7941
7958
|
value: function start(payload) {
|
|
7942
7959
|
return _async_to_generator(function() {
|
|
7943
|
-
var _this,
|
|
7960
|
+
var _this, _ref, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
|
|
7944
7961
|
return _ts_generator(this, function(_state) {
|
|
7945
7962
|
switch(_state.label){
|
|
7946
7963
|
case 0:
|
|
7947
7964
|
_this = this;
|
|
7948
|
-
ref = Symbol((
|
|
7949
|
-
maybeUpdateState = function(newState) {
|
|
7965
|
+
ref = Symbol((_ref = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _ref !== void 0 ? _ref : "payload");
|
|
7966
|
+
maybeUpdateState = function maybeUpdateState(newState) {
|
|
7950
7967
|
if (_this.state.ref !== ref) {
|
|
7951
7968
|
_this.logger.warn("Received update for a flow that's not the current one");
|
|
7952
7969
|
return newState;
|
|
@@ -8025,7 +8042,7 @@ var AsyncNodePlugin = function() {
|
|
|
8025
8042
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/async-node/core/src/index.ts
|
|
8026
8043
|
var import_queue_microtask3 = __toESM(require_queue_microtask());
|
|
8027
8044
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/async-node/core/src/transform.ts
|
|
8028
|
-
var asyncTransform = function(assetId, wrapperAssetType, asset, flatten2) {
|
|
8045
|
+
var asyncTransform = function asyncTransform(assetId, wrapperAssetType, asset, flatten2) {
|
|
8029
8046
|
var path = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : [
|
|
8030
8047
|
"values"
|
|
8031
8048
|
];
|
|
@@ -8047,7 +8064,7 @@ var AsyncNodePlugin = function() {
|
|
|
8047
8064
|
return wrapperAsset;
|
|
8048
8065
|
};
|
|
8049
8066
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/async-node/core/src/utils/extractNodeFromPath.ts
|
|
8050
|
-
var getMatchValue = function(pathA, pathB) {
|
|
8067
|
+
var getMatchValue = function getMatchValue(pathA, pathB) {
|
|
8051
8068
|
if (pathA.length > pathB.length) {
|
|
8052
8069
|
return 0;
|
|
8053
8070
|
}
|
|
@@ -8061,7 +8078,7 @@ var AsyncNodePlugin = function() {
|
|
|
8061
8078
|
}
|
|
8062
8079
|
return matchCount;
|
|
8063
8080
|
};
|
|
8064
|
-
var extractNodeFromPath = function(node, path) {
|
|
8081
|
+
var extractNodeFromPath = function extractNodeFromPath1(node, path) {
|
|
8065
8082
|
if (path === void 0 || path.length === 0) {
|
|
8066
8083
|
return node;
|
|
8067
8084
|
}
|
|
@@ -8103,7 +8120,7 @@ var AsyncNodePlugin = function() {
|
|
|
8103
8120
|
return extractNodeFromPath(bestMatch.value, path.slice(matchResult));
|
|
8104
8121
|
};
|
|
8105
8122
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/async-node/core/src/utils/traverseAndReplace.ts
|
|
8106
|
-
var traverseAndReplace = function(node, replaceFn) {
|
|
8123
|
+
var traverseAndReplace = function traverseAndReplace(node, replaceFn) {
|
|
8107
8124
|
if (node.type === NodeType.MultiNode) {
|
|
8108
8125
|
var index = 0;
|
|
8109
8126
|
while(index < node.values.length){
|
|
@@ -8125,7 +8142,7 @@ var AsyncNodePlugin = function() {
|
|
|
8125
8142
|
return replaceFn(node);
|
|
8126
8143
|
};
|
|
8127
8144
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/async-node/core/src/utils/unwrapAsset.ts
|
|
8128
|
-
var unwrapAsset = function(node) {
|
|
8145
|
+
var unwrapAsset = function unwrapAsset(node) {
|
|
8129
8146
|
var _node_children;
|
|
8130
8147
|
if (node.type !== NodeType.Value) {
|
|
8131
8148
|
return node;
|
|
@@ -8139,7 +8156,7 @@ var AsyncNodePlugin = function() {
|
|
|
8139
8156
|
return child.value;
|
|
8140
8157
|
};
|
|
8141
8158
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/async-node/core/src/utils/requiresAssetWrapper.ts
|
|
8142
|
-
var requiresAssetWrapper = function(node) {
|
|
8159
|
+
var requiresAssetWrapper = function requiresAssetWrapper(node) {
|
|
8143
8160
|
if (node.type === NodeType.Asset) {
|
|
8144
8161
|
return true;
|
|
8145
8162
|
}
|
|
@@ -8149,26 +8166,26 @@ var AsyncNodePlugin = function() {
|
|
|
8149
8166
|
return node.value.type === NodeType.Asset;
|
|
8150
8167
|
};
|
|
8151
8168
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/async-node/core/src/createAsyncTransform.ts
|
|
8152
|
-
var defaultGetNodeId = function(node) {
|
|
8169
|
+
var defaultGetNodeId = function defaultGetNodeId(node) {
|
|
8153
8170
|
return "async-".concat(node.value.id);
|
|
8154
8171
|
};
|
|
8155
|
-
var createAsyncTransform = function(options) {
|
|
8172
|
+
var createAsyncTransform = function createAsyncTransform(options) {
|
|
8156
8173
|
var transformAssetType = options.transformAssetType, wrapperAssetType = options.wrapperAssetType, getNestedAsset = options.getNestedAsset, _options_getAsyncNodeId = options.getAsyncNodeId, getAsyncNodeId = _options_getAsyncNodeId === void 0 ? defaultGetNodeId : _options_getAsyncNodeId, _options_path = options.path, path = _options_path === void 0 ? [
|
|
8157
8174
|
"values"
|
|
8158
8175
|
] : _options_path, tmp = options.flatten, flatten2 = tmp === void 0 ? true : tmp, _options_asyncNodePosition = options.asyncNodePosition, asyncNodePosition = _options_asyncNodePosition === void 0 ? "append" : _options_asyncNodePosition;
|
|
8159
|
-
var replaceNode = function(node) {
|
|
8176
|
+
var replaceNode = function replaceNode(node) {
|
|
8177
|
+
var _extractNodeFromPath;
|
|
8160
8178
|
var unwrapped = unwrapAsset(node);
|
|
8161
8179
|
if (unwrapped.type !== NodeType.Asset || unwrapped.value.type !== transformAssetType) {
|
|
8162
8180
|
return node;
|
|
8163
8181
|
}
|
|
8164
8182
|
var transformed = asyncTransform2(unwrapped);
|
|
8165
|
-
var _extractNodeFromPath;
|
|
8166
8183
|
return (_extractNodeFromPath = extractNodeFromPath(transformed, path)) !== null && _extractNodeFromPath !== void 0 ? _extractNodeFromPath : node;
|
|
8167
8184
|
};
|
|
8168
|
-
var replacer = function(node) {
|
|
8185
|
+
var replacer = function replacer(node) {
|
|
8169
8186
|
return traverseAndReplace(node, replaceNode);
|
|
8170
8187
|
};
|
|
8171
|
-
var asyncTransform2 = function(node) {
|
|
8188
|
+
var asyncTransform2 = function asyncTransform2(node) {
|
|
8172
8189
|
var _Builder;
|
|
8173
8190
|
var id = getAsyncNodeId(node);
|
|
8174
8191
|
var asset = getNestedAsset === null || getNestedAsset === void 0 ? void 0 : getNestedAsset(node);
|
|
@@ -8311,8 +8328,8 @@ var AsyncNodePlugin = function() {
|
|
|
8311
8328
|
value: function handleAsyncUpdate(node, context, newNode) {
|
|
8312
8329
|
var nodeResolveCache = context.nodeResolveCache, viewController = context.viewController, originalNodeCache = context.originalNodeCache;
|
|
8313
8330
|
if (nodeResolveCache.get(node.id) !== newNode) {
|
|
8314
|
-
nodeResolveCache.set(node.id, newNode ? newNode : node);
|
|
8315
8331
|
var _originalNodeCache_get;
|
|
8332
|
+
nodeResolveCache.set(node.id, newNode ? newNode : node);
|
|
8316
8333
|
var originalNode = (_originalNodeCache_get = originalNodeCache.get(node.id)) !== null && _originalNodeCache_get !== void 0 ? _originalNodeCache_get : /* @__PURE__ */ new Set([
|
|
8317
8334
|
node
|
|
8318
8335
|
]);
|