hey-pharmacist-ecommerce 1.1.40 → 1.1.42
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/index.js +386 -386
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +386 -386
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/AccountAddressesTab.tsx +9 -9
- package/src/components/AccountOrdersTab.tsx +11 -11
- package/src/components/AccountOverviewTab.tsx +21 -21
- package/src/components/AccountPaymentTab.tsx +2 -2
- package/src/components/AccountReviewsTab.tsx +1 -1
- package/src/components/AccountSettingsTab.tsx +6 -6
- package/src/components/AddressFormModal.tsx +2 -2
- package/src/components/CartItem.tsx +2 -2
- package/src/components/FilterChips.tsx +7 -7
- package/src/components/Footer.tsx +9 -9
- package/src/components/Header.tsx +7 -7
- package/src/components/NotificationBell.tsx +3 -3
- package/src/components/NotificationDrawer.tsx +1 -1
- package/src/components/NotificationModal.tsx +1 -1
- package/src/components/OrderCard.tsx +2 -2
- package/src/components/ProductCard.tsx +6 -6
- package/src/components/QuickViewModal.tsx +23 -23
- package/src/components/ReviewCard.tsx +4 -4
- package/src/components/TabNavigation.tsx +2 -2
- package/src/components/ui/Badge.tsx +2 -2
- package/src/components/ui/Button.tsx +3 -3
- package/src/components/ui/ConfirmModal.tsx +3 -3
- package/src/components/ui/Input.tsx +1 -1
- package/src/providers/ThemeProvider.tsx +23 -23
- package/src/screens/AddressesScreen.tsx +6 -6
- package/src/screens/CartScreen.tsx +19 -19
- package/src/screens/ChangePasswordScreen.tsx +2 -2
- package/src/screens/CheckoutScreen.tsx +21 -21
- package/src/screens/CurrentOrdersScreen.tsx +4 -4
- package/src/screens/EditProfileScreen.tsx +1 -1
- package/src/screens/ForgotPasswordScreen.tsx +11 -11
- package/src/screens/LoginScreen.tsx +12 -12
- package/src/screens/OrderDetailScreen.tsx +30 -30
- package/src/screens/OrdersScreen.tsx +3 -3
- package/src/screens/ProductDetailScreen.tsx +48 -48
- package/src/screens/ProfileScreen.tsx +2 -2
- package/src/screens/RegisterScreen.tsx +15 -15
- package/src/screens/ResetPasswordScreen.tsx +14 -14
- package/src/screens/SearchResultsScreen.tsx +7 -7
- package/src/screens/ShopScreen.tsx +50 -50
- package/src/screens/WishlistScreen.tsx +22 -22
- package/src/styles/globals.css +43 -44
package/dist/index.mjs
CHANGED
|
@@ -233,20 +233,20 @@ function ThemeProvider({ config, children }) {
|
|
|
233
233
|
const secondaryShades = generateColorShades(config.colors.secondary);
|
|
234
234
|
const accentShades = generateColorShades(config.colors.accent);
|
|
235
235
|
const vars = [];
|
|
236
|
-
vars.push(`--
|
|
237
|
-
vars.push(`--
|
|
238
|
-
vars.push(`--
|
|
239
|
-
vars.push(`--
|
|
240
|
-
vars.push(`--
|
|
241
|
-
vars.push(`--
|
|
236
|
+
vars.push(`--hp-primary: ${config.colors.primary}`);
|
|
237
|
+
vars.push(`--hp-primary-dark: ${config.colors.primaryDark}`);
|
|
238
|
+
vars.push(`--hp-secondary: ${config.colors.secondary}`);
|
|
239
|
+
vars.push(`--hp-accent: ${config.colors.accent}`);
|
|
240
|
+
vars.push(`--hp-accent-dark: ${config.colors.accentDark}`);
|
|
241
|
+
vars.push(`--hp-text-hmuted: ${config.colors.textMuted}`);
|
|
242
242
|
Object.entries(primaryShades).forEach(([shade, rgb]) => {
|
|
243
|
-
vars.push(`--
|
|
243
|
+
vars.push(`--hp-primary-${shade}: ${rgb}`);
|
|
244
244
|
});
|
|
245
245
|
Object.entries(secondaryShades).forEach(([shade, rgb]) => {
|
|
246
|
-
vars.push(`--
|
|
246
|
+
vars.push(`--hp-secondary-${shade}: ${rgb}`);
|
|
247
247
|
});
|
|
248
248
|
Object.entries(accentShades).forEach(([shade, rgb]) => {
|
|
249
|
-
vars.push(`--
|
|
249
|
+
vars.push(`--hp-accent-${shade}: ${rgb}`);
|
|
250
250
|
});
|
|
251
251
|
return vars.join("; ");
|
|
252
252
|
}, [config.colors]);
|
|
@@ -255,20 +255,20 @@ function ThemeProvider({ config, children }) {
|
|
|
255
255
|
const primaryShades = generateColorShades(config.colors.primary);
|
|
256
256
|
const secondaryShades = generateColorShades(config.colors.secondary);
|
|
257
257
|
const accentShades = generateColorShades(config.colors.accent);
|
|
258
|
-
root.style.setProperty("--
|
|
259
|
-
root.style.setProperty("--
|
|
260
|
-
root.style.setProperty("--
|
|
261
|
-
root.style.setProperty("--
|
|
262
|
-
root.style.setProperty("--
|
|
263
|
-
root.style.setProperty("--
|
|
258
|
+
root.style.setProperty("--hp-primary", config.colors.primary);
|
|
259
|
+
root.style.setProperty("--hp-primary-dark", config.colors.primaryDark);
|
|
260
|
+
root.style.setProperty("--hp-secondary", config.colors.secondary);
|
|
261
|
+
root.style.setProperty("--hp-accent", config.colors.accent);
|
|
262
|
+
root.style.setProperty("--hp-accent-dark", config.colors.accentDark);
|
|
263
|
+
root.style.setProperty("--hp-text-hmuted", config.colors.textMuted);
|
|
264
264
|
Object.entries(primaryShades).forEach(([shade, rgb]) => {
|
|
265
|
-
root.style.setProperty(`--
|
|
265
|
+
root.style.setProperty(`--hp-primary-${shade}`, rgb);
|
|
266
266
|
});
|
|
267
267
|
Object.entries(secondaryShades).forEach(([shade, rgb]) => {
|
|
268
|
-
root.style.setProperty(`--
|
|
268
|
+
root.style.setProperty(`--hp-secondary-${shade}`, rgb);
|
|
269
269
|
});
|
|
270
270
|
Object.entries(accentShades).forEach(([shade, rgb]) => {
|
|
271
|
-
root.style.setProperty(`--
|
|
271
|
+
root.style.setProperty(`--hp-accent-${shade}`, rgb);
|
|
272
272
|
});
|
|
273
273
|
}, [config]);
|
|
274
274
|
return /* @__PURE__ */ jsxs(ThemeContext.Provider, { value: { config }, children: [
|
|
@@ -12770,17 +12770,17 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12770
12770
|
children: /* @__PURE__ */ jsxs("div", { className: "p-8", children: [
|
|
12771
12771
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-6", children: [
|
|
12772
12772
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
12773
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-
|
|
12774
|
-
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-
|
|
12773
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-hprimary uppercase tracking-wide font-medium mb-2", children: product.brand }),
|
|
12774
|
+
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-hsecondary tracking-[-1px]", children: displayName }),
|
|
12775
12775
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mt-2", children: [
|
|
12776
12776
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
|
|
12777
12777
|
Star,
|
|
12778
12778
|
{
|
|
12779
|
-
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-
|
|
12779
|
+
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-haccent fill-accent" : "text-gray-300"}`
|
|
12780
12780
|
},
|
|
12781
12781
|
i
|
|
12782
12782
|
)) }),
|
|
12783
|
-
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[13px] text-
|
|
12783
|
+
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[13px] text-hmuted", children: [
|
|
12784
12784
|
product.summary?.averageRating || 0,
|
|
12785
12785
|
" (",
|
|
12786
12786
|
product.summary?.reviewCount || 0,
|
|
@@ -12793,7 +12793,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12793
12793
|
{
|
|
12794
12794
|
onClick: onClose,
|
|
12795
12795
|
className: "p-2 hover:bg-gray-100 rounded-full transition-colors",
|
|
12796
|
-
children: /* @__PURE__ */ jsx(X, { className: "size-6 text-
|
|
12796
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-6 text-hmuted" })
|
|
12797
12797
|
}
|
|
12798
12798
|
)
|
|
12799
12799
|
] }),
|
|
@@ -12808,7 +12808,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12808
12808
|
className: "w-full h-full object-contain"
|
|
12809
12809
|
}
|
|
12810
12810
|
),
|
|
12811
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsx("div", { className: "bg-
|
|
12811
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsx("div", { className: "bg-haccent text-white rounded-full px-3 py-1.5", children: /* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] font-bold text-[11px] uppercase", children: [
|
|
12812
12812
|
"-",
|
|
12813
12813
|
discountAmount,
|
|
12814
12814
|
"%"
|
|
@@ -12817,7 +12817,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12817
12817
|
selectedVariant.media.length > 1 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-4 gap-3", children: selectedVariant.media.map((image, index) => /* @__PURE__ */ jsx(
|
|
12818
12818
|
"div",
|
|
12819
12819
|
{
|
|
12820
|
-
className: `aspect-square rounded-xl overflow-hidden cursor-pointer transition-opacity ${selectedImageIndex === index ? "ring-2 ring-
|
|
12820
|
+
className: `aspect-square rounded-xl overflow-hidden cursor-pointer transition-opacity ${selectedImageIndex === index ? "ring-2 ring-hprimary" : "bg-gray-50 hover:opacity-75"}`,
|
|
12821
12821
|
onClick: () => setSelectedImageIndex(index),
|
|
12822
12822
|
children: /* @__PURE__ */ jsx(
|
|
12823
12823
|
"img",
|
|
@@ -12833,16 +12833,16 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12833
12833
|
] }),
|
|
12834
12834
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
12835
12835
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-4", children: [
|
|
12836
|
-
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] font-bold text-[32px] text-
|
|
12836
|
+
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] font-bold text-[32px] text-haccent", children: [
|
|
12837
12837
|
"$",
|
|
12838
12838
|
displayPrice.toFixed(2)
|
|
12839
12839
|
] }),
|
|
12840
|
-
isDiscounted && /* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[20px] text-
|
|
12840
|
+
isDiscounted && /* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[20px] text-hmuted line-through", children: [
|
|
12841
12841
|
"$",
|
|
12842
12842
|
displayOriginalPrice.toFixed(2)
|
|
12843
12843
|
] })
|
|
12844
12844
|
] }),
|
|
12845
|
-
/* @__PURE__ */ jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] text-[12px] text-red-500 font-medium", children: "Out of Stock" }) : selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
12845
|
+
/* @__PURE__ */ jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] text-[12px] text-red-500 font-medium", children: "Out of Stock" }) : selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[12px] text-hprimary font-medium flex items-center gap-1", children: [
|
|
12846
12846
|
/* @__PURE__ */ jsx(Package, { className: "size-3" }),
|
|
12847
12847
|
"Only ",
|
|
12848
12848
|
selectedVariant.inventoryCount,
|
|
@@ -12854,14 +12854,14 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12854
12854
|
/* @__PURE__ */ jsx(
|
|
12855
12855
|
"div",
|
|
12856
12856
|
{
|
|
12857
|
-
className: "font-['Poppins',sans-serif] text-[14px] text-
|
|
12857
|
+
className: "font-['Poppins',sans-serif] text-[14px] text-hmuted leading-[1.7] mb-6 max-w-full overflow-hidden break-words",
|
|
12858
12858
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
12859
12859
|
}
|
|
12860
12860
|
),
|
|
12861
12861
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
12862
|
-
/* @__PURE__ */ jsxs("h3", { className: "font-['Poppins',sans-serif] font-semibold text-[13px] text-
|
|
12862
|
+
/* @__PURE__ */ jsxs("h3", { className: "font-['Poppins',sans-serif] font-semibold text-[13px] text-hsecondary mb-3", children: [
|
|
12863
12863
|
"Selected Variant: ",
|
|
12864
|
-
/* @__PURE__ */ jsx("span", { className: "font-normal text-
|
|
12864
|
+
/* @__PURE__ */ jsx("span", { className: "font-normal text-hmuted", children: product.variants[selectedVariantIndex].name })
|
|
12865
12865
|
] }),
|
|
12866
12866
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3", children: product.variants.map((variant, index) => /* @__PURE__ */ jsx(
|
|
12867
12867
|
"button",
|
|
@@ -12871,7 +12871,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12871
12871
|
setSelectedSizeIndex(0);
|
|
12872
12872
|
setSelectedImageIndex(0);
|
|
12873
12873
|
},
|
|
12874
|
-
className: `size-10 rounded-full border-2 transition-all ${selectedVariantIndex === index ? "border-
|
|
12874
|
+
className: `size-10 rounded-full border-2 transition-all ${selectedVariantIndex === index ? "border-hprimary scale-110" : "border-gray-200 hover:border-hprimary-50"}`,
|
|
12875
12875
|
style: { backgroundColor: variant.colorHex },
|
|
12876
12876
|
title: variant.color,
|
|
12877
12877
|
children: /* @__PURE__ */ jsx(
|
|
@@ -12889,11 +12889,11 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12889
12889
|
)) })
|
|
12890
12890
|
] }),
|
|
12891
12891
|
/* @__PURE__ */ jsx("div", { className: "mb-6 p-4 bg-gray-50 rounded-xl", children: /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: product.tags.slice(0, 3).map((feature, index) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2", children: [
|
|
12892
|
-
/* @__PURE__ */ jsx(Check, { className: "size-4 text-
|
|
12893
|
-
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
12892
|
+
/* @__PURE__ */ jsx(Check, { className: "size-4 text-hprimary shrink-0 mt-0.5" }),
|
|
12893
|
+
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] text-[12px] text-hmuted", children: feature })
|
|
12894
12894
|
] }, index)) }) }),
|
|
12895
12895
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
12896
|
-
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-[13px] text-
|
|
12896
|
+
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-[13px] text-hsecondary mb-3", children: "Quantity" }),
|
|
12897
12897
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
12898
12898
|
/* @__PURE__ */ jsx(
|
|
12899
12899
|
"button",
|
|
@@ -12901,7 +12901,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12901
12901
|
onClick: () => handleQuantityChange(quantity - 1),
|
|
12902
12902
|
disabled: quantity <= 1,
|
|
12903
12903
|
className: "p-2 rounded-full border border-gray-200 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
12904
|
-
children: /* @__PURE__ */ jsx(Minus, { className: "size-4 text-
|
|
12904
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "size-4 text-hsecondary" })
|
|
12905
12905
|
}
|
|
12906
12906
|
),
|
|
12907
12907
|
/* @__PURE__ */ jsx("span", { className: "w-8 text-center font-medium", children: quantity }),
|
|
@@ -12911,7 +12911,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12911
12911
|
onClick: () => handleQuantityChange(quantity + 1),
|
|
12912
12912
|
disabled: quantity >= (selectedVariant.inventoryCount || 10),
|
|
12913
12913
|
className: "p-2 rounded-full border border-gray-200 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
12914
|
-
children: /* @__PURE__ */ jsx(Plus, { className: "size-4 text-
|
|
12914
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "size-4 text-hsecondary" })
|
|
12915
12915
|
}
|
|
12916
12916
|
)
|
|
12917
12917
|
] })
|
|
@@ -12922,7 +12922,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12922
12922
|
{
|
|
12923
12923
|
onClick: handleAddToCart,
|
|
12924
12924
|
disabled: addedToCart || selectedVariant.inventoryCount === 0,
|
|
12925
|
-
className: `w-full font-['Poppins',sans-serif] font-medium text-[14px] px-6 py-4 rounded-full transition-all duration-300 flex items-center justify-center gap-3 ${addedToCart ? "bg-green-500 text-white" : "bg-
|
|
12925
|
+
className: `w-full font-['Poppins',sans-serif] font-medium text-[14px] px-6 py-4 rounded-full transition-all duration-300 flex items-center justify-center gap-3 ${addedToCart ? "bg-green-500 text-white" : "bg-haccent text-white hover:bg-[#d66f45] hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed"}`,
|
|
12926
12926
|
children: isAddingToCart ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12927
12927
|
/* @__PURE__ */ jsxs("svg", { className: "animate-spin h-5 w-5", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
|
|
12928
12928
|
/* @__PURE__ */ jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
@@ -12941,7 +12941,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12941
12941
|
onClick: () => {
|
|
12942
12942
|
onClose();
|
|
12943
12943
|
},
|
|
12944
|
-
className: "w-full font-['Poppins',sans-serif] font-medium text-[13px] px-6 py-3 rounded-full bg-white text-
|
|
12944
|
+
className: "w-full font-['Poppins',sans-serif] font-medium text-[13px] px-6 py-3 rounded-full bg-white text-hsecondary border-2 border-hprimary hover:bg-gray-50 transition-all flex items-center justify-center gap-2",
|
|
12945
12945
|
children: [
|
|
12946
12946
|
"View Full Details",
|
|
12947
12947
|
/* @__PURE__ */ jsx(ExternalLink, { className: "size-4" })
|
|
@@ -13052,7 +13052,7 @@ function ProductCard({
|
|
|
13052
13052
|
/* @__PURE__ */ jsxs(
|
|
13053
13053
|
motion.div,
|
|
13054
13054
|
{
|
|
13055
|
-
className: "bg-white rounded-[16px] overflow-hidden border-2 border-gray-100 hover:border-
|
|
13055
|
+
className: "bg-white rounded-[16px] overflow-hidden border-2 border-gray-100 hover:border-hsecondary hover:shadow-lg transition-all duration-300 group h-full flex flex-col",
|
|
13056
13056
|
whileHover: { y: -4 },
|
|
13057
13057
|
onMouseEnter: () => setIsHovered(true),
|
|
13058
13058
|
onMouseLeave: () => setIsHovered(false),
|
|
@@ -13104,7 +13104,7 @@ function ProductCard({
|
|
|
13104
13104
|
displayDiscountAmount,
|
|
13105
13105
|
"%"
|
|
13106
13106
|
] }) }) }),
|
|
13107
|
-
/* @__PURE__ */ jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-xs text-
|
|
13107
|
+
/* @__PURE__ */ jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-xs text-hsecondary uppercase tracking-wide font-medium", children: product.brand }) }),
|
|
13108
13108
|
/* @__PURE__ */ jsxs("div", { className: "h-[40px] mb-3", children: [
|
|
13109
13109
|
/* @__PURE__ */ jsx("h3", { className: "text-sm font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] line-clamp-2", children: product.name }),
|
|
13110
13110
|
selectedVariant && /* @__PURE__ */ jsx("p", { className: "text-xs font-['Poppins',sans-serif] text-[#676c80]", children: selectedVariant.name })
|
|
@@ -13124,7 +13124,7 @@ function ProductCard({
|
|
|
13124
13124
|
] })
|
|
13125
13125
|
] }),
|
|
13126
13126
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 mb-3", children: [
|
|
13127
|
-
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] font-bold text-md text-
|
|
13127
|
+
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] font-bold text-md text-hprimary-600", children: [
|
|
13128
13128
|
"$",
|
|
13129
13129
|
displayFinalPrice.toFixed(2)
|
|
13130
13130
|
] }),
|
|
@@ -13148,7 +13148,7 @@ function ProductCard({
|
|
|
13148
13148
|
}
|
|
13149
13149
|
setIsImageLoaded(false);
|
|
13150
13150
|
},
|
|
13151
|
-
className: `relative w-8 h-8 rounded-full overflow-hidden border-2 transition-all ${selectedVariantId === variant.variantId ? "border-
|
|
13151
|
+
className: `relative w-8 h-8 rounded-full overflow-hidden border-2 transition-all ${selectedVariantId === variant.variantId ? "border-hprimary-500 ring-2 ring-hprimary-200" : "border-gray-200 hover:border-hprimary-300"}`,
|
|
13152
13152
|
"aria-label": `Select ${variant.variantName || "variant"}`,
|
|
13153
13153
|
children: /* @__PURE__ */ jsx(
|
|
13154
13154
|
Image4,
|
|
@@ -13203,7 +13203,7 @@ function ProductCard({
|
|
|
13203
13203
|
}
|
|
13204
13204
|
},
|
|
13205
13205
|
disabled: isAddingToCart || variantImages.length > 0 && !selectedVariantId || displayInventoryCount === 0,
|
|
13206
|
-
className: "w-full font-['Poppins',sans-serif] font-medium text-[11px] px-3 py-2 rounded-full bg-
|
|
13206
|
+
className: "w-full font-['Poppins',sans-serif] font-medium text-[11px] px-3 py-2 rounded-full bg-hsecondary text-white hover:bg-hsecondary/80 hover:shadow-lg transition-all duration-300 flex items-center justify-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",
|
|
13207
13207
|
children: [
|
|
13208
13208
|
/* @__PURE__ */ jsx(ShoppingCart, { className: "h-4 w-4" }),
|
|
13209
13209
|
displayInventoryCount === 0 ? "Out of Stock" : "Add to Cart"
|
|
@@ -13267,11 +13267,11 @@ function Button({
|
|
|
13267
13267
|
children,
|
|
13268
13268
|
...props
|
|
13269
13269
|
}) {
|
|
13270
|
-
const baseStyles = "font-medium rounded-full transition-all duration-200 inline-flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed focus:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-
|
|
13270
|
+
const baseStyles = "font-medium rounded-full transition-all duration-200 inline-flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed focus:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-hprimary-500 hover:cursor-pointer";
|
|
13271
13271
|
const variants = {
|
|
13272
13272
|
primary: "bg-[#0E172B] text-white hover:bg-[#0E172B]/80 shadow-lg shadow-[#0E172B]/30 hover:shadow-xl hover:shadow-[#0E172B]/40",
|
|
13273
|
-
secondary: "bg-
|
|
13274
|
-
"outline-solid": "border-2 border-
|
|
13273
|
+
secondary: "bg-hsecondary-600 text-white hover:bg-hsecondary-700 shadow-lg shadow-secondary-500/30 hover:shadow-xl hover:shadow-secondary-500/40",
|
|
13274
|
+
"outline-solid": "border-2 border-hprimary-600 text-hprimary-600 hover:bg-hprimary-50",
|
|
13275
13275
|
ghost: "text-gray-700 hover:bg-gray-100"
|
|
13276
13276
|
};
|
|
13277
13277
|
const sizes = {
|
|
@@ -13323,7 +13323,7 @@ var Input = forwardRef(
|
|
|
13323
13323
|
ref,
|
|
13324
13324
|
className: `
|
|
13325
13325
|
w-full px-4 py-3 rounded-lg border-2 transition-all duration-200
|
|
13326
|
-
${error ? "border-red-500 focus:border-red-600 focus:ring-red-500/20" : "border-gray-200 focus:border-
|
|
13326
|
+
${error ? "border-red-500 focus:border-red-600 focus:ring-red-500/20" : "border-gray-200 focus:border-hprimary-500 focus:ring-hprimary-500/20"}
|
|
13327
13327
|
focus:outline-hidden focus:ring-4
|
|
13328
13328
|
placeholder:text-gray-400
|
|
13329
13329
|
disabled:bg-gray-50 disabled:cursor-not-allowed
|
|
@@ -13991,11 +13991,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
13991
13991
|
return Package;
|
|
13992
13992
|
};
|
|
13993
13993
|
const renderFiltersPanel = () => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "space-y-6", children: /* @__PURE__ */ jsx("div", { className: `lg:w-72 ${showFilters ? "block rounded-full" : "hidden lg:block"}`, children: /* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[24px] p-6 border-2 border-gray-100 sticky top-24", children: [
|
|
13994
|
-
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-
|
|
13994
|
+
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-hsecondary", children: "Filters" }),
|
|
13995
13995
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
13996
|
-
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
13996
|
+
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-hmuted mb-2 block font-medium", children: "Search Products" }),
|
|
13997
13997
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
13998
|
-
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-
|
|
13998
|
+
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-hmuted" }),
|
|
13999
13999
|
/* @__PURE__ */ jsx(
|
|
14000
14000
|
"input",
|
|
14001
14001
|
{
|
|
@@ -14003,7 +14003,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14003
14003
|
placeholder: "Search...",
|
|
14004
14004
|
value: searchQuery,
|
|
14005
14005
|
onChange: handleInputChange,
|
|
14006
|
-
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-
|
|
14006
|
+
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden font-['Poppins',sans-serif] text-[13px] text-hsecondary"
|
|
14007
14007
|
}
|
|
14008
14008
|
)
|
|
14009
14009
|
] })
|
|
@@ -14015,8 +14015,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14015
14015
|
onClick: () => toggleFilterSection("category"),
|
|
14016
14016
|
className: "w-full flex items-center justify-between mb-3",
|
|
14017
14017
|
children: [
|
|
14018
|
-
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
14019
|
-
expandedFilterSections.category ? /* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-
|
|
14018
|
+
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-hmuted font-medium cursor-pointer", children: "Category" }),
|
|
14019
|
+
expandedFilterSections.category ? /* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.category ? "rotate-180" : ""}` }) : /* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.category ? "rotate-180" : ""}` })
|
|
14020
14020
|
]
|
|
14021
14021
|
}
|
|
14022
14022
|
),
|
|
@@ -14032,7 +14032,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14032
14032
|
if (!isExpanded) toggleCategoryExpand(categoryId);
|
|
14033
14033
|
handleCategoryChange(categoryId);
|
|
14034
14034
|
},
|
|
14035
|
-
className: `w-full text-left px-4 py-3 rounded-xl font-['Poppins',sans-serif] text-[13px] transition-all flex items-center gap-3 ${isCategoryActive ? "bg-
|
|
14035
|
+
className: `w-full text-left px-4 py-3 rounded-xl font-['Poppins',sans-serif] text-[13px] transition-all flex items-center gap-3 ${isCategoryActive ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14036
14036
|
children: [
|
|
14037
14037
|
/* @__PURE__ */ jsx(Icon, { className: "size-4" }),
|
|
14038
14038
|
category.name
|
|
@@ -14049,8 +14049,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14049
14049
|
onClick: () => toggleFilterSection("brand"),
|
|
14050
14050
|
className: "w-full flex items-center justify-between mb-3",
|
|
14051
14051
|
children: [
|
|
14052
|
-
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
14053
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-
|
|
14052
|
+
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-hmuted font-medium cursor-pointer", children: "Brand" }),
|
|
14053
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.brand ? "rotate-180" : ""}` })
|
|
14054
14054
|
]
|
|
14055
14055
|
}
|
|
14056
14056
|
),
|
|
@@ -14060,7 +14060,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14060
14060
|
"button",
|
|
14061
14061
|
{
|
|
14062
14062
|
onClick: () => handleBrandChange(brand),
|
|
14063
|
-
className: `w-full text-left px-4 py-3 rounded-xl font-['Poppins',sans-serif] text-[13px] transition-all ${isSelected ? "bg-
|
|
14063
|
+
className: `w-full text-left px-4 py-3 rounded-xl font-['Poppins',sans-serif] text-[13px] transition-all ${isSelected ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14064
14064
|
children: brand
|
|
14065
14065
|
},
|
|
14066
14066
|
brand
|
|
@@ -14074,8 +14074,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14074
14074
|
onClick: () => toggleFilterSection("availability"),
|
|
14075
14075
|
className: "w-full flex items-center justify-between mb-3",
|
|
14076
14076
|
children: [
|
|
14077
|
-
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
14078
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-
|
|
14077
|
+
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-hmuted font-medium cursor-pointer", children: "Availability" }),
|
|
14078
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.availability ? "rotate-180" : ""}` })
|
|
14079
14079
|
]
|
|
14080
14080
|
}
|
|
14081
14081
|
),
|
|
@@ -14083,7 +14083,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14083
14083
|
"button",
|
|
14084
14084
|
{
|
|
14085
14085
|
onClick: handleToggleStock,
|
|
14086
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl font-['Poppins',sans-serif] text-[13px] transition-all border-2 ${inStockOnly ? "bg-
|
|
14086
|
+
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl font-['Poppins',sans-serif] text-[13px] transition-all border-2 ${inStockOnly ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14087
14087
|
children: "In Stock Only"
|
|
14088
14088
|
}
|
|
14089
14089
|
) })
|
|
@@ -14095,8 +14095,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14095
14095
|
onClick: () => toggleFilterSection("price"),
|
|
14096
14096
|
className: "w-full flex items-center justify-between mb-3",
|
|
14097
14097
|
children: [
|
|
14098
|
-
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
14099
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-
|
|
14098
|
+
/* @__PURE__ */ jsx("label", { className: "font-['Poppins',sans-serif] text-[12px] text-hmuted font-medium cursor-pointer", children: "Price Range" }),
|
|
14099
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.price ? "rotate-180" : ""}` })
|
|
14100
14100
|
]
|
|
14101
14101
|
}
|
|
14102
14102
|
),
|
|
@@ -14108,7 +14108,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14108
14108
|
{
|
|
14109
14109
|
type: "button",
|
|
14110
14110
|
onClick: () => handlePriceRangeSelect(range.value),
|
|
14111
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl font-['Poppins',sans-serif] text-[13px] transition-all border-2 ${isActive ? "bg-
|
|
14111
|
+
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl font-['Poppins',sans-serif] text-[13px] transition-all border-2 ${isActive ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14112
14112
|
children: range.label
|
|
14113
14113
|
},
|
|
14114
14114
|
range.value
|
|
@@ -14123,7 +14123,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14123
14123
|
placeholder: "Min",
|
|
14124
14124
|
value: customPrice.min,
|
|
14125
14125
|
onChange: (event) => setCustomPrice((current) => ({ ...current, min: event.target.value })),
|
|
14126
|
-
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-
|
|
14126
|
+
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden font-['Poppins',sans-serif] text-[13px] text-hsecondary"
|
|
14127
14127
|
}
|
|
14128
14128
|
),
|
|
14129
14129
|
/* @__PURE__ */ jsx(
|
|
@@ -14134,7 +14134,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14134
14134
|
placeholder: "Max",
|
|
14135
14135
|
value: customPrice.max,
|
|
14136
14136
|
onChange: (event) => setCustomPrice((current) => ({ ...current, max: event.target.value })),
|
|
14137
|
-
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-
|
|
14137
|
+
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden font-['Poppins',sans-serif] text-[13px] text-hsecondary"
|
|
14138
14138
|
}
|
|
14139
14139
|
)
|
|
14140
14140
|
] }),
|
|
@@ -14144,7 +14144,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14144
14144
|
type: "button",
|
|
14145
14145
|
onClick: applyCustomPrice,
|
|
14146
14146
|
disabled: !isCustomPriceDirty,
|
|
14147
|
-
className: "w-full rounded-lg border border-
|
|
14147
|
+
className: "w-full rounded-lg border border-hprimary bg-hprimary-10 px-4 py-2 text-sm font-medium text-hprimary transition hover:bg-hprimary-20 disabled:cursor-not-allowed disabled:border-slate-200 disabled:text-slate-400",
|
|
14148
14148
|
children: "Apply"
|
|
14149
14149
|
}
|
|
14150
14150
|
)
|
|
@@ -14163,7 +14163,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14163
14163
|
return Package;
|
|
14164
14164
|
};
|
|
14165
14165
|
return /* @__PURE__ */ jsxs("div", { className: "min-h-screen bg-[#F9FAFB]", children: [
|
|
14166
|
-
/* @__PURE__ */ jsx("section", { className: "relative overflow-hidden bg-
|
|
14166
|
+
/* @__PURE__ */ jsx("section", { className: "relative overflow-hidden bg-hprimary-bg py-16 md:py-24", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ jsxs(
|
|
14167
14167
|
motion.div,
|
|
14168
14168
|
{
|
|
14169
14169
|
initial: { opacity: 0, y: 24 },
|
|
@@ -14171,8 +14171,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14171
14171
|
className: "max-w-4xl mx-auto space-y-6 text-center",
|
|
14172
14172
|
children: [
|
|
14173
14173
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 mb-4", children: [
|
|
14174
|
-
/* @__PURE__ */ jsx(Star, { className: "h-5 w-5 text-
|
|
14175
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold uppercase tracking-wider text-
|
|
14174
|
+
/* @__PURE__ */ jsx(Star, { className: "h-5 w-5 text-hprimary fill-primary" }),
|
|
14175
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold uppercase tracking-wider text-hprimary", children: "COMPLETE PHARMACY SHOP" })
|
|
14176
14176
|
] }),
|
|
14177
14177
|
/* @__PURE__ */ jsx("h1", { className: "text-3xl md:text-4xl font-bold text-slate-900 leading-tight", children: "Medical Supplies & Wellness Products" }),
|
|
14178
14178
|
/* @__PURE__ */ jsx("p", { className: "text-base md:text-lg text-slate-600 max-w-2xl mx-auto", children: "From professional scrubs to vitamins, medicines to personal care - everything you need for health and wellness." }),
|
|
@@ -14191,7 +14191,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14191
14191
|
value: searchQuery,
|
|
14192
14192
|
onChange: handleInputChange,
|
|
14193
14193
|
onKeyDown: handleKeyDown,
|
|
14194
|
-
className: "flex h-16 w-full rounded-full border-0 bg-white px-5 pl-14 pr-5 text-base text-slate-900 placeholder-slate-400 shadow-lg focus:outline-hidden focus:ring-2 focus:ring-
|
|
14194
|
+
className: "flex h-16 w-full rounded-full border-0 bg-white px-5 pl-14 pr-5 text-base text-slate-900 placeholder-slate-400 shadow-lg focus:outline-hidden focus:ring-2 focus:ring-hprimary-500/30 disabled:opacity-50",
|
|
14195
14195
|
disabled: isSearching
|
|
14196
14196
|
}
|
|
14197
14197
|
)
|
|
@@ -14202,7 +14202,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14202
14202
|
}
|
|
14203
14203
|
) }) }),
|
|
14204
14204
|
/* @__PURE__ */ jsx("section", { className: "py-8 bg-white", children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4", children: [
|
|
14205
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-['Poppins',sans-serif] font-semibold text-
|
|
14205
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-['Poppins',sans-serif] font-semibold text-hsecondary mb-6", children: "Shop by Category" }),
|
|
14206
14206
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4", children: [
|
|
14207
14207
|
/* @__PURE__ */ jsx(
|
|
14208
14208
|
motion.button,
|
|
@@ -14210,11 +14210,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14210
14210
|
onClick: handleClearCategory,
|
|
14211
14211
|
initial: { opacity: 0, y: 20 },
|
|
14212
14212
|
animate: { opacity: 1, y: 0 },
|
|
14213
|
-
className: `group relative overflow-hidden rounded-[24px] p-6 min-h-[180px] min-w-[170px] transition-all duration-300 ${!categoryFilter ? "bg-linear-to-br from-
|
|
14213
|
+
className: `group relative overflow-hidden rounded-[24px] p-6 min-h-[180px] min-w-[170px] transition-all duration-300 ${!categoryFilter ? "bg-linear-to-br from-hprimary to-hsecondary text-white shadow-xl scale-105" : "bg-linear-to-br from-gray-50 to-white hover:shadow-lg border-2 border-gray-100 hover:border-hprimary"}`,
|
|
14214
14214
|
children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
14215
|
-
/* @__PURE__ */ jsx("div", { className: `size-12 rounded-full mb-3 mx-auto flex items-center justify-center transition-all ${!categoryFilter ? "bg-white/20" : "bg-linear-to-br from-
|
|
14216
|
-
/* @__PURE__ */ jsx("h3", { className: `font-['Poppins',sans-serif] font-semibold text-[14px] mb-1.5 ${!categoryFilter ? "text-white" : "text-
|
|
14217
|
-
/* @__PURE__ */ jsx("p", { className: `font-['Poppins',sans-serif] text-[11px] ${!categoryFilter ? "text-white/80" : "text-
|
|
14215
|
+
/* @__PURE__ */ jsx("div", { className: `size-12 rounded-full mb-3 mx-auto flex items-center justify-center transition-all ${!categoryFilter ? "bg-white/20" : "bg-linear-to-br from-hprimary-10 to-hsecondary-10 group-hover:scale-110"}`, children: /* @__PURE__ */ jsx(Package, { className: `size-6 ${!categoryFilter ? "text-white" : "text-hprimary"}` }) }),
|
|
14216
|
+
/* @__PURE__ */ jsx("h3", { className: `font-['Poppins',sans-serif] font-semibold text-[14px] mb-1.5 ${!categoryFilter ? "text-white" : "text-hsecondary"}`, children: "All Products" }),
|
|
14217
|
+
/* @__PURE__ */ jsx("p", { className: `font-['Poppins',sans-serif] text-[11px] ${!categoryFilter ? "text-white/80" : "text-hmuted"}`, children: "Browse Everything" })
|
|
14218
14218
|
] })
|
|
14219
14219
|
}
|
|
14220
14220
|
),
|
|
@@ -14229,11 +14229,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14229
14229
|
animate: { opacity: 1, y: 0 },
|
|
14230
14230
|
transition: { delay: index * 0.1 },
|
|
14231
14231
|
onClick: () => handleCategoryChange(categoryId),
|
|
14232
|
-
className: `group relative overflow-hidden rounded-[24px] p-6 min-h-[180px] min-w-[170px] transition-all duration-300 ${isSelected ? "bg-linear-to-br from-
|
|
14232
|
+
className: `group relative overflow-hidden rounded-[24px] p-6 min-h-[180px] min-w-[170px] transition-all duration-300 ${isSelected ? "bg-linear-to-br from-hprimary to-hsecondary text-white shadow-xl scale-105" : "bg-linear-to-br from-gray-50 to-white hover:shadow-lg border-2 border-gray-100 hover:border-hprimary"}`,
|
|
14233
14233
|
children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
14234
|
-
/* @__PURE__ */ jsx("div", { className: `size-12 rounded-full mb-3 mx-auto flex items-center justify-center transition-all ${isSelected ? "bg-white/20" : "bg-linear-to-br from-
|
|
14235
|
-
/* @__PURE__ */ jsx("h3", { className: `font-['Poppins',sans-serif] font-semibold text-[14px] mb-1.5 ${isSelected ? "text-white" : "text-
|
|
14236
|
-
/* @__PURE__ */ jsx("p", { className: `font-['Poppins',sans-serif] text-[11px] ${isSelected ? "text-white/80" : "text-
|
|
14234
|
+
/* @__PURE__ */ jsx("div", { className: `size-12 rounded-full mb-3 mx-auto flex items-center justify-center transition-all ${isSelected ? "bg-white/20" : "bg-linear-to-br from-hprimary-10 to-hsecondary-10 group-hover:scale-110"}`, children: /* @__PURE__ */ jsx(Icon, { className: `size-6 ${isSelected ? "text-white" : "text-hprimary"}` }) }),
|
|
14235
|
+
/* @__PURE__ */ jsx("h3", { className: `font-['Poppins',sans-serif] font-semibold text-[14px] mb-1.5 ${isSelected ? "text-white" : "text-hsecondary"}`, children: category.name }),
|
|
14236
|
+
/* @__PURE__ */ jsx("p", { className: `font-['Poppins',sans-serif] text-[11px] ${isSelected ? "text-white/80" : "text-hmuted"}`, children: category.description })
|
|
14237
14237
|
] })
|
|
14238
14238
|
},
|
|
14239
14239
|
categoryId
|
|
@@ -14257,7 +14257,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14257
14257
|
onChange: (event) => {
|
|
14258
14258
|
setSortOption(event.target.value);
|
|
14259
14259
|
},
|
|
14260
|
-
className: "appearance-none rounded-full border border-gray-200 bg-white py-2.5 pl-10 pr-9 text-sm font-medium text-gray-700 shadow-xs transition focus:outline-hidden focus:ring-1 focus:ring-
|
|
14260
|
+
className: "appearance-none rounded-full border border-gray-200 bg-white py-2.5 pl-10 pr-9 text-sm font-medium text-gray-700 shadow-xs transition focus:outline-hidden focus:ring-1 focus:ring-hsecondary focus:border-hprimary",
|
|
14261
14261
|
children: [
|
|
14262
14262
|
/* @__PURE__ */ jsx("option", { value: "featured", children: "Featured products" }),
|
|
14263
14263
|
/* @__PURE__ */ jsx("option", { value: "price-low-high", children: "Price: low to high" }),
|
|
@@ -14274,7 +14274,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14274
14274
|
{
|
|
14275
14275
|
type: "button",
|
|
14276
14276
|
onClick: () => setViewMode("grid"),
|
|
14277
|
-
className: `flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition ${viewMode === "grid" ? "bg-white text-
|
|
14277
|
+
className: `flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition ${viewMode === "grid" ? "bg-white text-hprimary shadow-md" : "text-gray-500 hover:text-gray-700"}`,
|
|
14278
14278
|
"aria-pressed": viewMode === "grid",
|
|
14279
14279
|
children: /* @__PURE__ */ jsx(LayoutGrid, { className: "h-4 w-4" })
|
|
14280
14280
|
}
|
|
@@ -14284,7 +14284,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14284
14284
|
{
|
|
14285
14285
|
type: "button",
|
|
14286
14286
|
onClick: () => setViewMode("list"),
|
|
14287
|
-
className: `flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition ${viewMode === "list" ? "bg-white text-
|
|
14287
|
+
className: `flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition ${viewMode === "list" ? "bg-white text-hprimary shadow-md" : "text-gray-500 hover:text-gray-700"}`,
|
|
14288
14288
|
"aria-pressed": viewMode === "list",
|
|
14289
14289
|
children: /* @__PURE__ */ jsx(LayoutList, { className: "h-4 w-4" })
|
|
14290
14290
|
}
|
|
@@ -14298,10 +14298,10 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14298
14298
|
{
|
|
14299
14299
|
type: "button",
|
|
14300
14300
|
onClick: chip.onRemove,
|
|
14301
|
-
className: "group flex items-center gap-2 rounded-full bg-
|
|
14301
|
+
className: "group flex items-center gap-2 rounded-full bg-hprimary-50 px-3 py-1.5 text-sm font-medium text-hprimary-700 transition hover:bg-hprimary-100",
|
|
14302
14302
|
children: [
|
|
14303
14303
|
chip.label,
|
|
14304
|
-
/* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-
|
|
14304
|
+
/* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-hprimary-500 group-hover:text-hprimary-700" })
|
|
14305
14305
|
]
|
|
14306
14306
|
},
|
|
14307
14307
|
chip.key
|
|
@@ -14349,7 +14349,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14349
14349
|
}
|
|
14350
14350
|
) }),
|
|
14351
14351
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-3", children: [
|
|
14352
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-2 text-xs font-semibold uppercase tracking-wide text-
|
|
14352
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-2 text-xs font-semibold uppercase tracking-wide text-hprimary-600", children: product.tags?.slice(0, 3).map((tag) => /* @__PURE__ */ jsx(
|
|
14353
14353
|
"span",
|
|
14354
14354
|
{
|
|
14355
14355
|
className: "rounded-full bg-slate-100 px-3 py-1 text-gray-600",
|
|
@@ -14359,12 +14359,12 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14359
14359
|
)) }),
|
|
14360
14360
|
/* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-gray-900 line-clamp-2", children: product.name }),
|
|
14361
14361
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-4 text-sm text-gray-500", children: [
|
|
14362
|
-
/* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2 font-medium text-
|
|
14362
|
+
/* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2 font-medium text-hprimary-600", children: [
|
|
14363
14363
|
/* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4" }),
|
|
14364
14364
|
displayInventoryCount > 0 ? "In stock & ready to ship" : "Restocking soon"
|
|
14365
14365
|
] }),
|
|
14366
14366
|
/* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2", children: [
|
|
14367
|
-
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-
|
|
14367
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-hprimary-500" }),
|
|
14368
14368
|
"Added ",
|
|
14369
14369
|
new Date(product.createdAt).toLocaleDateString()
|
|
14370
14370
|
] })
|
|
@@ -14382,7 +14382,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14382
14382
|
event.stopPropagation();
|
|
14383
14383
|
router.push(buildPath(`/products/${product._id}`));
|
|
14384
14384
|
},
|
|
14385
|
-
className: "w-full font-['Poppins',sans-serif] font-medium text-sm px-3 py-2 rounded-xl bg-
|
|
14385
|
+
className: "w-full font-['Poppins',sans-serif] font-medium text-sm px-3 py-2 rounded-xl bg-hsecondary text-white hover:opacity-80 hover:shadow-lg transition-all duration-300 flex items-center justify-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
14386
14386
|
children: "View product"
|
|
14387
14387
|
}
|
|
14388
14388
|
)
|
|
@@ -14748,7 +14748,7 @@ function ReviewCard({ review, showProductInfo = false }) {
|
|
|
14748
14748
|
return /* @__PURE__ */ jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-white", children: [
|
|
14749
14749
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-3", children: [
|
|
14750
14750
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
14751
|
-
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 bg-
|
|
14751
|
+
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 bg-hsecondary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsx(User, { className: "size-5 text-hsecondary" }) }),
|
|
14752
14752
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
14753
14753
|
/* @__PURE__ */ jsx("p", { className: "font-medium text-gray-900", children: "Customer Review" }),
|
|
14754
14754
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: formatDistanceToNow(reviewDate, { addSuffix: true }) })
|
|
@@ -14758,9 +14758,9 @@ function ReviewCard({ review, showProductInfo = false }) {
|
|
|
14758
14758
|
] }),
|
|
14759
14759
|
review.reviewType && /* @__PURE__ */ jsx("span", { className: "inline-block px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded mb-2", children: review.reviewType }),
|
|
14760
14760
|
/* @__PURE__ */ jsx("p", { className: "text-gray-700 text-sm leading-relaxed mb-3", children: review.review }),
|
|
14761
|
-
review.reply && /* @__PURE__ */ jsxs("div", { className: "mt-4 pl-4 border-l-2 border-
|
|
14761
|
+
review.reply && /* @__PURE__ */ jsxs("div", { className: "mt-4 pl-4 border-l-2 border-hsecondary bg-gray-50 p-3 rounded", children: [
|
|
14762
14762
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
14763
|
-
/* @__PURE__ */ jsx(MessageCircle, { className: "size-4 text-
|
|
14763
|
+
/* @__PURE__ */ jsx(MessageCircle, { className: "size-4 text-hsecondary" }),
|
|
14764
14764
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-gray-900", children: "Store Response" }),
|
|
14765
14765
|
replyDate && /* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: formatDistanceToNow(replyDate, { addSuffix: true }) })
|
|
14766
14766
|
] }),
|
|
@@ -15110,7 +15110,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15110
15110
|
}
|
|
15111
15111
|
if (!product) {
|
|
15112
15112
|
return /* @__PURE__ */ jsx("div", { className: "min-h-screen bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 py-16", children: /* @__PURE__ */ jsxs("div", { className: "rounded-3xl bg-white p-10 text-center shadow-xs", children: [
|
|
15113
|
-
/* @__PURE__ */ jsx(Sparkles, { className: "mx-auto h-10 w-10 text-
|
|
15113
|
+
/* @__PURE__ */ jsx(Sparkles, { className: "mx-auto h-10 w-10 text-hprimary-500" }),
|
|
15114
15114
|
/* @__PURE__ */ jsx("h1", { className: "mt-6 text-2xl font-semibold text-gray-900", children: "Product not found" }),
|
|
15115
15115
|
/* @__PURE__ */ jsx("p", { className: "mt-2 text-gray-600", children: "It may have been removed or is temporarily unavailable. Discover other pharmacy essentials in our catalogue." }),
|
|
15116
15116
|
/* @__PURE__ */ jsx("div", { className: "mt-6", children: /* @__PURE__ */ jsx(Link9, { href: "/shop", className: "inline-block", children: /* @__PURE__ */ jsx(Button, { children: "Browse products" }) }) })
|
|
@@ -15121,7 +15121,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15121
15121
|
"button",
|
|
15122
15122
|
{
|
|
15123
15123
|
onClick: () => router.push(buildPath("/shop")),
|
|
15124
|
-
className: "flex items-center gap-2 font-['Poppins',sans-serif] text-[13px] text-
|
|
15124
|
+
className: "flex items-center gap-2 font-['Poppins',sans-serif] text-[13px] text-hmuted hover:text-hprimary transition-colors",
|
|
15125
15125
|
children: [
|
|
15126
15126
|
/* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" }),
|
|
15127
15127
|
"Back to Shop"
|
|
@@ -15174,7 +15174,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15174
15174
|
{
|
|
15175
15175
|
type: "button",
|
|
15176
15176
|
onClick: () => setActiveImageIndex(index),
|
|
15177
|
-
className: `relative aspect-square overflow-hidden rounded-lg border-2 transition-all ${activeImageIndex === index ? "border-
|
|
15177
|
+
className: `relative aspect-square overflow-hidden rounded-lg border-2 transition-all ${activeImageIndex === index ? "border-hprimary-50 ring-2 ring-hprimary-80 ring-offset-2 shadow-md" : "border-slate-200 hover:border-hprimary-50"}`,
|
|
15178
15178
|
children: /* @__PURE__ */ jsx(
|
|
15179
15179
|
Image4,
|
|
15180
15180
|
{
|
|
@@ -15192,12 +15192,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15192
15192
|
] }) }) }),
|
|
15193
15193
|
/* @__PURE__ */ jsxs("aside", { className: "space-y-6 lg:sticky lg:top-24", children: [
|
|
15194
15194
|
/* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
15195
|
-
/* @__PURE__ */ jsxs("p", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
15195
|
+
/* @__PURE__ */ jsxs("p", { className: "font-['Poppins',sans-serif] text-[12px] text-hprimary uppercase tracking-wide font-medium mb-2", children: [
|
|
15196
15196
|
product.brand,
|
|
15197
15197
|
" \u2022 ",
|
|
15198
15198
|
product.categoryIds?.[0]?.name || "Uncategorized"
|
|
15199
15199
|
] }),
|
|
15200
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-['Poppins',sans-serif] font-semibold text-
|
|
15200
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-['Poppins',sans-serif] font-semibold text-hsecondary tracking-[-1.5px] mb-3", children: selectedVariant?.name || product.name }),
|
|
15201
15201
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15202
15202
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
|
|
15203
15203
|
Star,
|
|
@@ -15206,7 +15206,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15206
15206
|
},
|
|
15207
15207
|
i
|
|
15208
15208
|
)) }),
|
|
15209
|
-
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[14px] text-
|
|
15209
|
+
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[14px] text-hmuted", children: [
|
|
15210
15210
|
reviewStats.averageRating,
|
|
15211
15211
|
" (",
|
|
15212
15212
|
reviewStats.reviewCount,
|
|
@@ -15221,7 +15221,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15221
15221
|
variantPrice.toFixed(2)
|
|
15222
15222
|
] }),
|
|
15223
15223
|
variantComparePrice && variantComparePrice > variantPrice && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15224
|
-
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[24px] text-
|
|
15224
|
+
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[24px] text-hmuted line-through", children: [
|
|
15225
15225
|
"$",
|
|
15226
15226
|
variantComparePrice.toFixed(2)
|
|
15227
15227
|
] }),
|
|
@@ -15236,8 +15236,8 @@ function ProductDetailScreen({ productId }) {
|
|
|
15236
15236
|
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-red-500" }),
|
|
15237
15237
|
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] text-[13px] text-red-600 font-medium", children: "Out of Stock" })
|
|
15238
15238
|
] }) : selectedVariant.inventoryStatus === "LOW_STOCK" /* LOWSTOCK */ || selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15239
|
-
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-
|
|
15240
|
-
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[13px] text-
|
|
15239
|
+
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-hprimary animate-pulse" }),
|
|
15240
|
+
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[13px] text-hprimary font-medium", children: [
|
|
15241
15241
|
"Only ",
|
|
15242
15242
|
selectedVariant.inventoryCount,
|
|
15243
15243
|
" left in stock - Order soon!"
|
|
@@ -15246,7 +15246,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15246
15246
|
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-green-500" }),
|
|
15247
15247
|
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] text-[13px] text-green-600 font-medium", children: "In Stock" })
|
|
15248
15248
|
] }) }),
|
|
15249
|
-
/* @__PURE__ */ jsxs("p", { className: "font-['Poppins',sans-serif] text-[12px] text-
|
|
15249
|
+
/* @__PURE__ */ jsxs("p", { className: "font-['Poppins',sans-serif] text-[12px] text-hmuted", children: [
|
|
15250
15250
|
"SKU: ",
|
|
15251
15251
|
selectedVariant?.sku || product?.sku
|
|
15252
15252
|
] })
|
|
@@ -15254,12 +15254,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15254
15254
|
product.description && /* @__PURE__ */ jsx(
|
|
15255
15255
|
"div",
|
|
15256
15256
|
{
|
|
15257
|
-
className: "font-['Poppins',sans-serif] text-[14px] text-
|
|
15257
|
+
className: "font-['Poppins',sans-serif] text-[14px] text-hmuted leading-[1.7] mb-8 max-w-full overflow-hidden break-words",
|
|
15258
15258
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15259
15259
|
}
|
|
15260
15260
|
),
|
|
15261
15261
|
product?.variants && product.variants.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
15262
|
-
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-[14px] text-
|
|
15262
|
+
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-[14px] text-hsecondary mb-3", children: "Select Variant" }),
|
|
15263
15263
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3", children: product.variants.map((variant) => {
|
|
15264
15264
|
const isSelected = selectedVariant?._id === variant._id;
|
|
15265
15265
|
const variantImage = variant.media?.[0]?.file || product.media?.[0]?.file || product.images?.[0] || PLACEHOLDER_IMAGE_SRC;
|
|
@@ -15268,9 +15268,9 @@ function ProductDetailScreen({ productId }) {
|
|
|
15268
15268
|
{
|
|
15269
15269
|
type: "button",
|
|
15270
15270
|
onClick: () => handleVariantSelect(variant),
|
|
15271
|
-
className: `flex items-start gap-3 px-4 py-2.5 rounded-xl border-2 transition-all ${isSelected ? "border-
|
|
15271
|
+
className: `flex items-start gap-3 px-4 py-2.5 rounded-xl border-2 transition-all ${isSelected ? "border-hprimary bg-hprimary-5" : "border-gray-200 hover:border-hprimary-50"}`,
|
|
15272
15272
|
children: [
|
|
15273
|
-
/* @__PURE__ */ jsx("div", { className: `relative h-12 w-12 shrink-0 overflow-hidden rounded-full border-2 ${isSelected ? "border-
|
|
15273
|
+
/* @__PURE__ */ jsx("div", { className: `relative h-12 w-12 shrink-0 overflow-hidden rounded-full border-2 ${isSelected ? "border-hprimary" : "border-slate-200"}`, children: /* @__PURE__ */ jsx(
|
|
15274
15274
|
Image4,
|
|
15275
15275
|
{
|
|
15276
15276
|
src: variantImage,
|
|
@@ -15281,13 +15281,13 @@ function ProductDetailScreen({ productId }) {
|
|
|
15281
15281
|
}
|
|
15282
15282
|
) }),
|
|
15283
15283
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
15284
|
-
/* @__PURE__ */ jsx("p", { className: `text-start text-sm font-medium ${isSelected ? "text-
|
|
15284
|
+
/* @__PURE__ */ jsx("p", { className: `text-start text-sm font-medium ${isSelected ? "text-hsecondary" : "text-slate-900"}`, children: variant.name }),
|
|
15285
15285
|
variant.sku && /* @__PURE__ */ jsxs("p", { className: "text-start text-xs text-slate-500 mt-0.5", children: [
|
|
15286
15286
|
"SKU: ",
|
|
15287
15287
|
variant.sku
|
|
15288
15288
|
] })
|
|
15289
15289
|
] }),
|
|
15290
|
-
isSelected && /* @__PURE__ */ jsx(Check, { className: "h-5 w-5 text-
|
|
15290
|
+
isSelected && /* @__PURE__ */ jsx(Check, { className: "h-5 w-5 text-hsecondary shrink-0" })
|
|
15291
15291
|
]
|
|
15292
15292
|
},
|
|
15293
15293
|
variant._id
|
|
@@ -15295,7 +15295,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15295
15295
|
}) })
|
|
15296
15296
|
] }),
|
|
15297
15297
|
/* @__PURE__ */ jsxs("div", { className: "mb-8", children: [
|
|
15298
|
-
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-[14px] text-
|
|
15298
|
+
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-[14px] text-hsecondary mb-3", children: "Quantity" }),
|
|
15299
15299
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15300
15300
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 bg-gray-100 rounded-full px-6 py-3", children: [
|
|
15301
15301
|
/* @__PURE__ */ jsx(
|
|
@@ -15303,18 +15303,18 @@ function ProductDetailScreen({ productId }) {
|
|
|
15303
15303
|
{
|
|
15304
15304
|
type: "button",
|
|
15305
15305
|
onClick: () => setQuantity((current) => Math.max(1, current - 1)),
|
|
15306
|
-
className: "font-['Poppins',sans-serif] font-bold text-[18px] text-
|
|
15306
|
+
className: "font-['Poppins',sans-serif] font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors",
|
|
15307
15307
|
"aria-label": "Increase quantity",
|
|
15308
15308
|
children: "-"
|
|
15309
15309
|
}
|
|
15310
15310
|
),
|
|
15311
|
-
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] font-semibold text-[16px] text-
|
|
15311
|
+
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] font-semibold text-[16px] text-hsecondary min-w-[30px] text-center", children: quantity }),
|
|
15312
15312
|
/* @__PURE__ */ jsx(
|
|
15313
15313
|
"button",
|
|
15314
15314
|
{
|
|
15315
15315
|
onClick: () => setQuantity(Math.min(selectedVariant?.inventoryCount || product.inventoryCount || 999, quantity + 1)),
|
|
15316
15316
|
disabled: quantity >= (selectedVariant?.inventoryCount || product.inventoryCount || 0),
|
|
15317
|
-
className: "font-['Poppins',sans-serif] font-bold text-[18px] text-
|
|
15317
|
+
className: "font-['Poppins',sans-serif] font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors disabled:opacity-50",
|
|
15318
15318
|
children: "+"
|
|
15319
15319
|
}
|
|
15320
15320
|
)
|
|
@@ -15347,40 +15347,40 @@ function ProductDetailScreen({ productId }) {
|
|
|
15347
15347
|
/* @__PURE__ */ jsx(
|
|
15348
15348
|
"button",
|
|
15349
15349
|
{
|
|
15350
|
-
className: "sm:w-auto px-6 py-4 rounded-full border-2 border-
|
|
15350
|
+
className: "sm:w-auto px-6 py-4 rounded-full border-2 border-hprimary hover:bg-hprimary-5 transition-all flex items-center justify-center",
|
|
15351
15351
|
onClick: handleToggleFavorite,
|
|
15352
|
-
children: /* @__PURE__ */ jsx(Heart, { className: `h-4 w-4 ${isFavorited ? "fill-red-500 text-red-500" : "text-
|
|
15352
|
+
children: /* @__PURE__ */ jsx(Heart, { className: `h-4 w-4 ${isFavorited ? "fill-red-500 text-red-500" : "text-hprimary"}` })
|
|
15353
15353
|
}
|
|
15354
15354
|
)
|
|
15355
15355
|
] })
|
|
15356
15356
|
] }),
|
|
15357
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4 p-6 bg-linear-to-br from-
|
|
15357
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4 p-6 bg-linear-to-br from-hsecondary/5 to-hsecondary/5 rounded-[24px]", children: [
|
|
15358
15358
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15359
|
-
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Truck, { className: "size-5 text-
|
|
15359
|
+
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Truck, { className: "size-5 text-hprimary" }) }),
|
|
15360
15360
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15361
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-
|
|
15362
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-
|
|
15361
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-hsecondary mb-1", children: "Free Shipping" }),
|
|
15362
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-hmuted", children: "On all orders" })
|
|
15363
15363
|
] })
|
|
15364
15364
|
] }),
|
|
15365
15365
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15366
|
-
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(RotateCcw, { className: "size-5 text-
|
|
15366
|
+
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(RotateCcw, { className: "size-5 text-hprimary" }) }),
|
|
15367
15367
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15368
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-
|
|
15369
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-
|
|
15368
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-hsecondary mb-1", children: "Easy Returns" }),
|
|
15369
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-hmuted", children: "30-day return policy" })
|
|
15370
15370
|
] })
|
|
15371
15371
|
] }),
|
|
15372
15372
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15373
|
-
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Shield, { className: "size-5 text-
|
|
15373
|
+
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Shield, { className: "size-5 text-hprimary" }) }),
|
|
15374
15374
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15375
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-
|
|
15376
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-
|
|
15375
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-hsecondary mb-1", children: "Secure Checkout" }),
|
|
15376
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-hmuted", children: "Safe & protected" })
|
|
15377
15377
|
] })
|
|
15378
15378
|
] }),
|
|
15379
15379
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15380
|
-
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Package, { className: "size-5 text-
|
|
15380
|
+
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Package, { className: "size-5 text-hprimary" }) }),
|
|
15381
15381
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15382
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-
|
|
15383
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-
|
|
15382
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-hsecondary mb-1", children: "Quality Guaranteed" }),
|
|
15383
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[11px] text-hmuted", children: "Premium materials" })
|
|
15384
15384
|
] })
|
|
15385
15385
|
] })
|
|
15386
15386
|
] })
|
|
@@ -15391,35 +15391,35 @@ function ProductDetailScreen({ productId }) {
|
|
|
15391
15391
|
"button",
|
|
15392
15392
|
{
|
|
15393
15393
|
onClick: () => setActiveTab(tab),
|
|
15394
|
-
className: `font-['Poppins',sans-serif] font-medium text-[14px] px-6 py-4 transition-all ${activeTab === tab ? "text-
|
|
15394
|
+
className: `font-['Poppins',sans-serif] font-medium text-[14px] px-6 py-4 transition-all ${activeTab === tab ? "text-hprimary border-b-2 border-hprimary -mb-0.5" : "text-hmuted hover:text-hprimary"}`,
|
|
15395
15395
|
children: tab.charAt(0).toUpperCase() + tab.slice(1)
|
|
15396
15396
|
},
|
|
15397
15397
|
tab
|
|
15398
15398
|
)) }),
|
|
15399
15399
|
/* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[24px] p-8 border-2 border-gray-100", children: [
|
|
15400
15400
|
activeTab === "description" && /* @__PURE__ */ jsxs("div", { children: [
|
|
15401
|
-
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-
|
|
15401
|
+
/* @__PURE__ */ jsx("h3", { className: "font-['Poppins',sans-serif] font-semibold text-hsecondary mb-4", children: "Product Description" }),
|
|
15402
15402
|
/* @__PURE__ */ jsx(
|
|
15403
15403
|
"div",
|
|
15404
15404
|
{
|
|
15405
|
-
className: "font-['Poppins',sans-serif] text-[14px] text-
|
|
15405
|
+
className: "font-['Poppins',sans-serif] text-[14px] text-hmuted leading-[1.8] mb-4 max-w-full overflow-hidden break-words",
|
|
15406
15406
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15407
15407
|
}
|
|
15408
15408
|
),
|
|
15409
15409
|
/* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
15410
|
-
/* @__PURE__ */ jsx("h4", { className: "font-['Poppins',sans-serif] font-semibold text-[13px] text-
|
|
15411
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[14px] text-
|
|
15410
|
+
/* @__PURE__ */ jsx("h4", { className: "font-['Poppins',sans-serif] font-semibold text-[13px] text-hsecondary mb-3", children: "Last updated:" }),
|
|
15411
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[14px] text-hmuted", children: lastUpdatedLabel })
|
|
15412
15412
|
] }),
|
|
15413
15413
|
/* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
15414
|
-
/* @__PURE__ */ jsx("h4", { className: "font-['Poppins',sans-serif] font-semibold text-[13px] text-
|
|
15415
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[14px] text-
|
|
15414
|
+
/* @__PURE__ */ jsx("h4", { className: "font-['Poppins',sans-serif] font-semibold text-[13px] text-hsecondary mb-3", children: "Shipped from:" }),
|
|
15415
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[14px] text-hmuted", children: "Local pharmacy distribution center" })
|
|
15416
15416
|
] })
|
|
15417
15417
|
] }),
|
|
15418
15418
|
activeTab === "reviews" && /* @__PURE__ */ jsx(ProductReviewsSection, { productId })
|
|
15419
15419
|
] })
|
|
15420
15420
|
] }),
|
|
15421
15421
|
relatedProducts.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
15422
|
-
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-
|
|
15422
|
+
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-hsecondary mb-8 text-2xl", children: "You May Also Like" }),
|
|
15423
15423
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6", children: relatedProducts.map((relatedProduct) => /* @__PURE__ */ jsx(
|
|
15424
15424
|
ProductCard,
|
|
15425
15425
|
{
|
|
@@ -15464,7 +15464,7 @@ function CartItem({ item }) {
|
|
|
15464
15464
|
initial: { opacity: 0, y: 20 },
|
|
15465
15465
|
animate: { opacity: 1, y: 0 },
|
|
15466
15466
|
exit: { opacity: 0, x: -100 },
|
|
15467
|
-
className: "bg-white border-2 border-gray-100 rounded-[24px] p-6 hover:border-
|
|
15467
|
+
className: "bg-white border-2 border-gray-100 rounded-[24px] p-6 hover:border-hsecondary/30 transition-all duration-300",
|
|
15468
15468
|
children: /* @__PURE__ */ jsxs("div", { className: "flex gap-4 pr-8", children: [
|
|
15469
15469
|
/* @__PURE__ */ jsx("div", { className: "w-28 h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsx(
|
|
15470
15470
|
Image4,
|
|
@@ -15519,7 +15519,7 @@ function CartItem({ item }) {
|
|
|
15519
15519
|
)
|
|
15520
15520
|
] }),
|
|
15521
15521
|
/* @__PURE__ */ jsxs("div", { className: "text-right", children: [
|
|
15522
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-bold text-[18px] text-
|
|
15522
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-bold text-[18px] text-hsecondary", children: formatPrice(itemTotal) }),
|
|
15523
15523
|
/* @__PURE__ */ jsxs("p", { className: "font-['Poppins',sans-serif] text-[11px] text-[#676c80]", children: [
|
|
15524
15524
|
formatPrice(unitPrice),
|
|
15525
15525
|
" each"
|
|
@@ -15545,17 +15545,17 @@ function CartScreen() {
|
|
|
15545
15545
|
animate: { opacity: 1, y: 0 },
|
|
15546
15546
|
className: "text-center space-y-6 max-w-md",
|
|
15547
15547
|
children: [
|
|
15548
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsx(ShoppingBag, { className: "h-12 w-12 text-
|
|
15548
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsx(ShoppingBag, { className: "h-12 w-12 text-hsecondary" }) }) }),
|
|
15549
15549
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
15550
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-
|
|
15551
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
15550
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Your cart is empty" }),
|
|
15551
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted", children: "Start adding products to your cart to see them here." })
|
|
15552
15552
|
] }),
|
|
15553
15553
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3 justify-center", children: /* @__PURE__ */ jsxs(
|
|
15554
15554
|
"button",
|
|
15555
15555
|
{
|
|
15556
15556
|
type: "button",
|
|
15557
15557
|
onClick: () => router.push(buildPath("/shop")),
|
|
15558
|
-
className: "rounded-xl border-2 border-
|
|
15558
|
+
className: "rounded-xl border-2 border-hprimary bg-hsecondary text-white px-6 py-3 text-sm font-medium transition-colors flex items-center justify-center gap-2 hover:opacity-80",
|
|
15559
15559
|
children: [
|
|
15560
15560
|
"Discover products",
|
|
15561
15561
|
/* @__PURE__ */ jsx(ArrowRight, { className: "h-5 w-5" })
|
|
@@ -15564,15 +15564,15 @@ function CartScreen() {
|
|
|
15564
15564
|
) }),
|
|
15565
15565
|
/* @__PURE__ */ jsxs("div", { className: "mt-8 space-y-3 pt-6 border-t border-gray-200", children: [
|
|
15566
15566
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15567
|
-
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-
|
|
15567
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15568
15568
|
/* @__PURE__ */ jsx("span", { children: "Free shipping on all orders" })
|
|
15569
15569
|
] }),
|
|
15570
15570
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15571
|
-
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-
|
|
15571
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15572
15572
|
/* @__PURE__ */ jsx("span", { children: "Easy returns within 30 days" })
|
|
15573
15573
|
] }),
|
|
15574
15574
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15575
|
-
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-
|
|
15575
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15576
15576
|
/* @__PURE__ */ jsx("span", { children: "Secure checkout process" })
|
|
15577
15577
|
] })
|
|
15578
15578
|
] })
|
|
@@ -15598,8 +15598,8 @@ function CartScreen() {
|
|
|
15598
15598
|
};
|
|
15599
15599
|
return /* @__PURE__ */ jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsx("div", { className: "max-w-[1400px] mx-auto px-8 md:px-12", children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4 py-8", children: [
|
|
15600
15600
|
/* @__PURE__ */ jsxs("div", { className: "mb-12", children: [
|
|
15601
|
-
/* @__PURE__ */ jsx("h1", { className: "font-['Poppins',sans-serif] font-semibold text-
|
|
15602
|
-
/* @__PURE__ */ jsxs("p", { className: "font-['Poppins',sans-serif] text-[16px] text-
|
|
15601
|
+
/* @__PURE__ */ jsx("h1", { className: "font-['Poppins',sans-serif] font-semibold text-hsecondary tracking-[-2px] mb-2 text-4xl", children: "Shopping Cart" }),
|
|
15602
|
+
/* @__PURE__ */ jsxs("p", { className: "font-['Poppins',sans-serif] text-[16px] text-hmuted", children: [
|
|
15603
15603
|
itemCount,
|
|
15604
15604
|
" ",
|
|
15605
15605
|
itemCount === 1 ? "item" : "items",
|
|
@@ -15629,26 +15629,26 @@ function CartScreen() {
|
|
|
15629
15629
|
animate: { opacity: 1, y: 0 },
|
|
15630
15630
|
transition: { delay: 0.1 },
|
|
15631
15631
|
className: "space-y-6 lg:sticky lg:top-24 h-fit lg:col-span-1",
|
|
15632
|
-
children: /* @__PURE__ */ jsxs("div", { className: "bg-linear-to-br from-
|
|
15633
|
-
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-
|
|
15632
|
+
children: /* @__PURE__ */ jsxs("div", { className: "bg-linear-to-br from-hsecondary/10 to-hsecondary/10 rounded-[24px] p-8 border-2 border-hsecondary/20 sticky top-24", children: [
|
|
15633
|
+
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-hsecondary mb-6", children: "Order Summary" }),
|
|
15634
15634
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4 mb-6", children: [
|
|
15635
15635
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15636
|
-
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[14px] text-
|
|
15636
|
+
/* @__PURE__ */ jsxs("span", { className: "font-['Poppins',sans-serif] text-[14px] text-hmuted", children: [
|
|
15637
15637
|
"Subtotal (",
|
|
15638
15638
|
itemCount,
|
|
15639
15639
|
" ",
|
|
15640
15640
|
itemCount === 1 ? "item" : "items",
|
|
15641
15641
|
")"
|
|
15642
15642
|
] }),
|
|
15643
|
-
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] font-semibold text-[14px] text-
|
|
15643
|
+
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] font-semibold text-[14px] text-hsecondary", children: formatPrice(subtotal) })
|
|
15644
15644
|
] }),
|
|
15645
15645
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
15646
15646
|
/* @__PURE__ */ jsx("span", { className: "text-gray-600", children: "Shipping" }),
|
|
15647
15647
|
/* @__PURE__ */ jsx("span", { className: "font-semibold text-green-600", children: "Will be calculated at checkout" })
|
|
15648
15648
|
] }),
|
|
15649
15649
|
/* @__PURE__ */ jsx("div", { className: "border-t border-gray-200 pt-4 mt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15650
|
-
/* @__PURE__ */ jsx("span", { className: "text-lg font-bold text-
|
|
15651
|
-
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold text-
|
|
15650
|
+
/* @__PURE__ */ jsx("span", { className: "text-lg font-bold text-hsecondary", children: "Total" }),
|
|
15651
|
+
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold text-hprimary", children: formatPrice(total) })
|
|
15652
15652
|
] }) })
|
|
15653
15653
|
] }),
|
|
15654
15654
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
@@ -15657,7 +15657,7 @@ function CartScreen() {
|
|
|
15657
15657
|
{
|
|
15658
15658
|
type: "submit",
|
|
15659
15659
|
onClick: handleSubmit,
|
|
15660
|
-
className: "w-full rounded-full border-2 border-
|
|
15660
|
+
className: "w-full rounded-full border-2 border-hsecondary bg-hsecondary hover:bg-hsecondary/80 text-white px-4 py-3 text-sm font-medium transition-colors flex items-center justify-center gap-2",
|
|
15661
15661
|
children: [
|
|
15662
15662
|
"Proceed to Checkout",
|
|
15663
15663
|
/* @__PURE__ */ jsx(ArrowRight, { className: "h-5 w-5" })
|
|
@@ -15676,11 +15676,11 @@ function CartScreen() {
|
|
|
15676
15676
|
] }),
|
|
15677
15677
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 space-y-3 pt-6 border-t border-gray-200", children: [
|
|
15678
15678
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15679
|
-
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-
|
|
15679
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hmuted shrink-0 mt-0.5" }),
|
|
15680
15680
|
/* @__PURE__ */ jsx("span", { children: "Easy returns within 30 days" })
|
|
15681
15681
|
] }),
|
|
15682
15682
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15683
|
-
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-
|
|
15683
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hmuted shrink-0 mt-0.5" }),
|
|
15684
15684
|
/* @__PURE__ */ jsx("span", { children: "Secure checkout process" })
|
|
15685
15685
|
] })
|
|
15686
15686
|
] })
|
|
@@ -16045,11 +16045,11 @@ function AddressFormModal({ isOpen, onClose, onAddressAdded, onAddressUpdated, i
|
|
|
16045
16045
|
{
|
|
16046
16046
|
type: "button",
|
|
16047
16047
|
onClick: onClose,
|
|
16048
|
-
className: "flex flex-row items-center gap-2 px-6 py-2 border border-slate-200 rounded-xl text-slate-700 hover:opacity-80 transition-colors text-
|
|
16048
|
+
className: "flex flex-row items-center gap-2 px-6 py-2 border border-slate-200 rounded-xl text-slate-700 hover:opacity-80 transition-colors text-hsecondary text-sm",
|
|
16049
16049
|
children: "Cancel"
|
|
16050
16050
|
}
|
|
16051
16051
|
),
|
|
16052
|
-
/* @__PURE__ */ jsx("button", { type: "submit", disabled: isSubmitting, className: "flex flex-row items-center gap-2 px-6 py-2 border border-slate-200 rounded-xl text-slate-700 hover:opacity-80 transition-colors bg-
|
|
16052
|
+
/* @__PURE__ */ jsx("button", { type: "submit", disabled: isSubmitting, className: "flex flex-row items-center gap-2 px-6 py-2 border border-slate-200 rounded-xl text-slate-700 hover:opacity-80 transition-colors bg-hsecondary text-white text-sm", children: isSubmitting ? "Adding Address..." : "Add Address" })
|
|
16053
16053
|
] })
|
|
16054
16054
|
] })
|
|
16055
16055
|
}
|
|
@@ -16656,13 +16656,13 @@ function CheckoutScreen() {
|
|
|
16656
16656
|
setShippingPrice(0);
|
|
16657
16657
|
}
|
|
16658
16658
|
},
|
|
16659
|
-
className: `relative flex w-full items-center justify-between rounded-xl border-2 p-3 transition-all duration-200 ${active ? "border-
|
|
16659
|
+
className: `relative flex w-full items-center justify-between rounded-xl border-2 p-3 transition-all duration-200 ${active ? "border-hprimary-500 bg-hprimary-50" : "border-gray-200 hover:border-hprimary-300"}`,
|
|
16660
16660
|
children: [
|
|
16661
16661
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
16662
16662
|
/* @__PURE__ */ jsx(
|
|
16663
16663
|
"div",
|
|
16664
16664
|
{
|
|
16665
|
-
className: `p-2 rounded-lg ${active ? "bg-
|
|
16665
|
+
className: `p-2 rounded-lg ${active ? "bg-hprimary-100 text-hprimary-600" : "bg-gray-100 text-gray-600"}`,
|
|
16666
16666
|
children: option.icon
|
|
16667
16667
|
}
|
|
16668
16668
|
),
|
|
@@ -16671,7 +16671,7 @@ function CheckoutScreen() {
|
|
|
16671
16671
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: option.desc })
|
|
16672
16672
|
] })
|
|
16673
16673
|
] }),
|
|
16674
|
-
active && /* @__PURE__ */ jsx("div", { className: "w-5 h-5 rounded-full bg-
|
|
16674
|
+
active && /* @__PURE__ */ jsx("div", { className: "w-5 h-5 rounded-full bg-hprimary-500 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Check, { className: "w-3 h-3 text-white" }) })
|
|
16675
16675
|
]
|
|
16676
16676
|
},
|
|
16677
16677
|
option.id
|
|
@@ -16753,7 +16753,7 @@ function CheckoutScreen() {
|
|
|
16753
16753
|
userAddresses.length > 0 ? /* @__PURE__ */ jsx("div", { className: "grid gap-4", children: userAddresses.map((addr) => /* @__PURE__ */ jsxs(
|
|
16754
16754
|
"label",
|
|
16755
16755
|
{
|
|
16756
|
-
className: `group relative flex items-start gap-3 p-4 rounded-2xl border ${selectedAddressId === addr.id ? "border-
|
|
16756
|
+
className: `group relative flex items-start gap-3 p-4 rounded-2xl border ${selectedAddressId === addr.id ? "border-hprimary-500 bg-hprimary-50 shadow-xs" : "border-slate-200 bg-white"} cursor-pointer hover:border-hprimary-300 transition-colors`,
|
|
16757
16757
|
children: [
|
|
16758
16758
|
/* @__PURE__ */ jsx(
|
|
16759
16759
|
"input",
|
|
@@ -16790,7 +16790,7 @@ function CheckoutScreen() {
|
|
|
16790
16790
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-slate-600", children: addr.country }),
|
|
16791
16791
|
addr.phone && /* @__PURE__ */ jsx("p", { className: "text-sm text-slate-600 mt-1", children: addr.phone }),
|
|
16792
16792
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center gap-2", children: [
|
|
16793
|
-
addr.isDefault && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center gap-1 rounded-full bg-
|
|
16793
|
+
addr.isDefault && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center gap-1 rounded-full bg-hprimary-100 px-2.5 py-0.5 text-xs font-semibold text-hprimary-700", children: "Default" }),
|
|
16794
16794
|
/* @__PURE__ */ jsxs(
|
|
16795
16795
|
"button",
|
|
16796
16796
|
{
|
|
@@ -16800,7 +16800,7 @@ function CheckoutScreen() {
|
|
|
16800
16800
|
setEditingAddress(addr);
|
|
16801
16801
|
setIsAddressModalOpen(true);
|
|
16802
16802
|
},
|
|
16803
|
-
className: "inline-flex items-center gap-1 rounded-full border border-slate-200 px-2.5 py-0.5 text-xs font-medium text-slate-600 hover:border-
|
|
16803
|
+
className: "inline-flex items-center gap-1 rounded-full border border-slate-200 px-2.5 py-0.5 text-xs font-medium text-slate-600 hover:border-hprimary-300 hover:text-hprimary-600",
|
|
16804
16804
|
children: [
|
|
16805
16805
|
/* @__PURE__ */ jsx(Edit3, { className: "h-3.5 w-3.5" }),
|
|
16806
16806
|
" Edit"
|
|
@@ -16863,7 +16863,7 @@ function CheckoutScreen() {
|
|
|
16863
16863
|
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] text-2xl", children: "Shipping Options" })
|
|
16864
16864
|
] }),
|
|
16865
16865
|
shippingRatesLoading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center py-12", children: [
|
|
16866
|
-
/* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-
|
|
16866
|
+
/* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-haccent" }),
|
|
16867
16867
|
/* @__PURE__ */ jsx("span", { className: "ml-3 text-gray-600", children: "Loading shipping options..." })
|
|
16868
16868
|
] }) : shippingRatesError ? /* @__PURE__ */ jsxs("div", { className: "text-center py-12", children: [
|
|
16869
16869
|
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 mx-auto mb-4 bg-red-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsx("svg", { className: "w-8 h-8 text-red-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) }) }),
|
|
@@ -16879,7 +16879,7 @@ function CheckoutScreen() {
|
|
|
16879
16879
|
setSelectedShippingRateId(rate.objectId);
|
|
16880
16880
|
setShippingPrice(parseFloat(rate.amount));
|
|
16881
16881
|
},
|
|
16882
|
-
className: `relative p-5 border-2 rounded-xl cursor-pointer transition-all duration-200 hover:shadow-md ${isSelected ? "border-
|
|
16882
|
+
className: `relative p-5 border-2 rounded-xl cursor-pointer transition-all duration-200 hover:shadow-md ${isSelected ? "border-hprimary-500 bg-hprimary-50 ring-2 ring-hprimary-200" : "border-gray-200 hover:border-gray-300"}`,
|
|
16883
16883
|
children: [
|
|
16884
16884
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
16885
16885
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 flex-1", children: [
|
|
@@ -16904,7 +16904,7 @@ function CheckoutScreen() {
|
|
|
16904
16904
|
" ",
|
|
16905
16905
|
rate.servicelevel?.name
|
|
16906
16906
|
] }),
|
|
16907
|
-
isTest && /* @__PURE__ */ jsx("span", { className: "px-2 py-1 text-xs font-medium bg-
|
|
16907
|
+
isTest && /* @__PURE__ */ jsx("span", { className: "px-2 py-1 text-xs font-medium bg-hprimary-100 text-hprimary-800 rounded-full", children: "TEST" })
|
|
16908
16908
|
] }),
|
|
16909
16909
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1 text-sm text-gray-600", children: [
|
|
16910
16910
|
rate.durationTerms && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -16946,7 +16946,7 @@ function CheckoutScreen() {
|
|
|
16946
16946
|
] })
|
|
16947
16947
|
] })
|
|
16948
16948
|
] }),
|
|
16949
|
-
isSelected && /* @__PURE__ */ jsx("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ jsx("div", { className: "w-6 h-6 bg-
|
|
16949
|
+
isSelected && /* @__PURE__ */ jsx("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ jsx("div", { className: "w-6 h-6 bg-hprimary-500 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsx(Check, { className: "w-4 h-4 text-white" }) }) })
|
|
16950
16950
|
]
|
|
16951
16951
|
},
|
|
16952
16952
|
rate.objectId
|
|
@@ -16967,8 +16967,8 @@ function CheckoutScreen() {
|
|
|
16967
16967
|
animate: { opacity: 1, y: 0 },
|
|
16968
16968
|
transition: { duration: 0.5, ease: "easeOut", delay: 0.1 },
|
|
16969
16969
|
className: "space-y-10 lg:sticky lg:top-24 lg:col-span-1",
|
|
16970
|
-
children: /* @__PURE__ */ jsxs("div", { className: "bg-linear-to-br from-
|
|
16971
|
-
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-
|
|
16970
|
+
children: /* @__PURE__ */ jsxs("div", { className: "bg-linear-to-br from-hsecondary/10 to-hsecondary/10 rounded-[24px] p-8 border-2 border-hsecondary/20 sticky top-24", children: [
|
|
16971
|
+
/* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-hsecondary mb-6 text-2xl", children: "Order Summary" }),
|
|
16972
16972
|
/* @__PURE__ */ jsxs("section", { className: "mt-8 pt-6 border-t border-slate-100", children: [
|
|
16973
16973
|
/* @__PURE__ */ jsx("div", { className: "space-y-4 mb-6", children: cart?.cartBody?.items?.map((item) => /* @__PURE__ */ jsxs("div", { className: "flex gap-3", children: [
|
|
16974
16974
|
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 rounded-xl overflow-hidden bg-white shrink-0", children: /* @__PURE__ */ jsx(Image4, { src: item.productVariantData?.media?.[0]?.file || PLACEHOLDER_IMAGE_SRC, alt: item.productVariantData.name, className: "w-full h-full object-cover", height: 200, width: 200 }) }),
|
|
@@ -16979,10 +16979,10 @@ function CheckoutScreen() {
|
|
|
16979
16979
|
" \u2022 Qty: ",
|
|
16980
16980
|
item.quantity
|
|
16981
16981
|
] }),
|
|
16982
|
-
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-
|
|
16982
|
+
/* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] font-semibold text-[12px] text-hsecondary mt-1", children: formatPrice(item.productVariantData.finalPrice * item.quantity) })
|
|
16983
16983
|
] })
|
|
16984
16984
|
] }, item.productVariantId || item.id)) }),
|
|
16985
|
-
/* @__PURE__ */ jsx("div", { className: "h-px bg-
|
|
16985
|
+
/* @__PURE__ */ jsx("div", { className: "h-px bg-hsecondary/20 my-4" }),
|
|
16986
16986
|
/* @__PURE__ */ jsx("div", { className: "mb-6", children: /* @__PURE__ */ jsx(
|
|
16987
16987
|
CouponCodeInput,
|
|
16988
16988
|
{
|
|
@@ -17014,14 +17014,14 @@ function CheckoutScreen() {
|
|
|
17014
17014
|
/* @__PURE__ */ jsx("span", { children: "Estimated tax" }),
|
|
17015
17015
|
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatPrice(tax) })
|
|
17016
17016
|
] }),
|
|
17017
|
-
/* @__PURE__ */ jsx("div", { className: "h-px bg-
|
|
17017
|
+
/* @__PURE__ */ jsx("div", { className: "h-px bg-hsecondary/20 mt-6" }),
|
|
17018
17018
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-6", children: [
|
|
17019
|
-
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] font-semibold text-[16px] text-
|
|
17020
|
-
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] font-bold text-[24px] text-
|
|
17019
|
+
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] font-semibold text-[16px] text-hsecondary", children: "Total" }),
|
|
17020
|
+
/* @__PURE__ */ jsx("span", { className: "font-['Poppins',sans-serif] font-bold text-[24px] text-hsecondary", children: formatPrice(total) })
|
|
17021
17021
|
] })
|
|
17022
17022
|
] }),
|
|
17023
17023
|
/* @__PURE__ */ jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxs("p", { className: "font-['Poppins',sans-serif] text-[11px] text-[#676c80] leading-[1.6]", children: [
|
|
17024
|
-
/* @__PURE__ */ jsx("strong", { className: "text-
|
|
17024
|
+
/* @__PURE__ */ jsx("strong", { className: "text-hsecondary", children: "Payment:" }),
|
|
17025
17025
|
" We'll contact you to arrange payment upon pickup or delivery. We accept cash, credit cards, and all major payment methods."
|
|
17026
17026
|
] }) })
|
|
17027
17027
|
] }),
|
|
@@ -17057,7 +17057,7 @@ function CheckoutScreen() {
|
|
|
17057
17057
|
{
|
|
17058
17058
|
type: "submit",
|
|
17059
17059
|
disabled: isSubmitting,
|
|
17060
|
-
className: "font-['Poppins',sans-serif] font-medium text-[14px] px-6 py-3 rounded-full text-white hover:bg-[#d66f45] hover:shadow-lg transition-all duration-300 mt-4 w-full bg-
|
|
17060
|
+
className: "font-['Poppins',sans-serif] font-medium text-[14px] px-6 py-3 rounded-full text-white hover:bg-[#d66f45] hover:shadow-lg transition-all duration-300 mt-4 w-full bg-hsecondary hover:bg-[#2B4B7C] flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
17061
17061
|
children: [
|
|
17062
17062
|
/* @__PURE__ */ jsx(CreditCard, { className: "h-5 w-5" }),
|
|
17063
17063
|
isSubmitting ? "Placing order..." : "Place Secure Order"
|
|
@@ -17149,9 +17149,9 @@ function LoginScreen() {
|
|
|
17149
17149
|
className: "flex items-center justify-center px-6 py-12 lg:px-16",
|
|
17150
17150
|
children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-lg space-y-10 text-center", children: [
|
|
17151
17151
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
17152
|
-
/* @__PURE__ */ jsx(Lock, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17153
|
-
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-
|
|
17154
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
17152
|
+
/* @__PURE__ */ jsx(Lock, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4" }),
|
|
17153
|
+
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-hsecondary", children: "Welcome Back" }),
|
|
17154
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Sign in to access your patient portal" })
|
|
17155
17155
|
] }),
|
|
17156
17156
|
/* @__PURE__ */ jsxs(
|
|
17157
17157
|
"form",
|
|
@@ -17169,10 +17169,10 @@ function LoginScreen() {
|
|
|
17169
17169
|
children: /* @__PURE__ */ jsx("span", { children: status.message })
|
|
17170
17170
|
}
|
|
17171
17171
|
),
|
|
17172
|
-
/* @__PURE__ */ jsxs("div", { className: "text-start text-
|
|
17173
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17172
|
+
/* @__PURE__ */ jsxs("div", { className: "text-start text-hsecondary", children: [
|
|
17173
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17174
17174
|
"Email Address ",
|
|
17175
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17175
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17176
17176
|
] }),
|
|
17177
17177
|
/* @__PURE__ */ jsx(
|
|
17178
17178
|
Input,
|
|
@@ -17181,14 +17181,14 @@ function LoginScreen() {
|
|
|
17181
17181
|
placeholder: "you@example.com",
|
|
17182
17182
|
...register("email"),
|
|
17183
17183
|
error: errors.email?.message,
|
|
17184
|
-
className: "text-
|
|
17184
|
+
className: "text-hsecondary"
|
|
17185
17185
|
}
|
|
17186
17186
|
)
|
|
17187
17187
|
] }),
|
|
17188
|
-
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-
|
|
17189
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17188
|
+
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17189
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17190
17190
|
"Password ",
|
|
17191
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17191
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17192
17192
|
] }),
|
|
17193
17193
|
/* @__PURE__ */ jsx(
|
|
17194
17194
|
Input,
|
|
@@ -17213,7 +17213,7 @@ function LoginScreen() {
|
|
|
17213
17213
|
Link9,
|
|
17214
17214
|
{
|
|
17215
17215
|
href: buildPath("/forgot-password"),
|
|
17216
|
-
className: "font-medium text-
|
|
17216
|
+
className: "font-medium text-hprimary transition hover:opacity-80",
|
|
17217
17217
|
children: "Forgot password?"
|
|
17218
17218
|
}
|
|
17219
17219
|
) }),
|
|
@@ -17222,16 +17222,16 @@ function LoginScreen() {
|
|
|
17222
17222
|
{
|
|
17223
17223
|
type: "submit",
|
|
17224
17224
|
disabled: isSubmitting,
|
|
17225
|
-
className: "w-full bg-
|
|
17225
|
+
className: "w-full bg-hsecondary hover:opacity-80 text-white font-medium py-3 px-4 rounded-lg transition-colors disabled:opacity-70 disabled:cursor-not-allowed",
|
|
17226
17226
|
children: isSubmitting ? "Signing in..." : "Sign in"
|
|
17227
17227
|
}
|
|
17228
17228
|
)
|
|
17229
17229
|
]
|
|
17230
17230
|
}
|
|
17231
17231
|
),
|
|
17232
|
-
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-
|
|
17232
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-hmuted", children: [
|
|
17233
17233
|
"Don't have an account? ",
|
|
17234
|
-
/* @__PURE__ */ jsx(Link9, { href: buildPath("/register"), className: "font-medium text-
|
|
17234
|
+
/* @__PURE__ */ jsx(Link9, { href: buildPath("/register"), className: "font-medium text-hprimary transition hover:opacity-90", children: "Sign up" })
|
|
17235
17235
|
] }) })
|
|
17236
17236
|
] })
|
|
17237
17237
|
}
|
|
@@ -17296,9 +17296,9 @@ function RegisterScreen() {
|
|
|
17296
17296
|
className: "flex items-center justify-center px-6 py-12 lg:px-16",
|
|
17297
17297
|
children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-xl space-y-10 text-center", children: [
|
|
17298
17298
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
17299
|
-
/* @__PURE__ */ jsx(UserPlus, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17300
|
-
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-
|
|
17301
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
17299
|
+
/* @__PURE__ */ jsx(UserPlus, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-hprimary m-2 mb-4 px-4" }),
|
|
17300
|
+
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-hsecondary", children: "Create Your Account" }),
|
|
17301
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Join Holmdel Pharmacy Care for convenient healthcare access" })
|
|
17302
17302
|
] }),
|
|
17303
17303
|
/* @__PURE__ */ jsxs(
|
|
17304
17304
|
"form",
|
|
@@ -17311,9 +17311,9 @@ function RegisterScreen() {
|
|
|
17311
17311
|
children: [
|
|
17312
17312
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2 text-start", children: [
|
|
17313
17313
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17314
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17314
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17315
17315
|
"First name ",
|
|
17316
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17316
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17317
17317
|
] }),
|
|
17318
17318
|
/* @__PURE__ */ jsx(
|
|
17319
17319
|
Input,
|
|
@@ -17325,9 +17325,9 @@ function RegisterScreen() {
|
|
|
17325
17325
|
)
|
|
17326
17326
|
] }),
|
|
17327
17327
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17328
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17328
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17329
17329
|
"Last name ",
|
|
17330
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17330
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17331
17331
|
] }),
|
|
17332
17332
|
/* @__PURE__ */ jsx(
|
|
17333
17333
|
Input,
|
|
@@ -17340,9 +17340,9 @@ function RegisterScreen() {
|
|
|
17340
17340
|
] })
|
|
17341
17341
|
] }),
|
|
17342
17342
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17343
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17343
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17344
17344
|
"Email Address ",
|
|
17345
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17345
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17346
17346
|
] }),
|
|
17347
17347
|
/* @__PURE__ */ jsx(
|
|
17348
17348
|
Input,
|
|
@@ -17355,7 +17355,7 @@ function RegisterScreen() {
|
|
|
17355
17355
|
)
|
|
17356
17356
|
] }),
|
|
17357
17357
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17358
|
-
/* @__PURE__ */ jsx("h2", { className: "text-sm text-
|
|
17358
|
+
/* @__PURE__ */ jsx("h2", { className: "text-sm text-hsecondary mb-3", children: "Phone Number" }),
|
|
17359
17359
|
/* @__PURE__ */ jsx(
|
|
17360
17360
|
Input,
|
|
17361
17361
|
{
|
|
@@ -17367,9 +17367,9 @@ function RegisterScreen() {
|
|
|
17367
17367
|
)
|
|
17368
17368
|
] }),
|
|
17369
17369
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
17370
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17370
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17371
17371
|
"Password ",
|
|
17372
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17372
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17373
17373
|
] }),
|
|
17374
17374
|
/* @__PURE__ */ jsx(
|
|
17375
17375
|
Input,
|
|
@@ -17391,9 +17391,9 @@ function RegisterScreen() {
|
|
|
17391
17391
|
)
|
|
17392
17392
|
] }),
|
|
17393
17393
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
17394
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17394
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17395
17395
|
"Confirm Password ",
|
|
17396
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17396
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17397
17397
|
] }),
|
|
17398
17398
|
/* @__PURE__ */ jsx(
|
|
17399
17399
|
Input,
|
|
@@ -17415,11 +17415,11 @@ function RegisterScreen() {
|
|
|
17415
17415
|
)
|
|
17416
17416
|
] }),
|
|
17417
17417
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 rounded-2xl bg-slate-50 p-4 text-sm text-slate-600", children: [
|
|
17418
|
-
/* @__PURE__ */ jsx(Shield, { strokeWidth: 2, className: "mt-0.5 h-8 w-8 text-
|
|
17418
|
+
/* @__PURE__ */ jsx(Shield, { strokeWidth: 2, className: "mt-0.5 h-8 w-8 text-hprimary" }),
|
|
17419
17419
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
17420
17420
|
"By creating an account, you agree to our",
|
|
17421
17421
|
" ",
|
|
17422
|
-
/* @__PURE__ */ jsx(Link9, { href: buildPath("/terms"), className: "font-semibold text-
|
|
17422
|
+
/* @__PURE__ */ jsx(Link9, { href: buildPath("/terms"), className: "font-semibold text-hprimary hover:opacity-70", children: "Terms of Service" }),
|
|
17423
17423
|
" ",
|
|
17424
17424
|
"and",
|
|
17425
17425
|
" ",
|
|
@@ -17427,7 +17427,7 @@ function RegisterScreen() {
|
|
|
17427
17427
|
Link9,
|
|
17428
17428
|
{
|
|
17429
17429
|
href: buildPath("/privacy"),
|
|
17430
|
-
className: "font-semibold text-
|
|
17430
|
+
className: "font-semibold text-hprimary hover:opacity-70",
|
|
17431
17431
|
children: "Privacy Policy"
|
|
17432
17432
|
}
|
|
17433
17433
|
),
|
|
@@ -17439,16 +17439,16 @@ function RegisterScreen() {
|
|
|
17439
17439
|
{
|
|
17440
17440
|
type: "submit",
|
|
17441
17441
|
disabled: isSubmitting,
|
|
17442
|
-
className: "w-full bg-
|
|
17442
|
+
className: "w-full bg-hsecondary hover:opacity-80 text-white font-medium py-3 px-4 rounded-lg transition-colors disabled:opacity-70 disabled:cursor-not-allowed",
|
|
17443
17443
|
children: isSubmitting ? "Creating account..." : "Create my account"
|
|
17444
17444
|
}
|
|
17445
17445
|
)
|
|
17446
17446
|
]
|
|
17447
17447
|
}
|
|
17448
17448
|
),
|
|
17449
|
-
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-
|
|
17449
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-hmuted", children: [
|
|
17450
17450
|
"Already have an account? ",
|
|
17451
|
-
/* @__PURE__ */ jsx(Link9, { href: buildPath("/login"), className: "font-medium text-
|
|
17451
|
+
/* @__PURE__ */ jsx(Link9, { href: buildPath("/login"), className: "font-medium text-hprimary transition hover:opacity-90", children: "Sign in" })
|
|
17452
17452
|
] }) })
|
|
17453
17453
|
] })
|
|
17454
17454
|
}
|
|
@@ -17503,11 +17503,11 @@ function ForgotPasswordScreen() {
|
|
|
17503
17503
|
Mail,
|
|
17504
17504
|
{
|
|
17505
17505
|
strokeWidth: 2,
|
|
17506
|
-
className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17506
|
+
className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4"
|
|
17507
17507
|
}
|
|
17508
17508
|
),
|
|
17509
|
-
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-
|
|
17510
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
17509
|
+
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-hsecondary", children: "Forgot Password?" }),
|
|
17510
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "No worries! Enter your email and we'll send you reset instructions." })
|
|
17511
17511
|
] }),
|
|
17512
17512
|
/* @__PURE__ */ jsxs(
|
|
17513
17513
|
"form",
|
|
@@ -17528,10 +17528,10 @@ function ForgotPasswordScreen() {
|
|
|
17528
17528
|
]
|
|
17529
17529
|
}
|
|
17530
17530
|
),
|
|
17531
|
-
/* @__PURE__ */ jsxs("div", { className: "text-start text-
|
|
17532
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17531
|
+
/* @__PURE__ */ jsxs("div", { className: "text-start text-hsecondary", children: [
|
|
17532
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17533
17533
|
"Email Address ",
|
|
17534
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17534
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17535
17535
|
] }),
|
|
17536
17536
|
/* @__PURE__ */ jsx(
|
|
17537
17537
|
Input,
|
|
@@ -17540,7 +17540,7 @@ function ForgotPasswordScreen() {
|
|
|
17540
17540
|
placeholder: "you@example.com",
|
|
17541
17541
|
...register("email"),
|
|
17542
17542
|
error: errors.email?.message,
|
|
17543
|
-
className: "text-
|
|
17543
|
+
className: "text-hsecondary"
|
|
17544
17544
|
}
|
|
17545
17545
|
)
|
|
17546
17546
|
] }),
|
|
@@ -17549,7 +17549,7 @@ function ForgotPasswordScreen() {
|
|
|
17549
17549
|
{
|
|
17550
17550
|
type: "submit",
|
|
17551
17551
|
disabled: isSubmitting,
|
|
17552
|
-
className: "w-full bg-
|
|
17552
|
+
className: "w-full bg-hsecondary hover:opacity-80 text-white font-medium py-3 px-4 rounded-lg transition-colors disabled:opacity-70 disabled:cursor-not-allowed flex items-center justify-center gap-2",
|
|
17553
17553
|
children: isSubmitting ? "Sending..." : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17554
17554
|
/* @__PURE__ */ jsx(Send, { className: "h-4 w-4" }),
|
|
17555
17555
|
"Send Reset Link"
|
|
@@ -17560,7 +17560,7 @@ function ForgotPasswordScreen() {
|
|
|
17560
17560
|
Link9,
|
|
17561
17561
|
{
|
|
17562
17562
|
href: buildPath("/login"),
|
|
17563
|
-
className: "flex items-center justify-center gap-2 text-sm font-medium text-
|
|
17563
|
+
className: "flex items-center justify-center gap-2 text-sm font-medium text-hprimary transition hover:opacity-80",
|
|
17564
17564
|
children: [
|
|
17565
17565
|
/* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }),
|
|
17566
17566
|
"Back to login"
|
|
@@ -17570,14 +17570,14 @@ function ForgotPasswordScreen() {
|
|
|
17570
17570
|
]
|
|
17571
17571
|
}
|
|
17572
17572
|
),
|
|
17573
|
-
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-
|
|
17573
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-hmuted", children: [
|
|
17574
17574
|
"Don't have an account?",
|
|
17575
17575
|
" ",
|
|
17576
17576
|
/* @__PURE__ */ jsx(
|
|
17577
17577
|
Link9,
|
|
17578
17578
|
{
|
|
17579
17579
|
href: buildPath("/register"),
|
|
17580
|
-
className: "font-medium text-
|
|
17580
|
+
className: "font-medium text-hprimary transition hover:opacity-90",
|
|
17581
17581
|
children: "Sign up"
|
|
17582
17582
|
}
|
|
17583
17583
|
)
|
|
@@ -17668,11 +17668,11 @@ function ResetPasswordScreen() {
|
|
|
17668
17668
|
Lock,
|
|
17669
17669
|
{
|
|
17670
17670
|
strokeWidth: 2,
|
|
17671
|
-
className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17671
|
+
className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4"
|
|
17672
17672
|
}
|
|
17673
17673
|
),
|
|
17674
|
-
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-
|
|
17675
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
17674
|
+
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-hsecondary", children: "Reset Password" }),
|
|
17675
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Enter your new password below to reset your account password." })
|
|
17676
17676
|
] }),
|
|
17677
17677
|
/* @__PURE__ */ jsxs(
|
|
17678
17678
|
"form",
|
|
@@ -17693,10 +17693,10 @@ function ResetPasswordScreen() {
|
|
|
17693
17693
|
]
|
|
17694
17694
|
}
|
|
17695
17695
|
),
|
|
17696
|
-
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-
|
|
17697
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17696
|
+
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17697
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17698
17698
|
"New Password ",
|
|
17699
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17699
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17700
17700
|
] }),
|
|
17701
17701
|
/* @__PURE__ */ jsx(
|
|
17702
17702
|
Input,
|
|
@@ -17705,7 +17705,7 @@ function ResetPasswordScreen() {
|
|
|
17705
17705
|
placeholder: "Enter new password (min. 8 characters)",
|
|
17706
17706
|
...register("newPassword"),
|
|
17707
17707
|
error: errors.newPassword?.message,
|
|
17708
|
-
className: "text-
|
|
17708
|
+
className: "text-hsecondary"
|
|
17709
17709
|
}
|
|
17710
17710
|
),
|
|
17711
17711
|
/* @__PURE__ */ jsx(
|
|
@@ -17718,10 +17718,10 @@ function ResetPasswordScreen() {
|
|
|
17718
17718
|
}
|
|
17719
17719
|
)
|
|
17720
17720
|
] }),
|
|
17721
|
-
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-
|
|
17722
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17721
|
+
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17722
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17723
17723
|
"Confirm Password ",
|
|
17724
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17724
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17725
17725
|
] }),
|
|
17726
17726
|
/* @__PURE__ */ jsx(
|
|
17727
17727
|
Input,
|
|
@@ -17730,7 +17730,7 @@ function ResetPasswordScreen() {
|
|
|
17730
17730
|
placeholder: "Re-enter new password",
|
|
17731
17731
|
...register("confirmPassword"),
|
|
17732
17732
|
error: errors.confirmPassword?.message,
|
|
17733
|
-
className: "text-
|
|
17733
|
+
className: "text-hsecondary"
|
|
17734
17734
|
}
|
|
17735
17735
|
),
|
|
17736
17736
|
/* @__PURE__ */ jsx(
|
|
@@ -17748,19 +17748,19 @@ function ResetPasswordScreen() {
|
|
|
17748
17748
|
{
|
|
17749
17749
|
type: "submit",
|
|
17750
17750
|
disabled: isSubmitting || !token,
|
|
17751
|
-
className: "w-full bg-
|
|
17751
|
+
className: "w-full bg-hsecondary hover:opacity-80 text-white font-medium py-3 px-4 rounded-lg transition-colors disabled:opacity-70 disabled:cursor-not-allowed",
|
|
17752
17752
|
children: isSubmitting ? "Resetting Password..." : "Reset Password"
|
|
17753
17753
|
}
|
|
17754
17754
|
),
|
|
17755
17755
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-600", children: [
|
|
17756
|
-
/* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4 text-
|
|
17756
|
+
/* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4 text-hprimary-600" }),
|
|
17757
17757
|
"Use a strong password that you haven't used elsewhere."
|
|
17758
17758
|
] }),
|
|
17759
17759
|
/* @__PURE__ */ jsx("div", { className: "pt-4 border-t border-slate-200", children: /* @__PURE__ */ jsx(
|
|
17760
17760
|
Link9,
|
|
17761
17761
|
{
|
|
17762
17762
|
href: buildPath("/login"),
|
|
17763
|
-
className: "text-sm font-medium text-
|
|
17763
|
+
className: "text-sm font-medium text-hprimary transition hover:opacity-80",
|
|
17764
17764
|
children: "Back to login"
|
|
17765
17765
|
}
|
|
17766
17766
|
) })
|
|
@@ -17782,7 +17782,7 @@ function TabNavigation({ tabs: tabs2, activeTab, onTabChange }) {
|
|
|
17782
17782
|
className: `
|
|
17783
17783
|
flex items-center gap-2 px-6 py-3 mt-2 text-sm font-medium whitespace-nowrap
|
|
17784
17784
|
border-b-2 transition-colors
|
|
17785
|
-
${isActive ? "bg-
|
|
17785
|
+
${isActive ? "bg-hsecondary text-white rounded-xl hover:transition-all hover:duration-300 hover:ease-in-out hover:-translate-y-1" : "bg-white text-hmuted rounded-xl hover:text-hsecondary hover:transition-all hover:duration-150 hover:ease-in-out hover:-translate-y-1"}
|
|
17786
17786
|
`,
|
|
17787
17787
|
"aria-current": isActive ? "page" : void 0,
|
|
17788
17788
|
children: [
|
|
@@ -17901,8 +17901,8 @@ function useCurrentOrders() {
|
|
|
17901
17901
|
}
|
|
17902
17902
|
function Badge({ children, variant = "primary", size = "md", className = "" }) {
|
|
17903
17903
|
const variants = {
|
|
17904
|
-
primary: "bg-
|
|
17905
|
-
secondary: "bg-
|
|
17904
|
+
primary: "bg-hprimary-100 text-hprimary-700 border-hprimary-200",
|
|
17905
|
+
secondary: "bg-hsecondary-100 text-hsecondary-700 border-hsecondary-200",
|
|
17906
17906
|
success: "bg-green-100 text-green-700 border-green-200",
|
|
17907
17907
|
warning: "bg-yellow-100 text-yellow-700 border-yellow-200",
|
|
17908
17908
|
danger: "bg-red-100 text-red-700 border-red-200",
|
|
@@ -17962,7 +17962,7 @@ function AccountOverviewTab() {
|
|
|
17962
17962
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
17963
17963
|
/* @__PURE__ */ jsx("div", { className: `flex h-12 w-12 items-center justify-center rounded-lg ${stat.color}`, children: /* @__PURE__ */ jsx(Icon, { className: "h-6 w-6" }) }),
|
|
17964
17964
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17965
|
-
/* @__PURE__ */ jsx("p", { className: "text-2xl font-bold text-
|
|
17965
|
+
/* @__PURE__ */ jsx("p", { className: "text-2xl font-bold text-hsecondary", children: stat.value }),
|
|
17966
17966
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-slate-600", children: stat.label })
|
|
17967
17967
|
] })
|
|
17968
17968
|
] })
|
|
@@ -17972,12 +17972,12 @@ function AccountOverviewTab() {
|
|
|
17972
17972
|
}) }),
|
|
17973
17973
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-slate-200 bg-white p-6", children: [
|
|
17974
17974
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
17975
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
17975
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Profile Information" }),
|
|
17976
17976
|
/* @__PURE__ */ jsxs(
|
|
17977
17977
|
"button",
|
|
17978
17978
|
{
|
|
17979
17979
|
onClick: () => router.push(buildPath("/account/edit")),
|
|
17980
|
-
className: "flex items-center gap-1 text-sm text-
|
|
17980
|
+
className: "flex items-center gap-1 text-sm text-hprimary-600 hover:text-hprimary-700",
|
|
17981
17981
|
children: [
|
|
17982
17982
|
/* @__PURE__ */ jsx(Edit, { className: "h-4 w-4" }),
|
|
17983
17983
|
"Edit"
|
|
@@ -17987,10 +17987,10 @@ function AccountOverviewTab() {
|
|
|
17987
17987
|
] }),
|
|
17988
17988
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
17989
17989
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
17990
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#DBEAFE]", children: /* @__PURE__ */ jsx(User, { className: "h-5 w-5 text-
|
|
17990
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#DBEAFE]", children: /* @__PURE__ */ jsx(User, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
17991
17991
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17992
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
17993
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-
|
|
17992
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Full Name" }),
|
|
17993
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hsecondary", children: [
|
|
17994
17994
|
user.firstname,
|
|
17995
17995
|
" ",
|
|
17996
17996
|
user.lastname
|
|
@@ -17998,31 +17998,31 @@ function AccountOverviewTab() {
|
|
|
17998
17998
|
] })
|
|
17999
17999
|
] }),
|
|
18000
18000
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18001
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#DBEAFE]", children: /* @__PURE__ */ jsx(Mail, { className: "h-5 w-5 text-
|
|
18001
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#DBEAFE]", children: /* @__PURE__ */ jsx(Mail, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18002
18002
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18003
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18004
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
18003
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "E-mail Address" }),
|
|
18004
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.email })
|
|
18005
18005
|
] })
|
|
18006
18006
|
] }),
|
|
18007
18007
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18008
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#DBEAFE]", children: /* @__PURE__ */ jsx(Phone, { className: "h-5 w-5 text-
|
|
18008
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#DBEAFE]", children: /* @__PURE__ */ jsx(Phone, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18009
18009
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18010
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18011
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
18010
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Phone Number" }),
|
|
18011
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.phoneNumber || "Not provided" })
|
|
18012
18012
|
] })
|
|
18013
18013
|
] }),
|
|
18014
18014
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18015
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#DBEAFE]", children: /* @__PURE__ */ jsx(MapPin, { className: "h-5 w-5 text-
|
|
18015
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#DBEAFE]", children: /* @__PURE__ */ jsx(MapPin, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18016
18016
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18017
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18018
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
18017
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Date of Birth" }),
|
|
18018
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: "Not provided" })
|
|
18019
18019
|
] })
|
|
18020
18020
|
] })
|
|
18021
18021
|
] })
|
|
18022
18022
|
] }),
|
|
18023
18023
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-slate-200 bg-white p-6", children: [
|
|
18024
18024
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
18025
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
18025
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Recent Orders" }),
|
|
18026
18026
|
/* @__PURE__ */ jsx(
|
|
18027
18027
|
"button",
|
|
18028
18028
|
{
|
|
@@ -18030,7 +18030,7 @@ function AccountOverviewTab() {
|
|
|
18030
18030
|
const event = new CustomEvent("switchTab", { detail: "orders" });
|
|
18031
18031
|
window.dispatchEvent(event);
|
|
18032
18032
|
},
|
|
18033
|
-
className: "text-sm text-
|
|
18033
|
+
className: "text-sm text-hprimary-600 hover:text-hprimary-700",
|
|
18034
18034
|
children: "View All \u2192"
|
|
18035
18035
|
}
|
|
18036
18036
|
)
|
|
@@ -18041,7 +18041,7 @@ function AccountOverviewTab() {
|
|
|
18041
18041
|
className: "h-16 animate-pulse rounded-lg bg-slate-50"
|
|
18042
18042
|
},
|
|
18043
18043
|
index
|
|
18044
|
-
)) }) : recentOrders.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18044
|
+
)) }) : recentOrders.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted text-center py-8", children: "No orders yet" }) : /* @__PURE__ */ jsx("div", { className: "space-y-3", children: recentOrders.map((order) => /* @__PURE__ */ jsxs(
|
|
18045
18045
|
"div",
|
|
18046
18046
|
{
|
|
18047
18047
|
onClick: () => router.push(buildPath(`/account/orders/${order._id}`)),
|
|
@@ -18051,7 +18051,7 @@ function AccountOverviewTab() {
|
|
|
18051
18051
|
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-white", children: /* @__PURE__ */ jsx(Package, { className: "h-5 w-5 text-slate-600" }) }),
|
|
18052
18052
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18053
18053
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
18054
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-
|
|
18054
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hsecondary", children: [
|
|
18055
18055
|
"ORD-",
|
|
18056
18056
|
order._id?.slice(-6).toUpperCase()
|
|
18057
18057
|
] }),
|
|
@@ -18064,10 +18064,10 @@ function AccountOverviewTab() {
|
|
|
18064
18064
|
}
|
|
18065
18065
|
)
|
|
18066
18066
|
] }),
|
|
18067
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18067
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: formatDate(order.createdAt || /* @__PURE__ */ new Date(), "short") })
|
|
18068
18068
|
] })
|
|
18069
18069
|
] }),
|
|
18070
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold text-
|
|
18070
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold text-hsecondary", children: formatPrice(order.grandTotal || 0) }) })
|
|
18071
18071
|
]
|
|
18072
18072
|
},
|
|
18073
18073
|
order._id
|
|
@@ -18112,11 +18112,11 @@ function AccountOrdersTab() {
|
|
|
18112
18112
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-4 pb-4 border-b border-slate-200", children: [
|
|
18113
18113
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
18114
18114
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18115
|
-
/* @__PURE__ */ jsxs("h3", { className: "text-base font-semibold text-
|
|
18115
|
+
/* @__PURE__ */ jsxs("h3", { className: "text-base font-semibold text-hsecondary", children: [
|
|
18116
18116
|
"Order ORD-",
|
|
18117
18117
|
order._id?.slice(-6).toUpperCase()
|
|
18118
18118
|
] }),
|
|
18119
|
-
/* @__PURE__ */ jsxs("p", { className: "text-xs text-
|
|
18119
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs text-hmuted mb-4", children: [
|
|
18120
18120
|
"Placed on ",
|
|
18121
18121
|
formatDate(order.createdAt || /* @__PURE__ */ new Date(), "long")
|
|
18122
18122
|
] })
|
|
@@ -18131,8 +18131,8 @@ function AccountOrdersTab() {
|
|
|
18131
18131
|
)
|
|
18132
18132
|
] }),
|
|
18133
18133
|
/* @__PURE__ */ jsxs("div", { className: "text-right", children: [
|
|
18134
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18135
|
-
/* @__PURE__ */ jsx("p", { className: "text-lg font-bold text-
|
|
18134
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted mb-1", children: "Total Amount" }),
|
|
18135
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-bold text-hsecondary", children: formatPrice(order.grandTotal || 0) })
|
|
18136
18136
|
] })
|
|
18137
18137
|
] }),
|
|
18138
18138
|
/* @__PURE__ */ jsx("div", { className: "space-y-3 mb-4", children: order.items && order.items.length > 0 ? order.items.map((item, index) => {
|
|
@@ -18150,15 +18150,15 @@ function AccountOrdersTab() {
|
|
|
18150
18150
|
}
|
|
18151
18151
|
) }),
|
|
18152
18152
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
18153
|
-
/* @__PURE__ */ jsx("p", { className: "font-medium text-
|
|
18154
|
-
/* @__PURE__ */ jsxs("p", { className: "text-xs text-
|
|
18153
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium text-hsecondary text-sm truncate", children: item.productVariantData?.name || "Unknown Product" }),
|
|
18154
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs text-hmuted", children: [
|
|
18155
18155
|
"Qty: ",
|
|
18156
18156
|
item.quantity
|
|
18157
18157
|
] })
|
|
18158
18158
|
] }),
|
|
18159
|
-
/* @__PURE__ */ jsx("p", { className: "font-semibold text-
|
|
18159
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-hsecondary text-sm", children: formatPrice(itemTotal) })
|
|
18160
18160
|
] }, item.productVariantId || index);
|
|
18161
|
-
}) : /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18161
|
+
}) : /* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted text-center py-2", children: "No items found" }) })
|
|
18162
18162
|
]
|
|
18163
18163
|
},
|
|
18164
18164
|
order._id
|
|
@@ -18189,15 +18189,15 @@ function ConfirmModal({
|
|
|
18189
18189
|
button: "primary"
|
|
18190
18190
|
},
|
|
18191
18191
|
info: {
|
|
18192
|
-
icon: "text-
|
|
18192
|
+
icon: "text-hsecondary bg-blue-100",
|
|
18193
18193
|
button: "primary"
|
|
18194
18194
|
}
|
|
18195
18195
|
};
|
|
18196
18196
|
const style = variantStyles[variant];
|
|
18197
18197
|
return /* @__PURE__ */ jsx(Modal, { isOpen, onClose, size: "sm", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center", children: [
|
|
18198
18198
|
/* @__PURE__ */ jsx("div", { className: `w-12 h-12 rounded-full ${style.icon} flex items-center justify-center mb-4`, children: /* @__PURE__ */ jsx(AlertTriangle, { className: "w-6 h-6" }) }),
|
|
18199
|
-
/* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-
|
|
18200
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
18199
|
+
/* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-hsecondary mb-2", children: title }),
|
|
18200
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted mb-6", children: message }),
|
|
18201
18201
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-3 w-full justify-center", children: [
|
|
18202
18202
|
/* @__PURE__ */ jsx(
|
|
18203
18203
|
"button",
|
|
@@ -18259,13 +18259,13 @@ function AccountAddressesTab() {
|
|
|
18259
18259
|
/* @__PURE__ */ jsxs("div", { className: "p-6 bg-white rounded-xl", children: [
|
|
18260
18260
|
/* @__PURE__ */ jsxs("div", { className: "mb-6 flex items-center justify-between", children: [
|
|
18261
18261
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18262
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
18263
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18262
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Saved Addresses" }),
|
|
18263
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Manage your delivery and billing addresses" })
|
|
18264
18264
|
] }),
|
|
18265
18265
|
/* @__PURE__ */ jsxs(
|
|
18266
18266
|
"button",
|
|
18267
18267
|
{
|
|
18268
|
-
className: "flex flex-row items-center gap-2 px-6 py-2 border border-slate-200 rounded-xl text-slate-700 hover:opacity-80 transition-colors bg-
|
|
18268
|
+
className: "flex flex-row items-center gap-2 px-6 py-2 border border-slate-200 rounded-xl text-slate-700 hover:opacity-80 transition-colors bg-hsecondary text-white text-sm",
|
|
18269
18269
|
onClick: () => {
|
|
18270
18270
|
setEditingAddress(void 0);
|
|
18271
18271
|
setIsAddressModalOpen(true);
|
|
@@ -18296,8 +18296,8 @@ function AccountAddressesTab() {
|
|
|
18296
18296
|
children: /* @__PURE__ */ jsxs("div", { className: "mb-3", children: [
|
|
18297
18297
|
/* @__PURE__ */ jsxs("div", { className: "justify-between flex items-center", children: [
|
|
18298
18298
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
18299
|
-
/* @__PURE__ */ jsx(MapPin, { className: "h-4 w-4 text-
|
|
18300
|
-
/* @__PURE__ */ jsx("p", { className: "font-semibold text-
|
|
18299
|
+
/* @__PURE__ */ jsx(MapPin, { className: "h-4 w-4 text-hsecondary" }),
|
|
18300
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-hsecondary", children: address.name }),
|
|
18301
18301
|
address.isDefault && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center gap-1 rounded-full bg-green-100 px-2 py-1 text-xs font-semibold text-green-700", children: "Default" })
|
|
18302
18302
|
] }),
|
|
18303
18303
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
@@ -18308,7 +18308,7 @@ function AccountAddressesTab() {
|
|
|
18308
18308
|
setEditingAddress(address);
|
|
18309
18309
|
setIsAddressModalOpen(true);
|
|
18310
18310
|
},
|
|
18311
|
-
className: "inline-flex items-center gap-1 rounded-full border border-slate-200 px-2 py-1 text-xs font-medium text-
|
|
18311
|
+
className: "inline-flex items-center gap-1 rounded-full border border-slate-200 px-2 py-1 text-xs font-medium text-hmuted transition hover:border-hprimary-300 hover:text-hprimary-600",
|
|
18312
18312
|
children: /* @__PURE__ */ jsx(Edit3, { className: "h-3 w-3" })
|
|
18313
18313
|
}
|
|
18314
18314
|
),
|
|
@@ -18323,18 +18323,18 @@ function AccountAddressesTab() {
|
|
|
18323
18323
|
)
|
|
18324
18324
|
] })
|
|
18325
18325
|
] }),
|
|
18326
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-
|
|
18326
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-hmuted mt-1", children: [
|
|
18327
18327
|
address.street1,
|
|
18328
18328
|
address.street2 && `, ${address.street2}`
|
|
18329
18329
|
] }),
|
|
18330
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-
|
|
18330
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-hmuted", children: [
|
|
18331
18331
|
address.city,
|
|
18332
18332
|
", ",
|
|
18333
18333
|
address.state,
|
|
18334
18334
|
" ",
|
|
18335
18335
|
address.zip
|
|
18336
18336
|
] }),
|
|
18337
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18337
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: address.country }),
|
|
18338
18338
|
address.phone && /* @__PURE__ */ jsx("p", { className: "text-sm text-slate-500 mt-1", children: address.phone })
|
|
18339
18339
|
] })
|
|
18340
18340
|
},
|
|
@@ -18397,14 +18397,14 @@ function AccountSettingsTab() {
|
|
|
18397
18397
|
return /* @__PURE__ */ jsxs("div", { className: "p-6 space-y-6", children: [
|
|
18398
18398
|
/* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-slate-200 bg-white p-6", children: [
|
|
18399
18399
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
18400
|
-
/* @__PURE__ */ jsx(Lock, { className: "h-5 w-5 text-
|
|
18401
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
18400
|
+
/* @__PURE__ */ jsx(Lock, { className: "h-5 w-5 text-hsecondary" }),
|
|
18401
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Security" })
|
|
18402
18402
|
] }),
|
|
18403
18403
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
18404
18404
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between rounded-lg border border-slate-200 bg-slate-50 px-4 py-3", children: [
|
|
18405
18405
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18406
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
18407
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18406
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: "Change Password" }),
|
|
18407
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Update your account password" })
|
|
18408
18408
|
] }),
|
|
18409
18409
|
/* @__PURE__ */ jsx(
|
|
18410
18410
|
Button,
|
|
@@ -18547,7 +18547,7 @@ function AccountReviewsTab() {
|
|
|
18547
18547
|
"button",
|
|
18548
18548
|
{
|
|
18549
18549
|
onClick: () => router.push(buildPath("/reviews")),
|
|
18550
|
-
className: "inline-flex items-center gap-2 px-4 py-2 border border-
|
|
18550
|
+
className: "inline-flex items-center gap-2 px-4 py-2 border border-hsecondary text-hsecondary rounded-lg font-medium hover:bg-hsecondary/5 transition-colors text-sm",
|
|
18551
18551
|
children: [
|
|
18552
18552
|
/* @__PURE__ */ jsx(MessageSquare, { className: "size-4" }),
|
|
18553
18553
|
"Write a Review"
|
|
@@ -18616,8 +18616,8 @@ function AccountPage() {
|
|
|
18616
18616
|
};
|
|
18617
18617
|
return /* @__PURE__ */ jsxs("div", { className: "min-h-screen bg-linear-to-b from-[#F8FAFC] to-[#EBF4FB]", children: [
|
|
18618
18618
|
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 py-4", children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
18619
|
-
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold text-
|
|
18620
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18619
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold text-hsecondary", children: "My Account" }),
|
|
18620
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Manage your profile, orders, and preferences" })
|
|
18621
18621
|
] }) }) }) }),
|
|
18622
18622
|
/* @__PURE__ */ jsx(TabNavigation, { tabs, activeTab, onTabChange: setActiveTab }),
|
|
18623
18623
|
/* @__PURE__ */ jsx("div", { className: "container mx-auto max-w-7xl", children: /* @__PURE__ */ jsx("div", { className: "rounded-2xl shadow-xs", children: renderTabContent() }) })
|
|
@@ -18674,7 +18674,7 @@ function OrderCard({ order, onDelete }) {
|
|
|
18674
18674
|
children: [
|
|
18675
18675
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4 pb-4 border-b border-gray-200", children: [
|
|
18676
18676
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
18677
|
-
/* @__PURE__ */ jsxs("h3", { className: "text-base font-bold text-slate-900 group-hover:text-
|
|
18677
|
+
/* @__PURE__ */ jsxs("h3", { className: "text-base font-bold text-slate-900 group-hover:text-hprimary transition-colors", children: [
|
|
18678
18678
|
"Order #",
|
|
18679
18679
|
(order._id || order.id || "").slice(-8).toUpperCase()
|
|
18680
18680
|
] }),
|
|
@@ -18747,7 +18747,7 @@ function OrderCard({ order, onDelete }) {
|
|
|
18747
18747
|
e.stopPropagation();
|
|
18748
18748
|
window.open(order?.payment?.hostedInvoiceUrl || "", "_blank");
|
|
18749
18749
|
},
|
|
18750
|
-
className: "inline-flex items-center gap-2 rounded-full border-2 border-
|
|
18750
|
+
className: "inline-flex items-center gap-2 rounded-full border-2 border-hprimary-500 bg-hprimary-500 hover:bg-hprimary-600 text-white px-4 py-2 text-sm transition-colors",
|
|
18751
18751
|
onPointerDown: (e) => e.stopPropagation(),
|
|
18752
18752
|
children: [
|
|
18753
18753
|
/* @__PURE__ */ jsx(CreditCard, { className: "w-4 h-4" }),
|
|
@@ -18827,7 +18827,7 @@ function FilterChips({
|
|
|
18827
18827
|
{
|
|
18828
18828
|
type: "button",
|
|
18829
18829
|
onClick: () => onSelect("All"),
|
|
18830
|
-
className: "ml-auto text-xs text-
|
|
18830
|
+
className: "ml-auto text-xs text-hprimary-600 hover:text-hprimary-700 font-medium",
|
|
18831
18831
|
children: "Clear"
|
|
18832
18832
|
}
|
|
18833
18833
|
)
|
|
@@ -18840,7 +18840,7 @@ function FilterChips({
|
|
|
18840
18840
|
{
|
|
18841
18841
|
type: "button",
|
|
18842
18842
|
onClick: () => onSelect(filter),
|
|
18843
|
-
className: `inline-flex items-center gap-1.5 rounded-lg border px-3 py-1.5 text-sm font-medium transition-all whitespace-nowrap ${isSelected ? isPrimary ? "border-
|
|
18843
|
+
className: `inline-flex items-center gap-1.5 rounded-lg border px-3 py-1.5 text-sm font-medium transition-all whitespace-nowrap ${isSelected ? isPrimary ? "border-hprimary-500 bg-hprimary-500 text-white shadow-xs" : "border-hsecondary-500 bg-hsecondary-500 text-white shadow-xs" : "border-slate-200 bg-white text-slate-700 hover:border-slate-300 hover:bg-slate-50"}`,
|
|
18844
18844
|
children: [
|
|
18845
18845
|
filter,
|
|
18846
18846
|
isSelected && /* @__PURE__ */ jsx(X, { className: "h-3.5 w-3.5" })
|
|
@@ -18855,7 +18855,7 @@ function FilterChips({
|
|
|
18855
18855
|
{
|
|
18856
18856
|
type: "button",
|
|
18857
18857
|
onClick: () => setIsOverflowOpen((prev) => !prev),
|
|
18858
|
-
className: `inline-flex items-center gap-1.5 rounded-lg border px-3 py-1.5 text-sm font-medium transition-all whitespace-nowrap ${overflowFilters.includes(selected) ? isPrimary ? "border-
|
|
18858
|
+
className: `inline-flex items-center gap-1.5 rounded-lg border px-3 py-1.5 text-sm font-medium transition-all whitespace-nowrap ${overflowFilters.includes(selected) ? isPrimary ? "border-hprimary-500 bg-hprimary-50 text-hprimary-700" : "border-hsecondary-500 bg-hsecondary-50 text-hsecondary-700" : "border-slate-200 bg-white text-slate-700 hover:border-slate-300 hover:bg-slate-50"}`,
|
|
18859
18859
|
children: [
|
|
18860
18860
|
/* @__PURE__ */ jsx("span", { children: overflowFilters.includes(selected) ? selected : "More" }),
|
|
18861
18861
|
/* @__PURE__ */ jsx(ChevronDown, { className: `h-3.5 w-3.5 transition-transform ${isOverflowOpen ? "rotate-180" : ""}` })
|
|
@@ -18880,7 +18880,7 @@ function FilterChips({
|
|
|
18880
18880
|
onSelect(filter);
|
|
18881
18881
|
setIsOverflowOpen(false);
|
|
18882
18882
|
},
|
|
18883
|
-
className: `flex w-full items-center justify-between rounded-md px-3 py-2 text-sm font-medium transition ${isSelected ? isPrimary ? "bg-
|
|
18883
|
+
className: `flex w-full items-center justify-between rounded-md px-3 py-2 text-sm font-medium transition ${isSelected ? isPrimary ? "bg-hprimary-500 text-white" : "bg-hsecondary-500 text-white" : "text-slate-700 hover:bg-slate-100"}`,
|
|
18884
18884
|
children: [
|
|
18885
18885
|
/* @__PURE__ */ jsx("span", { children: filter }),
|
|
18886
18886
|
isSelected && /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" })
|
|
@@ -19002,9 +19002,9 @@ function OrdersScreen() {
|
|
|
19002
19002
|
className: "space-y-6",
|
|
19003
19003
|
children: [
|
|
19004
19004
|
/* @__PURE__ */ jsxs("div", { className: "mb-8", children: [
|
|
19005
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-black text-
|
|
19006
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-
|
|
19007
|
-
/* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-
|
|
19005
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-black text-hsecondary tracking-tight", children: "Order History" }),
|
|
19006
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hmuted mt-1 flex items-center gap-2", children: [
|
|
19007
|
+
/* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-haccent animate-pulse" }),
|
|
19008
19008
|
filteredOrders.length,
|
|
19009
19009
|
" ",
|
|
19010
19010
|
filteredOrders.length === 1 ? "record found" : "records found",
|
|
@@ -19181,21 +19181,21 @@ function CurrentOrdersScreen() {
|
|
|
19181
19181
|
/* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold text-slate-900", children: "Real-time milestones" }),
|
|
19182
19182
|
/* @__PURE__ */ jsxs("div", { className: "mt-4 space-y-4 text-sm text-slate-600", children: [
|
|
19183
19183
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 rounded-2xl bg-slate-50 p-4", children: [
|
|
19184
|
-
/* @__PURE__ */ jsx(Warehouse, { className: "h-5 w-5 text-
|
|
19184
|
+
/* @__PURE__ */ jsx(Warehouse, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19185
19185
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19186
19186
|
/* @__PURE__ */ jsx("p", { className: "font-semibold text-slate-800", children: "Preparation" }),
|
|
19187
19187
|
/* @__PURE__ */ jsx("p", { children: "Our pharmacists verify ingredients and pack thermo-sensitive items." })
|
|
19188
19188
|
] })
|
|
19189
19189
|
] }),
|
|
19190
19190
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 rounded-2xl bg-slate-50 p-4", children: [
|
|
19191
|
-
/* @__PURE__ */ jsx(Truck, { className: "h-5 w-5 text-
|
|
19191
|
+
/* @__PURE__ */ jsx(Truck, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19192
19192
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19193
19193
|
/* @__PURE__ */ jsx("p", { className: "font-semibold text-slate-800", children: "In transit" }),
|
|
19194
19194
|
/* @__PURE__ */ jsx("p", { children: "Track live courier location with ETA updates tailored to your delivery window." })
|
|
19195
19195
|
] })
|
|
19196
19196
|
] }),
|
|
19197
19197
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 rounded-2xl bg-slate-50 p-4", children: [
|
|
19198
|
-
/* @__PURE__ */ jsx(BellRing, { className: "h-5 w-5 text-
|
|
19198
|
+
/* @__PURE__ */ jsx(BellRing, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19199
19199
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19200
19200
|
/* @__PURE__ */ jsx("p", { className: "font-semibold text-slate-800", children: "Arrival alerts" }),
|
|
19201
19201
|
/* @__PURE__ */ jsx("p", { children: "Receive SMS and email notifications when parcels are out for delivery." })
|
|
@@ -19203,7 +19203,7 @@ function CurrentOrdersScreen() {
|
|
|
19203
19203
|
] })
|
|
19204
19204
|
] })
|
|
19205
19205
|
] }),
|
|
19206
|
-
/* @__PURE__ */ jsxs("div", { className: "rounded-3xl border border-
|
|
19206
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded-3xl border border-hprimary-100 bg-hprimary-50/70 p-6 text-sm text-hprimary-700 shadow-xs", children: [
|
|
19207
19207
|
/* @__PURE__ */ jsx("p", { className: "font-semibold uppercase tracking-[0.3em]", children: "Need support?" }),
|
|
19208
19208
|
/* @__PURE__ */ jsx("p", { className: "mt-3 leading-relaxed", children: "Our fulfillment team is online 7 days a week. Message us if you need to adjust delivery instructions or review dosage guidance." })
|
|
19209
19209
|
] })
|
|
@@ -19409,7 +19409,7 @@ You can add it back at any time.`
|
|
|
19409
19409
|
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-semibold md:text-4xl", children: "Manage where your care arrives" }),
|
|
19410
19410
|
/* @__PURE__ */ jsx("p", { className: "max-w-2xl text-sm text-slate-600", children: "Save home, office, or loved ones' addresses and choose a default for faster checkout and delivery." }),
|
|
19411
19411
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3 text-xs text-slate-500", children: /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2 rounded-full border border-slate-200 bg-slate-50 px-3 py-2", children: [
|
|
19412
|
-
/* @__PURE__ */ jsx(Sparkles, { className: "h-4 w-4 text-
|
|
19412
|
+
/* @__PURE__ */ jsx(Sparkles, { className: "h-4 w-4 text-hprimary-600" }),
|
|
19413
19413
|
"Default: ",
|
|
19414
19414
|
defaultAddress ? defaultAddress.name : "Not set"
|
|
19415
19415
|
] }) })
|
|
@@ -19477,14 +19477,14 @@ You can add it back at any time.`
|
|
|
19477
19477
|
{
|
|
19478
19478
|
initial: { opacity: 0, y: 24 },
|
|
19479
19479
|
animate: { opacity: 1, y: 0 },
|
|
19480
|
-
className: "group relative flex h-full flex-col rounded-3xl border border-slate-200 bg-white p-6 shadow-xs transition hover:-translate-y-1 hover:border-
|
|
19480
|
+
className: "group relative flex h-full flex-col rounded-3xl border border-slate-200 bg-white p-6 shadow-xs transition hover:-translate-y-1 hover:border-hprimary-200 hover:shadow-lg",
|
|
19481
19481
|
children: [
|
|
19482
19482
|
address.isDefault && /* @__PURE__ */ jsxs("span", { className: "absolute right-6 top-6 inline-flex items-center gap-2 rounded-full bg-amber-100 px-3 py-1 text-xs font-semibold text-amber-700", children: [
|
|
19483
19483
|
/* @__PURE__ */ jsx(Crown, { className: "h-4 w-4" }),
|
|
19484
19484
|
"Default"
|
|
19485
19485
|
] }),
|
|
19486
19486
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
19487
|
-
/* @__PURE__ */ jsx("span", { className: "rounded-full bg-
|
|
19487
|
+
/* @__PURE__ */ jsx("span", { className: "rounded-full bg-hprimary-50 p-3 text-hprimary-600", children: /* @__PURE__ */ jsx(User, { className: "h-5 w-5" }) }),
|
|
19488
19488
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19489
19489
|
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold text-slate-900", children: address.name }),
|
|
19490
19490
|
/* @__PURE__ */ jsx("p", { className: "text-xs uppercase tracking-[0.3em] text-slate-400", children: typeCopy.label })
|
|
@@ -19503,7 +19503,7 @@ You can add it back at any time.`
|
|
|
19503
19503
|
{
|
|
19504
19504
|
type: "button",
|
|
19505
19505
|
onClick: () => openEditModal(address),
|
|
19506
|
-
className: "inline-flex items-center gap-2 rounded-full border border-slate-200 px-3 py-1 text-sm font-medium text-slate-600 transition hover:border-
|
|
19506
|
+
className: "inline-flex items-center gap-2 rounded-full border border-slate-200 px-3 py-1 text-sm font-medium text-slate-600 transition hover:border-hprimary-300 hover:text-hprimary-600",
|
|
19507
19507
|
children: [
|
|
19508
19508
|
/* @__PURE__ */ jsx(Edit3, { className: "h-4 w-4" }),
|
|
19509
19509
|
"Edit"
|
|
@@ -19636,7 +19636,7 @@ You can add it back at any time.`
|
|
|
19636
19636
|
"select",
|
|
19637
19637
|
{
|
|
19638
19638
|
...register("addressType"),
|
|
19639
|
-
className: "rounded-xl border border-slate-200 px-3 py-2 text-sm text-slate-700 focus:border-
|
|
19639
|
+
className: "rounded-xl border border-slate-200 px-3 py-2 text-sm text-slate-700 focus:border-hprimary-400 focus:outline-hidden focus:ring-2 focus:ring-hprimary-500/20",
|
|
19640
19640
|
children: [
|
|
19641
19641
|
/* @__PURE__ */ jsx("option", { value: "Shipping", children: "Shipping" }),
|
|
19642
19642
|
/* @__PURE__ */ jsx("option", { value: "Billing", children: "Billing" }),
|
|
@@ -19652,7 +19652,7 @@ You can add it back at any time.`
|
|
|
19652
19652
|
{
|
|
19653
19653
|
type: "checkbox",
|
|
19654
19654
|
...register("isDefault"),
|
|
19655
|
-
className: "h-4 w-4 rounded-sm border-
|
|
19655
|
+
className: "h-4 w-4 rounded-sm border-hprimary-300 text-hprimary-600 focus:ring-hprimary-500"
|
|
19656
19656
|
}
|
|
19657
19657
|
)
|
|
19658
19658
|
] })
|
|
@@ -19817,25 +19817,25 @@ function WishlistScreen() {
|
|
|
19817
19817
|
className: "space-y-6",
|
|
19818
19818
|
children: [
|
|
19819
19819
|
!isAuthenticated && /* @__PURE__ */ jsx("div", { className: "flex min-h-[40vh] items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "max-w-lg text-center space-y-6", children: [
|
|
19820
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsx(Heart, { className: "h-12 w-12 text-
|
|
19820
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsx(Heart, { className: "h-12 w-12 text-hsecondary" }) }) }),
|
|
19821
19821
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
19822
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-
|
|
19823
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
19822
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Sign in to see your favourites" }),
|
|
19823
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted", children: "Create your curated shelf of products and we'll keep them ready whenever you return." })
|
|
19824
19824
|
] }),
|
|
19825
19825
|
/* @__PURE__ */ jsx(
|
|
19826
19826
|
"button",
|
|
19827
19827
|
{
|
|
19828
19828
|
type: "button",
|
|
19829
19829
|
onClick: () => router.push(buildPath("/login")),
|
|
19830
|
-
className: "rounded-xl border-2 border-
|
|
19830
|
+
className: "rounded-xl border-2 border-hprimary bg-hprimary text-white px-6 py-3 text-sm font-medium transition-colors hover:opacity-80",
|
|
19831
19831
|
children: "Sign In"
|
|
19832
19832
|
}
|
|
19833
19833
|
)
|
|
19834
19834
|
] }) }),
|
|
19835
19835
|
isAuthenticated && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19836
19836
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
19837
|
-
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold text-
|
|
19838
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-
|
|
19837
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold text-hsecondary", children: "Wishlist" }),
|
|
19838
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-hmuted mt-1", children: [
|
|
19839
19839
|
wishlistCount,
|
|
19840
19840
|
" ",
|
|
19841
19841
|
wishlistCount === 1 ? "item" : "items",
|
|
@@ -19844,16 +19844,16 @@ function WishlistScreen() {
|
|
|
19844
19844
|
] })
|
|
19845
19845
|
] }),
|
|
19846
19846
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between mb-6", children: [
|
|
19847
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: onlyInStock && /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
19847
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: onlyInStock && /* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Showing items ready to ship" }) }),
|
|
19848
19848
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
19849
|
-
/* @__PURE__ */ jsxs("label", { className: "inline-flex cursor-pointer items-center gap-2 rounded-full border border-slate-200 bg-slate-50 px-3 py-1.5 text-sm font-medium text-slate-600 transition hover:border-
|
|
19849
|
+
/* @__PURE__ */ jsxs("label", { className: "inline-flex cursor-pointer items-center gap-2 rounded-full border border-slate-200 bg-slate-50 px-3 py-1.5 text-sm font-medium text-slate-600 transition hover:border-hprimary hover:text-hsecondary", children: [
|
|
19850
19850
|
/* @__PURE__ */ jsx(
|
|
19851
19851
|
"input",
|
|
19852
19852
|
{
|
|
19853
19853
|
type: "checkbox",
|
|
19854
19854
|
checked: onlyInStock,
|
|
19855
19855
|
onChange: (event) => setOnlyInStock(event.target.checked),
|
|
19856
|
-
className: "h-4 w-4 rounded-sm border-slate-300 text-
|
|
19856
|
+
className: "h-4 w-4 rounded-sm border-slate-300 text-hsecondary focus:ring-hsecondary"
|
|
19857
19857
|
}
|
|
19858
19858
|
),
|
|
19859
19859
|
"Only show in-stock"
|
|
@@ -19876,7 +19876,7 @@ function WishlistScreen() {
|
|
|
19876
19876
|
{
|
|
19877
19877
|
type: "button",
|
|
19878
19878
|
onClick: () => setViewMode("grid"),
|
|
19879
|
-
className: `flex items-center gap-1 px-3 py-1.5 text-sm font-medium transition rounded-full ${viewMode === "grid" ? "bg-white text-
|
|
19879
|
+
className: `flex items-center gap-1 px-3 py-1.5 text-sm font-medium transition rounded-full ${viewMode === "grid" ? "bg-white text-hprimary shadow-md" : "text-slate-600 hover:bg-white"}`,
|
|
19880
19880
|
children: /* @__PURE__ */ jsx(Grid, { className: "h-4 w-4" })
|
|
19881
19881
|
}
|
|
19882
19882
|
),
|
|
@@ -19885,7 +19885,7 @@ function WishlistScreen() {
|
|
|
19885
19885
|
{
|
|
19886
19886
|
type: "button",
|
|
19887
19887
|
onClick: () => setViewMode("list"),
|
|
19888
|
-
className: `flex items-center gap-1 px-3 py-1.5 text-sm font-medium transition rounded-full ${viewMode === "list" ? "bg-white text-
|
|
19888
|
+
className: `flex items-center gap-1 px-3 py-1.5 text-sm font-medium transition rounded-full ${viewMode === "list" ? "bg-white text-hprimary shadow-md" : "text-slate-600 hover:bg-white"}`,
|
|
19889
19889
|
children: /* @__PURE__ */ jsx(List, { className: "h-4 w-4" })
|
|
19890
19890
|
}
|
|
19891
19891
|
)
|
|
@@ -19912,17 +19912,17 @@ function WishlistScreen() {
|
|
|
19912
19912
|
index
|
|
19913
19913
|
)) }),
|
|
19914
19914
|
!isLoading && wishlistCount === 0 && /* @__PURE__ */ jsx("div", { className: "flex min-h-[30vh] items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "text-center space-y-6 max-w-md", children: [
|
|
19915
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsx(Heart, { className: "h-12 w-12 text-
|
|
19915
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsx(Heart, { className: "h-12 w-12 text-hsecondary" }) }) }),
|
|
19916
19916
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
19917
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-
|
|
19918
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
19917
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Your wishlist is empty" }),
|
|
19918
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted", children: "Start adding products to your wishlist to see them here." })
|
|
19919
19919
|
] }),
|
|
19920
19920
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap justify-center gap-3", children: /* @__PURE__ */ jsx(
|
|
19921
19921
|
"button",
|
|
19922
19922
|
{
|
|
19923
19923
|
type: "button",
|
|
19924
19924
|
onClick: () => router.push(buildPath("/shop")),
|
|
19925
|
-
className: "rounded-xl border-2 border-
|
|
19925
|
+
className: "rounded-xl border-2 border-hsecondary bg-hsecondary text-white px-6 py-3 text-sm font-medium transition-colors flex items-center justify-center gap-2 hover:opacity-80",
|
|
19926
19926
|
children: "Discover products"
|
|
19927
19927
|
}
|
|
19928
19928
|
) })
|
|
@@ -19975,11 +19975,11 @@ function WishlistScreen() {
|
|
|
19975
19975
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
19976
19976
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
19977
19977
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19978
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
19979
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
19978
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: product.name }),
|
|
19979
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "General wellness" })
|
|
19980
19980
|
] }),
|
|
19981
19981
|
/* @__PURE__ */ jsxs("div", { className: "text-right", children: [
|
|
19982
|
-
/* @__PURE__ */ jsx("p", { className: "text-lg font-bold text-
|
|
19982
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-bold text-hprimary", children: formatPrice(product.summary?.minPrice ?? 0) }),
|
|
19983
19983
|
product.summary?.hasDiscount && /* @__PURE__ */ jsxs("p", { className: "text-xs text-emerald-500", children: [
|
|
19984
19984
|
"You save ",
|
|
19985
19985
|
formatPrice(Math.max((product.summary?.maxPrice ?? 0) - (product.summary?.minPrice ?? 0), 0))
|
|
@@ -20003,7 +20003,7 @@ function WishlistScreen() {
|
|
|
20003
20003
|
{
|
|
20004
20004
|
size: "sm",
|
|
20005
20005
|
onClick: () => router.push(buildPath(`/products/${product._id}`)),
|
|
20006
|
-
className: "bg-
|
|
20006
|
+
className: "bg-hprimary-90 text-white hover:bg-hprimary-70",
|
|
20007
20007
|
children: "View details"
|
|
20008
20008
|
}
|
|
20009
20009
|
),
|
|
@@ -20023,13 +20023,13 @@ function WishlistScreen() {
|
|
|
20023
20023
|
)) }) }) }),
|
|
20024
20024
|
isAuthenticated && emptyAfterFiltering && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center rounded-lg border border-dashed border-gray-200 bg-gray-50 p-12 text-center", children: [
|
|
20025
20025
|
/* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-gray-200 text-gray-500", children: /* @__PURE__ */ jsx(Package, { className: "h-8 w-8" }) }),
|
|
20026
|
-
/* @__PURE__ */ jsx("h3", { className: "mt-6 text-xl font-semibold text-
|
|
20027
|
-
/* @__PURE__ */ jsx("p", { className: "mt-2 max-w-md text-sm text-
|
|
20026
|
+
/* @__PURE__ */ jsx("h3", { className: "mt-6 text-xl font-semibold text-hsecondary", children: "Nothing matches those filters" }),
|
|
20027
|
+
/* @__PURE__ */ jsx("p", { className: "mt-2 max-w-md text-sm text-hmuted", children: "Try showing out-of-stock items or adjust your sort order to revisit everything you've saved." }),
|
|
20028
20028
|
/* @__PURE__ */ jsx(
|
|
20029
20029
|
"button",
|
|
20030
20030
|
{
|
|
20031
20031
|
type: "button",
|
|
20032
|
-
className: "mt-6 rounded-xl border-2 border-
|
|
20032
|
+
className: "mt-6 rounded-xl border-2 border-hprimary bg-white px-6 py-3 text-sm font-medium text-hsecondary hover:opacity-80 transition-colors",
|
|
20033
20033
|
onClick: () => setOnlyInStock(false),
|
|
20034
20034
|
children: "Show all saved products"
|
|
20035
20035
|
}
|
|
@@ -20208,7 +20208,7 @@ function SearchPage() {
|
|
|
20208
20208
|
onFocus: handleInputFocus,
|
|
20209
20209
|
onBlur: () => setTimeout(() => setShowSuggestions(false), 200),
|
|
20210
20210
|
placeholder: "Search for products...",
|
|
20211
|
-
className: "pl-10 pr-10 py-6 text-base rounded-lg border-gray-300 focus:ring-2 focus:ring-
|
|
20211
|
+
className: "pl-10 pr-10 py-6 text-base rounded-lg border-gray-300 focus:ring-2 focus:ring-hprimary-500 focus:border-hprimary-500",
|
|
20212
20212
|
autoComplete: "off"
|
|
20213
20213
|
}
|
|
20214
20214
|
),
|
|
@@ -20242,7 +20242,7 @@ function SearchPage() {
|
|
|
20242
20242
|
onClick: () => handleSuggestionClick(suggestion),
|
|
20243
20243
|
className: "w-full text-left px-3 py-2.5 hover:bg-gray-50 rounded-md transition-colors flex items-center gap-2 group",
|
|
20244
20244
|
children: [
|
|
20245
|
-
/* @__PURE__ */ jsx(Search, { className: "h-4 w-4 text-gray-400 group-hover:text-
|
|
20245
|
+
/* @__PURE__ */ jsx(Search, { className: "h-4 w-4 text-gray-400 group-hover:text-hprimary-500" }),
|
|
20246
20246
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-gray-700 group-hover:text-gray-900", children: suggestion })
|
|
20247
20247
|
]
|
|
20248
20248
|
},
|
|
@@ -20261,7 +20261,7 @@ function SearchPage() {
|
|
|
20261
20261
|
onClick: () => handleSuggestionClick(search),
|
|
20262
20262
|
className: "w-full text-left px-3 py-2.5 hover:bg-gray-50 rounded-md transition-colors flex items-center gap-2 group",
|
|
20263
20263
|
children: [
|
|
20264
|
-
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-gray-400 group-hover:text-
|
|
20264
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-gray-400 group-hover:text-hprimary-500" }),
|
|
20265
20265
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-gray-700 group-hover:text-gray-900", children: search })
|
|
20266
20266
|
]
|
|
20267
20267
|
},
|
|
@@ -20276,7 +20276,7 @@ function SearchPage() {
|
|
|
20276
20276
|
"button",
|
|
20277
20277
|
{
|
|
20278
20278
|
type: "submit",
|
|
20279
|
-
className: "mt-4 w-full bg-
|
|
20279
|
+
className: "mt-4 w-full bg-hprimary-600 hover:bg-hprimary-700 text-white font-medium py-2 px-4 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
20280
20280
|
disabled: !searchInput.trim(),
|
|
20281
20281
|
children: "Search"
|
|
20282
20282
|
}
|
|
@@ -20318,7 +20318,7 @@ function SearchPage() {
|
|
|
20318
20318
|
Link9,
|
|
20319
20319
|
{
|
|
20320
20320
|
href: buildPath("/shop"),
|
|
20321
|
-
className: "px-6 py-2.5 bg-
|
|
20321
|
+
className: "px-6 py-2.5 bg-hprimary-600 text-white rounded-lg hover:bg-hprimary-700 transition-colors font-medium",
|
|
20322
20322
|
children: "Browse All Products"
|
|
20323
20323
|
}
|
|
20324
20324
|
) }),
|
|
@@ -20335,7 +20335,7 @@ function SearchPage() {
|
|
|
20335
20335
|
)) })
|
|
20336
20336
|
] })
|
|
20337
20337
|
] }) : /* @__PURE__ */ jsxs("div", { className: "text-center py-12", children: [
|
|
20338
|
-
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 bg-
|
|
20338
|
+
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 bg-hprimary-50 rounded-full flex items-center justify-center mx-auto mb-4", children: /* @__PURE__ */ jsx(Search, { className: "h-8 w-8 text-hprimary-500" }) }),
|
|
20339
20339
|
/* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-gray-900 mb-2", children: "Start Searching" }),
|
|
20340
20340
|
/* @__PURE__ */ jsx("p", { className: "text-gray-500 mb-6", children: "Enter a search term above to find products" }),
|
|
20341
20341
|
recentSearches.length > 0 && /* @__PURE__ */ jsxs("div", { className: "max-w-md mx-auto", children: [
|
|
@@ -20587,7 +20587,7 @@ function EditProfileScreen() {
|
|
|
20587
20587
|
className: "mx-auto max-w-3xl rounded-3xl border border-slate-200 bg-white p-8 shadow-xl shadow-primary-50",
|
|
20588
20588
|
children: [
|
|
20589
20589
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
20590
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-
|
|
20590
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-hprimary-50 text-hprimary-600", children: /* @__PURE__ */ jsx(User, { className: "h-5 w-5" }) }),
|
|
20591
20591
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
20592
20592
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase tracking-[0.32em] text-slate-500", children: "Profile" }),
|
|
20593
20593
|
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold text-slate-900", children: "Edit core information" })
|
|
@@ -21332,15 +21332,15 @@ function OrderDetailScreen({ id }) {
|
|
|
21332
21332
|
}, [order]);
|
|
21333
21333
|
if (isLoading) {
|
|
21334
21334
|
return /* @__PURE__ */ jsxs("div", { className: "min-h-screen bg-slate-50 flex flex-col items-center justify-center p-4", children: [
|
|
21335
|
-
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 border-4 border-
|
|
21336
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
21335
|
+
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 border-4 border-hprimary-20 border-t-primary rounded-full animate-spin mb-4" }),
|
|
21336
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted font-medium animate-pulse", children: "Retrieving order details..." })
|
|
21337
21337
|
] });
|
|
21338
21338
|
}
|
|
21339
21339
|
if (error || !order) {
|
|
21340
21340
|
return /* @__PURE__ */ jsxs("div", { className: "min-h-screen bg-slate-50 flex flex-col items-center justify-center p-4", children: [
|
|
21341
21341
|
/* @__PURE__ */ jsx("div", { className: "p-4 bg-red-50 rounded-full mb-4", children: /* @__PURE__ */ jsx(AlertCircle, { className: "w-10 h-10 text-red-500" }) }),
|
|
21342
|
-
/* @__PURE__ */ jsx("h1", { className: "text-xl font-bold text-
|
|
21343
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
21342
|
+
/* @__PURE__ */ jsx("h1", { className: "text-xl font-bold text-hsecondary mb-2", children: "Order Not Found" }),
|
|
21343
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted mb-6", children: "We couldn't find the order you're looking for." }),
|
|
21344
21344
|
/* @__PURE__ */ jsx(Button, { onClick: () => router.push(buildPath("/account")), children: "Back to Account" })
|
|
21345
21345
|
] });
|
|
21346
21346
|
}
|
|
@@ -21372,7 +21372,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21372
21372
|
"button",
|
|
21373
21373
|
{
|
|
21374
21374
|
onClick: () => router.back(),
|
|
21375
|
-
className: "group flex items-center gap-2 text-
|
|
21375
|
+
className: "group flex items-center gap-2 text-hmuted hover:text-hsecondary transition-colors mb-6",
|
|
21376
21376
|
children: [
|
|
21377
21377
|
/* @__PURE__ */ jsx("div", { className: "p-1.5 rounded-full bg-white shadow-xs group-hover:shadow-md transition-all", children: /* @__PURE__ */ jsx(ChevronLeft, { className: "w-4 h-4" }) }),
|
|
21378
21378
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold", children: "Back to History" })
|
|
@@ -21382,14 +21382,14 @@ function OrderDetailScreen({ id }) {
|
|
|
21382
21382
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row md:items-end justify-between gap-6 mb-8", children: [
|
|
21383
21383
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
21384
21384
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-2", children: [
|
|
21385
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-
|
|
21385
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-hsecondary", children: "Order Details" }),
|
|
21386
21386
|
/* @__PURE__ */ jsx(Badge, { variant: getStatusVariant(status), children: status }),
|
|
21387
|
-
/* @__PURE__ */ jsx(Badge, { variant: "primary", className: "bg-
|
|
21387
|
+
/* @__PURE__ */ jsx(Badge, { variant: "primary", className: "bg-hprimary-100 text-hprimary-700 border-hprimary-200", children: order.orderType || "Pickup" })
|
|
21388
21388
|
] }),
|
|
21389
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-
|
|
21389
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-hmuted", children: [
|
|
21390
21390
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 font-medium", children: [
|
|
21391
21391
|
/* @__PURE__ */ jsx("span", { className: "opacity-60 text-xs uppercase tracking-widest font-bold", children: "ID:" }),
|
|
21392
|
-
/* @__PURE__ */ jsxs("span", { className: "text-
|
|
21392
|
+
/* @__PURE__ */ jsxs("span", { className: "text-hsecondary font-mono tracking-tight", children: [
|
|
21393
21393
|
"#",
|
|
21394
21394
|
id.toUpperCase()
|
|
21395
21395
|
] })
|
|
@@ -21400,7 +21400,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21400
21400
|
] })
|
|
21401
21401
|
] })
|
|
21402
21402
|
] }),
|
|
21403
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-3", children: order.payment?.hostedInvoiceUrl && /* @__PURE__ */ jsxs(Button, { size: "sm", onClick: () => window.open(order.payment?.hostedInvoiceUrl, "_blank"), className: "bg-
|
|
21403
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3", children: order.payment?.hostedInvoiceUrl && /* @__PURE__ */ jsxs(Button, { size: "sm", onClick: () => window.open(order.payment?.hostedInvoiceUrl, "_blank"), className: "bg-haccent hover:bg-haccent-dark border-none", children: [
|
|
21404
21404
|
/* @__PURE__ */ jsx(ExternalLink, { className: "w-4 h-4" }),
|
|
21405
21405
|
"Payment Details"
|
|
21406
21406
|
] }) })
|
|
@@ -21417,10 +21417,10 @@ function OrderDetailScreen({ id }) {
|
|
|
21417
21417
|
children: [
|
|
21418
21418
|
/* @__PURE__ */ jsxs("div", { className: "p-6 border-b border-slate-100 bg-slate-50/50 flex items-center justify-between", children: [
|
|
21419
21419
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
21420
|
-
/* @__PURE__ */ jsx(Package, { className: "w-5 h-5 text-
|
|
21421
|
-
/* @__PURE__ */ jsx("h2", { className: "font-bold text-
|
|
21420
|
+
/* @__PURE__ */ jsx(Package, { className: "w-5 h-5 text-hsecondary" }),
|
|
21421
|
+
/* @__PURE__ */ jsx("h2", { className: "font-bold text-hsecondary", children: "Order Items" })
|
|
21422
21422
|
] }),
|
|
21423
|
-
/* @__PURE__ */ jsxs("span", { className: "text-xs font-bold bg-slate-200 text-
|
|
21423
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs font-bold bg-slate-200 text-hmuted px-2.5 py-1 rounded-full", children: [
|
|
21424
21424
|
items.length,
|
|
21425
21425
|
" ",
|
|
21426
21426
|
items.length === 1 ? "Product" : "Products"
|
|
@@ -21439,19 +21439,19 @@ function OrderDetailScreen({ id }) {
|
|
|
21439
21439
|
) }),
|
|
21440
21440
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col justify-between py-1", children: [
|
|
21441
21441
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
21442
|
-
/* @__PURE__ */ jsx("h3", { className: "font-bold text-
|
|
21443
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-x-4 gap-y-1 text-sm text-
|
|
21442
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold text-hsecondary text-lg group-hover:text-hprimary transition-colors leading-snug mb-1", children: item.productVariantData?.name }),
|
|
21443
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-x-4 gap-y-1 text-sm text-hmuted", children: /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
21444
21444
|
/* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-slate-300" }),
|
|
21445
21445
|
"Quantity: ",
|
|
21446
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
21446
|
+
/* @__PURE__ */ jsx("span", { className: "text-hsecondary font-bold", children: item.quantity })
|
|
21447
21447
|
] }) })
|
|
21448
21448
|
] }),
|
|
21449
21449
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
21450
|
-
/* @__PURE__ */ jsxs("span", { className: "text-
|
|
21450
|
+
/* @__PURE__ */ jsxs("span", { className: "text-hmuted text-sm", children: [
|
|
21451
21451
|
formatPrice(item.productVariantData?.finalPrice || 0),
|
|
21452
21452
|
" per unit"
|
|
21453
21453
|
] }),
|
|
21454
|
-
/* @__PURE__ */ jsx("span", { className: "font-black text-
|
|
21454
|
+
/* @__PURE__ */ jsx("span", { className: "font-black text-hsecondary", children: formatPrice((item.productVariantData?.finalPrice || 0) * item.quantity) })
|
|
21455
21455
|
] })
|
|
21456
21456
|
] })
|
|
21457
21457
|
] }, item._id || idx)) })
|
|
@@ -21461,11 +21461,11 @@ function OrderDetailScreen({ id }) {
|
|
|
21461
21461
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
21462
21462
|
/* @__PURE__ */ jsxs("div", { className: "bg-white p-6 rounded-3xl border border-slate-200 shadow-xs", children: [
|
|
21463
21463
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
21464
|
-
/* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-
|
|
21465
|
-
/* @__PURE__ */ jsx("h3", { className: "font-bold text-
|
|
21464
|
+
/* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-haccent" }),
|
|
21465
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold text-hsecondary", children: isDelivery ? "Shipping Address" : "Pickup Location" })
|
|
21466
21466
|
] }),
|
|
21467
|
-
activeAddress ? /* @__PURE__ */ jsxs("div", { className: "text-sm text-
|
|
21468
|
-
/* @__PURE__ */ jsx("p", { className: "font-bold text-
|
|
21467
|
+
activeAddress ? /* @__PURE__ */ jsxs("div", { className: "text-sm text-hmuted leading-relaxed", children: [
|
|
21468
|
+
/* @__PURE__ */ jsx("p", { className: "font-bold text-hsecondary text-base mb-1", children: activeAddress.name }),
|
|
21469
21469
|
/* @__PURE__ */ jsx("p", { children: activeAddress.street1 }),
|
|
21470
21470
|
activeAddress.street2 && /* @__PURE__ */ jsx("p", { children: activeAddress.street2 }),
|
|
21471
21471
|
/* @__PURE__ */ jsxs("p", { children: [
|
|
@@ -21476,15 +21476,15 @@ function OrderDetailScreen({ id }) {
|
|
|
21476
21476
|
activeAddress.zip
|
|
21477
21477
|
] }),
|
|
21478
21478
|
/* @__PURE__ */ jsx("p", { children: activeAddress.country })
|
|
21479
|
-
] }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
21479
|
+
] }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted italic", children: "No address recorded" })
|
|
21480
21480
|
] }),
|
|
21481
21481
|
/* @__PURE__ */ jsxs("div", { className: "bg-white p-6 rounded-3xl border border-slate-200 shadow-xs", children: [
|
|
21482
21482
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
21483
|
-
/* @__PURE__ */ jsx(CreditCard, { className: "w-5 h-5 text-
|
|
21484
|
-
/* @__PURE__ */ jsx("h3", { className: "font-bold text-
|
|
21483
|
+
/* @__PURE__ */ jsx(CreditCard, { className: "w-5 h-5 text-haccent" }),
|
|
21484
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold text-hsecondary", children: "Payment Method" })
|
|
21485
21485
|
] }),
|
|
21486
|
-
/* @__PURE__ */ jsxs("div", { className: "text-sm text-
|
|
21487
|
-
/* @__PURE__ */ jsx("p", { className: "font-bold text-
|
|
21486
|
+
/* @__PURE__ */ jsxs("div", { className: "text-sm text-hmuted leading-relaxed", children: [
|
|
21487
|
+
/* @__PURE__ */ jsx("p", { className: "font-bold text-hsecondary text-base mb-1", children: order.payment?.paymentMethod ? order.payment.paymentMethod.replace("_", " ").toUpperCase() : "N/A" }),
|
|
21488
21488
|
/* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 mt-2", children: [
|
|
21489
21489
|
/* @__PURE__ */ jsx("span", { className: "opacity-60", children: "Status:" }),
|
|
21490
21490
|
/* @__PURE__ */ jsx(Badge, { variant: order.payment?.paymentStatus === "Paid" ? "success" : "warning", children: order.payment?.paymentStatus || "Processing" })
|
|
@@ -21502,7 +21502,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21502
21502
|
{
|
|
21503
21503
|
initial: { opacity: 0, x: 20 },
|
|
21504
21504
|
animate: { opacity: 1, x: 0 },
|
|
21505
|
-
className: "bg-
|
|
21505
|
+
className: "bg-hsecondary p-8 rounded-[2rem] text-white shadow-xl shadow-secondary-20 sticky top-8",
|
|
21506
21506
|
children: [
|
|
21507
21507
|
/* @__PURE__ */ jsx("h2", { className: "text-xl font-bold mb-6 flex items-center gap-2", children: "Summary View" }),
|
|
21508
21508
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4 mb-8", children: [
|
|
@@ -21518,7 +21518,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21518
21518
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Tax" }),
|
|
21519
21519
|
/* @__PURE__ */ jsx("span", { className: "font-bold text-white", children: formatPrice(order.tax || 0) })
|
|
21520
21520
|
] }),
|
|
21521
|
-
order.discountedAmount !== void 0 && order.discountedAmount > 0 && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-
|
|
21521
|
+
order.discountedAmount !== void 0 && order.discountedAmount > 0 && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-hprimary", children: [
|
|
21522
21522
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Discount" }),
|
|
21523
21523
|
/* @__PURE__ */ jsxs("span", { className: "font-bold", children: [
|
|
21524
21524
|
"-",
|
|
@@ -21534,7 +21534,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21534
21534
|
] }) })
|
|
21535
21535
|
] }),
|
|
21536
21536
|
order.orderStatus === "Pending" && /* @__PURE__ */ jsx("div", { className: "p-4 bg-white/5 rounded-2xl border border-white/10 mb-8", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
21537
|
-
/* @__PURE__ */ jsx(Info, { className: "w-5 h-5 text-
|
|
21537
|
+
/* @__PURE__ */ jsx(Info, { className: "w-5 h-5 text-hprimary shrink-0 mt-0.5" }),
|
|
21538
21538
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
21539
21539
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold mb-1", children: "Order is processing" }),
|
|
21540
21540
|
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-white/60 leading-relaxed", children: "We've received your request and our pharmacists are reviewing it for safety and accuracy." })
|
|
@@ -21598,7 +21598,7 @@ function ChangePasswordScreen() {
|
|
|
21598
21598
|
className: "mx-auto max-w-2xl rounded-3xl border border-slate-200 bg-white p-8 shadow-xl shadow-primary-50",
|
|
21599
21599
|
children: [
|
|
21600
21600
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
21601
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-
|
|
21601
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-hprimary-50 text-hprimary-600", children: /* @__PURE__ */ jsx(Lock, { className: "h-5 w-5" }) }),
|
|
21602
21602
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
21603
21603
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase tracking-[0.32em] text-slate-500", children: "Security" }),
|
|
21604
21604
|
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold text-slate-900", children: "Change password" })
|
|
@@ -21671,7 +21671,7 @@ function ChangePasswordScreen() {
|
|
|
21671
21671
|
] })
|
|
21672
21672
|
] }),
|
|
21673
21673
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex items-center gap-2 rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-600", children: [
|
|
21674
|
-
/* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4 text-
|
|
21674
|
+
/* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4 text-hprimary-600" }),
|
|
21675
21675
|
"Strong passwords and up-to-date contact details help pharmacists verify changes quickly."
|
|
21676
21676
|
] })
|
|
21677
21677
|
]
|
|
@@ -21886,7 +21886,7 @@ function NotificationModal() {
|
|
|
21886
21886
|
style: { maxHeight: "calc(100vh - 120px)" },
|
|
21887
21887
|
children: [
|
|
21888
21888
|
/* @__PURE__ */ jsx("div", { className: "absolute -top-1 right-5 w-3 h-3 bg-white border-l border-t border-gray-100 transform rotate-45 z-10" }),
|
|
21889
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 py-3 border-b bg-gradient-to-r from-
|
|
21889
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 py-3 border-b bg-gradient-to-r from-hprimary-50 to-white", children: [
|
|
21890
21890
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
21891
21891
|
/* @__PURE__ */ jsx(
|
|
21892
21892
|
"h2",
|
|
@@ -21987,7 +21987,7 @@ function NotificationBell() {
|
|
|
21987
21987
|
id: "notification-bell-button",
|
|
21988
21988
|
onClick: handleToggle,
|
|
21989
21989
|
onMouseDown: (e) => e.stopPropagation(),
|
|
21990
|
-
className: `relative p-2.5 rounded-xl transition-all duration-300 group flex items-center justify-center ${isDrawerOpen ? "bg-
|
|
21990
|
+
className: `relative p-2.5 rounded-xl transition-all duration-300 group flex items-center justify-center ${isDrawerOpen ? "bg-hprimary-50 text-hprimary-600" : "hover:bg-gradient-to-br hover:from-hprimary-50 hover:to-hprimary-100/50 text-gray-700"}`,
|
|
21991
21991
|
"aria-label": "Notifications",
|
|
21992
21992
|
whileHover: isDrawerOpen ? {} : { scale: 1.05 },
|
|
21993
21993
|
whileTap: { scale: 0.95 },
|
|
@@ -21995,7 +21995,7 @@ function NotificationBell() {
|
|
|
21995
21995
|
/* @__PURE__ */ jsx(
|
|
21996
21996
|
Bell,
|
|
21997
21997
|
{
|
|
21998
|
-
className: `w-6 h-6 transition-colors duration-300 ${isDrawerOpen ? "text-
|
|
21998
|
+
className: `w-6 h-6 transition-colors duration-300 ${isDrawerOpen ? "text-hprimary-600 bg-gray-100 rounded-lg p-2 w-10 h-10 transition-all duration-300" : "group-hover:text-hprimary-600"}`,
|
|
21999
21999
|
strokeWidth: 2
|
|
22000
22000
|
}
|
|
22001
22001
|
),
|
|
@@ -22081,10 +22081,10 @@ function Header() {
|
|
|
22081
22081
|
Link9,
|
|
22082
22082
|
{
|
|
22083
22083
|
href: link.href,
|
|
22084
|
-
className: "text-gray-700 hover:text-
|
|
22084
|
+
className: "text-gray-700 hover:text-hprimary-600 font-medium transition-colors relative group",
|
|
22085
22085
|
children: [
|
|
22086
22086
|
link.label,
|
|
22087
|
-
/* @__PURE__ */ jsx("span", { className: "absolute bottom-0 left-0 w-0 h-0.5 bg-
|
|
22087
|
+
/* @__PURE__ */ jsx("span", { className: "absolute bottom-0 left-0 w-0 h-0.5 bg-hprimary-600 group-hover:w-full transition-all duration-300" })
|
|
22088
22088
|
]
|
|
22089
22089
|
},
|
|
22090
22090
|
link.href
|
|
@@ -22149,7 +22149,7 @@ function Header() {
|
|
|
22149
22149
|
/* @__PURE__ */ jsx(Heart, { className: "w-6 h-6" }),
|
|
22150
22150
|
wishlistCount > 0 && /* @__PURE__ */ jsx("span", { className: "absolute -top-1 -right-1 bg-red-500 text-white text-xs font-bold rounded-full w-5 h-5 flex items-center justify-center", children: wishlistCount })
|
|
22151
22151
|
] }),
|
|
22152
|
-
/* @__PURE__ */ jsxs(Link9, { href: buildPath("/cart"), className: "relative p-2 text-gray-700 hover:text-
|
|
22152
|
+
/* @__PURE__ */ jsxs(Link9, { href: buildPath("/cart"), className: "relative p-2 text-gray-700 hover:text-hprimary-600 transition-colors", children: [
|
|
22153
22153
|
/* @__PURE__ */ jsx(ShoppingCart, { className: "w-6 h-6" }),
|
|
22154
22154
|
cart?.cartBody?.items?.length && cart.cartBody?.items?.length > 0 ? /* @__PURE__ */ jsx("span", { className: "absolute -top-1 -right-1 bg-red-500 text-white text-xs font-bold rounded-full w-5 h-5 flex items-center justify-center", children: cart.cartBody?.items?.length }) : null
|
|
22155
22155
|
] }),
|
|
@@ -22160,7 +22160,7 @@ function Header() {
|
|
|
22160
22160
|
onClick: () => setIsDropdownOpen(!isDropdownOpen),
|
|
22161
22161
|
className: "flex items-center gap-2 rounded-full border border-slate-200 bg-white px-3 py-2 hover:bg-slate-50 transition-colors",
|
|
22162
22162
|
children: [
|
|
22163
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-7 w-7 items-center justify-center rounded-full bg-
|
|
22163
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-7 w-7 items-center justify-center rounded-full bg-hprimary-100 text-xs font-semibold text-hprimary-700", children: getInitials(user?.firstname || "", user?.lastname || "") }),
|
|
22164
22164
|
/* @__PURE__ */ jsx(ChevronDown, { className: `h-4 w-4 text-slate-400 transition-transform ${isDropdownOpen ? "rotate-180" : ""}` })
|
|
22165
22165
|
]
|
|
22166
22166
|
}
|
|
@@ -22175,7 +22175,7 @@ function Header() {
|
|
|
22175
22175
|
),
|
|
22176
22176
|
/* @__PURE__ */ jsx("div", { className: "absolute right-0 top-full mt-2 w-56 rounded-lg border border-slate-200 bg-white shadow-lg z-20", children: /* @__PURE__ */ jsxs("div", { className: "p-2", children: [
|
|
22177
22177
|
/* @__PURE__ */ jsxs("div", { className: "px-3 py-2 border-b border-slate-200 mb-1", children: [
|
|
22178
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-
|
|
22178
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hsecondary truncate", children: [
|
|
22179
22179
|
user?.firstname,
|
|
22180
22180
|
" ",
|
|
22181
22181
|
user?.lastname
|
|
@@ -22213,7 +22213,7 @@ function Header() {
|
|
|
22213
22213
|
Link9,
|
|
22214
22214
|
{
|
|
22215
22215
|
href: buildPath("/login"),
|
|
22216
|
-
className: "hidden sm:block px-4 py-2 bg-
|
|
22216
|
+
className: "hidden sm:block px-4 py-2 bg-hprimary-600 text-white rounded-lg hover:bg-hprimary-700 transition-colors font-medium",
|
|
22217
22217
|
children: "Sign In"
|
|
22218
22218
|
}
|
|
22219
22219
|
)
|
|
@@ -22250,7 +22250,7 @@ function Header() {
|
|
|
22250
22250
|
{
|
|
22251
22251
|
href: buildPath("/login"),
|
|
22252
22252
|
onClick: () => setIsMobileMenuOpen(false),
|
|
22253
|
-
className: "px-4 py-3 text-
|
|
22253
|
+
className: "px-4 py-3 text-hprimary-600 hover:bg-gray-50 rounded-lg font-medium",
|
|
22254
22254
|
children: "Sign In"
|
|
22255
22255
|
}
|
|
22256
22256
|
)
|
|
@@ -22294,7 +22294,7 @@ function Footer() {
|
|
|
22294
22294
|
/* @__PURE__ */ jsx("p", { className: "text-gray-400 mb-6 max-w-md", children: "Your trusted online store for quality products. We deliver excellence with every order." }),
|
|
22295
22295
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
22296
22296
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22297
|
-
/* @__PURE__ */ jsx(Mail, { className: "w-5 h-5 text-
|
|
22297
|
+
/* @__PURE__ */ jsx(Mail, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22298
22298
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
22299
22299
|
"support@",
|
|
22300
22300
|
config.storeName.toLowerCase().replace(/\s+/g, ""),
|
|
@@ -22302,11 +22302,11 @@ function Footer() {
|
|
|
22302
22302
|
] })
|
|
22303
22303
|
] }),
|
|
22304
22304
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22305
|
-
/* @__PURE__ */ jsx(Phone, { className: "w-5 h-5 text-
|
|
22305
|
+
/* @__PURE__ */ jsx(Phone, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22306
22306
|
/* @__PURE__ */ jsx("span", { children: "+1 (555) 123-4567" })
|
|
22307
22307
|
] }),
|
|
22308
22308
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22309
|
-
/* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-
|
|
22309
|
+
/* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22310
22310
|
/* @__PURE__ */ jsx("span", { children: "123 Store Street, City, Country" })
|
|
22311
22311
|
] })
|
|
22312
22312
|
] })
|
|
@@ -22317,7 +22317,7 @@ function Footer() {
|
|
|
22317
22317
|
Link9,
|
|
22318
22318
|
{
|
|
22319
22319
|
href: link.href,
|
|
22320
|
-
className: "hover:text-
|
|
22320
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22321
22321
|
children: link.label
|
|
22322
22322
|
}
|
|
22323
22323
|
) }, link.href)) })
|
|
@@ -22328,7 +22328,7 @@ function Footer() {
|
|
|
22328
22328
|
Link9,
|
|
22329
22329
|
{
|
|
22330
22330
|
href: link.href,
|
|
22331
|
-
className: "hover:text-
|
|
22331
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22332
22332
|
children: link.label
|
|
22333
22333
|
}
|
|
22334
22334
|
) }, link.href)) })
|
|
@@ -22339,7 +22339,7 @@ function Footer() {
|
|
|
22339
22339
|
Link9,
|
|
22340
22340
|
{
|
|
22341
22341
|
href: link.href,
|
|
22342
|
-
className: "hover:text-
|
|
22342
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22343
22343
|
children: link.label
|
|
22344
22344
|
}
|
|
22345
22345
|
) }, link.href)) })
|
|
@@ -22358,7 +22358,7 @@ function Footer() {
|
|
|
22358
22358
|
"a",
|
|
22359
22359
|
{
|
|
22360
22360
|
href: "#",
|
|
22361
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22361
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22362
22362
|
children: /* @__PURE__ */ jsx(Facebook, { className: "w-5 h-5" })
|
|
22363
22363
|
}
|
|
22364
22364
|
),
|
|
@@ -22366,7 +22366,7 @@ function Footer() {
|
|
|
22366
22366
|
"a",
|
|
22367
22367
|
{
|
|
22368
22368
|
href: "#",
|
|
22369
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22369
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22370
22370
|
children: /* @__PURE__ */ jsx(Twitter, { className: "w-5 h-5" })
|
|
22371
22371
|
}
|
|
22372
22372
|
),
|
|
@@ -22374,7 +22374,7 @@ function Footer() {
|
|
|
22374
22374
|
"a",
|
|
22375
22375
|
{
|
|
22376
22376
|
href: "#",
|
|
22377
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22377
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22378
22378
|
children: /* @__PURE__ */ jsx(Instagram, { className: "w-5 h-5" })
|
|
22379
22379
|
}
|
|
22380
22380
|
)
|
|
@@ -22507,7 +22507,7 @@ function NotificationDrawer() {
|
|
|
22507
22507
|
},
|
|
22508
22508
|
notification._id
|
|
22509
22509
|
)),
|
|
22510
|
-
isLoading && /* @__PURE__ */ jsx("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ jsx("div", { className: "w-6 h-6 border-2 border-
|
|
22510
|
+
isLoading && /* @__PURE__ */ jsx("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ jsx("div", { className: "w-6 h-6 border-2 border-hprimary-600 border-t-transparent rounded-full animate-spin" }) }),
|
|
22511
22511
|
!hasMore && notifications.length > 0 && /* @__PURE__ */ jsx("div", { className: "text-center py-4 text-sm text-gray-500", children: "You're all caught up! \u{1F389}" })
|
|
22512
22512
|
] })
|
|
22513
22513
|
}
|