@ikas/storefront 0.0.165 → 0.0.166-alpha.2
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/analytics/analytics.d.ts +1 -1
- package/build/analytics/facebookPixel.d.ts +1 -1
- package/build/components/checkout/index.d.ts +0 -3
- package/build/components/checkout/model.d.ts +3 -5
- package/build/index.es.js +132 -185
- package/build/index.js +133 -186
- package/build/pages/{checkout/[id].d.ts → checkout.d.ts} +3 -4
- package/build/pages/index.d.ts +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -17879,9 +17879,7 @@ var FacebookPixel = /** @class */ (function () {
|
|
|
17879
17879
|
try {
|
|
17880
17880
|
!isServer &&
|
|
17881
17881
|
window.fbq &&
|
|
17882
|
-
window.fbq("track", "AddToCart", item
|
|
17883
|
-
? productToFBPItem(item, quantity)
|
|
17884
|
-
: orderLineItemToFBPItem(item, quantity), { eventId: eventId });
|
|
17882
|
+
window.fbq("track", "AddToCart", orderLineItemToFBPItem(item, quantity), { eventId: eventId });
|
|
17885
17883
|
return;
|
|
17886
17884
|
}
|
|
17887
17885
|
catch (err) {
|
|
@@ -22513,7 +22511,7 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
22513
22511
|
this.addItem = function (variant, product, initialQuantity) {
|
|
22514
22512
|
if (initialQuantity === void 0) { initialQuantity = 1; }
|
|
22515
22513
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22516
|
-
var existingItem, input, cart, eventId, err_2;
|
|
22514
|
+
var existingItem, input, cart, eventId, item, err_2;
|
|
22517
22515
|
var _a, _b, _c;
|
|
22518
22516
|
return __generator(this, function (_d) {
|
|
22519
22517
|
switch (_d.label) {
|
|
@@ -22554,7 +22552,10 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
22554
22552
|
case 3:
|
|
22555
22553
|
if (this.cart) {
|
|
22556
22554
|
eventId = this.cart.id + "-" + this.cart.updatedAt;
|
|
22557
|
-
|
|
22555
|
+
item = this.cart.items.find(function (i) { return i.variant.id; });
|
|
22556
|
+
if (item) {
|
|
22557
|
+
Analytics.addToCart(item, initialQuantity, eventId);
|
|
22558
|
+
}
|
|
22558
22559
|
}
|
|
22559
22560
|
return [3 /*break*/, 5];
|
|
22560
22561
|
case 4:
|
|
@@ -22676,7 +22677,7 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
22676
22677
|
Object.defineProperty(IkasCartStore.prototype, "checkoutUrl", {
|
|
22677
22678
|
get: function () {
|
|
22678
22679
|
if (this._checkoutId)
|
|
22679
|
-
return "/checkout
|
|
22680
|
+
return "/checkout?id=" + this._checkoutId + "&step=info";
|
|
22680
22681
|
},
|
|
22681
22682
|
enumerable: false,
|
|
22682
22683
|
configurable: true
|
|
@@ -22802,7 +22803,7 @@ var MAX_CVC_LENGTH = 4;
|
|
|
22802
22803
|
var USE_DIFFERENT_ADDRESS_KEY = "sAddr";
|
|
22803
22804
|
var isServer$1 = typeof localStorage === "undefined";
|
|
22804
22805
|
var CheckoutViewModel = /** @class */ (function () {
|
|
22805
|
-
function CheckoutViewModel(checkout, checkoutSettings,
|
|
22806
|
+
function CheckoutViewModel(checkout, checkoutSettings, router, returnPolicy, privacyPolicy, termsOfService, t) {
|
|
22806
22807
|
var _this = this;
|
|
22807
22808
|
this.checkout = new IkasCheckout();
|
|
22808
22809
|
this.checkoutSettings = new IkasCheckoutSettings();
|
|
@@ -22827,7 +22828,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
22827
22828
|
this.policyModalText = "";
|
|
22828
22829
|
this.error = null;
|
|
22829
22830
|
this.customerConsentGranted = false;
|
|
22830
|
-
this.init = function (
|
|
22831
|
+
this.init = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
22831
22832
|
return __generator(this, function (_a) {
|
|
22832
22833
|
switch (_a.label) {
|
|
22833
22834
|
case 0: return [4 /*yield*/, this.store.customerStore.waitUntilInitialized()];
|
|
@@ -22839,15 +22840,15 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
22839
22840
|
return [4 /*yield*/, this.getMerchantSettings()];
|
|
22840
22841
|
case 2:
|
|
22841
22842
|
_a.sent();
|
|
22842
|
-
return [4 /*yield*/, this.initStep(
|
|
22843
|
+
return [4 /*yield*/, this.initStep()];
|
|
22843
22844
|
case 3:
|
|
22844
22845
|
_a.sent();
|
|
22845
22846
|
return [2 /*return*/];
|
|
22846
22847
|
}
|
|
22847
22848
|
});
|
|
22848
22849
|
}); };
|
|
22849
|
-
this.initStep = function (
|
|
22850
|
-
var _a, transactions, paymentGatewayId_1;
|
|
22850
|
+
this.initStep = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
22851
|
+
var queryParams, queryStep, queryFailed, queryError, _a, transactions, paymentGatewayId_1;
|
|
22851
22852
|
return __generator(this, function (_b) {
|
|
22852
22853
|
switch (_b.label) {
|
|
22853
22854
|
case 0:
|
|
@@ -22856,8 +22857,12 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
22856
22857
|
this.isCheckoutLoaded = true;
|
|
22857
22858
|
return [2 /*return*/];
|
|
22858
22859
|
}
|
|
22859
|
-
|
|
22860
|
-
|
|
22860
|
+
queryParams = new URLSearchParams(window.location.search);
|
|
22861
|
+
queryStep = queryParams.get("step");
|
|
22862
|
+
queryFailed = queryParams.get("failed");
|
|
22863
|
+
queryError = queryParams.get("error");
|
|
22864
|
+
if (queryStep) {
|
|
22865
|
+
this.step = queryStep;
|
|
22861
22866
|
if (this.step === CheckoutStep.SHIPPING && !this.canProceedToShipping) {
|
|
22862
22867
|
this.changeStep(CheckoutStep.INFO);
|
|
22863
22868
|
return [2 /*return*/];
|
|
@@ -22877,10 +22882,10 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
22877
22882
|
return [2 /*return*/];
|
|
22878
22883
|
}
|
|
22879
22884
|
}
|
|
22880
|
-
if (
|
|
22885
|
+
if (queryFailed) {
|
|
22881
22886
|
this.error = {
|
|
22882
22887
|
type: ErrorType.PAYMENT_ERROR,
|
|
22883
|
-
data:
|
|
22888
|
+
data: queryError || null,
|
|
22884
22889
|
};
|
|
22885
22890
|
}
|
|
22886
22891
|
if (!(this.step === CheckoutStep.INFO)) return [3 /*break*/, 2];
|
|
@@ -22894,7 +22899,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
22894
22899
|
if (this.step === CheckoutStep.SHIPPING &&
|
|
22895
22900
|
this.checkout.availableShippingMethods.length === 1) {
|
|
22896
22901
|
this.step = CheckoutStep.PAYMENT;
|
|
22897
|
-
this.router.replace("/checkout
|
|
22902
|
+
this.router.replace("/checkout?id=" + this.checkout.id + "&step=" + this.step, undefined, {
|
|
22898
22903
|
shallow: true,
|
|
22899
22904
|
});
|
|
22900
22905
|
}
|
|
@@ -23601,7 +23606,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
23601
23606
|
switch (_a.label) {
|
|
23602
23607
|
case 0:
|
|
23603
23608
|
if (!!isServer$1) return [3 /*break*/, 2];
|
|
23604
|
-
return [4 /*yield*/, this.router.replace("/checkout
|
|
23609
|
+
return [4 /*yield*/, this.router.replace("/checkout?id=" + this.checkout.id + "&step=" + step)];
|
|
23605
23610
|
case 1:
|
|
23606
23611
|
_a.sent();
|
|
23607
23612
|
this.router.reload();
|
|
@@ -23641,7 +23646,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
23641
23646
|
this.t = t;
|
|
23642
23647
|
this.isTermsAndConditionsChecked = this.checkoutSettings.isTermsAndConditionsDefaultChecked;
|
|
23643
23648
|
this.store.cartStore.cart = this.checkout.cart;
|
|
23644
|
-
this.init(
|
|
23649
|
+
this.init();
|
|
23645
23650
|
makeAutoObservable(this);
|
|
23646
23651
|
}
|
|
23647
23652
|
Object.defineProperty(CheckoutViewModel.prototype, "cart", {
|
|
@@ -23670,7 +23675,7 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
23670
23675
|
});
|
|
23671
23676
|
Object.defineProperty(CheckoutViewModel.prototype, "checkoutUrl", {
|
|
23672
23677
|
get: function () {
|
|
23673
|
-
return "/checkout
|
|
23678
|
+
return "/checkout?id=" + this.checkout.id + "&step=info";
|
|
23674
23679
|
},
|
|
23675
23680
|
enumerable: false,
|
|
23676
23681
|
configurable: true
|
|
@@ -61522,7 +61527,7 @@ var Image = function (_a) {
|
|
|
61522
61527
|
});
|
|
61523
61528
|
return image.getSrc(closest);
|
|
61524
61529
|
};
|
|
61525
|
-
return (createElement(NextImage, __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image"
|
|
61530
|
+
return (createElement(NextImage, __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image" })));
|
|
61526
61531
|
};
|
|
61527
61532
|
|
|
61528
61533
|
var styles$l = {"StepContainer":"style-module_StepContainer__1O2dD","Step":"style-module_Step__1iOYA","StepTitleContainer":"style-module_StepTitleContainer__2GUg2","First":"style-module_First__cAzdJ","StepTitleTop":"style-module_StepTitleTop__3zfsj","WithRightContent":"style-module_WithRightContent__2fqb1","StepCircle":"style-module_StepCircle__36A5q","Selected":"style-module_Selected__3j91L","StepTitle":"style-module_StepTitle__10YDP","Light":"style-module_Light__15wSX","StepTitleRightContent":"style-module_StepTitleRightContent__2Q43m","StepContent":"style-module_StepContent__20QIi"};
|
|
@@ -61623,11 +61628,11 @@ var FullscreenLoading = function () {
|
|
|
61623
61628
|
|
|
61624
61629
|
var IkasCheckoutPage = function (_a) {
|
|
61625
61630
|
var _b, _c, _d;
|
|
61626
|
-
var checkout = _a.checkout, checkoutSettings = _a.checkoutSettings, customizationProps = _a.customizationProps, returnPolicy = _a.returnPolicy, privacyPolicy = _a.privacyPolicy, termsOfService = _a.termsOfService
|
|
61631
|
+
var checkout = _a.checkout, checkoutSettings = _a.checkoutSettings, customizationProps = _a.customizationProps, returnPolicy = _a.returnPolicy, privacyPolicy = _a.privacyPolicy, termsOfService = _a.termsOfService;
|
|
61627
61632
|
var t = useTranslation().t;
|
|
61628
61633
|
var router = useRouter();
|
|
61629
61634
|
var vm = useState(function () {
|
|
61630
|
-
return new CheckoutViewModel(checkout, checkoutSettings,
|
|
61635
|
+
return new CheckoutViewModel(checkout, checkoutSettings, router, returnPolicy, privacyPolicy, termsOfService, t);
|
|
61631
61636
|
})[0];
|
|
61632
61637
|
if (vm.step === CheckoutStep.PAYMENT) {
|
|
61633
61638
|
Analytics.disableHTML();
|
|
@@ -62112,16 +62117,16 @@ var SettingsHelper = /** @class */ (function () {
|
|
|
62112
62117
|
}); });
|
|
62113
62118
|
};
|
|
62114
62119
|
SettingsHelper.getPageData = function (context, isServer, pageType, possiblePageTypes, isEditor) {
|
|
62115
|
-
var _a;
|
|
62120
|
+
var _a, _b;
|
|
62116
62121
|
return __awaiter(this, void 0, void 0, function () {
|
|
62117
|
-
var isLocal, isProdEditor, serverRuntimeConfig, locale, settings, storefront, themeLocalization, salesChannel, routing, favicon, stockPreference, provider, componentIds_1, components, componentDirs, nextI18nConf, currentLocale, i18nReader, translations;
|
|
62118
|
-
return __generator(this, function (
|
|
62119
|
-
switch (
|
|
62122
|
+
var isLocal, isProdEditor, serverRuntimeConfig, locale, settings, storefront, themeLocalization, salesChannel, routing, favicon, stockPreference, provider, componentIds_1, components, componentDirs, nextI18nConf, currentLocale, i18nReader, translations, extraProps, checkoutComponent, checkoutSettings, customizationProps;
|
|
62123
|
+
return __generator(this, function (_c) {
|
|
62124
|
+
switch (_c.label) {
|
|
62120
62125
|
case 0:
|
|
62121
62126
|
isLocal = process.env.NEXT_PUBLIC_ENV === "local";
|
|
62122
62127
|
isProdEditor = !isLocal && isEditor;
|
|
62123
62128
|
serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
62124
|
-
if (!!isProdEditor) return [3 /*break*/,
|
|
62129
|
+
if (!!isProdEditor) return [3 /*break*/, 7];
|
|
62125
62130
|
locale = context.locale;
|
|
62126
62131
|
if (!locale) {
|
|
62127
62132
|
return [2 /*return*/, {
|
|
@@ -62131,7 +62136,7 @@ var SettingsHelper = /** @class */ (function () {
|
|
|
62131
62136
|
}
|
|
62132
62137
|
return [4 /*yield*/, SettingsHelper.getSettings(locale)];
|
|
62133
62138
|
case 1:
|
|
62134
|
-
settings =
|
|
62139
|
+
settings = _c.sent();
|
|
62135
62140
|
if (!settings ||
|
|
62136
62141
|
!settings.storefront.mainStorefrontThemeId ||
|
|
62137
62142
|
!settings.storefront.salesChannelId) {
|
|
@@ -62158,14 +62163,14 @@ var SettingsHelper = /** @class */ (function () {
|
|
|
62158
62163
|
if (!!isEditor) return [3 /*break*/, 3];
|
|
62159
62164
|
return [4 /*yield*/, provider.getPageData()];
|
|
62160
62165
|
case 2:
|
|
62161
|
-
|
|
62166
|
+
_c.sent();
|
|
62162
62167
|
if (!provider.page) {
|
|
62163
62168
|
return [2 /*return*/, {
|
|
62164
62169
|
props: {},
|
|
62165
62170
|
notFound: true,
|
|
62166
62171
|
}];
|
|
62167
62172
|
}
|
|
62168
|
-
|
|
62173
|
+
_c.label = 3;
|
|
62169
62174
|
case 3:
|
|
62170
62175
|
componentIds_1 = isEditor
|
|
62171
62176
|
? provider.theme.components.map(function (c) { return c.id; })
|
|
@@ -62180,21 +62185,54 @@ var SettingsHelper = /** @class */ (function () {
|
|
|
62180
62185
|
i18nReader = new I18NFileReader(currentLocale, componentDirs, isLocal ? undefined : nextI18nConf.localePath);
|
|
62181
62186
|
return [4 /*yield*/, i18nReader.read()];
|
|
62182
62187
|
case 4:
|
|
62183
|
-
translations =
|
|
62188
|
+
translations = _c.sent();
|
|
62184
62189
|
IkasStorefrontConfig.translations = translations;
|
|
62190
|
+
extraProps = {};
|
|
62191
|
+
if (!(pageType === IkasThemePageType.CHECKOUT)) return [3 /*break*/, 6];
|
|
62192
|
+
checkoutComponent = (_b = provider.page) === null || _b === void 0 ? void 0 : _b.components[0];
|
|
62193
|
+
if (!checkoutComponent) return [3 /*break*/, 6];
|
|
62194
|
+
return [4 /*yield*/, IkasCheckoutAPI.listCheckoutSettings()];
|
|
62195
|
+
case 5:
|
|
62196
|
+
checkoutSettings = _c.sent();
|
|
62197
|
+
customizationProps = {
|
|
62198
|
+
buttonBgColor: checkoutComponent.propValues["buttonBgColor"],
|
|
62199
|
+
buttonTextColor: checkoutComponent.propValues["buttonTextColor"],
|
|
62200
|
+
buttonDisabledBgColor: checkoutComponent.propValues["buttonDisabledBgColor"],
|
|
62201
|
+
buttonDisabledTextColor: checkoutComponent.propValues["buttonDisabledTextColor"],
|
|
62202
|
+
primaryTextColor: checkoutComponent.propValues["primaryTextColor"],
|
|
62203
|
+
secondaryTextColor: checkoutComponent.propValues["secondaryTextColor"],
|
|
62204
|
+
primaryBgColor: checkoutComponent.propValues["primaryBgColor"],
|
|
62205
|
+
secondaryBgColor: checkoutComponent.propValues["secondaryBgColor"],
|
|
62206
|
+
borderColor: checkoutComponent.propValues["borderColor"],
|
|
62207
|
+
cardBgColor: checkoutComponent.propValues["cardBgColor"],
|
|
62208
|
+
errorColor: checkoutComponent.propValues["errorColor"],
|
|
62209
|
+
errorLightColor: checkoutComponent.propValues["errorLightColor"],
|
|
62210
|
+
warningColor: checkoutComponent.propValues["warningColor"],
|
|
62211
|
+
warningLightColor: checkoutComponent.propValues["warningLightColor"],
|
|
62212
|
+
successColor: checkoutComponent.propValues["successColor"],
|
|
62213
|
+
successLightColor: checkoutComponent.propValues["successLightColor"],
|
|
62214
|
+
};
|
|
62215
|
+
extraProps.customizationProps = customizationProps;
|
|
62216
|
+
extraProps.returnPolicy = themeLocalization.returnPolicy;
|
|
62217
|
+
extraProps.privacyPolicy = themeLocalization.privacyPolicy;
|
|
62218
|
+
extraProps.termsOfService = themeLocalization.termsOfService;
|
|
62219
|
+
extraProps.checkoutSettingsStr = (checkoutSettings === null || checkoutSettings === void 0 ? void 0 : checkoutSettings.length) ? JSON.stringify(checkoutSettings[0])
|
|
62220
|
+
: null;
|
|
62221
|
+
_c.label = 6;
|
|
62222
|
+
case 6:
|
|
62185
62223
|
if (isServer)
|
|
62186
62224
|
return [2 /*return*/, {
|
|
62187
|
-
props: provider.nextPageData.props,
|
|
62225
|
+
props: __assign(__assign({}, provider.nextPageData.props), extraProps),
|
|
62188
62226
|
}];
|
|
62189
62227
|
else
|
|
62190
62228
|
return [2 /*return*/, {
|
|
62191
|
-
props: provider.nextPageData.props,
|
|
62229
|
+
props: __assign(__assign({}, provider.nextPageData.props), extraProps),
|
|
62192
62230
|
revalidate: 60,
|
|
62193
62231
|
}];
|
|
62194
|
-
case
|
|
62232
|
+
case 7: return [2 /*return*/, {
|
|
62195
62233
|
props: {},
|
|
62196
62234
|
}];
|
|
62197
|
-
case
|
|
62235
|
+
case 8: return [2 /*return*/];
|
|
62198
62236
|
}
|
|
62199
62237
|
});
|
|
62200
62238
|
});
|
|
@@ -62251,31 +62289,14 @@ var Page$1 = function (_a) {
|
|
|
62251
62289
|
IkasStorefrontConfig.initWithJson(configJson);
|
|
62252
62290
|
var router = useRouter();
|
|
62253
62291
|
var _b = useState(false), isBrowser = _b[0], setIsBrowser = _b[1];
|
|
62254
|
-
var
|
|
62255
|
-
return IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr);
|
|
62256
|
-
}, [propValuesStr]);
|
|
62257
|
-
var _c = useState(initialPropValues), propValues = _c[0], setPropValues = _c[1];
|
|
62292
|
+
var _c = useState(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr)), propValues = _c[0], setPropValues = _c[1];
|
|
62258
62293
|
useEffect(function () {
|
|
62259
62294
|
setIsBrowser(typeof window !== "undefined");
|
|
62260
62295
|
handleAnalytics(page, pageSpecificDataStr);
|
|
62261
|
-
}, [pageSpecificDataStr]);
|
|
62296
|
+
}, [page, pageSpecificDataStr]);
|
|
62262
62297
|
useEffect(function () {
|
|
62263
62298
|
setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr, isBrowser));
|
|
62264
|
-
}, [isBrowser, propValuesStr]);
|
|
62265
|
-
// If the user clicks a link for the same page, we need this logic to re-render the page
|
|
62266
|
-
useEffect(function () {
|
|
62267
|
-
router.events.on("routeChangeComplete", handleRouteChange);
|
|
62268
|
-
return function () {
|
|
62269
|
-
router.events.off("routeChangeComplete", handleRouteChange);
|
|
62270
|
-
};
|
|
62271
|
-
}, []);
|
|
62272
|
-
var handleRouteChange = function (url, options) {
|
|
62273
|
-
var shallow = options.shallow;
|
|
62274
|
-
if (!shallow &&
|
|
62275
|
-
[IkasThemePageType.CATEGORY, IkasThemePageType.BRAND].includes(page.type)) {
|
|
62276
|
-
setPropValues(IkasPageDataProvider.initPropValues(propValuesStr, router, settingsStr, isBrowser));
|
|
62277
|
-
}
|
|
62278
|
-
};
|
|
62299
|
+
}, [isBrowser, propValuesStr, page]);
|
|
62279
62300
|
return (createElement(IkasPage, { page: page, propValues: propValues, pageSpecificDataStr: pageSpecificDataStr, settingsStr: settingsStr, merchantSettings: merchantSettings, addOgpMetas: true }));
|
|
62280
62301
|
};
|
|
62281
62302
|
var index$1 = observer(Page$1);
|
|
@@ -62407,14 +62428,16 @@ var _slug_ = /*#__PURE__*/Object.freeze({
|
|
|
62407
62428
|
});
|
|
62408
62429
|
|
|
62409
62430
|
var CheckoutPage = function (_a) {
|
|
62410
|
-
var
|
|
62431
|
+
var checkoutSettingsStr = _a.checkoutSettingsStr, customizationProps = _a.customizationProps, configJson = _a.configJson, others = __rest(_a, ["checkoutSettingsStr", "customizationProps", "configJson"]);
|
|
62411
62432
|
var router = useRouter();
|
|
62412
62433
|
var _b = useState(), checkout = _b[0], setCheckout = _b[1];
|
|
62413
62434
|
IkasStorefrontConfig.initWithJson(configJson);
|
|
62414
62435
|
var store = IkasStorefrontConfig.store;
|
|
62415
|
-
var checkoutSettings =
|
|
62416
|
-
|
|
62417
|
-
|
|
62436
|
+
var checkoutSettings = useMemo(function () {
|
|
62437
|
+
return checkoutSettingsStr
|
|
62438
|
+
? new IkasCheckoutSettings(JSON.parse(checkoutSettingsStr))
|
|
62439
|
+
: new IkasCheckoutSettings();
|
|
62440
|
+
}, [checkoutSettingsStr]);
|
|
62418
62441
|
useEffect(function () {
|
|
62419
62442
|
document.documentElement.style.setProperty("--checkout-button-bg-color", (customizationProps === null || customizationProps === void 0 ? void 0 : customizationProps.buttonBgColor) || "#272727");
|
|
62420
62443
|
document.documentElement.style.setProperty("--checkout-button-text-color", (customizationProps === null || customizationProps === void 0 ? void 0 : customizationProps.buttonTextColor) || "#FFFFFF");
|
|
@@ -62438,10 +62461,16 @@ var CheckoutPage = function (_a) {
|
|
|
62438
62461
|
getCheckout();
|
|
62439
62462
|
}, []);
|
|
62440
62463
|
var getCheckout = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
62441
|
-
var checkout;
|
|
62464
|
+
var urlParams, checkoutId, checkout;
|
|
62442
62465
|
return __generator(this, function (_a) {
|
|
62443
62466
|
switch (_a.label) {
|
|
62444
|
-
case 0:
|
|
62467
|
+
case 0:
|
|
62468
|
+
urlParams = new URLSearchParams(window.location.search);
|
|
62469
|
+
checkoutId = urlParams.get("id");
|
|
62470
|
+
if (!checkoutId) {
|
|
62471
|
+
return [2 /*return*/, router.replace("/")];
|
|
62472
|
+
}
|
|
62473
|
+
return [4 /*yield*/, IkasCheckoutAPI.getCheckoutById(checkoutId)];
|
|
62445
62474
|
case 1:
|
|
62446
62475
|
checkout = _a.sent();
|
|
62447
62476
|
if (checkout) {
|
|
@@ -62453,107 +62482,25 @@ var CheckoutPage = function (_a) {
|
|
|
62453
62482
|
return [2 /*return*/];
|
|
62454
62483
|
}
|
|
62455
62484
|
});
|
|
62456
|
-
}); }, [
|
|
62485
|
+
}); }, []);
|
|
62457
62486
|
if (!checkout)
|
|
62458
62487
|
return createElement(FullscreenLoading, null);
|
|
62459
62488
|
return (createElement(IkasCheckoutPage$1, __assign({ checkout: checkout, checkoutSettings: checkoutSettings, customizationProps: customizationProps }, others)));
|
|
62460
62489
|
};
|
|
62461
|
-
var
|
|
62462
|
-
var
|
|
62463
|
-
|
|
62464
|
-
|
|
62465
|
-
|
|
62466
|
-
|
|
62467
|
-
case 0:
|
|
62468
|
-
id = context.query.id;
|
|
62469
|
-
locale = context.locale || context.defaultLocale || "en";
|
|
62470
|
-
return [4 /*yield*/, SettingsHelper.getSettings(locale)];
|
|
62471
|
-
case 1:
|
|
62472
|
-
settings = _b.sent();
|
|
62473
|
-
if (!settings ||
|
|
62474
|
-
!settings.storefront.mainStorefrontThemeId ||
|
|
62475
|
-
!settings.storefront.salesChannelId) {
|
|
62476
|
-
return [2 /*return*/, {
|
|
62477
|
-
props: {},
|
|
62478
|
-
notFound: true,
|
|
62479
|
-
}];
|
|
62480
|
-
}
|
|
62481
|
-
storefront = settings.storefront, themeLocalization = settings.themeLocalization, salesChannel = settings.salesChannel, routing = settings.routing;
|
|
62482
|
-
IkasStorefrontConfig.storefrontId = storefront.id;
|
|
62483
|
-
IkasStorefrontConfig.storefrontRoutingId = routing.id;
|
|
62484
|
-
IkasStorefrontConfig.storefrontThemeId = storefront.mainStorefrontThemeId;
|
|
62485
|
-
IkasStorefrontConfig.salesChannelId = storefront.salesChannelId;
|
|
62486
|
-
IkasStorefrontConfig.priceListId = routing.priceListId || undefined;
|
|
62487
|
-
IkasStorefrontConfig.stockLocationIds = (_a = salesChannel.stockLocations) === null || _a === void 0 ? void 0 : _a.map(function (sl) { return sl.id; });
|
|
62488
|
-
IkasStorefrontConfig.routings = storefront.routings;
|
|
62489
|
-
IkasStorefrontConfig.paymentGateways = salesChannel.paymentGateways || [];
|
|
62490
|
-
IkasStorefrontConfig.gtmId = storefront.gtmId || undefined;
|
|
62491
|
-
IkasStorefrontConfig.fbpId = storefront.fbpId || undefined;
|
|
62492
|
-
IkasStorefrontConfig.favicon = themeLocalization.themeJson.settings.favicon;
|
|
62493
|
-
redirect = function () {
|
|
62494
|
-
context.res.writeHead(302, { Location: "/" });
|
|
62495
|
-
context.res.end();
|
|
62496
|
-
return { props: {} };
|
|
62497
|
-
};
|
|
62498
|
-
if (!id || typeof id !== "string") {
|
|
62499
|
-
return [2 /*return*/, redirect()];
|
|
62500
|
-
}
|
|
62501
|
-
return [4 /*yield*/, IkasCheckoutAPI.listCheckoutSettings()];
|
|
62502
|
-
case 2:
|
|
62503
|
-
checkoutSettings = _b.sent();
|
|
62504
|
-
componentDirs = ["common", CHECKOUT_TRANSLATION_NAMESPACE];
|
|
62505
|
-
isLocal = process.env.NEXT_PUBLIC_ENV === "local";
|
|
62506
|
-
serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
62507
|
-
currentLocale = routing.locale;
|
|
62508
|
-
nextI18nConf = serverRuntimeConfig.nextI18nConf;
|
|
62509
|
-
i18nReader = new I18NFileReader(currentLocale, componentDirs, isLocal ? undefined : nextI18nConf.localePath);
|
|
62510
|
-
return [4 /*yield*/, i18nReader.read()];
|
|
62511
|
-
case 3:
|
|
62512
|
-
translations = _b.sent();
|
|
62513
|
-
IkasStorefrontConfig.translations = translations;
|
|
62514
|
-
checkoutPage = themeLocalization.themeJson.pages.find(function (p) { return p.type === IkasThemePageType.CHECKOUT; });
|
|
62515
|
-
if (!checkoutPage)
|
|
62516
|
-
return [2 /*return*/, redirect()];
|
|
62517
|
-
checkoutComponent = checkoutPage.components[0];
|
|
62518
|
-
customizationProps = {
|
|
62519
|
-
buttonBgColor: checkoutComponent.propValues["buttonBgColor"],
|
|
62520
|
-
buttonTextColor: checkoutComponent.propValues["buttonTextColor"],
|
|
62521
|
-
buttonDisabledBgColor: checkoutComponent.propValues["buttonDisabledBgColor"],
|
|
62522
|
-
buttonDisabledTextColor: checkoutComponent.propValues["buttonDisabledTextColor"],
|
|
62523
|
-
primaryTextColor: checkoutComponent.propValues["primaryTextColor"],
|
|
62524
|
-
secondaryTextColor: checkoutComponent.propValues["secondaryTextColor"],
|
|
62525
|
-
primaryBgColor: checkoutComponent.propValues["primaryBgColor"],
|
|
62526
|
-
secondaryBgColor: checkoutComponent.propValues["secondaryBgColor"],
|
|
62527
|
-
borderColor: checkoutComponent.propValues["borderColor"],
|
|
62528
|
-
cardBgColor: checkoutComponent.propValues["cardBgColor"],
|
|
62529
|
-
errorColor: checkoutComponent.propValues["errorColor"],
|
|
62530
|
-
errorLightColor: checkoutComponent.propValues["errorLightColor"],
|
|
62531
|
-
warningColor: checkoutComponent.propValues["warningColor"],
|
|
62532
|
-
warningLightColor: checkoutComponent.propValues["warningLightColor"],
|
|
62533
|
-
successColor: checkoutComponent.propValues["successColor"],
|
|
62534
|
-
successLightColor: checkoutComponent.propValues["successLightColor"],
|
|
62535
|
-
};
|
|
62536
|
-
return [2 /*return*/, {
|
|
62537
|
-
props: {
|
|
62538
|
-
checkoutId: id,
|
|
62539
|
-
checkoutSettingsStr: (checkoutSettings === null || checkoutSettings === void 0 ? void 0 : checkoutSettings.length) ? JSON.stringify(checkoutSettings[0])
|
|
62540
|
-
: null,
|
|
62541
|
-
customizationProps: customizationProps,
|
|
62542
|
-
configJson: IkasStorefrontConfig.getJson(),
|
|
62543
|
-
returnPolicy: themeLocalization.returnPolicy || "",
|
|
62544
|
-
privacyPolicy: themeLocalization.privacyPolicy || "",
|
|
62545
|
-
termsOfService: themeLocalization.termsOfService || "",
|
|
62546
|
-
queryParams: context.query,
|
|
62547
|
-
},
|
|
62548
|
-
}];
|
|
62490
|
+
var checkout = observer(CheckoutPage);
|
|
62491
|
+
var getStaticProps$3 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62492
|
+
return __generator(this, function (_a) {
|
|
62493
|
+
switch (_a.label) {
|
|
62494
|
+
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.CHECKOUT)];
|
|
62495
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
62549
62496
|
}
|
|
62550
62497
|
});
|
|
62551
62498
|
}); };
|
|
62552
62499
|
|
|
62553
|
-
var
|
|
62500
|
+
var checkout$1 = /*#__PURE__*/Object.freeze({
|
|
62554
62501
|
__proto__: null,
|
|
62555
|
-
'default':
|
|
62556
|
-
|
|
62502
|
+
'default': checkout,
|
|
62503
|
+
getStaticProps: getStaticProps$3
|
|
62557
62504
|
});
|
|
62558
62505
|
|
|
62559
62506
|
var Page$3 = function (_a) {
|
|
@@ -62565,7 +62512,7 @@ var Page$3 = function (_a) {
|
|
|
62565
62512
|
}, [propValuesStr]);
|
|
62566
62513
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62567
62514
|
};
|
|
62568
|
-
var getStaticProps$
|
|
62515
|
+
var getStaticProps$4 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62569
62516
|
return __generator(this, function (_a) {
|
|
62570
62517
|
switch (_a.label) {
|
|
62571
62518
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ACCOUNT)];
|
|
@@ -62577,7 +62524,7 @@ var getStaticProps$3 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62577
62524
|
var index$3 = /*#__PURE__*/Object.freeze({
|
|
62578
62525
|
__proto__: null,
|
|
62579
62526
|
'default': Page$3,
|
|
62580
|
-
getStaticProps: getStaticProps$
|
|
62527
|
+
getStaticProps: getStaticProps$4
|
|
62581
62528
|
});
|
|
62582
62529
|
|
|
62583
62530
|
var Page$4 = function (_a) {
|
|
@@ -62589,7 +62536,7 @@ var Page$4 = function (_a) {
|
|
|
62589
62536
|
}, [propValuesStr]);
|
|
62590
62537
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62591
62538
|
};
|
|
62592
|
-
var getStaticProps$
|
|
62539
|
+
var getStaticProps$5 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62593
62540
|
return __generator(this, function (_a) {
|
|
62594
62541
|
switch (_a.label) {
|
|
62595
62542
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ADDRESSES)];
|
|
@@ -62601,7 +62548,7 @@ var getStaticProps$4 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62601
62548
|
var addresses = /*#__PURE__*/Object.freeze({
|
|
62602
62549
|
__proto__: null,
|
|
62603
62550
|
'default': Page$4,
|
|
62604
|
-
getStaticProps: getStaticProps$
|
|
62551
|
+
getStaticProps: getStaticProps$5
|
|
62605
62552
|
});
|
|
62606
62553
|
|
|
62607
62554
|
var Page$5 = function (_a) {
|
|
@@ -62613,7 +62560,7 @@ var Page$5 = function (_a) {
|
|
|
62613
62560
|
}, [propValuesStr]);
|
|
62614
62561
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62615
62562
|
};
|
|
62616
|
-
var getStaticProps$
|
|
62563
|
+
var getStaticProps$6 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62617
62564
|
return __generator(this, function (_a) {
|
|
62618
62565
|
switch (_a.label) {
|
|
62619
62566
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.ORDERS)];
|
|
@@ -62625,7 +62572,7 @@ var getStaticProps$5 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62625
62572
|
var index$4 = /*#__PURE__*/Object.freeze({
|
|
62626
62573
|
__proto__: null,
|
|
62627
62574
|
'default': Page$5,
|
|
62628
|
-
getStaticProps: getStaticProps$
|
|
62575
|
+
getStaticProps: getStaticProps$6
|
|
62629
62576
|
});
|
|
62630
62577
|
|
|
62631
62578
|
var Page$6 = function (_a) {
|
|
@@ -62637,7 +62584,7 @@ var Page$6 = function (_a) {
|
|
|
62637
62584
|
}, [propValuesStr]);
|
|
62638
62585
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62639
62586
|
};
|
|
62640
|
-
var getServerSideProps
|
|
62587
|
+
var getServerSideProps = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62641
62588
|
return __generator(this, function (_a) {
|
|
62642
62589
|
switch (_a.label) {
|
|
62643
62590
|
case 0: return [4 /*yield*/, SettingsHelper.getServerSideProps(context, IkasThemePageType.ORDER_DETAIL)];
|
|
@@ -62646,10 +62593,10 @@ var getServerSideProps$1 = function (context) { return __awaiter(void 0, void 0,
|
|
|
62646
62593
|
});
|
|
62647
62594
|
}); };
|
|
62648
62595
|
|
|
62649
|
-
var _id_
|
|
62596
|
+
var _id_ = /*#__PURE__*/Object.freeze({
|
|
62650
62597
|
__proto__: null,
|
|
62651
62598
|
'default': Page$6,
|
|
62652
|
-
getServerSideProps: getServerSideProps
|
|
62599
|
+
getServerSideProps: getServerSideProps
|
|
62653
62600
|
});
|
|
62654
62601
|
|
|
62655
62602
|
var Page$7 = function (_a) {
|
|
@@ -62661,7 +62608,7 @@ var Page$7 = function (_a) {
|
|
|
62661
62608
|
}, [propValuesStr]);
|
|
62662
62609
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62663
62610
|
};
|
|
62664
|
-
var getStaticProps$
|
|
62611
|
+
var getStaticProps$7 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62665
62612
|
return __generator(this, function (_a) {
|
|
62666
62613
|
switch (_a.label) {
|
|
62667
62614
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.LOGIN)];
|
|
@@ -62673,7 +62620,7 @@ var getStaticProps$6 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62673
62620
|
var login = /*#__PURE__*/Object.freeze({
|
|
62674
62621
|
__proto__: null,
|
|
62675
62622
|
'default': Page$7,
|
|
62676
|
-
getStaticProps: getStaticProps$
|
|
62623
|
+
getStaticProps: getStaticProps$7
|
|
62677
62624
|
});
|
|
62678
62625
|
|
|
62679
62626
|
var Page$8 = function (_a) {
|
|
@@ -62685,7 +62632,7 @@ var Page$8 = function (_a) {
|
|
|
62685
62632
|
}, [propValuesStr]);
|
|
62686
62633
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62687
62634
|
};
|
|
62688
|
-
var getStaticProps$
|
|
62635
|
+
var getStaticProps$8 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62689
62636
|
return __generator(this, function (_a) {
|
|
62690
62637
|
switch (_a.label) {
|
|
62691
62638
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.REGISTER)];
|
|
@@ -62697,7 +62644,7 @@ var getStaticProps$7 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62697
62644
|
var register = /*#__PURE__*/Object.freeze({
|
|
62698
62645
|
__proto__: null,
|
|
62699
62646
|
'default': Page$8,
|
|
62700
|
-
getStaticProps: getStaticProps$
|
|
62647
|
+
getStaticProps: getStaticProps$8
|
|
62701
62648
|
});
|
|
62702
62649
|
|
|
62703
62650
|
var Page$9 = function (_a) {
|
|
@@ -62709,7 +62656,7 @@ var Page$9 = function (_a) {
|
|
|
62709
62656
|
}, [propValuesStr]);
|
|
62710
62657
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62711
62658
|
};
|
|
62712
|
-
var getStaticProps$
|
|
62659
|
+
var getStaticProps$9 = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62713
62660
|
return __generator(this, function (_a) {
|
|
62714
62661
|
switch (_a.label) {
|
|
62715
62662
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.FORGOT_PASSWORD)];
|
|
@@ -62721,7 +62668,7 @@ var getStaticProps$8 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62721
62668
|
var forgotPassword = /*#__PURE__*/Object.freeze({
|
|
62722
62669
|
__proto__: null,
|
|
62723
62670
|
'default': Page$9,
|
|
62724
|
-
getStaticProps: getStaticProps$
|
|
62671
|
+
getStaticProps: getStaticProps$9
|
|
62725
62672
|
});
|
|
62726
62673
|
|
|
62727
62674
|
var Page$a = function (_a) {
|
|
@@ -62733,7 +62680,7 @@ var Page$a = function (_a) {
|
|
|
62733
62680
|
}, [propValuesStr]);
|
|
62734
62681
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62735
62682
|
};
|
|
62736
|
-
var getStaticProps$
|
|
62683
|
+
var getStaticProps$a = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62737
62684
|
return __generator(this, function (_a) {
|
|
62738
62685
|
switch (_a.label) {
|
|
62739
62686
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.RECOVER_PASSWORD)];
|
|
@@ -62745,7 +62692,7 @@ var getStaticProps$9 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62745
62692
|
var recoverPassword = /*#__PURE__*/Object.freeze({
|
|
62746
62693
|
__proto__: null,
|
|
62747
62694
|
'default': Page$a,
|
|
62748
|
-
getStaticProps: getStaticProps$
|
|
62695
|
+
getStaticProps: getStaticProps$a
|
|
62749
62696
|
});
|
|
62750
62697
|
|
|
62751
62698
|
var Page$b = function (_a) {
|
|
@@ -62761,7 +62708,7 @@ var Page$b = function (_a) {
|
|
|
62761
62708
|
}, []);
|
|
62762
62709
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62763
62710
|
};
|
|
62764
|
-
var getStaticProps$
|
|
62711
|
+
var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62765
62712
|
return __generator(this, function (_a) {
|
|
62766
62713
|
switch (_a.label) {
|
|
62767
62714
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.CART)];
|
|
@@ -62773,7 +62720,7 @@ var getStaticProps$a = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62773
62720
|
var cart = /*#__PURE__*/Object.freeze({
|
|
62774
62721
|
__proto__: null,
|
|
62775
62722
|
'default': Page$b,
|
|
62776
|
-
getStaticProps: getStaticProps$
|
|
62723
|
+
getStaticProps: getStaticProps$b
|
|
62777
62724
|
});
|
|
62778
62725
|
|
|
62779
62726
|
var IkasPageEditor$1 = dynamic(function () { return Promise.resolve().then(function () { return index; }).then(function (mod) { return mod.IkasPageEditor; }); }, { ssr: false });
|
|
@@ -62784,7 +62731,7 @@ var Page$c = function (_a) {
|
|
|
62784
62731
|
}
|
|
62785
62732
|
return createElement(IkasPageEditor$1, null);
|
|
62786
62733
|
};
|
|
62787
|
-
var getStaticProps$
|
|
62734
|
+
var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62788
62735
|
return __generator(this, function (_a) {
|
|
62789
62736
|
switch (_a.label) {
|
|
62790
62737
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, undefined, undefined, true)];
|
|
@@ -62796,7 +62743,7 @@ var editor = observer(Page$c);
|
|
|
62796
62743
|
|
|
62797
62744
|
var editor$1 = /*#__PURE__*/Object.freeze({
|
|
62798
62745
|
__proto__: null,
|
|
62799
|
-
getStaticProps: getStaticProps$
|
|
62746
|
+
getStaticProps: getStaticProps$c,
|
|
62800
62747
|
'default': editor
|
|
62801
62748
|
});
|
|
62802
62749
|
|
|
@@ -62809,7 +62756,7 @@ var Page$d = function (_a) {
|
|
|
62809
62756
|
}, [propValuesStr]);
|
|
62810
62757
|
return (createElement(IkasPage, { settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62811
62758
|
};
|
|
62812
|
-
var getStaticProps$
|
|
62759
|
+
var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62813
62760
|
return __generator(this, function (_a) {
|
|
62814
62761
|
switch (_a.label) {
|
|
62815
62762
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.FAVORITE_PRODUCTS)];
|
|
@@ -62821,7 +62768,7 @@ var getStaticProps$c = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62821
62768
|
var favoriteProducts = /*#__PURE__*/Object.freeze({
|
|
62822
62769
|
__proto__: null,
|
|
62823
62770
|
'default': Page$d,
|
|
62824
|
-
getStaticProps: getStaticProps$
|
|
62771
|
+
getStaticProps: getStaticProps$d
|
|
62825
62772
|
});
|
|
62826
62773
|
|
|
62827
62774
|
var Page$e = function (_a) {
|
|
@@ -62841,7 +62788,7 @@ var Page$e = function (_a) {
|
|
|
62841
62788
|
}, [isBrowser, propValuesStr]);
|
|
62842
62789
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
62843
62790
|
};
|
|
62844
|
-
var getStaticProps$
|
|
62791
|
+
var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62845
62792
|
return __generator(this, function (_a) {
|
|
62846
62793
|
switch (_a.label) {
|
|
62847
62794
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.SEARCH)];
|
|
@@ -62853,7 +62800,7 @@ var getStaticProps$d = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62853
62800
|
var search = /*#__PURE__*/Object.freeze({
|
|
62854
62801
|
__proto__: null,
|
|
62855
62802
|
'default': Page$e,
|
|
62856
|
-
getStaticProps: getStaticProps$
|
|
62803
|
+
getStaticProps: getStaticProps$e
|
|
62857
62804
|
});
|
|
62858
62805
|
|
|
62859
62806
|
var Page$f = function (_a) {
|
|
@@ -62867,7 +62814,7 @@ var Page$f = function (_a) {
|
|
|
62867
62814
|
}, [propValuesStr]);
|
|
62868
62815
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues }));
|
|
62869
62816
|
};
|
|
62870
|
-
var getStaticProps$
|
|
62817
|
+
var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62871
62818
|
var props;
|
|
62872
62819
|
return __generator(this, function (_a) {
|
|
62873
62820
|
switch (_a.label) {
|
|
@@ -62889,7 +62836,7 @@ var getStaticProps$e = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62889
62836
|
var _404 = /*#__PURE__*/Object.freeze({
|
|
62890
62837
|
__proto__: null,
|
|
62891
62838
|
'default': Page$f,
|
|
62892
|
-
getStaticProps: getStaticProps$
|
|
62839
|
+
getStaticProps: getStaticProps$f
|
|
62893
62840
|
});
|
|
62894
62841
|
|
|
62895
62842
|
var Page$g = function (_a) {
|
|
@@ -62901,7 +62848,7 @@ var Page$g = function (_a) {
|
|
|
62901
62848
|
}, [propValuesStr]);
|
|
62902
62849
|
return (createElement(IkasPage, { merchantSettings: merchantSettings, settingsStr: settingsStr, page: page, propValues: propValues, addOgpMetas: true }));
|
|
62903
62850
|
};
|
|
62904
|
-
var getStaticProps$
|
|
62851
|
+
var getStaticProps$g = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62905
62852
|
return __generator(this, function (_a) {
|
|
62906
62853
|
switch (_a.label) {
|
|
62907
62854
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, IkasThemePageType.BLOG_INDEX)];
|
|
@@ -62913,7 +62860,7 @@ var getStaticProps$f = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62913
62860
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
62914
62861
|
__proto__: null,
|
|
62915
62862
|
'default': Page$g,
|
|
62916
|
-
getStaticProps: getStaticProps$
|
|
62863
|
+
getStaticProps: getStaticProps$g
|
|
62917
62864
|
});
|
|
62918
62865
|
|
|
62919
62866
|
var Page$h = function (_a) {
|
|
@@ -62942,7 +62889,7 @@ var getStaticPaths$2 = function (context) { return __awaiter(void 0, void 0, voi
|
|
|
62942
62889
|
}];
|
|
62943
62890
|
});
|
|
62944
62891
|
}); };
|
|
62945
|
-
var getStaticProps$
|
|
62892
|
+
var getStaticProps$h = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62946
62893
|
return __generator(this, function (_a) {
|
|
62947
62894
|
switch (_a.label) {
|
|
62948
62895
|
case 0: return [4 /*yield*/, SettingsHelper.getStaticProps(context, undefined, [
|
|
@@ -62958,7 +62905,7 @@ var _slug_$2 = /*#__PURE__*/Object.freeze({
|
|
|
62958
62905
|
__proto__: null,
|
|
62959
62906
|
'default': _slug_$1,
|
|
62960
62907
|
getStaticPaths: getStaticPaths$2,
|
|
62961
|
-
getStaticProps: getStaticProps$
|
|
62908
|
+
getStaticProps: getStaticProps$h
|
|
62962
62909
|
});
|
|
62963
62910
|
|
|
62964
62911
|
var tr = {
|
|
@@ -63290,4 +63237,4 @@ var en$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Ob
|
|
|
63290
63237
|
'default': en
|
|
63291
63238
|
}));
|
|
63292
63239
|
|
|
63293
|
-
export { AccountInfoForm, index$3 as AccountPage, AddressForm, addresses as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$5 as BlogPage, _slug_$2 as BlogSlugPage, cart as CartPage,
|
|
63240
|
+
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 };
|