@ikas/storefront 0.0.94 → 0.0.96
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/__generated__/global-types.d.ts +7 -1
- package/build/api/cart/__generated__/getCart.d.ts +4 -0
- package/build/api/cart/__generated__/saveItemToCart.d.ts +4 -0
- package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
- package/build/api/checkout/index.d.ts +1 -1
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +3 -0
- package/build/api/country/index.d.ts +1 -1
- package/build/api/index.d.ts +0 -2
- package/build/components/checkout/index.d.ts +3 -0
- package/build/components/checkout/model.d.ts +4 -3
- package/build/index.es.js +426 -409
- package/build/index.js +427 -412
- package/build/models/data/cart/index.d.ts +9 -0
- package/build/models/data/sales-channel/index.d.ts +12 -0
- package/build/models/data/storefront/{storefront-domain → domain}/index.d.ts +1 -0
- package/build/models/data/storefront/index.d.ts +19 -6
- package/build/models/data/storefront/localization/index.d.ts +7 -0
- package/build/models/data/storefront/routing/index.d.ts +9 -0
- package/build/models/data/storefront/theme/index.d.ts +13 -0
- package/build/models/data/storefront/theme-localization/index.d.ts +11 -0
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/pages/checkout/[id].d.ts +3 -0
- package/build/storefront/index.d.ts +6 -0
- package/build/utils/settings.d.ts +82 -0
- package/package.json +1 -1
- package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +0 -13
- package/build/api/product-stock-location/index.d.ts +0 -4
- package/build/api/storefront/__generated__/getStorefront.d.ts +0 -23
- package/build/api/storefront/index.d.ts +0 -4
- package/build/api/theme/index.d.ts +0 -4
- package/build/models/data/storefront/stockfront-location/index.d.ts +0 -5
- package/build/models/data/storefront/stockfront-route/index.d.ts +0 -5
- package/build/models/data/storefront/storefront-region/index.d.ts +0 -18
package/build/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { makeAutoObservable, toJS, runInAction, reaction, makeObservable, computed, observable, action, configure } from 'mobx';
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import getConfig from 'next/config';
|
|
4
2
|
import React, { createElement, Fragment, useState, useEffect, useCallback, useRef, useMemo } from 'react';
|
|
3
|
+
import getConfig from 'next/config';
|
|
5
4
|
import { observer } from 'mobx-react-lite';
|
|
6
5
|
import { useRouter } from 'next/router';
|
|
7
6
|
import Image$1 from 'next/image';
|
|
8
7
|
import Link from 'next/link';
|
|
9
8
|
import Head from 'next/head';
|
|
9
|
+
import fs from 'fs';
|
|
10
10
|
import dynamic from 'next/dynamic';
|
|
11
11
|
|
|
12
12
|
/*! *****************************************************************************
|
|
@@ -11003,6 +11003,7 @@ var IkasProductDetailPropValueProvider = /** @class */ (function () {
|
|
|
11003
11003
|
return [2 /*return*/, null];
|
|
11004
11004
|
return [4 /*yield*/, IkasProductSearchAPI.searchProducts({
|
|
11005
11005
|
productIdList: [this.productDetailPropValue.productId],
|
|
11006
|
+
priceListId: IkasStorefrontConfig.priceListId,
|
|
11006
11007
|
})];
|
|
11007
11008
|
case 1:
|
|
11008
11009
|
productSearchResponse = _b.sent();
|
|
@@ -12032,6 +12033,7 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
12032
12033
|
return [2 /*return*/];
|
|
12033
12034
|
return [4 /*yield*/, IkasProductSearchAPI.searchProducts({
|
|
12034
12035
|
productIdList: [metaDataResponse.metaData.targetId],
|
|
12036
|
+
priceListId: IkasStorefrontConfig.priceListId,
|
|
12035
12037
|
})];
|
|
12036
12038
|
case 2:
|
|
12037
12039
|
productsResponse = _b.sent();
|
|
@@ -12790,6 +12792,10 @@ var IkasCart = /** @class */ (function () {
|
|
|
12790
12792
|
: [];
|
|
12791
12793
|
this.merchantId = data.merchantId || "";
|
|
12792
12794
|
this.totalPrice = data.totalPrice || 0;
|
|
12795
|
+
this.salesChannelId = data.salesChannelId || "";
|
|
12796
|
+
this.storefrontId = data.storefrontId || null;
|
|
12797
|
+
this.storefrontRoutingId = data.storefrontRoutingId || null;
|
|
12798
|
+
this.storefrontThemeId = data.storefrontThemeId || null;
|
|
12793
12799
|
makeAutoObservable(this);
|
|
12794
12800
|
}
|
|
12795
12801
|
Object.defineProperty(IkasCart.prototype, "totalTax", {
|
|
@@ -15817,7 +15823,7 @@ var MAX_CVC_LENGTH = 4;
|
|
|
15817
15823
|
var USE_DIFFERENT_ADDRESS_KEY = "sAddr";
|
|
15818
15824
|
var isServer$1 = typeof localStorage === "undefined";
|
|
15819
15825
|
var CheckoutViewModel = /** @class */ (function () {
|
|
15820
|
-
function CheckoutViewModel(checkout, queryParams, router) {
|
|
15826
|
+
function CheckoutViewModel(checkout, queryParams, router, returnPolicy, privacyPolicy, termsOfService) {
|
|
15821
15827
|
var _this = this;
|
|
15822
15828
|
this.checkout = new IkasCheckout();
|
|
15823
15829
|
this.storefront = null;
|
|
@@ -15923,7 +15929,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
15923
15929
|
variantId: i.variant.id,
|
|
15924
15930
|
productId: i.variant.productId,
|
|
15925
15931
|
}); });
|
|
15926
|
-
return [4 /*yield*/, IkasCheckoutAPI.checkStocks(lines)];
|
|
15932
|
+
return [4 /*yield*/, IkasCheckoutAPI.checkStocks(lines, IkasStorefrontConfig.stockLocationIds || [])];
|
|
15927
15933
|
case 1:
|
|
15928
15934
|
result = _b.sent();
|
|
15929
15935
|
if (!result) {
|
|
@@ -15936,7 +15942,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
15936
15942
|
data = unavailableItems.map(function (item) { return ({
|
|
15937
15943
|
variant: _this.cart.items.find(function (i) { return i.variant.id === item.variantId; })
|
|
15938
15944
|
.variant,
|
|
15939
|
-
availableQuantity: item.
|
|
15945
|
+
availableQuantity: item.stockCount,
|
|
15940
15946
|
}); });
|
|
15941
15947
|
throw {
|
|
15942
15948
|
type: ErrorType.STOCK_ERROR,
|
|
@@ -15953,7 +15959,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
15953
15959
|
switch (_b.label) {
|
|
15954
15960
|
case 0:
|
|
15955
15961
|
_a = this;
|
|
15956
|
-
return [4 /*yield*/, IkasCountryAPI.listShippingCountries()];
|
|
15962
|
+
return [4 /*yield*/, IkasCountryAPI.listShippingCountries(IkasStorefrontConfig.storefrontId)];
|
|
15957
15963
|
case 1:
|
|
15958
15964
|
_a.shippingCountryIds = _b.sent();
|
|
15959
15965
|
return [2 /*return*/];
|
|
@@ -16029,30 +16035,6 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16029
16035
|
}
|
|
16030
16036
|
});
|
|
16031
16037
|
}); };
|
|
16032
|
-
this.getStorefront = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16033
|
-
var storefront;
|
|
16034
|
-
return __generator(this, function (_a) {
|
|
16035
|
-
switch (_a.label) {
|
|
16036
|
-
case 0:
|
|
16037
|
-
if (!IkasStorefrontConfig.config.storefrontId || !!this.storefront)
|
|
16038
|
-
return [2 /*return*/];
|
|
16039
|
-
_a.label = 1;
|
|
16040
|
-
case 1:
|
|
16041
|
-
_a.trys.push([1, 3, , 4]);
|
|
16042
|
-
return [4 /*yield*/, IkasStorefrontAPI.getStorefront(IkasStorefrontConfig.config.storefrontId)];
|
|
16043
|
-
case 2:
|
|
16044
|
-
storefront = _a.sent();
|
|
16045
|
-
if (storefront) {
|
|
16046
|
-
this.storefront = storefront;
|
|
16047
|
-
}
|
|
16048
|
-
return [3 /*break*/, 4];
|
|
16049
|
-
case 3:
|
|
16050
|
-
_a.sent();
|
|
16051
|
-
return [3 /*break*/, 4];
|
|
16052
|
-
case 4: return [2 /*return*/];
|
|
16053
|
-
}
|
|
16054
|
-
});
|
|
16055
|
-
}); };
|
|
16056
16038
|
this.createCustomer = function () {
|
|
16057
16039
|
if (_this.customerStore.customer) {
|
|
16058
16040
|
_this.checkout.customer = _this.customerStore.customer;
|
|
@@ -16184,7 +16166,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16184
16166
|
_this.router.push("/");
|
|
16185
16167
|
};
|
|
16186
16168
|
this.onProceedToShippingClick = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16187
|
-
var newAddress, customer,
|
|
16169
|
+
var newAddress, customer, err_2;
|
|
16188
16170
|
return __generator(this, function (_a) {
|
|
16189
16171
|
switch (_a.label) {
|
|
16190
16172
|
case 0:
|
|
@@ -16214,12 +16196,12 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16214
16196
|
this.changeStep(CheckoutStep.SHIPPING);
|
|
16215
16197
|
return [3 /*break*/, 7];
|
|
16216
16198
|
case 6:
|
|
16217
|
-
|
|
16218
|
-
if (
|
|
16219
|
-
this.error =
|
|
16199
|
+
err_2 = _a.sent();
|
|
16200
|
+
if (err_2.type) {
|
|
16201
|
+
this.error = err_2;
|
|
16220
16202
|
}
|
|
16221
16203
|
else {
|
|
16222
|
-
console.log(
|
|
16204
|
+
console.log(err_2);
|
|
16223
16205
|
this.error = {
|
|
16224
16206
|
type: ErrorType.UNKNOWN,
|
|
16225
16207
|
};
|
|
@@ -16231,7 +16213,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16231
16213
|
});
|
|
16232
16214
|
}); };
|
|
16233
16215
|
this.onProceedToPaymentClick = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16234
|
-
var
|
|
16216
|
+
var err_3;
|
|
16235
16217
|
return __generator(this, function (_a) {
|
|
16236
16218
|
switch (_a.label) {
|
|
16237
16219
|
case 0:
|
|
@@ -16251,12 +16233,12 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16251
16233
|
this.changeStep(CheckoutStep.PAYMENT);
|
|
16252
16234
|
return [3 /*break*/, 4];
|
|
16253
16235
|
case 3:
|
|
16254
|
-
|
|
16255
|
-
if (
|
|
16256
|
-
this.error =
|
|
16236
|
+
err_3 = _a.sent();
|
|
16237
|
+
if (err_3.type) {
|
|
16238
|
+
this.error = err_3;
|
|
16257
16239
|
}
|
|
16258
16240
|
else {
|
|
16259
|
-
console.log(
|
|
16241
|
+
console.log(err_3);
|
|
16260
16242
|
this.error = {
|
|
16261
16243
|
type: ErrorType.UNKNOWN,
|
|
16262
16244
|
};
|
|
@@ -16268,7 +16250,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16268
16250
|
});
|
|
16269
16251
|
}); };
|
|
16270
16252
|
this.performPayment = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
16271
|
-
var response, transactionStatus,
|
|
16253
|
+
var response, transactionStatus, err_4;
|
|
16272
16254
|
return __generator(this, function (_a) {
|
|
16273
16255
|
switch (_a.label) {
|
|
16274
16256
|
case 0:
|
|
@@ -16314,10 +16296,10 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16314
16296
|
}
|
|
16315
16297
|
return [3 /*break*/, 6];
|
|
16316
16298
|
case 5:
|
|
16317
|
-
|
|
16318
|
-
if (
|
|
16319
|
-
console.log(
|
|
16320
|
-
this.error =
|
|
16299
|
+
err_4 = _a.sent();
|
|
16300
|
+
if (err_4.type) {
|
|
16301
|
+
console.log(err_4);
|
|
16302
|
+
this.error = err_4;
|
|
16321
16303
|
}
|
|
16322
16304
|
else {
|
|
16323
16305
|
this.error = {
|
|
@@ -16396,6 +16378,9 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16396
16378
|
}); };
|
|
16397
16379
|
this.checkout = checkout;
|
|
16398
16380
|
this.router = router;
|
|
16381
|
+
this.returnPolicy = returnPolicy;
|
|
16382
|
+
this.privacyPolicy = privacyPolicy;
|
|
16383
|
+
this.termsOfService = termsOfService;
|
|
16399
16384
|
this.init(queryParams);
|
|
16400
16385
|
makeAutoObservable(this);
|
|
16401
16386
|
}
|
|
@@ -16406,15 +16391,6 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
16406
16391
|
enumerable: false,
|
|
16407
16392
|
configurable: true
|
|
16408
16393
|
});
|
|
16409
|
-
Object.defineProperty(CheckoutViewModel.prototype, "storefrontRegion", {
|
|
16410
|
-
get: function () {
|
|
16411
|
-
var _a;
|
|
16412
|
-
return ((_a = this.storefront) === null || _a === void 0 ? void 0 : _a.regions.length) ? this.storefront.regions[0]
|
|
16413
|
-
: undefined;
|
|
16414
|
-
},
|
|
16415
|
-
enumerable: false,
|
|
16416
|
-
configurable: true
|
|
16417
|
-
});
|
|
16418
16394
|
Object.defineProperty(CheckoutViewModel.prototype, "selectedPaymentGatewayIndex", {
|
|
16419
16395
|
get: function () {
|
|
16420
16396
|
var _this = this;
|
|
@@ -17078,6 +17054,7 @@ var IkasCustomerStore = /** @class */ (function () {
|
|
|
17078
17054
|
return [2 /*return*/, []];
|
|
17079
17055
|
return [4 /*yield*/, IkasProductSearchAPI.searchProducts({
|
|
17080
17056
|
productIdList: favoriteProductsResult.map(function (fP) { return fP.productId; }),
|
|
17057
|
+
priceListId: IkasStorefrontConfig.priceListId,
|
|
17081
17058
|
})];
|
|
17082
17059
|
case 2:
|
|
17083
17060
|
productsResult = _b.sent();
|
|
@@ -21935,7 +21912,10 @@ var IkasProductList = /** @class */ (function () {
|
|
|
21935
21912
|
Object.defineProperty(IkasProductList.prototype, "isFiltered", {
|
|
21936
21913
|
get: function () {
|
|
21937
21914
|
var _a;
|
|
21938
|
-
return (((_a = this.filters) === null || _a === void 0 ? void 0 : _a.some(function (f) { return !!f.valueList.length; })) ||
|
|
21915
|
+
return (((_a = this.filters) === null || _a === void 0 ? void 0 : _a.some(function (f) { return !!f.valueList.length; })) ||
|
|
21916
|
+
!!this._searchKeyword ||
|
|
21917
|
+
(this._pageType !== IkasThemePageType.CATEGORY &&
|
|
21918
|
+
!!this._filterCategoryId));
|
|
21939
21919
|
},
|
|
21940
21920
|
enumerable: false,
|
|
21941
21921
|
configurable: true
|
|
@@ -21998,13 +21978,20 @@ var IkasProductList = /** @class */ (function () {
|
|
|
21998
21978
|
});
|
|
21999
21979
|
Object.defineProperty(IkasProductList.prototype, "filterQueryParams", {
|
|
22000
21980
|
get: function () {
|
|
22001
|
-
var
|
|
21981
|
+
var _this = this;
|
|
21982
|
+
var _a, _b, _c;
|
|
22002
21983
|
var queryParams = {};
|
|
22003
21984
|
(_a = this.filters) === null || _a === void 0 ? void 0 : _a.forEach(function (f) {
|
|
22004
21985
|
queryParams[f.key] = f.keyList;
|
|
22005
21986
|
});
|
|
22006
21987
|
if (this._searchKeyword)
|
|
22007
21988
|
queryParams.s = this._searchKeyword;
|
|
21989
|
+
if (this._pageType !== IkasThemePageType.CATEGORY &&
|
|
21990
|
+
this._filterCategoryId) {
|
|
21991
|
+
var slug = (_c = (_b = this.filterCategories) === null || _b === void 0 ? void 0 : _b.find(function (fc) { return fc.id === _this._filterCategoryId; })) === null || _c === void 0 ? void 0 : _c.slug;
|
|
21992
|
+
if (slug)
|
|
21993
|
+
queryParams.c = slug;
|
|
21994
|
+
}
|
|
22008
21995
|
return queryString.stringify(queryParams, { arrayFormat: "comma" });
|
|
22009
21996
|
},
|
|
22010
21997
|
enumerable: false,
|
|
@@ -22059,6 +22046,7 @@ var IkasProductList = /** @class */ (function () {
|
|
|
22059
22046
|
categoryIdList: this._filterCategoryId
|
|
22060
22047
|
? [this._filterCategoryId]
|
|
22061
22048
|
: undefined,
|
|
22049
|
+
priceListId: IkasStorefrontConfig.priceListId,
|
|
22062
22050
|
query: this._searchKeyword,
|
|
22063
22051
|
})];
|
|
22064
22052
|
case 1: return [2 /*return*/, _c.sent()];
|
|
@@ -22086,6 +22074,7 @@ var IkasProductList = /** @class */ (function () {
|
|
|
22086
22074
|
};
|
|
22087
22075
|
IkasProductList.prototype.applyQueryParamFilters = function (queryParams) {
|
|
22088
22076
|
var _this = this;
|
|
22077
|
+
var _a;
|
|
22089
22078
|
try {
|
|
22090
22079
|
queryParams === null || queryParams === void 0 ? void 0 : queryParams.forEach(function (value, key) {
|
|
22091
22080
|
var _a;
|
|
@@ -22097,6 +22086,15 @@ var IkasProductList = /** @class */ (function () {
|
|
|
22097
22086
|
var querySearch = queryParams === null || queryParams === void 0 ? void 0 : queryParams.get("s");
|
|
22098
22087
|
if (querySearch)
|
|
22099
22088
|
this._searchKeyword = querySearch;
|
|
22089
|
+
if (this._pageType !== IkasThemePageType.CATEGORY) {
|
|
22090
|
+
var queryCategory_1 = queryParams === null || queryParams === void 0 ? void 0 : queryParams.get("c");
|
|
22091
|
+
if (queryCategory_1) {
|
|
22092
|
+
var filterCategory = (_a = this.filterCategories) === null || _a === void 0 ? void 0 : _a.find(function (fc) { return fc.slug === queryCategory_1; });
|
|
22093
|
+
if (filterCategory) {
|
|
22094
|
+
this._filterCategoryId = filterCategory.id;
|
|
22095
|
+
}
|
|
22096
|
+
}
|
|
22097
|
+
}
|
|
22100
22098
|
}
|
|
22101
22099
|
catch (err) {
|
|
22102
22100
|
console.log(err);
|
|
@@ -22143,12 +22141,32 @@ var IkasProductList = /** @class */ (function () {
|
|
|
22143
22141
|
var _a;
|
|
22144
22142
|
(_a = this.filters) === null || _a === void 0 ? void 0 : _a.forEach(function (filter) { return filter.clear(); });
|
|
22145
22143
|
this._searchKeyword = "";
|
|
22144
|
+
if (this._pageType !== IkasThemePageType.CATEGORY) {
|
|
22145
|
+
this._filterCategoryId = undefined;
|
|
22146
|
+
}
|
|
22146
22147
|
this.applyFilters();
|
|
22147
22148
|
};
|
|
22148
|
-
IkasProductList.prototype.onFilterCategoryClick = function (filterCategory) {
|
|
22149
|
+
IkasProductList.prototype.onFilterCategoryClick = function (filterCategory, disableRoute) {
|
|
22149
22150
|
var _a;
|
|
22150
|
-
(
|
|
22151
|
-
|
|
22151
|
+
if (disableRoute === void 0) { disableRoute = false; }
|
|
22152
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
22153
|
+
return __generator(this, function (_b) {
|
|
22154
|
+
switch (_b.label) {
|
|
22155
|
+
case 0:
|
|
22156
|
+
if (!disableRoute) return [3 /*break*/, 2];
|
|
22157
|
+
this._filterCategoryId = filterCategory.id;
|
|
22158
|
+
return [4 /*yield*/, this.applyFilters()];
|
|
22159
|
+
case 1:
|
|
22160
|
+
_b.sent();
|
|
22161
|
+
return [3 /*break*/, 3];
|
|
22162
|
+
case 2:
|
|
22163
|
+
(_a = this.router) === null || _a === void 0 ? void 0 : _a.push(filterCategory.href +
|
|
22164
|
+
(this.filterQueryParams ? "?" + this.filterQueryParams : ""));
|
|
22165
|
+
_b.label = 3;
|
|
22166
|
+
case 3: return [2 /*return*/];
|
|
22167
|
+
}
|
|
22168
|
+
});
|
|
22169
|
+
});
|
|
22152
22170
|
};
|
|
22153
22171
|
IkasProductList.prototype.toJSON = function () {
|
|
22154
22172
|
return {
|
|
@@ -24236,7 +24254,7 @@ var IkasCartAPI = /** @class */ (function () {
|
|
|
24236
24254
|
return __generator(this, function (_b) {
|
|
24237
24255
|
switch (_b.label) {
|
|
24238
24256
|
case 0:
|
|
24239
|
-
MUTATION = src(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n mutation saveItemToCart($input: SaveItemToCartInput!) {\n saveItemToCart(input: $input) {\n id\n createdAt\n updatedAt\n dueDate\n currencyCode\n customerId\n merchantId\n itemCount\n totalPrice\n items {\n createdAt\n currencyCode\n deleted\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n id\n name\n sku\n slug\n barcodeList\n mainImageId\n productId\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n }\n }\n "], ["\n mutation saveItemToCart($input: SaveItemToCartInput!) {\n saveItemToCart(input: $input) {\n id\n createdAt\n updatedAt\n dueDate\n currencyCode\n customerId\n merchantId\n itemCount\n totalPrice\n items {\n createdAt\n currencyCode\n deleted\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n id\n name\n sku\n slug\n barcodeList\n mainImageId\n productId\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n }\n }\n "])));
|
|
24257
|
+
MUTATION = src(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n mutation saveItemToCart($input: SaveItemToCartInput!) {\n saveItemToCart(input: $input) {\n id\n createdAt\n updatedAt\n dueDate\n currencyCode\n customerId\n merchantId\n itemCount\n totalPrice\n salesChannelId\n storefrontId\n storefrontRoutingId\n storefrontThemeId\n items {\n createdAt\n currencyCode\n deleted\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n id\n name\n sku\n slug\n barcodeList\n mainImageId\n productId\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n }\n }\n "], ["\n mutation saveItemToCart($input: SaveItemToCartInput!) {\n saveItemToCart(input: $input) {\n id\n createdAt\n updatedAt\n dueDate\n currencyCode\n customerId\n merchantId\n itemCount\n totalPrice\n salesChannelId\n storefrontId\n storefrontRoutingId\n storefrontThemeId\n items {\n createdAt\n currencyCode\n deleted\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n id\n name\n sku\n slug\n barcodeList\n mainImageId\n productId\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n }\n }\n "])));
|
|
24240
24258
|
_b.label = 1;
|
|
24241
24259
|
case 1:
|
|
24242
24260
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -24271,7 +24289,7 @@ var IkasCartAPI = /** @class */ (function () {
|
|
|
24271
24289
|
return __generator(this, function (_b) {
|
|
24272
24290
|
switch (_b.label) {
|
|
24273
24291
|
case 0:
|
|
24274
|
-
QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getCart($cartId: String, $customerId: String) {\n getCart(id: $cartId, customerId: $customerId) {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n slug\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n }\n "], ["\n query getCart($cartId: String, $customerId: String) {\n getCart(id: $cartId, customerId: $customerId) {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n slug\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n }\n "])));
|
|
24292
|
+
QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getCart($cartId: String, $customerId: String) {\n getCart(id: $cartId, customerId: $customerId) {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n salesChannelId\n storefrontId\n storefrontRoutingId\n storefrontThemeId\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n slug\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n }\n "], ["\n query getCart($cartId: String, $customerId: String) {\n getCart(id: $cartId, customerId: $customerId) {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n salesChannelId\n storefrontId\n storefrontRoutingId\n storefrontThemeId\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n slug\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n }\n "])));
|
|
24275
24293
|
_b.label = 1;
|
|
24276
24294
|
case 1:
|
|
24277
24295
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -24743,13 +24761,13 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
24743
24761
|
});
|
|
24744
24762
|
});
|
|
24745
24763
|
};
|
|
24746
|
-
IkasCheckoutAPI.checkStocks = function (lines) {
|
|
24764
|
+
IkasCheckoutAPI.checkStocks = function (lines, stockLocationIdList) {
|
|
24747
24765
|
return __awaiter(this, void 0, void 0, function () {
|
|
24748
24766
|
var QUERY, _a, data, errors, err_7;
|
|
24749
24767
|
return __generator(this, function (_b) {
|
|
24750
24768
|
switch (_b.label) {
|
|
24751
24769
|
case 0:
|
|
24752
|
-
QUERY = src(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query checkStocks($lines: [CheckStocksLineInput!]!) {\n checkStocks(lines: $lines) {\n lines {\n
|
|
24770
|
+
QUERY = src(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query checkStocks(\n $lines: [CheckStocksLineInput!]!\n $stockLocationIdList: [String!]\n ) {\n checkStocks(lines: $lines, stockLocationIdList: $stockLocationIdList) {\n lines {\n stockCount\n isAvailable\n variantId\n }\n }\n }\n "], ["\n query checkStocks(\n $lines: [CheckStocksLineInput!]!\n $stockLocationIdList: [String!]\n ) {\n checkStocks(lines: $lines, stockLocationIdList: $stockLocationIdList) {\n lines {\n stockCount\n isAvailable\n variantId\n }\n }\n }\n "])));
|
|
24753
24771
|
_b.label = 1;
|
|
24754
24772
|
case 1:
|
|
24755
24773
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -24759,6 +24777,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
24759
24777
|
query: QUERY,
|
|
24760
24778
|
variables: {
|
|
24761
24779
|
lines: lines,
|
|
24780
|
+
stockLocationIdList: stockLocationIdList,
|
|
24762
24781
|
},
|
|
24763
24782
|
})];
|
|
24764
24783
|
case 2:
|
|
@@ -24870,13 +24889,13 @@ var IkasCountryAPI = /** @class */ (function () {
|
|
|
24870
24889
|
});
|
|
24871
24890
|
});
|
|
24872
24891
|
};
|
|
24873
|
-
IkasCountryAPI.listShippingCountries = function () {
|
|
24892
|
+
IkasCountryAPI.listShippingCountries = function (storefrontId) {
|
|
24874
24893
|
return __awaiter(this, void 0, void 0, function () {
|
|
24875
24894
|
var QUERY, _a, data, errors, err_2;
|
|
24876
24895
|
return __generator(this, function (_b) {
|
|
24877
24896
|
switch (_b.label) {
|
|
24878
24897
|
case 0:
|
|
24879
|
-
QUERY = src(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query getAvailableShippingCountries {\n getAvailableShippingCountries\n }\n "], ["\n query getAvailableShippingCountries {\n getAvailableShippingCountries\n }\n "])));
|
|
24898
|
+
QUERY = src(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query getAvailableShippingCountries($storefrontId: String!) {\n getAvailableShippingCountries(storefrontId: $storefrontId)\n }\n "], ["\n query getAvailableShippingCountries($storefrontId: String!) {\n getAvailableShippingCountries(storefrontId: $storefrontId)\n }\n "])));
|
|
24880
24899
|
_b.label = 1;
|
|
24881
24900
|
case 1:
|
|
24882
24901
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -24884,6 +24903,9 @@ var IkasCountryAPI = /** @class */ (function () {
|
|
|
24884
24903
|
.getClient()
|
|
24885
24904
|
.query({
|
|
24886
24905
|
query: QUERY,
|
|
24906
|
+
variables: {
|
|
24907
|
+
storefrontId: storefrontId,
|
|
24908
|
+
},
|
|
24887
24909
|
})];
|
|
24888
24910
|
case 2:
|
|
24889
24911
|
_a = _b.sent(), data = _a.data, errors = _a.errors;
|
|
@@ -25877,150 +25899,6 @@ var IkasStateAPI = /** @class */ (function () {
|
|
|
25877
25899
|
}());
|
|
25878
25900
|
var templateObject_1$e;
|
|
25879
25901
|
|
|
25880
|
-
var IkasStorefrontDomain = /** @class */ (function () {
|
|
25881
|
-
function IkasStorefrontDomain(data) {
|
|
25882
|
-
if (data === void 0) { data = {}; }
|
|
25883
|
-
this.id = data.id || "";
|
|
25884
|
-
this.merchantDomainId = data.merchantDomainId || "";
|
|
25885
|
-
this.name = data.name || "";
|
|
25886
|
-
this.redirectDomainName = data.redirectDomainName || null;
|
|
25887
|
-
makeAutoObservable(this);
|
|
25888
|
-
}
|
|
25889
|
-
return IkasStorefrontDomain;
|
|
25890
|
-
}());
|
|
25891
|
-
|
|
25892
|
-
var IkasStorefrontLocation = /** @class */ (function () {
|
|
25893
|
-
function IkasStorefrontLocation(data) {
|
|
25894
|
-
if (data === void 0) { data = {}; }
|
|
25895
|
-
this.countryId = data.countryId || "";
|
|
25896
|
-
this.stateId = data.stateId || null;
|
|
25897
|
-
makeAutoObservable(this);
|
|
25898
|
-
}
|
|
25899
|
-
return IkasStorefrontLocation;
|
|
25900
|
-
}());
|
|
25901
|
-
|
|
25902
|
-
var IkasStorefrontRoute = /** @class */ (function () {
|
|
25903
|
-
function IkasStorefrontRoute(data) {
|
|
25904
|
-
if (data === void 0) { data = {}; }
|
|
25905
|
-
this.domainId = data.domainId || "";
|
|
25906
|
-
this.useSubPath = data.useSubPath || false;
|
|
25907
|
-
makeAutoObservable(this);
|
|
25908
|
-
}
|
|
25909
|
-
return IkasStorefrontRoute;
|
|
25910
|
-
}());
|
|
25911
|
-
|
|
25912
|
-
var IkasStorefrontRegion = /** @class */ (function () {
|
|
25913
|
-
function IkasStorefrontRegion(data) {
|
|
25914
|
-
if (data === void 0) { data = {}; }
|
|
25915
|
-
// Extra
|
|
25916
|
-
this.theme = new IkasTheme();
|
|
25917
|
-
this.id = data.id || "";
|
|
25918
|
-
this.locale = data.locale || "";
|
|
25919
|
-
this.themeJSON = data.themeJSON || "";
|
|
25920
|
-
this.shipping = data.shipping || null;
|
|
25921
|
-
this.paymentSettingsId = data.paymentSettingsId || null;
|
|
25922
|
-
this.priceListId = data.priceListId || null;
|
|
25923
|
-
this.locations = data.locations
|
|
25924
|
-
? data.locations.map(function (o) { return new IkasStorefrontLocation(o); })
|
|
25925
|
-
: [];
|
|
25926
|
-
this.routes = data.routes
|
|
25927
|
-
? data.routes.map(function (o) { return new IkasStorefrontRoute(o); })
|
|
25928
|
-
: null;
|
|
25929
|
-
this.termsOfService = data.termsOfService || "";
|
|
25930
|
-
this.privacyPolicy = data.privacyPolicy || "";
|
|
25931
|
-
this.returnPolicy = data.returnPolicy || "";
|
|
25932
|
-
try {
|
|
25933
|
-
this.theme = this.themeJSON
|
|
25934
|
-
? new IkasTheme(JSON.parse(this.themeJSON))
|
|
25935
|
-
: new IkasTheme();
|
|
25936
|
-
}
|
|
25937
|
-
catch (err) { }
|
|
25938
|
-
makeAutoObservable(this);
|
|
25939
|
-
}
|
|
25940
|
-
return IkasStorefrontRegion;
|
|
25941
|
-
}());
|
|
25942
|
-
|
|
25943
|
-
var IkasStorefront = /** @class */ (function () {
|
|
25944
|
-
function IkasStorefront(data) {
|
|
25945
|
-
if (data === void 0) { data = {}; }
|
|
25946
|
-
this.id = data.id || "";
|
|
25947
|
-
this.name = data.name || "";
|
|
25948
|
-
this.themeId = data.themeId || "";
|
|
25949
|
-
this.themeVersionId = data.themeVersionId || "";
|
|
25950
|
-
this.userId = data.userId || "";
|
|
25951
|
-
this.domains = data.domains
|
|
25952
|
-
? data.domains.map(function (o) { return new IkasStorefrontDomain(o); })
|
|
25953
|
-
: [];
|
|
25954
|
-
this.regions = data.regions
|
|
25955
|
-
? data.regions.map(function (o) { return new IkasStorefrontRegion(o); })
|
|
25956
|
-
: [];
|
|
25957
|
-
makeAutoObservable(this);
|
|
25958
|
-
}
|
|
25959
|
-
return IkasStorefront;
|
|
25960
|
-
}());
|
|
25961
|
-
|
|
25962
|
-
var IkasStorefrontAPI = /** @class */ (function () {
|
|
25963
|
-
function IkasStorefrontAPI() {
|
|
25964
|
-
}
|
|
25965
|
-
IkasStorefrontAPI.getStorefront = function (storefrontId) {
|
|
25966
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
25967
|
-
var QUERY, _a, data, errors;
|
|
25968
|
-
return __generator(this, function (_b) {
|
|
25969
|
-
switch (_b.label) {
|
|
25970
|
-
case 0:
|
|
25971
|
-
QUERY = src(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n query getStorefront($storefrontId: String!) {\n getStorefront(id: $storefrontId) {\n id\n name\n themeId\n themeVersionId\n userId\n # domains {\n # id\n # merchantDomainId\n # name\n # redirectDomainName\n # }\n regions {\n id\n locale\n # themeJSON\n privacyPolicy\n returnPolicy\n termsOfService\n }\n }\n }\n "], ["\n query getStorefront($storefrontId: String!) {\n getStorefront(id: $storefrontId) {\n id\n name\n themeId\n themeVersionId\n userId\n # domains {\n # id\n # merchantDomainId\n # name\n # redirectDomainName\n # }\n regions {\n id\n locale\n # themeJSON\n privacyPolicy\n returnPolicy\n termsOfService\n }\n }\n }\n "])));
|
|
25972
|
-
_b.label = 1;
|
|
25973
|
-
case 1:
|
|
25974
|
-
_b.trys.push([1, 3, , 4]);
|
|
25975
|
-
return [4 /*yield*/, apollo
|
|
25976
|
-
.getClient()
|
|
25977
|
-
.query({
|
|
25978
|
-
query: QUERY,
|
|
25979
|
-
variables: {
|
|
25980
|
-
storefrontId: storefrontId,
|
|
25981
|
-
},
|
|
25982
|
-
})];
|
|
25983
|
-
case 2:
|
|
25984
|
-
_a = _b.sent(), data = _a.data, errors = _a.errors;
|
|
25985
|
-
if (errors && errors.length) {
|
|
25986
|
-
console.log(errors);
|
|
25987
|
-
}
|
|
25988
|
-
if (data)
|
|
25989
|
-
return [2 /*return*/, new IkasStorefront(data.getStorefront)];
|
|
25990
|
-
return [3 /*break*/, 4];
|
|
25991
|
-
case 3:
|
|
25992
|
-
_b.sent();
|
|
25993
|
-
return [3 /*break*/, 4];
|
|
25994
|
-
case 4: return [2 /*return*/, new IkasStorefront()];
|
|
25995
|
-
}
|
|
25996
|
-
});
|
|
25997
|
-
});
|
|
25998
|
-
};
|
|
25999
|
-
return IkasStorefrontAPI;
|
|
26000
|
-
}());
|
|
26001
|
-
var templateObject_1$f;
|
|
26002
|
-
|
|
26003
|
-
var IkasThemeAPI = /** @class */ (function () {
|
|
26004
|
-
function IkasThemeAPI() {
|
|
26005
|
-
}
|
|
26006
|
-
IkasThemeAPI.fetchTheme = function () {
|
|
26007
|
-
return new Promise(function (resolve, reject) {
|
|
26008
|
-
var serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
26009
|
-
var themeJSONPath = serverRuntimeConfig.THEME_JSON_PATH || "./src/theme.json";
|
|
26010
|
-
fs.readFile(themeJSONPath, {
|
|
26011
|
-
flag: "a+",
|
|
26012
|
-
}, function (err, file) {
|
|
26013
|
-
if (err) {
|
|
26014
|
-
return reject(err);
|
|
26015
|
-
}
|
|
26016
|
-
var result = file.length ? JSON.parse(file.toString()) : {};
|
|
26017
|
-
resolve(new IkasTheme(result));
|
|
26018
|
-
});
|
|
26019
|
-
});
|
|
26020
|
-
};
|
|
26021
|
-
return IkasThemeAPI;
|
|
26022
|
-
}());
|
|
26023
|
-
|
|
26024
25902
|
var IkasVariantTypeAPI = /** @class */ (function () {
|
|
26025
25903
|
function IkasVariantTypeAPI() {
|
|
26026
25904
|
}
|
|
@@ -26030,7 +25908,7 @@ var IkasVariantTypeAPI = /** @class */ (function () {
|
|
|
26030
25908
|
return __generator(this, function (_b) {
|
|
26031
25909
|
switch (_b.label) {
|
|
26032
25910
|
case 0:
|
|
26033
|
-
LIST_VARIANT_TYPE = src(templateObject_1$
|
|
25911
|
+
LIST_VARIANT_TYPE = src(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n query listVariantType($id: StringFilterInput!) {\n listVariantType(id: $id) {\n id\n createdAt\n updatedAt\n deleted\n name\n selectionType\n values {\n id\n createdAt\n updatedAt\n deleted\n name\n thumbnailImageId\n colorCode\n }\n }\n }\n "], ["\n query listVariantType($id: StringFilterInput!) {\n listVariantType(id: $id) {\n id\n createdAt\n updatedAt\n deleted\n name\n selectionType\n values {\n id\n createdAt\n updatedAt\n deleted\n name\n thumbnailImageId\n colorCode\n }\n }\n }\n "])));
|
|
26034
25912
|
_b.label = 1;
|
|
26035
25913
|
case 1:
|
|
26036
25914
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -26076,7 +25954,7 @@ var IkasVariantTypeAPI = /** @class */ (function () {
|
|
|
26076
25954
|
};
|
|
26077
25955
|
return IkasVariantTypeAPI;
|
|
26078
25956
|
}());
|
|
26079
|
-
var templateObject_1$
|
|
25957
|
+
var templateObject_1$f;
|
|
26080
25958
|
|
|
26081
25959
|
function styleInject(css, ref) {
|
|
26082
25960
|
if ( ref === void 0 ) ref = {};
|
|
@@ -27266,6 +27144,11 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
27266
27144
|
name: product.name,
|
|
27267
27145
|
},
|
|
27268
27146
|
},
|
|
27147
|
+
priceListId: IkasStorefrontConfig.priceListId || null,
|
|
27148
|
+
salesChannelId: IkasStorefrontConfig.salesChannelId,
|
|
27149
|
+
storefrontId: IkasStorefrontConfig.storefrontId,
|
|
27150
|
+
storefrontRoutingId: IkasStorefrontConfig.storefrontRoutingId,
|
|
27151
|
+
storefrontThemeId: IkasStorefrontConfig.storefrontThemeId,
|
|
27269
27152
|
};
|
|
27270
27153
|
return [4 /*yield*/, IkasCartAPI.saveItemToCart(input)];
|
|
27271
27154
|
case 1:
|
|
@@ -27306,6 +27189,11 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
27306
27189
|
name: item.variant.name,
|
|
27307
27190
|
},
|
|
27308
27191
|
},
|
|
27192
|
+
priceListId: IkasStorefrontConfig.priceListId || null,
|
|
27193
|
+
salesChannelId: IkasStorefrontConfig.salesChannelId,
|
|
27194
|
+
storefrontId: IkasStorefrontConfig.storefrontId,
|
|
27195
|
+
storefrontRoutingId: IkasStorefrontConfig.storefrontRoutingId,
|
|
27196
|
+
storefrontThemeId: IkasStorefrontConfig.storefrontThemeId,
|
|
27309
27197
|
};
|
|
27310
27198
|
return [4 /*yield*/, IkasCartAPI.saveItemToCart(input)];
|
|
27311
27199
|
case 1:
|
|
@@ -27668,9 +27556,11 @@ function createCategoryBreadcrumbSchema(pageSpecificDataStr) {
|
|
|
27668
27556
|
|
|
27669
27557
|
var IkasCheckoutPage = observer(function (_a) {
|
|
27670
27558
|
var _b, _c, _d;
|
|
27671
|
-
var checkout = _a.checkout, queryParams = _a.queryParams;
|
|
27559
|
+
var checkout = _a.checkout, returnPolicy = _a.returnPolicy, privacyPolicy = _a.privacyPolicy, termsOfService = _a.termsOfService, queryParams = _a.queryParams;
|
|
27672
27560
|
var router = useRouter();
|
|
27673
|
-
var vm = useState(function () {
|
|
27561
|
+
var vm = useState(function () {
|
|
27562
|
+
return new CheckoutViewModel(checkout, queryParams, router, returnPolicy, privacyPolicy, termsOfService);
|
|
27563
|
+
})[0];
|
|
27674
27564
|
useEffect(function () {
|
|
27675
27565
|
Analytics.beginCheckout(vm.checkout);
|
|
27676
27566
|
Analytics.checkoutStep(vm.checkout, vm.step);
|
|
@@ -27695,46 +27585,18 @@ var IkasCheckoutPage = observer(function (_a) {
|
|
|
27695
27585
|
var onPolicyModalClose = function () {
|
|
27696
27586
|
setPolicyModalText("");
|
|
27697
27587
|
};
|
|
27698
|
-
var onReturnPolicyClick = function () {
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
|
|
27709
|
-
|
|
27710
|
-
});
|
|
27711
|
-
}); };
|
|
27712
|
-
var onPrivacyPolicyClick = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
27713
|
-
var _a;
|
|
27714
|
-
return __generator(this, function (_b) {
|
|
27715
|
-
switch (_b.label) {
|
|
27716
|
-
case 0: return [4 /*yield*/, vm.getStorefront()];
|
|
27717
|
-
case 1:
|
|
27718
|
-
_b.sent();
|
|
27719
|
-
setPolicyModalTitle("Gizlilik Politikası");
|
|
27720
|
-
setPolicyModalText(((_a = vm.storefrontRegion) === null || _a === void 0 ? void 0 : _a.privacyPolicy) || "");
|
|
27721
|
-
return [2 /*return*/];
|
|
27722
|
-
}
|
|
27723
|
-
});
|
|
27724
|
-
}); };
|
|
27725
|
-
var onTermsOfServiceClick = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
27726
|
-
var _a;
|
|
27727
|
-
return __generator(this, function (_b) {
|
|
27728
|
-
switch (_b.label) {
|
|
27729
|
-
case 0: return [4 /*yield*/, vm.getStorefront()];
|
|
27730
|
-
case 1:
|
|
27731
|
-
_b.sent();
|
|
27732
|
-
setPolicyModalTitle("Hizmet Şartları");
|
|
27733
|
-
setPolicyModalText(((_a = vm.storefrontRegion) === null || _a === void 0 ? void 0 : _a.termsOfService) || "");
|
|
27734
|
-
return [2 /*return*/];
|
|
27735
|
-
}
|
|
27736
|
-
});
|
|
27737
|
-
}); };
|
|
27588
|
+
var onReturnPolicyClick = function () {
|
|
27589
|
+
setPolicyModalTitle("Para İade Politikası");
|
|
27590
|
+
setPolicyModalText(vm.returnPolicy);
|
|
27591
|
+
};
|
|
27592
|
+
var onPrivacyPolicyClick = function () {
|
|
27593
|
+
setPolicyModalTitle("Gizlilik Politikası");
|
|
27594
|
+
setPolicyModalText(vm.privacyPolicy);
|
|
27595
|
+
};
|
|
27596
|
+
var onTermsOfServiceClick = function () {
|
|
27597
|
+
setPolicyModalTitle("Hizmet Şartları");
|
|
27598
|
+
setPolicyModalText(vm.termsOfService);
|
|
27599
|
+
};
|
|
27738
27600
|
var onErrorClose = function () {
|
|
27739
27601
|
vm.error = undefined;
|
|
27740
27602
|
};
|
|
@@ -28354,6 +28216,230 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
28354
28216
|
Image: Image
|
|
28355
28217
|
});
|
|
28356
28218
|
|
|
28219
|
+
var IkasStorefrontLocalization = /** @class */ (function () {
|
|
28220
|
+
function IkasStorefrontLocalization(data) {
|
|
28221
|
+
this.id = data.id || "";
|
|
28222
|
+
this.isDefault = data.isDefault || false;
|
|
28223
|
+
this.locale = data.locale || "";
|
|
28224
|
+
this.name = data.name || "";
|
|
28225
|
+
}
|
|
28226
|
+
return IkasStorefrontLocalization;
|
|
28227
|
+
}());
|
|
28228
|
+
|
|
28229
|
+
var IkasStorefrontDomain = /** @class */ (function () {
|
|
28230
|
+
function IkasStorefrontDomain(data) {
|
|
28231
|
+
if (data === void 0) { data = {}; }
|
|
28232
|
+
this.id = data.id || "";
|
|
28233
|
+
this.merchantDomainId = data.merchantDomainId || "";
|
|
28234
|
+
this.name = data.name || "";
|
|
28235
|
+
this.redirectDomainName = data.redirectDomainName || null;
|
|
28236
|
+
this.isDefault = data.isDefault || false;
|
|
28237
|
+
makeAutoObservable(this);
|
|
28238
|
+
}
|
|
28239
|
+
return IkasStorefrontDomain;
|
|
28240
|
+
}());
|
|
28241
|
+
|
|
28242
|
+
var IkasStorefrontRouting = /** @class */ (function () {
|
|
28243
|
+
function IkasStorefrontRouting(data) {
|
|
28244
|
+
this.id = data.id || "";
|
|
28245
|
+
this.countryCodes = data.countryCodes || null;
|
|
28246
|
+
this.domain = data.domain || null;
|
|
28247
|
+
this.locale = data.locale || "";
|
|
28248
|
+
this.path = data.path || null;
|
|
28249
|
+
this.priceListId = data.priceListId || null;
|
|
28250
|
+
}
|
|
28251
|
+
return IkasStorefrontRouting;
|
|
28252
|
+
}());
|
|
28253
|
+
|
|
28254
|
+
var IkasStorefrontThemeStatus;
|
|
28255
|
+
(function (IkasStorefrontThemeStatus) {
|
|
28256
|
+
IkasStorefrontThemeStatus["WAITING"] = "WAITING";
|
|
28257
|
+
IkasStorefrontThemeStatus["READY"] = "READY";
|
|
28258
|
+
})(IkasStorefrontThemeStatus || (IkasStorefrontThemeStatus = {}));
|
|
28259
|
+
var IkasStorefrontTheme = /** @class */ (function () {
|
|
28260
|
+
function IkasStorefrontTheme(data) {
|
|
28261
|
+
this.id = data.id || "";
|
|
28262
|
+
this.isMainTheme = data.isMainTheme || false;
|
|
28263
|
+
this.name = data.name || "";
|
|
28264
|
+
this.status = data.status || IkasStorefrontThemeStatus.WAITING;
|
|
28265
|
+
this.themeId = data.themeId || "";
|
|
28266
|
+
this.themeVersionId = data.themeVersionId || "";
|
|
28267
|
+
}
|
|
28268
|
+
return IkasStorefrontTheme;
|
|
28269
|
+
}());
|
|
28270
|
+
|
|
28271
|
+
var IkasStorefrontThemeLocalization = /** @class */ (function () {
|
|
28272
|
+
function IkasStorefrontThemeLocalization(data) {
|
|
28273
|
+
this.id = data.id || "";
|
|
28274
|
+
this.locale = data.locale || "";
|
|
28275
|
+
this.storefrontId = data.storefrontId || "";
|
|
28276
|
+
this.storefrontThemeId = data.storefrontThemeId || "";
|
|
28277
|
+
this.themeJson = data.themeJson || "";
|
|
28278
|
+
this.privacyPolicy = data.privacyPolicy || null;
|
|
28279
|
+
this.returnPolicy = data.returnPolicy || null;
|
|
28280
|
+
this.termsOfService = data.termsOfService || null;
|
|
28281
|
+
}
|
|
28282
|
+
return IkasStorefrontThemeLocalization;
|
|
28283
|
+
}());
|
|
28284
|
+
|
|
28285
|
+
var StorefrontStatus;
|
|
28286
|
+
(function (StorefrontStatus) {
|
|
28287
|
+
StorefrontStatus["WAITING"] = "WAITING";
|
|
28288
|
+
StorefrontStatus["READY"] = "READY";
|
|
28289
|
+
})(StorefrontStatus || (StorefrontStatus = {}));
|
|
28290
|
+
var IkasStorefront = /** @class */ (function () {
|
|
28291
|
+
function IkasStorefront(data) {
|
|
28292
|
+
if (data === void 0) { data = {}; }
|
|
28293
|
+
this.id = data.id || "";
|
|
28294
|
+
this.name = data.name || "";
|
|
28295
|
+
this.status = data.status || StorefrontStatus.WAITING;
|
|
28296
|
+
this.mainStorefrontThemeId = data.mainStorefrontThemeId || null;
|
|
28297
|
+
this.emailSettingsId = data.emailSettingsId || null;
|
|
28298
|
+
this.salesChannelId = data.salesChannelId || null;
|
|
28299
|
+
this.gtmId = data.gtmId || null;
|
|
28300
|
+
this.fbpId = data.fbpId || null;
|
|
28301
|
+
// Sub Models
|
|
28302
|
+
this.localizations = data.localizations
|
|
28303
|
+
? data.localizations.map(function (l) { return new IkasStorefrontLocalization(l); })
|
|
28304
|
+
: [];
|
|
28305
|
+
this.routings = data.routings
|
|
28306
|
+
? data.routings.map(function (r) { return new IkasStorefrontRouting(r); })
|
|
28307
|
+
: [];
|
|
28308
|
+
this.domains = data.domains
|
|
28309
|
+
? data.domains.map(function (o) { return new IkasStorefrontDomain(o); })
|
|
28310
|
+
: [];
|
|
28311
|
+
this.themes = data.themes
|
|
28312
|
+
? data.themes.map(function (t) { return new IkasStorefrontTheme(t); })
|
|
28313
|
+
: [];
|
|
28314
|
+
this.regions = data.regions
|
|
28315
|
+
? data.regions.map(function (r) { return new IkasStorefrontThemeLocalization(r); })
|
|
28316
|
+
: [];
|
|
28317
|
+
}
|
|
28318
|
+
return IkasStorefront;
|
|
28319
|
+
}());
|
|
28320
|
+
|
|
28321
|
+
var IkasSalesChannel = /** @class */ (function () {
|
|
28322
|
+
function IkasSalesChannel(data) {
|
|
28323
|
+
var _a;
|
|
28324
|
+
this.id = data.id || "";
|
|
28325
|
+
this.name = data.name || "";
|
|
28326
|
+
this.priceListId = data.priceListId || "";
|
|
28327
|
+
this.stockLocations =
|
|
28328
|
+
((_a = data.stockLocations) === null || _a === void 0 ? void 0 : _a.map(function (sl) { return new IkasSalesChannelStockLocation(sl); })) ||
|
|
28329
|
+
[];
|
|
28330
|
+
}
|
|
28331
|
+
return IkasSalesChannel;
|
|
28332
|
+
}());
|
|
28333
|
+
var IkasSalesChannelStockLocation = /** @class */ (function () {
|
|
28334
|
+
function IkasSalesChannelStockLocation(data) {
|
|
28335
|
+
this.id = data.id || "";
|
|
28336
|
+
this.order = data.order || 0;
|
|
28337
|
+
}
|
|
28338
|
+
return IkasSalesChannelStockLocation;
|
|
28339
|
+
}());
|
|
28340
|
+
|
|
28341
|
+
var SettingsHelper = /** @class */ (function () {
|
|
28342
|
+
function SettingsHelper() {
|
|
28343
|
+
}
|
|
28344
|
+
SettingsHelper.getSettings = function (locale) {
|
|
28345
|
+
return new Promise(function (resolve) {
|
|
28346
|
+
var serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
28347
|
+
var settings = serverRuntimeConfig.SETTINGS;
|
|
28348
|
+
var storefront = new IkasStorefront(settings.storefront);
|
|
28349
|
+
var salesChannel = new IkasSalesChannel(settings.salesChannel);
|
|
28350
|
+
var localizationMap = settings.localizationMap;
|
|
28351
|
+
var themeJSONPath = localizationMap[locale];
|
|
28352
|
+
var routing = storefront.routings.find(function (r) { return r.id === locale || r.path === locale; });
|
|
28353
|
+
if (!themeJSONPath || !routing) {
|
|
28354
|
+
return resolve(null);
|
|
28355
|
+
}
|
|
28356
|
+
fs.readFile(themeJSONPath, {
|
|
28357
|
+
flag: "a+",
|
|
28358
|
+
}, function (err, file) {
|
|
28359
|
+
if (err) {
|
|
28360
|
+
return resolve(null);
|
|
28361
|
+
}
|
|
28362
|
+
var result = file.length ? JSON.parse(file.toString()) : {};
|
|
28363
|
+
resolve({
|
|
28364
|
+
storefront: storefront,
|
|
28365
|
+
theme: new IkasTheme(result),
|
|
28366
|
+
salesChannel: salesChannel,
|
|
28367
|
+
routing: routing,
|
|
28368
|
+
});
|
|
28369
|
+
});
|
|
28370
|
+
});
|
|
28371
|
+
};
|
|
28372
|
+
SettingsHelper.getPageData = function (context, isServer, pageType) {
|
|
28373
|
+
var _a;
|
|
28374
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28375
|
+
var locale, settings, storefront, theme, salesChannel, routing, provider;
|
|
28376
|
+
return __generator(this, function (_b) {
|
|
28377
|
+
switch (_b.label) {
|
|
28378
|
+
case 0:
|
|
28379
|
+
locale = context.locale || context.defaultLocale || "en";
|
|
28380
|
+
return [4 /*yield*/, SettingsHelper.getSettings(locale)];
|
|
28381
|
+
case 1:
|
|
28382
|
+
settings = _b.sent();
|
|
28383
|
+
if (!settings ||
|
|
28384
|
+
!settings.storefront.mainStorefrontThemeId ||
|
|
28385
|
+
!settings.storefront.salesChannelId ||
|
|
28386
|
+
!settings.routing.priceListId) {
|
|
28387
|
+
return [2 /*return*/, {
|
|
28388
|
+
props: {},
|
|
28389
|
+
notFound: true,
|
|
28390
|
+
}];
|
|
28391
|
+
}
|
|
28392
|
+
storefront = settings.storefront, theme = settings.theme, salesChannel = settings.salesChannel, routing = settings.routing;
|
|
28393
|
+
IkasStorefrontConfig.storefrontId = storefront.id;
|
|
28394
|
+
IkasStorefrontConfig.storefrontRoutingId = routing.id;
|
|
28395
|
+
IkasStorefrontConfig.storefrontThemeId = storefront.mainStorefrontThemeId;
|
|
28396
|
+
IkasStorefrontConfig.salesChannelId = storefront.salesChannelId;
|
|
28397
|
+
IkasStorefrontConfig.priceListId = routing.priceListId;
|
|
28398
|
+
IkasStorefrontConfig.stockLocationIds = (_a = salesChannel.stockLocations) === null || _a === void 0 ? void 0 : _a.map(function (sl) { return sl.id; });
|
|
28399
|
+
provider = new IkasPageDataProvider(theme, context.params, pageType);
|
|
28400
|
+
return [4 /*yield*/, provider.getPageData()];
|
|
28401
|
+
case 2:
|
|
28402
|
+
_b.sent();
|
|
28403
|
+
if (!provider.page) {
|
|
28404
|
+
return [2 /*return*/, {
|
|
28405
|
+
props: {},
|
|
28406
|
+
notFound: true,
|
|
28407
|
+
}];
|
|
28408
|
+
}
|
|
28409
|
+
if (isServer)
|
|
28410
|
+
return [2 /*return*/, provider.nextPageData];
|
|
28411
|
+
else
|
|
28412
|
+
return [2 /*return*/, {
|
|
28413
|
+
props: __assign(__assign({}, provider.nextPageData.props), { pageSpecificDataStr: JSON.stringify(provider.pageSpecificData || {}) }),
|
|
28414
|
+
revalidate: 60,
|
|
28415
|
+
}];
|
|
28416
|
+
}
|
|
28417
|
+
});
|
|
28418
|
+
});
|
|
28419
|
+
};
|
|
28420
|
+
SettingsHelper.getStaticProps = function (context, pageType) {
|
|
28421
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28422
|
+
return __generator(this, function (_a) {
|
|
28423
|
+
switch (_a.label) {
|
|
28424
|
+
case 0: return [4 /*yield*/, SettingsHelper.getPageData(context, false, pageType)];
|
|
28425
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28426
|
+
}
|
|
28427
|
+
});
|
|
28428
|
+
});
|
|
28429
|
+
};
|
|
28430
|
+
SettingsHelper.getServerSideProps = function (context, pageType) {
|
|
28431
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28432
|
+
return __generator(this, function (_a) {
|
|
28433
|
+
switch (_a.label) {
|
|
28434
|
+
case 0: return [4 /*yield*/, SettingsHelper.getPageData(context, false, pageType)];
|
|
28435
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28436
|
+
}
|
|
28437
|
+
});
|
|
28438
|
+
});
|
|
28439
|
+
};
|
|
28440
|
+
return SettingsHelper;
|
|
28441
|
+
}());
|
|
28442
|
+
|
|
28357
28443
|
var Page = function (_a) {
|
|
28358
28444
|
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings;
|
|
28359
28445
|
var router = useRouter();
|
|
@@ -28361,17 +28447,10 @@ var Page = function (_a) {
|
|
|
28361
28447
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
28362
28448
|
};
|
|
28363
28449
|
var getStaticProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28364
|
-
var theme, provider;
|
|
28365
28450
|
return __generator(this, function (_a) {
|
|
28366
28451
|
switch (_a.label) {
|
|
28367
|
-
case 0: return [4 /*yield*/,
|
|
28368
|
-
case 1:
|
|
28369
|
-
theme = _a.sent();
|
|
28370
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.INDEX);
|
|
28371
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28372
|
-
case 2:
|
|
28373
|
-
_a.sent();
|
|
28374
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28452
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.INDEX)];
|
|
28453
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28375
28454
|
}
|
|
28376
28455
|
});
|
|
28377
28456
|
}); };
|
|
@@ -28413,6 +28492,7 @@ var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void
|
|
|
28413
28492
|
productMetaData = metaData.filter(function (m) { return m.targetType && m.targetType === IkasHTMLMetaDataTargetType.PRODUCT; });
|
|
28414
28493
|
return [4 /*yield*/, IkasProductSearchAPI.searchProducts({
|
|
28415
28494
|
productIdList: productMetaData.map(function (p) { return p.targetId; }),
|
|
28495
|
+
priceListId: IkasStorefrontConfig.priceListId,
|
|
28416
28496
|
})];
|
|
28417
28497
|
case 2:
|
|
28418
28498
|
productsResponse = _b.sent();
|
|
@@ -28459,25 +28539,10 @@ var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void
|
|
|
28459
28539
|
});
|
|
28460
28540
|
}); };
|
|
28461
28541
|
var getStaticProps$1 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28462
|
-
var theme, provider;
|
|
28463
28542
|
return __generator(this, function (_a) {
|
|
28464
28543
|
switch (_a.label) {
|
|
28465
|
-
case 0: return [4 /*yield*/,
|
|
28466
|
-
case 1:
|
|
28467
|
-
theme = _a.sent();
|
|
28468
|
-
provider = new IkasPageDataProvider(theme, context.params, undefined);
|
|
28469
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28470
|
-
case 2:
|
|
28471
|
-
_a.sent();
|
|
28472
|
-
if (!provider.page) {
|
|
28473
|
-
return [2 /*return*/, {
|
|
28474
|
-
notFound: true,
|
|
28475
|
-
}];
|
|
28476
|
-
}
|
|
28477
|
-
return [2 /*return*/, {
|
|
28478
|
-
props: __assign(__assign({}, provider.nextPageData.props), { pageSpecificDataStr: JSON.stringify(provider.pageSpecificData || {}) }),
|
|
28479
|
-
revalidate: 60,
|
|
28480
|
-
}];
|
|
28544
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context)];
|
|
28545
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28481
28546
|
}
|
|
28482
28547
|
});
|
|
28483
28548
|
}); };
|
|
@@ -28522,19 +28587,38 @@ var Page$2 = function (_a) {
|
|
|
28522
28587
|
return (createElement(IkasPage, { page: page, settingsStr: settingsStr, propValues: propValues }));
|
|
28523
28588
|
};
|
|
28524
28589
|
var getStaticPaths$1 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28525
|
-
var
|
|
28590
|
+
var allSettings, customPagePaths;
|
|
28526
28591
|
return __generator(this, function (_a) {
|
|
28527
28592
|
switch (_a.label) {
|
|
28528
|
-
case 0:
|
|
28593
|
+
case 0:
|
|
28594
|
+
if (!context.locales)
|
|
28595
|
+
return [2 /*return*/, {
|
|
28596
|
+
paths: [],
|
|
28597
|
+
fallback: "blocking",
|
|
28598
|
+
}];
|
|
28599
|
+
return [4 /*yield*/, Promise.all(context.locales.map(function (locale) { return SettingsHelper.getSettings(locale); }))];
|
|
28529
28600
|
case 1:
|
|
28530
|
-
|
|
28531
|
-
|
|
28532
|
-
|
|
28533
|
-
|
|
28534
|
-
|
|
28601
|
+
allSettings = (_a.sent());
|
|
28602
|
+
customPagePaths = [];
|
|
28603
|
+
allSettings.forEach(function (_a) {
|
|
28604
|
+
var theme = _a.theme, routing = _a.routing;
|
|
28605
|
+
if (!theme)
|
|
28606
|
+
return;
|
|
28607
|
+
var customPages = theme.pages.filter(function (p) { return p.type === IkasThemePageType.CUSTOM; });
|
|
28608
|
+
customPages.forEach(function (customPage) {
|
|
28609
|
+
if (customPage.slug &&
|
|
28610
|
+
!customPagePaths.some(function (p) { return p.params.slug === customPage.slug; })) {
|
|
28611
|
+
customPagePaths.push({
|
|
28612
|
+
params: { slug: customPage.slug },
|
|
28613
|
+
locale: routing.locale,
|
|
28614
|
+
});
|
|
28615
|
+
}
|
|
28616
|
+
});
|
|
28617
|
+
});
|
|
28535
28618
|
return [2 /*return*/, {
|
|
28536
28619
|
paths: customPagePaths.map(function (p) { return ({
|
|
28537
|
-
params: p,
|
|
28620
|
+
params: p.params,
|
|
28621
|
+
locale: p.locale,
|
|
28538
28622
|
}); }),
|
|
28539
28623
|
fallback: "blocking",
|
|
28540
28624
|
}];
|
|
@@ -28542,17 +28626,10 @@ var getStaticPaths$1 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
28542
28626
|
});
|
|
28543
28627
|
}); };
|
|
28544
28628
|
var getStaticProps$2 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28545
|
-
var theme, provider;
|
|
28546
28629
|
return __generator(this, function (_a) {
|
|
28547
28630
|
switch (_a.label) {
|
|
28548
|
-
case 0: return [4 /*yield*/,
|
|
28549
|
-
case 1:
|
|
28550
|
-
theme = _a.sent();
|
|
28551
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.CUSTOM);
|
|
28552
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28553
|
-
case 2:
|
|
28554
|
-
_a.sent();
|
|
28555
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28631
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.CUSTOM)];
|
|
28632
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28556
28633
|
}
|
|
28557
28634
|
});
|
|
28558
28635
|
}); };
|
|
@@ -28565,18 +28642,38 @@ var _slug_ = /*#__PURE__*/Object.freeze({
|
|
|
28565
28642
|
});
|
|
28566
28643
|
|
|
28567
28644
|
var CheckoutPage = function (_a) {
|
|
28568
|
-
var checkoutStr = _a.checkoutStr,
|
|
28645
|
+
var checkoutStr = _a.checkoutStr, others = __rest(_a, ["checkoutStr"]);
|
|
28569
28646
|
Analytics.disableHTML();
|
|
28570
28647
|
var checkout = new IkasCheckout(JSON.parse(checkoutStr));
|
|
28571
|
-
return createElement(IkasCheckoutPage, { checkout: checkout,
|
|
28648
|
+
return createElement(IkasCheckoutPage, __assign({ checkout: checkout }, others));
|
|
28572
28649
|
};
|
|
28573
28650
|
var _id_ = observer(CheckoutPage);
|
|
28574
28651
|
var getServerSideProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28575
|
-
var id, redirect, checkout;
|
|
28652
|
+
var id, locale, settings, storefront, routing, redirect, checkout, region;
|
|
28576
28653
|
return __generator(this, function (_a) {
|
|
28577
28654
|
switch (_a.label) {
|
|
28578
28655
|
case 0:
|
|
28579
28656
|
id = context.query.id;
|
|
28657
|
+
locale = context.locale || context.defaultLocale || "en";
|
|
28658
|
+
return [4 /*yield*/, SettingsHelper.getSettings(locale)];
|
|
28659
|
+
case 1:
|
|
28660
|
+
settings = _a.sent();
|
|
28661
|
+
// TODO maybe remove this and convert this page to static
|
|
28662
|
+
if (!settings ||
|
|
28663
|
+
!settings.storefront.mainStorefrontThemeId ||
|
|
28664
|
+
!settings.storefront.salesChannelId ||
|
|
28665
|
+
!settings.routing.priceListId) {
|
|
28666
|
+
return [2 /*return*/, {
|
|
28667
|
+
props: {},
|
|
28668
|
+
notFound: true,
|
|
28669
|
+
}];
|
|
28670
|
+
}
|
|
28671
|
+
storefront = settings.storefront, routing = settings.routing;
|
|
28672
|
+
IkasStorefrontConfig.storefrontId = storefront.id;
|
|
28673
|
+
IkasStorefrontConfig.storefrontRoutingId = routing.id;
|
|
28674
|
+
IkasStorefrontConfig.storefrontThemeId = storefront.mainStorefrontThemeId;
|
|
28675
|
+
IkasStorefrontConfig.salesChannelId = storefront.salesChannelId;
|
|
28676
|
+
IkasStorefrontConfig.priceListId = routing.priceListId;
|
|
28580
28677
|
redirect = function () {
|
|
28581
28678
|
context.res.writeHead(302, { Location: "/" });
|
|
28582
28679
|
context.res.end();
|
|
@@ -28586,12 +28683,16 @@ var getServerSideProps = function (context) { return __awaiter(void 0, void 0, v
|
|
|
28586
28683
|
return [2 /*return*/, redirect()];
|
|
28587
28684
|
}
|
|
28588
28685
|
return [4 /*yield*/, IkasCheckoutAPI.getCheckoutById(id)];
|
|
28589
|
-
case
|
|
28686
|
+
case 2:
|
|
28590
28687
|
checkout = _a.sent();
|
|
28591
28688
|
if (checkout) {
|
|
28689
|
+
region = settings.storefront.regions.find(function (r) { return r.id === storefront.mainStorefrontThemeId; });
|
|
28592
28690
|
return [2 /*return*/, {
|
|
28593
28691
|
props: {
|
|
28594
28692
|
checkoutStr: JSON.stringify(checkout),
|
|
28693
|
+
returnPolicy: (region === null || region === void 0 ? void 0 : region.returnPolicy) || "",
|
|
28694
|
+
privacyPolicy: (region === null || region === void 0 ? void 0 : region.privacyPolicy) || "",
|
|
28695
|
+
termsOfService: (region === null || region === void 0 ? void 0 : region.termsOfService) || "",
|
|
28595
28696
|
queryParams: context.query,
|
|
28596
28697
|
},
|
|
28597
28698
|
}];
|
|
@@ -28616,17 +28717,10 @@ var Page$3 = function (_a) {
|
|
|
28616
28717
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28617
28718
|
};
|
|
28618
28719
|
var getStaticProps$3 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28619
|
-
var theme, provider;
|
|
28620
28720
|
return __generator(this, function (_a) {
|
|
28621
28721
|
switch (_a.label) {
|
|
28622
|
-
case 0: return [4 /*yield*/,
|
|
28623
|
-
case 1:
|
|
28624
|
-
theme = _a.sent();
|
|
28625
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.ACCOUNT);
|
|
28626
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28627
|
-
case 2:
|
|
28628
|
-
_a.sent();
|
|
28629
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28722
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ACCOUNT)];
|
|
28723
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28630
28724
|
}
|
|
28631
28725
|
});
|
|
28632
28726
|
}); };
|
|
@@ -28644,17 +28738,10 @@ var Page$4 = function (_a) {
|
|
|
28644
28738
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28645
28739
|
};
|
|
28646
28740
|
var getStaticProps$4 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28647
|
-
var theme, provider;
|
|
28648
28741
|
return __generator(this, function (_a) {
|
|
28649
28742
|
switch (_a.label) {
|
|
28650
|
-
case 0: return [4 /*yield*/,
|
|
28651
|
-
case 1:
|
|
28652
|
-
theme = _a.sent();
|
|
28653
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.ADDRESSES);
|
|
28654
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28655
|
-
case 2:
|
|
28656
|
-
_a.sent();
|
|
28657
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28743
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ADDRESSES)];
|
|
28744
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28658
28745
|
}
|
|
28659
28746
|
});
|
|
28660
28747
|
}); };
|
|
@@ -28672,17 +28759,10 @@ var Page$5 = function (_a) {
|
|
|
28672
28759
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28673
28760
|
};
|
|
28674
28761
|
var getStaticProps$5 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28675
|
-
var theme, provider;
|
|
28676
28762
|
return __generator(this, function (_a) {
|
|
28677
28763
|
switch (_a.label) {
|
|
28678
|
-
case 0: return [4 /*yield*/,
|
|
28679
|
-
case 1:
|
|
28680
|
-
theme = _a.sent();
|
|
28681
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.ORDERS);
|
|
28682
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28683
|
-
case 2:
|
|
28684
|
-
_a.sent();
|
|
28685
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28764
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ORDERS)];
|
|
28765
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28686
28766
|
}
|
|
28687
28767
|
});
|
|
28688
28768
|
}); };
|
|
@@ -28700,17 +28780,10 @@ var Page$6 = function (_a) {
|
|
|
28700
28780
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28701
28781
|
};
|
|
28702
28782
|
var getServerSideProps$1 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28703
|
-
var theme, provider;
|
|
28704
28783
|
return __generator(this, function (_a) {
|
|
28705
28784
|
switch (_a.label) {
|
|
28706
|
-
case 0: return [4 /*yield*/,
|
|
28707
|
-
case 1:
|
|
28708
|
-
theme = _a.sent();
|
|
28709
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.ORDER_DETAIL);
|
|
28710
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28711
|
-
case 2:
|
|
28712
|
-
_a.sent();
|
|
28713
|
-
return [2 /*return*/, provider.nextPageData];
|
|
28785
|
+
case 0: return [4 /*yield*/, SettingsHelper.getServerSideProps(context, IkasThemePageType.ORDER_DETAIL)];
|
|
28786
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28714
28787
|
}
|
|
28715
28788
|
});
|
|
28716
28789
|
}); };
|
|
@@ -28728,17 +28801,10 @@ var Page$7 = function (_a) {
|
|
|
28728
28801
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28729
28802
|
};
|
|
28730
28803
|
var getStaticProps$6 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28731
|
-
var theme, provider;
|
|
28732
28804
|
return __generator(this, function (_a) {
|
|
28733
28805
|
switch (_a.label) {
|
|
28734
|
-
case 0: return [4 /*yield*/,
|
|
28735
|
-
case 1:
|
|
28736
|
-
theme = _a.sent();
|
|
28737
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.LOGIN);
|
|
28738
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28739
|
-
case 2:
|
|
28740
|
-
_a.sent();
|
|
28741
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28806
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.LOGIN)];
|
|
28807
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28742
28808
|
}
|
|
28743
28809
|
});
|
|
28744
28810
|
}); };
|
|
@@ -28756,17 +28822,10 @@ var Page$8 = function (_a) {
|
|
|
28756
28822
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28757
28823
|
};
|
|
28758
28824
|
var getStaticProps$7 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28759
|
-
var theme, provider;
|
|
28760
28825
|
return __generator(this, function (_a) {
|
|
28761
28826
|
switch (_a.label) {
|
|
28762
|
-
case 0: return [4 /*yield*/,
|
|
28763
|
-
case 1:
|
|
28764
|
-
theme = _a.sent();
|
|
28765
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.REGISTER);
|
|
28766
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28767
|
-
case 2:
|
|
28768
|
-
_a.sent();
|
|
28769
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28827
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.REGISTER)];
|
|
28828
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28770
28829
|
}
|
|
28771
28830
|
});
|
|
28772
28831
|
}); };
|
|
@@ -28784,17 +28843,10 @@ var Page$9 = function (_a) {
|
|
|
28784
28843
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28785
28844
|
};
|
|
28786
28845
|
var getStaticProps$8 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28787
|
-
var theme, provider;
|
|
28788
28846
|
return __generator(this, function (_a) {
|
|
28789
28847
|
switch (_a.label) {
|
|
28790
|
-
case 0: return [4 /*yield*/,
|
|
28791
|
-
case 1:
|
|
28792
|
-
theme = _a.sent();
|
|
28793
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.FORGOT_PASSWORD);
|
|
28794
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28795
|
-
case 2:
|
|
28796
|
-
_a.sent();
|
|
28797
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28848
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.FORGOT_PASSWORD)];
|
|
28849
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28798
28850
|
}
|
|
28799
28851
|
});
|
|
28800
28852
|
}); };
|
|
@@ -28812,17 +28864,10 @@ var Page$a = function (_a) {
|
|
|
28812
28864
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28813
28865
|
};
|
|
28814
28866
|
var getStaticProps$9 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28815
|
-
var theme, provider;
|
|
28816
28867
|
return __generator(this, function (_a) {
|
|
28817
28868
|
switch (_a.label) {
|
|
28818
|
-
case 0: return [4 /*yield*/,
|
|
28819
|
-
case 1:
|
|
28820
|
-
theme = _a.sent();
|
|
28821
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.RECOVER_PASSWORD);
|
|
28822
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28823
|
-
case 2:
|
|
28824
|
-
_a.sent();
|
|
28825
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28869
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.RECOVER_PASSWORD)];
|
|
28870
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28826
28871
|
}
|
|
28827
28872
|
});
|
|
28828
28873
|
}); };
|
|
@@ -28844,17 +28889,10 @@ var Page$b = function (_a) {
|
|
|
28844
28889
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28845
28890
|
};
|
|
28846
28891
|
var getStaticProps$a = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28847
|
-
var theme, provider;
|
|
28848
28892
|
return __generator(this, function (_a) {
|
|
28849
28893
|
switch (_a.label) {
|
|
28850
|
-
case 0: return [4 /*yield*/,
|
|
28851
|
-
case 1:
|
|
28852
|
-
theme = _a.sent();
|
|
28853
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.CART);
|
|
28854
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28855
|
-
case 2:
|
|
28856
|
-
_a.sent();
|
|
28857
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28894
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.CART)];
|
|
28895
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28858
28896
|
}
|
|
28859
28897
|
});
|
|
28860
28898
|
}); };
|
|
@@ -28883,17 +28921,10 @@ var Page$d = function (_a) {
|
|
|
28883
28921
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28884
28922
|
};
|
|
28885
28923
|
var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28886
|
-
var theme, provider;
|
|
28887
28924
|
return __generator(this, function (_a) {
|
|
28888
28925
|
switch (_a.label) {
|
|
28889
|
-
case 0: return [4 /*yield*/,
|
|
28890
|
-
case 1:
|
|
28891
|
-
theme = _a.sent();
|
|
28892
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.FAVORITE_PRODUCTS);
|
|
28893
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28894
|
-
case 2:
|
|
28895
|
-
_a.sent();
|
|
28896
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28926
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.FAVORITE_PRODUCTS)];
|
|
28927
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28897
28928
|
}
|
|
28898
28929
|
});
|
|
28899
28930
|
}); };
|
|
@@ -28919,17 +28950,10 @@ var Page$e = function (_a) {
|
|
|
28919
28950
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
28920
28951
|
};
|
|
28921
28952
|
var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28922
|
-
var theme, provider;
|
|
28923
28953
|
return __generator(this, function (_a) {
|
|
28924
28954
|
switch (_a.label) {
|
|
28925
|
-
case 0: return [4 /*yield*/,
|
|
28926
|
-
case 1:
|
|
28927
|
-
theme = _a.sent();
|
|
28928
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.SEARCH);
|
|
28929
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28930
|
-
case 2:
|
|
28931
|
-
_a.sent();
|
|
28932
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28955
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.SEARCH)];
|
|
28956
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28933
28957
|
}
|
|
28934
28958
|
});
|
|
28935
28959
|
}); };
|
|
@@ -28947,17 +28971,10 @@ var Page$f = function (_a) {
|
|
|
28947
28971
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28948
28972
|
};
|
|
28949
28973
|
var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28950
|
-
var theme, provider;
|
|
28951
28974
|
return __generator(this, function (_a) {
|
|
28952
28975
|
switch (_a.label) {
|
|
28953
|
-
case 0: return [4 /*yield*/,
|
|
28954
|
-
case 1:
|
|
28955
|
-
theme = _a.sent();
|
|
28956
|
-
provider = new IkasPageDataProvider(theme, context.params, IkasThemePageType.NOT_FOUND);
|
|
28957
|
-
return [4 /*yield*/, provider.getPageData()];
|
|
28958
|
-
case 2:
|
|
28959
|
-
_a.sent();
|
|
28960
|
-
return [2 /*return*/, __assign(__assign({}, provider.nextPageData), { revalidate: 60 })];
|
|
28976
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.NOT_FOUND)];
|
|
28977
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28961
28978
|
}
|
|
28962
28979
|
});
|
|
28963
28980
|
}); };
|
|
@@ -28983,4 +29000,4 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
28983
29000
|
return IkasBaseStore;
|
|
28984
29001
|
}());
|
|
28985
29002
|
|
|
28986
|
-
export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, cart as CartPage, _id_$1 as CheckoutPage, ContactForm, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageComponentPropValue, IkasPageDataProvider, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI,
|
|
29003
|
+
export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, cart as CartPage, _id_$1 as CheckoutPage, ContactForm, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageComponentPropValue, IkasPageDataProvider, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemeCustomDataType, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home as IndexPage, LessThanRule, LoginForm, login as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$2 as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$4 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword as RecoverPasswordPage, RegisterForm, register as RegisterPage, RequiredRule, search as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, decodeBase64, formatMoney, parseRangeStr, pascalCase, stringToSlug, validatePhoneNumber };
|