@burdenoff/microfe-labsofscience 2026.625.1 → 2026.626.1

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 (91) hide show
  1. package/dist/labsofscience/pages/HomePage.js +33 -28
  2. package/dist/labsofscience/pages/HomePage.js.map +1 -1
  3. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +67 -61
  4. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/labsofscience/pages/admin/AdminDashboard.js +76 -44
  6. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +38 -32
  8. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +226 -221
  10. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/labsofscience/pages/admin/AdminProfilePage.js +127 -125
  12. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +489 -487
  14. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/labsofscience/pages/admin/CartManagementPage.js +124 -119
  16. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/labsofscience/pages/admin/UserManagementPage.js +267 -262
  18. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +46 -41
  20. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +172 -167
  22. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +79 -48
  24. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +98 -93
  26. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +112 -107
  28. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +298 -300
  30. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +221 -223
  32. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +251 -245
  34. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/labsofscience/pages/common/HelpSupportPage.js +284 -285
  36. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/labsofscience/pages/common/NotificationCenterPage.js +48 -42
  38. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/labsofscience/pages/common/SettingsPage.js +745 -736
  40. package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +399 -356
  42. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/labsofscience/pages/customer/CartDetailPage.js +262 -230
  44. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +162 -151
  46. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/labsofscience/pages/customer/CheckoutPage.js +213 -215
  48. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/labsofscience/pages/customer/CustomerDashboard.js +416 -381
  50. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
  52. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +521 -512
  54. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/labsofscience/pages/customer/FavoritesPage.js +57 -51
  56. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +56 -50
  58. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +310 -274
  60. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +81 -75
  62. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/labsofscience/pages/customer/ReviewsPage.js +68 -62
  64. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +61 -55
  66. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +92 -60
  68. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +237 -231
  70. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +60 -54
  72. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/labsofscience/pages/investor/InvestorDashboard.js +342 -307
  74. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +106 -100
  76. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +51 -45
  78. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +386 -381
  80. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +359 -319
  82. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/labsofscience/pages/worker/WorkerDashboard.js +90 -59
  84. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +76 -71
  86. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +82 -77
  88. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +348 -340
  90. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. package/package.json +3 -3
@@ -2,11 +2,12 @@ import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
2
2
  import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
4
  import { useState as r } from "react";
