@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
|
@@ -210,99 +210,99 @@ var y = [
|
|
|
210
210
|
type: "button",
|
|
211
211
|
onClick: q,
|
|
212
212
|
disabled: N,
|
|
213
|
-
className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", N ? "bg-
|
|
213
|
+
className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", N ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
|
|
214
214
|
children: N ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, { className: "h-4 w-4" }), "Save Configuration"] })
|
|
215
215
|
}),
|
|
216
216
|
children: /* @__PURE__ */ v("div", {
|
|
217
217
|
className: "space-y-6 max-w-4xl",
|
|
218
218
|
children: [
|
|
219
219
|
F && /* @__PURE__ */ v("div", {
|
|
220
|
-
className: "flex items-center gap-2 rounded-lg border border-
|
|
221
|
-
children: [/* @__PURE__ */ _(o, { className: "h-5 w-5 text-
|
|
222
|
-
className: "text-sm font-medium text-
|
|
220
|
+
className: "flex items-center gap-2 rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 p-4",
|
|
221
|
+
children: [/* @__PURE__ */ _(o, { className: "h-5 w-5 text-status-success-text shrink-0" }), /* @__PURE__ */ _("span", {
|
|
222
|
+
className: "text-sm font-medium text-status-success-text",
|
|
223
223
|
children: "Configuration saved successfully!"
|
|
224
224
|
})]
|
|
225
225
|
}),
|
|
226
226
|
L.length > 0 && /* @__PURE__ */ _("div", {
|
|
227
|
-
className: "rounded-lg border border-
|
|
227
|
+
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg-subtle/10 p-4 space-y-1",
|
|
228
228
|
children: L.map((e, t) => /* @__PURE__ */ v("div", {
|
|
229
229
|
className: "flex items-start gap-2",
|
|
230
|
-
children: [/* @__PURE__ */ _(i, { className: "h-4 w-4 text-
|
|
231
|
-
className: "text-sm text-
|
|
230
|
+
children: [/* @__PURE__ */ _(i, { className: "h-4 w-4 text-status-error-text shrink-0 mt-0.5" }), /* @__PURE__ */ _("span", {
|
|
231
|
+
className: "text-sm text-status-error-text",
|
|
232
232
|
children: e
|
|
233
233
|
})]
|
|
234
234
|
}, t))
|
|
235
235
|
}),
|
|
236
236
|
/* @__PURE__ */ _("section", {
|
|
237
|
-
className: "rounded-lg border border-border bg-
|
|
237
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
238
238
|
children: /* @__PURE__ */ v("div", {
|
|
239
239
|
className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",
|
|
240
240
|
children: [/* @__PURE__ */ v("div", {
|
|
241
241
|
className: "flex-1",
|
|
242
242
|
children: [/* @__PURE__ */ v("h2", {
|
|
243
|
-
className: "text-lg font-semibold text-
|
|
244
|
-
children: [/* @__PURE__ */ _(f, { className: "h-5 w-5 text-
|
|
243
|
+
className: "text-lg font-semibold text-text-primary flex items-center gap-2",
|
|
244
|
+
children: [/* @__PURE__ */ _(f, { className: "h-5 w-5 text-text-secondary" }), "Service Status"]
|
|
245
245
|
}), /* @__PURE__ */ _("p", {
|
|
246
|
-
className: "text-sm text-
|
|
246
|
+
className: "text-sm text-text-secondary mt-1",
|
|
247
247
|
children: "Control whether your service is currently accepting orders"
|
|
248
248
|
})]
|
|
249
249
|
}), /* @__PURE__ */ v("div", {
|
|
250
250
|
className: "flex items-center gap-3",
|
|
251
251
|
children: [/* @__PURE__ */ _("span", {
|
|
252
|
-
className: t("inline-flex items-center rounded-full px-3 py-1 text-xs font-medium", T ? "bg-
|
|
252
|
+
className: t("inline-flex items-center rounded-full px-3 py-1 text-xs font-medium", T ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg-subtle/20 text-status-error-text"),
|
|
253
253
|
children: T ? "Open" : "Closed"
|
|
254
254
|
}), /* @__PURE__ */ _("button", {
|
|
255
255
|
type: "button",
|
|
256
256
|
onClick: () => E(!T),
|
|
257
|
-
className: t("rounded-md px-4 py-2 text-sm font-medium transition-colors", T ? "bg-
|
|
257
|
+
className: t("rounded-md px-4 py-2 text-sm font-medium transition-colors", T ? "bg-status-error-bg-subtle/10 text-status-error-text hover:bg-status-error-bg-subtle/20" : "bg-status-success-bg-subtle/10 text-status-success-text hover:bg-status-success-bg-subtle/20"),
|
|
258
258
|
children: T ? "Close Service" : "Open Service"
|
|
259
259
|
})]
|
|
260
260
|
})]
|
|
261
261
|
})
|
|
262
262
|
}),
|
|
263
263
|
/* @__PURE__ */ v("section", {
|
|
264
|
-
className: "rounded-lg border border-border bg-
|
|
264
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
265
265
|
children: [/* @__PURE__ */ v("h2", {
|
|
266
|
-
className: "text-lg font-semibold text-
|
|
267
|
-
children: [/* @__PURE__ */ _(l, { className: "h-5 w-5 text-
|
|
266
|
+
className: "text-lg font-semibold text-text-primary flex items-center gap-2 mb-4",
|
|
267
|
+
children: [/* @__PURE__ */ _(l, { className: "h-5 w-5 text-text-secondary" }), "Offering Type"]
|
|
268
268
|
}), /* @__PURE__ */ v("div", {
|
|
269
269
|
className: "space-y-3",
|
|
270
270
|
children: [
|
|
271
271
|
/* @__PURE__ */ _("label", {
|
|
272
272
|
htmlFor: "offering-type",
|
|
273
|
-
className: "block text-sm font-medium text-
|
|
273
|
+
className: "block text-sm font-medium text-text-primary",
|
|
274
274
|
children: "What do you provide?"
|
|
275
275
|
}),
|
|
276
276
|
/* @__PURE__ */ _("select", {
|
|
277
277
|
id: "offering-type",
|
|
278
278
|
value: D,
|
|
279
279
|
onChange: (e) => O(e.target.value),
|
|
280
|
-
className: "w-full sm:w-64 rounded-md border border-border bg-
|
|
280
|
+
className: "w-full sm:w-64 rounded-md 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)]",
|
|
281
281
|
children: y.map((e) => /* @__PURE__ */ _("option", {
|
|
282
282
|
value: e.value,
|
|
283
283
|
children: e.label
|
|
284
284
|
}, e.value))
|
|
285
285
|
}),
|
|
286
286
|
/* @__PURE__ */ _("p", {
|
|
287
|
-
className: "text-sm text-
|
|
287
|
+
className: "text-sm text-text-secondary",
|
|
288
288
|
children: J.description
|
|
289
289
|
})
|
|
290
290
|
]
|
|
291
291
|
})]
|
|
292
292
|
}),
|
|
293
293
|
/* @__PURE__ */ v("section", {
|
|
294
|
-
className: "rounded-lg border border-border bg-
|
|
294
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
295
295
|
children: [/* @__PURE__ */ v("h2", {
|
|
296
|
-
className: "text-lg font-semibold text-
|
|
297
|
-
children: [/* @__PURE__ */ _(s, { className: "h-5 w-5 text-
|
|
296
|
+
className: "text-lg font-semibold text-text-primary flex items-center gap-2 mb-4",
|
|
297
|
+
children: [/* @__PURE__ */ _(s, { className: "h-5 w-5 text-text-secondary" }), "Operating Hours"]
|
|
298
298
|
}), /* @__PURE__ */ _("div", {
|
|
299
299
|
className: "grid grid-cols-1 md:grid-cols-2 gap-3",
|
|
300
300
|
children: b.map((e) => {
|
|
301
301
|
let n = k[e];
|
|
302
302
|
return /* @__PURE__ */ v("div", {
|
|
303
|
-
className: t("flex flex-col sm:flex-row sm:items-center gap-3 p-4 rounded-lg", n.isOpen ? "bg-
|
|
303
|
+
className: t("flex flex-col sm:flex-row sm:items-center gap-3 p-4 rounded-lg", n.isOpen ? "bg-bg-sunken/50" : "bg-bg-sunken/30 opacity-60"),
|
|
304
304
|
children: [/* @__PURE__ */ _("span", {
|
|
305
|
-
className: "min-w-[50px] text-sm font-medium text-
|
|
305
|
+
className: "min-w-[50px] text-sm font-medium text-text-primary",
|
|
306
306
|
children: x[e]
|
|
307
307
|
}), /* @__PURE__ */ v("div", {
|
|
308
308
|
className: "flex items-center gap-3 flex-1",
|
|
@@ -310,11 +310,11 @@ var y = [
|
|
|
310
310
|
/* @__PURE__ */ _("button", {
|
|
311
311
|
type: "button",
|
|
312
312
|
onClick: () => z(e, "isOpen", !n.isOpen),
|
|
313
|
-
className: t("h-5 w-5 rounded border transition-colors shrink-0", n.isOpen ? "bg-blue-
|
|
313
|
+
className: t("h-5 w-5 rounded border transition-colors shrink-0", n.isOpen ? "bg-accent-blue-subtle border-accent-blue-subtle" : "border-border-subtle bg-bg-surface"),
|
|
314
314
|
children: n.isOpen && /* @__PURE__ */ _(o, { className: "h-5 w-5 text-white" })
|
|
315
315
|
}),
|
|
316
316
|
/* @__PURE__ */ _("span", {
|
|
317
|
-
className: "text-xs text-
|
|
317
|
+
className: "text-xs text-text-secondary min-w-[35px]",
|
|
318
318
|
children: "Open"
|
|
319
319
|
}),
|
|
320
320
|
n.isOpen && /* @__PURE__ */ v("div", {
|
|
@@ -324,17 +324,17 @@ var y = [
|
|
|
324
324
|
type: "time",
|
|
325
325
|
value: n.open,
|
|
326
326
|
onChange: (t) => z(e, "open", t.target.value),
|
|
327
|
-
className: "text-sm rounded border border-border bg-
|
|
327
|
+
className: "text-sm rounded border border-border-subtle bg-bg-surface px-2 py-1.5 text-text-primary w-[110px]"
|
|
328
328
|
}),
|
|
329
329
|
/* @__PURE__ */ _("span", {
|
|
330
|
-
className: "text-xs text-
|
|
330
|
+
className: "text-xs text-text-secondary",
|
|
331
331
|
children: "to"
|
|
332
332
|
}),
|
|
333
333
|
/* @__PURE__ */ _("input", {
|
|
334
334
|
type: "time",
|
|
335
335
|
value: n.close,
|
|
336
336
|
onChange: (t) => z(e, "close", t.target.value),
|
|
337
|
-
className: "text-sm rounded border border-border bg-
|
|
337
|
+
className: "text-sm rounded border border-border-subtle bg-bg-surface px-2 py-1.5 text-text-primary w-[110px]"
|
|
338
338
|
})
|
|
339
339
|
]
|
|
340
340
|
})
|
|
@@ -345,102 +345,102 @@ var y = [
|
|
|
345
345
|
})]
|
|
346
346
|
}),
|
|
347
347
|
/* @__PURE__ */ v("section", {
|
|
348
|
-
className: "rounded-lg border border-border bg-
|
|
348
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
349
349
|
children: [/* @__PURE__ */ v("h2", {
|
|
350
|
-
className: "text-lg font-semibold text-
|
|
351
|
-
children: [/* @__PURE__ */ _(h, { className: "h-5 w-5 text-
|
|
350
|
+
className: "text-lg font-semibold text-text-primary flex items-center gap-2 mb-6",
|
|
351
|
+
children: [/* @__PURE__ */ _(h, { className: "h-5 w-5 text-text-secondary" }), "Service Types"]
|
|
352
352
|
}), /* @__PURE__ */ v("div", {
|
|
353
353
|
className: "space-y-6",
|
|
354
354
|
children: [
|
|
355
355
|
/* @__PURE__ */ v("div", {
|
|
356
|
-
className: "border border-border rounded-lg p-4",
|
|
356
|
+
className: "border border-border-subtle rounded-lg p-4",
|
|
357
357
|
children: [/* @__PURE__ */ v("div", {
|
|
358
358
|
className: "flex items-center justify-between mb-4",
|
|
359
359
|
children: [/* @__PURE__ */ v("div", {
|
|
360
360
|
className: "flex items-center gap-2",
|
|
361
|
-
children: [/* @__PURE__ */ _(p, { className: "h-5 w-5 text-
|
|
362
|
-
className: "font-medium text-
|
|
361
|
+
children: [/* @__PURE__ */ _(p, { className: "h-5 w-5 text-accent-blue" }), /* @__PURE__ */ _("span", {
|
|
362
|
+
className: "font-medium text-text-primary",
|
|
363
363
|
children: "Pickup Service"
|
|
364
364
|
})]
|
|
365
365
|
}), /* @__PURE__ */ _("button", {
|
|
366
366
|
type: "button",
|
|
367
367
|
onClick: () => B("pickup", "enabled", !j.pickup.enabled),
|
|
368
|
-
className: t("h-6 w-11 rounded-full transition-colors relative", j.pickup.enabled ? "bg-blue-
|
|
368
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", j.pickup.enabled ? "bg-accent-blue-subtle" : "bg-muted-foreground/30"),
|
|
369
369
|
children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", j.pickup.enabled ? "translate-x-5" : "translate-x-0.5") })
|
|
370
370
|
})]
|
|
371
371
|
}), j.pickup.enabled && /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
372
|
-
className: "block text-sm font-medium text-
|
|
372
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
373
373
|
children: "Preparation Time (minutes)"
|
|
374
374
|
}), /* @__PURE__ */ _("input", {
|
|
375
375
|
type: "number",
|
|
376
376
|
value: j.pickup.preparationTime,
|
|
377
377
|
onChange: (e) => B("pickup", "preparationTime", parseInt(e.target.value) || 0),
|
|
378
|
-
className: "w-full sm:w-32 rounded-md border border-border bg-
|
|
378
|
+
className: "w-full sm:w-32 rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
379
379
|
})] })]
|
|
380
380
|
}),
|
|
381
381
|
/* @__PURE__ */ v("div", {
|
|
382
|
-
className: "border border-border rounded-lg p-4",
|
|
382
|
+
className: "border border-border-subtle rounded-lg p-4",
|
|
383
383
|
children: [/* @__PURE__ */ v("div", {
|
|
384
384
|
className: "flex items-center justify-between mb-4",
|
|
385
385
|
children: [/* @__PURE__ */ v("div", {
|
|
386
386
|
className: "flex items-center gap-2",
|
|
387
|
-
children: [/* @__PURE__ */ _(h, { className: "h-5 w-5 text-
|
|
388
|
-
className: "font-medium text-
|
|
387
|
+
children: [/* @__PURE__ */ _(h, { className: "h-5 w-5 text-status-success-text" }), /* @__PURE__ */ _("span", {
|
|
388
|
+
className: "font-medium text-text-primary",
|
|
389
389
|
children: "Delivery Service"
|
|
390
390
|
})]
|
|
391
391
|
}), /* @__PURE__ */ _("button", {
|
|
392
392
|
type: "button",
|
|
393
393
|
onClick: () => B("delivery", "enabled", !j.delivery.enabled),
|
|
394
|
-
className: t("h-6 w-11 rounded-full transition-colors relative", j.delivery.enabled ? "bg-blue-
|
|
394
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", j.delivery.enabled ? "bg-accent-blue-subtle" : "bg-muted-foreground/30"),
|
|
395
395
|
children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", j.delivery.enabled ? "translate-x-5" : "translate-x-0.5") })
|
|
396
396
|
})]
|
|
397
397
|
}), j.delivery.enabled && /* @__PURE__ */ v("div", {
|
|
398
398
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
399
399
|
children: [
|
|
400
400
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
401
|
-
className: "block text-sm font-medium text-
|
|
401
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
402
402
|
children: "Delivery Radius (km)"
|
|
403
403
|
}), /* @__PURE__ */ _("input", {
|
|
404
404
|
type: "number",
|
|
405
405
|
value: j.delivery.deliveryRadius,
|
|
406
406
|
onChange: (e) => B("delivery", "deliveryRadius", parseInt(e.target.value) || 0),
|
|
407
|
-
className: "w-full rounded-md border border-border bg-
|
|
407
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
408
408
|
})] }),
|
|
409
409
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
410
|
-
className: "block text-sm font-medium text-
|
|
410
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
411
411
|
children: "Delivery Fee (₹)"
|
|
412
412
|
}), /* @__PURE__ */ _("input", {
|
|
413
413
|
type: "number",
|
|
414
414
|
value: j.delivery.deliveryFee,
|
|
415
415
|
onChange: (e) => B("delivery", "deliveryFee", parseInt(e.target.value) || 0),
|
|
416
|
-
className: "w-full rounded-md border border-border bg-
|
|
416
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
417
417
|
})] }),
|
|
418
418
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
419
|
-
className: "block text-sm font-medium text-
|
|
419
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
420
420
|
children: "Minimum Order (₹)"
|
|
421
421
|
}), /* @__PURE__ */ _("input", {
|
|
422
422
|
type: "number",
|
|
423
423
|
value: j.delivery.minimumOrderValue,
|
|
424
424
|
onChange: (e) => B("delivery", "minimumOrderValue", parseInt(e.target.value) || 0),
|
|
425
|
-
className: "w-full rounded-md border border-border bg-
|
|
425
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
426
426
|
})] })
|
|
427
427
|
]
|
|
428
428
|
})]
|
|
429
429
|
}),
|
|
430
430
|
/* @__PURE__ */ v("div", {
|
|
431
|
-
className: "border border-border rounded-lg p-4",
|
|
431
|
+
className: "border border-border-subtle rounded-lg p-4",
|
|
432
432
|
children: [/* @__PURE__ */ v("div", {
|
|
433
433
|
className: "flex items-center justify-between mb-4",
|
|
434
434
|
children: [/* @__PURE__ */ v("div", {
|
|
435
435
|
className: "flex items-center gap-2",
|
|
436
|
-
children: [/* @__PURE__ */ _(a, { className: "h-5 w-5 text-
|
|
437
|
-
className: "font-medium text-
|
|
436
|
+
children: [/* @__PURE__ */ _(a, { className: "h-5 w-5 text-accent-orange" }), /* @__PURE__ */ _("span", {
|
|
437
|
+
className: "font-medium text-text-primary",
|
|
438
438
|
children: "Scheduled Stop Service"
|
|
439
439
|
})]
|
|
440
440
|
}), /* @__PURE__ */ _("button", {
|
|
441
441
|
type: "button",
|
|
442
442
|
onClick: () => B("scheduledStop", "enabled", !j.scheduledStop.enabled),
|
|
443
|
-
className: t("h-6 w-11 rounded-full transition-colors relative", j.scheduledStop.enabled ? "bg-blue-
|
|
443
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", j.scheduledStop.enabled ? "bg-accent-blue-subtle" : "bg-muted-foreground/30"),
|
|
444
444
|
children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", j.scheduledStop.enabled ? "translate-x-5" : "translate-x-0.5") })
|
|
445
445
|
})]
|
|
446
446
|
}), j.scheduledStop.enabled && /* @__PURE__ */ v("div", {
|
|
@@ -449,156 +449,156 @@ var y = [
|
|
|
449
449
|
/* @__PURE__ */ v("div", {
|
|
450
450
|
className: "flex items-center justify-between",
|
|
451
451
|
children: [/* @__PURE__ */ _("span", {
|
|
452
|
-
className: "text-sm text-
|
|
452
|
+
className: "text-sm text-text-secondary",
|
|
453
453
|
children: "Configure locations and times where your cart will be available"
|
|
454
454
|
}), /* @__PURE__ */ v("button", {
|
|
455
455
|
type: "button",
|
|
456
456
|
onClick: H,
|
|
457
|
-
className: "inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-sm text-
|
|
457
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-sm text-text-primary hover:bg-bg-sunken transition-colors",
|
|
458
458
|
children: [/* @__PURE__ */ _(u, { className: "h-4 w-4" }), "Add Stop"]
|
|
459
459
|
})]
|
|
460
460
|
}),
|
|
461
461
|
j.scheduledStop.stops.map((e) => /* @__PURE__ */ v("div", {
|
|
462
|
-
className: "border border-border rounded-lg p-4 bg-
|
|
462
|
+
className: "border border-border-subtle rounded-lg p-4 bg-bg-sunken/50",
|
|
463
463
|
children: [
|
|
464
464
|
/* @__PURE__ */ v("div", {
|
|
465
465
|
className: "flex items-center justify-between mb-3",
|
|
466
466
|
children: [/* @__PURE__ */ _("h4", {
|
|
467
|
-
className: "font-medium text-
|
|
467
|
+
className: "font-medium text-text-primary text-sm",
|
|
468
468
|
children: "Stop Configuration"
|
|
469
469
|
}), /* @__PURE__ */ v("button", {
|
|
470
470
|
type: "button",
|
|
471
471
|
onClick: () => U(e.id),
|
|
472
|
-
className: "inline-flex items-center gap-1 rounded-md bg-
|
|
472
|
+
className: "inline-flex items-center gap-1 rounded-md bg-status-error-bg-subtle/10 px-2 py-1 text-xs text-status-error-text hover:bg-status-error-bg-subtle/20 transition-colors",
|
|
473
473
|
children: [/* @__PURE__ */ _(m, { className: "h-3.5 w-3.5" }), "Remove"]
|
|
474
474
|
})]
|
|
475
475
|
}),
|
|
476
476
|
/* @__PURE__ */ v("div", {
|
|
477
477
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",
|
|
478
478
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
479
|
-
className: "block text-xs font-medium text-
|
|
479
|
+
className: "block text-xs font-medium text-text-primary mb-1",
|
|
480
480
|
children: "Stop Name"
|
|
481
481
|
}), /* @__PURE__ */ _("input", {
|
|
482
482
|
type: "text",
|
|
483
483
|
value: e.name,
|
|
484
484
|
onChange: (t) => W(e.id, "name", t.target.value),
|
|
485
485
|
placeholder: "e.g., Tech Park Morning",
|
|
486
|
-
className: "w-full rounded-md border border-border bg-
|
|
486
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary"
|
|
487
487
|
})] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
488
|
-
className: "block text-xs font-medium text-
|
|
488
|
+
className: "block text-xs font-medium text-text-primary mb-1",
|
|
489
489
|
children: "Address"
|
|
490
490
|
}), /* @__PURE__ */ _("input", {
|
|
491
491
|
type: "text",
|
|
492
492
|
value: e.address,
|
|
493
493
|
onChange: (t) => W(e.id, "address", t.target.value),
|
|
494
494
|
placeholder: "Full address",
|
|
495
|
-
className: "w-full rounded-md border border-border bg-
|
|
495
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary"
|
|
496
496
|
})] })]
|
|
497
497
|
}),
|
|
498
498
|
/* @__PURE__ */ v("div", {
|
|
499
499
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",
|
|
500
500
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
501
|
-
className: "block text-xs font-medium text-
|
|
501
|
+
className: "block text-xs font-medium text-text-primary mb-1",
|
|
502
502
|
children: "Arrival Time"
|
|
503
503
|
}), /* @__PURE__ */ _("input", {
|
|
504
504
|
type: "time",
|
|
505
505
|
value: e.arrivalTime,
|
|
506
506
|
onChange: (t) => W(e.id, "arrivalTime", t.target.value),
|
|
507
|
-
className: "w-full rounded-md border border-border bg-
|
|
507
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
508
508
|
})] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
509
|
-
className: "block text-xs font-medium text-
|
|
509
|
+
className: "block text-xs font-medium text-text-primary mb-1",
|
|
510
510
|
children: "Departure Time"
|
|
511
511
|
}), /* @__PURE__ */ _("input", {
|
|
512
512
|
type: "time",
|
|
513
513
|
value: e.departureTime,
|
|
514
514
|
onChange: (t) => W(e.id, "departureTime", t.target.value),
|
|
515
|
-
className: "w-full rounded-md border border-border bg-
|
|
515
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
516
516
|
})] })]
|
|
517
517
|
}),
|
|
518
518
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
519
|
-
className: "block text-xs font-medium text-
|
|
519
|
+
className: "block text-xs font-medium text-text-primary mb-2",
|
|
520
520
|
children: "Days of Week"
|
|
521
521
|
}), /* @__PURE__ */ _("div", {
|
|
522
522
|
className: "flex flex-wrap gap-1.5",
|
|
523
523
|
children: b.map((n) => /* @__PURE__ */ _("button", {
|
|
524
524
|
type: "button",
|
|
525
525
|
onClick: () => G(e.id, n),
|
|
526
|
-
className: t("px-3 py-1 rounded-full text-xs font-medium transition-colors", e.daysOfWeek.includes(n) ? "bg-blue-
|
|
526
|
+
className: t("px-3 py-1 rounded-full text-xs font-medium transition-colors", e.daysOfWeek.includes(n) ? "bg-accent-blue-subtle text-white" : "bg-bg-sunken text-text-secondary hover:bg-muted-foreground/20"),
|
|
527
527
|
children: x[n]
|
|
528
528
|
}, n))
|
|
529
529
|
})] })
|
|
530
530
|
]
|
|
531
531
|
}, e.id)),
|
|
532
532
|
j.scheduledStop.stops.length === 0 && /* @__PURE__ */ _("div", {
|
|
533
|
-
className: "text-center py-6 text-sm text-
|
|
534
|
-
children: "No scheduled stops configured. Click
|
|
533
|
+
className: "text-center py-6 text-sm text-text-secondary",
|
|
534
|
+
children: "No scheduled stops configured. Click\"Add Stop\" to create one."
|
|
535
535
|
})
|
|
536
536
|
]
|
|
537
537
|
})]
|
|
538
538
|
}),
|
|
539
539
|
/* @__PURE__ */ v("div", {
|
|
540
|
-
className: "border border-border rounded-lg p-4",
|
|
540
|
+
className: "border border-border-subtle rounded-lg p-4",
|
|
541
541
|
children: [/* @__PURE__ */ v("div", {
|
|
542
542
|
className: "flex items-center justify-between mb-4",
|
|
543
543
|
children: [/* @__PURE__ */ v("div", {
|
|
544
544
|
className: "flex items-center gap-2",
|
|
545
|
-
children: [/* @__PURE__ */ _(c, { className: "h-5 w-5 text-
|
|
546
|
-
className: "font-medium text-
|
|
545
|
+
children: [/* @__PURE__ */ _(c, { className: "h-5 w-5 text-accent-purple" }), /* @__PURE__ */ _("span", {
|
|
546
|
+
className: "font-medium text-text-primary",
|
|
547
547
|
children: "Direct Service"
|
|
548
548
|
})]
|
|
549
549
|
}), /* @__PURE__ */ _("button", {
|
|
550
550
|
type: "button",
|
|
551
551
|
onClick: () => B("directService", "enabled", !j.directService.enabled),
|
|
552
|
-
className: t("h-6 w-11 rounded-full transition-colors relative", j.directService.enabled ? "bg-blue-
|
|
552
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", j.directService.enabled ? "bg-accent-blue-subtle" : "bg-muted-foreground/30"),
|
|
553
553
|
children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", j.directService.enabled ? "translate-x-5" : "translate-x-0.5") })
|
|
554
554
|
})]
|
|
555
555
|
}), j.directService.enabled && /* @__PURE__ */ v("div", {
|
|
556
556
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
557
557
|
children: [
|
|
558
558
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
559
|
-
className: "block text-sm font-medium text-
|
|
559
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
560
560
|
children: "Service Fee (₹)"
|
|
561
561
|
}), /* @__PURE__ */ _("input", {
|
|
562
562
|
type: "number",
|
|
563
563
|
value: j.directService.config.serviceFee,
|
|
564
564
|
onChange: (e) => V("serviceFee", parseInt(e.target.value) || 0),
|
|
565
|
-
className: "w-full rounded-md border border-border bg-
|
|
565
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
566
566
|
})] }),
|
|
567
567
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
568
|
-
className: "block text-sm font-medium text-
|
|
568
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
569
569
|
children: "Minimum Advance Payment (₹)"
|
|
570
570
|
}), /* @__PURE__ */ _("input", {
|
|
571
571
|
type: "number",
|
|
572
572
|
value: j.directService.config.minimumAdvancePayment,
|
|
573
573
|
onChange: (e) => V("minimumAdvancePayment", parseInt(e.target.value) || 0),
|
|
574
|
-
className: "w-full rounded-md border border-border bg-
|
|
574
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
575
575
|
})] }),
|
|
576
576
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
577
|
-
className: "block text-sm font-medium text-
|
|
577
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
578
578
|
children: "Service Radius (km)"
|
|
579
579
|
}), /* @__PURE__ */ _("input", {
|
|
580
580
|
type: "number",
|
|
581
581
|
value: j.directService.config.serviceRadius,
|
|
582
582
|
onChange: (e) => V("serviceRadius", parseInt(e.target.value) || 0),
|
|
583
|
-
className: "w-full rounded-md border border-border bg-
|
|
583
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
584
584
|
})] }),
|
|
585
585
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
586
|
-
className: "block text-sm font-medium text-
|
|
586
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
587
587
|
children: "Estimated Arrival Time (min)"
|
|
588
588
|
}), /* @__PURE__ */ _("input", {
|
|
589
589
|
type: "number",
|
|
590
590
|
value: j.directService.config.estimatedArrivalTime,
|
|
591
591
|
onChange: (e) => V("estimatedArrivalTime", parseInt(e.target.value) || 0),
|
|
592
|
-
className: "w-full rounded-md border border-border bg-
|
|
592
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
593
593
|
})] }),
|
|
594
594
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
595
|
-
className: "block text-sm font-medium text-
|
|
595
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
596
596
|
children: "Minimum Order Value (₹)"
|
|
597
597
|
}), /* @__PURE__ */ _("input", {
|
|
598
598
|
type: "number",
|
|
599
599
|
value: j.directService.config.minimumOrderValue,
|
|
600
600
|
onChange: (e) => V("minimumOrderValue", parseInt(e.target.value) || 0),
|
|
601
|
-
className: "w-full rounded-md border border-border bg-
|
|
601
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
602
602
|
})] })
|
|
603
603
|
]
|
|
604
604
|
})]
|
|
@@ -611,13 +611,13 @@ var y = [
|
|
|
611
611
|
children: [/* @__PURE__ */ _("button", {
|
|
612
612
|
type: "button",
|
|
613
613
|
onClick: () => w("/cart-owner/dashboard"),
|
|
614
|
-
className: "rounded-md border border-border px-4 py-2 text-sm font-medium text-
|
|
614
|
+
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
615
615
|
children: "Cancel"
|
|
616
616
|
}), /* @__PURE__ */ _("button", {
|
|
617
617
|
type: "button",
|
|
618
618
|
onClick: q,
|
|
619
619
|
disabled: N,
|
|
620
|
-
className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", N ? "bg-
|
|
620
|
+
className: t("inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", N ? "bg-bg-sunken text-text-secondary cursor-not-allowed" : "bg-accent text-text-primary hover:bg-accent/80"),
|
|
621
621
|
children: N ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, { className: "h-4 w-4" }), "Save Configuration"] })
|
|
622
622
|
})]
|
|
623
623
|
})
|