@nextblock-cms/ecom 0.20.1 → 0.21.0
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/_virtual/_rolldown/runtime.cjs.js +1 -0
- package/index.cjs.js +1 -1
- package/index.es.js +38 -146
- package/lib/CurrencyProvider.cjs.js +1 -1
- package/lib/CurrencyProvider.d.ts +1 -1
- package/lib/CurrencyProvider.es.js +85 -95
- package/lib/PaymentReadinessProvider.cjs.js +1 -1
- package/lib/PaymentReadinessProvider.d.ts +1 -1
- package/lib/PaymentReadinessProvider.es.js +24 -27
- package/lib/cart-store.cjs.js +1 -1
- package/lib/cart-store.es.js +109 -121
- package/lib/components/AccountNavigationMenu.cjs.js +1 -1
- package/lib/components/AccountNavigationMenu.d.ts +1 -1
- package/lib/components/AccountNavigationMenu.es.js +36 -50
- package/lib/components/AddToCartButton.cjs.js +1 -1
- package/lib/components/AddToCartButton.d.ts +1 -1
- package/lib/components/AddToCartButton.es.js +94 -89
- package/lib/components/Cart.cjs.js +1 -1
- package/lib/components/Cart.d.ts +1 -1
- package/lib/components/Cart.es.js +261 -180
- package/lib/components/CartDrawer.cjs.js +1 -1
- package/lib/components/CartDrawer.d.ts +1 -1
- package/lib/components/CartDrawer.es.js +218 -148
- package/lib/components/CartIcon.cjs.js +1 -1
- package/lib/components/CartIcon.d.ts +1 -1
- package/lib/components/CartIcon.es.js +33 -35
- package/lib/components/Checkout.cjs.js +1 -1
- package/lib/components/Checkout.d.ts +1 -1
- package/lib/components/Checkout.es.js +1092 -1108
- package/lib/components/CouponForm.cjs.js +1 -1
- package/lib/components/CouponForm.d.ts +1 -1
- package/lib/components/CouponForm.es.js +136 -148
- package/lib/components/CurrencySwitcher.cjs.js +1 -1
- package/lib/components/CurrencySwitcher.d.ts +1 -1
- package/lib/components/CurrencySwitcher.es.js +22 -18
- package/lib/components/CustomerProfileForm.cjs.js +1 -1
- package/lib/components/CustomerProfileForm.es.js +454 -313
- package/lib/components/FeaturedProduct.cjs.js +1 -1
- package/lib/components/FeaturedProduct.d.ts +1 -1
- package/lib/components/FeaturedProduct.es.js +98 -83
- package/lib/components/FreemiusLicensePanel.cjs.js +1 -1
- package/lib/components/FreemiusLicensePanel.d.ts +1 -1
- package/lib/components/FreemiusLicensePanel.es.js +70 -65
- package/lib/components/InvoiceDocument.cjs.js +1 -1
- package/lib/components/InvoiceDocument.es.js +256 -192
- package/lib/components/InvoiceViewerShell.cjs.js +2 -2
- package/lib/components/InvoiceViewerShell.d.ts +1 -1
- package/lib/components/InvoiceViewerShell.es.js +75 -106
- package/lib/components/ProductCard.cjs.js +1 -1
- package/lib/components/ProductCard.d.ts +1 -1
- package/lib/components/ProductCard.es.js +186 -171
- package/lib/components/ProductDetailsLayout.cjs.js +1 -1
- package/lib/components/ProductDetailsLayout.es.js +405 -404
- package/lib/components/ProductGallery.cjs.js +1 -1
- package/lib/components/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery.es.js +51 -54
- package/lib/components/ProductGrid.cjs.js +1 -1
- package/lib/components/ProductGrid.d.ts +1 -1
- package/lib/components/ProductGrid.es.js +23 -25
- package/lib/components/ShippingEstimator.cjs.js +1 -1
- package/lib/components/ShippingEstimator.d.ts +1 -1
- package/lib/components/ShippingEstimator.es.js +158 -153
- package/lib/components/ShortDescription.cjs.js +1 -1
- package/lib/components/ShortDescription.es.js +17 -17
- package/lib/components/SimpleTiptapRenderer.cjs.js +1 -1
- package/lib/components/SimpleTiptapRenderer.es.js +238 -211
- package/lib/components/SubscriptionSelector.cjs.js +1 -1
- package/lib/components/SubscriptionSelector.es.js +159 -154
- package/lib/countries.cjs.js +1 -1
- package/lib/countries.es.js +232 -75
- package/lib/coupon-server.cjs.js +1 -1
- package/lib/coupon-server.es.js +180 -224
- package/lib/coupons.cjs.js +1 -1
- package/lib/coupons.es.js +12 -14
- package/lib/currency-constants.cjs.js +1 -1
- package/lib/currency-constants.es.js +4 -4
- package/lib/currency-rest-client.cjs.js +1 -1
- package/lib/currency-rest-client.es.js +15 -22
- package/lib/currency-store.cjs.js +1 -1
- package/lib/currency-store.es.js +20 -27
- package/lib/currency-sync.cjs.js +1 -1
- package/lib/currency-sync.es.js +124 -170
- package/lib/currency.cjs.js +1 -1
- package/lib/currency.es.js +242 -310
- package/lib/customer-addresses.cjs.js +1 -1
- package/lib/customer-addresses.es.js +80 -109
- package/lib/customer-orders.cjs.js +1 -1
- package/lib/customer-orders.es.js +31 -43
- package/lib/customer.cjs.js +1 -1
- package/lib/customer.es.js +43 -52
- package/lib/export-helpers.cjs.js +1 -1
- package/lib/export-helpers.es.js +53 -52
- package/lib/factory.cjs.js +1 -1
- package/lib/factory.es.js +10 -7
- package/lib/freemius-coupons.cjs.js +1 -1
- package/lib/freemius-coupons.es.js +245 -262
- package/lib/freemius-license-claim.cjs.js +1 -1
- package/lib/freemius-license-claim.es.js +87 -71
- package/lib/freemius-license.cjs.js +1 -1
- package/lib/freemius-license.es.js +32 -39
- package/lib/freemius-order-sync.cjs.js +1 -1
- package/lib/freemius-order-sync.es.js +226 -290
- package/lib/freemius-trial-provision.cjs.js +1 -1
- package/lib/freemius-trial-provision.es.js +136 -130
- package/lib/inventory-settings.cjs.js +1 -1
- package/lib/inventory-settings.es.js +69 -77
- package/lib/invoice-server.cjs.js +3 -3
- package/lib/invoice-server.es.js +94 -141
- package/lib/invoice-ui.cjs.js +1 -1
- package/lib/invoice-ui.es.js +50 -66
- package/lib/invoice.cjs.js +1 -1
- package/lib/invoice.es.js +85 -94
- package/lib/order-inventory.cjs.js +25 -25
- package/lib/order-inventory.es.js +67 -79
- package/lib/order-tax-details.cjs.js +1 -1
- package/lib/order-tax-details.es.js +142 -153
- package/lib/pages/cms/coupons/CouponEditorForm.cjs.js +1 -1
- package/lib/pages/cms/coupons/CouponEditorForm.d.ts +1 -1
- package/lib/pages/cms/coupons/CouponEditorForm.es.js +227 -185
- package/lib/pages/cms/coupons/CouponsPage.cjs.js +2 -2
- package/lib/pages/cms/coupons/CouponsPage.d.ts +1 -1
- package/lib/pages/cms/coupons/CouponsPage.es.js +235 -166
- package/lib/pages/cms/coupons/CreateCouponDialog.cjs.js +1 -1
- package/lib/pages/cms/coupons/CreateCouponDialog.d.ts +1 -1
- package/lib/pages/cms/coupons/CreateCouponDialog.es.js +35 -34
- package/lib/pages/cms/coupons/EditCouponPage.cjs.js +1 -1
- package/lib/pages/cms/coupons/EditCouponPage.d.ts +1 -1
- package/lib/pages/cms/coupons/EditCouponPage.es.js +47 -47
- package/lib/pages/cms/coupons/ProductScopePicker.cjs.js +1 -1
- package/lib/pages/cms/coupons/ProductScopePicker.d.ts +1 -1
- package/lib/pages/cms/coupons/ProductScopePicker.es.js +128 -117
- package/lib/pages/cms/coupons/actions.cjs.js +1 -1
- package/lib/pages/cms/coupons/actions.es.js +112 -115
- package/lib/pages/cms/coupons/index.cjs.js +1 -0
- package/lib/pages/cms/coupons/index.es.js +3 -0
- package/lib/pages/cms/coupons/product-options.cjs.js +1 -1
- package/lib/pages/cms/coupons/product-options.es.js +21 -23
- package/lib/pages/cms/orders/ExportReportsDialog.cjs.js +1 -1
- package/lib/pages/cms/orders/ExportReportsDialog.es.js +135 -129
- package/lib/pages/cms/orders/MarkPaidButton.d.ts +1 -1
- package/lib/pages/cms/orders/OrderDetailPage.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderDetailPage.d.ts +1 -1
- package/lib/pages/cms/orders/OrderDetailPage.es.js +186 -134
- package/lib/pages/cms/orders/OrderPrintButton.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderPrintButton.d.ts +1 -1
- package/lib/pages/cms/orders/OrderPrintButton.es.js +15 -21
- package/lib/pages/cms/orders/OrderStatusForm.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderStatusForm.d.ts +1 -1
- package/lib/pages/cms/orders/OrderStatusForm.es.js +85 -69
- package/lib/pages/cms/orders/OrdersPage.cjs.js +1 -1
- package/lib/pages/cms/orders/OrdersPage.d.ts +1 -1
- package/lib/pages/cms/orders/OrdersPage.es.js +170 -102
- package/lib/pages/cms/orders/actions.cjs.js +3 -3
- package/lib/pages/cms/orders/actions.es.js +53 -69
- package/lib/pages/cms/orders/export-actions.cjs.js +1 -1
- package/lib/pages/cms/orders/export-actions.es.js +23 -26
- package/lib/pages/cms/orders/index.cjs.js +1 -0
- package/lib/pages/cms/orders/index.es.js +6 -0
- package/lib/pages/cms/orders/server-actions.cjs.js +1 -1
- package/lib/pages/cms/orders/server-actions.es.js +60 -51
- package/lib/pages/cms/payments/PaymentsClient.cjs.js +1 -1
- package/lib/pages/cms/payments/PaymentsClient.d.ts +1 -1
- package/lib/pages/cms/payments/PaymentsClient.es.js +316 -346
- package/lib/pages/cms/payments/PaymentsPage.cjs.js +1 -1
- package/lib/pages/cms/payments/PaymentsPage.d.ts +1 -1
- package/lib/pages/cms/payments/PaymentsPage.es.js +29 -32
- package/lib/pages/cms/payments/actions.cjs.js +1 -1
- package/lib/pages/cms/payments/actions.es.js +38 -48
- package/lib/pages/cms/payments/index.cjs.js +1 -0
- package/lib/pages/cms/payments/index.es.js +3 -0
- package/lib/pages/cms/payments/queries.cjs.js +1 -1
- package/lib/pages/cms/payments/queries.es.js +38 -48
- package/lib/pages/cms/products/ProductsPage.cjs.js +1 -1
- package/lib/pages/cms/products/ProductsPage.d.ts +1 -1
- package/lib/pages/cms/products/ProductsPage.es.js +63 -66
- package/lib/pages/cms/products/[id]/edit/EditProductPage.d.ts +1 -1
- package/lib/pages/cms/products/_id_/edit/EditProductPage.cjs.js +1 -1
- package/lib/pages/cms/products/_id_/edit/EditProductPage.es.js +138 -155
- package/lib/pages/cms/products/actions.cjs.js +4 -4
- package/lib/pages/cms/products/actions.es.js +121 -162
- package/lib/pages/cms/products/attributes/AttributeManagementPage.cjs.js +1 -1
- package/lib/pages/cms/products/attributes/AttributeManagementPage.d.ts +1 -1
- package/lib/pages/cms/products/attributes/AttributeManagementPage.es.js +55 -47
- package/lib/pages/cms/products/attributes/components/AttributeManager.cjs.js +1 -1
- package/lib/pages/cms/products/attributes/components/AttributeManager.d.ts +1 -1
- package/lib/pages/cms/products/attributes/components/AttributeManager.es.js +285 -290
- package/lib/pages/cms/products/categories/CategoryManagementPage.cjs.js +1 -1
- package/lib/pages/cms/products/categories/CategoryManagementPage.d.ts +1 -1
- package/lib/pages/cms/products/categories/CategoryManagementPage.es.js +43 -35
- package/lib/pages/cms/products/categories/components/CategoryManager.cjs.js +1 -1
- package/lib/pages/cms/products/categories/components/CategoryManager.es.js +315 -262
- package/lib/pages/cms/products/components/CopyProductFromLanguage.cjs.js +1 -1
- package/lib/pages/cms/products/components/CopyProductFromLanguage.es.js +115 -113
- package/lib/pages/cms/products/components/CurrencyPriceFields.cjs.js +1 -1
- package/lib/pages/cms/products/components/CurrencyPriceFields.d.ts +1 -1
- package/lib/pages/cms/products/components/CurrencyPriceFields.es.js +136 -145
- package/lib/pages/cms/products/components/DeleteProductButton.cjs.js +1 -1
- package/lib/pages/cms/products/components/DeleteProductButton.d.ts +1 -1
- package/lib/pages/cms/products/components/DeleteProductButton.es.js +35 -47
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.cjs.js +1 -1
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.d.ts +1 -1
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.es.js +106 -84
- package/lib/pages/cms/products/components/ProductCategorySelector.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductCategorySelector.es.js +156 -159
- package/lib/pages/cms/products/components/ProductForm.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductForm.es.js +872 -693
- package/lib/pages/cms/products/components/ProductMediaManager.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductMediaManager.es.js +106 -103
- package/lib/pages/cms/products/components/ProductsBulkTable.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductsBulkTable.d.ts +1 -1
- package/lib/pages/cms/products/components/ProductsBulkTable.es.js +303 -294
- package/lib/pages/cms/products/components/SaleScheduleFields.cjs.js +1 -1
- package/lib/pages/cms/products/components/SaleScheduleFields.d.ts +1 -1
- package/lib/pages/cms/products/components/SaleScheduleFields.es.js +111 -134
- package/lib/pages/cms/products/components/SyncFreemiusButton.cjs.js +1 -1
- package/lib/pages/cms/products/components/SyncFreemiusButton.d.ts +1 -1
- package/lib/pages/cms/products/components/SyncFreemiusButton.es.js +29 -35
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.cjs.js +2 -2
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.d.ts +1 -1
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.es.js +36 -48
- package/lib/pages/cms/products/components/SyncProductForm.d.ts +1 -1
- package/lib/pages/cms/products/components/VariationsEditor.cjs.js +1 -1
- package/lib/pages/cms/products/components/VariationsEditor.d.ts +1 -1
- package/lib/pages/cms/products/components/VariationsEditor.es.js +396 -405
- package/lib/pages/cms/products/index.cjs.js +1 -0
- package/lib/pages/cms/products/index.es.js +8 -0
- package/lib/pages/cms/products/inventory/InventoryPage.cjs.js +1 -1
- package/lib/pages/cms/products/inventory/InventoryPage.d.ts +1 -1
- package/lib/pages/cms/products/inventory/InventoryPage.es.js +21 -15
- package/lib/pages/cms/products/inventory/InventoryTableClient.cjs.js +2 -2
- package/lib/pages/cms/products/inventory/InventoryTableClient.d.ts +1 -1
- package/lib/pages/cms/products/inventory/InventoryTableClient.es.js +230 -209
- package/lib/pages/cms/products/inventory/actions.cjs.js +3 -3
- package/lib/pages/cms/products/inventory/actions.es.js +83 -91
- package/lib/pages/cms/products/new/NewProductPage.cjs.js +1 -1
- package/lib/pages/cms/products/new/NewProductPage.d.ts +1 -1
- package/lib/pages/cms/products/new/NewProductPage.es.js +58 -74
- package/lib/pages/cms/products/product-price-sync.cjs.js +1 -1
- package/lib/pages/cms/products/product-price-sync.es.js +74 -89
- package/lib/pages/cms/products/server-actions.cjs.js +1 -1
- package/lib/pages/cms/products/server-actions.es.js +250 -233
- package/lib/pages/cms/shipping/ShippingPage.cjs.js +2 -2
- package/lib/pages/cms/shipping/ShippingPage.es.js +287 -209
- package/lib/pages/cms/shipping/components/RateForm.cjs.js +1 -1
- package/lib/pages/cms/shipping/components/RateForm.d.ts +1 -1
- package/lib/pages/cms/shipping/components/RateForm.es.js +439 -436
- package/lib/pages/cms/shipping/components/ZoneForm.cjs.js +1 -1
- package/lib/pages/cms/shipping/components/ZoneForm.es.js +245 -224
- package/lib/pages/cms/shipping/index.cjs.js +1 -0
- package/lib/pages/cms/shipping/index.es.js +3 -0
- package/lib/pages/cms/shipping/server-actions.cjs.js +1 -1
- package/lib/pages/cms/shipping/server-actions.es.js +131 -149
- package/lib/pages/cms/taxes/TaxesPage.cjs.js +1 -1
- package/lib/pages/cms/taxes/TaxesPage.d.ts +1 -1
- package/lib/pages/cms/taxes/TaxesPage.es.js +211 -169
- package/lib/pages/cms/taxes/actions.cjs.js +1 -1
- package/lib/pages/cms/taxes/actions.es.js +41 -53
- package/lib/pages/cms/taxes/components/TaxRateForm.cjs.js +1 -1
- package/lib/pages/cms/taxes/components/TaxRateForm.d.ts +1 -1
- package/lib/pages/cms/taxes/components/TaxRateForm.es.js +112 -99
- package/lib/pages/cms/taxes/index.cjs.js +1 -0
- package/lib/pages/cms/taxes/index.es.js +3 -0
- package/lib/payment-config.cjs.js +1 -1
- package/lib/payment-config.es.js +110 -126
- package/lib/product-actions.cjs.js +4 -4
- package/lib/product-actions.es.js +289 -544
- package/lib/product-context.cjs.js +1 -1
- package/lib/product-context.es.js +13 -15
- package/lib/product-schema.cjs.js +1 -1
- package/lib/product-schema.es.js +99 -134
- package/lib/providers/freemius.cjs.js +1 -5
- package/lib/providers/freemius.es.js +446 -530
- package/lib/providers/stripe.cjs.js +1 -1
- package/lib/providers/stripe.es.js +417 -477
- package/lib/server-actions/coupon-actions.cjs.js +1 -1
- package/lib/server-actions/coupon-actions.es.js +22 -22
- package/lib/server-actions/customer-actions.cjs.js +1 -1
- package/lib/server-actions/customer-actions.es.js +26 -28
- package/lib/server-actions/product-actions.cjs.js +1 -1
- package/lib/server-actions/product-actions.es.js +9 -15
- package/lib/server-actions/shipping-actions.cjs.js +1 -1
- package/lib/server-actions/shipping-actions.es.js +27 -24
- package/lib/server-actions/tax-actions.cjs.js +1 -1
- package/lib/server-actions/tax-actions.es.js +33 -39
- package/lib/shared-inventory.cjs.js +2 -2
- package/lib/shared-inventory.es.js +111 -160
- package/lib/shipping/resolver.cjs.js +2 -2
- package/lib/shipping/resolver.es.js +44 -61
- package/lib/shipping-rate-currency.cjs.js +1 -1
- package/lib/shipping-rate-currency.es.js +52 -67
- package/lib/states.cjs.js +1 -1
- package/lib/states.es.js +333 -154
- package/lib/stripe/checkout.cjs.js +1 -1
- package/lib/stripe/checkout.es.js +125 -181
- package/lib/stripe/client.cjs.js +1 -1
- package/lib/stripe/client.es.js +14 -19
- package/lib/stripe/order-sync.cjs.js +1 -1
- package/lib/stripe/order-sync.es.js +106 -126
- package/lib/stripe/webhooks.cjs.js +1 -1
- package/lib/stripe/webhooks.es.js +37 -31
- package/lib/tax-calculation.cjs.js +1 -1
- package/lib/tax-calculation.es.js +84 -98
- package/lib/trials.cjs.js +1 -1
- package/lib/trials.es.js +24 -30
- package/lib/types.cjs.js +1 -1
- package/lib/types.es.js +21 -27
- package/lib/use-cart.cjs.js +1 -1
- package/lib/use-cart.es.js +38 -40
- package/lib/use-price-formatter.cjs.js +1 -1
- package/lib/use-price-formatter.es.js +10 -11
- package/lib/variation-utils.cjs.js +1 -1
- package/lib/variation-utils.es.js +199 -261
- package/lib/zod-config.cjs.js +1 -1
- package/lib/zod-config.es.js +5 -6
- package/package.json +16 -16
- package/server.cjs.js +1 -1
- package/server.es.js +56 -211
|
@@ -1,352 +1,322 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useFormStatus as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
docsUrl: "https://dashboard.freemius.com/",
|
|
100
|
-
docsLabel: "Freemius credentials"
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
] }),
|
|
106
|
-
/* @__PURE__ */ e("div", { className: "mt-auto flex justify-end border-t pt-4", children: /* @__PURE__ */ e(
|
|
107
|
-
w,
|
|
108
|
-
{
|
|
109
|
-
type: "button",
|
|
110
|
-
disabled: m,
|
|
111
|
-
onClick: _,
|
|
112
|
-
children: m ? "Saving..." : "Save Changes"
|
|
113
|
-
}
|
|
114
|
-
) })
|
|
115
|
-
] })
|
|
116
|
-
] })
|
|
117
|
-
] })
|
|
118
|
-
] });
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as e, useTransition as t } from "react";
|
|
3
|
+
import { AlertCircle as n, CheckCircle2 as r } from "lucide-react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { useRouter as o } from "next/navigation";
|
|
6
|
+
import { Button as s, Card as c, CardContent as l, CardDescription as u, CardHeader as d, CardTitle as f, Checkbox as p, Input as m, Label as h } from "@nextblock-cms/ui";
|
|
7
|
+
import { useFormStatus as g } from "react-dom";
|
|
8
|
+
//#region libs/ecommerce/src/lib/pages/cms/payments/PaymentsClient.tsx
|
|
9
|
+
function _({ initialEnabledProviders: n, configStatus: p, credentials: m, saveAction: h, saveCredentialsAction: g }) {
|
|
10
|
+
let _ = o(), [v, y] = t(), C = p.stripe.hasKeys, w = p.freemius.hasKeys, [T, E] = e(() => ({
|
|
11
|
+
stripe: n.stripe && C,
|
|
12
|
+
freemius: n.freemius && w
|
|
13
|
+
}));
|
|
14
|
+
function D() {
|
|
15
|
+
let e = new FormData();
|
|
16
|
+
e.set("stripe_enabled", T.stripe ? "true" : "false"), e.set("freemius_enabled", T.freemius ? "true" : "false"), y(async () => {
|
|
17
|
+
await h(e), _.refresh();
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return /* @__PURE__ */ a("div", {
|
|
21
|
+
className: "max-w-7xl space-y-4 p-4 sm:p-6",
|
|
22
|
+
children: [/* @__PURE__ */ a("div", {
|
|
23
|
+
className: "space-y-1",
|
|
24
|
+
children: [/* @__PURE__ */ i("h1", {
|
|
25
|
+
className: "text-2xl font-bold tracking-tight",
|
|
26
|
+
children: "Payment Settings"
|
|
27
|
+
}), /* @__PURE__ */ i("p", {
|
|
28
|
+
className: "text-sm text-muted-foreground",
|
|
29
|
+
children: "Enter your provider API keys, then enable the providers your store needs. Physical products use Stripe and digital products use Freemius."
|
|
30
|
+
})]
|
|
31
|
+
}), /* @__PURE__ */ a("div", {
|
|
32
|
+
className: "grid gap-4 lg:grid-cols-[minmax(0,3fr)_minmax(20rem,2fr)]",
|
|
33
|
+
children: [/* @__PURE__ */ i(b, {
|
|
34
|
+
credentials: m,
|
|
35
|
+
saveAction: g
|
|
36
|
+
}), /* @__PURE__ */ a(c, {
|
|
37
|
+
className: "flex h-full flex-col",
|
|
38
|
+
children: [/* @__PURE__ */ a(d, {
|
|
39
|
+
className: "pb-3",
|
|
40
|
+
children: [/* @__PURE__ */ i(f, { children: "Payment Providers" }), /* @__PURE__ */ i(u, { children: "You can run both providers at the same time. Each product picks its provider from its product type." })]
|
|
41
|
+
}), /* @__PURE__ */ a(l, {
|
|
42
|
+
className: "flex flex-1 flex-col gap-4",
|
|
43
|
+
children: [/* @__PURE__ */ a("div", {
|
|
44
|
+
className: "space-y-3",
|
|
45
|
+
children: [/* @__PURE__ */ i(x, {
|
|
46
|
+
id: "stripe-enabled",
|
|
47
|
+
label: "Stripe for Physical Products",
|
|
48
|
+
description: "Use Stripe Checkout for physical merchandise and other shippable goods.",
|
|
49
|
+
checked: T.stripe,
|
|
50
|
+
disabled: !C,
|
|
51
|
+
onCheckedChange: (e) => E((t) => ({
|
|
52
|
+
...t,
|
|
53
|
+
stripe: e
|
|
54
|
+
})),
|
|
55
|
+
ready: C,
|
|
56
|
+
children: C ? /* @__PURE__ */ a("div", {
|
|
57
|
+
className: "mt-2 flex items-center gap-2 text-xs text-green-600",
|
|
58
|
+
children: [/* @__PURE__ */ i(r, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", { children: "Ready for physical product checkout" })]
|
|
59
|
+
}) : /* @__PURE__ */ i(S, {
|
|
60
|
+
provider: "Stripe",
|
|
61
|
+
missingKeys: p.stripe.missing,
|
|
62
|
+
docsUrl: "https://dashboard.stripe.com/apikeys",
|
|
63
|
+
docsLabel: "Stripe API keys"
|
|
64
|
+
})
|
|
65
|
+
}), /* @__PURE__ */ i(x, {
|
|
66
|
+
id: "freemius-enabled",
|
|
67
|
+
label: "Freemius for Digital Products",
|
|
68
|
+
description: "Use Freemius for software licenses, SaaS plans, and other digital products.",
|
|
69
|
+
checked: T.freemius,
|
|
70
|
+
disabled: !w,
|
|
71
|
+
onCheckedChange: (e) => E((t) => ({
|
|
72
|
+
...t,
|
|
73
|
+
freemius: e
|
|
74
|
+
})),
|
|
75
|
+
ready: w,
|
|
76
|
+
children: w ? /* @__PURE__ */ a("div", {
|
|
77
|
+
className: "mt-2 flex items-center gap-2 text-xs text-green-600",
|
|
78
|
+
children: [/* @__PURE__ */ i(r, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", { children: "Ready for digital product checkout" })]
|
|
79
|
+
}) : /* @__PURE__ */ i(S, {
|
|
80
|
+
provider: "Freemius",
|
|
81
|
+
missingKeys: p.freemius.missing,
|
|
82
|
+
docsUrl: "https://dashboard.freemius.com/",
|
|
83
|
+
docsLabel: "Freemius credentials"
|
|
84
|
+
})
|
|
85
|
+
})]
|
|
86
|
+
}), /* @__PURE__ */ i("div", {
|
|
87
|
+
className: "mt-auto flex justify-end border-t pt-4",
|
|
88
|
+
children: /* @__PURE__ */ i(s, {
|
|
89
|
+
type: "button",
|
|
90
|
+
disabled: v,
|
|
91
|
+
onClick: D,
|
|
92
|
+
children: v ? "Saving..." : "Save Changes"
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
})]
|
|
96
|
+
})]
|
|
97
|
+
})]
|
|
98
|
+
});
|
|
119
99
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
122
|
-
|
|
100
|
+
function v() {
|
|
101
|
+
let { pending: e } = g();
|
|
102
|
+
return /* @__PURE__ */ i(s, {
|
|
103
|
+
type: "submit",
|
|
104
|
+
disabled: e,
|
|
105
|
+
children: e ? "Saving..." : "Save Changes"
|
|
106
|
+
});
|
|
123
107
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
108
|
+
function y({ id: e, label: t, type: n = "text", defaultValue: r, placeholder: o, hint: s }) {
|
|
109
|
+
return /* @__PURE__ */ a("div", {
|
|
110
|
+
className: "space-y-1",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ i(h, {
|
|
113
|
+
htmlFor: e,
|
|
114
|
+
className: "text-xs",
|
|
115
|
+
children: t
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ i(m, {
|
|
118
|
+
id: e,
|
|
119
|
+
name: e,
|
|
120
|
+
type: n,
|
|
121
|
+
defaultValue: r,
|
|
122
|
+
placeholder: o,
|
|
123
|
+
autoComplete: n === "password" ? "new-password" : "off"
|
|
124
|
+
}),
|
|
125
|
+
s && /* @__PURE__ */ i("p", {
|
|
126
|
+
className: "text-xs text-muted-foreground",
|
|
127
|
+
children: s
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
});
|
|
147
131
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
132
|
+
function b({ credentials: e, saveAction: t }) {
|
|
133
|
+
let n = "•••••••• (stored — leave blank to keep)";
|
|
134
|
+
return /* @__PURE__ */ a(c, {
|
|
135
|
+
className: "flex h-full flex-col",
|
|
136
|
+
children: [/* @__PURE__ */ a(d, {
|
|
137
|
+
className: "pb-3",
|
|
138
|
+
children: [/* @__PURE__ */ i(f, { children: "Provider API Keys" }), /* @__PURE__ */ a(u, { children: [
|
|
139
|
+
"Keys are encrypted at rest and used DB-first (these override any",
|
|
140
|
+
" ",
|
|
141
|
+
/* @__PURE__ */ i("code", { children: ".env" }),
|
|
142
|
+
" values). Leave a secret blank to keep the stored value."
|
|
143
|
+
] })]
|
|
144
|
+
}), /* @__PURE__ */ i(l, {
|
|
145
|
+
className: "flex flex-1 flex-col",
|
|
146
|
+
children: /* @__PURE__ */ a("form", {
|
|
147
|
+
action: t,
|
|
148
|
+
className: "flex flex-1 flex-col gap-4",
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ a("div", {
|
|
151
|
+
className: "space-y-3",
|
|
152
|
+
children: [
|
|
153
|
+
/* @__PURE__ */ i("h3", {
|
|
154
|
+
className: "text-sm font-semibold",
|
|
155
|
+
children: "Stripe (physical products)"
|
|
156
|
+
}),
|
|
157
|
+
/* @__PURE__ */ a("details", {
|
|
158
|
+
className: "rounded-md border border-dashed px-3 py-2 text-xs text-muted-foreground",
|
|
159
|
+
children: [/* @__PURE__ */ i("summary", {
|
|
160
|
+
className: "cursor-pointer font-medium text-foreground",
|
|
161
|
+
children: "Stripe webhook setup"
|
|
162
|
+
}), /* @__PURE__ */ a("div", {
|
|
163
|
+
className: "mt-2 space-y-1.5",
|
|
164
|
+
children: [/* @__PURE__ */ a("p", { children: [
|
|
165
|
+
"In Stripe, add",
|
|
166
|
+
" ",
|
|
167
|
+
/* @__PURE__ */ i("code", { children: "https://your-domain/api/webhooks/stripe" }),
|
|
168
|
+
" as a webhook endpoint and paste its ",
|
|
169
|
+
/* @__PURE__ */ i("code", { children: "whsec_…" }),
|
|
170
|
+
" signing secret below."
|
|
171
|
+
] }), /* @__PURE__ */ a("p", { children: [
|
|
172
|
+
"Locally, run",
|
|
173
|
+
" ",
|
|
174
|
+
/* @__PURE__ */ i("code", { children: "stripe listen --forward-to localhost:4200/api/webhooks/stripe" }),
|
|
175
|
+
" ",
|
|
176
|
+
"or ",
|
|
177
|
+
/* @__PURE__ */ i("code", { children: "npm run stripe" }),
|
|
178
|
+
"."
|
|
179
|
+
] })]
|
|
180
|
+
})]
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ a("div", {
|
|
183
|
+
className: "grid gap-3 sm:grid-cols-3",
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ i(y, {
|
|
186
|
+
id: "stripe_publishableKey",
|
|
187
|
+
label: "Publishable key",
|
|
188
|
+
defaultValue: e.stripe.publishableKey,
|
|
189
|
+
placeholder: "pk_live_…"
|
|
190
|
+
}),
|
|
191
|
+
/* @__PURE__ */ i(y, {
|
|
192
|
+
id: "stripe_secretKey",
|
|
193
|
+
label: "Secret key",
|
|
194
|
+
type: "password",
|
|
195
|
+
placeholder: e.stripe.hasSecretKey ? n : "sk_live_…"
|
|
196
|
+
}),
|
|
197
|
+
/* @__PURE__ */ i(y, {
|
|
198
|
+
id: "stripe_webhookSecret",
|
|
199
|
+
label: "Webhook signing secret",
|
|
200
|
+
type: "password",
|
|
201
|
+
placeholder: e.stripe.hasWebhookSecret ? n : "whsec_…"
|
|
202
|
+
})
|
|
203
|
+
]
|
|
204
|
+
})
|
|
205
|
+
]
|
|
206
|
+
}),
|
|
207
|
+
/* @__PURE__ */ a("div", {
|
|
208
|
+
className: "space-y-3",
|
|
209
|
+
children: [/* @__PURE__ */ i("h3", {
|
|
210
|
+
className: "text-sm font-semibold",
|
|
211
|
+
children: "Freemius (digital products)"
|
|
212
|
+
}), /* @__PURE__ */ a("div", {
|
|
213
|
+
className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-3",
|
|
214
|
+
children: [
|
|
215
|
+
/* @__PURE__ */ i(y, {
|
|
216
|
+
id: "freemius_developerId",
|
|
217
|
+
label: "Developer ID",
|
|
218
|
+
defaultValue: e.freemius.developerId
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ i(y, {
|
|
221
|
+
id: "freemius_productId",
|
|
222
|
+
label: "Product ID",
|
|
223
|
+
defaultValue: e.freemius.productId
|
|
224
|
+
}),
|
|
225
|
+
/* @__PURE__ */ i(y, {
|
|
226
|
+
id: "freemius_publicKey",
|
|
227
|
+
label: "Public key",
|
|
228
|
+
defaultValue: e.freemius.publicKey,
|
|
229
|
+
placeholder: "pk_…"
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ i(y, {
|
|
232
|
+
id: "freemius_secretKey",
|
|
233
|
+
label: "Secret key",
|
|
234
|
+
type: "password",
|
|
235
|
+
placeholder: e.freemius.hasSecretKey ? n : "sk_…"
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ i(y, {
|
|
238
|
+
id: "freemius_apiKey",
|
|
239
|
+
label: "API key",
|
|
240
|
+
type: "password",
|
|
241
|
+
placeholder: e.freemius.hasApiKey ? n : "API key"
|
|
242
|
+
})
|
|
243
|
+
]
|
|
244
|
+
})]
|
|
245
|
+
}),
|
|
246
|
+
e.envFallbackActive && /* @__PURE__ */ i("p", {
|
|
247
|
+
className: "text-xs text-amber-700",
|
|
248
|
+
children: "Stripe keys are currently read from environment variables. Saving here moves them into the database and takes precedence."
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ i("div", {
|
|
251
|
+
className: "mt-auto flex justify-end border-t pt-4",
|
|
252
|
+
children: /* @__PURE__ */ i(v, {})
|
|
253
|
+
})
|
|
254
|
+
]
|
|
255
|
+
})
|
|
256
|
+
})]
|
|
257
|
+
});
|
|
270
258
|
}
|
|
271
|
-
function
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
] }),
|
|
310
|
-
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: t }),
|
|
311
|
-
!o && /* @__PURE__ */ e("p", { className: "text-xs text-amber-700", children: "Add all required credentials before enabling this provider." }),
|
|
312
|
-
u
|
|
313
|
-
] })
|
|
314
|
-
] }) });
|
|
259
|
+
function x({ id: e, label: t, description: n, checked: r, disabled: o, ready: s, onCheckedChange: c, children: l }) {
|
|
260
|
+
return /* @__PURE__ */ i("div", {
|
|
261
|
+
className: "rounded-md border p-3",
|
|
262
|
+
children: /* @__PURE__ */ a("div", {
|
|
263
|
+
className: "flex items-start gap-3",
|
|
264
|
+
children: [/* @__PURE__ */ i(p, {
|
|
265
|
+
id: e,
|
|
266
|
+
checked: r,
|
|
267
|
+
disabled: o,
|
|
268
|
+
onCheckedChange: (e) => c(!!e),
|
|
269
|
+
className: "mt-1"
|
|
270
|
+
}), /* @__PURE__ */ a("div", {
|
|
271
|
+
className: "grid gap-1.5 leading-none w-full",
|
|
272
|
+
children: [
|
|
273
|
+
/* @__PURE__ */ a("div", {
|
|
274
|
+
className: "flex items-center justify-between gap-3 flex-wrap",
|
|
275
|
+
children: [/* @__PURE__ */ i(h, {
|
|
276
|
+
htmlFor: e,
|
|
277
|
+
className: "font-semibold text-base cursor-pointer",
|
|
278
|
+
children: t
|
|
279
|
+
}), /* @__PURE__ */ i("span", {
|
|
280
|
+
className: `text-xs font-medium ${r ? "text-foreground" : "text-muted-foreground"}`,
|
|
281
|
+
children: r ? "Enabled" : "Disabled"
|
|
282
|
+
})]
|
|
283
|
+
}),
|
|
284
|
+
/* @__PURE__ */ i("p", {
|
|
285
|
+
className: "text-sm text-muted-foreground",
|
|
286
|
+
children: n
|
|
287
|
+
}),
|
|
288
|
+
!s && /* @__PURE__ */ i("p", {
|
|
289
|
+
className: "text-xs text-amber-700",
|
|
290
|
+
children: "Add all required credentials before enabling this provider."
|
|
291
|
+
}),
|
|
292
|
+
l
|
|
293
|
+
]
|
|
294
|
+
})]
|
|
295
|
+
})
|
|
296
|
+
});
|
|
315
297
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}) {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
rel: "noopener noreferrer",
|
|
339
|
-
className: "font-medium underline hover:text-destructive/80",
|
|
340
|
-
children: [
|
|
341
|
-
"Open ",
|
|
342
|
-
a
|
|
343
|
-
]
|
|
344
|
-
}
|
|
345
|
-
),
|
|
346
|
-
"."
|
|
347
|
-
] })
|
|
348
|
-
] });
|
|
298
|
+
function S({ provider: e, missingKeys: t, docsUrl: r, docsLabel: o }) {
|
|
299
|
+
return /* @__PURE__ */ a("div", {
|
|
300
|
+
className: "mt-2 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-xs text-foreground",
|
|
301
|
+
children: [/* @__PURE__ */ a("div", {
|
|
302
|
+
className: "mb-1.5 flex items-center gap-2 font-semibold text-destructive",
|
|
303
|
+
children: [/* @__PURE__ */ i(n, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", { children: "Configuration Required" })]
|
|
304
|
+
}), /* @__PURE__ */ a("p", { children: [
|
|
305
|
+
e,
|
|
306
|
+
" needs ",
|
|
307
|
+
/* @__PURE__ */ i("strong", { children: t.join(", ") }),
|
|
308
|
+
". Add them in Provider API Keys, save, then enable the provider.",
|
|
309
|
+
" ",
|
|
310
|
+
/* @__PURE__ */ a("a", {
|
|
311
|
+
href: r,
|
|
312
|
+
target: "_blank",
|
|
313
|
+
rel: "noopener noreferrer",
|
|
314
|
+
className: "font-medium underline hover:text-destructive/80",
|
|
315
|
+
children: ["Open ", o]
|
|
316
|
+
}),
|
|
317
|
+
"."
|
|
318
|
+
] })]
|
|
319
|
+
});
|
|
349
320
|
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
};
|
|
321
|
+
//#endregion
|
|
322
|
+
export { _ as PaymentsClient };
|