@burdenoff/microfe-labsofscience 2026.626.2 → 2026.628.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 (172) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/labsofscience/LabsOfScienceRoot.js +68 -124
  3. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  4. package/dist/labsofscience/LabsOfScienceRoutes.js +61 -185
  5. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  6. package/dist/labsofscience/components/QueryStates.js +40 -0
  7. package/dist/labsofscience/components/QueryStates.js.map +1 -0
  8. package/dist/labsofscience/components/StatusBadge.js +40 -23
  9. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  10. package/dist/labsofscience/context/LabsOfScienceContext.js +22 -30
  11. package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
  12. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +500 -172
  13. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  14. package/dist/labsofscience/pages/OverviewPage.js +195 -0
  15. package/dist/labsofscience/pages/OverviewPage.js.map +1 -0
  16. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +162 -0
  17. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -0
  18. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +137 -0
  19. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -0
  20. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +155 -0
  21. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -0
  22. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +220 -0
  23. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -0
  24. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +170 -0
  25. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -0
  26. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +134 -0
  27. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -0
  28. package/dist/labsofscience/pages/experiments/RunDialogs.js +180 -0
  29. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -0
  30. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +130 -0
  31. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -0
  32. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +132 -0
  33. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -0
  34. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +126 -0
  35. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -0
  36. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +89 -0
  37. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -0
  38. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +138 -0
  39. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -0
  40. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +211 -0
  41. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -0
  42. package/dist/labsofscience/pages/inventory/InventoryListPage.js +178 -0
  43. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -0
  44. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +118 -0
  45. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -0
  46. package/dist/labsofscience/pages/notebook/NotebookListPage.js +144 -0
  47. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -0
  48. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +146 -0
  49. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -0
  50. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +212 -0
  51. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -0
  52. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +109 -0
  53. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -0
  54. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +174 -0
  55. package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -0
  56. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +169 -0
  57. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -0
  58. package/dist/labsofscience/pages/projects/ProjectsListPage.js +141 -0
  59. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -0
  60. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +133 -0
  61. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -0
  62. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +151 -0
  63. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -0
  64. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +140 -0
  65. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -0
  66. package/dist/labsofscience/pages/shared/DetailComponents.js +64 -0
  67. package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -0
  68. package/dist/labsofscience/pages/shared/tags.js +16 -0
  69. package/dist/labsofscience/pages/shared/tags.js.map +1 -0
  70. package/dist/labsofscience/store/labsofscienceStore.js +6 -11
  71. package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
  72. package/dist/labsofscience/utils/formatters.js +28 -13
  73. package/dist/labsofscience/utils/formatters.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/labsofscience/components/InvestmentCard.js +0 -98
  76. package/dist/labsofscience/components/InvestmentCard.js.map +0 -1
  77. package/dist/labsofscience/components/RatingDisplay.js +0 -35
  78. package/dist/labsofscience/components/RatingDisplay.js.map +0 -1
  79. package/dist/labsofscience/mocks/data.js +0 -1517
  80. package/dist/labsofscience/mocks/data.js.map +0 -1
  81. package/dist/labsofscience/mocks/users.js +0 -34
  82. package/dist/labsofscience/mocks/users.js.map +0 -1
  83. package/dist/labsofscience/pages/HomePage.js +0 -940
  84. package/dist/labsofscience/pages/HomePage.js.map +0 -1
  85. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +0 -651
  86. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +0 -1
  87. package/dist/labsofscience/pages/admin/AdminDashboard.js +0 -672
  88. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +0 -1
  89. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +0 -427
  90. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +0 -1
  91. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +0 -665
  92. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +0 -1
  93. package/dist/labsofscience/pages/admin/AdminProfilePage.js +0 -261
  94. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +0 -1
  95. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +0 -651
  96. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +0 -1
  97. package/dist/labsofscience/pages/admin/CartManagementPage.js +0 -874
  98. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +0 -1
  99. package/dist/labsofscience/pages/admin/UserManagementPage.js +0 -898
  100. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +0 -1
  101. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +0 -839
  102. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  103. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +0 -705
  104. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  105. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +0 -791
  106. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  107. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  108. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  109. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +0 -636
  110. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  111. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +0 -911
  112. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  113. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +0 -879
  114. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +0 -1
  115. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +0 -839
  116. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +0 -1
  117. package/dist/labsofscience/pages/common/HelpSupportPage.js +0 -1324
  118. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +0 -1
  119. package/dist/labsofscience/pages/common/NotificationCenterPage.js +0 -672
  120. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +0 -1
  121. package/dist/labsofscience/pages/common/SettingsPage.js +0 -973
  122. package/dist/labsofscience/pages/common/SettingsPage.js.map +0 -1
  123. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +0 -637
  124. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +0 -1
  125. package/dist/labsofscience/pages/customer/CartDetailPage.js +0 -653
  126. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +0 -1
  127. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +0 -559
  128. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +0 -1
  129. package/dist/labsofscience/pages/customer/CheckoutPage.js +0 -530
  130. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +0 -1
  131. package/dist/labsofscience/pages/customer/CustomerDashboard.js +0 -531
  132. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +0 -1
  133. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +0 -658
  134. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +0 -1
  135. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +0 -633
  136. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +0 -1
  137. package/dist/labsofscience/pages/customer/FavoritesPage.js +0 -484
  138. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +0 -1
  139. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +0 -445
  140. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +0 -1
  141. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +0 -425
  142. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +0 -1
  143. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +0 -495
  144. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +0 -1
  145. package/dist/labsofscience/pages/customer/ReviewsPage.js +0 -613
  146. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +0 -1
  147. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +0 -450
  148. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +0 -1
  149. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +0 -881
  150. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +0 -1
  151. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +0 -946
  152. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  153. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +0 -687
  154. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  155. package/dist/labsofscience/pages/investor/InvestorDashboard.js +0 -455
  156. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +0 -1
  157. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +0 -406
  158. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  159. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +0 -575
  160. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +0 -1
  161. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +0 -1070
  162. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +0 -1
  163. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +0 -537
  164. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +0 -1
  165. package/dist/labsofscience/pages/worker/WorkerDashboard.js +0 -665
  166. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +0 -1
  167. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +0 -681
  168. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +0 -1
  169. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +0 -692
  170. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +0 -1
  171. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +0 -588
  172. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -1,651 +0,0 @@