5
- import { ArrowLeft as i, Bell as a, Database as o, Globe as s, HardDrive as c, Lock as l, Mail as u, Plug as d, Save as f, Server as p, Shield as m, Smartphone as h } from "lucide-react";
6
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
5
+ import { ArrowLeft as i, Bell as a, Database as o, Globe as s, HardDrive as c, Lock as l, Mail as u, Plug as d, Save as f, Server as p, Settings as m, Shield as h, Smartphone as g } from "lucide-react";
6
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
7
+ import { EmphasisPanel as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
7
8
  //#region src/labsofscience/pages/admin/AdminSettingsPage.tsx
8
- function v() {
9
- let { navigateTo: v } = e(), [y, b] = r(!1), [x, S] = r("general"), [C, w] = r({
9
+ function x() {
10
+ let { navigateTo: x } = e(), [S, C] = r(!1), [w, T] = r("general"), [E, D] = r({
10
11
  general: {
11
12
  siteName: "LabsOfScience",
12
13
  siteUrl: "https://labsofscience.com",
@@ -45,18 +46,18 @@ function v() {
45
46
  paymentGateway: "razorpay",
46
47
  analyticsService: "google"
47
48
  }
48
- }), T = async () => {
49
- b(!0), await new Promise((e) => setTimeout(e, 1e3)), alert("Settings saved successfully"), b(!1);
50
- }, E = (e, t, n) => {
51
- w((r) => ({
49
+ }), O = async () => {
50
+ C(!0), await new Promise((e) => setTimeout(e, 1e3)), alert("Settings saved successfully"), C(!1);
51
+ }, k = (e, t, n) => {
52
+ D((r) => ({
52
53
  ...r,
53
54
  [e]: {
54
55
  ...r[e],
55
56
  [t]: n
56
57
  }
57
58
  }));
58
- }, D = (e, t, n, r) => {
59
- w((i) => ({
59
+ }, A = (e, t, n, r) => {
60
+ D((i) => ({
60
61
  ...i,
61
62
  [e]: {
62
63
  ...i[e],
@@ -66,7 +67,7 @@ function v() {
66
67
  }
67
68
  }
68
69
  }));
69
- }, O = [
70
+ }, j = [
70
71
  {
71
72
  id: "general",
72
73
  label: "General",
@@ -75,7 +76,7 @@ function v() {
75
76
  {
76
77
  id: "security",
77
78
  label: "Security",
78
- icon: m
79
+ icon: h
79
80
  },
80
81
  {
81
82
  id: "notifications",
@@ -92,69 +93,73 @@ function v() {
92
93
  label: "Integrations",
93
94
  icon: d
94
95
  }
95
- ], k = "w-full rounded-lg border border-border-seam bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", A = "block text-sm font-medium text-text-secondary mb-2";
96
- return /* @__PURE__ */ g(n, {
96
+ ], M = "w-full rounded-lg border border-border-seam bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", N = "block text-sm font-medium text-text-secondary mb-2";
97
+ return /* @__PURE__ */ v(n, {
97
98
  title: "System Settings",
98
99
  description: "Configure platform-wide settings and policies",
99
- actions: /* @__PURE__ */ _("div", {
100
+ actions: /* @__PURE__ */ v("div", {
100
101
  className: "flex items-center gap-2",
101
- children: [/* @__PURE__ */ _("button", {
102
+ children: [/* @__PURE__ */ v("button", {
102
103
  type: "button",
103
- onClick: () => v("/admin"),
104
+ onClick: () => x("/admin"),
104
105
  className: "flex items-center gap-1.5 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
105
- children: [/* @__PURE__ */ g(i, { className: "h-4 w-4" }), " Back"]
106
- }), /* @__PURE__ */ _("button", {
106
+ children: [/* @__PURE__ */ _(i, { className: "h-4 w-4" }), " Back"]
107
+ }), /* @__PURE__ */ v("button", {
107
108
  type: "button",
108
- onClick: T,
109
- disabled: y,
109
+ onClick: O,
110
+ disabled: S,
110
111
  className: "flex items-center gap-1.5 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50",
111
112
  children: [
112
- /* @__PURE__ */ g(f, { className: "h-4 w-4" }),
113
+ /* @__PURE__ */ _(f, { className: "h-4 w-4" }),
113
114
  " ",
114
- y ? "Saving..." : "Save Settings"
115
+ S ? "Saving..." : "Save Settings"
115
116
  ]
116
117
  })]
117
118
  }),
118
- children: /* @__PURE__ */ _("div", {
119
+ children: [/* @__PURE__ */ _(b, {
120
+ icon: /* @__PURE__ */ _(m, { className: "h-4 w-4" }),
121
+ className: "mb-6",
122
+ children: "Control how the whole platform behaves. From here you tune general branding, security and login policies, notification channels, database/backup settings and third-party integrations — changes here apply to every user, so save deliberately."
123
+ }), /* @__PURE__ */ v("div", {
119
124
  className: "flex flex-col lg:flex-row gap-6",
120
125
  children: [
121
- /* @__PURE__ */ g("div", {
126
+ /* @__PURE__ */ _("div", {
122
127
  className: "lg:hidden",
123
- children: /* @__PURE__ */ g("div", {
128
+ children: /* @__PURE__ */ _("div", {
124
129
  className: "rounded-lg border border-border-seam bg-bg-surface p-3 mb-4",
125
- children: /* @__PURE__ */ g("div", {
130
+ children: /* @__PURE__ */ _("div", {
126
131
  className: "grid grid-cols-2 sm:grid-cols-3 gap-2",
127
- children: O.map((e) => {
132
+ children: j.map((e) => {
128
133
  let n = e.icon;
129
- return /* @__PURE__ */ _("button", {
134
+ return /* @__PURE__ */ v("button", {
130
135
  type: "button",
131
- onClick: () => S(e.id),
132
- className: t("flex items-center justify-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors", x === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary hover:bg-bg-sunken/80"),
133
- children: [/* @__PURE__ */ g(n, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", { children: e.label })]
136
+ onClick: () => T(e.id),
137
+ className: t("flex items-center justify-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors", w === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary hover:bg-bg-sunken/80"),
138
+ children: [/* @__PURE__ */ _(n, { className: "h-4 w-4" }), /* @__PURE__ */ _("span", { children: e.label })]
134
139
  }, e.id);
135
140
  })
136
141
  })
137
142
  })
138
143
  }),
139
- /* @__PURE__ */ g("div", {
144
+ /* @__PURE__ */ _("div", {
140
145
  className: "hidden lg:block lg:w-64 lg:shrink-0",
141
- children: /* @__PURE__ */ _("div", {
146
+ children: /* @__PURE__ */ v("div", {
142
147
  className: "rounded-lg border border-border-seam bg-bg-surface sticky top-24",
143
- children: [/* @__PURE__ */ g("div", {
148
+ children: [/* @__PURE__ */ _("div", {
144
149
  className: "p-4 border-b border-border-seam",
145
- children: /* @__PURE__ */ g("h2", {
150
+ children: /* @__PURE__ */ _("h2", {
146
151
  className: "font-semibold text-text-primary",
147
152
  children: "Settings"
148
153
  })
149
- }), /* @__PURE__ */ g("nav", {
154
+ }), /* @__PURE__ */ _("nav", {
150
155
  className: "p-2",
151
- children: O.map((e) => {
156
+ children: j.map((e) => {
152
157
  let n = e.icon;
153
- return /* @__PURE__ */ _("button", {
158
+ return /* @__PURE__ */ v("button", {
154
159
  type: "button",
155
- onClick: () => S(e.id),
156
- className: t("w-full text-left px-3 py-2 rounded-lg mb-1 flex items-center gap-3 transition-colors", x === e.id ? "bg-action-primary-bg/10 text-primary font-medium" : "text-text-primary hover:bg-bg-sunken"),
157
- children: [/* @__PURE__ */ g(n, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
160
+ onClick: () => T(e.id),
161
+ className: t("w-full text-left px-3 py-2 rounded-lg mb-1 flex items-center gap-3 transition-colors", w === e.id ? "bg-action-primary-bg/10 text-primary font-medium" : "text-text-primary hover:bg-bg-sunken"),
162
+ children: [/* @__PURE__ */ _(n, { className: "h-4 w-4" }), /* @__PURE__ */ _("span", {
158
163
  className: "text-sm",
159
164
  children: e.label
160
165
  })]
@@ -163,487 +168,484 @@ function v() {
163
168
  })]
164
169
  })
165
170
  }),
166
- /* @__PURE__ */ g("div", {
171
+ /* @__PURE__ */ _("div", {
167
172
  className: "flex-1 min-w-0",
168
- children: /* @__PURE__ */ _("div", {
169
- className: "rounded-lg border border-border-seam bg-bg-surface p-6",
170
- children: [
171
- x === "general" && /* @__PURE__ */ _("div", {
172
- className: "space-y-6",
173
- children: [
174
- /* @__PURE__ */ _("div", {
175
- className: "flex items-center gap-2 mb-2",
176
- children: [/* @__PURE__ */ g(s, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ g("h3", {
177
- className: "text-lg font-semibold text-text-primary",
178
- children: "General Settings"
179
- })]
180
- }),
181
- /* @__PURE__ */ _("div", {
182
- className: "grid grid-cols-1 md:grid-cols-2 gap-6",
183
- children: [
184
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
185
- className: A,
186
- children: "Site Name"
187
- }), /* @__PURE__ */ g("input", {
188
- type: "text",
189
- value: C.general.siteName,
190
- onChange: (e) => E("general", "siteName", e.target.value),
191
- className: k
192
- })] }),
193
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
194
- className: A,
195
- children: "Site URL"
196
- }), /* @__PURE__ */ g("input", {
197
- type: "text",
198
- value: C.general.siteUrl,
199
- onChange: (e) => E("general", "siteUrl", e.target.value),
200
- className: k
201
- })] }),
202
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
203
- className: A,
204
- children: "Timezone"
205
- }), /* @__PURE__ */ _("select", {
206
- value: C.general.timezone,
207
- onChange: (e) => E("general", "timezone", e.target.value),
208
- className: k,
209
- children: [
210
- /* @__PURE__ */ g("option", {
211
- value: "Asia/Kolkata",
212
- children: "Asia/Kolkata (IST)"
213
- }),
214
- /* @__PURE__ */ g("option", {
215
- value: "UTC",
216
- children: "UTC"
217
- }),
218
- /* @__PURE__ */ g("option", {
219
- value: "America/New_York",
220
- children: "America/New_York (EST)"
221
- })
222
- ]
223
- })] }),
224
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
225
- className: A,
226
- children: "Currency"
227
- }), /* @__PURE__ */ _("select", {
228
- value: C.general.currency,
229
- onChange: (e) => E("general", "currency", e.target.value),
230
- className: k,
231
- children: [
232
- /* @__PURE__ */ g("option", {
233
- value: "INR",
234
- children: "Indian Rupee (INR)"
235
- }),
236
- /* @__PURE__ */ g("option", {
237
- value: "USD",
238
- children: "US Dollar (USD)"
239
- }),
240
- /* @__PURE__ */ g("option", {
241
- value: "EUR",
242
- children: "Euro (EUR)"
243
- })
244
- ]
245
- })] }),
246
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
247
- className: A,
248
- children: "Language"
249
- }), /* @__PURE__ */ _("select", {
250
- value: C.general.language,
251
- onChange: (e) => E("general", "language", e.target.value),
252
- className: k,
253
- children: [
254
- /* @__PURE__ */ g("option", {
255
- value: "en",
256
- children: "English"
257
- }),
258
- /* @__PURE__ */ g("option", {
259
- value: "hi",
260
- children: "Hindi"
261
- }),
262
- /* @__PURE__ */ g("option", {
263
- value: "ta",
264
- children: "Tamil"
265
- })
266
- ]
267
- })] }),
268
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
269
- className: A,
270
- children: "Date Format"
271
- }), /* @__PURE__ */ _("select", {
272
- value: C.general.dateFormat,
273
- onChange: (e) => E("general", "dateFormat", e.target.value),
274
- className: k,
275
- children: [
276
- /* @__PURE__ */ g("option", {
277
- value: "DD/MM/YYYY",
278
- children: "DD/MM/YYYY"
279
- }),
280
- /* @__PURE__ */ g("option", {
281
- value: "MM/DD/YYYY",
282
- children: "MM/DD/YYYY"
283
- }),
284
- /* @__PURE__ */ g("option", {
285
- value: "YYYY-MM-DD",
286
- children: "YYYY-MM-DD"
287
- })
288
- ]
289
- })] })
290
- ]
291
- }),
292
- /* @__PURE__ */ _("label", {
293
- className: "flex items-center gap-2 mt-4",
294
- children: [/* @__PURE__ */ g("input", {
295
- type: "checkbox",
296
- checked: C.general.maintenanceMode,
297
- onChange: (e) => E("general", "maintenanceMode", e.target.checked),
298
- className: "rounded border-border-seam text-primary focus:ring-primary"
299
- }), /* @__PURE__ */ g("span", {
300
- className: "text-sm text-text-primary",
301
- children: "Enable Maintenance Mode"
302
- })]
303
- })
304
- ]
305
- }),
306
- x === "security" && /* @__PURE__ */ _("div", {
307
- className: "space-y-6",
308
- children: [
309
- /* @__PURE__ */ _("div", {
310
- className: "flex items-center gap-2 mb-2",
311
- children: [/* @__PURE__ */ g(l, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ g("h3", {
312
- className: "text-lg font-semibold text-text-primary",
313
- children: "Security Settings"
314
- })]
315
- }),
316
- /* @__PURE__ */ _("div", { children: [
317
- /* @__PURE__ */ g("h4", {
318
- className: "font-medium text-text-primary mb-4",
319
- children: "Password Policy"
320
- }),
321
- /* @__PURE__ */ _("div", {
322
- className: "grid grid-cols-1 md:grid-cols-2 gap-6",
323
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
324
- className: A,
325
- children: "Minimum Length"
326
- }), /* @__PURE__ */ g("input", {
327
- type: "number",
328
- value: C.security.passwordPolicy.minLength,
329
- onChange: (e) => D("security", "passwordPolicy", "minLength", parseInt(e.target.value)),
330
- min: 6,
331
- max: 50,
332
- className: k
333
- })] }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
334
- className: A,
335
- children: "Session Timeout (minutes)"
336
- }), /* @__PURE__ */ g("input", {
337
- type: "number",
338
- value: C.security.sessionTimeout,
339
- onChange: (e) => E("security", "sessionTimeout", parseInt(e.target.value)),
340
- min: 15,
341
- max: 480,
342
- className: k
343
- })] })]
344
- }),
345
- /* @__PURE__ */ _("div", {
346
- className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4",
347
- children: [
348
- /* @__PURE__ */ _("label", {
349
- className: "flex items-center gap-2",
350
- children: [/* @__PURE__ */ g("input", {
351
- type: "checkbox",
352
- checked: C.security.passwordPolicy.requireUppercase,
353
- onChange: (e) => D("security", "passwordPolicy", "requireUppercase", e.target.checked),
354
- className: "rounded border-border-seam text-primary focus:ring-primary"
355
- }), /* @__PURE__ */ g("span", {
356
- className: "text-sm text-text-primary",
357
- children: "Require Uppercase"
358
- })]
359
- }),
360
- /* @__PURE__ */ _("label", {
361
- className: "flex items-center gap-2",
362
- children: [/* @__PURE__ */ g("input", {
363
- type: "checkbox",
364
- checked: C.security.passwordPolicy.requireNumbers,
365
- onChange: (e) => D("security", "passwordPolicy", "requireNumbers", e.target.checked),
366
- className: "rounded border-border-seam text-primary focus:ring-primary"
367
- }), /* @__PURE__ */ g("span", {
368
- className: "text-sm text-text-primary",
369
- children: "Require Numbers"
370
- })]
371
- }),
372
- /* @__PURE__ */ _("label", {
373
- className: "flex items-center gap-2",
374
- children: [/* @__PURE__ */ g("input", {
375
- type: "checkbox",
376
- checked: C.security.passwordPolicy.requireSymbols,
377
- onChange: (e) => D("security", "passwordPolicy", "requireSymbols", e.target.checked),
378
- className: "rounded border-border-seam text-primary focus:ring-primary"
379
- }), /* @__PURE__ */ g("span", {
380
- className: "text-sm text-text-primary",
381
- children: "Require Symbols"
382
- })]
383
- }),
384
- /* @__PURE__ */ _("label", {
385
- className: "flex items-center gap-2",
386
- children: [/* @__PURE__ */ g("input", {
387
- type: "checkbox",
388
- checked: C.security.twoFactorAuth,
389
- onChange: (e) => E("security", "twoFactorAuth", e.target.checked),
390
- className: "rounded border-border-seam text-primary focus:ring-primary"
391
- }), /* @__PURE__ */ g("span", {
392
- className: "text-sm text-text-primary",
393
- children: "Two-Factor Auth"
394
- })]
395
- })
396
- ]
397
- })
398
- ] }),
399
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
400
- className: A,
401
- children: "Max Login Attempts"
402
- }), /* @__PURE__ */ g("input", {
403
- type: "number",
404
- value: C.security.maxLoginAttempts,
405
- onChange: (e) => E("security", "maxLoginAttempts", parseInt(e.target.value)),
406
- min: 1,
407
- max: 20,
408
- className: t(k, "max-w-xs")
409
- })] })
410
- ]
411
- }),
412
- x === "notifications" && /* @__PURE__ */ _("div", {
413
- className: "space-y-6",
414
- children: [/* @__PURE__ */ _("div", {
415
- className: "flex items-center gap-2 mb-2",
416
- children: [/* @__PURE__ */ g(a, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ g("h3", {
417
- className: "text-lg font-semibold text-text-primary",
418
- children: "Notification Settings"
419
- })]
420
- }), /* @__PURE__ */ g("div", {
421
- className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
422
- children: [
423
- {
424
- key: "emailNotifications",
425
- label: "Email Notifications",
426
- icon: u
427
- },
428
- {
429
- key: "smsNotifications",
430
- label: "SMS Notifications",
431
- icon: h
432
- },
433
- {
434
- key: "adminAlerts",
435
- label: "Admin Alerts",
436
- icon: m
437
- },
438
- {
439
- key: "systemAlerts",
440
- label: "System Alerts",
441
- icon: a
442
- }
443
- ].map((e) => {
444
- let t = e.icon;
445
- return /* @__PURE__ */ _("label", {
446
- className: "flex items-center gap-3 rounded-lg border border-border-seam p-4 cursor-pointer hover:bg-accent/50 transition-colors",
447
- children: [
448
- /* @__PURE__ */ g("input", {
449
- type: "checkbox",
450
- checked: C.notifications[e.key],
451
- onChange: (t) => E("notifications", e.key, t.target.checked),
452
- className: "rounded border-border-seam text-primary focus:ring-primary"
453
- }),
454
- /* @__PURE__ */ g(t, { className: "h-5 w-5 text-text-secondary" }),
455
- /* @__PURE__ */ g("span", {
456
- className: "text-sm font-medium text-text-primary",
457
- children: e.label
458
- })
459
- ]
460
- }, e.key);
461
- })
462
- })]
463
- }),
464
- x === "database" && /* @__PURE__ */ _("div", {
465
- className: "space-y-6",
466
- children: [
467
- /* @__PURE__ */ _("div", {
468
- className: "flex items-center gap-2 mb-2",
469
- children: [/* @__PURE__ */ g(c, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ g("h3", {
470
- className: "text-lg font-semibold text-text-primary",
471
- children: "Database Settings"
472
- })]
473
- }),
474
- /* @__PURE__ */ _("div", {
475
- className: "grid grid-cols-1 md:grid-cols-2 gap-6",
476
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
477
- className: A,
478
- children: "Backup Frequency"
479
- }), /* @__PURE__ */ _("select", {
480
- value: C.database.backupFrequency,
481
- onChange: (e) => E("database", "backupFrequency", e.target.value),
482
- className: k,
483
- children: [
484
- /* @__PURE__ */ g("option", {
485
- value: "hourly",
486
- children: "Hourly"
487
- }),
488
- /* @__PURE__ */ g("option", {
489
- value: "daily",
490
- children: "Daily"
491
- }),
492
- /* @__PURE__ */ g("option", {
493
- value: "weekly",
494
- children: "Weekly"
495
- }),
496
- /* @__PURE__ */ g("option", {
497
- value: "monthly",
498
- children: "Monthly"
499
- })
500
- ]
501
- })] }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
502
- className: A,
503
- children: "Retention Period (days)"
504
- }), /* @__PURE__ */ g("input", {
505
- type: "number",
506
- value: C.database.retentionPeriod,
507
- onChange: (e) => E("database", "retentionPeriod", parseInt(e.target.value)),
508
- min: 7,
509
- max: 365,
510
- className: k
511
- })] })]
512
- }),
513
- /* @__PURE__ */ _("label", {
514
- className: "flex items-center gap-2",
515
- children: [/* @__PURE__ */ g("input", {
516
- type: "checkbox",
517
- checked: C.database.autoBackup,
518
- onChange: (e) => E("database", "autoBackup", e.target.checked),
519
- className: "rounded border-border-seam text-primary focus:ring-primary"
520
- }), /* @__PURE__ */ g("span", {
521
- className: "text-sm text-text-primary",
522
- children: "Enable Auto Backup"
523
- })]
524
- }),
525
- /* @__PURE__ */ _("div", {
526
- className: "rounded-lg bg-bg-sunken p-4",
527
- children: [/* @__PURE__ */ g("p", {
528
- className: "text-sm text-text-secondary",
529
- children: "Last Backup"
530
- }), /* @__PURE__ */ g("p", {
531
- className: "text-sm font-medium text-text-primary",
532
- children: new Date(C.database.lastBackup).toLocaleString("en-IN")
533
- })]
534
- })
535
- ]
536
- }),
537
- x === "integrations" && /* @__PURE__ */ _("div", {
538
- className: "space-y-6",
539
- children: [/* @__PURE__ */ _("div", {
173
+ children: /* @__PURE__ */ v(y, { children: [
174
+ w === "general" && /* @__PURE__ */ v("div", {
175
+ className: "space-y-6",
176
+ children: [
177
+ /* @__PURE__ */ v("div", {
540
178
  className: "flex items-center gap-2 mb-2",
541
- children: [/* @__PURE__ */ g(d, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ g("h3", {
179
+ children: [/* @__PURE__ */ _(s, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ _("h3", {
542
180
  className: "text-lg font-semibold text-text-primary",
543
- children: "Integrations"
181
+ children: "General Settings"
544
182
  })]
545
- }), /* @__PURE__ */ _("div", {
183
+ }),
184
+ /* @__PURE__ */ v("div", {
546
185
  className: "grid grid-cols-1 md:grid-cols-2 gap-6",
547
186
  children: [
548
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
549
- className: A,
550
- children: "Email Service"
551
- }), /* @__PURE__ */ _("select", {
552
- value: C.integrations.emailService,
553
- onChange: (e) => E("integrations", "emailService", e.target.value),
554
- className: k,
187
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
188
+ className: N,
189
+ children: "Site Name"
190
+ }), /* @__PURE__ */ _("input", {
191
+ type: "text",
192
+ value: E.general.siteName,
193
+ onChange: (e) => k("general", "siteName", e.target.value),
194
+ className: M
195
+ })] }),
196
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
197
+ className: N,
198
+ children: "Site URL"
199
+ }), /* @__PURE__ */ _("input", {
200
+ type: "text",
201
+ value: E.general.siteUrl,
202
+ onChange: (e) => k("general", "siteUrl", e.target.value),
203
+ className: M
204
+ })] }),
205
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
206
+ className: N,
207
+ children: "Timezone"
208
+ }), /* @__PURE__ */ v("select", {
209
+ value: E.general.timezone,
210
+ onChange: (e) => k("general", "timezone", e.target.value),
211
+ className: M,
555
212
  children: [
556
- /* @__PURE__ */ g("option", {
557
- value: "sendgrid",
558
- children: "SendGrid"
213
+ /* @__PURE__ */ _("option", {
214
+ value: "Asia/Kolkata",
215
+ children: "Asia/Kolkata (IST)"
559
216
  }),
560
- /* @__PURE__ */ g("option", {
561
- value: "ses",
562
- children: "AWS SES"
217
+ /* @__PURE__ */ _("option", {
218
+ value: "UTC",
219
+ children: "UTC"
563
220
  }),
564
- /* @__PURE__ */ g("option", {
565
- value: "mailgun",
566
- children: "Mailgun"
221
+ /* @__PURE__ */ _("option", {
222
+ value: "America/New_York",
223
+ children: "America/New_York (EST)"
567
224
  })
568
225
  ]
569
226
  })] }),
570
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
571
- className: A,
572
- children: "SMS Service"
573
- }), /* @__PURE__ */ _("select", {
574
- value: C.integrations.smsService,
575
- onChange: (e) => E("integrations", "smsService", e.target.value),
576
- className: k,
227
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
228
+ className: N,
229
+ children: "Currency"
230
+ }), /* @__PURE__ */ v("select", {
231
+ value: E.general.currency,
232
+ onChange: (e) => k("general", "currency", e.target.value),
233
+ className: M,
577
234
  children: [
578
- /* @__PURE__ */ g("option", {
579
- value: "twilio",
580
- children: "Twilio"
235
+ /* @__PURE__ */ _("option", {
236
+ value: "INR",
237
+ children: "Indian Rupee (INR)"
581
238
  }),
582
- /* @__PURE__ */ g("option", {
583
- value: "msg91",
584
- children: "MSG91"
239
+ /* @__PURE__ */ _("option", {
240
+ value: "USD",
241
+ children: "US Dollar (USD)"
585
242
  }),
586
- /* @__PURE__ */ g("option", {
587
- value: "sns",
588
- children: "AWS SNS"
243
+ /* @__PURE__ */ _("option", {
244
+ value: "EUR",
245
+ children: "Euro (EUR)"
589
246
  })
590
247
  ]
591
248
  })] }),
592
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
593
- className: A,
594
- children: "Payment Gateway"
595
- }), /* @__PURE__ */ _("select", {
596
- value: C.integrations.paymentGateway,
597
- onChange: (e) => E("integrations", "paymentGateway", e.target.value),
598
- className: k,
249
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
250
+ className: N,
251
+ children: "Language"
252
+ }), /* @__PURE__ */ v("select", {
253
+ value: E.general.language,
254
+ onChange: (e) => k("general", "language", e.target.value),
255
+ className: M,
599
256
  children: [
600
- /* @__PURE__ */ g("option", {
601
- value: "razorpay",
602
- children: "Razorpay"
257
+ /* @__PURE__ */ _("option", {
258
+ value: "en",
259
+ children: "English"
603
260
  }),
604
- /* @__PURE__ */ g("option", {
605
- value: "stripe",
606
- children: "Stripe"
261
+ /* @__PURE__ */ _("option", {
262
+ value: "hi",
263
+ children: "Hindi"
607
264
  }),
608
- /* @__PURE__ */ g("option", {
609
- value: "paytm",
610
- children: "Paytm"
265
+ /* @__PURE__ */ _("option", {
266
+ value: "ta",
267
+ children: "Tamil"
611
268
  })
612
269
  ]
613
270
  })] }),
614
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
615
- className: A,
616
- children: "Analytics Service"
617
- }), /* @__PURE__ */ _("select", {
618
- value: C.integrations.analyticsService,
619
- onChange: (e) => E("integrations", "analyticsService", e.target.value),
620
- className: k,
271
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
272
+ className: N,
273
+ children: "Date Format"
274
+ }), /* @__PURE__ */ v("select", {
275
+ value: E.general.dateFormat,
276
+ onChange: (e) => k("general", "dateFormat", e.target.value),
277
+ className: M,
621
278
  children: [
622
- /* @__PURE__ */ g("option", {
623
- value: "google",
624
- children: "Google Analytics"
279
+ /* @__PURE__ */ _("option", {
280
+ value: "DD/MM/YYYY",
281
+ children: "DD/MM/YYYY"
625
282
  }),
626
- /* @__PURE__ */ g("option", {
627
- value: "mixpanel",
628
- children: "Mixpanel"
283
+ /* @__PURE__ */ _("option", {
284
+ value: "MM/DD/YYYY",
285
+ children: "MM/DD/YYYY"
629
286
  }),
630
- /* @__PURE__ */ g("option", {
631
- value: "amplitude",
632
- children: "Amplitude"
287
+ /* @__PURE__ */ _("option", {
288
+ value: "YYYY-MM-DD",
289
+ children: "YYYY-MM-DD"
633
290
  })
634
291
  ]
635
292
  })] })
636
293
  ]
294
+ }),
295
+ /* @__PURE__ */ v("label", {
296
+ className: "flex items-center gap-2 mt-4",
297
+ children: [/* @__PURE__ */ _("input", {
298
+ type: "checkbox",
299
+ checked: E.general.maintenanceMode,
300
+ onChange: (e) => k("general", "maintenanceMode", e.target.checked),
301
+ className: "rounded border-border-seam text-primary focus:ring-primary"
302
+ }), /* @__PURE__ */ _("span", {
303
+ className: "text-sm text-text-primary",
304
+ children: "Enable Maintenance Mode"
305
+ })]
306
+ })
307
+ ]
308
+ }),
309
+ w === "security" && /* @__PURE__ */ v("div", {
310
+ className: "space-y-6",
311
+ children: [
312
+ /* @__PURE__ */ v("div", {
313
+ className: "flex items-center gap-2 mb-2",
314
+ children: [/* @__PURE__ */ _(l, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ _("h3", {
315
+ className: "text-lg font-semibold text-text-primary",
316
+ children: "Security Settings"
317
+ })]
318
+ }),
319
+ /* @__PURE__ */ v("div", { children: [
320
+ /* @__PURE__ */ _("h4", {
321
+ className: "font-medium text-text-primary mb-4",
322
+ children: "Password Policy"
323
+ }),
324
+ /* @__PURE__ */ v("div", {
325
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6",
326
+ children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
327
+ className: N,
328
+ children: "Minimum Length"
329
+ }), /* @__PURE__ */ _("input", {
330
+ type: "number",
331
+ value: E.security.passwordPolicy.minLength,
332
+ onChange: (e) => A("security", "passwordPolicy", "minLength", parseInt(e.target.value)),
333
+ min: 6,
334
+ max: 50,
335
+ className: M
336
+ })] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
337
+ className: N,
338
+ children: "Session Timeout (minutes)"
339
+ }), /* @__PURE__ */ _("input", {
340
+ type: "number",
341
+ value: E.security.sessionTimeout,
342
+ onChange: (e) => k("security", "sessionTimeout", parseInt(e.target.value)),
343
+ min: 15,
344
+ max: 480,
345
+ className: M
346
+ })] })]
347
+ }),
348
+ /* @__PURE__ */ v("div", {
349
+ className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4",
350
+ children: [
351
+ /* @__PURE__ */ v("label", {
352
+ className: "flex items-center gap-2",
353
+ children: [/* @__PURE__ */ _("input", {
354
+ type: "checkbox",
355
+ checked: E.security.passwordPolicy.requireUppercase,
356
+ onChange: (e) => A("security", "passwordPolicy", "requireUppercase", e.target.checked),
357
+ className: "rounded border-border-seam text-primary focus:ring-primary"
358
+ }), /* @__PURE__ */ _("span", {
359
+ className: "text-sm text-text-primary",
360
+ children: "Require Uppercase"
361
+ })]
362
+ }),
363
+ /* @__PURE__ */ v("label", {
364
+ className: "flex items-center gap-2",
365
+ children: [/* @__PURE__ */ _("input", {
366
+ type: "checkbox",
367
+ checked: E.security.passwordPolicy.requireNumbers,
368
+ onChange: (e) => A("security", "passwordPolicy", "requireNumbers", e.target.checked),
369
+ className: "rounded border-border-seam text-primary focus:ring-primary"
370
+ }), /* @__PURE__ */ _("span", {
371
+ className: "text-sm text-text-primary",
372
+ children: "Require Numbers"
373
+ })]
374
+ }),
375
+ /* @__PURE__ */ v("label", {
376
+ className: "flex items-center gap-2",
377
+ children: [/* @__PURE__ */ _("input", {
378
+ type: "checkbox",
379
+ checked: E.security.passwordPolicy.requireSymbols,
380
+ onChange: (e) => A("security", "passwordPolicy", "requireSymbols", e.target.checked),
381
+ className: "rounded border-border-seam text-primary focus:ring-primary"
382
+ }), /* @__PURE__ */ _("span", {
383
+ className: "text-sm text-text-primary",
384
+ children: "Require Symbols"
385
+ })]
386
+ }),
387
+ /* @__PURE__ */ v("label", {
388
+ className: "flex items-center gap-2",
389
+ children: [/* @__PURE__ */ _("input", {
390
+ type: "checkbox",
391
+ checked: E.security.twoFactorAuth,
392
+ onChange: (e) => k("security", "twoFactorAuth", e.target.checked),
393
+ className: "rounded border-border-seam text-primary focus:ring-primary"
394
+ }), /* @__PURE__ */ _("span", {
395
+ className: "text-sm text-text-primary",
396
+ children: "Two-Factor Auth"
397
+ })]
398
+ })
399
+ ]
400
+ })
401
+ ] }),
402
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
403
+ className: N,
404
+ children: "Max Login Attempts"
405
+ }), /* @__PURE__ */ _("input", {
406
+ type: "number",
407
+ value: E.security.maxLoginAttempts,
408
+ onChange: (e) => k("security", "maxLoginAttempts", parseInt(e.target.value)),
409
+ min: 1,
410
+ max: 20,
411
+ className: t(M, "max-w-xs")
412
+ })] })
413
+ ]
414
+ }),
415
+ w === "notifications" && /* @__PURE__ */ v("div", {
416
+ className: "space-y-6",
417
+ children: [/* @__PURE__ */ v("div", {
418
+ className: "flex items-center gap-2 mb-2",
419
+ children: [/* @__PURE__ */ _(a, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ _("h3", {
420
+ className: "text-lg font-semibold text-text-primary",
421
+ children: "Notification Settings"
637
422
  })]
638
- })
639
- ]
640
- })
423
+ }), /* @__PURE__ */ _("div", {
424
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
425
+ children: [
426
+ {
427
+ key: "emailNotifications",
428
+ label: "Email Notifications",
429
+ icon: u
430
+ },
431
+ {
432
+ key: "smsNotifications",
433
+ label: "SMS Notifications",
434
+ icon: g
435
+ },
436
+ {
437
+ key: "adminAlerts",
438
+ label: "Admin Alerts",
439
+ icon: h
440
+ },
441
+ {
442
+ key: "systemAlerts",
443
+ label: "System Alerts",
444
+ icon: a
445
+ }
446
+ ].map((e) => {
447
+ let t = e.icon;
448
+ return /* @__PURE__ */ v("label", {
449
+ className: "flex items-center gap-3 rounded-lg border border-border-seam p-4 cursor-pointer hover:bg-accent/50 transition-colors",
450
+ children: [
451
+ /* @__PURE__ */ _("input", {
452
+ type: "checkbox",
453
+ checked: E.notifications[e.key],
454
+ onChange: (t) => k("notifications", e.key, t.target.checked),
455
+ className: "rounded border-border-seam text-primary focus:ring-primary"
456
+ }),
457
+ /* @__PURE__ */ _(t, { className: "h-5 w-5 text-text-secondary" }),
458
+ /* @__PURE__ */ _("span", {
459
+ className: "text-sm font-medium text-text-primary",
460
+ children: e.label
461
+ })
462
+ ]
463
+ }, e.key);
464
+ })
465
+ })]
466
+ }),
467
+ w === "database" && /* @__PURE__ */ v("div", {
468
+ className: "space-y-6",
469
+ children: [
470
+ /* @__PURE__ */ v("div", {
471
+ className: "flex items-center gap-2 mb-2",
472
+ children: [/* @__PURE__ */ _(c, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ _("h3", {
473
+ className: "text-lg font-semibold text-text-primary",
474
+ children: "Database Settings"
475
+ })]
476
+ }),
477
+ /* @__PURE__ */ v("div", {
478
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6",
479
+ children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
480
+ className: N,
481
+ children: "Backup Frequency"
482
+ }), /* @__PURE__ */ v("select", {
483
+ value: E.database.backupFrequency,
484
+ onChange: (e) => k("database", "backupFrequency", e.target.value),
485
+ className: M,
486
+ children: [
487
+ /* @__PURE__ */ _("option", {
488
+ value: "hourly",
489
+ children: "Hourly"
490
+ }),
491
+ /* @__PURE__ */ _("option", {
492
+ value: "daily",
493
+ children: "Daily"
494
+ }),
495
+ /* @__PURE__ */ _("option", {
496
+ value: "weekly",
497
+ children: "Weekly"
498
+ }),
499
+ /* @__PURE__ */ _("option", {
500
+ value: "monthly",
501
+ children: "Monthly"
502
+ })
503
+ ]
504
+ })] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
505
+ className: N,
506
+ children: "Retention Period (days)"
507
+ }), /* @__PURE__ */ _("input", {
508
+ type: "number",
509
+ value: E.database.retentionPeriod,
510
+ onChange: (e) => k("database", "retentionPeriod", parseInt(e.target.value)),
511
+ min: 7,
512
+ max: 365,
513
+ className: M
514
+ })] })]
515
+ }),
516
+ /* @__PURE__ */ v("label", {
517
+ className: "flex items-center gap-2",
518
+ children: [/* @__PURE__ */ _("input", {
519
+ type: "checkbox",
520
+ checked: E.database.autoBackup,
521
+ onChange: (e) => k("database", "autoBackup", e.target.checked),
522
+ className: "rounded border-border-seam text-primary focus:ring-primary"
523
+ }), /* @__PURE__ */ _("span", {
524
+ className: "text-sm text-text-primary",
525
+ children: "Enable Auto Backup"
526
+ })]
527
+ }),
528
+ /* @__PURE__ */ v("div", {
529
+ className: "rounded-lg bg-bg-sunken p-4",
530
+ children: [/* @__PURE__ */ _("p", {
531
+ className: "text-sm text-text-secondary",
532
+ children: "Last Backup"
533
+ }), /* @__PURE__ */ _("p", {
534
+ className: "text-sm font-medium text-text-primary",
535
+ children: new Date(E.database.lastBackup).toLocaleString("en-IN")
536
+ })]
537
+ })
538
+ ]
539
+ }),
540
+ w === "integrations" && /* @__PURE__ */ v("div", {
541
+ className: "space-y-6",
542
+ children: [/* @__PURE__ */ v("div", {
543
+ className: "flex items-center gap-2 mb-2",
544
+ children: [/* @__PURE__ */ _(d, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ _("h3", {
545
+ className: "text-lg font-semibold text-text-primary",
546
+ children: "Integrations"
547
+ })]
548
+ }), /* @__PURE__ */ v("div", {
549
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6",
550
+ children: [
551
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
552
+ className: N,
553
+ children: "Email Service"
554
+ }), /* @__PURE__ */ v("select", {
555
+ value: E.integrations.emailService,
556
+ onChange: (e) => k("integrations", "emailService", e.target.value),
557
+ className: M,
558
+ children: [
559
+ /* @__PURE__ */ _("option", {
560
+ value: "sendgrid",
561
+ children: "SendGrid"
562
+ }),
563
+ /* @__PURE__ */ _("option", {
564
+ value: "ses",
565
+ children: "AWS SES"
566
+ }),
567
+ /* @__PURE__ */ _("option", {
568
+ value: "mailgun",
569
+ children: "Mailgun"
570
+ })
571
+ ]
572
+ })] }),
573
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
574
+ className: N,
575
+ children: "SMS Service"
576
+ }), /* @__PURE__ */ v("select", {
577
+ value: E.integrations.smsService,
578
+ onChange: (e) => k("integrations", "smsService", e.target.value),
579
+ className: M,
580
+ children: [
581
+ /* @__PURE__ */ _("option", {
582
+ value: "twilio",
583
+ children: "Twilio"
584
+ }),
585
+ /* @__PURE__ */ _("option", {
586
+ value: "msg91",
587
+ children: "MSG91"
588
+ }),
589
+ /* @__PURE__ */ _("option", {
590
+ value: "sns",
591
+ children: "AWS SNS"
592
+ })
593
+ ]
594
+ })] }),
595
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
596
+ className: N,
597
+ children: "Payment Gateway"
598
+ }), /* @__PURE__ */ v("select", {
599
+ value: E.integrations.paymentGateway,
600
+ onChange: (e) => k("integrations", "paymentGateway", e.target.value),
601
+ className: M,
602
+ children: [
603
+ /* @__PURE__ */ _("option", {
604
+ value: "razorpay",
605
+ children: "Razorpay"
606
+ }),
607
+ /* @__PURE__ */ _("option", {
608
+ value: "stripe",
609
+ children: "Stripe"
610
+ }),
611
+ /* @__PURE__ */ _("option", {
612
+ value: "paytm",
613
+ children: "Paytm"
614
+ })
615
+ ]
616
+ })] }),
617
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
618
+ className: N,
619
+ children: "Analytics Service"
620
+ }), /* @__PURE__ */ v("select", {
621
+ value: E.integrations.analyticsService,
622
+ onChange: (e) => k("integrations", "analyticsService", e.target.value),
623
+ className: M,
624
+ children: [
625
+ /* @__PURE__ */ _("option", {
626
+ value: "google",
627
+ children: "Google Analytics"
628
+ }),
629
+ /* @__PURE__ */ _("option", {
630
+ value: "mixpanel",
631
+ children: "Mixpanel"
632
+ }),
633
+ /* @__PURE__ */ _("option", {
634
+ value: "amplitude",
635
+ children: "Amplitude"
636
+ })
637
+ ]
638
+ })] })
639
+ ]
640
+ })]
641
+ })
642
+ ] })
641
643
  })
642
644
  ]
643
- })
645
+ })]
644
646
  });
645
647
  }
646
648
  //#endregion
647
- export { v as AdminSettingsPage };
649
+ export { x as AdminSettingsPage };
648
650
 
649
651
  //# sourceMappingURL=AdminSettingsPage.js.map