@burdenoff/microfe-atheletebridge 2026.624.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.
- package/dist/atheletebridge/components/EmptyState.js +18 -11
- package/dist/atheletebridge/components/EmptyState.js.map +1 -1
- package/dist/atheletebridge/components/InvestmentCard.js +7 -7
- package/dist/atheletebridge/components/InvestmentCard.js.map +1 -1
- package/dist/atheletebridge/components/MetricsCard.js +20 -14
- package/dist/atheletebridge/components/MetricsCard.js.map +1 -1
- package/dist/atheletebridge/components/PageLayout.js +30 -19
- package/dist/atheletebridge/components/PageLayout.js.map +1 -1
- package/dist/atheletebridge/pages/HomePage.js +210 -195
- package/dist/atheletebridge/pages/HomePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js +90 -82
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminDashboard.js +76 -44
- package/dist/atheletebridge/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js +63 -55
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js +244 -237
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js +59 -57
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js +110 -106
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/CartManagementPage.js +166 -159
- package/dist/atheletebridge/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/UserManagementPage.js +310 -303
- package/dist/atheletebridge/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js +86 -81
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js +170 -166
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js +141 -109
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js +139 -134
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js +109 -107
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js +318 -318
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js +262 -262
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js +170 -162
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/HelpSupportPage.js +292 -298
- package/dist/atheletebridge/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js +100 -91
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/SettingsPage.js +742 -734
- package/dist/atheletebridge/pages/common/SettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js +365 -356
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDetailPage.js +277 -241
- package/dist/atheletebridge/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js +261 -250
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CheckoutPage.js +93 -89
- package/dist/atheletebridge/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js +430 -387
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js +526 -490
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js +524 -512
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/FavoritesPage.js +84 -75
- package/dist/atheletebridge/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js +117 -108
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js +66 -61
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js +81 -75
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/ReviewsPage.js +81 -72
- package/dist/atheletebridge/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js +63 -55
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js +93 -61
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js +90 -84
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js +60 -55
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js +345 -311
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js +38 -32
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js +75 -67
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js +353 -319
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js +353 -318
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js +134 -128
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js +352 -342
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,8 +4,9 @@ import { PageLayout as n } from "../../components/PageLayout.js";
|
|
|
4
4
|
import { useState as r } from "react";
|
|
5
5
|
import { AlertCircle as i, Bell as a, CheckCircle2 as o, Clock as s, Link2 as c, MapPin as l, Phone as u, Save as d, Shield as f, Store as p } from "lucide-react";
|
|
6
6
|
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
7
|
+
import { EmphasisPanel as _, PagePurpose as v } from "@burdenoff/fe-libs/ui";
|
|
7
8
|
//#region src/atheletebridge/pages/cart-owner/BusinessSettingsPage.tsx
|
|
8
|
-
var
|
|
9
|
+
var y = [
|
|
9
10
|
{
|
|
10
11
|
id: "general",
|
|
11
12
|
label: "General",
|
|
@@ -41,7 +42,7 @@ var _ = [
|
|
|
41
42
|
label: "Integrations",
|
|
42
43
|
icon: c
|
|
43
44
|
}
|
|
44
|
-
],
|
|
45
|
+
], b = [
|
|
45
46
|
"Food & Beverage",
|
|
46
47
|
"Personal Care & Beauty",
|
|
47
48
|
"Repair & Maintenance",
|
|
@@ -51,7 +52,7 @@ var _ = [
|
|
|
51
52
|
"Education & Skills",
|
|
52
53
|
"Retail & Merchandise",
|
|
53
54
|
"Grocery & Essentials"
|
|
54
|
-
],
|
|
55
|
+
], x = ({ label: e, value: t, onChange: n, type: r = "text", options: i, placeholder: a, hint: o, rows: s = 3 }) => {
|
|
55
56
|
let c = e.toLowerCase().replace(/\s+/g, "-");
|
|
56
57
|
return /* @__PURE__ */ g("div", { children: [
|
|
57
58
|
/* @__PURE__ */ h("label", {
|
|
@@ -88,7 +89,7 @@ var _ = [
|
|
|
88
89
|
children: o
|
|
89
90
|
})
|
|
90
91
|
] });
|
|
91
|
-
},
|
|
92
|
+
}, S = ({ label: e, description: n, checked: r, onChange: i }) => /* @__PURE__ */ g("div", {
|
|
92
93
|
className: "flex items-center justify-between py-3",
|
|
93
94
|
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
94
95
|
className: "text-sm font-medium text-text-primary",
|
|
@@ -102,8 +103,8 @@ var _ = [
|
|
|
102
103
|
className: t("h-6 w-11 rounded-full transition-colors relative", r ? "bg-blue-500" : "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
|
-
}),
|
|
106
|
-
let { navigateTo: a } = e(), [s, c] = r("general"), [l, u] = r(!1), [f, p] = r(!1), [
|
|
106
|
+
}), C = () => {
|
|
107
|
+
let { navigateTo: a } = e(), [s, c] = r("general"), [l, u] = r(!1), [f, p] = 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
|
-
}), [
|
|
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
|
-
}), [
|
|
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
|
-
}), [
|
|
133
|
+
}), [k, A] = r({
|
|
133
134
|
autoAcceptOrders: !0,
|
|
134
135
|
preparationTime: 15,
|
|
135
136
|
maxConcurrentOrders: 10,
|
|
136
137
|
advanceBookingDays: 3
|
|
137
|
-
}), [
|
|
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
|
-
}), [
|
|
143
|
+
}), [N, P] = r({
|
|
143
144
|
newOrderEmail: !0,
|
|
144
145
|
newOrderSms: !0,
|
|
145
146
|
newOrderPush: !0,
|
|
@@ -150,46 +151,49 @@ var _ = [
|
|
|
150
151
|
lowStockAlert: !0,
|
|
151
152
|
reviewNotification: !0,
|
|
152
153
|
marketingEmails: !1
|
|
153
|
-
}), [
|
|
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
|
-
}),
|
|
160
|
+
}), L = () => {
|
|
160
161
|
u(!0), setTimeout(() => {
|
|
161
162
|
u(!1), p(!0), setTimeout(() => p(!1), 3e3);
|
|
162
163
|
}, 1e3);
|
|
163
|
-
},
|
|
164
|
+
}, R = (e) => (t) => w((n) => ({
|
|
164
165
|
...n,
|
|
165
166
|
[e]: t
|
|
166
|
-
})),
|
|
167
|
+
})), z = (e) => (t) => E((n) => ({
|
|
167
168
|
...n,
|
|
168
169
|
[e]: t
|
|
169
|
-
})),
|
|
170
|
+
})), B = (e) => (t) => O((n) => ({
|
|
170
171
|
...n,
|
|
171
172
|
[e]: e === "deliveryRadius" || e === "deliveryCharge" || e === "freeDeliveryAbove" ? parseInt(t) || 0 : t
|
|
172
|
-
})),
|
|
173
|
+
})), V = (e) => (t) => M((n) => ({
|
|
173
174
|
...n,
|
|
174
175
|
[e]: t
|
|
175
|
-
})),
|
|
176
|
+
})), H = (e) => (t) => P((n) => ({
|
|
176
177
|
...n,
|
|
177
178
|
[e]: t
|
|
178
|
-
})),
|
|
179
|
+
})), U = (e) => (t) => I((n) => ({
|
|
179
180
|
...n,
|
|
180
181
|
[e]: t
|
|
181
182
|
}));
|
|
182
|
-
return
|
|
183
|
+
return y.find((e) => e.id === s)?.icon, /* @__PURE__ */ g(n, {
|
|
183
184
|
title: "Business Settings",
|
|
184
185
|
description: "Manage your business profile and configuration",
|
|
185
186
|
actions: /* @__PURE__ */ h("button", {
|
|
186
187
|
type: "button",
|
|
187
|
-
onClick:
|
|
188
|
+
onClick: L,
|
|
188
189
|
disabled: l,
|
|
189
190
|
className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", f ? "bg-green-500/10 text-green-600 dark:text-green-400" : l ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
|
|
190
191
|
children: l ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : f ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(o, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(d, { className: "h-4 w-4" }), "Save Settings"] })
|
|
191
192
|
}),
|
|
192
|
-
children: /* @__PURE__ */
|
|
193
|
+
children: [/* @__PURE__ */ h(v, {
|
|
194
|
+
className: "mb-6",
|
|
195
|
+
children: "Everything that defines your business on the platform. Update your profile, contact details, operating preferences and policies, then save. Keeping these accurate builds trust with customers and keeps your listing looking professional."
|
|
196
|
+
}), /* @__PURE__ */ g("div", {
|
|
193
197
|
className: "flex flex-col lg:flex-row gap-6",
|
|
194
198
|
children: [
|
|
195
199
|
/* @__PURE__ */ h("div", {
|
|
@@ -198,7 +202,7 @@ var _ = [
|
|
|
198
202
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 shadow-sm",
|
|
199
203
|
children: /* @__PURE__ */ h("div", {
|
|
200
204
|
className: "grid grid-cols-4 gap-2",
|
|
201
|
-
children:
|
|
205
|
+
children: y.map((e) => {
|
|
202
206
|
let n = e.icon;
|
|
203
207
|
return /* @__PURE__ */ g("button", {
|
|
204
208
|
type: "button",
|
|
@@ -215,8 +219,8 @@ var _ = [
|
|
|
215
219
|
}),
|
|
216
220
|
/* @__PURE__ */ h("div", {
|
|
217
221
|
className: "hidden lg:block lg:w-56 shrink-0",
|
|
218
|
-
children: /* @__PURE__ */ g(
|
|
219
|
-
className: "
|
|
222
|
+
children: /* @__PURE__ */ g(_, {
|
|
223
|
+
className: "sticky top-24 p-0 overflow-hidden",
|
|
220
224
|
children: [/* @__PURE__ */ h("div", {
|
|
221
225
|
className: "p-4 border-b border-border-subtle",
|
|
222
226
|
children: /* @__PURE__ */ h("h2", {
|
|
@@ -225,7 +229,7 @@ var _ = [
|
|
|
225
229
|
})
|
|
226
230
|
}), /* @__PURE__ */ h("nav", {
|
|
227
231
|
className: "p-2",
|
|
228
|
-
children:
|
|
232
|
+
children: y.map((e) => {
|
|
229
233
|
let n = e.icon;
|
|
230
234
|
return /* @__PURE__ */ g("button", {
|
|
231
235
|
type: "button",
|
|
@@ -245,29 +249,29 @@ var _ = [
|
|
|
245
249
|
s === "general" && /* @__PURE__ */ g("div", {
|
|
246
250
|
className: "space-y-5",
|
|
247
251
|
children: [
|
|
248
|
-
/* @__PURE__ */ h(
|
|
252
|
+
/* @__PURE__ */ h(x, {
|
|
249
253
|
label: "Business Name",
|
|
250
|
-
value:
|
|
251
|
-
onChange:
|
|
254
|
+
value: C.businessName,
|
|
255
|
+
onChange: R("businessName")
|
|
252
256
|
}),
|
|
253
|
-
/* @__PURE__ */ h(
|
|
257
|
+
/* @__PURE__ */ h(x, {
|
|
254
258
|
label: "Description",
|
|
255
|
-
value:
|
|
256
|
-
onChange:
|
|
259
|
+
value: C.description,
|
|
260
|
+
onChange: R("description"),
|
|
257
261
|
type: "textarea"
|
|
258
262
|
}),
|
|
259
263
|
/* @__PURE__ */ g("div", {
|
|
260
264
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
261
|
-
children: [/* @__PURE__ */ h(
|
|
265
|
+
children: [/* @__PURE__ */ h(x, {
|
|
262
266
|
label: "Category",
|
|
263
|
-
value:
|
|
264
|
-
onChange:
|
|
267
|
+
value: C.category,
|
|
268
|
+
onChange: R("category"),
|
|
265
269
|
type: "select",
|
|
266
|
-
options:
|
|
267
|
-
}), /* @__PURE__ */ h(
|
|
270
|
+
options: b
|
|
271
|
+
}), /* @__PURE__ */ h(x, {
|
|
268
272
|
label: "Established Year",
|
|
269
|
-
value:
|
|
270
|
-
onChange:
|
|
273
|
+
value: C.establishedYear,
|
|
274
|
+
onChange: R("establishedYear")
|
|
271
275
|
})]
|
|
272
276
|
}),
|
|
273
277
|
/* @__PURE__ */ g("div", {
|
|
@@ -280,22 +284,22 @@ var _ = [
|
|
|
280
284
|
/* @__PURE__ */ g("div", {
|
|
281
285
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
282
286
|
children: [
|
|
283
|
-
/* @__PURE__ */ h(
|
|
287
|
+
/* @__PURE__ */ h(x, {
|
|
284
288
|
label: "GST Number",
|
|
285
|
-
value:
|
|
286
|
-
onChange:
|
|
289
|
+
value: C.gstNumber,
|
|
290
|
+
onChange: R("gstNumber"),
|
|
287
291
|
hint: "15-digit GST ID"
|
|
288
292
|
}),
|
|
289
|
-
/* @__PURE__ */ h(
|
|
293
|
+
/* @__PURE__ */ h(x, {
|
|
290
294
|
label: "PAN Number",
|
|
291
|
-
value:
|
|
292
|
-
onChange:
|
|
295
|
+
value: C.panNumber,
|
|
296
|
+
onChange: R("panNumber"),
|
|
293
297
|
hint: "10-digit PAN"
|
|
294
298
|
}),
|
|
295
|
-
/* @__PURE__ */ h(
|
|
299
|
+
/* @__PURE__ */ h(x, {
|
|
296
300
|
label: "FSSAI License",
|
|
297
|
-
value:
|
|
298
|
-
onChange:
|
|
301
|
+
value: C.fssaiLicense,
|
|
302
|
+
onChange: R("fssaiLicense"),
|
|
299
303
|
hint: "FSSAI license number"
|
|
300
304
|
})
|
|
301
305
|
]
|
|
@@ -307,30 +311,30 @@ var _ = [
|
|
|
307
311
|
children: [
|
|
308
312
|
/* @__PURE__ */ g("div", {
|
|
309
313
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
310
|
-
children: [/* @__PURE__ */ h(
|
|
314
|
+
children: [/* @__PURE__ */ h(x, {
|
|
311
315
|
label: "Phone",
|
|
312
|
-
value:
|
|
313
|
-
onChange:
|
|
316
|
+
value: T.phone,
|
|
317
|
+
onChange: z("phone"),
|
|
314
318
|
type: "tel"
|
|
315
|
-
}), /* @__PURE__ */ h(
|
|
319
|
+
}), /* @__PURE__ */ h(x, {
|
|
316
320
|
label: "Email",
|
|
317
|
-
value:
|
|
318
|
-
onChange:
|
|
321
|
+
value: T.email,
|
|
322
|
+
onChange: z("email"),
|
|
319
323
|
type: "email"
|
|
320
324
|
})]
|
|
321
325
|
}),
|
|
322
326
|
/* @__PURE__ */ g("div", {
|
|
323
327
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
324
|
-
children: [/* @__PURE__ */ h(
|
|
328
|
+
children: [/* @__PURE__ */ h(x, {
|
|
325
329
|
label: "Website",
|
|
326
|
-
value:
|
|
327
|
-
onChange:
|
|
330
|
+
value: T.website,
|
|
331
|
+
onChange: z("website"),
|
|
328
332
|
type: "url",
|
|
329
333
|
placeholder: "https://"
|
|
330
|
-
}), /* @__PURE__ */ h(
|
|
334
|
+
}), /* @__PURE__ */ h(x, {
|
|
331
335
|
label: "WhatsApp",
|
|
332
|
-
value:
|
|
333
|
-
onChange:
|
|
336
|
+
value: T.whatsapp,
|
|
337
|
+
onChange: z("whatsapp"),
|
|
334
338
|
type: "tel"
|
|
335
339
|
})]
|
|
336
340
|
}),
|
|
@@ -341,22 +345,22 @@ var _ = [
|
|
|
341
345
|
/* @__PURE__ */ g("div", {
|
|
342
346
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
343
347
|
children: [
|
|
344
|
-
/* @__PURE__ */ h(
|
|
348
|
+
/* @__PURE__ */ h(x, {
|
|
345
349
|
label: "Instagram",
|
|
346
|
-
value:
|
|
347
|
-
onChange:
|
|
350
|
+
value: T.instagram,
|
|
351
|
+
onChange: z("instagram"),
|
|
348
352
|
placeholder: "@handle"
|
|
349
353
|
}),
|
|
350
|
-
/* @__PURE__ */ h(
|
|
354
|
+
/* @__PURE__ */ h(x, {
|
|
351
355
|
label: "Twitter / X",
|
|
352
|
-
value:
|
|
353
|
-
onChange:
|
|
356
|
+
value: T.twitter,
|
|
357
|
+
onChange: z("twitter"),
|
|
354
358
|
placeholder: "@handle"
|
|
355
359
|
}),
|
|
356
|
-
/* @__PURE__ */ h(
|
|
360
|
+
/* @__PURE__ */ h(x, {
|
|
357
361
|
label: "Facebook",
|
|
358
|
-
value:
|
|
359
|
-
onChange:
|
|
362
|
+
value: T.facebook,
|
|
363
|
+
onChange: z("facebook"),
|
|
360
364
|
placeholder: "Page name"
|
|
361
365
|
})
|
|
362
366
|
]
|
|
@@ -366,44 +370,44 @@ var _ = [
|
|
|
366
370
|
s === "location" && /* @__PURE__ */ g("div", {
|
|
367
371
|
className: "space-y-5",
|
|
368
372
|
children: [
|
|
369
|
-
/* @__PURE__ */ h(
|
|
373
|
+
/* @__PURE__ */ h(x, {
|
|
370
374
|
label: "Address",
|
|
371
|
-
value:
|
|
372
|
-
onChange:
|
|
375
|
+
value: D.address,
|
|
376
|
+
onChange: B("address"),
|
|
373
377
|
type: "textarea",
|
|
374
378
|
rows: 2
|
|
375
379
|
}),
|
|
376
380
|
/* @__PURE__ */ g("div", {
|
|
377
381
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
378
382
|
children: [
|
|
379
|
-
/* @__PURE__ */ h(
|
|
383
|
+
/* @__PURE__ */ h(x, {
|
|
380
384
|
label: "City",
|
|
381
|
-
value:
|
|
382
|
-
onChange:
|
|
385
|
+
value: D.city,
|
|
386
|
+
onChange: B("city")
|
|
383
387
|
}),
|
|
384
|
-
/* @__PURE__ */ h(
|
|
388
|
+
/* @__PURE__ */ h(x, {
|
|
385
389
|
label: "State",
|
|
386
|
-
value:
|
|
387
|
-
onChange:
|
|
390
|
+
value: D.state,
|
|
391
|
+
onChange: B("state")
|
|
388
392
|
}),
|
|
389
|
-
/* @__PURE__ */ h(
|
|
393
|
+
/* @__PURE__ */ h(x, {
|
|
390
394
|
label: "Pincode",
|
|
391
|
-
value:
|
|
392
|
-
onChange:
|
|
395
|
+
value: D.pincode,
|
|
396
|
+
onChange: B("pincode")
|
|
393
397
|
})
|
|
394
398
|
]
|
|
395
399
|
}),
|
|
396
400
|
/* @__PURE__ */ g("div", {
|
|
397
401
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
398
|
-
children: [/* @__PURE__ */ h(
|
|
402
|
+
children: [/* @__PURE__ */ h(x, {
|
|
399
403
|
label: "Latitude",
|
|
400
|
-
value:
|
|
401
|
-
onChange:
|
|
404
|
+
value: D.latitude,
|
|
405
|
+
onChange: B("latitude"),
|
|
402
406
|
hint: "e.g., 12.9352"
|
|
403
|
-
}), /* @__PURE__ */ h(
|
|
407
|
+
}), /* @__PURE__ */ h(x, {
|
|
404
408
|
label: "Longitude",
|
|
405
|
-
value:
|
|
406
|
-
onChange:
|
|
409
|
+
value: D.longitude,
|
|
410
|
+
onChange: B("longitude"),
|
|
407
411
|
hint: "e.g., 77.6245"
|
|
408
412
|
})]
|
|
409
413
|
}),
|
|
@@ -414,22 +418,22 @@ var _ = [
|
|
|
414
418
|
/* @__PURE__ */ g("div", {
|
|
415
419
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
416
420
|
children: [
|
|
417
|
-
/* @__PURE__ */ h(
|
|
421
|
+
/* @__PURE__ */ h(x, {
|
|
418
422
|
label: "Delivery Radius (km)",
|
|
419
|
-
value:
|
|
420
|
-
onChange:
|
|
423
|
+
value: D.deliveryRadius,
|
|
424
|
+
onChange: B("deliveryRadius"),
|
|
421
425
|
type: "number"
|
|
422
426
|
}),
|
|
423
|
-
/* @__PURE__ */ h(
|
|
427
|
+
/* @__PURE__ */ h(x, {
|
|
424
428
|
label: "Delivery Charge (₹)",
|
|
425
|
-
value:
|
|
426
|
-
onChange:
|
|
429
|
+
value: D.deliveryCharge,
|
|
430
|
+
onChange: B("deliveryCharge"),
|
|
427
431
|
type: "number"
|
|
428
432
|
}),
|
|
429
|
-
/* @__PURE__ */ h(
|
|
433
|
+
/* @__PURE__ */ h(x, {
|
|
430
434
|
label: "Free Delivery Above (₹)",
|
|
431
|
-
value:
|
|
432
|
-
onChange:
|
|
435
|
+
value: D.freeDeliveryAbove,
|
|
436
|
+
onChange: B("freeDeliveryAbove"),
|
|
433
437
|
type: "number"
|
|
434
438
|
})
|
|
435
439
|
]
|
|
@@ -438,39 +442,39 @@ var _ = [
|
|
|
438
442
|
}),
|
|
439
443
|
s === "operating" && /* @__PURE__ */ g("div", {
|
|
440
444
|
className: "space-y-5",
|
|
441
|
-
children: [/* @__PURE__ */ h(
|
|
445
|
+
children: [/* @__PURE__ */ h(S, {
|
|
442
446
|
label: "Auto-Accept Orders",
|
|
443
447
|
description: "Automatically accept incoming orders without manual confirmation",
|
|
444
|
-
checked:
|
|
445
|
-
onChange: (e) =>
|
|
448
|
+
checked: k.autoAcceptOrders,
|
|
449
|
+
onChange: (e) => A((t) => ({
|
|
446
450
|
...t,
|
|
447
451
|
autoAcceptOrders: e
|
|
448
452
|
}))
|
|
449
453
|
}), /* @__PURE__ */ g("div", {
|
|
450
454
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
451
455
|
children: [
|
|
452
|
-
/* @__PURE__ */ h(
|
|
456
|
+
/* @__PURE__ */ h(x, {
|
|
453
457
|
label: "Default Preparation Time (min)",
|
|
454
|
-
value:
|
|
455
|
-
onChange: (e) =>
|
|
458
|
+
value: k.preparationTime,
|
|
459
|
+
onChange: (e) => A((t) => ({
|
|
456
460
|
...t,
|
|
457
461
|
preparationTime: parseInt(e) || 0
|
|
458
462
|
})),
|
|
459
463
|
type: "number"
|
|
460
464
|
}),
|
|
461
|
-
/* @__PURE__ */ h(
|
|
465
|
+
/* @__PURE__ */ h(x, {
|
|
462
466
|
label: "Max Concurrent Orders",
|
|
463
|
-
value:
|
|
464
|
-
onChange: (e) =>
|
|
467
|
+
value: k.maxConcurrentOrders,
|
|
468
|
+
onChange: (e) => A((t) => ({
|
|
465
469
|
...t,
|
|
466
470
|
maxConcurrentOrders: parseInt(e) || 0
|
|
467
471
|
})),
|
|
468
472
|
type: "number"
|
|
469
473
|
}),
|
|
470
|
-
/* @__PURE__ */ h(
|
|
474
|
+
/* @__PURE__ */ h(x, {
|
|
471
475
|
label: "Advance Booking (days)",
|
|
472
|
-
value:
|
|
473
|
-
onChange: (e) =>
|
|
476
|
+
value: k.advanceBookingDays,
|
|
477
|
+
onChange: (e) => A((t) => ({
|
|
474
478
|
...t,
|
|
475
479
|
advanceBookingDays: parseInt(e) || 0
|
|
476
480
|
})),
|
|
@@ -482,31 +486,31 @@ var _ = [
|
|
|
482
486
|
s === "policies" && /* @__PURE__ */ g("div", {
|
|
483
487
|
className: "space-y-5",
|
|
484
488
|
children: [
|
|
485
|
-
/* @__PURE__ */ h(
|
|
489
|
+
/* @__PURE__ */ h(x, {
|
|
486
490
|
label: "Return Policy",
|
|
487
|
-
value:
|
|
488
|
-
onChange:
|
|
491
|
+
value: j.returnPolicy,
|
|
492
|
+
onChange: V("returnPolicy"),
|
|
489
493
|
type: "textarea",
|
|
490
494
|
rows: 4
|
|
491
495
|
}),
|
|
492
|
-
/* @__PURE__ */ h(
|
|
496
|
+
/* @__PURE__ */ h(x, {
|
|
493
497
|
label: "Cancellation Policy",
|
|
494
|
-
value:
|
|
495
|
-
onChange:
|
|
498
|
+
value: j.cancellationPolicy,
|
|
499
|
+
onChange: V("cancellationPolicy"),
|
|
496
500
|
type: "textarea",
|
|
497
501
|
rows: 4
|
|
498
502
|
}),
|
|
499
|
-
/* @__PURE__ */ h(
|
|
503
|
+
/* @__PURE__ */ h(x, {
|
|
500
504
|
label: "Privacy Policy",
|
|
501
|
-
value:
|
|
502
|
-
onChange:
|
|
505
|
+
value: j.privacyPolicy,
|
|
506
|
+
onChange: V("privacyPolicy"),
|
|
503
507
|
type: "textarea",
|
|
504
508
|
rows: 4
|
|
505
509
|
}),
|
|
506
|
-
/* @__PURE__ */ h(
|
|
510
|
+
/* @__PURE__ */ h(x, {
|
|
507
511
|
label: "Terms of Service",
|
|
508
|
-
value:
|
|
509
|
-
onChange:
|
|
512
|
+
value: j.termsOfService,
|
|
513
|
+
onChange: V("termsOfService"),
|
|
510
514
|
type: "textarea",
|
|
511
515
|
rows: 4
|
|
512
516
|
})
|
|
@@ -519,73 +523,73 @@ var _ = [
|
|
|
519
523
|
className: "text-sm font-semibold text-text-primary pb-2",
|
|
520
524
|
children: "New Orders"
|
|
521
525
|
}),
|
|
522
|
-
/* @__PURE__ */ h(
|
|
526
|
+
/* @__PURE__ */ h(S, {
|
|
523
527
|
label: "Email Notification",
|
|
524
528
|
description: "Receive email for new orders",
|
|
525
|
-
checked:
|
|
526
|
-
onChange:
|
|
529
|
+
checked: N.newOrderEmail,
|
|
530
|
+
onChange: H("newOrderEmail")
|
|
527
531
|
}),
|
|
528
|
-
/* @__PURE__ */ h(
|
|
532
|
+
/* @__PURE__ */ h(S, {
|
|
529
533
|
label: "SMS Notification",
|
|
530
534
|
description: "Receive SMS for new orders",
|
|
531
|
-
checked:
|
|
532
|
-
onChange:
|
|
535
|
+
checked: N.newOrderSms,
|
|
536
|
+
onChange: H("newOrderSms")
|
|
533
537
|
}),
|
|
534
|
-
/* @__PURE__ */ h(
|
|
538
|
+
/* @__PURE__ */ h(S, {
|
|
535
539
|
label: "Push Notification",
|
|
536
540
|
description: "Receive push notifications for new orders",
|
|
537
|
-
checked:
|
|
538
|
-
onChange:
|
|
541
|
+
checked: N.newOrderPush,
|
|
542
|
+
onChange: H("newOrderPush")
|
|
539
543
|
}),
|
|
540
544
|
/* @__PURE__ */ h("h3", {
|
|
541
545
|
className: "text-sm font-semibold text-text-primary pt-4 pb-2",
|
|
542
546
|
children: "Order Updates"
|
|
543
547
|
}),
|
|
544
|
-
/* @__PURE__ */ h(
|
|
548
|
+
/* @__PURE__ */ h(S, {
|
|
545
549
|
label: "Email Updates",
|
|
546
550
|
description: "Get email when order status changes",
|
|
547
|
-
checked:
|
|
548
|
-
onChange:
|
|
551
|
+
checked: N.orderUpdateEmail,
|
|
552
|
+
onChange: H("orderUpdateEmail")
|
|
549
553
|
}),
|
|
550
|
-
/* @__PURE__ */ h(
|
|
554
|
+
/* @__PURE__ */ h(S, {
|
|
551
555
|
label: "Push Updates",
|
|
552
556
|
description: "Get push notifications for order updates",
|
|
553
|
-
checked:
|
|
554
|
-
onChange:
|
|
557
|
+
checked: N.orderUpdatePush,
|
|
558
|
+
onChange: H("orderUpdatePush")
|
|
555
559
|
}),
|
|
556
560
|
/* @__PURE__ */ h("h3", {
|
|
557
561
|
className: "text-sm font-semibold text-text-primary pt-4 pb-2",
|
|
558
562
|
children: "Reports & Alerts"
|
|
559
563
|
}),
|
|
560
|
-
/* @__PURE__ */ h(
|
|
564
|
+
/* @__PURE__ */ h(S, {
|
|
561
565
|
label: "Daily Summary",
|
|
562
566
|
description: "Receive daily business summary email",
|
|
563
|
-
checked:
|
|
564
|
-
onChange:
|
|
567
|
+
checked: N.dailySummaryEmail,
|
|
568
|
+
onChange: H("dailySummaryEmail")
|
|
565
569
|
}),
|
|
566
|
-
/* @__PURE__ */ h(
|
|
570
|
+
/* @__PURE__ */ h(S, {
|
|
567
571
|
label: "Weekly Summary",
|
|
568
572
|
description: "Receive weekly performance report",
|
|
569
|
-
checked:
|
|
570
|
-
onChange:
|
|
573
|
+
checked: N.weeklySummaryEmail,
|
|
574
|
+
onChange: H("weeklySummaryEmail")
|
|
571
575
|
}),
|
|
572
|
-
/* @__PURE__ */ h(
|
|
576
|
+
/* @__PURE__ */ h(S, {
|
|
573
577
|
label: "Low Stock Alert",
|
|
574
578
|
description: "Get alerted when items are low on stock",
|
|
575
|
-
checked:
|
|
576
|
-
onChange:
|
|
579
|
+
checked: N.lowStockAlert,
|
|
580
|
+
onChange: H("lowStockAlert")
|
|
577
581
|
}),
|
|
578
|
-
/* @__PURE__ */ h(
|
|
582
|
+
/* @__PURE__ */ h(S, {
|
|
579
583
|
label: "Review Notifications",
|
|
580
584
|
description: "Get notified for new customer reviews",
|
|
581
|
-
checked:
|
|
582
|
-
onChange:
|
|
585
|
+
checked: N.reviewNotification,
|
|
586
|
+
onChange: H("reviewNotification")
|
|
583
587
|
}),
|
|
584
|
-
/* @__PURE__ */ h(
|
|
588
|
+
/* @__PURE__ */ h(S, {
|
|
585
589
|
label: "Marketing Emails",
|
|
586
590
|
description: "Receive tips and promotional content",
|
|
587
|
-
checked:
|
|
588
|
-
onChange:
|
|
591
|
+
checked: N.marketingEmails,
|
|
592
|
+
onChange: H("marketingEmails")
|
|
589
593
|
})
|
|
590
594
|
]
|
|
591
595
|
}),
|
|
@@ -602,8 +606,8 @@ var _ = [
|
|
|
602
606
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
603
607
|
children: "Provider"
|
|
604
608
|
}), /* @__PURE__ */ g("select", {
|
|
605
|
-
value:
|
|
606
|
-
onChange: (e) =>
|
|
609
|
+
value: F.paymentGateway,
|
|
610
|
+
onChange: (e) => U("paymentGateway")(e.target.value),
|
|
607
611
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
608
612
|
children: [
|
|
609
613
|
/* @__PURE__ */ h("option", {
|
|
@@ -623,10 +627,10 @@ var _ = [
|
|
|
623
627
|
children: "PhonePe"
|
|
624
628
|
})
|
|
625
629
|
]
|
|
626
|
-
})] }), /* @__PURE__ */ h(
|
|
630
|
+
})] }), /* @__PURE__ */ h(x, {
|
|
627
631
|
label: "API Key",
|
|
628
|
-
value:
|
|
629
|
-
onChange:
|
|
632
|
+
value: F.paymentGatewayKey,
|
|
633
|
+
onChange: U("paymentGatewayKey"),
|
|
630
634
|
placeholder: "Enter API key",
|
|
631
635
|
hint: "Keep this secret"
|
|
632
636
|
})]
|
|
@@ -641,8 +645,8 @@ var _ = [
|
|
|
641
645
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
642
646
|
children: "Provider"
|
|
643
647
|
}), /* @__PURE__ */ g("select", {
|
|
644
|
-
value:
|
|
645
|
-
onChange: (e) =>
|
|
648
|
+
value: F.smsProvider,
|
|
649
|
+
onChange: (e) => U("smsProvider")(e.target.value),
|
|
646
650
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
647
651
|
children: [
|
|
648
652
|
/* @__PURE__ */ h("option", {
|
|
@@ -658,10 +662,10 @@ var _ = [
|
|
|
658
662
|
children: "Textlocal"
|
|
659
663
|
})
|
|
660
664
|
]
|
|
661
|
-
})] }), /* @__PURE__ */ h(
|
|
665
|
+
})] }), /* @__PURE__ */ h(x, {
|
|
662
666
|
label: "SMS API Key",
|
|
663
|
-
value:
|
|
664
|
-
onChange:
|
|
667
|
+
value: F.smsApiKey,
|
|
668
|
+
onChange: U("smsApiKey"),
|
|
665
669
|
placeholder: "Enter SMS API key"
|
|
666
670
|
})]
|
|
667
671
|
}),
|
|
@@ -669,10 +673,10 @@ var _ = [
|
|
|
669
673
|
className: "text-sm font-semibold text-text-primary pt-2",
|
|
670
674
|
children: "Analytics"
|
|
671
675
|
}),
|
|
672
|
-
/* @__PURE__ */ h(
|
|
676
|
+
/* @__PURE__ */ h(x, {
|
|
673
677
|
label: "Google Analytics ID",
|
|
674
|
-
value:
|
|
675
|
-
onChange:
|
|
678
|
+
value: F.analyticsId,
|
|
679
|
+
onChange: U("analyticsId"),
|
|
676
680
|
placeholder: "GA-XXXXXXXXX"
|
|
677
681
|
})
|
|
678
682
|
]
|
|
@@ -681,7 +685,7 @@ var _ = [
|
|
|
681
685
|
className: "flex justify-end mt-8 pt-6 border-t border-border-subtle",
|
|
682
686
|
children: /* @__PURE__ */ h("button", {
|
|
683
687
|
type: "button",
|
|
684
|
-
onClick:
|
|
688
|
+
onClick: L,
|
|
685
689
|
disabled: l,
|
|
686
690
|
className: t("inline-flex items-center gap-2 rounded-md px-6 py-2 text-sm font-medium transition-colors", f ? "bg-green-500/10 text-green-600 dark:text-green-400" : l ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
|
|
687
691
|
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 +695,10 @@ var _ = [
|
|
|
691
695
|
})
|
|
692
696
|
})
|
|
693
697
|
]
|
|
694
|
-
})
|
|
698
|
+
})]
|
|
695
699
|
});
|
|
696
700
|
};
|
|
697
701
|
//#endregion
|
|
698
|
-
export {
|
|
702
|
+
export { C as BusinessSettingsPage };
|
|
699
703
|
|
|
700
704
|
//# sourceMappingURL=BusinessSettingsPage.js.map
|