@ikas/storefront 0.0.150 → 0.0.152

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
@@ -21138,7 +21138,7 @@ var IkasProductList = /** @class */ (function () {
21138
21138
  _b.label = 1;
21139
21139
  case 1:
21140
21140
  _b.trys.push([1, 5, 6, 7]);
21141
- page = this._page || 1;
21141
+ page = 1;
21142
21142
  limit = this._limit;
21143
21143
  if (!(this.isFilterable && !this.filters)) return [3 /*break*/, 3];
21144
21144
  return [4 /*yield*/, this.getFilters()];
@@ -21271,8 +21271,6 @@ var IkasProductList = /** @class */ (function () {
21271
21271
  this.data = this.data.concat(data);
21272
21272
  this._count = response.count;
21273
21273
  this._page = this.page + 1;
21274
- //@ts-ignore
21275
- IkasStorefrontConfig.store.infiniteScrollPages[this._pageType] = this._page;
21276
21274
  return [3 /*break*/, 5];
21277
21275
  case 3:
21278
21276
  err_3 = _a.sent();
@@ -21362,9 +21360,6 @@ var IkasProductList = /** @class */ (function () {
21362
21360
  : null;
21363
21361
  this.router = router;
21364
21362
  makeAutoObservable(this);
21365
- if (this.isBrowser()) {
21366
- this.checkRestoreInfiniteScroll();
21367
- }
21368
21363
  if (this.isBrowser() &&
21369
21364
  location.search &&
21370
21365
  (this.isFilterable || this._type === IkasProductListType.SEARCH)) {
@@ -21386,13 +21381,6 @@ var IkasProductList = /** @class */ (function () {
21386
21381
  enumerable: false,
21387
21382
  configurable: true
21388
21383
  });
21389
- Object.defineProperty(IkasProductList.prototype, "pageType", {
21390
- get: function () {
21391
- return this._pageType;
21392
- },
21393
- enumerable: false,
21394
- configurable: true
21395
- });
21396
21384
  Object.defineProperty(IkasProductList.prototype, "page", {
21397
21385
  get: function () {
21398
21386
  return this._page;
@@ -21784,22 +21772,6 @@ var IkasProductList = /** @class */ (function () {
21784
21772
  productListPropValue: this._productListPropValue,
21785
21773
  };
21786
21774
  };
21787
- IkasProductList.prototype.checkRestoreInfiniteScroll = function () {
21788
- //@ts-ignore
21789
- var infiniteScrollPages = IkasStorefrontConfig.store.infiniteScrollPages;
21790
- var page = infiniteScrollPages[this._pageType];
21791
- if (page) {
21792
- if (this.hasForwardRoute()) {
21793
- this._page = page;
21794
- }
21795
- else {
21796
- delete infiniteScrollPages[this._pageType];
21797
- }
21798
- }
21799
- };
21800
- IkasProductList.prototype.hasForwardRoute = function () {
21801
- return this.isBrowser() && !!window.history.forward;
21802
- };
21803
21775
  IkasProductList.prototype.getQueryParams = function () {
21804
21776
  if (!this.isBrowser())
21805
21777
  return;
@@ -24457,7 +24429,11 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
24457
24429
  case 40:
24458
24430
  _b.sent();
24459
24431
  return [2 /*return*/];
24460
- case 41: return [2 /*return*/, JSON.parse(JSON.stringify(customDataValue))];
24432
+ case 41:
24433
+ if (this.customData.isRequired &&
24434
+ ((customDataValue === null || customDataValue === void 0 ? void 0 : customDataValue.value) === undefined || (customDataValue === null || customDataValue === void 0 ? void 0 : customDataValue.value) === null))
24435
+ return [2 /*return*/];
24436
+ return [2 /*return*/, JSON.parse(JSON.stringify(customDataValue))];
24461
24437
  }
24462
24438
  });
24463
24439
  });
@@ -24869,10 +24845,11 @@ var ThemeComponent = observer(function (_a) {
24869
24845
  var pageComponent = pageComponentPropValue.pageComponent;
24870
24846
  var propValues = pageComponentPropValue.propValues;
24871
24847
  var hasNullValue = computed(function () {
24872
- return Object.entries(propValues || {}).some(function (_a) {
24873
- var _b;
24874
- var propName = _a[0], propValue = _a[1];
24875
- return (propValue === null || propValue === undefined) && ((_b = pageComponentPropValue.component.props.find(function (p) { return p.name === propName; })) === null || _b === void 0 ? void 0 : _b.isRequired);
24848
+ return pageComponentPropValue.component.props.some(function (prop) {
24849
+ if (prop.isRequired) {
24850
+ var propValue = (propValues || {})[prop.name];
24851
+ return propValue === null || propValue == undefined;
24852
+ }
24876
24853
  });
24877
24854
  });
24878
24855
  var Component = components[pageComponent.componentId];
@@ -25246,17 +25223,14 @@ var IkasPageDataProvider = /** @class */ (function () {
25246
25223
  Object.defineProperty(IkasPageDataProvider.prototype, "specification", {
25247
25224
  get: function () {
25248
25225
  var _this = this;
25249
- var _a, _b, _c;
25226
+ var _a, _b;
25250
25227
  var selectedPage = this.page;
25251
25228
  var specification;
25252
25229
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.PRODUCT) {
25253
25230
  specification = (_a = selectedPage.specifications) === null || _a === void 0 ? void 0 : _a.find(function (s) { var _a; return s.id === ((_a = _this.pageSpecificData) === null || _a === void 0 ? void 0 : _a.product.id); });
25254
25231
  }
25255
- if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.CATEGORY) {
25256
- specification = (_b = selectedPage.specifications) === null || _b === void 0 ? void 0 : _b.find(function (s) { var _a; return s.id === ((_a = _this.pageSpecificData) === null || _a === void 0 ? void 0 : _a.id); });
25257
- }
25258
- if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BRAND) {
25259
- specification = (_c = selectedPage.specifications) === null || _c === void 0 ? void 0 : _c.find(function (s) { var _a; return s.id === ((_a = _this.pageSpecificData) === null || _a === void 0 ? void 0 : _a.id); });
25232
+ else {
25233
+ specification = (_b = selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.specifications) === null || _b === void 0 ? void 0 : _b.find(function (s) { var _a; return s.id === ((_a = _this.pageSpecificData) === null || _a === void 0 ? void 0 : _a.id); });
25260
25234
  }
25261
25235
  return specification;
25262
25236
  },
@@ -25273,17 +25247,6 @@ var IkasPageDataProvider = /** @class */ (function () {
25273
25247
  enumerable: false,
25274
25248
  configurable: true
25275
25249
  });
25276
- Object.defineProperty(IkasPageDataProvider.prototype, "isStaticPage", {
25277
- get: function () {
25278
- var staticPageTypes = [
25279
- IkasThemePageType.PRODUCT,
25280
- IkasThemePageType.INDEX,
25281
- ];
25282
- return this.pageType && staticPageTypes.includes(this.pageType);
25283
- },
25284
- enumerable: false,
25285
- configurable: true
25286
- });
25287
25250
  IkasPageDataProvider.prototype.getMerchantSettings = function () {
25288
25251
  return __awaiter(this, void 0, void 0, function () {
25289
25252
  var merchantId, merchantSettingsResponse;
@@ -26009,8 +25972,8 @@ var IkasBlog = /** @class */ (function () {
26009
25972
  if (data === void 0) { data = {}; }
26010
25973
  var _a;
26011
25974
  this.id = data.id || Date.now() + "";
26012
- this.createdAt = data.createdAt || Date.now() + "";
26013
- this.updatedAt = data.updatedAt || Date.now() + "";
25975
+ this.createdAt = data.createdAt || Date.now();
25976
+ this.updatedAt = data.updatedAt || Date.now();
26014
25977
  this.categoryId = data.categoryId || null;
26015
25978
  this.category = data.category ? new IkasBlogCategory(data.category) : null;
26016
25979
  this.imageId = data.imageId || null;
@@ -26046,8 +26009,8 @@ var IkasBlogContent = /** @class */ (function () {
26046
26009
  function IkasBlogContent(data) {
26047
26010
  if (data === void 0) { data = {}; }
26048
26011
  this.id = data.id || Date.now() + "";
26049
- this.createdAt = data.createdAt || Date.now() + "";
26050
- this.updatedAt = data.updatedAt || Date.now() + "";
26012
+ this.createdAt = data.createdAt || Date.now();
26013
+ this.updatedAt = data.updatedAt || Date.now();
26051
26014
  this.content = data.content || "";
26052
26015
  makeAutoObservable(this);
26053
26016
  }
@@ -26073,8 +26036,8 @@ var IkasBlogMetaData = /** @class */ (function () {
26073
26036
  this.pageTitle = null;
26074
26037
  this.description = null;
26075
26038
  this.id = data.id || Date.now() + "";
26076
- this.createdAt = data.createdAt || Date.now() + "";
26077
- this.updatedAt = data.updatedAt || Date.now() + "";
26039
+ this.createdAt = data.createdAt || Date.now();
26040
+ this.updatedAt = data.updatedAt || Date.now();
26078
26041
  this.description = data.description || "";
26079
26042
  this.pageTitle = data.pageTitle || "";
26080
26043
  this.slug = data.slug || "";
@@ -26088,8 +26051,8 @@ var IkasBlogCategory = /** @class */ (function () {
26088
26051
  function IkasBlogCategory(data) {
26089
26052
  if (data === void 0) { data = {}; }
26090
26053
  this.id = data.id || "";
26091
- this.createdAt = data.createdAt || Date.now() + "";
26092
- this.updatedAt = data.updatedAt || Date.now() + "";
26054
+ this.createdAt = data.createdAt || Date.now();
26055
+ this.updatedAt = data.updatedAt || Date.now();
26093
26056
  this.deleted = data.deleted || false;
26094
26057
  this.name = data.name || "";
26095
26058
  this.imageId = data.imageId || "";
@@ -26112,8 +26075,8 @@ var IkasBlogTag = /** @class */ (function () {
26112
26075
  function IkasBlogTag(data) {
26113
26076
  if (data === void 0) { data = {}; }
26114
26077
  this.id = data.id || Date.now() + "";
26115
- this.createdAt = data.createdAt || Date.now() + "";
26116
- this.updatedAt = data.updatedAt || Date.now() + "";
26078
+ this.createdAt = data.createdAt || Date.now();
26079
+ this.updatedAt = data.updatedAt || Date.now();
26117
26080
  this.deleted = data.deleted || false;
26118
26081
  this.name = data.name || "";
26119
26082
  makeAutoObservable(this);
@@ -26130,7 +26093,7 @@ var IkasBlogAPI = /** @class */ (function () {
26130
26093
  return __generator(this, function (_b) {
26131
26094
  switch (_b.label) {
26132
26095
  case 0:
26133
- QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26096
+ QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26134
26097
  _b.label = 1;
26135
26098
  case 1:
26136
26099
  _b.trys.push([1, 3, , 4]);
@@ -26182,7 +26145,7 @@ var IkasBlogAPI = /** @class */ (function () {
26182
26145
  return __generator(this, function (_b) {
26183
26146
  switch (_b.label) {
26184
26147
  case 0:
26185
- QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26148
+ QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26186
26149
  _b.label = 1;
26187
26150
  case 1:
26188
26151
  _b.trys.push([1, 3, , 4]);
@@ -28763,7 +28726,7 @@ var css_248z$2 = ".common-module_FormSectionTitle___Mykh {\n width: 100%;\n di
28763
28726
  var commonStyles = {"FormSectionTitle":"common-module_FormSectionTitle___Mykh","Title":"common-module_Title__3JTHt","WithSubTitle":"common-module_WithSubTitle__1VHWv","SubTitle":"common-module_SubTitle__1H4kH","Grid":"common-module_Grid__2CuvH","Grid2":"common-module_Grid2__9CCag","Grid3":"common-module_Grid3__3p0jJ","FormContainer":"common-module_FormContainer__2I_Lj","mtFormRow":"common-module_mtFormRow__2tsDn","mt1":"common-module_mt1__3tpC1","mt2":"common-module_mt2__2bl5q","fadeInFromRight":"common-module_fadeInFromRight__3RYk5"};
28764
28727
  styleInject(css_248z$2);
28765
28728
 
28766
- var css_248z$3 = ".style-module_CheckoutPage__A_f2V {\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px !important;\n width: 100%;\n height: 100vh;\n overflow: auto;\n overflow-x: hidden;\n display: flex; }\n .style-module_CheckoutPage__A_f2V * {\n box-sizing: border-box !important;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px;\n letter-spacing: normal;\n font-weight: normal; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 50%;\n flex: 0 0 auto;\n display: flex;\n justify-content: flex-end;\n padding-left: 20px;\n padding-right: 40px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: 400px;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-height: 100vh; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n width: 100%;\n height: 100px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n flex: 0 0 auto;\n height: 50px;\n background-color: white;\n width: calc(100% - 1em);\n display: flex;\n align-items: center;\n border-top: 1px solid #d9d9d9; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n font-size: 0.7em;\n margin-right: 1.4em;\n color: #737373;\n cursor: pointer;\n user-select: none; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc:hover {\n color: #111111; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n width: 100%;\n padding-left: 0.7em; } }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n width: 100%;\n height: 96px;\n display: flex;\n align-items: center;\n font-weight: 500;\n font-size: 1.5em;\n padding-left: 0.4em; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 a {\n width: 100%; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n width: 100%;\n height: 64px;\n position: relative;\n user-select: none;\n cursor: pointer; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do img {\n object-fit: contain;\n object-position: left;\n pointer-events: none; }\n @media only screen and (min-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n display: none; } }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {\n padding-bottom: 0.7em; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 100%;\n justify-content: center;\n padding-right: 0px;\n padding-left: 0px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: auto;\n max-width: 100%; } }\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n width: 50%;\n min-height: 100%;\n flex: 0 0 auto;\n background-color: #FAFAFA;\n border-left: 1px solid #d9d9d9;\n display: flex;\n padding-left: 40px;\n padding-right: 20px;\n position: sticky;\n top: 0;\n overflow-y: auto; }\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 {\n width: 100%;\n max-width: 600px;\n padding-top: 80px; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n display: none; } }\n";
28729
+ var css_248z$3 = ".style-module_CheckoutPage__A_f2V {\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px !important;\n width: 100%;\n height: 100vh;\n overflow: auto;\n overflow-x: hidden;\n display: flex; }\n .style-module_CheckoutPage__A_f2V * {\n box-sizing: border-box !important;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px;\n letter-spacing: normal;\n font-weight: normal;\n line-height: 1.5em; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 50%;\n flex: 0 0 auto;\n display: flex;\n justify-content: flex-end;\n padding-left: 20px;\n padding-right: 40px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: 400px;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-height: 100vh; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n width: 100%;\n height: 100px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n flex: 0 0 auto;\n height: 50px;\n background-color: white;\n width: calc(100% - 1em);\n display: flex;\n align-items: center;\n border-top: 1px solid #d9d9d9; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n font-size: 0.7em;\n margin-right: 1.4em;\n color: #737373;\n cursor: pointer;\n user-select: none; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc:hover {\n color: #111111; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n width: 100%;\n padding-left: 0.7em; } }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n width: 100%;\n height: 96px;\n display: flex;\n align-items: center;\n font-weight: 500;\n font-size: 1.5em;\n padding-left: 0.4em; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 a {\n width: 100%; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n width: 100%;\n height: 64px;\n position: relative;\n user-select: none;\n cursor: pointer; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do img {\n object-fit: contain;\n object-position: left;\n pointer-events: none; }\n @media only screen and (min-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n display: none; } }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {\n padding-bottom: 0.7em; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 100%;\n justify-content: center;\n padding-right: 0px;\n padding-left: 0px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: auto;\n max-width: 100%; } }\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n width: 50%;\n min-height: 100%;\n flex: 0 0 auto;\n background-color: #FAFAFA;\n border-left: 1px solid #d9d9d9;\n display: flex;\n padding-left: 40px;\n padding-right: 20px;\n position: sticky;\n top: 0;\n overflow-y: auto; }\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 {\n width: 100%;\n max-width: 600px;\n padding-top: 80px; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n display: none; } }\n";
28767
28730
  var styles$2 = {"CheckoutPage":"style-module_CheckoutPage__A_f2V","Left":"style-module_Left__2dWz6","LeftContent":"style-module_LeftContent__1Tyb7","Space":"style-module_Space__1e2de","Footer":"style-module_Footer__ebdyg","FooterItem":"style-module_FooterItem__1ofBc","Header":"style-module_Header__1vfF1","Logo":"style-module_Logo__2E8Do","MobileCartSummary":"style-module_MobileCartSummary__3NrcP","RowPB":"style-module_RowPB__3M7Tz","Right":"style-module_Right__3AN4f","RightContent":"style-module_RightContent__1TcO5"};
28768
28731
  styleInject(css_248z$3);
28769
28732
 
@@ -28823,7 +28786,7 @@ var css_248z$5 = ".style-module_BackButtonContainer__263Fp {\n display: flex;\n
28823
28786
  var styles$4 = {"BackButtonContainer":"style-module_BackButtonContainer__263Fp","Actions":"style-module_Actions__EdBBN"};
28824
28787
  styleInject(css_248z$5);
28825
28788
 
28826
- var css_248z$6 = ".style-module_TextButton__XicpL {\n display: inline-flex;\n align-items: center;\n font-size: 0.8em;\n cursor: pointer;\n user-select: none; }\n .style-module_TextButton__XicpL .style-module_Icon__1W8cY {\n margin-right: 0.1em; }\n";
28789
+ var css_248z$6 = ".style-module_TextButton__XicpL {\n display: inline-flex;\n align-items: center;\n font-size: 0.8em;\n cursor: pointer;\n user-select: none; }\n .style-module_TextButton__XicpL .style-module_Icon__1W8cY {\n height: 24px;\n margin-right: 0.1em; }\n";
28827
28790
  var styles$5 = {"TextButton":"style-module_TextButton__XicpL","Icon":"style-module_Icon__1W8cY"};
28828
28791
  styleInject(css_248z$6);
28829
28792
 
@@ -29979,15 +29942,21 @@ var PageViewModel = /** @class */ (function () {
29979
29942
  this.getPagePropValues = function () { return __awaiter(_this, void 0, void 0, function () {
29980
29943
  var pageDataProvider;
29981
29944
  var _this = this;
29982
- var _a;
29983
- return __generator(this, function (_b) {
29984
- switch (_b.label) {
29945
+ var _a, _b, _c;
29946
+ return __generator(this, function (_d) {
29947
+ switch (_d.label) {
29985
29948
  case 0:
29986
29949
  pageDataProvider = new IkasPageDataProvider(this.theme, this.pageParams, (_a = this.page) === null || _a === void 0 ? void 0 : _a.type);
29950
+ if (((_b = this.pageParams) === null || _b === void 0 ? void 0 : _b.blogId) || ((_c = this.pageParams) === null || _c === void 0 ? void 0 : _c.blogCategoryId)) {
29951
+ pageDataProvider.possiblePageTypes = [
29952
+ IkasThemePageType.BLOG,
29953
+ IkasThemePageType.BLOG_CATEGORY,
29954
+ ];
29955
+ }
29987
29956
  this.isLoading = true;
29988
29957
  return [4 /*yield*/, pageDataProvider.getPageData()];
29989
29958
  case 1:
29990
- _b.sent();
29959
+ _d.sent();
29991
29960
  pageDataProvider.pageComponentPropValues = IkasPageDataProvider.initPropValues(JSON.stringify(pageDataProvider.pageComponentPropValues), this.router, JSON.stringify(this.theme.settings));
29992
29961
  runInAction(function () {
29993
29962
  _this.pageDataProvider = pageDataProvider;
@@ -30172,7 +30141,7 @@ var PageViewModel = /** @class */ (function () {
30172
30141
  Object.defineProperty(PageViewModel.prototype, "specification", {
30173
30142
  get: function () {
30174
30143
  var _this = this;
30175
- var _a, _b, _c;
30144
+ var _a, _b, _c, _d, _e;
30176
30145
  var selectedPage = this.page;
30177
30146
  var specification;
30178
30147
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.PRODUCT) {
@@ -30184,6 +30153,12 @@ var PageViewModel = /** @class */ (function () {
30184
30153
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BRAND) {
30185
30154
  specification = (_c = selectedPage.specifications) === null || _c === void 0 ? void 0 : _c.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.brandId); });
30186
30155
  }
30156
+ if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BLOG) {
30157
+ specification = (_d = selectedPage.specifications) === null || _d === void 0 ? void 0 : _d.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogId); });
30158
+ }
30159
+ if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BLOG_CATEGORY) {
30160
+ specification = (_e = selectedPage.specifications) === null || _e === void 0 ? void 0 : _e.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogCategoryId); });
30161
+ }
30187
30162
  return specification;
30188
30163
  },
30189
30164
  enumerable: false,
@@ -30266,14 +30241,12 @@ var ThemeEditorComponent = observer(function (_a) {
30266
30241
  var isHovered = computed(function () {
30267
30242
  return vm.hoveredPageComponentId === pageComponent.id;
30268
30243
  });
30269
- var hasNullValue = computed(function () {
30270
- return Object.entries(propValues || {}).some(function (_a) {
30271
- var _b, _c;
30272
- var propName = _a[0], propValue = _a[1];
30273
- return (propValue === null || propValue === undefined) && ((_c = (_b = pageComponentPropValue
30274
- .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);
30275
- });
30276
- });
30244
+ var hasNullValue = computed(function () { var _a; return (_a = pageComponentPropValue.get()) === null || _a === void 0 ? void 0 : _a.component.props.some(function (prop) {
30245
+ if (prop.isRequired) {
30246
+ var propValue = (propValues || {})[prop.name];
30247
+ return propValue === null || propValue == undefined;
30248
+ }
30249
+ }); });
30277
30250
  var onMouseEnter = function () {
30278
30251
  vm.onMouseOver(pageComponent.id);
30279
30252
  };
@@ -31393,7 +31366,6 @@ var IkasBaseStore = /** @class */ (function () {
31393
31366
  this.showLocaleOptions = false;
31394
31367
  this.localeChecked = false;
31395
31368
  this.settingsSet = false;
31396
- this.infiniteScrollPages = {}; // key is pageType
31397
31369
  this.customerStore = new IkasCustomerStore(this);
31398
31370
  this.cartStore = new IkasCartStore(this);
31399
31371
  makeObservable(this, {
package/build/index.js CHANGED
@@ -21121,7 +21121,7 @@ var IkasProductList = /** @class */ (function () {
21121
21121
  _b.label = 1;
21122
21122
  case 1:
21123
21123
  _b.trys.push([1, 5, 6, 7]);
21124
- page = this._page || 1;
21124
+ page = 1;
21125
21125
  limit = this._limit;
21126
21126
  if (!(this.isFilterable && !this.filters)) return [3 /*break*/, 3];
21127
21127
  return [4 /*yield*/, this.getFilters()];
@@ -21254,8 +21254,6 @@ var IkasProductList = /** @class */ (function () {
21254
21254
  this.data = this.data.concat(data);
21255
21255
  this._count = response.count;
21256
21256
  this._page = this.page + 1;
21257
- //@ts-ignore
21258
- IkasStorefrontConfig.store.infiniteScrollPages[this._pageType] = this._page;
21259
21257
  return [3 /*break*/, 5];
21260
21258
  case 3:
21261
21259
  err_3 = _a.sent();
@@ -21345,9 +21343,6 @@ var IkasProductList = /** @class */ (function () {
21345
21343
  : null;
21346
21344
  this.router = router;
21347
21345
  mobx.makeAutoObservable(this);
21348
- if (this.isBrowser()) {
21349
- this.checkRestoreInfiniteScroll();
21350
- }
21351
21346
  if (this.isBrowser() &&
21352
21347
  location.search &&
21353
21348
  (this.isFilterable || this._type === exports.IkasProductListType.SEARCH)) {
@@ -21369,13 +21364,6 @@ var IkasProductList = /** @class */ (function () {
21369
21364
  enumerable: false,
21370
21365
  configurable: true
21371
21366
  });
21372
- Object.defineProperty(IkasProductList.prototype, "pageType", {
21373
- get: function () {
21374
- return this._pageType;
21375
- },
21376
- enumerable: false,
21377
- configurable: true
21378
- });
21379
21367
  Object.defineProperty(IkasProductList.prototype, "page", {
21380
21368
  get: function () {
21381
21369
  return this._page;
@@ -21767,22 +21755,6 @@ var IkasProductList = /** @class */ (function () {
21767
21755
  productListPropValue: this._productListPropValue,
21768
21756
  };
21769
21757
  };
21770
- IkasProductList.prototype.checkRestoreInfiniteScroll = function () {
21771
- //@ts-ignore
21772
- var infiniteScrollPages = IkasStorefrontConfig.store.infiniteScrollPages;
21773
- var page = infiniteScrollPages[this._pageType];
21774
- if (page) {
21775
- if (this.hasForwardRoute()) {
21776
- this._page = page;
21777
- }
21778
- else {
21779
- delete infiniteScrollPages[this._pageType];
21780
- }
21781
- }
21782
- };
21783
- IkasProductList.prototype.hasForwardRoute = function () {
21784
- return this.isBrowser() && !!window.history.forward;
21785
- };
21786
21758
  IkasProductList.prototype.getQueryParams = function () {
21787
21759
  if (!this.isBrowser())
21788
21760
  return;
@@ -24437,7 +24409,11 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
24437
24409
  case 40:
24438
24410
  _b.sent();
24439
24411
  return [2 /*return*/];
24440
- case 41: return [2 /*return*/, JSON.parse(JSON.stringify(customDataValue))];
24412
+ case 41:
24413
+ if (this.customData.isRequired &&
24414
+ ((customDataValue === null || customDataValue === void 0 ? void 0 : customDataValue.value) === undefined || (customDataValue === null || customDataValue === void 0 ? void 0 : customDataValue.value) === null))
24415
+ return [2 /*return*/];
24416
+ return [2 /*return*/, JSON.parse(JSON.stringify(customDataValue))];
24441
24417
  }
24442
24418
  });
24443
24419
  });
@@ -24849,10 +24825,11 @@ var ThemeComponent = mobxReactLite.observer(function (_a) {
24849
24825
  var pageComponent = pageComponentPropValue.pageComponent;
24850
24826
  var propValues = pageComponentPropValue.propValues;
24851
24827
  var hasNullValue = mobx.computed(function () {
24852
- return Object.entries(propValues || {}).some(function (_a) {
24853
- var _b;
24854
- var propName = _a[0], propValue = _a[1];
24855
- return (propValue === null || propValue === undefined) && ((_b = pageComponentPropValue.component.props.find(function (p) { return p.name === propName; })) === null || _b === void 0 ? void 0 : _b.isRequired);
24828
+ return pageComponentPropValue.component.props.some(function (prop) {
24829
+ if (prop.isRequired) {
24830
+ var propValue = (propValues || {})[prop.name];
24831
+ return propValue === null || propValue == undefined;
24832
+ }
24856
24833
  });
24857
24834
  });
24858
24835
  var Component = components[pageComponent.componentId];
@@ -25226,17 +25203,14 @@ var IkasPageDataProvider = /** @class */ (function () {
25226
25203
  Object.defineProperty(IkasPageDataProvider.prototype, "specification", {
25227
25204
  get: function () {
25228
25205
  var _this = this;
25229
- var _a, _b, _c;
25206
+ var _a, _b;
25230
25207
  var selectedPage = this.page;
25231
25208
  var specification;
25232
25209
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.PRODUCT) {
25233
25210
  specification = (_a = selectedPage.specifications) === null || _a === void 0 ? void 0 : _a.find(function (s) { var _a; return s.id === ((_a = _this.pageSpecificData) === null || _a === void 0 ? void 0 : _a.product.id); });
25234
25211
  }
25235
- if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.CATEGORY) {
25236
- specification = (_b = selectedPage.specifications) === null || _b === void 0 ? void 0 : _b.find(function (s) { var _a; return s.id === ((_a = _this.pageSpecificData) === null || _a === void 0 ? void 0 : _a.id); });
25237
- }
25238
- if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.BRAND) {
25239
- specification = (_c = selectedPage.specifications) === null || _c === void 0 ? void 0 : _c.find(function (s) { var _a; return s.id === ((_a = _this.pageSpecificData) === null || _a === void 0 ? void 0 : _a.id); });
25212
+ else {
25213
+ specification = (_b = selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.specifications) === null || _b === void 0 ? void 0 : _b.find(function (s) { var _a; return s.id === ((_a = _this.pageSpecificData) === null || _a === void 0 ? void 0 : _a.id); });
25240
25214
  }
25241
25215
  return specification;
25242
25216
  },
@@ -25253,17 +25227,6 @@ var IkasPageDataProvider = /** @class */ (function () {
25253
25227
  enumerable: false,
25254
25228
  configurable: true
25255
25229
  });
25256
- Object.defineProperty(IkasPageDataProvider.prototype, "isStaticPage", {
25257
- get: function () {
25258
- var staticPageTypes = [
25259
- exports.IkasThemePageType.PRODUCT,
25260
- exports.IkasThemePageType.INDEX,
25261
- ];
25262
- return this.pageType && staticPageTypes.includes(this.pageType);
25263
- },
25264
- enumerable: false,
25265
- configurable: true
25266
- });
25267
25230
  IkasPageDataProvider.prototype.getMerchantSettings = function () {
25268
25231
  return __awaiter(this, void 0, void 0, function () {
25269
25232
  var merchantId, merchantSettingsResponse;
@@ -25989,8 +25952,8 @@ var IkasBlog = /** @class */ (function () {
25989
25952
  if (data === void 0) { data = {}; }
25990
25953
  var _a;
25991
25954
  this.id = data.id || Date.now() + "";
25992
- this.createdAt = data.createdAt || Date.now() + "";
25993
- this.updatedAt = data.updatedAt || Date.now() + "";
25955
+ this.createdAt = data.createdAt || Date.now();
25956
+ this.updatedAt = data.updatedAt || Date.now();
25994
25957
  this.categoryId = data.categoryId || null;
25995
25958
  this.category = data.category ? new IkasBlogCategory(data.category) : null;
25996
25959
  this.imageId = data.imageId || null;
@@ -26026,8 +25989,8 @@ var IkasBlogContent = /** @class */ (function () {
26026
25989
  function IkasBlogContent(data) {
26027
25990
  if (data === void 0) { data = {}; }
26028
25991
  this.id = data.id || Date.now() + "";
26029
- this.createdAt = data.createdAt || Date.now() + "";
26030
- this.updatedAt = data.updatedAt || Date.now() + "";
25992
+ this.createdAt = data.createdAt || Date.now();
25993
+ this.updatedAt = data.updatedAt || Date.now();
26031
25994
  this.content = data.content || "";
26032
25995
  mobx.makeAutoObservable(this);
26033
25996
  }
@@ -26052,8 +26015,8 @@ var IkasBlogMetaData = /** @class */ (function () {
26052
26015
  this.pageTitle = null;
26053
26016
  this.description = null;
26054
26017
  this.id = data.id || Date.now() + "";
26055
- this.createdAt = data.createdAt || Date.now() + "";
26056
- this.updatedAt = data.updatedAt || Date.now() + "";
26018
+ this.createdAt = data.createdAt || Date.now();
26019
+ this.updatedAt = data.updatedAt || Date.now();
26057
26020
  this.description = data.description || "";
26058
26021
  this.pageTitle = data.pageTitle || "";
26059
26022
  this.slug = data.slug || "";
@@ -26067,8 +26030,8 @@ var IkasBlogCategory = /** @class */ (function () {
26067
26030
  function IkasBlogCategory(data) {
26068
26031
  if (data === void 0) { data = {}; }
26069
26032
  this.id = data.id || "";
26070
- this.createdAt = data.createdAt || Date.now() + "";
26071
- this.updatedAt = data.updatedAt || Date.now() + "";
26033
+ this.createdAt = data.createdAt || Date.now();
26034
+ this.updatedAt = data.updatedAt || Date.now();
26072
26035
  this.deleted = data.deleted || false;
26073
26036
  this.name = data.name || "";
26074
26037
  this.imageId = data.imageId || "";
@@ -26091,8 +26054,8 @@ var IkasBlogTag = /** @class */ (function () {
26091
26054
  function IkasBlogTag(data) {
26092
26055
  if (data === void 0) { data = {}; }
26093
26056
  this.id = data.id || Date.now() + "";
26094
- this.createdAt = data.createdAt || Date.now() + "";
26095
- this.updatedAt = data.updatedAt || Date.now() + "";
26057
+ this.createdAt = data.createdAt || Date.now();
26058
+ this.updatedAt = data.updatedAt || Date.now();
26096
26059
  this.deleted = data.deleted || false;
26097
26060
  this.name = data.name || "";
26098
26061
  mobx.makeAutoObservable(this);
@@ -26109,7 +26072,7 @@ var IkasBlogAPI = /** @class */ (function () {
26109
26072
  return __generator(this, function (_b) {
26110
26073
  switch (_b.label) {
26111
26074
  case 0:
26112
- QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n name\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26075
+ QUERY = src(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query listBlog(\n $id: StringFilterInput\n $categoryId: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n $tagId: StringFilterInput\n $title: StringFilterInput\n ) {\n listBlog(\n id: $id\n categoryId: $categoryId\n pagination: $pagination\n storefrontId: $storefrontId\n tagId: $tagId\n title: $title\n ) {\n count\n data {\n title\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n tags {\n createdAt\n id\n name\n deleted\n updatedAt\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26113
26076
  _b.label = 1;
26114
26077
  case 1:
26115
26078
  _b.trys.push([1, 3, , 4]);
@@ -26161,7 +26124,7 @@ var IkasBlogAPI = /** @class */ (function () {
26161
26124
  return __generator(this, function (_b) {
26162
26125
  switch (_b.label) {
26163
26126
  case 0:
26164
- QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n deleted\n id\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26127
+ QUERY = src(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query getBlog(\n $id: StringFilterInput\n $pagination: PaginationInput\n $storefrontId: StringFilterInput\n ) {\n listBlog(\n id: $id\n pagination: $pagination\n storefrontId: $storefrontId\n ) {\n count\n data {\n title\n blogContent {\n content\n createdAt\n deleted\n id\n updatedAt\n }\n categoryId\n category {\n createdAt\n updatedAt\n deleted\n id\n name\n imageId\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n createdAt\n deleted\n id\n imageId\n isPublished\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n writer {\n firstName\n lastName\n }\n publishedAt\n shortDescription\n storefrontId\n tagIds\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "])));
26165
26128
  _b.label = 1;
26166
26129
  case 1:
26167
26130
  _b.trys.push([1, 3, , 4]);
@@ -28742,7 +28705,7 @@ var css_248z$2 = ".common-module_FormSectionTitle___Mykh {\n width: 100%;\n di
28742
28705
  var commonStyles = {"FormSectionTitle":"common-module_FormSectionTitle___Mykh","Title":"common-module_Title__3JTHt","WithSubTitle":"common-module_WithSubTitle__1VHWv","SubTitle":"common-module_SubTitle__1H4kH","Grid":"common-module_Grid__2CuvH","Grid2":"common-module_Grid2__9CCag","Grid3":"common-module_Grid3__3p0jJ","FormContainer":"common-module_FormContainer__2I_Lj","mtFormRow":"common-module_mtFormRow__2tsDn","mt1":"common-module_mt1__3tpC1","mt2":"common-module_mt2__2bl5q","fadeInFromRight":"common-module_fadeInFromRight__3RYk5"};
28743
28706
  styleInject(css_248z$2);
28744
28707
 
28745
- var css_248z$3 = ".style-module_CheckoutPage__A_f2V {\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px !important;\n width: 100%;\n height: 100vh;\n overflow: auto;\n overflow-x: hidden;\n display: flex; }\n .style-module_CheckoutPage__A_f2V * {\n box-sizing: border-box !important;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px;\n letter-spacing: normal;\n font-weight: normal; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 50%;\n flex: 0 0 auto;\n display: flex;\n justify-content: flex-end;\n padding-left: 20px;\n padding-right: 40px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: 400px;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-height: 100vh; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n width: 100%;\n height: 100px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n flex: 0 0 auto;\n height: 50px;\n background-color: white;\n width: calc(100% - 1em);\n display: flex;\n align-items: center;\n border-top: 1px solid #d9d9d9; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n font-size: 0.7em;\n margin-right: 1.4em;\n color: #737373;\n cursor: pointer;\n user-select: none; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc:hover {\n color: #111111; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n width: 100%;\n padding-left: 0.7em; } }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n width: 100%;\n height: 96px;\n display: flex;\n align-items: center;\n font-weight: 500;\n font-size: 1.5em;\n padding-left: 0.4em; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 a {\n width: 100%; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n width: 100%;\n height: 64px;\n position: relative;\n user-select: none;\n cursor: pointer; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do img {\n object-fit: contain;\n object-position: left;\n pointer-events: none; }\n @media only screen and (min-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n display: none; } }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {\n padding-bottom: 0.7em; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 100%;\n justify-content: center;\n padding-right: 0px;\n padding-left: 0px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: auto;\n max-width: 100%; } }\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n width: 50%;\n min-height: 100%;\n flex: 0 0 auto;\n background-color: #FAFAFA;\n border-left: 1px solid #d9d9d9;\n display: flex;\n padding-left: 40px;\n padding-right: 20px;\n position: sticky;\n top: 0;\n overflow-y: auto; }\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 {\n width: 100%;\n max-width: 600px;\n padding-top: 80px; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n display: none; } }\n";
28708
+ var css_248z$3 = ".style-module_CheckoutPage__A_f2V {\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px !important;\n width: 100%;\n height: 100vh;\n overflow: auto;\n overflow-x: hidden;\n display: flex; }\n .style-module_CheckoutPage__A_f2V * {\n box-sizing: border-box !important;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px;\n letter-spacing: normal;\n font-weight: normal;\n line-height: 1.5em; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 50%;\n flex: 0 0 auto;\n display: flex;\n justify-content: flex-end;\n padding-left: 20px;\n padding-right: 40px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: 400px;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-height: 100vh; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n width: 100%;\n height: 100px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n flex: 0 0 auto;\n height: 50px;\n background-color: white;\n width: calc(100% - 1em);\n display: flex;\n align-items: center;\n border-top: 1px solid #d9d9d9; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n font-size: 0.7em;\n margin-right: 1.4em;\n color: #737373;\n cursor: pointer;\n user-select: none; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc:hover {\n color: #111111; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n width: 100%;\n padding-left: 0.7em; } }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n width: 100%;\n height: 96px;\n display: flex;\n align-items: center;\n font-weight: 500;\n font-size: 1.5em;\n padding-left: 0.4em; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 a {\n width: 100%; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n width: 100%;\n height: 64px;\n position: relative;\n user-select: none;\n cursor: pointer; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do img {\n object-fit: contain;\n object-position: left;\n pointer-events: none; }\n @media only screen and (min-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n display: none; } }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {\n padding-bottom: 0.7em; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 100%;\n justify-content: center;\n padding-right: 0px;\n padding-left: 0px; }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: auto;\n max-width: 100%; } }\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n width: 50%;\n min-height: 100%;\n flex: 0 0 auto;\n background-color: #FAFAFA;\n border-left: 1px solid #d9d9d9;\n display: flex;\n padding-left: 40px;\n padding-right: 20px;\n position: sticky;\n top: 0;\n overflow-y: auto; }\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 {\n width: 100%;\n max-width: 600px;\n padding-top: 80px; }\n @media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n display: none; } }\n";
28746
28709
  var styles$2 = {"CheckoutPage":"style-module_CheckoutPage__A_f2V","Left":"style-module_Left__2dWz6","LeftContent":"style-module_LeftContent__1Tyb7","Space":"style-module_Space__1e2de","Footer":"style-module_Footer__ebdyg","FooterItem":"style-module_FooterItem__1ofBc","Header":"style-module_Header__1vfF1","Logo":"style-module_Logo__2E8Do","MobileCartSummary":"style-module_MobileCartSummary__3NrcP","RowPB":"style-module_RowPB__3M7Tz","Right":"style-module_Right__3AN4f","RightContent":"style-module_RightContent__1TcO5"};
28747
28710
  styleInject(css_248z$3);
28748
28711
 
@@ -28802,7 +28765,7 @@ var css_248z$5 = ".style-module_BackButtonContainer__263Fp {\n display: flex;\n
28802
28765
  var styles$4 = {"BackButtonContainer":"style-module_BackButtonContainer__263Fp","Actions":"style-module_Actions__EdBBN"};
28803
28766
  styleInject(css_248z$5);
28804
28767
 
28805
- var css_248z$6 = ".style-module_TextButton__XicpL {\n display: inline-flex;\n align-items: center;\n font-size: 0.8em;\n cursor: pointer;\n user-select: none; }\n .style-module_TextButton__XicpL .style-module_Icon__1W8cY {\n margin-right: 0.1em; }\n";
28768
+ var css_248z$6 = ".style-module_TextButton__XicpL {\n display: inline-flex;\n align-items: center;\n font-size: 0.8em;\n cursor: pointer;\n user-select: none; }\n .style-module_TextButton__XicpL .style-module_Icon__1W8cY {\n height: 24px;\n margin-right: 0.1em; }\n";
28806
28769
  var styles$5 = {"TextButton":"style-module_TextButton__XicpL","Icon":"style-module_Icon__1W8cY"};
28807
28770
  styleInject(css_248z$6);
28808
28771
 
@@ -29958,15 +29921,21 @@ var PageViewModel = /** @class */ (function () {
29958
29921
  this.getPagePropValues = function () { return __awaiter(_this, void 0, void 0, function () {
29959
29922
  var pageDataProvider;
29960
29923
  var _this = this;
29961
- var _a;
29962
- return __generator(this, function (_b) {
29963
- switch (_b.label) {
29924
+ var _a, _b, _c;
29925
+ return __generator(this, function (_d) {
29926
+ switch (_d.label) {
29964
29927
  case 0:
29965
29928
  pageDataProvider = new IkasPageDataProvider(this.theme, this.pageParams, (_a = this.page) === null || _a === void 0 ? void 0 : _a.type);
29929
+ if (((_b = this.pageParams) === null || _b === void 0 ? void 0 : _b.blogId) || ((_c = this.pageParams) === null || _c === void 0 ? void 0 : _c.blogCategoryId)) {
29930
+ pageDataProvider.possiblePageTypes = [
29931
+ exports.IkasThemePageType.BLOG,
29932
+ exports.IkasThemePageType.BLOG_CATEGORY,
29933
+ ];
29934
+ }
29966
29935
  this.isLoading = true;
29967
29936
  return [4 /*yield*/, pageDataProvider.getPageData()];
29968
29937
  case 1:
29969
- _b.sent();
29938
+ _d.sent();
29970
29939
  pageDataProvider.pageComponentPropValues = IkasPageDataProvider.initPropValues(JSON.stringify(pageDataProvider.pageComponentPropValues), this.router, JSON.stringify(this.theme.settings));
29971
29940
  mobx.runInAction(function () {
29972
29941
  _this.pageDataProvider = pageDataProvider;
@@ -30151,7 +30120,7 @@ var PageViewModel = /** @class */ (function () {
30151
30120
  Object.defineProperty(PageViewModel.prototype, "specification", {
30152
30121
  get: function () {
30153
30122
  var _this = this;
30154
- var _a, _b, _c;
30123
+ var _a, _b, _c, _d, _e;
30155
30124
  var selectedPage = this.page;
30156
30125
  var specification;
30157
30126
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.PRODUCT) {
@@ -30163,6 +30132,12 @@ var PageViewModel = /** @class */ (function () {
30163
30132
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.BRAND) {
30164
30133
  specification = (_c = selectedPage.specifications) === null || _c === void 0 ? void 0 : _c.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.brandId); });
30165
30134
  }
30135
+ if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.BLOG) {
30136
+ specification = (_d = selectedPage.specifications) === null || _d === void 0 ? void 0 : _d.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogId); });
30137
+ }
30138
+ if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === exports.IkasThemePageType.BLOG_CATEGORY) {
30139
+ specification = (_e = selectedPage.specifications) === null || _e === void 0 ? void 0 : _e.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogCategoryId); });
30140
+ }
30166
30141
  return specification;
30167
30142
  },
30168
30143
  enumerable: false,
@@ -30245,14 +30220,12 @@ var ThemeEditorComponent = mobxReactLite.observer(function (_a) {
30245
30220
  var isHovered = mobx.computed(function () {
30246
30221
  return vm.hoveredPageComponentId === pageComponent.id;
30247
30222
  });
30248
- var hasNullValue = mobx.computed(function () {
30249
- return Object.entries(propValues || {}).some(function (_a) {
30250
- var _b, _c;
30251
- var propName = _a[0], propValue = _a[1];
30252
- return (propValue === null || propValue === undefined) && ((_c = (_b = pageComponentPropValue
30253
- .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);
30254
- });
30255
- });
30223
+ var hasNullValue = mobx.computed(function () { var _a; return (_a = pageComponentPropValue.get()) === null || _a === void 0 ? void 0 : _a.component.props.some(function (prop) {
30224
+ if (prop.isRequired) {
30225
+ var propValue = (propValues || {})[prop.name];
30226
+ return propValue === null || propValue == undefined;
30227
+ }
30228
+ }); });
30256
30229
  var onMouseEnter = function () {
30257
30230
  vm.onMouseOver(pageComponent.id);
30258
30231
  };
@@ -31372,7 +31345,6 @@ var IkasBaseStore = /** @class */ (function () {
31372
31345
  this.showLocaleOptions = false;
31373
31346
  this.localeChecked = false;
31374
31347
  this.settingsSet = false;
31375
- this.infiniteScrollPages = {}; // key is pageType
31376
31348
  this.customerStore = new IkasCustomerStore(this);
31377
31349
  this.cartStore = new IkasCartStore(this);
31378
31350
  mobx.makeObservable(this, {
@@ -1,8 +1,8 @@
1
1
  import { IkasImage } from "../image/index";
2
2
  export declare class IkasBlog {
3
3
  id: string;
4
- createdAt: string;
5
- updatedAt: string;
4
+ createdAt: number;
5
+ updatedAt: number;
6
6
  categoryId: string | null;
7
7
  category: IkasBlogCategory | null;
8
8
  imageId: string | null;
@@ -21,8 +21,8 @@ export declare class IkasBlog {
21
21
  }
22
22
  export declare class IkasBlogContent {
23
23
  id: string;
24
- createdAt: string;
25
- updatedAt: string;
24
+ createdAt: number;
25
+ updatedAt: number;
26
26
  content: string;
27
27
  constructor(data?: Partial<IkasBlogContent>);
28
28
  }
@@ -37,8 +37,8 @@ export declare enum IkasBlogMetadataTargetType {
37
37
  }
38
38
  export declare class IkasBlogMetaData {
39
39
  id: string;
40
- createdAt: string;
41
- updatedAt: string;
40
+ createdAt: number;
41
+ updatedAt: number;
42
42
  pageTitle: string | null;
43
43
  description: string | null;
44
44
  slug: string;
@@ -48,8 +48,8 @@ export declare class IkasBlogMetaData {
48
48
  }
49
49
  export declare class IkasBlogCategory {
50
50
  id: string;
51
- createdAt: string;
52
- updatedAt: string;
51
+ createdAt: number;
52
+ updatedAt: number;
53
53
  deleted: boolean;
54
54
  name: string;
55
55
  imageId: string;
@@ -59,8 +59,8 @@ export declare class IkasBlogCategory {
59
59
  }
60
60
  export declare class IkasBlogTag {
61
61
  id: string;
62
- createdAt: string;
63
- updatedAt: string;
62
+ createdAt: number;
63
+ updatedAt: number;
64
64
  deleted: boolean;
65
65
  name: string | null;
66
66
  constructor(data?: Partial<IkasBlogTag>);
@@ -26,7 +26,6 @@ export declare class IkasProductList {
26
26
  constructor(data: IkasProductListParams, router?: NextRouter);
27
27
  get sort(): IkasProductListSortType;
28
28
  get limit(): number;
29
- get pageType(): IkasThemePageType;
30
29
  get page(): number;
31
30
  get count(): number;
32
31
  get pageCount(): number;
@@ -76,8 +75,6 @@ export declare class IkasProductList {
76
75
  recommendFor: string | null | undefined;
77
76
  productListPropValue: IkasProductListPropValue;
78
77
  };
79
- private checkRestoreInfiniteScroll;
80
- private hasForwardRoute;
81
78
  private getQueryParams;
82
79
  private isBrowser;
83
80
  private searchDebouncer;
@@ -10,7 +10,6 @@ export declare class IkasBaseStore {
10
10
  showLocaleOptions: boolean;
11
11
  private localeChecked;
12
12
  private settingsSet;
13
- private infiniteScrollPages;
14
13
  constructor();
15
14
  checkLocalization(): Promise<void>;
16
15
  setLocalization(localeOption: IkasLocaleOption): void;
@@ -40,7 +40,6 @@ export declare class IkasPageDataProvider {
40
40
  };
41
41
  get specification(): IkasThemePageSpecification | undefined;
42
42
  get pageComponents(): IkasThemePageComponent[];
43
- get isStaticPage(): boolean | null | undefined;
44
43
  getMerchantSettings(): Promise<void>;
45
44
  getPageData(): Promise<void>;
46
45
  getPageSpecificData(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.150",
3
+ "version": "0.0.152",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",