@burdenoff/microfe-labsofscience 2026.625.1 → 2026.626.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/labsofscience/pages/HomePage.js +33 -28
- package/dist/labsofscience/pages/HomePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +67 -61
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +76 -44
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +38 -32
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +226 -221
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +127 -125
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +489 -487
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +124 -119
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +267 -262
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +46 -41
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +172 -167
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +79 -48
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +98 -93
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +112 -107
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +298 -300
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +221 -223
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +251 -245
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +284 -285
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +48 -42
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +745 -736
- package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +399 -356
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +262 -230
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +162 -151
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +213 -215
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +416 -381
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +521 -512
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +57 -51
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +56 -50
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +310 -274
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +81 -75
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +68 -62
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +61 -55
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +92 -60
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +237 -231
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +60 -54
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +342 -307
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +106 -100
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +51 -45
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +386 -381
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +359 -319
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +90 -59
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +76 -71
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +82 -77
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +348 -340
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { EmptyState as r } from "../../components/EmptyState.js";
|
|
5
|
+
import { formatCurrency as i } from "../../utils/formatters.js";
|
|
6
|
+
import { mockProducts as ee } from "../../mocks/data.js";
|
|
6
7
|
import { useMemo as a, useState as o } from "react";
|
|
7
|
-
import { AlertCircle as
|
|
8
|
-
import { Fragment as
|
|
8
|
+
import { AlertCircle as te, CheckCircle2 as s, Edit2 as ne, Package as c, Plus as l, Search as u, Trash2 as d, Upload as re, X as ie } from "lucide-react";
|
|
9
|
+
import { Fragment as ae, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as oe, PagePurpose as m } from "@burdenoff/fe-libs/ui";
|
|
9
11
|
//#region src/labsofscience/pages/cart-owner/InventoryManagementPage.tsx
|
|
10
|
-
var
|
|
12
|
+
var h = [
|
|
11
13
|
"Service",
|
|
12
14
|
"Repair",
|
|
13
15
|
"Beauty",
|
|
@@ -16,7 +18,7 @@ var d = [
|
|
|
16
18
|
"Health",
|
|
17
19
|
"Wellness",
|
|
18
20
|
"Education"
|
|
19
|
-
],
|
|
21
|
+
], g = (e) => h.some((t) => e.includes(t)), _ = (e) => e === "Food & Beverage", v = [
|
|
20
22
|
10,
|
|
21
23
|
25,
|
|
22
24
|
0,
|
|
@@ -37,18 +39,18 @@ var d = [
|
|
|
37
39
|
22,
|
|
38
40
|
0,
|
|
39
41
|
45
|
|
40
|
-
],
|
|
42
|
+
], se = () => ee.slice(0, 20).map((e, t) => ({
|
|
41
43
|
id: e.id,
|
|
42
44
|
name: e.name,
|
|
43
45
|
description: e.description ?? `${e.name} - quality offering from ${e.cartName}`,
|
|
44
46
|
price: e.price,
|
|
45
47
|
originalPrice: t % 4 == 0 ? Math.round(e.price * 1.2) : void 0,
|
|
46
48
|
category: e.category,
|
|
47
|
-
stock:
|
|
49
|
+
stock: v[t] ?? 10,
|
|
48
50
|
isAvailable: t !== 2 && t !== 9 && t !== 18,
|
|
49
51
|
cartName: e.cartName,
|
|
50
52
|
preparationTime: 15,
|
|
51
|
-
calories:
|
|
53
|
+
calories: _(e.category) ? Math.floor(Math.random() * 400) + 100 : 0,
|
|
52
54
|
isVegetarian: t % 3 == 0,
|
|
53
55
|
isVegan: t % 5 == 0,
|
|
54
56
|
isGlutenFree: t % 7 == 0,
|
|
@@ -63,16 +65,16 @@ var d = [
|
|
|
63
65
|
"trending",
|
|
64
66
|
"new"
|
|
65
67
|
].slice(0, t % 3 + 1),
|
|
66
|
-
allergens:
|
|
67
|
-
duration:
|
|
68
|
-
serviceType:
|
|
68
|
+
allergens: _(e.category) ? ["nuts", "dairy"].slice(0, t % 2 + 1) : [],
|
|
69
|
+
duration: g(e.category) ? 30 + t * 5 : 0,
|
|
70
|
+
serviceType: g(e.category) ? [
|
|
69
71
|
"instant",
|
|
70
72
|
"appointment",
|
|
71
73
|
"recurring",
|
|
72
74
|
"consultation"
|
|
73
75
|
][t % 4] : "",
|
|
74
|
-
requirements:
|
|
75
|
-
})),
|
|
76
|
+
requirements: g(e.category) ? ["advance booking"] : []
|
|
77
|
+
})), y = {
|
|
76
78
|
name: "",
|
|
77
79
|
description: "",
|
|
78
80
|
category: "",
|
|
@@ -91,14 +93,14 @@ var d = [
|
|
|
91
93
|
duration: 30,
|
|
92
94
|
serviceType: "instant",
|
|
93
95
|
requirements: []
|
|
94
|
-
},
|
|
95
|
-
let { navigateTo:
|
|
96
|
-
let e = [...
|
|
97
|
-
if (
|
|
98
|
-
let t =
|
|
96
|
+
}, b = () => {
|
|
97
|
+
let { navigateTo: ee } = e(), [h, v] = o(se), [b, x] = o(""), [S, C] = o(""), [w, T] = o(""), [E, D] = o("name"), [ce, le] = o(!1), [O, k] = o(!1), [A, j] = o(null), [M, N] = o(y), [P, F] = o(""), [I, L] = o(""), [R, z] = o(""), [B, V] = o(null), H = a(() => [...new Set(h.map((e) => e.category))].sort(), [h]), U = a(() => {
|
|
98
|
+
let e = [...h];
|
|
99
|
+
if (b) {
|
|
100
|
+
let t = b.toLowerCase();
|
|
99
101
|
e = e.filter((e) => e.name.toLowerCase().includes(t) || e.description.toLowerCase().includes(t) || e.category.toLowerCase().includes(t) || e.tags.some((e) => e.toLowerCase().includes(t)));
|
|
100
102
|
}
|
|
101
|
-
switch (
|
|
103
|
+
switch (S && (e = e.filter((e) => e.category === S)), w === "available" ? e = e.filter((e) => e.isAvailable) : w === "unavailable" && (e = e.filter((e) => !e.isAvailable)), E) {
|
|
102
104
|
case "name":
|
|
103
105
|
e.sort((e, t) => e.name.localeCompare(t.name));
|
|
104
106
|
break;
|
|
@@ -114,23 +116,23 @@ var d = [
|
|
|
114
116
|
}
|
|
115
117
|
return e;
|
|
116
118
|
}, [
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
]),
|
|
123
|
-
|
|
119
|
+
h,
|
|
120
|
+
b,
|
|
121
|
+
S,
|
|
122
|
+
w,
|
|
123
|
+
E
|
|
124
|
+
]), ue = h.length, de = h.filter((e) => e.isAvailable).length, fe = h.filter((e) => !g(e.category) && e.stock === 0).length, pe = h.filter((e) => !g(e.category) && e.stock > 0 && e.stock < 10).length, W = (e, t) => {
|
|
125
|
+
V({
|
|
124
126
|
text: e,
|
|
125
127
|
type: t
|
|
126
|
-
}), setTimeout(() =>
|
|
128
|
+
}), setTimeout(() => V(null), 3e3);
|
|
127
129
|
}, G = () => {
|
|
128
|
-
|
|
129
|
-
...
|
|
130
|
-
category:
|
|
131
|
-
}),
|
|
130
|
+
j(null), N({
|
|
131
|
+
...y,
|
|
132
|
+
category: H[0] || ""
|
|
133
|
+
}), F(""), L(""), z(""), k(!0);
|
|
132
134
|
}, K = (e) => {
|
|
133
|
-
|
|
135
|
+
j(e), N({
|
|
134
136
|
name: e.name,
|
|
135
137
|
description: e.description,
|
|
136
138
|
category: e.category,
|
|
@@ -149,16 +151,16 @@ var d = [
|
|
|
149
151
|
duration: e.duration,
|
|
150
152
|
serviceType: e.serviceType,
|
|
151
153
|
requirements: e.requirements
|
|
152
|
-
}),
|
|
153
|
-
},
|
|
154
|
-
if (!
|
|
154
|
+
}), F(e.tags.join(", ")), L(e.allergens.join(", ")), z(e.requirements.join(", ")), k(!0);
|
|
155
|
+
}, me = () => {
|
|
156
|
+
if (!M.name || !M.description || !M.category || M.price <= 0) {
|
|
155
157
|
W("Please fill all required fields (name, description, category, price > 0)", "error");
|
|
156
158
|
return;
|
|
157
159
|
}
|
|
158
|
-
let e =
|
|
159
|
-
if (
|
|
160
|
+
let e = P.split(",").map((e) => e.trim()).filter(Boolean), t = I.split(",").map((e) => e.trim()).filter(Boolean), n = R.split(",").map((e) => e.trim()).filter(Boolean), r = g(M.category) ? "Service" : "Product";
|
|
161
|
+
if (A) v((r) => r.map((r) => r.id === A.id ? {
|
|
160
162
|
...r,
|
|
161
|
-
...
|
|
163
|
+
...M,
|
|
162
164
|
tags: e,
|
|
163
165
|
allergens: t,
|
|
164
166
|
requirements: n
|
|
@@ -166,33 +168,33 @@ var d = [
|
|
|
166
168
|
else {
|
|
167
169
|
let i = {
|
|
168
170
|
id: `item-${Date.now()}`,
|
|
169
|
-
...
|
|
171
|
+
...M,
|
|
170
172
|
tags: e,
|
|
171
173
|
allergens: t,
|
|
172
174
|
requirements: n,
|
|
173
175
|
cartName: "Dosa Express"
|
|
174
176
|
};
|
|
175
|
-
|
|
177
|
+
v((e) => [i, ...e]), W(`${r} added successfully`, "success");
|
|
176
178
|
}
|
|
177
|
-
|
|
179
|
+
k(!1);
|
|
178
180
|
}, q = (e) => {
|
|
179
|
-
confirm("Are you sure you want to delete this offering?") && (
|
|
181
|
+
confirm("Are you sure you want to delete this offering?") && (v((t) => t.filter((t) => t.id !== e)), W("Offering deleted successfully", "success"));
|
|
180
182
|
}, J = (e, t) => {
|
|
181
|
-
|
|
183
|
+
v((n) => n.map((n) => n.id === e ? {
|
|
182
184
|
...n,
|
|
183
185
|
isAvailable: t
|
|
184
186
|
} : n)), W(`Offering ${t ? "enabled" : "disabled"} successfully`, "success");
|
|
185
187
|
}, Y = (e) => {
|
|
186
|
-
let t = e === "enable", n =
|
|
188
|
+
let t = e === "enable", n = h.filter((e) => e.isAvailable !== t).length;
|
|
187
189
|
if (n === 0) {
|
|
188
190
|
W(`No offerings to ${e}`, "error");
|
|
189
191
|
return;
|
|
190
192
|
}
|
|
191
|
-
|
|
193
|
+
v((e) => e.map((e) => ({
|
|
192
194
|
...e,
|
|
193
195
|
isAvailable: t
|
|
194
196
|
}))), W(`${n} offerings ${e}d successfully`, "success");
|
|
195
|
-
}, X = (e) =>
|
|
197
|
+
}, X = (e) => g(e.category) ? {
|
|
196
198
|
color: "text-status-success-text",
|
|
197
199
|
label: "Available"
|
|
198
200
|
} : e.stock === 0 ? {
|
|
@@ -204,165 +206,169 @@ var d = [
|
|
|
204
206
|
} : {
|
|
205
207
|
color: "text-status-success-text",
|
|
206
208
|
label: `In Stock (${e.stock})`
|
|
207
|
-
}, Z =
|
|
208
|
-
return /* @__PURE__ */
|
|
209
|
+
}, Z = M.category ? g(M.category) : !1, he = M.category ? _(M.category) : !1, Q = !Z && he, $ = M.name && M.description && M.category && M.price > 0 && (!Z || M.duration && M.duration > 0) && (Z || M.stock >= 0);
|
|
210
|
+
return /* @__PURE__ */ p(n, {
|
|
209
211
|
title: "Offerings Management",
|
|
210
212
|
description: "Manage your products and services",
|
|
211
|
-
actions: /* @__PURE__ */
|
|
213
|
+
actions: /* @__PURE__ */ p("button", {
|
|
212
214
|
type: "button",
|
|
213
215
|
onClick: G,
|
|
214
216
|
className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
215
|
-
children: [/* @__PURE__ */ l
|
|
217
|
+
children: [/* @__PURE__ */ f(l, { className: "h-4 w-4" }), "Add Item"]
|
|
216
218
|
}),
|
|
217
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ p("div", {
|
|
218
220
|
className: "space-y-4",
|
|
219
221
|
children: [
|
|
220
|
-
|
|
221
|
-
className: t("flex items-center gap-2 rounded-lg border p-3",
|
|
222
|
-
children: [
|
|
223
|
-
className: t("text-sm font-medium",
|
|
224
|
-
children:
|
|
222
|
+
B && /* @__PURE__ */ p("div", {
|
|
223
|
+
className: t("flex items-center gap-2 rounded-lg border p-3", B.type === "success" ? "border-status-success-border bg-status-success-bg-subtle" : "border-status-error-border bg-status-error-bg-subtle"),
|
|
224
|
+
children: [B.type === "success" ? /* @__PURE__ */ f(s, { className: "h-4 w-4 text-status-success-text" }) : /* @__PURE__ */ f(te, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ f("span", {
|
|
225
|
+
className: t("text-sm font-medium", B.type === "success" ? "text-status-success-text" : "text-status-error-text"),
|
|
226
|
+
children: B.text
|
|
225
227
|
})]
|
|
226
228
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ f(m, {
|
|
230
|
+
icon: /* @__PURE__ */ f(c, { className: "h-4 w-4" }),
|
|
231
|
+
children: "Your catalogue lives here. Add the products and services your cart sells, set prices and stock, mark items available or out of stock, and flag dietary info — keeping this list accurate is what lets customers find and order the right things from you."
|
|
232
|
+
}),
|
|
233
|
+
/* @__PURE__ */ p(oe, {
|
|
228
234
|
className: "grid grid-cols-2 lg:grid-cols-4 gap-3",
|
|
229
235
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ p("div", {
|
|
231
237
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
238
|
+
children: [/* @__PURE__ */ f("p", {
|
|
233
239
|
className: "text-xs text-text-secondary",
|
|
234
240
|
children: "Total Items"
|
|
235
|
-
}), /* @__PURE__ */
|
|
241
|
+
}), /* @__PURE__ */ f("p", {
|
|
236
242
|
className: "text-2xl font-bold text-text-primary",
|
|
237
|
-
children:
|
|
243
|
+
children: ue
|
|
238
244
|
})]
|
|
239
245
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ p("div", {
|
|
241
247
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
|
|
242
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ f("p", {
|
|
243
249
|
className: "text-xs text-text-secondary",
|
|
244
250
|
children: "Available"
|
|
245
|
-
}), /* @__PURE__ */
|
|
251
|
+
}), /* @__PURE__ */ f("p", {
|
|
246
252
|
className: "text-2xl font-bold text-status-success-text",
|
|
247
|
-
children:
|
|
253
|
+
children: de
|
|
248
254
|
})]
|
|
249
255
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ p("div", {
|
|
251
257
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ f("p", {
|
|
253
259
|
className: "text-xs text-text-secondary",
|
|
254
260
|
children: "Out of Stock"
|
|
255
|
-
}), /* @__PURE__ */
|
|
261
|
+
}), /* @__PURE__ */ f("p", {
|
|
256
262
|
className: "text-2xl font-bold text-status-error-text",
|
|
257
|
-
children:
|
|
263
|
+
children: fe
|
|
258
264
|
})]
|
|
259
265
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ p("div", {
|
|
261
267
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ f("p", {
|
|
263
269
|
className: "text-xs text-text-secondary",
|
|
264
270
|
children: "Low Stock"
|
|
265
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), /* @__PURE__ */ f("p", {
|
|
266
272
|
className: "text-2xl font-bold text-status-warning-text",
|
|
267
|
-
children:
|
|
273
|
+
children: pe
|
|
268
274
|
})]
|
|
269
275
|
})
|
|
270
276
|
]
|
|
271
277
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ p("div", {
|
|
273
279
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm space-y-4",
|
|
274
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ p("div", {
|
|
275
281
|
className: "flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3",
|
|
276
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ p("div", {
|
|
277
283
|
className: "flex flex-wrap gap-2",
|
|
278
284
|
children: [
|
|
279
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ p("button", {
|
|
280
286
|
type: "button",
|
|
281
287
|
onClick: G,
|
|
282
288
|
className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
283
|
-
children: [/* @__PURE__ */ l
|
|
289
|
+
children: [/* @__PURE__ */ f(l, { className: "h-4 w-4" }), "Add Item"]
|
|
284
290
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ f("button", {
|
|
286
292
|
type: "button",
|
|
287
293
|
onClick: () => Y("enable"),
|
|
288
294
|
className: "rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken transition-colors",
|
|
289
295
|
children: "Enable All"
|
|
290
296
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ f("button", {
|
|
292
298
|
type: "button",
|
|
293
299
|
onClick: () => Y("disable"),
|
|
294
300
|
className: "rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken transition-colors",
|
|
295
301
|
children: "Disable All"
|
|
296
302
|
})
|
|
297
303
|
]
|
|
298
|
-
}), /* @__PURE__ */
|
|
304
|
+
}), /* @__PURE__ */ p("button", {
|
|
299
305
|
type: "button",
|
|
300
306
|
onClick: () => alert("Import/Export feature coming soon!"),
|
|
301
307
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-seam px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken transition-colors",
|
|
302
|
-
children: [/* @__PURE__ */
|
|
308
|
+
children: [/* @__PURE__ */ f(re, { className: "h-4 w-4" }), "Import/Export"]
|
|
303
309
|
})]
|
|
304
|
-
}), /* @__PURE__ */
|
|
310
|
+
}), /* @__PURE__ */ p("div", {
|
|
305
311
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",
|
|
306
312
|
children: [
|
|
307
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ p("div", {
|
|
308
314
|
className: "relative sm:col-span-2 lg:col-span-1",
|
|
309
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ f(u, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ f("input", {
|
|
310
316
|
type: "text",
|
|
311
317
|
placeholder: "Search offerings...",
|
|
312
|
-
value:
|
|
313
|
-
onChange: (e) =>
|
|
318
|
+
value: b,
|
|
319
|
+
onChange: (e) => x(e.target.value),
|
|
314
320
|
className: "w-full rounded-md border border-border-seam bg-bg-surface pl-10 pr-4 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
315
321
|
})]
|
|
316
322
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
value:
|
|
319
|
-
onChange: (e) =>
|
|
323
|
+
/* @__PURE__ */ p("select", {
|
|
324
|
+
value: S,
|
|
325
|
+
onChange: (e) => C(e.target.value),
|
|
320
326
|
className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
327
|
+
children: [/* @__PURE__ */ f("option", {
|
|
322
328
|
value: "",
|
|
323
329
|
children: "All Categories"
|
|
324
|
-
}),
|
|
330
|
+
}), H.map((e) => /* @__PURE__ */ f("option", {
|
|
325
331
|
value: e,
|
|
326
332
|
children: e
|
|
327
333
|
}, e))]
|
|
328
334
|
}),
|
|
329
|
-
/* @__PURE__ */
|
|
330
|
-
value:
|
|
331
|
-
onChange: (e) =>
|
|
335
|
+
/* @__PURE__ */ p("select", {
|
|
336
|
+
value: w,
|
|
337
|
+
onChange: (e) => T(e.target.value),
|
|
332
338
|
className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
333
339
|
children: [
|
|
334
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ f("option", {
|
|
335
341
|
value: "",
|
|
336
342
|
children: "All Status"
|
|
337
343
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ f("option", {
|
|
339
345
|
value: "available",
|
|
340
346
|
children: "Available"
|
|
341
347
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ f("option", {
|
|
343
349
|
value: "unavailable",
|
|
344
350
|
children: "Unavailable"
|
|
345
351
|
})
|
|
346
352
|
]
|
|
347
353
|
}),
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
value:
|
|
350
|
-
onChange: (e) =>
|
|
354
|
+
/* @__PURE__ */ p("select", {
|
|
355
|
+
value: E,
|
|
356
|
+
onChange: (e) => D(e.target.value),
|
|
351
357
|
className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
352
358
|
children: [
|
|
353
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ f("option", {
|
|
354
360
|
value: "name",
|
|
355
361
|
children: "Name A-Z"
|
|
356
362
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ f("option", {
|
|
358
364
|
value: "price_low",
|
|
359
365
|
children: "Price: Low to High"
|
|
360
366
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ f("option", {
|
|
362
368
|
value: "price_high",
|
|
363
369
|
children: "Price: High to Low"
|
|
364
370
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ f("option", {
|
|
366
372
|
value: "stock",
|
|
367
373
|
children: "Stock: Low to High"
|
|
368
374
|
})
|
|
@@ -371,139 +377,131 @@ var d = [
|
|
|
371
377
|
]
|
|
372
378
|
})]
|
|
373
379
|
}),
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
v(""), b(""), S(""), w("name");
|
|
397
|
-
},
|
|
398
|
-
className: "rounded-md border border-border-seam px-4 py-2 text-sm text-text-primary hover:bg-bg-sunken",
|
|
399
|
-
children: "Clear Filters"
|
|
400
|
-
})]
|
|
401
|
-
})
|
|
402
|
-
]
|
|
403
|
-
}) : /* @__PURE__ */ u(se, { children: [/* @__PURE__ */ l("div", {
|
|
380
|
+
U.length === 0 ? /* @__PURE__ */ f(r, {
|
|
381
|
+
illustration: b || S || w ? "empty-search" : "empty-data",
|
|
382
|
+
icon: /* @__PURE__ */ f(c, { className: "h-12 w-12" }),
|
|
383
|
+
title: "No Items Found",
|
|
384
|
+
description: b || S || w ? "No items match your current filters. Try adjusting your search criteria." : "You haven't added any items yet. Start building your offerings!",
|
|
385
|
+
action: /* @__PURE__ */ p("div", {
|
|
386
|
+
className: "flex flex-wrap justify-center gap-3",
|
|
387
|
+
children: [/* @__PURE__ */ p("button", {
|
|
388
|
+
type: "button",
|
|
389
|
+
onClick: G,
|
|
390
|
+
className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80",
|
|
391
|
+
children: [/* @__PURE__ */ f(l, { className: "h-4 w-4" }), "Add Your First Item"]
|
|
392
|
+
}), (b || S || w) && /* @__PURE__ */ f("button", {
|
|
393
|
+
type: "button",
|
|
394
|
+
onClick: () => {
|
|
395
|
+
x(""), C(""), T(""), D("name");
|
|
396
|
+
},
|
|
397
|
+
className: "rounded-md border border-border-seam px-4 py-2 text-sm text-text-primary hover:bg-bg-sunken",
|
|
398
|
+
children: "Clear Filters"
|
|
399
|
+
})]
|
|
400
|
+
})
|
|
401
|
+
}) : /* @__PURE__ */ p(ae, { children: [/* @__PURE__ */ f("div", {
|
|
404
402
|
className: "hidden lg:block rounded-lg border border-border-seam bg-bg-surface shadow-sm overflow-hidden",
|
|
405
|
-
children: /* @__PURE__ */
|
|
403
|
+
children: /* @__PURE__ */ f("div", {
|
|
406
404
|
className: "overflow-x-auto",
|
|
407
|
-
children: /* @__PURE__ */
|
|
405
|
+
children: /* @__PURE__ */ p("table", {
|
|
408
406
|
className: "w-full text-sm",
|
|
409
|
-
children: [/* @__PURE__ */
|
|
407
|
+
children: [/* @__PURE__ */ f("thead", { children: /* @__PURE__ */ p("tr", {
|
|
410
408
|
className: "border-b border-border-seam bg-bg-sunken/50",
|
|
411
409
|
children: [
|
|
412
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ f("th", {
|
|
413
411
|
className: "px-5 py-3 text-left font-medium text-text-secondary",
|
|
414
412
|
children: "Item"
|
|
415
413
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ f("th", {
|
|
417
415
|
className: "px-5 py-3 text-left font-medium text-text-secondary",
|
|
418
416
|
children: "Category"
|
|
419
417
|
}),
|
|
420
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ f("th", {
|
|
421
419
|
className: "px-5 py-3 text-right font-medium text-text-secondary",
|
|
422
420
|
children: "Price"
|
|
423
421
|
}),
|
|
424
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ f("th", {
|
|
425
423
|
className: "px-5 py-3 text-left font-medium text-text-secondary",
|
|
426
424
|
children: "Stock/Status"
|
|
427
425
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ f("th", {
|
|
429
427
|
className: "px-5 py-3 text-center font-medium text-text-secondary",
|
|
430
428
|
children: "Available"
|
|
431
429
|
}),
|
|
432
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ f("th", {
|
|
433
431
|
className: "px-5 py-3 text-right font-medium text-text-secondary",
|
|
434
432
|
children: "Actions"
|
|
435
433
|
})
|
|
436
434
|
]
|
|
437
|
-
}) }), /* @__PURE__ */
|
|
435
|
+
}) }), /* @__PURE__ */ f("tbody", { children: U.map((e) => {
|
|
438
436
|
let n = X(e);
|
|
439
|
-
return /* @__PURE__ */
|
|
437
|
+
return /* @__PURE__ */ p("tr", {
|
|
440
438
|
className: "border-b border-border-seam last:border-0 hover:bg-bg-sunken/30 transition-colors",
|
|
441
439
|
children: [
|
|
442
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ f("td", {
|
|
443
441
|
className: "px-5 py-3",
|
|
444
|
-
children: /* @__PURE__ */
|
|
442
|
+
children: /* @__PURE__ */ p("div", {
|
|
445
443
|
className: "flex items-center gap-3",
|
|
446
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ f("div", {
|
|
447
445
|
className: "flex h-10 w-10 items-center justify-center rounded-md bg-bg-sunken",
|
|
448
|
-
children: /* @__PURE__ */
|
|
449
|
-
}), /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ f(c, { className: "h-4 w-4 text-text-secondary" })
|
|
447
|
+
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
450
448
|
className: "font-medium text-text-primary",
|
|
451
449
|
children: e.name
|
|
452
|
-
}), /* @__PURE__ */
|
|
450
|
+
}), /* @__PURE__ */ p("p", {
|
|
453
451
|
className: "text-xs text-text-secondary line-clamp-1",
|
|
454
452
|
children: [e.description.slice(0, 50), "..."]
|
|
455
453
|
})] })]
|
|
456
454
|
})
|
|
457
455
|
}),
|
|
458
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ f("td", {
|
|
459
457
|
className: "px-5 py-3",
|
|
460
|
-
children: /* @__PURE__ */
|
|
458
|
+
children: /* @__PURE__ */ f("span", {
|
|
461
459
|
className: "inline-flex rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary",
|
|
462
460
|
children: e.category
|
|
463
461
|
})
|
|
464
462
|
}),
|
|
465
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ p("td", {
|
|
466
464
|
className: "px-5 py-3 text-right",
|
|
467
|
-
children: [/* @__PURE__ */
|
|
465
|
+
children: [/* @__PURE__ */ f("p", {
|
|
468
466
|
className: "font-medium text-text-primary",
|
|
469
|
-
children:
|
|
470
|
-
}), e.originalPrice && /* @__PURE__ */
|
|
467
|
+
children: i(e.price, { minimumFractionDigits: 0 })
|
|
468
|
+
}), e.originalPrice && /* @__PURE__ */ f("p", {
|
|
471
469
|
className: "text-xs text-text-secondary line-through",
|
|
472
|
-
children:
|
|
470
|
+
children: i(e.originalPrice, { minimumFractionDigits: 0 })
|
|
473
471
|
})]
|
|
474
472
|
}),
|
|
475
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ f("td", {
|
|
476
474
|
className: "px-5 py-3",
|
|
477
|
-
children: /* @__PURE__ */
|
|
475
|
+
children: /* @__PURE__ */ f("span", {
|
|
478
476
|
className: t("text-sm font-medium", n.color),
|
|
479
477
|
children: n.label
|
|
480
478
|
})
|
|
481
479
|
}),
|
|
482
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ f("td", {
|
|
483
481
|
className: "px-5 py-3 text-center",
|
|
484
|
-
children: /* @__PURE__ */
|
|
482
|
+
children: /* @__PURE__ */ f("button", {
|
|
485
483
|
type: "button",
|
|
486
484
|
onClick: () => J(e.id, !e.isAvailable),
|
|
487
485
|
className: t("h-6 w-11 rounded-full transition-colors relative inline-block", e.isAvailable ? "bg-status-info-bg" : "bg-muted-foreground/30"),
|
|
488
|
-
children: /* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ f("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", e.isAvailable ? "translate-x-5" : "translate-x-0.5") })
|
|
489
487
|
})
|
|
490
488
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ f("td", {
|
|
492
490
|
className: "px-5 py-3",
|
|
493
|
-
children: /* @__PURE__ */
|
|
491
|
+
children: /* @__PURE__ */ p("div", {
|
|
494
492
|
className: "flex items-center justify-end gap-1",
|
|
495
|
-
children: [/* @__PURE__ */
|
|
493
|
+
children: [/* @__PURE__ */ f("button", {
|
|
496
494
|
type: "button",
|
|
497
495
|
onClick: () => K(e),
|
|
498
496
|
className: "rounded p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors",
|
|
499
497
|
title: "Edit",
|
|
500
|
-
children: /* @__PURE__ */
|
|
501
|
-
}), /* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ f(ne, { className: "h-4 w-4" })
|
|
499
|
+
}), /* @__PURE__ */ f("button", {
|
|
502
500
|
type: "button",
|
|
503
501
|
onClick: () => q(e.id),
|
|
504
502
|
className: "rounded p-1.5 text-text-secondary hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
|
|
505
503
|
title: "Delete",
|
|
506
|
-
children: /* @__PURE__ */
|
|
504
|
+
children: /* @__PURE__ */ f(d, { className: "h-4 w-4" })
|
|
507
505
|
})]
|
|
508
506
|
})
|
|
509
507
|
})
|
|
@@ -512,67 +510,67 @@ var d = [
|
|
|
512
510
|
}) })]
|
|
513
511
|
})
|
|
514
512
|
})
|
|
515
|
-
}), /* @__PURE__ */
|
|
513
|
+
}), /* @__PURE__ */ f("div", {
|
|
516
514
|
className: "lg:hidden space-y-3",
|
|
517
|
-
children:
|
|
515
|
+
children: U.map((e) => {
|
|
518
516
|
let n = X(e);
|
|
519
|
-
return /* @__PURE__ */
|
|
517
|
+
return /* @__PURE__ */ f("div", {
|
|
520
518
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
|
|
521
|
-
children: /* @__PURE__ */
|
|
519
|
+
children: /* @__PURE__ */ p("div", {
|
|
522
520
|
className: "flex items-start gap-3",
|
|
523
|
-
children: [/* @__PURE__ */
|
|
521
|
+
children: [/* @__PURE__ */ f("div", {
|
|
524
522
|
className: "flex h-14 w-14 items-center justify-center rounded-md bg-bg-sunken shrink-0",
|
|
525
|
-
children: /* @__PURE__ */
|
|
526
|
-
}), /* @__PURE__ */
|
|
523
|
+
children: /* @__PURE__ */ f(c, { className: "h-6 w-6 text-text-secondary" })
|
|
524
|
+
}), /* @__PURE__ */ p("div", {
|
|
527
525
|
className: "flex-1 min-w-0",
|
|
528
526
|
children: [
|
|
529
|
-
/* @__PURE__ */
|
|
527
|
+
/* @__PURE__ */ p("div", {
|
|
530
528
|
className: "flex items-start justify-between mb-1",
|
|
531
|
-
children: [/* @__PURE__ */
|
|
529
|
+
children: [/* @__PURE__ */ p("div", {
|
|
532
530
|
className: "flex-1",
|
|
533
|
-
children: [/* @__PURE__ */
|
|
531
|
+
children: [/* @__PURE__ */ f("h3", {
|
|
534
532
|
className: "text-sm font-medium text-text-primary line-clamp-1",
|
|
535
533
|
children: e.name
|
|
536
|
-
}), /* @__PURE__ */
|
|
534
|
+
}), /* @__PURE__ */ f("p", {
|
|
537
535
|
className: "text-xs text-text-secondary mt-0.5 line-clamp-2",
|
|
538
536
|
children: e.description
|
|
539
537
|
})]
|
|
540
|
-
}), /* @__PURE__ */
|
|
538
|
+
}), /* @__PURE__ */ f("button", {
|
|
541
539
|
type: "button",
|
|
542
540
|
onClick: () => J(e.id, !e.isAvailable),
|
|
543
541
|
className: t("h-5 w-9 rounded-full transition-colors relative ml-2 shrink-0", e.isAvailable ? "bg-status-info-bg" : "bg-muted-foreground/30"),
|
|
544
|
-
children: /* @__PURE__ */
|
|
542
|
+
children: /* @__PURE__ */ f("div", { className: t("absolute top-0.5 h-4 w-4 rounded-full bg-white transition-transform", e.isAvailable ? "translate-x-4" : "translate-x-0.5") })
|
|
545
543
|
})]
|
|
546
544
|
}),
|
|
547
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ p("div", {
|
|
548
546
|
className: "flex flex-wrap items-center gap-2 mt-2 text-xs",
|
|
549
|
-
children: [/* @__PURE__ */
|
|
547
|
+
children: [/* @__PURE__ */ f("span", {
|
|
550
548
|
className: "px-2 py-0.5 rounded-full bg-bg-sunken text-text-secondary",
|
|
551
549
|
children: e.category
|
|
552
|
-
}), /* @__PURE__ */
|
|
550
|
+
}), /* @__PURE__ */ f("span", {
|
|
553
551
|
className: t("font-medium", n.color),
|
|
554
552
|
children: n.label
|
|
555
553
|
})]
|
|
556
554
|
}),
|
|
557
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ p("div", {
|
|
558
556
|
className: "flex items-center justify-between mt-3",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
557
|
+
children: [/* @__PURE__ */ p("div", {
|
|
560
558
|
className: "flex items-center gap-2",
|
|
561
|
-
children: [/* @__PURE__ */
|
|
559
|
+
children: [/* @__PURE__ */ f("span", {
|
|
562
560
|
className: "font-semibold text-text-primary",
|
|
563
|
-
children:
|
|
564
|
-
}), e.originalPrice && /* @__PURE__ */
|
|
561
|
+
children: i(e.price, { minimumFractionDigits: 0 })
|
|
562
|
+
}), e.originalPrice && /* @__PURE__ */ f("span", {
|
|
565
563
|
className: "text-xs text-text-secondary line-through",
|
|
566
|
-
children:
|
|
564
|
+
children: i(e.originalPrice, { minimumFractionDigits: 0 })
|
|
567
565
|
})]
|
|
568
|
-
}), /* @__PURE__ */
|
|
566
|
+
}), /* @__PURE__ */ p("div", {
|
|
569
567
|
className: "flex gap-1",
|
|
570
|
-
children: [/* @__PURE__ */
|
|
568
|
+
children: [/* @__PURE__ */ f("button", {
|
|
571
569
|
type: "button",
|
|
572
570
|
onClick: () => K(e),
|
|
573
571
|
className: "rounded px-2 py-1 text-xs border border-border-seam text-text-primary hover:bg-bg-sunken",
|
|
574
572
|
children: "Edit"
|
|
575
|
-
}), /* @__PURE__ */
|
|
573
|
+
}), /* @__PURE__ */ f("button", {
|
|
576
574
|
type: "button",
|
|
577
575
|
onClick: () => q(e.id),
|
|
578
576
|
className: "rounded px-2 py-1 text-xs border border-border-seam text-status-error-text hover:bg-status-error-bg-subtle",
|
|
@@ -587,75 +585,75 @@ var d = [
|
|
|
587
585
|
})
|
|
588
586
|
})] })
|
|
589
587
|
]
|
|
590
|
-
}),
|
|
588
|
+
}), O && /* @__PURE__ */ f("div", {
|
|
591
589
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
592
|
-
children: /* @__PURE__ */
|
|
590
|
+
children: /* @__PURE__ */ f("div", {
|
|
593
591
|
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border-seam bg-bg-surface shadow-xl",
|
|
594
|
-
children: /* @__PURE__ */
|
|
592
|
+
children: /* @__PURE__ */ p("div", {
|
|
595
593
|
className: "p-6",
|
|
596
594
|
children: [
|
|
597
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ p("div", {
|
|
598
596
|
className: "flex items-center justify-between mb-4",
|
|
599
|
-
children: [/* @__PURE__ */
|
|
597
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
|
|
600
598
|
className: "text-lg font-semibold text-text-primary",
|
|
601
|
-
children:
|
|
602
|
-
}),
|
|
599
|
+
children: A ? "Edit Item" : "Add New Item"
|
|
600
|
+
}), M.category && /* @__PURE__ */ p("p", {
|
|
603
601
|
className: "text-sm text-text-secondary mt-0.5",
|
|
604
602
|
children: [
|
|
605
603
|
"Type: ",
|
|
606
604
|
Z ? "Service" : "Product",
|
|
607
605
|
" | Category: ",
|
|
608
|
-
|
|
606
|
+
M.category
|
|
609
607
|
]
|
|
610
|
-
})] }), /* @__PURE__ */
|
|
608
|
+
})] }), /* @__PURE__ */ f("button", {
|
|
611
609
|
type: "button",
|
|
612
|
-
onClick: () =>
|
|
610
|
+
onClick: () => k(!1),
|
|
613
611
|
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
|
|
614
|
-
children: /* @__PURE__ */
|
|
612
|
+
children: /* @__PURE__ */ f(ie, { className: "h-5 w-5" })
|
|
615
613
|
})]
|
|
616
614
|
}),
|
|
617
|
-
/* @__PURE__ */
|
|
615
|
+
/* @__PURE__ */ p("div", {
|
|
618
616
|
className: "space-y-4",
|
|
619
617
|
children: [
|
|
620
|
-
/* @__PURE__ */
|
|
618
|
+
/* @__PURE__ */ p("div", {
|
|
621
619
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
622
|
-
children: [/* @__PURE__ */
|
|
620
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
623
621
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
624
622
|
children: "Item Name *"
|
|
625
|
-
}), /* @__PURE__ */
|
|
623
|
+
}), /* @__PURE__ */ f("input", {
|
|
626
624
|
type: "text",
|
|
627
|
-
value:
|
|
628
|
-
onChange: (e) =>
|
|
625
|
+
value: M.name,
|
|
626
|
+
onChange: (e) => N((t) => ({
|
|
629
627
|
...t,
|
|
630
628
|
name: e.target.value
|
|
631
629
|
})),
|
|
632
630
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary",
|
|
633
631
|
placeholder: "Enter item name"
|
|
634
|
-
})] }), /* @__PURE__ */
|
|
632
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
635
633
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
636
634
|
children: "Category *"
|
|
637
|
-
}), /* @__PURE__ */
|
|
638
|
-
value:
|
|
639
|
-
onChange: (e) =>
|
|
635
|
+
}), /* @__PURE__ */ p("select", {
|
|
636
|
+
value: M.category,
|
|
637
|
+
onChange: (e) => N((t) => ({
|
|
640
638
|
...t,
|
|
641
639
|
category: e.target.value
|
|
642
640
|
})),
|
|
643
641
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
644
|
-
children: [/* @__PURE__ */
|
|
642
|
+
children: [/* @__PURE__ */ f("option", {
|
|
645
643
|
value: "",
|
|
646
644
|
children: "Select category"
|
|
647
|
-
}),
|
|
645
|
+
}), H.map((e) => /* @__PURE__ */ f("option", {
|
|
648
646
|
value: e,
|
|
649
647
|
children: e
|
|
650
648
|
}, e))]
|
|
651
649
|
})] })]
|
|
652
650
|
}),
|
|
653
|
-
/* @__PURE__ */
|
|
651
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
654
652
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
655
653
|
children: "Description *"
|
|
656
|
-
}), /* @__PURE__ */
|
|
657
|
-
value:
|
|
658
|
-
onChange: (e) =>
|
|
654
|
+
}), /* @__PURE__ */ f("textarea", {
|
|
655
|
+
value: M.description,
|
|
656
|
+
onChange: (e) => N((t) => ({
|
|
659
657
|
...t,
|
|
660
658
|
description: e.target.value
|
|
661
659
|
})),
|
|
@@ -663,26 +661,26 @@ var d = [
|
|
|
663
661
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary resize-none",
|
|
664
662
|
placeholder: "Describe the offering..."
|
|
665
663
|
})] }),
|
|
666
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ p("div", {
|
|
667
665
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
668
|
-
children: [/* @__PURE__ */
|
|
666
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
669
667
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
670
668
|
children: "Price *"
|
|
671
|
-
}), /* @__PURE__ */
|
|
669
|
+
}), /* @__PURE__ */ f("input", {
|
|
672
670
|
type: "number",
|
|
673
|
-
value:
|
|
674
|
-
onChange: (e) =>
|
|
671
|
+
value: M.price,
|
|
672
|
+
onChange: (e) => N((t) => ({
|
|
675
673
|
...t,
|
|
676
674
|
price: parseInt(e.target.value) || 0
|
|
677
675
|
})),
|
|
678
676
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
679
|
-
})] }), /* @__PURE__ */
|
|
677
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
680
678
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
681
679
|
children: "Original Price"
|
|
682
|
-
}), /* @__PURE__ */
|
|
680
|
+
}), /* @__PURE__ */ f("input", {
|
|
683
681
|
type: "number",
|
|
684
|
-
value:
|
|
685
|
-
onChange: (e) =>
|
|
682
|
+
value: M.originalPrice ?? "",
|
|
683
|
+
onChange: (e) => N((t) => ({
|
|
686
684
|
...t,
|
|
687
685
|
originalPrice: e.target.value ? parseInt(e.target.value) : void 0
|
|
688
686
|
})),
|
|
@@ -690,40 +688,40 @@ var d = [
|
|
|
690
688
|
placeholder: "Optional"
|
|
691
689
|
})] })]
|
|
692
690
|
}),
|
|
693
|
-
!Z && /* @__PURE__ */
|
|
691
|
+
!Z && /* @__PURE__ */ p("div", {
|
|
694
692
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
695
693
|
children: [
|
|
696
|
-
/* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
697
695
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
698
696
|
children: "Stock Quantity *"
|
|
699
|
-
}), /* @__PURE__ */
|
|
697
|
+
}), /* @__PURE__ */ f("input", {
|
|
700
698
|
type: "number",
|
|
701
|
-
value:
|
|
702
|
-
onChange: (e) =>
|
|
699
|
+
value: M.stock,
|
|
700
|
+
onChange: (e) => N((t) => ({
|
|
703
701
|
...t,
|
|
704
702
|
stock: parseInt(e.target.value) || 0
|
|
705
703
|
})),
|
|
706
704
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
707
705
|
})] }),
|
|
708
|
-
/* @__PURE__ */
|
|
706
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
709
707
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
710
708
|
children: "Preparation Time (min)"
|
|
711
|
-
}), /* @__PURE__ */
|
|
709
|
+
}), /* @__PURE__ */ f("input", {
|
|
712
710
|
type: "number",
|
|
713
|
-
value:
|
|
714
|
-
onChange: (e) =>
|
|
711
|
+
value: M.preparationTime,
|
|
712
|
+
onChange: (e) => N((t) => ({
|
|
715
713
|
...t,
|
|
716
714
|
preparationTime: parseInt(e.target.value) || 0
|
|
717
715
|
})),
|
|
718
716
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
719
717
|
})] }),
|
|
720
|
-
Q && /* @__PURE__ */
|
|
718
|
+
Q && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
721
719
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
722
720
|
children: "Calories"
|
|
723
|
-
}), /* @__PURE__ */
|
|
721
|
+
}), /* @__PURE__ */ f("input", {
|
|
724
722
|
type: "number",
|
|
725
|
-
value:
|
|
726
|
-
onChange: (e) =>
|
|
723
|
+
value: M.calories,
|
|
724
|
+
onChange: (e) => N((t) => ({
|
|
727
725
|
...t,
|
|
728
726
|
calories: parseInt(e.target.value) || 0
|
|
729
727
|
})),
|
|
@@ -731,81 +729,81 @@ var d = [
|
|
|
731
729
|
})] })
|
|
732
730
|
]
|
|
733
731
|
}),
|
|
734
|
-
Z && /* @__PURE__ */
|
|
732
|
+
Z && /* @__PURE__ */ p("div", {
|
|
735
733
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
736
|
-
children: [/* @__PURE__ */
|
|
734
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
737
735
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
738
736
|
children: "Service Duration (min) *"
|
|
739
|
-
}), /* @__PURE__ */
|
|
737
|
+
}), /* @__PURE__ */ f("input", {
|
|
740
738
|
type: "number",
|
|
741
|
-
value:
|
|
742
|
-
onChange: (e) =>
|
|
739
|
+
value: M.duration,
|
|
740
|
+
onChange: (e) => N((t) => ({
|
|
743
741
|
...t,
|
|
744
742
|
duration: parseInt(e.target.value) || 30
|
|
745
743
|
})),
|
|
746
744
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
747
|
-
})] }), /* @__PURE__ */
|
|
745
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
748
746
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
749
747
|
children: "Setup Time (min)"
|
|
750
|
-
}), /* @__PURE__ */
|
|
748
|
+
}), /* @__PURE__ */ f("input", {
|
|
751
749
|
type: "number",
|
|
752
|
-
value:
|
|
753
|
-
onChange: (e) =>
|
|
750
|
+
value: M.preparationTime,
|
|
751
|
+
onChange: (e) => N((t) => ({
|
|
754
752
|
...t,
|
|
755
753
|
preparationTime: parseInt(e.target.value) || 0
|
|
756
754
|
})),
|
|
757
755
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
758
756
|
})] })]
|
|
759
757
|
}),
|
|
760
|
-
Q && /* @__PURE__ */
|
|
758
|
+
Q && /* @__PURE__ */ p("div", {
|
|
761
759
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
762
|
-
children: [/* @__PURE__ */
|
|
760
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
763
761
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
764
762
|
children: "Spice Level"
|
|
765
|
-
}), /* @__PURE__ */
|
|
766
|
-
value:
|
|
767
|
-
onChange: (e) =>
|
|
763
|
+
}), /* @__PURE__ */ p("select", {
|
|
764
|
+
value: M.spiceLevel,
|
|
765
|
+
onChange: (e) => N((t) => ({
|
|
768
766
|
...t,
|
|
769
767
|
spiceLevel: e.target.value
|
|
770
768
|
})),
|
|
771
769
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
772
770
|
children: [
|
|
773
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ f("option", {
|
|
774
772
|
value: "none",
|
|
775
773
|
children: "None"
|
|
776
774
|
}),
|
|
777
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ f("option", {
|
|
778
776
|
value: "mild",
|
|
779
777
|
children: "Mild"
|
|
780
778
|
}),
|
|
781
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ f("option", {
|
|
782
780
|
value: "medium",
|
|
783
781
|
children: "Medium"
|
|
784
782
|
}),
|
|
785
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ f("option", {
|
|
786
784
|
value: "spicy",
|
|
787
785
|
children: "Spicy"
|
|
788
786
|
}),
|
|
789
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ f("option", {
|
|
790
788
|
value: "very-spicy",
|
|
791
789
|
children: "Very Spicy"
|
|
792
790
|
})
|
|
793
791
|
]
|
|
794
|
-
})] }), /* @__PURE__ */
|
|
792
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
795
793
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
796
794
|
children: "Dietary Options"
|
|
797
|
-
}), /* @__PURE__ */
|
|
795
|
+
}), /* @__PURE__ */ f("div", {
|
|
798
796
|
className: "space-y-2",
|
|
799
797
|
children: [
|
|
800
798
|
"isVegetarian",
|
|
801
799
|
"isVegan",
|
|
802
800
|
"isGlutenFree"
|
|
803
|
-
].map((e) => /* @__PURE__ */
|
|
801
|
+
].map((e) => /* @__PURE__ */ p("label", {
|
|
804
802
|
className: "flex items-center gap-2 text-sm text-text-primary",
|
|
805
|
-
children: [/* @__PURE__ */
|
|
803
|
+
children: [/* @__PURE__ */ f("input", {
|
|
806
804
|
type: "checkbox",
|
|
807
|
-
checked:
|
|
808
|
-
onChange: (t) =>
|
|
805
|
+
checked: M[e],
|
|
806
|
+
onChange: (t) => N((n) => ({
|
|
809
807
|
...n,
|
|
810
808
|
[e]: t.target.checked
|
|
811
809
|
})),
|
|
@@ -814,91 +812,91 @@ var d = [
|
|
|
814
812
|
}, e))
|
|
815
813
|
})] })]
|
|
816
814
|
}),
|
|
817
|
-
Z && /* @__PURE__ */
|
|
815
|
+
Z && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
818
816
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
819
817
|
children: "Service Type *"
|
|
820
|
-
}), /* @__PURE__ */
|
|
821
|
-
value:
|
|
822
|
-
onChange: (e) =>
|
|
818
|
+
}), /* @__PURE__ */ p("select", {
|
|
819
|
+
value: M.serviceType,
|
|
820
|
+
onChange: (e) => N((t) => ({
|
|
823
821
|
...t,
|
|
824
822
|
serviceType: e.target.value
|
|
825
823
|
})),
|
|
826
824
|
className: "w-full sm:w-64 rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
827
825
|
children: [
|
|
828
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ f("option", {
|
|
829
827
|
value: "instant",
|
|
830
828
|
children: "Instant Service"
|
|
831
829
|
}),
|
|
832
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ f("option", {
|
|
833
831
|
value: "appointment",
|
|
834
832
|
children: "Appointment Based"
|
|
835
833
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
834
|
+
/* @__PURE__ */ f("option", {
|
|
837
835
|
value: "recurring",
|
|
838
836
|
children: "Recurring Service"
|
|
839
837
|
}),
|
|
840
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ f("option", {
|
|
841
839
|
value: "consultation",
|
|
842
840
|
children: "Consultation"
|
|
843
841
|
})
|
|
844
842
|
]
|
|
845
843
|
})] }),
|
|
846
|
-
/* @__PURE__ */
|
|
847
|
-
/* @__PURE__ */
|
|
844
|
+
/* @__PURE__ */ p("div", { children: [
|
|
845
|
+
/* @__PURE__ */ f("label", {
|
|
848
846
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
849
847
|
children: "Tags (comma separated)"
|
|
850
848
|
}),
|
|
851
|
-
/* @__PURE__ */
|
|
849
|
+
/* @__PURE__ */ f("input", {
|
|
852
850
|
type: "text",
|
|
853
|
-
value:
|
|
854
|
-
onChange: (e) =>
|
|
851
|
+
value: P,
|
|
852
|
+
onChange: (e) => F(e.target.value),
|
|
855
853
|
placeholder: Z ? "professional, certified, quick" : "popular, spicy, traditional",
|
|
856
854
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary"
|
|
857
855
|
}),
|
|
858
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ p("p", {
|
|
859
857
|
className: "text-xs text-text-secondary mt-1",
|
|
860
858
|
children: [
|
|
861
|
-
|
|
859
|
+
P.split(",").map((e) => e.trim()).filter(Boolean).length,
|
|
862
860
|
" ",
|
|
863
861
|
"tags"
|
|
864
862
|
]
|
|
865
863
|
})
|
|
866
864
|
] }),
|
|
867
|
-
Q && /* @__PURE__ */
|
|
865
|
+
Q && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
868
866
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
869
867
|
children: "Allergens (comma separated)"
|
|
870
|
-
}), /* @__PURE__ */
|
|
868
|
+
}), /* @__PURE__ */ f("input", {
|
|
871
869
|
type: "text",
|
|
872
|
-
value:
|
|
873
|
-
onChange: (e) =>
|
|
870
|
+
value: I,
|
|
871
|
+
onChange: (e) => L(e.target.value),
|
|
874
872
|
placeholder: "nuts, dairy, gluten, soy",
|
|
875
873
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary"
|
|
876
874
|
})] }),
|
|
877
|
-
Z && /* @__PURE__ */
|
|
875
|
+
Z && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
878
876
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
879
877
|
children: "Service Requirements (comma separated)"
|
|
880
|
-
}), /* @__PURE__ */
|
|
878
|
+
}), /* @__PURE__ */ f("input", {
|
|
881
879
|
type: "text",
|
|
882
|
-
value:
|
|
883
|
-
onChange: (e) =>
|
|
880
|
+
value: R,
|
|
881
|
+
onChange: (e) => z(e.target.value),
|
|
884
882
|
placeholder: "advance booking, payment required, tools provided",
|
|
885
883
|
className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary"
|
|
886
884
|
})] })
|
|
887
885
|
]
|
|
888
886
|
}),
|
|
889
|
-
/* @__PURE__ */
|
|
887
|
+
/* @__PURE__ */ p("div", {
|
|
890
888
|
className: "flex gap-3 mt-6",
|
|
891
|
-
children: [/* @__PURE__ */
|
|
889
|
+
children: [/* @__PURE__ */ f("button", {
|
|
892
890
|
type: "button",
|
|
893
|
-
onClick: () =>
|
|
891
|
+
onClick: () => k(!1),
|
|
894
892
|
className: "flex-1 rounded-md border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
895
893
|
children: "Cancel"
|
|
896
|
-
}), /* @__PURE__ */
|
|
894
|
+
}), /* @__PURE__ */ f("button", {
|
|
897
895
|
type: "button",
|
|
898
|
-
onClick:
|
|
896
|
+
onClick: me,
|
|
899
897
|
disabled: !$,
|
|
900
898
|
className: t("flex-1 rounded-md px-4 py-2 text-sm font-medium transition-colors", $ ? "bg-accent text-text-primary hover:bg-accent/80" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
901
|
-
children:
|
|
899
|
+
children: A ? "Update Item" : "Add Item"
|
|
902
900
|
})]
|
|
903
901
|
})
|
|
904
902
|
]
|
|
@@ -908,6 +906,6 @@ var d = [
|
|
|
908
906
|
});
|
|
909
907
|
};
|
|
910
908
|
//#endregion
|
|
911
|
-
export {
|
|
909
|
+
export { b as InventoryManagementPage };
|
|
912
910
|
|
|
913
911
|
//# sourceMappingURL=InventoryManagementPage.js.map
|