@ikas/storefront 0.0.94 → 0.0.95
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 +402 -409
- package/build/index.js +403 -412
- package/build/models/data/cart/index.d.ts +9 -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 +5 -0
- package/build/utils/settings.d.ts +80 -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, [])];
|
|
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,206 @@ 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 SettingsHelper = /** @class */ (function () {
|
|
28322
|
+
function SettingsHelper() {
|
|
28323
|
+
}
|
|
28324
|
+
SettingsHelper.getSettings = function (locale) {
|
|
28325
|
+
return new Promise(function (resolve) {
|
|
28326
|
+
var serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
28327
|
+
var settings = serverRuntimeConfig.SETTINGS;
|
|
28328
|
+
var storefront = new IkasStorefront(settings.storefront);
|
|
28329
|
+
var localizationMap = settings.localizationMap;
|
|
28330
|
+
var themeJSONPath = localizationMap[locale];
|
|
28331
|
+
var routing = storefront.routings.find(function (r) { return r.id === locale || r.path === locale; });
|
|
28332
|
+
if (!themeJSONPath || !routing) {
|
|
28333
|
+
return resolve(null);
|
|
28334
|
+
}
|
|
28335
|
+
fs.readFile(themeJSONPath, {
|
|
28336
|
+
flag: "a+",
|
|
28337
|
+
}, function (err, file) {
|
|
28338
|
+
if (err) {
|
|
28339
|
+
return resolve(null);
|
|
28340
|
+
}
|
|
28341
|
+
var result = file.length ? JSON.parse(file.toString()) : {};
|
|
28342
|
+
resolve({
|
|
28343
|
+
storefront: storefront,
|
|
28344
|
+
theme: new IkasTheme(result),
|
|
28345
|
+
routing: routing,
|
|
28346
|
+
});
|
|
28347
|
+
});
|
|
28348
|
+
});
|
|
28349
|
+
};
|
|
28350
|
+
SettingsHelper.getPageData = function (context, isServer, pageType) {
|
|
28351
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28352
|
+
var locale, settings, storefront, theme, routing, provider;
|
|
28353
|
+
return __generator(this, function (_a) {
|
|
28354
|
+
switch (_a.label) {
|
|
28355
|
+
case 0:
|
|
28356
|
+
locale = context.locale || context.defaultLocale || "en";
|
|
28357
|
+
return [4 /*yield*/, SettingsHelper.getSettings(locale)];
|
|
28358
|
+
case 1:
|
|
28359
|
+
settings = _a.sent();
|
|
28360
|
+
if (!settings ||
|
|
28361
|
+
!settings.storefront.mainStorefrontThemeId ||
|
|
28362
|
+
!settings.storefront.salesChannelId ||
|
|
28363
|
+
!settings.routing.priceListId) {
|
|
28364
|
+
return [2 /*return*/, {
|
|
28365
|
+
props: {},
|
|
28366
|
+
notFound: true,
|
|
28367
|
+
}];
|
|
28368
|
+
}
|
|
28369
|
+
storefront = settings.storefront, theme = settings.theme, routing = settings.routing;
|
|
28370
|
+
IkasStorefrontConfig.storefrontId = storefront.id;
|
|
28371
|
+
IkasStorefrontConfig.storefrontRoutingId = routing.id;
|
|
28372
|
+
IkasStorefrontConfig.storefrontThemeId = storefront.mainStorefrontThemeId;
|
|
28373
|
+
IkasStorefrontConfig.salesChannelId = storefront.salesChannelId;
|
|
28374
|
+
IkasStorefrontConfig.priceListId = routing.priceListId;
|
|
28375
|
+
provider = new IkasPageDataProvider(theme, context.params, pageType);
|
|
28376
|
+
return [4 /*yield*/, provider.getPageData()];
|
|
28377
|
+
case 2:
|
|
28378
|
+
_a.sent();
|
|
28379
|
+
if (!provider.page) {
|
|
28380
|
+
return [2 /*return*/, {
|
|
28381
|
+
props: {},
|
|
28382
|
+
notFound: true,
|
|
28383
|
+
}];
|
|
28384
|
+
}
|
|
28385
|
+
if (isServer)
|
|
28386
|
+
return [2 /*return*/, provider.nextPageData];
|
|
28387
|
+
else
|
|
28388
|
+
return [2 /*return*/, {
|
|
28389
|
+
props: __assign(__assign({}, provider.nextPageData.props), { pageSpecificDataStr: JSON.stringify(provider.pageSpecificData || {}) }),
|
|
28390
|
+
revalidate: 60,
|
|
28391
|
+
}];
|
|
28392
|
+
}
|
|
28393
|
+
});
|
|
28394
|
+
});
|
|
28395
|
+
};
|
|
28396
|
+
SettingsHelper.getStaticProps = function (context, pageType) {
|
|
28397
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28398
|
+
return __generator(this, function (_a) {
|
|
28399
|
+
switch (_a.label) {
|
|
28400
|
+
case 0: return [4 /*yield*/, SettingsHelper.getPageData(context, false, pageType)];
|
|
28401
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28402
|
+
}
|
|
28403
|
+
});
|
|
28404
|
+
});
|
|
28405
|
+
};
|
|
28406
|
+
SettingsHelper.getServerSideProps = function (context, pageType) {
|
|
28407
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28408
|
+
return __generator(this, function (_a) {
|
|
28409
|
+
switch (_a.label) {
|
|
28410
|
+
case 0: return [4 /*yield*/, SettingsHelper.getPageData(context, false, pageType)];
|
|
28411
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28412
|
+
}
|
|
28413
|
+
});
|
|
28414
|
+
});
|
|
28415
|
+
};
|
|
28416
|
+
return SettingsHelper;
|
|
28417
|
+
}());
|
|
28418
|
+
|
|
28357
28419
|
var Page = function (_a) {
|
|
28358
28420
|
var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings;
|
|
28359
28421
|
var router = useRouter();
|
|
@@ -28361,17 +28423,10 @@ var Page = function (_a) {
|
|
|
28361
28423
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
28362
28424
|
};
|
|
28363
28425
|
var getStaticProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28364
|
-
var theme, provider;
|
|
28365
28426
|
return __generator(this, function (_a) {
|
|
28366
28427
|
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 })];
|
|
28428
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.INDEX)];
|
|
28429
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28375
28430
|
}
|
|
28376
28431
|
});
|
|
28377
28432
|
}); };
|
|
@@ -28413,6 +28468,7 @@ var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void
|
|
|
28413
28468
|
productMetaData = metaData.filter(function (m) { return m.targetType && m.targetType === IkasHTMLMetaDataTargetType.PRODUCT; });
|
|
28414
28469
|
return [4 /*yield*/, IkasProductSearchAPI.searchProducts({
|
|
28415
28470
|
productIdList: productMetaData.map(function (p) { return p.targetId; }),
|
|
28471
|
+
priceListId: IkasStorefrontConfig.priceListId,
|
|
28416
28472
|
})];
|
|
28417
28473
|
case 2:
|
|
28418
28474
|
productsResponse = _b.sent();
|
|
@@ -28459,25 +28515,10 @@ var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void
|
|
|
28459
28515
|
});
|
|
28460
28516
|
}); };
|
|
28461
28517
|
var getStaticProps$1 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28462
|
-
var theme, provider;
|
|
28463
28518
|
return __generator(this, function (_a) {
|
|
28464
28519
|
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
|
-
}];
|
|
28520
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context)];
|
|
28521
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28481
28522
|
}
|
|
28482
28523
|
});
|
|
28483
28524
|
}); };
|
|
@@ -28522,19 +28563,38 @@ var Page$2 = function (_a) {
|
|
|
28522
28563
|
return (createElement(IkasPage, { page: page, settingsStr: settingsStr, propValues: propValues }));
|
|
28523
28564
|
};
|
|
28524
28565
|
var getStaticPaths$1 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28525
|
-
var
|
|
28566
|
+
var allSettings, customPagePaths;
|
|
28526
28567
|
return __generator(this, function (_a) {
|
|
28527
28568
|
switch (_a.label) {
|
|
28528
|
-
case 0:
|
|
28569
|
+
case 0:
|
|
28570
|
+
if (!context.locales)
|
|
28571
|
+
return [2 /*return*/, {
|
|
28572
|
+
paths: [],
|
|
28573
|
+
fallback: "blocking",
|
|
28574
|
+
}];
|
|
28575
|
+
return [4 /*yield*/, Promise.all(context.locales.map(function (locale) { return SettingsHelper.getSettings(locale); }))];
|
|
28529
28576
|
case 1:
|
|
28530
|
-
|
|
28531
|
-
|
|
28532
|
-
|
|
28533
|
-
|
|
28534
|
-
|
|
28577
|
+
allSettings = (_a.sent());
|
|
28578
|
+
customPagePaths = [];
|
|
28579
|
+
allSettings.forEach(function (_a) {
|
|
28580
|
+
var theme = _a.theme, routing = _a.routing;
|
|
28581
|
+
if (!theme)
|
|
28582
|
+
return;
|
|
28583
|
+
var customPages = theme.pages.filter(function (p) { return p.type === IkasThemePageType.CUSTOM; });
|
|
28584
|
+
customPages.forEach(function (customPage) {
|
|
28585
|
+
if (customPage.slug &&
|
|
28586
|
+
!customPagePaths.some(function (p) { return p.params.slug === customPage.slug; })) {
|
|
28587
|
+
customPagePaths.push({
|
|
28588
|
+
params: { slug: customPage.slug },
|
|
28589
|
+
locale: routing.locale,
|
|
28590
|
+
});
|
|
28591
|
+
}
|
|
28592
|
+
});
|
|
28593
|
+
});
|
|
28535
28594
|
return [2 /*return*/, {
|
|
28536
28595
|
paths: customPagePaths.map(function (p) { return ({
|
|
28537
|
-
params: p,
|
|
28596
|
+
params: p.params,
|
|
28597
|
+
locale: p.locale,
|
|
28538
28598
|
}); }),
|
|
28539
28599
|
fallback: "blocking",
|
|
28540
28600
|
}];
|
|
@@ -28542,17 +28602,10 @@ var getStaticPaths$1 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
28542
28602
|
});
|
|
28543
28603
|
}); };
|
|
28544
28604
|
var getStaticProps$2 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28545
|
-
var theme, provider;
|
|
28546
28605
|
return __generator(this, function (_a) {
|
|
28547
28606
|
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 })];
|
|
28607
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.CUSTOM)];
|
|
28608
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28556
28609
|
}
|
|
28557
28610
|
});
|
|
28558
28611
|
}); };
|
|
@@ -28565,18 +28618,38 @@ var _slug_ = /*#__PURE__*/Object.freeze({
|
|
|
28565
28618
|
});
|
|
28566
28619
|
|
|
28567
28620
|
var CheckoutPage = function (_a) {
|
|
28568
|
-
var checkoutStr = _a.checkoutStr,
|
|
28621
|
+
var checkoutStr = _a.checkoutStr, others = __rest(_a, ["checkoutStr"]);
|
|
28569
28622
|
Analytics.disableHTML();
|
|
28570
28623
|
var checkout = new IkasCheckout(JSON.parse(checkoutStr));
|
|
28571
|
-
return createElement(IkasCheckoutPage, { checkout: checkout,
|
|
28624
|
+
return createElement(IkasCheckoutPage, __assign({ checkout: checkout }, others));
|
|
28572
28625
|
};
|
|
28573
28626
|
var _id_ = observer(CheckoutPage);
|
|
28574
28627
|
var getServerSideProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28575
|
-
var id, redirect, checkout;
|
|
28628
|
+
var id, locale, settings, storefront, routing, redirect, checkout, region;
|
|
28576
28629
|
return __generator(this, function (_a) {
|
|
28577
28630
|
switch (_a.label) {
|
|
28578
28631
|
case 0:
|
|
28579
28632
|
id = context.query.id;
|
|
28633
|
+
locale = context.locale || context.defaultLocale || "en";
|
|
28634
|
+
return [4 /*yield*/, SettingsHelper.getSettings(locale)];
|
|
28635
|
+
case 1:
|
|
28636
|
+
settings = _a.sent();
|
|
28637
|
+
// TODO maybe remove this and convert this page to static
|
|
28638
|
+
if (!settings ||
|
|
28639
|
+
!settings.storefront.mainStorefrontThemeId ||
|
|
28640
|
+
!settings.storefront.salesChannelId ||
|
|
28641
|
+
!settings.routing.priceListId) {
|
|
28642
|
+
return [2 /*return*/, {
|
|
28643
|
+
props: {},
|
|
28644
|
+
notFound: true,
|
|
28645
|
+
}];
|
|
28646
|
+
}
|
|
28647
|
+
storefront = settings.storefront, routing = settings.routing;
|
|
28648
|
+
IkasStorefrontConfig.storefrontId = storefront.id;
|
|
28649
|
+
IkasStorefrontConfig.storefrontRoutingId = routing.id;
|
|
28650
|
+
IkasStorefrontConfig.storefrontThemeId = storefront.mainStorefrontThemeId;
|
|
28651
|
+
IkasStorefrontConfig.salesChannelId = storefront.salesChannelId;
|
|
28652
|
+
IkasStorefrontConfig.priceListId = routing.priceListId;
|
|
28580
28653
|
redirect = function () {
|
|
28581
28654
|
context.res.writeHead(302, { Location: "/" });
|
|
28582
28655
|
context.res.end();
|
|
@@ -28586,12 +28659,16 @@ var getServerSideProps = function (context) { return __awaiter(void 0, void 0, v
|
|
|
28586
28659
|
return [2 /*return*/, redirect()];
|
|
28587
28660
|
}
|
|
28588
28661
|
return [4 /*yield*/, IkasCheckoutAPI.getCheckoutById(id)];
|
|
28589
|
-
case
|
|
28662
|
+
case 2:
|
|
28590
28663
|
checkout = _a.sent();
|
|
28591
28664
|
if (checkout) {
|
|
28665
|
+
region = settings.storefront.regions.find(function (r) { return r.id === storefront.mainStorefrontThemeId; });
|
|
28592
28666
|
return [2 /*return*/, {
|
|
28593
28667
|
props: {
|
|
28594
28668
|
checkoutStr: JSON.stringify(checkout),
|
|
28669
|
+
returnPolicy: (region === null || region === void 0 ? void 0 : region.returnPolicy) || "",
|
|
28670
|
+
privacyPolicy: (region === null || region === void 0 ? void 0 : region.privacyPolicy) || "",
|
|
28671
|
+
termsOfService: (region === null || region === void 0 ? void 0 : region.termsOfService) || "",
|
|
28595
28672
|
queryParams: context.query,
|
|
28596
28673
|
},
|
|
28597
28674
|
}];
|
|
@@ -28616,17 +28693,10 @@ var Page$3 = function (_a) {
|
|
|
28616
28693
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28617
28694
|
};
|
|
28618
28695
|
var getStaticProps$3 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28619
|
-
var theme, provider;
|
|
28620
28696
|
return __generator(this, function (_a) {
|
|
28621
28697
|
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 })];
|
|
28698
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ACCOUNT)];
|
|
28699
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28630
28700
|
}
|
|
28631
28701
|
});
|
|
28632
28702
|
}); };
|
|
@@ -28644,17 +28714,10 @@ var Page$4 = function (_a) {
|
|
|
28644
28714
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28645
28715
|
};
|
|
28646
28716
|
var getStaticProps$4 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28647
|
-
var theme, provider;
|
|
28648
28717
|
return __generator(this, function (_a) {
|
|
28649
28718
|
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 })];
|
|
28719
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ADDRESSES)];
|
|
28720
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28658
28721
|
}
|
|
28659
28722
|
});
|
|
28660
28723
|
}); };
|
|
@@ -28672,17 +28735,10 @@ var Page$5 = function (_a) {
|
|
|
28672
28735
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28673
28736
|
};
|
|
28674
28737
|
var getStaticProps$5 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28675
|
-
var theme, provider;
|
|
28676
28738
|
return __generator(this, function (_a) {
|
|
28677
28739
|
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 })];
|
|
28740
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ORDERS)];
|
|
28741
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28686
28742
|
}
|
|
28687
28743
|
});
|
|
28688
28744
|
}); };
|
|
@@ -28700,17 +28756,10 @@ var Page$6 = function (_a) {
|
|
|
28700
28756
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28701
28757
|
};
|
|
28702
28758
|
var getServerSideProps$1 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28703
|
-
var theme, provider;
|
|
28704
28759
|
return __generator(this, function (_a) {
|
|
28705
28760
|
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];
|
|
28761
|
+
case 0: return [4 /*yield*/, SettingsHelper.getServerSideProps(context, IkasThemePageType.ORDER_DETAIL)];
|
|
28762
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28714
28763
|
}
|
|
28715
28764
|
});
|
|
28716
28765
|
}); };
|
|
@@ -28728,17 +28777,10 @@ var Page$7 = function (_a) {
|
|
|
28728
28777
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28729
28778
|
};
|
|
28730
28779
|
var getStaticProps$6 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28731
|
-
var theme, provider;
|
|
28732
28780
|
return __generator(this, function (_a) {
|
|
28733
28781
|
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 })];
|
|
28782
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.LOGIN)];
|
|
28783
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28742
28784
|
}
|
|
28743
28785
|
});
|
|
28744
28786
|
}); };
|
|
@@ -28756,17 +28798,10 @@ var Page$8 = function (_a) {
|
|
|
28756
28798
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28757
28799
|
};
|
|
28758
28800
|
var getStaticProps$7 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28759
|
-
var theme, provider;
|
|
28760
28801
|
return __generator(this, function (_a) {
|
|
28761
28802
|
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 })];
|
|
28803
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.REGISTER)];
|
|
28804
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28770
28805
|
}
|
|
28771
28806
|
});
|
|
28772
28807
|
}); };
|
|
@@ -28784,17 +28819,10 @@ var Page$9 = function (_a) {
|
|
|
28784
28819
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28785
28820
|
};
|
|
28786
28821
|
var getStaticProps$8 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28787
|
-
var theme, provider;
|
|
28788
28822
|
return __generator(this, function (_a) {
|
|
28789
28823
|
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 })];
|
|
28824
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.FORGOT_PASSWORD)];
|
|
28825
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28798
28826
|
}
|
|
28799
28827
|
});
|
|
28800
28828
|
}); };
|
|
@@ -28812,17 +28840,10 @@ var Page$a = function (_a) {
|
|
|
28812
28840
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28813
28841
|
};
|
|
28814
28842
|
var getStaticProps$9 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28815
|
-
var theme, provider;
|
|
28816
28843
|
return __generator(this, function (_a) {
|
|
28817
28844
|
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 })];
|
|
28845
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.RECOVER_PASSWORD)];
|
|
28846
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28826
28847
|
}
|
|
28827
28848
|
});
|
|
28828
28849
|
}); };
|
|
@@ -28844,17 +28865,10 @@ var Page$b = function (_a) {
|
|
|
28844
28865
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28845
28866
|
};
|
|
28846
28867
|
var getStaticProps$a = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28847
|
-
var theme, provider;
|
|
28848
28868
|
return __generator(this, function (_a) {
|
|
28849
28869
|
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 })];
|
|
28870
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.CART)];
|
|
28871
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28858
28872
|
}
|
|
28859
28873
|
});
|
|
28860
28874
|
}); };
|
|
@@ -28883,17 +28897,10 @@ var Page$d = function (_a) {
|
|
|
28883
28897
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28884
28898
|
};
|
|
28885
28899
|
var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28886
|
-
var theme, provider;
|
|
28887
28900
|
return __generator(this, function (_a) {
|
|
28888
28901
|
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 })];
|
|
28902
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.FAVORITE_PRODUCTS)];
|
|
28903
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28897
28904
|
}
|
|
28898
28905
|
});
|
|
28899
28906
|
}); };
|
|
@@ -28919,17 +28926,10 @@ var Page$e = function (_a) {
|
|
|
28919
28926
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
28920
28927
|
};
|
|
28921
28928
|
var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28922
|
-
var theme, provider;
|
|
28923
28929
|
return __generator(this, function (_a) {
|
|
28924
28930
|
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 })];
|
|
28931
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.SEARCH)];
|
|
28932
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28933
28933
|
}
|
|
28934
28934
|
});
|
|
28935
28935
|
}); };
|
|
@@ -28947,17 +28947,10 @@ var Page$f = function (_a) {
|
|
|
28947
28947
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
28948
28948
|
};
|
|
28949
28949
|
var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
28950
|
-
var theme, provider;
|
|
28951
28950
|
return __generator(this, function (_a) {
|
|
28952
28951
|
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 })];
|
|
28952
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.NOT_FOUND)];
|
|
28953
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28961
28954
|
}
|
|
28962
28955
|
});
|
|
28963
28956
|
}); };
|
|
@@ -28983,4 +28976,4 @@ var IkasBaseStore = /** @class */ (function () {
|
|
|
28983
28976
|
return IkasBaseStore;
|
|
28984
28977
|
}());
|
|
28985
28978
|
|
|
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,
|
|
28979
|
+
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 };
|