@burdenoff/microfe-adaptercloud 2026.614.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/adaptercloud/AdapterCloudRoot.js +177 -0
- package/dist/adaptercloud/AdapterCloudRoot.js.map +1 -0
- package/dist/adaptercloud/AdapterCloudRoutes.js +215 -0
- package/dist/adaptercloud/AdapterCloudRoutes.js.map +1 -0
- package/dist/adaptercloud/components/EmptyState.js +28 -0
- package/dist/adaptercloud/components/EmptyState.js.map +1 -0
- package/dist/adaptercloud/components/InvestmentCard.js +96 -0
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -0
- package/dist/adaptercloud/components/MetricsCard.js +46 -0
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -0
- package/dist/adaptercloud/components/PageLayout.js +26 -0
- package/dist/adaptercloud/components/PageLayout.js.map +1 -0
- package/dist/adaptercloud/components/RatingDisplay.js +35 -0
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -0
- package/dist/adaptercloud/components/StatusBadge.js +45 -0
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -0
- package/dist/adaptercloud/context/AdapterCloudContext.js +93 -0
- package/dist/adaptercloud/context/AdapterCloudContext.js.map +1 -0
- package/dist/adaptercloud/context/index.js +1 -0
- package/dist/adaptercloud/hooks/useAdapterCloudApi.js +223 -0
- package/dist/adaptercloud/hooks/useAdapterCloudApi.js.map +1 -0
- package/dist/adaptercloud/index.js +7 -0
- package/dist/adaptercloud/mocks/data.js +1517 -0
- package/dist/adaptercloud/mocks/data.js.map +1 -0
- package/dist/adaptercloud/mocks/users.js +34 -0
- package/dist/adaptercloud/mocks/users.js.map +1 -0
- package/dist/adaptercloud/pages/HomePage.js +921 -0
- package/dist/adaptercloud/pages/HomePage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +645 -0
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +639 -0
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +421 -0
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +660 -0
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +259 -0
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +649 -0
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +869 -0
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +893 -0
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +834 -0
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +700 -0
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +760 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +886 -0
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +631 -0
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +913 -0
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +881 -0
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +833 -0
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +1325 -0
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +665 -0
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -0
- package/dist/adaptercloud/pages/common/SettingsPage.js +964 -0
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +593 -0
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +620 -0
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +547 -0
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +532 -0
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +496 -0
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +621 -0
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +623 -0
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +477 -0
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +438 -0
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +388 -0
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +488 -0
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +606 -0
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -0
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +443 -0
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +849 -0
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +939 -0
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +681 -0
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +419 -0
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +399 -0
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +569 -0
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -0
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +1065 -0
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +496 -0
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +634 -0
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +675 -0
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +687 -0
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -0
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +578 -0
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -0
- package/dist/adaptercloud/store/adaptercloudStore.js +38 -0
- package/dist/adaptercloud/store/adaptercloudStore.js.map +1 -0
- package/dist/adaptercloud/store/index.js +1 -0
- package/dist/adaptercloud/utils/cn.js +10 -0
- package/dist/adaptercloud/utils/cn.js.map +1 -0
- package/dist/adaptercloud/utils/formatters.js +51 -0
- package/dist/adaptercloud/utils/formatters.js.map +1 -0
- package/dist/adaptercloud/utils/navigation.js +9 -0
- package/dist/adaptercloud/utils/navigation.js.map +1 -0
- package/dist/index.js +7 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
import { useAdapterCloud as e } from "../../context/AdapterCloudContext.js";
|
|
2
|
+
import { cn as t } from "../../utils/cn.js";
|
|
3
|
+
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
+
import { useState as r } from "react";
|
|
5
|
+
import { AlertCircle as i, Bell as a, CheckCircle2 as o, Clock as s, Link2 as c, MapPin as l, Phone as u, Save as d, Shield as f, Store as p } from "lucide-react";
|
|
6
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
7
|
+
//#region src/adaptercloud/pages/cart-owner/BusinessSettingsPage.tsx
|
|
8
|
+
var _ = [
|
|
9
|
+
{
|
|
10
|
+
id: "general",
|
|
11
|
+
label: "General",
|
|
12
|
+
icon: p
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: "contact",
|
|
16
|
+
label: "Contact",
|
|
17
|
+
icon: u
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "location",
|
|
21
|
+
label: "Location",
|
|
22
|
+
icon: l
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "operating",
|
|
26
|
+
label: "Operating",
|
|
27
|
+
icon: s
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "policies",
|
|
31
|
+
label: "Policies",
|
|
32
|
+
icon: f
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: "notifications",
|
|
36
|
+
label: "Notifications",
|
|
37
|
+
icon: a
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "integration",
|
|
41
|
+
label: "Integrations",
|
|
42
|
+
icon: c
|
|
43
|
+
}
|
|
44
|
+
], v = [
|
|
45
|
+
"Food & Beverage",
|
|
46
|
+
"Personal Care & Beauty",
|
|
47
|
+
"Repair & Maintenance",
|
|
48
|
+
"Home Services",
|
|
49
|
+
"Clothing & Fashion",
|
|
50
|
+
"Health & Wellness",
|
|
51
|
+
"Education & Skills",
|
|
52
|
+
"Retail & Merchandise",
|
|
53
|
+
"Grocery & Essentials"
|
|
54
|
+
], y = ({ label: e, value: t, onChange: n, type: r = "text", options: i, placeholder: a, hint: o, rows: s = 3 }) => {
|
|
55
|
+
let c = e.toLowerCase().replace(/\s+/g, "-");
|
|
56
|
+
return /* @__PURE__ */ g("div", { children: [
|
|
57
|
+
/* @__PURE__ */ h("label", {
|
|
58
|
+
htmlFor: c,
|
|
59
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
60
|
+
children: e
|
|
61
|
+
}),
|
|
62
|
+
r === "textarea" ? /* @__PURE__ */ h("textarea", {
|
|
63
|
+
id: c,
|
|
64
|
+
value: t,
|
|
65
|
+
onChange: (e) => n(e.target.value),
|
|
66
|
+
rows: s,
|
|
67
|
+
placeholder: a,
|
|
68
|
+
className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring resize-none"
|
|
69
|
+
}) : r === "select" ? /* @__PURE__ */ h("select", {
|
|
70
|
+
id: c,
|
|
71
|
+
value: t,
|
|
72
|
+
onChange: (e) => n(e.target.value),
|
|
73
|
+
className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring",
|
|
74
|
+
children: i?.map((e) => /* @__PURE__ */ h("option", {
|
|
75
|
+
value: e,
|
|
76
|
+
children: e
|
|
77
|
+
}, e))
|
|
78
|
+
}) : /* @__PURE__ */ h("input", {
|
|
79
|
+
id: c,
|
|
80
|
+
type: r,
|
|
81
|
+
value: t,
|
|
82
|
+
onChange: (e) => n(e.target.value),
|
|
83
|
+
placeholder: a,
|
|
84
|
+
className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
|
|
85
|
+
}),
|
|
86
|
+
o && /* @__PURE__ */ h("p", {
|
|
87
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
88
|
+
children: o
|
|
89
|
+
})
|
|
90
|
+
] });
|
|
91
|
+
}, b = ({ label: e, description: n, checked: r, onChange: i }) => /* @__PURE__ */ g("div", {
|
|
92
|
+
className: "flex items-center justify-between py-3",
|
|
93
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
94
|
+
className: "text-sm font-medium text-foreground",
|
|
95
|
+
children: e
|
|
96
|
+
}), n && /* @__PURE__ */ h("p", {
|
|
97
|
+
className: "text-xs text-muted-foreground mt-0.5",
|
|
98
|
+
children: n
|
|
99
|
+
})] }), /* @__PURE__ */ h("button", {
|
|
100
|
+
type: "button",
|
|
101
|
+
onClick: () => i(!r),
|
|
102
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", r ? "bg-blue-500" : "bg-muted-foreground/30"),
|
|
103
|
+
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
|
+
}), x = () => {
|
|
106
|
+
let { navigateTo: a } = e(), [s, c] = r("general"), [l, u] = r(!1), [f, p] = r(!1), [x, S] = r({
|
|
107
|
+
businessName: "Dosa Express",
|
|
108
|
+
description: "Authentic South Indian street food with a modern twist. Serving crispy dosas, filter coffee, and more since 2020.",
|
|
109
|
+
category: "Food & Beverage",
|
|
110
|
+
gstNumber: "29ABCDE1234F1Z5",
|
|
111
|
+
panNumber: "ABCDE1234F",
|
|
112
|
+
fssaiLicense: "12345678",
|
|
113
|
+
establishedYear: "2020"
|
|
114
|
+
}), [C, w] = r({
|
|
115
|
+
phone: "+91-9876543210",
|
|
116
|
+
email: "ravi@dosaexpress.in",
|
|
117
|
+
website: "https://dosaexpress.in",
|
|
118
|
+
whatsapp: "+91-9876543210",
|
|
119
|
+
instagram: "@dosaexpress",
|
|
120
|
+
twitter: "@dosaexpress",
|
|
121
|
+
facebook: "dosaexpress"
|
|
122
|
+
}), [T, E] = r({
|
|
123
|
+
address: "Koramangala 5th Block",
|
|
124
|
+
city: "Bangalore",
|
|
125
|
+
state: "Karnataka",
|
|
126
|
+
pincode: "560034",
|
|
127
|
+
latitude: "12.9352",
|
|
128
|
+
longitude: "77.6245",
|
|
129
|
+
deliveryRadius: 5,
|
|
130
|
+
deliveryCharge: 30,
|
|
131
|
+
freeDeliveryAbove: 300
|
|
132
|
+
}), [D, O] = r({
|
|
133
|
+
autoAcceptOrders: !0,
|
|
134
|
+
preparationTime: 15,
|
|
135
|
+
maxConcurrentOrders: 10,
|
|
136
|
+
advanceBookingDays: 3
|
|
137
|
+
}), [k, A] = r({
|
|
138
|
+
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
|
+
cancellationPolicy: "Orders can be cancelled within 2 minutes of placing. After preparation starts, cancellation is not allowed.",
|
|
140
|
+
privacyPolicy: "We collect and process your data in accordance with applicable privacy laws. Your data is never shared with third parties without consent.",
|
|
141
|
+
termsOfService: "By using our services, you agree to our terms. All prices are inclusive of taxes unless stated otherwise."
|
|
142
|
+
}), [j, M] = r({
|
|
143
|
+
newOrderEmail: !0,
|
|
144
|
+
newOrderSms: !0,
|
|
145
|
+
newOrderPush: !0,
|
|
146
|
+
orderUpdateEmail: !0,
|
|
147
|
+
orderUpdatePush: !0,
|
|
148
|
+
dailySummaryEmail: !0,
|
|
149
|
+
weeklySummaryEmail: !1,
|
|
150
|
+
lowStockAlert: !0,
|
|
151
|
+
reviewNotification: !0,
|
|
152
|
+
marketingEmails: !1
|
|
153
|
+
}), [N, P] = r({
|
|
154
|
+
paymentGateway: "razorpay",
|
|
155
|
+
paymentGatewayKey: "rzp_live_xxxxxxxx",
|
|
156
|
+
smsProvider: "twilio",
|
|
157
|
+
smsApiKey: "",
|
|
158
|
+
analyticsId: ""
|
|
159
|
+
}), F = () => {
|
|
160
|
+
u(!0), setTimeout(() => {
|
|
161
|
+
u(!1), p(!0), setTimeout(() => p(!1), 3e3);
|
|
162
|
+
}, 1e3);
|
|
163
|
+
}, I = (e) => (t) => S((n) => ({
|
|
164
|
+
...n,
|
|
165
|
+
[e]: t
|
|
166
|
+
})), L = (e) => (t) => w((n) => ({
|
|
167
|
+
...n,
|
|
168
|
+
[e]: t
|
|
169
|
+
})), R = (e) => (t) => E((n) => ({
|
|
170
|
+
...n,
|
|
171
|
+
[e]: e === "deliveryRadius" || e === "deliveryCharge" || e === "freeDeliveryAbove" ? parseInt(t) || 0 : t
|
|
172
|
+
})), z = (e) => (t) => A((n) => ({
|
|
173
|
+
...n,
|
|
174
|
+
[e]: t
|
|
175
|
+
})), B = (e) => (t) => M((n) => ({
|
|
176
|
+
...n,
|
|
177
|
+
[e]: t
|
|
178
|
+
})), V = (e) => (t) => P((n) => ({
|
|
179
|
+
...n,
|
|
180
|
+
[e]: t
|
|
181
|
+
}));
|
|
182
|
+
return _.find((e) => e.id === s)?.icon, /* @__PURE__ */ h(n, {
|
|
183
|
+
title: "Business Settings",
|
|
184
|
+
description: "Manage your business profile and configuration",
|
|
185
|
+
actions: /* @__PURE__ */ h("button", {
|
|
186
|
+
type: "button",
|
|
187
|
+
onClick: F,
|
|
188
|
+
disabled: l,
|
|
189
|
+
className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", f ? "bg-green-500/10 text-green-600 dark:text-green-400" : l ? "bg-muted text-muted-foreground cursor-not-allowed" : "bg-accent text-foreground hover:bg-accent/80"),
|
|
190
|
+
children: l ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : f ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(o, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(d, { className: "h-4 w-4" }), "Save Settings"] })
|
|
191
|
+
}),
|
|
192
|
+
children: /* @__PURE__ */ g("div", {
|
|
193
|
+
className: "flex flex-col lg:flex-row gap-6",
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ h("div", {
|
|
196
|
+
className: "lg:hidden",
|
|
197
|
+
children: /* @__PURE__ */ h("div", {
|
|
198
|
+
className: "rounded-lg border border-border bg-card p-3 shadow-sm",
|
|
199
|
+
children: /* @__PURE__ */ h("div", {
|
|
200
|
+
className: "grid grid-cols-4 gap-2",
|
|
201
|
+
children: _.map((e) => {
|
|
202
|
+
let n = e.icon;
|
|
203
|
+
return /* @__PURE__ */ g("button", {
|
|
204
|
+
type: "button",
|
|
205
|
+
onClick: () => c(e.id),
|
|
206
|
+
className: t("flex flex-col items-center gap-1 rounded-md px-2 py-2 text-xs font-medium transition-colors", s === e.id ? "bg-accent text-foreground" : "text-muted-foreground hover:bg-muted"),
|
|
207
|
+
children: [/* @__PURE__ */ h(n, { className: "h-4 w-4" }), /* @__PURE__ */ h("span", {
|
|
208
|
+
className: "hidden sm:inline",
|
|
209
|
+
children: e.label
|
|
210
|
+
})]
|
|
211
|
+
}, e.id);
|
|
212
|
+
})
|
|
213
|
+
})
|
|
214
|
+
})
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ h("div", {
|
|
217
|
+
className: "hidden lg:block lg:w-56 shrink-0",
|
|
218
|
+
children: /* @__PURE__ */ g("div", {
|
|
219
|
+
className: "rounded-lg border border-border bg-card shadow-sm sticky top-24",
|
|
220
|
+
children: [/* @__PURE__ */ h("div", {
|
|
221
|
+
className: "p-4 border-b border-border",
|
|
222
|
+
children: /* @__PURE__ */ h("h2", {
|
|
223
|
+
className: "font-semibold text-foreground text-sm",
|
|
224
|
+
children: "Settings"
|
|
225
|
+
})
|
|
226
|
+
}), /* @__PURE__ */ h("nav", {
|
|
227
|
+
className: "p-2",
|
|
228
|
+
children: _.map((e) => {
|
|
229
|
+
let n = e.icon;
|
|
230
|
+
return /* @__PURE__ */ g("button", {
|
|
231
|
+
type: "button",
|
|
232
|
+
onClick: () => c(e.id),
|
|
233
|
+
className: t("w-full text-left px-3 py-2 rounded-md mb-1 flex items-center gap-3 text-sm transition-colors", s === e.id ? "bg-accent text-foreground font-medium" : "text-muted-foreground hover:bg-muted hover:text-foreground"),
|
|
234
|
+
children: [/* @__PURE__ */ h(n, { className: "h-4 w-4" }), e.label]
|
|
235
|
+
}, e.id);
|
|
236
|
+
})
|
|
237
|
+
})]
|
|
238
|
+
})
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ h("div", {
|
|
241
|
+
className: "flex-1 min-w-0",
|
|
242
|
+
children: /* @__PURE__ */ g("div", {
|
|
243
|
+
className: "rounded-lg border border-border bg-card p-5 sm:p-6 shadow-sm",
|
|
244
|
+
children: [
|
|
245
|
+
s === "general" && /* @__PURE__ */ g("div", {
|
|
246
|
+
className: "space-y-5",
|
|
247
|
+
children: [
|
|
248
|
+
/* @__PURE__ */ h(y, {
|
|
249
|
+
label: "Business Name",
|
|
250
|
+
value: x.businessName,
|
|
251
|
+
onChange: I("businessName")
|
|
252
|
+
}),
|
|
253
|
+
/* @__PURE__ */ h(y, {
|
|
254
|
+
label: "Description",
|
|
255
|
+
value: x.description,
|
|
256
|
+
onChange: I("description"),
|
|
257
|
+
type: "textarea"
|
|
258
|
+
}),
|
|
259
|
+
/* @__PURE__ */ g("div", {
|
|
260
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
261
|
+
children: [/* @__PURE__ */ h(y, {
|
|
262
|
+
label: "Category",
|
|
263
|
+
value: x.category,
|
|
264
|
+
onChange: I("category"),
|
|
265
|
+
type: "select",
|
|
266
|
+
options: v
|
|
267
|
+
}), /* @__PURE__ */ h(y, {
|
|
268
|
+
label: "Established Year",
|
|
269
|
+
value: x.establishedYear,
|
|
270
|
+
onChange: I("establishedYear")
|
|
271
|
+
})]
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ g("div", {
|
|
274
|
+
className: "flex items-start gap-3 rounded-md bg-blue-500/5 border border-blue-500/20 p-3",
|
|
275
|
+
children: [/* @__PURE__ */ h(i, { className: "h-4 w-4 text-blue-600 dark:text-blue-400 shrink-0 mt-0.5" }), /* @__PURE__ */ h("p", {
|
|
276
|
+
className: "text-xs text-blue-600 dark:text-blue-400",
|
|
277
|
+
children: "GST, PAN, and FSSAI details are used for invoicing and compliance. Changes require verification."
|
|
278
|
+
})]
|
|
279
|
+
}),
|
|
280
|
+
/* @__PURE__ */ g("div", {
|
|
281
|
+
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
282
|
+
children: [
|
|
283
|
+
/* @__PURE__ */ h(y, {
|
|
284
|
+
label: "GST Number",
|
|
285
|
+
value: x.gstNumber,
|
|
286
|
+
onChange: I("gstNumber"),
|
|
287
|
+
hint: "15-digit GST ID"
|
|
288
|
+
}),
|
|
289
|
+
/* @__PURE__ */ h(y, {
|
|
290
|
+
label: "PAN Number",
|
|
291
|
+
value: x.panNumber,
|
|
292
|
+
onChange: I("panNumber"),
|
|
293
|
+
hint: "10-digit PAN"
|
|
294
|
+
}),
|
|
295
|
+
/* @__PURE__ */ h(y, {
|
|
296
|
+
label: "FSSAI License",
|
|
297
|
+
value: x.fssaiLicense,
|
|
298
|
+
onChange: I("fssaiLicense"),
|
|
299
|
+
hint: "FSSAI license number"
|
|
300
|
+
})
|
|
301
|
+
]
|
|
302
|
+
})
|
|
303
|
+
]
|
|
304
|
+
}),
|
|
305
|
+
s === "contact" && /* @__PURE__ */ g("div", {
|
|
306
|
+
className: "space-y-5",
|
|
307
|
+
children: [
|
|
308
|
+
/* @__PURE__ */ g("div", {
|
|
309
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
310
|
+
children: [/* @__PURE__ */ h(y, {
|
|
311
|
+
label: "Phone",
|
|
312
|
+
value: C.phone,
|
|
313
|
+
onChange: L("phone"),
|
|
314
|
+
type: "tel"
|
|
315
|
+
}), /* @__PURE__ */ h(y, {
|
|
316
|
+
label: "Email",
|
|
317
|
+
value: C.email,
|
|
318
|
+
onChange: L("email"),
|
|
319
|
+
type: "email"
|
|
320
|
+
})]
|
|
321
|
+
}),
|
|
322
|
+
/* @__PURE__ */ g("div", {
|
|
323
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
324
|
+
children: [/* @__PURE__ */ h(y, {
|
|
325
|
+
label: "Website",
|
|
326
|
+
value: C.website,
|
|
327
|
+
onChange: L("website"),
|
|
328
|
+
type: "url",
|
|
329
|
+
placeholder: "https://"
|
|
330
|
+
}), /* @__PURE__ */ h(y, {
|
|
331
|
+
label: "WhatsApp",
|
|
332
|
+
value: C.whatsapp,
|
|
333
|
+
onChange: L("whatsapp"),
|
|
334
|
+
type: "tel"
|
|
335
|
+
})]
|
|
336
|
+
}),
|
|
337
|
+
/* @__PURE__ */ h("h3", {
|
|
338
|
+
className: "text-sm font-semibold text-foreground pt-2",
|
|
339
|
+
children: "Social Media"
|
|
340
|
+
}),
|
|
341
|
+
/* @__PURE__ */ g("div", {
|
|
342
|
+
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
343
|
+
children: [
|
|
344
|
+
/* @__PURE__ */ h(y, {
|
|
345
|
+
label: "Instagram",
|
|
346
|
+
value: C.instagram,
|
|
347
|
+
onChange: L("instagram"),
|
|
348
|
+
placeholder: "@handle"
|
|
349
|
+
}),
|
|
350
|
+
/* @__PURE__ */ h(y, {
|
|
351
|
+
label: "Twitter / X",
|
|
352
|
+
value: C.twitter,
|
|
353
|
+
onChange: L("twitter"),
|
|
354
|
+
placeholder: "@handle"
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ h(y, {
|
|
357
|
+
label: "Facebook",
|
|
358
|
+
value: C.facebook,
|
|
359
|
+
onChange: L("facebook"),
|
|
360
|
+
placeholder: "Page name"
|
|
361
|
+
})
|
|
362
|
+
]
|
|
363
|
+
})
|
|
364
|
+
]
|
|
365
|
+
}),
|
|
366
|
+
s === "location" && /* @__PURE__ */ g("div", {
|
|
367
|
+
className: "space-y-5",
|
|
368
|
+
children: [
|
|
369
|
+
/* @__PURE__ */ h(y, {
|
|
370
|
+
label: "Address",
|
|
371
|
+
value: T.address,
|
|
372
|
+
onChange: R("address"),
|
|
373
|
+
type: "textarea",
|
|
374
|
+
rows: 2
|
|
375
|
+
}),
|
|
376
|
+
/* @__PURE__ */ g("div", {
|
|
377
|
+
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
378
|
+
children: [
|
|
379
|
+
/* @__PURE__ */ h(y, {
|
|
380
|
+
label: "City",
|
|
381
|
+
value: T.city,
|
|
382
|
+
onChange: R("city")
|
|
383
|
+
}),
|
|
384
|
+
/* @__PURE__ */ h(y, {
|
|
385
|
+
label: "State",
|
|
386
|
+
value: T.state,
|
|
387
|
+
onChange: R("state")
|
|
388
|
+
}),
|
|
389
|
+
/* @__PURE__ */ h(y, {
|
|
390
|
+
label: "Pincode",
|
|
391
|
+
value: T.pincode,
|
|
392
|
+
onChange: R("pincode")
|
|
393
|
+
})
|
|
394
|
+
]
|
|
395
|
+
}),
|
|
396
|
+
/* @__PURE__ */ g("div", {
|
|
397
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
398
|
+
children: [/* @__PURE__ */ h(y, {
|
|
399
|
+
label: "Latitude",
|
|
400
|
+
value: T.latitude,
|
|
401
|
+
onChange: R("latitude"),
|
|
402
|
+
hint: "e.g., 12.9352"
|
|
403
|
+
}), /* @__PURE__ */ h(y, {
|
|
404
|
+
label: "Longitude",
|
|
405
|
+
value: T.longitude,
|
|
406
|
+
onChange: R("longitude"),
|
|
407
|
+
hint: "e.g., 77.6245"
|
|
408
|
+
})]
|
|
409
|
+
}),
|
|
410
|
+
/* @__PURE__ */ h("h3", {
|
|
411
|
+
className: "text-sm font-semibold text-foreground pt-2",
|
|
412
|
+
children: "Delivery Settings"
|
|
413
|
+
}),
|
|
414
|
+
/* @__PURE__ */ g("div", {
|
|
415
|
+
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
416
|
+
children: [
|
|
417
|
+
/* @__PURE__ */ h(y, {
|
|
418
|
+
label: "Delivery Radius (km)",
|
|
419
|
+
value: T.deliveryRadius,
|
|
420
|
+
onChange: R("deliveryRadius"),
|
|
421
|
+
type: "number"
|
|
422
|
+
}),
|
|
423
|
+
/* @__PURE__ */ h(y, {
|
|
424
|
+
label: "Delivery Charge (₹)",
|
|
425
|
+
value: T.deliveryCharge,
|
|
426
|
+
onChange: R("deliveryCharge"),
|
|
427
|
+
type: "number"
|
|
428
|
+
}),
|
|
429
|
+
/* @__PURE__ */ h(y, {
|
|
430
|
+
label: "Free Delivery Above (₹)",
|
|
431
|
+
value: T.freeDeliveryAbove,
|
|
432
|
+
onChange: R("freeDeliveryAbove"),
|
|
433
|
+
type: "number"
|
|
434
|
+
})
|
|
435
|
+
]
|
|
436
|
+
})
|
|
437
|
+
]
|
|
438
|
+
}),
|
|
439
|
+
s === "operating" && /* @__PURE__ */ g("div", {
|
|
440
|
+
className: "space-y-5",
|
|
441
|
+
children: [/* @__PURE__ */ h(b, {
|
|
442
|
+
label: "Auto-Accept Orders",
|
|
443
|
+
description: "Automatically accept incoming orders without manual confirmation",
|
|
444
|
+
checked: D.autoAcceptOrders,
|
|
445
|
+
onChange: (e) => O((t) => ({
|
|
446
|
+
...t,
|
|
447
|
+
autoAcceptOrders: e
|
|
448
|
+
}))
|
|
449
|
+
}), /* @__PURE__ */ g("div", {
|
|
450
|
+
className: "grid grid-cols-1 sm:grid-cols-3 gap-5",
|
|
451
|
+
children: [
|
|
452
|
+
/* @__PURE__ */ h(y, {
|
|
453
|
+
label: "Default Preparation Time (min)",
|
|
454
|
+
value: D.preparationTime,
|
|
455
|
+
onChange: (e) => O((t) => ({
|
|
456
|
+
...t,
|
|
457
|
+
preparationTime: parseInt(e) || 0
|
|
458
|
+
})),
|
|
459
|
+
type: "number"
|
|
460
|
+
}),
|
|
461
|
+
/* @__PURE__ */ h(y, {
|
|
462
|
+
label: "Max Concurrent Orders",
|
|
463
|
+
value: D.maxConcurrentOrders,
|
|
464
|
+
onChange: (e) => O((t) => ({
|
|
465
|
+
...t,
|
|
466
|
+
maxConcurrentOrders: parseInt(e) || 0
|
|
467
|
+
})),
|
|
468
|
+
type: "number"
|
|
469
|
+
}),
|
|
470
|
+
/* @__PURE__ */ h(y, {
|
|
471
|
+
label: "Advance Booking (days)",
|
|
472
|
+
value: D.advanceBookingDays,
|
|
473
|
+
onChange: (e) => O((t) => ({
|
|
474
|
+
...t,
|
|
475
|
+
advanceBookingDays: parseInt(e) || 0
|
|
476
|
+
})),
|
|
477
|
+
type: "number"
|
|
478
|
+
})
|
|
479
|
+
]
|
|
480
|
+
})]
|
|
481
|
+
}),
|
|
482
|
+
s === "policies" && /* @__PURE__ */ g("div", {
|
|
483
|
+
className: "space-y-5",
|
|
484
|
+
children: [
|
|
485
|
+
/* @__PURE__ */ h(y, {
|
|
486
|
+
label: "Return Policy",
|
|
487
|
+
value: k.returnPolicy,
|
|
488
|
+
onChange: z("returnPolicy"),
|
|
489
|
+
type: "textarea",
|
|
490
|
+
rows: 4
|
|
491
|
+
}),
|
|
492
|
+
/* @__PURE__ */ h(y, {
|
|
493
|
+
label: "Cancellation Policy",
|
|
494
|
+
value: k.cancellationPolicy,
|
|
495
|
+
onChange: z("cancellationPolicy"),
|
|
496
|
+
type: "textarea",
|
|
497
|
+
rows: 4
|
|
498
|
+
}),
|
|
499
|
+
/* @__PURE__ */ h(y, {
|
|
500
|
+
label: "Privacy Policy",
|
|
501
|
+
value: k.privacyPolicy,
|
|
502
|
+
onChange: z("privacyPolicy"),
|
|
503
|
+
type: "textarea",
|
|
504
|
+
rows: 4
|
|
505
|
+
}),
|
|
506
|
+
/* @__PURE__ */ h(y, {
|
|
507
|
+
label: "Terms of Service",
|
|
508
|
+
value: k.termsOfService,
|
|
509
|
+
onChange: z("termsOfService"),
|
|
510
|
+
type: "textarea",
|
|
511
|
+
rows: 4
|
|
512
|
+
})
|
|
513
|
+
]
|
|
514
|
+
}),
|
|
515
|
+
s === "notifications" && /* @__PURE__ */ g("div", {
|
|
516
|
+
className: "space-y-1 divide-y divide-border",
|
|
517
|
+
children: [
|
|
518
|
+
/* @__PURE__ */ h("h3", {
|
|
519
|
+
className: "text-sm font-semibold text-foreground pb-2",
|
|
520
|
+
children: "New Orders"
|
|
521
|
+
}),
|
|
522
|
+
/* @__PURE__ */ h(b, {
|
|
523
|
+
label: "Email Notification",
|
|
524
|
+
description: "Receive email for new orders",
|
|
525
|
+
checked: j.newOrderEmail,
|
|
526
|
+
onChange: B("newOrderEmail")
|
|
527
|
+
}),
|
|
528
|
+
/* @__PURE__ */ h(b, {
|
|
529
|
+
label: "SMS Notification",
|
|
530
|
+
description: "Receive SMS for new orders",
|
|
531
|
+
checked: j.newOrderSms,
|
|
532
|
+
onChange: B("newOrderSms")
|
|
533
|
+
}),
|
|
534
|
+
/* @__PURE__ */ h(b, {
|
|
535
|
+
label: "Push Notification",
|
|
536
|
+
description: "Receive push notifications for new orders",
|
|
537
|
+
checked: j.newOrderPush,
|
|
538
|
+
onChange: B("newOrderPush")
|
|
539
|
+
}),
|
|
540
|
+
/* @__PURE__ */ h("h3", {
|
|
541
|
+
className: "text-sm font-semibold text-foreground pt-4 pb-2",
|
|
542
|
+
children: "Order Updates"
|
|
543
|
+
}),
|
|
544
|
+
/* @__PURE__ */ h(b, {
|
|
545
|
+
label: "Email Updates",
|
|
546
|
+
description: "Get email when order status changes",
|
|
547
|
+
checked: j.orderUpdateEmail,
|
|
548
|
+
onChange: B("orderUpdateEmail")
|
|
549
|
+
}),
|
|
550
|
+
/* @__PURE__ */ h(b, {
|
|
551
|
+
label: "Push Updates",
|
|
552
|
+
description: "Get push notifications for order updates",
|
|
553
|
+
checked: j.orderUpdatePush,
|
|
554
|
+
onChange: B("orderUpdatePush")
|
|
555
|
+
}),
|
|
556
|
+
/* @__PURE__ */ h("h3", {
|
|
557
|
+
className: "text-sm font-semibold text-foreground pt-4 pb-2",
|
|
558
|
+
children: "Reports & Alerts"
|
|
559
|
+
}),
|
|
560
|
+
/* @__PURE__ */ h(b, {
|
|
561
|
+
label: "Daily Summary",
|
|
562
|
+
description: "Receive daily business summary email",
|
|
563
|
+
checked: j.dailySummaryEmail,
|
|
564
|
+
onChange: B("dailySummaryEmail")
|
|
565
|
+
}),
|
|
566
|
+
/* @__PURE__ */ h(b, {
|
|
567
|
+
label: "Weekly Summary",
|
|
568
|
+
description: "Receive weekly performance report",
|
|
569
|
+
checked: j.weeklySummaryEmail,
|
|
570
|
+
onChange: B("weeklySummaryEmail")
|
|
571
|
+
}),
|
|
572
|
+
/* @__PURE__ */ h(b, {
|
|
573
|
+
label: "Low Stock Alert",
|
|
574
|
+
description: "Get alerted when items are low on stock",
|
|
575
|
+
checked: j.lowStockAlert,
|
|
576
|
+
onChange: B("lowStockAlert")
|
|
577
|
+
}),
|
|
578
|
+
/* @__PURE__ */ h(b, {
|
|
579
|
+
label: "Review Notifications",
|
|
580
|
+
description: "Get notified for new customer reviews",
|
|
581
|
+
checked: j.reviewNotification,
|
|
582
|
+
onChange: B("reviewNotification")
|
|
583
|
+
}),
|
|
584
|
+
/* @__PURE__ */ h(b, {
|
|
585
|
+
label: "Marketing Emails",
|
|
586
|
+
description: "Receive tips and promotional content",
|
|
587
|
+
checked: j.marketingEmails,
|
|
588
|
+
onChange: B("marketingEmails")
|
|
589
|
+
})
|
|
590
|
+
]
|
|
591
|
+
}),
|
|
592
|
+
s === "integration" && /* @__PURE__ */ g("div", {
|
|
593
|
+
className: "space-y-5",
|
|
594
|
+
children: [
|
|
595
|
+
/* @__PURE__ */ h("h3", {
|
|
596
|
+
className: "text-sm font-semibold text-foreground",
|
|
597
|
+
children: "Payment Gateway"
|
|
598
|
+
}),
|
|
599
|
+
/* @__PURE__ */ g("div", {
|
|
600
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
601
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
602
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
603
|
+
children: "Provider"
|
|
604
|
+
}), /* @__PURE__ */ g("select", {
|
|
605
|
+
value: N.paymentGateway,
|
|
606
|
+
onChange: (e) => V("paymentGateway")(e.target.value),
|
|
607
|
+
className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground",
|
|
608
|
+
children: [
|
|
609
|
+
/* @__PURE__ */ h("option", {
|
|
610
|
+
value: "razorpay",
|
|
611
|
+
children: "Razorpay"
|
|
612
|
+
}),
|
|
613
|
+
/* @__PURE__ */ h("option", {
|
|
614
|
+
value: "paytm",
|
|
615
|
+
children: "Paytm"
|
|
616
|
+
}),
|
|
617
|
+
/* @__PURE__ */ h("option", {
|
|
618
|
+
value: "stripe",
|
|
619
|
+
children: "Stripe"
|
|
620
|
+
}),
|
|
621
|
+
/* @__PURE__ */ h("option", {
|
|
622
|
+
value: "phonepe",
|
|
623
|
+
children: "PhonePe"
|
|
624
|
+
})
|
|
625
|
+
]
|
|
626
|
+
})] }), /* @__PURE__ */ h(y, {
|
|
627
|
+
label: "API Key",
|
|
628
|
+
value: N.paymentGatewayKey,
|
|
629
|
+
onChange: V("paymentGatewayKey"),
|
|
630
|
+
placeholder: "Enter API key",
|
|
631
|
+
hint: "Keep this secret"
|
|
632
|
+
})]
|
|
633
|
+
}),
|
|
634
|
+
/* @__PURE__ */ h("h3", {
|
|
635
|
+
className: "text-sm font-semibold text-foreground pt-2",
|
|
636
|
+
children: "SMS Provider"
|
|
637
|
+
}),
|
|
638
|
+
/* @__PURE__ */ g("div", {
|
|
639
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
|
|
640
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
641
|
+
className: "block text-sm font-medium text-foreground mb-1.5",
|
|
642
|
+
children: "Provider"
|
|
643
|
+
}), /* @__PURE__ */ g("select", {
|
|
644
|
+
value: N.smsProvider,
|
|
645
|
+
onChange: (e) => V("smsProvider")(e.target.value),
|
|
646
|
+
className: "w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-foreground",
|
|
647
|
+
children: [
|
|
648
|
+
/* @__PURE__ */ h("option", {
|
|
649
|
+
value: "twilio",
|
|
650
|
+
children: "Twilio"
|
|
651
|
+
}),
|
|
652
|
+
/* @__PURE__ */ h("option", {
|
|
653
|
+
value: "msg91",
|
|
654
|
+
children: "MSG91"
|
|
655
|
+
}),
|
|
656
|
+
/* @__PURE__ */ h("option", {
|
|
657
|
+
value: "textlocal",
|
|
658
|
+
children: "Textlocal"
|
|
659
|
+
})
|
|
660
|
+
]
|
|
661
|
+
})] }), /* @__PURE__ */ h(y, {
|
|
662
|
+
label: "SMS API Key",
|
|
663
|
+
value: N.smsApiKey,
|
|
664
|
+
onChange: V("smsApiKey"),
|
|
665
|
+
placeholder: "Enter SMS API key"
|
|
666
|
+
})]
|
|
667
|
+
}),
|
|
668
|
+
/* @__PURE__ */ h("h3", {
|
|
669
|
+
className: "text-sm font-semibold text-foreground pt-2",
|
|
670
|
+
children: "Analytics"
|
|
671
|
+
}),
|
|
672
|
+
/* @__PURE__ */ h(y, {
|
|
673
|
+
label: "Google Analytics ID",
|
|
674
|
+
value: N.analyticsId,
|
|
675
|
+
onChange: V("analyticsId"),
|
|
676
|
+
placeholder: "GA-XXXXXXXXX"
|
|
677
|
+
})
|
|
678
|
+
]
|
|
679
|
+
}),
|
|
680
|
+
/* @__PURE__ */ h("div", {
|
|
681
|
+
className: "flex justify-end mt-8 pt-6 border-t border-border",
|
|
682
|
+
children: /* @__PURE__ */ h("button", {
|
|
683
|
+
type: "button",
|
|
684
|
+
onClick: F,
|
|
685
|
+
disabled: l,
|
|
686
|
+
className: t("inline-flex items-center gap-2 rounded-md px-6 py-2 text-sm font-medium transition-colors", f ? "bg-green-500/10 text-green-600 dark:text-green-400" : l ? "bg-muted text-muted-foreground cursor-not-allowed" : "bg-accent text-foreground hover:bg-accent/80"),
|
|
687
|
+
children: l ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : f ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(o, { className: "h-4 w-4" }), "Saved!"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(d, { className: "h-4 w-4" }), "Save Settings"] })
|
|
688
|
+
})
|
|
689
|
+
})
|
|
690
|
+
]
|
|
691
|
+
})
|
|
692
|
+
})
|
|
693
|
+
]
|
|
694
|
+
})
|
|
695
|
+
});
|
|
696
|
+
};
|
|
697
|
+
//#endregion
|
|
698
|
+
export { x as BusinessSettingsPage };
|
|
699
|
+
|
|
700
|
+
//# sourceMappingURL=BusinessSettingsPage.js.map
|