@cedros/pay-react 1.1.30 → 1.1.31

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.
Files changed (129) hide show
  1. package/README.md +53 -30
  2. package/dist/{AISettingsSection-C0zqPbd6.js → AISettingsSection-B12x5sV5.js} +2 -2
  3. package/dist/{AISettingsSection-BMh3hAb5.mjs → AISettingsSection-DXWDF4Cf.mjs} +4 -4
  4. package/dist/AutosaveIndicator-CJdkhZis.js +1 -0
  5. package/dist/{AutosaveIndicator-3ctAnz8Y.mjs → AutosaveIndicator-D966vOrP.mjs} +1 -1
  6. package/dist/CedrosContext-3Dz7_9Ct.js +3 -0
  7. package/dist/{CedrosContext-5Gjveoba.mjs → CedrosContext-DQc_k5PG.mjs} +430 -314
  8. package/dist/ChatLogsSection-CH37u0nX.js +1 -0
  9. package/dist/{ChatLogsSection-BtJixYAp.mjs → ChatLogsSection-DR7mpuQS.mjs} +2 -2
  10. package/dist/{ComplianceSection-BMnb1p4w.mjs → ComplianceSection-C61_Hf-X.mjs} +3 -3
  11. package/dist/ComplianceSection-DS4e2IBp.js +1 -0
  12. package/dist/CryptoButton-BQceZhbn.js +1 -0
  13. package/dist/{CryptoButton-Cl2kZbOP.mjs → CryptoButton-BuO_RZLj.mjs} +4 -5
  14. package/dist/CustomersSection-Bzs9Qon3.js +1 -0
  15. package/dist/{CustomersSection-dmwoBhcf.mjs → CustomersSection-CWWvusxs.mjs} +2 -2
  16. package/dist/DisputesSection-ClcYIHga.js +1 -0
  17. package/dist/{DisputesSection-CHyLne76.mjs → DisputesSection-D8rcS5Vs.mjs} +2 -2
  18. package/dist/{Dropdown-BRSZlhik.mjs → Dropdown-0y3S40Xf.mjs} +1 -1
  19. package/dist/Dropdown-BuKiVR_L.js +1 -0
  20. package/dist/{ErrorBanner-lZJhCmDX.mjs → ErrorBanner-DAjYj6Dx.mjs} +1 -1
  21. package/dist/ErrorBanner-DxrRVqwe.js +1 -0
  22. package/dist/FAQSection-0UnN2BZs.js +1 -0
  23. package/dist/{FAQSection-Di2xE9Sm.mjs → FAQSection-Dck0NM-A.mjs} +3 -3
  24. package/dist/{ImagesSection-D63PEjR6.mjs → ImagesSection-Bn9GrRRa.mjs} +2 -2
  25. package/dist/ImagesSection-CSwBHvNl.js +1 -0
  26. package/dist/{InventorySection-Dp5Yu4TA.mjs → InventorySection-Dytfmtn8.mjs} +2 -2
  27. package/dist/InventorySection-ymxaMcIg.js +1 -0
  28. package/dist/{MessagingSection-BLCnCpEv.mjs → MessagingSection-CHFbSxJL.mjs} +3 -3
  29. package/dist/MessagingSection-Dtfv0DvU.js +1 -0
  30. package/dist/OrdersSection-BuzTs9XG.js +1 -0
  31. package/dist/{OrdersSection-Bd56F3cj.mjs → OrdersSection-vYNuVF5X.mjs} +2 -2
  32. package/dist/{PaymentSettingsSection-B5J56VAk.js → PaymentSettingsSection-BOaW8lLv.js} +1 -1
  33. package/dist/{PaymentSettingsSection-52iw47Su.mjs → PaymentSettingsSection-BqdGrXen.mjs} +3 -3
  34. package/dist/{ReturnsSection-DUVeKrCd.mjs → ReturnsSection-CRzhXKtI.mjs} +2 -2
  35. package/dist/ReturnsSection-i5W_3so1.js +1 -0
  36. package/dist/{SettingsSection-vK9WIwXE.mjs → SettingsSection-6o3d8DrH.mjs} +1 -1
  37. package/dist/{SettingsSection-DKkHykaC.js → SettingsSection-CIhO51Zj.js} +1 -1
  38. package/dist/ShippingSection-BUzPW1AG.js +1 -0
  39. package/dist/{ShippingSection-CZRrXrlh.mjs → ShippingSection-CbNzGyCP.mjs} +2 -2
  40. package/dist/SingleCategorySettings-BxVUUy8R.js +3 -0
  41. package/dist/{SingleCategorySettings-C8xJ47_T.mjs → SingleCategorySettings-Qj_ptB_x.mjs} +4 -4
  42. package/dist/{StatsBar-D4cOKG2e.mjs → StatsBar-CwCBHBn-.mjs} +1 -1
  43. package/dist/StatsBar-DDUWoizP.js +1 -0
  44. package/dist/StorefrontSection-CZZj5he9.js +1 -0
  45. package/dist/{StorefrontSection-uXSVbEAa.mjs → StorefrontSection-DIYDmj59.mjs} +4 -4
  46. package/dist/SubscriptionsSection-Bof5MElz.js +1 -0
  47. package/dist/{SubscriptionsSection-Ci_AZrWA.mjs → SubscriptionsSection-lMVHdV5X.mjs} +3 -3
  48. package/dist/TaxSection-Be-9v60Z.js +1 -0
  49. package/dist/{TaxSection-BTukS_cU.mjs → TaxSection-dD7PzQvG.mjs} +2 -2
  50. package/dist/Token22Section-Di5fHsrU.js +1 -0
  51. package/dist/{Token22Section-DRsPJuTq.mjs → Token22Section-Dos0CYEk.mjs} +2 -2
  52. package/dist/{WalletManager-D-eoqUDy.mjs → WalletManager-CGR69MiR.mjs} +1 -1
  53. package/dist/{WalletManager-DXChB9LA.js → WalletManager-ZJbGQHrn.js} +1 -1
  54. package/dist/{WebhooksSection-A8Y4ZGcj.mjs → WebhooksSection-5gqXzIhq.mjs} +2 -2
  55. package/dist/WebhooksSection-CiLDyl7c.js +1 -0
  56. package/dist/admin.js +1 -1
  57. package/dist/admin.mjs +1 -1
  58. package/dist/crypto-only.js +1 -1
  59. package/dist/crypto-only.mjs +102 -105
  60. package/dist/{index-9QF_UfSN.mjs → index-CU6M10Rs.mjs} +13 -14
  61. package/dist/{index-Cq9ya93W.js → index-DVxx_62C.js} +10 -10
  62. package/dist/index.js +1 -1
  63. package/dist/index.mjs +31 -34
  64. package/dist/pay-react.css +1 -1
  65. package/dist/plugin-BIkt3boU.mjs +339 -0
  66. package/dist/plugin-Dw8_Q8rE.js +1 -0
  67. package/dist/sections-D1d83mfH.js +1 -0
  68. package/dist/{sections-more-Ixw6mM6R.mjs → sections-DcUfZQNE.mjs} +263 -270
  69. package/dist/src/admin/plugin.d.ts.map +1 -1
  70. package/dist/src/admin/sectionIds.d.ts.map +1 -1
  71. package/dist/src/admin.d.ts +0 -7
  72. package/dist/src/admin.d.ts.map +1 -1
  73. package/dist/src/components/admin/index.d.ts +0 -1
  74. package/dist/src/components/admin/index.d.ts.map +1 -1
  75. package/dist/src/index.d.ts +0 -1
  76. package/dist/src/index.d.ts.map +1 -1
  77. package/dist/stripe-only.js +1 -1
  78. package/dist/stripe-only.mjs +18 -19
  79. package/dist/styles-BwaDljnz.js +1 -0
  80. package/dist/{styles-DGagylUj.mjs → styles-fihm6qVA.mjs} +51 -52
  81. package/dist/testing/index.js +1 -1
  82. package/dist/testing/index.mjs +1 -1
  83. package/package.json +6 -8
  84. package/dist/AutosaveIndicator-DXRPr4P7.js +0 -1
  85. package/dist/CedrosContext-CCakH2SZ.js +0 -3
  86. package/dist/CedrosPayAdminDashboard-DaJ9JoGn.mjs +0 -250
  87. package/dist/CedrosPayAdminDashboard-Uvyh9p7A.js +0 -1
  88. package/dist/ChatLogsSection-FC3O536G.js +0 -1
  89. package/dist/ComplianceSection-BioTKm7k.js +0 -1
  90. package/dist/CryptoButton-DxFCYDlJ.js +0 -1
  91. package/dist/CustomersSection-z6ARxuex.js +0 -1
  92. package/dist/DisputesSection-BjHHQAi7.js +0 -1
  93. package/dist/Dropdown-j8o0OO5L.js +0 -1
  94. package/dist/ErrorBanner-CAgPnj62.js +0 -1
  95. package/dist/FAQSection-b34DMzgV.js +0 -1
  96. package/dist/ImagesSection-DGBA7iKY.js +0 -1
  97. package/dist/InventorySection-bVCECzX5.js +0 -1
  98. package/dist/LazyCedrosPayAdminDashboard-BqJDNrDI.mjs +0 -9
  99. package/dist/LazyCedrosPayAdminDashboard-CpfTtOBc.js +0 -1
  100. package/dist/MessagingSection-DU0dYNMy.js +0 -1
  101. package/dist/OrdersSection-FOFEAgs1.js +0 -1
  102. package/dist/ReturnsSection-BjpIVFfN.js +0 -1
  103. package/dist/ShippingSection-B5lk7zpS.js +0 -1
  104. package/dist/SingleCategorySettings-g7D-9lG1.js +0 -3
  105. package/dist/StatsBar-CWXw2ZT3.js +0 -1
  106. package/dist/StorefrontSection-BWnMB9k-.js +0 -1
  107. package/dist/SubscriptionsSection-DQfXkuDv.js +0 -1
  108. package/dist/TaxSection-cuPQISxZ.js +0 -1
  109. package/dist/ThemeContext-CFXyYx7A.js +0 -1
  110. package/dist/ThemeContext-l0bqcOGW.mjs +0 -126
  111. package/dist/Token22Section-CCfkDm8W.js +0 -1
  112. package/dist/WebhooksSection-CnEmaGH1.js +0 -1
  113. package/dist/icons-C3yDMnKE.mjs +0 -235
  114. package/dist/icons-Cjgd9YVo.js +0 -1
  115. package/dist/sectionIds-D46-_-h-.js +0 -1
  116. package/dist/sectionIds-YktNxmRt.mjs +0 -124
  117. package/dist/sections-511_XBh4.js +0 -1
  118. package/dist/sections-CRaMa8ZB.mjs +0 -9
  119. package/dist/sections-more-Cgw2qJlA.js +0 -1
  120. package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts +0 -40
  121. package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts.map +0 -1
  122. package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts +0 -4
  123. package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts.map +0 -1
  124. package/dist/src/standalone-admin.d.ts +0 -8
  125. package/dist/src/standalone-admin.d.ts.map +0 -1
  126. package/dist/standalone-admin.d.ts +0 -2
  127. package/dist/standalone-admin.js +0 -1
  128. package/dist/standalone-admin.mjs +0 -4
  129. package/dist/styles--fxb3lCl.js +0 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./styles--fxb3lCl.js"),r=require("./index-Cq9ya93W.js"),t=require("./CedrosContext-CCakH2SZ.js"),a=require("./fetchWithTimeout-CG0EKbhf.js"),o=require("./sectionIds-D46-_-h-.js"),i=require("./LazyCedrosPayAdminDashboard-CpfTtOBc.js"),s=require("./ThemeContext-CFXyYx7A.js");exports.CEDROS_EVENTS=e.CEDROS_EVENTS;exports.CSP_PRESETS=e.CSP_PRESETS;exports.CedrosPay=e.CedrosPay;exports.CreditsButton=e.CreditsButton;exports.CreditsSubscribeButton=e.CreditsSubscribeButton;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.createTranslator=e.createTranslator;exports.detectLocale=e.detectLocale;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.ComplianceGatePage=r.ComplianceGatePage;exports.CreditsBalance=r.CreditsBalance;exports.ecommerce=r.index;exports.useComplianceCheck=r.useComplianceCheck;exports.useCreditsBalance=r.useCreditsBalance;exports.CIRCUIT_BREAKER_PRESETS=t.CIRCUIT_BREAKER_PRESETS;exports.CedrosProvider=t.CedrosProvider;exports.CircuitBreakerOpenError=t.CircuitBreakerOpenError;exports.CircuitState=t.CircuitState;exports.ERROR_CATEGORIES=t.ERROR_CATEGORIES;exports.FEATURE_FLAG_NAMES=t.FEATURE_FLAG_NAMES;exports.FEATURE_FLAG_REGISTRY=t.FEATURE_FLAG_REGISTRY;exports.RATE_LIMITER_PRESETS=t.RATE_LIMITER_PRESETS;exports.RETRY_PRESETS=t.RETRY_PRESETS;exports.createCircuitBreaker=t.createCircuitBreaker;exports.createRateLimiter=t.createRateLimiter;exports.getFeatureFlagDefinition=t.getFeatureFlagDefinition;exports.getFeatureFlagDefinitions=t.getFeatureFlagDefinitions;exports.isFeatureEnabled=t.isFeatureEnabled;exports.parseFeatureFlagBoolean=t.parseFeatureFlagBoolean;exports.resolveFeatureFlags=t.resolveFeatureFlags;exports.retryWithBackoff=t.retryWithBackoff;exports.useCedrosContext=t.useCedrosContext;exports.validateConfig=t.validateConfig;exports.LogLevel=a.LogLevel;exports.Logger=a.Logger;exports.createLogger=a.createLogger;exports.getLogger=a.getLogger;exports.CEDROS_PAY_GROUPS=o.CEDROS_PAY_GROUPS;exports.CEDROS_PAY_SECTIONS=o.CEDROS_PAY_SECTIONS;exports.CEDROS_PAY_SECTION_IDS=o.CEDROS_PAY_SECTION_IDS;exports.cedrosPayPlugin=o.cedrosPayPlugin;exports.CedrosPayAdminDashboard=i.CedrosPayAdminDashboard;exports.useCedrosTheme=s.useCedrosTheme;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./styles-BwaDljnz.js"),r=require("./index-DVxx_62C.js"),t=require("./CedrosContext-3Dz7_9Ct.js"),a=require("./fetchWithTimeout-CG0EKbhf.js"),o=require("./plugin-Dw8_Q8rE.js");exports.CEDROS_EVENTS=e.CEDROS_EVENTS;exports.CSP_PRESETS=e.CSP_PRESETS;exports.CedrosPay=e.CedrosPay;exports.CreditsButton=e.CreditsButton;exports.CreditsSubscribeButton=e.CreditsSubscribeButton;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.createTranslator=e.createTranslator;exports.detectLocale=e.detectLocale;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.ComplianceGatePage=r.ComplianceGatePage;exports.CreditsBalance=r.CreditsBalance;exports.ecommerce=r.index;exports.useComplianceCheck=r.useComplianceCheck;exports.useCreditsBalance=r.useCreditsBalance;exports.CIRCUIT_BREAKER_PRESETS=t.CIRCUIT_BREAKER_PRESETS;exports.CedrosProvider=t.CedrosProvider;exports.CircuitBreakerOpenError=t.CircuitBreakerOpenError;exports.CircuitState=t.CircuitState;exports.ERROR_CATEGORIES=t.ERROR_CATEGORIES;exports.FEATURE_FLAG_NAMES=t.FEATURE_FLAG_NAMES;exports.FEATURE_FLAG_REGISTRY=t.FEATURE_FLAG_REGISTRY;exports.RATE_LIMITER_PRESETS=t.RATE_LIMITER_PRESETS;exports.RETRY_PRESETS=t.RETRY_PRESETS;exports.createCircuitBreaker=t.createCircuitBreaker;exports.createRateLimiter=t.createRateLimiter;exports.getFeatureFlagDefinition=t.getFeatureFlagDefinition;exports.getFeatureFlagDefinitions=t.getFeatureFlagDefinitions;exports.isFeatureEnabled=t.isFeatureEnabled;exports.parseFeatureFlagBoolean=t.parseFeatureFlagBoolean;exports.resolveFeatureFlags=t.resolveFeatureFlags;exports.retryWithBackoff=t.retryWithBackoff;exports.useCedrosContext=t.useCedrosContext;exports.useCedrosTheme=t.useCedrosTheme;exports.validateConfig=t.validateConfig;exports.LogLevel=a.LogLevel;exports.Logger=a.Logger;exports.createLogger=a.createLogger;exports.getLogger=a.getLogger;exports.CEDROS_PAY_GROUPS=o.CEDROS_PAY_GROUPS;exports.CEDROS_PAY_SECTIONS=o.CEDROS_PAY_SECTIONS;exports.CEDROS_PAY_SECTION_IDS=o.CEDROS_PAY_SECTION_IDS;exports.cedrosPayPlugin=o.cedrosPayPlugin;
