@ikas/storefront 0.1.24-alpha.7 → 0.1.24-alpha.8
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 +8 -1
- package/build/index.js +8 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -67815,7 +67815,7 @@ var AddressFormViewModel = /** @class */ (function () {
|
|
|
67815
67815
|
});
|
|
67816
67816
|
}); };
|
|
67817
67817
|
this.listCountries = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
67818
|
-
var _a, countries, currentRouting_1, currentCountry;
|
|
67818
|
+
var _a, countries, currentRouting_1, otherRoutings_1, currentCountry;
|
|
67819
67819
|
var _this = this;
|
|
67820
67820
|
var _b, _c;
|
|
67821
67821
|
return __generator(this, function (_d) {
|
|
@@ -67835,6 +67835,13 @@ var AddressFormViewModel = /** @class */ (function () {
|
|
|
67835
67835
|
if ((_c = currentRouting_1 === null || currentRouting_1 === void 0 ? void 0 : currentRouting_1.countryCodes) === null || _c === void 0 ? void 0 : _c.length) {
|
|
67836
67836
|
countries = countries.filter(function (c) { var _a; return c.iso2 && ((_a = currentRouting_1.countryCodes) === null || _a === void 0 ? void 0 : _a.includes(c.iso2)); });
|
|
67837
67837
|
}
|
|
67838
|
+
else {
|
|
67839
|
+
otherRoutings_1 = IkasStorefrontConfig.routings.filter(function (r) { return r.id !== IkasStorefrontConfig.storefrontRoutingId; });
|
|
67840
|
+
countries = countries.filter(function (c) {
|
|
67841
|
+
return c.iso2 &&
|
|
67842
|
+
!otherRoutings_1.some(function (otherRouting) { var _a; return (_a = otherRouting.countryCodes) === null || _a === void 0 ? void 0 : _a.includes(c.iso2); });
|
|
67843
|
+
});
|
|
67844
|
+
}
|
|
67838
67845
|
this.countries = countries;
|
|
67839
67846
|
if (this.countries.length === 1 && !this.country)
|
|
67840
67847
|
this.onCountryChange(this.countries[0].id);
|
package/build/index.js
CHANGED
|
@@ -67794,7 +67794,7 @@ var AddressFormViewModel = /** @class */ (function () {
|
|
|
67794
67794
|
});
|
|
67795
67795
|
}); };
|
|
67796
67796
|
this.listCountries = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
67797
|
-
var _a, countries, currentRouting_1, currentCountry;
|
|
67797
|
+
var _a, countries, currentRouting_1, otherRoutings_1, currentCountry;
|
|
67798
67798
|
var _this = this;
|
|
67799
67799
|
var _b, _c;
|
|
67800
67800
|
return __generator(this, function (_d) {
|
|
@@ -67814,6 +67814,13 @@ var AddressFormViewModel = /** @class */ (function () {
|
|
|
67814
67814
|
if ((_c = currentRouting_1 === null || currentRouting_1 === void 0 ? void 0 : currentRouting_1.countryCodes) === null || _c === void 0 ? void 0 : _c.length) {
|
|
67815
67815
|
countries = countries.filter(function (c) { var _a; return c.iso2 && ((_a = currentRouting_1.countryCodes) === null || _a === void 0 ? void 0 : _a.includes(c.iso2)); });
|
|
67816
67816
|
}
|
|
67817
|
+
else {
|
|
67818
|
+
otherRoutings_1 = IkasStorefrontConfig.routings.filter(function (r) { return r.id !== IkasStorefrontConfig.storefrontRoutingId; });
|
|
67819
|
+
countries = countries.filter(function (c) {
|
|
67820
|
+
return c.iso2 &&
|
|
67821
|
+
!otherRoutings_1.some(function (otherRouting) { var _a; return (_a = otherRouting.countryCodes) === null || _a === void 0 ? void 0 : _a.includes(c.iso2); });
|
|
67822
|
+
});
|
|
67823
|
+
}
|
|
67817
67824
|
this.countries = countries;
|
|
67818
67825
|
if (this.countries.length === 1 && !this.country)
|
|
67819
67826
|
this.onCountryChange(this.countries[0].id);
|