@cedros/login-react 0.0.36 → 0.0.38

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 (102) hide show
  1. package/dist/{AuthenticationSettings-DIVk0OP8.js → AuthenticationSettings-BWfMzQ30.js} +24 -24
  2. package/dist/{AuthenticationSettings-DIVk0OP8.js.map → AuthenticationSettings-BWfMzQ30.js.map} +1 -1
  3. package/dist/{AuthenticationSettings-C-aYDXNH.cjs → AuthenticationSettings-CaNdnqL2.cjs} +1 -1
  4. package/dist/{AuthenticationSettings-C-aYDXNH.cjs.map → AuthenticationSettings-CaNdnqL2.cjs.map} +1 -1
  5. package/dist/{AuthenticationSettings-CoTic-d_.cjs → AuthenticationSettings-REAsemKP.cjs} +1 -1
  6. package/dist/{AuthenticationSettings-CoTic-d_.cjs.map → AuthenticationSettings-REAsemKP.cjs.map} +1 -1
  7. package/dist/{AuthenticationSettings-CsPbxwP7.js → AuthenticationSettings-pR8sUc8u.js} +1 -1
  8. package/dist/{AuthenticationSettings-CsPbxwP7.js.map → AuthenticationSettings-pR8sUc8u.js.map} +1 -1
  9. package/dist/{AutosaveStatus-f-jw25Ay.js → AutosaveStatus-Bgts5i6l.js} +83 -72
  10. package/dist/AutosaveStatus-Bgts5i6l.js.map +1 -0
  11. package/dist/{AutosaveStatus-DGNI4lXn.cjs → AutosaveStatus-DNK2vjyX.cjs} +1 -1
  12. package/dist/AutosaveStatus-DNK2vjyX.cjs.map +1 -0
  13. package/dist/{CreditSystemSettings-BNkvsgsk.cjs → CreditSystemSettings-BP-DMr-u.cjs} +1 -1
  14. package/dist/{CreditSystemSettings-BNkvsgsk.cjs.map → CreditSystemSettings-BP-DMr-u.cjs.map} +1 -1
  15. package/dist/{CreditSystemSettings-C6ed3yp7.js → CreditSystemSettings-CLKgkXHi.js} +1 -1
  16. package/dist/{CreditSystemSettings-C6ed3yp7.js.map → CreditSystemSettings-CLKgkXHi.js.map} +1 -1
  17. package/dist/{CreditSystemSettings-uinhzoha.js → CreditSystemSettings-DBo-z1ti.js} +1 -1
  18. package/dist/{CreditSystemSettings-uinhzoha.js.map → CreditSystemSettings-DBo-z1ti.js.map} +1 -1
  19. package/dist/{CreditSystemSettings-DM9ep1TF.cjs → CreditSystemSettings-OHes0bEe.cjs} +1 -1
  20. package/dist/{CreditSystemSettings-DM9ep1TF.cjs.map → CreditSystemSettings-OHes0bEe.cjs.map} +1 -1
  21. package/dist/{EmailRegisterForm-CCEuQA-w.js → EmailRegisterForm-BiisUR7P.js} +1 -1
  22. package/dist/{EmailRegisterForm-CCEuQA-w.js.map → EmailRegisterForm-BiisUR7P.js.map} +1 -1
  23. package/dist/{EmailRegisterForm-B_TiJkD6.cjs → EmailRegisterForm-CBzHZxvg.cjs} +1 -1
  24. package/dist/{EmailRegisterForm-B_TiJkD6.cjs.map → EmailRegisterForm-CBzHZxvg.cjs.map} +1 -1
  25. package/dist/{EmailSettings-BKuXy8sc.js → EmailSettings-JKyF5uqz.js} +1 -1
  26. package/dist/{EmailSettings-BKuXy8sc.js.map → EmailSettings-JKyF5uqz.js.map} +1 -1
  27. package/dist/{EmailSettings-BAuQtEfM.js → EmailSettings-j1TW9Nph.js} +1 -1
  28. package/dist/{EmailSettings-BAuQtEfM.js.map → EmailSettings-j1TW9Nph.js.map} +1 -1
  29. package/dist/{EmailSettings-BF5EiPl9.cjs → EmailSettings-kqzTquHb.cjs} +1 -1
  30. package/dist/{EmailSettings-BF5EiPl9.cjs.map → EmailSettings-kqzTquHb.cjs.map} +1 -1
  31. package/dist/{EmailSettings-BC0f1PCI.cjs → EmailSettings-lrl43m3p.cjs} +1 -1
  32. package/dist/{EmailSettings-BC0f1PCI.cjs.map → EmailSettings-lrl43m3p.cjs.map} +1 -1
  33. package/dist/{EmbeddedWalletSettings-BRjt2PAj.cjs → EmbeddedWalletSettings-1ERxP6--.cjs} +1 -1
  34. package/dist/{EmbeddedWalletSettings-BRjt2PAj.cjs.map → EmbeddedWalletSettings-1ERxP6--.cjs.map} +1 -1
  35. package/dist/{EmbeddedWalletSettings-Dmi-EQ7W.js → EmbeddedWalletSettings-Bln1PHH4.js} +1 -1
  36. package/dist/{EmbeddedWalletSettings-Dmi-EQ7W.js.map → EmbeddedWalletSettings-Bln1PHH4.js.map} +1 -1
  37. package/dist/{EmbeddedWalletSettings-C27X9He2.js → EmbeddedWalletSettings-_45K-0PV.js} +1 -1
  38. package/dist/{EmbeddedWalletSettings-C27X9He2.js.map → EmbeddedWalletSettings-_45K-0PV.js.map} +1 -1
  39. package/dist/{EmbeddedWalletSettings-CJY39UZN.cjs → EmbeddedWalletSettings-tg6BTW4F.cjs} +1 -1
  40. package/dist/{EmbeddedWalletSettings-CJY39UZN.cjs.map → EmbeddedWalletSettings-tg6BTW4F.cjs.map} +1 -1
  41. package/dist/{GoogleLoginButton-BDCbxoCB.cjs → GoogleLoginButton-JtRViYWS.cjs} +1 -1
  42. package/dist/GoogleLoginButton-JtRViYWS.cjs.map +1 -0
  43. package/dist/{GoogleLoginButton-6ip-vudk.js → GoogleLoginButton-qf4A_A3G.js} +6 -6
  44. package/dist/GoogleLoginButton-qf4A_A3G.js.map +1 -0
  45. package/dist/{ServerSettings-CZfBdMxG.js → ServerSettings-BGI3YP_z.js} +1 -1
  46. package/dist/{ServerSettings-CZfBdMxG.js.map → ServerSettings-BGI3YP_z.js.map} +1 -1
  47. package/dist/{ServerSettings-BT9weFPz.js → ServerSettings-D2sqqBMZ.js} +1 -1
  48. package/dist/{ServerSettings-BT9weFPz.js.map → ServerSettings-D2sqqBMZ.js.map} +1 -1
  49. package/dist/{ServerSettings-CKfiLfXi.cjs → ServerSettings-DBc7opXq.cjs} +1 -1
  50. package/dist/{ServerSettings-CKfiLfXi.cjs.map → ServerSettings-DBc7opXq.cjs.map} +1 -1
  51. package/dist/{ServerSettings-rHrVN8O8.cjs → ServerSettings-etuaUiXh.cjs} +1 -1
  52. package/dist/{ServerSettings-rHrVN8O8.cjs.map → ServerSettings-etuaUiXh.cjs.map} +1 -1
  53. package/dist/{WebhookSettings-ufiGTmbG.js → WebhookSettings-B0_D5YIz.js} +1 -1
  54. package/dist/{WebhookSettings-ufiGTmbG.js.map → WebhookSettings-B0_D5YIz.js.map} +1 -1
  55. package/dist/{WebhookSettings-DnLk97Mr.cjs → WebhookSettings-BHgVRCin.cjs} +1 -1
  56. package/dist/{WebhookSettings-DnLk97Mr.cjs.map → WebhookSettings-BHgVRCin.cjs.map} +1 -1
  57. package/dist/{WebhookSettings-DXjnq-c7.cjs → WebhookSettings-CD8gptC3.cjs} +1 -1
  58. package/dist/{WebhookSettings-DXjnq-c7.cjs.map → WebhookSettings-CD8gptC3.cjs.map} +1 -1
  59. package/dist/{WebhookSettings-Bgld6D_T.js → WebhookSettings-CHe_D4Bd.js} +1 -1
  60. package/dist/{WebhookSettings-Bgld6D_T.js.map → WebhookSettings-CHe_D4Bd.js.map} +1 -1
  61. package/dist/admin-only.cjs +1 -1
  62. package/dist/admin-only.js +1 -1
  63. package/dist/email-only.cjs +1 -1
  64. package/dist/email-only.d.ts +3 -2
  65. package/dist/email-only.js +2 -2
  66. package/dist/google-only.cjs +1 -1
  67. package/dist/google-only.d.ts +5 -4
  68. package/dist/google-only.js +2 -2
  69. package/dist/index.cjs +12 -12
  70. package/dist/index.cjs.map +1 -1
  71. package/dist/index.d.ts +70 -4
  72. package/dist/index.js +2427 -2231
  73. package/dist/index.js.map +1 -1
  74. package/dist/login-react.css +1 -1
  75. package/dist/{plugin-BbExid4E.js → plugin-DD07LDez.js} +1 -1
  76. package/dist/{plugin-BbExid4E.js.map → plugin-DD07LDez.js.map} +1 -1
  77. package/dist/{plugin-Xca67fp7.cjs → plugin-DTP_0JDr.cjs} +1 -1
  78. package/dist/{plugin-Xca67fp7.cjs.map → plugin-DTP_0JDr.cjs.map} +1 -1
  79. package/dist/{shamir-DBpHm7WN.cjs → shamir-BNuiZ2ry.cjs} +1 -1
  80. package/dist/{shamir-DBpHm7WN.cjs.map → shamir-BNuiZ2ry.cjs.map} +1 -1
  81. package/dist/{shamir-R8ddesFt.js → shamir-BbDh58Zo.js} +1 -1
  82. package/dist/{shamir-R8ddesFt.js.map → shamir-BbDh58Zo.js.map} +1 -1
  83. package/dist/{silentWalletEnroll-HPvsbd2J.cjs → silentWalletEnroll-B6a-fPgB.cjs} +1 -1
  84. package/dist/{silentWalletEnroll-HPvsbd2J.cjs.map → silentWalletEnroll-B6a-fPgB.cjs.map} +1 -1
  85. package/dist/{silentWalletEnroll-Dp1GTeNr.js → silentWalletEnroll-KHso2-HB.js} +2 -2
  86. package/dist/{silentWalletEnroll-Dp1GTeNr.js.map → silentWalletEnroll-KHso2-HB.js.map} +1 -1
  87. package/dist/solana-only.cjs +1 -1
  88. package/dist/solana-only.d.ts +3 -2
  89. package/dist/solana-only.js +1 -1
  90. package/dist/{useAuth-CVLv2oKA.js → useAuth-CWBApIWg.js} +83 -83
  91. package/dist/useAuth-CWBApIWg.js.map +1 -0
  92. package/dist/useAuth-GzGopI4v.cjs +1 -0
  93. package/dist/useAuth-GzGopI4v.cjs.map +1 -0
  94. package/package.json +1 -1
  95. package/dist/AutosaveStatus-DGNI4lXn.cjs.map +0 -1
  96. package/dist/AutosaveStatus-f-jw25Ay.js.map +0 -1
  97. package/dist/GoogleLoginButton-6ip-vudk.js.map +0 -1
  98. package/dist/GoogleLoginButton-BDCbxoCB.cjs.map +0 -1
  99. package/dist/mockServiceWorker.js +0 -349
  100. package/dist/useAuth-CVLv2oKA.js.map +0 -1
  101. package/dist/useAuth-XZaciuLg.cjs +0 -1
  102. package/dist/useAuth-XZaciuLg.cjs.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import { jsx as t, jsxs as u, Fragment as f } from "react/jsx-runtime";
