zakeke-configurator-react 0.0.209 → 0.0.211
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.
- package/dist/index.js +24 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66107,17 +66107,36 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
|
|
|
66107
66107
|
_context72.next = 14;
|
|
66108
66108
|
return _this.sync3DAndPlatformSelectionWithCurrentSelection();
|
|
66109
66109
|
case 14:
|
|
66110
|
-
|
|
66110
|
+
_this.buildStructure();
|
|
66111
|
+
_this.updatePrice();
|
|
66112
|
+
_this.selection.getAllAttributeSelections().forEach(function (attributeSelection) {
|
|
66113
|
+
var selectionOption = attributeSelection.get('options').find(function (x) {
|
|
66114
|
+
return x.get('selected');
|
|
66115
|
+
});
|
|
66116
|
+
|
|
66117
|
+
// Change platform selection
|
|
66118
|
+
var platformSelection = _this.platformAttributesSelection.find(function (x) {
|
|
66119
|
+
return (0,_helpers__WEBPACK_IMPORTED_MODULE_7__.matchCodes)(x.attributeCode, attributeSelection.get('attributeCode'));
|
|
66120
|
+
});
|
|
66121
|
+
if (platformSelection && selectionOption) {
|
|
66122
|
+
platformSelection.optionCode = selectionOption.get('optionCode');
|
|
66123
|
+
platformSelection.optionLabel = selectionOption.get('name');
|
|
66124
|
+
}
|
|
66125
|
+
console.log({
|
|
66126
|
+
platformSelection: platformSelection
|
|
66127
|
+
});
|
|
66128
|
+
});
|
|
66129
|
+
_context72.next = 22;
|
|
66111
66130
|
break;
|
|
66112
|
-
case
|
|
66113
|
-
_context72.prev =
|
|
66131
|
+
case 19:
|
|
66132
|
+
_context72.prev = 19;
|
|
66114
66133
|
_context72.t0 = _context72["catch"](0);
|
|
66115
66134
|
console.error(_context72.t0);
|
|
66116
|
-
case
|
|
66135
|
+
case 22:
|
|
66117
66136
|
case "end":
|
|
66118
66137
|
return _context72.stop();
|
|
66119
66138
|
}
|
|
66120
|
-
}, _callee71, null, [[0,
|
|
66139
|
+
}, _callee71, null, [[0, 19]]);
|
|
66121
66140
|
}));
|
|
66122
66141
|
return function (_x68) {
|
|
66123
66142
|
return _ref74.apply(this, arguments);
|