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