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