@cimplify/sdk 0.23.0 → 0.24.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/advanced.js CHANGED
@@ -1,83 +1,83 @@
1
1
  'use strict';
2
2
 
3
- var chunkTXQHTHY5_js = require('./chunk-TXQHTHY5.js');
4
- require('./chunk-KRNWMUBN.js');
3
+ var chunkI4F4Y3D4_js = require('./chunk-I4F4Y3D4.js');
4
+ require('./chunk-PEDLCL72.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AuthService", {
9
9
  enumerable: true,
10
- get: function () { return chunkTXQHTHY5_js.AuthService; }
10
+ get: function () { return chunkI4F4Y3D4_js.AuthService; }
11
11
  });
12
12
  Object.defineProperty(exports, "BusinessService", {
13
13
  enumerable: true,
14
- get: function () { return chunkTXQHTHY5_js.BusinessService; }
14
+ get: function () { return chunkI4F4Y3D4_js.BusinessService; }
15
15
  });
16
16
  Object.defineProperty(exports, "CartOperations", {
17
17
  enumerable: true,
18
- get: function () { return chunkTXQHTHY5_js.CartOperations; }
18
+ get: function () { return chunkI4F4Y3D4_js.CartOperations; }
19
19
  });
20
20
  Object.defineProperty(exports, "CatalogueQueries", {
21
21
  enumerable: true,
22
- get: function () { return chunkTXQHTHY5_js.CatalogueQueries; }
22
+ get: function () { return chunkI4F4Y3D4_js.CatalogueQueries; }
23
23
  });
24
24
  Object.defineProperty(exports, "CheckoutOperations", {
25
25
  enumerable: true,
26
- get: function () { return chunkTXQHTHY5_js.CheckoutService; }
26
+ get: function () { return chunkI4F4Y3D4_js.CheckoutService; }
27
27
  });
28
28
  Object.defineProperty(exports, "CheckoutService", {
29
29
  enumerable: true,
30
- get: function () { return chunkTXQHTHY5_js.CheckoutService; }
30
+ get: function () { return chunkI4F4Y3D4_js.CheckoutService; }
31
31
  });
32
32
  Object.defineProperty(exports, "CimplifyElement", {
33
33
  enumerable: true,
34
- get: function () { return chunkTXQHTHY5_js.CimplifyElement; }
34
+ get: function () { return chunkI4F4Y3D4_js.CimplifyElement; }
35
35
  });
36
36
  Object.defineProperty(exports, "CimplifyElements", {
37
37
  enumerable: true,
38
- get: function () { return chunkTXQHTHY5_js.CimplifyElements; }
38
+ get: function () { return chunkI4F4Y3D4_js.CimplifyElements; }
39
39
  });
40
40
  Object.defineProperty(exports, "ELEMENT_TYPES", {
41
41
  enumerable: true,
42
- get: function () { return chunkTXQHTHY5_js.ELEMENT_TYPES; }
42
+ get: function () { return chunkI4F4Y3D4_js.ELEMENT_TYPES; }
43
43
  });
44
44
  Object.defineProperty(exports, "EVENT_TYPES", {
45
45
  enumerable: true,
46
- get: function () { return chunkTXQHTHY5_js.EVENT_TYPES; }
46
+ get: function () { return chunkI4F4Y3D4_js.EVENT_TYPES; }
47
47
  });
48
48
  Object.defineProperty(exports, "FxService", {
49
49
  enumerable: true,
50
- get: function () { return chunkTXQHTHY5_js.FxService; }
50
+ get: function () { return chunkI4F4Y3D4_js.FxService; }
51
51
  });
52
52
  Object.defineProperty(exports, "InventoryService", {
53
53
  enumerable: true,
54
- get: function () { return chunkTXQHTHY5_js.InventoryService; }
54
+ get: function () { return chunkI4F4Y3D4_js.InventoryService; }
55
55
  });
56
56
  Object.defineProperty(exports, "LinkService", {
57
57
  enumerable: true,
58
- get: function () { return chunkTXQHTHY5_js.LinkService; }
58
+ get: function () { return chunkI4F4Y3D4_js.LinkService; }
59
59
  });
60
60
  Object.defineProperty(exports, "LiteService", {
61
61
  enumerable: true,
62
- get: function () { return chunkTXQHTHY5_js.LiteService; }
62
+ get: function () { return chunkI4F4Y3D4_js.LiteService; }
63
63
  });
64
64
  Object.defineProperty(exports, "MESSAGE_TYPES", {
65
65
  enumerable: true,
66
- get: function () { return chunkTXQHTHY5_js.MESSAGE_TYPES; }
66
+ get: function () { return chunkI4F4Y3D4_js.MESSAGE_TYPES; }
67
67
  });
68
68
  Object.defineProperty(exports, "OrderQueries", {
69
69
  enumerable: true,
70
- get: function () { return chunkTXQHTHY5_js.OrderQueries; }
70
+ get: function () { return chunkI4F4Y3D4_js.OrderQueries; }
71
71
  });
72
72
  Object.defineProperty(exports, "SchedulingService", {
73
73
  enumerable: true,
74
- get: function () { return chunkTXQHTHY5_js.SchedulingService; }
74
+ get: function () { return chunkI4F4Y3D4_js.SchedulingService; }
75
75
  });
76
76
  Object.defineProperty(exports, "createElements", {
77
77
  enumerable: true,
78
- get: function () { return chunkTXQHTHY5_js.createElements; }
78
+ get: function () { return chunkI4F4Y3D4_js.createElements; }
79
79
  });
80
80
  Object.defineProperty(exports, "generateIdempotencyKey", {
81
81
  enumerable: true,
82
- get: function () { return chunkTXQHTHY5_js.generateIdempotencyKey; }
82
+ get: function () { return chunkI4F4Y3D4_js.generateIdempotencyKey; }
83
83
  });
package/dist/advanced.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-BYQPMSH2.mjs';
2
- import './chunk-OANVYH27.mjs';
1
+ export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-TBZLJPM4.mjs';
2
+ import './chunk-E3HC2YAE.mjs';
@@ -454,7 +454,7 @@ function getPriceRange(product) {
454
454
  return { min: Math.min(...prices), max: Math.max(...prices) };
455
455
  }
456
456
  const variants = product.variants;
