@cedros/pay-react 1.1.28 → 1.1.29

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 (172) hide show
  1. package/dist/{AISettingsSection-DELur7D2.js → AISettingsSection-B7qrycfY.js} +2 -2
  2. package/dist/{AISettingsSection-BlIv3CzS.mjs → AISettingsSection-DtAgMsDw.mjs} +6 -4
  3. package/dist/{AutosaveIndicator-Bed0-ekg.mjs → AutosaveIndicator-BEvABoKU.mjs} +1 -1
  4. package/dist/AutosaveIndicator-DiyeAg93.js +1 -0
  5. package/dist/CedrosContext-5Gjveoba.mjs +2555 -0
  6. package/dist/CedrosContext-CCakH2SZ.js +3 -0
  7. package/dist/CedrosPayAdminDashboard-CAwEvn66.js +1 -0
  8. package/dist/CedrosPayAdminDashboard-CBuvNAtB.mjs +250 -0
  9. package/dist/{ChatLogsSection-v4zwzCTC.mjs → ChatLogsSection-Ber5o8hF.mjs} +19 -17
  10. package/dist/ChatLogsSection-DLxMMi9I.js +1 -0
  11. package/dist/ComplianceSection-Buu0zTiL.js +1 -0
  12. package/dist/{ComplianceSection-CemgfDrL.mjs → ComplianceSection-ZCr0wsvw.mjs} +18 -15
  13. package/dist/{CryptoButton-BV9owVe2.mjs → CryptoButton-Cl2kZbOP.mjs} +26 -24
  14. package/dist/CryptoButton-DxFCYDlJ.js +1 -0
  15. package/dist/CustomersSection-BywmMLur.js +1 -0
  16. package/dist/{CustomersSection-D_j7OrfS.mjs → CustomersSection-D9UknSKC.mjs} +21 -19
  17. package/dist/{DisputesSection-BcAbXp3K.mjs → DisputesSection-C_eySK-W.mjs} +19 -17
  18. package/dist/DisputesSection-DwkHGv2a.js +1 -0
  19. package/dist/Dropdown-B90Zabxr.mjs +111 -0
  20. package/dist/Dropdown-CtY91emj.js +1 -0
  21. package/dist/ErrorBanner-CZXsHi3H.mjs +22 -0
  22. package/dist/ErrorBanner-Cx2dUhps.js +1 -0
  23. package/dist/{FAQSection-Dn38OhB_.mjs → FAQSection-Bv_Hdt8B.mjs} +8 -6
  24. package/dist/FAQSection-DlPLnIJD.js +1 -0
  25. package/dist/ImagesSection-B4Jzet79.js +1 -0
  26. package/dist/{ImagesSection-Ctw9Icym.mjs → ImagesSection-DpdXQ6qu.mjs} +6 -4
  27. package/dist/InventorySection-BgRdpn1l.js +1 -0
  28. package/dist/{InventorySection-DmhjUlRZ.mjs → InventorySection-DZMu9DMw.mjs} +25 -23
  29. package/dist/MessagingSection-CxV-pf-f.js +1 -0
  30. package/dist/{MessagingSection-B1FaGxkp.mjs → MessagingSection-D_cOBfFt.mjs} +5 -4
  31. package/dist/OrdersSection-BbAX79Ff.js +1 -0
  32. package/dist/{OrdersSection-Bj8bPdg8.mjs → OrdersSection-wfPavit9.mjs} +27 -24
  33. package/dist/PaymentSettingsSection-BdBDgaRg.js +1 -0
  34. package/dist/PaymentSettingsSection-DunzBo9n.mjs +648 -0
  35. package/dist/ReturnsSection-7k4LZ8yp.js +1 -0
  36. package/dist/{ReturnsSection-BC0L8r2e.mjs → ReturnsSection-B4FL7bUv.mjs} +11 -9
  37. package/dist/{SettingsSection-vdYFSNxB.js → SettingsSection-Cz2Yjdhr.js} +1 -1
  38. package/dist/{SettingsSection-KYdEizq_.mjs → SettingsSection-DoeNDbqd.mjs} +1 -1
  39. package/dist/{ShippingSection-BOgto6_9.mjs → ShippingSection-BlVsYC6B.mjs} +5 -3
  40. package/dist/ShippingSection-C-HI8rOb.js +1 -0
  41. package/dist/{SingleCategorySettings-suJ8z9d8.mjs → SingleCategorySettings-B406nnF-.mjs} +143 -140
  42. package/dist/SingleCategorySettings-BqC2UXt3.js +3 -0
  43. package/dist/StatsBar-D4v-I_Dj.mjs +25 -0
  44. package/dist/StatsBar-m6GSRNxs.js +1 -0
  45. package/dist/StorefrontSection-Axvh_KeS.js +1 -0
  46. package/dist/{StorefrontSection-BRvIGBEJ.mjs → StorefrontSection-BK_rhrAi.mjs} +121 -119
  47. package/dist/{SubscriptionsSection-D60qrX9a.mjs → SubscriptionsSection-D8V9RBv-.mjs} +11 -9
  48. package/dist/SubscriptionsSection-EeULMWIB.js +1 -0
  49. package/dist/{TaxSection-C7-pv-Rl.mjs → TaxSection-Cj6TXL6x.mjs} +23 -21
  50. package/dist/TaxSection-CzHPhaHl.js +1 -0
  51. package/dist/ThemeContext-CFXyYx7A.js +1 -0
  52. package/dist/ThemeContext-l0bqcOGW.mjs +126 -0
  53. package/dist/Token22Section-DqRKVG_G.js +1 -0
  54. package/dist/{Token22Section-CrHLQ0EB.mjs → Token22Section-DtYAcT54.mjs} +7 -6
  55. package/dist/{WalletManager-BIwH8Dw_.mjs → WalletManager-D-eoqUDy.mjs} +21 -19
  56. package/dist/WalletManager-DXChB9LA.js +1 -0
  57. package/dist/WebhooksSection-D--iPZuM.js +1 -0
  58. package/dist/{WebhooksSection-COPW4Ec0.mjs → WebhooksSection-DBAIxtBy.mjs} +40 -38
  59. package/dist/admin.d.ts +2 -0
  60. package/dist/admin.js +1 -0
  61. package/dist/admin.mjs +8 -0
  62. package/dist/configApi-BS5UJfzm.js +1 -0
  63. package/dist/{configApi-6XhAJGKX.mjs → configApi-BUXZOMWK.mjs} +57 -3
  64. package/dist/crypto-only.js +1 -1
  65. package/dist/crypto-only.mjs +214 -202
  66. package/dist/dateHelpers-BKW_lGND.js +1 -0
  67. package/dist/dateHelpers-yvPkofYQ.mjs +6 -0
  68. package/dist/fetchWithTimeout-CG0EKbhf.js +1 -0
  69. package/dist/fetchWithTimeout-DmMOwL0Q.mjs +195 -0
  70. package/dist/index-9QF_UfSN.mjs +18668 -0
  71. package/dist/index-Cq9ya93W.js +84 -0
  72. package/dist/index.js +1 -1
  73. package/dist/index.mjs +74 -64
  74. package/dist/safeHref-DqJPLPl5.mjs +12 -0
  75. package/dist/safeHref-DyHIpVjY.js +1 -0
  76. package/dist/sectionIds-B_tFiNvF.js +1 -0
  77. package/dist/sectionIds-DBavltrL.mjs +359 -0
  78. package/dist/sections-BHph7CYj.mjs +9 -0
  79. package/dist/sections-C2zEJr5G.js +1 -0
  80. package/dist/sections-more-C1VNVwkp.js +1 -0
  81. package/dist/sections-more-CMFgfU4d.mjs +3082 -0
  82. package/dist/src/admin/index.d.ts +3 -3
  83. package/dist/src/admin/index.d.ts.map +1 -1
  84. package/dist/src/admin/plugin.d.ts.map +1 -1
  85. package/dist/src/admin/types.d.ts +2 -6
  86. package/dist/src/admin/types.d.ts.map +1 -1
  87. package/dist/src/admin.d.ts +9 -0
  88. package/dist/src/admin.d.ts.map +1 -0
  89. package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts +4 -0
  90. package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts.map +1 -0
  91. package/dist/src/components/admin/PaymentReadinessChecklist.d.ts +9 -0
  92. package/dist/src/components/admin/PaymentReadinessChecklist.d.ts.map +1 -0
  93. package/dist/src/components/admin/PaymentSettingsSection.d.ts.map +1 -1
  94. package/dist/src/components/admin/PaymentSetupGuide.d.ts +6 -0
  95. package/dist/src/components/admin/PaymentSetupGuide.d.ts.map +1 -0
  96. package/dist/src/components/admin/ProductsSection.d.ts.map +1 -1
  97. package/dist/src/components/admin/configApi.d.ts +1 -1
  98. package/dist/src/components/admin/configApi.d.ts.map +1 -1
  99. package/dist/src/components/admin/icons.d.ts +3 -50
  100. package/dist/src/components/admin/icons.d.ts.map +1 -1
  101. package/dist/src/components/admin/index.d.ts +1 -1
  102. package/dist/src/components/admin/index.d.ts.map +1 -1
  103. package/dist/src/components/admin/types.d.ts +43 -0
  104. package/dist/src/components/admin/types.d.ts.map +1 -1
  105. package/dist/src/context/CedrosContext.d.ts +2 -0
  106. package/dist/src/context/CedrosContext.d.ts.map +1 -1
  107. package/dist/src/ecommerce/__tests__/featureFlags.test.d.ts +2 -0
  108. package/dist/src/ecommerce/__tests__/featureFlags.test.d.ts.map +1 -0
  109. package/dist/src/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -1
  110. package/dist/src/ecommerce/components/general/ErrorBoundary.d.ts +1 -1
  111. package/dist/src/ecommerce/components/ui/button.d.ts +1 -1
  112. package/dist/src/ecommerce/components/ui/sheet.d.ts +1 -1
  113. package/dist/src/ecommerce/config/context.d.ts +2 -0
  114. package/dist/src/ecommerce/config/context.d.ts.map +1 -1
  115. package/dist/src/ecommerce/config/types.d.ts +2 -0
  116. package/dist/src/ecommerce/config/types.d.ts.map +1 -1
  117. package/dist/src/ecommerce/index.d.ts +2 -0
  118. package/dist/src/ecommerce/index.d.ts.map +1 -1
  119. package/dist/src/featureFlags.d.ts +41 -0
  120. package/dist/src/featureFlags.d.ts.map +1 -0
  121. package/dist/src/index.d.ts +4 -2
  122. package/dist/src/index.d.ts.map +1 -1
  123. package/dist/src/managers/StripeManager.d.ts.map +1 -1
  124. package/dist/src/managers/SubscriptionManager.d.ts +1 -0
  125. package/dist/src/managers/SubscriptionManager.d.ts.map +1 -1
  126. package/dist/src/types/index.d.ts +14 -1
  127. package/dist/src/types/index.d.ts.map +1 -1
  128. package/dist/src/types/subscription.d.ts +47 -1
  129. package/dist/src/types/subscription.d.ts.map +1 -1
  130. package/dist/src/utils/validateConfig.d.ts.map +1 -1
  131. package/dist/stripe-only.js +1 -1
  132. package/dist/stripe-only.mjs +35 -33
  133. package/dist/styles--fxb3lCl.js +1 -0
  134. package/dist/{styles-D4SQkuV3.mjs → styles-DGagylUj.mjs} +53 -51
  135. package/dist/testing/index.js +1 -1
  136. package/dist/testing/index.mjs +1 -1
  137. package/dist/tokenMintValidator-DAjQld0r.mjs +98 -0
  138. package/dist/tokenMintValidator-DNBhoefh.js +4 -0
  139. package/dist/{walletPool-DE-t1wSW.mjs → walletPool-9MylB2QK.mjs} +1 -1
  140. package/dist/walletPool-BjTXX6Vn.js +1 -0
  141. package/package.json +3 -3
  142. package/dist/AutosaveIndicator-Dn_qA2hK.js +0 -1
  143. package/dist/CedrosContext-C2RjHLaQ.js +0 -6
  144. package/dist/CedrosContext-CY6zvjvJ.mjs +0 -2801
  145. package/dist/ChatLogsSection-BH5tLA4T.js +0 -1
  146. package/dist/ComplianceSection-DP2a9-S0.js +0 -1
  147. package/dist/CryptoButton-DpiCnyXE.js +0 -1
  148. package/dist/CustomersSection-CBwy_waO.js +0 -1
  149. package/dist/DisputesSection-BLjIk60n.js +0 -1
  150. package/dist/FAQSection-wNeH0i6Q.js +0 -1
  151. package/dist/ImagesSection-0ZzKlzMJ.js +0 -1
  152. package/dist/InventorySection-zV6lTmue.js +0 -1
  153. package/dist/MessagingSection-B_wdFR0j.js +0 -1
  154. package/dist/OrdersSection-Dw2FX-1d.js +0 -1
  155. package/dist/PaymentSettingsSection-BYF4D-GR.js +0 -1
  156. package/dist/PaymentSettingsSection-EnMxeWjv.mjs +0 -94
  157. package/dist/ReturnsSection-D_pJVxuG.js +0 -1
  158. package/dist/ShippingSection-1DRSTu49.js +0 -1
  159. package/dist/SingleCategorySettings-DwCnBdRf.js +0 -3
  160. package/dist/StorefrontSection-RumGkb3C.js +0 -1
  161. package/dist/SubscriptionsSection-C2aLLn7L.js +0 -1
  162. package/dist/TaxSection-Dt1DnM51.js +0 -1
  163. package/dist/Token22Section-DY3mUwTY.js +0 -1
  164. package/dist/WalletManager-B3UdQ5pQ.js +0 -1
  165. package/dist/WebhooksSection-CKeiJ7Py.js +0 -1
  166. package/dist/configApi-DkduMQg1.js +0 -1
  167. package/dist/index-C0g-JxJk.js +0 -84
  168. package/dist/index-DXnuQp5x.mjs +0 -22128
  169. package/dist/sections-C1NpK7hk.mjs +0 -9
  170. package/dist/sections-DVVSZBhW.js +0 -1
  171. package/dist/styles-BT4bhFey.js +0 -1
  172. package/dist/walletPool-IS7R3MR1.js +0 -1