2
2
  import { useMemo as S, useCallback as d, useState as w, useRef as T, useEffect as O } from "react";
3
- import { u as E } from "./useSystemSettings-rgskaDqP.js";
4
- function R(e) {
5
- const s = Math.floor(e / 86400), a = Math.floor(e % 86400 / 3600), r = Math.floor(e % 3600 / 60), i = e % 60;
6
- return { days: s, hours: a, minutes: r, seconds: i };
3
+ import { u as R } from "./useSystemSettings-rgskaDqP.js";
4
+ function E(e) {
5
+ const s = Math.floor(e / 86400), a = Math.floor(e % 86400 / 3600), n = Math.floor(e % 3600 / 60), i = e % 60;
6
+ return { days: s, hours: a, minutes: n, seconds: i };
7
7
  }
8
8
  function I(e) {
9
- const { days: s, hours: a, minutes: r } = R(e), i = [];
10
- return s > 0 && i.push(`${s}d`), a > 0 && i.push(`${a}h`), r > 0 && i.push(`${r}m`), i.length === 0 && i.push(`${e}s`), i.join(" ");
9
+ const { days: s, hours: a, minutes: n } = E(e), i = [];
10
+ return s > 0 && i.push(`${s}d`), a > 0 && i.push(`${a}h`), n > 0 && i.push(`${n}m`), i.length === 0 && i.push(`${e}s`), i.join(" ");
11
11
  }
12
- const M = {
12
+ const U = {
13
13
  // ============= Authentication Providers =============
14
14
  // Email auth
15
15
  auth_email_enabled: {
@@ -901,6 +901,12 @@ const M = {
901
901
  label: "Prompt Profile Completion",
902
902
  description: "Prompt users to fill in missing name or email after login. Shows every login until the user completes or skips.",
903
903
  inputType: "boolean"
904
+ },
905
+ postlogin_username_enabled: {
906
+ key: "postlogin_username_enabled",
907
+ label: "Require Username Selection",
908
+ description: "Prompt new users to choose a unique handle-style username (e.g. @swift_falcon_42) after signup. Shows until the user picks a username or skips.",
909
+ inputType: "boolean"
904
910
  }
905
911
  }, X = {
906
912
  // Auth providers (sorted alphabetically by subcategory)
@@ -954,6 +960,11 @@ const M = {
954
960
  description: "Prompt users to fill in missing profile information.",
955
961
  icon: ""
956
962
  },
963
+ "postlogin.username": {
964
+ label: "Username Selection",
965
+ description: "Prompt users to choose a unique handle-style username.",
966
+ icon: ""
967
+ },
957
968
  deposit: {
958
969
  label: "Deposit Settings",
959
970
  description: "Configure deposit tokens, fees, and related settings.",
@@ -1013,42 +1024,42 @@ const M = {
1013
1024
  ];
1014
1025
  function N(e) {
1015
1026
  const s = e.split(/(<a\s[^>]*>.*?<\/a>)/g);
1016
- return s.length === 1 ? e : s.map((a, r) => {
1027
+ return s.length === 1 ? e : s.map((a, n) => {
1017
1028
  const i = a.match(/^<a\s+href="([^"]+)"[^>]*>([^<]+)<\/a>$/);
1018
- return i ? /* @__PURE__ */ t("a", { href: i[1], target: "_blank", rel: "noopener noreferrer", children: i[2] }, r) : a;
1029
+ return i ? /* @__PURE__ */ t("a", { href: i[1], target: "_blank", rel: "noopener noreferrer", children: i[2] }, n) : a;
1019
1030
  });
1020
1031
  }
1021
1032
  function Q({
1022
1033
  settings: e,
1023
1034
  edits: s,
1024
1035
  onChange: a,
1025
- externalWarnings: r
1036
+ externalWarnings: n
1026
1037
  }) {
1027
1038
  return /* @__PURE__ */ t("div", { className: "cedros-settings-grid", children: e.map((i) => /* @__PURE__ */ t(
1028
- U,
1039
+ M,
1029
1040
  {
1030
1041
  setting: i,
1031
1042
  editValue: s[i.key],
1032
1043
  onChange: a,
1033
- externalWarning: r?.[i.key]
1044
+ externalWarning: n?.[i.key]
1034
1045
  },
1035
1046
  i.key
1036
1047
  )) });
1037
1048
  }
1038
- function U({ setting: e, editValue: s, onChange: a, externalWarning: r }) {
1039
- const i = M[e.key], l = s ?? e.value, p = s !== void 0 && s !== e.value, n = i?.inputType === "boolean", o = S(() => {
1040
- if (r) return r;
1049
+ function M({ setting: e, editValue: s, onChange: a, externalWarning: n }) {
1050
+ const i = U[e.key], l = s ?? e.value, p = s !== void 0 && s !== e.value, r = i?.inputType === "boolean", o = S(() => {
1051
+ if (n) return n;
1041
1052
  if (!i?.warningThreshold) return null;
1042
1053
  const c = parseInt(l, 10);
1043
1054
  if (isNaN(c)) return null;
1044
1055
  const { above: m, below: y, message: _ } = i.warningThreshold;
1045
1056
  return m !== void 0 && c > m || y !== void 0 && c < y ? _ : null;
1046
- }, [l, i?.warningThreshold, r]);
1057
+ }, [l, i?.warningThreshold, n]);
1047
1058
  return i ? /* @__PURE__ */ t(
1048
1059
  "div",
1049
1060
  {
1050
- className: `cedros-setting-row ${p ? "cedros-setting-row-changed" : ""} ${o ? "cedros-setting-row-warning" : ""} ${n ? "cedros-setting-row-toggle" : ""}`,
1051
- children: n ? /* @__PURE__ */ u(f, { children: [
1061
+ className: `cedros-setting-row ${p ? "cedros-setting-row-changed" : ""} ${o ? "cedros-setting-row-warning" : ""} ${r ? "cedros-setting-row-toggle" : ""}`,
1062
+ children: r ? /* @__PURE__ */ u(f, { children: [
1052
1063
  /* @__PURE__ */ u("div", { className: "cedros-setting-control cedros-setting-control-toggle", children: [
1053
1064
  /* @__PURE__ */ t(
1054
1065
  x,
@@ -1104,7 +1115,7 @@ function x({ meta: e, value: s, onChange: a }) {
1104
1115
  return /* @__PURE__ */ t(F, { value: s, onChange: a, presets: e.presets, min: e.min });
1105
1116
  case "percentage":
1106
1117
  return /* @__PURE__ */ t(
1107
- W,
1118
+ q,
1108
1119
  {
1109
1120
  value: s,
1110
1121
  onChange: a,
@@ -1116,7 +1127,7 @@ function x({ meta: e, value: s, onChange: a }) {
1116
1127
  );
1117
1128
  case "select":
1118
1129
  return /* @__PURE__ */ t(
1119
- q,
1130
+ W,
1120
1131
  {
1121
1132
  value: s,
1122
1133
  onChange: a,
@@ -1143,7 +1154,7 @@ function x({ meta: e, value: s, onChange: a }) {
1143
1154
  {
1144
1155
  type: "text",
1145
1156
  value: s,
1146
- onChange: (r) => a(r.target.value),
1157
+ onChange: (n) => a(n.target.value),
1147
1158
  className: "cedros-setting-input",
1148
1159
  placeholder: e.label
1149
1160
  }
@@ -1160,24 +1171,24 @@ function x({ meta: e, value: s, onChange: a }) {
1160
1171
  {
1161
1172
  type: "text",
1162
1173
  value: s,
1163
- onChange: (r) => a(r.target.value),
1174
+ onChange: (n) => a(n.target.value),
1164
1175
  className: "cedros-setting-input"
1165
1176
  }
1166
1177
  );
1167
1178
  }
1168
1179
  }
1169
- function F({ value: e, onChange: s, presets: a, min: r = 0 }) {
1180
+ function F({ value: e, onChange: s, presets: a, min: n = 0 }) {
1170
1181
  const i = parseInt(e, 10) || 0, l = I(i), p = d(
1171
1182
  (o) => {
1172
1183
  o.target.value && s(o.target.value);
1173
1184
  },
1174
1185
  [s]
1175
- ), n = d(
1186
+ ), r = d(
1176
1187
  (o) => {
1177
- const c = Math.max(r, parseInt(o.target.value, 10) || 0);
1188
+ const c = Math.max(n, parseInt(o.target.value, 10) || 0);
1178
1189
  s(String(c));
1179
1190
  },
1180
- [s, r]
1191
+ [s, n]
1181
1192
  );
1182
1193
  return /* @__PURE__ */ u("div", { className: "cedros-duration-input", children: [
1183
1194
  a && a.length > 0 && /* @__PURE__ */ u(
@@ -1198,8 +1209,8 @@ function F({ value: e, onChange: s, presets: a, min: r = 0 }) {
1198
1209
  {
1199
1210
  type: "number",
1200
1211
  value: i,
1201
- onChange: n,
1202
- min: r,
1212
+ onChange: r,
1213
+ min: n,
1203
1214
  className: "cedros-setting-input cedros-setting-input-sm"
1204
1215
  }
1205
1216
  ),
@@ -1211,15 +1222,15 @@ function F({ value: e, onChange: s, presets: a, min: r = 0 }) {
1211
1222
  ] })
1212
1223
  ] });
1213
1224
  }
1214
- function W({
1225
+ function q({
1215
1226
  value: e,
1216
1227
  onChange: s,
1217
1228
  min: a,
1218
- max: r,
1229
+ max: n,
1219
1230
  step: i,
1220
1231
  presets: l
1221
1232
  }) {
1222
- const p = parseInt(e, 10) || a, n = d(
1233
+ const p = parseInt(e, 10) || a, r = d(
1223
1234
  (c) => {
1224
1235
  s(c.target.value);
1225
1236
  },
@@ -1237,9 +1248,9 @@ function W({
1237
1248
  {
1238
1249
  type: "range",
1239
1250
  value: p,
1240
- onChange: n,
1251
+ onChange: r,
1241
1252
  min: a,
1242
- max: r,
1253
+ max: n,
1243
1254
  step: i,
1244
1255
  className: "cedros-percentage-slider"
1245
1256
  }
@@ -1261,15 +1272,15 @@ function W({
1261
1272
  )) })
1262
1273
  ] });
1263
1274
  }
1264
- function q({ value: e, onChange: s, presets: a, unit: r }) {
1265
- const i = !a.some((n) => n.value === e), l = d(
1266
- (n) => {
1267
- n.target.value !== "__custom__" && s(n.target.value);
1275
+ function W({ value: e, onChange: s, presets: a, unit: n }) {
1276
+ const i = !a.some((r) => r.value === e), l = d(
1277
+ (r) => {
1278
+ r.target.value !== "__custom__" && s(r.target.value);
1268
1279
  },
1269
1280
  [s]
1270
1281
  ), p = d(
1271
- (n) => {
1272
- s(n.target.value);
1282
+ (r) => {
1283
+ s(r.target.value);
1273
1284
  },
1274
1285
  [s]
1275
1286
  );
@@ -1281,7 +1292,7 @@ function q({ value: e, onChange: s, presets: a, unit: r }) {
1281
1292
  onChange: l,
1282
1293
  className: "cedros-setting-select",
1283
1294
  children: [
1284
- a.map((n) => /* @__PURE__ */ t("option", { value: n.value, children: n.label }, n.value)),
1295
+ a.map((r) => /* @__PURE__ */ t("option", { value: r.value, children: r.label }, r.value)),
1285
1296
  /* @__PURE__ */ t("option", { value: "__custom__", children: "Custom..." })
1286
1297
  ]
1287
1298
  }
@@ -1296,11 +1307,11 @@ function q({ value: e, onChange: s, presets: a, unit: r }) {
1296
1307
  className: "cedros-setting-input cedros-setting-input-sm"
1297
1308
  }
1298
1309
  ),
1299
- r && /* @__PURE__ */ t("span", { className: "cedros-setting-unit", children: r })
1310
+ n && /* @__PURE__ */ t("span", { className: "cedros-setting-unit", children: n })
1300
1311
  ] })
1301
1312
  ] });
1302
1313
  }
1303
- function $({ value: e, onChange: s, min: a, max: r, unit: i }) {
1314
+ function $({ value: e, onChange: s, min: a, max: n, unit: i }) {
1304
1315
  const l = d(
1305
1316
  (p) => {
1306
1317
  s(p.target.value);
@@ -1315,7 +1326,7 @@ function $({ value: e, onChange: s, min: a, max: r, unit: i }) {
1315
1326
  value: e,
1316
1327
  onChange: l,
1317
1328
  min: a,
1318
- max: r,
1329
+ max: n,
1319
1330
  className: "cedros-setting-input"
1320
1331
  }
1321
1332
  ),
@@ -1323,7 +1334,7 @@ function $({ value: e, onChange: s, min: a, max: r, unit: i }) {
1323
1334
  ] });
1324
1335
  }
1325
1336
  function j({ value: e, onChange: s }) {
1326
- const a = e === "true", r = d(() => {
1337
+ const a = e === "true", n = d(() => {
1327
1338
  s(a ? "false" : "true");
1328
1339
  }, [a, s]);
1329
1340
  return /* @__PURE__ */ u(
@@ -1333,7 +1344,7 @@ function j({ value: e, onChange: s }) {
1333
1344
  role: "switch",
1334
1345
  "aria-checked": a,
1335
1346
  className: `cedros-toggle ${a ? "cedros-toggle-on" : "cedros-toggle-off"}`,
1336
- onClick: r,
1347
+ onClick: n,
1337
1348
  children: [
1338
1349
  /* @__PURE__ */ t("span", { className: "cedros-toggle-track", children: /* @__PURE__ */ t("span", { className: "cedros-toggle-thumb" }) }),
1339
1350
  /* @__PURE__ */ t("span", { className: "cedros-toggle-label", children: a ? "Enabled" : "Disabled" })
@@ -1342,7 +1353,7 @@ function j({ value: e, onChange: s }) {
1342
1353
  );
1343
1354
  }
1344
1355
  function J({ value: e, onChange: s, multiline: a }) {
1345
- const [r, i] = w(!1), [l, p] = w(!1), n = e && e.length > 0, o = d(() => {
1356
+ const [n, i] = w(!1), [l, p] = w(!1), r = e && e.length > 0, o = d(() => {
1346
1357
  i(!0), p(!0);
1347
1358
  }, []), c = d(() => {
1348
1359
  i(!1), p(!1);
@@ -1352,7 +1363,7 @@ function J({ value: e, onChange: s, multiline: a }) {
1352
1363
  },
1353
1364
  [s]
1354
1365
  );
1355
- return !r && n ? /* @__PURE__ */ u("div", { className: "cedros-secret-input cedros-secret-input-masked", children: [
1366
+ return !n && r ? /* @__PURE__ */ u("div", { className: "cedros-secret-input cedros-secret-input-masked", children: [
1356
1367
  /* @__PURE__ */ t("span", { className: "cedros-secret-masked", children: "•".repeat(Math.min(e.length, 20)) }),
1357
1368
  /* @__PURE__ */ t("button", { type: "button", className: "cedros-secret-edit-btn", onClick: o, children: "Edit" })
1358
1369
  ] }) : /* @__PURE__ */ u("div", { className: "cedros-secret-input", children: [
@@ -1385,7 +1396,7 @@ function J({ value: e, onChange: s, multiline: a }) {
1385
1396
  children: l ? "Hide" : "Show"
1386
1397
  }
1387
1398
  ),
1388
- r && /* @__PURE__ */ t("button", { type: "button", className: "cedros-secret-done-btn", onClick: c, children: "Done" })
1399
+ n && /* @__PURE__ */ t("button", { type: "button", className: "cedros-secret-done-btn", onClick: c, children: "Done" })
1389
1400
  ] })
1390
1401
  ] });
1391
1402
  }
@@ -1396,39 +1407,39 @@ function G({ value: e, onChange: s }) {
1396
1407
  } catch {
1397
1408
  return [];
1398
1409
  }
1399
- }, [e]), r = d(
1400
- (n) => {
1401
- s(JSON.stringify(n));
1410
+ }, [e]), n = d(
1411
+ (r) => {
1412
+ s(JSON.stringify(r));
1402
1413
  },
1403
1414
  [s]
1404
1415
  ), i = d(() => {
1405
- r([...a, { symbol: "", mint: "", decimals: 6 }]);
1406
- }, [a, r]), l = d(
1407
- (n, o, c) => {
1416
+ n([...a, { symbol: "", mint: "", decimals: 6 }]);
1417
+ }, [a, n]), l = d(
1418
+ (r, o, c) => {
1408
1419
  const m = [...a];
1409
- m[n] = { ...m[n], [o]: c }, r(m);
1420
+ m[r] = { ...m[r], [o]: c }, n(m);
1410
1421
  },
1411
- [a, r]
1422
+ [a, n]
1412
1423
  ), p = d(
1413
- (n) => {
1414
- r(a.filter((o, c) => c !== n));
1424
+ (r) => {
1425
+ n(a.filter((o, c) => c !== r));
1415
1426
  },
1416
- [a, r]
1427
+ [a, n]
1417
1428
  );
1418
1429
  return /* @__PURE__ */ u("div", { className: "cedros-token-list-input", children: [
1419
1430
  /* @__PURE__ */ u("div", { className: "cedros-token-presets", children: [
1420
1431
  /* @__PURE__ */ t("span", { className: "cedros-token-presets-label", children: "Built-in tokens:" }),
1421
- /* @__PURE__ */ t("div", { className: "cedros-token-presets-list", children: A.map((n) => /* @__PURE__ */ t("span", { className: "cedros-token-preset-chip", children: n }, n)) })
1432
+ /* @__PURE__ */ t("div", { className: "cedros-token-presets-list", children: A.map((r) => /* @__PURE__ */ t("span", { className: "cedros-token-preset-chip", children: r }, r)) })
1422
1433
  ] }),
1423
1434
  a.length === 0 && /* @__PURE__ */ t("p", { className: "cedros-token-list-empty", children: "No custom tokens added. Use the built-in tokens above or add your own." }),
1424
- a.map((n, o) => /* @__PURE__ */ u("div", { className: "cedros-token-row", children: [
1435
+ a.map((r, o) => /* @__PURE__ */ u("div", { className: "cedros-token-row", children: [
1425
1436
  /* @__PURE__ */ u("div", { className: "cedros-token-row-fields", children: [
1426
1437
  /* @__PURE__ */ t(
1427
1438
  "input",
1428
1439
  {
1429
1440
  type: "text",
1430
1441
  placeholder: "Symbol",
1431
- value: n.symbol,
1442
+ value: r.symbol,
1432
1443
  onChange: (c) => l(o, "symbol", c.target.value.toUpperCase()),
1433
1444
  className: "cedros-setting-input cedros-token-input-symbol",
1434
1445
  maxLength: 10
@@ -1439,7 +1450,7 @@ function G({ value: e, onChange: s }) {
1439
1450
  {
1440
1451
  type: "text",
1441
1452
  placeholder: "Mint address",
1442
- value: n.mint,
1453
+ value: r.mint,
1443
1454
  onChange: (c) => l(o, "mint", c.target.value),
1444
1455
  className: "cedros-setting-input cedros-token-input-mint"
1445
1456
  }
@@ -1449,7 +1460,7 @@ function G({ value: e, onChange: s }) {
1449
1460
  {
1450
1461
  type: "number",
1451
1462
  placeholder: "Decimals",
1452
- value: n.decimals,
1463
+ value: r.decimals,
1453
1464
  onChange: (c) => l(o, "decimals", parseInt(c.target.value, 10) || 0),
1454
1465
  className: "cedros-setting-input cedros-token-input-decimals",
1455
1466
  min: 0,
@@ -1461,7 +1472,7 @@ function G({ value: e, onChange: s }) {
1461
1472
  {
1462
1473
  type: "text",
1463
1474
  placeholder: "Logo URL (optional)",
1464
- value: n.logoUrl || "",
1475
+ value: r.logoUrl || "",
1465
1476
  onChange: (c) => l(o, "logoUrl", c.target.value || void 0),
1466
1477
  className: "cedros-setting-input cedros-token-input-logo"
1467
1478
  }
@@ -1482,7 +1493,7 @@ function G({ value: e, onChange: s }) {
1482
1493
  ] });
1483
1494
  }
1484
1495
  function B({ value: e, onChange: s }) {
1485
- const a = S(() => e.split(",").map((l) => l.trim()).filter(Boolean), [e]), r = d(
1496
+ const a = S(() => e.split(",").map((l) => l.trim()).filter(Boolean), [e]), n = d(
1486
1497
  (l) => {
1487
1498
  if (!l || a.includes(l)) return;
1488
1499
  const p = [...a, l].join(", ");
@@ -1491,7 +1502,7 @@ function B({ value: e, onChange: s }) {
1491
1502
  [a, s]
1492
1503
  ), i = d(
1493
1504
  (l) => {
1494
- const p = a.filter((n) => n !== l).join(", ");
1505
+ const p = a.filter((r) => r !== l).join(", ");
1495
1506
  s(p);
1496
1507
  },
1497
1508
  [a, s]
@@ -1506,7 +1517,7 @@ function B({ value: e, onChange: s }) {
1506
1517
  {
1507
1518
  type: "button",
1508
1519
  className: `cedros-token-preset-chip ${p ? "cedros-token-preset-chip-selected" : ""}`,
1509
- onClick: () => p ? i(l) : r(l),
1520
+ onClick: () => p ? i(l) : n(l),
1510
1521
  title: p ? `Remove ${l}` : `Add ${l}`,
1511
1522
  children: [
1512
1523
  l,
@@ -1531,7 +1542,7 @@ function B({ value: e, onChange: s }) {
1531
1542
  }
1532
1543
  const H = 800, V = 2e3;
1533
1544
  function Z() {
1534
- const { settings: e, isLoading: s, error: a, fetchSettings: r, updateSettings: i } = E(), [l, p] = w({}), [n, o] = w("idle"), [c, m] = w(null), y = T(null), _ = T(null), k = T({});
1545
+ const { settings: e, isLoading: s, error: a, fetchSettings: n, updateSettings: i } = R(), [l, p] = w({}), [r, o] = w("idle"), [c, m] = w(null), y = T(null), _ = T(null), k = T({});
1535
1546
  O(() => () => {
1536
1547
  y.current && clearTimeout(y.current), _.current && clearTimeout(_.current);
1537
1548
  }, []);
@@ -1583,10 +1594,10 @@ function Z() {
1583
1594
  settings: e,
1584
1595
  edits: l,
1585
1596
  isLoading: s,
1586
- autosaveStatus: n,
1597
+ autosaveStatus: r,
1587
1598
  autosaveError: c,
1588
1599
  error: a,
1589
- fetchSettings: r,
1600
+ fetchSettings: n,
1590
1601
  handleChange: C,
1591
1602
  getEffectiveValue: L
1592
1603
  };
@@ -1615,6 +1626,6 @@ export {
1615
1626
  ee as A,
1616
1627
  X as C,
1617
1628
  Q as S,
1618
- M as a,
1629
+ U as a,
1619
1630
  Z as u
1620
1631
  };