@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,705 +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 { AlertCircle as i, Bell as a, CheckCircle2 as o, Clock as s, Link2 as c, MapPin as l, Phone as u, Save as d, Shield as f, Store as p } from "lucide-react";
6
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
7
- import { EmphasisPanel as _, PagePurpose as v } from "@burdenoff/fe-libs/ui";
8
- //#region src/labsofscience/pages/cart-owner/BusinessSettingsPage.tsx
9
- var y = [
10
- {
11
- id: "general",
12
- label: "General",
13
- icon: p
14
- },
15
- {
16
- id: "contact",
17
- label: "Contact",
18
- icon: u
19
- },
20
- {
21
- id: "location",
22
- label: "Location",
23
- icon: l
24
- },
25
- {
26
- id: "operating",
27
- label: "Operating",
28
- icon: s
29
- },
30
- {
31
- id: "policies",
32
- label: "Policies",
33
- icon: f
34
- },
35
- {
36
- id: "notifications",
37
- label: "Notifications",
38
- icon: a
39
- },
40
- {
41
- id: "integration",
42
- label: "Integrations",
43
- icon: c
44
- }
45
- ], b = [
46
- "Food & Beverage",
47
- "Personal Care & Beauty",
48
- "Repair & Maintenance",
49
- "Home Services",
50
- "Clothing & Fashion",
51
- "Health & Wellness",
52
- "Education & Skills",
53
- "Retail & Merchandise",
54
- "Grocery & Essentials"
55
- ], x = ({ label: e, value: t, onChange: n, type: r = "text", options: i, placeholder: a, hint: o, rows: s = 3 }) => {
56
- let c = e.toLowerCase().replace(/\s+/g, "-");
57
- return /* @__PURE__ */ g("div", { children: [
58
- /* @__PURE__ */ h("label", {
59
- htmlFor: c,
60
- className: "block text-sm font-medium text-text-primary mb-1.5",
61
- children: e
62
- }),
63
- r === "textarea" ? /* @__PURE__ */ h("textarea", {
64
- id: c,
65
- value: t,
66
- onChange: (e) => n(e.target.value),
67
- rows: s,
68
- placeholder: a,
69
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none"
70
- }) : r === "select" ? /* @__PURE__ */ h("select", {
71
- id: c,
72
- value: t,
73
- onChange: (e) => n(e.target.value),
74
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
75
- children: i?.map((e) => /* @__PURE__ */ h("option", {
76
- value: e,
77
- children: e
78
- }, e))
79
- }) : /* @__PURE__ */ h("input", {
80
- id: c,
81
- type: r,
82
- value: t,
83
- onChange: (e) => n(e.target.value),
84
- placeholder: a,
85
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
86
- }),
87
- o && /* @__PURE__ */ h("p", {
88
- className: "mt-1 text-xs text-text-secondary",
89
- children: o
90
- })
91
- ] });
92
- }, S = ({ label: e, description: n, checked: r, onChange: i }) => /* @__PURE__ */ g("div", {
93
- className: "flex items-center justify-between py-3",
94
- children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
95
- className: "text-sm font-medium text-text-primary",
96
- children: e
97
- }), n && /* @__PURE__ */ h("p", {
98
- className: "text-xs text-text-secondary mt-0.5",
99
- children: n
100
- })] }), /* @__PURE__ */ h("button", {
101
- type: "button",
102
- onClick: () => i(!r),
103
- className: t("h-6 w-11 rounded-full transition-colors relative", r ? "bg-status-info-bg" : "bg-muted-foreground/30"),
104
- children: /* @__PURE__ */ h("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", r ? "translate-x-5" : "translate-x-0.5") })
105
- })]
106
- }), C = () => {
107
- let { navigateTo: a } = e(), [s, c] = r("general"), [l, u] = r(!1), [f, C] = r(!1), [w, T] = r({
108
- businessName: "Dosa Express",
109
- description: "Authentic South Indian street food with a modern twist. Serving crispy dosas, filter coffee, and more since 2020.",
110
- category: "Food & Beverage",
111
- gstNumber: "29ABCDE1234F1Z5",
112
- panNumber: "ABCDE1234F",
113
- fssaiLicense: "12345678",
114
- establishedYear: "2020"
115
- }), [E, D] = r({
116
- phone: "+91-9876543210",
117
- email: "ravi@dosaexpress.in",
118
- website: "https://dosaexpress.in",
119
- whatsapp: "+91-9876543210",
120
- instagram: "@dosaexpress",
121
- twitter: "@dosaexpress",
122
- facebook: "dosaexpress"
123
- }), [O, k] = r({
124
- address: "Koramangala 5th Block",
125
- city: "Bangalore",
126
- state: "Karnataka",
127
- pincode: "560034",
128
- latitude: "12.9352",
129
- longitude: "77.6245",
130
- deliveryRadius: 5,
131
- deliveryCharge: 30,
132
- freeDeliveryAbove: 300
133
- }), [A, j] = r({
134
- autoAcceptOrders: !0,
135
- preparationTime: 15,
136
- maxConcurrentOrders: 10,
137
- advanceBookingDays: 3
138
- }), [M, N] = r({
139
- returnPolicy: "Items can be returned within 30 minutes of delivery if there are quality issues. Refund will be processed within 2-3 business days.",
140
- cancellationPolicy: "Orders can be cancelled within 2 minutes of placing. After preparation starts, cancellation is not allowed.",
141
- privacyPolicy: "We collect and process your data in accordance with applicable privacy laws. Your data is never shared with third parties without consent.",
142
- termsOfService: "By using our services, you agree to our terms. All prices are inclusive of taxes unless stated otherwise."
143
- }), [P, F] = r({
144
- newOrderEmail: !0,
145
- newOrderSms: !0,
146
- newOrderPush: !0,
147
- orderUpdateEmail: !0,
148
- orderUpdatePush: !0,
149
- dailySummaryEmail: !0,
150
- weeklySummaryEmail: !1,
151
- lowStockAlert: !0,
152
- reviewNotification: !0,
153
- marketingEmails: !1
154
- }), [I, L] = r({
155
- paymentGateway: "razorpay",
156
- paymentGatewayKey: "rzp_live_xxxxxxxx",
157
- smsProvider: "twilio",
158
- smsApiKey: "",
159
- analyticsId: ""
160
- }), R = () => {
161
- u(!0), setTimeout(() => {
162
- u(!1), C(!0), setTimeout(() => C(!1), 3e3);
163
- }, 1e3);
164
- }, z = (e) => (t) => T((n) => ({
165
- ...n,
166
- [e]: t
167
- })), B = (e) => (t) => D((n) => ({
168
- ...n,
169
- [e]: t
170
- })), V = (e) => (t) => k((n) => ({
171
- ...n,
172
- [e]: e === "deliveryRadius" || e === "deliveryCharge" || e === "freeDeliveryAbove" ? parseInt(t) || 0 : t
173
- })), H = (e) => (t) => N((n) => ({
174
- ...n,
175
- [e]: t
176
- })), U = (e) => (t) => F((n) => ({
177
- ...n,
178
- [e]: t
179
- })), W = (e) => (t) => L((n) => ({
180
- ...n,
181
- [e]: t
182
- }));
183
- return y.find((e) => e.id === s)?.icon, /* @__PURE__ */ g(n, {
184
- title: "Business Settings",
185
- description: "Manage your business profile and configuration",
186
- actions: /* @__PURE__ */ h("button", {
187
- type: "button",
188
- onClick: R,
189
- disabled: l,
190
- className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", f ? "bg-status-success-bg-subtle text-status-success-text" : l ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
191
- children: l ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : f ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(o, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(d, { className: "h-4 w-4" }), "Save Settings"] })
192
- }),
193
- children: [/* @__PURE__ */ h(v, {
194
- icon: /* @__PURE__ */ h(p, { className: "h-4 w-4" }),
195
- className: "mb-6",
196
- children: "Configure how your business runs on the platform. Set your business details and contact info, pin your location, define operating hours, payment and cancellation policies, notifications and integrations — these settings shape what customers see and how orders flow."
197
- }), /* @__PURE__ */ g("div", {
198
- className: "flex flex-col lg:flex-row gap-6",
199
- children: [
200
- /* @__PURE__ */ h("div", {
201
- className: "lg:hidden",
202
- children: /* @__PURE__ */ h("div", {
203
- className: "rounded-lg border border-border-seam bg-bg-surface p-3 shadow-sm",
204
- children: /* @__PURE__ */ h("div", {
205
- className: "grid grid-cols-4 gap-2",
206
- children: y.map((e) => {
207
- let n = e.icon;
208
- return /* @__PURE__ */ g("button", {
209
- type: "button",
210
- onClick: () => c(e.id),
211
- className: t("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors", s === e.id ? "bg-accent text-text-primary" : "text-text-secondary hover:bg-bg-sunken"),
212
- children: [/* @__PURE__ */ h(n, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
213
- className: "hidden sm:inline",
214
- children: e.label
215
- })]
216
- }, e.id);
217
- })
218
- })
219
- })
220
- }),
221
- /* @__PURE__ */ h("div", {
222
- className: "hidden lg:block lg:w-56 shrink-0",
223
- children: /* @__PURE__ */ g(_, {
224
- className: "sticky top-24 p-0",
225
- children: [/* @__PURE__ */ h("div", {
226
- className: "p-4 border-b border-border-seam",
227
- children: /* @__PURE__ */ h("h2", {
228
- className: "font-semibold text-text-primary text-sm",
229
- children: "Settings"
230
- })
231
- }), /* @__PURE__ */ h("nav", {
232
- className: "p-2",
233
- children: y.map((e) => {
234
- let n = e.icon;
235
- return /* @__PURE__ */ g("button", {
236
- type: "button",
237
- onClick: () => c(e.id),
238
- className: t("w-full text-left px-3 py-2 rounded-md mb-1 flex items-center gap-3 text-sm transition-colors", s === e.id ? "bg-accent text-text-primary font-medium" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
239
- children: [/* @__PURE__ */ h(n, { className: "h-4 w-4" }), e.label]
240
- }, e.id);
241
- })
242
- })]
243
- })
244
- }),
245
- /* @__PURE__ */ h("div", {
246
- className: "flex-1 min-w-0",
247
- children: /* @__PURE__ */ g("div", {
248
- className: "rounded-lg border border-border-seam bg-bg-surface p-5 sm:p-6 shadow-sm",
249
- children: [
250
- s === "general" && /* @__PURE__ */ g("div", {
251
- className: "space-y-5",
252
- children: [
253
- /* @__PURE__ */ h(x, {
254
- label: "Business Name",
255
- value: w.businessName,
256
- onChange: z("businessName")
257
- }),
258
- /* @__PURE__ */ h(x, {
259
- label: "Description",
260
- value: w.description,
261
- onChange: z("description"),
262
- type: "textarea"
263
- }),
264
- /* @__PURE__ */ g("div", {
265
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
266
- children: [/* @__PURE__ */ h(x, {
267
- label: "Category",
268
- value: w.category,
269
- onChange: z("category"),
270
- type: "select",
271
- options: b
272
- }), /* @__PURE__ */ h(x, {
273
- label: "Established Year",
274
- value: w.establishedYear,
275
- onChange: z("establishedYear")
276
- })]
277
- }),
278
- /* @__PURE__ */ g("div", {
279
- className: "flex items-start gap-3 rounded-md bg-status-info-bg-subtle border border-status-info-border p-3",
280
- children: [/* @__PURE__ */ h(i, { className: "h-4 w-4 text-status-info-text shrink-0 mt-0.5" }), /* @__PURE__ */ h("p", {
281
- className: "text-xs text-status-info-text",
282
- children: "GST, PAN, and FSSAI details are used for invoicing and compliance. Changes require verification."
283
- })]
284
- }),
285
- /* @__PURE__ */ g("div", {
286
- className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
287
- children: [
288
- /* @__PURE__ */ h(x, {
289
- label: "GST Number",
290
- value: w.gstNumber,
291
- onChange: z("gstNumber"),
292
- hint: "15-digit GST ID"
293
- }),
294
- /* @__PURE__ */ h(x, {
295
- label: "PAN Number",
296
- value: w.panNumber,
297
- onChange: z("panNumber"),
298
- hint: "10-digit PAN"
299
- }),
300
- /* @__PURE__ */ h(x, {
301
- label: "FSSAI License",
302
- value: w.fssaiLicense,
303
- onChange: z("fssaiLicense"),
304
- hint: "FSSAI license number"
305
- })
306
- ]
307
- })
308
- ]
309
- }),
310
- s === "contact" && /* @__PURE__ */ g("div", {
311
- className: "space-y-5",
312
- children: [
313
- /* @__PURE__ */ g("div", {
314
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
315
- children: [/* @__PURE__ */ h(x, {
316
- label: "Phone",
317
- value: E.phone,
318
- onChange: B("phone"),
319
- type: "tel"
320
- }), /* @__PURE__ */ h(x, {
321
- label: "Email",
322
- value: E.email,
323
- onChange: B("email"),
324
- type: "email"
325
- })]
326
- }),
327
- /* @__PURE__ */ g("div", {
328
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
329
- children: [/* @__PURE__ */ h(x, {
330
- label: "Website",
331
- value: E.website,
332
- onChange: B("website"),
333
- type: "url",
334
- placeholder: "https://"
335
- }), /* @__PURE__ */ h(x, {
336
- label: "WhatsApp",
337
- value: E.whatsapp,
338
- onChange: B("whatsapp"),
339
- type: "tel"
340
- })]
341
- }),
342
- /* @__PURE__ */ h("h3", {
343
- className: "text-sm font-semibold text-text-primary pt-2",
344
- children: "Social Media"
345
- }),
346
- /* @__PURE__ */ g("div", {
347
- className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
348
- children: [
349
- /* @__PURE__ */ h(x, {
350
- label: "Instagram",
351
- value: E.instagram,
352
- onChange: B("instagram"),
353
- placeholder: "@handle"
354
- }),
355
- /* @__PURE__ */ h(x, {
356
- label: "Twitter / X",
357
- value: E.twitter,
358
- onChange: B("twitter"),
359
- placeholder: "@handle"
360
- }),
361
- /* @__PURE__ */ h(x, {
362
- label: "Facebook",
363
- value: E.facebook,
364
- onChange: B("facebook"),
365
- placeholder: "Page name"
366
- })
367
- ]
368
- })
369
- ]
370
- }),
371
- s === "location" && /* @__PURE__ */ g("div", {
372
- className: "space-y-5",
373
- children: [
374
- /* @__PURE__ */ h(x, {
375
- label: "Address",
376
- value: O.address,
377
- onChange: V("address"),
378
- type: "textarea",
379
- rows: 2
380
- }),
381
- /* @__PURE__ */ g("div", {
382
- className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
383
- children: [
384
- /* @__PURE__ */ h(x, {
385
- label: "City",
386
- value: O.city,
387
- onChange: V("city")
388
- }),
389
- /* @__PURE__ */ h(x, {
390
- label: "State",
391
- value: O.state,
392
- onChange: V("state")
393
- }),
394
- /* @__PURE__ */ h(x, {
395
- label: "Pincode",
396
- value: O.pincode,
397
- onChange: V("pincode")
398
- })
399
- ]
400
- }),
401
- /* @__PURE__ */ g("div", {
402
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
403
- children: [/* @__PURE__ */ h(x, {
404
- label: "Latitude",
405
- value: O.latitude,
406
- onChange: V("latitude"),
407
- hint: "e.g., 12.9352"
408
- }), /* @__PURE__ */ h(x, {
409
- label: "Longitude",
410
- value: O.longitude,
411
- onChange: V("longitude"),
412
- hint: "e.g., 77.6245"
413
- })]
414
- }),
415
- /* @__PURE__ */ h("h3", {
416
- className: "text-sm font-semibold text-text-primary pt-2",
417
- children: "Delivery Settings"
418
- }),
419
- /* @__PURE__ */ g("div", {
420
- className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
421
- children: [
422
- /* @__PURE__ */ h(x, {
423
- label: "Delivery Radius (km)",
424
- value: O.deliveryRadius,
425
- onChange: V("deliveryRadius"),
426
- type: "number"
427
- }),
428
- /* @__PURE__ */ h(x, {
429
- label: "Delivery Charge (₹)",
430
- value: O.deliveryCharge,
431
- onChange: V("deliveryCharge"),
432
- type: "number"
433
- }),
434
- /* @__PURE__ */ h(x, {
435
- label: "Free Delivery Above (₹)",
436
- value: O.freeDeliveryAbove,
437
- onChange: V("freeDeliveryAbove"),
438
- type: "number"
439
- })
440
- ]
441
- })
442
- ]
443
- }),
444
- s === "operating" && /* @__PURE__ */ g("div", {
445
- className: "space-y-5",
446
- children: [/* @__PURE__ */ h(S, {
447
- label: "Auto-Accept Orders",
448
- description: "Automatically accept incoming orders without manual confirmation",
449
- checked: A.autoAcceptOrders,
450
- onChange: (e) => j((t) => ({
451
- ...t,
452
- autoAcceptOrders: e
453
- }))
454
- }), /* @__PURE__ */ g("div", {
455
- className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
456
- children: [
457
- /* @__PURE__ */ h(x, {
458
- label: "Default Preparation Time (min)",
459
- value: A.preparationTime,
460
- onChange: (e) => j((t) => ({
461
- ...t,
462
- preparationTime: parseInt(e) || 0
463
- })),
464
- type: "number"
465
- }),
466
- /* @__PURE__ */ h(x, {
467
- label: "Max Concurrent Orders",
468
- value: A.maxConcurrentOrders,
469
- onChange: (e) => j((t) => ({
470
- ...t,
471
- maxConcurrentOrders: parseInt(e) || 0
472
- })),
473
- type: "number"
474
- }),
475
- /* @__PURE__ */ h(x, {
476
- label: "Advance Booking (days)",
477
- value: A.advanceBookingDays,
478
- onChange: (e) => j((t) => ({
479
- ...t,
480
- advanceBookingDays: parseInt(e) || 0
481
- })),
482
- type: "number"
483
- })
484
- ]
485
- })]
486
- }),
487
- s === "policies" && /* @__PURE__ */ g("div", {
488
- className: "space-y-5",
489
- children: [
490
- /* @__PURE__ */ h(x, {
491
- label: "Return Policy",
492
- value: M.returnPolicy,
493
- onChange: H("returnPolicy"),
494
- type: "textarea",
495
- rows: 4
496
- }),
497
- /* @__PURE__ */ h(x, {
498
- label: "Cancellation Policy",
499
- value: M.cancellationPolicy,
500
- onChange: H("cancellationPolicy"),
501
- type: "textarea",
502
- rows: 4
503
- }),
504
- /* @__PURE__ */ h(x, {
505
- label: "Privacy Policy",
506
- value: M.privacyPolicy,
507
- onChange: H("privacyPolicy"),
508
- type: "textarea",
509
- rows: 4
510
- }),
511
- /* @__PURE__ */ h(x, {
512
- label: "Terms of Service",
513
- value: M.termsOfService,
514
- onChange: H("termsOfService"),
515
- type: "textarea",
516
- rows: 4
517
- })
518
- ]
519
- }),
520
- s === "notifications" && /* @__PURE__ */ g("div", {
521
- className: "space-y-1 divide-y divide-border",
522
- children: [
523
- /* @__PURE__ */ h("h3", {
524
- className: "text-sm font-semibold text-text-primary pb-2",
525
- children: "New Orders"
526
- }),
527
- /* @__PURE__ */ h(S, {
528
- label: "Email Notification",
529
- description: "Receive email for new orders",
530
- checked: P.newOrderEmail,
531
- onChange: U("newOrderEmail")
532
- }),
533
- /* @__PURE__ */ h(S, {
534
- label: "SMS Notification",
535
- description: "Receive SMS for new orders",
536
- checked: P.newOrderSms,
537
- onChange: U("newOrderSms")
538
- }),
539
- /* @__PURE__ */ h(S, {
540
- label: "Push Notification",
541
- description: "Receive push notifications for new orders",
542
- checked: P.newOrderPush,
543
- onChange: U("newOrderPush")
544
- }),
545
- /* @__PURE__ */ h("h3", {
546
- className: "text-sm font-semibold text-text-primary pt-4 pb-2",
547
- children: "Order Updates"
548
- }),
549
- /* @__PURE__ */ h(S, {
550
- label: "Email Updates",
551
- description: "Get email when order status changes",
552
- checked: P.orderUpdateEmail,
553
- onChange: U("orderUpdateEmail")
554
- }),
555
- /* @__PURE__ */ h(S, {
556
- label: "Push Updates",
557
- description: "Get push notifications for order updates",
558
- checked: P.orderUpdatePush,
559
- onChange: U("orderUpdatePush")
560
- }),
561
- /* @__PURE__ */ h("h3", {
562
- className: "text-sm font-semibold text-text-primary pt-4 pb-2",
563
- children: "Reports & Alerts"
564
- }),
565
- /* @__PURE__ */ h(S, {
566
- label: "Daily Summary",
567
- description: "Receive daily business summary email",
568
- checked: P.dailySummaryEmail,
569
- onChange: U("dailySummaryEmail")
570
- }),
571
- /* @__PURE__ */ h(S, {
572
- label: "Weekly Summary",
573
- description: "Receive weekly performance report",
574
- checked: P.weeklySummaryEmail,
575
- onChange: U("weeklySummaryEmail")
576
- }),
577
- /* @__PURE__ */ h(S, {
578
- label: "Low Stock Alert",
579
- description: "Get alerted when items are low on stock",
580
- checked: P.lowStockAlert,
581
- onChange: U("lowStockAlert")
582
- }),
583
- /* @__PURE__ */ h(S, {
584
- label: "Review Notifications",
585
- description: "Get notified for new customer reviews",
586
- checked: P.reviewNotification,
587
- onChange: U("reviewNotification")
588
- }),
589
- /* @__PURE__ */ h(S, {
590
- label: "Marketing Emails",
591
- description: "Receive tips and promotional content",
592
- checked: P.marketingEmails,
593
- onChange: U("marketingEmails")
594
- })
595
- ]
596
- }),
597
- s === "integration" && /* @__PURE__ */ g("div", {
598
- className: "space-y-5",
599
- children: [
600
- /* @__PURE__ */ h("h3", {
601
- className: "text-sm font-semibold text-text-primary",
602
- children: "Payment Gateway"
603
- }),
604
- /* @__PURE__ */ g("div", {
605
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
606
- children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
607
- className: "block text-sm font-medium text-text-primary mb-1.5",
608
- children: "Provider"
609
- }), /* @__PURE__ */ g("select", {
610
- value: I.paymentGateway,
611
- onChange: (e) => W("paymentGateway")(e.target.value),
612
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
613
- children: [
614
- /* @__PURE__ */ h("option", {
615
- value: "razorpay",
616
- children: "Razorpay"
617
- }),
618
- /* @__PURE__ */ h("option", {
619
- value: "paytm",
620
- children: "Paytm"
621
- }),
622
- /* @__PURE__ */ h("option", {
623
- value: "stripe",
624
- children: "Stripe"
625
- }),
626
- /* @__PURE__ */ h("option", {
627
- value: "phonepe",
628
- children: "PhonePe"
629
- })
630
- ]
631
- })] }), /* @__PURE__ */ h(x, {
632
- label: "API Key",
633
- value: I.paymentGatewayKey,
634
- onChange: W("paymentGatewayKey"),
635
- placeholder: "Enter API key",
636
- hint: "Keep this secret"
637
- })]
638
- }),
639
- /* @__PURE__ */ h("h3", {
640
- className: "text-sm font-semibold text-text-primary pt-2",
641
- children: "SMS Provider"
642
- }),
643
- /* @__PURE__ */ g("div", {
644
- className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
645
- children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
646
- className: "block text-sm font-medium text-text-primary mb-1.5",
647
- children: "Provider"
648
- }), /* @__PURE__ */ g("select", {
649
- value: I.smsProvider,
650
- onChange: (e) => W("smsProvider")(e.target.value),
651
- className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
652
- children: [
653
- /* @__PURE__ */ h("option", {
654
- value: "twilio",
655
- children: "Twilio"
656
- }),
657
- /* @__PURE__ */ h("option", {
658
- value: "msg91",
659
- children: "MSG91"
660
- }),
661
- /* @__PURE__ */ h("option", {
662
- value: "textlocal",
663
- children: "Textlocal"
664
- })
665
- ]
666
- })] }), /* @__PURE__ */ h(x, {
667
- label: "SMS API Key",
668
- value: I.smsApiKey,
669
- onChange: W("smsApiKey"),
670
- placeholder: "Enter SMS API key"
671
- })]
672
- }),
673
- /* @__PURE__ */ h("h3", {
674
- className: "text-sm font-semibold text-text-primary pt-2",
675
- children: "Analytics"
676
- }),
677
- /* @__PURE__ */ h(x, {
678
- label: "Google Analytics ID",
679
- value: I.analyticsId,
680
- onChange: W("analyticsId"),
681
- placeholder: "GA-XXXXXXXXX"
682
- })
683
- ]
684
- }),
685
- /* @__PURE__ */ h("div", {
686
- className: "flex justify-end mt-8 pt-6 border-t border-border-seam",
687
- children: /* @__PURE__ */ h("button", {
688
- type: "button",
689
- onClick: R,
690
- disabled: l,
691
- className: t("inline-flex items-center gap-2 rounded-md px-6 py-2 text-sm font-medium transition-colors", f ? "bg-status-success-bg-subtle text-status-success-text" : l ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
692
- children: l ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : f ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(o, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(d, { className: "h-4 w-4" }), "Save Settings"] })
693
- })
694
- })
695
- ]
696
- })
697
- })
698
- ]
699
- })]
700
- });
701
- };
702
- //#endregion
703
- export { C as BusinessSettingsPage };
704
-
705
- //# sourceMappingURL=BusinessSettingsPage.js.map