@burdenoff/microfe-subscriberbot 2026.625.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 (91) hide show
  1. package/dist/subscriberbot/pages/HomePage.js +19 -14
  2. package/dist/subscriberbot/pages/HomePage.js.map +1 -1
  3. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +66 -60
  4. package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/subscriberbot/pages/admin/AdminDashboard.js +83 -44
  6. package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +38 -32
  8. package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +226 -221
  10. package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/subscriberbot/pages/admin/AdminProfilePage.js +127 -125
  12. package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +235 -230
  14. package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/subscriberbot/pages/admin/CartManagementPage.js +267 -262
  16. package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/subscriberbot/pages/admin/UserManagementPage.js +267 -262
  18. package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +46 -41
  20. package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +257 -252
  22. package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +231 -194
  24. package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +167 -162
  26. package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +128 -126
  28. package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +297 -300
  30. package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +220 -223
  32. package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +250 -245
  34. package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/subscriberbot/pages/common/HelpSupportPage.js +94 -96
  36. package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/subscriberbot/pages/common/NotificationCenterPage.js +48 -42
  38. package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/subscriberbot/pages/common/SettingsPage.js +745 -736
  40. package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +353 -321
  42. package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/subscriberbot/pages/customer/CartDetailPage.js +258 -225
  44. package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +82 -76
  46. package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/subscriberbot/pages/customer/CheckoutPage.js +212 -215
  48. package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/subscriberbot/pages/customer/CustomerDashboard.js +416 -381
  50. package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +488 -479
  52. package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +521 -512
  54. package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/subscriberbot/pages/customer/FavoritesPage.js +57 -51
  56. package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +56 -50
  58. package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +65 -60
  60. package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +79 -73
  62. package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/subscriberbot/pages/customer/ReviewsPage.js +68 -62
  64. package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +60 -54
  66. package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +292 -255
  68. package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +237 -231
  70. package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +60 -54
  72. package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/subscriberbot/pages/investor/InvestorDashboard.js +350 -319
  74. package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +106 -100
  76. package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +51 -45
  78. package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +387 -382
  80. package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +320 -282
  82. package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/subscriberbot/pages/worker/WorkerDashboard.js +92 -61
  84. package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +82 -77
  86. package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +82 -77
  88. package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +348 -340
  90. package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. package/package.json +3 -3
@@ -2,34 +2,35 @@ import { useSubscriberBot as e } from "../../context/SubscriberBotContext.js";
2
2
  import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
4
  import { useState as r } from "react";
5
- import { AlertCircle as i, Bell as a, CheckCircle2 as o, Clock as s, Link2 as c, MapPin as l, Phone as u, Save as d, Shield as f, Store as p } from "lucide-react";
6
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
5
+ import { AlertCircle as i, Bell as a, Building2 as o, CheckCircle2 as s, Clock as c, Link2 as l, MapPin as u, Phone as d, Save as f, Shield as p, Store as m } from "lucide-react";
6
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
7
+ import { EmphasisPanel as v, PagePurpose as y } from "@burdenoff/fe-libs/ui";
7
8
  //#region src/subscriberbot/pages/cart-owner/BusinessSettingsPage.tsx
