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