@burdenoff/microfe-labsofscience 2026.626.2 → 2026.629.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,891 +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 { mockCartOwner as r } from "../../mocks/users.js";
5
- import { useState as i } from "react";
6
- import { AlertCircle as a, BadgeCheck as o, Bell as s, Building2 as c, Camera as l, CheckCircle2 as u, Clock as d, CreditCard as f, Edit2 as p, Key as m, Lock as h, Save as g, Shield as _, Star as v, User as y } from "lucide-react";
7
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
8
- import { EmphasisPanel as C, PagePurpose as w } from "@burdenoff/fe-libs/ui";
9
- //#region src/labsofscience/pages/cart-owner/CartOwnerProfilePage.tsx
10
- var T = [
11
- {
12
- id: "personal",
13
- label: "Personal Info",
14
- icon: y
15
- },
16
- {
17
- id: "business",
18
- label: "Business Details",
19
- icon: c
20
- },
21
- {
22
- id: "operations",
23
- label: "Operations",
24
- icon: d
25
- },
26
- {
27
- id: "banking",
28
- label: "Banking",
29
- icon: f
30
- },
31
- {
32
- id: "security",
33
- label: "Security",
34
- icon: h
35
- },
36
- {
37
- id: "notifications",
38
- label: "Notifications",
39
- icon: s
40
- }
41
- ], E = [
42
- "Monday",
43
- "Tuesday",
44
- "Wednesday",
45
- "Thursday",
46
- "Friday",
47
- "Saturday",
48
- "Sunday"
49
- ], D = () => {
50
- let { navigateTo: s } = e(), [c, d] = i("personal"), [f, h] = i(!1), [D, O] = i(!1), [k, A] = i({
51
- firstName: r.firstName,
52
- lastName: r.lastName,
53
- email: r.email,
54
- phone: r.phone,
55
- dateOfBirth: "1990-05-15",
56
- gender: "Male",
57
- address: "Koramangala 5th Block, Bangalore - 560034",
58
- bio: "Passionate about South Indian cuisine. Running Dosa Express since 2020."
59
- }), [j, M] = i({
60
- businessName: "Dosa Express",
61
- category: "Food & Beverage",
62
- description: "Authentic South Indian street food with a modern twist.",
63
- gstNumber: "29ABCDE1234F1Z5",
64
- panNumber: "ABCDE1234F",
65
- fssaiLicense: "12345678",
66
- businessAddress: "Koramangala 5th Block, Bangalore - 560034",
67
- businessPhone: "+91-9876543210",
68
- businessEmail: "ravi@dosaexpress.in"
69
- }), [N, P] = i({
70
- workingDays: [
71
- "Monday",
72
- "Tuesday",
73
- "Wednesday",
74
- "Thursday",
75
- "Friday",
76
- "Saturday"
77
- ],
78
- openTime: "09:00",
79
- closeTime: "21:00",
80
- preparationTime: 15,
81
- deliveryRadius: 5,
82
- maxOrdersPerDay: 100
83
- }), [F, I] = i({
84
- bankName: "State Bank of India",
85
- accountHolder: "Ravi Kumar",
86
- accountNumber: "1234567890123456",
87
- ifscCode: "SBIN0001234",
88
- upiId: "ravikumar@sbi",
89
- payoutSchedule: "weekly"
90
- }), [L, R] = i({
91
- twoFactorEnabled: !0,
92
- lastPasswordChange: "2024-01-01"
93
- }), [z, B] = i({
94
- orderAlerts: !0,
95
- paymentAlerts: !0,
96
- reviewAlerts: !0,
97
- promotionalEmails: !1,
98
- smsAlerts: !0,
99
- weeklyReport: !0
100
- }), V = {
101
- rating: 4.5,
102
- totalOrders: 1247,
103
- memberSince: "2023-03-01",
104
- verificationPercentage: 86
105
- }, H = () => {
106
- O(!0), h(!1), setTimeout(() => O(!1), 3e3);
107
- }, U = (e) => {
108
- P((t) => ({
109
- ...t,
110
- workingDays: t.workingDays.includes(e) ? t.workingDays.filter((t) => t !== e) : [...t.workingDays, e]
111
- }));
112
- };
113
- return /* @__PURE__ */ x(n, {
114
- title: "Profile",
115
- description: "Your business profile and settings",
116
- actions: /* @__PURE__ */ x("div", {
117
- className: "flex items-center gap-2",
118
- children: f ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
119
- type: "button",
120
- onClick: () => h(!1),
121
- className: "rounded-md border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
122
- children: "Cancel"
123
- }), /* @__PURE__ */ S("button", {
124
- type: "button",
125
- onClick: H,
126
- className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
127
- children: [/* @__PURE__ */ x(g, { className: "h-4 w-4" }), "Save"]
128
- })] }) : /* @__PURE__ */ S("button", {
129
- type: "button",
130
- onClick: () => h(!0),
131
- className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
132
- children: [/* @__PURE__ */ x(p, { className: "h-4 w-4" }), "Edit Profile"]
133
- })
134
- }),
135
- children: /* @__PURE__ */ S("div", {
136
- className: "space-y-4",
137
- children: [
138
- D && /* @__PURE__ */ S("div", {
139
- className: "flex items-center gap-2 rounded-lg border border-status-success-border bg-status-success-bg-subtle p-3",
140
- children: [/* @__PURE__ */ x(u, { className: "h-4 w-4 text-status-success-text" }), /* @__PURE__ */ x("span", {
141
- className: "text-sm font-medium text-status-success-text",
142
- children: "Profile saved successfully!"
143
- })]
144
- }),
145
- /* @__PURE__ */ x(w, {
146
- icon: /* @__PURE__ */ x(y, { className: "h-4 w-4" }),
147
- children: "Your business identity on the platform. Keep your owner details, business documents and verification up to date, and review your reputation at a glance — a complete, verified profile builds customer trust and unlocks more selling features."
148
- }),
149
- /* @__PURE__ */ S(C, {
150
- className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
151
- children: [
152
- /* @__PURE__ */ S("div", {
153
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm text-center",
154
- children: [/* @__PURE__ */ S("p", {
155
- className: "text-2xl font-bold text-text-primary flex items-center justify-center gap-1",
156
- children: [/* @__PURE__ */ x(v, { className: "h-5 w-5 fill-status-warning-text text-status-warning-text" }), V.rating]
157
- }), /* @__PURE__ */ x("p", {
158
- className: "text-xs text-text-secondary",
159
- children: "Rating"
160
- })]
161
- }),
162
- /* @__PURE__ */ S("div", {
163
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm text-center",
164
- children: [/* @__PURE__ */ x("p", {
165
- className: "text-2xl font-bold text-text-primary",
166
- children: V.totalOrders.toLocaleString()
167
- }), /* @__PURE__ */ x("p", {
168
- className: "text-xs text-text-secondary",
169
- children: "Total Orders"
170
- })]
171
- }),
172
- /* @__PURE__ */ S("div", {
173
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm text-center",
174
- children: [/* @__PURE__ */ S("p", {
175
- className: "text-2xl font-bold text-text-primary",
176
- children: [V.verificationPercentage, "%"]
177
- }), /* @__PURE__ */ x("p", {
178
- className: "text-xs text-text-secondary",
179
- children: "Verified"
180
- })]
181
- }),
182
- /* @__PURE__ */ S("div", {
183
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm text-center",
184
- children: [/* @__PURE__ */ x("p", {
185
- className: "text-sm font-bold text-text-primary",
186
- children: new Date(V.memberSince).toLocaleDateString("en-IN", {
187
- month: "short",
188
- year: "numeric"
189
- })
190
- }), /* @__PURE__ */ x("p", {
191
- className: "text-xs text-text-secondary",
192
- children: "Member Since"
193
- })]
194
- })
195
- ]
196
- }),
197
- /* @__PURE__ */ S("div", {
198
- className: "flex flex-col lg:flex-row gap-6",
199
- children: [/* @__PURE__ */ S("div", {
200
- className: "lg:w-56 shrink-0",
201
- children: [/* @__PURE__ */ x("div", {
202
- className: "lg:hidden rounded-lg border border-border-seam bg-bg-surface p-3 shadow-sm",
203
- children: /* @__PURE__ */ x("div", {
204
- className: "grid grid-cols-3 gap-2",
205
- children: T.map((e) => {
206
- let n = e.icon;
207
- return /* @__PURE__ */ S("button", {
208
- type: "button",
209
- onClick: () => d(e.id),
210
- className: t("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors", c === e.id ? "bg-accent text-text-primary" : "text-text-secondary hover:bg-bg-sunken"),
211
- children: [/* @__PURE__ */ x(n, { className: "h-4 w-4" }), e.label.split(" ")[0]]
212
- }, e.id);
213
- })
214
- })
215
- }), /* @__PURE__ */ S("div", {
216
- className: "hidden lg:block rounded-lg border border-border-seam bg-bg-surface shadow-sm sticky top-24",
217
- children: [/* @__PURE__ */ x("div", {
218
- className: "p-4 border-b border-border-seam",
219
- children: /* @__PURE__ */ x("h2", {
220
- className: "font-semibold text-text-primary text-sm",
221
- children: "Profile Settings"
222
- })
223
- }), /* @__PURE__ */ x("nav", {
224
- className: "p-2",
225
- children: T.map((e) => {
226
- let n = e.icon;
227
- return /* @__PURE__ */ S("button", {
228
- type: "button",
229
- onClick: () => d(e.id),
230
- className: t("w-full text-left px-3 py-2 rounded-md mb-1 flex items-center gap-3 text-sm transition-colors", c === e.id ? "bg-accent text-text-primary font-medium" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
231
- children: [/* @__PURE__ */ x(n, { className: "h-4 w-4" }), e.label]
232
- }, e.id);
233
- })
234
- })]
235
- })]
236
- }), /* @__PURE__ */ x("div", {
237
- className: "flex-1 min-w-0",
238
- children: /* @__PURE__ */ S("div", {
239
- className: "rounded-lg border border-border-seam bg-bg-surface p-5 sm:p-6 shadow-sm",
240
- children: [
241
- c === "personal" && /* @__PURE__ */ S("div", {
242
- className: "space-y-5",
243
- children: [
244
- /* @__PURE__ */ S("div", {
245
- className: "flex items-center gap-5",
246
- children: [/* @__PURE__ */ S("div", {
247
- className: "relative",
248
- children: [/* @__PURE__ */ S("div", {
249
- className: "flex h-20 w-20 items-center justify-center rounded-full bg-bg-sunken text-2xl font-bold text-text-primary",
250
- children: [k.firstName[0], k.lastName[0]]
251
- }), f && /* @__PURE__ */ x("button", {
252
- type: "button",
253
- onClick: () => alert("Image upload coming soon!"),
254
- className: "absolute -bottom-1 -right-1 flex h-7 w-7 items-center justify-center rounded-full bg-accent text-text-primary border-2 border-card hover:bg-accent/80",
255
- children: /* @__PURE__ */ x(l, { className: "h-3.5 w-3.5" })
256
- })]
257
- }), /* @__PURE__ */ S("div", { children: [
258
- /* @__PURE__ */ S("p", {
259
- className: "text-lg font-semibold text-text-primary",
260
- children: [
261
- k.firstName,
262
- " ",
263
- k.lastName
264
- ]
265
- }),
266
- /* @__PURE__ */ x("p", {
267
- className: "text-sm text-text-secondary",
268
- children: "Cart Owner"
269
- }),
270
- /* @__PURE__ */ S("div", {
271
- className: "flex items-center gap-2 mt-1",
272
- children: [/* @__PURE__ */ S("span", {
273
- className: "inline-flex items-center gap-1 rounded-full bg-status-info-bg-subtle px-2.5 py-0.5 text-xs font-medium text-status-info-text",
274
- children: [/* @__PURE__ */ x(o, { className: "h-3 w-3" }), "Verified"]
275
- }), /* @__PURE__ */ S("span", {
276
- className: "flex items-center gap-0.5 text-xs text-status-warning-text",
277
- children: [/* @__PURE__ */ x(v, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), V.rating]
278
- })]
279
- })
280
- ] })]
281
- }),
282
- /* @__PURE__ */ S("div", {
283
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
284
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
285
- className: "block text-sm font-medium text-text-primary mb-1",
286
- children: "First Name"
287
- }), /* @__PURE__ */ x("input", {
288
- type: "text",
289
- value: k.firstName,
290
- onChange: (e) => A((t) => ({
291
- ...t,
292
- firstName: e.target.value
293
- })),
294
- disabled: !f,
295
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
296
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
297
- className: "block text-sm font-medium text-text-primary mb-1",
298
- children: "Last Name"
299
- }), /* @__PURE__ */ x("input", {
300
- type: "text",
301
- value: k.lastName,
302
- onChange: (e) => A((t) => ({
303
- ...t,
304
- lastName: e.target.value
305
- })),
306
- disabled: !f,
307
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
308
- })] })]
309
- }),
310
- /* @__PURE__ */ S("div", {
311
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
312
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
313
- className: "block text-sm font-medium text-text-primary mb-1",
314
- children: "Email"
315
- }), /* @__PURE__ */ x("input", {
316
- type: "email",
317
- value: k.email,
318
- onChange: (e) => A((t) => ({
319
- ...t,
320
- email: e.target.value
321
- })),
322
- disabled: !f,
323
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
324
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
325
- className: "block text-sm font-medium text-text-primary mb-1",
326
- children: "Phone"
327
- }), /* @__PURE__ */ x("input", {
328
- type: "tel",
329
- value: k.phone,
330
- onChange: (e) => A((t) => ({
331
- ...t,
332
- phone: e.target.value
333
- })),
334
- disabled: !f,
335
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
336
- })] })]
337
- }),
338
- /* @__PURE__ */ S("div", {
339
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
340
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
341
- className: "block text-sm font-medium text-text-primary mb-1",
342
- children: "Date of Birth"
343
- }), /* @__PURE__ */ x("input", {
344
- type: "date",
345
- value: k.dateOfBirth,
346
- onChange: (e) => A((t) => ({
347
- ...t,
348
- dateOfBirth: e.target.value
349
- })),
350
- disabled: !f,
351
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
352
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
353
- className: "block text-sm font-medium text-text-primary mb-1",
354
- children: "Gender"
355
- }), /* @__PURE__ */ S("select", {
356
- value: k.gender,
357
- onChange: (e) => A((t) => ({
358
- ...t,
359
- gender: e.target.value
360
- })),
361
- disabled: !f,
362
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed"),
363
- children: [
364
- /* @__PURE__ */ x("option", {
365
- value: "Male",
366
- children: "Male"
367
- }),
368
- /* @__PURE__ */ x("option", {
369
- value: "Female",
370
- children: "Female"
371
- }),
372
- /* @__PURE__ */ x("option", {
373
- value: "Other",
374
- children: "Other"
375
- })
376
- ]
377
- })] })]
378
- }),
379
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
380
- className: "block text-sm font-medium text-text-primary mb-1",
381
- children: "Address"
382
- }), /* @__PURE__ */ x("input", {
383
- type: "text",
384
- value: k.address,
385
- onChange: (e) => A((t) => ({
386
- ...t,
387
- address: e.target.value
388
- })),
389
- disabled: !f,
390
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
391
- })] }),
392
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
393
- className: "block text-sm font-medium text-text-primary mb-1",
394
- children: "Bio"
395
- }), /* @__PURE__ */ x("textarea", {
396
- value: k.bio,
397
- onChange: (e) => A((t) => ({
398
- ...t,
399
- bio: e.target.value
400
- })),
401
- disabled: !f,
402
- rows: 3,
403
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary resize-none", !f && "bg-bg-sunken/50 cursor-not-allowed")
404
- })] })
405
- ]
406
- }),
407
- c === "business" && /* @__PURE__ */ S("div", {
408
- className: "space-y-5",
409
- children: [
410
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
411
- className: "block text-sm font-medium text-text-primary mb-1",
412
- children: "Business Name"
413
- }), /* @__PURE__ */ x("input", {
414
- type: "text",
415
- value: j.businessName,
416
- onChange: (e) => M((t) => ({
417
- ...t,
418
- businessName: e.target.value
419
- })),
420
- disabled: !f,
421
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
422
- })] }),
423
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
424
- className: "block text-sm font-medium text-text-primary mb-1",
425
- children: "Category"
426
- }), /* @__PURE__ */ x("select", {
427
- value: j.category,
428
- onChange: (e) => M((t) => ({
429
- ...t,
430
- category: e.target.value
431
- })),
432
- disabled: !f,
433
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed"),
434
- children: [
435
- "Food & Beverage",
436
- "Personal Care & Beauty",
437
- "Repair & Maintenance",
438
- "Home Services",
439
- "Retail & Merchandise"
440
- ].map((e) => /* @__PURE__ */ x("option", {
441
- value: e,
442
- children: e
443
- }, e))
444
- })] }),
445
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
446
- className: "block text-sm font-medium text-text-primary mb-1",
447
- children: "Description"
448
- }), /* @__PURE__ */ x("textarea", {
449
- value: j.description,
450
- onChange: (e) => M((t) => ({
451
- ...t,
452
- description: e.target.value
453
- })),
454
- disabled: !f,
455
- rows: 3,
456
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary resize-none", !f && "bg-bg-sunken/50 cursor-not-allowed")
457
- })] }),
458
- /* @__PURE__ */ S("div", {
459
- className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
460
- children: [
461
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
462
- className: "block text-sm font-medium text-text-primary mb-1",
463
- children: "GST Number"
464
- }), /* @__PURE__ */ x("input", {
465
- type: "text",
466
- value: j.gstNumber,
467
- onChange: (e) => M((t) => ({
468
- ...t,
469
- gstNumber: e.target.value
470
- })),
471
- disabled: !f,
472
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
473
- })] }),
474
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
475
- className: "block text-sm font-medium text-text-primary mb-1",
476
- children: "PAN Number"
477
- }), /* @__PURE__ */ x("input", {
478
- type: "text",
479
- value: j.panNumber,
480
- onChange: (e) => M((t) => ({
481
- ...t,
482
- panNumber: e.target.value
483
- })),
484
- disabled: !f,
485
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
486
- })] }),
487
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
488
- className: "block text-sm font-medium text-text-primary mb-1",
489
- children: "FSSAI License"
490
- }), /* @__PURE__ */ x("input", {
491
- type: "text",
492
- value: j.fssaiLicense,
493
- onChange: (e) => M((t) => ({
494
- ...t,
495
- fssaiLicense: e.target.value
496
- })),
497
- disabled: !f,
498
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
499
- })] })
500
- ]
501
- }),
502
- /* @__PURE__ */ S("div", {
503
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
504
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
505
- className: "block text-sm font-medium text-text-primary mb-1",
506
- children: "Business Phone"
507
- }), /* @__PURE__ */ x("input", {
508
- type: "tel",
509
- value: j.businessPhone,
510
- onChange: (e) => M((t) => ({
511
- ...t,
512
- businessPhone: e.target.value
513
- })),
514
- disabled: !f,
515
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
516
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
517
- className: "block text-sm font-medium text-text-primary mb-1",
518
- children: "Business Email"
519
- }), /* @__PURE__ */ x("input", {
520
- type: "email",
521
- value: j.businessEmail,
522
- onChange: (e) => M((t) => ({
523
- ...t,
524
- businessEmail: e.target.value
525
- })),
526
- disabled: !f,
527
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
528
- })] })]
529
- })
530
- ]
531
- }),
532
- c === "operations" && /* @__PURE__ */ S("div", {
533
- className: "space-y-5",
534
- children: [
535
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
536
- className: "block text-sm font-medium text-text-primary mb-2",
537
- children: "Working Days"
538
- }), /* @__PURE__ */ x("div", {
539
- className: "flex flex-wrap gap-2",
540
- children: E.map((e) => /* @__PURE__ */ x("button", {
541
- type: "button",
542
- onClick: () => f && U(e),
543
- disabled: !f,
544
- className: t("px-3 py-1.5 rounded-full text-xs font-medium transition-colors", N.workingDays.includes(e) ? "bg-status-info-bg text-white" : "bg-bg-sunken text-text-secondary", !f && "cursor-not-allowed opacity-70"),
545
- children: e.slice(0, 3)
546
- }, e))
547
- })] }),
548
- /* @__PURE__ */ S("div", {
549
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
550
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
551
- className: "block text-sm font-medium text-text-primary mb-1",
552
- children: "Opening Time"
553
- }), /* @__PURE__ */ x("input", {
554
- type: "time",
555
- value: N.openTime,
556
- onChange: (e) => P((t) => ({
557
- ...t,
558
- openTime: e.target.value
559
- })),
560
- disabled: !f,
561
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
562
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
563
- className: "block text-sm font-medium text-text-primary mb-1",
564
- children: "Closing Time"
565
- }), /* @__PURE__ */ x("input", {
566
- type: "time",
567
- value: N.closeTime,
568
- onChange: (e) => P((t) => ({
569
- ...t,
570
- closeTime: e.target.value
571
- })),
572
- disabled: !f,
573
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
574
- })] })]
575
- }),
576
- /* @__PURE__ */ S("div", {
577
- className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
578
- children: [
579
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
580
- className: "block text-sm font-medium text-text-primary mb-1",
581
- children: "Prep Time (min)"
582
- }), /* @__PURE__ */ x("input", {
583
- type: "number",
584
- value: N.preparationTime,
585
- onChange: (e) => P((t) => ({
586
- ...t,
587
- preparationTime: parseInt(e.target.value) || 0
588
- })),
589
- disabled: !f,
590
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
591
- })] }),
592
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
593
- className: "block text-sm font-medium text-text-primary mb-1",
594
- children: "Delivery Radius (km)"
595
- }), /* @__PURE__ */ x("input", {
596
- type: "number",
597
- value: N.deliveryRadius,
598
- onChange: (e) => P((t) => ({
599
- ...t,
600
- deliveryRadius: parseInt(e.target.value) || 0
601
- })),
602
- disabled: !f,
603
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
604
- })] }),
605
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
606
- className: "block text-sm font-medium text-text-primary mb-1",
607
- children: "Max Orders/Day"
608
- }), /* @__PURE__ */ x("input", {
609
- type: "number",
610
- value: N.maxOrdersPerDay,
611
- onChange: (e) => P((t) => ({
612
- ...t,
613
- maxOrdersPerDay: parseInt(e.target.value) || 0
614
- })),
615
- disabled: !f,
616
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
617
- })] })
618
- ]
619
- })
620
- ]
621
- }),
622
- c === "banking" && /* @__PURE__ */ S("div", {
623
- className: "space-y-5",
624
- children: [
625
- /* @__PURE__ */ S("div", {
626
- className: "flex items-start gap-3 rounded-md bg-status-info-bg-subtle border border-status-info-border p-3",
627
- children: [/* @__PURE__ */ x(a, { className: "h-4 w-4 text-status-info-text shrink-0 mt-0.5" }), /* @__PURE__ */ x("p", {
628
- className: "text-xs text-status-info-text",
629
- children: "Bank details are used for payouts. Changes require verification and may take 2-3 business days to process."
630
- })]
631
- }),
632
- /* @__PURE__ */ S("div", {
633
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
634
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
635
- className: "block text-sm font-medium text-text-primary mb-1",
636
- children: "Bank Name"
637
- }), /* @__PURE__ */ x("input", {
638
- type: "text",
639
- value: F.bankName,
640
- onChange: (e) => I((t) => ({
641
- ...t,
642
- bankName: e.target.value
643
- })),
644
- disabled: !f,
645
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
646
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
647
- className: "block text-sm font-medium text-text-primary mb-1",
648
- children: "Account Holder"
649
- }), /* @__PURE__ */ x("input", {
650
- type: "text",
651
- value: F.accountHolder,
652
- onChange: (e) => I((t) => ({
653
- ...t,
654
- accountHolder: e.target.value
655
- })),
656
- disabled: !f,
657
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
658
- })] })]
659
- }),
660
- /* @__PURE__ */ S("div", {
661
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
662
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
663
- className: "block text-sm font-medium text-text-primary mb-1",
664
- children: "Account Number"
665
- }), /* @__PURE__ */ x("input", {
666
- type: "text",
667
- value: f ? F.accountNumber : `****${F.accountNumber.slice(-4)}`,
668
- onChange: (e) => I((t) => ({
669
- ...t,
670
- accountNumber: e.target.value
671
- })),
672
- disabled: !f,
673
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
674
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
675
- className: "block text-sm font-medium text-text-primary mb-1",
676
- children: "IFSC Code"
677
- }), /* @__PURE__ */ x("input", {
678
- type: "text",
679
- value: F.ifscCode,
680
- onChange: (e) => I((t) => ({
681
- ...t,
682
- ifscCode: e.target.value
683
- })),
684
- disabled: !f,
685
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
686
- })] })]
687
- }),
688
- /* @__PURE__ */ S("div", {
689
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
690
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
691
- className: "block text-sm font-medium text-text-primary mb-1",
692
- children: "UPI ID"
693
- }), /* @__PURE__ */ x("input", {
694
- type: "text",
695
- value: F.upiId,
696
- onChange: (e) => I((t) => ({
697
- ...t,
698
- upiId: e.target.value
699
- })),
700
- disabled: !f,
701
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed")
702
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
703
- className: "block text-sm font-medium text-text-primary mb-1",
704
- children: "Payout Schedule"
705
- }), /* @__PURE__ */ S("select", {
706
- value: F.payoutSchedule,
707
- onChange: (e) => I((t) => ({
708
- ...t,
709
- payoutSchedule: e.target.value
710
- })),
711
- disabled: !f,
712
- className: t("w-full rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary", !f && "bg-bg-sunken/50 cursor-not-allowed"),
713
- children: [
714
- /* @__PURE__ */ x("option", {
715
- value: "daily",
716
- children: "Daily"
717
- }),
718
- /* @__PURE__ */ x("option", {
719
- value: "weekly",
720
- children: "Weekly"
721
- }),
722
- /* @__PURE__ */ x("option", {
723
- value: "biweekly",
724
- children: "Bi-Weekly"
725
- }),
726
- /* @__PURE__ */ x("option", {
727
- value: "monthly",
728
- children: "Monthly"
729
- })
730
- ]
731
- })] })]
732
- })
733
- ]
734
- }),
735
- c === "security" && /* @__PURE__ */ S("div", {
736
- className: "space-y-6",
737
- children: [
738
- /* @__PURE__ */ S("div", {
739
- className: "rounded-lg border border-border-seam p-5",
740
- children: [
741
- /* @__PURE__ */ S("h3", {
742
- className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-3",
743
- children: [/* @__PURE__ */ x(m, { className: "h-4 w-4 text-text-secondary" }), "Password"]
744
- }),
745
- /* @__PURE__ */ S("p", {
746
- className: "text-xs text-text-secondary mb-3",
747
- children: [
748
- "Last changed:",
749
- " ",
750
- new Date(L.lastPasswordChange).toLocaleDateString("en-IN", {
751
- day: "numeric",
752
- month: "short",
753
- year: "numeric"
754
- })
755
- ]
756
- }),
757
- /* @__PURE__ */ x("button", {
758
- type: "button",
759
- onClick: () => alert("Password change coming soon!"),
760
- className: "rounded-md border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
761
- children: "Change Password"
762
- })
763
- ]
764
- }),
765
- /* @__PURE__ */ S("div", {
766
- className: "rounded-lg border border-border-seam p-5",
767
- children: [/* @__PURE__ */ S("div", {
768
- className: "flex items-center justify-between",
769
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("h3", {
770
- className: "text-sm font-semibold text-text-primary flex items-center gap-2",
771
- children: [/* @__PURE__ */ x(_, { className: "h-4 w-4 text-text-secondary" }), "Two-Factor Authentication"]
772
- }), /* @__PURE__ */ x("p", {
773
- className: "text-xs text-text-secondary mt-1",
774
- children: "Add an extra layer of security to your account"
775
- })] }), /* @__PURE__ */ x("button", {
776
- type: "button",
777
- onClick: () => R((e) => ({
778
- ...e,
779
- twoFactorEnabled: !e.twoFactorEnabled
780
- })),
781
- className: t("h-6 w-11 rounded-full transition-colors relative", L.twoFactorEnabled ? "bg-status-success-bg" : "bg-muted-foreground/30"),
782
- children: /* @__PURE__ */ x("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", L.twoFactorEnabled ? "translate-x-5" : "translate-x-0.5") })
783
- })]
784
- }), L.twoFactorEnabled && /* @__PURE__ */ S("div", {
785
- className: "mt-3 flex items-center gap-2",
786
- children: [/* @__PURE__ */ x(u, { className: "h-4 w-4 text-status-success-text" }), /* @__PURE__ */ x("span", {
787
- className: "text-xs text-status-success-text font-medium",
788
- children: "2FA is enabled"
789
- })]
790
- })]
791
- }),
792
- /* @__PURE__ */ S("div", {
793
- className: "rounded-lg border border-border-seam p-5",
794
- children: [/* @__PURE__ */ x("h3", {
795
- className: "text-sm font-semibold text-text-primary mb-3",
796
- children: "Active Sessions"
797
- }), /* @__PURE__ */ S("div", {
798
- className: "space-y-3",
799
- children: [/* @__PURE__ */ S("div", {
800
- className: "flex items-center justify-between text-sm",
801
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
802
- className: "font-medium text-text-primary",
803
- children: "Current Device"
804
- }), /* @__PURE__ */ x("p", {
805
- className: "text-xs text-text-secondary",
806
- children: "Chrome on Linux | Bangalore, IN"
807
- })] }), /* @__PURE__ */ x("span", {
808
- className: "text-xs text-status-success-text font-medium",
809
- children: "Active now"
810
- })]
811
- }), /* @__PURE__ */ S("div", {
812
- className: "flex items-center justify-between text-sm",
813
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
814
- className: "font-medium text-text-primary",
815
- children: "Mobile App"
816
- }), /* @__PURE__ */ x("p", {
817
- className: "text-xs text-text-secondary",
818
- children: "Android | Bangalore, IN"
819
- })] }), /* @__PURE__ */ x("span", {
820
- className: "text-xs text-text-secondary",
821
- children: "2 hours ago"
822
- })]
823
- })]
824
- })]
825
- })
826
- ]
827
- }),
828
- c === "notifications" && /* @__PURE__ */ x("div", {
829
- className: "space-y-1 divide-y divide-border",
830
- children: [
831
- {
832
- key: "orderAlerts",
833
- label: "Order Alerts",
834
- description: "New orders, updates, and cancellations"
835
- },
836
- {
837
- key: "paymentAlerts",
838
- label: "Payment Alerts",
839
- description: "Payouts, refunds, and transaction updates"
840
- },
841
- {
842
- key: "reviewAlerts",
843
- label: "Review Notifications",
844
- description: "New customer reviews and ratings"
845
- },
846
- {
847
- key: "smsAlerts",
848
- label: "SMS Alerts",
849
- description: "Receive important alerts via SMS"
850
- },
851
- {
852
- key: "weeklyReport",
853
- label: "Weekly Report",
854
- description: "Weekly business performance summary"
855
- },
856
- {
857
- key: "promotionalEmails",
858
- label: "Promotional Emails",
859
- description: "Tips, news, and promotional content"
860
- }
861
- ].map((e) => /* @__PURE__ */ S("div", {
862
- className: "flex items-center justify-between py-3",
863
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
864
- className: "text-sm font-medium text-text-primary",
865
- children: e.label
866
- }), /* @__PURE__ */ x("p", {
867
- className: "text-xs text-text-secondary mt-0.5",
868
- children: e.description
869
- })] }), /* @__PURE__ */ x("button", {
870
- type: "button",
871
- onClick: () => B((t) => ({
872
- ...t,
873
- [e.key]: !t[e.key]
874
- })),
875
- className: t("h-6 w-11 rounded-full transition-colors relative", z[e.key] ? "bg-status-info-bg" : "bg-muted-foreground/30"),
876
- children: /* @__PURE__ */ x("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", z[e.key] ? "translate-x-5" : "translate-x-0.5") })
877
- })]
878
- }, e.key))
879
- })
880
- ]
881
- })
882
- })]
883
- })
884
- ]
885
- })
886
- });
887
- };
888
- //#endregion
889
- export { D as CartOwnerProfilePage };
890
-
891
- //# sourceMappingURL=CartOwnerProfilePage.js.map