8
- var _ = [
9
+ var b = [
9
10
  {
10
11
  id: "general",
11
12
  label: "General",
12
- icon: p
13
+ icon: m
13
14
  },
14
15
  {
15
16
  id: "contact",
16
17
  label: "Contact",
17
- icon: u
18
+ icon: d
18
19
  },
19
20
  {
20
21
  id: "location",
21
22
  label: "Location",
22
- icon: l
23
+ icon: u
23
24
  },
24
25
  {
25
26
  id: "operating",
26
27
  label: "Operating",
27
- icon: s
28
+ icon: c
28
29
  },
29
30
  {
30
31
  id: "policies",
31
32
  label: "Policies",
32
- icon: f
33
+ icon: p
33
34
  },
34
35
  {
35
36
  id: "notifications",
@@ -39,9 +40,9 @@ var _ = [
39
40
  {
40
41
  id: "integration",
41
42
  label: "Integrations",
42
- icon: c
43
+ icon: l
43
44
  }
44
- ], v = [
45
+ ], x = [
45
46
  "Food & Beverage",
46
47
  "Personal Care & Beauty",
47
48
  "Repair & Maintenance",
@@ -51,31 +52,31 @@ 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
+ ], S = ({ 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
- return /* @__PURE__ */ g("div", { children: [
57
- /* @__PURE__ */ h("label", {
57
+ return /* @__PURE__ */ _("div", { children: [
58
+ /* @__PURE__ */ g("label", {
58
59
  htmlFor: c,
59
60
  className: "block text-sm font-medium text-text-primary mb-1.5",
60
61
  children: e
61
62
  }),
62
- r === "textarea" ? /* @__PURE__ */ h("textarea", {
63
+ r === "textarea" ? /* @__PURE__ */ g("textarea", {
63
64
  id: c,
64
65
  value: t,
65
66
  onChange: (e) => n(e.target.value),
66
67
  rows: s,
67
68
  placeholder: a,
68
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
- }) : r === "select" ? /* @__PURE__ */ h("select", {
70
+ }) : r === "select" ? /* @__PURE__ */ g("select", {
70
71
  id: c,
71
72
  value: t,
72
73
  onChange: (e) => n(e.target.value),
73
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
- children: i?.map((e) => /* @__PURE__ */ h("option", {
75
+ children: i?.map((e) => /* @__PURE__ */ g("option", {
75
76
  value: e,
76
77
  children: e
77
78
  }, e))
78
- }) : /* @__PURE__ */ h("input", {
79
+ }) : /* @__PURE__ */ g("input", {
79
80
  id: c,
80
81
  type: r,
81
82
  value: t,
@@ -83,27 +84,27 @@ var _ = [
83
84
  placeholder: a,
84
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
- o && /* @__PURE__ */ h("p", {
87
+ o && /* @__PURE__ */ g("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
+ }, C = ({ label: e, description: n, checked: r, onChange: i }) => /* @__PURE__ */ _("div", {
92
93
  className: "flex items-center justify-between py-3",
93
- children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
94
+ children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
94
95
  className: "text-sm font-medium text-text-primary",
95
96
  children: e
96
- }), n && /* @__PURE__ */ h("p", {
97
+ }), n && /* @__PURE__ */ g("p", {
97
98
  className: "text-xs text-text-secondary mt-0.5",
98
99
  children: n
99
- })] }), /* @__PURE__ */ h("button", {
100
+ })] }), /* @__PURE__ */ g("button", {
100
101
  type: "button",
101
102
  onClick: () => i(!r),
102
103
  className: t("h-6 w-11 rounded-full transition-colors relative", r ? "bg-status-info-text" : "bg-muted-foreground/30"),
103
- children: /* @__PURE__ */ h("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-bg-surface transition-transform", r ? "translate-x-5" : "translate-x-0.5") })
104
+ children: /* @__PURE__ */ g("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-bg-surface 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
+ }), w = () => {
107
+ let { navigateTo: a } = e(), [c, l] = r("general"), [u, d] = r(!1), [p, m] = 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,61 +151,65 @@ 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
- u(!0), setTimeout(() => {
161
- u(!1), p(!0), setTimeout(() => p(!1), 3e3);
160
+ }), R = () => {
161
+ d(!0), setTimeout(() => {
162
+ d(!1), m(!0), setTimeout(() => m(!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 b.find((e) => e.id === c)?.icon, /* @__PURE__ */ _(n, {
183
184
  title: "Business Settings",
184
185
  description: "Manage your business profile and configuration",
185
- actions: /* @__PURE__ */ h("button", {
186
+ actions: /* @__PURE__ */ g("button", {
186
187
  type: "button",
187
- onClick: F,
188
- 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-status-success-bg/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
- 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"] })
188
+ onClick: R,
189
+ disabled: u,
190
+ className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", p ? "bg-status-success-bg/10 text-status-success-text" : u ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
191
+ children: u ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : p ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(s, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(f, { className: "h-4 w-4" }), "Save Settings"] })
191
192
  }),
192
- children: /* @__PURE__ */ g("div", {
193
+ children: [/* @__PURE__ */ g(y, {
194
+ icon: /* @__PURE__ */ g(o, { className: "h-4 w-4" }),
195
+ className: "mb-6",
196
+ children: "Your single source of truth for how your business presents itself. Update your name, contact details, location, operating hours, policies and integrations — all in one place. These details power your public profile and order rules, so keep them current and remember to save before you leave a tab."
197
+ }), /* @__PURE__ */ _("div", {
193
198
  className: "flex flex-col lg:flex-row gap-6",
194
199
  children: [
195
- /* @__PURE__ */ h("div", {
200
+ /* @__PURE__ */ g("div", {
196
201
  className: "lg:hidden",
197
- children: /* @__PURE__ */ h("div", {
202
+ children: /* @__PURE__ */ g("div", {
198
203
  className: "rounded-lg border border-border-seam bg-bg-surface p-3 shadow-sm",
199
- children: /* @__PURE__ */ h("div", {
204
+ children: /* @__PURE__ */ g("div", {
200
205
  className: "grid grid-cols-4 gap-2",
201
- children: _.map((e) => {
206
+ children: b.map((e) => {
202
207
  let n = e.icon;
203
- return /* @__PURE__ */ g("button", {
208
+ return /* @__PURE__ */ _("button", {
204
209
  type: "button",
205
- onClick: () => c(e.id),
206
- className: t("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors", s === e.id ? "bg-accent text-text-primary" : "text-text-secondary hover:bg-bg-sunken"),
207
- children: [/* @__PURE__ */ h(n, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
210
+ onClick: () => l(e.id),
211
+ className: t("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors", c === e.id ? "bg-accent text-text-primary" : "text-text-secondary hover:bg-bg-sunken"),
212
+ children: [/* @__PURE__ */ g(n, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
208
213
  className: "hidden sm:inline",
209
214
  children: e.label
210
215
  })]
@@ -213,264 +218,264 @@ var _ = [
213
218
  })
214
219
  })
215
220
  }),
216
- /* @__PURE__ */ h("div", {
221
+ /* @__PURE__ */ g("div", {
217
222
  className: "hidden lg:block lg:w-56 shrink-0",
218
- children: /* @__PURE__ */ g("div", {
223
+ children: /* @__PURE__ */ _("div", {
219
224
  className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm sticky top-24",
220
- children: [/* @__PURE__ */ h("div", {
225
+ children: [/* @__PURE__ */ g("div", {
221
226
  className: "p-4 border-b border-border-seam",
222
- children: /* @__PURE__ */ h("h2", {
227
+ children: /* @__PURE__ */ g("h2", {
223
228
  className: "font-semibold text-text-primary text-sm",
224
229
  children: "Settings"
225
230
  })
226
- }), /* @__PURE__ */ h("nav", {
231
+ }), /* @__PURE__ */ g("nav", {
227
232
  className: "p-2",
228
- children: _.map((e) => {
233
+ children: b.map((e) => {
229
234
  let n = e.icon;
230
- return /* @__PURE__ */ g("button", {
235
+ return /* @__PURE__ */ _("button", {
231
236
  type: "button",
232
- onClick: () => c(e.id),
233
- className: t("w-full text-left px-3 py-2 rounded-md mb-1 flex items-center gap-3 text-sm transition-colors", s === e.id ? "bg-accent text-text-primary font-medium" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
234
- children: [/* @__PURE__ */ h(n, { className: "h-4 w-4" }), e.label]
237
+ onClick: () => l(e.id),
238
+ className: t("w-full text-left px-3 py-2 rounded-md mb-1 flex items-center gap-3 text-sm transition-colors", c === e.id ? "bg-accent text-text-primary font-medium" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
239
+ children: [/* @__PURE__ */ g(n, { className: "h-4 w-4" }), e.label]
235
240
  }, e.id);
236
241
  })
237
242
  })]
238
243
  })
239
244
  }),
240
- /* @__PURE__ */ h("div", {
245
+ /* @__PURE__ */ g("div", {
241
246
  className: "flex-1 min-w-0",
242
- children: /* @__PURE__ */ g("div", {
243
- className: "rounded-lg border border-border-seam bg-bg-surface p-5 sm:p-6 shadow-sm",
247
+ children: /* @__PURE__ */ _(v, {
248
+ className: "p-5 sm:p-6",
244
249
  children: [
245
- s === "general" && /* @__PURE__ */ g("div", {
250
+ c === "general" && /* @__PURE__ */ _("div", {
246
251
  className: "space-y-5",
247
252
  children: [
248
- /* @__PURE__ */ h(y, {
253
+ /* @__PURE__ */ g(S, {
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__ */ g(S, {
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
- /* @__PURE__ */ g("div", {
264
+ /* @__PURE__ */ _("div", {
260
265
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
261
- children: [/* @__PURE__ */ h(y, {
266
+ children: [/* @__PURE__ */ g(S, {
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: x
272
+ }), /* @__PURE__ */ g(S, {
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
- /* @__PURE__ */ g("div", {
278
+ /* @__PURE__ */ _("div", {
274
279
  className: "flex items-start gap-3 rounded-md bg-status-info-bg/5 border border-status-info-border/20 p-3",
275
- children: [/* @__PURE__ */ h(i, { className: "h-4 w-4 text-status-info-text shrink-0 mt-0.5" }), /* @__PURE__ */ h("p", {
280
+ children: [/* @__PURE__ */ g(i, { className: "h-4 w-4 text-status-info-text shrink-0 mt-0.5" }), /* @__PURE__ */ g("p", {
276
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
- /* @__PURE__ */ g("div", {
285
+ /* @__PURE__ */ _("div", {
281
286
  className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
282
287
  children: [
283
- /* @__PURE__ */ h(y, {
288
+ /* @__PURE__ */ g(S, {
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__ */ g(S, {
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__ */ g(S, {
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
  ]
302
307
  })
303
308
  ]
304
309
  }),
305
- s === "contact" && /* @__PURE__ */ g("div", {
310
+ c === "contact" && /* @__PURE__ */ _("div", {
306
311
  className: "space-y-5",
307
312
  children: [
308
- /* @__PURE__ */ g("div", {
313
+ /* @__PURE__ */ _("div", {
309
314
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
310
- children: [/* @__PURE__ */ h(y, {
315
+ children: [/* @__PURE__ */ g(S, {
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__ */ g(S, {
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
- /* @__PURE__ */ g("div", {
327
+ /* @__PURE__ */ _("div", {
323
328
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
324
- children: [/* @__PURE__ */ h(y, {
329
+ children: [/* @__PURE__ */ g(S, {
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__ */ g(S, {
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
  }),
337
- /* @__PURE__ */ h("h3", {
342
+ /* @__PURE__ */ g("h3", {
338
343
  className: "text-sm font-semibold text-text-primary pt-2",
339
344
  children: "Social Media"
340
345
  }),
341
- /* @__PURE__ */ g("div", {
346
+ /* @__PURE__ */ _("div", {
342
347
  className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
343
348
  children: [
344
- /* @__PURE__ */ h(y, {
349
+ /* @__PURE__ */ g(S, {
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__ */ g(S, {
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__ */ g(S, {
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
  ]
363
368
  })
364
369
  ]
365
370
  }),
366
- s === "location" && /* @__PURE__ */ g("div", {
371
+ c === "location" && /* @__PURE__ */ _("div", {
367
372
  className: "space-y-5",
368
373
  children: [
369
- /* @__PURE__ */ h(y, {
374
+ /* @__PURE__ */ g(S, {
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
- /* @__PURE__ */ g("div", {
381
+ /* @__PURE__ */ _("div", {
377
382
  className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
378
383
  children: [
379
- /* @__PURE__ */ h(y, {
384
+ /* @__PURE__ */ g(S, {
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__ */ g(S, {
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__ */ g(S, {
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
- /* @__PURE__ */ g("div", {
401
+ /* @__PURE__ */ _("div", {
397
402
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
398
- children: [/* @__PURE__ */ h(y, {
403
+ children: [/* @__PURE__ */ g(S, {
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__ */ g(S, {
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
  }),
410
- /* @__PURE__ */ h("h3", {
415
+ /* @__PURE__ */ g("h3", {
411
416
  className: "text-sm font-semibold text-text-primary pt-2",
412
417
  children: "Delivery Settings"
413
418
  }),
414
- /* @__PURE__ */ g("div", {
419
+ /* @__PURE__ */ _("div", {
415
420
  className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
416
421
  children: [
417
- /* @__PURE__ */ h(y, {
422
+ /* @__PURE__ */ g(S, {
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__ */ g(S, {
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__ */ g(S, {
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
  ]
436
441
  })
437
442
  ]
438
443
  }),
439
- s === "operating" && /* @__PURE__ */ g("div", {
444
+ c === "operating" && /* @__PURE__ */ _("div", {
440
445
  className: "space-y-5",
441
- children: [/* @__PURE__ */ h(b, {
446
+ children: [/* @__PURE__ */ g(C, {
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
- }), /* @__PURE__ */ g("div", {
454
+ }), /* @__PURE__ */ _("div", {
450
455
  className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
451
456
  children: [
452
- /* @__PURE__ */ h(y, {
457
+ /* @__PURE__ */ g(S, {
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__ */ g(S, {
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__ */ g(S, {
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
  })),
@@ -479,222 +484,222 @@ var _ = [
479
484
  ]
480
485
  })]
481
486
  }),
482
- s === "policies" && /* @__PURE__ */ g("div", {
487
+ c === "policies" && /* @__PURE__ */ _("div", {
483
488
  className: "space-y-5",
484
489
  children: [
485
- /* @__PURE__ */ h(y, {
490
+ /* @__PURE__ */ g(S, {
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__ */ g(S, {
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__ */ g(S, {
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__ */ g(S, {
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
  })
513
518
  ]
514
519
  }),
515
- s === "notifications" && /* @__PURE__ */ g("div", {
520
+ c === "notifications" && /* @__PURE__ */ _("div", {
516
521
  className: "space-y-1 divide-y divide-border",
517
522
  children: [
518
- /* @__PURE__ */ h("h3", {
523
+ /* @__PURE__ */ g("h3", {
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__ */ g(C, {
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__ */ g(C, {
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__ */ g(C, {
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
- /* @__PURE__ */ h("h3", {
545
+ /* @__PURE__ */ g("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__ */ g(C, {
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__ */ g(C, {
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
- /* @__PURE__ */ h("h3", {
561
+ /* @__PURE__ */ g("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__ */ g(C, {
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__ */ g(C, {
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__ */ g(C, {
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__ */ g(C, {
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__ */ g(C, {
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
  }),
592
- s === "integration" && /* @__PURE__ */ g("div", {
597
+ c === "integration" && /* @__PURE__ */ _("div", {
593
598
  className: "space-y-5",
594
599
  children: [
595
- /* @__PURE__ */ h("h3", {
600
+ /* @__PURE__ */ g("h3", {
596
601
  className: "text-sm font-semibold text-text-primary",
597
602
  children: "Payment Gateway"
598
603
  }),
599
- /* @__PURE__ */ g("div", {
604
+ /* @__PURE__ */ _("div", {
600
605
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
601
- children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
606
+ children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
602
607
  className: "block text-sm font-medium text-text-primary mb-1.5",
603
608
  children: "Provider"
604
- }), /* @__PURE__ */ g("select", {
605
- value: N.paymentGateway,
606
- onChange: (e) => V("paymentGateway")(e.target.value),
609
+ }), /* @__PURE__ */ _("select", {
610
+ value: I.paymentGateway,
611
+ onChange: (e) => W("paymentGateway")(e.target.value),
607
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
- /* @__PURE__ */ h("option", {
614
+ /* @__PURE__ */ g("option", {
610
615
  value: "razorpay",
611
616
  children: "Razorpay"
612
617
  }),
613
- /* @__PURE__ */ h("option", {
618
+ /* @__PURE__ */ g("option", {
614
619
  value: "paytm",
615
620
  children: "Paytm"
616
621
  }),
617
- /* @__PURE__ */ h("option", {
622
+ /* @__PURE__ */ g("option", {
618
623
  value: "stripe",
619
624
  children: "Stripe"
620
625
  }),
621
- /* @__PURE__ */ h("option", {
626
+ /* @__PURE__ */ g("option", {
622
627
  value: "phonepe",
623
628
  children: "PhonePe"
624
629
  })
625
630
  ]
626
- })] }), /* @__PURE__ */ h(y, {
631
+ })] }), /* @__PURE__ */ g(S, {
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
  })]
633
638
  }),
634
- /* @__PURE__ */ h("h3", {
639
+ /* @__PURE__ */ g("h3", {
635
640
  className: "text-sm font-semibold text-text-primary pt-2",
636
641
  children: "SMS Provider"
637
642
  }),
638
- /* @__PURE__ */ g("div", {
643
+ /* @__PURE__ */ _("div", {
639
644
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
640
- children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
645
+ children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
641
646
  className: "block text-sm font-medium text-text-primary mb-1.5",
642
647
  children: "Provider"
643
- }), /* @__PURE__ */ g("select", {
644
- value: N.smsProvider,
645
- onChange: (e) => V("smsProvider")(e.target.value),
648
+ }), /* @__PURE__ */ _("select", {
649
+ value: I.smsProvider,
650
+ onChange: (e) => W("smsProvider")(e.target.value),
646
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
- /* @__PURE__ */ h("option", {
653
+ /* @__PURE__ */ g("option", {
649
654
  value: "twilio",
650
655
  children: "Twilio"
651
656
  }),
652
- /* @__PURE__ */ h("option", {
657
+ /* @__PURE__ */ g("option", {
653
658
  value: "msg91",
654
659
  children: "MSG91"
655
660
  }),
656
- /* @__PURE__ */ h("option", {
661
+ /* @__PURE__ */ g("option", {
657
662
  value: "textlocal",
658
663
  children: "Textlocal"
659
664
  })
660
665
  ]
661
- })] }), /* @__PURE__ */ h(y, {
666
+ })] }), /* @__PURE__ */ g(S, {
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
  }),
668
- /* @__PURE__ */ h("h3", {
673
+ /* @__PURE__ */ g("h3", {
669
674
  className: "text-sm font-semibold text-text-primary pt-2",
670
675
  children: "Analytics"
671
676
  }),
672
- /* @__PURE__ */ h(y, {
677
+ /* @__PURE__ */ g(S, {
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
- /* @__PURE__ */ h("div", {
685
+ /* @__PURE__ */ g("div", {
681
686
  className: "flex justify-end mt-8 pt-6 border-t border-border-seam",
682
- children: /* @__PURE__ */ h("button", {
687
+ children: /* @__PURE__ */ g("button", {
683
688
  type: "button",
684
- onClick: F,
685
- 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-status-success-bg/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
- 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"] })
689
+ onClick: R,
690
+ disabled: u,
691
+ className: t("inline-flex items-center gap-2 rounded-md px-6 py-2 text-sm font-medium transition-colors", p ? "bg-status-success-bg/10 text-status-success-text" : u ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
692
+ children: u ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : p ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(s, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(f, { className: "h-4 w-4" }), "Save Settings"] })
688
693
  })
689
694
  })
690
695
  ]
691
696
  })
692
697
  })
693
698
  ]
694
- })
699
+ })]
695
700
  });
696
701
  };
697
702
  //#endregion
698
- export { x as BusinessSettingsPage };
703
+ export { w as BusinessSettingsPage };
699
704
 
700
705
  //# sourceMappingURL=BusinessSettingsPage.js.map