@cedros/pay-react 1.1.5 → 1.1.9
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/CedrosContext-C2v_s8cc.js +6 -0
- package/dist/CedrosContext-D7nh5-Zh.mjs +2100 -0
- package/dist/WalletManager-B5KLZK2D.js +1 -0
- package/dist/WalletManager-oEjZhaFk.mjs +219 -0
- package/dist/components/CedrosPay.d.ts.map +1 -1
- package/dist/components/admin/AISettingsSection.d.ts.map +1 -1
- package/dist/components/admin/CouponsSection.d.ts.map +1 -1
- package/dist/components/admin/ErrorBanner.d.ts +11 -0
- package/dist/components/admin/ErrorBanner.d.ts.map +1 -0
- package/dist/components/admin/FAQSection.d.ts.map +1 -1
- package/dist/components/admin/MessagingSection.d.ts.map +1 -1
- package/dist/components/admin/OverviewSection.d.ts.map +1 -1
- package/dist/components/admin/ProductsSection.d.ts.map +1 -1
- package/dist/components/admin/RefundsSection.d.ts.map +1 -1
- package/dist/components/admin/SingleCategorySettings.d.ts.map +1 -1
- package/dist/components/admin/StorefrontSection.d.ts.map +1 -1
- package/dist/components/admin/SubscriptionsSection.d.ts.map +1 -1
- package/dist/components/admin/TransactionsSection.d.ts.map +1 -1
- package/dist/context/CedrosContext.d.ts +9 -3
- package/dist/context/CedrosContext.d.ts.map +1 -1
- package/dist/crypto-only.d.ts +9 -19
- package/dist/crypto-only.d.ts.map +1 -1
- package/dist/crypto-only.js +1 -1
- package/dist/crypto-only.mjs +766 -32
- package/dist/index-BFt38o8Q.mjs +88 -0
- package/dist/index-S3b2N8tp.js +136 -0
- package/dist/index-WcOlBYZJ.js +1 -0
- package/dist/{index-Bzp2srIS.mjs → index-iIxY1o71.mjs} +10413 -9402
- package/dist/index.d.ts +1 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +68 -75
- package/dist/managers/ManagerCache.d.ts +2 -2
- package/dist/managers/ManagerCache.d.ts.map +1 -1
- package/dist/pay-react.css +1 -1
- package/dist/{sections-D6R2jRAp.js → sections-bhZyRM7o.js} +1 -1
- package/dist/{sections-cz9ughWO.mjs → sections-otLBNrzu.mjs} +2 -2
- package/dist/solanaCheck-BS3QTE63.js +6 -0
- package/dist/solanaCheck-IlYsbXDd.mjs +27 -0
- package/dist/stripe-only.d.ts +4 -21
- package/dist/stripe-only.d.ts.map +1 -1
- package/dist/stripe-only.js +1 -1
- package/dist/stripe-only.mjs +71 -29
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.mjs +1 -1
- package/dist/types/componentOptions.d.ts +15 -2
- package/dist/types/componentOptions.d.ts.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/walletPool-BR6etEiq.mjs +67 -0
- package/dist/walletPool-BZyAG4YS.js +1 -0
- package/package.json +6 -1
- package/dist/CedrosContext-DUT3cLZg.mjs +0 -2474
- package/dist/CedrosContext-efFL4kQz.js +0 -11
- package/dist/index-CFzfjC82.js +0 -136
- package/dist/styles-C4-_hbgr.js +0 -1
- package/dist/styles-QcAsIVWl.mjs +0 -1909
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export { CedrosPay } from './components/CedrosPay';
|
|
|
7
7
|
export { CedrosPayAdminDashboard, type CedrosPayAdminDashboardProps, type DashboardSection, } from './components/admin';
|
|
8
8
|
export { cedrosPayPlugin, type AdminPlugin, type AdminSectionConfig, type AdminGroupConfig, type AdminSectionProps, type HostContext, type PluginContext, type PluginRegistry, type PluginId, type SectionId, type QualifiedSectionId, type PluginPermission, } from './admin';
|
|
9
9
|
export { StripeButton } from './components/StripeButton';
|
|
10
|
-
export { CryptoButton } from './components/CryptoButton';
|
|
11
10
|
export { CreditsButton } from './components/CreditsButton';
|
|
12
11
|
export { PurchaseButton } from './components/PurchaseButton';
|
|
13
12
|
export type { PurchaseButtonProps } from './components/PurchaseButton';
|
|
@@ -16,18 +15,14 @@ export type { PaymentModalProps } from './components/PaymentModal';
|
|
|
16
15
|
export { ProductPrice, PaymentMethodBadge } from './components/ProductPrice';
|
|
17
16
|
export type { PaymentMethod } from './components/ProductPrice';
|
|
18
17
|
export { SubscribeButton } from './components/SubscribeButton';
|
|
19
|
-
export { CryptoSubscribeButton } from './components/CryptoSubscribeButton';
|
|
20
18
|
export { CreditsSubscribeButton } from './components/CreditsSubscribeButton';
|
|
21
19
|
export { SubscriptionManagementPanel } from './components/SubscriptionManagementPanel';
|
|
22
20
|
export type { SubscriptionManagementPanelProps, AvailablePlan, } from './components/SubscriptionManagementPanel';
|
|
23
21
|
export { CedrosProvider, useCedrosContext, useCedrosTheme, type CedrosContextValue } from './context';
|
|
24
22
|
export { useStripeCheckout } from './hooks/useStripeCheckout';
|
|
25
|
-
export { useX402Payment } from './hooks/useX402Payment';
|
|
26
23
|
export { useCreditsPayment } from './hooks/useCreditsPayment';
|
|
27
|
-
export { useRefundVerification } from './hooks/useRefundVerification';
|
|
28
24
|
export { usePaymentMode } from './hooks/usePaymentMode';
|
|
29
25
|
export { useSubscription } from './hooks/useSubscription';
|
|
30
|
-
export { useCryptoSubscription } from './hooks/useCryptoSubscription';
|
|
31
26
|
export { useCreditsSubscription } from './hooks/useCreditsSubscription';
|
|
32
27
|
export { useSubscriptionManagement } from './hooks/useSubscriptionManagement';
|
|
33
28
|
export type { SubscriptionManagementState, ChangeOptions, } from './hooks/useSubscriptionManagement';
|
|
@@ -35,12 +30,11 @@ export type { CedrosConfig, SolanaCluster, PaymentStatus, Currency, X402Requirem
|
|
|
35
30
|
export { ERROR_CATEGORIES } from './types/errors';
|
|
36
31
|
export type { IStripeManager } from './managers/StripeManager';
|
|
37
32
|
export type { IX402Manager } from './managers/X402Manager';
|
|
38
|
-
export type { IWalletManager } from './managers/WalletManager';
|
|
39
33
|
export type { ISubscriptionManager, SubscriptionQuoteOptions } from './managers/SubscriptionManager';
|
|
40
34
|
export type { ISubscriptionChangeManager } from './managers/SubscriptionChangeManager';
|
|
41
35
|
export type { ICreditsManager } from './managers/CreditsManager';
|
|
42
36
|
export type { IRouteDiscoveryManager } from './managers/RouteDiscoveryManager';
|
|
43
|
-
export { validateConfig, parseCouponCodes, formatCouponCodes, calculateDiscountPercentage, stackCheckoutCoupons, type Coupon, createRateLimiter, RATE_LIMITER_PRESETS, type RateLimiter, type RateLimiterConfig, createCircuitBreaker, CircuitState, CircuitBreakerOpenError, CIRCUIT_BREAKER_PRESETS, type CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerStats, retryWithBackoff, RETRY_PRESETS, type RetryConfig, type RetryStats,
|
|
37
|
+
export { validateConfig, parseCouponCodes, formatCouponCodes, calculateDiscountPercentage, stackCheckoutCoupons, type Coupon, createRateLimiter, RATE_LIMITER_PRESETS, type RateLimiter, type RateLimiterConfig, createCircuitBreaker, CircuitState, CircuitBreakerOpenError, CIRCUIT_BREAKER_PRESETS, type CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerStats, retryWithBackoff, RETRY_PRESETS, type RetryConfig, type RetryStats, generateCSP, generateCSPDirectives, formatCSP, RPC_PROVIDERS, CSP_PRESETS, type CSPConfig, type CSPDirectives, type CSPFormat, } from './utils';
|
|
44
38
|
export { LogLevel, Logger, getLogger, createLogger, type LoggerConfig, } from './utils/logger';
|
|
45
39
|
export { CEDROS_EVENTS, emitPaymentStart, emitWalletConnect, emitWalletConnected, emitWalletError, emitPaymentProcessing, emitPaymentSuccess, emitPaymentError, type PaymentStartDetail, type WalletConnectDetail, type WalletErrorDetail, type PaymentProcessingDetail, type PaymentSuccessDetail, type PaymentErrorDetail, type WalletProvider, } from './utils';
|
|
46
40
|
export { isRetryableError, getUserErrorMessage, } from './utils';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,eAAe,EACf,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,eAAe,EACf,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,YAAY,EACV,gCAAgC,EAChC,aAAa,GACd,MAAM,0CAA0C,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAGtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,YAAY,EACV,2BAA2B,EAC3B,aAAa,GACd,MAAM,mCAAmC,CAAC;AAG3C,YAAY,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,aAAa,EAEb,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EAEpB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,IAAI,gBAAgB,EACtC,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,eAAe,EAEf,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,+BAA+B,EAC/B,gCAAgC,EAChC,iBAAiB,EACjB,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIlD,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACrG,YAAY,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACvF,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG/E,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,oBAAoB,EACpB,KAAK,MAAM,EACX,iBAAiB,EACjB,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,gBAAgB,EAChB,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,WAAW,EACX,qBAAqB,EACrB,SAAS,EACT,aAAa,EACb,WAAW,EACX,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,GACf,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,QAAQ,EACR,MAAM,EACN,SAAS,EACT,YAAY,EACZ,KAAK,YAAY,GAClB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EACL,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,WAAW,GACjB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,KAAK,oBAAoB,GAC1B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,cAAc,CAAC;AAGtB,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-S3b2N8tp.js");require("react/jsx-runtime");require("react");const t=require("./CedrosContext-C2v_s8cc.js");require("@solana/web3.js");require("./index-WcOlBYZJ.js");require("@solana/wallet-adapter-react");exports.CEDROS_EVENTS=e.CEDROS_EVENTS;exports.CSP_PRESETS=e.CSP_PRESETS;exports.CedrosPay=e.CedrosPay;exports.CedrosPayAdminDashboard=e.CedrosPayAdminDashboard;exports.CreditsButton=e.CreditsButton;exports.CreditsSubscribeButton=e.CreditsSubscribeButton;exports.ERROR_CATEGORIES=e.ERROR_CATEGORIES;exports.PaymentMethodBadge=e.PaymentMethodBadge;exports.PaymentModal=e.PaymentModal;exports.ProductPrice=e.ProductPrice;exports.PurchaseButton=e.PurchaseButton;exports.RPC_PROVIDERS=e.RPC_PROVIDERS;exports.SECURITY_RECOMMENDATIONS=e.SECURITY_RECOMMENDATIONS;exports.StripeButton=e.StripeButton;exports.SubscribeButton=e.SubscribeButton;exports.SubscriptionManagementPanel=e.SubscriptionManagementPanel;exports.calculateDiscountPercentage=e.calculateDiscountPercentage;exports.cedrosPayPlugin=e.cedrosPayPlugin;exports.createTranslator=e.createTranslator;exports.detectLocale=e.detectLocale;exports.ecommerce=e.index;exports.emitPaymentError=e.emitPaymentError;exports.emitPaymentProcessing=e.emitPaymentProcessing;exports.emitPaymentStart=e.emitPaymentStart;exports.emitPaymentSuccess=e.emitPaymentSuccess;exports.emitWalletConnect=e.emitWalletConnect;exports.emitWalletConnected=e.emitWalletConnected;exports.emitWalletError=e.emitWalletError;exports.formatCSP=e.formatCSP;exports.formatCouponCodes=e.formatCouponCodes;exports.generateCSP=e.generateCSP;exports.generateCSPDirectives=e.generateCSPDirectives;exports.getAvailableLocales=e.getAvailableLocales;exports.getLocalizedError=e.getLocalizedError;exports.getUserErrorMessage=e.getUserErrorMessage;exports.isRetryableError=e.isRetryableError;exports.loadLocale=e.loadLocale;exports.logSecurityReport=e.logSecurityReport;exports.parseCouponCodes=e.parseCouponCodes;exports.stackCheckoutCoupons=e.stackCheckoutCoupons;exports.useCreditsPayment=e.useCreditsPayment;exports.useCreditsSubscription=e.useCreditsSubscription;exports.useLocalizedError=e.useLocalizedError;exports.usePaymentMode=e.usePaymentMode;exports.useStripeCheckout=e.useStripeCheckout;exports.useSubscription=e.useSubscription;exports.useSubscriptionManagement=e.useSubscriptionManagement;exports.useTranslation=e.useTranslation;exports.validateSecurity=e.validateSecurity;exports.CIRCUIT_BREAKER_PRESETS=t.CIRCUIT_BREAKER_PRESETS;exports.CedrosProvider=t.CedrosProvider;exports.CircuitBreakerOpenError=t.CircuitBreakerOpenError;exports.CircuitState=t.CircuitState;exports.LogLevel=t.LogLevel;exports.Logger=t.Logger;exports.RATE_LIMITER_PRESETS=t.RATE_LIMITER_PRESETS;exports.RETRY_PRESETS=t.RETRY_PRESETS;exports.createCircuitBreaker=t.createCircuitBreaker;exports.createLogger=t.createLogger;exports.createRateLimiter=t.createRateLimiter;exports.getLogger=t.getLogger;exports.retryWithBackoff=t.retryWithBackoff;exports.useCedrosContext=t.useCedrosContext;exports.useCedrosTheme=t.useCedrosTheme;exports.validateConfig=t.validateConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -1,81 +1,74 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x as c, w as n, C as u, a as C, b as m, h as S, E, f as P, d, e as l, P as R, R as g, L as p, S as y, g as T, i as L, q as b, c as B, Q as M, M as _, W as f, G as h, D as I, y as v, F as O, z as k, A, B as D, v as W, o as x, r as N, t as U, O as z, T as V, I as j, H as G, N as K, K as Y, p as q, s as w, j as F, m as H, V as J, k as Q, u as X, l as Z, n as $, U as ee, J as ae } from "./index-iIxY1o71.mjs";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
|
-
import {
|
|
4
|
+
import { f as te, C as re, e as oe, d as ie, L as ce, h as ne, R as ue, g as Ce, b as me, j as Se, c as Ee, i as Pe, r as de, u as le, a as Re, v as ge } from "./CedrosContext-D7nh5-Zh.mjs";
|
|
5
5
|
import "@solana/web3.js";
|
|
6
|
+
import "./index-BFt38o8Q.mjs";
|
|
6
7
|
import "@solana/wallet-adapter-react";
|
|
7
|
-
import { C as w, r as H, l as J, E as Q, b as Z, P as $, a as aa, S as ea, d as sa, D as ta, z as ra, i as oa, g as ia, e as na, h as ca, t as ua, s as Ca, v as la, f as ma, B as Sa, F as Pa, k as da, j as Ea, A as pa, p as Ra, y as ga, x as ya, G as ba, c as Ta, u as Ba, n as La, m as fa } from "./styles-QcAsIVWl.mjs";
|
|
8
8
|
export {
|
|
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
|
-
Ba as useStripeCheckout,
|
|
75
|
-
f as useSubscription,
|
|
76
|
-
_ as useSubscriptionManagement,
|
|
77
|
-
La as useTranslation,
|
|
78
|
-
fa as useX402Payment,
|
|
79
|
-
K as validateConfig,
|
|
80
|
-
h as validateSecurity
|
|
9
|
+
c as CEDROS_EVENTS,
|
|
10
|
+
te as CIRCUIT_BREAKER_PRESETS,
|
|
11
|
+
n as CSP_PRESETS,
|
|
12
|
+
u as CedrosPay,
|
|
13
|
+
C as CedrosPayAdminDashboard,
|
|
14
|
+
re as CedrosProvider,
|
|
15
|
+
oe as CircuitBreakerOpenError,
|
|
16
|
+
ie as CircuitState,
|
|
17
|
+
m as CreditsButton,
|
|
18
|
+
S as CreditsSubscribeButton,
|
|
19
|
+
E as ERROR_CATEGORIES,
|
|
20
|
+
ce as LogLevel,
|
|
21
|
+
ne as Logger,
|
|
22
|
+
P as PaymentMethodBadge,
|
|
23
|
+
d as PaymentModal,
|
|
24
|
+
l as ProductPrice,
|
|
25
|
+
R as PurchaseButton,
|
|
26
|
+
ue as RATE_LIMITER_PRESETS,
|
|
27
|
+
Ce as RETRY_PRESETS,
|
|
28
|
+
g as RPC_PROVIDERS,
|
|
29
|
+
p as SECURITY_RECOMMENDATIONS,
|
|
30
|
+
y as StripeButton,
|
|
31
|
+
T as SubscribeButton,
|
|
32
|
+
L as SubscriptionManagementPanel,
|
|
33
|
+
b as calculateDiscountPercentage,
|
|
34
|
+
B as cedrosPayPlugin,
|
|
35
|
+
me as createCircuitBreaker,
|
|
36
|
+
Se as createLogger,
|
|
37
|
+
Ee as createRateLimiter,
|
|
38
|
+
M as createTranslator,
|
|
39
|
+
_ as detectLocale,
|
|
40
|
+
f as ecommerce,
|
|
41
|
+
h as emitPaymentError,
|
|
42
|
+
I as emitPaymentProcessing,
|
|
43
|
+
v as emitPaymentStart,
|
|
44
|
+
O as emitPaymentSuccess,
|
|
45
|
+
k as emitWalletConnect,
|
|
46
|
+
A as emitWalletConnected,
|
|
47
|
+
D as emitWalletError,
|
|
48
|
+
W as formatCSP,
|
|
49
|
+
x as formatCouponCodes,
|
|
50
|
+
N as generateCSP,
|
|
51
|
+
U as generateCSPDirectives,
|
|
52
|
+
z as getAvailableLocales,
|
|
53
|
+
V as getLocalizedError,
|
|
54
|
+
Pe as getLogger,
|
|
55
|
+
j as getUserErrorMessage,
|
|
56
|
+
G as isRetryableError,
|
|
57
|
+
K as loadLocale,
|
|
58
|
+
Y as logSecurityReport,
|
|
59
|
+
q as parseCouponCodes,
|
|
60
|
+
de as retryWithBackoff,
|
|
61
|
+
w as stackCheckoutCoupons,
|
|
62
|
+
le as useCedrosContext,
|
|
63
|
+
Re as useCedrosTheme,
|
|
64
|
+
F as useCreditsPayment,
|
|
65
|
+
H as useCreditsSubscription,
|
|
66
|
+
J as useLocalizedError,
|
|
67
|
+
Q as usePaymentMode,
|
|
68
|
+
X as useStripeCheckout,
|
|
69
|
+
Z as useSubscription,
|
|
70
|
+
$ as useSubscriptionManagement,
|
|
71
|
+
ee as useTranslation,
|
|
72
|
+
ge as validateConfig,
|
|
73
|
+
ae as validateSecurity
|
|
81
74
|
};
|
|
@@ -14,7 +14,7 @@ import { SolanaCluster } from '../types';
|
|
|
14
14
|
*
|
|
15
15
|
* @returns Cached or newly created manager instances
|
|
16
16
|
*/
|
|
17
|
-
export declare function getOrCreateManagers(stripePublicKey: string, serverUrl: string, solanaCluster: SolanaCluster, solanaEndpoint?: string, dangerouslyAllowUnknownMint?: boolean): {
|
|
17
|
+
export declare function getOrCreateManagers(stripePublicKey: string, serverUrl: string, solanaCluster: SolanaCluster, solanaEndpoint?: string, dangerouslyAllowUnknownMint?: boolean): Promise<{
|
|
18
18
|
stripeManager: IStripeManager;
|
|
19
19
|
x402Manager: IX402Manager;
|
|
20
20
|
walletManager: IWalletManager;
|
|
@@ -22,7 +22,7 @@ export declare function getOrCreateManagers(stripePublicKey: string, serverUrl:
|
|
|
22
22
|
subscriptionChangeManager: ISubscriptionChangeManager;
|
|
23
23
|
creditsManager: ICreditsManager;
|
|
24
24
|
routeDiscovery: RouteDiscoveryManager;
|
|
25
|
-
}
|
|
25
|
+
}>;
|
|
26
26
|
/**
|
|
27
27
|
* Release a reference to cached managers
|
|
28
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagerCache.d.ts","sourceRoot":"","sources":["../../src/managers/ManagerCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"ManagerCache.d.ts","sourceRoot":"","sources":["../../src/managers/ManagerCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAA6B,KAAK,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzG,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAgE9C;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACvC,eAAe,EAAE,MAAM,EACvB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,aAAa,EAC5B,cAAc,CAAC,EAAE,MAAM,EACvB,2BAA2B,CAAC,EAAE,OAAO,GACpC,OAAO,CAAC;IACT,aAAa,EAAE,cAAc,CAAC;IAC9B,WAAW,EAAE,YAAY,CAAC;IAC1B,aAAa,EAAE,cAAc,CAAC;IAC9B,mBAAmB,EAAE,oBAAoB,CAAC;IAC1C,yBAAyB,EAAE,0BAA0B,CAAC;IACtD,cAAc,EAAE,eAAe,CAAC;IAChC,cAAc,EAAE,qBAAqB,CAAC;CACvC,CAAC,CAwDD;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,eAAe,EAAE,MAAM,EACvB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,aAAa,EAC5B,cAAc,CAAC,EAAE,MAAM,EACvB,2BAA2B,CAAC,EAAE,OAAO,GACpC,IAAI,CA4BN;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAGxC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB;;;;;;EAQnC"}
|
package/dist/pay-react.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cedros-theme-root{--cedros-surface-bg: transparent;--cedros-surface-text: #111827;--cedros-surface-border: transparent;--cedros-stripe-bg: #635bff;--cedros-stripe-text: #ffffff;--cedros-stripe-shadow: rgba(79, 70, 229, .25);--cedros-crypto-bg: #9945ff;--cedros-crypto-text: #ffffff;--cedros-crypto-shadow: rgba(153, 69, 255, .25);--cedros-credits-bg: #059669;--cedros-credits-text: #ffffff;--cedros-credits-shadow: rgba(5, 150, 105, .25);--cedros-error-bg: #fee2e2;--cedros-error-border: #fca5a5;--cedros-error-text: #b91c1c;--cedros-success-bg: #dcfce7;--cedros-success-border: #86efac;--cedros-success-text: #166534;--cedros-modal-overlay: rgba(0, 0, 0, .5);--cedros-modal-bg: #ffffff;--cedros-modal-border: rgba(15, 23, 42, .08);--cedros-button-radius: 8px;--cedros-button-padding: .75rem 1.5rem;--cedros-button-font-size: 1rem;--cedros-button-font-weight: 600}.cedros-theme.cedros-theme--dark{--cedros-surface-bg: transparent;--cedros-surface-text: #f9fafb;--cedros-surface-border: transparent;--cedros-stripe-bg: #4f46e5;--cedros-stripe-text: #f5f3ff;--cedros-stripe-shadow: rgba(99, 102, 241, .35);--cedros-crypto-bg: #7c3aed;--cedros-crypto-text: #ecfeff;--cedros-crypto-shadow: rgba(124, 58, 237, .35);--cedros-credits-bg: #047857;--cedros-credits-text: #ecfdf5;--cedros-credits-shadow: rgba(4, 120, 87, .35);--cedros-error-bg: #7f1d1d;--cedros-error-border: #fca5a5;--cedros-error-text: #fecaca;--cedros-success-bg: #14532d;--cedros-success-border: #4ade80;--cedros-success-text: #bbf7d0;--cedros-modal-overlay: rgba(0, 0, 0, .75);--cedros-modal-bg: #1f2937;--cedros-modal-border: rgba(148, 163, 184, .25)}.cedros-theme__pay{display:flex;flex-direction:column;gap:1rem;max-width:400px;background:var(--cedros-surface-bg);color:var(--cedros-surface-text);border:none;box-sizing:border-box}.cedros-theme__pay-content{display:flex;flex-direction:column;gap:.75rem}.cedros-theme__pay-content--horizontal{flex-direction:row;gap:.75rem}.cedros-theme__pay-content--horizontal .cedros-theme__button{flex:1;min-width:0}.cedros-theme__pay-content--vertical{flex-direction:column}.cedros-theme__button{padding:var(--cedros-button-padding);font-size:var(--cedros-button-font-size);font-weight:var(--cedros-button-font-weight);border:none;border-radius:var(--cedros-button-radius);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;width:100%;text-align:center}.cedros-theme__button:hover:not(:disabled){transform:translateY(-1px)}.cedros-theme__button:disabled{opacity:.6;cursor:not-allowed}.cedros-theme__stripe{background:var(--cedros-stripe-bg);color:var(--cedros-stripe-text);box-shadow:0 4px 12px var(--cedros-stripe-shadow)}.cedros-theme__stripe:hover:not(:disabled){box-shadow:0 8px 18px var(--cedros-stripe-shadow)}.cedros-theme__crypto{background:var(--cedros-crypto-bg);color:var(--cedros-crypto-text);box-shadow:0 4px 12px var(--cedros-crypto-shadow)}.cedros-theme__crypto:hover:not(:disabled){box-shadow:0 8px 18px var(--cedros-crypto-shadow)}.cedros-theme__credits{background:var(--cedros-credits-bg);color:var(--cedros-credits-text);box-shadow:0 4px 12px var(--cedros-credits-shadow)}.cedros-theme__credits:hover:not(:disabled){box-shadow:0 8px 18px var(--cedros-credits-shadow)}.cedros-theme__error{padding:.75rem;background-color:var(--cedros-error-bg);border:1px solid var(--cedros-error-border);border-radius:8px;color:var(--cedros-error-text);font-size:.875rem;margin-top:.5rem}.cedros-theme__success{padding:.75rem;background-color:var(--cedros-success-bg);border:1px solid var(--cedros-success-border);border-radius:8px;color:var(--cedros-success-text);font-size:.875rem;margin-top:.5rem}.cedros-theme__notice{padding:.75rem;background-color:#0e74901f;border:1px solid rgba(14,116,144,.3);border-radius:8px;color:var(--cedros-surface-text);font-size:.875rem;margin-bottom:.75rem}.cedros-theme--dark .cedros-theme__notice{background-color:#0e749033;border-color:#0e749066}@media(max-width:640px){.cedros-theme__pay{max-width:100%}.cedros-theme__button{font-size:.875rem;padding:.625rem 1.25rem}.cedros-theme__pay-content--horizontal{flex-direction:column}}.cedros-admin{--admin-bg: hsl(0, 0%, 100%);--admin-fg: hsl(222.2, 84%, 4.9%);--admin-muted: hsl(215.4, 16.3%, 46.9%);--admin-muted-bg: hsl(210, 40%, 96.1%);--admin-accent: hsl(210, 40%, 96.1%);--admin-accent-fg: hsl(222.2, 47.4%, 11.2%);--admin-border: hsl(214.3, 31.8%, 91.4%);--admin-input: hsl(214.3, 31.8%, 91.4%);--admin-ring: hsl(222.2, 84%, 4.9%);--admin-primary: hsl(222.2, 47.4%, 11.2%);--admin-primary-fg: hsl(210, 40%, 98%);--admin-primary-light: hsl(210, 40%, 96.1%);--admin-success: hsl(142, 71%, 45%);--admin-success-light: hsl(142, 76%, 94%);--admin-warning: hsl(38, 92%, 50%);--admin-warning-light: hsl(48, 96%, 89%);--admin-error: hsl(0, 84.2%, 60.2%);--admin-error-light: hsl(0, 86%, 97%);--admin-info: hsl(221.2, 83.2%, 53.3%);--admin-info-light: hsl(214, 100%, 95%);--admin-sidebar-bg: hsl(0, 0%, 100%);--admin-card-bg: hsl(0, 0%, 100%);--admin-radius: .5rem;--admin-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);--admin-shadow: 0 2px 4px 0 rgb(0 0 0 / .1);--admin-shadow-card: 0 1px 2px 0 rgb(0 0 0 / .04), 0 1px 1px -1px rgb(0 0 0 / .08);--admin-table-head: hsl(210, 40%, 98%);--admin-table-row: hsl(0, 0%, 100%);--admin-table-row-hover: hsl(210, 40%, 96.1%);--admin-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--admin-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace}.cedros-admin.cedros-admin--dark{--admin-bg: hsl(222.2, 84%, 4.9%);--admin-fg: hsl(210, 40%, 98%);--admin-muted: hsl(215, 20.2%, 65.1%);--admin-muted-bg: hsl(217.2, 32.6%, 17.5%);--admin-accent: hsl(217.2, 32.6%, 17.5%);--admin-accent-fg: hsl(210, 40%, 98%);--admin-border: hsl(217.2, 32.6%, 17.5%);--admin-input: hsl(217.2, 32.6%, 17.5%);--admin-ring: hsl(212.7, 26.8%, 83.9%);--admin-primary: hsl(210, 40%, 98%);--admin-primary-fg: hsl(222.2, 47.4%, 11.2%);--admin-primary-light: hsl(217.2, 32.6%, 17.5%);--admin-success: hsl(142, 71%, 45%);--admin-success-light: hsl(142, 40%, 15%);--admin-warning: hsl(38, 92%, 50%);--admin-warning-light: hsl(38, 40%, 20%);--admin-error: hsl(0, 62.8%, 30.6%);--admin-error-light: hsl(0, 62.8%, 15%);--admin-info: hsl(217.2, 91.2%, 59.8%);--admin-info-light: hsl(217.2, 32.6%, 17.5%);--admin-sidebar-bg: hsl(222.2, 84%, 4.9%);--admin-card-bg: hsl(222.2, 84%, 4.9%);--admin-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .3);--admin-shadow: 0 2px 4px 0 rgb(0 0 0 / .4);--admin-shadow-card: 0 1px 2px 0 rgb(0 0 0 / .3);--admin-table-head: hsl(217.2, 32.6%, 17.5%);--admin-table-row: hsl(222.2, 84%, 4.9%);--admin-table-row-hover: hsl(217.2, 32.6%, 17.5%)}.cedros-admin__notice-banner{padding:.75rem 1.5rem;margin-bottom:1.5rem;background:#dbeafe;border:1px solid #bfdbfe;border-radius:.5rem;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.875rem;line-height:1.5}.cedros-admin__notice-banner.cedros-admin--dark{background:#3b82f626;border-color:#3b82f64d}.cedros-admin__notice-banner .cedros-admin__notice{max-width:none;margin:0;background:transparent;border:none;padding:0}.cedros-admin__notice-banner .cedros-admin__notice--info{color:#1e40af}.cedros-admin__notice-banner.cedros-admin--dark .cedros-admin__notice--info{color:#93c5fd}.cedros-admin{display:grid;grid-template-columns:220px 1fr;grid-template-rows:1fr;height:100%;min-height:400px;background:var(--admin-bg);color:var(--admin-fg);font-family:var(--admin-font);font-size:.875rem;line-height:1.5;border:1px solid var(--admin-border);border-radius:var(--admin-radius);overflow:hidden}.cedros-admin--loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:400px}.cedros-admin__loading-text{font-size:.875rem;color:var(--admin-muted)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.cedros-admin__spinner{animation:spin 1s linear infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.cedros-admin__skeleton{display:inline-block;background:linear-gradient(90deg,var(--admin-muted-bg) 25%,var(--admin-border) 50%,var(--admin-muted-bg) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:.25rem}.cedros-admin__skeleton--text{height:1em;width:4rem}.cedros-admin__skeleton--value{height:1.5rem;width:5rem}.cedros-admin__skeleton--lg{height:2rem;width:6rem}.cedros-admin__sidebar{background:var(--admin-sidebar-bg);border-right:1px solid var(--admin-border);display:flex;flex-direction:column;min-height:0}.cedros-admin__sidebar-header{padding:1rem .75rem;border-bottom:1px solid var(--admin-border)}.cedros-admin__logo{display:flex;align-items:center;gap:.5rem;color:var(--admin-fg)}.cedros-admin__logo svg{flex-shrink:0}.cedros-admin__logo-text{font-size:.875rem;font-weight:600;letter-spacing:-.01em}.cedros-admin__nav{flex:1;padding:.5rem;overflow-y:auto}.cedros-admin__nav-group{display:flex;flex-direction:column;gap:.125rem}.cedros-admin__nav-group+.cedros-admin__nav-group{margin-top:1rem;padding-top:.5rem;border-top:1px solid var(--admin-border)}.cedros-admin__nav-label{padding:.5rem .75rem .375rem;font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:var(--admin-muted)}.cedros-admin__nav-label--collapsible{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:none;cursor:pointer;transition:color .15s ease}.cedros-admin__nav-label--collapsible:hover{color:var(--admin-text)}.cedros-admin__nav-label-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;transition:transform .15s ease}.cedros-admin__nav-label-icon svg{width:.625rem;height:.625rem;opacity:.6}.cedros-admin__nav-label-icon--expanded{transform:rotate(90deg)}.cedros-admin__nav-item{display:flex;align-items:center;gap:.625rem;width:100%;padding:.5rem .75rem;border-radius:calc(var(--admin-radius) - 2px);border:none;background:transparent;color:var(--admin-muted);cursor:pointer;font-size:.8125rem;font-weight:500;font-family:inherit;text-align:left;transition:all .15s ease}.cedros-admin__nav-item:hover,.cedros-admin__nav-item--active{background:var(--admin-accent);color:var(--admin-fg)}.cedros-admin__nav-item--active:hover{background:var(--admin-accent)}.cedros-admin__nav-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;flex-shrink:0;opacity:.7}.cedros-admin__nav-item:hover .cedros-admin__nav-icon,.cedros-admin__nav-item--active .cedros-admin__nav-icon{opacity:1}.cedros-admin__nav-text{white-space:nowrap}.cedros-admin__sidebar-footer{padding:.75rem;border-top:1px solid var(--admin-border);display:flex;flex-direction:column;gap:.75rem;margin-top:auto}.cedros-admin__auth-status{display:flex;align-items:center;gap:.625rem;padding:.5rem;border-radius:calc(var(--admin-radius) - 2px);background:var(--admin-accent)}.cedros-admin__auth-avatar{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:calc(var(--admin-radius) - 2px);background:var(--admin-primary);color:var(--admin-primary-fg);flex-shrink:0}.cedros-admin__auth-avatar--connected{background:var(--admin-primary);color:var(--admin-primary-fg)}.cedros-admin__auth-info{display:flex;flex-direction:column;gap:.125rem;min-width:0}.cedros-admin__auth-label{font-size:.8125rem;font-weight:500;color:var(--admin-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cedros-admin__auth-badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.6875rem;color:var(--admin-muted)}.cedros-admin__auth-badge--connected{color:var(--admin-success)}.cedros-admin__auth-badge svg{width:.75rem;height:.75rem}.cedros-admin__server-info{display:flex;flex-direction:column;gap:.125rem}.cedros-admin__server-label{font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:var(--admin-muted)}.cedros-admin__server-url{font-size:.75rem;font-family:var(--admin-font-mono);color:var(--admin-fg);word-break:break-all}.cedros-admin__main{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--admin-bg)}.cedros-admin__header{padding:1rem 1.5rem;border-bottom:1px solid var(--admin-border);background:var(--admin-card-bg)}.cedros-admin__breadcrumb{display:flex;align-items:center;gap:.25rem;font-size:.875rem}.cedros-admin__breadcrumb-root{color:var(--admin-muted)}.cedros-admin__breadcrumb-sep{color:var(--admin-muted);opacity:.5}.cedros-admin__breadcrumb-current{color:var(--admin-fg);font-weight:500}.cedros-admin__content{flex:1;padding:1.5rem;overflow-y:auto;min-height:0}.cedros-admin__page{display:flex;flex-direction:column;gap:1rem}.cedros-admin__overview{display:flex;flex-direction:column;gap:1.5rem}.cedros-admin__stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.cedros-admin__stat-card{display:flex;flex-direction:column;gap:.25rem;padding:1.125rem 1.25rem;background:var(--admin-bg);border-radius:var(--admin-radius);border:1px solid var(--admin-border);box-shadow:var(--admin-shadow-card)}.cedros-admin__stat-label{font-size:.8125rem;font-weight:500;color:var(--admin-muted)}.cedros-admin__stat-value{font-size:1.5rem;font-weight:700;color:var(--admin-fg);line-height:1}.cedros-admin__stat-value--success{color:var(--admin-success)}.cedros-admin__stat-value--warning{color:var(--admin-warning)}.cedros-admin__stat-value--error{color:var(--admin-error)}.cedros-admin__stat-desc{font-size:.75rem;color:var(--admin-muted)}.cedros-admin__stat-card--revenue,.cedros-admin__stat-card--transactions,.cedros-admin__stat-card--active,.cedros-admin__stat-card--pending{border-color:var(--admin-border)}.cedros-admin__stats-bar{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:.875rem 1rem;background:var(--admin-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);box-shadow:var(--admin-shadow-card)}.cedros-admin__stats-bar-grid{display:flex;flex:1;gap:1.5rem}.cedros-admin__stats-bar-item{display:flex;flex-direction:column;gap:.125rem;padding-right:1.5rem;border-right:1px solid var(--admin-border)}.cedros-admin__stats-bar-item:last-child{border-right:none;padding-right:0}.cedros-admin__stats-bar-label{font-size:.6875rem;font-weight:500;color:var(--admin-muted);text-transform:uppercase;letter-spacing:.06em}.cedros-admin__stats-bar-value{font-size:1.125rem;font-weight:700;color:var(--admin-fg);line-height:1.2}.cedros-admin__stats-bar-value--success{color:var(--admin-success)}.cedros-admin__stats-bar-value--warning{color:var(--admin-warning)}.cedros-admin__stats-bar-value--muted{color:var(--admin-muted)}.cedros-admin__stats-bar-desc{font-size:.6875rem;color:var(--admin-muted)}.cedros-admin__stats-bar-refresh{display:flex;align-items:center;justify-content:center;width:2.125rem;height:2.125rem;padding:0;background:var(--admin-bg);border:1px solid var(--admin-input);border-radius:var(--admin-radius);color:var(--admin-muted);cursor:pointer;transition:background .15s,color .15s}.cedros-admin__stats-bar-refresh:hover:not(:disabled){background:var(--admin-accent);color:var(--admin-fg)}.cedros-admin__stats-bar-refresh:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.cedros-admin__card{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1.25rem}.cedros-admin__card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.cedros-admin__card-title{font-size:.8125rem;font-weight:500;color:var(--admin-muted)}.cedros-admin__card-value{font-size:1.75rem;font-weight:700;color:var(--admin-fg);line-height:1}.cedros-admin__card-value--warning{color:var(--admin-warning)}.cedros-admin__card-desc{margin:0;font-size:.75rem;color:var(--admin-muted)}.cedros-admin__method-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.cedros-admin__method-card{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1.25rem;display:flex;flex-direction:column;gap:.375rem;transition:border-color .15s}.cedros-admin__method-card--stripe,.cedros-admin__method-card--crypto,.cedros-admin__method-card--credits{border-color:var(--admin-border)}.cedros-admin__method-label{font-size:.8125rem;font-weight:500;color:var(--admin-muted)}.cedros-admin__method-value{font-size:1.75rem;font-weight:700;color:var(--admin-fg);line-height:1}.cedros-admin__method-count{font-size:.75rem;color:var(--admin-muted)}.cedros-admin__section{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1.25rem;box-shadow:var(--admin-shadow-card)}.cedros-admin__section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.cedros-admin__section-header-left{display:flex;align-items:center;gap:.75rem}.cedros-admin__section-header-right{display:flex;align-items:center;gap:.5rem}.cedros-admin__section-title{margin:0;font-size:.9375rem;font-weight:600;color:var(--admin-fg)}.cedros-admin__section-badge{display:inline-flex;align-items:center;padding:.25rem .625rem;font-size:.6875rem;font-weight:500;border-radius:var(--admin-radius);text-transform:uppercase;letter-spacing:.025em;background:var(--admin-accent);color:var(--admin-muted)}.cedros-admin__section-badge--success{background:var(--admin-success-light);color:var(--admin-success)}.cedros-admin__refresh-btn{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:1px solid var(--admin-border);border-radius:var(--admin-radius);background:transparent;color:var(--admin-muted);cursor:pointer;transition:background .15s,color .15s,border-color .15s,box-shadow .15s}.cedros-admin__refresh-btn:hover:not(:disabled){background:var(--admin-accent);color:var(--admin-fg)}.cedros-admin__refresh-btn:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__refresh-btn svg{width:1rem;height:1rem}.cedros-admin__notice{padding:.75rem 1rem;border-radius:var(--admin-radius);font-size:.875rem;margin-bottom:1rem;display:flex;align-items:flex-start;gap:.5rem}.cedros-admin__notice--warning{background:var(--admin-warning-light);border:1px solid var(--admin-warning);color:var(--admin-warning)}.cedros-admin__notice--info{background:var(--admin-info-light);border:1px solid var(--admin-info);color:var(--admin-info)}.cedros-admin__notice--success{background:var(--admin-success-light);border:1px solid var(--admin-success);color:var(--admin-success)}.cedros-admin__notice--error{background:var(--admin-error-light);border:1px solid var(--admin-error);color:var(--admin-error)}.cedros-admin__loading{display:flex;align-items:center;gap:.5rem;padding:2rem;color:var(--admin-muted);justify-content:center}.cedros-admin__empty{padding:2rem;text-align:center;color:var(--admin-muted)}.cedros-admin__tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--admin-border);margin-bottom:1rem}.cedros-admin__tab{padding:.75rem 1rem;font-size:.875rem;font-weight:500;color:var(--admin-muted);background:transparent;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .15s,border-color .15s;margin-bottom:-1px}.cedros-admin__tab:hover{color:var(--admin-fg)}.cedros-admin__tab--active{color:var(--admin-fg);border-bottom-color:var(--admin-fg)}.cedros-admin__tabs--line{gap:0;background:transparent}.cedros-admin__tabs--line .cedros-admin__tab{padding:.625rem 1rem;margin-bottom:-1px}.cedros-admin__tab-content{padding-top:1rem}.cedros-admin__page-header{margin-bottom:1.5rem}.cedros-admin__page-title{margin:0 0 .25rem;font-size:1.25rem;font-weight:600;color:var(--admin-fg)}.cedros-admin__page-description{margin:0;font-size:.875rem;color:var(--admin-muted)}.cedros-admin__table-container{overflow-x:auto;border:1px solid var(--admin-border);border-radius:calc(var(--admin-radius) - 2px);background:var(--admin-table-row)}.cedros-admin__table{width:100%;border-collapse:collapse;font-size:.8125rem;background:var(--admin-table-row)}.cedros-admin__table th{padding:.6875rem .75rem;text-align:left;font-weight:500;color:var(--admin-muted);background:var(--admin-table-head);border-bottom:1px solid var(--admin-border);white-space:nowrap;text-transform:uppercase;letter-spacing:.05em;font-size:.6875rem}.cedros-admin__table td{padding:.75rem;border-bottom:1px solid var(--admin-border);vertical-align:middle}.cedros-admin__table tbody tr{transition:background .15s}.cedros-admin__table tbody tr:hover{background:var(--admin-table-row-hover)}.cedros-admin__table tr:last-child td{border-bottom:none}.cedros-admin__table code{font-family:var(--admin-font-mono);font-size:.75rem;background:var(--admin-muted-bg);padding:.125rem .375rem;border-radius:.25rem}.cedros-admin__table-sort{display:inline-flex;align-items:center;gap:.375rem;padding:0;border:none;background:transparent;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}.cedros-admin__table-sort:hover{color:var(--admin-fg)}.cedros-admin__sort-icon{display:inline-flex;align-items:center;opacity:.7}.cedros-admin__sort-icon svg{width:.875rem;height:.875rem}.cedros-admin__sort-icon--idle{opacity:.35}.cedros-admin__badge{display:inline-flex;align-items:center;padding:.125rem .5rem;font-size:.6875rem;font-weight:500;border-radius:9999px;text-transform:uppercase;letter-spacing:.025em}.cedros-admin__badge--success,.cedros-admin__badge--completed{background:var(--admin-success-light);color:var(--admin-success)}.cedros-admin__badge--muted{background:var(--admin-muted-bg);color:var(--admin-muted)}.cedros-admin__badge--pending,.cedros-admin__badge--processing{background:var(--admin-warning-light);color:var(--admin-warning)}.cedros-admin__badge--failed{background:var(--admin-error-light);color:var(--admin-error)}.cedros-admin__badge--stripe{background:#6366f11f;color:#818cf8}.cedros-admin__badge--x402{background:#8b5cf61f;color:#a78bfa}.cedros-admin__badge--credits{background:#10b9811f;color:#34d399}.cedros-admin__button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;height:2.25rem;padding:0 .875rem;font-size:.875rem;font-weight:500;font-family:inherit;border-radius:var(--admin-radius);border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease,opacity .15s ease;white-space:nowrap;outline:none;will-change:transform}.cedros-admin__button:focus-visible{outline:2px solid var(--admin-ring);outline-offset:2px}.cedros-admin__button:active:not(:disabled){transform:scale(.98)}.cedros-admin__button:disabled{pointer-events:none;opacity:.5}.cedros-admin__button--primary{background-color:var(--admin-primary);color:var(--admin-primary-fg);box-shadow:var(--admin-shadow-sm);border-color:var(--admin-primary)}.cedros-admin__button--primary:hover:not(:disabled){background-color:color-mix(in srgb,var(--admin-primary) 85%,white);box-shadow:var(--admin-shadow)}.cedros-admin__button--ghost{background:transparent;color:var(--admin-fg);border-color:transparent}.cedros-admin__button--ghost:hover:not(:disabled){background:var(--admin-accent);color:var(--admin-accent-fg)}.cedros-admin__button--outline{background:transparent;color:var(--admin-fg);border-color:var(--admin-input)}.cedros-admin__button--outline:hover:not(:disabled){background:var(--admin-accent);color:var(--admin-accent-fg)}.cedros-admin__button--destructive{background:var(--admin-error);color:var(--admin-primary-fg);border-color:var(--admin-error)}.cedros-admin__button--destructive:hover:not(:disabled){background:color-mix(in srgb,var(--admin-error) 85%,white);border-color:var(--admin-error)}.cedros-admin__button--secondary{background:var(--admin-accent);color:var(--admin-accent-fg);border-color:var(--admin-border)}.cedros-admin__button--secondary:hover:not(:disabled){background:color-mix(in srgb,var(--admin-accent) 80%,white)}.cedros-admin__button--danger{color:var(--admin-error)}.cedros-admin__button--action{padding:0 1rem;font-weight:600;letter-spacing:.01em}.cedros-admin__button--action svg{width:.875rem;height:.875rem}.cedros-admin__button--icon{width:2.25rem;padding:0}.cedros-admin__dropdown{position:relative;display:inline-block}.cedros-admin__dropdown-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:.5rem;min-width:120px;height:2.25rem;padding:0 .75rem;font-size:.875rem;font-family:inherit;font-weight:500;border:1px solid var(--admin-border);border-radius:var(--admin-radius);background-color:var(--admin-bg);color:var(--admin-fg);cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.cedros-admin__dropdown-trigger:hover{border-color:var(--admin-ring);background-color:var(--admin-bg)}.cedros-admin__dropdown-trigger:focus{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__dropdown-chevron{display:flex;align-items:center;transition:transform .15s ease}.cedros-admin__dropdown-chevron svg{width:.875rem;height:.875rem;opacity:.6}.cedros-admin__dropdown-chevron--open{transform:rotate(180deg)}.cedros-admin__dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;min-width:100%;padding:.25rem;background:var(--admin-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);box-shadow:0 4px 12px #0000001a;z-index:50;animation:cedros-dropdown-enter .15s ease}@keyframes cedros-dropdown-enter{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.cedros-admin__dropdown-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.5rem .75rem;font-size:.875rem;font-family:inherit;color:var(--admin-fg);background:transparent;border:none;border-radius:calc(var(--admin-radius) - 2px);cursor:pointer;text-align:left;transition:background-color .1s ease}.cedros-admin__dropdown-item:hover{background:var(--admin-muted-bg)}.cedros-admin__dropdown-item--selected{font-weight:500}.cedros-admin__dropdown-check{display:flex;align-items:center;color:var(--admin-primary)}.cedros-admin__dropdown-check svg{width:1rem;height:1rem}.cedros-admin__dropdown--form{display:block;width:100%}.cedros-admin__dropdown-trigger--form{width:100%;min-width:0;background-color:var(--admin-bg);border-color:var(--admin-input);font-weight:400}.cedros-admin__dropdown-trigger--form:hover{background-color:var(--admin-bg)}.cedros-admin__dropdown-menu--form{left:0;right:auto;width:100%}.cedros-admin__dropdown-trigger:disabled,.cedros-admin__dropdown-item:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__select{min-width:160px;height:2.25rem;padding:0 2.25rem 0 .75rem;font-size:.875rem;font-family:inherit;border:1px solid var(--admin-border);border-radius:var(--admin-radius);background-color:var(--admin-muted-bg);color:var(--admin-fg);cursor:pointer;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;background-size:1rem;transition:border-color .15s ease,box-shadow .15s ease}.cedros-admin__select:focus{outline:none;border-color:var(--admin-ring);background-color:var(--admin-bg);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__select:hover{border-color:var(--admin-ring);background-color:var(--admin-bg)}.cedros-admin__select:disabled{opacity:.5;cursor:not-allowed}.cedros-admin--dark .cedros-admin__select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}.cedros-admin__settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:1rem}.cedros-admin__settings-card{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1rem}.cedros-admin__settings-card h4{margin:0 0 .75rem;font-size:.875rem;font-weight:600}.cedros-admin__settings-card p{margin:.25rem 0;font-size:.8125rem;color:var(--admin-muted)}.cedros-admin__settings-card code{font-family:var(--admin-font-mono);font-size:.75rem;background:var(--admin-bg);padding:.125rem .375rem;border-radius:.25rem}.cedros-admin__checkbox{display:flex;align-items:center;gap:.5rem;margin:.5rem 0;font-size:.8125rem;cursor:pointer}.cedros-admin__checkbox input{width:1rem;height:1rem;accent-color:var(--admin-primary)}.cedros-admin__toggle{display:inline-flex;align-items:center;gap:.75rem;cursor:pointer;position:relative}.cedros-admin__toggle-input{position:absolute;opacity:0;width:1px;height:1px}.cedros-admin__toggle-track{position:relative;width:38px;height:22px;background:var(--admin-muted-bg);border:1px solid var(--admin-border);border-radius:999px;transition:background .15s ease,border-color .15s ease}.cedros-admin__toggle-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--admin-bg);box-shadow:0 1px 2px #0003;transition:transform .15s ease}.cedros-admin__toggle-input:checked+.cedros-admin__toggle-track{background:var(--admin-primary);border-color:var(--admin-primary)}.cedros-admin__toggle-input:checked+.cedros-admin__toggle-track .cedros-admin__toggle-thumb{transform:translate(16px)}.cedros-admin__toggle-label{font-size:.875rem;color:var(--admin-fg);font-weight:500}.cedros-admin__toggle-input:focus-visible+.cedros-admin__toggle-track{box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__autosave-indicator{display:inline-flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--admin-muted)}.cedros-admin__autosave-indicator--saved{color:var(--admin-success)}.cedros-admin__autosave-indicator--error{color:var(--admin-error)}.cedros-admin__settings-actions{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--admin-border)}.cedros-admin__text-muted{color:var(--admin-muted);font-size:.875rem;margin:0 0 1rem}@media(max-width:768px){.cedros-admin{grid-template-columns:1fr;grid-template-rows:auto 1fr}.cedros-admin__sidebar{border-right:none;border-bottom:1px solid var(--admin-border)}.cedros-admin__sidebar-header{display:none}.cedros-admin__nav{display:flex;overflow-x:auto;padding:.5rem}.cedros-admin__nav-group{flex-direction:row;gap:.25rem}.cedros-admin__nav-label{display:none}.cedros-admin__nav-item{flex-shrink:0;padding:.5rem .625rem}.cedros-admin__nav-text{display:none}.cedros-admin__nav-icon{width:1.25rem;height:1.25rem}.cedros-admin__sidebar-footer{display:none}.cedros-admin__cards,.cedros-admin__method-grid{grid-template-columns:1fr}.cedros-admin__content{padding:1rem}}.cedros-admin__settings{display:flex;flex-direction:column;gap:1rem}.cedros-admin__settings-sections{display:flex;flex-direction:column;gap:1.5rem}.cedros-admin__settings-section{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1.25rem}.cedros-admin__settings-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.cedros-admin__settings-section-title-wrap{display:flex;gap:.75rem}.cedros-admin__settings-section-icon{font-size:1.5rem;line-height:1}.cedros-admin__settings-section-title{margin:0 0 .25rem;font-size:1rem;font-weight:600;color:var(--admin-fg)}.cedros-admin__settings-section-description{margin:0;font-size:.8125rem;color:var(--admin-muted);line-height:1.5}.cedros-admin__settings-section-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.cedros-admin__settings-section-meta{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.75rem;color:var(--admin-muted);margin-bottom:1rem}.cedros-admin__settings-meta-item{display:inline-flex;align-items:center;gap:.25rem}.cedros-admin__settings-editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--admin-border)}.cedros-admin__settings-editor-header h3{margin:0;font-size:1rem}.cedros-admin__settings-history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.cedros-admin__settings-history-header h3{margin:0;font-size:1rem}.cedros-admin__settings-timeline{display:flex;flex-direction:column;gap:0}.cedros-admin__settings-timeline-item{display:flex;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--admin-border)}.cedros-admin__settings-timeline-item:last-child{border-bottom:none}.cedros-admin__settings-timeline-dot{width:8px;height:8px;background:var(--admin-primary);border-radius:50%;margin-top:.375rem;flex-shrink:0}.cedros-admin__settings-timeline-content{flex:1}.cedros-admin__settings-timeline-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.cedros-admin__settings-timeline-meta{font-size:.75rem;color:var(--admin-muted)}.cedros-admin__config-editor,.cedros-admin__config-fields{display:flex;flex-direction:column;gap:1rem}.cedros-admin__config-field{display:flex;flex-direction:column}.cedros-admin__config-actions{display:flex;justify-content:flex-end;gap:.5rem;padding-top:1rem;border-top:1px solid var(--admin-border)}.cedros-admin__field{display:flex;flex-direction:column;gap:.375rem}.cedros-admin__field-label{font-size:.8125rem;font-weight:500;color:var(--admin-fg)}.cedros-admin__field-secret{font-size:.6875rem;color:var(--admin-muted);font-weight:400}.cedros-admin__input{height:2.25rem;padding:.5rem .75rem;font-size:.875rem;font-family:inherit;border:1px solid var(--admin-input);border-radius:var(--admin-radius);background:var(--admin-bg);color:var(--admin-fg);transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;box-shadow:none}.cedros-admin__input::-moz-placeholder{color:var(--admin-muted)}.cedros-admin__input::placeholder{color:var(--admin-muted)}.cedros-admin__input:focus{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__input:focus-visible{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__input:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__input-group{display:flex;gap:.5rem}.cedros-admin__input-group .cedros-admin__input{flex:1}.cedros-admin__field-unit{color:var(--admin-muted);font-weight:400;font-size:.75rem}.cedros-admin__textarea{padding:.5rem .75rem;font-size:.875rem;font-family:inherit;border:1px solid var(--admin-input);border-radius:var(--admin-radius);background:var(--admin-bg);color:var(--admin-fg);resize:vertical;min-height:60px;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;box-shadow:none}.cedros-admin__textarea::-moz-placeholder{color:var(--admin-muted)}.cedros-admin__textarea::placeholder{color:var(--admin-muted)}.cedros-admin__textarea--mono{font-family:var(--admin-font-mono);font-size:.75rem}.cedros-admin__textarea:focus{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__textarea:focus-visible{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__validation{padding:.75rem;border-radius:var(--admin-radius);font-size:.8125rem}.cedros-admin__validation--success{background:var(--admin-success-light);border:1px solid var(--admin-success);color:var(--admin-success)}.cedros-admin__validation--error{background:var(--admin-error-light);border:1px solid var(--admin-error);color:var(--admin-error)}.cedros-admin__validation ul{margin:.25rem 0 0;padding-left:1.25rem}.cedros-admin__validation-warnings{margin-top:.5rem;color:var(--admin-warning)}.cedros-admin__button--sm{height:2rem;padding:0 .75rem;font-size:.75rem;border-radius:calc(var(--admin-radius) - 2px)}.cedros-admin__badge--create{background:var(--admin-success-light);color:var(--admin-success)}.cedros-admin__badge--update{background:var(--admin-info-light);color:var(--admin-info)}.cedros-admin__badge--delete{background:var(--admin-error-light);color:var(--admin-error)}.cedros-admin__add-form{padding:1rem;margin-bottom:1rem;background:var(--admin-bg);border-radius:var(--admin-radius);border:1px dashed var(--admin-border)}.cedros-admin__form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem}.cedros-admin__form-row:last-child{margin-bottom:0}.cedros-admin__form-actions{display:flex;justify-content:flex-end;gap:.5rem;padding-top:.5rem}@media(max-width:768px){.cedros-admin__settings-section-header{flex-direction:column;align-items:flex-start}.cedros-admin__settings-section-actions{width:100%;justify-content:flex-start}}.cedros-admin__modal-overlay{position:fixed;inset:0;z-index:1000;background:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem;animation:fadeIn .15s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.cedros-admin__modal{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);box-shadow:0 25px 50px -12px #00000040;max-width:28rem;width:100%;max-height:90vh;overflow:auto;animation:slideUp .2s ease-out}.cedros-admin__modal--lg{max-width:48rem}.cedros-admin__modal--sm{max-width:20rem}@keyframes slideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.cedros-admin__modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--admin-border)}.cedros-admin__modal-title{font-size:1rem;font-weight:600;color:var(--admin-fg);margin:0}.cedros-admin__modal-close{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;background:transparent;color:var(--admin-muted);border-radius:var(--admin-radius);cursor:pointer;transition:background .15s,color .15s}.cedros-admin__modal-close:hover{background:var(--admin-muted-bg);color:var(--admin-fg)}.cedros-admin__modal-body{padding:1.25rem}.cedros-admin__modal-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:1rem 1.25rem;border-top:1px solid var(--admin-border)}.cedros-admin__faq-list{display:flex;flex-direction:column;gap:.75rem}.cedros-admin__faq-item{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem;background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);transition:border-color .15s,box-shadow .15s}.cedros-admin__faq-item:hover{border-color:var(--admin-primary);box-shadow:var(--admin-shadow-sm)}.cedros-admin__faq-item--inactive{opacity:.6}.cedros-admin__faq-content{flex:1;min-width:0}.cedros-admin__faq-question{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:.9375rem;color:var(--admin-fg);margin-bottom:.375rem}.cedros-admin__faq-answer{font-size:.875rem;color:var(--admin-muted);line-height:1.5;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.cedros-admin__faq-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.625rem;margin-top:.625rem}.cedros-admin__faq-keywords,.cedros-admin__faq-visibility{display:flex;flex-wrap:wrap;gap:.375rem}.cedros-admin__badge--chat,.cedros-admin__badge--page{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;font-size:.6875rem;font-weight:500;border-radius:9999px}.cedros-admin__badge--chat{background:#6366f11f;color:#818cf8}.cedros-admin__badge--page{background:#10b9811f;color:#34d399}.cedros-admin__badge--chat svg,.cedros-admin__badge--page svg{width:12px;height:12px}.cedros-admin__checkbox-group{display:flex;flex-wrap:wrap;gap:1rem}.cedros-admin__tag{display:inline-flex;align-items:center;padding:.125rem .5rem;font-size:.75rem;font-weight:500;color:var(--admin-muted);background:var(--admin-muted-bg);border-radius:9999px}.cedros-admin__faq-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.cedros-admin__status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.cedros-admin__status-dot--active{background:var(--admin-success)}.cedros-admin__status-dot--inactive{background:var(--admin-muted)}.cedros-admin__confirm-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#fffffff2;border-radius:var(--admin-radius);z-index:10}.cedros-admin--dark .cedros-admin__confirm-overlay{background:#000000e6}.cedros-admin__confirm-dialog{text-align:center}.cedros-admin__confirm-dialog p{margin-bottom:.75rem;font-weight:500}.cedros-admin__confirm-actions{display:flex;gap:.5rem;justify-content:center}
|
|
1
|
+
.cedros-admin{--admin-bg: hsl(0, 0%, 100%);--admin-fg: hsl(222.2, 84%, 4.9%);--admin-muted: hsl(215.4, 16.3%, 46.9%);--admin-muted-bg: hsl(210, 40%, 96.1%);--admin-accent: hsl(210, 40%, 96.1%);--admin-accent-fg: hsl(222.2, 47.4%, 11.2%);--admin-border: hsl(214.3, 31.8%, 91.4%);--admin-input: hsl(214.3, 31.8%, 91.4%);--admin-ring: hsl(222.2, 84%, 4.9%);--admin-primary: hsl(222.2, 47.4%, 11.2%);--admin-primary-fg: hsl(210, 40%, 98%);--admin-primary-light: hsl(210, 40%, 96.1%);--admin-success: hsl(142, 71%, 45%);--admin-success-light: hsl(142, 76%, 94%);--admin-warning: hsl(38, 92%, 50%);--admin-warning-light: hsl(48, 96%, 89%);--admin-error: hsl(0, 84.2%, 60.2%);--admin-error-light: hsl(0, 86%, 97%);--admin-info: hsl(221.2, 83.2%, 53.3%);--admin-info-light: hsl(214, 100%, 95%);--admin-sidebar-bg: hsl(0, 0%, 100%);--admin-card-bg: hsl(0, 0%, 100%);--admin-radius: .5rem;--admin-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);--admin-shadow: 0 2px 4px 0 rgb(0 0 0 / .1);--admin-shadow-card: 0 1px 2px 0 rgb(0 0 0 / .04), 0 1px 1px -1px rgb(0 0 0 / .08);--admin-table-head: hsl(210, 40%, 98%);--admin-table-row: hsl(0, 0%, 100%);--admin-table-row-hover: hsl(210, 40%, 96.1%);--admin-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--admin-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace}.cedros-admin.cedros-admin--dark{--admin-bg: hsl(222.2, 84%, 4.9%);--admin-fg: hsl(210, 40%, 98%);--admin-muted: hsl(215, 20.2%, 65.1%);--admin-muted-bg: hsl(217.2, 32.6%, 17.5%);--admin-accent: hsl(217.2, 32.6%, 17.5%);--admin-accent-fg: hsl(210, 40%, 98%);--admin-border: hsl(217.2, 32.6%, 17.5%);--admin-input: hsl(217.2, 32.6%, 17.5%);--admin-ring: hsl(212.7, 26.8%, 83.9%);--admin-primary: hsl(210, 40%, 98%);--admin-primary-fg: hsl(222.2, 47.4%, 11.2%);--admin-primary-light: hsl(217.2, 32.6%, 17.5%);--admin-success: hsl(142, 71%, 45%);--admin-success-light: hsl(142, 40%, 15%);--admin-warning: hsl(38, 92%, 50%);--admin-warning-light: hsl(38, 40%, 20%);--admin-error: hsl(0, 62.8%, 30.6%);--admin-error-light: hsl(0, 62.8%, 15%);--admin-info: hsl(217.2, 91.2%, 59.8%);--admin-info-light: hsl(217.2, 32.6%, 17.5%);--admin-sidebar-bg: hsl(222.2, 84%, 4.9%);--admin-card-bg: hsl(222.2, 84%, 4.9%);--admin-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .3);--admin-shadow: 0 2px 4px 0 rgb(0 0 0 / .4);--admin-shadow-card: 0 1px 2px 0 rgb(0 0 0 / .3);--admin-table-head: hsl(217.2, 32.6%, 17.5%);--admin-table-row: hsl(222.2, 84%, 4.9%);--admin-table-row-hover: hsl(217.2, 32.6%, 17.5%)}.cedros-admin__notice-banner{padding:.75rem 1.5rem;margin-bottom:1.5rem;background:#dbeafe;border:1px solid #bfdbfe;border-radius:.5rem;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.875rem;line-height:1.5}.cedros-admin__notice-banner.cedros-admin--dark{background:#3b82f626;border-color:#3b82f64d}.cedros-admin__notice-banner .cedros-admin__notice{max-width:none;margin:0;background:transparent;border:none;padding:0}.cedros-admin__notice-banner .cedros-admin__notice--info{color:#1e40af}.cedros-admin__notice-banner.cedros-admin--dark .cedros-admin__notice--info{color:#93c5fd}.cedros-admin__error-banner{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;margin-bottom:1rem;background:var(--admin-error-light);border:1px solid var(--admin-error);border-radius:var(--admin-radius);color:var(--admin-error);font-size:.875rem;font-weight:500;line-height:1.5}.cedros-admin__error-banner-retry{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;border:1px solid currentColor;border-radius:var(--admin-radius);background:transparent;color:inherit;font-size:.75rem;font-weight:500;cursor:pointer;white-space:nowrap;flex-shrink:0;margin-left:.75rem}.cedros-admin__error-banner-retry:hover{background:var(--admin-error);color:#fff}.cedros-admin.cedros-admin--dark .cedros-admin__error-banner{background:#ef444426;border-color:#ef444466;color:#fca5a5}.cedros-admin.cedros-admin--dark .cedros-admin__error-banner-retry:hover{background:#ef444466;color:#fca5a5}.cedros-admin{display:grid;grid-template-columns:220px 1fr;grid-template-rows:1fr;height:100%;min-height:400px;background:var(--admin-bg);color:var(--admin-fg);font-family:var(--admin-font);font-size:.875rem;line-height:1.5;border:1px solid var(--admin-border);border-radius:var(--admin-radius);overflow:hidden}.cedros-admin--loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:400px}.cedros-admin__loading-text{font-size:.875rem;color:var(--admin-muted)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.cedros-admin__spinner{animation:spin 1s linear infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.cedros-admin__skeleton{display:inline-block;background:linear-gradient(90deg,var(--admin-muted-bg) 25%,var(--admin-border) 50%,var(--admin-muted-bg) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:.25rem}.cedros-admin__skeleton--text{height:1em;width:4rem}.cedros-admin__skeleton--value{height:1.5rem;width:5rem}.cedros-admin__skeleton--lg{height:2rem;width:6rem}.cedros-admin__sidebar{background:var(--admin-sidebar-bg);border-right:1px solid var(--admin-border);display:flex;flex-direction:column;min-height:0}.cedros-admin__sidebar-header{padding:1rem .75rem;border-bottom:1px solid var(--admin-border)}.cedros-admin__logo{display:flex;align-items:center;gap:.5rem;color:var(--admin-fg)}.cedros-admin__logo svg{flex-shrink:0}.cedros-admin__logo-text{font-size:.875rem;font-weight:600;letter-spacing:-.01em}.cedros-admin__nav{flex:1;padding:.5rem;overflow-y:auto}.cedros-admin__nav-group{display:flex;flex-direction:column;gap:.125rem}.cedros-admin__nav-group+.cedros-admin__nav-group{margin-top:1rem;padding-top:.5rem;border-top:1px solid var(--admin-border)}.cedros-admin__nav-label{padding:.5rem .75rem .375rem;font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:var(--admin-muted)}.cedros-admin__nav-label--collapsible{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:none;cursor:pointer;transition:color .15s ease}.cedros-admin__nav-label--collapsible:hover{color:var(--admin-text)}.cedros-admin__nav-label-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;transition:transform .15s ease}.cedros-admin__nav-label-icon svg{width:.625rem;height:.625rem;opacity:.6}.cedros-admin__nav-label-icon--expanded{transform:rotate(90deg)}.cedros-admin__nav-item{display:flex;align-items:center;gap:.625rem;width:100%;padding:.5rem .75rem;border-radius:calc(var(--admin-radius) - 2px);border:none;background:transparent;color:var(--admin-muted);cursor:pointer;font-size:.8125rem;font-weight:500;font-family:inherit;text-align:left;transition:all .15s ease}.cedros-admin__nav-item:hover,.cedros-admin__nav-item--active{background:var(--admin-accent);color:var(--admin-fg)}.cedros-admin__nav-item--active:hover{background:var(--admin-accent)}.cedros-admin__nav-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;flex-shrink:0;opacity:.7}.cedros-admin__nav-item:hover .cedros-admin__nav-icon,.cedros-admin__nav-item--active .cedros-admin__nav-icon{opacity:1}.cedros-admin__nav-text{white-space:nowrap}.cedros-admin__sidebar-footer{padding:.75rem;border-top:1px solid var(--admin-border);display:flex;flex-direction:column;gap:.75rem;margin-top:auto}.cedros-admin__auth-status{display:flex;align-items:center;gap:.625rem;padding:.5rem;border-radius:calc(var(--admin-radius) - 2px);background:var(--admin-accent)}.cedros-admin__auth-avatar{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:calc(var(--admin-radius) - 2px);background:var(--admin-primary);color:var(--admin-primary-fg);flex-shrink:0}.cedros-admin__auth-avatar--connected{background:var(--admin-primary);color:var(--admin-primary-fg)}.cedros-admin__auth-info{display:flex;flex-direction:column;gap:.125rem;min-width:0}.cedros-admin__auth-label{font-size:.8125rem;font-weight:500;color:var(--admin-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cedros-admin__auth-badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.6875rem;color:var(--admin-muted)}.cedros-admin__auth-badge--connected{color:var(--admin-success)}.cedros-admin__auth-badge svg{width:.75rem;height:.75rem}.cedros-admin__server-info{display:flex;flex-direction:column;gap:.125rem}.cedros-admin__server-label{font-size:.6875rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:var(--admin-muted)}.cedros-admin__server-url{font-size:.75rem;font-family:var(--admin-font-mono);color:var(--admin-fg);word-break:break-all}.cedros-admin__main{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--admin-bg)}.cedros-admin__header{padding:1rem 1.5rem;border-bottom:1px solid var(--admin-border);background:var(--admin-card-bg)}.cedros-admin__breadcrumb{display:flex;align-items:center;gap:.25rem;font-size:.875rem}.cedros-admin__breadcrumb-root{color:var(--admin-muted)}.cedros-admin__breadcrumb-sep{color:var(--admin-muted);opacity:.5}.cedros-admin__breadcrumb-current{color:var(--admin-fg);font-weight:500}.cedros-admin__content{flex:1;padding:1.5rem;overflow-y:auto;min-height:0}.cedros-admin__page{display:flex;flex-direction:column;gap:1rem}.cedros-admin__overview{display:flex;flex-direction:column;gap:1.5rem}.cedros-admin__stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.cedros-admin__stat-card{display:flex;flex-direction:column;gap:.25rem;padding:1.125rem 1.25rem;background:var(--admin-bg);border-radius:var(--admin-radius);border:1px solid var(--admin-border);box-shadow:var(--admin-shadow-card)}.cedros-admin__stat-label{font-size:.8125rem;font-weight:500;color:var(--admin-muted)}.cedros-admin__stat-value{font-size:1.5rem;font-weight:700;color:var(--admin-fg);line-height:1}.cedros-admin__stat-value--success{color:var(--admin-success)}.cedros-admin__stat-value--warning{color:var(--admin-warning)}.cedros-admin__stat-value--error{color:var(--admin-error)}.cedros-admin__stat-desc{font-size:.75rem;color:var(--admin-muted)}.cedros-admin__stat-card--revenue,.cedros-admin__stat-card--transactions,.cedros-admin__stat-card--active,.cedros-admin__stat-card--pending{border-color:var(--admin-border)}.cedros-admin__stats-bar{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:.875rem 1rem;background:var(--admin-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);box-shadow:var(--admin-shadow-card)}.cedros-admin__stats-bar-grid{display:flex;flex:1;gap:1.5rem}.cedros-admin__stats-bar-item{display:flex;flex-direction:column;gap:.125rem;padding-right:1.5rem;border-right:1px solid var(--admin-border)}.cedros-admin__stats-bar-item:last-child{border-right:none;padding-right:0}.cedros-admin__stats-bar-label{font-size:.6875rem;font-weight:500;color:var(--admin-muted);text-transform:uppercase;letter-spacing:.06em}.cedros-admin__stats-bar-value{font-size:1.125rem;font-weight:700;color:var(--admin-fg);line-height:1.2}.cedros-admin__stats-bar-value--success{color:var(--admin-success)}.cedros-admin__stats-bar-value--warning{color:var(--admin-warning)}.cedros-admin__stats-bar-value--muted{color:var(--admin-muted)}.cedros-admin__stats-bar-desc{font-size:.6875rem;color:var(--admin-muted)}.cedros-admin__stats-bar-refresh{display:flex;align-items:center;justify-content:center;width:2.125rem;height:2.125rem;padding:0;background:var(--admin-bg);border:1px solid var(--admin-input);border-radius:var(--admin-radius);color:var(--admin-muted);cursor:pointer;transition:background .15s,color .15s}.cedros-admin__stats-bar-refresh:hover:not(:disabled){background:var(--admin-accent);color:var(--admin-fg)}.cedros-admin__stats-bar-refresh:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.cedros-admin__card{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1.25rem}.cedros-admin__card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.cedros-admin__card-title{font-size:.8125rem;font-weight:500;color:var(--admin-muted)}.cedros-admin__card-value{font-size:1.75rem;font-weight:700;color:var(--admin-fg);line-height:1}.cedros-admin__card-value--warning{color:var(--admin-warning)}.cedros-admin__card-desc{margin:0;font-size:.75rem;color:var(--admin-muted)}.cedros-admin__method-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.cedros-admin__method-card{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1.25rem;display:flex;flex-direction:column;gap:.375rem;transition:border-color .15s}.cedros-admin__method-card--stripe,.cedros-admin__method-card--crypto,.cedros-admin__method-card--credits{border-color:var(--admin-border)}.cedros-admin__method-label{font-size:.8125rem;font-weight:500;color:var(--admin-muted)}.cedros-admin__method-value{font-size:1.75rem;font-weight:700;color:var(--admin-fg);line-height:1}.cedros-admin__method-count{font-size:.75rem;color:var(--admin-muted)}.cedros-admin__section{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1.25rem;box-shadow:var(--admin-shadow-card)}.cedros-admin__section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.cedros-admin__section-header-left{display:flex;align-items:center;gap:.75rem}.cedros-admin__section-header-right{display:flex;align-items:center;gap:.5rem}.cedros-admin__section-title{margin:0;font-size:.9375rem;font-weight:600;color:var(--admin-fg)}.cedros-admin__section-badge{display:inline-flex;align-items:center;padding:.25rem .625rem;font-size:.6875rem;font-weight:500;border-radius:var(--admin-radius);text-transform:uppercase;letter-spacing:.025em;background:var(--admin-accent);color:var(--admin-muted)}.cedros-admin__section-badge--success{background:var(--admin-success-light);color:var(--admin-success)}.cedros-admin__refresh-btn{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:1px solid var(--admin-border);border-radius:var(--admin-radius);background:transparent;color:var(--admin-muted);cursor:pointer;transition:background .15s,color .15s,border-color .15s,box-shadow .15s}.cedros-admin__refresh-btn:hover:not(:disabled){background:var(--admin-accent);color:var(--admin-fg)}.cedros-admin__refresh-btn:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__refresh-btn svg{width:1rem;height:1rem}.cedros-admin__notice{padding:.75rem 1rem;border-radius:var(--admin-radius);font-size:.875rem;margin-bottom:1rem;display:flex;align-items:flex-start;gap:.5rem}.cedros-admin__notice--warning{background:var(--admin-warning-light);border:1px solid var(--admin-warning);color:var(--admin-warning)}.cedros-admin__notice--info{background:var(--admin-info-light);border:1px solid var(--admin-info);color:var(--admin-info)}.cedros-admin__notice--success{background:var(--admin-success-light);border:1px solid var(--admin-success);color:var(--admin-success)}.cedros-admin__notice--error{background:var(--admin-error-light);border:1px solid var(--admin-error);color:var(--admin-error)}.cedros-admin__loading{display:flex;align-items:center;gap:.5rem;padding:2rem;color:var(--admin-muted);justify-content:center}.cedros-admin__empty{padding:2rem;text-align:center;color:var(--admin-muted)}.cedros-admin__tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--admin-border);margin-bottom:1rem}.cedros-admin__tab{padding:.75rem 1rem;font-size:.875rem;font-weight:500;color:var(--admin-muted);background:transparent;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .15s,border-color .15s;margin-bottom:-1px}.cedros-admin__tab:hover{color:var(--admin-fg)}.cedros-admin__tab--active{color:var(--admin-fg);border-bottom-color:var(--admin-fg)}.cedros-admin__tabs--line{gap:0;background:transparent}.cedros-admin__tabs--line .cedros-admin__tab{padding:.625rem 1rem;margin-bottom:-1px}.cedros-admin__tab-content{padding-top:1rem}.cedros-admin__page-header{margin-bottom:1.5rem}.cedros-admin__page-title{margin:0 0 .25rem;font-size:1.25rem;font-weight:600;color:var(--admin-fg)}.cedros-admin__page-description{margin:0;font-size:.875rem;color:var(--admin-muted)}.cedros-admin__table-container{overflow-x:auto;border:1px solid var(--admin-border);border-radius:calc(var(--admin-radius) - 2px);background:var(--admin-table-row)}.cedros-admin__table{width:100%;border-collapse:collapse;font-size:.8125rem;background:var(--admin-table-row)}.cedros-admin__table th{padding:.6875rem .75rem;text-align:left;font-weight:500;color:var(--admin-muted);background:var(--admin-table-head);border-bottom:1px solid var(--admin-border);white-space:nowrap;text-transform:uppercase;letter-spacing:.05em;font-size:.6875rem}.cedros-admin__table td{padding:.75rem;border-bottom:1px solid var(--admin-border);vertical-align:middle}.cedros-admin__table tbody tr{transition:background .15s}.cedros-admin__table tbody tr:hover{background:var(--admin-table-row-hover)}.cedros-admin__table tr:last-child td{border-bottom:none}.cedros-admin__table code{font-family:var(--admin-font-mono);font-size:.75rem;background:var(--admin-muted-bg);padding:.125rem .375rem;border-radius:.25rem}.cedros-admin__table-sort{display:inline-flex;align-items:center;gap:.375rem;padding:0;border:none;background:transparent;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}.cedros-admin__table-sort:hover{color:var(--admin-fg)}.cedros-admin__sort-icon{display:inline-flex;align-items:center;opacity:.7}.cedros-admin__sort-icon svg{width:.875rem;height:.875rem}.cedros-admin__sort-icon--idle{opacity:.35}.cedros-admin__badge{display:inline-flex;align-items:center;padding:.125rem .5rem;font-size:.6875rem;font-weight:500;border-radius:9999px;text-transform:uppercase;letter-spacing:.025em}.cedros-admin__badge--success,.cedros-admin__badge--completed{background:var(--admin-success-light);color:var(--admin-success)}.cedros-admin__badge--muted{background:var(--admin-muted-bg);color:var(--admin-muted)}.cedros-admin__badge--pending,.cedros-admin__badge--processing{background:var(--admin-warning-light);color:var(--admin-warning)}.cedros-admin__badge--failed{background:var(--admin-error-light);color:var(--admin-error)}.cedros-admin__badge--stripe{background:#6366f11f;color:#818cf8}.cedros-admin__badge--x402{background:#8b5cf61f;color:#a78bfa}.cedros-admin__badge--credits{background:#10b9811f;color:#34d399}.cedros-admin__button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;height:2.25rem;padding:0 .875rem;font-size:.875rem;font-weight:500;font-family:inherit;border-radius:var(--admin-radius);border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease,opacity .15s ease;white-space:nowrap;outline:none;will-change:transform}.cedros-admin__button:focus-visible{outline:2px solid var(--admin-ring);outline-offset:2px}.cedros-admin__button:active:not(:disabled){transform:scale(.98)}.cedros-admin__button:disabled{pointer-events:none;opacity:.5}.cedros-admin__button--primary{background-color:var(--admin-primary);color:var(--admin-primary-fg);box-shadow:var(--admin-shadow-sm);border-color:var(--admin-primary)}.cedros-admin__button--primary:hover:not(:disabled){background-color:color-mix(in srgb,var(--admin-primary) 85%,white);box-shadow:var(--admin-shadow)}.cedros-admin__button--ghost{background:transparent;color:var(--admin-fg);border-color:transparent}.cedros-admin__button--ghost:hover:not(:disabled){background:var(--admin-accent);color:var(--admin-accent-fg)}.cedros-admin__button--outline{background:transparent;color:var(--admin-fg);border-color:var(--admin-input)}.cedros-admin__button--outline:hover:not(:disabled){background:var(--admin-accent);color:var(--admin-accent-fg)}.cedros-admin__button--destructive{background:var(--admin-error);color:var(--admin-primary-fg);border-color:var(--admin-error)}.cedros-admin__button--destructive:hover:not(:disabled){background:color-mix(in srgb,var(--admin-error) 85%,white);border-color:var(--admin-error)}.cedros-admin__button--secondary{background:var(--admin-accent);color:var(--admin-accent-fg);border-color:var(--admin-border)}.cedros-admin__button--secondary:hover:not(:disabled){background:color-mix(in srgb,var(--admin-accent) 80%,white)}.cedros-admin__button--danger{color:var(--admin-error)}.cedros-admin__button--action{padding:0 1rem;font-weight:600;letter-spacing:.01em}.cedros-admin__button--action svg{width:.875rem;height:.875rem}.cedros-admin__button--icon{width:2.25rem;padding:0}.cedros-admin__dropdown{position:relative;display:inline-block}.cedros-admin__dropdown-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:.5rem;min-width:120px;height:2.25rem;padding:0 .75rem;font-size:.875rem;font-family:inherit;font-weight:500;border:1px solid var(--admin-border);border-radius:var(--admin-radius);background-color:var(--admin-bg);color:var(--admin-fg);cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.cedros-admin__dropdown-trigger:hover{border-color:var(--admin-ring);background-color:var(--admin-bg)}.cedros-admin__dropdown-trigger:focus{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__dropdown-chevron{display:flex;align-items:center;transition:transform .15s ease}.cedros-admin__dropdown-chevron svg{width:.875rem;height:.875rem;opacity:.6}.cedros-admin__dropdown-chevron--open{transform:rotate(180deg)}.cedros-admin__dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;min-width:100%;padding:.25rem;background:var(--admin-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);box-shadow:0 4px 12px #0000001a;z-index:50;animation:cedros-dropdown-enter .15s ease}@keyframes cedros-dropdown-enter{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.cedros-admin__dropdown-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.5rem .75rem;font-size:.875rem;font-family:inherit;color:var(--admin-fg);background:transparent;border:none;border-radius:calc(var(--admin-radius) - 2px);cursor:pointer;text-align:left;transition:background-color .1s ease}.cedros-admin__dropdown-item:hover{background:var(--admin-muted-bg)}.cedros-admin__dropdown-item--selected{font-weight:500}.cedros-admin__dropdown-check{display:flex;align-items:center;color:var(--admin-primary)}.cedros-admin__dropdown-check svg{width:1rem;height:1rem}.cedros-admin__dropdown--form{display:block;width:100%}.cedros-admin__dropdown-trigger--form{width:100%;min-width:0;background-color:var(--admin-bg);border-color:var(--admin-input);font-weight:400}.cedros-admin__dropdown-trigger--form:hover{background-color:var(--admin-bg)}.cedros-admin__dropdown-menu--form{left:0;right:auto;width:100%}.cedros-admin__dropdown-trigger:disabled,.cedros-admin__dropdown-item:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__select{min-width:160px;height:2.25rem;padding:0 2.25rem 0 .75rem;font-size:.875rem;font-family:inherit;border:1px solid var(--admin-border);border-radius:var(--admin-radius);background-color:var(--admin-muted-bg);color:var(--admin-fg);cursor:pointer;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;background-size:1rem;transition:border-color .15s ease,box-shadow .15s ease}.cedros-admin__select:focus{outline:none;border-color:var(--admin-ring);background-color:var(--admin-bg);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__select:hover{border-color:var(--admin-ring);background-color:var(--admin-bg)}.cedros-admin__select:disabled{opacity:.5;cursor:not-allowed}.cedros-admin--dark .cedros-admin__select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}.cedros-admin__settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:1rem}.cedros-admin__settings-card{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1rem}.cedros-admin__settings-card h4{margin:0 0 .75rem;font-size:.875rem;font-weight:600}.cedros-admin__settings-card p{margin:.25rem 0;font-size:.8125rem;color:var(--admin-muted)}.cedros-admin__settings-card code{font-family:var(--admin-font-mono);font-size:.75rem;background:var(--admin-bg);padding:.125rem .375rem;border-radius:.25rem}.cedros-admin__checkbox{display:flex;align-items:center;gap:.5rem;margin:.5rem 0;font-size:.8125rem;cursor:pointer}.cedros-admin__checkbox input{width:1rem;height:1rem;accent-color:var(--admin-primary)}.cedros-admin__toggle{display:inline-flex;align-items:center;gap:.75rem;cursor:pointer;position:relative}.cedros-admin__toggle-input{position:absolute;opacity:0;width:1px;height:1px}.cedros-admin__toggle-track{position:relative;width:38px;height:22px;background:var(--admin-muted-bg);border:1px solid var(--admin-border);border-radius:999px;transition:background .15s ease,border-color .15s ease}.cedros-admin__toggle-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--admin-bg);box-shadow:0 1px 2px #0003;transition:transform .15s ease}.cedros-admin__toggle-input:checked+.cedros-admin__toggle-track{background:var(--admin-primary);border-color:var(--admin-primary)}.cedros-admin__toggle-input:checked+.cedros-admin__toggle-track .cedros-admin__toggle-thumb{transform:translate(16px)}.cedros-admin__toggle-label{font-size:.875rem;color:var(--admin-fg);font-weight:500}.cedros-admin__toggle-input:focus-visible+.cedros-admin__toggle-track{box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__autosave-indicator{display:inline-flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--admin-muted)}.cedros-admin__autosave-indicator--saved{color:var(--admin-success)}.cedros-admin__autosave-indicator--error{color:var(--admin-error)}.cedros-admin__settings-actions{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--admin-border)}.cedros-admin__text-muted{color:var(--admin-muted);font-size:.875rem;margin:0 0 1rem}@media(max-width:768px){.cedros-admin{grid-template-columns:1fr;grid-template-rows:auto 1fr}.cedros-admin__sidebar{border-right:none;border-bottom:1px solid var(--admin-border)}.cedros-admin__sidebar-header{display:none}.cedros-admin__nav{display:flex;overflow-x:auto;padding:.5rem}.cedros-admin__nav-group{flex-direction:row;gap:.25rem}.cedros-admin__nav-label{display:none}.cedros-admin__nav-item{flex-shrink:0;padding:.5rem .625rem}.cedros-admin__nav-text{display:none}.cedros-admin__nav-icon{width:1.25rem;height:1.25rem}.cedros-admin__sidebar-footer{display:none}.cedros-admin__cards,.cedros-admin__method-grid{grid-template-columns:1fr}.cedros-admin__content{padding:1rem}}.cedros-admin__settings{display:flex;flex-direction:column;gap:1rem}.cedros-admin__settings-sections{display:flex;flex-direction:column;gap:1.5rem}.cedros-admin__settings-section{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);padding:1.25rem}.cedros-admin__settings-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.cedros-admin__settings-section-title-wrap{display:flex;gap:.75rem}.cedros-admin__settings-section-icon{font-size:1.5rem;line-height:1}.cedros-admin__settings-section-title{margin:0 0 .25rem;font-size:1rem;font-weight:600;color:var(--admin-fg)}.cedros-admin__settings-section-description{margin:0;font-size:.8125rem;color:var(--admin-muted);line-height:1.5}.cedros-admin__settings-section-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.cedros-admin__settings-section-meta{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.75rem;color:var(--admin-muted);margin-bottom:1rem}.cedros-admin__settings-meta-item{display:inline-flex;align-items:center;gap:.25rem}.cedros-admin__settings-editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--admin-border)}.cedros-admin__settings-editor-header h3{margin:0;font-size:1rem}.cedros-admin__settings-history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.cedros-admin__settings-history-header h3{margin:0;font-size:1rem}.cedros-admin__settings-timeline{display:flex;flex-direction:column;gap:0}.cedros-admin__settings-timeline-item{display:flex;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--admin-border)}.cedros-admin__settings-timeline-item:last-child{border-bottom:none}.cedros-admin__settings-timeline-dot{width:8px;height:8px;background:var(--admin-primary);border-radius:50%;margin-top:.375rem;flex-shrink:0}.cedros-admin__settings-timeline-content{flex:1}.cedros-admin__settings-timeline-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.cedros-admin__settings-timeline-meta{font-size:.75rem;color:var(--admin-muted)}.cedros-admin__config-editor,.cedros-admin__config-fields{display:flex;flex-direction:column;gap:1rem}.cedros-admin__config-field{display:flex;flex-direction:column}.cedros-admin__config-actions{display:flex;justify-content:flex-end;gap:.5rem;padding-top:1rem;border-top:1px solid var(--admin-border)}.cedros-admin__field{display:flex;flex-direction:column;gap:.375rem}.cedros-admin__field-label{font-size:.8125rem;font-weight:500;color:var(--admin-fg)}.cedros-admin__field-secret{font-size:.6875rem;color:var(--admin-muted);font-weight:400}.cedros-admin__input{height:2.25rem;padding:.5rem .75rem;font-size:.875rem;font-family:inherit;border:1px solid var(--admin-input);border-radius:var(--admin-radius);background:var(--admin-bg);color:var(--admin-fg);transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;box-shadow:none}.cedros-admin__input::-moz-placeholder{color:var(--admin-muted)}.cedros-admin__input::placeholder{color:var(--admin-muted)}.cedros-admin__input:focus{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__input:focus-visible{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__input:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__input-group{display:flex;gap:.5rem}.cedros-admin__input-group .cedros-admin__input{flex:1}.cedros-admin__field-unit{color:var(--admin-muted);font-weight:400;font-size:.75rem}.cedros-admin__textarea{padding:.5rem .75rem;font-size:.875rem;font-family:inherit;border:1px solid var(--admin-input);border-radius:var(--admin-radius);background:var(--admin-bg);color:var(--admin-fg);resize:vertical;min-height:60px;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;box-shadow:none}.cedros-admin__textarea::-moz-placeholder{color:var(--admin-muted)}.cedros-admin__textarea::placeholder{color:var(--admin-muted)}.cedros-admin__textarea--mono{font-family:var(--admin-font-mono);font-size:.75rem}.cedros-admin__textarea:focus{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__textarea:focus-visible{outline:none;border-color:var(--admin-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--admin-ring) 15%,transparent)}.cedros-admin__validation{padding:.75rem;border-radius:var(--admin-radius);font-size:.8125rem}.cedros-admin__validation--success{background:var(--admin-success-light);border:1px solid var(--admin-success);color:var(--admin-success)}.cedros-admin__validation--error{background:var(--admin-error-light);border:1px solid var(--admin-error);color:var(--admin-error)}.cedros-admin__validation ul{margin:.25rem 0 0;padding-left:1.25rem}.cedros-admin__validation-warnings{margin-top:.5rem;color:var(--admin-warning)}.cedros-admin__button--sm{height:2rem;padding:0 .75rem;font-size:.75rem;border-radius:calc(var(--admin-radius) - 2px)}.cedros-admin__badge--create{background:var(--admin-success-light);color:var(--admin-success)}.cedros-admin__badge--update{background:var(--admin-info-light);color:var(--admin-info)}.cedros-admin__badge--delete{background:var(--admin-error-light);color:var(--admin-error)}.cedros-admin__add-form{padding:1rem;margin-bottom:1rem;background:var(--admin-bg);border-radius:var(--admin-radius);border:1px dashed var(--admin-border)}.cedros-admin__form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem}.cedros-admin__form-row:last-child{margin-bottom:0}.cedros-admin__form-actions{display:flex;justify-content:flex-end;gap:.5rem;padding-top:.5rem}@media(max-width:768px){.cedros-admin__settings-section-header{flex-direction:column;align-items:flex-start}.cedros-admin__settings-section-actions{width:100%;justify-content:flex-start}}.cedros-admin__modal-overlay{position:fixed;inset:0;z-index:1000;background:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem;animation:fadeIn .15s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.cedros-admin__modal{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);box-shadow:0 25px 50px -12px #00000040;max-width:28rem;width:100%;max-height:90vh;overflow:auto;animation:slideUp .2s ease-out}.cedros-admin__modal--lg{max-width:48rem}.cedros-admin__modal--sm{max-width:20rem}@keyframes slideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.cedros-admin__modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--admin-border)}.cedros-admin__modal-title{font-size:1rem;font-weight:600;color:var(--admin-fg);margin:0}.cedros-admin__modal-close{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;background:transparent;color:var(--admin-muted);border-radius:var(--admin-radius);cursor:pointer;transition:background .15s,color .15s}.cedros-admin__modal-close:hover{background:var(--admin-muted-bg);color:var(--admin-fg)}.cedros-admin__modal-body{padding:1.25rem}.cedros-admin__modal-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:1rem 1.25rem;border-top:1px solid var(--admin-border)}.cedros-admin__faq-list{display:flex;flex-direction:column;gap:.75rem}.cedros-admin__faq-item{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem;background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);transition:border-color .15s,box-shadow .15s}.cedros-admin__faq-item:hover{border-color:var(--admin-primary);box-shadow:var(--admin-shadow-sm)}.cedros-admin__faq-item--inactive{opacity:.6}.cedros-admin__faq-content{flex:1;min-width:0}.cedros-admin__faq-question{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:.9375rem;color:var(--admin-fg);margin-bottom:.375rem}.cedros-admin__faq-answer{font-size:.875rem;color:var(--admin-muted);line-height:1.5;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.cedros-admin__faq-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.625rem;margin-top:.625rem}.cedros-admin__faq-keywords,.cedros-admin__faq-visibility{display:flex;flex-wrap:wrap;gap:.375rem}.cedros-admin__badge--chat,.cedros-admin__badge--page{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;font-size:.6875rem;font-weight:500;border-radius:9999px}.cedros-admin__badge--chat{background:#6366f11f;color:#818cf8}.cedros-admin__badge--page{background:#10b9811f;color:#34d399}.cedros-admin__badge--chat svg,.cedros-admin__badge--page svg{width:12px;height:12px}.cedros-admin__checkbox-group{display:flex;flex-wrap:wrap;gap:1rem}.cedros-admin__tag{display:inline-flex;align-items:center;padding:.125rem .5rem;font-size:.75rem;font-weight:500;color:var(--admin-muted);background:var(--admin-muted-bg);border-radius:9999px}.cedros-admin__faq-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.cedros-admin__status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.cedros-admin__status-dot--active{background:var(--admin-success)}.cedros-admin__status-dot--inactive{background:var(--admin-muted)}.cedros-admin__confirm-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#fffffff2;border-radius:var(--admin-radius);z-index:10}.cedros-admin--dark .cedros-admin__confirm-overlay{background:#000000e6}.cedros-admin__confirm-dialog{text-align:center}.cedros-admin__confirm-dialog p{margin-bottom:.75rem;font-weight:500}.cedros-admin__confirm-actions{display:flex;gap:.5rem;justify-content:center}.cedros-theme-root{--cedros-surface-bg: transparent;--cedros-surface-text: #111827;--cedros-surface-border: transparent;--cedros-stripe-bg: #635bff;--cedros-stripe-text: #ffffff;--cedros-stripe-shadow: rgba(79, 70, 229, .25);--cedros-crypto-bg: #9945ff;--cedros-crypto-text: #ffffff;--cedros-crypto-shadow: rgba(153, 69, 255, .25);--cedros-credits-bg: #059669;--cedros-credits-text: #ffffff;--cedros-credits-shadow: rgba(5, 150, 105, .25);--cedros-error-bg: #fee2e2;--cedros-error-border: #fca5a5;--cedros-error-text: #b91c1c;--cedros-success-bg: #dcfce7;--cedros-success-border: #86efac;--cedros-success-text: #166534;--cedros-modal-overlay: rgba(0, 0, 0, .5);--cedros-modal-bg: #ffffff;--cedros-modal-border: rgba(15, 23, 42, .08);--cedros-button-radius: 8px;--cedros-button-padding: .75rem 1.5rem;--cedros-button-font-size: 1rem;--cedros-button-font-weight: 600}.cedros-theme.cedros-theme--dark{--cedros-surface-bg: transparent;--cedros-surface-text: #f9fafb;--cedros-surface-border: transparent;--cedros-stripe-bg: #4f46e5;--cedros-stripe-text: #f5f3ff;--cedros-stripe-shadow: rgba(99, 102, 241, .35);--cedros-crypto-bg: #7c3aed;--cedros-crypto-text: #ecfeff;--cedros-crypto-shadow: rgba(124, 58, 237, .35);--cedros-credits-bg: #047857;--cedros-credits-text: #ecfdf5;--cedros-credits-shadow: rgba(4, 120, 87, .35);--cedros-error-bg: #7f1d1d;--cedros-error-border: #fca5a5;--cedros-error-text: #fecaca;--cedros-success-bg: #14532d;--cedros-success-border: #4ade80;--cedros-success-text: #bbf7d0;--cedros-modal-overlay: rgba(0, 0, 0, .75);--cedros-modal-bg: #1f2937;--cedros-modal-border: rgba(148, 163, 184, .25)}.cedros-theme__pay{display:flex;flex-direction:column;gap:1rem;max-width:400px;background:var(--cedros-surface-bg);color:var(--cedros-surface-text);border:none;box-sizing:border-box}.cedros-theme__pay-content{display:flex;flex-direction:column;gap:.75rem}.cedros-theme__pay-content--horizontal{flex-direction:row;gap:.75rem}.cedros-theme__pay-content--horizontal .cedros-theme__button{flex:1;min-width:0}.cedros-theme__pay-content--vertical{flex-direction:column}.cedros-theme__button{padding:var(--cedros-button-padding);font-size:var(--cedros-button-font-size);font-weight:var(--cedros-button-font-weight);border:none;border-radius:var(--cedros-button-radius);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;width:100%;text-align:center}.cedros-theme__button:hover:not(:disabled){transform:translateY(-1px)}.cedros-theme__button:disabled{opacity:.6;cursor:not-allowed}.cedros-theme__stripe{background:var(--cedros-stripe-bg);color:var(--cedros-stripe-text);box-shadow:0 4px 12px var(--cedros-stripe-shadow)}.cedros-theme__stripe:hover:not(:disabled){box-shadow:0 8px 18px var(--cedros-stripe-shadow)}.cedros-theme__crypto{background:var(--cedros-crypto-bg);color:var(--cedros-crypto-text);box-shadow:0 4px 12px var(--cedros-crypto-shadow)}.cedros-theme__crypto:hover:not(:disabled){box-shadow:0 8px 18px var(--cedros-crypto-shadow)}.cedros-theme__credits{background:var(--cedros-credits-bg);color:var(--cedros-credits-text);box-shadow:0 4px 12px var(--cedros-credits-shadow)}.cedros-theme__credits:hover:not(:disabled){box-shadow:0 8px 18px var(--cedros-credits-shadow)}.cedros-theme__error{padding:.75rem;background-color:var(--cedros-error-bg);border:1px solid var(--cedros-error-border);border-radius:8px;color:var(--cedros-error-text);font-size:.875rem;margin-top:.5rem}.cedros-theme__success{padding:.75rem;background-color:var(--cedros-success-bg);border:1px solid var(--cedros-success-border);border-radius:8px;color:var(--cedros-success-text);font-size:.875rem;margin-top:.5rem}.cedros-theme__notice{padding:.75rem;background-color:#0e74901f;border:1px solid rgba(14,116,144,.3);border-radius:8px;color:var(--cedros-surface-text);font-size:.875rem;margin-bottom:.75rem}.cedros-theme--dark .cedros-theme__notice{background-color:#0e749033;border-color:#0e749066}@media(max-width:640px){.cedros-theme__pay{max-width:100%}.cedros-theme__button{font-size:.875rem;padding:.625rem 1.25rem}.cedros-theme__pay-content--horizontal{flex-direction:column}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const e=require("./index-S3b2N8tp.js");exports.CouponsSection=e.CouponsSection;exports.ProductsSection=e.ProductsSection;exports.RefundsSection=e.RefundsSection;exports.SettingsSection=e.SettingsSection;exports.TransactionsSection=e.TransactionsSection;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Z as i, X as e, _ as a, $ as c, Y as r } from "./index-iIxY1o71.mjs";
|
|
4
4
|
export {
|
|
5
5
|
i as CouponsSection,
|
|
6
6
|
e as ProductsSection,
|
|
7
7
|
a as RefundsSection,
|
|
8
8
|
c as SettingsSection,
|
|
9
|
-
|
|
9
|
+
r as TransactionsSection
|
|
10
10
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var u=Object.create;var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var b=(a,e,l,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!d.call(a,t)&&t!==l&&s(a,t,{get:()=>e[t],enumerable:!(o=c(e,t))||o.enumerable});return a};var f=(a,e,l)=>(l=a!=null?u(y(a)):{},b(e||!a||!a.__esModule?s(l,"default",{value:a,enumerable:!0}):l,a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let n=!1,r=!1;async function h(){if(n)return r?{available:!0}:{available:!1,error:i()};try{return await import("@solana/web3.js"),n=!0,r=!0,{available:!0}}catch{return n=!0,r=!1,{available:!1,error:i()}}}function i(){return`Solana dependencies not installed. To use crypto payments, install them with:
|
|
2
|
+
|
|
3
|
+
npm install @solana/web3.js @solana/spl-token @solana/wallet-adapter-react @solana/wallet-adapter-react-ui @solana/wallet-adapter-wallets @solana/wallet-adapter-base
|
|
4
|
+
|
|
5
|
+
Or if you only need Stripe payments, hide the crypto button with:
|
|
6
|
+
<CedrosPay showCrypto={false} />`}exports.checkSolanaAvailability=h;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
let a = !1, e = !1;
|
|
2
|
+
async function t() {
|
|
3
|
+
if (a)
|
|
4
|
+
return e ? { available: !0 } : {
|
|
5
|
+
available: !1,
|
|
6
|
+
error: l()
|
|
7
|
+
};
|
|
8
|
+
try {
|
|
9
|
+
return await import("@solana/web3.js"), a = !0, e = !0, { available: !0 };
|
|
10
|
+
} catch {
|
|
11
|
+
return a = !0, e = !1, {
|
|
12
|
+
available: !1,
|
|
13
|
+
error: l()
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function l() {
|
|
18
|
+
return `Solana dependencies not installed. To use crypto payments, install them with:
|
|
19
|
+
|
|
20
|
+
npm install @solana/web3.js @solana/spl-token @solana/wallet-adapter-react @solana/wallet-adapter-react-ui @solana/wallet-adapter-wallets @solana/wallet-adapter-base
|
|
21
|
+
|
|
22
|
+
Or if you only need Stripe payments, hide the crypto button with:
|
|
23
|
+
<CedrosPay showCrypto={false} />`;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
t as checkSolanaAvailability
|
|
27
|
+
};
|
package/dist/stripe-only.d.ts
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @cedros/pay-react/stripe-only
|
|
3
3
|
*
|
|
4
|
-
* Stripe-only
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Use this entry point if you only need Stripe payments.
|
|
4
|
+
* Stripe-only entry point (no Solana dependencies).
|
|
5
|
+
* The default entry point is now also Stripe-safe,
|
|
6
|
+
* so this re-exports everything from the default entry.
|
|
8
7
|
*
|
|
9
8
|
* @example
|
|
10
9
|
* ```typescript
|
|
11
|
-
* // In your package.json or import statement
|
|
12
10
|
* import { CedrosProvider, StripeButton } from '@cedros/pay-react/stripe-only';
|
|
13
11
|
* ```
|
|
14
12
|
*/
|
|
15
|
-
export
|
|
16
|
-
export { StripeButton } from './components/StripeButton';
|
|
17
|
-
export { PaymentModal } from './components/PaymentModal';
|
|
18
|
-
export type { PaymentModalProps } from './components/PaymentModal';
|
|
19
|
-
export { ProductPrice, PaymentMethodBadge } from './components/ProductPrice';
|
|
20
|
-
export type { PaymentMethod } from './components/ProductPrice';
|
|
21
|
-
export { useStripeCheckout } from './hooks/useStripeCheckout';
|
|
22
|
-
export { usePaymentMode } from './hooks/usePaymentMode';
|
|
23
|
-
export type { CedrosConfig, PaymentStatus, Currency, StripeSessionRequest, StripeSessionResponse, PaymentResult, PaymentMetadata, PaymentState, CedrosThemeMode, CedrosThemeTokens, Product, CartItem, PaymentErrorCode, PaymentError, ErrorResponse, } from './types';
|
|
24
|
-
export { ERROR_CATEGORIES } from './types/errors';
|
|
25
|
-
export type { IStripeManager } from './managers/StripeManager';
|
|
26
|
-
export type { IRouteDiscoveryManager } from './managers/RouteDiscoveryManager';
|
|
27
|
-
export { validateConfig, parseCouponCodes, formatCouponCodes, calculateDiscountPercentage, createRateLimiter, RATE_LIMITER_PRESETS, type RateLimiter, type RateLimiterConfig, } from './utils';
|
|
28
|
-
export { LogLevel, Logger, getLogger, createLogger, type LoggerConfig, } from './utils/logger';
|
|
29
|
-
export { CEDROS_EVENTS, emitPaymentStart, emitPaymentProcessing, emitPaymentSuccess, emitPaymentError, type PaymentStartDetail, type PaymentProcessingDetail, type PaymentSuccessDetail, type PaymentErrorDetail, } from './utils';
|
|
30
|
-
export { isRetryableError, getUserErrorMessage, } from './utils';
|
|
13
|
+
export * from './index';
|
|
31
14
|
//# sourceMappingURL=stripe-only.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-only.d.ts","sourceRoot":"","sources":["../src/stripe-only.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"stripe-only.d.ts","sourceRoot":"","sources":["../src/stripe-only.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,SAAS,CAAC"}
|
package/dist/stripe-only.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CedrosContext-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-S3b2N8tp.js");require("react/jsx-runtime");require("react");const t=require("./CedrosContext-C2v_s8cc.js");require("@solana/web3.js");require("./index-WcOlBYZJ.js");require("@solana/wallet-adapter-react");exports.CEDROS_EVENTS=e.CEDROS_EVENTS;exports.CSP_PRESETS=e.CSP_PRESETS;exports.CedrosPay=e.CedrosPay;exports.CedrosPayAdminDashboard=e.CedrosPayAdminDashboard;exports.CreditsButton=e.CreditsButton;exports.CreditsSubscribeButton=e.CreditsSubscribeButton;exports.ERROR_CATEGORIES=e.ERROR_CATEGORIES;exports.PaymentMethodBadge=e.PaymentMethodBadge;exports.PaymentModal=e.PaymentModal;exports.ProductPrice=e.ProductPrice;exports.PurchaseButton=e.PurchaseButton;exports.RPC_PROVIDERS=e.RPC_PROVIDERS;exports.SECURITY_RECOMMENDATIONS=e.SECURITY_RECOMMENDATIONS;exports.StripeButton=e.StripeButton;exports.SubscribeButton=e.SubscribeButton;exports.SubscriptionManagementPanel=e.SubscriptionManagementPanel;exports.calculateDiscountPercentage=e.calculateDiscountPercentage;exports.cedrosPayPlugin=e.cedrosPayPlugin;exports.createTranslator=e.createTranslator;exports.detectLocale=e.detectLocale;exports.ecommerce=e.index;exports.emitPaymentError=e.emitPaymentError;exports.emitPaymentProcessing=e.emitPaymentProcessing;exports.emitPaymentStart=e.emitPaymentStart;exports.emitPaymentSuccess=e.emitPaymentSuccess;exports.emitWalletConnect=e.emitWalletConnect;exports.emitWalletConnected=e.emitWalletConnected;exports.emitWalletError=e.emitWalletError;exports.formatCSP=e.formatCSP;exports.formatCouponCodes=e.formatCouponCodes;exports.generateCSP=e.generateCSP;exports.generateCSPDirectives=e.generateCSPDirectives;exports.getAvailableLocales=e.getAvailableLocales;exports.getLocalizedError=e.getLocalizedError;exports.getUserErrorMessage=e.getUserErrorMessage;exports.isRetryableError=e.isRetryableError;exports.loadLocale=e.loadLocale;exports.logSecurityReport=e.logSecurityReport;exports.parseCouponCodes=e.parseCouponCodes;exports.stackCheckoutCoupons=e.stackCheckoutCoupons;exports.useCreditsPayment=e.useCreditsPayment;exports.useCreditsSubscription=e.useCreditsSubscription;exports.useLocalizedError=e.useLocalizedError;exports.usePaymentMode=e.usePaymentMode;exports.useStripeCheckout=e.useStripeCheckout;exports.useSubscription=e.useSubscription;exports.useSubscriptionManagement=e.useSubscriptionManagement;exports.useTranslation=e.useTranslation;exports.validateSecurity=e.validateSecurity;exports.CIRCUIT_BREAKER_PRESETS=t.CIRCUIT_BREAKER_PRESETS;exports.CedrosProvider=t.CedrosProvider;exports.CircuitBreakerOpenError=t.CircuitBreakerOpenError;exports.CircuitState=t.CircuitState;exports.LogLevel=t.LogLevel;exports.Logger=t.Logger;exports.RATE_LIMITER_PRESETS=t.RATE_LIMITER_PRESETS;exports.RETRY_PRESETS=t.RETRY_PRESETS;exports.createCircuitBreaker=t.createCircuitBreaker;exports.createLogger=t.createLogger;exports.createRateLimiter=t.createRateLimiter;exports.getLogger=t.getLogger;exports.retryWithBackoff=t.retryWithBackoff;exports.useCedrosContext=t.useCedrosContext;exports.useCedrosTheme=t.useCedrosTheme;exports.validateConfig=t.validateConfig;
|