@behio/storefront-sdk 1.19.0 → 2.0.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/dist/index.js CHANGED
@@ -10,18 +10,26 @@
10
10
 
11
11
 
12
12
 
13
- var _chunkGAYYRRULjs = require('./chunk-GAYYRRUL.js');
13
+ var _chunkTDIAWIQRjs = require('./chunk-TDIAWIQR.js');
14
14
 
15
15
  // src/react/utils/format-price.ts
16
- function formatPrice(amount, currency, locale) {
16
+ function formatPrice(amount, currency, locale, display) {
17
17
  const resolvedLocale = _nullishCoalesce(locale, () => ( "cs"));
18
18
  try {
19
- return new Intl.NumberFormat(resolvedLocale, {
19
+ const formatter = new Intl.NumberFormat(resolvedLocale, {
20
20
  style: "currency",
21
21
  currency,
22
+ currencyDisplay: display === "CODE" ? "code" : "symbol",
22
23
  minimumFractionDigits: Number.isInteger(amount) ? 0 : 2,
23
24
  maximumFractionDigits: 2
24
- }).format(amount);
25
+ });
26
+ if (display === "SYMBOL_BEFORE" || display === "SYMBOL_AFTER") {
27
+ const parts = formatter.formatToParts(amount);
28
+ const symbol = _nullishCoalesce(_optionalChain([parts, 'access', _ => _.find, 'call', _2 => _2((p) => p.type === "currency"), 'optionalAccess', _3 => _3.value]), () => ( currency));
29
+ const value = parts.filter((p) => p.type !== "currency").map((p) => p.value).join("").trim();
30
+ return display === "SYMBOL_BEFORE" ? `${symbol}\xA0${value}` : `${value}\xA0${symbol}`;
31
+ }
32
+ return formatter.format(amount);
25
33
  } catch (e) {
26
34
  return `${amount} ${currency}`;
27
35
  }
@@ -30,24 +38,28 @@ function formatPrice(amount, currency, locale) {
30
38
  // src/variants.ts
31
39
  var VARIANT_QUERY_PARAM = "variant";
32
40
  var filled = (value) => {
33
- const trimmed = _optionalChain([value, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]);
41
+ const trimmed = _optionalChain([value, 'optionalAccess', _4 => _4.trim, 'call', _5 => _5()]);
34
42
  return trimmed ? trimmed : null;
35
43
  };
36
44
  function resolveVariantContent(product, variant) {
37
- const name = filled(_optionalChain([variant, 'optionalAccess', _3 => _3.name]));
38
- const short = filled(_optionalChain([variant, 'optionalAccess', _4 => _4.shortDescription]));
39
- const long = filled(_optionalChain([variant, 'optionalAccess', _5 => _5.longDescription]));
40
- const images = _optionalChain([variant, 'optionalAccess', _6 => _6.images, 'optionalAccess', _7 => _7.length]) ? variant.images : null;
45
+ const name = filled(_optionalChain([variant, 'optionalAccess', _6 => _6.name]));
46
+ const short = filled(_optionalChain([variant, 'optionalAccess', _7 => _7.shortDescription]));
47
+ const long = filled(_optionalChain([variant, 'optionalAccess', _8 => _8.longDescription]));
48
+ const images = _optionalChain([variant, 'optionalAccess', _9 => _9.images, 'optionalAccess', _10 => _10.length]) ? variant.images : null;
41
49
  return {
42
50
  name: _nullishCoalesce(name, () => ( product.name)),
43
51
  shortDescription: _nullishCoalesce(_nullishCoalesce(short, () => ( product.shortDescription)), () => ( null)),
44
52
  longDescription: _nullishCoalesce(_nullishCoalesce(long, () => ( product.longDescription)), () => ( null)),
45
53
  images: _nullishCoalesce(images, () => ( product.images)),
54
+ assetGroups: _optionalChain([variant, 'optionalAccess', _11 => _11.assetGroups, 'optionalAccess', _12 => _12.length]) ? variant.assetGroups : _nullishCoalesce(product.assetGroups, () => ( [])),
55
+ media: _optionalChain([variant, 'optionalAccess', _13 => _13.media, 'optionalAccess', _14 => _14.length]) ? variant.media : images ? [] : _nullishCoalesce(product.media, () => ( [])),
46
56
  overrides: {
47
57
  name: !!name && name !== product.name,
48
58
  shortDescription: !!short,
49
59
  longDescription: !!long,
50
- images: !!images
60
+ images: !!images,
61
+ media: !!_optionalChain([variant, 'optionalAccess', _15 => _15.media, 'optionalAccess', _16 => _16.length]),
62
+ assetGroups: !!_optionalChain([variant, 'optionalAccess', _17 => _17.assetGroups, 'optionalAccess', _18 => _18.length])
51
63
  }
52
64
  };
53
65
  }
@@ -58,12 +70,13 @@ function variantFromQuery(product, value) {
58
70
  }
59
71
  function variantHref(productSlug, variant, basePath = "/product") {
60
72
  const base = `${basePath}/${productSlug}`;
61
- if (!_optionalChain([variant, 'optionalAccess', _8 => _8.variantSlug])) return base;
73
+ if (!_optionalChain([variant, 'optionalAccess', _19 => _19.variantSlug])) return base;
62
74
  return `${base}?${VARIANT_QUERY_PARAM}=${encodeURIComponent(variant.variantSlug)}`;
63
75
  }
64
76
  function findVariantByAttributes(product, selection) {
65
77
  const axes = Object.keys(selection);
66
- if (axes.length === 0) return null;
78
+ const required = _optionalChain([product, 'access', _20 => _20.variantAxes, 'optionalAccess', _21 => _21.length]) ? product.variantAxes.map((axis) => axis.name) : [...new Set(product.variants.flatMap((variant) => variant.attributes.map((attribute) => attribute.name)))];
79
+ if (axes.length === 0 || required.some((axis) => !selection[axis])) return null;
67
80
  return _nullishCoalesce(product.variants.find(
68
81
  (variant) => axes.every((axis) => variant.attributes.some((a) => a.name === axis && a.value === selection[axis]))
69
82
  ), () => ( null));
@@ -89,7 +102,7 @@ function buildVariantComparison(product, labels, formatPriceValue) {
89
102
  }
90
103
  for (const axis of axisNames) {
91
104
  const values = product.variants.map(
92
- (v) => _nullishCoalesce(_optionalChain([v, 'access', _9 => _9.attributes, 'access', _10 => _10.find, 'call', _11 => _11((a) => a.name === axis), 'optionalAccess', _12 => _12.value]), () => ( "-"))
105
+ (v) => _nullishCoalesce(_optionalChain([v, 'access', _22 => _22.attributes, 'access', _23 => _23.find, 'call', _24 => _24((a) => a.name === axis), 'optionalAccess', _25 => _25.value]), () => ( "-"))
93
106
  );
94
107
  if (new Set(values).size <= 1) continue;
95
108
  rows.push({ label: axis, values });
@@ -100,7 +113,7 @@ function buildVariantComparison(product, labels, formatPriceValue) {
100
113
  });
101
114
  rows.push({
102
115
  label: labels.availability,
103
- values: product.variants.map((v) => v.inStock ? labels.inStock : labels.soldOut)
116
+ values: product.variants.map((v) => _nullishCoalesce(_optionalChain([v, 'access', _26 => _26.availability, 'optionalAccess', _27 => _27.label]), () => ( (v.inStock ? labels.inStock : labels.soldOut))))
104
117
  });
105
118
  const parameterLabels = /* @__PURE__ */ new Set();
106
119
  for (const variant of product.variants) {
@@ -111,7 +124,7 @@ function buildVariantComparison(product, labels, formatPriceValue) {
111
124
  for (const label of parameterLabels) {
112
125
  const values = product.variants.map((variant) => {
113
126
  for (const group of _nullishCoalesce(variant.parameterGroups, () => ( []))) {
114
- const hit = _optionalChain([group, 'access', _13 => _13.parameters, 'optionalAccess', _14 => _14.find, 'call', _15 => _15((p) => p.label === label)]);
127
+ const hit = _optionalChain([group, 'access', _28 => _28.parameters, 'optionalAccess', _29 => _29.find, 'call', _30 => _30((p) => p.label === label)]);
115
128
  if (!hit) continue;
116
129
  if (hit.value) return [hit.value, hit.unit].filter(Boolean).join(" ");
117
130
  if (hit.booleanValue !== null) return hit.booleanValue ? "\u2713" : "-";
@@ -132,7 +145,7 @@ function trackEcommerceEvent(event, payload) {
132
145
  if (typeof window === "undefined") return;
133
146
  const w = window;
134
147
  try {
135
- _optionalChain([w, 'access', _16 => _16.__behioEcommerceSink, 'optionalCall', _17 => _17(event, payload)]);
148
+ _optionalChain([w, 'access', _31 => _31.__behioEcommerceSink, 'optionalCall', _32 => _32(event, payload)]);
136
149
  } catch (e2) {
137
150
  }
138
151
  const gaName = _nullishCoalesce(GA4_NAME_MAP[event], () => ( event));
@@ -164,7 +177,7 @@ function getStoredVisitorId() {
164
177
  function generateVisitorId() {
165
178
  const bytes = new Uint8Array(18);
166
179
  try {
167
- _optionalChain([globalThis, 'access', _18 => _18.crypto, 'optionalAccess', _19 => _19.getRandomValues, 'optionalCall', _20 => _20(bytes)]);
180
+ _optionalChain([globalThis, 'access', _33 => _33.crypto, 'optionalAccess', _34 => _34.getRandomValues, 'optionalCall', _35 => _35(bytes)]);
168
181
  } catch (e5) {
169
182
  }
170
183
  let filled2 = false;
@@ -205,8 +218,8 @@ async function grantAnalyticsConsent(client, categories) {
205
218
  const res = await client.consent.record({
206
219
  visitorId: id,
207
220
  analytics: true,
208
- marketing: _nullishCoalesce(_optionalChain([categories, 'optionalAccess', _21 => _21.marketing]), () => ( false)),
209
- preferences: _nullishCoalesce(_optionalChain([categories, 'optionalAccess', _22 => _22.preferences]), () => ( false))
221
+ marketing: _nullishCoalesce(_optionalChain([categories, 'optionalAccess', _36 => _36.marketing]), () => ( false)),
222
+ preferences: _nullishCoalesce(_optionalChain([categories, 'optionalAccess', _37 => _37.preferences]), () => ( false))
210
223
  });
211
224
  emitConsentChanged();
212
225
  return res;
@@ -231,6 +244,8 @@ var ERROR_MESSAGES = {
231
244
  "be.payments.gatewayCreateFailed": "Platbu se u br\xE1ny {provider} nepoda\u0159ilo zalo\u017Eit. Zkuste to pros\xEDm znovu, nebo vyberte jinou platebn\xED metodu.",
232
245
  "be.payments.gatewayMissingCredentials": "Platebn\xED br\xE1n\u011B {provider} chyb\xED p\u0159ihla\u0161ovac\xED \xFAdaje. Dopl\u0148te je pros\xEDm v nastaven\xED platebn\xED metody.",
233
246
  "be.payments.gatewayStatusFailed": "Stav platby se u br\xE1ny {provider} nepoda\u0159ilo ov\u011B\u0159it. Zkuste to pros\xEDm za chv\xEDli znovu.",
247
+ "be.payments.returnNotFound": "N\xE1vratov\xE1 adresa z platebn\xED br\xE1ny nen\xED platn\xE1.",
248
+ "be.payments.returnSecretMissing": "N\xE1vrat z platebn\xED br\xE1ny nen\xED na serveru nastaven\xFD.",
234
249
  "be.payments.webhookMissingPaymentId": "Ozn\xE1men\xED od br\xE1ny {provider} neobsahuje identifik\xE1tor platby.",
235
250
  "be.payments.webhookSignatureInvalid": "Podpis platebn\xEDho ozn\xE1men\xED nen\xED platn\xFD.",
236
251
  "be.sms.accountInactive": "\xDA\u010Det u oper\xE1tora nen\xED aktivn\xED, tak\u017Ee p\u0159es n\u011Bj zpr\xE1vy neodejdou. Zkontrolujte ho v jeho administraci.",
@@ -272,6 +287,7 @@ var ERROR_MESSAGES = {
272
287
  "be.storefront.cartNotFound": "Ko\u0161\xEDk nenalezen.",
273
288
  "be.storefront.categoryNotFound": "Kategorie nenalezena.",
274
289
  "be.storefront.certificateNotFound": "Certifik\xE1t nenalezen.",
290
+ "be.storefront.checkoutChanged": "Objedn\xE1vka se zm\u011Bnila. P\u0159ed odesl\xE1n\xEDm pros\xEDm zkontrolujte novou \u010D\xE1stku.",
275
291
  "be.storefront.comgateMissingCredentials": "Metod\u011B Comgate chyb\xED p\u0159ihla\u0161ovac\xED \xFAdaje.",
276
292
  "be.storefront.comgateWebhookInvalid": "Notifikace Comgate nenese id transakce.",
277
293
  "be.storefront.commentNotFound": "Koment\xE1\u0159 nenalezen.",
@@ -280,13 +296,16 @@ var ERROR_MESSAGES = {
280
296
  "be.storefront.connectLinkExpired": "Platnost propojovac\xEDho odkazu vypr\u0161ela. Zkuste to znovu.",
281
297
  "be.storefront.countryNotAllowed": "Zem\u011B {country} nen\xED pro tento e-shop povolen\xE1.",
282
298
  "be.storefront.courseAccessExpired": "P\u0159\xEDstup ke kurzu vypr\u0161el.",
299
+ "be.storefront.courseAccessRevoked": "P\u0159\xEDstup k tomuto n\xE1kupu ji\u017E nen\xED dostupn\xFD.",
283
300
  "be.storefront.courseNotFound": "Kurz nenalezen.",
284
301
  "be.storefront.currencyNotSupported": "Tuto m\u011Bnu e-shop nenab\xEDz\xED.",
285
302
  "be.storefront.currencyRequired": "Chyb\xED m\u011Bna.",
286
303
  "be.storefront.currentPasswordIncorrect": "Sou\u010Dasn\xE9 heslo nen\xED spr\xE1vn\u011B.",
287
304
  "be.storefront.customerEmailTaken": "Z\xE1kazn\xEDk s t\xEDmto e-mailem u\u017E existuje.",
305
+ "be.storefront.customerLoginRequired": "Pro zobrazen\xED cen a n\xE1kup se p\u0159ihlaste.",
288
306
  "be.storefront.customerNotFound": "Z\xE1kazn\xEDk nenalezen.",
289
307
  "be.storefront.destinationCountryRequired": "Chyb\xED zem\u011B doru\u010Den\xED.",
308
+ "be.storefront.discountCodesDisabled": "Tento obchod nep\u0159ij\xEDm\xE1 tento typ k\xF3du.",
290
309
  "be.storefront.discountExpired": "Platnost slevov\xE9ho k\xF3du vypr\u0161ela.",
291
310
  "be.storefront.discountInactive": "Slevov\xFD k\xF3d u\u017E nen\xED aktivn\xED.",
292
311
  "be.storefront.discountLimitedToGroups": "Slevov\xFD k\xF3d je omezen\xFD na vybran\xE9 skupiny z\xE1kazn\xEDk\u016F.",
@@ -302,7 +321,9 @@ var ERROR_MESSAGES = {
302
321
  "be.storefront.downloadLimitReached": "Dosa\u017Een maxim\xE1ln\xED po\u010Det sta\u017Een\xED.",
303
322
  "be.storefront.downloadLinkExpired": "Platnost odkazu ke sta\u017Een\xED vypr\u0161ela.",
304
323
  "be.storefront.downloadNotFound": "Sta\u017Een\xED nenalezeno.",
324
+ "be.storefront.downloadUnavailable": "Soubor te\u010F nen\xED dostupn\xFD. Ov\u011B\u0159te stav objedn\xE1vky nebo to zkuste znovu.",
305
325
  "be.storefront.emailProviderNotRegistered": "Poskytovatel e-mailu {provider} nen\xED registrovan\xFD.",
326
+ "be.storefront.emailVerificationRequired": "P\u0159ed p\u0159ihl\xE1\u0161en\xEDm ov\u011B\u0159te sv\u016Fj e-mail.",
306
327
  "be.storefront.encryptionKeyMissing": "Na serveru nen\xED nastaven\xFD \u0161ifrovac\xED kl\xED\u010D.",
307
328
  "be.storefront.eshopNotFound": "E-shop nenalezen.",
308
329
  "be.storefront.facetsInvalidJson": "Fasety mus\xED b\xFDt JSON objekt.",
@@ -312,6 +333,7 @@ var ERROR_MESSAGES = {
312
333
  "be.storefront.giftCardCurrencyMismatch": "M\u011Bna d\xE1rkov\xE9 karty neodpov\xEDd\xE1 m\u011Bn\u011B ko\u0161\xEDku.",
313
334
  "be.storefront.giftCardExpired": "Platnost d\xE1rkov\xE9 karty vypr\u0161ela.",
314
335
  "be.storefront.giftCardNoBalance": "D\xE1rkov\xE1 karta nem\xE1 \u017E\xE1dn\xFD z\u016Fstatek.",
336
+ "be.storefront.giftCardsDisabled": "Tento obchod nep\u0159ij\xEDm\xE1 tento typ k\xF3du.",
315
337
  "be.storefront.gopayMissingCredentials": "Metod\u011B GoPay chyb\xED p\u0159ihla\u0161ovac\xED \xFAdaje.",
316
338
  "be.storefront.gopayResponseInvalid": "Odpov\u011B\u010F GoPay nenese pot\u0159ebn\xE1 pole.",
317
339
  "be.storefront.gopayWebhookInvalid": "Notifikace GoPay nenese id platby.",
@@ -336,6 +358,7 @@ var ERROR_MESSAGES = {
336
358
  "be.storefront.lessonLocked": "Lekce je zam\u010Den\xE1.",
337
359
  "be.storefront.lessonNoQuiz": "Lekce nem\xE1 kv\xEDz.",
338
360
  "be.storefront.lessonNotFound": "Lekce nenalezena.",
361
+ "be.storefront.loyaltyRedemptionUnavailable": "Tyto body nelze v t\xE9to objedn\xE1vce uplatnit. Zkontrolujte podm\xEDnky v\u011Brnostn\xEDho programu.",
339
362
  "be.storefront.malformedState": "Po\u0161kozen\xFD stav po\u017Eadavku.",
340
363
  "be.storefront.maxItemsPerProduct": "Stejn\xE9ho produktu lze objednat nejv\xFD\u0161 {max} kus\u016F.",
341
364
  "be.storefront.maxOrderValue": "Maxim\xE1ln\xED hodnota objedn\xE1vky je {max}.",
@@ -366,12 +389,16 @@ var ERROR_MESSAGES = {
366
389
  "be.storefront.pageNotFound": "Str\xE1nka nenalezena.",
367
390
  "be.storefront.parameterGroupNotFound": "Skupina parametr\u016F nenalezena.",
368
391
  "be.storefront.parametersInvalidJson": "Neplatn\xFD JSON parametr\u016F.",
392
+ "be.storefront.passwordLengthRequired": "Heslo mus\xED m\xEDt alespo\u0148 {min} a nejv\xFD\u0161e {max} znak\u016F.",
393
+ "be.storefront.paymentInstrumentInvalid": "Zvolen\xFD zp\u016Fsob platby u t\xE9to platebn\xED metody nen\xED k dispozici. Vyberte pros\xEDm jin\xFD.",
394
+ "be.storefront.paymentMethodRequired": "Vyberte platebn\xED metodu.",
369
395
  "be.storefront.paymentMethodUnavailable": "Platebn\xED metoda nen\xED dostupn\xE1.",
370
396
  "be.storefront.paypalMissingCredentials": "Metod\u011B PayPal chyb\xED p\u0159ihla\u0161ovac\xED \xFAdaje.",
371
397
  "be.storefront.paypalWebhookInvalid": "Notifikace PayPal nenese id objedn\xE1vky.",
372
398
  "be.storefront.phoneRequired": "K dokon\u010Den\xED objedn\xE1vky je pot\u0159eba telefonn\xED \u010D\xEDslo.",
373
399
  "be.storefront.pickupPointRequired": "Vybran\xE1 doprava vy\u017Eaduje zvolen\xE9 v\xFDdejn\xED m\xEDsto.",
374
400
  "be.storefront.placeNotFound": "M\xEDsto nenalezeno.",
401
+ "be.storefront.pricingUnavailable": "Ceny produkt\u016F te\u010F nejsou dostupn\xE9. Zkuste to pros\xEDm znovu.",
375
402
  "be.storefront.privacyAgreementRequired": "K objedn\xE1vce je pot\u0159eba souhlas se z\xE1sadami ochrany osobn\xEDch \xFAdaj\u016F.",
376
403
  "be.storefront.privateApiKeyRequired": "Tento endpoint vy\u017Eaduje priv\xE1tn\xED API kl\xED\u010D.",
377
404
  "be.storefront.productGroupNotFound": "Skupina produkt\u016F nenalezena.",
@@ -394,12 +421,14 @@ var ERROR_MESSAGES = {
394
421
  "be.storefront.saleEnded": "Prodej produktu {name} skon\u010Dil.",
395
422
  "be.storefront.saleNotStarted": "Prodej produktu {name} je\u0161t\u011B neza\u010Dal.",
396
423
  "be.storefront.sessionTokenRequired": "Chyb\xED identifikace ko\u0161\xEDku nebo z\xE1kazn\xEDka.",
424
+ "be.storefront.shippingAddressRequired": "Fyzick\xE9 produkty vy\u017Eaduj\xED doru\u010Dovac\xED adresu.",
397
425
  "be.storefront.shippingMethodNotFound": "Doprava nenalezena.",
398
426
  "be.storefront.shippingMethodRequired": "Chyb\xED zvolen\xE1 doprava.",
399
427
  "be.storefront.shippingMethodUnavailable": "Vybran\xE1 doprava u\u017E nen\xED dostupn\xE1.",
400
428
  "be.storefront.shippingQuoteCurrencyMismatch": "M\u011Bna kalkulace dopravy neodpov\xEDd\xE1 ko\u0161\xEDku. Na\u010Dt\u011Bte dopravu znovu.",
401
429
  "be.storefront.shippingQuoteNotFound": "Kalkulace dopravy neexistuje nebo u\u017E byla pou\u017Eita.",
402
430
  "be.storefront.shippingQuoteStale": "Ko\u0161\xEDk se od kalkulace dopravy zm\u011Bnil. Na\u010Dt\u011Bte mo\u017Enosti dopravy znovu.",
431
+ "be.storefront.shopMaintenance": "Obchod je v \xFAdr\u017Eb\u011B. Zkuste to pros\xEDm pozd\u011Bji.",
403
432
  "be.storefront.shopNotAvailable": "E-shop nen\xED dostupn\xFD.",
404
433
  "be.storefront.siteKeyNotAllowed": "Tento kl\xED\u010D pat\u0159\xED webu bez napojen\xE9ho e-shopu, obchodn\xED endpointy pro n\u011Bj nejsou dostupn\xE9.",
405
434
  "be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
@@ -445,6 +474,8 @@ var ERROR_MESSAGES = {
445
474
  "be.payments.gatewayCreateFailed": "Platbu sa v br\xE1ne {provider} nepodarilo zalo\u017Ei\u0165. Sk\xFAste to pros\xEDm znova, alebo vyberte in\xFA platobn\xFA met\xF3du.",
446
475
  "be.payments.gatewayMissingCredentials": "Platobnej br\xE1ne {provider} ch\xFDbaj\xFA prihlasovacie \xFAdaje. Dopl\u0148te ich pros\xEDm v nastaven\xED platobnej met\xF3dy.",
447
476
  "be.payments.gatewayStatusFailed": "Stav platby sa v br\xE1ne {provider} nepodarilo overi\u0165. Sk\xFAste to pros\xEDm o chv\xED\u013Eu znova.",
477
+ "be.payments.returnNotFound": "N\xE1vratov\xE1 adresa z platobnej br\xE1ny nie je platn\xE1.",
478
+ "be.payments.returnSecretMissing": "N\xE1vrat z platobnej br\xE1ny nie je na serveri nastaven\xFD.",
448
479
  "be.payments.webhookMissingPaymentId": "Ozn\xE1menie od br\xE1ny {provider} neobsahuje identifik\xE1tor platby.",
449
480
  "be.payments.webhookSignatureInvalid": "Podpis platobn\xE9ho ozn\xE1menia nie je platn\xFD.",
450
481
  "be.sms.accountInactive": "\xDA\u010Det u oper\xE1tora nie je akt\xEDvny, tak\u017Ee cez neho spr\xE1vy neod\xEDdu. Skontrolujte ho v jeho administr\xE1cii.",
@@ -486,6 +517,7 @@ var ERROR_MESSAGES = {
486
517
  "be.storefront.cartNotFound": "Ko\u0161\xEDk sa nena\u0161iel.",
487
518
  "be.storefront.categoryNotFound": "Kateg\xF3ria sa nena\u0161la.",
488
519
  "be.storefront.certificateNotFound": "Certifik\xE1t sa nena\u0161iel.",
520
+ "be.storefront.checkoutChanged": "Objedn\xE1vka sa zmenila. Pred odoslan\xEDm pros\xEDm skontrolujte nov\xFA sumu.",
489
521
  "be.storefront.comgateMissingCredentials": "Met\xF3de Comgate ch\xFDbaj\xFA prihlasovacie \xFAdaje.",
490
522
  "be.storefront.comgateWebhookInvalid": "Notifik\xE1cia Comgate nenesie id transakcie.",
491
523
  "be.storefront.commentNotFound": "Koment\xE1r sa nena\u0161iel.",
@@ -494,13 +526,16 @@ var ERROR_MESSAGES = {
494
526
  "be.storefront.connectLinkExpired": "Platnos\u0165 prepojovacieho odkazu vypr\u0161ala. Sk\xFAste to znova.",
495
527
  "be.storefront.countryNotAllowed": "Krajina {country} nie je pre tento e-shop povolen\xE1.",
496
528
  "be.storefront.courseAccessExpired": "Pr\xEDstup ku kurzu vypr\u0161al.",
529
+ "be.storefront.courseAccessRevoked": "Pr\xEDstup k tomuto n\xE1kupu u\u017E nie je dostupn\xFD.",
497
530
  "be.storefront.courseNotFound": "Kurz sa nena\u0161iel.",
498
531
  "be.storefront.currencyNotSupported": "T\xFAto menu e-shop nepon\xFAka.",
499
532
  "be.storefront.currencyRequired": "Ch\xFDba mena.",
500
533
  "be.storefront.currentPasswordIncorrect": "S\xFA\u010Dasn\xE9 heslo nie je spr\xE1vne.",
501
534
  "be.storefront.customerEmailTaken": "Z\xE1kazn\xEDk s t\xFDmto e-mailom u\u017E existuje.",
535
+ "be.storefront.customerLoginRequired": "Pre zobrazenie cien a n\xE1kup sa prihl\xE1ste.",
502
536
  "be.storefront.customerNotFound": "Z\xE1kazn\xEDk sa nena\u0161iel.",
503
537
  "be.storefront.destinationCountryRequired": "Ch\xFDba krajina doru\u010Denia.",
538
+ "be.storefront.discountCodesDisabled": "Tento obchod neprij\xEDma tento typ k\xF3du.",
504
539
  "be.storefront.discountExpired": "Platnos\u0165 z\u013Eavov\xE9ho k\xF3du vypr\u0161ala.",
505
540
  "be.storefront.discountInactive": "Z\u013Eavov\xFD k\xF3d u\u017E nie je akt\xEDvny.",
506
541
  "be.storefront.discountLimitedToGroups": "Z\u013Eavov\xFD k\xF3d je obmedzen\xFD na vybran\xE9 skupiny z\xE1kazn\xEDkov.",
@@ -516,7 +551,9 @@ var ERROR_MESSAGES = {
516
551
  "be.storefront.downloadLimitReached": "Dosiahnut\xFD maxim\xE1lny po\u010Det stiahnut\xED.",
517
552
  "be.storefront.downloadLinkExpired": "Platnos\u0165 odkazu na stiahnutie vypr\u0161ala.",
518
553
  "be.storefront.downloadNotFound": "Stiahnutie sa nena\u0161lo.",
554
+ "be.storefront.downloadUnavailable": "S\xFAbor teraz nie je dostupn\xFD. Overte stav objedn\xE1vky alebo to sk\xFAste znova.",
519
555
  "be.storefront.emailProviderNotRegistered": "Poskytovate\u013E e-mailu {provider} nie je registrovan\xFD.",
556
+ "be.storefront.emailVerificationRequired": "Pred prihl\xE1sen\xEDm overte svoj e-mail.",
520
557
  "be.storefront.encryptionKeyMissing": "Na serveri nie je nastaven\xFD \u0161ifrovac\xED k\u013E\xFA\u010D.",
521
558
  "be.storefront.eshopNotFound": "E-shop sa nena\u0161iel.",
522
559
  "be.storefront.facetsInvalidJson": "Fazety musia by\u0165 JSON objekt.",
@@ -526,6 +563,7 @@ var ERROR_MESSAGES = {
526
563
  "be.storefront.giftCardCurrencyMismatch": "Mena dar\u010Dekovej karty nezodpoved\xE1 mene ko\u0161\xEDka.",
527
564
  "be.storefront.giftCardExpired": "Platnos\u0165 dar\u010Dekovej karty vypr\u0161ala.",
528
565
  "be.storefront.giftCardNoBalance": "Dar\u010Dekov\xE1 karta nem\xE1 \u017Eiadny zostatok.",
566
+ "be.storefront.giftCardsDisabled": "Tento obchod neprij\xEDma tento typ k\xF3du.",
529
567
  "be.storefront.gopayMissingCredentials": "Met\xF3de GoPay ch\xFDbaj\xFA prihlasovacie \xFAdaje.",
530
568
  "be.storefront.gopayResponseInvalid": "Odpove\u010F GoPay nenesie potrebn\xE9 polia.",
531
569
  "be.storefront.gopayWebhookInvalid": "Notifik\xE1cia GoPay nenesie id platby.",
@@ -550,6 +588,7 @@ var ERROR_MESSAGES = {
550
588
  "be.storefront.lessonLocked": "Lekcia je zamknut\xE1.",
551
589
  "be.storefront.lessonNoQuiz": "Lekcia nem\xE1 kv\xEDz.",
552
590
  "be.storefront.lessonNotFound": "Lekcia sa nena\u0161la.",
591
+ "be.storefront.loyaltyRedemptionUnavailable": "Tieto body nemo\u017Eno v tejto objedn\xE1vke uplatni\u0165. Skontrolujte podmienky vernostn\xE9ho programu.",
553
592
  "be.storefront.malformedState": "Po\u0161koden\xFD stav po\u017Eiadavky.",
554
593
  "be.storefront.maxItemsPerProduct": "Rovnak\xE9ho produktu je mo\u017En\xE9 objedna\u0165 najviac {max} kusov.",
555
594
  "be.storefront.maxOrderValue": "Maxim\xE1lna hodnota objedn\xE1vky je {max}.",
@@ -580,12 +619,16 @@ var ERROR_MESSAGES = {
580
619
  "be.storefront.pageNotFound": "Str\xE1nka sa nena\u0161la.",
581
620
  "be.storefront.parameterGroupNotFound": "Skupina parametrov sa nena\u0161la.",
582
621
  "be.storefront.parametersInvalidJson": "Neplatn\xFD JSON parametrov.",
622
+ "be.storefront.passwordLengthRequired": "Heslo mus\xED ma\u0165 aspo\u0148 {min} a najviac {max} znakov.",
623
+ "be.storefront.paymentInstrumentInvalid": "Zvolen\xFD sp\xF4sob platby pri tejto platobnej met\xF3de nie je k dispoz\xEDcii. Vyberte pros\xEDm in\xFD.",
624
+ "be.storefront.paymentMethodRequired": "Vyberte platobn\xFA met\xF3du.",
583
625
  "be.storefront.paymentMethodUnavailable": "Platobn\xE1 met\xF3da nie je dostupn\xE1.",
584
626
  "be.storefront.paypalMissingCredentials": "Met\xF3de PayPal ch\xFDbaj\xFA prihlasovacie \xFAdaje.",
585
627
  "be.storefront.paypalWebhookInvalid": "Notifik\xE1cia PayPal nenesie id objedn\xE1vky.",
586
628
  "be.storefront.phoneRequired": "Na dokon\u010Denie objedn\xE1vky je potrebn\xE9 telef\xF3nne \u010D\xEDslo.",
587
629
  "be.storefront.pickupPointRequired": "Vybran\xE1 doprava vy\u017Eaduje zvolen\xE9 v\xFDdajn\xE9 miesto.",
588
630
  "be.storefront.placeNotFound": "Miesto sa nena\u0161lo.",
631
+ "be.storefront.pricingUnavailable": "Ceny produktov teraz nie s\xFA dostupn\xE9. Sk\xFAste to pros\xEDm znova.",
589
632
  "be.storefront.privacyAgreementRequired": "K objedn\xE1vke je potrebn\xFD s\xFAhlas so z\xE1sadami ochrany osobn\xFDch \xFAdajov.",
590
633
  "be.storefront.privateApiKeyRequired": "Tento endpoint vy\u017Eaduje priv\xE1tny API k\u013E\xFA\u010D.",
591
634
  "be.storefront.productGroupNotFound": "Skupina produktov sa nena\u0161la.",
@@ -608,12 +651,14 @@ var ERROR_MESSAGES = {
608
651
  "be.storefront.saleEnded": "Predaj produktu {name} sa skon\u010Dil.",
609
652
  "be.storefront.saleNotStarted": "Predaj produktu {name} sa e\u0161te neza\u010Dal.",
610
653
  "be.storefront.sessionTokenRequired": "Ch\xFDba identifik\xE1cia ko\u0161\xEDka alebo z\xE1kazn\xEDka.",
654
+ "be.storefront.shippingAddressRequired": "Fyzick\xE9 produkty vy\u017Eaduj\xFA doru\u010Dovaciu adresu.",
611
655
  "be.storefront.shippingMethodNotFound": "Doprava sa nena\u0161la.",
612
656
  "be.storefront.shippingMethodRequired": "Ch\xFDba zvolen\xE1 doprava.",
613
657
  "be.storefront.shippingMethodUnavailable": "Vybran\xE1 doprava u\u017E nie je dostupn\xE1.",
614
658
  "be.storefront.shippingQuoteCurrencyMismatch": "Mena kalkul\xE1cie dopravy nezodpoved\xE1 ko\u0161\xEDku. Na\u010D\xEDtajte dopravu znova.",
615
659
  "be.storefront.shippingQuoteNotFound": "Kalkul\xE1cia dopravy neexistuje alebo u\u017E bola pou\u017Eit\xE1.",
616
660
  "be.storefront.shippingQuoteStale": "Ko\u0161\xEDk sa od kalkul\xE1cie dopravy zmenil. Na\u010D\xEDtajte mo\u017Enosti dopravy znova.",
661
+ "be.storefront.shopMaintenance": "Obchod je v \xFAdr\u017Ebe. Sk\xFAste to pros\xEDm nesk\xF4r.",
617
662
  "be.storefront.shopNotAvailable": "E-shop nie je dostupn\xFD.",
618
663
  "be.storefront.siteKeyNotAllowed": "Tento k\u013E\xFA\u010D patr\xED webu bez napojen\xE9ho e-shopu, obchodn\xE9 endpointy pre\u0148 nie s\xFA dostupn\xE9.",
619
664
  "be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
@@ -659,6 +704,8 @@ var ERROR_MESSAGES = {
659
704
  "be.payments.gatewayCreateFailed": "The payment could not be created with {provider}. Please try again or choose another payment method.",
660
705
  "be.payments.gatewayMissingCredentials": "The {provider} payment gateway is missing credentials. Please fill them in in the payment method settings.",
661
706
  "be.payments.gatewayStatusFailed": "The payment status could not be verified with {provider}. Please try again in a moment.",
707
+ "be.payments.returnNotFound": "This payment return link is not valid.",
708
+ "be.payments.returnSecretMissing": "Payment return is not configured on the server.",
662
709
  "be.payments.webhookMissingPaymentId": "The notification from {provider} does not contain a payment identifier.",
663
710
  "be.payments.webhookSignatureInvalid": "The payment notification signature is not valid.",
664
711
  "be.sms.accountInactive": "The operator account is not active, so nothing will go out through it. Check it in their administration.",
@@ -700,6 +747,7 @@ var ERROR_MESSAGES = {
700
747
  "be.storefront.cartNotFound": "Cart not found",
701
748
  "be.storefront.categoryNotFound": "Category not found",
702
749
  "be.storefront.certificateNotFound": "Certificate not found",
750
+ "be.storefront.checkoutChanged": "Your order has changed. Please review the updated total before placing it.",
703
751
  "be.storefront.comgateMissingCredentials": "Comgate method is missing credentials",
704
752
  "be.storefront.comgateWebhookInvalid": "Comgate webhook is missing the transaction id",
705
753
  "be.storefront.commentNotFound": "Comment not found",
@@ -708,13 +756,16 @@ var ERROR_MESSAGES = {
708
756
  "be.storefront.connectLinkExpired": "Connect link expired, please retry",
709
757
  "be.storefront.countryNotAllowed": "Country {country} is not allowed for this shop",
710
758
  "be.storefront.courseAccessExpired": "Course access has expired",
759
+ "be.storefront.courseAccessRevoked": "Access is no longer available for this purchase.",
711
760
  "be.storefront.courseNotFound": "Course not found",
712
761
  "be.storefront.currencyNotSupported": "Currency is not supported by this shop",
713
762
  "be.storefront.currencyRequired": "Field currency is required",
714
763
  "be.storefront.currentPasswordIncorrect": "Current password is incorrect",
715
764
  "be.storefront.customerEmailTaken": "Customer with this email already exists",
765
+ "be.storefront.customerLoginRequired": "Sign in to view prices and purchase products.",
716
766
  "be.storefront.customerNotFound": "Customer not found",
717
767
  "be.storefront.destinationCountryRequired": "Destination country is required",
768
+ "be.storefront.discountCodesDisabled": "This shop does not accept this type of code.",
718
769
  "be.storefront.discountExpired": "Discount code has expired",
719
770
  "be.storefront.discountInactive": "Discount code is no longer active",
720
771
  "be.storefront.discountLimitedToGroups": "Discount code is limited to specific customer groups",
@@ -730,7 +781,9 @@ var ERROR_MESSAGES = {
730
781
  "be.storefront.downloadLimitReached": "Maximum download limit reached",
731
782
  "be.storefront.downloadLinkExpired": "Download link has expired",
732
783
  "be.storefront.downloadNotFound": "Download not found",
784
+ "be.storefront.downloadUnavailable": "The file is unavailable. Check the order status or try again.",
733
785
  "be.storefront.emailProviderNotRegistered": "E-mail provider is not registered",
786
+ "be.storefront.emailVerificationRequired": "Verify your email before signing in.",
734
787
  "be.storefront.encryptionKeyMissing": "Encryption key is not configured on the server",
735
788
  "be.storefront.eshopNotFound": "Shop not found",
736
789
  "be.storefront.facetsInvalidJson": "Facets must be a JSON object",
@@ -740,6 +793,7 @@ var ERROR_MESSAGES = {
740
793
  "be.storefront.giftCardCurrencyMismatch": "Gift card currency does not match the cart currency",
741
794
  "be.storefront.giftCardExpired": "Gift card has expired",
742
795
  "be.storefront.giftCardNoBalance": "Gift card has no remaining balance",
796
+ "be.storefront.giftCardsDisabled": "This shop does not accept this type of code.",
743
797
  "be.storefront.gopayMissingCredentials": "GoPay method is missing credentials",
744
798
  "be.storefront.gopayResponseInvalid": "GoPay response is missing required fields",
745
799
  "be.storefront.gopayWebhookInvalid": "GoPay webhook is missing the payment id",
@@ -764,6 +818,7 @@ var ERROR_MESSAGES = {
764
818
  "be.storefront.lessonLocked": "Lesson is locked",
765
819
  "be.storefront.lessonNoQuiz": "Lesson has no quiz",
766
820
  "be.storefront.lessonNotFound": "Lesson not found",
821
+ "be.storefront.loyaltyRedemptionUnavailable": "These points cannot be applied to this order. Please check the loyalty program conditions.",
767
822
  "be.storefront.malformedState": "Malformed state",
768
823
  "be.storefront.maxItemsPerProduct": "You can order at most {max} of the same product",
769
824
  "be.storefront.maxOrderValue": "The maximum order value is {max}",
@@ -794,12 +849,16 @@ var ERROR_MESSAGES = {
794
849
  "be.storefront.pageNotFound": "Page not found",
795
850
  "be.storefront.parameterGroupNotFound": "Parameter group not found",
796
851
  "be.storefront.parametersInvalidJson": "Invalid parameters JSON",
852
+ "be.storefront.passwordLengthRequired": "Password must contain between {min} and {max} characters.",
853
+ "be.storefront.paymentInstrumentInvalid": "The selected payment option is not available for this payment method. Please choose another one.",
854
+ "be.storefront.paymentMethodRequired": "Select a payment method.",
797
855
  "be.storefront.paymentMethodUnavailable": "Payment method not available",
798
856
  "be.storefront.paypalMissingCredentials": "PayPal method is missing credentials",
799
857
  "be.storefront.paypalWebhookInvalid": "PayPal webhook is missing the order id",
800
858
  "be.storefront.phoneRequired": "Phone number is required to place this order",
801
859
  "be.storefront.pickupPointRequired": "A pickup point is required for the selected shipping method",
802
860
  "be.storefront.placeNotFound": "Place not found",
861
+ "be.storefront.pricingUnavailable": "Product prices are temporarily unavailable. Please try again.",
803
862
  "be.storefront.privacyAgreementRequired": "You must agree to the privacy policy to order",
804
863
  "be.storefront.privateApiKeyRequired": "This endpoint requires a private API key",
805
864
  "be.storefront.productGroupNotFound": "Product group not found",
@@ -822,12 +881,14 @@ var ERROR_MESSAGES = {
822
881
  "be.storefront.saleEnded": "Sale for {name} has ended",
823
882
  "be.storefront.saleNotStarted": "Sale for {name} has not started yet",
824
883
  "be.storefront.sessionTokenRequired": "Session token or customer id required",
884
+ "be.storefront.shippingAddressRequired": "Physical products require a delivery address.",
825
885
  "be.storefront.shippingMethodNotFound": "Shipping method not found",
826
886
  "be.storefront.shippingMethodRequired": "Shipping method is required",
827
887
  "be.storefront.shippingMethodUnavailable": "Selected shipping method is no longer available",
828
888
  "be.storefront.shippingQuoteCurrencyMismatch": "Shipping quote currency does not match the cart",
829
889
  "be.storefront.shippingQuoteNotFound": "Shipping quote not found or already used",
830
890
  "be.storefront.shippingQuoteStale": "Cart has changed since the shipping quote was issued, re-fetch shipping",
891
+ "be.storefront.shopMaintenance": "The shop is under maintenance. Please try again later.",
831
892
  "be.storefront.shopNotAvailable": "Shop is not available",
832
893
  "be.storefront.siteKeyNotAllowed": "This key belongs to a website without a linked e-shop, commerce endpoints are not available for it",
833
894
  "be.storefront.siteOwnerMissing": "The site has no owner (neither e-shop nor website)",
@@ -872,7 +933,7 @@ var GENERIC = {
872
933
  en: "Something went wrong, please try again."
873
934
  };
874
935
  function bodyOf(err2) {
875
- const body = err2 instanceof _chunkGAYYRRULjs.BehioApiError ? err2.body : err2 && typeof err2 === "object" && "body" in err2 ? err2.body : err2;
936
+ const body = err2 instanceof _chunkTDIAWIQRjs.BehioApiError ? err2.body : err2 && typeof err2 === "object" && "body" in err2 ? err2.body : err2;
876
937
  return body && typeof body === "object" ? body : null;
877
938
  }
878
939
  function errorCode(err2) {
@@ -883,7 +944,7 @@ function errorCode(err2) {
883
944
  }
884
945
  function errorParams(err2) {
885
946
  const body = bodyOf(err2);
886
- const params = _optionalChain([body, 'optionalAccess', _23 => _23.params]);
947
+ const params = _optionalChain([body, 'optionalAccess', _38 => _38.params]);
887
948
  return params && typeof params === "object" && !Array.isArray(params) ? params : {};
888
949
  }
889
950
  function interpolate(template, params) {
@@ -911,7 +972,7 @@ function errorMessage(err2, locale = "en") {
911
972
  }
912
973
  function validationFieldMessages(err2, locale = "en") {
913
974
  const body = bodyOf(err2);
914
- const fields = _optionalChain([body, 'optionalAccess', _24 => _24.fields]);
975
+ const fields = _optionalChain([body, 'optionalAccess', _39 => _39.fields]);
915
976
  if (!Array.isArray(fields)) return {};
916
977
  const messages = _nullishCoalesce(ERROR_MESSAGES[locale], () => ( ERROR_MESSAGES.en));
917
978
  const out = {};
@@ -984,4 +1045,4 @@ function formFieldErrors(err2) {
984
1045
 
985
1046
 
986
1047
 
987
- exports.AddressTypes = _chunkGAYYRRULjs.AddressTypes; exports.BehioApiError = _chunkGAYYRRULjs.BehioApiError; exports.BehioNetworkError = _chunkGAYYRRULjs.BehioNetworkError; exports.BehioStorefront = _chunkGAYYRRULjs.BehioStorefront; exports.FulfillmentStatuses = _chunkGAYYRRULjs.FulfillmentStatuses; exports.OrderStatuses = _chunkGAYYRRULjs.OrderStatuses; exports.PaymentStatuses = _chunkGAYYRRULjs.PaymentStatuses; exports.ProductSort = _chunkGAYYRRULjs.ProductSort; exports.VARIANT_QUERY_PARAM = VARIANT_QUERY_PARAM; exports.availableAxisValues = availableAxisValues; exports.buildVariantComparison = buildVariantComparison; exports.err = _chunkGAYYRRULjs.err; exports.errorCode = errorCode; exports.errorMessage = errorMessage; exports.errorParams = errorParams; exports.findVariantByAttributes = findVariantByAttributes; exports.formFieldErrors = formFieldErrors; exports.formatPrice = formatPrice; exports.generateVisitorId = generateVisitorId; exports.getStoredVisitorId = getStoredVisitorId; exports.grantAnalyticsConsent = grantAnalyticsConsent; exports.ok = _chunkGAYYRRULjs.ok; exports.resolveVariantContent = resolveVariantContent; exports.revokeAnalyticsConsent = revokeAnalyticsConsent; exports.toSdkError = _chunkGAYYRRULjs.toSdkError; exports.trackEcommerceEvent = trackEcommerceEvent; exports.validationFieldMessages = validationFieldMessages; exports.variantFromQuery = variantFromQuery; exports.variantHref = variantHref;
1048
+ exports.AddressTypes = _chunkTDIAWIQRjs.AddressTypes; exports.BehioApiError = _chunkTDIAWIQRjs.BehioApiError; exports.BehioNetworkError = _chunkTDIAWIQRjs.BehioNetworkError; exports.BehioStorefront = _chunkTDIAWIQRjs.BehioStorefront; exports.FulfillmentStatuses = _chunkTDIAWIQRjs.FulfillmentStatuses; exports.OrderStatuses = _chunkTDIAWIQRjs.OrderStatuses; exports.PaymentStatuses = _chunkTDIAWIQRjs.PaymentStatuses; exports.ProductSort = _chunkTDIAWIQRjs.ProductSort; exports.VARIANT_QUERY_PARAM = VARIANT_QUERY_PARAM; exports.availableAxisValues = availableAxisValues; exports.buildVariantComparison = buildVariantComparison; exports.err = _chunkTDIAWIQRjs.err; exports.errorCode = errorCode; exports.errorMessage = errorMessage; exports.errorParams = errorParams; exports.findVariantByAttributes = findVariantByAttributes; exports.formFieldErrors = formFieldErrors; exports.formatPrice = formatPrice; exports.generateVisitorId = generateVisitorId; exports.getStoredVisitorId = getStoredVisitorId; exports.grantAnalyticsConsent = grantAnalyticsConsent; exports.ok = _chunkTDIAWIQRjs.ok; exports.resolveVariantContent = resolveVariantContent; exports.revokeAnalyticsConsent = revokeAnalyticsConsent; exports.toSdkError = _chunkTDIAWIQRjs.toSdkError; exports.trackEcommerceEvent = trackEcommerceEvent; exports.validationFieldMessages = validationFieldMessages; exports.variantFromQuery = variantFromQuery; exports.variantHref = variantHref;