457
- if (Array.isArray(variants) && variants.length > 1) {
457
+ if (variants && variants.length > 1) {
458
458
  const base = parsePrice(product.default_price);
459
459
  const prices = variants.map(
460
460
  (v) => base + parsePrice(v.price_adjustment ?? 0)
@@ -1,5 +1,5 @@
1
- import { safe, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-BYQPMSH2.mjs';
2
- import { CimplifyError, ErrorCode, enrichError } from './chunk-OANVYH27.mjs';
1
+ import { safe, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-TBZLJPM4.mjs';
2
+ import { CimplifyError, ErrorCode, enrichError } from './chunk-E3HC2YAE.mjs';
3
3
 
4
4
  // src/activity.ts
5
5
  var ActivityService = class {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkKRNWMUBN_js = require('./chunk-KRNWMUBN.js');
3
+ var chunkPEDLCL72_js = require('./chunk-PEDLCL72.js');
4
4
 
5
5
  // src/types/result.ts
6
6
  function ok(value) {
@@ -74,11 +74,11 @@ function combineObject(results) {
74
74
 
75
75
  // src/internal/safe.ts
76
76
  function toCimplifyError(error) {
77
- if (error instanceof chunkKRNWMUBN_js.CimplifyError) return chunkKRNWMUBN_js.enrichError(error);
77
+ if (error instanceof chunkPEDLCL72_js.CimplifyError) return chunkPEDLCL72_js.enrichError(error);
78
78
  if (error instanceof Error) {
79
- return chunkKRNWMUBN_js.enrichError(new chunkKRNWMUBN_js.CimplifyError(chunkKRNWMUBN_js.ErrorCode.UNKNOWN_ERROR, error.message, false));
79
+ return chunkPEDLCL72_js.enrichError(new chunkPEDLCL72_js.CimplifyError(chunkPEDLCL72_js.ErrorCode.UNKNOWN_ERROR, error.message, false));
80
80
  }
81
- return chunkKRNWMUBN_js.enrichError(new chunkKRNWMUBN_js.CimplifyError(chunkKRNWMUBN_js.ErrorCode.UNKNOWN_ERROR, String(error), false));
81
+ return chunkPEDLCL72_js.enrichError(new chunkPEDLCL72_js.CimplifyError(chunkPEDLCL72_js.ErrorCode.UNKNOWN_ERROR, String(error), false));
82
82
  }
83
83
  async function safe(promise) {
84
84
  try {
@@ -1071,7 +1071,7 @@ var CheckoutResolver = class {
1071
1071
  }
1072
1072
  }
1073
1073
  }
1074
- if (checkoutResult.requires_authorization || chunkKRNWMUBN_js.isPaymentStatusRequiresAction(checkoutResult.payment_status)) {
1074
+ if (checkoutResult.requires_authorization || chunkPEDLCL72_js.isPaymentStatusRequiresAction(checkoutResult.payment_status)) {
1075
1075
  const authorization = await this.handleAuthorization({
1076
1076
  authorizationType,
1077
1077
  paymentReference,
@@ -1245,18 +1245,18 @@ var CheckoutResolver = class {
1245
1245
  if (statusResult.value.reference) {
1246
1246
  paymentReference = statusResult.value.reference;
1247
1247
  }
1248
- const normalized = chunkKRNWMUBN_js.normalizeStatusResponse(statusResult.value);
1249
- if (normalized.paid || chunkKRNWMUBN_js.isPaymentStatusSuccess(normalized.status)) {
1248
+ const normalized = chunkPEDLCL72_js.normalizeStatusResponse(statusResult.value);
1249
+ if (normalized.paid || chunkPEDLCL72_js.isPaymentStatusSuccess(normalized.status)) {
1250
1250
  return this.finalizeSuccess(latestCheckoutResult);
1251
1251
  }
1252
- if (chunkKRNWMUBN_js.isPaymentStatusFailure(normalized.status)) {
1252
+ if (chunkPEDLCL72_js.isPaymentStatusFailure(normalized.status)) {
1253
1253
  return this.fail(
1254
1254
  normalized.status ? normalized.status.toUpperCase() : "PAYMENT_FAILED",
1255
1255
  normalized.message || "Payment failed during confirmation.",
1256
1256
  false
1257
1257
  );
1258
1258
  }
1259
- if (chunkKRNWMUBN_js.isPaymentStatusRequiresAction(normalized.status)) {
1259
+ if (chunkPEDLCL72_js.isPaymentStatusRequiresAction(normalized.status)) {
1260
1260
  const authorization = await this.handleAuthorization({
1261
1261
  authorizationType,
1262
1262
  paymentReference,
@@ -1287,8 +1287,8 @@ var CheckoutResolver = class {
1287
1287
  try {
1288
1288
  const finalResult = await this.client.checkout.pollPaymentStatus(input.orderId);
1289
1289
  if (finalResult.ok) {
1290
- const normalized = chunkKRNWMUBN_js.normalizeStatusResponse(finalResult.value);
1291
- if (normalized.paid || chunkKRNWMUBN_js.isPaymentStatusSuccess(normalized.status)) {
1290
+ const normalized = chunkPEDLCL72_js.normalizeStatusResponse(finalResult.value);
1291
+ if (normalized.paid || chunkPEDLCL72_js.isPaymentStatusSuccess(normalized.status)) {
1292
1292
  return this.finalizeSuccess(latestCheckoutResult);
1293
1293
  }
1294
1294
  }
@@ -1484,12 +1484,12 @@ var CheckoutResolver = class {
1484
1484
  };
1485
1485
  }
1486
1486
  isSuccessfulStatus(status) {
1487
- const normalized = chunkKRNWMUBN_js.normalizeStatusResponse({ status, paid: false });
1488
- return normalized.paid || chunkKRNWMUBN_js.isPaymentStatusSuccess(normalized.status);
1487
+ const normalized = chunkPEDLCL72_js.normalizeStatusResponse({ status, paid: false });
1488
+ return normalized.paid || chunkPEDLCL72_js.isPaymentStatusSuccess(normalized.status);
1489
1489
  }
1490
1490
  isFailureStatus(status) {
1491
- const normalized = chunkKRNWMUBN_js.normalizeStatusResponse({ status, paid: false });
1492
- return chunkKRNWMUBN_js.isPaymentStatusFailure(normalized.status);
1491
+ const normalized = chunkPEDLCL72_js.normalizeStatusResponse({ status, paid: false });
1492
+ return chunkPEDLCL72_js.isPaymentStatusFailure(normalized.status);
1493
1493
  }
1494
1494
  ensureNotAborted() {
1495
1495
  if (this.signal?.aborted) {
@@ -1560,7 +1560,7 @@ var CheckoutService = class {
1560
1560
  }
1561
1561
  async initializePayment(_orderId, _method) {
1562
1562
  return err(
1563
- new chunkKRNWMUBN_js.CimplifyError(
1563
+ new chunkPEDLCL72_js.CimplifyError(
1564
1564
  "NOT_IMPLEMENTED",
1565
1565
  "initializePayment is not available in REST mode.",
1566
1566
  false
@@ -1632,11 +1632,11 @@ var CheckoutService = class {
1632
1632
  pay_currency: data.pay_currency,
1633
1633
  fx_quote_id: data.fx_quote_id
1634
1634
  };
1635
- const baseCurrency = chunkKRNWMUBN_js.currencyCode(
1635
+ const baseCurrency = chunkPEDLCL72_js.currencyCode(
1636
1636
  (cart.pricing.currency || checkoutData.pay_currency || "GHS").toUpperCase()
1637
1637
  );
1638
1638
  const payCurrency = data.pay_currency?.trim().toUpperCase();
1639
- const payCurrencyCode = payCurrency ? chunkKRNWMUBN_js.currencyCode(payCurrency) : void 0;
1639
+ const payCurrencyCode = payCurrency ? chunkPEDLCL72_js.currencyCode(payCurrency) : void 0;
1640
1640
  const cartTotalAmount = typeof cart.pricing.total_price === "number" ? cart.pricing.total_price : Number.parseFloat(cart.pricing.total_price || "0");
1641
1641
  if (payCurrencyCode && payCurrencyCode !== baseCurrency && !checkoutData.fx_quote_id && Number.isFinite(cartTotalAmount) && cartTotalAmount > 0) {
1642
1642
  const fxQuoteResult = await this.client.fx.lockQuote({
@@ -1959,7 +1959,7 @@ var BusinessService = class {
1959
1959
  if (!result.ok) return err(result.error);
1960
1960
  const location = result.value.find((item) => item.id === locationId);
1961
1961
  if (!location) {
1962
- return err(new chunkKRNWMUBN_js.CimplifyError(chunkKRNWMUBN_js.ErrorCode.NOT_FOUND, `Location not found: ${locationId}`, false));
1962
+ return err(new chunkPEDLCL72_js.CimplifyError(chunkPEDLCL72_js.ErrorCode.NOT_FOUND, `Location not found: ${locationId}`, false));
1963
1963
  }
1964
1964
  return ok(location);
1965
1965
  }
@@ -2233,7 +2233,7 @@ var EVENT_TYPES = {
2233
2233
 
2234
2234
  // src/elements.ts
2235
2235
  function toCheckoutError(code, message, recoverable) {
2236
- const hint = chunkKRNWMUBN_js.getErrorHint(code);
2236
+ const hint = chunkPEDLCL72_js.getErrorHint(code);
2237
2237
  return {
2238
2238
  success: false,
2239
2239
  error: {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkTXQHTHY5_js = require('./chunk-TXQHTHY5.js');
4
- var chunkKRNWMUBN_js = require('./chunk-KRNWMUBN.js');
3
+ var chunkI4F4Y3D4_js = require('./chunk-I4F4Y3D4.js');
4
+ var chunkPEDLCL72_js = require('./chunk-PEDLCL72.js');
5
5
 
6
6
  // src/activity.ts
7
7
  var ActivityService = class {
@@ -29,7 +29,7 @@ var ActivityService = class {
29
29
  this.sendEvents([event]);
30
30
  }
31
31
  async getState() {
32
- return chunkTXQHTHY5_js.safe(this.client.get("/api/v1/activity/state"));
32
+ return chunkI4F4Y3D4_js.safe(this.client.get("/api/v1/activity/state"));
33
33
  }
34
34
  async getRecommendations(options) {
35
35
  const params = new URLSearchParams();
@@ -37,10 +37,10 @@ var ActivityService = class {
37
37
  if (options?.limit) params.set("limit", String(options.limit));
38
38
  const query = params.toString();
39
39
  const path = query ? `/api/v1/activity/recommendations?${query}` : "/api/v1/activity/recommendations";
40
- return chunkTXQHTHY5_js.safe(this.client.get(path));
40
+ return chunkI4F4Y3D4_js.safe(this.client.get(path));
41
41
  }
42
42
  async dismissMessage(code) {
43
- return chunkTXQHTHY5_js.safe(
43
+ return chunkI4F4Y3D4_js.safe(
44
44
  this.client.post("/api/v1/activity/messages/dismiss", { code })
45
45
  );
46
46
  }
@@ -66,7 +66,7 @@ var DeliveryService = class {
66
66
  params.set("dropoff_lat", String(dropoffLat));
67
67
  params.set("dropoff_lng", String(dropoffLng));
68
68
  if (country) params.set("country", country);
69
- return chunkTXQHTHY5_js.safe(
69
+ return chunkI4F4Y3D4_js.safe(
70
70
  this.client.get(`/api/v1/delivery/fee?${params.toString()}`)
71
71
  );
72
72
  }
@@ -91,16 +91,16 @@ function isRetryable(error) {
91
91
  if (error instanceof DOMException && error.name === "AbortError") {
92
92
  return true;
93
93
  }
94
- if (error instanceof chunkKRNWMUBN_js.CimplifyError) {
94
+ if (error instanceof chunkPEDLCL72_js.CimplifyError) {
95
95
  return error.retryable;
96
96
  }
97
97
  return false;
98
98
  }
99
99
  function toNetworkError(error, isTestMode) {
100
100
  if (error instanceof DOMException && error.name === "AbortError") {
101
- return chunkKRNWMUBN_js.enrichError(
102
- new chunkKRNWMUBN_js.CimplifyError(
103
- chunkKRNWMUBN_js.ErrorCode.TIMEOUT,
101
+ return chunkPEDLCL72_js.enrichError(
102
+ new chunkPEDLCL72_js.CimplifyError(
103
+ chunkPEDLCL72_js.ErrorCode.TIMEOUT,
104
104
  "Request timed out. Please check your connection and try again.",
105
105
  true
106
106
  ),
@@ -108,21 +108,21 @@ function toNetworkError(error, isTestMode) {
108
108
  );
109
109
  }
110
110
  if (error instanceof TypeError && error.message.includes("fetch")) {
111
- return chunkKRNWMUBN_js.enrichError(
112
- new chunkKRNWMUBN_js.CimplifyError(
113
- chunkKRNWMUBN_js.ErrorCode.NETWORK_ERROR,
111
+ return chunkPEDLCL72_js.enrichError(
112
+ new chunkPEDLCL72_js.CimplifyError(
113
+ chunkPEDLCL72_js.ErrorCode.NETWORK_ERROR,
114
114
  "Network error. Please check your internet connection.",
115
115
  true
116
116
  ),
117
117
  { isTestMode }
118
118
  );
119
119
  }
120
- if (error instanceof chunkKRNWMUBN_js.CimplifyError) {
121
- return chunkKRNWMUBN_js.enrichError(error, { isTestMode });
120
+ if (error instanceof chunkPEDLCL72_js.CimplifyError) {
121
+ return chunkPEDLCL72_js.enrichError(error, { isTestMode });
122
122
  }
123
- return chunkKRNWMUBN_js.enrichError(
124
- new chunkKRNWMUBN_js.CimplifyError(
125
- chunkKRNWMUBN_js.ErrorCode.UNKNOWN_ERROR,
123
+ return chunkPEDLCL72_js.enrichError(
124
+ new chunkPEDLCL72_js.CimplifyError(
125
+ chunkPEDLCL72_js.ErrorCode.UNKNOWN_ERROR,
126
126
  error instanceof Error ? error.message : "An unknown error occurred",
127
127
  false
128
128
  ),
@@ -289,8 +289,8 @@ var CimplifyClient = class {
289
289
  this.businessIdResolvePromise = (async () => {
290
290
  const result = await this.business.getInfo();
291
291
  if (!result.ok || !result.value?.id) {
292
- throw new chunkKRNWMUBN_js.CimplifyError(
293
- chunkKRNWMUBN_js.ErrorCode.NOT_FOUND,
292
+ throw new chunkPEDLCL72_js.CimplifyError(
293
+ chunkPEDLCL72_js.ErrorCode.NOT_FOUND,
294
294
  "Unable to resolve business ID from the current public key.",
295
295
  true
296
296
  );
@@ -407,7 +407,7 @@ var CimplifyClient = class {
407
407
  if (response.status >= 400 && response.status < 500) {
408
408
  this.hooks.onRequestError?.({
409
409
  ...context,
410
- error: new chunkKRNWMUBN_js.CimplifyError(
410
+ error: new chunkPEDLCL72_js.CimplifyError(
411
411
  `HTTP_${response.status}`,
412
412
  `Request failed with status ${response.status}`,
413
413
  false
@@ -433,7 +433,7 @@ var CimplifyClient = class {
433
433
  }
434
434
  this.hooks.onRequestError?.({
435
435
  ...context,
436
- error: new chunkKRNWMUBN_js.CimplifyError(
436
+ error: new chunkPEDLCL72_js.CimplifyError(
437
437
  "SERVER_ERROR",
438
438
  `Server error ${response.status} after ${retryCount} retries`,
439
439
  false
@@ -564,15 +564,15 @@ var CimplifyClient = class {
564
564
  const errorCode = typeof json.error === "object" && json.error?.error_code || typeof json.error === "object" && json.error?.code || "API_ERROR";
565
565
  const errorMessage = typeof json.error === "object" && json.error?.error_message || typeof json.error === "object" && json.error?.message || typeof json.error === "string" && json.error || typeof json.message === "string" && json.message || "An error occurred";
566
566
  const retryable = typeof json.error === "object" && typeof json.error?.retryable === "boolean" ? json.error.retryable : false;
567
- const error = chunkKRNWMUBN_js.enrichError(
568
- new chunkKRNWMUBN_js.CimplifyError(
567
+ const error = chunkPEDLCL72_js.enrichError(
568
+ new chunkPEDLCL72_js.CimplifyError(
569
569
  errorCode,
570
570
  errorMessage,
571
571
  retryable
572
572
  ),
573
573
  { isTestMode: this.isTestMode() }
574
574
  );
575
- if (response.status === 401 || error.code === chunkKRNWMUBN_js.ErrorCode.UNAUTHORIZED) {
575
+ if (response.status === 401 || error.code === chunkPEDLCL72_js.ErrorCode.UNAUTHORIZED) {
576
576
  console.warn(
577
577
  "[Cimplify] Received 401 Unauthorized. Access token may be missing/expired. Refresh authentication and retry the request."
578
578
  );
@@ -580,8 +580,8 @@ var CimplifyClient = class {
580
580
  throw error;
581
581
  }
582
582
  if (json?.success === false || json?.error?.code || json?.error?.message) {
583
- const error = chunkKRNWMUBN_js.enrichError(
584
- new chunkKRNWMUBN_js.CimplifyError(
583
+ const error = chunkPEDLCL72_js.enrichError(
584
+ new chunkPEDLCL72_js.CimplifyError(
585
585
  json.error?.code || "API_ERROR",
586
586
  json.error?.message || "An error occurred",
587
587
  json.error?.retryable || false
@@ -597,67 +597,67 @@ var CimplifyClient = class {
597
597
  }
598
598
  get catalogue() {
599
599
  if (!this._catalogue) {
600
- this._catalogue = new chunkTXQHTHY5_js.CatalogueQueries(this);
600
+ this._catalogue = new chunkI4F4Y3D4_js.CatalogueQueries(this);
601
601
  }
602
602
  return this._catalogue;
603
603
  }
604
604
  get cart() {
605
605
  if (!this._cart) {
606
- this._cart = new chunkTXQHTHY5_js.CartOperations(this);
606
+ this._cart = new chunkI4F4Y3D4_js.CartOperations(this);
607
607
  }
608
608
  return this._cart;
609
609
  }
610
610
  get checkout() {
611
611
  if (!this._checkout) {
612
- this._checkout = new chunkTXQHTHY5_js.CheckoutService(this);
612
+ this._checkout = new chunkI4F4Y3D4_js.CheckoutService(this);
613
613
  }
614
614
  return this._checkout;
615
615
  }
616
616
  get orders() {
617
617
  if (!this._orders) {
618
- this._orders = new chunkTXQHTHY5_js.OrderQueries(this);
618
+ this._orders = new chunkI4F4Y3D4_js.OrderQueries(this);
619
619
  }
620
620
  return this._orders;
621
621
  }
622
622
  get link() {
623
623
  if (!this._link) {
624
- this._link = new chunkTXQHTHY5_js.LinkService(this);
624
+ this._link = new chunkI4F4Y3D4_js.LinkService(this);
625
625
  }
626
626
  return this._link;
627
627
  }
628
628
  get auth() {
629
629
  if (!this._auth) {
630
- this._auth = new chunkTXQHTHY5_js.AuthService(this);
630
+ this._auth = new chunkI4F4Y3D4_js.AuthService(this);
631
631
  }
632
632
  return this._auth;
633
633
  }
634
634
  get business() {
635
635
  if (!this._business) {
636
- this._business = new chunkTXQHTHY5_js.BusinessService(this);
636
+ this._business = new chunkI4F4Y3D4_js.BusinessService(this);
637
637
  }
638
638
  return this._business;
639
639
  }
640
640
  get inventory() {
641
641
  if (!this._inventory) {
642
- this._inventory = new chunkTXQHTHY5_js.InventoryService(this);
642
+ this._inventory = new chunkI4F4Y3D4_js.InventoryService(this);
643
643
  }
644
644
  return this._inventory;
645
645
  }
646
646
  get scheduling() {
647
647
  if (!this._scheduling) {
648
- this._scheduling = new chunkTXQHTHY5_js.SchedulingService(this);
648
+ this._scheduling = new chunkI4F4Y3D4_js.SchedulingService(this);
649
649
  }
650
650
  return this._scheduling;
651
651
  }
652
652
  get lite() {
653
653
  if (!this._lite) {
654
- this._lite = new chunkTXQHTHY5_js.LiteService(this);
654
+ this._lite = new chunkI4F4Y3D4_js.LiteService(this);
655
655
  }
656
656
  return this._lite;
657
657
  }
658
658
  get fx() {
659
659
  if (!this._fx) {
660
- this._fx = new chunkTXQHTHY5_js.FxService(this);
660
+ this._fx = new chunkI4F4Y3D4_js.FxService(this);
661
661
  }
662
662
  return this._fx;
663
663
  }
@@ -677,7 +677,7 @@ var CimplifyClient = class {
677
677
  if (businessId) {
678
678
  this.setBusinessId(businessId);
679
679
  }
680
- return chunkTXQHTHY5_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
680
+ return chunkI4F4Y3D4_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
681
681
  }
682
682
  };
683
683
  function createCimplifyClient(config = {}) {
@@ -456,7 +456,7 @@ function getPriceRange(product) {
456
456
  return { min: Math.min(...prices), max: Math.max(...prices) };
457
457
  }
458
458
  const variants = product.variants;
459
- if (Array.isArray(variants) && variants.length > 1) {
459
+ if (variants && variants.length > 1) {
460
460
  const base = parsePrice(product.default_price);
461
461
  const prices = variants.map(
462
462
  (v) => base + parsePrice(v.price_adjustment ?? 0)
@@ -1,4 +1,4 @@
1
- import { CimplifyError, currencyCode, ErrorCode, enrichError, isPaymentStatusRequiresAction, normalizeStatusResponse, isPaymentStatusSuccess, isPaymentStatusFailure, getErrorHint } from './chunk-OANVYH27.mjs';
1
+ import { CimplifyError, currencyCode, ErrorCode, enrichError, isPaymentStatusRequiresAction, normalizeStatusResponse, isPaymentStatusSuccess, isPaymentStatusFailure, getErrorHint } from './chunk-E3HC2YAE.mjs';
2
2
 
3
3
  // src/types/result.ts
4
4
  function ok(value) {
@@ -1,4 +1,4 @@
1
- import { M as Money, a as CurrencyCode, aT as PricePathTaxInfo, Q as QuantityPricingTier, J as Product, bE as PaymentErrorDetails, bC as PaymentResponse, bD as PaymentStatusResponse } from './payment-DqiwuLma.mjs';
1
+ import { M as Money, a as CurrencyCode, aT as PricePathTaxInfo, Q as QuantityPricingTier, J as Product, L as ProductWithDetails, bE as PaymentErrorDetails, bC as PaymentResponse, bD as PaymentStatusResponse } from './payment-DqiwuLma.mjs';
2
2
  import { P as ProductWithPrice } from './price-DVQrpE7j.mjs';
3
3
  import { CountryCode } from 'libphonenumber-js';
4
4
 
@@ -31,7 +31,7 @@ declare function getMarkupPercentage(product: ProductWithPrice): number;
31
31
  declare function getProductCurrency(product: ProductWithPrice): CurrencyCode;
32
32
  declare function formatProductPrice(product: ProductWithPrice, locale?: string): string;
33
33
  declare function getUnitPriceAtQuantity(tiers: QuantityPricingTier[], quantity: number, fallback: number): number;
34
- declare function getPriceRange(product: Product): {
34
+ declare function getPriceRange(product: Product | ProductWithDetails): {
35
35
  min: number;
36
36
  max: number;
37
37
  } | null;
@@ -1,4 +1,4 @@
1
- import { M as Money, a as CurrencyCode, aT as PricePathTaxInfo, Q as QuantityPricingTier, J as Product, bE as PaymentErrorDetails, bC as PaymentResponse, bD as PaymentStatusResponse } from './payment-DqiwuLma.js';
1
+ import { M as Money, a as CurrencyCode, aT as PricePathTaxInfo, Q as QuantityPricingTier, J as Product, L as ProductWithDetails, bE as PaymentErrorDetails, bC as PaymentResponse, bD as PaymentStatusResponse } from './payment-DqiwuLma.js';
2
2
  import { P as ProductWithPrice } from './price-BZlddg1A.js';
3
3
  import { CountryCode } from 'libphonenumber-js';
4
4
 
@@ -31,7 +31,7 @@ declare function getMarkupPercentage(product: ProductWithPrice): number;
31
31
  declare function getProductCurrency(product: ProductWithPrice): CurrencyCode;
32
32
  declare function formatProductPrice(product: ProductWithPrice, locale?: string): string;
33
33
  declare function getUnitPriceAtQuantity(tiers: QuantityPricingTier[], quantity: number, fallback: number): number;
34
- declare function getPriceRange(product: Product): {
34
+ declare function getPriceRange(product: Product | ProductWithDetails): {
35
35
  min: number;
36
36
  max: number;
37
37
  } | null;
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { an as AUTHORIZATION_TYPE, as as AUTH_MUTATION, ac as AbortablePromise, x as ActivityRecommendation, y as ActivityRecommendationsResponse, s as ActivityService, w as ActivityStateResponse, cv as AddressData, cY as AddressInfo, b0 as AmountToPay, cG as AuthResponse, A as AuthService, o as AuthStatus, c_ as AuthenticatedCustomer, d0 as AuthenticatedData, cl as AvailabilityResult, c0 as AvailableSlot, c3 as Booking, c2 as BookingStatus, c4 as BookingWithDetails, bm as BufferTimes, bH as Business, bV as BusinessHours, bG as BusinessPreferences, B as BusinessService, bU as BusinessSettings, bF as BusinessType, bS as BusinessWithLocations, ag as CHECKOUT_MODE, at as CHECKOUT_MUTATION, aj as CHECKOUT_STEP, ap as CONTACT_TYPE, cb as CancelBookingInput, cc as CancelBookingResult, bg as CancelOrderInput, bo as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aP as CatalogueResult, aQ as CatalogueSnapshot, bW as CategoryInfo, c8 as CheckSlotAvailabilityInput, c9 as CheckSlotAvailabilityResult, cJ as CheckoutAddressInfo, d4 as CheckoutCartData, d3 as CheckoutCartItem, cL as CheckoutCustomerInfo, a4 as CheckoutFormData, be as CheckoutInput, a0 as CheckoutMode, l as CheckoutOperations, a1 as CheckoutOrderType, a2 as CheckoutPaymentMethod, a5 as CheckoutResult, l as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, a3 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, M as CimplifyElement, K as CimplifyElements, af as ContactType, cr as CreateAddressInput, ct as CreateMobileMoneyInput, cm as Customer, cn as CustomerAddress, c6 as CustomerBooking, c5 as CustomerBookingServiceItem, cp as CustomerLinkPreferences, co as CustomerMobileMoney, bl as CustomerServicePreferences, ax as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ao as DEVICE_TYPE, c1 as DayAvailability, bA as DeliveryFeeDetails, E as DeliveryFeeResponse, z as DeliveryService, bv as DepositResult, ae as DeviceType, D as DismissMessageResponse, X as ELEMENT_TYPES, W as EVENT_TYPES, cX as ElementAppearance, d7 as ElementEventHandler, $ as ElementEventType, Z as ElementOptions, _ as ElementType, d1 as ElementsCheckoutData, d2 as ElementsCheckoutResult, c$ as ElementsCustomerInfo, Y as ElementsOptions, cx as EnrollAndLinkOrderInput, cA as EnrollAndLinkOrderResult, cu as EnrollmentData, aA as Err, a$ as FeeBearerType, F as FetchQuoteInput, aZ as FulfillmentLink, aY as FulfillmentStatus, aX as FulfillmentType, cN as FxQuote, cM as FxQuoteRequest, cO as FxRateResponse, r as FxService, c7 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d6 as IframeToParentMessage, I as InventoryService, ar as LINK_MUTATION, aq as LINK_QUERY, b1 as LineItem, aU as LineType, cq as LinkData, cz as LinkEnrollResult, L as LinkService, cB as LinkSession, cy as LinkStatusResult, H as LiteBootstrap, q as LiteService, bK as Location, by as LocationAppointment, ck as LocationStock, bI as LocationTaxBehavior, bJ as LocationTaxOverrides, bN as LocationTimeProfile, bT as LocationWithDetails, V as MESSAGE_TYPES, am as MOBILE_MONEY_PROVIDER, cw as MobileMoneyData, cK as MobileMoneyDetails, ad as MobileMoneyProvider, a6 as NextAction, av as ORDER_MUTATION, ah as ORDER_TYPE, cV as ObservabilityHooks, az as Ok, b2 as Order, aT as OrderChannel, bd as OrderFilter, a_ as OrderFulfillmentSummary, b7 as OrderGroup, bb as OrderGroupDetails, b8 as OrderGroupPayment, b5 as OrderGroupPaymentState, b6 as OrderGroupPaymentStatus, ba as OrderGroupPaymentSummary, b4 as OrderGroupStatus, b3 as OrderHistory, aV as OrderLineState, aW as OrderLineStatus, bc as OrderPaymentEvent, O as OrderQueries, b9 as OrderSplitDetail, aR as OrderStatus, cW as OrderType, p as OtpResult, ai as PAYMENT_METHOD, au as PAYMENT_MUTATION, ak as PAYMENT_STATE, al as PICKUP_TIME_TYPE, d5 as ParentToIframeMessage, cZ as PaymentMethodInfo, aS as PaymentState, cI as PickupTime, cH as PickupTimeType, P as PriceQuote, bq as PricingOverrides, a9 as ProcessAndResolveOptions, a7 as ProcessCheckoutOptions, a8 as ProcessCheckoutResult, ci as ProductStock, bz as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bh as RefundOrderInput, bD as RelatedCandidate, bC as RelatedProduct, bE as RelatedProductsEnrichment, bB as RelationType, bk as ReminderMethod, bn as ReminderSettings, k as ReorderResult, cP as RequestContext, cS as RequestErrorEvent, cE as RequestOtpInput, h as RequestSource, cQ as RequestStartEvent, cR as RequestSuccessEvent, ca as RescheduleBookingInput, cd as RescheduleBookingResult, bt as ResourceAssignment, ay as Result, cT as RetryEvent, cD as RevokeAllSessionsResult, cC as RevokeSessionResult, bP as Room, br as SchedulingMetadata, bu as SchedulingResult, S as SchedulingService, bX as Service, ce as ServiceAvailabilityParams, cf as ServiceAvailabilityResult, bQ as ServiceCharge, bp as ServiceNotes, bw as ServiceScheduleRequest, bi as ServiceStatus, v as SessionActivityData, cU as SessionChangeEvent, u as SessionMessage, b_ as SlotResourceInfo, b$ as SlotStaffInfo, bY as Staff, bs as StaffAssignment, bj as StaffRole, bx as StaffScheduleItem, ch as StockLevel, cg as StockStatus, bR as StorefrontBootstrap, bO as Table, J as TableInfo, bL as TimeRange, bM as TimeRanges, bZ as TimeSlot, t as TrackCategoryViewOptions, T as TrackProductViewOptions, cs as UpdateAddressInput, bf as UpdateOrderStatusInput, U as UpdateProfileInput, cj as VariantStock, cF as VerifyOtpInput, aN as combine, aO as combineObject, c as createCimplifyClient, N as createElements, aC as err, aH as flatMap, aL as fromPromise, m as generateIdempotencyKey, aI as getOrElse, aE as isErr, aD as isOk, aG as mapError, aF as mapResult, aB as ok, aK as toNullable, aM as tryCatch, aJ as unwrap } from './index-DIHoZUz_.mjs';
2
2
  import { A as ApiError } from './payment-DqiwuLma.mjs';
3
3
  export { a1 as AddOn, a_ as AddOnDetails, bl as AddOnGroupDetails, a3 as AddOnOption, bk as AddOnOptionDetails, a4 as AddOnOptionPrice, a2 as AddOnWithOptions, bq as AddToCartInput, bw as AddressAuthorizationData, aQ as AdjustmentType, aW as AppliedDiscount, u as AttributeAppliesTo, t as AttributeType, x as AttributeValidationRules, v as AttributeVisibility, bx as AuthorizationType, aV as BenefitType, bG as BillingFrequency, bI as BillingMarkupType, bH as BillingPlanType, ac as Bundle, ag as BundleComponentData, ah as BundleComponentInfo, aj as BundleComponentVariantView, ai as BundleComponentView, ab as BundlePriceType, ae as BundleProduct, b4 as BundleSelectionData, b1 as BundleSelectionInput, b3 as BundleStoredSelection, ad as BundleSummary, af as BundleWithDetails, b9 as Cart, a$ as CartAddOn, aO as CartChannel, ba as CartItem, bn as CartItemDetails, aN as CartStatus, bs as CartSummary, bb as CartTotals, a6 as Category, a7 as CategorySummary, C as ChosenPrice, h as CimplifyError, a8 as Collection, aa as CollectionProduct, a9 as CollectionSummary, ar as ComponentGroup, as as ComponentGroupWithComponents, ay as ComponentPriceBreakdown, b2 as ComponentSchedulingData, aw as ComponentSelectionInput, ao as ComponentSourceType, ap as Composite, av as CompositeComponent, au as CompositeComponentView, at as CompositeGroupView, b6 as CompositePriceBreakdown, ax as CompositePriceResult, am as CompositePricingMode, b7 as CompositeSelectionData, aw as CompositeSelectionInput, b5 as CompositeStoredSelection, aq as CompositeWithDetails, a as CurrencyCode, y as CustomAttributeDefinition, z as CustomAttributeValue, aI as Deal, aH as DealBenefitType, r as DepositType, q as DigitalProductType, aX as DiscountBreakdown, aY as DiscountDetails, aK as DiscountValidation, be as DisplayAddOn, bf as DisplayAddOnOption, bc as DisplayCart, bd as DisplayCartItem, D as DisplayMode, s as DurationUnit, g as ERROR_HINTS, bK as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, H as FacetValue, bL as FormattedPlanOption, an as GroupPricingBehavior, bB as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b8 as LineConfiguration, aB as LocationProductPrice, w as MeasurementValue, M as Money, d as Pagination, P as PaginationParams, bA as Payment, bE as PaymentErrorDetails, bz as PaymentMethod, bv as PaymentMethodType, by as PaymentProcessingState, bu as PaymentProvider, bC as PaymentResponse, bt as PaymentStatus, bD as PaymentStatusResponse, aA as Price, aR as PriceAdjustment, aU as PriceDecisionPath, az as PriceEntryType, aT as PricePathTaxInfo, aP as PriceSource, J as Product, a5 as ProductAddOn, aC as ProductAvailability, aG as ProductAvailabilityNow, bJ as ProductBillingPlan, aJ as ProductDealInfo, F as ProductProperty, p as ProductRenderHint, aE as ProductTaxonomy, aD as ProductTimeProfile, o as ProductType, O as ProductVariant, _ as ProductVariantValue, L as ProductWithDetails, G as PropertyFacet, B as PropertySource, Q as QuantityPricingTier, R as RelatedProductView, S as SalesChannel, aZ as SelectedAddOnOption, bF as SubmitAuthorizationInput, aL as Tag, aM as TagsResponse, aS as TaxPathComponent, T as TaxonomyAttributeTemplate, aF as TaxonomyWithChildren, bo as UICart, bg as UICartBusiness, bi as UICartCustomer, bh as UICartLocation, bj as UICartPricing, bp as UICartResponse, br as UpdateCartItemInput, W as VariantAxis, a0 as VariantAxisSelection, Y as VariantAxisValue, al as VariantAxisValueView, ak as VariantAxisView, X as VariantAxisWithValues, b0 as VariantDetails, bm as VariantDetailsDTO, U as VariantDisplayAttribute, $ as VariantLocationAvailability, V as VariantStrategy, N as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-DqiwuLma.mjs';
4
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-BodyCOun.mjs';
4
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-DCoxHrmr.mjs';
5
5
  export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
6
6
  export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-DVQrpE7j.mjs';
7
7
  import 'libphonenumber-js';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { an as AUTHORIZATION_TYPE, as as AUTH_MUTATION, ac as AbortablePromise, x as ActivityRecommendation, y as ActivityRecommendationsResponse, s as ActivityService, w as ActivityStateResponse, cv as AddressData, cY as AddressInfo, b0 as AmountToPay, cG as AuthResponse, A as AuthService, o as AuthStatus, c_ as AuthenticatedCustomer, d0 as AuthenticatedData, cl as AvailabilityResult, c0 as AvailableSlot, c3 as Booking, c2 as BookingStatus, c4 as BookingWithDetails, bm as BufferTimes, bH as Business, bV as BusinessHours, bG as BusinessPreferences, B as BusinessService, bU as BusinessSettings, bF as BusinessType, bS as BusinessWithLocations, ag as CHECKOUT_MODE, at as CHECKOUT_MUTATION, aj as CHECKOUT_STEP, ap as CONTACT_TYPE, cb as CancelBookingInput, cc as CancelBookingResult, bg as CancelOrderInput, bo as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aP as CatalogueResult, aQ as CatalogueSnapshot, bW as CategoryInfo, c8 as CheckSlotAvailabilityInput, c9 as CheckSlotAvailabilityResult, cJ as CheckoutAddressInfo, d4 as CheckoutCartData, d3 as CheckoutCartItem, cL as CheckoutCustomerInfo, a4 as CheckoutFormData, be as CheckoutInput, a0 as CheckoutMode, l as CheckoutOperations, a1 as CheckoutOrderType, a2 as CheckoutPaymentMethod, a5 as CheckoutResult, l as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, a3 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, M as CimplifyElement, K as CimplifyElements, af as ContactType, cr as CreateAddressInput, ct as CreateMobileMoneyInput, cm as Customer, cn as CustomerAddress, c6 as CustomerBooking, c5 as CustomerBookingServiceItem, cp as CustomerLinkPreferences, co as CustomerMobileMoney, bl as CustomerServicePreferences, ax as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ao as DEVICE_TYPE, c1 as DayAvailability, bA as DeliveryFeeDetails, E as DeliveryFeeResponse, z as DeliveryService, bv as DepositResult, ae as DeviceType, D as DismissMessageResponse, X as ELEMENT_TYPES, W as EVENT_TYPES, cX as ElementAppearance, d7 as ElementEventHandler, $ as ElementEventType, Z as ElementOptions, _ as ElementType, d1 as ElementsCheckoutData, d2 as ElementsCheckoutResult, c$ as ElementsCustomerInfo, Y as ElementsOptions, cx as EnrollAndLinkOrderInput, cA as EnrollAndLinkOrderResult, cu as EnrollmentData, aA as Err, a$ as FeeBearerType, F as FetchQuoteInput, aZ as FulfillmentLink, aY as FulfillmentStatus, aX as FulfillmentType, cN as FxQuote, cM as FxQuoteRequest, cO as FxRateResponse, r as FxService, c7 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d6 as IframeToParentMessage, I as InventoryService, ar as LINK_MUTATION, aq as LINK_QUERY, b1 as LineItem, aU as LineType, cq as LinkData, cz as LinkEnrollResult, L as LinkService, cB as LinkSession, cy as LinkStatusResult, H as LiteBootstrap, q as LiteService, bK as Location, by as LocationAppointment, ck as LocationStock, bI as LocationTaxBehavior, bJ as LocationTaxOverrides, bN as LocationTimeProfile, bT as LocationWithDetails, V as MESSAGE_TYPES, am as MOBILE_MONEY_PROVIDER, cw as MobileMoneyData, cK as MobileMoneyDetails, ad as MobileMoneyProvider, a6 as NextAction, av as ORDER_MUTATION, ah as ORDER_TYPE, cV as ObservabilityHooks, az as Ok, b2 as Order, aT as OrderChannel, bd as OrderFilter, a_ as OrderFulfillmentSummary, b7 as OrderGroup, bb as OrderGroupDetails, b8 as OrderGroupPayment, b5 as OrderGroupPaymentState, b6 as OrderGroupPaymentStatus, ba as OrderGroupPaymentSummary, b4 as OrderGroupStatus, b3 as OrderHistory, aV as OrderLineState, aW as OrderLineStatus, bc as OrderPaymentEvent, O as OrderQueries, b9 as OrderSplitDetail, aR as OrderStatus, cW as OrderType, p as OtpResult, ai as PAYMENT_METHOD, au as PAYMENT_MUTATION, ak as PAYMENT_STATE, al as PICKUP_TIME_TYPE, d5 as ParentToIframeMessage, cZ as PaymentMethodInfo, aS as PaymentState, cI as PickupTime, cH as PickupTimeType, P as PriceQuote, bq as PricingOverrides, a9 as ProcessAndResolveOptions, a7 as ProcessCheckoutOptions, a8 as ProcessCheckoutResult, ci as ProductStock, bz as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bh as RefundOrderInput, bD as RelatedCandidate, bC as RelatedProduct, bE as RelatedProductsEnrichment, bB as RelationType, bk as ReminderMethod, bn as ReminderSettings, k as ReorderResult, cP as RequestContext, cS as RequestErrorEvent, cE as RequestOtpInput, h as RequestSource, cQ as RequestStartEvent, cR as RequestSuccessEvent, ca as RescheduleBookingInput, cd as RescheduleBookingResult, bt as ResourceAssignment, ay as Result, cT as RetryEvent, cD as RevokeAllSessionsResult, cC as RevokeSessionResult, bP as Room, br as SchedulingMetadata, bu as SchedulingResult, S as SchedulingService, bX as Service, ce as ServiceAvailabilityParams, cf as ServiceAvailabilityResult, bQ as ServiceCharge, bp as ServiceNotes, bw as ServiceScheduleRequest, bi as ServiceStatus, v as SessionActivityData, cU as SessionChangeEvent, u as SessionMessage, b_ as SlotResourceInfo, b$ as SlotStaffInfo, bY as Staff, bs as StaffAssignment, bj as StaffRole, bx as StaffScheduleItem, ch as StockLevel, cg as StockStatus, bR as StorefrontBootstrap, bO as Table, J as TableInfo, bL as TimeRange, bM as TimeRanges, bZ as TimeSlot, t as TrackCategoryViewOptions, T as TrackProductViewOptions, cs as UpdateAddressInput, bf as UpdateOrderStatusInput, U as UpdateProfileInput, cj as VariantStock, cF as VerifyOtpInput, aN as combine, aO as combineObject, c as createCimplifyClient, N as createElements, aC as err, aH as flatMap, aL as fromPromise, m as generateIdempotencyKey, aI as getOrElse, aE as isErr, aD as isOk, aG as mapError, aF as mapResult, aB as ok, aK as toNullable, aM as tryCatch, aJ as unwrap } from './index-CJZMsbDi.js';
2
2
  import { A as ApiError } from './payment-DqiwuLma.js';
3
3
  export { a1 as AddOn, a_ as AddOnDetails, bl as AddOnGroupDetails, a3 as AddOnOption, bk as AddOnOptionDetails, a4 as AddOnOptionPrice, a2 as AddOnWithOptions, bq as AddToCartInput, bw as AddressAuthorizationData, aQ as AdjustmentType, aW as AppliedDiscount, u as AttributeAppliesTo, t as AttributeType, x as AttributeValidationRules, v as AttributeVisibility, bx as AuthorizationType, aV as BenefitType, bG as BillingFrequency, bI as BillingMarkupType, bH as BillingPlanType, ac as Bundle, ag as BundleComponentData, ah as BundleComponentInfo, aj as BundleComponentVariantView, ai as BundleComponentView, ab as BundlePriceType, ae as BundleProduct, b4 as BundleSelectionData, b1 as BundleSelectionInput, b3 as BundleStoredSelection, ad as BundleSummary, af as BundleWithDetails, b9 as Cart, a$ as CartAddOn, aO as CartChannel, ba as CartItem, bn as CartItemDetails, aN as CartStatus, bs as CartSummary, bb as CartTotals, a6 as Category, a7 as CategorySummary, C as ChosenPrice, h as CimplifyError, a8 as Collection, aa as CollectionProduct, a9 as CollectionSummary, ar as ComponentGroup, as as ComponentGroupWithComponents, ay as ComponentPriceBreakdown, b2 as ComponentSchedulingData, aw as ComponentSelectionInput, ao as ComponentSourceType, ap as Composite, av as CompositeComponent, au as CompositeComponentView, at as CompositeGroupView, b6 as CompositePriceBreakdown, ax as CompositePriceResult, am as CompositePricingMode, b7 as CompositeSelectionData, aw as CompositeSelectionInput, b5 as CompositeStoredSelection, aq as CompositeWithDetails, a as CurrencyCode, y as CustomAttributeDefinition, z as CustomAttributeValue, aI as Deal, aH as DealBenefitType, r as DepositType, q as DigitalProductType, aX as DiscountBreakdown, aY as DiscountDetails, aK as DiscountValidation, be as DisplayAddOn, bf as DisplayAddOnOption, bc as DisplayCart, bd as DisplayCartItem, D as DisplayMode, s as DurationUnit, g as ERROR_HINTS, bK as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, H as FacetValue, bL as FormattedPlanOption, an as GroupPricingBehavior, bB as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b8 as LineConfiguration, aB as LocationProductPrice, w as MeasurementValue, M as Money, d as Pagination, P as PaginationParams, bA as Payment, bE as PaymentErrorDetails, bz as PaymentMethod, bv as PaymentMethodType, by as PaymentProcessingState, bu as PaymentProvider, bC as PaymentResponse, bt as PaymentStatus, bD as PaymentStatusResponse, aA as Price, aR as PriceAdjustment, aU as PriceDecisionPath, az as PriceEntryType, aT as PricePathTaxInfo, aP as PriceSource, J as Product, a5 as ProductAddOn, aC as ProductAvailability, aG as ProductAvailabilityNow, bJ as ProductBillingPlan, aJ as ProductDealInfo, F as ProductProperty, p as ProductRenderHint, aE as ProductTaxonomy, aD as ProductTimeProfile, o as ProductType, O as ProductVariant, _ as ProductVariantValue, L as ProductWithDetails, G as PropertyFacet, B as PropertySource, Q as QuantityPricingTier, R as RelatedProductView, S as SalesChannel, aZ as SelectedAddOnOption, bF as SubmitAuthorizationInput, aL as Tag, aM as TagsResponse, aS as TaxPathComponent, T as TaxonomyAttributeTemplate, aF as TaxonomyWithChildren, bo as UICart, bg as UICartBusiness, bi as UICartCustomer, bh as UICartLocation, bj as UICartPricing, bp as UICartResponse, br as UpdateCartItemInput, W as VariantAxis, a0 as VariantAxisSelection, Y as VariantAxisValue, al as VariantAxisValueView, ak as VariantAxisView, X as VariantAxisWithValues, b0 as VariantDetails, bm as VariantDetailsDTO, U as VariantDisplayAttribute, $ as VariantLocationAvailability, V as VariantStrategy, N as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-DqiwuLma.js';
4
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-IH1wOTmD.js';
4
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-DT0Mzy8v.js';
5
5
  export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
6
6
  export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-BZlddg1A.js';
7
7
  import 'libphonenumber-js';