@burdenoff/microfe-labsofscience 2026.624.1 → 2026.626.1

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