@burdenoff/microfe-adaptercloud 2026.614.1 → 2026.625.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/dist/adaptercloud/components/EmptyState.js +17 -21
- package/dist/adaptercloud/components/EmptyState.js.map +1 -1
- package/dist/adaptercloud/components/InvestmentCard.js +30 -28
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -1
- package/dist/adaptercloud/components/MetricsCard.js +21 -15
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -1
- package/dist/adaptercloud/components/PageLayout.js +38 -19
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/components/RatingDisplay.js +3 -3
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -1
- package/dist/adaptercloud/components/StatusBadge.js +36 -16
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +286 -275
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +87 -87
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +101 -101
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +48 -48
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +95 -95
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +34 -34
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +40 -40
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +107 -107
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +98 -98
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +117 -117
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +33 -33
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +112 -109
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +115 -115
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +85 -85
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +106 -106
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +88 -88
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +94 -94
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +142 -142
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +67 -66
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/SettingsPage.js +115 -115
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +74 -73
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +87 -86
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +66 -65
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +80 -80
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +88 -88
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +84 -84
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +92 -91
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +34 -33
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +44 -43
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +61 -60
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +58 -57
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +48 -47
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +46 -45
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +128 -128
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +88 -87
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +88 -88
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +62 -62
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +39 -38
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +66 -66
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +153 -153
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +81 -80
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +106 -106
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +73 -72
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +107 -107
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +71 -69
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/dist/adaptercloud/utils/cn.js +2 -2
- package/dist/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/package.json +3 -3
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -69,20 +69,20 @@ function A() {
|
|
|
69
69
|
/* @__PURE__ */ O("button", {
|
|
70
70
|
type: "button",
|
|
71
71
|
onClick: () => j("/customer/carts"),
|
|
72
|
-
className: "rounded-md p-1 text-
|
|
72
|
+
className: "rounded-md p-1 text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
|
|
73
73
|
children: /* @__PURE__ */ O(f, { className: "h-5 w-5" })
|
|
74
74
|
}),
|
|
75
75
|
/* @__PURE__ */ O("span", {
|
|
76
76
|
className: "truncate",
|
|
77
77
|
children: F.name
|
|
78
78
|
}),
|
|
79
|
-
F.isVerified && /* @__PURE__ */ O(m, { className: "h-5 w-5 text-blue
|
|
79
|
+
F.isVerified && /* @__PURE__ */ O(m, { className: "h-5 w-5 text-accent-blue shrink-0" })
|
|
80
80
|
]
|
|
81
81
|
}),
|
|
82
82
|
description: F.category,
|
|
83
83
|
children: [
|
|
84
84
|
/* @__PURE__ */ k("div", {
|
|
85
|
-
className: "relative h-48 rounded-lg bg-
|
|
85
|
+
className: "relative h-48 rounded-lg bg-bg-sunken overflow-hidden",
|
|
86
86
|
children: [/* @__PURE__ */ O("img", {
|
|
87
87
|
src: F.image,
|
|
88
88
|
alt: F.name,
|
|
@@ -92,12 +92,12 @@ function A() {
|
|
|
92
92
|
children: /* @__PURE__ */ k("div", {
|
|
93
93
|
className: "flex items-center gap-3",
|
|
94
94
|
children: [/* @__PURE__ */ O("span", {
|
|
95
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", F.isOpen ? "bg-
|
|
95
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", F.isOpen ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg-subtle/20 text-status-error-text"),
|
|
96
96
|
children: F.isOpen ? "Open Now" : "Closed"
|
|
97
97
|
}), /* @__PURE__ */ k("div", {
|
|
98
98
|
className: "flex items-center gap-1 text-white text-sm",
|
|
99
99
|
children: [
|
|
100
|
-
/* @__PURE__ */ O(w, { className: "h-3.5 w-3.5 fill-
|
|
100
|
+
/* @__PURE__ */ O(w, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
101
101
|
/* @__PURE__ */ O("span", {
|
|
102
102
|
className: "font-medium",
|
|
103
103
|
children: F.rating
|
|
@@ -116,9 +116,9 @@ function A() {
|
|
|
116
116
|
})]
|
|
117
117
|
}),
|
|
118
118
|
!F.isOpen && /* @__PURE__ */ O("div", {
|
|
119
|
-
className: "mt-4 rounded-lg border border-
|
|
119
|
+
className: "mt-4 rounded-lg border border-status-warning-border/30 bg-status-warning-bg-subtle/10 p-3",
|
|
120
120
|
children: /* @__PURE__ */ k("p", {
|
|
121
|
-
className: "text-sm text-
|
|
121
|
+
className: "text-sm text-status-warning-text",
|
|
122
122
|
children: [/* @__PURE__ */ O("strong", { children: "This cart is currently closed." }), " You can browse the offerings but orders are not being accepted."]
|
|
123
123
|
})
|
|
124
124
|
}),
|
|
@@ -126,61 +126,61 @@ function A() {
|
|
|
126
126
|
className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-3",
|
|
127
127
|
children: [
|
|
128
128
|
/* @__PURE__ */ k("div", {
|
|
129
|
-
className: "rounded-lg border border-border bg-
|
|
129
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-3",
|
|
130
130
|
children: [
|
|
131
131
|
/* @__PURE__ */ k("div", {
|
|
132
|
-
className: "flex items-center gap-2 text-
|
|
132
|
+
className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
|
|
133
133
|
children: [/* @__PURE__ */ O(y, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ O("span", {
|
|
134
134
|
className: "font-medium uppercase tracking-wider",
|
|
135
135
|
children: "Location"
|
|
136
136
|
})]
|
|
137
137
|
}),
|
|
138
138
|
/* @__PURE__ */ O("p", {
|
|
139
|
-
className: "text-sm text-
|
|
139
|
+
className: "text-sm text-text-primary",
|
|
140
140
|
children: F.location.address
|
|
141
141
|
}),
|
|
142
142
|
/* @__PURE__ */ k("p", {
|
|
143
|
-
className: "text-xs text-
|
|
143
|
+
className: "text-xs text-text-secondary",
|
|
144
144
|
children: [c(F.distance), " away"]
|
|
145
145
|
})
|
|
146
146
|
]
|
|
147
147
|
}),
|
|
148
148
|
/* @__PURE__ */ k("div", {
|
|
149
|
-
className: "rounded-lg border border-border bg-
|
|
149
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-3",
|
|
150
150
|
children: [
|
|
151
151
|
/* @__PURE__ */ k("div", {
|
|
152
|
-
className: "flex items-center gap-2 text-
|
|
152
|
+
className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
|
|
153
153
|
children: [/* @__PURE__ */ O(h, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ O("span", {
|
|
154
154
|
className: "font-medium uppercase tracking-wider",
|
|
155
155
|
children: "Estimated Time"
|
|
156
156
|
})]
|
|
157
157
|
}),
|
|
158
158
|
/* @__PURE__ */ O("p", {
|
|
159
|
-
className: "text-sm text-
|
|
159
|
+
className: "text-sm text-text-primary",
|
|
160
160
|
children: l(F.estimatedTime)
|
|
161
161
|
}),
|
|
162
162
|
F.averageOrderValue && /* @__PURE__ */ k("p", {
|
|
163
|
-
className: "text-xs text-
|
|
163
|
+
className: "text-xs text-text-secondary",
|
|
164
164
|
children: ["Avg ", s(F.averageOrderValue, { minimumFractionDigits: 0 })]
|
|
165
165
|
})
|
|
166
166
|
]
|
|
167
167
|
}),
|
|
168
168
|
/* @__PURE__ */ k("div", {
|
|
169
|
-
className: "rounded-lg border border-border bg-
|
|
169
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-3",
|
|
170
170
|
children: [
|
|
171
171
|
/* @__PURE__ */ k("div", {
|
|
172
|
-
className: "flex items-center gap-2 text-
|
|
172
|
+
className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
|
|
173
173
|
children: [/* @__PURE__ */ O(w, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ O("span", {
|
|
174
174
|
className: "font-medium uppercase tracking-wider",
|
|
175
175
|
children: "Rating"
|
|
176
176
|
})]
|
|
177
177
|
}),
|
|
178
178
|
/* @__PURE__ */ k("p", {
|
|
179
|
-
className: "text-sm text-
|
|
179
|
+
className: "text-sm text-text-primary",
|
|
180
180
|
children: [F.rating, " / 5.0"]
|
|
181
181
|
}),
|
|
182
182
|
/* @__PURE__ */ k("p", {
|
|
183
|
-
className: "text-xs text-
|
|
183
|
+
className: "text-xs text-text-secondary",
|
|
184
184
|
children: [F.totalRatings, " reviews"]
|
|
185
185
|
})
|
|
186
186
|
]
|
|
@@ -190,24 +190,24 @@ function A() {
|
|
|
190
190
|
F.businessHours && Object.keys(F.businessHours).length > 0 && /* @__PURE__ */ k("section", {
|
|
191
191
|
className: "mt-6",
|
|
192
192
|
children: [/* @__PURE__ */ O("h2", {
|
|
193
|
-
className: "text-base font-semibold text-
|
|
193
|
+
className: "text-base font-semibold text-text-primary mb-2",
|
|
194
194
|
children: "Operating Hours"
|
|
195
195
|
}), /* @__PURE__ */ O("div", {
|
|
196
|
-
className: "rounded-lg border border-border bg-
|
|
196
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
197
197
|
children: Object.entries(F.businessHours).map(([e, t]) => /* @__PURE__ */ k("div", {
|
|
198
|
-
className: "flex items-center justify-between px-4 py-2 border-b border-border last:border-b-0",
|
|
198
|
+
className: "flex items-center justify-between px-4 py-2 border-b border-border-subtle last:border-b-0",
|
|
199
199
|
children: [/* @__PURE__ */ O("span", {
|
|
200
|
-
className: "text-sm font-medium text-
|
|
200
|
+
className: "text-sm font-medium text-text-primary capitalize",
|
|
201
201
|
children: e
|
|
202
202
|
}), t.isOpen ? /* @__PURE__ */ k("span", {
|
|
203
|
-
className: "text-sm text-
|
|
203
|
+
className: "text-sm text-text-secondary",
|
|
204
204
|
children: [
|
|
205
205
|
t.open,
|
|
206
206
|
" - ",
|
|
207
207
|
t.close
|
|
208
208
|
]
|
|
209
209
|
}) : /* @__PURE__ */ O("span", {
|
|
210
|
-
className: "text-sm text-
|
|
210
|
+
className: "text-sm text-status-error-text",
|
|
211
211
|
children: "Closed"
|
|
212
212
|
})]
|
|
213
213
|
}, e))
|
|
@@ -222,17 +222,17 @@ function A() {
|
|
|
222
222
|
className: "flex flex-col gap-3 sm:flex-row mb-4",
|
|
223
223
|
children: [/* @__PURE__ */ k("div", {
|
|
224
224
|
className: "relative flex-1",
|
|
225
|
-
children: [/* @__PURE__ */ O(S, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
225
|
+
children: [/* @__PURE__ */ O(S, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ O("input", {
|
|
226
226
|
type: "text",
|
|
227
227
|
placeholder: "Search offerings...",
|
|
228
228
|
value: L,
|
|
229
229
|
onChange: (e) => R(e.target.value),
|
|
230
|
-
className: "w-full rounded-lg border border-border bg-
|
|
230
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
231
231
|
})]
|
|
232
232
|
}), /* @__PURE__ */ k("select", {
|
|
233
233
|
value: z,
|
|
234
234
|
onChange: (e) => B(e.target.value),
|
|
235
|
-
className: "rounded-lg border border-border bg-
|
|
235
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
236
236
|
children: [/* @__PURE__ */ O("option", {
|
|
237
237
|
value: "",
|
|
238
238
|
children: "All Categories"
|
|
@@ -243,7 +243,7 @@ function A() {
|
|
|
243
243
|
})]
|
|
244
244
|
}),
|
|
245
245
|
/* @__PURE__ */ k("h2", {
|
|
246
|
-
className: "text-lg font-semibold text-
|
|
246
|
+
className: "text-lg font-semibold text-text-primary mb-3",
|
|
247
247
|
children: [
|
|
248
248
|
"Menu & Services (",
|
|
249
249
|
Y.length,
|
|
@@ -251,24 +251,24 @@ function A() {
|
|
|
251
251
|
]
|
|
252
252
|
}),
|
|
253
253
|
Y.length === 0 ? /* @__PURE__ */ k("div", {
|
|
254
|
-
className: "rounded-lg border border-border bg-
|
|
255
|
-
children: [/* @__PURE__ */ O(S, { className: "mx-auto h-10 w-10 text-
|
|
256
|
-
className: "mt-3 text-sm text-
|
|
254
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-8 text-center",
|
|
255
|
+
children: [/* @__PURE__ */ O(S, { className: "mx-auto h-10 w-10 text-text-secondary/50" }), /* @__PURE__ */ O("p", {
|
|
256
|
+
className: "mt-3 text-sm text-text-secondary",
|
|
257
257
|
children: "No offerings found"
|
|
258
258
|
})]
|
|
259
259
|
}) : /* @__PURE__ */ O("div", {
|
|
260
260
|
className: "space-y-6",
|
|
261
261
|
children: Object.entries(X).map(([e, n]) => /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h3", {
|
|
262
|
-
className: "text-sm font-semibold text-
|
|
262
|
+
className: "text-sm font-semibold text-text-primary mb-2 px-1",
|
|
263
263
|
children: e
|
|
264
264
|
}), /* @__PURE__ */ O("div", {
|
|
265
265
|
className: "space-y-2",
|
|
266
266
|
children: n.map((e) => {
|
|
267
267
|
let n = ie(e.id);
|
|
268
268
|
return /* @__PURE__ */ k("div", {
|
|
269
|
-
className: "flex gap-4 rounded-lg border border-border bg-
|
|
269
|
+
className: "flex gap-4 rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
270
270
|
children: [/* @__PURE__ */ O("div", {
|
|
271
|
-
className: "h-20 w-20 shrink-0 rounded-md bg-
|
|
271
|
+
className: "h-20 w-20 shrink-0 rounded-md bg-bg-sunken overflow-hidden",
|
|
272
272
|
children: /* @__PURE__ */ O("img", {
|
|
273
273
|
src: e.image,
|
|
274
274
|
alt: e.name,
|
|
@@ -282,34 +282,34 @@ function A() {
|
|
|
282
282
|
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("div", {
|
|
283
283
|
className: "flex items-center gap-2",
|
|
284
284
|
children: [/* @__PURE__ */ O("h4", {
|
|
285
|
-
className: "text-sm font-semibold text-
|
|
285
|
+
className: "text-sm font-semibold text-text-primary",
|
|
286
286
|
children: e.name
|
|
287
|
-
}), e.isVeg && /* @__PURE__ */ O(v, { className: "h-3.5 w-3.5 text-
|
|
287
|
+
}), e.isVeg && /* @__PURE__ */ O(v, { className: "h-3.5 w-3.5 text-status-success-text" })]
|
|
288
288
|
}), /* @__PURE__ */ O("p", {
|
|
289
|
-
className: "text-xs text-
|
|
289
|
+
className: "text-xs text-text-secondary mt-0.5",
|
|
290
290
|
children: e.category
|
|
291
291
|
})] }), /* @__PURE__ */ O("span", {
|
|
292
|
-
className: "text-sm font-bold text-
|
|
292
|
+
className: "text-sm font-bold text-text-primary whitespace-nowrap",
|
|
293
293
|
children: s(e.price, { minimumFractionDigits: 0 })
|
|
294
294
|
})]
|
|
295
295
|
}),
|
|
296
296
|
/* @__PURE__ */ O("p", {
|
|
297
|
-
className: "mt-1 text-xs text-
|
|
297
|
+
className: "mt-1 text-xs text-text-secondary line-clamp-2",
|
|
298
298
|
children: e.description
|
|
299
299
|
}),
|
|
300
300
|
/* @__PURE__ */ k("div", {
|
|
301
|
-
className: "mt-2 flex flex-wrap items-center gap-2 text-[10px] text-
|
|
301
|
+
className: "mt-2 flex flex-wrap items-center gap-2 text-[10px] text-text-secondary",
|
|
302
302
|
children: [
|
|
303
303
|
e.duration != null && e.duration > 0 && /* @__PURE__ */ k("span", {
|
|
304
304
|
className: "flex items-center gap-0.5",
|
|
305
305
|
children: [/* @__PURE__ */ O(h, { className: "h-3 w-3" }), l(e.duration)]
|
|
306
306
|
}),
|
|
307
307
|
e.serviceType && /* @__PURE__ */ O("span", {
|
|
308
|
-
className: "rounded bg-
|
|
308
|
+
className: "rounded bg-bg-sunken px-1.5 py-0.5 capitalize",
|
|
309
309
|
children: e.serviceType
|
|
310
310
|
}),
|
|
311
311
|
e.spiceLevel && /* @__PURE__ */ k("span", {
|
|
312
|
-
className: "flex items-center gap-0.5 rounded bg-
|
|
312
|
+
className: "flex items-center gap-0.5 rounded bg-bg-sunken px-1.5 py-0.5 capitalize",
|
|
313
313
|
children: [/* @__PURE__ */ O(g, { className: "h-3 w-3" }), e.spiceLevel]
|
|
314
314
|
})
|
|
315
315
|
]
|
|
@@ -322,11 +322,11 @@ function A() {
|
|
|
322
322
|
/* @__PURE__ */ O("button", {
|
|
323
323
|
type: "button",
|
|
324
324
|
onClick: () => Q(e.id, -1),
|
|
325
|
-
className: "flex h-7 w-7 items-center justify-center rounded-full bg-
|
|
325
|
+
className: "flex h-7 w-7 items-center justify-center rounded-full bg-bg-sunken text-text-primary hover:bg-accent",
|
|
326
326
|
children: /* @__PURE__ */ O(b, { className: "h-3.5 w-3.5" })
|
|
327
327
|
}),
|
|
328
328
|
/* @__PURE__ */ O("span", {
|
|
329
|
-
className: "min-w-[2ch] text-center text-sm font-medium text-
|
|
329
|
+
className: "min-w-[2ch] text-center text-sm font-medium text-text-primary",
|
|
330
330
|
children: n
|
|
331
331
|
}),
|
|
332
332
|
/* @__PURE__ */ O("button", {
|
|
@@ -338,7 +338,7 @@ function A() {
|
|
|
338
338
|
/* @__PURE__ */ O("button", {
|
|
339
339
|
type: "button",
|
|
340
340
|
onClick: () => $(e.id),
|
|
341
|
-
className: "ml-1 flex h-7 w-7 items-center justify-center rounded-full text-
|
|
341
|
+
className: "ml-1 flex h-7 w-7 items-center justify-center rounded-full text-status-error-text hover:bg-status-error-bg/10",
|
|
342
342
|
children: /* @__PURE__ */ O(T, { className: "h-3.5 w-3.5" })
|
|
343
343
|
})
|
|
344
344
|
]
|
|
@@ -346,7 +346,7 @@ function A() {
|
|
|
346
346
|
type: "button",
|
|
347
347
|
disabled: !F.isOpen,
|
|
348
348
|
onClick: () => se(e),
|
|
349
|
-
className: t("rounded-lg px-4 py-1.5 text-xs font-medium transition-opacity", F.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-
|
|
349
|
+
className: t("rounded-lg px-4 py-1.5 text-xs font-medium transition-opacity", F.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
350
350
|
children: "Add"
|
|
351
351
|
})
|
|
352
352
|
})
|
|
@@ -361,14 +361,14 @@ function A() {
|
|
|
361
361
|
className: "space-y-4",
|
|
362
362
|
children: [
|
|
363
363
|
/* @__PURE__ */ k("div", {
|
|
364
|
-
className: "rounded-lg border border-border bg-
|
|
364
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 lg:sticky lg:top-6 bg-gloss-card shadow-pop",
|
|
365
365
|
children: [/* @__PURE__ */ k("h3", {
|
|
366
|
-
className: "text-base font-semibold text-
|
|
366
|
+
className: "text-base font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
367
367
|
children: [/* @__PURE__ */ O(C, { className: "h-4 w-4" }), "Your Order"]
|
|
368
368
|
}), V.length === 0 ? /* @__PURE__ */ k("div", {
|
|
369
369
|
className: "py-6 text-center",
|
|
370
|
-
children: [/* @__PURE__ */ O(C, { className: "mx-auto h-8 w-8 text-
|
|
371
|
-
className: "mt-2 text-sm text-
|
|
370
|
+
children: [/* @__PURE__ */ O(C, { className: "mx-auto h-8 w-8 text-text-secondary/40" }), /* @__PURE__ */ O("p", {
|
|
371
|
+
className: "mt-2 text-sm text-text-secondary",
|
|
372
372
|
children: "Your cart is empty"
|
|
373
373
|
})]
|
|
374
374
|
}) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
|
|
@@ -378,10 +378,10 @@ function A() {
|
|
|
378
378
|
children: [/* @__PURE__ */ k("div", {
|
|
379
379
|
className: "flex-1 min-w-0",
|
|
380
380
|
children: [/* @__PURE__ */ O("p", {
|
|
381
|
-
className: "text-sm font-medium text-
|
|
381
|
+
className: "text-sm font-medium text-text-primary truncate",
|
|
382
382
|
children: e.name
|
|
383
383
|
}), /* @__PURE__ */ k("p", {
|
|
384
|
-
className: "text-xs text-
|
|
384
|
+
className: "text-xs text-text-secondary",
|
|
385
385
|
children: [
|
|
386
386
|
s(e.price, { minimumFractionDigits: 0 }),
|
|
387
387
|
" x",
|
|
@@ -395,7 +395,7 @@ function A() {
|
|
|
395
395
|
/* @__PURE__ */ O("button", {
|
|
396
396
|
type: "button",
|
|
397
397
|
onClick: () => Q(e.productId, -1),
|
|
398
|
-
className: "flex h-6 w-6 items-center justify-center rounded bg-
|
|
398
|
+
className: "flex h-6 w-6 items-center justify-center rounded bg-bg-sunken text-text-primary text-xs",
|
|
399
399
|
children: "-"
|
|
400
400
|
}),
|
|
401
401
|
/* @__PURE__ */ O("span", {
|
|
@@ -405,27 +405,27 @@ function A() {
|
|
|
405
405
|
/* @__PURE__ */ O("button", {
|
|
406
406
|
type: "button",
|
|
407
407
|
onClick: () => Q(e.productId, 1),
|
|
408
|
-
className: "flex h-6 w-6 items-center justify-center rounded bg-
|
|
408
|
+
className: "flex h-6 w-6 items-center justify-center rounded bg-bg-sunken text-text-primary text-xs",
|
|
409
409
|
children: "+"
|
|
410
410
|
}),
|
|
411
411
|
/* @__PURE__ */ O("button", {
|
|
412
412
|
type: "button",
|
|
413
413
|
onClick: () => $(e.productId),
|
|
414
|
-
className: "ml-1 text-
|
|
414
|
+
className: "ml-1 text-status-error-text hover:text-status-error-text/80",
|
|
415
415
|
children: /* @__PURE__ */ O(T, { className: "h-3.5 w-3.5" })
|
|
416
416
|
})
|
|
417
417
|
]
|
|
418
418
|
})]
|
|
419
419
|
}, e.id))
|
|
420
420
|
}), /* @__PURE__ */ k("div", {
|
|
421
|
-
className: "border-t border-border pt-3",
|
|
421
|
+
className: "border-t border-border-subtle pt-3",
|
|
422
422
|
children: [/* @__PURE__ */ k("div", {
|
|
423
423
|
className: "flex justify-between items-center mb-3",
|
|
424
424
|
children: [/* @__PURE__ */ k("span", {
|
|
425
|
-
className: "text-sm font-semibold text-
|
|
425
|
+
className: "text-sm font-semibold text-text-primary",
|
|
426
426
|
children: ["Total: ", s(ae, { minimumFractionDigits: 0 })]
|
|
427
427
|
}), /* @__PURE__ */ k("span", {
|
|
428
|
-
className: "text-xs text-
|
|
428
|
+
className: "text-xs text-text-secondary",
|
|
429
429
|
children: [oe, " items"]
|
|
430
430
|
})]
|
|
431
431
|
}), /* @__PURE__ */ O("button", {
|
|
@@ -437,47 +437,47 @@ function A() {
|
|
|
437
437
|
})] })]
|
|
438
438
|
}),
|
|
439
439
|
F.serviceTypes?.includes("direct_service") && /* @__PURE__ */ k("div", {
|
|
440
|
-
className: "rounded-lg border border-purple-
|
|
440
|
+
className: "rounded-lg border border-accent-purple-subtle/30 bg-accent-purple-subtle/10 p-4",
|
|
441
441
|
children: [
|
|
442
442
|
/* @__PURE__ */ k("h3", {
|
|
443
|
-
className: "text-sm font-semibold text-
|
|
444
|
-
children: [/* @__PURE__ */ O(_, { className: "h-4 w-4 text-
|
|
443
|
+
className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
|
|
444
|
+
children: [/* @__PURE__ */ O(_, { className: "h-4 w-4 text-accent-purple" }), "Direct Service"]
|
|
445
445
|
}),
|
|
446
446
|
/* @__PURE__ */ O("p", {
|
|
447
|
-
className: "text-xs text-
|
|
447
|
+
className: "text-xs text-text-secondary mb-3",
|
|
448
448
|
children: "Cart comes to your location!"
|
|
449
449
|
}),
|
|
450
450
|
/* @__PURE__ */ O("button", {
|
|
451
451
|
type: "button",
|
|
452
452
|
onClick: () => j(`/customer/carts/${F.id}`),
|
|
453
|
-
className: "w-full rounded-lg bg-purple-
|
|
453
|
+
className: "w-full rounded-lg bg-accent-purple-subtle py-2 text-xs font-medium text-white hover:bg-accent-purple-subtle transition-colors",
|
|
454
454
|
children: "Book Direct Service"
|
|
455
455
|
})
|
|
456
456
|
]
|
|
457
457
|
}),
|
|
458
458
|
F.serviceTypes?.includes("appointment") && /* @__PURE__ */ k("div", {
|
|
459
|
-
className: "rounded-lg border border-blue-
|
|
459
|
+
className: "rounded-lg border border-accent-blue-subtle/30 bg-accent-blue-subtle/10 p-4",
|
|
460
460
|
children: [/* @__PURE__ */ k("h3", {
|
|
461
|
-
className: "text-sm font-semibold text-
|
|
462
|
-
children: [/* @__PURE__ */ O(p, { className: "h-4 w-4 text-
|
|
461
|
+
className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
|
|
462
|
+
children: [/* @__PURE__ */ O(p, { className: "h-4 w-4 text-accent-blue" }), "Appointments Available"]
|
|
463
463
|
}), /* @__PURE__ */ O("p", {
|
|
464
|
-
className: "text-xs text-
|
|
464
|
+
className: "text-xs text-text-secondary",
|
|
465
465
|
children: "This service provider accepts appointments. Contact them to schedule."
|
|
466
466
|
})]
|
|
467
467
|
}),
|
|
468
468
|
I && /* @__PURE__ */ k("div", {
|
|
469
|
-
className: "rounded-lg border border-
|
|
469
|
+
className: "rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 p-4",
|
|
470
470
|
children: [
|
|
471
471
|
/* @__PURE__ */ k("h3", {
|
|
472
|
-
className: "text-sm font-semibold text-
|
|
473
|
-
children: [/* @__PURE__ */ O(ee, { className: "h-4 w-4 text-
|
|
472
|
+
className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
|
|
473
|
+
children: [/* @__PURE__ */ O(ee, { className: "h-4 w-4 text-status-success-text" }), "Investment Opportunity"]
|
|
474
474
|
}),
|
|
475
475
|
/* @__PURE__ */ O("p", {
|
|
476
|
-
className: "text-xs text-
|
|
476
|
+
className: "text-xs text-text-secondary mb-2",
|
|
477
477
|
children: I.description
|
|
478
478
|
}),
|
|
479
479
|
/* @__PURE__ */ k("div", {
|
|
480
|
-
className: "space-y-1 text-xs text-
|
|
480
|
+
className: "space-y-1 text-xs text-text-secondary mb-3",
|
|
481
481
|
children: [
|
|
482
482
|
/* @__PURE__ */ k("p", { children: ["Target: ", s(I.targetAmount, { minimumFractionDigits: 0 })] }),
|
|
483
483
|
/* @__PURE__ */ k("p", { children: ["Raised: ", s(I.raisedAmount, { minimumFractionDigits: 0 })] }),
|
|
@@ -496,7 +496,7 @@ function A() {
|
|
|
496
496
|
/* @__PURE__ */ O("button", {
|
|
497
497
|
type: "button",
|
|
498
498
|
onClick: () => alert("Navigate to investor section to fund this business."),
|
|
499
|
-
className: "w-full rounded-lg bg-
|
|
499
|
+
className: "w-full rounded-lg bg-status-success-bg-subtle py-2 text-xs font-medium text-white hover:bg-status-success-bg-subtle transition-colors",
|
|
500
500
|
children: "Fund This Business"
|
|
501
501
|
})
|
|
502
502
|
]
|
|
@@ -507,36 +507,36 @@ function A() {
|
|
|
507
507
|
U && G && /* @__PURE__ */ O("div", {
|
|
508
508
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
509
509
|
children: /* @__PURE__ */ O("div", {
|
|
510
|
-
className: "w-full max-w-md max-h-[90vh] overflow-y-auto rounded-lg border border-border bg-
|
|
510
|
+
className: "w-full max-w-md max-h-[90vh] overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
|
|
511
511
|
children: /* @__PURE__ */ k("div", {
|
|
512
512
|
className: "p-5",
|
|
513
513
|
children: [
|
|
514
514
|
/* @__PURE__ */ k("div", {
|
|
515
515
|
className: "flex items-center justify-between mb-4",
|
|
516
516
|
children: [/* @__PURE__ */ O("h3", {
|
|
517
|
-
className: "text-lg font-semibold text-
|
|
517
|
+
className: "text-lg font-semibold text-text-primary",
|
|
518
518
|
children: G.product.name
|
|
519
519
|
}), /* @__PURE__ */ O("button", {
|
|
520
520
|
type: "button",
|
|
521
521
|
onClick: () => {
|
|
522
522
|
W(!1), K(null);
|
|
523
523
|
},
|
|
524
|
-
className: "rounded-md p-1 text-
|
|
524
|
+
className: "rounded-md p-1 text-text-secondary hover:text-text-primary",
|
|
525
525
|
children: /* @__PURE__ */ O(T, { className: "h-5 w-5" })
|
|
526
526
|
})]
|
|
527
527
|
}),
|
|
528
528
|
/* @__PURE__ */ O("p", {
|
|
529
|
-
className: "text-sm text-
|
|
529
|
+
className: "text-sm text-text-secondary mb-4",
|
|
530
530
|
children: G.product.description
|
|
531
531
|
}),
|
|
532
532
|
/* @__PURE__ */ O("p", {
|
|
533
|
-
className: "text-lg font-bold text-
|
|
533
|
+
className: "text-lg font-bold text-text-primary mb-4",
|
|
534
534
|
children: s(G.product.price, { minimumFractionDigits: 0 })
|
|
535
535
|
}),
|
|
536
536
|
/* @__PURE__ */ k("div", {
|
|
537
537
|
className: "mb-4",
|
|
538
538
|
children: [/* @__PURE__ */ O("label", {
|
|
539
|
-
className: "block text-sm font-medium text-
|
|
539
|
+
className: "block text-sm font-medium text-text-primary mb-2",
|
|
540
540
|
children: "Quantity"
|
|
541
541
|
}), /* @__PURE__ */ k("div", {
|
|
542
542
|
className: "flex items-center gap-3",
|
|
@@ -547,11 +547,11 @@ function A() {
|
|
|
547
547
|
...e,
|
|
548
548
|
quantity: Math.max(1, e.quantity - 1)
|
|
549
549
|
}),
|
|
550
|
-
className: "flex h-8 w-8 items-center justify-center rounded-full bg-
|
|
550
|
+
className: "flex h-8 w-8 items-center justify-center rounded-full bg-bg-sunken text-text-primary",
|
|
551
551
|
children: /* @__PURE__ */ O(b, { className: "h-4 w-4" })
|
|
552
552
|
}),
|
|
553
553
|
/* @__PURE__ */ O("span", {
|
|
554
|
-
className: "min-w-[2ch] text-center font-medium text-
|
|
554
|
+
className: "min-w-[2ch] text-center font-medium text-text-primary",
|
|
555
555
|
children: G.quantity
|
|
556
556
|
}),
|
|
557
557
|
/* @__PURE__ */ O("button", {
|
|
@@ -560,7 +560,7 @@ function A() {
|
|
|
560
560
|
...e,
|
|
561
561
|
quantity: e.quantity + 1
|
|
562
562
|
}),
|
|
563
|
-
className: "flex h-8 w-8 items-center justify-center rounded-full bg-
|
|
563
|
+
className: "flex h-8 w-8 items-center justify-center rounded-full bg-bg-sunken text-text-primary",
|
|
564
564
|
children: /* @__PURE__ */ O(x, { className: "h-4 w-4" })
|
|
565
565
|
})
|
|
566
566
|
]
|
|
@@ -569,7 +569,7 @@ function A() {
|
|
|
569
569
|
/* @__PURE__ */ k("div", {
|
|
570
570
|
className: "mb-4",
|
|
571
571
|
children: [/* @__PURE__ */ O("label", {
|
|
572
|
-
className: "block text-sm font-medium text-
|
|
572
|
+
className: "block text-sm font-medium text-text-primary mb-2",
|
|
573
573
|
children: "Special Instructions"
|
|
574
574
|
}), /* @__PURE__ */ O("textarea", {
|
|
575
575
|
value: G.specialInstructions,
|
|
@@ -578,7 +578,7 @@ function A() {
|
|
|
578
578
|
specialInstructions: e.target.value
|
|
579
579
|
}),
|
|
580
580
|
placeholder: "Any special requests...",
|
|
581
|
-
className: "w-full rounded-lg border border-border bg-
|
|
581
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-surface p-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
582
582
|
rows: 3
|
|
583
583
|
})]
|
|
584
584
|
}),
|
|
@@ -602,9 +602,10 @@ function A() {
|
|
|
602
602
|
}) : /* @__PURE__ */ O(n, {
|
|
603
603
|
title: "Cart Not Found",
|
|
604
604
|
children: /* @__PURE__ */ O(r, {
|
|
605
|
+
illustration: "empty-generic",
|
|
605
606
|
icon: /* @__PURE__ */ O(C, { className: "h-12 w-12" }),
|
|
606
607
|
title: "Cart not found",
|
|
607
|
-
description: `No cart found with ID
|
|
608
|
+
description: `No cart found with ID"${A}".`,
|
|
608
609
|
action: /* @__PURE__ */ O("button", {
|
|
609
610
|
type: "button",
|
|
610
611
|
onClick: () => j("/customer/carts"),
|