@ikas/storefront 0.0.103 → 0.0.105
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/build/index.es.js +6 -1
- package/build/index.js +6 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -16086,7 +16086,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16086
16086
|
_this.checkout.billingAddress || new IkasOrderAddress();
|
|
16087
16087
|
}
|
|
16088
16088
|
else {
|
|
16089
|
-
_this.checkout.billingAddress = _this.checkout.shippingAddress;
|
|
16089
|
+
_this.checkout.billingAddress = new IkasOrderAddress(cloneDeep_1(_this.checkout.shippingAddress) || {});
|
|
16090
16090
|
}
|
|
16091
16091
|
}
|
|
16092
16092
|
};
|
|
@@ -16313,6 +16313,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16313
16313
|
IkasTransactionStatusEnum.SUCCESS,
|
|
16314
16314
|
IkasTransactionStatusEnum.AUTHORIZED,
|
|
16315
16315
|
].includes(transactionStatus)) {
|
|
16316
|
+
localStorage.removeItem(USE_DIFFERENT_ADDRESS_KEY);
|
|
16316
16317
|
this.changeStep(CheckoutStep.SUCCESS);
|
|
16317
16318
|
}
|
|
16318
16319
|
else if (transactionStatus === IkasTransactionStatusEnum.PENDING &&
|
|
@@ -29228,6 +29229,9 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
29228
29229
|
case 1:
|
|
29229
29230
|
myCountryCode = _a.sent();
|
|
29230
29231
|
currentRouting = IkasStorefrontConfig.routings.find(function (r) { return r.id === IkasStorefrontConfig.storefrontRoutingId; });
|
|
29232
|
+
console.log("storefrontRoutingId", IkasStorefrontConfig.storefrontRoutingId);
|
|
29233
|
+
console.log("currentRouting", currentRouting);
|
|
29234
|
+
console.log(IkasStorefrontConfig.routings);
|
|
29231
29235
|
if (!(currentRouting && myCountryCode)) return [3 /*break*/, 3];
|
|
29232
29236
|
correctRouting = IkasStorefrontConfig.routings.find(function (r) { var _a; return (_a = r.countryCodes) === null || _a === void 0 ? void 0 : _a.includes(myCountryCode); });
|
|
29233
29237
|
isCorrectLocale = IkasStorefrontConfig.storefrontRoutingId === (correctRouting === null || correctRouting === void 0 ? void 0 : correctRouting.id);
|
|
@@ -29259,6 +29263,7 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
29259
29263
|
});
|
|
29260
29264
|
this.localeOptions = localeOptions_1;
|
|
29261
29265
|
if (!isCorrectLocale) {
|
|
29266
|
+
console.log("showing locale options");
|
|
29262
29267
|
this.showLocaleOptions = true;
|
|
29263
29268
|
}
|
|
29264
29269
|
this.localeChecked = true;
|
package/build/index.js
CHANGED
|
@@ -16092,7 +16092,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16092
16092
|
_this.checkout.billingAddress || new IkasOrderAddress();
|
|
16093
16093
|
}
|
|
16094
16094
|
else {
|
|
16095
|
-
_this.checkout.billingAddress = _this.checkout.shippingAddress;
|
|
16095
|
+
_this.checkout.billingAddress = new IkasOrderAddress(cloneDeep_1(_this.checkout.shippingAddress) || {});
|
|
16096
16096
|
}
|
|
16097
16097
|
}
|
|
16098
16098
|
};
|
|
@@ -16319,6 +16319,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16319
16319
|
exports.IkasTransactionStatusEnum.SUCCESS,
|
|
16320
16320
|
exports.IkasTransactionStatusEnum.AUTHORIZED,
|
|
16321
16321
|
].includes(transactionStatus)) {
|
|
16322
|
+
localStorage.removeItem(USE_DIFFERENT_ADDRESS_KEY);
|
|
16322
16323
|
this.changeStep(CheckoutStep.SUCCESS);
|
|
16323
16324
|
}
|
|
16324
16325
|
else if (transactionStatus === exports.IkasTransactionStatusEnum.PENDING &&
|
|
@@ -29208,6 +29209,9 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
29208
29209
|
case 1:
|
|
29209
29210
|
myCountryCode = _a.sent();
|
|
29210
29211
|
currentRouting = IkasStorefrontConfig.routings.find(function (r) { return r.id === IkasStorefrontConfig.storefrontRoutingId; });
|
|
29212
|
+
console.log("storefrontRoutingId", IkasStorefrontConfig.storefrontRoutingId);
|
|
29213
|
+
console.log("currentRouting", currentRouting);
|
|
29214
|
+
console.log(IkasStorefrontConfig.routings);
|
|
29211
29215
|
if (!(currentRouting && myCountryCode)) return [3 /*break*/, 3];
|
|
29212
29216
|
correctRouting = IkasStorefrontConfig.routings.find(function (r) { var _a; return (_a = r.countryCodes) === null || _a === void 0 ? void 0 : _a.includes(myCountryCode); });
|
|
29213
29217
|
isCorrectLocale = IkasStorefrontConfig.storefrontRoutingId === (correctRouting === null || correctRouting === void 0 ? void 0 : correctRouting.id);
|
|
@@ -29239,6 +29243,7 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
29239
29243
|
});
|
|
29240
29244
|
this.localeOptions = localeOptions_1;
|
|
29241
29245
|
if (!isCorrectLocale) {
|
|
29246
|
+
console.log("showing locale options");
|
|
29242
29247
|
this.showLocaleOptions = true;
|
|
29243
29248
|
}
|
|
29244
29249
|
this.localeChecked = true;
|