@burdenoff/microfe-subscriberbot 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 (104) hide show
  1. package/dist/subscriberbot/components/EmptyState.js +17 -10
  2. package/dist/subscriberbot/components/EmptyState.js.map +1 -1
  3. package/dist/subscriberbot/components/InvestmentCard.js +23 -22
  4. package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
  5. package/dist/subscriberbot/components/MetricsCard.js +15 -12
  6. package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
  7. package/dist/subscriberbot/components/PageLayout.js +27 -15
  8. package/dist/subscriberbot/components/PageLayout.js.map +1 -1
  9. package/dist/subscriberbot/components/RatingDisplay.js +3 -3
  10. package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
  11. package/dist/subscriberbot/components/StatusBadge.js +25 -13
  12. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  13. package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
  14. package/dist/subscriberbot/pages/HomePage.js +72 -63
  15. package/dist/subscriberbot/pages/HomePage.js.map +1 -1
  16. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +106 -100
  17. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
  18. package/dist/subscriberbot/pages/admin/AdminDashboard.js +125 -85
  19. package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
  20. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +51 -45
  21. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
  22. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +246 -241
  23. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
  24. package/dist/subscriberbot/pages/admin/AdminProfilePage.js +131 -129
  25. package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
  26. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +247 -242
  27. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
  28. package/dist/subscriberbot/pages/admin/CartManagementPage.js +307 -302
  29. package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
  30. package/dist/subscriberbot/pages/admin/UserManagementPage.js +308 -303
  31. package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
  32. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +89 -84
  33. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  34. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +269 -264
  35. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  36. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +269 -227
  37. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  38. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +191 -186
  39. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  40. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +168 -166
  41. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  42. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +344 -347
  43. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  44. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +270 -272
  45. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
  46. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +294 -289
  47. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
  48. package/dist/subscriberbot/pages/common/HelpSupportPage.js +156 -158
  49. package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
  50. package/dist/subscriberbot/pages/common/NotificationCenterPage.js +94 -87
  51. package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
  52. package/dist/subscriberbot/pages/common/SettingsPage.js +749 -740
  53. package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
  54. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +357 -324
  55. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
  56. package/dist/subscriberbot/pages/customer/CartDetailPage.js +281 -247
  57. package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
  58. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +106 -98
  59. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
  60. package/dist/subscriberbot/pages/customer/CheckoutPage.js +235 -238
  61. package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
  62. package/dist/subscriberbot/pages/customer/CustomerDashboard.js +426 -390
  63. package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
  64. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +488 -479
  65. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
  66. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +522 -512
  67. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
  68. package/dist/subscriberbot/pages/customer/FavoritesPage.js +73 -66
  69. package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
  70. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +75 -67
  71. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
  72. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +82 -76
  73. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
  74. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +100 -93
  75. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
  76. package/dist/subscriberbot/pages/customer/ReviewsPage.js +97 -90
  77. package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
  78. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +86 -79
  79. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
  80. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +330 -293
  81. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
  82. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +269 -261
  83. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  84. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +97 -91
  85. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  86. package/dist/subscriberbot/pages/investor/InvestorDashboard.js +354 -322
  87. package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
  88. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +118 -111
  89. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  90. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +75 -69
  91. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
  92. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +435 -430
  93. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
  94. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +328 -289
  95. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
  96. package/dist/subscriberbot/pages/worker/WorkerDashboard.js +135 -103
  97. package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
  98. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +120 -114
  99. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
  100. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +125 -120
  101. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
  102. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +354 -344
  103. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
  104. 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, Calendar as a, CheckCircle2 as o, Clock as s, Home as c, Package as l, Plus as u, Save as d, Settings as f, ShoppingBag as p, Trash2 as m, Truck as h } from "lucide-react";