package/dist/index.mjs CHANGED
@@ -1,19 +1,16 @@
1
- import { C as s, a as t, b as r, c as o, d as i, P as n, e as c, f as C, g as u, R as E, S, h as l, i as P, j as m, k as R, l as d, m as g, n as p, o as _, p as T, q as b, r as f, s as y, t as L, u as A, v as F, w as B, x as O, y as D, z as I, A as M, B as h, D as k, E as v, F as x, G, H as N, I as U, J as Y, K as W, L as z, M as j, N as K, O as V, Q as q } from "./styles-DGagylUj.mjs";
2
- import { C as H, a as J, i as Q, u as X, b as Z } from "./index-9QF_UfSN.mjs";
3
- import { C as aa, a as ea, b as sa, c as ta, E as ra, F as oa, d as ia, R as na, e as ca, f as Ca, g as ua, h as Ea, i as Sa, j as la, p as Pa, r as ma, k as Ra, u as da, v as ga } from "./CedrosContext-5Gjveoba.mjs";
4
- import { L as _a, a as Ta, c as ba, g as fa } from "./fetchWithTimeout-DmMOwL0Q.mjs";
5
- import { C as La, a as Aa, b as Fa, c as Ba } from "./sectionIds-YktNxmRt.mjs";
6
- import { C as Da } from "./LazyCedrosPayAdminDashboard-BqJDNrDI.mjs";
7
- import { u as Ma } from "./ThemeContext-l0bqcOGW.mjs";
1
+ import { C as s, a as t, b as r, c as o, d as i, P as n, e as c, f as u, g as C, R as E, S, h as l, i as P, j as R, k as g, l as m, m as d, n as p, o as _, p as T, q as L, r as b, s as y, t as F, u as f, v as A, w as B, x as O, y as I, z as D, A as M, B as h, D as k, E as v, F as x, G, H as N, I as U, J as Y, K as W, L as z, M as j, N as K, O as V, Q as q } from "./styles-fihm6qVA.mjs";
2
+ import { C as H, a as J, i as Q, u as X, b as Z } from "./index-CU6M10Rs.mjs";
3
+ import { C as aa, a as ea, b as sa, c as ta, E as ra, F as oa, d as ia, R as na, e as ca, f as ua, g as Ca, h as Ea, i as Sa, j as la, p as Pa, r as Ra, k as ga, u as ma, l as da, v as pa } from "./CedrosContext-DQc_k5PG.mjs";
4
+ import { L as Ta, a as La, c as ba, g as ya } from "./fetchWithTimeout-DmMOwL0Q.mjs";
5
+ import { C as fa, a as Aa, b as Ba, c as Oa } from "./plugin-BIkt3boU.mjs";
8
6
  export {
9
7
  s as CEDROS_EVENTS,
10
- La as CEDROS_PAY_GROUPS,
8
+ fa as CEDROS_PAY_GROUPS,
11
9
  Aa as CEDROS_PAY_SECTIONS,
12
- Fa as CEDROS_PAY_SECTION_IDS,
10
+ Ba as CEDROS_PAY_SECTION_IDS,
13
11
  aa as CIRCUIT_BREAKER_PRESETS,
14
12
  t as CSP_PRESETS,
15
13
  r as CedrosPay,
16
- Da as CedrosPayAdminDashboard,
17
14
  ea as CedrosProvider,
18
15
  sa as CircuitBreakerOpenError,
19
16
  ta as CircuitState,
@@ -24,43 +21,43 @@ export {
24
21
  ra as ERROR_CATEGORIES,
25
22
  oa as FEATURE_FLAG_NAMES,
26
23
  ia as FEATURE_FLAG_REGISTRY,
27
- _a as LogLevel,
28
- Ta as Logger,
24
+ Ta as LogLevel,
25
+ La as Logger,
29
26
  n as PaymentMethodBadge,
30
27
  c as PaymentModal,
31
- C as ProductPrice,
32
- u as PurchaseButton,
28
+ u as ProductPrice,
29
+ C as PurchaseButton,
33
30
  na as RATE_LIMITER_PRESETS,
34
31
  ca as RETRY_PRESETS,
35
32
  E as RPC_PROVIDERS,
36
33
  S as SECURITY_RECOMMENDATIONS,
37
34
  l as StripeButton,
38
35
  P as SubscribeButton,
39
- m as SubscriptionManagementPanel,
40
- R as calculateDiscountPercentage,
41
- Ba as cedrosPayPlugin,
42
- Ca as createCircuitBreaker,
36
+ R as SubscriptionManagementPanel,
37
+ g as calculateDiscountPercentage,
38
+ Oa as cedrosPayPlugin,
39
+ ua as createCircuitBreaker,
43
40
  ba as createLogger,
44
- ua as createRateLimiter,
45
- d as createTranslator,
46
- g as detectLocale,
41
+ Ca as createRateLimiter,
42
+ m as createTranslator,
43
+ d as detectLocale,
47
44
  Q as ecommerce,
48
45
  p as emitPaymentError,
49
46
  _ as emitPaymentProcessing,
50
47
  T as emitPaymentStart,
51
- b as emitPaymentSuccess,
52
- f as emitWalletConnect,
48
+ L as emitPaymentSuccess,
49
+ b as emitWalletConnect,
53
50
  y as emitWalletConnected,
54
- L as emitWalletError,
55
- A as formatCSP,
56
- F as formatCouponCodes,
51
+ F as emitWalletError,
52
+ f as formatCSP,
53
+ A as formatCouponCodes,
57
54
  B as generateCSP,
58
55
  O as generateCSPDirectives,
59
- D as getAvailableLocales,
56
+ I as getAvailableLocales,
60
57
  Ea as getFeatureFlagDefinition,
61
58
  Sa as getFeatureFlagDefinitions,
62
- I as getLocalizedError,
63
- fa as getLogger,
59
+ D as getLocalizedError,
60
+ ya as getLogger,
64
61
  M as getUserErrorMessage,
65
62
  la as isFeatureEnabled,
66
63
  h as isRetryableError,
@@ -68,11 +65,11 @@ export {
68
65
  v as logSecurityReport,
69
66
  x as parseCouponCodes,
70
67
  Pa as parseFeatureFlagBoolean,
71
- ma as resolveFeatureFlags,
72
- Ra as retryWithBackoff,
68
+ Ra as resolveFeatureFlags,
69
+ ga as retryWithBackoff,
73
70
  G as stackCheckoutCoupons,
74
- da as useCedrosContext,
75
- Ma as useCedrosTheme,
71
+ ma as useCedrosContext,
72
+ da as useCedrosTheme,
76
73
  X as useComplianceCheck,
77
74
  Z as useCreditsBalance,
78
75
  N as useCreditsPayment,
@@ -83,6 +80,6 @@ export {
83
80
  j as useSubscription,
84
81
  K as useSubscriptionManagement,
85
82
  V as useTranslation,
86
- ga as validateConfig,
83
+ pa as validateConfig,
87
84
  q as validateSecurity
88
85
  };
@@ -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__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}.cedros-admin__form-container{padding:1.25rem;background:var(--admin-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius)}.cedros-admin__form-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.cedros-admin__form-header h4{margin:0;font-size:1rem;font-weight:600}.cedros-admin__form-group{margin-bottom:1rem}.cedros-admin__form-group:last-of-type{margin-bottom:0}.cedros-admin__label{display:block;font-size:.875rem;font-weight:500;margin-bottom:.375rem;color:var(--admin-fg)}.cedros-admin__hint{display:block;font-size:.75rem;color:var(--admin-muted);margin-top:.25rem}.cedros-admin__checkbox-label{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;cursor:pointer}.cedros-admin__checkbox-label input[type=checkbox]{width:1rem;height:1rem;accent-color:var(--admin-primary)}@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-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__stats-bar,.cedros-admin__stats-bar-item,.cedros-admin__stat-card,.cedros-admin__method-card,.cedros-admin__settings-timeline-item,.cedros-admin__faq-item,.cedros-admin__dropdown-menu,.cedros-admin__modal,.cedros-admin__drop-zone,.cedros-admin__variation-type-item,.cedros-admin__variation-value-item,.cedros-admin__variant-grid,.cedros-admin__settings-editor,.cedros-admin__settings-history{box-shadow:var(--admin-shadow-card)}.cedros-admin__stats-bar-label,.cedros-admin__stat-label,.cedros-admin__method-label{font-size:.75rem;font-weight:600;color:var(--admin-muted);text-transform:uppercase;letter-spacing:.04em}.cedros-admin__stats-bar-value,.cedros-admin__stat-value,.cedros-admin__method-value{color:var(--admin-fg);font-weight:700}.cedros-admin__stats-bar-value--success,.cedros-admin__stat-value--success{color:var(--admin-success)}.cedros-admin__stats-bar-value--warning,.cedros-admin__stat-value--warning{color:var(--admin-warning)}.cedros-admin__stats-bar-value--muted{color:var(--admin-muted)}.cedros-admin__modal-overlay,.cedros-admin__confirm-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;background:#00000080;z-index:1000}.cedros-admin__modal{width:100%;max-width:28rem;max-height:90vh;overflow:auto}.cedros-admin__modal--lg{max-width:48rem}.cedros-admin__modal-body,.cedros-admin__modal-header,.cedros-admin__modal-footer{padding:1rem 1.25rem}.cedros-admin__modal-header,.cedros-admin__modal-footer{border-bottom:1px solid var(--admin-border)}.cedros-admin__modal-footer{justify-content:flex-end;border-top:1px solid var(--admin-border);border-bottom:none}.cedros-admin__modal-close{width:2rem;height:2rem;padding:0;border:none;border-radius:var(--admin-radius);background:transparent;color:var(--admin-muted);cursor:pointer}.cedros-admin__dropdown{position:relative}.cedros-admin__dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;min-width:100%;padding:.25rem;background:var(--admin-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);z-index:40}.cedros-admin__dropdown-item{width:100%;justify-content:space-between;padding:.5rem .75rem;border:none;border-radius:calc(var(--admin-radius) - 2px);background:transparent;color:var(--admin-fg);cursor:pointer}.cedros-admin__dropdown-item:hover{background:var(--admin-muted-bg)}.cedros-admin__faq-item,.cedros-admin__settings-timeline-item,.cedros-admin__variation-type-item,.cedros-admin__variation-value-item{padding:.875rem;border:1px solid var(--admin-border);border-radius:var(--admin-radius)}.cedros-admin__drop-zone{padding:1rem;border-style:dashed;text-align:center}.cedros-admin__drop-zone--active{border-color:var(--admin-primary);background:color-mix(in srgb,var(--admin-accent) 60%,white 40%)}.cedros-admin__spinner{animation:cedros-admin-spin 1s linear infinite}@keyframes cedros-admin-spin{to{transform:rotate(360deg)}}@media(max-width:768px){.cedros-admin__section-header,.cedros-admin__page-header,.cedros-admin__form-header,.cedros-admin__settings-history-header,.cedros-admin__settings-editor-header{flex-direction:column;align-items:flex-start}.cedros-admin__stats-bar-grid,.cedros-admin__form-row,.cedros-admin__stats-grid,.cedros-admin__method-grid{grid-template-columns:1fr}}.cedros-admin{--admin-bg: var(--admin-bg, hsl(0 0% 100%));--admin-fg: var(--admin-fg, hsl(222.2 84% 4.9%));--admin-muted: var(--admin-muted, hsl(215.4 16.3% 46.9%));--admin-muted-bg: var(--admin-muted-bg, hsl(210 40% 96.1%));--admin-accent: var(--admin-accent, hsl(210 40% 96.1%));--admin-accent-fg: var(--admin-accent-fg, hsl(222.2 47.4% 11.2%));--admin-border: var(--admin-border, hsl(214.3 31.8% 91.4%));--admin-input: var(--admin-input, var(--admin-border));--admin-ring: var(--admin-ring, hsl(222.2 84% 4.9%));--admin-primary: var(--admin-primary, hsl(222.2 47.4% 11.2%));--admin-primary-fg: var(--admin-primary-fg, hsl(210 40% 98%));--admin-success: var(--admin-success, hsl(142 71% 45%));--admin-success-light: var(--admin-success-light, hsl(142 76% 94%));--admin-warning: var(--admin-warning, hsl(38 92% 50%));--admin-warning-light: var(--admin-warning-light, hsl(48 96% 89%));--admin-error: var(--admin-error, hsl(0 84.2% 60.2%));--admin-error-light: var(--admin-error-light, hsl(0 86% 97%));--admin-info: var(--admin-info, hsl(221.2 83.2% 53.3%));--admin-info-light: var(--admin-info-light, hsl(214 100% 95%));--admin-card-bg: var(--admin-card-bg, var(--admin-bg));--admin-table-head: var(--admin-table-head, color-mix(in srgb, var(--admin-bg) 92%, var(--admin-accent) 8%));--admin-table-row: var(--admin-table-row, var(--admin-bg));--admin-table-row-hover: var(--admin-table-row-hover, color-mix(in srgb, var(--admin-bg) 84%, var(--admin-accent) 16%));--admin-radius: var(--admin-radius, .75rem);--admin-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);--admin-shadow-card: 0 1px 2px 0 rgb(0 0 0 / .04), 0 1px 1px -1px rgb(0 0 0 / .08);--admin-font-mono: var(--admin-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)}.cedros-admin__page,.cedros-admin__overview,.cedros-admin__settings,.cedros-admin__config-editor,.cedros-admin__config-fields,.cedros-admin__faq-list,.cedros-admin__settings-history,.cedros-admin__settings-timeline,.cedros-admin__payment-settings,.cedros-admin__messaging-settings,.cedros-admin__storefront-settings,.cedros-admin__server-settings,.cedros-admin__ai-settings{display:flex;flex-direction:column;gap:1rem}.cedros-admin__overview{gap:1.5rem}.cedros-admin__page-header,.cedros-admin__section-header,.cedros-admin__settings-history-header,.cedros-admin__form-header,.cedros-admin__modal-header,.cedros-admin__settings-editor-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.cedros-admin__page-header{align-items:flex-start;margin-bottom:.5rem}.cedros-admin__section-header{margin-bottom:1rem}.cedros-admin__section-header-left,.cedros-admin__section-header-right,.cedros-admin__settings-section-actions,.cedros-admin__form-actions,.cedros-admin__modal-footer,.cedros-admin__confirm-actions,.cedros-admin__faq-actions,.cedros-admin__stats-bar-refresh,.cedros-admin__config-actions,.cedros-admin__settings-timeline-header,.cedros-admin__settings-meta-item,.cedros-admin__checkbox-label,.cedros-admin__toggle,.cedros-admin__autosave-indicator,.cedros-admin__button,.cedros-admin__badge,.cedros-admin__dropdown-trigger,.cedros-admin__dropdown-item,.cedros-admin__dropdown-check,.cedros-admin__dropdown-chevron{display:inline-flex;align-items:center;gap:.5rem}.cedros-admin__section,.cedros-admin__settings-section,.cedros-admin__form-container,.cedros-admin__add-form,.cedros-admin__stats-bar,.cedros-admin__stat-card,.cedros-admin__method-card,.cedros-admin__faq-item,.cedros-admin__settings-card,.cedros-admin__table-container,.cedros-admin__modal,.cedros-admin__drop-zone{background:var(--admin-card-bg);border:1px solid var(--admin-border);border-radius:var(--admin-radius);box-shadow:var(--admin-shadow-card)}.cedros-admin__section,.cedros-admin__settings-section,.cedros-admin__form-container,.cedros-admin__add-form,.cedros-admin__method-card,.cedros-admin__stat-card,.cedros-admin__settings-card{padding:1rem}.cedros-admin__page-title,.cedros-admin__section-title,.cedros-admin__modal-title,.cedros-admin__settings-section-title{margin:0;color:var(--admin-fg);font-weight:600}.cedros-admin__page-title{font-size:1.25rem}.cedros-admin__section-title{font-size:.9375rem}.cedros-admin__page-description,.cedros-admin__section-subtitle,.cedros-admin__text-muted,.cedros-admin__hint,.cedros-admin__stats-bar-desc,.cedros-admin__stat-desc,.cedros-admin__method-count,.cedros-admin__field-description,.cedros-admin__field-unit,.cedros-admin__settings-section-description,.cedros-admin__settings-timeline-meta,.cedros-admin__table-info,.cedros-admin__loading-text{color:var(--admin-muted);font-size:.8125rem}.cedros-admin__section-badge,.cedros-admin__badge,.cedros-admin__tag{padding:.125rem .5rem;border-radius:9999px;font-size:.6875rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase}.cedros-admin__badge--muted,.cedros-admin__section-badge,.cedros-admin__tag{background:var(--admin-muted-bg);color:var(--admin-muted)}.cedros-admin__badge--success,.cedros-admin__badge--completed,.cedros-admin__badge--create,.cedros-admin__section-badge--success,.cedros-admin__status-dot--active{background:var(--admin-success-light);color:var(--admin-success)}.cedros-admin__badge--warning,.cedros-admin__badge--pending,.cedros-admin__badge--processing{background:var(--admin-warning-light);color:var(--admin-warning)}.cedros-admin__badge--failed,.cedros-admin__badge--delete,.cedros-admin__status-dot--inactive{background:var(--admin-error-light);color:var(--admin-error)}.cedros-admin__badge--info,.cedros-admin__badge--update,.cedros-admin__badge--page,.cedros-admin__badge--chat{background:var(--admin-info-light);color:var(--admin-info)}.cedros-admin__button,.cedros-admin__dropdown-trigger,.cedros-admin__input,.cedros-admin__select{min-height:2.25rem;border-radius:var(--admin-radius);font:inherit}.cedros-admin__button{justify-content:center;padding:0 .875rem;border:1px solid transparent;background:transparent;color:var(--admin-fg);cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}.cedros-admin__button:hover:not(:disabled),.cedros-admin__dropdown-trigger:hover{background:var(--admin-accent)}.cedros-admin__button:disabled,.cedros-admin__input:disabled,.cedros-admin__dropdown-trigger:disabled{opacity:.5;cursor:not-allowed}.cedros-admin__button--primary{background:var(--admin-primary);border-color:var(--admin-primary);color:var(--admin-primary-fg)}.cedros-admin__button--secondary,.cedros-admin__button--outline{border-color:var(--admin-border)}.cedros-admin__button--ghost{border-color:transparent}.cedros-admin__button--danger,.cedros-admin__button--destructive{border-color:var(--admin-error);color:var(--admin-error)}.cedros-admin__button--destructive{background:var(--admin-error);color:var(--admin-primary-fg)}.cedros-admin__button--sm{min-height:2rem;padding:0 .75rem;font-size:.75rem}.cedros-admin__button--icon{width:2.25rem;padding:0}.cedros-admin__field,.cedros-admin__config-field,.cedros-admin__form-group{display:flex;flex-direction:column;gap:.375rem}.cedros-admin__form-row,.cedros-admin__input-group,.cedros-admin__checkbox-group,.cedros-admin__stats-grid,.cedros-admin__method-grid,.cedros-admin__stats-bar-grid{display:grid;gap:1rem}.cedros-admin__form-row,.cedros-admin__stats-grid,.cedros-admin__method-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.cedros-admin__stats-bar-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));flex:1}.cedros-admin__field-label,.cedros-admin__label{color:var(--admin-fg);font-size:.8125rem;font-weight:500}.cedros-admin__input,.cedros-admin__textarea,.cedros-admin__select,.cedros-admin__dropdown-trigger{width:100%;padding:.5rem .75rem;border:1px solid var(--admin-input);background:var(--admin-bg);color:var(--admin-fg);box-sizing:border-box}.cedros-admin__textarea{min-height:6rem;resize:vertical}.cedros-admin__textarea--mono,.cedros-admin__mono,.cedros-admin__table code{font-family:var(--admin-font-mono)}.cedros-admin__input--sm{min-height:2rem;padding:.375rem .625rem}.cedros-admin__input--error{border-color:var(--admin-error)}.cedros-admin__input:focus,.cedros-admin__textarea:focus,.cedros-admin__select:focus,.cedros-admin__dropdown-trigger:focus-visible,.cedros-admin__button: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__tabs{display:flex;flex-wrap:wrap;gap:.25rem;margin-bottom:1rem;border-bottom:1px solid var(--admin-border)}.cedros-admin__tab{padding:.625rem 1rem;margin-bottom:-1px;border:none;border-bottom:2px solid transparent;background:transparent;color:var(--admin-muted);font:inherit;cursor:pointer}.cedros-admin__tab--active{color:var(--admin-fg);border-bottom-color:var(--admin-fg)}.cedros-admin__table-container{overflow-x:auto}.cedros-admin__table,.cedros-admin__variant-table{width:100%;border-collapse:collapse;font-size:.8125rem}.cedros-admin__table th,.cedros-admin__table td,.cedros-admin__variant-table th,.cedros-admin__variant-table td{padding:.75rem;border-bottom:1px solid var(--admin-border);text-align:left;vertical-align:middle}.cedros-admin__table th,.cedros-admin__variant-table th{background:var(--admin-table-head);color:var(--admin-muted);font-size:.6875rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}.cedros-admin__table tbody tr:hover,.cedros-admin__variant-table tbody tr:hover,.cedros-admin__table-row--active{background:var(--admin-table-row-hover)}.cedros-admin__table-sort{display:inline-flex;align-items:center;gap:.375rem;padding:0;border:none;background:transparent;color:inherit;cursor:pointer}.cedros-admin__sort-icon,.cedros-admin__spinner,.cedros-admin__dropdown-chevron{display:inline-flex;align-items:center;justify-content:center}.cedros-admin__sort-icon--idle{opacity:.35}.cedros-admin__loading,.cedros-admin__empty,.cedros-admin__success-banner,.cedros-admin__error-banner{padding:.875rem 1rem;border-radius:var(--admin-radius)}.cedros-admin__loading,.cedros-admin__empty{display:flex;align-items:center;justify-content:center;gap:.5rem;color:var(--admin-muted)}.cedros-admin__error-banner{display:flex;justify-content:space-between;align-items:center;background:var(--admin-error-light);border:1px solid var(--admin-error);color:var(--admin-error);font-size:.875rem;font-weight:500}.cedros-admin__error-banner-retry,.cedros-admin__link{color:inherit;background:transparent;border:none;cursor:pointer;text-decoration:underline}.cedros-admin__success-banner,.cedros-admin__success-text{background:var(--admin-success-light);color:var(--admin-success)}.cedros-admin__unsaved-text{color:var(--admin-warning)}
@@ -0,0 +1,339 @@
1
+ import { jsx as o, jsxs as d } from "react/jsx-runtime";
2
+ import { lazy as T, useMemo as y } from "react";
3
+ import { b } from "./index-BFt38o8Q.mjs";
4
+ import { g as f, b as L, f as v } from "./fetchWithTimeout-DmMOwL0Q.mjs";
5
+ const s = {
6
+ adminProfile: "admin-profile",
7
+ adminSectionAccess: "admin-section-access",
8
+ cedrosLogin: "cedros-login",
9
+ cedrosPay: "cedros-pay",
10
+ org: "org",
11
+ dashboardPermissions: "dashboard-permissions"
12
+ };
13
+ function P(e = {}) {
14
+ return { ...e };
15
+ }
16
+ function E(e) {
17
+ const n = P(e.services);
18
+ return !(s.adminProfile in n) && e.cedrosLogin?.user && (n[s.adminProfile] = {
19
+ user: e.cedrosLogin.user
20
+ }), !(s.adminSectionAccess in n) && e.dashboardPermissions && (n[s.adminSectionAccess] = e.dashboardPermissions), !(s.cedrosLogin in n) && e.cedrosLogin && (n[s.cedrosLogin] = e.cedrosLogin), !(s.cedrosPay in n) && e.cedrosPay && (n[s.cedrosPay] = e.cedrosPay), !(s.org in n) && e.org && (n[s.org] = e.org), !(s.dashboardPermissions in n) && e.dashboardPermissions && (n[s.dashboardPermissions] = e.dashboardPermissions), n;
21
+ }
22
+ function m(e, n) {
23
+ return M(E(e), n);
24
+ }
25
+ function M(e, n) {
26
+ return e[n];
27
+ }
28
+ class C {
29
+ serverUrl;
30
+ walletSigner = null;
31
+ jwtToken = null;
32
+ isAdminUser = !1;
33
+ constructor(n) {
34
+ this.serverUrl = n;
35
+ }
36
+ getAuthMethod() {
37
+ return this.walletSigner?.publicKey && this.walletSigner.signMessage ? "wallet" : this.jwtToken && this.isAdminUser ? "cedros-login" : "none";
38
+ }
39
+ isAuthenticated() {
40
+ return this.getAuthMethod() !== "none";
41
+ }
42
+ setWalletSigner(n) {
43
+ this.walletSigner = n, f().debug("[AdminAuthManager] Wallet signer updated:", !!n?.publicKey);
44
+ }
45
+ setCedrosLoginAuth(n, t) {
46
+ this.jwtToken = n, this.isAdminUser = t ?? !1, f().debug("[AdminAuthManager] Cedros-login auth updated:", { hasToken: !!n, isAdmin: this.isAdminUser });
47
+ }
48
+ async createAuthHeaders(n) {
49
+ const t = this.getAuthMethod();
50
+ if (t === "wallet")
51
+ return this.createWalletAuthHeaders(n);
52
+ if (t === "cedros-login")
53
+ return this.createJwtAuthHeaders();
54
+ throw new Error("No admin authentication configured. Connect a wallet or sign in as admin.");
55
+ }
56
+ async createWalletAuthHeaders(n) {
57
+ if (!this.walletSigner?.publicKey || !this.walletSigner.signMessage)
58
+ throw new Error("Wallet not connected or does not support message signing");
59
+ const t = await this.fetchNonce(n), l = new TextEncoder().encode(t.nonce), c = await this.walletSigner.signMessage(l), a = b.encode(this.walletSigner.publicKey.toBytes()), p = L.fromUint8Array(c);
60
+ return {
61
+ "X-Signer": a,
62
+ "X-Message": t.nonce,
63
+ "X-Signature": p
64
+ };
65
+ }
66
+ createJwtAuthHeaders() {
67
+ if (!this.jwtToken)
68
+ throw new Error("No JWT token available");
69
+ return {
70
+ Authorization: `Bearer ${this.jwtToken}`
71
+ };
72
+ }
73
+ async fetchNonce(n) {
74
+ const t = `${this.serverUrl}/paywall/v1/nonce`, l = typeof n == "string" ? { purpose: n } : { path: n.path, method: n.method.toUpperCase() };
75
+ f().debug("[AdminAuthManager] Fetching nonce:", l);
76
+ const c = await v(t, {
77
+ method: "POST",
78
+ headers: { "Content-Type": "application/json" },
79
+ body: JSON.stringify(l)
80
+ });
81
+ if (!c.ok) {
82
+ const a = await c.text();
83
+ throw new Error(`Failed to fetch nonce: ${c.status} ${a}`);
84
+ }
85
+ return await c.json();
86
+ }
87
+ async fetchWithAuth(n, t = {}) {
88
+ if (this.getAuthMethod() === "none")
89
+ throw new Error("No admin authentication configured");
90
+ const c = (t.method || "GET").toUpperCase(), a = await this.createAuthHeaders({ path: n, method: c }), p = {
91
+ // Only set Content-Type for methods that typically carry a body
92
+ ...c !== "GET" && c !== "HEAD" ? { "Content-Type": "application/json" } : {},
93
+ ...t.headers || {},
94
+ ...a
95
+ }, h = await v(`${this.serverUrl}${n}`, {
96
+ ...t,
97
+ headers: p
98
+ });
99
+ if (!h.ok) {
100
+ let g = `Admin API error ${h.status}`;
101
+ try {
102
+ const u = await h.json();
103
+ u && typeof u.error == "string" ? g = u.error : u && typeof u.message == "string" && (g = u.message);
104
+ } catch {
105
+ }
106
+ throw new Error(g);
107
+ }
108
+ return await h.json();
109
+ }
110
+ }
111
+ function A() {
112
+ return /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
113
+ /* @__PURE__ */ o("path", { d: "M20 7.5v9l-4 2.25M4 7.5v9l4 2.25" }),
114
+ /* @__PURE__ */ o("path", { d: "m20 7.5-8-4.5-8 4.5" }),
115
+ /* @__PURE__ */ o("path", { d: "m12 12 8-4.5M12 12v9.5M12 12 4 7.5" })
116
+ ] });
117
+ }
118
+ function I() {
119
+ return /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6" }) });
120
+ }
121
+ function U() {
122
+ return /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
123
+ /* @__PURE__ */ o("path", { d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z" }),
124
+ /* @__PURE__ */ o("path", { d: "M13 5v2M13 17v2M13 11v2" })
125
+ ] });
126
+ }
127
+ function j() {
128
+ return /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
129
+ /* @__PURE__ */ o("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }),
130
+ /* @__PURE__ */ o("path", { d: "M3 3v5h5" }),
131
+ /* @__PURE__ */ o("path", { d: "M12 7v5l4 2" })
132
+ ] });
133
+ }
134
+ function w() {
135
+ return /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
136
+ /* @__PURE__ */ o("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
137
+ /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "3" })
138
+ ] });
139
+ }
140
+ function G() {
141
+ return /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
142
+ /* @__PURE__ */ o("path", { d: "M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" }),
143
+ /* @__PURE__ */ o("path", { d: "M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4" })
144
+ ] });
145
+ }
146
+ const i = {
147
+ products: () => /* @__PURE__ */ o(A, {}),
148
+ transactions: () => /* @__PURE__ */ o(I, {}),
149
+ coupons: () => /* @__PURE__ */ o(U, {}),
150
+ refunds: () => /* @__PURE__ */ o(j, {}),
151
+ settings: () => /* @__PURE__ */ o(w, {}),
152
+ wallet: () => /* @__PURE__ */ o(G, {})
153
+ }, H = {
154
+ settings: /* @__PURE__ */ o(w, {}),
155
+ chevronRight: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "m9 18 6-6-6-6" }) }),
156
+ loading: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "cedros-admin__spinner", children: /* @__PURE__ */ o("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }),
157
+ refresh: /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
158
+ /* @__PURE__ */ o("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }),
159
+ /* @__PURE__ */ o("path", { d: "M21 3v5h-5" }),
160
+ /* @__PURE__ */ o("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }),
161
+ /* @__PURE__ */ o("path", { d: "M8 16H3v5" })
162
+ ] }),
163
+ check: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M20 6 9 17l-5-5" }) }),
164
+ trash: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" }) }),
165
+ plus: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M12 5v14M5 12h14" }) }),
166
+ chevronDown: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "m6 9 6 6 6-6" }) }),
167
+ chevronUp: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "m18 15-6-6-6 6" }) }),
168
+ arrowUp: /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
169
+ /* @__PURE__ */ o("path", { d: "m5 12 7-7 7 7" }),
170
+ /* @__PURE__ */ o("path", { d: "M12 19V5" })
171
+ ] }),
172
+ arrowDown: /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
173
+ /* @__PURE__ */ o("path", { d: "m5 12 7 7 7-7" }),
174
+ /* @__PURE__ */ o("path", { d: "M12 5v14" })
175
+ ] }),
176
+ delete: /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
177
+ /* @__PURE__ */ o("path", { d: "M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" }),
178
+ /* @__PURE__ */ o("path", { d: "M10 11v6M14 11v6" })
179
+ ] }),
180
+ close: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M18 6 6 18M6 6l12 12" }) }),
181
+ edit: /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
182
+ /* @__PURE__ */ o("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
183
+ /* @__PURE__ */ o("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
184
+ ] }),
185
+ chat: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z" }) }),
186
+ globe: /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
187
+ /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
188
+ /* @__PURE__ */ o("path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }),
189
+ /* @__PURE__ */ o("path", { d: "M2 12h20" })
190
+ ] }),
191
+ eye: /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
192
+ /* @__PURE__ */ o("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
193
+ /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "3" })
194
+ ] }),
195
+ eyeOff: /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
196
+ /* @__PURE__ */ o("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
197
+ /* @__PURE__ */ o("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
198
+ /* @__PURE__ */ o("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
199
+ /* @__PURE__ */ o("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
200
+ ] })
201
+ }, S = [
202
+ // ── Store group ──
203
+ { id: "transactions", qualifiedId: "cedros-pay:transactions", label: "Transactions", group: "Store", order: 0, endpoints: ["GET /admin/transactions"] },
204
+ { id: "orders", qualifiedId: "cedros-pay:orders", label: "Orders", group: "Store", order: 1, endpoints: ["GET /admin/orders", "GET /admin/orders/{id}"] },
205
+ { id: "products", qualifiedId: "cedros-pay:products", label: "Products", group: "Store", order: 2, endpoints: ["GET /admin/products", "POST /admin/products", "PUT /admin/products/{id}", "DELETE /admin/products/{id}"] },
206
+ { id: "subscriptions", qualifiedId: "cedros-pay:subscriptions", label: "Subscriptions", group: "Store", order: 3, endpoints: ["GET /admin/subscriptions", "POST /admin/subscriptions", "PUT /admin/subscriptions/{id}"] },
207
+ { id: "coupons", qualifiedId: "cedros-pay:coupons", label: "Coupons", group: "Store", order: 4, endpoints: ["GET /admin/coupons", "POST /admin/coupons", "PUT /admin/coupons/{id}", "DELETE /admin/coupons/{id}"] },
208
+ { id: "refunds", qualifiedId: "cedros-pay:refunds", label: "Refunds", group: "Store", order: 5, endpoints: ["GET /admin/refunds", "POST /admin/refunds/{id}/approve", "POST /admin/refunds/{id}/deny"] },
209
+ { id: "compliance", qualifiedId: "cedros-pay:compliance", label: "Compliance", group: "Store", order: 6, endpoints: ["GET /admin/compliance/stats", "POST /admin/compliance/check"] },
210
+ { id: "chat-logs", qualifiedId: "cedros-pay:chat-logs", label: "Chat Logs", group: "Store", order: 7, endpoints: ["GET /admin/chats", "GET /admin/chats/{sessionId}"] },
211
+ { id: "customers", qualifiedId: "cedros-pay:customers", label: "Customers", group: "Store", order: 8, endpoints: ["GET /admin/customers", "POST /admin/customers", "PUT /admin/customers/{id}"] },
212
+ { id: "disputes", qualifiedId: "cedros-pay:disputes", label: "Disputes", group: "Store", order: 9, endpoints: ["GET /admin/disputes", "GET /admin/disputes/{id}", "PUT /admin/disputes/{id}/status"] },
213
+ { id: "returns", qualifiedId: "cedros-pay:returns", label: "Returns", group: "Store", order: 10, endpoints: ["GET /admin/returns", "GET /admin/returns/{id}", "PUT /admin/returns/{id}/status"] },
214
+ { id: "images", qualifiedId: "cedros-pay:images", label: "Images", group: "Store", order: 11, endpoints: ["GET /admin/images", "POST /admin/images", "DELETE /admin/images/{id}"] },
215
+ { id: "inventory", qualifiedId: "cedros-pay:inventory", label: "Inventory", group: "Store", order: 12, endpoints: ["GET /admin/products", "GET /admin/products/{id}/inventory/adjustments"] },
216
+ // ── Configuration group ──
217
+ { id: "storefront", qualifiedId: "cedros-pay:storefront", label: "Storefront", group: "Configuration", order: 20, endpoints: ["GET /admin/config/shop", "PUT /admin/config/shop"] },
218
+ { id: "ai-settings", qualifiedId: "cedros-pay:ai-settings", label: "Store AI", group: "Configuration", order: 21, endpoints: ["GET /admin/config/ai", "PUT /admin/config/ai/api-key", "PUT /admin/config/ai/assignment", "PUT /admin/config/ai/prompt"] },
219
+ { id: "faqs", qualifiedId: "cedros-pay:faqs", label: "Knowledge Base", group: "Configuration", order: 22, endpoints: ["GET /admin/faqs", "POST /admin/faqs", "PUT /admin/faqs/{id}", "DELETE /admin/faqs/{id}"] },
220
+ { id: "payment-settings", qualifiedId: "cedros-pay:payment-settings", label: "Payment Options", group: "Configuration", order: 23, endpoints: ["GET /admin/config/stripe", "PUT /admin/config/stripe", "GET /admin/config/x402", "PUT /admin/config/x402", "GET /admin/config/cedros_login", "PUT /admin/config/cedros_login"] },
221
+ { id: "token22", qualifiedId: "cedros-pay:token22", label: "Gift Cards & Token-22", group: "Configuration", order: 24, endpoints: ["GET /admin/token22/status", "POST /admin/token22/initialize", "POST /admin/token22/harvest-fees", "GET /admin/gift-card-redemptions"] },
222
+ { id: "messaging", qualifiedId: "cedros-pay:messaging", label: "Store Messages", group: "Configuration", order: 25, endpoints: ["GET /admin/config/messaging", "PUT /admin/config/messaging"] },
223
+ { id: "webhooks", qualifiedId: "cedros-pay:webhooks", label: "Webhooks", group: "Configuration", order: 26, endpoints: ["GET /admin/webhooks", "POST /admin/webhooks/{id}/retry", "DELETE /admin/webhooks/{id}", "GET /admin/webhooks/dlq"] },
224
+ { id: "shipping", qualifiedId: "cedros-pay:shipping", label: "Shipping", group: "Configuration", order: 27, endpoints: ["GET /admin/shipping/profiles", "POST /admin/shipping/profiles", "GET /admin/shipping/profiles/{id}/rates"] },
225
+ { id: "tax", qualifiedId: "cedros-pay:tax", label: "Tax Rates", group: "Configuration", order: 28, endpoints: ["GET /admin/tax/rates", "POST /admin/tax/rates", "PUT /admin/tax/rates/{id}", "DELETE /admin/tax/rates/{id}"] },
226
+ { id: "settings", qualifiedId: "cedros-pay:settings", label: "Store Server", group: "Configuration", order: 29, endpoints: ["GET /admin/config/server", "PUT /admin/config/server"] }
227
+ ], D = S.map((e) => e.qualifiedId), W = [
228
+ { id: "Store", label: "Store", order: 1, defaultCollapsed: !1 },
229
+ { id: "Configuration", label: "Configuration", order: 2, defaultCollapsed: !0 }
230
+ ], r = (e) => T(async () => {
231
+ const l = (await e()).default;
232
+ return { default: ({ pluginContext: a }) => {
233
+ const p = a.getAccessToken(), h = a.hasPermission("cedros-pay:admin") || a.hasPermission("admin"), g = y(() => {
234
+ const k = new C(a.serverUrl);
235
+ return k.setCedrosLoginAuth(p ?? null, h), k;
236
+ }, [h, a.serverUrl, p]), u = {
237
+ serverUrl: a.serverUrl,
238
+ authManager: g
239
+ };
240
+ return /* @__PURE__ */ o(l, { ...u });
241
+ } };
242
+ }), R = {
243
+ id: "cedros-pay",
244
+ name: "Cedros Pay",
245
+ version: "1.0.0",
246
+ sections: S.map((e) => ({
247
+ id: e.id,
248
+ label: e.label,
249
+ icon: {
250
+ transactions: i.transactions,
251
+ orders: i.transactions,
252
+ products: i.products,
253
+ subscriptions: i.products,
254
+ coupons: i.coupons,
255
+ refunds: i.refunds,
256
+ compliance: i.settings,
257
+ "chat-logs": i.settings,
258
+ customers: i.settings,
259
+ disputes: i.settings,
260
+ returns: i.refunds,
261
+ images: i.products,
262
+ inventory: i.products,
263
+ storefront: i.products,
264
+ "ai-settings": i.settings,
265
+ faqs: i.settings,
266
+ "payment-settings": i.wallet,
267
+ token22: i.wallet,
268
+ messaging: i.settings,
269
+ webhooks: i.settings,
270
+ shipping: i.products,
271
+ tax: i.transactions,
272
+ settings: i.settings
273
+ }[e.id],
274
+ group: e.group,
275
+ order: e.order
276
+ })),
277
+ groups: W.map((e) => ({
278
+ id: e.id,
279
+ label: e.label,
280
+ order: e.order,
281
+ defaultCollapsed: e.defaultCollapsed
282
+ })),
283
+ components: {
284
+ products: r(() => import("./sections-DcUfZQNE.mjs").then((e) => ({ default: e.ProductsSection }))),
285
+ subscriptions: r(() => import("./SubscriptionsSection-lMVHdV5X.mjs").then((e) => ({ default: e.SubscriptionsSection }))),
286
+ transactions: r(() => import("./sections-DcUfZQNE.mjs").then((e) => ({ default: e.TransactionsSection }))),
287
+ orders: r(() => import("./OrdersSection-vYNuVF5X.mjs").then((e) => ({ default: e.OrdersSection }))),
288
+ coupons: r(() => import("./sections-DcUfZQNE.mjs").then((e) => ({ default: e.CouponsSection }))),
289
+ refunds: r(() => import("./sections-DcUfZQNE.mjs").then((e) => ({ default: e.RefundsSection }))),
290
+ compliance: r(() => import("./ComplianceSection-C61_Hf-X.mjs").then((e) => ({ default: e.ComplianceSection }))),
291
+ "chat-logs": r(() => import("./ChatLogsSection-DR7mpuQS.mjs").then((e) => ({ default: e.ChatLogsSection }))),
292
+ customers: r(() => import("./CustomersSection-CWWvusxs.mjs").then((e) => ({ default: e.CustomersSection }))),
293
+ disputes: r(() => import("./DisputesSection-D8rcS5Vs.mjs").then((e) => ({ default: e.DisputesSection }))),
294
+ returns: r(() => import("./ReturnsSection-CRzhXKtI.mjs").then((e) => ({ default: e.ReturnsSection }))),
295
+ images: r(() => import("./ImagesSection-Bn9GrRRa.mjs").then((e) => ({ default: e.ImagesSection }))),
296
+ inventory: r(() => import("./InventorySection-Dytfmtn8.mjs").then((e) => ({ default: e.InventorySection }))),
297
+ storefront: r(() => import("./StorefrontSection-DIYDmj59.mjs").then((e) => ({ default: e.StorefrontSection }))),
298
+ "ai-settings": r(() => import("./AISettingsSection-DXWDF4Cf.mjs").then((e) => ({ default: e.AISettingsSection }))),
299
+ faqs: r(() => import("./FAQSection-Dck0NM-A.mjs").then((e) => ({ default: e.FAQSection }))),
300
+ "payment-settings": r(() => import("./PaymentSettingsSection-BqdGrXen.mjs").then((e) => ({ default: e.PaymentSettingsSection }))),
301
+ token22: r(() => import("./Token22Section-Dos0CYEk.mjs").then((e) => ({ default: e.Token22Section }))),
302
+ messaging: r(() => import("./MessagingSection-CHFbSxJL.mjs").then((e) => ({ default: e.MessagingSection }))),
303
+ webhooks: r(() => import("./WebhooksSection-5gqXzIhq.mjs").then((e) => ({ default: e.WebhooksSection }))),
304
+ shipping: r(() => import("./ShippingSection-CbNzGyCP.mjs").then((e) => ({ default: e.ShippingSection }))),
305
+ tax: r(() => import("./TaxSection-dD7PzQvG.mjs").then((e) => ({ default: e.TaxSection }))),
306
+ settings: r(() => import("./SettingsSection-6o3d8DrH.mjs").then((e) => ({ default: e.SettingsSection })))
307
+ },
308
+ createPluginContext(e) {
309
+ const n = m(
310
+ e,
311
+ s.cedrosPay
312
+ ), t = m(
313
+ e,
314
+ s.cedrosLogin
315
+ ), l = m(e, s.org);
316
+ return {
317
+ serverUrl: n?.serverUrl || t?.serverUrl || "",
318
+ userId: t?.user?.id,
319
+ getAccessToken: () => t?.getAccessToken?.() || n?.jwtToken || null,
320
+ hasPermission: (a) => this.checkPermission(a, e),
321
+ orgId: l?.orgId,
322
+ pluginData: {
323
+ walletAddress: n?.walletAddress
324
+ }
325
+ };
326
+ },
327
+ checkPermission(e, n) {
328
+ const t = m(n, s.org);
329
+ return t?.permissions ? t.permissions.includes(e) : !1;
330
+ },
331
+ cssNamespace: "cedros-dashboard"
332
+ };
333
+ export {
334
+ W as C,
335
+ H as I,
336
+ S as a,
337
+ D as b,
338
+ R as c
339
+ };