@ikas/storefront 0.0.166-alpha.6 → 0.0.167-alpha.1

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
@@ -1,11 +1,11 @@
1
- import { makeAutoObservable, configure, makeObservable, observable, runInAction, reaction, computed, action, toJS } from 'mobx';
1
+ import { makeAutoObservable, configure, makeObservable, observable, runInAction, reaction, computed, action } from 'mobx';
2
2
  import fs from 'fs';
3
3
  import path$1 from 'path';
4
4
  import getConfig from 'next/config';
5
- import React, { createElement, Fragment as Fragment$1, useEffect, useState, useRef, useCallback, useMemo } from 'react';
5
+ import React, { createElement, Fragment as Fragment$1, useEffect, useMemo, useState, useRef, useCallback } from 'react';
6
6
  import { observer } from 'mobx-react-lite';
7
- import Head from 'next/head';
8
7
  import { useRouter } from 'next/router';
8
+ import Head from 'next/head';
9
9
  import crypto$1 from 'crypto';
10
10
  import NextImage from 'next/image';
11
11
  import Link from 'next/link';
@@ -10979,6 +10979,7 @@ var IkasStorefrontConfig = /** @class */ (function () {
10979
10979
  };
10980
10980
  IkasStorefrontConfig.getJson = function () {
10981
10981
  return {
10982
+ domain: IkasStorefrontConfig.domain,
10982
10983
  storefrontId: IkasStorefrontConfig.storefrontId || null,
10983
10984
  storefrontRoutingId: IkasStorefrontConfig.storefrontRoutingId || null,
10984
10985
  storefrontThemeId: IkasStorefrontConfig.storefrontThemeId || null,
@@ -22805,7 +22806,7 @@ var MAX_CVC_LENGTH = 4;
22805
22806
  var USE_DIFFERENT_ADDRESS_KEY = "sAddr";
22806
22807
  var isServer$1 = typeof localStorage === "undefined";
22807
22808
  var CheckoutViewModel = /** @class */ (function () {
22808
- function CheckoutViewModel(checkout, checkoutSettings, router, returnPolicy, privacyPolicy, termsOfService, t) {
22809
+ function CheckoutViewModel(checkout, checkoutSettings, merchantSettings, router, returnPolicy, privacyPolicy, termsOfService, t) {
22809
22810
  var _this = this;
22810
22811
  this.checkout = new IkasCheckout();
22811
22812
  this.checkoutSettings = new IkasCheckoutSettings();
@@ -22950,12 +22951,14 @@ var CheckoutViewModel = /** @class */ (function () {
22950
22951
  return __generator(this, function (_b) {
22951
22952
  switch (_b.label) {
22952
22953
  case 0:
22954
+ if (!!this.merchantSettings) return [3 /*break*/, 2];
22953
22955
  merchantId = decodeBase64(IkasStorefrontConfig.config.apiKey || "");
22954
22956
  _a = this;
22955
22957
  return [4 /*yield*/, IkasMerchantAPI.listMerchantSettings(merchantId)];
22956
22958
  case 1:
22957
22959
  _a.merchantSettings = _b.sent();
22958
- return [2 /*return*/];
22960
+ _b.label = 2;
22961
+ case 2: return [2 /*return*/];
22959
22962
  }
22960
22963
  });
22961
22964
  }); };
@@ -23644,6 +23647,8 @@ var CheckoutViewModel = /** @class */ (function () {
23644
23647
  this.privacyPolicy = privacyPolicy;
23645
23648
  this.termsOfService = termsOfService;
23646
23649
  this.t = t;
23650
+ if (merchantSettings)
23651
+ this.merchantSettings = merchantSettings;
23647
23652
  this.isTermsAndConditionsChecked = this.checkoutSettings.isTermsAndConditionsDefaultChecked;
23648
23653
  this.store.cartStore.cart = this.checkout.cart;
23649
23654
  this.init();
@@ -35714,6 +35719,13 @@ var IkasProductDetail = /** @class */ (function () {
35714
35719
  enumerable: false,
35715
35720
  configurable: true
35716
35721
  });
35722
+ Object.defineProperty(IkasProductDetail.prototype, "hasStock", {
35723
+ get: function () {
35724
+ return this.product.variants.some(function (v) { return v.stock > 0; });
35725
+ },
35726
+ enumerable: false,
35727
+ configurable: true
35728
+ });
35717
35729
  Object.defineProperty(IkasProductDetail.prototype, "displayedVariantTypes", {
35718
35730
  get: function () {
35719
35731
  var _this = this;
@@ -41241,100 +41253,122 @@ var ThemeComponent = observer(function (_a) {
41241
41253
  });
41242
41254
 
41243
41255
  var IkasPageHead = observer(function (_a) {
41244
- var _b;
41245
- var page = _a.page, pageTitle = _a.pageTitle, description = _a.description, pageSpecificDataStr = _a.pageSpecificDataStr, props = __rest(_a, ["page", "pageTitle", "description", "pageSpecificDataStr"]);
41246
- var ogpMetas = [];
41247
- var schemas = [];
41248
- var isCanonicalLinkAdd = false;
41249
- var canonicalHref = "";
41256
+ var pageType = _a.pageType, pageTitle = _a.pageTitle, pageDescription = _a.pageDescription, pageSpecificDataStr = _a.pageSpecificDataStr, merchantSettingsStr = _a.merchantSettingsStr, addOgpMetas = _a.addOgpMetas;
41257
+ var isBrowser = typeof window !== "undefined";
41258
+ // NextJS sets the lang with routing ids, this overrides it with the locale
41250
41259
  useEffect(function () {
41251
41260
  var _a;
41252
41261
  document.documentElement.lang =
41253
41262
  ((_a = IkasStorefrontConfig.routings.find(function (r) { return r.id === IkasStorefrontConfig.storefrontRoutingId; })) === null || _a === void 0 ? void 0 : _a.locale) || "tr";
41254
41263
  }, []);
41255
- if (props.addOgpMetas) {
41256
- ogpMetas.push({
41257
- property: "og:type",
41258
- content: "website",
41259
- });
41260
- if (typeof window !== "undefined") {
41261
- ogpMetas.push({
41262
- property: "og:site_name",
41263
- content: "https://" + window.location.hostname,
41264
- });
41264
+ var merchantSettings = useMemo(function () {
41265
+ if (merchantSettingsStr)
41266
+ return new IkasMerchantSettings(JSON.parse(merchantSettingsStr));
41267
+ }, [merchantSettingsStr]);
41268
+ var pageSpecificData = useMemo(function () {
41269
+ if (!pageSpecificDataStr)
41270
+ return pageSpecificDataStr;
41271
+ var parsedData = JSON.parse(pageSpecificDataStr);
41272
+ switch (pageType) {
41273
+ case IkasThemePageType.PRODUCT:
41274
+ return new IkasProductDetail(parsedData.product, parsedData.selectedVariantValues);
41275
+ case IkasThemePageType.CATEGORY:
41276
+ return new IkasCategory(parsedData);
41277
+ case IkasThemePageType.BRAND:
41278
+ return new IkasBrand(parsedData);
41279
+ default:
41280
+ return pageSpecificDataStr;
41281
+ }
41282
+ }, [pageSpecificDataStr]);
41283
+ var href = useMemo(function () {
41284
+ if (pageSpecificData && pageSpecificData.href) {
41285
+ return "https://" + IkasStorefrontConfig.domain + pageSpecificData.href;
41265
41286
  }
41266
- if (pageTitle) {
41287
+ }, [pageSpecificData]);
41288
+ var ogpMetas = useMemo(function () {
41289
+ var _a;
41290
+ var ogpMetas = [];
41291
+ if (addOgpMetas) {
41267
41292
  ogpMetas.push({
41268
- property: "og:title",
41269
- content: pageTitle,
41293
+ property: "og:type",
41294
+ content: "website",
41270
41295
  });
41271
- }
41272
- if (description) {
41273
41296
  ogpMetas.push({
41274
- property: "og:description",
41275
- content: description,
41297
+ property: "og:site_name",
41298
+ content: "https://" + IkasStorefrontConfig.domain,
41276
41299
  });
41277
- }
41278
- if (typeof window !== "undefined") {
41300
+ if (pageTitle) {
41301
+ ogpMetas.push({
41302
+ property: "og:title",
41303
+ content: pageTitle,
41304
+ });
41305
+ }
41306
+ if (pageDescription) {
41307
+ ogpMetas.push({
41308
+ property: "og:description",
41309
+ content: pageDescription,
41310
+ });
41311
+ }
41279
41312
  ogpMetas.push({
41280
41313
  property: "og:url",
41281
- content: window.location.href,
41314
+ content: href ||
41315
+ (isBrowser ? window.location.href : "") ||
41316
+ "https://" + IkasStorefrontConfig.domain,
41282
41317
  });
41283
- }
41284
- if (props.merchantSettings) {
41285
- if (pageSpecificDataStr && (page === null || page === void 0 ? void 0 : page.type) === IkasThemePageType.PRODUCT) {
41286
- var productDetailParsed = JSON.parse(pageSpecificDataStr);
41287
- var productDetail = new IkasProductDetail(productDetailParsed.product, productDetailParsed.selectedVariantValues);
41318
+ if (pageSpecificData && pageType === IkasThemePageType.PRODUCT) {
41319
+ var productDetail = pageSpecificData;
41288
41320
  if (productDetail.selectedVariant.mainImage) {
41289
41321
  ogpMetas.push({
41290
41322
  property: "og:image",
41291
- content: (_b = productDetail.selectedVariant.mainImage) === null || _b === void 0 ? void 0 : _b.src,
41323
+ content: (_a = productDetail.selectedVariant.mainImage) === null || _a === void 0 ? void 0 : _a.src,
41292
41324
  });
41293
41325
  }
41294
41326
  }
41295
- else {
41296
- var merchantSettings = new IkasMerchantSettings(JSON.parse(props.merchantSettings));
41327
+ else if (merchantSettings) {
41297
41328
  ogpMetas.push({
41298
41329
  property: "og:image",
41299
41330
  content: merchantSettings.logo.src,
41300
41331
  });
41301
41332
  }
41302
41333
  }
41303
- }
41304
- if (props.merchantSettings) {
41305
- // for schema.org
41306
- var merchantSettings = new IkasMerchantSettings(JSON.parse(props.merchantSettings));
41307
- var websiteSchema = createWebsiteSchema();
41308
- var storeSchema = createStoreSchema(merchantSettings);
41309
- schemas.push(websiteSchema);
41310
- schemas.push(storeSchema);
41311
- }
41312
- if (pageSpecificDataStr && (page === null || page === void 0 ? void 0 : page.type) === IkasThemePageType.PRODUCT) {
41313
- var productDetailParsed = JSON.parse(pageSpecificDataStr);
41314
- var productDetail = new IkasProductDetail(productDetailParsed.product, productDetailParsed.selectedVariantValues);
41315
- if (typeof window !== "undefined" && productDetail.product.hasVariant) {
41316
- isCanonicalLinkAdd =
41317
- window.location.pathname !== productDetail.product.href;
41318
- canonicalHref =
41319
- "https://" + window.location.hostname + productDetail.product.href;
41334
+ return ogpMetas;
41335
+ }, [
41336
+ pageTitle,
41337
+ pageSpecificData,
41338
+ href,
41339
+ pageDescription,
41340
+ merchantSettings,
41341
+ addOgpMetas,
41342
+ merchantSettings,
41343
+ ]);
41344
+ var schemas = useMemo(function () {
41345
+ var schemas = [];
41346
+ if (merchantSettings) {
41347
+ var websiteSchema = createWebsiteSchema();
41348
+ var storeSchema = createStoreSchema(merchantSettings);
41349
+ schemas.push(websiteSchema);
41350
+ schemas.push(storeSchema);
41320
41351
  }
41321
- var schema = createProductSchema(productDetail);
41322
- if (schema)
41323
- schemas.push(schema);
41324
- }
41325
- if (pageSpecificDataStr && (page === null || page === void 0 ? void 0 : page.type) === IkasThemePageType.CATEGORY) {
41326
- var categorySchema = createCategorySchema(pageSpecificDataStr);
41327
- if (categorySchema)
41328
- schemas.push(categorySchema);
41329
- var categoryBreadcrumbSchema = createCategoryBreadcrumbSchema(pageSpecificDataStr);
41330
- if (categoryBreadcrumbSchema)
41331
- schemas.push(categoryBreadcrumbSchema);
41332
- }
41352
+ if (pageSpecificData && pageType === IkasThemePageType.PRODUCT) {
41353
+ var productDetail = pageSpecificData;
41354
+ var schema = createProductSchema(productDetail);
41355
+ if (schema)
41356
+ schemas.push(schema);
41357
+ }
41358
+ if (pageSpecificData && pageType === IkasThemePageType.CATEGORY) {
41359
+ var categorySchema = createCategorySchema(pageSpecificData);
41360
+ var categoryBreadcrumbSchema = createCategoryBreadcrumbSchema(pageSpecificData);
41361
+ if (categorySchema)
41362
+ schemas.push(categorySchema);
41363
+ if (categoryBreadcrumbSchema)
41364
+ schemas.push(categoryBreadcrumbSchema);
41365
+ }
41366
+ return schemas;
41367
+ }, [pageSpecificData, merchantSettings]);
41333
41368
  return (createElement(Head, null,
41334
41369
  createElement("title", null, pageTitle || ""),
41335
- createElement("meta", { name: "description", content: description || "" }),
41336
- isCanonicalLinkAdd && createElement("link", { rel: "canonical", href: canonicalHref }),
41337
- !!props.addOgpMetas &&
41370
+ createElement("meta", { name: "description", content: pageDescription || "" }),
41371
+ !!addOgpMetas &&
41338
41372
  ogpMetas.map(function (ogpMeta, index) { return (createElement("meta", { key: ogpMeta.content + "-" + index, property: ogpMeta.property, content: ogpMeta.content })); }),
41339
41373
  !!schemas.length &&
41340
41374
  schemas.map(function (schema, index) { return (createElement("script", { key: index, type: "application/ld+json", dangerouslySetInnerHTML: {
@@ -41342,66 +41376,30 @@ var IkasPageHead = observer(function (_a) {
41342
41376
  } })); })));
41343
41377
  });
41344
41378
  function createWebsiteSchema() {
41345
- var _a;
41346
- var hostname = "";
41347
- if (typeof window !== "undefined") {
41348
- hostname = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.hostname;
41349
- }
41350
41379
  return {
41351
41380
  "@context": "https://schema.org",
41352
41381
  "@type": "Website",
41353
- url: "https://" + hostname,
41382
+ url: "https://" + IkasStorefrontConfig.domain,
41354
41383
  };
41355
41384
  }
41356
41385
  function createStoreSchema(merchantSettings) {
41357
- var _a, _b;
41358
- var hostname = "";
41359
- if (typeof window !== "undefined") {
41360
- hostname = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.hostname;
41361
- }
41386
+ var _a;
41362
41387
  return {
41363
41388
  "@context": "https://schema.org",
41364
41389
  "@type": "Store",
41365
41390
  name: merchantSettings === null || merchantSettings === void 0 ? void 0 : merchantSettings.merchantName,
41366
- logo: (_b = merchantSettings === null || merchantSettings === void 0 ? void 0 : merchantSettings.logo) === null || _b === void 0 ? void 0 : _b.src,
41367
- url: "https://" + hostname,
41391
+ logo: (_a = merchantSettings === null || merchantSettings === void 0 ? void 0 : merchantSettings.logo) === null || _a === void 0 ? void 0 : _a.src,
41392
+ url: "https://" + IkasStorefrontConfig.domain,
41368
41393
  };
41369
41394
  }
41370
41395
  function createProductSchema(productDetail) {
41371
41396
  var _a, _b;
41372
41397
  try {
41373
41398
  var isBrowser = typeof window !== "undefined";
41374
- // TODO this code copy-pasted, organize this block
41375
41399
  if (isBrowser) {
41376
- var urlParams_1 = new URLSearchParams(window.location.search);
41377
- var vid_1 = urlParams_1.get("vid");
41378
- if (vid_1) {
41379
- var variant = productDetail.product.variants.find(function (v) { return v.id === vid_1; });
41380
- if (variant) {
41381
- productDetail.selectedVariantValues = variant.variantValues;
41382
- }
41383
- }
41384
- else {
41385
- var productVariantTypeSlugs = productDetail.product.variantTypes.map(function (vt) { return vt.variantType.slug; });
41386
- var selectedVariantValues_1 = [];
41387
- productVariantTypeSlugs.forEach(function (slug, vtIndex) {
41388
- var productVariantType = productDetail.product.variantTypes[vtIndex];
41389
- var variantValueSlug = urlParams_1.get(slug);
41390
- if (variantValueSlug) {
41391
- var variantValue = productVariantType.variantType.values.find(function (v) { return v.slug === variantValueSlug; });
41392
- if (variantValue)
41393
- selectedVariantValues_1.push(variantValue);
41394
- }
41395
- });
41396
- if (selectedVariantValues_1.length ===
41397
- productDetail.selectedVariantValues.length) {
41398
- productDetail.selectedVariantValues = selectedVariantValues_1;
41399
- }
41400
- }
41400
+ IkasPageDataProvider._initProductDetailOnBrowser(productDetail);
41401
41401
  }
41402
- var productUrl = isBrowser
41403
- ? "https://" + window.location.hostname + productDetail.href
41404
- : "";
41402
+ var productUrl = "https://" + IkasStorefrontConfig.domain + productDetail.href;
41405
41403
  return {
41406
41404
  "@context": "https://schema.org/",
41407
41405
  "@type": "Product",
@@ -41432,14 +41430,10 @@ function createProductSchema(productDetail) {
41432
41430
  }
41433
41431
  catch (err) { }
41434
41432
  }
41435
- function createCategorySchema(pageSpecificDataStr) {
41433
+ function createCategorySchema(category) {
41436
41434
  var _a, _b, _c;
41437
41435
  try {
41438
- var categoryParsed = JSON.parse(pageSpecificDataStr);
41439
- var category = new IkasCategory(categoryParsed);
41440
- var categoryUrl = typeof window !== undefined
41441
- ? "https://" + window.location.hostname + category.href
41442
- : "";
41436
+ var categoryUrl = "https://" + IkasStorefrontConfig.domain + category.href;
41443
41437
  return {
41444
41438
  "@context": "http://schema.org",
41445
41439
  "@type": "CollectionPage",
@@ -41451,10 +41445,8 @@ function createCategorySchema(pageSpecificDataStr) {
41451
41445
  }
41452
41446
  catch (_d) { }
41453
41447
  }
41454
- function createCategoryBreadcrumbSchema(pageSpecificDataStr) {
41448
+ function createCategoryBreadcrumbSchema(category) {
41455
41449
  try {
41456
- var categoryParsed = JSON.parse(pageSpecificDataStr);
41457
- var category = new IkasCategory(categoryParsed);
41458
41450
  return {
41459
41451
  "@context": "http://schema.org",
41460
41452
  "@type": "BreadcrumbList",
@@ -41462,9 +41454,7 @@ function createCategoryBreadcrumbSchema(pageSpecificDataStr) {
41462
41454
  "@type": "ListItem",
41463
41455
  position: index + 1,
41464
41456
  name: categoryPath.name,
41465
- item: typeof window !== undefined
41466
- ? "https://" + window.location.hostname + categoryPath.href
41467
- : "",
41457
+ item: "https://" + IkasStorefrontConfig.domain + categoryPath.href,
41468
41458
  }); }),
41469
41459
  };
41470
41460
  }
@@ -41474,13 +41464,15 @@ function createCategoryBreadcrumbSchema(pageSpecificDataStr) {
41474
41464
  var styles = {"IkasPage":"style-module_IkasPage__ATOib"};
41475
41465
 
41476
41466
  var IkasPage = observer(function (_a) {
41477
- var propValues = _a.propValues, page = _a.page, pageSpecificDataStr = _a.pageSpecificDataStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, addOgpMetas = _a.addOgpMetas;
41467
+ var propValuesStr = _a.propValuesStr, pageType = _a.pageType, pageTitle = _a.pageTitle, pageDescription = _a.pageDescription, pageSpecificDataStr = _a.pageSpecificDataStr, settingsStr = _a.settingsStr, merchantSettingsStr = _a.merchantSettingsStr, configJson = _a.configJson, reInitOnBrowser = _a.reInitOnBrowser, addOgpMetas = _a.addOgpMetas;
41468
+ IkasStorefrontConfig.initWithJson(configJson);
41478
41469
  var store = IkasStorefrontConfig.store;
41479
- var settings = useState(new IkasThemeSettings(JSON.parse(settingsStr)))[0];
41470
+ var router = useRouter();
41480
41471
  var _b = useState(false), mounted = _b[0], setMounted = _b[1];
41481
- if (page) {
41482
- store.currentPageType = page.type;
41483
- }
41472
+ var _c = useState(false), isBrowser = _c[0], setIsBrowser = _c[1];
41473
+ var settings = useState(new IkasThemeSettings(JSON.parse(settingsStr)))[0];
41474
+ var _d = useState(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr)), propValues = _d[0], setPropValues = _d[1];
41475
+ store.currentPageType = pageType;
41484
41476
  useEffect(function () {
41485
41477
  //@ts-ignore
41486
41478
  store.setSettings(settingsStr);
@@ -41489,16 +41481,22 @@ var IkasPage = observer(function (_a) {
41489
41481
  store.checkLocalization();
41490
41482
  setMounted(true);
41491
41483
  }, []);
41484
+ useEffect(function () {
41485
+ if (reInitOnBrowser)
41486
+ setIsBrowser(typeof window !== "undefined");
41487
+ handleAnalytics(pageType, pageSpecificDataStr, store);
41488
+ }, [pageType, pageSpecificDataStr]);
41489
+ useEffect(function () {
41490
+ setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr, isBrowser));
41491
+ }, [isBrowser, propValuesStr, pageType, settingsStr]);
41492
41492
  var headerComponentPropValue = propValues.find(function (pv) { return pv.component.isHeader; });
41493
41493
  var footerComponentPropValue = propValues.find(function (pv) { return pv.component.isFooter; });
41494
41494
  var others = propValues.filter(function (pv) { return !pv.component.isHeader && !pv.component.isFooter; }) || [];
41495
41495
  var visibilityStyle = {
41496
41496
  visibility: mounted ? "visible" : "hidden",
41497
41497
  };
41498
- if (!page)
41499
- return null;
41500
41498
  return (createElement(Fragment$1, null,
41501
- createElement(IkasPageHead, { page: page, pageTitle: page.pageTitle, description: page.description, pageSpecificDataStr: pageSpecificDataStr, merchantSettings: merchantSettings, addOgpMetas: addOgpMetas }),
41499
+ createElement(IkasPageHead, { pageType: pageType, pageTitle: pageTitle, pageDescription: pageDescription, pageSpecificDataStr: pageSpecificDataStr, merchantSettingsStr: merchantSettingsStr, addOgpMetas: addOgpMetas }),
41502
41500
  createElement("div", { style: visibilityStyle, className: styles.IkasPage },
41503
41501
  createElement("div", null,
41504
41502
  headerComponentPropValue &&
@@ -41511,7 +41509,35 @@ var IkasPage = observer(function (_a) {
41511
41509
  });
41512
41510
  var renderComponent = function (pageComponentPropValue, settings, index) {
41513
41511
  return (createElement(ThemeComponent, { key: pageComponentPropValue.pageComponent.id, index: index, pageComponentPropValue: pageComponentPropValue, settings: settings }));
41514
- };
41512
+ };
41513
+ function handleAnalytics(pageType, pageSpecificDataStr, store) {
41514
+ try {
41515
+ if (pageType === IkasThemePageType.PRODUCT) {
41516
+ var productDetailParsed = JSON.parse(pageSpecificDataStr);
41517
+ var productDetail = new IkasProductDetail(productDetailParsed.product, productDetailParsed.selectedVariantValues);
41518
+ Analytics.productView(productDetail);
41519
+ // @ts-ignore
41520
+ IkasStorefrontConfig.store.customerStore.onProductView(productDetail.product.id, productDetail.selectedVariant.id);
41521
+ }
41522
+ if (pageType === IkasThemePageType.CATEGORY) {
41523
+ var category = JSON.parse(pageSpecificDataStr);
41524
+ var categoryPath = category.path.map(function (cat) { return cat.name; }).join(" > ");
41525
+ if (category.path.length > 0) {
41526
+ categoryPath = categoryPath + " > " + category.name;
41527
+ }
41528
+ else {
41529
+ categoryPath = category.name;
41530
+ }
41531
+ Analytics.viewCategory(categoryPath, category);
41532
+ }
41533
+ if (pageType === IkasThemePageType.CART) {
41534
+ Analytics.viewCart(store.cartStore.cart);
41535
+ }
41536
+ }
41537
+ catch (err) {
41538
+ console.error(err);
41539
+ }
41540
+ }
41515
41541
 
41516
41542
  var IkasPageDataProvider = /** @class */ (function () {
41517
41543
  function IkasPageDataProvider(theme, pageParams, pageType) {
@@ -41540,15 +41566,18 @@ var IkasPageDataProvider = /** @class */ (function () {
41540
41566
  });
41541
41567
  Object.defineProperty(IkasPageDataProvider.prototype, "nextPageData", {
41542
41568
  get: function () {
41569
+ var _a, _b, _c;
41543
41570
  return {
41544
41571
  props: {
41545
41572
  propValuesStr: JSON.stringify(this.pageComponentPropValues),
41546
41573
  pageSpecificDataStr: this.pageSpecificData
41547
41574
  ? JSON.stringify(this.pageSpecificData || {})
41548
41575
  : "",
41549
- page: toJS(this.page) || null,
41576
+ pageType: ((_a = this.page) === null || _a === void 0 ? void 0 : _a.type) || IkasThemePageType.CUSTOM,
41577
+ pageTitle: ((_b = this.page) === null || _b === void 0 ? void 0 : _b.pageTitle) || null,
41578
+ pageDescription: ((_c = this.page) === null || _c === void 0 ? void 0 : _c.description) || null,
41550
41579
  settingsStr: JSON.stringify(this.theme.settings || {}),
41551
- merchantSettings: this.merchantSettings
41580
+ merchantSettingsStr: this.merchantSettings
41552
41581
  ? JSON.stringify(this.merchantSettings)
41553
41582
  : null,
41554
41583
  configJson: IkasStorefrontConfig.getJson(),
@@ -42075,33 +42104,36 @@ var IkasPageDataProvider = /** @class */ (function () {
42075
42104
  var _propValue = propValue;
42076
42105
  var productDetail = new IkasProductDetail(_propValue.product, _propValue.selectedVariantValues);
42077
42106
  if (isBrowser) {
42078
- var urlParams_1 = new URLSearchParams(window.location.search);
42079
- var vid_1 = urlParams_1.get("vid");
42080
- if (vid_1) {
42081
- var variant = productDetail.product.variants.find(function (v) { return v.id === vid_1; });
42082
- if (variant) {
42083
- productDetail.selectedVariantValues = variant.variantValues;
42084
- }
42107
+ IkasPageDataProvider._initProductDetailOnBrowser(productDetail);
42108
+ }
42109
+ return new IkasProductDetail(productDetail.product, productDetail.selectedVariantValues, router);
42110
+ };
42111
+ IkasPageDataProvider._initProductDetailOnBrowser = function (productDetail) {
42112
+ var urlParams = new URLSearchParams(window.location.search);
42113
+ var vid = urlParams.get("vid");
42114
+ if (vid) {
42115
+ var variant = productDetail.product.variants.find(function (v) { return v.id === vid; });
42116
+ if (variant) {
42117
+ productDetail.selectedVariantValues = variant.variantValues;
42085
42118
  }
42086
- else {
42087
- var productVariantTypeSlugs = productDetail.product.variantTypes.map(function (vt) { return vt.variantType.slug; });
42088
- var selectedVariantValues_1 = [];
42089
- productVariantTypeSlugs.forEach(function (slug, vtIndex) {
42090
- var productVariantType = productDetail.product.variantTypes[vtIndex];
42091
- var variantValueSlug = urlParams_1.get(slug);
42092
- if (variantValueSlug) {
42093
- var variantValue = productVariantType.variantType.values.find(function (v) { return v.slug === variantValueSlug; });
42094
- if (variantValue)
42095
- selectedVariantValues_1.push(variantValue);
42096
- }
42097
- });
42098
- if (selectedVariantValues_1.length ===
42099
- productDetail.selectedVariantValues.length) {
42100
- productDetail.selectedVariantValues = selectedVariantValues_1;
42119
+ }
42120
+ else {
42121
+ var productVariantTypeSlugs = productDetail.product.variantTypes.map(function (vt) { return vt.variantType.slug; });
42122
+ var selectedVariantValues_1 = [];
42123
+ productVariantTypeSlugs.forEach(function (slug, vtIndex) {
42124
+ var productVariantType = productDetail.product.variantTypes[vtIndex];
42125
+ var variantValueSlug = urlParams.get(slug);
42126
+ if (variantValueSlug) {
42127
+ var variantValue = productVariantType.variantType.values.find(function (v) { return v.slug === variantValueSlug; });
42128
+ if (variantValue)
42129
+ selectedVariantValues_1.push(variantValue);
42101
42130
  }
42131
+ });
42132
+ if (selectedVariantValues_1.length ===
42133
+ productDetail.selectedVariantValues.length) {
42134
+ productDetail.selectedVariantValues = selectedVariantValues_1;
42102
42135
  }
42103
42136
  }
42104
- return new IkasProductDetail(productDetail.product, productDetail.selectedVariantValues, router);
42105
42137
  };
42106
42138
  IkasPageDataProvider.initAttributePropValue = function (prop, propValue, pageComponentPropValue) {
42107
42139
  pageComponentPropValue.propValues[prop.name] = IkasPageDataProvider._initAttributePropValue(propValue);
@@ -69679,11 +69711,11 @@ var FullscreenLoading = function () {
69679
69711
 
69680
69712
  var IkasCheckoutPage = function (_a) {
69681
69713
  var _b, _c, _d;
69682
- var checkout = _a.checkout, checkoutSettings = _a.checkoutSettings, customizationProps = _a.customizationProps, returnPolicy = _a.returnPolicy, privacyPolicy = _a.privacyPolicy, termsOfService = _a.termsOfService;
69714
+ var checkout = _a.checkout, checkoutSettings = _a.checkoutSettings, merchantSettings = _a.merchantSettings, customizationProps = _a.customizationProps, returnPolicy = _a.returnPolicy, privacyPolicy = _a.privacyPolicy, termsOfService = _a.termsOfService;
69683
69715
  var t = useTranslation().t;
69684
69716
  var router = useRouter();
69685
69717
  var vm = useState(function () {
69686
- return new CheckoutViewModel(checkout, checkoutSettings, router, returnPolicy, privacyPolicy, termsOfService, t);
69718
+ return new CheckoutViewModel(checkout, checkoutSettings, merchantSettings, router, returnPolicy, privacyPolicy, termsOfService, t);
69687
69719
  })[0];
69688
69720
  if (vm.step === CheckoutStep.PAYMENT) {
69689
69721
  Analytics.disableHTML();
@@ -69721,9 +69753,9 @@ var IkasCheckoutPage = function (_a) {
69721
69753
  return null;
69722
69754
  }
69723
69755
  return (createElement(Fragment$1, null,
69724
- createElement(IkasPageHead, { pageTitle: (((_d = vm.merchantSettings) === null || _d === void 0 ? void 0 : _d.merchantName) || "") +
69756
+ createElement(IkasPageHead, { pageType: IkasThemePageType.CHECKOUT, pageTitle: (((_d = vm.merchantSettings) === null || _d === void 0 ? void 0 : _d.merchantName) || "") +
69725
69757
  " - " +
69726
- t("checkout-page:securePayment"), description: t("checkout-page:securePayment") }),
69758
+ t("checkout-page:securePayment"), pageDescription: t("checkout-page:securePayment") }),
69727
69759
  createElement("div", { id: "Checkout", className: styles$5.CheckoutPage },
69728
69760
  createElement(ReactTooltip, { place: "top", type: "dark", effect: "solid", arrowColor: "transparent", multiline: true, className: styles$5.ReactTooltipWrap, globalEventOff: "touchstart" }),
69729
69761
  createElement("div", { className: styles$5.Left },
@@ -69942,7 +69974,7 @@ var IkasPageEditor = observer(function () {
69942
69974
  pc.componentId !== ((_d = (_c = vm.theme) === null || _c === void 0 ? void 0 : _c.footerComponent) === null || _d === void 0 ? void 0 : _d.id);
69943
69975
  });
69944
69976
  return (createElement(Fragment$1, null,
69945
- !!vm.page && (createElement(IkasPageHead, { pageTitle: vm.page.pageTitle, description: vm.page.description })),
69977
+ !!vm.page && (createElement(IkasPageHead, { pageType: vm.page.type, pageTitle: vm.page.pageTitle, pageDescription: vm.page.description })),
69946
69978
  createElement("div", { style: pageStyle },
69947
69979
  createElement("div", null,
69948
69980
  !!headerPageComponent && (createElement(ThemeEditorComponent, { key: headerPageComponent.id, vm: vm, pageComponent: headerPageComponent })), others === null || others === void 0 ? void 0 :
@@ -70090,7 +70122,7 @@ var SettingsHelper = /** @class */ (function () {
70090
70122
  SettingsHelper.getSettings = function (locale) {
70091
70123
  var _this = this;
70092
70124
  return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
70093
- var isLocal, storefrontResponse, storefront, localTheme, settings, storefront_1, salesChannel_1, localizationMap, storefrontJSScripts_1, themeLocalizationPath, routing_1;
70125
+ var isLocal, storefrontResponse, storefront, localTheme, settings, storefront_1, salesChannel_1, localizationMap, storefrontJSScripts_1, domain_1, themeLocalizationPath, routing_1;
70094
70126
  return __generator(this, function (_a) {
70095
70127
  switch (_a.label) {
70096
70128
  case 0:
@@ -70124,6 +70156,7 @@ var SettingsHelper = /** @class */ (function () {
70124
70156
  favicon: localTheme.settings.favicon,
70125
70157
  stockPreference: localTheme.settings.stockPreference,
70126
70158
  storefrontJSScripts: [],
70159
+ domain: "",
70127
70160
  });
70128
70161
  return [3 /*break*/, 5];
70129
70162
  case 3: return [4 /*yield*/, SettingsHelper.readSettingsFile()];
@@ -70135,6 +70168,7 @@ var SettingsHelper = /** @class */ (function () {
70135
70168
  salesChannel_1 = new IkasSalesChannel(settings.salesChannel);
70136
70169
  localizationMap = settings.localizationMap;
70137
70170
  storefrontJSScripts_1 = settings.storefrontJSScripts || [];
70171
+ domain_1 = settings.domain;
70138
70172
  themeLocalizationPath = localizationMap[locale];
70139
70173
  routing_1 = storefront_1.routings.find(function (r) { return r.id === locale || r.path === locale; });
70140
70174
  if (!themeLocalizationPath || !routing_1) {
@@ -70161,6 +70195,7 @@ var SettingsHelper = /** @class */ (function () {
70161
70195
  favicon: favicon,
70162
70196
  stockPreference: stockPreference,
70163
70197
  storefrontJSScripts: storefrontJSScripts_1,
70198
+ domain: domain_1,
70164
70199
  });
70165
70200
  });
70166
70201
  _a.label = 5;
@@ -70172,7 +70207,7 @@ var SettingsHelper = /** @class */ (function () {
70172
70207
  SettingsHelper.getPageData = function (context, isServer, pageType, possiblePageTypes, isEditor) {
70173
70208
  var _a, _b;
70174
70209
  return __awaiter(this, void 0, void 0, function () {
70175
- var isLocal, isProdEditor, serverRuntimeConfig, locale, settings, storefront, themeLocalization, salesChannel, routing, favicon, stockPreference, storefrontJSScripts, provider, componentIds_1, components, componentDirs, nextI18nConf, currentLocale, i18nReader, translations, extraProps, checkoutComponent, checkoutSettings, customizationProps;
70210
+ var isLocal, isProdEditor, serverRuntimeConfig, locale, settings, storefront, themeLocalization, salesChannel, routing, favicon, stockPreference, storefrontJSScripts, domain, provider, componentIds_1, components, namespaces, nextI18nConf, currentLocale, i18nReader, translations, extraProps, checkoutComponent, checkoutSettings, customizationProps;
70176
70211
  return __generator(this, function (_c) {
70177
70212
  switch (_c.label) {
70178
70213
  case 0:
@@ -70198,7 +70233,7 @@ var SettingsHelper = /** @class */ (function () {
70198
70233
  notFound: true,
70199
70234
  }];
70200
70235
  }
70201
- storefront = settings.storefront, themeLocalization = settings.themeLocalization, salesChannel = settings.salesChannel, routing = settings.routing, favicon = settings.favicon, stockPreference = settings.stockPreference, storefrontJSScripts = settings.storefrontJSScripts;
70236
+ storefront = settings.storefront, themeLocalization = settings.themeLocalization, salesChannel = settings.salesChannel, routing = settings.routing, favicon = settings.favicon, stockPreference = settings.stockPreference, storefrontJSScripts = settings.storefrontJSScripts, domain = settings.domain;
70202
70237
  IkasStorefrontConfig.storefrontId = storefront.id;
70203
70238
  IkasStorefrontConfig.storefrontRoutingId = routing.id;
70204
70239
  IkasStorefrontConfig.storefrontThemeId = storefront.mainStorefrontThemeId;
@@ -70212,6 +70247,7 @@ var SettingsHelper = /** @class */ (function () {
70212
70247
  IkasStorefrontConfig.favicon = favicon || null;
70213
70248
  IkasStorefrontConfig.stockPreference = stockPreference || null;
70214
70249
  IkasStorefrontConfig.storefrontJSScripts = storefrontJSScripts || [];
70250
+ IkasStorefrontConfig.domain = domain;
70215
70251
  provider = new IkasPageDataProvider(themeLocalization.themeJson, context.params, pageType);
70216
70252
  provider.possiblePageTypes = possiblePageTypes;
70217
70253
  if (!!isEditor) return [3 /*break*/, 3];
@@ -70230,13 +70266,13 @@ var SettingsHelper = /** @class */ (function () {
70230
70266
  ? provider.theme.components.map(function (c) { return c.id; })
70231
70267
  : provider.page.components.map(function (pc) { return pc.componentId; });
70232
70268
  components = themeLocalization.themeJson.components.filter(function (c) { return isEditor || componentIds_1.includes(c.id); });
70233
- componentDirs = __spreadArrays([
70234
- "common",
70235
- "checkout-page"
70236
- ], components.map(function (c) { return c.dir; }));
70269
+ namespaces = __spreadArrays(["common"], components.map(function (c) { return c.dir; }));
70270
+ if (pageType === IkasThemePageType.CHECKOUT || isEditor) {
70271
+ namespaces.push("checkout-page");
70272
+ }
70237
70273
  nextI18nConf = serverRuntimeConfig.nextI18nConf;
70238
70274
  currentLocale = routing.locale;
70239
- i18nReader = new I18NFileReader(currentLocale, componentDirs, isLocal ? undefined : nextI18nConf.localePath);
70275
+ i18nReader = new I18NFileReader(currentLocale, namespaces, isLocal ? undefined : nextI18nConf.localePath);
70240
70276
  return [4 /*yield*/, i18nReader.read()];
70241
70277
  case 4:
70242
70278
  translations = _c.sent();
@@ -70314,15 +70350,10 @@ var SettingsHelper = /** @class */ (function () {
70314
70350
  return SettingsHelper;
70315
70351
  }());
70316
70352
 
70317
- var Page = function (_a) {
70318
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70319
- IkasStorefrontConfig.initWithJson(configJson);
70320
- var router = useRouter();
70321
- var propValues = useMemo(function () {
70322
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70323
- }, [propValuesStr]);
70324
- return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
70353
+ var Page = function (props) {
70354
+ return createElement(IkasPage, __assign({}, props));
70325
70355
  };
70356
+ var home = observer(Page);
70326
70357
  var getStaticProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70327
70358
  return __generator(this, function (_a) {
70328
70359
  switch (_a.label) {
@@ -70332,29 +70363,17 @@ var getStaticProps = function (context) { return __awaiter(void 0, void 0, void
70332
70363
  });
70333
70364
  }); };
70334
70365
 
70335
- var home = /*#__PURE__*/Object.freeze({
70366
+ var home$1 = /*#__PURE__*/Object.freeze({
70336
70367
  __proto__: null,
70337
- 'default': Page,
70368
+ 'default': home,
70338
70369
  getStaticProps: getStaticProps
70339
70370
  });
70340
70371
 
70341
- var Page$1 = function (_a) {
70342
- var page = _a.page, pageSpecificDataStr = _a.pageSpecificDataStr, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70343
- IkasStorefrontConfig.initWithJson(configJson);
70344
- var router = useRouter();
70345
- var _b = useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
70346
- var _c = useState(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr)), propValues = _c[0], setPropValues = _c[1];
70347
- useEffect(function () {
70348
- setIsBrowser(typeof window !== "undefined");
70349
- handleAnalytics(page, pageSpecificDataStr);
70350
- }, [page, pageSpecificDataStr]);
70351
- useEffect(function () {
70352
- setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr, isBrowser));
70353
- }, [isBrowser, propValuesStr, page]);
70354
- return (createElement(IkasPage, { page: page, propValues: propValues, pageSpecificDataStr: pageSpecificDataStr, settingsStr: settingsStr, merchantSettings: merchantSettings, addOgpMetas: true }));
70372
+ var Page$1 = function (props) {
70373
+ return createElement(IkasPage, __assign({}, props, { addOgpMetas: true, reInitOnBrowser: true }));
70355
70374
  };
70356
70375
  var index$1 = observer(Page$1);
70357
- var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70376
+ var getStaticPaths = function () { return __awaiter(void 0, void 0, void 0, function () {
70358
70377
  return __generator(this, function (_a) {
70359
70378
  return [2 /*return*/, {
70360
70379
  paths: [],
@@ -70373,35 +70392,7 @@ var getStaticProps$1 = function (context) { return __awaiter(void 0, void 0, voi
70373
70392
  case 1: return [2 /*return*/, _a.sent()];
70374
70393
  }
70375
70394
  });
70376
- }); };
70377
- function handleAnalytics(page, pageSpecificDataStr) {
70378
- var isServer = typeof window === "undefined";
70379
- if (!isServer) {
70380
- try {
70381
- if (page.type === IkasThemePageType.PRODUCT) {
70382
- var productDetailParsed = JSON.parse(pageSpecificDataStr);
70383
- var productDetail = new IkasProductDetail(productDetailParsed.product, productDetailParsed.selectedVariantValues);
70384
- Analytics.productView(productDetail);
70385
- // @ts-ignore
70386
- IkasStorefrontConfig.store.customerStore.onProductView(productDetail.product.id, productDetail.selectedVariant.id);
70387
- }
70388
- if (page.type === IkasThemePageType.CATEGORY) {
70389
- var category = JSON.parse(pageSpecificDataStr);
70390
- var categoryPath = category.path.map(function (cat) { return cat.name; }).join(" > ");
70391
- if (category.path.length > 0) {
70392
- categoryPath = categoryPath + " > " + category.name;
70393
- }
70394
- else {
70395
- categoryPath = category.name;
70396
- }
70397
- Analytics.viewCategory(categoryPath, category);
70398
- }
70399
- }
70400
- catch (err) {
70401
- console.error(err);
70402
- }
70403
- }
70404
- }
70395
+ }); };
70405
70396
 
70406
70397
  var index$2 = /*#__PURE__*/Object.freeze({
70407
70398
  __proto__: null,
@@ -70410,15 +70401,10 @@ var index$2 = /*#__PURE__*/Object.freeze({
70410
70401
  getStaticProps: getStaticProps$1
70411
70402
  });
70412
70403
 
70413
- var Page$2 = function (_a) {
70414
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70415
- IkasStorefrontConfig.initWithJson(configJson);
70416
- var router = useRouter();
70417
- var propValues = useMemo(function () {
70418
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70419
- }, [propValuesStr]);
70420
- return (createElement(IkasPage, { page: page, settingsStr: settingsStr, propValues: propValues }));
70404
+ var Page$2 = function (props) {
70405
+ return createElement(IkasPage, __assign({}, props));
70421
70406
  };
70407
+ var _slug_ = observer(Page$2);
70422
70408
  var getStaticPaths$1 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70423
70409
  var allSettings, customPagePaths;
70424
70410
  return __generator(this, function (_a) {
@@ -70474,15 +70460,15 @@ var getStaticProps$2 = function (context) { return __awaiter(void 0, void 0, voi
70474
70460
  });
70475
70461
  }); };
70476
70462
 
70477
- var _slug_ = /*#__PURE__*/Object.freeze({
70463
+ var _slug_$1 = /*#__PURE__*/Object.freeze({
70478
70464
  __proto__: null,
70479
- 'default': Page$2,
70465
+ 'default': _slug_,
70480
70466
  getStaticPaths: getStaticPaths$1,
70481
70467
  getStaticProps: getStaticProps$2
70482
70468
  });
70483
70469
 
70484
70470
  var CheckoutPage = function (_a) {
70485
- var checkoutSettingsStr = _a.checkoutSettingsStr, customizationProps = _a.customizationProps, configJson = _a.configJson, others = __rest(_a, ["checkoutSettingsStr", "customizationProps", "configJson"]);
70471
+ var merchantSettingsStr = _a.merchantSettingsStr, checkoutSettingsStr = _a.checkoutSettingsStr, customizationProps = _a.customizationProps, configJson = _a.configJson, others = __rest(_a, ["merchantSettingsStr", "checkoutSettingsStr", "customizationProps", "configJson"]);
70486
70472
  var router = useRouter();
70487
70473
  var _b = useState(), checkout = _b[0], setCheckout = _b[1];
70488
70474
  IkasStorefrontConfig.initWithJson(configJson);
@@ -70492,6 +70478,11 @@ var CheckoutPage = function (_a) {
70492
70478
  ? new IkasCheckoutSettings(JSON.parse(checkoutSettingsStr))
70493
70479
  : new IkasCheckoutSettings();
70494
70480
  }, [checkoutSettingsStr]);
70481
+ var merchantSettings = useMemo(function () {
70482
+ return merchantSettingsStr
70483
+ ? new IkasMerchantSettings(JSON.parse(merchantSettingsStr))
70484
+ : null;
70485
+ }, [merchantSettingsStr]);
70495
70486
  useEffect(function () {
70496
70487
  document.documentElement.style.setProperty("--checkout-button-bg-color", (customizationProps === null || customizationProps === void 0 ? void 0 : customizationProps.buttonBgColor) || "#272727");
70497
70488
  document.documentElement.style.setProperty("--checkout-button-text-color", (customizationProps === null || customizationProps === void 0 ? void 0 : customizationProps.buttonTextColor) || "#FFFFFF");
@@ -70539,7 +70530,7 @@ var CheckoutPage = function (_a) {
70539
70530
  }); }, []);
70540
70531
  if (!checkout)
70541
70532
  return createElement(FullscreenLoading, null);
70542
- return (createElement(IkasCheckoutPage$1, __assign({ checkout: checkout, checkoutSettings: checkoutSettings, customizationProps: customizationProps }, others)));
70533
+ return (createElement(IkasCheckoutPage$1, __assign({ checkout: checkout, merchantSettings: merchantSettings, checkoutSettings: checkoutSettings, customizationProps: customizationProps }, others)));
70543
70534
  };
70544
70535
  var checkout = observer(CheckoutPage);
70545
70536
  var getStaticProps$3 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -70557,15 +70548,10 @@ var checkout$1 = /*#__PURE__*/Object.freeze({
70557
70548
  getStaticProps: getStaticProps$3
70558
70549
  });
70559
70550
 
70560
- var Page$3 = function (_a) {
70561
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70562
- IkasStorefrontConfig.initWithJson(configJson);
70563
- var router = useRouter();
70564
- var propValues = useMemo(function () {
70565
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70566
- }, [propValuesStr]);
70567
- return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70551
+ var Page$3 = function (props) {
70552
+ return createElement(IkasPage, __assign({}, props));
70568
70553
  };
70554
+ var index$3 = observer(Page$3);
70569
70555
  var getStaticProps$4 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70570
70556
  return __generator(this, function (_a) {
70571
70557
  switch (_a.label) {
@@ -70575,21 +70561,16 @@ var getStaticProps$4 = function (context) { return __awaiter(void 0, void 0, voi
70575
70561
  });
70576
70562
  }); };
70577
70563
 
70578
- var index$3 = /*#__PURE__*/Object.freeze({
70564
+ var index$4 = /*#__PURE__*/Object.freeze({
70579
70565
  __proto__: null,
70580
- 'default': Page$3,
70566
+ 'default': index$3,
70581
70567
  getStaticProps: getStaticProps$4
70582
70568
  });
70583
70569
 
70584
- var Page$4 = function (_a) {
70585
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70586
- IkasStorefrontConfig.initWithJson(configJson);
70587
- var router = useRouter();
70588
- var propValues = useMemo(function () {
70589
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70590
- }, [propValuesStr]);
70591
- return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70570
+ var Page$4 = function (props) {
70571
+ return createElement(IkasPage, __assign({}, props));
70592
70572
  };
70573
+ var addresses = observer(Page$4);
70593
70574
  var getStaticProps$5 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70594
70575
  return __generator(this, function (_a) {
70595
70576
  switch (_a.label) {
@@ -70599,21 +70580,16 @@ var getStaticProps$5 = function (context) { return __awaiter(void 0, void 0, voi
70599
70580
  });
70600
70581
  }); };
70601
70582
 
70602
- var addresses = /*#__PURE__*/Object.freeze({
70583
+ var addresses$1 = /*#__PURE__*/Object.freeze({
70603
70584
  __proto__: null,
70604
- 'default': Page$4,
70585
+ 'default': addresses,
70605
70586
  getStaticProps: getStaticProps$5
70606
70587
  });
70607
70588
 
70608
- var Page$5 = function (_a) {
70609
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70610
- IkasStorefrontConfig.initWithJson(configJson);
70611
- var router = useRouter();
70612
- var propValues = useMemo(function () {
70613
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70614
- }, [propValuesStr]);
70615
- return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70589
+ var Page$5 = function (props) {
70590
+ return createElement(IkasPage, __assign({}, props, { addOgpMetas: true }));
70616
70591
  };
70592
+ var index$5 = observer(Page$5);
70617
70593
  var getStaticProps$6 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70618
70594
  return __generator(this, function (_a) {
70619
70595
  switch (_a.label) {
@@ -70623,21 +70599,16 @@ var getStaticProps$6 = function (context) { return __awaiter(void 0, void 0, voi
70623
70599
  });
70624
70600
  }); };
70625
70601
 
70626
- var index$4 = /*#__PURE__*/Object.freeze({
70602
+ var index$6 = /*#__PURE__*/Object.freeze({
70627
70603
  __proto__: null,
70628
- 'default': Page$5,
70604
+ 'default': index$5,
70629
70605
  getStaticProps: getStaticProps$6
70630
70606
  });
70631
70607
 
70632
- var Page$6 = function (_a) {
70633
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70634
- IkasStorefrontConfig.initWithJson(configJson);
70635
- var router = useRouter();
70636
- var propValues = useMemo(function () {
70637
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70638
- }, [propValuesStr]);
70639
- return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70608
+ var Page$6 = function (props) {
70609
+ return createElement(IkasPage, __assign({}, props));
70640
70610
  };
70611
+ var _id_ = observer(Page$6);
70641
70612
  var getServerSideProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70642
70613
  return __generator(this, function (_a) {
70643
70614
  switch (_a.label) {
@@ -70647,21 +70618,16 @@ var getServerSideProps = function (context) { return __awaiter(void 0, void 0, v
70647
70618
  });
70648
70619
  }); };
70649
70620
 
70650
- var _id_ = /*#__PURE__*/Object.freeze({
70621
+ var _id_$1 = /*#__PURE__*/Object.freeze({
70651
70622
  __proto__: null,
70652
- 'default': Page$6,
70623
+ 'default': _id_,
70653
70624
  getServerSideProps: getServerSideProps
70654
70625
  });
70655
70626
 
70656
- var Page$7 = function (_a) {
70657
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70658
- IkasStorefrontConfig.initWithJson(configJson);
70659
- var router = useRouter();
70660
- var propValues = useMemo(function () {
70661
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70662
- }, [propValuesStr]);
70663
- return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70627
+ var Page$7 = function (props) {
70628
+ return createElement(IkasPage, __assign({}, props));
70664
70629
  };
70630
+ var login = observer(Page$7);
70665
70631
  var getStaticProps$7 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70666
70632
  return __generator(this, function (_a) {
70667
70633
  switch (_a.label) {
@@ -70671,21 +70637,16 @@ var getStaticProps$7 = function (context) { return __awaiter(void 0, void 0, voi
70671
70637
  });
70672
70638
  }); };
70673
70639
 
70674
- var login = /*#__PURE__*/Object.freeze({
70640
+ var login$1 = /*#__PURE__*/Object.freeze({
70675
70641
  __proto__: null,
70676
- 'default': Page$7,
70642
+ 'default': login,
70677
70643
  getStaticProps: getStaticProps$7
70678
70644
  });
70679
70645
 
70680
- var Page$8 = function (_a) {
70681
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70682
- IkasStorefrontConfig.initWithJson(configJson);
70683
- var router = useRouter();
70684
- var propValues = useMemo(function () {
70685
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70686
- }, [propValuesStr]);
70687
- return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70646
+ var Page$8 = function (props) {
70647
+ return createElement(IkasPage, __assign({}, props));
70688
70648
  };
70649
+ var register = observer(Page$8);
70689
70650
  var getStaticProps$8 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70690
70651
  return __generator(this, function (_a) {
70691
70652
  switch (_a.label) {
@@ -70695,21 +70656,16 @@ var getStaticProps$8 = function (context) { return __awaiter(void 0, void 0, voi
70695
70656
  });
70696
70657
  }); };
70697
70658
 
70698
- var register = /*#__PURE__*/Object.freeze({
70659
+ var register$1 = /*#__PURE__*/Object.freeze({
70699
70660
  __proto__: null,
70700
- 'default': Page$8,
70661
+ 'default': register,
70701
70662
  getStaticProps: getStaticProps$8
70702
70663
  });
70703
70664
 
70704
- var Page$9 = function (_a) {
70705
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70706
- IkasStorefrontConfig.initWithJson(configJson);
70707
- var router = useRouter();
70708
- var propValues = useMemo(function () {
70709
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70710
- }, [propValuesStr]);
70711
- return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70665
+ var Page$9 = function (props) {
70666
+ return createElement(IkasPage, __assign({}, props));
70712
70667
  };
70668
+ var forgotPassword = observer(Page$9);
70713
70669
  var getStaticProps$9 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70714
70670
  return __generator(this, function (_a) {
70715
70671
  switch (_a.label) {
@@ -70719,21 +70675,16 @@ var getStaticProps$9 = function (context) { return __awaiter(void 0, void 0, voi
70719
70675
  });
70720
70676
  }); };
70721
70677
 
70722
- var forgotPassword = /*#__PURE__*/Object.freeze({
70678
+ var forgotPassword$1 = /*#__PURE__*/Object.freeze({
70723
70679
  __proto__: null,
70724
- 'default': Page$9,
70680
+ 'default': forgotPassword,
70725
70681
  getStaticProps: getStaticProps$9
70726
70682
  });
70727
70683
 
70728
- var Page$a = function (_a) {
70729
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70730
- IkasStorefrontConfig.initWithJson(configJson);
70731
- var router = useRouter();
70732
- var propValues = useMemo(function () {
70733
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70734
- }, [propValuesStr]);
70735
- return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70684
+ var Page$a = function (props) {
70685
+ return createElement(IkasPage, __assign({}, props));
70736
70686
  };
70687
+ var recoverPassword = observer(Page$a);
70737
70688
  var getStaticProps$a = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70738
70689
  return __generator(this, function (_a) {
70739
70690
  switch (_a.label) {
@@ -70743,25 +70694,16 @@ var getStaticProps$a = function (context) { return __awaiter(void 0, void 0, voi
70743
70694
  });
70744
70695
  }); };
70745
70696
 
70746
- var recoverPassword = /*#__PURE__*/Object.freeze({
70697
+ var recoverPassword$1 = /*#__PURE__*/Object.freeze({
70747
70698
  __proto__: null,
70748
- 'default': Page$a,
70699
+ 'default': recoverPassword,
70749
70700
  getStaticProps: getStaticProps$a
70750
70701
  });
70751
70702
 
70752
- var Page$b = function (_a) {
70753
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70754
- IkasStorefrontConfig.initWithJson(configJson);
70755
- var router = useRouter();
70756
- var propValues = useMemo(function () {
70757
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70758
- }, [propValuesStr]);
70759
- var store = IkasStorefrontConfig.store;
70760
- useEffect(function () {
70761
- Analytics.viewCart(store.cartStore.cart);
70762
- }, []);
70763
- return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70703
+ var Page$b = function (props) {
70704
+ return createElement(IkasPage, __assign({}, props));
70764
70705
  };
70706
+ var cart = observer(Page$b);
70765
70707
  var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70766
70708
  return __generator(this, function (_a) {
70767
70709
  switch (_a.label) {
@@ -70771,9 +70713,9 @@ var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, voi
70771
70713
  });
70772
70714
  }); };
70773
70715
 
70774
- var cart = /*#__PURE__*/Object.freeze({
70716
+ var cart$1 = /*#__PURE__*/Object.freeze({
70775
70717
  __proto__: null,
70776
- 'default': Page$b,
70718
+ 'default': cart,
70777
70719
  getStaticProps: getStaticProps$b
70778
70720
  });
70779
70721
 
@@ -70801,15 +70743,10 @@ var editor$1 = /*#__PURE__*/Object.freeze({
70801
70743
  'default': editor
70802
70744
  });
70803
70745
 
70804
- var Page$d = function (_a) {
70805
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70806
- IkasStorefrontConfig.initWithJson(configJson);
70807
- var router = useRouter();
70808
- var propValues = useMemo(function () {
70809
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70810
- }, [propValuesStr]);
70811
- return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70746
+ var Page$d = function (props) {
70747
+ return createElement(IkasPage, __assign({}, props));
70812
70748
  };
70749
+ var favoriteProducts = observer(Page$d);
70813
70750
  var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70814
70751
  return __generator(this, function (_a) {
70815
70752
  switch (_a.label) {
@@ -70819,29 +70756,16 @@ var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, voi
70819
70756
  });
70820
70757
  }); };
70821
70758
 
70822
- var favoriteProducts = /*#__PURE__*/Object.freeze({
70759
+ var favoriteProducts$1 = /*#__PURE__*/Object.freeze({
70823
70760
  __proto__: null,
70824
- 'default': Page$d,
70761
+ 'default': favoriteProducts,
70825
70762
  getStaticProps: getStaticProps$d
70826
70763
  });
70827
70764
 
70828
- var Page$e = function (_a) {
70829
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70830
- IkasStorefrontConfig.initWithJson(configJson);
70831
- var router = useRouter();
70832
- var _b = useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
70833
- var initialPropValues = useMemo(function () {
70834
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70835
- }, [propValuesStr]);
70836
- var _c = useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
70837
- useEffect(function () {
70838
- setIsBrowser(typeof window !== "undefined");
70839
- }, []);
70840
- useEffect(function () {
70841
- setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr, isBrowser));
70842
- }, [isBrowser, propValuesStr]);
70843
- return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
70765
+ var Page$e = function (props) {
70766
+ return createElement(IkasPage, __assign({}, props, { addOgpMetas: true, reInitOnBrowser: true }));
70844
70767
  };
70768
+ var search = observer(Page$e);
70845
70769
  var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70846
70770
  return __generator(this, function (_a) {
70847
70771
  switch (_a.label) {
@@ -70851,22 +70775,16 @@ var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, voi
70851
70775
  });
70852
70776
  }); };
70853
70777
 
70854
- var search = /*#__PURE__*/Object.freeze({
70778
+ var search$1 = /*#__PURE__*/Object.freeze({
70855
70779
  __proto__: null,
70856
- 'default': Page$e,
70780
+ 'default': search,
70857
70781
  getStaticProps: getStaticProps$e
70858
70782
  });
70859
70783
 
70860
- var Page$f = function (_a) {
70861
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70862
- if (!propValuesStr || !page)
70784
+ var Page$f = function (props) {
70785
+ if (!props.propValuesStr)
70863
70786
  return createElement(Error$1, { statusCode: 404 });
70864
- IkasStorefrontConfig.initWithJson(configJson);
70865
- var router = useRouter();
70866
- var propValues = useMemo(function () {
70867
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70868
- }, [propValuesStr]);
70869
- return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70787
+ return createElement(IkasPage, __assign({}, props));
70870
70788
  };
70871
70789
  var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70872
70790
  var props;
@@ -70893,15 +70811,10 @@ var _404 = /*#__PURE__*/Object.freeze({
70893
70811
  getStaticProps: getStaticProps$f
70894
70812
  });
70895
70813
 
70896
- var Page$g = function (_a) {
70897
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70898
- IkasStorefrontConfig.initWithJson(configJson);
70899
- var router = useRouter();
70900
- var propValues = useMemo(function () {
70901
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70902
- }, [propValuesStr]);
70903
- return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
70814
+ var Page$g = function (props) {
70815
+ return createElement(IkasPage, __assign({}, props, { addOgpMetas: true }));
70904
70816
  };
70817
+ var index$7 = observer(Page$g);
70905
70818
  var getStaticProps$g = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70906
70819
  return __generator(this, function (_a) {
70907
70820
  switch (_a.label) {
@@ -70911,31 +70824,17 @@ var getStaticProps$g = function (context) { return __awaiter(void 0, void 0, voi
70911
70824
  });
70912
70825
  }); };
70913
70826
 
70914
- var index$5 = /*#__PURE__*/Object.freeze({
70827
+ var index$8 = /*#__PURE__*/Object.freeze({
70915
70828
  __proto__: null,
70916
- 'default': Page$g,
70829
+ 'default': index$7,
70917
70830
  getStaticProps: getStaticProps$g
70918
70831
  });
70919
70832
 
70920
- var Page$h = function (_a) {
70921
- var page = _a.page, pageSpecificDataStr = _a.pageSpecificDataStr, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70922
- IkasStorefrontConfig.initWithJson(configJson);
70923
- var router = useRouter();
70924
- var _b = useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
70925
- var initialPropValues = useMemo(function () {
70926
- return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
70927
- }, [propValuesStr]);
70928
- var _c = useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
70929
- useEffect(function () {
70930
- setIsBrowser(typeof window !== "undefined");
70931
- }, []);
70932
- useEffect(function () {
70933
- setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr, isBrowser));
70934
- }, [isBrowser, propValuesStr]);
70935
- return (createElement(IkasPage, { page: page, propValues: propValues, pageSpecificDataStr: pageSpecificDataStr, settingsStr: settingsStr, merchantSettings: merchantSettings, addOgpMetas: true }));
70833
+ var Page$h = function (props) {
70834
+ return createElement(IkasPage, __assign({}, props, { addOgpMetas: true, reInitOnBrowser: true }));
70936
70835
  };
70937
- var _slug_$1 = observer(Page$h);
70938
- var getStaticPaths$2 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70836
+ var _slug_$2 = observer(Page$h);
70837
+ var getStaticPaths$2 = function () { return __awaiter(void 0, void 0, void 0, function () {
70939
70838
  return __generator(this, function (_a) {
70940
70839
  return [2 /*return*/, {
70941
70840
  paths: [],
@@ -70955,9 +70854,9 @@ var getStaticProps$h = function (context) { return __awaiter(void 0, void 0, voi
70955
70854
  });
70956
70855
  }); };
70957
70856
 
70958
- var _slug_$2 = /*#__PURE__*/Object.freeze({
70857
+ var _slug_$3 = /*#__PURE__*/Object.freeze({
70959
70858
  __proto__: null,
70960
- 'default': _slug_$1,
70859
+ 'default': _slug_$2,
70961
70860
  getStaticPaths: getStaticPaths$2,
70962
70861
  getStaticProps: getStaticProps$h
70963
70862
  });
@@ -71291,4 +71190,4 @@ var en$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Ob
71291
71190
  'default': en
71292
71191
  }));
71293
71192
 
71294
- export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$5 as BlogPage, _slug_$2 as BlogSlugPage, cart as CartPage, checkout$1 as CheckoutPage, ContactForm, _slug_ as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts as FavoriteProductsPage, ForgotPasswordForm, forgotPassword as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogCategoryList, IkasBlogCategoryListPropValue, IkasBlogCategoryListType, IkasBlogCategoryPropValue, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogTag, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderRefundSettings, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageComponentPropValue, IkasPageDataProvider, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeType, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home as IndexPage, LessThanRule, LoginForm, login as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_ as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$4 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword as RecoverPasswordPage, RegisterForm, register as RegisterPage, RequiredRule, search as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, createTranslationInputData, decodeBase64, findAllIndexes, formatDate, formatMoney, getPlaceholderBlog, getPlaceholderBlogCategory, getPlaceholderBrand, getPlaceholderCategory, getPlaceholderProduct, parseRangeStr, pascalCase, stringSorter, stringToSlug, useTranslation, validatePhoneNumber };
71193
+ export { AccountInfoForm, index$4 as AccountPage, AddressForm, addresses$1 as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$8 as BlogPage, _slug_$3 as BlogSlugPage, cart$1 as CartPage, checkout$1 as CheckoutPage, ContactForm, _slug_$1 as CustomPage, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts$1 as FavoriteProductsPage, ForgotPasswordForm, forgotPassword$1 as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogCategoryList, IkasBlogCategoryListPropValue, IkasBlogCategoryListType, IkasBlogCategoryPropValue, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogTag, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderRefundSettings, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageComponentPropValue, IkasPageDataProvider, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeType, IkasProductAttributeValue, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home$1 as IndexPage, LessThanRule, LoginForm, login$1 as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$1 as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$6 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword$1 as RecoverPasswordPage, RegisterForm, register$1 as RegisterPage, RequiredRule, search$1 as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, createTranslationInputData, decodeBase64, findAllIndexes, formatDate, formatMoney, getPlaceholderBlog, getPlaceholderBlogCategory, getPlaceholderBrand, getPlaceholderCategory, getPlaceholderProduct, parseRangeStr, pascalCase, stringSorter, stringToSlug, useTranslation, validatePhoneNumber };