6
6
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
7
+ import { EmphasisPanel as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
7
8
  //#region src/subscriberbot/pages/cart-owner/CartServiceConfigPage.tsx
8
- var y = [
9
+ var x = [
9
10
  {
10
11
  value: "products_only",
11
12
  label: "Products Only",
@@ -21,7 +22,7 @@ var y = [
21
22
  label: "Products & Services",
22
23
  description: "You'll manage both products and services with full flexibility."
23
24
  }
24
- ], b = [
25
+ ], S = [
25
26
  "monday",
26
27
  "tuesday",
27
28
  "wednesday",
@@ -29,7 +30,7 @@ var y = [
29
30
  "friday",
30
31
  "saturday",
31
32
  "sunday"
32
- ], x = {
33
+ ], C = {
33
34
  monday: "Mon",
34
35
  tuesday: "Tue",
35
36
  wednesday: "Wed",
@@ -37,7 +38,7 @@ var y = [
37
38
  friday: "Fri",
38
39
  saturday: "Sat",
39
40
  sunday: "Sun"
40
- }, S = {
41
+ }, w = {
41
42
  monday: {
42
43
  isOpen: !0,
43
44
  open: "09:00",
@@ -73,7 +74,7 @@ var y = [
73
74
  open: "10:00",
74
75
  close: "18:00"
75
76
  }
76
- }, C = {
77
+ }, T = {
77
78
  pickup: {
78
79
  enabled: !0,
79
80
  preparationTime: 15
@@ -98,25 +99,25 @@ var y = [
98
99
  minimumOrderValue: 300
99
100
  }
100
101
  }
101
- }, w = () => {
102
- let { navigateTo: w } = e(), [T, E] = r(!0), [D, O] = r("both"), [k, A] = r(S), [j, M] = r(C), [N, P] = r(!1), [F, I] = r(!1), [L, R] = r([]), z = (e, t, n) => {
103
- A((r) => ({
102
+ }, E = () => {
103
+ let { navigateTo: E } = e(), [D, O] = r(!0), [k, A] = r("both"), [j, M] = r(w), [N, P] = r(T), [F, I] = r(!1), [L, R] = r(!1), [z, B] = r([]), V = (e, t, n) => {
104
+ M((r) => ({
104
105
  ...r,
105
106
  [e]: {
106
107
  ...r[e],
107
108
  [t]: n
108
109
  }
109
110
  }));
110
- }, B = (e, t, n) => {
111
- M((r) => ({
111
+ }, H = (e, t, n) => {
112
+ P((r) => ({
112
113
  ...r,
113
114
  [e]: {
114
115
  ...r[e],
115
116
  [t]: n
116
117
  }
117
118
  }));
118
- }, V = (e, t) => {
119
- M((n) => ({
119
+ }, U = (e, t) => {
120
+ P((n) => ({
120
121
  ...n,
121
122
  directService: {
122
123
  ...n.directService,
@@ -126,7 +127,7 @@ var y = [
126
127
  }
127
128
  }
128
129
  }));
129
- }, H = () => {
130
+ }, W = () => {
130
131
  let e = {
131
132
  id: `stop-${Date.now()}`,
132
133
  name: "",
@@ -142,23 +143,23 @@ var y = [
142
143
  ],
143
144
  isActive: !0
144
145
  };
145
- M((t) => ({
146
+ P((t) => ({
146
147
  ...t,
147
148
  scheduledStop: {
148
149
  ...t.scheduledStop,
149
150
  stops: [...t.scheduledStop.stops, e]
150
151
  }
151
152
  }));
152
- }, U = (e) => {
153
- M((t) => ({
153
+ }, G = (e) => {
154
+ P((t) => ({
154
155
  ...t,
155
156
  scheduledStop: {
156
157
  ...t.scheduledStop,
157
158
  stops: t.scheduledStop.stops.filter((t) => t.id !== e)
158
159
  }
159
160
  }));
160
- }, W = (e, t, n) => {
161
- M((r) => ({
161
+ }, K = (e, t, n) => {
162
+ P((r) => ({
162
163
  ...r,
163
164
  scheduledStop: {
164
165
  ...r.scheduledStop,
@@ -168,8 +169,8 @@ var y = [
168
169
  } : r)
169
170
  }
170
171
  }));
171
- }, G = (e, t) => {
172
- M((n) => ({
172
+ }, q = (e, t) => {
173
+ P((n) => ({
173
174
  ...n,
174
175
  scheduledStop: {
175
176
  ...n.scheduledStop,
@@ -185,83 +186,84 @@ var y = [
185
186
  })
186
187
  }
187
188
  }));
188
- }, K = () => {
189
+ }, J = () => {
189
190
  let e = [];
190
- if (j.delivery.enabled && (j.delivery.deliveryRadius <= 0 && e.push("Delivery radius must be greater than 0"), j.delivery.deliveryFee < 0 && e.push("Delivery fee cannot be negative"), j.delivery.minimumOrderValue < 0 && e.push("Minimum order value cannot be negative")), j.pickup.enabled && j.pickup.preparationTime <= 0 && e.push("Preparation time must be greater than 0"), j.scheduledStop.enabled) {
191
- j.scheduledStop.stops.length === 0 && e.push("At least one scheduled stop is required when scheduled stop service is enabled");
192
- for (let t of j.scheduledStop.stops) t.name.trim() || e.push("All scheduled stops must have a name"), t.address.trim() || e.push("All scheduled stops must have an address"), t.daysOfWeek.length === 0 && e.push("All scheduled stops must have at least one day selected"), t.arrivalTime >= t.departureTime && e.push("Departure time must be after arrival time for all stops");
191
+ if (N.delivery.enabled && (N.delivery.deliveryRadius <= 0 && e.push("Delivery radius must be greater than 0"), N.delivery.deliveryFee < 0 && e.push("Delivery fee cannot be negative"), N.delivery.minimumOrderValue < 0 && e.push("Minimum order value cannot be negative")), N.pickup.enabled && N.pickup.preparationTime <= 0 && e.push("Preparation time must be greater than 0"), N.scheduledStop.enabled) {
192
+ N.scheduledStop.stops.length === 0 && e.push("At least one scheduled stop is required when scheduled stop service is enabled");
193
+ for (let t of N.scheduledStop.stops) t.name.trim() || e.push("All scheduled stops must have a name"), t.address.trim() || e.push("All scheduled stops must have an address"), t.daysOfWeek.length === 0 && e.push("All scheduled stops must have at least one day selected"), t.arrivalTime >= t.departureTime && e.push("Departure time must be after arrival time for all stops");
193
194
  }
194
- return j.directService.enabled && (j.directService.config.serviceFee < 0 && e.push("Service fee cannot be negative"), j.directService.config.minimumAdvancePayment < 0 && e.push("Minimum advance payment cannot be negative"), j.directService.config.serviceRadius <= 0 && e.push("Service radius must be greater than 0"), j.directService.config.estimatedArrivalTime <= 0 && e.push("Estimated arrival time must be greater than 0")), Object.values(k).some((e) => e.isOpen) || e.push("At least one day must be open"), e;
195
- }, q = () => {
196
- R([]);
197
- let e = K();
195
+ return N.directService.enabled && (N.directService.config.serviceFee < 0 && e.push("Service fee cannot be negative"), N.directService.config.minimumAdvancePayment < 0 && e.push("Minimum advance payment cannot be negative"), N.directService.config.serviceRadius <= 0 && e.push("Service radius must be greater than 0"), N.directService.config.estimatedArrivalTime <= 0 && e.push("Estimated arrival time must be greater than 0")), Object.values(j).some((e) => e.isOpen) || e.push("At least one day must be open"), e;
196
+ }, Y = () => {
197
+ B([]);
198
+ let e = J();
198
199
  if (e.length > 0) {
199
- R(e);
200
+ B(e);
200
201
  return;
201
202
  }
202
- P(!0), setTimeout(() => {
203
- P(!1), I(!0), setTimeout(() => I(!1), 3e3);
203
+ I(!0), setTimeout(() => {
204
+ I(!1), R(!0), setTimeout(() => R(!1), 3e3);
204
205
  }, 1e3);
205
- }, J = y.find((e) => e.value === D);
206
+ }, X = x.find((e) => e.value === k);
206
207
  return /* @__PURE__ */ _(n, {
207
208
  title: "Service Provider Configuration",
208
209
  description: "Manage your service status, operating hours, and service types",
209
210
  actions: /* @__PURE__ */ _("button", {
210
211
  type: "button",
211
- onClick: q,
212
- disabled: N,
213
- className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", N ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
214
- children: N ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, { className: "h-4 w-4" }), "Save Configuration"] })
212
+ onClick: Y,
213
+ disabled: F,
214
+ className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", F ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
215
+ children: F ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, { className: "h-4 w-4" }), "Save Configuration"] })
215
216
  }),
216
217
  children: /* @__PURE__ */ v("div", {
217
218
  className: "space-y-6 max-w-4xl",
218
219
  children: [
219
- F && /* @__PURE__ */ v("div", {
220
- className: "flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/10 p-4",
221
- children: [/* @__PURE__ */ _(o, { className: "h-5 w-5 text-green-600 dark:text-green-400 shrink-0" }), /* @__PURE__ */ _("span", {
222
- className: "text-sm font-medium text-green-600 dark:text-green-400",
220
+ /* @__PURE__ */ _(b, {
221
+ icon: /* @__PURE__ */ _(f, { className: "h-4 w-4" }),
222
+ children: "Set the rules of how your cart operates. Decide when you're open, where you serve, which service types you offer (pickup, delivery, on-site), and your operating hours. Customers only see — and can only order — what you configure here, so keep it accurate to avoid no-shows and missed orders."
223
+ }),
224
+ L && /* @__PURE__ */ v("div", {
225
+ className: "flex items-center gap-2 rounded-lg border border-status-success-border/30 bg-status-success-bg/10 p-4",
226
+ children: [/* @__PURE__ */ _(o, { className: "h-5 w-5 text-status-success-text shrink-0" }), /* @__PURE__ */ _("span", {
227
+ className: "text-sm font-medium text-status-success-text",
223
228
  children: "Configuration saved successfully!"
224
229
  })]
225
230
  }),
226
- L.length > 0 && /* @__PURE__ */ _("div", {
227
- className: "rounded-lg border border-red-500/30 bg-red-500/10 p-4 space-y-1",
228
- children: L.map((e, t) => /* @__PURE__ */ v("div", {
231
+ z.length > 0 && /* @__PURE__ */ _("div", {
232
+ className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 p-4 space-y-1",
233
+ children: z.map((e, t) => /* @__PURE__ */ v("div", {
229
234
  className: "flex items-start gap-2",
230
- children: [/* @__PURE__ */ _(i, { className: "h-4 w-4 text-red-600 dark:text-red-400 shrink-0 mt-0.5" }), /* @__PURE__ */ _("span", {
231
- className: "text-sm text-red-600 dark:text-red-400",
235
+ children: [/* @__PURE__ */ _(i, { className: "h-4 w-4 text-status-error-text shrink-0 mt-0.5" }), /* @__PURE__ */ _("span", {
236
+ className: "text-sm text-status-error-text",
232
237
  children: e
233
238
  })]
234
239
  }, t))
235
240
  }),
236
- /* @__PURE__ */ _("section", {
237
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6 shadow-sm",
238
- children: /* @__PURE__ */ v("div", {
239
- className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",
240
- children: [/* @__PURE__ */ v("div", {
241
- className: "flex-1",
242
- children: [/* @__PURE__ */ v("h2", {
243
- className: "text-lg font-semibold text-text-primary flex items-center gap-2",
244
- children: [/* @__PURE__ */ _(f, { className: "h-5 w-5 text-text-secondary" }), "Service Status"]
245
- }), /* @__PURE__ */ _("p", {
246
- className: "text-sm text-text-secondary mt-1",
247
- children: "Control whether your service is currently accepting orders"
248
- })]
249
- }), /* @__PURE__ */ v("div", {
250
- className: "flex items-center gap-3",
251
- children: [/* @__PURE__ */ _("span", {
252
- className: t("inline-flex items-center rounded-full px-3 py-1 text-xs font-medium", T ? "bg-green-500/20 text-green-600 dark:text-green-400" : "bg-red-500/20 text-red-600 dark:text-red-400"),
253
- children: T ? "Open" : "Closed"
254
- }), /* @__PURE__ */ _("button", {
255
- type: "button",
256
- onClick: () => E(!T),
257
- className: t("rounded-md px-4 py-2 text-sm font-medium transition-colors", T ? "bg-red-500/10 text-red-600 dark:text-red-400 hover:bg-red-500/20" : "bg-green-500/10 text-green-600 dark:text-green-400 hover:bg-green-500/20"),
258
- children: T ? "Close Service" : "Open Service"
259
- })]
241
+ /* @__PURE__ */ _(y, { children: /* @__PURE__ */ v("div", {
242
+ className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",
243
+ children: [/* @__PURE__ */ v("div", {
244
+ className: "flex-1",
245
+ children: [/* @__PURE__ */ v("h2", {
246
+ className: "text-lg font-semibold text-text-primary flex items-center gap-2",
247
+ children: [/* @__PURE__ */ _(f, { className: "h-5 w-5 text-text-secondary" }), "Service Status"]
248
+ }), /* @__PURE__ */ _("p", {
249
+ className: "text-sm text-text-secondary mt-1",
250
+ children: "Control whether your service is currently accepting orders"
260
251
  })]
261
- })
262
- }),
252
+ }), /* @__PURE__ */ v("div", {
253
+ className: "flex items-center gap-3",
254
+ children: [/* @__PURE__ */ _("span", {
255
+ className: t("inline-flex items-center rounded-full px-3 py-1 text-xs font-medium", D ? "bg-status-success-bg/20 text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
256
+ children: D ? "Open" : "Closed"
257
+ }), /* @__PURE__ */ _("button", {
258
+ type: "button",
259
+ onClick: () => O(!D),
260
+ className: t("rounded-md px-4 py-2 text-sm font-medium transition-colors", D ? "bg-status-error-bg/10 text-status-error-text hover:bg-status-error-bg/20" : "bg-status-success-bg/10 text-status-success-text hover:bg-status-success-bg/20"),
261
+ children: D ? "Close Service" : "Open Service"
262
+ })]
263
+ })]
264
+ }) }),
263
265
  /* @__PURE__ */ v("section", {
264
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6 shadow-sm",
266
+ className: "rounded-lg border border-border-seam bg-bg-surface p-6 shadow-sm",
265
267
  children: [/* @__PURE__ */ v("h2", {
266
268
  className: "text-lg font-semibold text-text-primary flex items-center gap-2 mb-4",
267
269
  children: [/* @__PURE__ */ _(l, { className: "h-5 w-5 text-text-secondary" }), "Offering Type"]
@@ -275,43 +277,43 @@ var y = [
275
277
  }),
276
278
  /* @__PURE__ */ _("select", {
277
279
  id: "offering-type",
278
- value: D,
279
- onChange: (e) => O(e.target.value),
280
- className: "w-full sm:w-64 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)]",
281
- children: y.map((e) => /* @__PURE__ */ _("option", {
280
+ value: k,
281
+ onChange: (e) => A(e.target.value),
282
+ className: "w-full sm:w-64 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)]",
283
+ children: x.map((e) => /* @__PURE__ */ _("option", {
282
284
  value: e.value,
283
285
  children: e.label
284
286
  }, e.value))
285
287
  }),
286
288
  /* @__PURE__ */ _("p", {
287
289
  className: "text-sm text-text-secondary",
288
- children: J.description
290
+ children: X.description
289
291
  })
290
292
  ]
291
293
  })]
292
294
  }),
293
295
  /* @__PURE__ */ v("section", {
294
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6 shadow-sm",
296
+ className: "rounded-lg border border-border-seam bg-bg-surface p-6 shadow-sm",
295
297
  children: [/* @__PURE__ */ v("h2", {
296
298
  className: "text-lg font-semibold text-text-primary flex items-center gap-2 mb-4",
297
299
  children: [/* @__PURE__ */ _(s, { className: "h-5 w-5 text-text-secondary" }), "Operating Hours"]
298
300
  }), /* @__PURE__ */ _("div", {
299
301
  className: "grid grid-cols-1 md:grid-cols-2 gap-3",
300
- children: b.map((e) => {
301
- let n = k[e];
302
+ children: S.map((e) => {
303
+ let n = j[e];
302
304
  return /* @__PURE__ */ v("div", {
303
305
  className: t("flex flex-col sm:flex-row sm:items-center gap-3 p-4 rounded-lg", n.isOpen ? "bg-bg-sunken/50" : "bg-bg-sunken/30 opacity-60"),
304
306
  children: [/* @__PURE__ */ _("span", {
305
307
  className: "min-w-[50px] text-sm font-medium text-text-primary",
306
- children: x[e]
308
+ children: C[e]
307
309
  }), /* @__PURE__ */ v("div", {
308
310
  className: "flex items-center gap-3 flex-1",
309
311
  children: [
310
312
  /* @__PURE__ */ _("button", {
311
313
  type: "button",
312
- onClick: () => z(e, "isOpen", !n.isOpen),
313
- className: t("h-5 w-5 rounded border transition-colors shrink-0", n.isOpen ? "bg-blue-500 border-blue-500" : "border-border-subtle bg-bg-surface"),
314
- children: n.isOpen && /* @__PURE__ */ _(o, { className: "h-5 w-5 text-white" })
314
+ onClick: () => V(e, "isOpen", !n.isOpen),
315
+ className: t("h-5 w-5 rounded border transition-colors shrink-0", n.isOpen ? "bg-status-info-text border-status-info-border" : "border-border-seam bg-bg-surface"),
316
+ children: n.isOpen && /* @__PURE__ */ _(o, { className: "h-5 w-5 text-text-inverse" })
315
317
  }),
316
318
  /* @__PURE__ */ _("span", {
317
319
  className: "text-xs text-text-secondary min-w-[35px]",
@@ -323,8 +325,8 @@ var y = [
323
325
  /* @__PURE__ */ _("input", {
324
326
  type: "time",
325
327
  value: n.open,
326
- onChange: (t) => z(e, "open", t.target.value),
327
- className: "text-sm rounded border border-border-subtle bg-bg-surface px-2 py-1.5 text-text-primary w-[110px]"
328
+ onChange: (t) => V(e, "open", t.target.value),
329
+ className: "text-sm rounded border border-border-seam bg-bg-surface px-2 py-1.5 text-text-primary w-[110px]"
328
330
  }),
329
331
  /* @__PURE__ */ _("span", {
330
332
  className: "text-xs text-text-secondary",
@@ -333,8 +335,8 @@ var y = [
333
335
  /* @__PURE__ */ _("input", {
334
336
  type: "time",
335
337
  value: n.close,
336
- onChange: (t) => z(e, "close", t.target.value),
337
- className: "text-sm rounded border border-border-subtle bg-bg-surface px-2 py-1.5 text-text-primary w-[110px]"
338
+ onChange: (t) => V(e, "close", t.target.value),
339
+ className: "text-sm rounded border border-border-seam bg-bg-surface px-2 py-1.5 text-text-primary w-[110px]"
338
340
  })
339
341
  ]
340
342
  })
@@ -345,7 +347,7 @@ var y = [
345
347
  })]
346
348
  }),
347
349
  /* @__PURE__ */ v("section", {
348
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6 shadow-sm",
350
+ className: "rounded-lg border border-border-seam bg-bg-surface p-6 shadow-sm",
349
351
  children: [/* @__PURE__ */ v("h2", {
350
352
  className: "text-lg font-semibold text-text-primary flex items-center gap-2 mb-6",
351
353
  children: [/* @__PURE__ */ _(h, { className: "h-5 w-5 text-text-secondary" }), "Service Types"]
@@ -353,48 +355,48 @@ var y = [
353
355
  className: "space-y-6",
354
356
  children: [
355
357
  /* @__PURE__ */ v("div", {
356
- className: "border border-border-subtle rounded-lg p-4",
358
+ className: "border border-border-seam rounded-lg p-4",
357
359
  children: [/* @__PURE__ */ v("div", {
358
360
  className: "flex items-center justify-between mb-4",
359
361
  children: [/* @__PURE__ */ v("div", {
360
362
  className: "flex items-center gap-2",
361
- children: [/* @__PURE__ */ _(p, { className: "h-5 w-5 text-blue-600 dark:text-blue-400" }), /* @__PURE__ */ _("span", {
363
+ children: [/* @__PURE__ */ _(p, { className: "h-5 w-5 text-status-info-text" }), /* @__PURE__ */ _("span", {
362
364
  className: "font-medium text-text-primary",
363
365
  children: "Pickup Service"
364
366
  })]
365
367
  }), /* @__PURE__ */ _("button", {
366
368
  type: "button",
367
- onClick: () => B("pickup", "enabled", !j.pickup.enabled),
368
- className: t("h-6 w-11 rounded-full transition-colors relative", j.pickup.enabled ? "bg-blue-500" : "bg-muted-foreground/30"),
369
- children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", j.pickup.enabled ? "translate-x-5" : "translate-x-0.5") })
369
+ onClick: () => H("pickup", "enabled", !N.pickup.enabled),
370
+ className: t("h-6 w-11 rounded-full transition-colors relative", N.pickup.enabled ? "bg-status-info-text" : "bg-muted-foreground/30"),
371
+ children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-bg-surface transition-transform", N.pickup.enabled ? "translate-x-5" : "translate-x-0.5") })
370
372
  })]
371
- }), j.pickup.enabled && /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
373
+ }), N.pickup.enabled && /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
372
374
  className: "block text-sm font-medium text-text-primary mb-1",
373
375
  children: "Preparation Time (minutes)"
374
376
  }), /* @__PURE__ */ _("input", {
375
377
  type: "number",
376
- value: j.pickup.preparationTime,
377
- onChange: (e) => B("pickup", "preparationTime", parseInt(e.target.value) || 0),
378
- className: "w-full sm:w-32 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
378
+ value: N.pickup.preparationTime,
379
+ onChange: (e) => H("pickup", "preparationTime", parseInt(e.target.value) || 0),
380
+ className: "w-full sm:w-32 rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
379
381
  })] })]
380
382
  }),
381
383
  /* @__PURE__ */ v("div", {
382
- className: "border border-border-subtle rounded-lg p-4",
384
+ className: "border border-border-seam rounded-lg p-4",
383
385
  children: [/* @__PURE__ */ v("div", {
384
386
  className: "flex items-center justify-between mb-4",
385
387
  children: [/* @__PURE__ */ v("div", {
386
388
  className: "flex items-center gap-2",
387
- children: [/* @__PURE__ */ _(h, { className: "h-5 w-5 text-green-600 dark:text-green-400" }), /* @__PURE__ */ _("span", {
389
+ children: [/* @__PURE__ */ _(h, { className: "h-5 w-5 text-status-success-text" }), /* @__PURE__ */ _("span", {
388
390
  className: "font-medium text-text-primary",
389
391
  children: "Delivery Service"
390
392
  })]
391
393
  }), /* @__PURE__ */ _("button", {
392
394
  type: "button",
393
- onClick: () => B("delivery", "enabled", !j.delivery.enabled),
394
- className: t("h-6 w-11 rounded-full transition-colors relative", j.delivery.enabled ? "bg-blue-500" : "bg-muted-foreground/30"),
395
- children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", j.delivery.enabled ? "translate-x-5" : "translate-x-0.5") })
395
+ onClick: () => H("delivery", "enabled", !N.delivery.enabled),
396
+ className: t("h-6 w-11 rounded-full transition-colors relative", N.delivery.enabled ? "bg-status-info-text" : "bg-muted-foreground/30"),
397
+ children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-bg-surface transition-transform", N.delivery.enabled ? "translate-x-5" : "translate-x-0.5") })
396
398
  })]
397
- }), j.delivery.enabled && /* @__PURE__ */ v("div", {
399
+ }), N.delivery.enabled && /* @__PURE__ */ v("div", {
398
400
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
399
401
  children: [
400
402
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
@@ -402,48 +404,48 @@ var y = [
402
404
  children: "Delivery Radius (km)"
403
405
  }), /* @__PURE__ */ _("input", {
404
406
  type: "number",
405
- value: j.delivery.deliveryRadius,
406
- onChange: (e) => B("delivery", "deliveryRadius", parseInt(e.target.value) || 0),
407
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
407
+ value: N.delivery.deliveryRadius,
408
+ onChange: (e) => H("delivery", "deliveryRadius", parseInt(e.target.value) || 0),
409
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
408
410
  })] }),
409
411
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
410
412
  className: "block text-sm font-medium text-text-primary mb-1",
411
413
  children: "Delivery Fee (₹)"
412
414
  }), /* @__PURE__ */ _("input", {
413
415
  type: "number",
414
- value: j.delivery.deliveryFee,
415
- onChange: (e) => B("delivery", "deliveryFee", parseInt(e.target.value) || 0),
416
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
416
+ value: N.delivery.deliveryFee,
417
+ onChange: (e) => H("delivery", "deliveryFee", parseInt(e.target.value) || 0),
418
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
417
419
  })] }),
418
420
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
419
421
  className: "block text-sm font-medium text-text-primary mb-1",
420
422
  children: "Minimum Order (₹)"
421
423
  }), /* @__PURE__ */ _("input", {
422
424
  type: "number",
423
- value: j.delivery.minimumOrderValue,
424
- onChange: (e) => B("delivery", "minimumOrderValue", parseInt(e.target.value) || 0),
425
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
425
+ value: N.delivery.minimumOrderValue,
426
+ onChange: (e) => H("delivery", "minimumOrderValue", parseInt(e.target.value) || 0),
427
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
426
428
  })] })
427
429
  ]
428
430
  })]
429
431
  }),
430
432
  /* @__PURE__ */ v("div", {
431
- className: "border border-border-subtle rounded-lg p-4",
433
+ className: "border border-border-seam rounded-lg p-4",
432
434
  children: [/* @__PURE__ */ v("div", {
433
435
  className: "flex items-center justify-between mb-4",
434
436
  children: [/* @__PURE__ */ v("div", {
435
437
  className: "flex items-center gap-2",
436
- children: [/* @__PURE__ */ _(a, { className: "h-5 w-5 text-orange-600 dark:text-orange-400" }), /* @__PURE__ */ _("span", {
438
+ children: [/* @__PURE__ */ _(a, { className: "h-5 w-5 text-status-warning-text" }), /* @__PURE__ */ _("span", {
437
439
  className: "font-medium text-text-primary",
438
440
  children: "Scheduled Stop Service"
439
441
  })]
440
442
  }), /* @__PURE__ */ _("button", {
441
443
  type: "button",
442
- onClick: () => B("scheduledStop", "enabled", !j.scheduledStop.enabled),
443
- className: t("h-6 w-11 rounded-full transition-colors relative", j.scheduledStop.enabled ? "bg-blue-500" : "bg-muted-foreground/30"),
444
- children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", j.scheduledStop.enabled ? "translate-x-5" : "translate-x-0.5") })
444
+ onClick: () => H("scheduledStop", "enabled", !N.scheduledStop.enabled),
445
+ className: t("h-6 w-11 rounded-full transition-colors relative", N.scheduledStop.enabled ? "bg-status-info-text" : "bg-muted-foreground/30"),
446
+ children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-bg-surface transition-transform", N.scheduledStop.enabled ? "translate-x-5" : "translate-x-0.5") })
445
447
  })]
446
- }), j.scheduledStop.enabled && /* @__PURE__ */ v("div", {
448
+ }), N.scheduledStop.enabled && /* @__PURE__ */ v("div", {
447
449
  className: "space-y-4",
448
450
  children: [
449
451
  /* @__PURE__ */ v("div", {
@@ -453,13 +455,13 @@ var y = [
453
455
  children: "Configure locations and times where your cart will be available"
454
456
  }), /* @__PURE__ */ v("button", {
455
457
  type: "button",
456
- onClick: H,
457
- className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-sm text-text-primary hover:bg-bg-sunken transition-colors",
458
+ onClick: W,
459
+ className: "inline-flex items-center gap-1.5 rounded-md border border-border-seam px-3 py-1.5 text-sm text-text-primary hover:bg-bg-sunken transition-colors",
458
460
  children: [/* @__PURE__ */ _(u, { className: "h-4 w-4" }), "Add Stop"]
459
461
  })]
460
462
  }),
461
- j.scheduledStop.stops.map((e) => /* @__PURE__ */ v("div", {
462
- className: "border border-border-subtle rounded-lg p-4 bg-bg-sunken/50",
463
+ N.scheduledStop.stops.map((e) => /* @__PURE__ */ v("div", {
464
+ className: "border border-border-seam rounded-lg p-4 bg-bg-sunken/50",
463
465
  children: [
464
466
  /* @__PURE__ */ v("div", {
465
467
  className: "flex items-center justify-between mb-3",
@@ -468,8 +470,8 @@ var y = [
468
470
  children: "Stop Configuration"
469
471
  }), /* @__PURE__ */ v("button", {
470
472
  type: "button",
471
- onClick: () => U(e.id),
472
- className: "inline-flex items-center gap-1 rounded-md bg-red-500/10 px-2 py-1 text-xs text-red-600 dark:text-red-400 hover:bg-red-500/20 transition-colors",
473
+ onClick: () => G(e.id),
474
+ className: "inline-flex items-center gap-1 rounded-md bg-status-error-bg/10 px-2 py-1 text-xs text-status-error-text hover:bg-status-error-bg/20 transition-colors",
473
475
  children: [/* @__PURE__ */ _(m, { className: "h-3.5 w-3.5" }), "Remove"]
474
476
  })]
475
477
  }),
@@ -481,18 +483,18 @@ var y = [
481
483
  }), /* @__PURE__ */ _("input", {
482
484
  type: "text",
483
485
  value: e.name,
484
- onChange: (t) => W(e.id, "name", t.target.value),
486
+ onChange: (t) => K(e.id, "name", t.target.value),
485
487
  placeholder: "e.g., Tech Park Morning",
486
- 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"
488
+ 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"
487
489
  })] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
488
490
  className: "block text-xs font-medium text-text-primary mb-1",
489
491
  children: "Address"
490
492
  }), /* @__PURE__ */ _("input", {
491
493
  type: "text",
492
494
  value: e.address,
493
- onChange: (t) => W(e.id, "address", t.target.value),
495
+ onChange: (t) => K(e.id, "address", t.target.value),
494
496
  placeholder: "Full address",
495
- 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"
497
+ 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"
496
498
  })] })]
497
499
  }),
498
500
  /* @__PURE__ */ v("div", {
@@ -503,16 +505,16 @@ var y = [
503
505
  }), /* @__PURE__ */ _("input", {
504
506
  type: "time",
505
507
  value: e.arrivalTime,
506
- onChange: (t) => W(e.id, "arrivalTime", t.target.value),
507
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
508
+ onChange: (t) => K(e.id, "arrivalTime", t.target.value),
509
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
508
510
  })] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
509
511
  className: "block text-xs font-medium text-text-primary mb-1",
510
512
  children: "Departure Time"
511
513
  }), /* @__PURE__ */ _("input", {
512
514
  type: "time",
513
515
  value: e.departureTime,
514
- onChange: (t) => W(e.id, "departureTime", t.target.value),
515
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
516
+ onChange: (t) => K(e.id, "departureTime", t.target.value),
517
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
516
518
  })] })]
517
519
  }),
518
520
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
@@ -520,16 +522,16 @@ var y = [
520
522
  children: "Days of Week"
521
523
  }), /* @__PURE__ */ _("div", {
522
524
  className: "flex flex-wrap gap-1.5",
523
- children: b.map((n) => /* @__PURE__ */ _("button", {
525
+ children: S.map((n) => /* @__PURE__ */ _("button", {
524
526
  type: "button",
525
- onClick: () => G(e.id, n),
526
- className: t("px-3 py-1 rounded-full text-xs font-medium transition-colors", e.daysOfWeek.includes(n) ? "bg-blue-500 text-white" : "bg-bg-sunken text-text-secondary hover:bg-muted-foreground/20"),
527
- children: x[n]
527
+ onClick: () => q(e.id, n),
528
+ className: t("px-3 py-1 rounded-full text-xs font-medium transition-colors", e.daysOfWeek.includes(n) ? "bg-status-info-text text-text-inverse" : "bg-bg-sunken text-text-secondary hover:bg-muted-foreground/20"),
529
+ children: C[n]
528
530
  }, n))
529
531
  })] })
530
532
  ]
531
533
  }, e.id)),
532
- j.scheduledStop.stops.length === 0 && /* @__PURE__ */ _("div", {
534
+ N.scheduledStop.stops.length === 0 && /* @__PURE__ */ _("div", {
533
535
  className: "text-center py-6 text-sm text-text-secondary",
534
536
  children: "No scheduled stops configured. Click \"Add Stop\" to create one."
535
537
  })
@@ -537,22 +539,22 @@ var y = [
537
539
  })]
538
540
  }),
539
541
  /* @__PURE__ */ v("div", {
540
- className: "border border-border-subtle rounded-lg p-4",
542
+ className: "border border-border-seam rounded-lg p-4",
541
543
  children: [/* @__PURE__ */ v("div", {
542
544
  className: "flex items-center justify-between mb-4",
543
545
  children: [/* @__PURE__ */ v("div", {
544
546
  className: "flex items-center gap-2",
545
- children: [/* @__PURE__ */ _(c, { className: "h-5 w-5 text-purple-600 dark:text-purple-400" }), /* @__PURE__ */ _("span", {
547
+ children: [/* @__PURE__ */ _(c, { className: "h-5 w-5 text-accent-purple" }), /* @__PURE__ */ _("span", {
546
548
  className: "font-medium text-text-primary",
547
549
  children: "Direct Service"
548
550
  })]
549
551
  }), /* @__PURE__ */ _("button", {
550
552
  type: "button",
551
- onClick: () => B("directService", "enabled", !j.directService.enabled),
552
- className: t("h-6 w-11 rounded-full transition-colors relative", j.directService.enabled ? "bg-blue-500" : "bg-muted-foreground/30"),
553
- children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", j.directService.enabled ? "translate-x-5" : "translate-x-0.5") })
553
+ onClick: () => H("directService", "enabled", !N.directService.enabled),
554
+ className: t("h-6 w-11 rounded-full transition-colors relative", N.directService.enabled ? "bg-status-info-text" : "bg-muted-foreground/30"),
555
+ children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-bg-surface transition-transform", N.directService.enabled ? "translate-x-5" : "translate-x-0.5") })
554
556
  })]
555
- }), j.directService.enabled && /* @__PURE__ */ v("div", {
557
+ }), N.directService.enabled && /* @__PURE__ */ v("div", {
556
558
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
557
559
  children: [
558
560
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
@@ -560,45 +562,45 @@ var y = [
560
562
  children: "Service Fee (₹)"
561
563
  }), /* @__PURE__ */ _("input", {
562
564
  type: "number",
563
- value: j.directService.config.serviceFee,
564
- onChange: (e) => V("serviceFee", parseInt(e.target.value) || 0),
565
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
565
+ value: N.directService.config.serviceFee,
566
+ onChange: (e) => U("serviceFee", parseInt(e.target.value) || 0),
567
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
566
568
  })] }),
567
569
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
568
570
  className: "block text-sm font-medium text-text-primary mb-1",
569
571
  children: "Minimum Advance Payment (₹)"
570
572
  }), /* @__PURE__ */ _("input", {
571
573
  type: "number",
572
- value: j.directService.config.minimumAdvancePayment,
573
- onChange: (e) => V("minimumAdvancePayment", parseInt(e.target.value) || 0),
574
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
574
+ value: N.directService.config.minimumAdvancePayment,
575
+ onChange: (e) => U("minimumAdvancePayment", parseInt(e.target.value) || 0),
576
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
575
577
  })] }),
576
578
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
577
579
  className: "block text-sm font-medium text-text-primary mb-1",
578
580
  children: "Service Radius (km)"
579
581
  }), /* @__PURE__ */ _("input", {
580
582
  type: "number",
581
- value: j.directService.config.serviceRadius,
582
- onChange: (e) => V("serviceRadius", parseInt(e.target.value) || 0),
583
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
583
+ value: N.directService.config.serviceRadius,
584
+ onChange: (e) => U("serviceRadius", parseInt(e.target.value) || 0),
585
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
584
586
  })] }),
585
587
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
586
588
  className: "block text-sm font-medium text-text-primary mb-1",
587
589
  children: "Estimated Arrival Time (min)"
588
590
  }), /* @__PURE__ */ _("input", {
589
591
  type: "number",
590
- value: j.directService.config.estimatedArrivalTime,
591
- onChange: (e) => V("estimatedArrivalTime", parseInt(e.target.value) || 0),
592
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
592
+ value: N.directService.config.estimatedArrivalTime,
593
+ onChange: (e) => U("estimatedArrivalTime", parseInt(e.target.value) || 0),
594
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
593
595
  })] }),
594
596
  /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
595
597
  className: "block text-sm font-medium text-text-primary mb-1",
596
598
  children: "Minimum Order Value (₹)"
597
599
  }), /* @__PURE__ */ _("input", {
598
600
  type: "number",
599
- value: j.directService.config.minimumOrderValue,
600
- onChange: (e) => V("minimumOrderValue", parseInt(e.target.value) || 0),
601
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
601
+ value: N.directService.config.minimumOrderValue,
602
+ onChange: (e) => U("minimumOrderValue", parseInt(e.target.value) || 0),
603
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
602
604
  })] })
603
605
  ]
604
606
  })]
@@ -610,15 +612,15 @@ var y = [
610
612
  className: "flex items-center justify-between pt-2",
611
613
  children: [/* @__PURE__ */ _("button", {
612
614
  type: "button",
613
- onClick: () => w("/cart-owner/dashboard"),
614
- className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
615
+ onClick: () => E("/cart-owner/dashboard"),
616
+ className: "rounded-md border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
615
617
  children: "Cancel"
616
618
  }), /* @__PURE__ */ _("button", {
617
619
  type: "button",
618
- onClick: q,
619
- disabled: N,
620
- className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", N ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
621
- children: N ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, { className: "h-4 w-4" }), "Save Configuration"] })
620
+ onClick: Y,
621
+ disabled: F,
622
+ className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", F ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
623
+ children: F ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, { className: "h-4 w-4" }), "Save Configuration"] })
622
624
  })]
623
625
  })
624
626
  ]
@@ -626,6 +628,6 @@ var y = [
626
628
  });
627
629
  };
628
630
  //#endregion
629
- export { w as CartServiceConfigPage };
631
+ export { E as CartServiceConfigPage };
630
632
 
631
633
  //# sourceMappingURL=CartServiceConfigPage.js.map