@@ -1,10 +1,13 @@
1
- import { jsxs as i, jsx as t, Fragment as W } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as r, Fragment as W } from "react/jsx-runtime";
2
2
  import { useState as S, useEffect as j, useMemo as H, useCallback as z } from "react";
3
- import { I as E, F as Q, E as L, k as ee } from "./index-DXnuQp5x.mjs";
4
- import { R as B, i as P, C as Z, a as te } from "./configApi-6XhAJGKX.mjs";
5
- import { u as re } from "./useAutosave-YwMqRzqy.mjs";
6
- import { A as ne } from "./AutosaveIndicator-Bed0-ekg.mjs";
7
- import { S as F } from "./CedrosContext-CY6zvjvJ.mjs";
3
+ import { I as E } from "./sectionIds-DBavltrL.mjs";
4
+ import { E as Q } from "./ErrorBanner-CZXsHi3H.mjs";
5
+ import { R as B, i as P, a as Z, C as L } from "./configApi-BUXZOMWK.mjs";
6
+ import { u as ee } from "./useAutosave-YwMqRzqy.mjs";
7
+ import { A as re } from "./AutosaveIndicator-BEvABoKU.mjs";
8
+ import { F as te } from "./Dropdown-B90Zabxr.mjs";
9
+ import { S as F } from "./tokenMintValidator-DAjQld0r.mjs";
10
+ import { f as ne } from "./dateHelpers-yvPkofYQ.mjs";
8
11
  const ie = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
