@ikas/storefront 0.0.104 → 0.0.106
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 +11 -1
- package/build/index.js +11 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -28555,7 +28555,13 @@ var SettingsHelper = /** @class */ (function () {
|
|
|
28555
28555
|
return __generator(this, function (_b) {
|
|
28556
28556
|
switch (_b.label) {
|
|
28557
28557
|
case 0:
|
|
28558
|
-
locale = context.locale
|
|
28558
|
+
locale = context.locale;
|
|
28559
|
+
if (!locale) {
|
|
28560
|
+
return [2 /*return*/, {
|
|
28561
|
+
props: {},
|
|
28562
|
+
notFound: true,
|
|
28563
|
+
}];
|
|
28564
|
+
}
|
|
28559
28565
|
return [4 /*yield*/, SettingsHelper.getSettings(locale)];
|
|
28560
28566
|
case 1:
|
|
28561
28567
|
settings = _b.sent();
|
|
@@ -29229,6 +29235,9 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
29229
29235
|
case 1:
|
|
29230
29236
|
myCountryCode = _a.sent();
|
|
29231
29237
|
currentRouting = IkasStorefrontConfig.routings.find(function (r) { return r.id === IkasStorefrontConfig.storefrontRoutingId; });
|
|
29238
|
+
console.log("storefrontRoutingId", IkasStorefrontConfig.storefrontRoutingId);
|
|
29239
|
+
console.log("currentRouting", currentRouting);
|
|
29240
|
+
console.log(IkasStorefrontConfig.routings);
|
|
29232
29241
|
if (!(currentRouting && myCountryCode)) return [3 /*break*/, 3];
|
|
29233
29242
|
correctRouting = IkasStorefrontConfig.routings.find(function (r) { var _a; return (_a = r.countryCodes) === null || _a === void 0 ? void 0 : _a.includes(myCountryCode); });
|
|
29234
29243
|
isCorrectLocale = IkasStorefrontConfig.storefrontRoutingId === (correctRouting === null || correctRouting === void 0 ? void 0 : correctRouting.id);
|
|
@@ -29260,6 +29269,7 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
29260
29269
|
});
|
|
29261
29270
|
this.localeOptions = localeOptions_1;
|
|
29262
29271
|
if (!isCorrectLocale) {
|
|
29272
|
+
console.log("showing locale options");
|
|
29263
29273
|
this.showLocaleOptions = true;
|
|
29264
29274
|
}
|
|
29265
29275
|
this.localeChecked = true;
|
package/build/index.js
CHANGED
|
@@ -28535,7 +28535,13 @@ var SettingsHelper = /** @class */ (function () {
|
|
|
28535
28535
|
return __generator(this, function (_b) {
|
|
28536
28536
|
switch (_b.label) {
|
|
28537
28537
|
case 0:
|
|
28538
|
-
locale = context.locale
|
|
28538
|
+
locale = context.locale;
|
|
28539
|
+
if (!locale) {
|
|
28540
|
+
return [2 /*return*/, {
|
|
28541
|
+
props: {},
|
|
28542
|
+
notFound: true,
|
|
28543
|
+
}];
|
|
28544
|
+
}
|
|
28539
28545
|
return [4 /*yield*/, SettingsHelper.getSettings(locale)];
|
|
28540
28546
|
case 1:
|
|
28541
28547
|
settings = _b.sent();
|
|
@@ -29209,6 +29215,9 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
29209
29215
|
case 1:
|
|
29210
29216
|
myCountryCode = _a.sent();
|
|
29211
29217
|
currentRouting = IkasStorefrontConfig.routings.find(function (r) { return r.id === IkasStorefrontConfig.storefrontRoutingId; });
|
|
29218
|
+
console.log("storefrontRoutingId", IkasStorefrontConfig.storefrontRoutingId);
|
|
29219
|
+
console.log("currentRouting", currentRouting);
|
|
29220
|
+
console.log(IkasStorefrontConfig.routings);
|
|
29212
29221
|
if (!(currentRouting && myCountryCode)) return [3 /*break*/, 3];
|
|
29213
29222
|
correctRouting = IkasStorefrontConfig.routings.find(function (r) { var _a; return (_a = r.countryCodes) === null || _a === void 0 ? void 0 : _a.includes(myCountryCode); });
|
|
29214
29223
|
isCorrectLocale = IkasStorefrontConfig.storefrontRoutingId === (correctRouting === null || correctRouting === void 0 ? void 0 : correctRouting.id);
|
|
@@ -29240,6 +29249,7 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
29240
29249
|
});
|
|
29241
29250
|
this.localeOptions = localeOptions_1;
|
|
29242
29251
|
if (!isCorrectLocale) {
|
|
29252
|
+
console.log("showing locale options");
|
|
29243
29253
|
this.showLocaleOptions = true;
|
|
29244
29254
|
}
|
|
29245
29255
|
this.localeChecked = true;
|