@burdenoff/microfe-coolandlovely 2026.625.1 → 2026.625.2

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