9
12
  function O(b) {
10
13
  return !b || b.trim() === "" ? { valid: !0 } : ie.test(b.trim()) ? { valid: !0 } : { valid: !1, error: "Invalid Solana address" };
@@ -32,7 +35,7 @@ function oe({
32
35
  }
33
36
  };
34
37
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
35
- /* @__PURE__ */ t("label", { className: "cedros-admin__field-label", children: b }),
38
+ /* @__PURE__ */ r("label", { className: "cedros-admin__field-label", children: b }),
36
39
  /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
37
40
  /* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: [
38
41
  u.map(([e, n]) => /* @__PURE__ */ i(
@@ -54,18 +57,18 @@ function oe({
54
57
  fontWeight: f === e ? 600 : 400
55
58
  },
56
59
  children: [
57
- /* @__PURE__ */ t(
60
+ /* @__PURE__ */ r(
58
61
  "img",
59
62
  {
60
63
  src: n.icon,
61
64
  alt: n.symbol,
62
65
  style: { width: 20, height: 20, borderRadius: "50%" },
63
- onError: (r) => {
64
- r.target.style.display = "none";
66
+ onError: (t) => {
67
+ t.target.style.display = "none";
65
68
  }
66
69
  }
67
70
  ),
68
- /* @__PURE__ */ t("span", { children: n.symbol })
71
+ /* @__PURE__ */ r("span", { children: n.symbol })
69
72
  ]
70
73
  },
71
74
  e
@@ -89,8 +92,8 @@ function oe({
89
92
  fontWeight: k ? 600 : 400
90
93
  },
91
94
  children: [
92
- /* @__PURE__ */ t("span", { style: { fontSize: "1rem" }, children: "+" }),
93
- /* @__PURE__ */ t("span", { children: "Custom" })
95
+ /* @__PURE__ */ r("span", { style: { fontSize: "1rem" }, children: "+" }),
96
+ /* @__PURE__ */ r("span", { children: "Custom" })
94
97
  ]
95
98
  }
96
99
  )
@@ -105,7 +108,7 @@ function oe({
105
108
  border: "1px solid var(--cedros-admin-border, #e5e7eb)"
106
109
  }, children: [
107
110
  /* @__PURE__ */ i("div", { children: [
108
- /* @__PURE__ */ t("label", { style: {
111
+ /* @__PURE__ */ r("label", { style: {
109
112
  display: "block",
110
113
  fontSize: "0.75rem",
111
114
  fontWeight: 500,
@@ -115,7 +118,7 @@ function oe({
115
118
  (() => {
116
119
  const e = O(f);
117
120
  return /* @__PURE__ */ i(W, { children: [
118
- /* @__PURE__ */ t(
121
+ /* @__PURE__ */ r(
119
122
  "input",
120
123
  {
121
124
  type: "text",
@@ -131,19 +134,19 @@ function oe({
131
134
  }
132
135
  }
133
136
  ),
134
- !e.valid && /* @__PURE__ */ t("span", { style: { color: "var(--cedros-admin-error, #dc2626)", fontSize: "0.75rem", marginTop: "0.25rem", display: "block" }, children: e.error })
137
+ !e.valid && /* @__PURE__ */ r("span", { style: { color: "var(--cedros-admin-error, #dc2626)", fontSize: "0.75rem", marginTop: "0.25rem", display: "block" }, children: e.error })
135
138
  ] });
136
139
  })()
137
140
  ] }),
138
141
  /* @__PURE__ */ i("div", { children: [
139
- /* @__PURE__ */ t("label", { style: {
142
+ /* @__PURE__ */ r("label", { style: {
140
143
  display: "block",
141
144
  fontSize: "0.75rem",
142
145
  fontWeight: 500,
143
146
  marginBottom: "0.25rem",
144
147
  color: "var(--cedros-admin-text-muted, #64748b)"
145
148
  }, children: "Token Symbol" }),
146
- /* @__PURE__ */ t(
149
+ /* @__PURE__ */ r(
147
150
  "input",
148
151
  {
149
152
  type: "text",
@@ -157,7 +160,7 @@ function oe({
157
160
  )
158
161
  ] }),
159
162
  /* @__PURE__ */ i("div", { children: [
160
- /* @__PURE__ */ t("label", { style: {
163
+ /* @__PURE__ */ r("label", { style: {
161
164
  display: "block",
162
165
  fontSize: "0.75rem",
163
166
  fontWeight: 500,
@@ -165,7 +168,7 @@ function oe({
165
168
  color: "var(--cedros-admin-text-muted, #64748b)"
166
169
  }, children: "Token Icon URL" }),
167
170
  /* @__PURE__ */ i("div", { style: { display: "flex", gap: "0.5rem", alignItems: "center" }, children: [
168
- /* @__PURE__ */ t(
171
+ /* @__PURE__ */ r(
169
172
  "input",
170
173
  {
171
174
  type: "text",
@@ -177,7 +180,7 @@ function oe({
177
180
  style: { flex: 1 }
178
181
  }
179
182
  ),
180
- p && /* @__PURE__ */ t(
183
+ p && /* @__PURE__ */ r(
181
184
  "img",
182
185
  {
183
186
  src: p,
@@ -195,21 +198,21 @@ function oe({
195
198
  }
196
199
  )
197
200
  ] }),
198
- /* @__PURE__ */ t("div", { style: {
201
+ /* @__PURE__ */ r("div", { style: {
199
202
  fontSize: "0.7rem",
200
203
  color: "var(--cedros-admin-text-muted, #94a3b8)",
201
204
  marginTop: "0.25rem"
202
205
  }, children: "Shown to customers during checkout" })
203
206
  ] }),
204
207
  /* @__PURE__ */ i("div", { children: [
205
- /* @__PURE__ */ t("label", { style: {
208
+ /* @__PURE__ */ r("label", { style: {
206
209
  display: "block",
207
210
  fontSize: "0.75rem",
208
211
  fontWeight: 500,
209
212
  marginBottom: "0.25rem",
210
213
  color: "var(--cedros-admin-text-muted, #64748b)"
211
214
  }, children: "Token Decimals" }),
212
- /* @__PURE__ */ t(
215
+ /* @__PURE__ */ r(
213
216
  "input",
214
217
  {
215
218
  type: "number",
@@ -222,20 +225,20 @@ function oe({
222
225
  style: { width: "100px" }
223
226
  }
224
227
  ),
225
- /* @__PURE__ */ t("div", { style: {
228
+ /* @__PURE__ */ r("div", { style: {
226
229
  fontSize: "0.7rem",
227
230
  color: "var(--cedros-admin-text-muted, #94a3b8)",
228
231
  marginTop: "0.25rem"
229
232
  }, children: "Most SPL tokens use 6 decimals (like USDC)" })
230
233
  ] })
231
234
  ] }),
232
- f && v && /* @__PURE__ */ t("div", { style: {
235
+ f && v && /* @__PURE__ */ r("div", { style: {
233
236
  fontSize: "0.75rem",
234
237
  color: "var(--cedros-admin-text-muted, #64748b)",
235
238
  fontFamily: "monospace",
236
239
  wordBreak: "break-all"
237
240
  }, children: f }),
238
- s && /* @__PURE__ */ t("div", { style: {
241
+ s && /* @__PURE__ */ r("div", { style: {
239
242
  fontSize: "0.75rem",
240
243
  color: "var(--cedros-admin-text-muted, #64748b)",
241
244
  marginTop: "0.25rem"
@@ -252,19 +255,19 @@ function ae({
252
255
  }) {
253
256
  const [d, s] = S(/* @__PURE__ */ new Set()), [l, p] = S(null), [c, y] = S(""), x = Array.isArray(f) ? f : [], R = (e) => {
254
257
  s((n) => {
255
- const r = new Set(n);
256
- return r.has(e) ? r.delete(e) : r.add(e), r;
258
+ const t = new Set(n);
259
+ return t.has(e) ? t.delete(e) : t.add(e), t;
257
260
  });
258
261
  }, u = () => {
259
262
  h([...x, ""]), p(x.length), y("");
260
263
  }, I = (e, n) => {
261
- const r = [...x];
262
- r[e] = n, h(r);
264
+ const t = [...x];
265
+ t[e] = n, h(t);
263
266
  }, v = (e) => {
264
- const n = x.filter((r, g) => g !== e);
265
- h(n), s((r) => {
267
+ const n = x.filter((t, g) => g !== e);
268
+ h(n), s((t) => {
266
269
  const g = /* @__PURE__ */ new Set();
267
- return r.forEach((_) => {
270
+ return t.forEach((_) => {
268
271
  _ < e ? g.add(_) : _ > e && g.add(_ - 1);
269
272
  }), g;
270
273
  });
@@ -277,7 +280,7 @@ function ae({
277
280
  };
278
281
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
279
282
  /* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: "0.5rem" }, children: [
280
- /* @__PURE__ */ t("label", { className: "cedros-admin__field-label", style: { marginBottom: 0 }, children: b }),
283
+ /* @__PURE__ */ r("label", { className: "cedros-admin__field-label", style: { marginBottom: 0 }, children: b }),
281
284
  /* @__PURE__ */ i(
282
285
  "button",
283
286
  {
@@ -304,7 +307,7 @@ function ae({
304
307
  )
305
308
  ] }),
306
309
  /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
307
- x.length === 0 && /* @__PURE__ */ t("div", { style: {
310
+ x.length === 0 && /* @__PURE__ */ r("div", { style: {
308
311
  padding: "1rem",
309
312
  textAlign: "center",
310
313
  color: "var(--cedros-admin-text-muted, #64748b)",
@@ -313,8 +316,8 @@ function ae({
313
316
  borderRadius: "0.5rem"
314
317
  }, children: 'No items. Click "Add" to create one.' }),
315
318
  x.map((e, n) => {
316
- const r = d.has(n), g = l === n, _ = e === B;
317
- return /* @__PURE__ */ t(
319
+ const t = d.has(n), g = l === n, _ = e === B;
320
+ return /* @__PURE__ */ r(
318
321
  "div",
319
322
  {
320
323
  style: {
@@ -327,7 +330,7 @@ function ae({
327
330
  border: "1px solid var(--cedros-admin-border, #e5e7eb)"
328
331
  },
329
332
  children: g ? /* @__PURE__ */ i(W, { children: [
330
- /* @__PURE__ */ t(
333
+ /* @__PURE__ */ r(
331
334
  "input",
332
335
  {
333
336
  type: "text",
@@ -342,7 +345,7 @@ function ae({
342
345
  }
343
346
  }
344
347
  ),
345
- /* @__PURE__ */ t(
348
+ /* @__PURE__ */ r(
346
349
  "button",
347
350
  {
348
351
  type: "button",
@@ -359,7 +362,7 @@ function ae({
359
362
  children: E.check
360
363
  }
361
364
  ),
362
- /* @__PURE__ */ t(
365
+ /* @__PURE__ */ r(
363
366
  "button",
364
367
  {
365
368
  type: "button",
@@ -377,15 +380,15 @@ function ae({
377
380
  }
378
381
  )
379
382
  ] }) : /* @__PURE__ */ i(W, { children: [
380
- /* @__PURE__ */ t("div", { style: {
383
+ /* @__PURE__ */ r("div", { style: {
381
384
  flex: 1,
382
385
  fontFamily: "monospace",
383
386
  fontSize: "0.75rem",
384
387
  overflow: "hidden",
385
388
  textOverflow: "ellipsis",
386
389
  whiteSpace: "nowrap"
387
- }, children: r && !_ ? e : _ ? "[REDACTED]" : "••••••••••••••••••••" }),
388
- /* @__PURE__ */ t(
390
+ }, children: t && !_ ? e : _ ? "[REDACTED]" : "••••••••••••••••••••" }),
391
+ /* @__PURE__ */ r(
389
392
  "button",
390
393
  {
391
394
  type: "button",
@@ -399,11 +402,11 @@ function ae({
399
402
  opacity: o || _ ? 0.5 : 1,
400
403
  color: "var(--cedros-admin-text-muted, #64748b)"
401
404
  },
402
- title: r ? "Hide" : "Show",
403
- children: r ? E.eyeOff : E.eye
405
+ title: t ? "Hide" : "Show",
406
+ children: t ? E.eyeOff : E.eye
404
407
  }
405
408
  ),
406
- /* @__PURE__ */ t(
409
+ /* @__PURE__ */ r(
407
410
  "button",
408
411
  {
409
412
  type: "button",
@@ -421,7 +424,7 @@ function ae({
421
424
  children: E.settings
422
425
  }
423
426
  ),
424
- /* @__PURE__ */ t(
427
+ /* @__PURE__ */ r(
425
428
  "button",
426
429
  {
427
430
  type: "button",
@@ -445,7 +448,7 @@ function ae({
445
448
  );
446
449
  })
447
450
  ] }),
448
- w && /* @__PURE__ */ t("div", { style: {
451
+ w && /* @__PURE__ */ r("div", { style: {
449
452
  fontSize: "0.75rem",
450
453
  color: "var(--cedros-admin-text-muted, #64748b)",
451
454
  marginTop: "0.5rem"
@@ -477,64 +480,64 @@ function de({
477
480
  const e = { ...d };
478
481
  for (const n of Object.keys(e))
479
482
  if (P(b, n)) {
480
- const r = h[n], g = e[n];
481
- (g === B || g === r) && (e[n] = B);
483
+ const t = h[n], g = e[n];
484
+ (g === B || g === t) && (e[n] = B);
482
485
  }
483
486
  return e;
484
487
  }, [d, h, b]), y = H(() => {
485
488
  const e = d.token_mint;
486
489
  return typeof e != "string" || !e ? !1 : !O(e).valid;
487
- }, [d]), { status: x, error: R } = re({
490
+ }, [d]), { status: x, error: R } = ee({
488
491
  data: c,
489
492
  onSave: w,
490
493
  debounceMs: 1500,
491
494
  enabled: !y
492
495
  }), u = z((e, n) => {
493
- s((r) => ({ ...r, [e]: n }));
496
+ s((t) => ({ ...t, [e]: n }));
494
497
  }, []), I = z((e) => {
495
498
  p((n) => {
496
- const r = new Set(n);
497
- return r.has(e) ? r.delete(e) : r.add(e), r;
499
+ const t = new Set(n);
500
+ return t.has(e) ? t.delete(e) : t.add(e), t;
498
501
  });
499
- }, []), v = (e) => e ? /* @__PURE__ */ t("div", { style: {
502
+ }, []), v = (e) => e ? /* @__PURE__ */ r("div", { style: {
500
503
  fontSize: "0.75rem",
501
504
  color: "var(--cedros-admin-text-muted, #64748b)",
502
505
  marginTop: "0.25rem"
503
506
  }, children: e }) : null, A = (e, n) => {
504
- const r = q(b, e, h[e] ?? n);
505
- if (r.type === "dropdown" && r.options)
506
- return /* @__PURE__ */ t(
507
- Q,
507
+ const t = q(b, e, h[e] ?? n);
508
+ if (t.type === "dropdown" && t.options)
509
+ return /* @__PURE__ */ r(
510
+ te,
508
511
  {
509
512
  value: n,
510
513
  onChange: (a) => u(e, a),
511
- options: r.options.map((a) => ({ value: a, label: a })),
512
- label: r.label,
513
- description: r.description,
514
+ options: t.options.map((a) => ({ value: a, label: a })),
515
+ label: t.label,
516
+ description: t.description,
514
517
  disabled: o
515
518
  }
516
519
  );
517
- if (r.type === "token_mint")
518
- return /* @__PURE__ */ t(
520
+ if (t.type === "token_mint")
521
+ return /* @__PURE__ */ r(
519
522
  oe,
520
523
  {
521
- label: r.label,
524
+ label: t.label,
522
525
  value: n,
523
526
  onChange: (a) => u(e, a),
524
527
  decimals: d.token_decimals ?? 6,
525
528
  onDecimalsChange: (a) => u("token_decimals", a),
526
529
  disabled: o,
527
- description: r.description,
530
+ description: t.description,
528
531
  customSymbol: d.custom_token_symbol || "",
529
532
  customIcon: d.custom_token_icon || "",
530
533
  onCustomSymbolChange: (a) => u("custom_token_symbol", a),
531
534
  onCustomIconChange: (a) => u("custom_token_icon", a)
532
535
  }
533
536
  );
534
- if (r.type === "toggle")
537
+ if (t.type === "toggle")
535
538
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
536
539
  /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
537
- /* @__PURE__ */ t(
540
+ /* @__PURE__ */ r(
538
541
  "button",
539
542
  {
540
543
  type: "button",
@@ -554,7 +557,7 @@ function de({
554
557
  opacity: o ? 0.5 : 1,
555
558
  flexShrink: 0
556
559
  },
557
- children: /* @__PURE__ */ t(
560
+ children: /* @__PURE__ */ r(
558
561
  "span",
559
562
  {
560
563
  style: {
@@ -572,16 +575,16 @@ function de({
572
575
  )
573
576
  }
574
577
  ),
575
- /* @__PURE__ */ t("span", { className: "cedros-admin__field-label", style: { marginBottom: 0 }, children: r.label })
578
+ /* @__PURE__ */ r("span", { className: "cedros-admin__field-label", style: { marginBottom: 0 }, children: t.label })
576
579
  ] }),
577
- v(r.description)
580
+ v(t.description)
578
581
  ] });
579
- if (r.type === "solana_address") {
582
+ if (t.type === "solana_address") {
580
583
  const a = n || "", C = O(a);
581
584
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
582
- /* @__PURE__ */ t("label", { className: "cedros-admin__field-label", children: r.label }),
585
+ /* @__PURE__ */ r("label", { className: "cedros-admin__field-label", children: t.label }),
583
586
  /* @__PURE__ */ i("div", { style: { position: "relative" }, children: [
584
- /* @__PURE__ */ t(
587
+ /* @__PURE__ */ r(
585
588
  "input",
586
589
  {
587
590
  type: "text",
@@ -599,7 +602,7 @@ function de({
599
602
  }
600
603
  }
601
604
  ),
602
- a && C.valid && /* @__PURE__ */ t(
605
+ a && C.valid && /* @__PURE__ */ r(
603
606
  "span",
604
607
  {
605
608
  style: {
@@ -615,14 +618,14 @@ function de({
615
618
  }
616
619
  )
617
620
  ] }),
618
- !C.valid && /* @__PURE__ */ t("span", { style: { color: "var(--cedros-admin-error, #dc2626)", fontSize: "0.75rem", marginTop: "0.25rem", display: "block" }, children: C.error }),
619
- v(r.description)
621
+ !C.valid && /* @__PURE__ */ r("span", { style: { color: "var(--cedros-admin-error, #dc2626)", fontSize: "0.75rem", marginTop: "0.25rem", display: "block" }, children: C.error }),
622
+ v(t.description)
620
623
  ] });
621
624
  }
622
- if (r.type === "boolean")
625
+ if (t.type === "boolean")
623
626
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
624
627
  /* @__PURE__ */ i("label", { className: "cedros-admin__checkbox", children: [
625
- /* @__PURE__ */ t(
628
+ /* @__PURE__ */ r(
626
629
  "input",
627
630
  {
628
631
  type: "checkbox",
@@ -631,21 +634,21 @@ function de({
631
634
  disabled: o
632
635
  }
633
636
  ),
634
- r.label
637
+ t.label
635
638
  ] }),
636
- v(r.description)
639
+ v(t.description)
637
640
  ] });
638
- if (r.type === "number")
641
+ if (t.type === "number")
639
642
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
640
643
  /* @__PURE__ */ i("label", { className: "cedros-admin__field-label", children: [
641
- r.label,
642
- r.unit && /* @__PURE__ */ i("span", { className: "cedros-admin__field-unit", children: [
644
+ t.label,
645
+ t.unit && /* @__PURE__ */ i("span", { className: "cedros-admin__field-unit", children: [
643
646
  " (",
644
- r.unit,
647
+ t.unit,
645
648
  ")"
646
649
  ] })
647
650
  ] }),
648
- /* @__PURE__ */ t(
651
+ /* @__PURE__ */ r(
649
652
  "input",
650
653
  {
651
654
  type: "number",
@@ -655,24 +658,24 @@ function de({
655
658
  disabled: o
656
659
  }
657
660
  ),
658
- v(r.description)
661
+ v(t.description)
659
662
  ] });
660
- if (r.type === "secret_array")
661
- return /* @__PURE__ */ t(
663
+ if (t.type === "secret_array")
664
+ return /* @__PURE__ */ r(
662
665
  ae,
663
666
  {
664
- label: r.label,
667
+ label: t.label,
665
668
  value: n,
666
669
  onChange: (a) => u(e, a),
667
670
  disabled: o,
668
- description: r.description
671
+ description: t.description
669
672
  }
670
673
  );
671
- if (r.type === "array") {
674
+ if (t.type === "array") {
672
675
  const a = n;
673
676
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
674
- /* @__PURE__ */ t("label", { className: "cedros-admin__field-label", children: r.label }),
675
- /* @__PURE__ */ t(
677
+ /* @__PURE__ */ r("label", { className: "cedros-admin__field-label", children: t.label }),
678
+ /* @__PURE__ */ r(
676
679
  "textarea",
677
680
  {
678
681
  className: "cedros-admin__textarea",
@@ -685,13 +688,13 @@ function de({
685
688
  disabled: o
686
689
  }
687
690
  ),
688
- v(r.description)
691
+ v(t.description)
689
692
  ] });
690
693
  }
691
- if (r.type === "object")
694
+ if (t.type === "object")
692
695
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
693
- /* @__PURE__ */ t("label", { className: "cedros-admin__field-label", children: r.label }),
694
- /* @__PURE__ */ t(
696
+ /* @__PURE__ */ r("label", { className: "cedros-admin__field-label", children: t.label }),
697
+ /* @__PURE__ */ r(
695
698
  "textarea",
696
699
  {
697
700
  className: "cedros-admin__textarea cedros-admin__textarea--mono",
@@ -706,27 +709,27 @@ function de({
706
709
  disabled: o
707
710
  }
708
711
  ),
709
- v(r.description)
712
+ v(t.description)
710
713
  ] });
711
- const g = l.has(e), _ = r.isSecret && !g && n === B ? B : n;
714
+ const g = l.has(e), _ = t.isSecret && !g && n === B ? B : n;
712
715
  return /* @__PURE__ */ i("div", { className: "cedros-admin__field", children: [
713
716
  /* @__PURE__ */ i("label", { className: "cedros-admin__field-label", children: [
714
- r.label,
715
- r.isSecret && /* @__PURE__ */ t("span", { className: "cedros-admin__field-secret", children: " (secret)" })
717
+ t.label,
718
+ t.isSecret && /* @__PURE__ */ r("span", { className: "cedros-admin__field-secret", children: " (secret)" })
716
719
  ] }),
717
720
  /* @__PURE__ */ i("div", { className: "cedros-admin__input-group", children: [
718
- /* @__PURE__ */ t(
721
+ /* @__PURE__ */ r(
719
722
  "input",
720
723
  {
721
- type: r.isSecret && !g ? "password" : "text",
724
+ type: t.isSecret && !g ? "password" : "text",
722
725
  className: "cedros-admin__input",
723
726
  value: _,
724
727
  onChange: (a) => u(e, a.target.value),
725
728
  disabled: o,
726
- placeholder: r.isSecret ? "••••••••" : ""
729
+ placeholder: t.isSecret ? "••••••••" : ""
727
730
  }
728
731
  ),
729
- r.isSecret && /* @__PURE__ */ t(
732
+ t.isSecret && /* @__PURE__ */ r(
730
733
  "button",
731
734
  {
732
735
  type: "button",
@@ -738,25 +741,25 @@ function de({
738
741
  }
739
742
  )
740
743
  ] }),
741
- v(r.description)
744
+ v(t.description)
742
745
  ] });
743
746
  }, k = Object.keys(d), N = (e) => {
744
747
  const n = q(b, e, h[e] ?? d[e]);
745
748
  if (n.hidden || n.showWhen && !d[n.showWhen])
746
749
  return !1;
747
750
  if (e === "token_decimals") {
748
- const r = d.token_mint;
749
- if (r && F[r])
751
+ const t = d.token_mint;
752
+ if (t && F[t])
750
753
  return !1;
751
754
  }
752
755
  return !0;
753
756
  };
754
757
  return /* @__PURE__ */ i("div", { className: "cedros-admin__config-editor", children: [
755
- /* @__PURE__ */ t("div", { className: "cedros-admin__config-fields", children: k.filter(N).map((e) => /* @__PURE__ */ t("div", { className: "cedros-admin__config-field", children: A(e, d[e]) }, e)) }),
756
- /* @__PURE__ */ t("div", { className: "cedros-admin__config-actions", children: /* @__PURE__ */ t("div", { className: "cedros-admin__autosave-status", children: /* @__PURE__ */ t(ne, { status: x, error: R }) }) })
758
+ /* @__PURE__ */ r("div", { className: "cedros-admin__config-fields", children: k.filter(N).map((e) => /* @__PURE__ */ r("div", { className: "cedros-admin__config-field", children: A(e, d[e]) }, e)) }),
759
+ /* @__PURE__ */ r("div", { className: "cedros-admin__config-actions", children: /* @__PURE__ */ r("div", { className: "cedros-admin__autosave-status", children: /* @__PURE__ */ r(re, { status: x, error: R }) }) })
757
760
  ] });
758
761
  }
759
- function he({
762
+ function ye({
760
763
  serverUrl: b,
761
764
  apiKey: f,
762
765
  authManager: h,
@@ -767,9 +770,9 @@ function he({
767
770
  showEnabledToggle: l = !1
768
771
  }) {
769
772
  const p = H(
770
- () => new te(b, void 0, h),
773
+ () => new L(b, void 0, h),
771
774
  [b, h]
772
- ), [c, y] = S(null), [x, R] = S([]), [u, I] = S(!1), [v, A] = S(!0), [k, N] = S(null), [e, n] = S(null), [r, g] = S(!1), _ = Z[o] || { label: o, icon: "⚙️" }, a = w || _.label, C = d || _.description, V = z(async () => {
775
+ ), [c, y] = S(null), [x, R] = S([]), [u, I] = S(!1), [v, A] = S(!0), [k, N] = S(null), [e, n] = S(null), [t, g] = S(!1), _ = Z[o] || { label: o, icon: "⚙️" }, a = w || _.label, C = d || _.description, V = z(async () => {
773
776
  A(!0), N(null);
774
777
  try {
775
778
  const m = await p.getConfig(o, !0);
@@ -808,24 +811,24 @@ function he({
808
811
  G(!1);
809
812
  }
810
813
  }, [c, p, o, s, M]), T = !!c?.config[s];
811
- return v && !c ? /* @__PURE__ */ t("div", { className: "cedros-admin__section", children: /* @__PURE__ */ i("div", { className: "cedros-admin__loading", children: [
814
+ return v && !c ? /* @__PURE__ */ r("div", { className: "cedros-admin__section", children: /* @__PURE__ */ i("div", { className: "cedros-admin__loading", children: [
812
815
  E.loading,
813
816
  " Loading ",
814
817
  a,
815
818
  " settings..."
816
819
  ] }) }) : /* @__PURE__ */ i("div", { className: "cedros-admin__section", children: [
817
- /* @__PURE__ */ t(L, { message: k, onRetry: V }),
820
+ /* @__PURE__ */ r(Q, { message: k, onRetry: V }),
818
821
  /* @__PURE__ */ i("div", { className: "cedros-admin__section-header", children: [
819
822
  /* @__PURE__ */ i("div", { children: [
820
823
  /* @__PURE__ */ i("h3", { className: "cedros-admin__section-title", children: [
821
- /* @__PURE__ */ t("span", { style: { marginRight: "0.5rem" }, children: _.icon }),
824
+ /* @__PURE__ */ r("span", { style: { marginRight: "0.5rem" }, children: _.icon }),
822
825
  a
823
826
  ] }),
824
- C && /* @__PURE__ */ t("p", { className: "cedros-admin__text-muted", style: { marginTop: "0.25rem" }, children: C })
827
+ C && /* @__PURE__ */ r("p", { className: "cedros-admin__text-muted", style: { marginTop: "0.25rem" }, children: C })
825
828
  ] }),
826
829
  l && c && /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
827
- /* @__PURE__ */ t("span", { style: { fontSize: "0.875rem", color: T ? "var(--cedros-admin-text, #171717)" : "var(--cedros-admin-muted, #737373)" }, children: T ? "Enabled" : "Disabled" }),
828
- /* @__PURE__ */ t(
830
+ /* @__PURE__ */ r("span", { style: { fontSize: "0.875rem", color: T ? "var(--cedros-admin-text, #171717)" : "var(--cedros-admin-muted, #737373)" }, children: T ? "Enabled" : "Disabled" }),
831
+ /* @__PURE__ */ r(
829
832
  "button",
830
833
  {
831
834
  type: "button",
@@ -845,7 +848,7 @@ function he({
845
848
  flexShrink: 0,
846
849
  opacity: M ? 0.6 : 1
847
850
  },
848
- children: /* @__PURE__ */ t(
851
+ children: /* @__PURE__ */ r(
849
852
  "span",
850
853
  {
851
854
  style: {
@@ -875,7 +878,7 @@ function he({
875
878
  pointerEvents: l && !T ? "none" : "auto"
876
879
  },
877
880
  children: [
878
- l && !T && /* @__PURE__ */ t(
881
+ l && !T && /* @__PURE__ */ r(
879
882
  "div",
880
883
  {
881
884
  style: {
@@ -891,7 +894,7 @@ function he({
891
894
  children: "This payment method is disabled. Enable it using the toggle above to accept payments."
892
895
  }
893
896
  ),
894
- /* @__PURE__ */ t(
897
+ /* @__PURE__ */ r(
895
898
  de,
896
899
  {
897
900
  category: c.category,
@@ -905,23 +908,23 @@ function he({
905
908
  }
906
909
  ),
907
910
  u && /* @__PURE__ */ i("div", { className: "cedros-admin__settings-history", style: { marginTop: "1.5rem" }, children: [
908
- /* @__PURE__ */ t("h4", { style: { marginBottom: "0.75rem", fontWeight: 600 }, children: "Change History" }),
909
- x.length === 0 ? /* @__PURE__ */ t("p", { className: "cedros-admin__text-muted", children: "No history entries found." }) : /* @__PURE__ */ t("div", { className: "cedros-admin__settings-timeline", children: x.map((m) => /* @__PURE__ */ i("div", { className: "cedros-admin__settings-timeline-item", children: [
910
- /* @__PURE__ */ t("div", { className: "cedros-admin__settings-timeline-dot" }),
911
+ /* @__PURE__ */ r("h4", { style: { marginBottom: "0.75rem", fontWeight: 600 }, children: "Change History" }),
912
+ x.length === 0 ? /* @__PURE__ */ r("p", { className: "cedros-admin__text-muted", children: "No history entries found." }) : /* @__PURE__ */ r("div", { className: "cedros-admin__settings-timeline", children: x.map((m) => /* @__PURE__ */ i("div", { className: "cedros-admin__settings-timeline-item", children: [
913
+ /* @__PURE__ */ r("div", { className: "cedros-admin__settings-timeline-dot" }),
911
914
  /* @__PURE__ */ i("div", { className: "cedros-admin__settings-timeline-content", children: [
912
915
  /* @__PURE__ */ i("div", { className: "cedros-admin__settings-timeline-header", children: [
913
- /* @__PURE__ */ t("code", { children: m.configKey }),
914
- /* @__PURE__ */ t("span", { className: `cedros-admin__badge cedros-admin__badge--${m.action.toLowerCase()}`, children: m.action })
916
+ /* @__PURE__ */ r("code", { children: m.configKey }),
917
+ /* @__PURE__ */ r("span", { className: `cedros-admin__badge cedros-admin__badge--${m.action.toLowerCase()}`, children: m.action })
915
918
  ] }),
916
919
  /* @__PURE__ */ i("div", { className: "cedros-admin__settings-timeline-meta", children: [
917
- ee(m.changedAt),
920
+ ne(m.changedAt),
918
921
  " by ",
919
922
  m.changedBy
920
923
  ] })
921
924
  ] })
922
925
  ] }, m.id)) })
923
926
  ] }),
924
- e && /* @__PURE__ */ t(
927
+ e && /* @__PURE__ */ r(
925
928
  "div",
926
929
  {
927
930
  style: {
@@ -933,15 +936,15 @@ function he({
933
936
  },
934
937
  children: /* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start" }, children: [
935
938
  /* @__PURE__ */ i("div", { style: { flex: 1 }, children: [
936
- /* @__PURE__ */ t("div", { style: {
939
+ /* @__PURE__ */ r("div", { style: {
937
940
  fontWeight: 600,
938
941
  color: e.valid ? "var(--cedros-admin-success, #16a34a)" : "var(--cedros-admin-error, #dc2626)",
939
942
  marginBottom: e.errors.length > 0 || e.warnings.length > 0 ? "0.5rem" : 0
940
943
  }, children: e.valid ? "✓ Configuration is valid" : "✗ Validation failed" }),
941
- e.errors.length > 0 && /* @__PURE__ */ t("ul", { style: { margin: 0, paddingLeft: "1.25rem", color: "var(--cedros-admin-error, #dc2626)", fontSize: "0.875rem" }, children: e.errors.map((m, D) => /* @__PURE__ */ t("li", { children: m }, D)) }),
942
- e.warnings.length > 0 && /* @__PURE__ */ t("ul", { style: { margin: e.errors.length > 0 ? "0.5rem 0 0" : 0, paddingLeft: "1.25rem", color: "var(--cedros-admin-warning, #ca8a04)", fontSize: "0.875rem" }, children: e.warnings.map((m, D) => /* @__PURE__ */ t("li", { children: m }, D)) })
944
+ e.errors.length > 0 && /* @__PURE__ */ r("ul", { style: { margin: 0, paddingLeft: "1.25rem", color: "var(--cedros-admin-error, #dc2626)", fontSize: "0.875rem" }, children: e.errors.map((m, D) => /* @__PURE__ */ r("li", { children: m }, D)) }),
945
+ e.warnings.length > 0 && /* @__PURE__ */ r("ul", { style: { margin: e.errors.length > 0 ? "0.5rem 0 0" : 0, paddingLeft: "1.25rem", color: "var(--cedros-admin-warning, #ca8a04)", fontSize: "0.875rem" }, children: e.warnings.map((m, D) => /* @__PURE__ */ r("li", { children: m }, D)) })
943
946
  ] }),
944
- /* @__PURE__ */ t(
947
+ /* @__PURE__ */ r(
945
948
  "button",
946
949
  {
947
950
  type: "button",
@@ -963,7 +966,7 @@ function he({
963
966
  }
964
967
  ),
965
968
  /* @__PURE__ */ i("div", { style: { marginTop: "1.5rem", display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
966
- /* @__PURE__ */ t(
969
+ /* @__PURE__ */ r(
967
970
  "button",
968
971
  {
969
972
  type: "button",
@@ -972,12 +975,12 @@ function he({
972
975
  children: u ? "Hide History" : "History"
973
976
  }
974
977
  ),
975
- /* @__PURE__ */ t(
978
+ /* @__PURE__ */ r(
976
979
  "button",
977
980
  {
978
981
  type: "button",
979
982
  className: "cedros-admin__button cedros-admin__button--ghost cedros-admin__button--sm",
980
- disabled: r || !c,
983
+ disabled: t || !c,
981
984
  onClick: async () => {
982
985
  if (c) {
983
986
  g(!0), n(null);
@@ -995,12 +998,12 @@ function he({
995
998
  }
996
999
  }
997
1000
  },
998
- children: r ? "Validating..." : "Validate"
1001
+ children: t ? "Validating..." : "Validate"
999
1002
  }
1000
1003
  )
1001
1004
  ] })
1002
1005
  ] });
1003
1006
  }
1004
1007
  export {
1005
- he as S
1008
+ ye as S
1006
1009
  };