@ikas/storefront 0.0.8 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -11643,8 +11643,8 @@ var IkasBrandPropValueProvider = /** @class */ (function () {
11643
11643
  }());
11644
11644
 
11645
11645
  var IkasLinkPropValueProvider = /** @class */ (function () {
11646
- function IkasLinkPropValueProvider(prop, theme) {
11647
- this.linkPropValue = prop;
11646
+ function IkasLinkPropValueProvider(linkPropValue, theme) {
11647
+ this.linkPropValue = linkPropValue;
11648
11648
  this.theme = theme;
11649
11649
  }
11650
11650
  IkasLinkPropValueProvider.prototype.getNavigationLink = function (linkPropValue) {
@@ -11769,6 +11769,122 @@ var IkasNavigationLink = /** @class */ (function () {
11769
11769
  return IkasNavigationLink;
11770
11770
  }());
11771
11771
 
11772
+ var IkasImageListPropValueProvider = /** @class */ (function () {
11773
+ function IkasImageListPropValueProvider(imageListPropValue) {
11774
+ this.imageListPropValue = imageListPropValue;
11775
+ }
11776
+ IkasImageListPropValueProvider.prototype.getValue = function () {
11777
+ return __awaiter(this, void 0, void 0, function () {
11778
+ return __generator(this, function (_a) {
11779
+ return [2 /*return*/, this.imageListPropValue.map(function (i) { return new IkasImage(i); })];
11780
+ });
11781
+ });
11782
+ };
11783
+ return IkasImageListPropValueProvider;
11784
+ }());
11785
+
11786
+ var IkasTextPropValueProvider = /** @class */ (function () {
11787
+ function IkasTextPropValueProvider(textPropValue) {
11788
+ this.text = textPropValue;
11789
+ }
11790
+ IkasTextPropValueProvider.prototype.getValue = function () {
11791
+ return __awaiter(this, void 0, void 0, function () {
11792
+ return __generator(this, function (_a) {
11793
+ return [2 /*return*/, this.text];
11794
+ });
11795
+ });
11796
+ };
11797
+ return IkasTextPropValueProvider;
11798
+ }());
11799
+
11800
+ var IkasBooleanPropValueProvider = /** @class */ (function () {
11801
+ function IkasBooleanPropValueProvider(textPropValue) {
11802
+ this.bool = textPropValue;
11803
+ }
11804
+ IkasBooleanPropValueProvider.prototype.getValue = function () {
11805
+ return __awaiter(this, void 0, void 0, function () {
11806
+ return __generator(this, function (_a) {
11807
+ return [2 /*return*/, this.bool];
11808
+ });
11809
+ });
11810
+ };
11811
+ return IkasBooleanPropValueProvider;
11812
+ }());
11813
+
11814
+ var IkasImagePropValueProvider = /** @class */ (function () {
11815
+ function IkasImagePropValueProvider(imagePropValue) {
11816
+ this.imagePropValue = imagePropValue;
11817
+ }
11818
+ IkasImagePropValueProvider.prototype.getValue = function () {
11819
+ return __awaiter(this, void 0, void 0, function () {
11820
+ return __generator(this, function (_a) {
11821
+ return [2 /*return*/, new IkasImage(this.imagePropValue)];
11822
+ });
11823
+ });
11824
+ };
11825
+ return IkasImagePropValueProvider;
11826
+ }());
11827
+
11828
+ var IkasCategoryPropValueProvider = /** @class */ (function () {
11829
+ function IkasCategoryPropValueProvider(prop, pageSpecificData) {
11830
+ this.categoryPropValue = prop;
11831
+ this.pageSpecificData = pageSpecificData;
11832
+ }
11833
+ IkasCategoryPropValueProvider.prototype.getValue = function () {
11834
+ return __awaiter(this, void 0, void 0, function () {
11835
+ var response, category, err_1;
11836
+ return __generator(this, function (_a) {
11837
+ switch (_a.label) {
11838
+ case 0:
11839
+ if (this.categoryPropValue.usePageData) {
11840
+ return [2 /*return*/, this.pageSpecificData];
11841
+ }
11842
+ _a.label = 1;
11843
+ case 1:
11844
+ _a.trys.push([1, 3, , 4]);
11845
+ return [4 /*yield*/, IkasCategoryAPI.listCategories({
11846
+ idList: [this.categoryPropValue.categoryId],
11847
+ })];
11848
+ case 2:
11849
+ response = _a.sent();
11850
+ category = response.categories[0];
11851
+ return [2 /*return*/, new IkasCategory(category)];
11852
+ case 3:
11853
+ err_1 = _a.sent();
11854
+ console.log(err_1);
11855
+ return [3 /*break*/, 4];
11856
+ case 4: return [2 /*return*/, new IkasCategory({})];
11857
+ }
11858
+ });
11859
+ });
11860
+ };
11861
+ return IkasCategoryPropValueProvider;
11862
+ }());
11863
+
11864
+ var IkasCategoryListPropValueProvider = /** @class */ (function () {
11865
+ function IkasCategoryListPropValueProvider(categoryListPropValue) {
11866
+ this.categoryListPropValue = categoryListPropValue;
11867
+ }
11868
+ IkasCategoryListPropValueProvider.prototype.getValue = function () {
11869
+ return __awaiter(this, void 0, void 0, function () {
11870
+ var categoryList;
11871
+ return __generator(this, function (_a) {
11872
+ switch (_a.label) {
11873
+ case 0:
11874
+ categoryList = new IkasCategoryList({
11875
+ categoryListPropValue: this.categoryListPropValue,
11876
+ });
11877
+ return [4 /*yield*/, categoryList.getInitial()];
11878
+ case 1:
11879
+ _a.sent();
11880
+ return [2 /*return*/, categoryList];
11881
+ }
11882
+ });
11883
+ });
11884
+ };
11885
+ return IkasCategoryListPropValueProvider;
11886
+ }());
11887
+
11772
11888
  var IkasPageDataProvider = /** @class */ (function () {
11773
11889
  function IkasPageDataProvider(theme, pageParams, pageType) {
11774
11890
  this.pageType = null;
@@ -12003,10 +12119,17 @@ var IkasPageDataProvider = /** @class */ (function () {
12003
12119
  return [2 /*return*/, null];
12004
12120
  switch (prop.type) {
12005
12121
  case IkasThemeComponentPropType.TEXT:
12122
+ propValueProvider = new IkasTextPropValueProvider(propValue);
12123
+ break;
12006
12124
  case IkasThemeComponentPropType.BOOLEAN:
12007
- return [2 /*return*/, propValue];
12125
+ propValueProvider = new IkasBooleanPropValueProvider(propValue);
12126
+ break;
12008
12127
  case IkasThemeComponentPropType.IMAGE:
12009
- return [2 /*return*/, new IkasImage(propValue)];
12128
+ propValueProvider = new IkasImagePropValueProvider(propValue);
12129
+ break;
12130
+ case IkasThemeComponentPropType.IMAGE_LIST:
12131
+ propValueProvider = new IkasImageListPropValueProvider(propValue);
12132
+ break;
12010
12133
  case IkasThemeComponentPropType.BRAND:
12011
12134
  propValueProvider = new IkasBrandPropValueProvider(propValue, this.pageSpecificData);
12012
12135
  break;
@@ -12019,6 +12142,12 @@ var IkasPageDataProvider = /** @class */ (function () {
12019
12142
  case IkasThemeComponentPropType.PRODUCT_DETAIL:
12020
12143
  propValueProvider = new IkasProductDetailPropValueProvider(propValue, this.pageSpecificData);
12021
12144
  break;
12145
+ case IkasThemeComponentPropType.CATEGORY:
12146
+ propValueProvider = new IkasCategoryPropValueProvider(propValue, this.pageSpecificData);
12147
+ break;
12148
+ case IkasThemeComponentPropType.CATEGORY_LIST:
12149
+ propValueProvider = new IkasCategoryListPropValueProvider(propValue);
12150
+ break;
12022
12151
  case IkasThemeComponentPropType.LINK:
12023
12152
  case IkasThemeComponentPropType.LIST_OF_LINK:
12024
12153
  propValueProvider = new IkasLinkPropValueProvider(propValue, this.theme);
@@ -12052,9 +12181,15 @@ var IkasPageDataProvider = /** @class */ (function () {
12052
12181
  case IkasThemeComponentPropType.IMAGE:
12053
12182
  IkasPageDataProvider.initImagePropValue(prop, propValue, pageComponentPropValue);
12054
12183
  break;
12184
+ case IkasThemeComponentPropType.IMAGE_LIST:
12185
+ IkasPageDataProvider.initImageListPropValue(prop, propValue, pageComponentPropValue);
12186
+ break;
12055
12187
  case IkasThemeComponentPropType.BRAND_LIST:
12056
12188
  IkasPageDataProvider.initBrandListPropValue(prop, propValue, pageComponentPropValue);
12057
12189
  break;
12190
+ case IkasThemeComponentPropType.CATEGORY_LIST:
12191
+ IkasPageDataProvider.initCategoryListPropValue(prop, propValue, pageComponentPropValue);
12192
+ break;
12058
12193
  case IkasThemeComponentPropType.PRODUCT_LIST:
12059
12194
  IkasPageDataProvider.initProductListPropValue(prop, propValue, pageComponentPropValue);
12060
12195
  break;
@@ -12074,6 +12209,10 @@ var IkasPageDataProvider = /** @class */ (function () {
12074
12209
  var brandList = new IkasBrandList(propValue);
12075
12210
  pageComponentPropValue.propValues[prop.name] = brandList;
12076
12211
  };
12212
+ IkasPageDataProvider.initCategoryListPropValue = function (prop, propValue, pageComponentPropValue) {
12213
+ var categoryList = new IkasCategoryList(propValue);
12214
+ pageComponentPropValue.propValues[prop.name] = categoryList;
12215
+ };
12077
12216
  IkasPageDataProvider.initProductListPropValue = function (prop, propValue, pageComponentPropValue) {
12078
12217
  var productList = new IkasProductList(propValue);
12079
12218
  pageComponentPropValue.propValues[prop.name] = productList;
@@ -12122,6 +12261,9 @@ var IkasPageDataProvider = /** @class */ (function () {
12122
12261
  IkasPageDataProvider.initImagePropValue = function (prop, propValue, pageComponentPropValue) {
12123
12262
  pageComponentPropValue.propValues[prop.name] = new IkasImage(propValue.id);
12124
12263
  };
12264
+ IkasPageDataProvider.initImageListPropValue = function (prop, propValue, pageComponentPropValue) {
12265
+ pageComponentPropValue.propValues[prop.name] = propValue.map(function (i) { return new IkasImage(i.id); });
12266
+ };
12125
12267
  return IkasPageDataProvider;
12126
12268
  }());
12127
12269
  var IkasPageComponentPropValue = /** @class */ (function () {
@@ -13108,57 +13250,6 @@ var IkasTransactionTypeEnum;
13108
13250
  IkasTransactionTypeEnum["VOID"] = "VOID";
13109
13251
  })(IkasTransactionTypeEnum || (IkasTransactionTypeEnum = {}));
13110
13252
 
13111
- var IkasThemeComponentProp = /** @class */ (function () {
13112
- function IkasThemeComponentProp(data) {
13113
- this.name = data.name || "";
13114
- this.displayName = data.displayName || "";
13115
- this.type = data.type || IkasThemeComponentPropType.TEXT;
13116
- makeAutoObservable(this);
13117
- }
13118
- return IkasThemeComponentProp;
13119
- }());
13120
- var IkasThemeComponentPropType;
13121
- (function (IkasThemeComponentPropType) {
13122
- IkasThemeComponentPropType["IMAGE"] = "IMAGE";
13123
- IkasThemeComponentPropType["TEXT"] = "TEXT";
13124
- IkasThemeComponentPropType["BOOLEAN"] = "BOOLEAN";
13125
- IkasThemeComponentPropType["LINK"] = "LINK";
13126
- IkasThemeComponentPropType["LIST_OF_LINK"] = "LIST_OF_LINK";
13127
- IkasThemeComponentPropType["PRODUCT_DETAIL"] = "PRODUCT_DETAIL";
13128
- IkasThemeComponentPropType["PRODUCT_LIST"] = "PRODUCT_LIST";
13129
- IkasThemeComponentPropType["BRAND"] = "BRAND";
13130
- IkasThemeComponentPropType["BRAND_LIST"] = "BRAND_LIST";
13131
- IkasThemeComponentPropType["CATEGORY"] = "CATEGORY";
13132
- IkasThemeComponentPropType["CATEGORY_LIST"] = "CATEGORY_LIST";
13133
- // TODO number
13134
- // TODO productAttribute
13135
- })(IkasThemeComponentPropType || (IkasThemeComponentPropType = {}));
13136
-
13137
- var IkasThemeComponent = /** @class */ (function () {
13138
- function IkasThemeComponent(data) {
13139
- this.id = data.id || "";
13140
- this.dir = data.dir || "";
13141
- this.displayName = data.displayName || "";
13142
- this.props = data.props
13143
- ? data.props.map(function (p) { return new IkasThemeComponentProp(p); })
13144
- : [];
13145
- this.isHeader = data.isHeader || false;
13146
- this.isFooter = data.isFooter || false;
13147
- makeAutoObservable(this);
13148
- }
13149
- return IkasThemeComponent;
13150
- }());
13151
-
13152
- var IkasThemePageComponent = /** @class */ (function () {
13153
- function IkasThemePageComponent(data) {
13154
- this.id = data.id || "";
13155
- this.componentId = data.componentId || "";
13156
- this.propValues = data.propValues || {};
13157
- makeAutoObservable(this);
13158
- }
13159
- return IkasThemePageComponent;
13160
- }());
13161
-
13162
13253
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
13163
13254
  // require the crypto API and do not support built-in fallback to lower quality random number
13164
13255
  // generators (like Math.random()).
@@ -13233,6 +13324,60 @@ function v4(options, buf, offset) {
13233
13324
  return stringify(rnds);
13234
13325
  }
13235
13326
 
13327
+ var IkasThemeComponentProp = /** @class */ (function () {
13328
+ function IkasThemeComponentProp(data) {
13329
+ this.id = data.id || v4();
13330
+ this.name = data.name || "";
13331
+ this.displayName = data.displayName || "";
13332
+ this.type = data.type || IkasThemeComponentPropType.TEXT;
13333
+ this.isRequired = data.isRequired || false;
13334
+ makeAutoObservable(this);
13335
+ }
13336
+ return IkasThemeComponentProp;
13337
+ }());
13338
+ var IkasThemeComponentPropType;
13339
+ (function (IkasThemeComponentPropType) {
13340
+ IkasThemeComponentPropType["TEXT"] = "TEXT";
13341
+ IkasThemeComponentPropType["BOOLEAN"] = "BOOLEAN";
13342
+ IkasThemeComponentPropType["IMAGE"] = "IMAGE";
13343
+ IkasThemeComponentPropType["IMAGE_LIST"] = "IMAGE_LIST";
13344
+ IkasThemeComponentPropType["LINK"] = "LINK";
13345
+ IkasThemeComponentPropType["LIST_OF_LINK"] = "LIST_OF_LINK";
13346
+ IkasThemeComponentPropType["PRODUCT_DETAIL"] = "PRODUCT_DETAIL";
13347
+ IkasThemeComponentPropType["PRODUCT_LIST"] = "PRODUCT_LIST";
13348
+ IkasThemeComponentPropType["BRAND"] = "BRAND";
13349
+ IkasThemeComponentPropType["BRAND_LIST"] = "BRAND_LIST";
13350
+ IkasThemeComponentPropType["CATEGORY"] = "CATEGORY";
13351
+ IkasThemeComponentPropType["CATEGORY_LIST"] = "CATEGORY_LIST";
13352
+ // TODO number
13353
+ // TODO productAttribute
13354
+ })(IkasThemeComponentPropType || (IkasThemeComponentPropType = {}));
13355
+
13356
+ var IkasThemeComponent = /** @class */ (function () {
13357
+ function IkasThemeComponent(data) {
13358
+ this.id = data.id || "";
13359
+ this.dir = data.dir || "";
13360
+ this.displayName = data.displayName || "";
13361
+ this.props = data.props
13362
+ ? data.props.map(function (p) { return new IkasThemeComponentProp(p); })
13363
+ : [];
13364
+ this.isHeader = data.isHeader || false;
13365
+ this.isFooter = data.isFooter || false;
13366
+ makeAutoObservable(this);
13367
+ }
13368
+ return IkasThemeComponent;
13369
+ }());
13370
+
13371
+ var IkasThemePageComponent = /** @class */ (function () {
13372
+ function IkasThemePageComponent(data) {
13373
+ this.id = data.id || "";
13374
+ this.componentId = data.componentId || "";
13375
+ this.propValues = data.propValues || {};
13376
+ makeAutoObservable(this);
13377
+ }
13378
+ return IkasThemePageComponent;
13379
+ }());
13380
+
13236
13381
  var IkasThemePage = /** @class */ (function () {
13237
13382
  function IkasThemePage(data) {
13238
13383
  this.id = data.id || v4();
@@ -13625,6 +13770,276 @@ var IkasBrandListPropValue = /** @class */ (function () {
13625
13770
  return IkasBrandListPropValue;
13626
13771
  }());
13627
13772
 
13773
+ var IkasCategoryList = /** @class */ (function () {
13774
+ function IkasCategoryList(data) {
13775
+ var _this = this;
13776
+ this._initialized = false;
13777
+ this._minPage = null;
13778
+ this._isLoading = false;
13779
+ this.getInitial = function () { return __awaiter(_this, void 0, void 0, function () {
13780
+ var response_1, err_1;
13781
+ var _this = this;
13782
+ return __generator(this, function (_a) {
13783
+ switch (_a.label) {
13784
+ case 0:
13785
+ if (this._isLoading)
13786
+ return [2 /*return*/];
13787
+ this._isLoading = true;
13788
+ _a.label = 1;
13789
+ case 1:
13790
+ _a.trys.push([1, 3, 4, 5]);
13791
+ return [4 /*yield*/, IkasCategoryAPI.listCategories({
13792
+ idList: this.isStatic
13793
+ ? this._categoryListPropValue.categoryIds || undefined
13794
+ : undefined,
13795
+ page: this.isStatic ? undefined : this.page,
13796
+ limit: this.isStatic ? undefined : this.limit,
13797
+ })];
13798
+ case 2:
13799
+ response_1 = _a.sent();
13800
+ runInAction(function () {
13801
+ _this.data = response_1.categories;
13802
+ _this._count = response_1.count;
13803
+ _this._initialized = true;
13804
+ _this._minPage = _this.page;
13805
+ });
13806
+ return [3 /*break*/, 5];
13807
+ case 3:
13808
+ err_1 = _a.sent();
13809
+ console.log(err_1);
13810
+ return [3 /*break*/, 5];
13811
+ case 4:
13812
+ runInAction(function () {
13813
+ _this._isLoading = false;
13814
+ });
13815
+ return [7 /*endfinally*/];
13816
+ case 5: return [2 /*return*/];
13817
+ }
13818
+ });
13819
+ }); };
13820
+ this.getPrev = function () { return __awaiter(_this, void 0, void 0, function () {
13821
+ var minPage_1, response_2, err_2;
13822
+ var _this = this;
13823
+ return __generator(this, function (_a) {
13824
+ switch (_a.label) {
13825
+ case 0:
13826
+ if (this.isStatic || this._isLoading || !this.hasPrev)
13827
+ return [2 /*return*/];
13828
+ this._isLoading = true;
13829
+ _a.label = 1;
13830
+ case 1:
13831
+ _a.trys.push([1, 3, 4, 5]);
13832
+ minPage_1 = this._minPage - 1;
13833
+ return [4 /*yield*/, IkasCategoryAPI.listCategories({
13834
+ page: minPage_1,
13835
+ limit: this.limit,
13836
+ })];
13837
+ case 2:
13838
+ response_2 = _a.sent();
13839
+ runInAction(function () {
13840
+ _this.data = response_2.categories.concat(_this.data);
13841
+ _this._count = response_2.count;
13842
+ _this._minPage = minPage_1;
13843
+ });
13844
+ return [3 /*break*/, 5];
13845
+ case 3:
13846
+ err_2 = _a.sent();
13847
+ console.log(err_2);
13848
+ return [3 /*break*/, 5];
13849
+ case 4:
13850
+ runInAction(function () {
13851
+ _this._isLoading = false;
13852
+ });
13853
+ return [7 /*endfinally*/];
13854
+ case 5: return [2 /*return*/];
13855
+ }
13856
+ });
13857
+ }); };
13858
+ this.getNext = function () { return __awaiter(_this, void 0, void 0, function () {
13859
+ var response_3, err_3;
13860
+ var _this = this;
13861
+ return __generator(this, function (_a) {
13862
+ switch (_a.label) {
13863
+ case 0:
13864
+ if (this.isStatic || this._isLoading || !this.hasNext)
13865
+ return [2 /*return*/];
13866
+ this._isLoading = true;
13867
+ _a.label = 1;
13868
+ case 1:
13869
+ _a.trys.push([1, 3, 4, 5]);
13870
+ return [4 /*yield*/, IkasCategoryAPI.listCategories({
13871
+ page: this.page + 1,
13872
+ limit: this.limit,
13873
+ })];
13874
+ case 2:
13875
+ response_3 = _a.sent();
13876
+ runInAction(function () {
13877
+ _this.data = _this.data.concat(response_3.categories);
13878
+ _this._count = response_3.count;
13879
+ _this._page = _this.page + 1;
13880
+ });
13881
+ return [3 /*break*/, 5];
13882
+ case 3:
13883
+ err_3 = _a.sent();
13884
+ console.log(err_3);
13885
+ return [3 /*break*/, 5];
13886
+ case 4:
13887
+ runInAction(function () {
13888
+ _this._isLoading = false;
13889
+ });
13890
+ return [7 /*endfinally*/];
13891
+ case 5: return [2 /*return*/];
13892
+ }
13893
+ });
13894
+ }); };
13895
+ this.getPage = function (page) { return __awaiter(_this, void 0, void 0, function () {
13896
+ var response_4, err_4;
13897
+ var _this = this;
13898
+ return __generator(this, function (_a) {
13899
+ switch (_a.label) {
13900
+ case 0:
13901
+ if (this._isLoading || this.isStatic)
13902
+ return [2 /*return*/];
13903
+ this._isLoading = true;
13904
+ _a.label = 1;
13905
+ case 1:
13906
+ _a.trys.push([1, 3, 4, 5]);
13907
+ return [4 /*yield*/, IkasCategoryAPI.listCategories({
13908
+ page: page,
13909
+ limit: this.limit,
13910
+ })];
13911
+ case 2:
13912
+ response_4 = _a.sent();
13913
+ runInAction(function () {
13914
+ _this.data = response_4.categories;
13915
+ _this._count = response_4.count;
13916
+ _this._page = page;
13917
+ _this._minPage = page;
13918
+ });
13919
+ return [3 /*break*/, 5];
13920
+ case 3:
13921
+ err_4 = _a.sent();
13922
+ console.log(err_4);
13923
+ return [3 /*break*/, 5];
13924
+ case 4:
13925
+ runInAction(function () {
13926
+ _this._isLoading = false;
13927
+ });
13928
+ return [7 /*endfinally*/];
13929
+ case 5: return [2 /*return*/];
13930
+ }
13931
+ });
13932
+ }); };
13933
+ this.data = data.data ? data.data.map(function (b) { return new IkasCategory(b); }) : [];
13934
+ this._type =
13935
+ data.type ||
13936
+ data.categoryListPropValue.categoryListType ||
13937
+ IkasCategoryListType.ALL;
13938
+ this._sort =
13939
+ data.sort ||
13940
+ data.categoryListPropValue.initialSort ||
13941
+ IkasCategoryListSortType.A_Z;
13942
+ this._limit = data.limit || data.categoryListPropValue.initialLimit || 20;
13943
+ this._page = data.page || 1;
13944
+ this._count = data.count || 0;
13945
+ this._initialized = data.initialized || false;
13946
+ this._minPage = data.minPage;
13947
+ this._categoryListPropValue = data.categoryListPropValue;
13948
+ makeAutoObservable(this);
13949
+ }
13950
+ Object.defineProperty(IkasCategoryList.prototype, "sort", {
13951
+ get: function () {
13952
+ return this._sort;
13953
+ },
13954
+ enumerable: false,
13955
+ configurable: true
13956
+ });
13957
+ Object.defineProperty(IkasCategoryList.prototype, "limit", {
13958
+ get: function () {
13959
+ return this._limit;
13960
+ },
13961
+ enumerable: false,
13962
+ configurable: true
13963
+ });
13964
+ Object.defineProperty(IkasCategoryList.prototype, "page", {
13965
+ get: function () {
13966
+ return this._page;
13967
+ },
13968
+ enumerable: false,
13969
+ configurable: true
13970
+ });
13971
+ Object.defineProperty(IkasCategoryList.prototype, "count", {
13972
+ get: function () {
13973
+ return this._count;
13974
+ },
13975
+ enumerable: false,
13976
+ configurable: true
13977
+ });
13978
+ Object.defineProperty(IkasCategoryList.prototype, "isInitialized", {
13979
+ get: function () {
13980
+ return this._initialized;
13981
+ },
13982
+ enumerable: false,
13983
+ configurable: true
13984
+ });
13985
+ Object.defineProperty(IkasCategoryList.prototype, "isStatic", {
13986
+ get: function () {
13987
+ return this._type === IkasCategoryListType.STATIC;
13988
+ },
13989
+ enumerable: false,
13990
+ configurable: true
13991
+ });
13992
+ Object.defineProperty(IkasCategoryList.prototype, "hasPrev", {
13993
+ get: function () {
13994
+ if (this.isStatic || !this._minPage)
13995
+ return false;
13996
+ return this._minPage > 1;
13997
+ },
13998
+ enumerable: false,
13999
+ configurable: true
14000
+ });
14001
+ Object.defineProperty(IkasCategoryList.prototype, "hasNext", {
14002
+ get: function () {
14003
+ if (this.isStatic)
14004
+ return false;
14005
+ return this.page * this.limit < this.count;
14006
+ },
14007
+ enumerable: false,
14008
+ configurable: true
14009
+ });
14010
+ Object.defineProperty(IkasCategoryList.prototype, "isLoading", {
14011
+ get: function () {
14012
+ return this._isLoading;
14013
+ },
14014
+ enumerable: false,
14015
+ configurable: true
14016
+ });
14017
+ IkasCategoryList.prototype.toJSON = function () {
14018
+ return {
14019
+ data: this.data,
14020
+ type: this._type,
14021
+ sort: this._sort,
14022
+ limit: this._limit,
14023
+ page: this._page,
14024
+ count: this._count,
14025
+ initialized: this._initialized,
14026
+ minPage: this._minPage,
14027
+ categoryListPropValue: this._categoryListPropValue,
14028
+ };
14029
+ };
14030
+ return IkasCategoryList;
14031
+ }());
14032
+ var IkasCategoryListType;
14033
+ (function (IkasCategoryListType) {
14034
+ IkasCategoryListType["ALL"] = "ALL";
14035
+ IkasCategoryListType["STATIC"] = "STATIC";
14036
+ })(IkasCategoryListType || (IkasCategoryListType = {}));
14037
+ var IkasCategoryListSortType;
14038
+ (function (IkasCategoryListSortType) {
14039
+ IkasCategoryListSortType["A_Z"] = "A_Z";
14040
+ IkasCategoryListSortType["Z_A"] = "Z_A";
14041
+ })(IkasCategoryListSortType || (IkasCategoryListSortType = {}));
14042
+
13628
14043
  var IkasProductDetail = /** @class */ (function () {
13629
14044
  function IkasProductDetail(product, selectedVariantValues, usePageData, router) {
13630
14045
  this.usePageData = null;
@@ -14105,6 +14520,35 @@ var IkasProductDetailPropValue = /** @class */ (function () {
14105
14520
  return IkasProductDetailPropValue;
14106
14521
  }());
14107
14522
 
14523
+ var IkasCategoryPropValue = /** @class */ (function () {
14524
+ function IkasCategoryPropValue(data) {
14525
+ this.categoryId = null;
14526
+ // Only for category detail page
14527
+ this.usePageData = null;
14528
+ this.categoryId = data.categoryId;
14529
+ this.usePageData = data.usePageData;
14530
+ makeAutoObservable(this);
14531
+ }
14532
+ return IkasCategoryPropValue;
14533
+ }());
14534
+
14535
+ var IkasCategoryListPropValue = /** @class */ (function () {
14536
+ function IkasCategoryListPropValue(data) {
14537
+ this.initialSort = null;
14538
+ this.initialLimit = null;
14539
+ // Only for static lists
14540
+ this.categoryCount = null;
14541
+ this.categoryIds = null;
14542
+ this.categoryListType = data.categoryListType || IkasCategoryListType.ALL;
14543
+ this.initialSort = data.initialSort || IkasCategoryListSortType.A_Z;
14544
+ this.initialLimit = data.initialLimit || 20;
14545
+ this.categoryCount = data.categoryCount;
14546
+ this.categoryIds = data.categoryIds;
14547
+ makeAutoObservable(this);
14548
+ }
14549
+ return IkasCategoryListPropValue;
14550
+ }());
14551
+
14108
14552
  var IkasBrandAPI = /** @class */ (function () {
14109
14553
  function IkasBrandAPI() {
14110
14554
  }
@@ -14264,7 +14708,7 @@ var IkasCategoryAPI = /** @class */ (function () {
14264
14708
  return __generator(this, function (_b) {
14265
14709
  switch (_b.label) {
14266
14710
  case 0:
14267
- LIST_QUERY = src(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n query listCategory(\n $id: StringFilterInput!\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, paginationInput: $paginationInput, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listCategory(\n $id: StringFilterInput!\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, paginationInput: $paginationInput, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14711
+ LIST_QUERY = src(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n query listCategory(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, paginationInput: $paginationInput, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "], ["\n query listCategory(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $name: StringFilterInput\n ) {\n listCategory(id: $id, paginationInput: $paginationInput, name: $name) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n parentId\n imageId\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n count\n }\n }\n "])));
14268
14712
  _b.label = 1;
14269
14713
  case 1:
14270
14714
  _b.trys.push([1, 3, , 4]);
@@ -14273,9 +14717,11 @@ var IkasCategoryAPI = /** @class */ (function () {
14273
14717
  .query({
14274
14718
  query: LIST_QUERY,
14275
14719
  variables: {
14276
- id: {
14277
- in: (params === null || params === void 0 ? void 0 : params.idList) || [],
14278
- },
14720
+ id: (params === null || params === void 0 ? void 0 : params.idList) && params.idList.length
14721
+ ? {
14722
+ in: params.idList,
14723
+ }
14724
+ : undefined,
14279
14725
  paginationInput: (params === null || params === void 0 ? void 0 : params.page) ? {
14280
14726
  page: params.page,
14281
14727
  limit: params.limit || 10,
@@ -18856,7 +19302,7 @@ var IkasProductAPI = /** @class */ (function () {
18856
19302
  return __generator(this, function (_b) {
18857
19303
  switch (_b.label) {
18858
19304
  case 0:
18859
- LIST_PRODUCTS = src(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n ) {\n listProduct(\n id: $id\n paginationInput: $paginationInput\n search: $search\n ) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n shortDescription\n description\n taxValue\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n categoryIds\n productVariantTypes {\n order\n variantTypeId\n variantValueIds\n }\n variants {\n id\n createdAt\n updatedAt\n deleted\n sku\n barcodeList\n isActive\n variantValueIds {\n variantTypeId\n variantValueId\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n images {\n order\n isMain\n imageId\n }\n prices {\n sellPrice\n discountPrice\n buyPrice\n currency\n salesChannelId\n }\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n }\n count\n }\n }\n "], ["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n ) {\n listProduct(\n id: $id\n paginationInput: $paginationInput\n search: $search\n ) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n shortDescription\n description\n taxValue\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n categoryIds\n productVariantTypes {\n order\n variantTypeId\n variantValueIds\n }\n variants {\n id\n createdAt\n updatedAt\n deleted\n sku\n barcodeList\n isActive\n variantValueIds {\n variantTypeId\n variantValueId\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n images {\n order\n isMain\n imageId\n }\n prices {\n sellPrice\n discountPrice\n buyPrice\n currency\n salesChannelId\n }\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n }\n count\n }\n }\n "])));
19305
+ LIST_PRODUCTS = src(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n ) {\n listProduct(\n id: $id\n paginationInput: $paginationInput\n search: $search\n ) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n shortDescription\n description\n taxValue\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n categoryIds\n productVariantTypes {\n order\n variantTypeId\n variantValueIds\n }\n variants {\n id\n createdAt\n updatedAt\n deleted\n sku\n barcodeList\n isActive\n variantValueIds {\n variantTypeId\n variantValueId\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n images {\n order\n isMain\n imageId\n }\n prices {\n sellPrice\n discountPrice\n buyPrice\n currency\n }\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n }\n count\n }\n }\n "], ["\n query listProduct(\n $id: StringFilterInput\n $paginationInput: PaginationInput\n $search: String\n ) {\n listProduct(\n id: $id\n paginationInput: $paginationInput\n search: $search\n ) {\n data {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n shortDescription\n description\n taxValue\n metaData {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n categoryIds\n productVariantTypes {\n order\n variantTypeId\n variantValueIds\n }\n variants {\n id\n createdAt\n updatedAt\n deleted\n sku\n barcodeList\n isActive\n variantValueIds {\n variantTypeId\n variantValueId\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n images {\n order\n isMain\n imageId\n }\n prices {\n sellPrice\n discountPrice\n buyPrice\n currency\n }\n }\n attributes {\n value\n productAttributeId\n productAttributeOptionId\n }\n }\n count\n }\n }\n "])));
18860
19306
  _b.label = 1;
18861
19307
  case 1:
18862
19308
  _b.trys.push([1, 8, , 9]);
@@ -22784,10 +23230,15 @@ var style = {
22784
23230
  };
22785
23231
 
22786
23232
  var ThemeComponent = observer(function (_a) {
22787
- var propValues = _a.propValues, pageComponent = _a.pageComponent, index = _a.index;
23233
+ var pageComponentPropValue = _a.pageComponentPropValue, pageComponent = _a.pageComponent, index = _a.index;
22788
23234
  var store = IkasStorefrontConfig.store, components = IkasStorefrontConfig.components;
23235
+ var propValues = pageComponentPropValue.propValues;
22789
23236
  var hasNullValue = computed(function () {
22790
- return Object.values(propValues || {}).some(function (pv) { return pv === null || pv === undefined; });
23237
+ return Object.entries(propValues || {}).some(function (_a) {
23238
+ var _b;
23239
+ var propName = _a[0], propValue = _a[1];
23240
+ return (propValue === null || propValue === undefined) && ((_b = pageComponentPropValue.component.props.find(function (p) { return p.name === propName; })) === null || _b === void 0 ? void 0 : _b.isRequired);
23241
+ });
22791
23242
  });
22792
23243
  var Component = components[pageComponent.componentId];
22793
23244
  return (createElement("div", { id: index + "" }, hasNullValue.get() ? (createElement(ErrorComponent, null)) : (createElement(Component, __assign({ key: pageComponent.id }, propValues, { store: store })))));
@@ -22798,7 +23249,7 @@ var IkasPage = observer(function (_a) {
22798
23249
  var propValues = _a.propValues, page = _a.page;
22799
23250
  var renderComponent = function (pageComponent, index) {
22800
23251
  var pageComponentPropValue = propValues.find(function (pv) { return pv.pageComponent.id === pageComponent.id; });
22801
- return (createElement(ThemeComponent, { key: pageComponent.id, index: index, propValues: pageComponentPropValue.propValues, pageComponent: pageComponent }));
23252
+ return (createElement(ThemeComponent, { key: pageComponent.id, index: index, pageComponentPropValue: pageComponentPropValue, pageComponent: pageComponent }));
22802
23253
  };
22803
23254
  var headerComponent = (_b = propValues.find(function (pv) { return pv.component.isHeader; })) === null || _b === void 0 ? void 0 : _b.pageComponent;
22804
23255
  var footerComponent = (_c = propValues.find(function (pv) { return pv.component.isFooter; })) === null || _c === void 0 ? void 0 : _c.pageComponent;
@@ -22854,10 +23305,10 @@ var PageViewModel = /** @class */ (function () {
22854
23305
  case BridgeMessageType.UPDATE_PROP_VALUE: return [3 /*break*/, 3];
22855
23306
  case BridgeMessageType.UPDATE_PAGE_PARAMS: return [3 /*break*/, 5];
22856
23307
  case BridgeMessageType.UPDATE_PAGE_COMPONENT_ORDER: return [3 /*break*/, 7];
22857
- case BridgeMessageType.ADD_NEW_COMPONENT: return [3 /*break*/, 9];
23308
+ case BridgeMessageType.ADD_COMPONENT: return [3 /*break*/, 9];
22858
23309
  case BridgeMessageType.DELETE_COMPONENT: return [3 /*break*/, 10];
22859
23310
  case BridgeMessageType.UPDATE_COMPONENT: return [3 /*break*/, 11];
22860
- case BridgeMessageType.ADD_NEW_PAGE_COMPONENT: return [3 /*break*/, 12];
23311
+ case BridgeMessageType.ADD_PAGE_COMPONENT: return [3 /*break*/, 12];
22861
23312
  case BridgeMessageType.DELETE_PAGE_COMPONENT: return [3 /*break*/, 14];
22862
23313
  case BridgeMessageType.SET_SELECTED_COMPONENT: return [3 /*break*/, 15];
22863
23314
  case BridgeMessageType.SET_HOVERED_COMPONENT: return [3 /*break*/, 16];
@@ -23064,13 +23515,16 @@ var PageViewModel = /** @class */ (function () {
23064
23515
  this.handleAddNewPageComponent = function (data) { return __awaiter(_this, void 0, void 0, function () {
23065
23516
  var pageComponent, pageComponentPropValue;
23066
23517
  var _this = this;
23067
- return __generator(this, function (_a) {
23068
- switch (_a.label) {
23518
+ var _a;
23519
+ return __generator(this, function (_b) {
23520
+ switch (_b.label) {
23069
23521
  case 0:
23070
23522
  pageComponent = new IkasThemePageComponent(data.pageComponent);
23523
+ if ((_a = this.page) === null || _a === void 0 ? void 0 : _a.components.some(function (pc) { return pc.id === pageComponent.id; }))
23524
+ return [2 /*return*/];
23071
23525
  return [4 /*yield*/, this.pageDataProvider.getPageComponentPropValues(pageComponent)];
23072
23526
  case 1:
23073
- pageComponentPropValue = _a.sent();
23527
+ pageComponentPropValue = _b.sent();
23074
23528
  runInAction(function () {
23075
23529
  var _a;
23076
23530
  _this.pageDataProvider.pageComponentPropValues.push(pageComponentPropValue);
@@ -23131,10 +23585,10 @@ var BridgeMessageType;
23131
23585
  BridgeMessageType["UPDATE_PROP_VALUE"] = "UPDATE_PROP_VALUE";
23132
23586
  BridgeMessageType["UPDATE_PAGE_PARAMS"] = "UPDATE_PAGE_PARAMS";
23133
23587
  BridgeMessageType["UPDATE_PAGE_COMPONENT_ORDER"] = "UPDATE_PAGE_COMPONENT_ORDER";
23134
- BridgeMessageType["ADD_NEW_COMPONENT"] = "ADD_NEW_COMPONENT";
23588
+ BridgeMessageType["ADD_COMPONENT"] = "ADD_COMPONENT";
23135
23589
  BridgeMessageType["DELETE_COMPONENT"] = "DELETE_COMPONENT";
23136
23590
  BridgeMessageType["UPDATE_COMPONENT"] = "UPDATE_COMPONENT";
23137
- BridgeMessageType["ADD_NEW_PAGE_COMPONENT"] = "ADD_NEW_PAGE_COMPONENT";
23591
+ BridgeMessageType["ADD_PAGE_COMPONENT"] = "ADD_PAGE_COMPONENT";
23138
23592
  BridgeMessageType["DELETE_PAGE_COMPONENT"] = "DELETE_PAGE_COMPONENT";
23139
23593
  BridgeMessageType["COMPONENT_MOUSE_OVER"] = "COMPONENT_MOUSE_OVER";
23140
23594
  BridgeMessageType["COMPONENT_MOUSE_LEAVE"] = "COMPONENT_MOUSE_LEAVE";
@@ -23152,10 +23606,10 @@ var ThemeEditorComponent = observer(function (_a) {
23152
23606
  useEffect(function () {
23153
23607
  vm.setComponentRef(ref.current, pageComponent);
23154
23608
  }, []);
23155
- var pageComponentPropValues = computed(function () {
23609
+ var pageComponentPropValue = computed(function () {
23156
23610
  return vm.pageDataProvider.pageComponentPropValues.find(function (pc) { return pc.pageComponent.id === pageComponent.id; });
23157
23611
  });
23158
- var propValues = (_b = pageComponentPropValues.get()) === null || _b === void 0 ? void 0 : _b.propValues;
23612
+ var propValues = (_b = pageComponentPropValue.get()) === null || _b === void 0 ? void 0 : _b.propValues;
23159
23613
  if (!propValues)
23160
23614
  return null;
23161
23615
  var Component = components[pageComponent.componentId];
@@ -23166,7 +23620,12 @@ var ThemeEditorComponent = observer(function (_a) {
23166
23620
  return vm.hoveredPageComponentId === pageComponent.id;
23167
23621
  });
23168
23622
  var hasNullValue = computed(function () {
23169
- return Object.values(propValues || {}).some(function (pv) { return pv === null || pv === undefined; });
23623
+ return Object.entries(propValues || {}).some(function (_a) {
23624
+ var _b, _c;
23625
+ var propName = _a[0], propValue = _a[1];
23626
+ return (propValue === null || propValue === undefined) && ((_c = (_b = pageComponentPropValue
23627
+ .get()) === null || _b === void 0 ? void 0 : _b.component.props.find(function (p) { return p.name === propName; })) === null || _c === void 0 ? void 0 : _c.isRequired);
23628
+ });
23170
23629
  });
23171
23630
  var onMouseEnter = function () {
23172
23631
  vm.onMouseOver(pageComponent.id);
@@ -23709,4 +24168,4 @@ var IkasBaseStore = /** @class */ (function () {
23709
24168
  return IkasBaseStore;
23710
24169
  }());
23711
24170
 
23712
- export { index$2 as AccountPage, addresses as AddressesPage, _id_$1 as CheckoutPage, _secondSlug_ as CustomPage, editor$1 as EditorPage, forgotPassword as ForgotPasswordPage, GTMAddToCart, GTMBeginCheckout, GTMBody, GTMCheckoutStep, GTMDisableHTML, GTMHead, GTMPageView, GTMProductView, GTMPurchase, GTMRemoveFromCart, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasBaseStore, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCheckout, IkasCheckoutAPI, IkasCheckoutPage, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, 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, IkasProductAPI, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductList, IkasProductListFilter, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontAPI, IkasStorefrontConfig, IkasTheme, IkasThemeAPI, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, home as IndexPage, login as LoginPage, _id_$2 as OrderDetailPage, index$3 as OrdersPage, recoverPassword as RecoverPasswordPage, register as RegisterPage, index$1 as SlugPage, apollo, decodeBase64, formatMoney, pascalCase, stringToSlug, validatePhoneNumber };
24171
+ export { index$2 as AccountPage, addresses as AddressesPage, _id_$1 as CheckoutPage, _secondSlug_ as CustomPage, editor$1 as EditorPage, forgotPassword as ForgotPasswordPage, GTMAddToCart, GTMBeginCheckout, GTMBody, GTMCheckoutStep, GTMDisableHTML, GTMHead, GTMPageView, GTMProductView, GTMPurchase, GTMRemoveFromCart, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, 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, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, 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, IkasProductAPI, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductList, IkasProductListFilter, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontAPI, IkasStorefrontConfig, IkasTheme, IkasThemeAPI, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, home as IndexPage, login as LoginPage, _id_$2 as OrderDetailPage, index$3 as OrdersPage, recoverPassword as RecoverPasswordPage, register as RegisterPage, index$1 as SlugPage, apollo, decodeBase64, formatMoney, pascalCase, stringToSlug, validatePhoneNumber };