arky-sdk 0.7.91 → 0.7.92

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.cjs CHANGED
@@ -2477,17 +2477,10 @@ function createStores() {
2477
2477
  currencyDisplay: "narrowSymbol"
2478
2478
  }).formatToParts(0).find((p) => p.type === "currency")?.value || m.currency.toUpperCase();
2479
2479
  });
2480
- const $paymentMethods = nanostores.computed(
2481
- $market,
2482
- (m) => (m?.payment_methods || []).map((pm) => pm.id)
2483
- );
2484
- const $paymentMethodObjects = nanostores.computed(
2485
- $market,
2486
- (m) => m?.payment_methods || []
2487
- );
2480
+ const $paymentMethods = nanostores.computed($market, (m) => m?.payment_methods || []);
2488
2481
  const $paymentConfig = nanostores.computed([$business, $paymentMethods], (biz, methods) => {
2489
2482
  const payment = biz?.payment || null;
2490
- const hasCreditCard = methods.includes("credit_card");
2483
+ const hasCreditCard = methods.some((m) => m.id === "credit_card");
2491
2484
  return {
2492
2485
  provider: payment,
2493
2486
  enabled: hasCreditCard && !!payment
@@ -2504,7 +2497,6 @@ function createStores() {
2504
2497
  currency: $currency,
2505
2498
  currencySymbol: $currencySymbol,
2506
2499
  paymentMethods: $paymentMethods,
2507
- paymentMethodObjects: $paymentMethodObjects,
2508
2500
  paymentConfig: $paymentConfig,
2509
2501
  zones: $zones
2510
2502
  };
@@ -2688,7 +2680,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
2688
2680
  }
2689
2681
 
2690
2682
  // src/index.ts
2691
- var SDK_VERSION = "0.7.91";
2683
+ var SDK_VERSION = "0.7.92";
2692
2684
  var SUPPORTED_FRAMEWORKS = [
2693
2685
  "astro",
2694
2686
  "react",