1
- import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
2
- import { cn as t } from "../../utils/cn.js";
3
- import { PageLayout as n } from "../../components/PageLayout.js";
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, 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";
8
- //#region src/labsofscience/pages/admin/AdminSettingsPage.tsx
9
- function x() {
10
- let { navigateTo: x } = e(), [S, C] = r(!1), [w, T] = r("general"), [E, D] = r({
11
- general: {
12
- siteName: "LabsOfScience",
13
- siteUrl: "https://labsofscience.com",
14
- timezone: "Asia/Kolkata",
15
- language: "en",
16
- currency: "INR",
17
- dateFormat: "DD/MM/YYYY",
18
- maintenanceMode: !1
19
- },
20
- security: {
21
- passwordPolicy: {
22
- minLength: 8,
23
- requireUppercase: !0,
24
- requireNumbers: !0,
25
- requireSymbols: !1
26
- },
27
- sessionTimeout: 60,
28
- twoFactorAuth: !1,
29
- maxLoginAttempts: 5
30
- },
31
- notifications: {
32
- emailNotifications: !0,
33
- smsNotifications: !0,
34
- adminAlerts: !0,
35
- systemAlerts: !0
36
- },
37
- database: {
38
- backupFrequency: "daily",
39
- retentionPeriod: 30,
40
- autoBackup: !0,
41
- lastBackup: (/* @__PURE__ */ new Date()).toISOString()
42
- },
43
- integrations: {
44
- emailService: "sendgrid",
45
- smsService: "twilio",
46
- paymentGateway: "razorpay",
47
- analyticsService: "google"
48
- }
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) => ({
53
- ...r,
54
- [e]: {
55
- ...r[e],
56
- [t]: n
57
- }
58
- }));
59
- }, A = (e, t, n, r) => {
60
- D((i) => ({
61
- ...i,
62
- [e]: {
63
- ...i[e],
64
- [t]: {
65
- ...i[e][t],
66
- [n]: r
67
- }
68
- }
69
- }));
70
- }, j = [
71
- {
72
- id: "general",
73
- label: "General",
74
- icon: p
75
- },
76
- {
77
- id: "security",
78
- label: "Security",
79
- icon: h
80
- },
81
- {
82
- id: "notifications",
83
- label: "Notifications",
84
- icon: a
85
- },
86
- {
87
- id: "database",
88
- label: "Database",
89
- icon: o
90
- },
91
- {
92
- id: "integrations",
93
- label: "Integrations",
94
- icon: d
95
- }
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, {
98
- title: "System Settings",
99
- description: "Configure platform-wide settings and policies",
100
- actions: /* @__PURE__ */ v("div", {
101
- className: "flex items-center gap-2",
102
- children: [/* @__PURE__ */ v("button", {
103
- type: "button",
104
- onClick: () => x("/admin"),
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",
106
- children: [/* @__PURE__ */ _(i, { className: "h-4 w-4" }), " Back"]
107
- }), /* @__PURE__ */ v("button", {
108
- type: "button",
109
- onClick: O,
110
- disabled: S,
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",
112
- children: [
113
- /* @__PURE__ */ _(f, { className: "h-4 w-4" }),
114
- " ",
115
- S ? "Saving..." : "Save Settings"
116
- ]
117
- })]
118
- }),
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", {
124
- className: "flex flex-col lg:flex-row gap-6",
125
- children: [
126
- /* @__PURE__ */ _("div", {
127
- className: "lg:hidden",
128
- children: /* @__PURE__ */ _("div", {
129
- className: "rounded-lg border border-border-seam bg-bg-surface p-3 mb-4",
130
- children: /* @__PURE__ */ _("div", {
131
- className: "grid grid-cols-2 sm:grid-cols-3 gap-2",
132
- children: j.map((e) => {
133
- let n = e.icon;
134
- return /* @__PURE__ */ v("button", {
135
- type: "button",
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 })]
139
- }, e.id);
140
- })
141
- })
142
- })
143
- }),
144
- /* @__PURE__ */ _("div", {
145
- className: "hidden lg:block lg:w-64 lg:shrink-0",
146
- children: /* @__PURE__ */ v("div", {
147
- className: "rounded-lg border border-border-seam bg-bg-surface sticky top-24",
148
- children: [/* @__PURE__ */ _("div", {
149
- className: "p-4 border-b border-border-seam",
150
- children: /* @__PURE__ */ _("h2", {
151
- className: "font-semibold text-text-primary",
152
- children: "Settings"
153
- })
154
- }), /* @__PURE__ */ _("nav", {
155
- className: "p-2",
156
- children: j.map((e) => {
157
- let n = e.icon;
158
- return /* @__PURE__ */ v("button", {
159
- type: "button",
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", {
163
- className: "text-sm",
164
- children: e.label
165
- })]
166
- }, e.id);
167
- })
168
- })]
169
- })
170
- }),
171
- /* @__PURE__ */ _("div", {
172
- className: "flex-1 min-w-0",
173
- children: /* @__PURE__ */ v(y, { children: [
174
- w === "general" && /* @__PURE__ */ v("div", {
175
- className: "space-y-6",
176
- children: [
177
- /* @__PURE__ */ v("div", {
178
- className: "flex items-center gap-2 mb-2",
179
- children: [/* @__PURE__ */ _(s, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ _("h3", {
180
- className: "text-lg font-semibold text-text-primary",
181
- children: "General Settings"
182
- })]
183
- }),
184
- /* @__PURE__ */ v("div", {
185
- className: "grid grid-cols-1 md:grid-cols-2 gap-6",
186
- children: [
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,
212
- children: [
213
- /* @__PURE__ */ _("option", {
214
- value: "Asia/Kolkata",
215
- children: "Asia/Kolkata (IST)"
216
- }),
217
- /* @__PURE__ */ _("option", {
218
- value: "UTC",
219
- children: "UTC"
220
- }),
221
- /* @__PURE__ */ _("option", {
222
- value: "America/New_York",
223
- children: "America/New_York (EST)"
224
- })
225
- ]
226
- })] }),
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,
234
- children: [
235
- /* @__PURE__ */ _("option", {
236
- value: "INR",
237
- children: "Indian Rupee (INR)"
238
- }),
239
- /* @__PURE__ */ _("option", {
240
- value: "USD",
241
- children: "US Dollar (USD)"
242
- }),
243
- /* @__PURE__ */ _("option", {
244
- value: "EUR",
245
- children: "Euro (EUR)"
246
- })
247
- ]
248
- })] }),
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,
256
- children: [
257
- /* @__PURE__ */ _("option", {
258
- value: "en",
259
- children: "English"
260
- }),
261
- /* @__PURE__ */ _("option", {
262
- value: "hi",
263
- children: "Hindi"
264
- }),
265
- /* @__PURE__ */ _("option", {
266
- value: "ta",
267
- children: "Tamil"
268
- })
269
- ]
270
- })] }),
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,
278
- children: [
279
- /* @__PURE__ */ _("option", {
280
- value: "DD/MM/YYYY",
281
- children: "DD/MM/YYYY"
282
- }),
283
- /* @__PURE__ */ _("option", {
284
- value: "MM/DD/YYYY",
285
- children: "MM/DD/YYYY"
286
- }),
287
- /* @__PURE__ */ _("option", {
288
- value: "YYYY-MM-DD",
289
- children: "YYYY-MM-DD"
290
- })
291
- ]
292
- })] })
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"
422
- })]
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
- ] })
643
- })
644
- ]
645
- })]
646
- });
647
- }
648
- //#endregion
649
- export { x as AdminSettingsPage };
650
-
651
- //# sourceMappingURL=AdminSettingsPage.js.map