@burdenoff/microfe-adaptercloud 2026.625.1 → 2026.625.2

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