@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.js CHANGED
@@ -8,8 +8,8 @@ var path$1 = require('path');
8
8
  var getConfig = require('next/config');
9
9
  var React = require('react');
10
10
  var mobxReactLite = require('mobx-react-lite');
11
- var Head = require('next/head');
12
11
  var router = require('next/router');
12
+ var Head = require('next/head');
13
13
  var crypto$1 = require('crypto');
14
14
  var NextImage = require('next/image');
15
15
  var Link = require('next/link');
@@ -10996,6 +10996,7 @@ var IkasStorefrontConfig = /** @class */ (function () {
10996
10996
  };
10997
10997
  IkasStorefrontConfig.getJson = function () {
10998
10998
  return {
10999
+ domain: IkasStorefrontConfig.domain,
10999
11000
  storefrontId: IkasStorefrontConfig.storefrontId || null,
11000
11001
  storefrontRoutingId: IkasStorefrontConfig.storefrontRoutingId || null,
11001
11002
  storefrontThemeId: IkasStorefrontConfig.storefrontThemeId || null,
@@ -22813,7 +22814,7 @@ var MAX_CVC_LENGTH = 4;
22813
22814
  var USE_DIFFERENT_ADDRESS_KEY = "sAddr";
22814
22815
  var isServer$1 = typeof localStorage === "undefined";
22815
22816
  var CheckoutViewModel = /** @class */ (function () {
22816
- function CheckoutViewModel(checkout, checkoutSettings, router, returnPolicy, privacyPolicy, termsOfService, t) {
22817
+ function CheckoutViewModel(checkout, checkoutSettings, merchantSettings, router, returnPolicy, privacyPolicy, termsOfService, t) {
22817
22818
  var _this = this;
22818
22819
  this.checkout = new IkasCheckout();
22819
22820
  this.checkoutSettings = new IkasCheckoutSettings();
@@ -22958,12 +22959,14 @@ var CheckoutViewModel = /** @class */ (function () {
22958
22959
  return __generator(this, function (_b) {
22959
22960
  switch (_b.label) {
22960
22961
  case 0:
22962
+ if (!!this.merchantSettings) return [3 /*break*/, 2];
22961
22963
  merchantId = decodeBase64(IkasStorefrontConfig.config.apiKey || "");
22962
22964
  _a = this;
22963
22965
  return [4 /*yield*/, IkasMerchantAPI.listMerchantSettings(merchantId)];
22964
22966
  case 1:
22965
22967
  _a.merchantSettings = _b.sent();
22966
- return [2 /*return*/];
22968
+ _b.label = 2;
22969
+ case 2: return [2 /*return*/];
22967
22970
  }
22968
22971
  });
22969
22972
  }); };
@@ -23652,6 +23655,8 @@ var CheckoutViewModel = /** @class */ (function () {
23652
23655
  this.privacyPolicy = privacyPolicy;
23653
23656
  this.termsOfService = termsOfService;
23654
23657
  this.t = t;
23658
+ if (merchantSettings)
23659
+ this.merchantSettings = merchantSettings;
23655
23660
  this.isTermsAndConditionsChecked = this.checkoutSettings.isTermsAndConditionsDefaultChecked;
23656
23661
  this.store.cartStore.cart = this.checkout.cart;
23657
23662
  this.init();
@@ -35697,6 +35702,13 @@ var IkasProductDetail = /** @class */ (function () {
35697
35702
  enumerable: false,
35698
35703
  configurable: true
35699
35704
  });
35705
+ Object.defineProperty(IkasProductDetail.prototype, "hasStock", {
35706
+ get: function () {
35707
+ return this.product.variants.some(function (v) { return v.stock > 0; });
35708
+ },
35709
+ enumerable: false,
35710
+ configurable: true
35711
+ });
35700
35712
  Object.defineProperty(IkasProductDetail.prototype, "displayedVariantTypes", {
35701
35713
  get: function () {
35702
35714
  var _this = this;
@@ -41221,100 +41233,122 @@ var ThemeComponent = mobxReactLite.observer(function (_a) {
41221
41233
  });
41222
41234
 
41223
41235
  var IkasPageHead = mobxReactLite.observer(function (_a) {
41224
- var _b;
41225
- var page = _a.page, pageTitle = _a.pageTitle, description = _a.description, pageSpecificDataStr = _a.pageSpecificDataStr, props = __rest(_a, ["page", "pageTitle", "description", "pageSpecificDataStr"]);
41226
- var ogpMetas = [];
41227
- var schemas = [];
41228
- var isCanonicalLinkAdd = false;
41229
- var canonicalHref = "";
41236
+ var pageType = _a.pageType, pageTitle = _a.pageTitle, pageDescription = _a.pageDescription, pageSpecificDataStr = _a.pageSpecificDataStr, merchantSettingsStr = _a.merchantSettingsStr, addOgpMetas = _a.addOgpMetas;
41237
+ var isBrowser = typeof window !== "undefined";
41238
+ // NextJS sets the lang with routing ids, this overrides it with the locale
41230
41239
  React.useEffect(function () {
41231
41240
  var _a;
41232
41241
  document.documentElement.lang =
41233
41242
  ((_a = IkasStorefrontConfig.routings.find(function (r) { return r.id === IkasStorefrontConfig.storefrontRoutingId; })) === null || _a === void 0 ? void 0 : _a.locale) || "tr";
41234
41243
  }, []);
41235
- if (props.addOgpMetas) {
41236
- ogpMetas.push({
41237
- property: "og:type",
41238
- content: "website",
41239
- });
41240
- if (typeof window !== "undefined") {
41241
- ogpMetas.push({
41242
- property: "og:site_name",
41243
- content: "https://" + window.location.hostname,
41244
- });
41244
+ var merchantSettings = React.useMemo(function () {
41245
+ if (merchantSettingsStr)
41246
+ return new IkasMerchantSettings(JSON.parse(merchantSettingsStr));
41247
+ }, [merchantSettingsStr]);
41248
+ var pageSpecificData = React.useMemo(function () {
41249
+ if (!pageSpecificDataStr)
41250
+ return pageSpecificDataStr;
41251
+ var parsedData = JSON.parse(pageSpecificDataStr);
41252
+ switch (pageType) {
41253
+ case exports.IkasThemePageType.PRODUCT:
41254
+ return new IkasProductDetail(parsedData.product, parsedData.selectedVariantValues);
41255
+ case exports.IkasThemePageType.CATEGORY:
41256
+ return new IkasCategory(parsedData);
41257
+ case exports.IkasThemePageType.BRAND:
41258
+ return new IkasBrand(parsedData);
41259
+ default:
41260
+ return pageSpecificDataStr;
41261
+ }
41262
+ }, [pageSpecificDataStr]);
41263
+ var href = React.useMemo(function () {
41264
+ if (pageSpecificData && pageSpecificData.href) {
41265
+ return "https://" + IkasStorefrontConfig.domain + pageSpecificData.href;
41245
41266
  }
41246
- if (pageTitle) {
41267
+ }, [pageSpecificData]);
41268
+ var ogpMetas = React.useMemo(function () {
41269
+ var _a;
41270
+ var ogpMetas = [];
41271
+ if (addOgpMetas) {
41247
41272
  ogpMetas.push({
41248
- property: "og:title",
41249
- content: pageTitle,
41273
+ property: "og:type",
41274
+ content: "website",
41250
41275
  });
41251
- }
41252
- if (description) {
41253
41276
  ogpMetas.push({
41254
- property: "og:description",
41255
- content: description,
41277
+ property: "og:site_name",
41278
+ content: "https://" + IkasStorefrontConfig.domain,
41256
41279
  });
41257
- }
41258
- if (typeof window !== "undefined") {
41280
+ if (pageTitle) {
41281
+ ogpMetas.push({
41282
+ property: "og:title",
41283
+ content: pageTitle,
41284
+ });
41285
+ }
41286
+ if (pageDescription) {
41287
+ ogpMetas.push({
41288
+ property: "og:description",
41289
+ content: pageDescription,
41290
+ });
41291
+ }
41259
41292
  ogpMetas.push({
41260
41293
  property: "og:url",
41261
- content: window.location.href,
41294
+ content: href ||
41295
+ (isBrowser ? window.location.href : "") ||
41296
+ "https://" + IkasStorefrontConfig.domain,
41262
41297
  });
41263
- }
41264
- if (props.merchantSettings) {
41265
- if (pageSpecificDataStr && (page === null || page === void 0 ? void 0 : page.type) === exports.IkasThemePageType.PRODUCT) {
41266
- var productDetailParsed = JSON.parse(pageSpecificDataStr);
41267
- var productDetail = new IkasProductDetail(productDetailParsed.product, productDetailParsed.selectedVariantValues);
41298
+ if (pageSpecificData && pageType === exports.IkasThemePageType.PRODUCT) {
41299
+ var productDetail = pageSpecificData;
41268
41300
  if (productDetail.selectedVariant.mainImage) {
41269
41301
  ogpMetas.push({
41270
41302
  property: "og:image",
41271
- content: (_b = productDetail.selectedVariant.mainImage) === null || _b === void 0 ? void 0 : _b.src,
41303
+ content: (_a = productDetail.selectedVariant.mainImage) === null || _a === void 0 ? void 0 : _a.src,
41272
41304
  });
41273
41305
  }
41274
41306
  }
41275
- else {
41276
- var merchantSettings = new IkasMerchantSettings(JSON.parse(props.merchantSettings));
41307
+ else if (merchantSettings) {
41277
41308
  ogpMetas.push({
41278
41309
  property: "og:image",
41279
41310
  content: merchantSettings.logo.src,
41280
41311
  });
41281
41312
  }
41282
41313
  }
41283
- }
41284
- if (props.merchantSettings) {
41285
- // for schema.org
41286
- var merchantSettings = new IkasMerchantSettings(JSON.parse(props.merchantSettings));
41287
- var websiteSchema = createWebsiteSchema();
41288
- var storeSchema = createStoreSchema(merchantSettings);
41289
- schemas.push(websiteSchema);
41290
- schemas.push(storeSchema);
41291
- }
41292
- if (pageSpecificDataStr && (page === null || page === void 0 ? void 0 : page.type) === exports.IkasThemePageType.PRODUCT) {
41293
- var productDetailParsed = JSON.parse(pageSpecificDataStr);
41294
- var productDetail = new IkasProductDetail(productDetailParsed.product, productDetailParsed.selectedVariantValues);
41295
- if (typeof window !== "undefined" && productDetail.product.hasVariant) {
41296
- isCanonicalLinkAdd =
41297
- window.location.pathname !== productDetail.product.href;
41298
- canonicalHref =
41299
- "https://" + window.location.hostname + productDetail.product.href;
41314
+ return ogpMetas;
41315
+ }, [
41316
+ pageTitle,
41317
+ pageSpecificData,
41318
+ href,
41319
+ pageDescription,
41320
+ merchantSettings,
41321
+ addOgpMetas,
41322
+ merchantSettings,
41323
+ ]);
41324
+ var schemas = React.useMemo(function () {
41325
+ var schemas = [];
41326
+ if (merchantSettings) {
41327
+ var websiteSchema = createWebsiteSchema();
41328
+ var storeSchema = createStoreSchema(merchantSettings);
41329
+ schemas.push(websiteSchema);
41330
+ schemas.push(storeSchema);
41300
41331
  }
41301
- var schema = createProductSchema(productDetail);
41302
- if (schema)
41303
- schemas.push(schema);
41304
- }
41305
- if (pageSpecificDataStr && (page === null || page === void 0 ? void 0 : page.type) === exports.IkasThemePageType.CATEGORY) {
41306
- var categorySchema = createCategorySchema(pageSpecificDataStr);
41307
- if (categorySchema)
41308
- schemas.push(categorySchema);
41309
- var categoryBreadcrumbSchema = createCategoryBreadcrumbSchema(pageSpecificDataStr);
41310
- if (categoryBreadcrumbSchema)
41311
- schemas.push(categoryBreadcrumbSchema);
41312
- }
41332
+ if (pageSpecificData && pageType === exports.IkasThemePageType.PRODUCT) {
41333
+ var productDetail = pageSpecificData;
41334
+ var schema = createProductSchema(productDetail);
41335
+ if (schema)
41336
+ schemas.push(schema);
41337
+ }
41338
+ if (pageSpecificData && pageType === exports.IkasThemePageType.CATEGORY) {
41339
+ var categorySchema = createCategorySchema(pageSpecificData);
41340
+ var categoryBreadcrumbSchema = createCategoryBreadcrumbSchema(pageSpecificData);
41341
+ if (categorySchema)
41342
+ schemas.push(categorySchema);
41343
+ if (categoryBreadcrumbSchema)
41344
+ schemas.push(categoryBreadcrumbSchema);
41345
+ }
41346
+ return schemas;
41347
+ }, [pageSpecificData, merchantSettings]);
41313
41348
  return (React.createElement(Head__default['default'], null,
41314
41349
  React.createElement("title", null, pageTitle || ""),
41315
- React.createElement("meta", { name: "description", content: description || "" }),
41316
- isCanonicalLinkAdd && React.createElement("link", { rel: "canonical", href: canonicalHref }),
41317
- !!props.addOgpMetas &&
41350
+ React.createElement("meta", { name: "description", content: pageDescription || "" }),
41351
+ !!addOgpMetas &&
41318
41352
  ogpMetas.map(function (ogpMeta, index) { return (React.createElement("meta", { key: ogpMeta.content + "-" + index, property: ogpMeta.property, content: ogpMeta.content })); }),
41319
41353
  !!schemas.length &&
41320
41354
  schemas.map(function (schema, index) { return (React.createElement("script", { key: index, type: "application/ld+json", dangerouslySetInnerHTML: {
@@ -41322,66 +41356,30 @@ var IkasPageHead = mobxReactLite.observer(function (_a) {
41322
41356
  } })); })));
41323
41357
  });
41324
41358
  function createWebsiteSchema() {
41325
- var _a;
41326
- var hostname = "";
41327
- if (typeof window !== "undefined") {
41328
- hostname = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.hostname;
41329
- }
41330
41359
  return {
41331
41360
  "@context": "https://schema.org",
41332
41361
  "@type": "Website",
41333
- url: "https://" + hostname,
41362
+ url: "https://" + IkasStorefrontConfig.domain,
41334
41363
  };
41335
41364
  }
41336
41365
  function createStoreSchema(merchantSettings) {
41337
- var _a, _b;
41338
- var hostname = "";
41339
- if (typeof window !== "undefined") {
41340
- hostname = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.hostname;
41341
- }
41366
+ var _a;
41342
41367
  return {
41343
41368
  "@context": "https://schema.org",
41344
41369
  "@type": "Store",
41345
41370
  name: merchantSettings === null || merchantSettings === void 0 ? void 0 : merchantSettings.merchantName,
41346
- logo: (_b = merchantSettings === null || merchantSettings === void 0 ? void 0 : merchantSettings.logo) === null || _b === void 0 ? void 0 : _b.src,
41347
- url: "https://" + hostname,
41371
+ logo: (_a = merchantSettings === null || merchantSettings === void 0 ? void 0 : merchantSettings.logo) === null || _a === void 0 ? void 0 : _a.src,
41372
+ url: "https://" + IkasStorefrontConfig.domain,
41348
41373
  };
41349
41374
  }
41350
41375
  function createProductSchema(productDetail) {
41351
41376
  var _a, _b;
41352
41377
  try {
41353
41378
  var isBrowser = typeof window !== "undefined";
41354
- // TODO this code copy-pasted, organize this block
41355
41379
  if (isBrowser) {
41356
- var urlParams_1 = new URLSearchParams(window.location.search);
41357
- var vid_1 = urlParams_1.get("vid");
41358
- if (vid_1) {
41359
- var variant = productDetail.product.variants.find(function (v) { return v.id === vid_1; });
41360
- if (variant) {
41361
- productDetail.selectedVariantValues = variant.variantValues;
41362
- }
41363
- }
41364
- else {
41365
- var productVariantTypeSlugs = productDetail.product.variantTypes.map(function (vt) { return vt.variantType.slug; });
41366
- var selectedVariantValues_1 = [];
41367
- productVariantTypeSlugs.forEach(function (slug, vtIndex) {
41368
- var productVariantType = productDetail.product.variantTypes[vtIndex];
41369
- var variantValueSlug = urlParams_1.get(slug);
41370
- if (variantValueSlug) {
41371
- var variantValue = productVariantType.variantType.values.find(function (v) { return v.slug === variantValueSlug; });
41372
- if (variantValue)
41373
- selectedVariantValues_1.push(variantValue);
41374
- }
41375
- });
41376
- if (selectedVariantValues_1.length ===
41377
- productDetail.selectedVariantValues.length) {
41378
- productDetail.selectedVariantValues = selectedVariantValues_1;
41379
- }
41380
- }
41380
+ IkasPageDataProvider._initProductDetailOnBrowser(productDetail);
41381
41381
  }
41382
- var productUrl = isBrowser
41383
- ? "https://" + window.location.hostname + productDetail.href
41384
- : "";
41382
+ var productUrl = "https://" + IkasStorefrontConfig.domain + productDetail.href;
41385
41383
  return {
41386
41384
  "@context": "https://schema.org/",
41387
41385
  "@type": "Product",
@@ -41412,14 +41410,10 @@ function createProductSchema(productDetail) {
41412
41410
  }
41413
41411
  catch (err) { }
41414
41412
  }
41415
- function createCategorySchema(pageSpecificDataStr) {
41413
+ function createCategorySchema(category) {
41416
41414
  var _a, _b, _c;
41417
41415
  try {
41418
- var categoryParsed = JSON.parse(pageSpecificDataStr);
41419
- var category = new IkasCategory(categoryParsed);
41420
- var categoryUrl = typeof window !== undefined
41421
- ? "https://" + window.location.hostname + category.href
41422
- : "";
41416
+ var categoryUrl = "https://" + IkasStorefrontConfig.domain + category.href;
41423
41417
  return {
41424
41418
  "@context": "http://schema.org",
41425
41419
  "@type": "CollectionPage",
@@ -41431,10 +41425,8 @@ function createCategorySchema(pageSpecificDataStr) {
41431
41425
  }
41432
41426
  catch (_d) { }
41433
41427
  }
41434
- function createCategoryBreadcrumbSchema(pageSpecificDataStr) {
41428
+ function createCategoryBreadcrumbSchema(category) {
41435
41429
  try {
41436
- var categoryParsed = JSON.parse(pageSpecificDataStr);
41437
- var category = new IkasCategory(categoryParsed);
41438
41430
  return {
41439
41431
  "@context": "http://schema.org",
41440
41432
  "@type": "BreadcrumbList",
@@ -41442,9 +41434,7 @@ function createCategoryBreadcrumbSchema(pageSpecificDataStr) {
41442
41434
  "@type": "ListItem",
41443
41435
  position: index + 1,
41444
41436
  name: categoryPath.name,
41445
- item: typeof window !== undefined
41446
- ? "https://" + window.location.hostname + categoryPath.href
41447
- : "",
41437
+ item: "https://" + IkasStorefrontConfig.domain + categoryPath.href,
41448
41438
  }); }),
41449
41439
  };
41450
41440
  }
@@ -41454,13 +41444,15 @@ function createCategoryBreadcrumbSchema(pageSpecificDataStr) {
41454
41444
  var styles = {"IkasPage":"style-module_IkasPage__ATOib"};
41455
41445
 
41456
41446
  var IkasPage = mobxReactLite.observer(function (_a) {
41457
- var propValues = _a.propValues, page = _a.page, pageSpecificDataStr = _a.pageSpecificDataStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, addOgpMetas = _a.addOgpMetas;
41447
+ 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;
41448
+ IkasStorefrontConfig.initWithJson(configJson);
41458
41449
  var store = IkasStorefrontConfig.store;
41459
- var settings = React.useState(new IkasThemeSettings(JSON.parse(settingsStr)))[0];
41450
+ var router$1 = router.useRouter();
41460
41451
  var _b = React.useState(false), mounted = _b[0], setMounted = _b[1];
41461
- if (page) {
41462
- store.currentPageType = page.type;
41463
- }
41452
+ var _c = React.useState(false), isBrowser = _c[0], setIsBrowser = _c[1];
41453
+ var settings = React.useState(new IkasThemeSettings(JSON.parse(settingsStr)))[0];
41454
+ var _d = React.useState(IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr)), propValues = _d[0], setPropValues = _d[1];
41455
+ store.currentPageType = pageType;
41464
41456
  React.useEffect(function () {
41465
41457
  //@ts-ignore
41466
41458
  store.setSettings(settingsStr);
@@ -41469,16 +41461,22 @@ var IkasPage = mobxReactLite.observer(function (_a) {
41469
41461
  store.checkLocalization();
41470
41462
  setMounted(true);
41471
41463
  }, []);
41464
+ React.useEffect(function () {
41465
+ if (reInitOnBrowser)
41466
+ setIsBrowser(typeof window !== "undefined");
41467
+ handleAnalytics(pageType, pageSpecificDataStr, store);
41468
+ }, [pageType, pageSpecificDataStr]);
41469
+ React.useEffect(function () {
41470
+ setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr, isBrowser));
41471
+ }, [isBrowser, propValuesStr, pageType, settingsStr]);
41472
41472
  var headerComponentPropValue = propValues.find(function (pv) { return pv.component.isHeader; });
41473
41473
  var footerComponentPropValue = propValues.find(function (pv) { return pv.component.isFooter; });
41474
41474
  var others = propValues.filter(function (pv) { return !pv.component.isHeader && !pv.component.isFooter; }) || [];
41475
41475
  var visibilityStyle = {
41476
41476
  visibility: mounted ? "visible" : "hidden",
41477
41477
  };
41478
- if (!page)
41479
- return null;
41480
41478
  return (React.createElement(React.Fragment, null,
41481
- React.createElement(IkasPageHead, { page: page, pageTitle: page.pageTitle, description: page.description, pageSpecificDataStr: pageSpecificDataStr, merchantSettings: merchantSettings, addOgpMetas: addOgpMetas }),
41479
+ React.createElement(IkasPageHead, { pageType: pageType, pageTitle: pageTitle, pageDescription: pageDescription, pageSpecificDataStr: pageSpecificDataStr, merchantSettingsStr: merchantSettingsStr, addOgpMetas: addOgpMetas }),
41482
41480
  React.createElement("div", { style: visibilityStyle, className: styles.IkasPage },
41483
41481
  React.createElement("div", null,
41484
41482
  headerComponentPropValue &&
@@ -41491,7 +41489,35 @@ var IkasPage = mobxReactLite.observer(function (_a) {
41491
41489
  });
41492
41490
  var renderComponent = function (pageComponentPropValue, settings, index) {
41493
41491
  return (React.createElement(ThemeComponent, { key: pageComponentPropValue.pageComponent.id, index: index, pageComponentPropValue: pageComponentPropValue, settings: settings }));
41494
- };
41492
+ };
41493
+ function handleAnalytics(pageType, pageSpecificDataStr, store) {
41494
+ try {
41495
+ if (pageType === exports.IkasThemePageType.PRODUCT) {
41496
+ var productDetailParsed = JSON.parse(pageSpecificDataStr);
41497
+ var productDetail = new IkasProductDetail(productDetailParsed.product, productDetailParsed.selectedVariantValues);
41498
+ Analytics.productView(productDetail);
41499
+ // @ts-ignore
41500
+ IkasStorefrontConfig.store.customerStore.onProductView(productDetail.product.id, productDetail.selectedVariant.id);
41501
+ }
41502
+ if (pageType === exports.IkasThemePageType.CATEGORY) {
41503
+ var category = JSON.parse(pageSpecificDataStr);
41504
+ var categoryPath = category.path.map(function (cat) { return cat.name; }).join(" > ");
41505
+ if (category.path.length > 0) {
41506
+ categoryPath = categoryPath + " > " + category.name;
41507
+ }
41508
+ else {
41509
+ categoryPath = category.name;
41510
+ }
41511
+ Analytics.viewCategory(categoryPath, category);
41512
+ }
41513
+ if (pageType === exports.IkasThemePageType.CART) {
41514
+ Analytics.viewCart(store.cartStore.cart);
41515
+ }
41516
+ }
41517
+ catch (err) {
41518
+ console.error(err);
41519
+ }
41520
+ }
41495
41521
 
41496
41522
  var IkasPageDataProvider = /** @class */ (function () {
41497
41523
  function IkasPageDataProvider(theme, pageParams, pageType) {
@@ -41520,15 +41546,18 @@ var IkasPageDataProvider = /** @class */ (function () {
41520
41546
  });
41521
41547
  Object.defineProperty(IkasPageDataProvider.prototype, "nextPageData", {
41522
41548
  get: function () {
41549
+ var _a, _b, _c;
41523
41550
  return {
41524
41551
  props: {
41525
41552
  propValuesStr: JSON.stringify(this.pageComponentPropValues),
41526
41553
  pageSpecificDataStr: this.pageSpecificData
41527
41554
  ? JSON.stringify(this.pageSpecificData || {})
41528
41555
  : "",
41529
- page: mobx.toJS(this.page) || null,
41556
+ pageType: ((_a = this.page) === null || _a === void 0 ? void 0 : _a.type) || exports.IkasThemePageType.CUSTOM,
41557
+ pageTitle: ((_b = this.page) === null || _b === void 0 ? void 0 : _b.pageTitle) || null,
41558
+ pageDescription: ((_c = this.page) === null || _c === void 0 ? void 0 : _c.description) || null,
41530
41559
  settingsStr: JSON.stringify(this.theme.settings || {}),
41531
- merchantSettings: this.merchantSettings
41560
+ merchantSettingsStr: this.merchantSettings
41532
41561
  ? JSON.stringify(this.merchantSettings)
41533
41562
  : null,
41534
41563
  configJson: IkasStorefrontConfig.getJson(),
@@ -42055,33 +42084,36 @@ var IkasPageDataProvider = /** @class */ (function () {
42055
42084
  var _propValue = propValue;
42056
42085
  var productDetail = new IkasProductDetail(_propValue.product, _propValue.selectedVariantValues);
42057
42086
  if (isBrowser) {
42058
- var urlParams_1 = new URLSearchParams(window.location.search);
42059
- var vid_1 = urlParams_1.get("vid");
42060
- if (vid_1) {
42061
- var variant = productDetail.product.variants.find(function (v) { return v.id === vid_1; });
42062
- if (variant) {
42063
- productDetail.selectedVariantValues = variant.variantValues;
42064
- }
42087
+ IkasPageDataProvider._initProductDetailOnBrowser(productDetail);
42088
+ }
42089
+ return new IkasProductDetail(productDetail.product, productDetail.selectedVariantValues, router);
42090
+ };
42091
+ IkasPageDataProvider._initProductDetailOnBrowser = function (productDetail) {
42092
+ var urlParams = new URLSearchParams(window.location.search);
42093
+ var vid = urlParams.get("vid");
42094
+ if (vid) {
42095
+ var variant = productDetail.product.variants.find(function (v) { return v.id === vid; });
42096
+ if (variant) {
42097
+ productDetail.selectedVariantValues = variant.variantValues;
42065
42098
  }
42066
- else {
42067
- var productVariantTypeSlugs = productDetail.product.variantTypes.map(function (vt) { return vt.variantType.slug; });
42068
- var selectedVariantValues_1 = [];
42069
- productVariantTypeSlugs.forEach(function (slug, vtIndex) {
42070
- var productVariantType = productDetail.product.variantTypes[vtIndex];
42071
- var variantValueSlug = urlParams_1.get(slug);
42072
- if (variantValueSlug) {
42073
- var variantValue = productVariantType.variantType.values.find(function (v) { return v.slug === variantValueSlug; });
42074
- if (variantValue)
42075
- selectedVariantValues_1.push(variantValue);
42076
- }
42077
- });
42078
- if (selectedVariantValues_1.length ===
42079
- productDetail.selectedVariantValues.length) {
42080
- productDetail.selectedVariantValues = selectedVariantValues_1;
42099
+ }
42100
+ else {
42101
+ var productVariantTypeSlugs = productDetail.product.variantTypes.map(function (vt) { return vt.variantType.slug; });
42102
+ var selectedVariantValues_1 = [];
42103
+ productVariantTypeSlugs.forEach(function (slug, vtIndex) {
42104
+ var productVariantType = productDetail.product.variantTypes[vtIndex];
42105
+ var variantValueSlug = urlParams.get(slug);
42106
+ if (variantValueSlug) {
42107
+ var variantValue = productVariantType.variantType.values.find(function (v) { return v.slug === variantValueSlug; });
42108
+ if (variantValue)
42109
+ selectedVariantValues_1.push(variantValue);
42081
42110
  }
42111
+ });
42112
+ if (selectedVariantValues_1.length ===
42113
+ productDetail.selectedVariantValues.length) {
42114
+ productDetail.selectedVariantValues = selectedVariantValues_1;
42082
42115
  }
42083
42116
  }
42084
- return new IkasProductDetail(productDetail.product, productDetail.selectedVariantValues, router);
42085
42117
  };
42086
42118
  IkasPageDataProvider.initAttributePropValue = function (prop, propValue, pageComponentPropValue) {
42087
42119
  pageComponentPropValue.propValues[prop.name] = IkasPageDataProvider._initAttributePropValue(propValue);
@@ -69658,11 +69690,11 @@ var FullscreenLoading = function () {
69658
69690
 
69659
69691
  var IkasCheckoutPage = function (_a) {
69660
69692
  var _b, _c, _d;
69661
- var checkout = _a.checkout, checkoutSettings = _a.checkoutSettings, customizationProps = _a.customizationProps, returnPolicy = _a.returnPolicy, privacyPolicy = _a.privacyPolicy, termsOfService = _a.termsOfService;
69693
+ var checkout = _a.checkout, checkoutSettings = _a.checkoutSettings, merchantSettings = _a.merchantSettings, customizationProps = _a.customizationProps, returnPolicy = _a.returnPolicy, privacyPolicy = _a.privacyPolicy, termsOfService = _a.termsOfService;
69662
69694
  var t = useTranslation().t;
69663
69695
  var router$1 = router.useRouter();
69664
69696
  var vm = React.useState(function () {
69665
- return new CheckoutViewModel(checkout, checkoutSettings, router$1, returnPolicy, privacyPolicy, termsOfService, t);
69697
+ return new CheckoutViewModel(checkout, checkoutSettings, merchantSettings, router$1, returnPolicy, privacyPolicy, termsOfService, t);
69666
69698
  })[0];
69667
69699
  if (vm.step === CheckoutStep.PAYMENT) {
69668
69700
  Analytics.disableHTML();
@@ -69700,9 +69732,9 @@ var IkasCheckoutPage = function (_a) {
69700
69732
  return null;
69701
69733
  }
69702
69734
  return (React.createElement(React.Fragment, null,
69703
- React.createElement(IkasPageHead, { pageTitle: (((_d = vm.merchantSettings) === null || _d === void 0 ? void 0 : _d.merchantName) || "") +
69735
+ React.createElement(IkasPageHead, { pageType: exports.IkasThemePageType.CHECKOUT, pageTitle: (((_d = vm.merchantSettings) === null || _d === void 0 ? void 0 : _d.merchantName) || "") +
69704
69736
  " - " +
69705
- t("checkout-page:securePayment"), description: t("checkout-page:securePayment") }),
69737
+ t("checkout-page:securePayment"), pageDescription: t("checkout-page:securePayment") }),
69706
69738
  React.createElement("div", { id: "Checkout", className: styles$5.CheckoutPage },
69707
69739
  React.createElement(ReactTooltip, { place: "top", type: "dark", effect: "solid", arrowColor: "transparent", multiline: true, className: styles$5.ReactTooltipWrap, globalEventOff: "touchstart" }),
69708
69740
  React.createElement("div", { className: styles$5.Left },
@@ -69921,7 +69953,7 @@ var IkasPageEditor = mobxReactLite.observer(function () {
69921
69953
  pc.componentId !== ((_d = (_c = vm.theme) === null || _c === void 0 ? void 0 : _c.footerComponent) === null || _d === void 0 ? void 0 : _d.id);
69922
69954
  });
69923
69955
  return (React.createElement(React.Fragment, null,
69924
- !!vm.page && (React.createElement(IkasPageHead, { pageTitle: vm.page.pageTitle, description: vm.page.description })),
69956
+ !!vm.page && (React.createElement(IkasPageHead, { pageType: vm.page.type, pageTitle: vm.page.pageTitle, pageDescription: vm.page.description })),
69925
69957
  React.createElement("div", { style: pageStyle },
69926
69958
  React.createElement("div", null,
69927
69959
  !!headerPageComponent && (React.createElement(ThemeEditorComponent, { key: headerPageComponent.id, vm: vm, pageComponent: headerPageComponent })), others === null || others === void 0 ? void 0 :
@@ -70069,7 +70101,7 @@ var SettingsHelper = /** @class */ (function () {
70069
70101
  SettingsHelper.getSettings = function (locale) {
70070
70102
  var _this = this;
70071
70103
  return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
70072
- var isLocal, storefrontResponse, storefront, localTheme, settings, storefront_1, salesChannel_1, localizationMap, storefrontJSScripts_1, themeLocalizationPath, routing_1;
70104
+ var isLocal, storefrontResponse, storefront, localTheme, settings, storefront_1, salesChannel_1, localizationMap, storefrontJSScripts_1, domain_1, themeLocalizationPath, routing_1;
70073
70105
  return __generator(this, function (_a) {
70074
70106
  switch (_a.label) {
70075
70107
  case 0:
@@ -70103,6 +70135,7 @@ var SettingsHelper = /** @class */ (function () {
70103
70135
  favicon: localTheme.settings.favicon,
70104
70136
  stockPreference: localTheme.settings.stockPreference,
70105
70137
  storefrontJSScripts: [],
70138
+ domain: "",
70106
70139
  });
70107
70140
  return [3 /*break*/, 5];
70108
70141
  case 3: return [4 /*yield*/, SettingsHelper.readSettingsFile()];
@@ -70114,6 +70147,7 @@ var SettingsHelper = /** @class */ (function () {
70114
70147
  salesChannel_1 = new IkasSalesChannel(settings.salesChannel);
70115
70148
  localizationMap = settings.localizationMap;
70116
70149
  storefrontJSScripts_1 = settings.storefrontJSScripts || [];
70150
+ domain_1 = settings.domain;
70117
70151
  themeLocalizationPath = localizationMap[locale];
70118
70152
  routing_1 = storefront_1.routings.find(function (r) { return r.id === locale || r.path === locale; });
70119
70153
  if (!themeLocalizationPath || !routing_1) {
@@ -70140,6 +70174,7 @@ var SettingsHelper = /** @class */ (function () {
70140
70174
  favicon: favicon,
70141
70175
  stockPreference: stockPreference,
70142
70176
  storefrontJSScripts: storefrontJSScripts_1,
70177
+ domain: domain_1,
70143
70178
  });
70144
70179
  });
70145
70180
  _a.label = 5;
@@ -70151,7 +70186,7 @@ var SettingsHelper = /** @class */ (function () {
70151
70186
  SettingsHelper.getPageData = function (context, isServer, pageType, possiblePageTypes, isEditor) {
70152
70187
  var _a, _b;
70153
70188
  return __awaiter(this, void 0, void 0, function () {
70154
- 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;
70189
+ 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;
70155
70190
  return __generator(this, function (_c) {
70156
70191
  switch (_c.label) {
70157
70192
  case 0:
@@ -70177,7 +70212,7 @@ var SettingsHelper = /** @class */ (function () {
70177
70212
  notFound: true,
70178
70213
  }];
70179
70214
  }
70180
- storefront = settings.storefront, themeLocalization = settings.themeLocalization, salesChannel = settings.salesChannel, routing = settings.routing, favicon = settings.favicon, stockPreference = settings.stockPreference, storefrontJSScripts = settings.storefrontJSScripts;
70215
+ storefront = settings.storefront, themeLocalization = settings.themeLocalization, salesChannel = settings.salesChannel, routing = settings.routing, favicon = settings.favicon, stockPreference = settings.stockPreference, storefrontJSScripts = settings.storefrontJSScripts, domain = settings.domain;
70181
70216
  IkasStorefrontConfig.storefrontId = storefront.id;
70182
70217
  IkasStorefrontConfig.storefrontRoutingId = routing.id;
70183
70218
  IkasStorefrontConfig.storefrontThemeId = storefront.mainStorefrontThemeId;
@@ -70191,6 +70226,7 @@ var SettingsHelper = /** @class */ (function () {
70191
70226
  IkasStorefrontConfig.favicon = favicon || null;
70192
70227
  IkasStorefrontConfig.stockPreference = stockPreference || null;
70193
70228
  IkasStorefrontConfig.storefrontJSScripts = storefrontJSScripts || [];
70229
+ IkasStorefrontConfig.domain = domain;
70194
70230
  provider = new IkasPageDataProvider(themeLocalization.themeJson, context.params, pageType);
70195
70231
  provider.possiblePageTypes = possiblePageTypes;
70196
70232
  if (!!isEditor) return [3 /*break*/, 3];
@@ -70209,13 +70245,13 @@ var SettingsHelper = /** @class */ (function () {
70209
70245
  ? provider.theme.components.map(function (c) { return c.id; })
70210
70246
  : provider.page.components.map(function (pc) { return pc.componentId; });
70211
70247
  components = themeLocalization.themeJson.components.filter(function (c) { return isEditor || componentIds_1.includes(c.id); });
70212
- componentDirs = __spreadArrays([
70213
- "common",
70214
- "checkout-page"
70215
- ], components.map(function (c) { return c.dir; }));
70248
+ namespaces = __spreadArrays(["common"], components.map(function (c) { return c.dir; }));
70249
+ if (pageType === exports.IkasThemePageType.CHECKOUT || isEditor) {
70250
+ namespaces.push("checkout-page");
70251
+ }
70216
70252
  nextI18nConf = serverRuntimeConfig.nextI18nConf;
70217
70253
  currentLocale = routing.locale;
70218
- i18nReader = new I18NFileReader(currentLocale, componentDirs, isLocal ? undefined : nextI18nConf.localePath);
70254
+ i18nReader = new I18NFileReader(currentLocale, namespaces, isLocal ? undefined : nextI18nConf.localePath);
70219
70255
  return [4 /*yield*/, i18nReader.read()];
70220
70256
  case 4:
70221
70257
  translations = _c.sent();
@@ -70293,15 +70329,10 @@ var SettingsHelper = /** @class */ (function () {
70293
70329
  return SettingsHelper;
70294
70330
  }());
70295
70331
 
70296
- var Page = function (_a) {
70297
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70298
- IkasStorefrontConfig.initWithJson(configJson);
70299
- var router$1 = router.useRouter();
70300
- var propValues = React.useMemo(function () {
70301
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70302
- }, [propValuesStr]);
70303
- return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
70332
+ var Page = function (props) {
70333
+ return React.createElement(IkasPage, __assign({}, props));
70304
70334
  };
70335
+ var home = mobxReactLite.observer(Page);
70305
70336
  var getStaticProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70306
70337
  return __generator(this, function (_a) {
70307
70338
  switch (_a.label) {
@@ -70311,29 +70342,17 @@ var getStaticProps = function (context) { return __awaiter(void 0, void 0, void
70311
70342
  });
70312
70343
  }); };
70313
70344
 
70314
- var home = /*#__PURE__*/Object.freeze({
70345
+ var home$1 = /*#__PURE__*/Object.freeze({
70315
70346
  __proto__: null,
70316
- 'default': Page,
70347
+ 'default': home,
70317
70348
  getStaticProps: getStaticProps
70318
70349
  });
70319
70350
 
70320
- var Page$1 = function (_a) {
70321
- var page = _a.page, pageSpecificDataStr = _a.pageSpecificDataStr, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70322
- IkasStorefrontConfig.initWithJson(configJson);
70323
- var router$1 = router.useRouter();
70324
- var _b = React.useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
70325
- var _c = React.useState(IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr)), propValues = _c[0], setPropValues = _c[1];
70326
- React.useEffect(function () {
70327
- setIsBrowser(typeof window !== "undefined");
70328
- handleAnalytics(page, pageSpecificDataStr);
70329
- }, [page, pageSpecificDataStr]);
70330
- React.useEffect(function () {
70331
- setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr, isBrowser));
70332
- }, [isBrowser, propValuesStr, page]);
70333
- return (React.createElement(IkasPage, { page: page, propValues: propValues, pageSpecificDataStr: pageSpecificDataStr, settingsStr: settingsStr, merchantSettings: merchantSettings, addOgpMetas: true }));
70351
+ var Page$1 = function (props) {
70352
+ return React.createElement(IkasPage, __assign({}, props, { addOgpMetas: true, reInitOnBrowser: true }));
70334
70353
  };
70335
70354
  var index$1 = mobxReactLite.observer(Page$1);
70336
- var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70355
+ var getStaticPaths = function () { return __awaiter(void 0, void 0, void 0, function () {
70337
70356
  return __generator(this, function (_a) {
70338
70357
  return [2 /*return*/, {
70339
70358
  paths: [],
@@ -70352,35 +70371,7 @@ var getStaticProps$1 = function (context) { return __awaiter(void 0, void 0, voi
70352
70371
  case 1: return [2 /*return*/, _a.sent()];
70353
70372
  }
70354
70373
  });
70355
- }); };
70356
- function handleAnalytics(page, pageSpecificDataStr) {
70357
- var isServer = typeof window === "undefined";
70358
- if (!isServer) {
70359
- try {
70360
- if (page.type === exports.IkasThemePageType.PRODUCT) {
70361
- var productDetailParsed = JSON.parse(pageSpecificDataStr);
70362
- var productDetail = new IkasProductDetail(productDetailParsed.product, productDetailParsed.selectedVariantValues);
70363
- Analytics.productView(productDetail);
70364
- // @ts-ignore
70365
- IkasStorefrontConfig.store.customerStore.onProductView(productDetail.product.id, productDetail.selectedVariant.id);
70366
- }
70367
- if (page.type === exports.IkasThemePageType.CATEGORY) {
70368
- var category = JSON.parse(pageSpecificDataStr);
70369
- var categoryPath = category.path.map(function (cat) { return cat.name; }).join(" > ");
70370
- if (category.path.length > 0) {
70371
- categoryPath = categoryPath + " > " + category.name;
70372
- }
70373
- else {
70374
- categoryPath = category.name;
70375
- }
70376
- Analytics.viewCategory(categoryPath, category);
70377
- }
70378
- }
70379
- catch (err) {
70380
- console.error(err);
70381
- }
70382
- }
70383
- }
70374
+ }); };
70384
70375
 
70385
70376
  var index$2 = /*#__PURE__*/Object.freeze({
70386
70377
  __proto__: null,
@@ -70389,15 +70380,10 @@ var index$2 = /*#__PURE__*/Object.freeze({
70389
70380
  getStaticProps: getStaticProps$1
70390
70381
  });
70391
70382
 
70392
- var Page$2 = function (_a) {
70393
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70394
- IkasStorefrontConfig.initWithJson(configJson);
70395
- var router$1 = router.useRouter();
70396
- var propValues = React.useMemo(function () {
70397
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70398
- }, [propValuesStr]);
70399
- return (React.createElement(IkasPage, { page: page, settingsStr: settingsStr, propValues: propValues }));
70383
+ var Page$2 = function (props) {
70384
+ return React.createElement(IkasPage, __assign({}, props));
70400
70385
  };
70386
+ var _slug_ = mobxReactLite.observer(Page$2);
70401
70387
  var getStaticPaths$1 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70402
70388
  var allSettings, customPagePaths;
70403
70389
  return __generator(this, function (_a) {
@@ -70453,15 +70439,15 @@ var getStaticProps$2 = function (context) { return __awaiter(void 0, void 0, voi
70453
70439
  });
70454
70440
  }); };
70455
70441
 
70456
- var _slug_ = /*#__PURE__*/Object.freeze({
70442
+ var _slug_$1 = /*#__PURE__*/Object.freeze({
70457
70443
  __proto__: null,
70458
- 'default': Page$2,
70444
+ 'default': _slug_,
70459
70445
  getStaticPaths: getStaticPaths$1,
70460
70446
  getStaticProps: getStaticProps$2
70461
70447
  });
70462
70448
 
70463
70449
  var CheckoutPage = function (_a) {
70464
- var checkoutSettingsStr = _a.checkoutSettingsStr, customizationProps = _a.customizationProps, configJson = _a.configJson, others = __rest(_a, ["checkoutSettingsStr", "customizationProps", "configJson"]);
70450
+ var merchantSettingsStr = _a.merchantSettingsStr, checkoutSettingsStr = _a.checkoutSettingsStr, customizationProps = _a.customizationProps, configJson = _a.configJson, others = __rest(_a, ["merchantSettingsStr", "checkoutSettingsStr", "customizationProps", "configJson"]);
70465
70451
  var router$1 = router.useRouter();
70466
70452
  var _b = React.useState(), checkout = _b[0], setCheckout = _b[1];
70467
70453
  IkasStorefrontConfig.initWithJson(configJson);
@@ -70471,6 +70457,11 @@ var CheckoutPage = function (_a) {
70471
70457
  ? new IkasCheckoutSettings(JSON.parse(checkoutSettingsStr))
70472
70458
  : new IkasCheckoutSettings();
70473
70459
  }, [checkoutSettingsStr]);
70460
+ var merchantSettings = React.useMemo(function () {
70461
+ return merchantSettingsStr
70462
+ ? new IkasMerchantSettings(JSON.parse(merchantSettingsStr))
70463
+ : null;
70464
+ }, [merchantSettingsStr]);
70474
70465
  React.useEffect(function () {
70475
70466
  document.documentElement.style.setProperty("--checkout-button-bg-color", (customizationProps === null || customizationProps === void 0 ? void 0 : customizationProps.buttonBgColor) || "#272727");
70476
70467
  document.documentElement.style.setProperty("--checkout-button-text-color", (customizationProps === null || customizationProps === void 0 ? void 0 : customizationProps.buttonTextColor) || "#FFFFFF");
@@ -70518,7 +70509,7 @@ var CheckoutPage = function (_a) {
70518
70509
  }); }, []);
70519
70510
  if (!checkout)
70520
70511
  return React.createElement(FullscreenLoading, null);
70521
- return (React.createElement(IkasCheckoutPage$1, __assign({ checkout: checkout, checkoutSettings: checkoutSettings, customizationProps: customizationProps }, others)));
70512
+ return (React.createElement(IkasCheckoutPage$1, __assign({ checkout: checkout, merchantSettings: merchantSettings, checkoutSettings: checkoutSettings, customizationProps: customizationProps }, others)));
70522
70513
  };
70523
70514
  var checkout = mobxReactLite.observer(CheckoutPage);
70524
70515
  var getStaticProps$3 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -70536,15 +70527,10 @@ var checkout$1 = /*#__PURE__*/Object.freeze({
70536
70527
  getStaticProps: getStaticProps$3
70537
70528
  });
70538
70529
 
70539
- var Page$3 = function (_a) {
70540
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70541
- IkasStorefrontConfig.initWithJson(configJson);
70542
- var router$1 = router.useRouter();
70543
- var propValues = React.useMemo(function () {
70544
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70545
- }, [propValuesStr]);
70546
- return (React.createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70530
+ var Page$3 = function (props) {
70531
+ return React.createElement(IkasPage, __assign({}, props));
70547
70532
  };
70533
+ var index$3 = mobxReactLite.observer(Page$3);
70548
70534
  var getStaticProps$4 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70549
70535
  return __generator(this, function (_a) {
70550
70536
  switch (_a.label) {
@@ -70554,21 +70540,16 @@ var getStaticProps$4 = function (context) { return __awaiter(void 0, void 0, voi
70554
70540
  });
70555
70541
  }); };
70556
70542
 
70557
- var index$3 = /*#__PURE__*/Object.freeze({
70543
+ var index$4 = /*#__PURE__*/Object.freeze({
70558
70544
  __proto__: null,
70559
- 'default': Page$3,
70545
+ 'default': index$3,
70560
70546
  getStaticProps: getStaticProps$4
70561
70547
  });
70562
70548
 
70563
- var Page$4 = function (_a) {
70564
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70565
- IkasStorefrontConfig.initWithJson(configJson);
70566
- var router$1 = router.useRouter();
70567
- var propValues = React.useMemo(function () {
70568
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70569
- }, [propValuesStr]);
70570
- return (React.createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70549
+ var Page$4 = function (props) {
70550
+ return React.createElement(IkasPage, __assign({}, props));
70571
70551
  };
70552
+ var addresses = mobxReactLite.observer(Page$4);
70572
70553
  var getStaticProps$5 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70573
70554
  return __generator(this, function (_a) {
70574
70555
  switch (_a.label) {
@@ -70578,21 +70559,16 @@ var getStaticProps$5 = function (context) { return __awaiter(void 0, void 0, voi
70578
70559
  });
70579
70560
  }); };
70580
70561
 
70581
- var addresses = /*#__PURE__*/Object.freeze({
70562
+ var addresses$1 = /*#__PURE__*/Object.freeze({
70582
70563
  __proto__: null,
70583
- 'default': Page$4,
70564
+ 'default': addresses,
70584
70565
  getStaticProps: getStaticProps$5
70585
70566
  });
70586
70567
 
70587
- var Page$5 = function (_a) {
70588
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70589
- IkasStorefrontConfig.initWithJson(configJson);
70590
- var router$1 = router.useRouter();
70591
- var propValues = React.useMemo(function () {
70592
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70593
- }, [propValuesStr]);
70594
- return (React.createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70568
+ var Page$5 = function (props) {
70569
+ return React.createElement(IkasPage, __assign({}, props, { addOgpMetas: true }));
70595
70570
  };
70571
+ var index$5 = mobxReactLite.observer(Page$5);
70596
70572
  var getStaticProps$6 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70597
70573
  return __generator(this, function (_a) {
70598
70574
  switch (_a.label) {
@@ -70602,21 +70578,16 @@ var getStaticProps$6 = function (context) { return __awaiter(void 0, void 0, voi
70602
70578
  });
70603
70579
  }); };
70604
70580
 
70605
- var index$4 = /*#__PURE__*/Object.freeze({
70581
+ var index$6 = /*#__PURE__*/Object.freeze({
70606
70582
  __proto__: null,
70607
- 'default': Page$5,
70583
+ 'default': index$5,
70608
70584
  getStaticProps: getStaticProps$6
70609
70585
  });
70610
70586
 
70611
- var Page$6 = function (_a) {
70612
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70613
- IkasStorefrontConfig.initWithJson(configJson);
70614
- var router$1 = router.useRouter();
70615
- var propValues = React.useMemo(function () {
70616
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70617
- }, [propValuesStr]);
70618
- return (React.createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70587
+ var Page$6 = function (props) {
70588
+ return React.createElement(IkasPage, __assign({}, props));
70619
70589
  };
70590
+ var _id_ = mobxReactLite.observer(Page$6);
70620
70591
  var getServerSideProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70621
70592
  return __generator(this, function (_a) {
70622
70593
  switch (_a.label) {
@@ -70626,21 +70597,16 @@ var getServerSideProps = function (context) { return __awaiter(void 0, void 0, v
70626
70597
  });
70627
70598
  }); };
70628
70599
 
70629
- var _id_ = /*#__PURE__*/Object.freeze({
70600
+ var _id_$1 = /*#__PURE__*/Object.freeze({
70630
70601
  __proto__: null,
70631
- 'default': Page$6,
70602
+ 'default': _id_,
70632
70603
  getServerSideProps: getServerSideProps
70633
70604
  });
70634
70605
 
70635
- var Page$7 = function (_a) {
70636
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70637
- IkasStorefrontConfig.initWithJson(configJson);
70638
- var router$1 = router.useRouter();
70639
- var propValues = React.useMemo(function () {
70640
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70641
- }, [propValuesStr]);
70642
- return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70606
+ var Page$7 = function (props) {
70607
+ return React.createElement(IkasPage, __assign({}, props));
70643
70608
  };
70609
+ var login = mobxReactLite.observer(Page$7);
70644
70610
  var getStaticProps$7 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70645
70611
  return __generator(this, function (_a) {
70646
70612
  switch (_a.label) {
@@ -70650,21 +70616,16 @@ var getStaticProps$7 = function (context) { return __awaiter(void 0, void 0, voi
70650
70616
  });
70651
70617
  }); };
70652
70618
 
70653
- var login = /*#__PURE__*/Object.freeze({
70619
+ var login$1 = /*#__PURE__*/Object.freeze({
70654
70620
  __proto__: null,
70655
- 'default': Page$7,
70621
+ 'default': login,
70656
70622
  getStaticProps: getStaticProps$7
70657
70623
  });
70658
70624
 
70659
- var Page$8 = function (_a) {
70660
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70661
- IkasStorefrontConfig.initWithJson(configJson);
70662
- var router$1 = router.useRouter();
70663
- var propValues = React.useMemo(function () {
70664
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70665
- }, [propValuesStr]);
70666
- return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70625
+ var Page$8 = function (props) {
70626
+ return React.createElement(IkasPage, __assign({}, props));
70667
70627
  };
70628
+ var register = mobxReactLite.observer(Page$8);
70668
70629
  var getStaticProps$8 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70669
70630
  return __generator(this, function (_a) {
70670
70631
  switch (_a.label) {
@@ -70674,21 +70635,16 @@ var getStaticProps$8 = function (context) { return __awaiter(void 0, void 0, voi
70674
70635
  });
70675
70636
  }); };
70676
70637
 
70677
- var register = /*#__PURE__*/Object.freeze({
70638
+ var register$1 = /*#__PURE__*/Object.freeze({
70678
70639
  __proto__: null,
70679
- 'default': Page$8,
70640
+ 'default': register,
70680
70641
  getStaticProps: getStaticProps$8
70681
70642
  });
70682
70643
 
70683
- var Page$9 = function (_a) {
70684
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70685
- IkasStorefrontConfig.initWithJson(configJson);
70686
- var router$1 = router.useRouter();
70687
- var propValues = React.useMemo(function () {
70688
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70689
- }, [propValuesStr]);
70690
- return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70644
+ var Page$9 = function (props) {
70645
+ return React.createElement(IkasPage, __assign({}, props));
70691
70646
  };
70647
+ var forgotPassword = mobxReactLite.observer(Page$9);
70692
70648
  var getStaticProps$9 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70693
70649
  return __generator(this, function (_a) {
70694
70650
  switch (_a.label) {
@@ -70698,21 +70654,16 @@ var getStaticProps$9 = function (context) { return __awaiter(void 0, void 0, voi
70698
70654
  });
70699
70655
  }); };
70700
70656
 
70701
- var forgotPassword = /*#__PURE__*/Object.freeze({
70657
+ var forgotPassword$1 = /*#__PURE__*/Object.freeze({
70702
70658
  __proto__: null,
70703
- 'default': Page$9,
70659
+ 'default': forgotPassword,
70704
70660
  getStaticProps: getStaticProps$9
70705
70661
  });
70706
70662
 
70707
- var Page$a = function (_a) {
70708
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70709
- IkasStorefrontConfig.initWithJson(configJson);
70710
- var router$1 = router.useRouter();
70711
- var propValues = React.useMemo(function () {
70712
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70713
- }, [propValuesStr]);
70714
- return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70663
+ var Page$a = function (props) {
70664
+ return React.createElement(IkasPage, __assign({}, props));
70715
70665
  };
70666
+ var recoverPassword = mobxReactLite.observer(Page$a);
70716
70667
  var getStaticProps$a = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70717
70668
  return __generator(this, function (_a) {
70718
70669
  switch (_a.label) {
@@ -70722,25 +70673,16 @@ var getStaticProps$a = function (context) { return __awaiter(void 0, void 0, voi
70722
70673
  });
70723
70674
  }); };
70724
70675
 
70725
- var recoverPassword = /*#__PURE__*/Object.freeze({
70676
+ var recoverPassword$1 = /*#__PURE__*/Object.freeze({
70726
70677
  __proto__: null,
70727
- 'default': Page$a,
70678
+ 'default': recoverPassword,
70728
70679
  getStaticProps: getStaticProps$a
70729
70680
  });
70730
70681
 
70731
- var Page$b = function (_a) {
70732
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70733
- IkasStorefrontConfig.initWithJson(configJson);
70734
- var router$1 = router.useRouter();
70735
- var propValues = React.useMemo(function () {
70736
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70737
- }, [propValuesStr]);
70738
- var store = IkasStorefrontConfig.store;
70739
- React.useEffect(function () {
70740
- Analytics.viewCart(store.cartStore.cart);
70741
- }, []);
70742
- return (React.createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70682
+ var Page$b = function (props) {
70683
+ return React.createElement(IkasPage, __assign({}, props));
70743
70684
  };
70685
+ var cart = mobxReactLite.observer(Page$b);
70744
70686
  var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70745
70687
  return __generator(this, function (_a) {
70746
70688
  switch (_a.label) {
@@ -70750,9 +70692,9 @@ var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, voi
70750
70692
  });
70751
70693
  }); };
70752
70694
 
70753
- var cart = /*#__PURE__*/Object.freeze({
70695
+ var cart$1 = /*#__PURE__*/Object.freeze({
70754
70696
  __proto__: null,
70755
- 'default': Page$b,
70697
+ 'default': cart,
70756
70698
  getStaticProps: getStaticProps$b
70757
70699
  });
70758
70700
 
@@ -70780,15 +70722,10 @@ var editor$1 = /*#__PURE__*/Object.freeze({
70780
70722
  'default': editor
70781
70723
  });
70782
70724
 
70783
- var Page$d = function (_a) {
70784
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, configJson = _a.configJson;
70785
- IkasStorefrontConfig.initWithJson(configJson);
70786
- var router$1 = router.useRouter();
70787
- var propValues = React.useMemo(function () {
70788
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70789
- }, [propValuesStr]);
70790
- return (React.createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
70725
+ var Page$d = function (props) {
70726
+ return React.createElement(IkasPage, __assign({}, props));
70791
70727
  };
70728
+ var favoriteProducts = mobxReactLite.observer(Page$d);
70792
70729
  var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70793
70730
  return __generator(this, function (_a) {
70794
70731
  switch (_a.label) {
@@ -70798,29 +70735,16 @@ var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, voi
70798
70735
  });
70799
70736
  }); };
70800
70737
 
70801
- var favoriteProducts = /*#__PURE__*/Object.freeze({
70738
+ var favoriteProducts$1 = /*#__PURE__*/Object.freeze({
70802
70739
  __proto__: null,
70803
- 'default': Page$d,
70740
+ 'default': favoriteProducts,
70804
70741
  getStaticProps: getStaticProps$d
70805
70742
  });
70806
70743
 
70807
- var Page$e = function (_a) {
70808
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70809
- IkasStorefrontConfig.initWithJson(configJson);
70810
- var router$1 = router.useRouter();
70811
- var _b = React.useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
70812
- var initialPropValues = React.useMemo(function () {
70813
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70814
- }, [propValuesStr]);
70815
- var _c = React.useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
70816
- React.useEffect(function () {
70817
- setIsBrowser(typeof window !== "undefined");
70818
- }, []);
70819
- React.useEffect(function () {
70820
- setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr, isBrowser));
70821
- }, [isBrowser, propValuesStr]);
70822
- return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
70744
+ var Page$e = function (props) {
70745
+ return React.createElement(IkasPage, __assign({}, props, { addOgpMetas: true, reInitOnBrowser: true }));
70823
70746
  };
70747
+ var search = mobxReactLite.observer(Page$e);
70824
70748
  var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70825
70749
  return __generator(this, function (_a) {
70826
70750
  switch (_a.label) {
@@ -70830,22 +70754,16 @@ var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, voi
70830
70754
  });
70831
70755
  }); };
70832
70756
 
70833
- var search = /*#__PURE__*/Object.freeze({
70757
+ var search$1 = /*#__PURE__*/Object.freeze({
70834
70758
  __proto__: null,
70835
- 'default': Page$e,
70759
+ 'default': search,
70836
70760
  getStaticProps: getStaticProps$e
70837
70761
  });
70838
70762
 
70839
- var Page$f = function (_a) {
70840
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70841
- if (!propValuesStr || !page)
70763
+ var Page$f = function (props) {
70764
+ if (!props.propValuesStr)
70842
70765
  return React.createElement(Error__default['default'], { statusCode: 404 });
70843
- IkasStorefrontConfig.initWithJson(configJson);
70844
- var router$1 = router.useRouter();
70845
- var propValues = React.useMemo(function () {
70846
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70847
- }, [propValuesStr]);
70848
- return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
70766
+ return React.createElement(IkasPage, __assign({}, props));
70849
70767
  };
70850
70768
  var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70851
70769
  var props;
@@ -70872,15 +70790,10 @@ var _404 = /*#__PURE__*/Object.freeze({
70872
70790
  getStaticProps: getStaticProps$f
70873
70791
  });
70874
70792
 
70875
- var Page$g = function (_a) {
70876
- var page = _a.page, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70877
- IkasStorefrontConfig.initWithJson(configJson);
70878
- var router$1 = router.useRouter();
70879
- var propValues = React.useMemo(function () {
70880
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70881
- }, [propValuesStr]);
70882
- return (React.createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
70793
+ var Page$g = function (props) {
70794
+ return React.createElement(IkasPage, __assign({}, props, { addOgpMetas: true }));
70883
70795
  };
70796
+ var index$7 = mobxReactLite.observer(Page$g);
70884
70797
  var getStaticProps$g = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70885
70798
  return __generator(this, function (_a) {
70886
70799
  switch (_a.label) {
@@ -70890,31 +70803,17 @@ var getStaticProps$g = function (context) { return __awaiter(void 0, void 0, voi
70890
70803
  });
70891
70804
  }); };
70892
70805
 
70893
- var index$5 = /*#__PURE__*/Object.freeze({
70806
+ var index$8 = /*#__PURE__*/Object.freeze({
70894
70807
  __proto__: null,
70895
- 'default': Page$g,
70808
+ 'default': index$7,
70896
70809
  getStaticProps: getStaticProps$g
70897
70810
  });
70898
70811
 
70899
- var Page$h = function (_a) {
70900
- var page = _a.page, pageSpecificDataStr = _a.pageSpecificDataStr, propValuesStr = _a.propValuesStr, settingsStr = _a.settingsStr, merchantSettings = _a.merchantSettings, configJson = _a.configJson;
70901
- IkasStorefrontConfig.initWithJson(configJson);
70902
- var router$1 = router.useRouter();
70903
- var _b = React.useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
70904
- var initialPropValues = React.useMemo(function () {
70905
- return IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr);
70906
- }, [propValuesStr]);
70907
- var _c = React.useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
70908
- React.useEffect(function () {
70909
- setIsBrowser(typeof window !== "undefined");
70910
- }, []);
70911
- React.useEffect(function () {
70912
- setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router$1, settingsStr, isBrowser));
70913
- }, [isBrowser, propValuesStr]);
70914
- return (React.createElement(IkasPage, { page: page, propValues: propValues, pageSpecificDataStr: pageSpecificDataStr, settingsStr: settingsStr, merchantSettings: merchantSettings, addOgpMetas: true }));
70812
+ var Page$h = function (props) {
70813
+ return React.createElement(IkasPage, __assign({}, props, { addOgpMetas: true, reInitOnBrowser: true }));
70915
70814
  };
70916
- var _slug_$1 = mobxReactLite.observer(Page$h);
70917
- var getStaticPaths$2 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
70815
+ var _slug_$2 = mobxReactLite.observer(Page$h);
70816
+ var getStaticPaths$2 = function () { return __awaiter(void 0, void 0, void 0, function () {
70918
70817
  return __generator(this, function (_a) {
70919
70818
  return [2 /*return*/, {
70920
70819
  paths: [],
@@ -70934,9 +70833,9 @@ var getStaticProps$h = function (context) { return __awaiter(void 0, void 0, voi
70934
70833
  });
70935
70834
  }); };
70936
70835
 
70937
- var _slug_$2 = /*#__PURE__*/Object.freeze({
70836
+ var _slug_$3 = /*#__PURE__*/Object.freeze({
70938
70837
  __proto__: null,
70939
- 'default': _slug_$1,
70838
+ 'default': _slug_$2,
70940
70839
  getStaticPaths: getStaticPaths$2,
70941
70840
  getStaticProps: getStaticProps$h
70942
70841
  });
@@ -71271,24 +71170,24 @@ var en$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Ob
71271
71170
  }));
71272
71171
 
71273
71172
  exports.AccountInfoForm = AccountInfoForm;
71274
- exports.AccountPage = index$3;
71173
+ exports.AccountPage = index$4;
71275
71174
  exports.AddressForm = AddressForm;
71276
- exports.AddressesPage = addresses;
71175
+ exports.AddressesPage = addresses$1;
71277
71176
  exports.Analytics = Analytics;
71278
71177
  exports.AnalyticsBody = AnalyticsBody;
71279
71178
  exports.AnalyticsHead = AnalyticsHead;
71280
- exports.BlogPage = index$5;
71281
- exports.BlogSlugPage = _slug_$2;
71282
- exports.CartPage = cart;
71179
+ exports.BlogPage = index$8;
71180
+ exports.BlogSlugPage = _slug_$3;
71181
+ exports.CartPage = cart$1;
71283
71182
  exports.CheckoutPage = checkout$1;
71284
71183
  exports.ContactForm = ContactForm;
71285
- exports.CustomPage = _slug_;
71184
+ exports.CustomPage = _slug_$1;
71286
71185
  exports.EditorPage = editor$1;
71287
71186
  exports.EmailRule = EmailRule;
71288
71187
  exports.EqualsRule = EqualsRule;
71289
- exports.FavoriteProductsPage = favoriteProducts;
71188
+ exports.FavoriteProductsPage = favoriteProducts$1;
71290
71189
  exports.ForgotPasswordForm = ForgotPasswordForm;
71291
- exports.ForgotPasswordPage = forgotPassword;
71190
+ exports.ForgotPasswordPage = forgotPassword$1;
71292
71191
  exports.IkasApplicableProductFilterValue = IkasApplicableProductFilterValue;
71293
71192
  exports.IkasBaseStore = IkasBaseStore;
71294
71193
  exports.IkasBlog = IkasBlog;
@@ -71372,23 +71271,23 @@ exports.IkasVariantType = IkasVariantType;
71372
71271
  exports.IkasVariantTypeAPI = IkasVariantTypeAPI;
71373
71272
  exports.IkasVariantValue = IkasVariantValue;
71374
71273
  exports.Image = Image;
71375
- exports.IndexPage = home;
71274
+ exports.IndexPage = home$1;
71376
71275
  exports.LessThanRule = LessThanRule;
71377
71276
  exports.LoginForm = LoginForm;
71378
- exports.LoginPage = login;
71277
+ exports.LoginPage = login$1;
71379
71278
  exports.MaxRule = MaxRule;
71380
71279
  exports.MinRule = MinRule;
71381
71280
  exports.NotFoundPage = _404;
71382
- exports.OrderDetailPage = _id_;
71383
- exports.OrdersPage = index$4;
71281
+ exports.OrderDetailPage = _id_$1;
71282
+ exports.OrdersPage = index$6;
71384
71283
  exports.PhoneRule = PhoneRule;
71385
71284
  exports.RangeValue = RangeValue;
71386
71285
  exports.RecoverPasswordForm = RecoverPasswordForm;
71387
- exports.RecoverPasswordPage = recoverPassword;
71286
+ exports.RecoverPasswordPage = recoverPassword$1;
71388
71287
  exports.RegisterForm = RegisterForm;
71389
- exports.RegisterPage = register;
71288
+ exports.RegisterPage = register$1;
71390
71289
  exports.RequiredRule = RequiredRule;
71391
- exports.SearchPage = search;
71290
+ exports.SearchPage = search$1;
71392
71291
  exports.SlugPage = index$2;
71393
71292
  exports.ValidationRule = ValidationRule;
71394
71293
  exports.Validator = Validator;