hey-pharmacist-ecommerce 1.1.41 → 1.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -8
- package/dist/index.d.mts +380 -2364
- package/dist/index.d.ts +380 -2364
- package/dist/index.js +576 -615
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +576 -612
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/AccountAddressesTab.tsx +9 -9
- package/src/components/AccountOrdersTab.tsx +11 -11
- package/src/components/AccountOverviewTab.tsx +26 -26
- 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 +15 -15
- package/src/components/FilterChips.tsx +7 -7
- package/src/components/Footer.tsx +9 -9
- package/src/components/Header.tsx +7 -7
- package/src/components/Notification.tsx +3 -3
- 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 +13 -13
- package/src/components/QuickViewModal.tsx +28 -28
- package/src/components/ReviewCard.tsx +6 -6
- 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/lib/Apis/api.ts +0 -1
- package/src/lib/Apis/models/group-with-no-users-dto.ts +0 -6
- package/src/lib/Apis/models/group-with-users-dto.ts +0 -6
- package/src/lib/Apis/models/index.ts +0 -35
- package/src/lib/Apis/models/order.ts +0 -6
- package/src/lib/Apis/models/populated-order.ts +0 -6
- package/src/lib/Apis/models/preference-update-item.ts +1 -0
- package/src/lib/Apis/models/update-user-dto.ts +0 -6
- package/src/lib/Apis/models/user-group.ts +0 -6
- package/src/lib/Apis/models/user-with-no-id.ts +0 -6
- package/src/lib/Apis/sharedConfig.ts +1 -1
- package/src/providers/ThemeProvider.tsx +2 -2
- package/src/screens/AddressesScreen.tsx +6 -6
- package/src/screens/CartScreen.tsx +23 -23
- package/src/screens/ChangePasswordScreen.tsx +2 -2
- package/src/screens/CheckoutScreen.tsx +28 -28
- 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 +59 -59
- 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 +55 -55
- package/src/screens/WishlistScreen.tsx +22 -22
- package/src/styles/globals.css +43 -43
- package/src/lib/Apis/apis/marketing-api.ts +0 -3099
- package/src/lib/Apis/models/add-contact-to-list-dto.ts +0 -33
- package/src/lib/Apis/models/browser-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-content-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-dto.ts +0 -175
- package/src/lib/Apis/models/campaign-draft-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-schedule-dto.ts +0 -49
- package/src/lib/Apis/models/campaign-draft-schedule-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-sending-dto.ts +0 -43
- package/src/lib/Apis/models/campaign-draft-sending-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-aggregated-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-full-dto.ts +0 -93
- package/src/lib/Apis/models/contact-full-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-list-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-lists-response-dto.ts +0 -40
- package/src/lib/Apis/models/country-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/create-contact-dto.ts +0 -39
- package/src/lib/Apis/models/create-contact-list-dto.ts +0 -27
- package/src/lib/Apis/models/create-email-template-dto.ts +0 -51
- package/src/lib/Apis/models/create-marketing-campaign-dto.ts +0 -81
- package/src/lib/Apis/models/email-template-response-dto.ts +0 -117
- package/src/lib/Apis/models/general-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/link-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/marketing-campaign-content-dto.ts +0 -27
- package/src/lib/Apis/models/marketing-list-contact-dto.ts +0 -51
- package/src/lib/Apis/models/schedule-campaign-draft-dto.ts +0 -27
- package/src/lib/Apis/models/send-test-email-dto.ts +0 -28
- package/src/lib/Apis/models/single-browser-stats-dto.ts +0 -45
- package/src/lib/Apis/models/single-contact-aggregated-stats-dto.ts +0 -129
- package/src/lib/Apis/models/single-contact-list-stats-dto.ts +0 -117
- package/src/lib/Apis/models/single-country-stats-dto.ts +0 -39
- package/src/lib/Apis/models/single-general-stats.ts +0 -153
- package/src/lib/Apis/models/single-link-stats-dto.ts +0 -39
- package/src/lib/Apis/models/single-recipient-dto.ts +0 -33
- package/src/lib/Apis/models/update-campaign-draft-content-dto.ts +0 -27
- package/src/lib/Apis/models/update-marketing-camp-draft-dto.ts +0 -81
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React10, { createContext, forwardRef, useContext, useLayoutEffect, useEffect, useState, useCallback, useRef, useMemo } from 'react';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import
|
|
4
|
+
import globalAxios20 from 'axios';
|
|
5
5
|
import { motion, AnimatePresence, useMotionValue, useTransform } from 'framer-motion';
|
|
6
6
|
import { Eye, Star, ShoppingCart, Sparkles, ShieldCheck, TrendingUp, Search, Package, ArrowUpDown, ChevronDown, LayoutGrid, LayoutList, X, Clock, User, MessageCircle, Filter, ChevronLeft, Check, Heart, Truck, RotateCcw, Shield, Trash2, Minus, Plus, ShoppingBag, ArrowRight, CheckCircle2, MapPin, CreditCard, Edit3, AlertCircle, Lock, EyeOff, UserPlus, Mail, Send, ArrowLeft, MessageSquare, Settings, ChevronRight, ArrowUpRight, PackageCheck, Warehouse, BellRing, Crown, Phone, Grid, List, Loader2, Calendar, ExternalLink, Info, Bell, LogOut, Menu, Facebook, Twitter, Instagram, CheckCheck, BellOff, Shirt, Pill, Box, Gift, Tag, Globe, Home, TrendingDown, CheckCircle, Edit, AlertTriangle, XCircle } from 'lucide-react';
|
|
7
7
|
import { QueryClient, QueryClientProvider, useQuery } from '@tanstack/react-query';
|
|
@@ -61,7 +61,7 @@ var init_sharedConfig = __esm({
|
|
|
61
61
|
basePath: "https://api.heypharmacist.com",
|
|
62
62
|
// Default fallback
|
|
63
63
|
baseOptions: {
|
|
64
|
-
timeout:
|
|
64
|
+
timeout: 6e4
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -238,7 +238,7 @@ function ThemeProvider({ config, children }) {
|
|
|
238
238
|
vars.push(`--hp-secondary: ${config.colors.secondary}`);
|
|
239
239
|
vars.push(`--hp-accent: ${config.colors.accent}`);
|
|
240
240
|
vars.push(`--hp-accent-dark: ${config.colors.accentDark}`);
|
|
241
|
-
vars.push(`--hp-text-
|
|
241
|
+
vars.push(`--hp-text-hmuted: ${config.colors.textMuted}`);
|
|
242
242
|
Object.entries(primaryShades).forEach(([shade, rgb]) => {
|
|
243
243
|
vars.push(`--hp-primary-${shade}: ${rgb}`);
|
|
244
244
|
});
|
|
@@ -260,7 +260,7 @@ function ThemeProvider({ config, children }) {
|
|
|
260
260
|
root.style.setProperty("--hp-secondary", config.colors.secondary);
|
|
261
261
|
root.style.setProperty("--hp-accent", config.colors.accent);
|
|
262
262
|
root.style.setProperty("--hp-accent-dark", config.colors.accentDark);
|
|
263
|
-
root.style.setProperty("--hp-text-
|
|
263
|
+
root.style.setProperty("--hp-text-hmuted", config.colors.textMuted);
|
|
264
264
|
Object.entries(primaryShades).forEach(([shade, rgb]) => {
|
|
265
265
|
root.style.setProperty(`--hp-primary-${shade}`, rgb);
|
|
266
266
|
});
|
|
@@ -281,7 +281,7 @@ function ThemeProvider({ config, children }) {
|
|
|
281
281
|
init_config();
|
|
282
282
|
var BASE_PATH = "/".replace(/\/+$/, "");
|
|
283
283
|
var BaseAPI = class {
|
|
284
|
-
constructor(configuration, basePath = BASE_PATH, axios =
|
|
284
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios20) {
|
|
285
285
|
this.basePath = basePath;
|
|
286
286
|
this.axios = axios;
|
|
287
287
|
if (configuration) {
|
|
@@ -952,7 +952,7 @@ var UsersApiFp = function(configuration) {
|
|
|
952
952
|
*/
|
|
953
953
|
async allowUserCredit(body, userId, options) {
|
|
954
954
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).allowUserCredit(body, userId, options);
|
|
955
|
-
return (axios =
|
|
955
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
956
956
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
957
957
|
return axios.request(axiosRequestArgs);
|
|
958
958
|
};
|
|
@@ -966,7 +966,7 @@ var UsersApiFp = function(configuration) {
|
|
|
966
966
|
*/
|
|
967
967
|
async changeUserEmail(body, options) {
|
|
968
968
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).changeUserEmail(body, options);
|
|
969
|
-
return (axios =
|
|
969
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
970
970
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
971
971
|
return axios.request(axiosRequestArgs);
|
|
972
972
|
};
|
|
@@ -980,7 +980,7 @@ var UsersApiFp = function(configuration) {
|
|
|
980
980
|
*/
|
|
981
981
|
async createUser(body, options) {
|
|
982
982
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).createUser(body, options);
|
|
983
|
-
return (axios =
|
|
983
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
984
984
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
985
985
|
return axios.request(axiosRequestArgs);
|
|
986
986
|
};
|
|
@@ -993,7 +993,7 @@ var UsersApiFp = function(configuration) {
|
|
|
993
993
|
*/
|
|
994
994
|
async deleteMyProfile(options) {
|
|
995
995
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteMyProfile(options);
|
|
996
|
-
return (axios =
|
|
996
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
997
997
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
998
998
|
return axios.request(axiosRequestArgs);
|
|
999
999
|
};
|
|
@@ -1007,7 +1007,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1007
1007
|
*/
|
|
1008
1008
|
async deleteUser(id, options) {
|
|
1009
1009
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteUser(id, options);
|
|
1010
|
-
return (axios =
|
|
1010
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1011
1011
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1012
1012
|
return axios.request(axiosRequestArgs);
|
|
1013
1013
|
};
|
|
@@ -1021,7 +1021,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1021
1021
|
*/
|
|
1022
1022
|
async disableUserCredit(userId, options) {
|
|
1023
1023
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).disableUserCredit(userId, options);
|
|
1024
|
-
return (axios =
|
|
1024
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1025
1025
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1026
1026
|
return axios.request(axiosRequestArgs);
|
|
1027
1027
|
};
|
|
@@ -1042,7 +1042,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1042
1042
|
*/
|
|
1043
1043
|
async getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options) {
|
|
1044
1044
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options);
|
|
1045
|
-
return (axios =
|
|
1045
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1046
1046
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1047
1047
|
return axios.request(axiosRequestArgs);
|
|
1048
1048
|
};
|
|
@@ -1056,7 +1056,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1056
1056
|
*/
|
|
1057
1057
|
async getInsights(groupId, options) {
|
|
1058
1058
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getInsights(groupId, options);
|
|
1059
|
-
return (axios =
|
|
1059
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1060
1060
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1061
1061
|
return axios.request(axiosRequestArgs);
|
|
1062
1062
|
};
|
|
@@ -1069,7 +1069,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1069
1069
|
*/
|
|
1070
1070
|
async getMyProfile(options) {
|
|
1071
1071
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getMyProfile(options);
|
|
1072
|
-
return (axios =
|
|
1072
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1073
1073
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1074
1074
|
return axios.request(axiosRequestArgs);
|
|
1075
1075
|
};
|
|
@@ -1083,7 +1083,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1083
1083
|
*/
|
|
1084
1084
|
async getSingleUser(id, options) {
|
|
1085
1085
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getSingleUser(id, options);
|
|
1086
|
-
return (axios =
|
|
1086
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1087
1087
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1088
1088
|
return axios.request(axiosRequestArgs);
|
|
1089
1089
|
};
|
|
@@ -1096,7 +1096,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1096
1096
|
*/
|
|
1097
1097
|
async sendOTP(options) {
|
|
1098
1098
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).sendOTP(options);
|
|
1099
|
-
return (axios =
|
|
1099
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1100
1100
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1101
1101
|
return axios.request(axiosRequestArgs);
|
|
1102
1102
|
};
|
|
@@ -1110,7 +1110,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1110
1110
|
*/
|
|
1111
1111
|
async updateMyProfile(body, options) {
|
|
1112
1112
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateMyProfile(body, options);
|
|
1113
|
-
return (axios =
|
|
1113
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1114
1114
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1115
1115
|
return axios.request(axiosRequestArgs);
|
|
1116
1116
|
};
|
|
@@ -1125,7 +1125,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1125
1125
|
*/
|
|
1126
1126
|
async updateUser(body, id, options) {
|
|
1127
1127
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateUser(body, id, options);
|
|
1128
|
-
return (axios =
|
|
1128
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1129
1129
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1130
1130
|
return axios.request(axiosRequestArgs);
|
|
1131
1131
|
};
|
|
@@ -1138,7 +1138,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1138
1138
|
*/
|
|
1139
1139
|
async verifyOTP(options) {
|
|
1140
1140
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).verifyOTP(options);
|
|
1141
|
-
return (axios =
|
|
1141
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1142
1142
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1143
1143
|
return axios.request(axiosRequestArgs);
|
|
1144
1144
|
};
|
|
@@ -1755,7 +1755,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1755
1755
|
*/
|
|
1756
1756
|
async changeEmail(body, options) {
|
|
1757
1757
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changeEmail(body, options);
|
|
1758
|
-
return (axios =
|
|
1758
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1759
1759
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1760
1760
|
return axios.request(axiosRequestArgs);
|
|
1761
1761
|
};
|
|
@@ -1769,7 +1769,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1769
1769
|
*/
|
|
1770
1770
|
async changePassword(body, options) {
|
|
1771
1771
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changePassword(body, options);
|
|
1772
|
-
return (axios =
|
|
1772
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1773
1773
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1774
1774
|
return axios.request(axiosRequestArgs);
|
|
1775
1775
|
};
|
|
@@ -1783,7 +1783,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1783
1783
|
*/
|
|
1784
1784
|
async dashboardLogin(body, options) {
|
|
1785
1785
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).dashboardLogin(body, options);
|
|
1786
|
-
return (axios =
|
|
1786
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1787
1787
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1788
1788
|
return axios.request(axiosRequestArgs);
|
|
1789
1789
|
};
|
|
@@ -1799,7 +1799,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1799
1799
|
*/
|
|
1800
1800
|
async resetPassword(newPassword, token, xStoreKey, options) {
|
|
1801
1801
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, xStoreKey, options);
|
|
1802
|
-
return (axios =
|
|
1802
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1803
1803
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1804
1804
|
return axios.request(axiosRequestArgs);
|
|
1805
1805
|
};
|
|
@@ -1813,7 +1813,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1813
1813
|
*/
|
|
1814
1814
|
async sendForgetPasswordEmail(body, options) {
|
|
1815
1815
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).sendForgetPasswordEmail(body, options);
|
|
1816
|
-
return (axios =
|
|
1816
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1817
1817
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1818
1818
|
return axios.request(axiosRequestArgs);
|
|
1819
1819
|
};
|
|
@@ -1827,7 +1827,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1827
1827
|
*/
|
|
1828
1828
|
async signin(body, options) {
|
|
1829
1829
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signin(body, options);
|
|
1830
|
-
return (axios =
|
|
1830
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1831
1831
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1832
1832
|
return axios.request(axiosRequestArgs);
|
|
1833
1833
|
};
|
|
@@ -1841,7 +1841,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1841
1841
|
*/
|
|
1842
1842
|
async signinWithGmail(body, options) {
|
|
1843
1843
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signinWithGmail(body, options);
|
|
1844
|
-
return (axios =
|
|
1844
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1845
1845
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1846
1846
|
return axios.request(axiosRequestArgs);
|
|
1847
1847
|
};
|
|
@@ -1855,7 +1855,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1855
1855
|
*/
|
|
1856
1856
|
async signup(body, options) {
|
|
1857
1857
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signup(body, options);
|
|
1858
|
-
return (axios =
|
|
1858
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1859
1859
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1860
1860
|
return axios.request(axiosRequestArgs);
|
|
1861
1861
|
};
|
|
@@ -1869,7 +1869,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1869
1869
|
*/
|
|
1870
1870
|
async signupWithGmail(body, options) {
|
|
1871
1871
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signupWithGmail(body, options);
|
|
1872
|
-
return (axios =
|
|
1872
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1873
1873
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1874
1874
|
return axios.request(axiosRequestArgs);
|
|
1875
1875
|
};
|
|
@@ -1883,7 +1883,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1883
1883
|
*/
|
|
1884
1884
|
async verifyUserEmail(body, options) {
|
|
1885
1885
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).verifyUserEmail(body, options);
|
|
1886
|
-
return (axios =
|
|
1886
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1887
1887
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1888
1888
|
return axios.request(axiosRequestArgs);
|
|
1889
1889
|
};
|
|
@@ -2804,7 +2804,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2804
2804
|
*/
|
|
2805
2805
|
async adminCreateAddressForUser(body, userId, options) {
|
|
2806
2806
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminCreateAddressForUser(body, userId, options);
|
|
2807
|
-
return (axios =
|
|
2807
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2808
2808
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2809
2809
|
return axios.request(axiosRequestArgs);
|
|
2810
2810
|
};
|
|
@@ -2818,7 +2818,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2818
2818
|
*/
|
|
2819
2819
|
async adminDeleteUserAddress(addressId, options) {
|
|
2820
2820
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminDeleteUserAddress(addressId, options);
|
|
2821
|
-
return (axios =
|
|
2821
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2822
2822
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2823
2823
|
return axios.request(axiosRequestArgs);
|
|
2824
2824
|
};
|
|
@@ -2832,7 +2832,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2832
2832
|
*/
|
|
2833
2833
|
async adminGetSingleUserAddresses(userId, options) {
|
|
2834
2834
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminGetSingleUserAddresses(userId, options);
|
|
2835
|
-
return (axios =
|
|
2835
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2836
2836
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2837
2837
|
return axios.request(axiosRequestArgs);
|
|
2838
2838
|
};
|
|
@@ -2847,7 +2847,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2847
2847
|
*/
|
|
2848
2848
|
async adminUpdateUserAddress(body, addressId, options) {
|
|
2849
2849
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminUpdateUserAddress(body, addressId, options);
|
|
2850
|
-
return (axios =
|
|
2850
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2851
2851
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2852
2852
|
return axios.request(axiosRequestArgs);
|
|
2853
2853
|
};
|
|
@@ -2861,7 +2861,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2861
2861
|
*/
|
|
2862
2862
|
async createAddressForStore(body, options) {
|
|
2863
2863
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForStore(body, options);
|
|
2864
|
-
return (axios =
|
|
2864
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2865
2865
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2866
2866
|
return axios.request(axiosRequestArgs);
|
|
2867
2867
|
};
|
|
@@ -2875,7 +2875,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2875
2875
|
*/
|
|
2876
2876
|
async createAddressForUser(body, options) {
|
|
2877
2877
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForUser(body, options);
|
|
2878
|
-
return (axios =
|
|
2878
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2879
2879
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2880
2880
|
return axios.request(axiosRequestArgs);
|
|
2881
2881
|
};
|
|
@@ -2889,7 +2889,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2889
2889
|
*/
|
|
2890
2890
|
async deleteUserAddress(addressId, options) {
|
|
2891
2891
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).deleteUserAddress(addressId, options);
|
|
2892
|
-
return (axios =
|
|
2892
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2893
2893
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2894
2894
|
return axios.request(axiosRequestArgs);
|
|
2895
2895
|
};
|
|
@@ -2903,7 +2903,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2903
2903
|
*/
|
|
2904
2904
|
async getAllStoreAddresses(storeId, options) {
|
|
2905
2905
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllStoreAddresses(storeId, options);
|
|
2906
|
-
return (axios =
|
|
2906
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2907
2907
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2908
2908
|
return axios.request(axiosRequestArgs);
|
|
2909
2909
|
};
|
|
@@ -2916,7 +2916,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2916
2916
|
*/
|
|
2917
2917
|
async getAllUserAddresses(options) {
|
|
2918
2918
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllUserAddresses(options);
|
|
2919
|
-
return (axios =
|
|
2919
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2920
2920
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2921
2921
|
return axios.request(axiosRequestArgs);
|
|
2922
2922
|
};
|
|
@@ -2929,7 +2929,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2929
2929
|
*/
|
|
2930
2930
|
async getMyAddresses(options) {
|
|
2931
2931
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyAddresses(options);
|
|
2932
|
-
return (axios =
|
|
2932
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2933
2933
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2934
2934
|
return axios.request(axiosRequestArgs);
|
|
2935
2935
|
};
|
|
@@ -2942,7 +2942,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2942
2942
|
*/
|
|
2943
2943
|
async getMyDefaultAddress(options) {
|
|
2944
2944
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyDefaultAddress(options);
|
|
2945
|
-
return (axios =
|
|
2945
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2946
2946
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2947
2947
|
return axios.request(axiosRequestArgs);
|
|
2948
2948
|
};
|
|
@@ -2956,7 +2956,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2956
2956
|
*/
|
|
2957
2957
|
async getSingleAddress(addressId, options) {
|
|
2958
2958
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getSingleAddress(addressId, options);
|
|
2959
|
-
return (axios =
|
|
2959
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2960
2960
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2961
2961
|
return axios.request(axiosRequestArgs);
|
|
2962
2962
|
};
|
|
@@ -2971,7 +2971,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2971
2971
|
*/
|
|
2972
2972
|
async setDefaultShippingAddress(userId, addressId, options) {
|
|
2973
2973
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).setDefaultShippingAddress(userId, addressId, options);
|
|
2974
|
-
return (axios =
|
|
2974
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2975
2975
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2976
2976
|
return axios.request(axiosRequestArgs);
|
|
2977
2977
|
};
|
|
@@ -2985,7 +2985,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2985
2985
|
*/
|
|
2986
2986
|
async updateDefaultAddress(addressId, options) {
|
|
2987
2987
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateDefaultAddress(addressId, options);
|
|
2988
|
-
return (axios =
|
|
2988
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2989
2989
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2990
2990
|
return axios.request(axiosRequestArgs);
|
|
2991
2991
|
};
|
|
@@ -3000,7 +3000,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
3000
3000
|
*/
|
|
3001
3001
|
async updateUserAddress(body, addressId, options) {
|
|
3002
3002
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateUserAddress(body, addressId, options);
|
|
3003
|
-
return (axios =
|
|
3003
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3004
3004
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3005
3005
|
return axios.request(axiosRequestArgs);
|
|
3006
3006
|
};
|
|
@@ -3382,7 +3382,7 @@ var CartApiFp = function(configuration) {
|
|
|
3382
3382
|
*/
|
|
3383
3383
|
async clearCart(options) {
|
|
3384
3384
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).clearCart(options);
|
|
3385
|
-
return (axios =
|
|
3385
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3386
3386
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3387
3387
|
return axios.request(axiosRequestArgs);
|
|
3388
3388
|
};
|
|
@@ -3396,7 +3396,7 @@ var CartApiFp = function(configuration) {
|
|
|
3396
3396
|
*/
|
|
3397
3397
|
async getUserCart(rateId, options) {
|
|
3398
3398
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).getUserCart(rateId, options);
|
|
3399
|
-
return (axios =
|
|
3399
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3400
3400
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3401
3401
|
return axios.request(axiosRequestArgs);
|
|
3402
3402
|
};
|
|
@@ -3410,7 +3410,7 @@ var CartApiFp = function(configuration) {
|
|
|
3410
3410
|
*/
|
|
3411
3411
|
async handleUserCart(body, options) {
|
|
3412
3412
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleUserCart(body, options);
|
|
3413
|
-
return (axios =
|
|
3413
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3414
3414
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3415
3415
|
return axios.request(axiosRequestArgs);
|
|
3416
3416
|
};
|
|
@@ -3428,7 +3428,7 @@ var CartApiFp = function(configuration) {
|
|
|
3428
3428
|
*/
|
|
3429
3429
|
async handleVisitorCart(body, isDelivery, userId, rateId, addressId, options) {
|
|
3430
3430
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleVisitorCart(body, isDelivery, userId, rateId, addressId, options);
|
|
3431
|
-
return (axios =
|
|
3431
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3432
3432
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3433
3433
|
return axios.request(axiosRequestArgs);
|
|
3434
3434
|
};
|
|
@@ -3860,7 +3860,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3860
3860
|
*/
|
|
3861
3861
|
async createCategory(body, options) {
|
|
3862
3862
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).createCategory(body, options);
|
|
3863
|
-
return (axios =
|
|
3863
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3864
3864
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3865
3865
|
return axios.request(axiosRequestArgs);
|
|
3866
3866
|
};
|
|
@@ -3874,7 +3874,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3874
3874
|
*/
|
|
3875
3875
|
async deleteCategory(id, options) {
|
|
3876
3876
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).deleteCategory(id, options);
|
|
3877
|
-
return (axios =
|
|
3877
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3878
3878
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3879
3879
|
return axios.request(axiosRequestArgs);
|
|
3880
3880
|
};
|
|
@@ -3890,7 +3890,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3890
3890
|
*/
|
|
3891
3891
|
async getAllCategories(search, limit, page, options) {
|
|
3892
3892
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getAllCategories(search, limit, page, options);
|
|
3893
|
-
return (axios =
|
|
3893
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3894
3894
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3895
3895
|
return axios.request(axiosRequestArgs);
|
|
3896
3896
|
};
|
|
@@ -3903,7 +3903,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3903
3903
|
*/
|
|
3904
3904
|
async getCategoreisAndSubCategories(options) {
|
|
3905
3905
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoreisAndSubCategories(options);
|
|
3906
|
-
return (axios =
|
|
3906
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3907
3907
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3908
3908
|
return axios.request(axiosRequestArgs);
|
|
3909
3909
|
};
|
|
@@ -3917,7 +3917,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3917
3917
|
*/
|
|
3918
3918
|
async getCategoryFilters(id, options) {
|
|
3919
3919
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoryFilters(id, options);
|
|
3920
|
-
return (axios =
|
|
3920
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3921
3921
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3922
3922
|
return axios.request(axiosRequestArgs);
|
|
3923
3923
|
};
|
|
@@ -3931,7 +3931,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3931
3931
|
*/
|
|
3932
3932
|
async getSingleCategory(id, options) {
|
|
3933
3933
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getSingleCategory(id, options);
|
|
3934
|
-
return (axios =
|
|
3934
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3935
3935
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3936
3936
|
return axios.request(axiosRequestArgs);
|
|
3937
3937
|
};
|
|
@@ -3945,7 +3945,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3945
3945
|
*/
|
|
3946
3946
|
async reorderCategories(body, options) {
|
|
3947
3947
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).reorderCategories(body, options);
|
|
3948
|
-
return (axios =
|
|
3948
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3949
3949
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3950
3950
|
return axios.request(axiosRequestArgs);
|
|
3951
3951
|
};
|
|
@@ -3960,7 +3960,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3960
3960
|
*/
|
|
3961
3961
|
async updateCategory(body, id, options) {
|
|
3962
3962
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).updateCategory(body, id, options);
|
|
3963
|
-
return (axios =
|
|
3963
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3964
3964
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3965
3965
|
return axios.request(axiosRequestArgs);
|
|
3966
3966
|
};
|
|
@@ -4385,7 +4385,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4385
4385
|
*/
|
|
4386
4386
|
async createDiscount(body, options) {
|
|
4387
4387
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).createDiscount(body, options);
|
|
4388
|
-
return (axios =
|
|
4388
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4389
4389
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4390
4390
|
return axios.request(axiosRequestArgs);
|
|
4391
4391
|
};
|
|
@@ -4399,7 +4399,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4399
4399
|
*/
|
|
4400
4400
|
async deleteDiscount(id, options) {
|
|
4401
4401
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).deleteDiscount(id, options);
|
|
4402
|
-
return (axios =
|
|
4402
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4403
4403
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4404
4404
|
return axios.request(axiosRequestArgs);
|
|
4405
4405
|
};
|
|
@@ -4412,7 +4412,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4412
4412
|
*/
|
|
4413
4413
|
async getAllDiscounts(options) {
|
|
4414
4414
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getAllDiscounts(options);
|
|
4415
|
-
return (axios =
|
|
4415
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4416
4416
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4417
4417
|
return axios.request(axiosRequestArgs);
|
|
4418
4418
|
};
|
|
@@ -4425,7 +4425,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4425
4425
|
*/
|
|
4426
4426
|
async getDiscountsInsights(options) {
|
|
4427
4427
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getDiscountsInsights(options);
|
|
4428
|
-
return (axios =
|
|
4428
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4429
4429
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4430
4430
|
return axios.request(axiosRequestArgs);
|
|
4431
4431
|
};
|
|
@@ -4439,7 +4439,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4439
4439
|
*/
|
|
4440
4440
|
async getSingleDiscount(id, options) {
|
|
4441
4441
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getSingleDiscount(id, options);
|
|
4442
|
-
return (axios =
|
|
4442
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4443
4443
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4444
4444
|
return axios.request(axiosRequestArgs);
|
|
4445
4445
|
};
|
|
@@ -4454,7 +4454,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4454
4454
|
*/
|
|
4455
4455
|
async updateDiscount(body, id, options) {
|
|
4456
4456
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).updateDiscount(body, id, options);
|
|
4457
|
-
return (axios =
|
|
4457
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4458
4458
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4459
4459
|
return axios.request(axiosRequestArgs);
|
|
4460
4460
|
};
|
|
@@ -4470,7 +4470,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4470
4470
|
*/
|
|
4471
4471
|
async validateCoupon(code, userId, discountId, options) {
|
|
4472
4472
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).validateCoupon(code, userId, discountId, options);
|
|
4473
|
-
return (axios =
|
|
4473
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4474
4474
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4475
4475
|
return axios.request(axiosRequestArgs);
|
|
4476
4476
|
};
|
|
@@ -4928,7 +4928,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4928
4928
|
*/
|
|
4929
4929
|
async bulkToggleChannel(body, options) {
|
|
4930
4930
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).bulkToggleChannel(body, options);
|
|
4931
|
-
return (axios =
|
|
4931
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4932
4932
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4933
4933
|
return axios.request(axiosRequestArgs);
|
|
4934
4934
|
};
|
|
@@ -4942,7 +4942,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4942
4942
|
*/
|
|
4943
4943
|
async deleteNotification(id, options) {
|
|
4944
4944
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).deleteNotification(id, options);
|
|
4945
|
-
return (axios =
|
|
4945
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4946
4946
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4947
4947
|
return axios.request(axiosRequestArgs);
|
|
4948
4948
|
};
|
|
@@ -4958,7 +4958,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4958
4958
|
*/
|
|
4959
4959
|
async getNotifications(page, limit, unreadOnly, options) {
|
|
4960
4960
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getNotifications(page, limit, unreadOnly, options);
|
|
4961
|
-
return (axios =
|
|
4961
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4962
4962
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4963
4963
|
return axios.request(axiosRequestArgs);
|
|
4964
4964
|
};
|
|
@@ -4971,7 +4971,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4971
4971
|
*/
|
|
4972
4972
|
async getSettings(options) {
|
|
4973
4973
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getSettings(options);
|
|
4974
|
-
return (axios =
|
|
4974
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4975
4975
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4976
4976
|
return axios.request(axiosRequestArgs);
|
|
4977
4977
|
};
|
|
@@ -4984,7 +4984,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4984
4984
|
*/
|
|
4985
4985
|
async getUnreadCount(options) {
|
|
4986
4986
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getUnreadCount(options);
|
|
4987
|
-
return (axios =
|
|
4987
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4988
4988
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4989
4989
|
return axios.request(axiosRequestArgs);
|
|
4990
4990
|
};
|
|
@@ -4997,7 +4997,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4997
4997
|
*/
|
|
4998
4998
|
async markAllAsRead(options) {
|
|
4999
4999
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAllAsRead(options);
|
|
5000
|
-
return (axios =
|
|
5000
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5001
5001
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5002
5002
|
return axios.request(axiosRequestArgs);
|
|
5003
5003
|
};
|
|
@@ -5011,7 +5011,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5011
5011
|
*/
|
|
5012
5012
|
async markAsRead(id, options) {
|
|
5013
5013
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAsRead(id, options);
|
|
5014
|
-
return (axios =
|
|
5014
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5015
5015
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5016
5016
|
return axios.request(axiosRequestArgs);
|
|
5017
5017
|
};
|
|
@@ -5025,7 +5025,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5025
5025
|
*/
|
|
5026
5026
|
async stream(token, options) {
|
|
5027
5027
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).stream(token, options);
|
|
5028
|
-
return (axios =
|
|
5028
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5029
5029
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5030
5030
|
return axios.request(axiosRequestArgs);
|
|
5031
5031
|
};
|
|
@@ -5039,7 +5039,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5039
5039
|
*/
|
|
5040
5040
|
async updateSettings(body, options) {
|
|
5041
5041
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).updateSettings(body, options);
|
|
5042
|
-
return (axios =
|
|
5042
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5043
5043
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5044
5044
|
return axios.request(axiosRequestArgs);
|
|
5045
5045
|
};
|
|
@@ -5776,7 +5776,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5776
5776
|
*/
|
|
5777
5777
|
async assignPaymentMethod(orderId, paymentMethod, billingAddressId, options) {
|
|
5778
5778
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).assignPaymentMethod(orderId, paymentMethod, billingAddressId, options);
|
|
5779
|
-
return (axios =
|
|
5779
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5780
5780
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5781
5781
|
return axios.request(axiosRequestArgs);
|
|
5782
5782
|
};
|
|
@@ -5790,7 +5790,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5790
5790
|
*/
|
|
5791
5791
|
async cancelOrder(id, options) {
|
|
5792
5792
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).cancelOrder(id, options);
|
|
5793
|
-
return (axios =
|
|
5793
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5794
5794
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5795
5795
|
return axios.request(axiosRequestArgs);
|
|
5796
5796
|
};
|
|
@@ -5808,7 +5808,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5808
5808
|
*/
|
|
5809
5809
|
async createCheckout(body, isDelivery, userId, rateId, billingAddressId, options) {
|
|
5810
5810
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).createCheckout(body, isDelivery, userId, rateId, billingAddressId, options);
|
|
5811
|
-
return (axios =
|
|
5811
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5812
5812
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5813
5813
|
return axios.request(axiosRequestArgs);
|
|
5814
5814
|
};
|
|
@@ -5822,7 +5822,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5822
5822
|
*/
|
|
5823
5823
|
async deleteOrder(id, options) {
|
|
5824
5824
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).deleteOrder(id, options);
|
|
5825
|
-
return (axios =
|
|
5825
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5826
5826
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5827
5827
|
return axios.request(axiosRequestArgs);
|
|
5828
5828
|
};
|
|
@@ -5843,7 +5843,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5843
5843
|
*/
|
|
5844
5844
|
async getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options) {
|
|
5845
5845
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options);
|
|
5846
|
-
return (axios =
|
|
5846
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5847
5847
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5848
5848
|
return axios.request(axiosRequestArgs);
|
|
5849
5849
|
};
|
|
@@ -5857,7 +5857,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5857
5857
|
*/
|
|
5858
5858
|
async getSingleOrder(id, options) {
|
|
5859
5859
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getSingleOrder(id, options);
|
|
5860
|
-
return (axios =
|
|
5860
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5861
5861
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5862
5862
|
return axios.request(axiosRequestArgs);
|
|
5863
5863
|
};
|
|
@@ -5870,7 +5870,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5870
5870
|
*/
|
|
5871
5871
|
async getStoreOrderInsights(options) {
|
|
5872
5872
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getStoreOrderInsights(options);
|
|
5873
|
-
return (axios =
|
|
5873
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5874
5874
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5875
5875
|
return axios.request(axiosRequestArgs);
|
|
5876
5876
|
};
|
|
@@ -5883,7 +5883,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5883
5883
|
*/
|
|
5884
5884
|
async getUserOrders(options) {
|
|
5885
5885
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getUserOrders(options);
|
|
5886
|
-
return (axios =
|
|
5886
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5887
5887
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5888
5888
|
return axios.request(axiosRequestArgs);
|
|
5889
5889
|
};
|
|
@@ -5897,7 +5897,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5897
5897
|
*/
|
|
5898
5898
|
async payOrder(orderId, options) {
|
|
5899
5899
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).payOrder(orderId, options);
|
|
5900
|
-
return (axios =
|
|
5900
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5901
5901
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5902
5902
|
return axios.request(axiosRequestArgs);
|
|
5903
5903
|
};
|
|
@@ -5911,7 +5911,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5911
5911
|
*/
|
|
5912
5912
|
async sendOrderEmail(body, options) {
|
|
5913
5913
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).sendOrderEmail(body, options);
|
|
5914
|
-
return (axios =
|
|
5914
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5915
5915
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5916
5916
|
return axios.request(axiosRequestArgs);
|
|
5917
5917
|
};
|
|
@@ -5932,7 +5932,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5932
5932
|
*/
|
|
5933
5933
|
async updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options) {
|
|
5934
5934
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options);
|
|
5935
|
-
return (axios =
|
|
5935
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5936
5936
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5937
5937
|
return axios.request(axiosRequestArgs);
|
|
5938
5938
|
};
|
|
@@ -5947,7 +5947,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5947
5947
|
*/
|
|
5948
5948
|
async updateOrderStatus(id, orderStatus, options) {
|
|
5949
5949
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrderStatus(id, orderStatus, options);
|
|
5950
|
-
return (axios =
|
|
5950
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5951
5951
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5952
5952
|
return axios.request(axiosRequestArgs);
|
|
5953
5953
|
};
|
|
@@ -7107,7 +7107,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7107
7107
|
*/
|
|
7108
7108
|
async addVariant(body, productId, options) {
|
|
7109
7109
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).addVariant(body, productId, options);
|
|
7110
|
-
return (axios =
|
|
7110
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7111
7111
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7112
7112
|
return axios.request(axiosRequestArgs);
|
|
7113
7113
|
};
|
|
@@ -7121,7 +7121,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7121
7121
|
*/
|
|
7122
7122
|
async createProduct(body, options) {
|
|
7123
7123
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProduct(body, options);
|
|
7124
|
-
return (axios =
|
|
7124
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7125
7125
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7126
7126
|
return axios.request(axiosRequestArgs);
|
|
7127
7127
|
};
|
|
@@ -7135,7 +7135,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7135
7135
|
*/
|
|
7136
7136
|
async createProductLegacy(body, options) {
|
|
7137
7137
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProductLegacy(body, options);
|
|
7138
|
-
return (axios =
|
|
7138
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7139
7139
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7140
7140
|
return axios.request(axiosRequestArgs);
|
|
7141
7141
|
};
|
|
@@ -7149,7 +7149,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7149
7149
|
*/
|
|
7150
7150
|
async deleteProduct(id, options) {
|
|
7151
7151
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteProduct(id, options);
|
|
7152
|
-
return (axios =
|
|
7152
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7153
7153
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7154
7154
|
return axios.request(axiosRequestArgs);
|
|
7155
7155
|
};
|
|
@@ -7164,7 +7164,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7164
7164
|
*/
|
|
7165
7165
|
async deleteVariant(productId, variantId, options) {
|
|
7166
7166
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteVariant(productId, variantId, options);
|
|
7167
|
-
return (axios =
|
|
7167
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7168
7168
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7169
7169
|
return axios.request(axiosRequestArgs);
|
|
7170
7170
|
};
|
|
@@ -7178,7 +7178,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7178
7178
|
*/
|
|
7179
7179
|
async getAllCategoryProducts(categoryId, options) {
|
|
7180
7180
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllCategoryProducts(categoryId, options);
|
|
7181
|
-
return (axios =
|
|
7181
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7182
7182
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7183
7183
|
return axios.request(axiosRequestArgs);
|
|
7184
7184
|
};
|
|
@@ -7191,7 +7191,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7191
7191
|
*/
|
|
7192
7192
|
async getAllFilters(options) {
|
|
7193
7193
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllFilters(options);
|
|
7194
|
-
return (axios =
|
|
7194
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7195
7195
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7196
7196
|
return axios.request(axiosRequestArgs);
|
|
7197
7197
|
};
|
|
@@ -7215,7 +7215,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7215
7215
|
*/
|
|
7216
7216
|
async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
|
|
7217
7217
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
|
|
7218
|
-
return (axios =
|
|
7218
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7219
7219
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7220
7220
|
return axios.request(axiosRequestArgs);
|
|
7221
7221
|
};
|
|
@@ -7229,7 +7229,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7229
7229
|
*/
|
|
7230
7230
|
async getAllProductsBySubCategory(subCategoryId, options) {
|
|
7231
7231
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsBySubCategory(subCategoryId, options);
|
|
7232
|
-
return (axios =
|
|
7232
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7233
7233
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7234
7234
|
return axios.request(axiosRequestArgs);
|
|
7235
7235
|
};
|
|
@@ -7242,7 +7242,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7242
7242
|
*/
|
|
7243
7243
|
async getAllProductsLight(options) {
|
|
7244
7244
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsLight(options);
|
|
7245
|
-
return (axios =
|
|
7245
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7246
7246
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7247
7247
|
return axios.request(axiosRequestArgs);
|
|
7248
7248
|
};
|
|
@@ -7255,7 +7255,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7255
7255
|
*/
|
|
7256
7256
|
async getFeaturedProduct(options) {
|
|
7257
7257
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getFeaturedProduct(options);
|
|
7258
|
-
return (axios =
|
|
7258
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7259
7259
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7260
7260
|
return axios.request(axiosRequestArgs);
|
|
7261
7261
|
};
|
|
@@ -7268,7 +7268,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7268
7268
|
*/
|
|
7269
7269
|
async getProductsInsights(options) {
|
|
7270
7270
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getProductsInsights(options);
|
|
7271
|
-
return (axios =
|
|
7271
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7272
7272
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7273
7273
|
return axios.request(axiosRequestArgs);
|
|
7274
7274
|
};
|
|
@@ -7283,7 +7283,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7283
7283
|
*/
|
|
7284
7284
|
async getRelatedProducts(id, limit, options) {
|
|
7285
7285
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProducts(id, limit, options);
|
|
7286
|
-
return (axios =
|
|
7286
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7287
7287
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7288
7288
|
return axios.request(axiosRequestArgs);
|
|
7289
7289
|
};
|
|
@@ -7297,7 +7297,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7297
7297
|
*/
|
|
7298
7298
|
async getRelatedProductsLegacy(productId, options) {
|
|
7299
7299
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProductsLegacy(productId, options);
|
|
7300
|
-
return (axios =
|
|
7300
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7301
7301
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7302
7302
|
return axios.request(axiosRequestArgs);
|
|
7303
7303
|
};
|
|
@@ -7311,7 +7311,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7311
7311
|
*/
|
|
7312
7312
|
async getSingleProduct(id, options) {
|
|
7313
7313
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProduct(id, options);
|
|
7314
|
-
return (axios =
|
|
7314
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7315
7315
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7316
7316
|
return axios.request(axiosRequestArgs);
|
|
7317
7317
|
};
|
|
@@ -7325,7 +7325,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7325
7325
|
*/
|
|
7326
7326
|
async getSingleProductLegacy(id, options) {
|
|
7327
7327
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProductLegacy(id, options);
|
|
7328
|
-
return (axios =
|
|
7328
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7329
7329
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7330
7330
|
return axios.request(axiosRequestArgs);
|
|
7331
7331
|
};
|
|
@@ -7340,7 +7340,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7340
7340
|
*/
|
|
7341
7341
|
async getTopSellingProducts(limit, page, options) {
|
|
7342
7342
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getTopSellingProducts(limit, page, options);
|
|
7343
|
-
return (axios =
|
|
7343
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7344
7344
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7345
7345
|
return axios.request(axiosRequestArgs);
|
|
7346
7346
|
};
|
|
@@ -7354,7 +7354,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7354
7354
|
*/
|
|
7355
7355
|
async reorderProducts(body, options) {
|
|
7356
7356
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reorderProducts(body, options);
|
|
7357
|
-
return (axios =
|
|
7357
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7358
7358
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7359
7359
|
return axios.request(axiosRequestArgs);
|
|
7360
7360
|
};
|
|
@@ -7370,7 +7370,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7370
7370
|
*/
|
|
7371
7371
|
async updateInventory(body, productId, variantId, options) {
|
|
7372
7372
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateInventory(body, productId, variantId, options);
|
|
7373
|
-
return (axios =
|
|
7373
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7374
7374
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7375
7375
|
return axios.request(axiosRequestArgs);
|
|
7376
7376
|
};
|
|
@@ -7385,7 +7385,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7385
7385
|
*/
|
|
7386
7386
|
async updateProduct(body, id, options) {
|
|
7387
7387
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateProduct(body, id, options);
|
|
7388
|
-
return (axios =
|
|
7388
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7389
7389
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7390
7390
|
return axios.request(axiosRequestArgs);
|
|
7391
7391
|
};
|
|
@@ -7401,7 +7401,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7401
7401
|
*/
|
|
7402
7402
|
async updateVariant(body, productId, variantId, options) {
|
|
7403
7403
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateVariant(body, productId, variantId, options);
|
|
7404
|
-
return (axios =
|
|
7404
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7405
7405
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7406
7406
|
return axios.request(axiosRequestArgs);
|
|
7407
7407
|
};
|
|
@@ -8427,7 +8427,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8427
8427
|
*/
|
|
8428
8428
|
async addReplay(body, id, options) {
|
|
8429
8429
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).addReplay(body, id, options);
|
|
8430
|
-
return (axios =
|
|
8430
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8431
8431
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8432
8432
|
return axios.request(axiosRequestArgs);
|
|
8433
8433
|
};
|
|
@@ -8442,7 +8442,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8442
8442
|
*/
|
|
8443
8443
|
async checkReviewStatus(orderId, productVariantId, options) {
|
|
8444
8444
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).checkReviewStatus(orderId, productVariantId, options);
|
|
8445
|
-
return (axios =
|
|
8445
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8446
8446
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8447
8447
|
return axios.request(axiosRequestArgs);
|
|
8448
8448
|
};
|
|
@@ -8457,7 +8457,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8457
8457
|
*/
|
|
8458
8458
|
async createReview(body, orderId, options) {
|
|
8459
8459
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).createReview(body, orderId, options);
|
|
8460
|
-
return (axios =
|
|
8460
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8461
8461
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8462
8462
|
return axios.request(axiosRequestArgs);
|
|
8463
8463
|
};
|
|
@@ -8470,7 +8470,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8470
8470
|
*/
|
|
8471
8471
|
async getReviewCount(options) {
|
|
8472
8472
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewCount(options);
|
|
8473
|
-
return (axios =
|
|
8473
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8474
8474
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8475
8475
|
return axios.request(axiosRequestArgs);
|
|
8476
8476
|
};
|
|
@@ -8484,7 +8484,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8484
8484
|
*/
|
|
8485
8485
|
async getReviewableProducts(orderId, options) {
|
|
8486
8486
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewableProducts(orderId, options);
|
|
8487
|
-
return (axios =
|
|
8487
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8488
8488
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8489
8489
|
return axios.request(axiosRequestArgs);
|
|
8490
8490
|
};
|
|
@@ -8498,7 +8498,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8498
8498
|
*/
|
|
8499
8499
|
async getReviewsByDate(date, options) {
|
|
8500
8500
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDate(date, options);
|
|
8501
|
-
return (axios =
|
|
8501
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8502
8502
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8503
8503
|
return axios.request(axiosRequestArgs);
|
|
8504
8504
|
};
|
|
@@ -8513,7 +8513,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8513
8513
|
*/
|
|
8514
8514
|
async getReviewsByDateRange(from, to, options) {
|
|
8515
8515
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDateRange(from, to, options);
|
|
8516
|
-
return (axios =
|
|
8516
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8517
8517
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8518
8518
|
return axios.request(axiosRequestArgs);
|
|
8519
8519
|
};
|
|
@@ -8527,7 +8527,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8527
8527
|
*/
|
|
8528
8528
|
async getReviewsByProduct(productId, options) {
|
|
8529
8529
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByProduct(productId, options);
|
|
8530
|
-
return (axios =
|
|
8530
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8531
8531
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8532
8532
|
return axios.request(axiosRequestArgs);
|
|
8533
8533
|
};
|
|
@@ -8541,7 +8541,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8541
8541
|
*/
|
|
8542
8542
|
async getReviewsByRating(rating, options) {
|
|
8543
8543
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByRating(rating, options);
|
|
8544
|
-
return (axios =
|
|
8544
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8545
8545
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8546
8546
|
return axios.request(axiosRequestArgs);
|
|
8547
8547
|
};
|
|
@@ -8554,7 +8554,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8554
8554
|
*/
|
|
8555
8555
|
async getReviewsByStore(options) {
|
|
8556
8556
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByStore(options);
|
|
8557
|
-
return (axios =
|
|
8557
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8558
8558
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8559
8559
|
return axios.request(axiosRequestArgs);
|
|
8560
8560
|
};
|
|
@@ -8568,7 +8568,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8568
8568
|
*/
|
|
8569
8569
|
async getReviewsByType(type, options) {
|
|
8570
8570
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByType(type, options);
|
|
8571
|
-
return (axios =
|
|
8571
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8572
8572
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8573
8573
|
return axios.request(axiosRequestArgs);
|
|
8574
8574
|
};
|
|
@@ -8582,7 +8582,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8582
8582
|
*/
|
|
8583
8583
|
async getReviewsByUser(userId, options) {
|
|
8584
8584
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByUser(userId, options);
|
|
8585
|
-
return (axios =
|
|
8585
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8586
8586
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8587
8587
|
return axios.request(axiosRequestArgs);
|
|
8588
8588
|
};
|
|
@@ -8595,7 +8595,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8595
8595
|
*/
|
|
8596
8596
|
async getUserCompletedOrders(options) {
|
|
8597
8597
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getUserCompletedOrders(options);
|
|
8598
|
-
return (axios =
|
|
8598
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8599
8599
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8600
8600
|
return axios.request(axiosRequestArgs);
|
|
8601
8601
|
};
|
|
@@ -8609,7 +8609,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8609
8609
|
*/
|
|
8610
8610
|
async removeReplay(id, options) {
|
|
8611
8611
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReplay(id, options);
|
|
8612
|
-
return (axios =
|
|
8612
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8613
8613
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8614
8614
|
return axios.request(axiosRequestArgs);
|
|
8615
8615
|
};
|
|
@@ -8623,7 +8623,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8623
8623
|
*/
|
|
8624
8624
|
async removeReview(id, options) {
|
|
8625
8625
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReview(id, options);
|
|
8626
|
-
return (axios =
|
|
8626
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8627
8627
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8628
8628
|
return axios.request(axiosRequestArgs);
|
|
8629
8629
|
};
|
|
@@ -8638,7 +8638,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8638
8638
|
*/
|
|
8639
8639
|
async updateReplay(body, id, options) {
|
|
8640
8640
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReplay(body, id, options);
|
|
8641
|
-
return (axios =
|
|
8641
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8642
8642
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8643
8643
|
return axios.request(axiosRequestArgs);
|
|
8644
8644
|
};
|
|
@@ -8653,7 +8653,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8653
8653
|
*/
|
|
8654
8654
|
async updateReview(body, id, options) {
|
|
8655
8655
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReview(body, id, options);
|
|
8656
|
-
return (axios =
|
|
8656
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8657
8657
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8658
8658
|
return axios.request(axiosRequestArgs);
|
|
8659
8659
|
};
|
|
@@ -9126,7 +9126,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9126
9126
|
*/
|
|
9127
9127
|
async getAllShipments(options) {
|
|
9128
9128
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllShipments(options);
|
|
9129
|
-
return (axios =
|
|
9129
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9130
9130
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9131
9131
|
return axios.request(axiosRequestArgs);
|
|
9132
9132
|
};
|
|
@@ -9139,7 +9139,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9139
9139
|
*/
|
|
9140
9140
|
async getAllUserShipments(options) {
|
|
9141
9141
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllUserShipments(options);
|
|
9142
|
-
return (axios =
|
|
9142
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9143
9143
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9144
9144
|
return axios.request(axiosRequestArgs);
|
|
9145
9145
|
};
|
|
@@ -9153,7 +9153,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9153
9153
|
*/
|
|
9154
9154
|
async getOrderShipment(orderId, options) {
|
|
9155
9155
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getOrderShipment(orderId, options);
|
|
9156
|
-
return (axios =
|
|
9156
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9157
9157
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9158
9158
|
return axios.request(axiosRequestArgs);
|
|
9159
9159
|
};
|
|
@@ -9168,7 +9168,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9168
9168
|
*/
|
|
9169
9169
|
async getShippingRates(body, addressId, options) {
|
|
9170
9170
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getShippingRates(body, addressId, options);
|
|
9171
|
-
return (axios =
|
|
9171
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9172
9172
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9173
9173
|
return axios.request(axiosRequestArgs);
|
|
9174
9174
|
};
|
|
@@ -9181,7 +9181,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9181
9181
|
*/
|
|
9182
9182
|
async getStoreAddress(options) {
|
|
9183
9183
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getStoreAddress(options);
|
|
9184
|
-
return (axios =
|
|
9184
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9185
9185
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9186
9186
|
return axios.request(axiosRequestArgs);
|
|
9187
9187
|
};
|
|
@@ -9196,7 +9196,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9196
9196
|
*/
|
|
9197
9197
|
async updateManualShipmentStatus(body, shipmentId, options) {
|
|
9198
9198
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).updateManualShipmentStatus(body, shipmentId, options);
|
|
9199
|
-
return (axios =
|
|
9199
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9200
9200
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9201
9201
|
return axios.request(axiosRequestArgs);
|
|
9202
9202
|
};
|
|
@@ -10391,7 +10391,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10391
10391
|
*/
|
|
10392
10392
|
async createShippoAccount(body, storeId, options) {
|
|
10393
10393
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createShippoAccount(body, storeId, options);
|
|
10394
|
-
return (axios =
|
|
10394
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10395
10395
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10396
10396
|
return axios.request(axiosRequestArgs);
|
|
10397
10397
|
};
|
|
@@ -10405,7 +10405,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10405
10405
|
*/
|
|
10406
10406
|
async createStore(body, options) {
|
|
10407
10407
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
|
|
10408
|
-
return (axios =
|
|
10408
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10409
10409
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10410
10410
|
return axios.request(axiosRequestArgs);
|
|
10411
10411
|
};
|
|
@@ -10419,7 +10419,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10419
10419
|
*/
|
|
10420
10420
|
async deleteRefillRequest(requestId, options) {
|
|
10421
10421
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
|
|
10422
|
-
return (axios =
|
|
10422
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10423
10423
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10424
10424
|
return axios.request(axiosRequestArgs);
|
|
10425
10425
|
};
|
|
@@ -10433,7 +10433,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10433
10433
|
*/
|
|
10434
10434
|
async deleteStore(id, options) {
|
|
10435
10435
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
|
|
10436
|
-
return (axios =
|
|
10436
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10437
10437
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10438
10438
|
return axios.request(axiosRequestArgs);
|
|
10439
10439
|
};
|
|
@@ -10447,7 +10447,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10447
10447
|
*/
|
|
10448
10448
|
async deleteTransferePatientsRequest(requestId, options) {
|
|
10449
10449
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
|
|
10450
|
-
return (axios =
|
|
10450
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10451
10451
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10452
10452
|
return axios.request(axiosRequestArgs);
|
|
10453
10453
|
};
|
|
@@ -10460,7 +10460,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10460
10460
|
*/
|
|
10461
10461
|
async getAllStores(options) {
|
|
10462
10462
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
|
|
10463
|
-
return (axios =
|
|
10463
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10464
10464
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10465
10465
|
return axios.request(axiosRequestArgs);
|
|
10466
10466
|
};
|
|
@@ -10474,7 +10474,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10474
10474
|
*/
|
|
10475
10475
|
async getApiKeys(storeId, options) {
|
|
10476
10476
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getApiKeys(storeId, options);
|
|
10477
|
-
return (axios =
|
|
10477
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10478
10478
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10479
10479
|
return axios.request(axiosRequestArgs);
|
|
10480
10480
|
};
|
|
@@ -10488,7 +10488,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10488
10488
|
*/
|
|
10489
10489
|
async getRefillRequests(storeId, options) {
|
|
10490
10490
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
|
|
10491
|
-
return (axios =
|
|
10491
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10492
10492
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10493
10493
|
return axios.request(axiosRequestArgs);
|
|
10494
10494
|
};
|
|
@@ -10502,7 +10502,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10502
10502
|
*/
|
|
10503
10503
|
async getShippoAccount(storeId, options) {
|
|
10504
10504
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getShippoAccount(storeId, options);
|
|
10505
|
-
return (axios =
|
|
10505
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10506
10506
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10507
10507
|
return axios.request(axiosRequestArgs);
|
|
10508
10508
|
};
|
|
@@ -10516,7 +10516,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10516
10516
|
*/
|
|
10517
10517
|
async getStoreById(storeId, options) {
|
|
10518
10518
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
|
|
10519
|
-
return (axios =
|
|
10519
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10520
10520
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10521
10521
|
return axios.request(axiosRequestArgs);
|
|
10522
10522
|
};
|
|
@@ -10530,7 +10530,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10530
10530
|
*/
|
|
10531
10531
|
async getStoreCapabilities(storeId, options) {
|
|
10532
10532
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreCapabilities(storeId, options);
|
|
10533
|
-
return (axios =
|
|
10533
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10534
10534
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10535
10535
|
return axios.request(axiosRequestArgs);
|
|
10536
10536
|
};
|
|
@@ -10544,7 +10544,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10544
10544
|
*/
|
|
10545
10545
|
async getTransferePatientsRequests(storeId, options) {
|
|
10546
10546
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
|
|
10547
|
-
return (axios =
|
|
10547
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10548
10548
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10549
10549
|
return axios.request(axiosRequestArgs);
|
|
10550
10550
|
};
|
|
@@ -10559,7 +10559,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10559
10559
|
*/
|
|
10560
10560
|
async revokeApiKey(storeId, keyType, options) {
|
|
10561
10561
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).revokeApiKey(storeId, keyType, options);
|
|
10562
|
-
return (axios =
|
|
10562
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10563
10563
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10564
10564
|
return axios.request(axiosRequestArgs);
|
|
10565
10565
|
};
|
|
@@ -10571,7 +10571,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10571
10571
|
*/
|
|
10572
10572
|
async sendContactUsEmail(options) {
|
|
10573
10573
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
|
|
10574
|
-
return (axios =
|
|
10574
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10575
10575
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10576
10576
|
return axios.request(axiosRequestArgs);
|
|
10577
10577
|
};
|
|
@@ -10583,7 +10583,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10583
10583
|
*/
|
|
10584
10584
|
async sendContactUsEmailEzrirx(options) {
|
|
10585
10585
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
|
|
10586
|
-
return (axios =
|
|
10586
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10587
10587
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10588
10588
|
return axios.request(axiosRequestArgs);
|
|
10589
10589
|
};
|
|
@@ -10595,7 +10595,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10595
10595
|
*/
|
|
10596
10596
|
async sendGMBookDemoEmail(options) {
|
|
10597
10597
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
|
|
10598
|
-
return (axios =
|
|
10598
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10599
10599
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10600
10600
|
return axios.request(axiosRequestArgs);
|
|
10601
10601
|
};
|
|
@@ -10607,7 +10607,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10607
10607
|
*/
|
|
10608
10608
|
async sendGMContactUsEmail(options) {
|
|
10609
10609
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
|
|
10610
|
-
return (axios =
|
|
10610
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10611
10611
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10612
10612
|
return axios.request(axiosRequestArgs);
|
|
10613
10613
|
};
|
|
@@ -10619,7 +10619,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10619
10619
|
*/
|
|
10620
10620
|
async sendGMJoinUsEmail(options) {
|
|
10621
10621
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
|
|
10622
|
-
return (axios =
|
|
10622
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10623
10623
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10624
10624
|
return axios.request(axiosRequestArgs);
|
|
10625
10625
|
};
|
|
@@ -10631,7 +10631,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10631
10631
|
*/
|
|
10632
10632
|
async sendHolyFamilyEmail(options) {
|
|
10633
10633
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendHolyFamilyEmail(options);
|
|
10634
|
-
return (axios =
|
|
10634
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10635
10635
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10636
10636
|
return axios.request(axiosRequestArgs);
|
|
10637
10637
|
};
|
|
@@ -10643,7 +10643,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10643
10643
|
*/
|
|
10644
10644
|
async sendMghBookingForm(options) {
|
|
10645
10645
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendMghBookingForm(options);
|
|
10646
|
-
return (axios =
|
|
10646
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10647
10647
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10648
10648
|
return axios.request(axiosRequestArgs);
|
|
10649
10649
|
};
|
|
@@ -10657,7 +10657,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10657
10657
|
*/
|
|
10658
10658
|
async sendNewClientEmail(body, options) {
|
|
10659
10659
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewClientEmail(body, options);
|
|
10660
|
-
return (axios =
|
|
10660
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10661
10661
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10662
10662
|
return axios.request(axiosRequestArgs);
|
|
10663
10663
|
};
|
|
@@ -10670,7 +10670,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10670
10670
|
*/
|
|
10671
10671
|
async sendNewPatientEmail(body, options) {
|
|
10672
10672
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
|
|
10673
|
-
return (axios =
|
|
10673
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10674
10674
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10675
10675
|
return axios.request(axiosRequestArgs);
|
|
10676
10676
|
};
|
|
@@ -10683,7 +10683,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10683
10683
|
*/
|
|
10684
10684
|
async sendRefillEmail(body, options) {
|
|
10685
10685
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
|
|
10686
|
-
return (axios =
|
|
10686
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10687
10687
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10688
10688
|
return axios.request(axiosRequestArgs);
|
|
10689
10689
|
};
|
|
@@ -10697,7 +10697,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10697
10697
|
*/
|
|
10698
10698
|
async sendScheduleTourEmail(body, options) {
|
|
10699
10699
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendScheduleTourEmail(body, options);
|
|
10700
|
-
return (axios =
|
|
10700
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10701
10701
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10702
10702
|
return axios.request(axiosRequestArgs);
|
|
10703
10703
|
};
|
|
@@ -10712,7 +10712,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10712
10712
|
*/
|
|
10713
10713
|
async updateApiKeys(body, storeId, options) {
|
|
10714
10714
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateApiKeys(body, storeId, options);
|
|
10715
|
-
return (axios =
|
|
10715
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10716
10716
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10717
10717
|
return axios.request(axiosRequestArgs);
|
|
10718
10718
|
};
|
|
@@ -10727,7 +10727,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10727
10727
|
*/
|
|
10728
10728
|
async updateRefillRequest(body, requestId, options) {
|
|
10729
10729
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
|
|
10730
|
-
return (axios =
|
|
10730
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10731
10731
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10732
10732
|
return axios.request(axiosRequestArgs);
|
|
10733
10733
|
};
|
|
@@ -10742,7 +10742,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10742
10742
|
*/
|
|
10743
10743
|
async updateStore(body, id, options) {
|
|
10744
10744
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
|
|
10745
|
-
return (axios =
|
|
10745
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10746
10746
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10747
10747
|
return axios.request(axiosRequestArgs);
|
|
10748
10748
|
};
|
|
@@ -10757,7 +10757,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10757
10757
|
*/
|
|
10758
10758
|
async updateTransferePatientsRequest(body, requestId, options) {
|
|
10759
10759
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
|
|
10760
|
-
return (axios =
|
|
10760
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10761
10761
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10762
10762
|
return axios.request(axiosRequestArgs);
|
|
10763
10763
|
};
|
|
@@ -11261,7 +11261,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11261
11261
|
*/
|
|
11262
11262
|
async addToWishlist(productId, options) {
|
|
11263
11263
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
|
|
11264
|
-
return (axios =
|
|
11264
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11265
11265
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11266
11266
|
return axios.request(axiosRequestArgs);
|
|
11267
11267
|
};
|
|
@@ -11274,7 +11274,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11274
11274
|
*/
|
|
11275
11275
|
async clearWishlist(options) {
|
|
11276
11276
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).clearWishlist(options);
|
|
11277
|
-
return (axios =
|
|
11277
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11278
11278
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11279
11279
|
return axios.request(axiosRequestArgs);
|
|
11280
11280
|
};
|
|
@@ -11287,7 +11287,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11287
11287
|
*/
|
|
11288
11288
|
async getWishlist(options) {
|
|
11289
11289
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlist(options);
|
|
11290
|
-
return (axios =
|
|
11290
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11291
11291
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11292
11292
|
return axios.request(axiosRequestArgs);
|
|
11293
11293
|
};
|
|
@@ -11300,7 +11300,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11300
11300
|
*/
|
|
11301
11301
|
async getWishlistItemCount(options) {
|
|
11302
11302
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlistItemCount(options);
|
|
11303
|
-
return (axios =
|
|
11303
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11304
11304
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11305
11305
|
return axios.request(axiosRequestArgs);
|
|
11306
11306
|
};
|
|
@@ -11314,7 +11314,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11314
11314
|
*/
|
|
11315
11315
|
async removeFromWishlist(productId, options) {
|
|
11316
11316
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).removeFromWishlist(productId, options);
|
|
11317
|
-
return (axios =
|
|
11317
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11318
11318
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11319
11319
|
return axios.request(axiosRequestArgs);
|
|
11320
11320
|
};
|
|
@@ -11412,45 +11412,6 @@ var BulkChannelToggleDtoCategoryEnum = /* @__PURE__ */ ((BulkChannelToggleDtoCat
|
|
|
11412
11412
|
return BulkChannelToggleDtoCategoryEnum2;
|
|
11413
11413
|
})(BulkChannelToggleDtoCategoryEnum || {});
|
|
11414
11414
|
|
|
11415
|
-
// src/lib/Apis/models/campaign-draft-dto.ts
|
|
11416
|
-
var CampaignDraftDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftDtoStatusEnum2) => {
|
|
11417
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_3"] = -3] = "NUMBER_MINUS_3";
|
|
11418
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_2"] = -2] = "NUMBER_MINUS_2";
|
|
11419
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
|
|
11420
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_0"] = 0] = "NUMBER_0";
|
|
11421
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
11422
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
11423
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_3"] = 3] = "NUMBER_3";
|
|
11424
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_4"] = 4] = "NUMBER_4";
|
|
11425
|
-
return CampaignDraftDtoStatusEnum2;
|
|
11426
|
-
})(CampaignDraftDtoStatusEnum || {});
|
|
11427
|
-
|
|
11428
|
-
// src/lib/Apis/models/campaign-draft-schedule-dto.ts
|
|
11429
|
-
var CampaignDraftScheduleDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftScheduleDtoStatusEnum2) => {
|
|
11430
|
-
CampaignDraftScheduleDtoStatusEnum2["AXCancelled"] = "AXCancelled";
|
|
11431
|
-
CampaignDraftScheduleDtoStatusEnum2["Deleted"] = "Deleted";
|
|
11432
|
-
CampaignDraftScheduleDtoStatusEnum2["Archived"] = "Archived";
|
|
11433
|
-
CampaignDraftScheduleDtoStatusEnum2["Draft"] = "Draft";
|
|
11434
|
-
CampaignDraftScheduleDtoStatusEnum2["Programmed"] = "Programmed";
|
|
11435
|
-
CampaignDraftScheduleDtoStatusEnum2["Sent"] = "Sent";
|
|
11436
|
-
CampaignDraftScheduleDtoStatusEnum2["AXTested"] = "AXTested";
|
|
11437
|
-
CampaignDraftScheduleDtoStatusEnum2["AXSelected"] = "AXSelected";
|
|
11438
|
-
return CampaignDraftScheduleDtoStatusEnum2;
|
|
11439
|
-
})(CampaignDraftScheduleDtoStatusEnum || {});
|
|
11440
|
-
|
|
11441
|
-
// src/lib/Apis/models/campaign-draft-sending-dto.ts
|
|
11442
|
-
var CampaignDraftSendingDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftSendingDtoStatusEnum2) => {
|
|
11443
|
-
CampaignDraftSendingDtoStatusEnum2["AXCancelled"] = "AXCancelled";
|
|
11444
|
-
CampaignDraftSendingDtoStatusEnum2["Deleted"] = "Deleted";
|
|
11445
|
-
CampaignDraftSendingDtoStatusEnum2["Archived"] = "Archived";
|
|
11446
|
-
CampaignDraftSendingDtoStatusEnum2["Draft"] = "Draft";
|
|
11447
|
-
CampaignDraftSendingDtoStatusEnum2["Programmed"] = "Programmed";
|
|
11448
|
-
CampaignDraftSendingDtoStatusEnum2["Sent"] = "Sent";
|
|
11449
|
-
CampaignDraftSendingDtoStatusEnum2["AXTested"] = "AXTested";
|
|
11450
|
-
CampaignDraftSendingDtoStatusEnum2["AXSelected"] = "AXSelected";
|
|
11451
|
-
return CampaignDraftSendingDtoStatusEnum2;
|
|
11452
|
-
})(CampaignDraftSendingDtoStatusEnum || {});
|
|
11453
|
-
|
|
11454
11415
|
// src/lib/Apis/models/create-address-dto.ts
|
|
11455
11416
|
var CreateAddressDtoAddressTypeEnum = /* @__PURE__ */ ((CreateAddressDtoAddressTypeEnum2) => {
|
|
11456
11417
|
CreateAddressDtoAddressTypeEnum2["Billing"] = "Billing";
|
|
@@ -11655,6 +11616,7 @@ var PreferenceUpdateItemTypeEnum = /* @__PURE__ */ ((PreferenceUpdateItemTypeEnu
|
|
|
11655
11616
|
PreferenceUpdateItemTypeEnum2["ORDERSHIPPED"] = "ORDER_SHIPPED";
|
|
11656
11617
|
PreferenceUpdateItemTypeEnum2["ORDERDELIVERED"] = "ORDER_DELIVERED";
|
|
11657
11618
|
PreferenceUpdateItemTypeEnum2["REFUNDPROCESSED"] = "REFUND_PROCESSED";
|
|
11619
|
+
PreferenceUpdateItemTypeEnum2["REVIEWREPLY"] = "REVIEW_REPLY";
|
|
11658
11620
|
PreferenceUpdateItemTypeEnum2["ABANDONEDCARTREMINDER"] = "ABANDONED_CART_REMINDER";
|
|
11659
11621
|
PreferenceUpdateItemTypeEnum2["PRICEDROPALERT"] = "PRICE_DROP_ALERT";
|
|
11660
11622
|
PreferenceUpdateItemTypeEnum2["BACKINSTOCK"] = "BACK_IN_STOCK";
|
|
@@ -11845,7 +11807,7 @@ function Notification2({ notification, onDismiss }) {
|
|
|
11845
11807
|
animate: { opacity: 1, y: 0, scale: 1 },
|
|
11846
11808
|
exit: { opacity: 0, x: 100, scale: 0.95 },
|
|
11847
11809
|
transition: { type: "spring", stiffness: 500, damping: 30 },
|
|
11848
|
-
className: `relative bg-
|
|
11810
|
+
className: `relative bg-hprimary-50 rounded-2xl border-2 ${config.borderColor} shadow-xl overflow-hidden min-w-[320px] max-w-[420px]`,
|
|
11849
11811
|
children: [
|
|
11850
11812
|
/* @__PURE__ */ jsx("div", { className: `h-1 bg-linear-to-r ${config.gradient}` }),
|
|
11851
11813
|
/* @__PURE__ */ jsxs("div", { className: "p-4 flex items-start gap-3", children: [
|
|
@@ -11860,8 +11822,8 @@ function Notification2({ notification, onDismiss }) {
|
|
|
11860
11822
|
}
|
|
11861
11823
|
),
|
|
11862
11824
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
11863
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
11864
|
-
notification.description && /* @__PURE__ */ jsx("p", { className: "
|
|
11825
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[14px] text-[#2B4B7C] mb-1", children: notification.message }),
|
|
11826
|
+
notification.description && /* @__PURE__ */ jsx("p", { className: "text-[12px] text-[#676c80] leading-relaxed", children: notification.description })
|
|
11865
11827
|
] }),
|
|
11866
11828
|
/* @__PURE__ */ jsx(
|
|
11867
11829
|
"button",
|
|
@@ -12136,7 +12098,7 @@ init_config();
|
|
|
12136
12098
|
init_config();
|
|
12137
12099
|
init_sharedConfig();
|
|
12138
12100
|
init_sharedConfig();
|
|
12139
|
-
|
|
12101
|
+
globalAxios20.interceptors.request.use(async (config) => {
|
|
12140
12102
|
if (!config?.headers) {
|
|
12141
12103
|
throw new Error(
|
|
12142
12104
|
`Expected 'config' and 'config.headers' not to be undefined`
|
|
@@ -12770,17 +12732,17 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12770
12732
|
children: /* @__PURE__ */ jsxs("div", { className: "p-8", children: [
|
|
12771
12733
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-6", children: [
|
|
12772
12734
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
12773
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
12774
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
12735
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hprimary uppercase tracking-wide font-medium mb-2", children: product.brand }),
|
|
12736
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-hsecondary tracking-[-1px]", children: displayName }),
|
|
12775
12737
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mt-2", children: [
|
|
12776
12738
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
|
|
12777
12739
|
Star,
|
|
12778
12740
|
{
|
|
12779
|
-
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-
|
|
12741
|
+
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-haccent fill-accent" : "text-gray-300"}`
|
|
12780
12742
|
},
|
|
12781
12743
|
i
|
|
12782
12744
|
)) }),
|
|
12783
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
12745
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[13px] text-hmuted", children: [
|
|
12784
12746
|
product.summary?.averageRating || 0,
|
|
12785
12747
|
" (",
|
|
12786
12748
|
product.summary?.reviewCount || 0,
|
|
@@ -12793,7 +12755,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12793
12755
|
{
|
|
12794
12756
|
onClick: onClose,
|
|
12795
12757
|
className: "p-2 hover:bg-gray-100 rounded-full transition-colors",
|
|
12796
|
-
children: /* @__PURE__ */ jsx(X, { className: "size-6 text-
|
|
12758
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-6 text-hmuted" })
|
|
12797
12759
|
}
|
|
12798
12760
|
)
|
|
12799
12761
|
] }),
|
|
@@ -12808,7 +12770,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12808
12770
|
className: "w-full h-full object-contain"
|
|
12809
12771
|
}
|
|
12810
12772
|
),
|
|
12811
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsx("div", { className: "bg-
|
|
12773
|
+
/* @__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-bold text-[11px] uppercase", children: [
|
|
12812
12774
|
"-",
|
|
12813
12775
|
discountAmount,
|
|
12814
12776
|
"%"
|
|
@@ -12817,7 +12779,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12817
12779
|
selectedVariant.media.length > 1 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-4 gap-3", children: selectedVariant.media.map((image, index) => /* @__PURE__ */ jsx(
|
|
12818
12780
|
"div",
|
|
12819
12781
|
{
|
|
12820
|
-
className: `aspect-square rounded-xl overflow-hidden cursor-pointer transition-opacity ${selectedImageIndex === index ? "ring-2 ring-
|
|
12782
|
+
className: `aspect-square rounded-xl overflow-hidden cursor-pointer transition-opacity ${selectedImageIndex === index ? "ring-2 ring-hprimary" : "bg-gray-50 hover:opacity-75"}`,
|
|
12821
12783
|
onClick: () => setSelectedImageIndex(index),
|
|
12822
12784
|
children: /* @__PURE__ */ jsx(
|
|
12823
12785
|
"img",
|
|
@@ -12833,35 +12795,35 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12833
12795
|
] }),
|
|
12834
12796
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
12835
12797
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-4", children: [
|
|
12836
|
-
/* @__PURE__ */ jsxs("span", { className: "font-
|
|
12798
|
+
/* @__PURE__ */ jsxs("span", { className: "font-bold text-[32px] text-haccent", children: [
|
|
12837
12799
|
"$",
|
|
12838
12800
|
displayPrice.toFixed(2)
|
|
12839
12801
|
] }),
|
|
12840
|
-
isDiscounted && /* @__PURE__ */ jsxs("span", { className: "
|
|
12802
|
+
isDiscounted && /* @__PURE__ */ jsxs("span", { className: "text-[20px] text-hmuted line-through", children: [
|
|
12841
12803
|
"$",
|
|
12842
12804
|
displayOriginalPrice.toFixed(2)
|
|
12843
12805
|
] })
|
|
12844
12806
|
] }),
|
|
12845
|
-
/* @__PURE__ */ jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsx("span", { className: "
|
|
12807
|
+
/* @__PURE__ */ jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsx("span", { className: "text-[12px] text-red-500 font-medium", children: "Out of Stock" }) : selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxs("span", { className: "text-[12px] text-hprimary font-medium flex items-center gap-1", children: [
|
|
12846
12808
|
/* @__PURE__ */ jsx(Package, { className: "size-3" }),
|
|
12847
12809
|
"Only ",
|
|
12848
12810
|
selectedVariant.inventoryCount,
|
|
12849
12811
|
" left in stock"
|
|
12850
|
-
] }) : /* @__PURE__ */ jsxs("span", { className: "
|
|
12812
|
+
] }) : /* @__PURE__ */ jsxs("span", { className: "text-[12px] text-green-600 font-medium flex items-center gap-1", children: [
|
|
12851
12813
|
/* @__PURE__ */ jsx(Package, { className: "size-3" }),
|
|
12852
12814
|
"In Stock"
|
|
12853
12815
|
] }) }),
|
|
12854
12816
|
/* @__PURE__ */ jsx(
|
|
12855
12817
|
"div",
|
|
12856
12818
|
{
|
|
12857
|
-
className: "
|
|
12819
|
+
className: "text-[14px] text-hmuted leading-[1.7] mb-6 max-w-full overflow-hidden break-words",
|
|
12858
12820
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
12859
12821
|
}
|
|
12860
12822
|
),
|
|
12861
12823
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
12862
|
-
/* @__PURE__ */ jsxs("h3", { className: "font-
|
|
12824
|
+
/* @__PURE__ */ jsxs("h3", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: [
|
|
12863
12825
|
"Selected Variant: ",
|
|
12864
|
-
/* @__PURE__ */ jsx("span", { className: "font-normal text-
|
|
12826
|
+
/* @__PURE__ */ jsx("span", { className: "font-normal text-hmuted", children: product.variants[selectedVariantIndex].name })
|
|
12865
12827
|
] }),
|
|
12866
12828
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3", children: product.variants.map((variant, index) => /* @__PURE__ */ jsx(
|
|
12867
12829
|
"button",
|
|
@@ -12871,7 +12833,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12871
12833
|
setSelectedSizeIndex(0);
|
|
12872
12834
|
setSelectedImageIndex(0);
|
|
12873
12835
|
},
|
|
12874
|
-
className: `size-10 rounded-full border-2 transition-all ${selectedVariantIndex === index ? "border-
|
|
12836
|
+
className: `size-10 rounded-full border-2 transition-all ${selectedVariantIndex === index ? "border-hprimary scale-110" : "border-gray-200 hover:border-hprimary-50"}`,
|
|
12875
12837
|
style: { backgroundColor: variant.colorHex },
|
|
12876
12838
|
title: variant.color,
|
|
12877
12839
|
children: /* @__PURE__ */ jsx(
|
|
@@ -12889,11 +12851,11 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12889
12851
|
)) })
|
|
12890
12852
|
] }),
|
|
12891
12853
|
/* @__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: "
|
|
12854
|
+
/* @__PURE__ */ jsx(Check, { className: "size-4 text-hprimary shrink-0 mt-0.5" }),
|
|
12855
|
+
/* @__PURE__ */ jsx("span", { className: "text-[12px] text-hmuted", children: feature })
|
|
12894
12856
|
] }, index)) }) }),
|
|
12895
12857
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
12896
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
12858
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Quantity" }),
|
|
12897
12859
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
12898
12860
|
/* @__PURE__ */ jsx(
|
|
12899
12861
|
"button",
|
|
@@ -12901,7 +12863,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12901
12863
|
onClick: () => handleQuantityChange(quantity - 1),
|
|
12902
12864
|
disabled: quantity <= 1,
|
|
12903
12865
|
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-
|
|
12866
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "size-4 text-hsecondary" })
|
|
12905
12867
|
}
|
|
12906
12868
|
),
|
|
12907
12869
|
/* @__PURE__ */ jsx("span", { className: "w-8 text-center font-medium", children: quantity }),
|
|
@@ -12911,7 +12873,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12911
12873
|
onClick: () => handleQuantityChange(quantity + 1),
|
|
12912
12874
|
disabled: quantity >= (selectedVariant.inventoryCount || 10),
|
|
12913
12875
|
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-
|
|
12876
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "size-4 text-hsecondary" })
|
|
12915
12877
|
}
|
|
12916
12878
|
)
|
|
12917
12879
|
] })
|
|
@@ -12922,7 +12884,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12922
12884
|
{
|
|
12923
12885
|
onClick: handleAddToCart,
|
|
12924
12886
|
disabled: addedToCart || selectedVariant.inventoryCount === 0,
|
|
12925
|
-
className: `w-full font-
|
|
12887
|
+
className: `w-full 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
12888
|
children: isAddingToCart ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12927
12889
|
/* @__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
12890
|
/* @__PURE__ */ jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
@@ -12941,7 +12903,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12941
12903
|
onClick: () => {
|
|
12942
12904
|
onClose();
|
|
12943
12905
|
},
|
|
12944
|
-
className: "w-full font-
|
|
12906
|
+
className: "w-full 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
12907
|
children: [
|
|
12946
12908
|
"View Full Details",
|
|
12947
12909
|
/* @__PURE__ */ jsx(ExternalLink, { className: "size-4" })
|
|
@@ -13052,7 +13014,7 @@ function ProductCard({
|
|
|
13052
13014
|
/* @__PURE__ */ jsxs(
|
|
13053
13015
|
motion.div,
|
|
13054
13016
|
{
|
|
13055
|
-
className: "bg-white rounded-[16px] overflow-hidden border-2 border-gray-100 hover:border-
|
|
13017
|
+
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
13018
|
whileHover: { y: -4 },
|
|
13057
13019
|
onMouseEnter: () => setIsHovered(true),
|
|
13058
13020
|
onMouseLeave: () => setIsHovered(false),
|
|
@@ -13093,42 +13055,42 @@ function ProductCard({
|
|
|
13093
13055
|
children: /* @__PURE__ */ jsx(Eye, { className: "size-4 text-[#2B4B7C]" })
|
|
13094
13056
|
}
|
|
13095
13057
|
),
|
|
13096
|
-
displayInventoryCount === 0 && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-xs flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "bg-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsx("span", { className: "font-
|
|
13058
|
+
displayInventoryCount === 0 && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-xs flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "bg-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsx("span", { className: "font-bold text-[11px] text-[#2B4B7C] uppercase", children: "Out of Stock" }) }) })
|
|
13097
13059
|
]
|
|
13098
13060
|
}
|
|
13099
13061
|
),
|
|
13100
13062
|
/* @__PURE__ */ jsxs("div", { className: "p-4 flex-1 flex flex-col", children: [
|
|
13101
13063
|
/* @__PURE__ */ jsxs("div", { className: "p-0 flex-1 flex flex-col", children: [
|
|
13102
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxs("span", { className: "font-
|
|
13064
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxs("span", { className: "font-bold text-[8px] uppercase", children: [
|
|
13103
13065
|
"-",
|
|
13104
13066
|
displayDiscountAmount,
|
|
13105
13067
|
"%"
|
|
13106
13068
|
] }) }) }),
|
|
13107
|
-
/* @__PURE__ */ jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsx("p", { className: "
|
|
13069
|
+
/* @__PURE__ */ jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsx("p", { className: "text-xs text-hsecondary uppercase tracking-wide font-medium", children: product.brand }) }),
|
|
13108
13070
|
/* @__PURE__ */ jsxs("div", { className: "h-[40px] mb-3", children: [
|
|
13109
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-
|
|
13110
|
-
selectedVariant && /* @__PURE__ */ jsx("p", { className: "text-xs
|
|
13071
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-[#2B4B7C] line-clamp-2", children: product.name }),
|
|
13072
|
+
selectedVariant && /* @__PURE__ */ jsx("p", { className: "text-xs text-[#676c80]", children: selectedVariant.name })
|
|
13111
13073
|
] }),
|
|
13112
13074
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 my-2", children: [
|
|
13113
13075
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
|
|
13114
13076
|
Star,
|
|
13115
13077
|
{
|
|
13116
|
-
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-
|
|
13078
|
+
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-hsecondary fill-hsecondary-500" : "text-gray-300"}`
|
|
13117
13079
|
},
|
|
13118
13080
|
i
|
|
13119
13081
|
)) }),
|
|
13120
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
13082
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[10px] text-[#676c80] ", children: [
|
|
13121
13083
|
"(",
|
|
13122
13084
|
product.summary?.reviewCount || 0,
|
|
13123
13085
|
")"
|
|
13124
13086
|
] })
|
|
13125
13087
|
] }),
|
|
13126
13088
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 mb-3", children: [
|
|
13127
|
-
/* @__PURE__ */ jsxs("span", { className: "font-
|
|
13089
|
+
/* @__PURE__ */ jsxs("span", { className: "font-bold text-md text-hprimary-600", children: [
|
|
13128
13090
|
"$",
|
|
13129
13091
|
displayFinalPrice.toFixed(2)
|
|
13130
13092
|
] }),
|
|
13131
|
-
displayIsDiscounted && /* @__PURE__ */ jsxs("span", { className: "
|
|
13093
|
+
displayIsDiscounted && /* @__PURE__ */ jsxs("span", { className: "text-sm text-[#676c80] line-through", children: [
|
|
13132
13094
|
"$",
|
|
13133
13095
|
displayPriceBeforeDiscount.toFixed(2)
|
|
13134
13096
|
] })
|
|
@@ -13148,7 +13110,7 @@ function ProductCard({
|
|
|
13148
13110
|
}
|
|
13149
13111
|
setIsImageLoaded(false);
|
|
13150
13112
|
},
|
|
13151
|
-
className: `relative w-8 h-8 rounded-full overflow-hidden border-2 transition-all ${selectedVariantId === variant.variantId ? "border-
|
|
13113
|
+
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
13114
|
"aria-label": `Select ${variant.variantName || "variant"}`,
|
|
13153
13115
|
children: /* @__PURE__ */ jsx(
|
|
13154
13116
|
Image4,
|
|
@@ -13203,7 +13165,7 @@ function ProductCard({
|
|
|
13203
13165
|
}
|
|
13204
13166
|
},
|
|
13205
13167
|
disabled: isAddingToCart || variantImages.length > 0 && !selectedVariantId || displayInventoryCount === 0,
|
|
13206
|
-
className: "w-full font-
|
|
13168
|
+
className: "w-full 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
13169
|
children: [
|
|
13208
13170
|
/* @__PURE__ */ jsx(ShoppingCart, { className: "h-4 w-4" }),
|
|
13209
13171
|
displayInventoryCount === 0 ? "Out of Stock" : "Add to Cart"
|
|
@@ -13267,11 +13229,11 @@ function Button({
|
|
|
13267
13229
|
children,
|
|
13268
13230
|
...props
|
|
13269
13231
|
}) {
|
|
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-
|
|
13232
|
+
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
13233
|
const variants = {
|
|
13272
13234
|
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-
|
|
13235
|
+
secondary: "bg-hsecondary-600 text-white hover:bg-hsecondary-700 shadow-lg shadow-secondary-500/30 hover:shadow-xl hover:shadow-secondary-500/40",
|
|
13236
|
+
"outline-solid": "border-2 border-hprimary-600 text-hprimary-600 hover:bg-hprimary-50",
|
|
13275
13237
|
ghost: "text-gray-700 hover:bg-gray-100"
|
|
13276
13238
|
};
|
|
13277
13239
|
const sizes = {
|
|
@@ -13323,7 +13285,7 @@ var Input = forwardRef(
|
|
|
13323
13285
|
ref,
|
|
13324
13286
|
className: `
|
|
13325
13287
|
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-
|
|
13288
|
+
${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
13289
|
focus:outline-hidden focus:ring-4
|
|
13328
13290
|
placeholder:text-gray-400
|
|
13329
13291
|
disabled:bg-gray-50 disabled:cursor-not-allowed
|
|
@@ -13991,11 +13953,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
13991
13953
|
return Package;
|
|
13992
13954
|
};
|
|
13993
13955
|
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-
|
|
13956
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-hsecondary", children: "Filters" }),
|
|
13995
13957
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
13996
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
13958
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted mb-2 block font-medium", children: "Search Products" }),
|
|
13997
13959
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
13998
|
-
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-
|
|
13960
|
+
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-hmuted" }),
|
|
13999
13961
|
/* @__PURE__ */ jsx(
|
|
14000
13962
|
"input",
|
|
14001
13963
|
{
|
|
@@ -14003,7 +13965,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14003
13965
|
placeholder: "Search...",
|
|
14004
13966
|
value: searchQuery,
|
|
14005
13967
|
onChange: handleInputChange,
|
|
14006
|
-
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-
|
|
13968
|
+
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14007
13969
|
}
|
|
14008
13970
|
)
|
|
14009
13971
|
] })
|
|
@@ -14015,8 +13977,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14015
13977
|
onClick: () => toggleFilterSection("category"),
|
|
14016
13978
|
className: "w-full flex items-center justify-between mb-3",
|
|
14017
13979
|
children: [
|
|
14018
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
14019
|
-
expandedFilterSections.category ? /* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-
|
|
13980
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Category" }),
|
|
13981
|
+
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
13982
|
]
|
|
14021
13983
|
}
|
|
14022
13984
|
),
|
|
@@ -14032,7 +13994,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14032
13994
|
if (!isExpanded) toggleCategoryExpand(categoryId);
|
|
14033
13995
|
handleCategoryChange(categoryId);
|
|
14034
13996
|
},
|
|
14035
|
-
className: `w-full text-left px-4 py-3 rounded-xl
|
|
13997
|
+
className: `w-full text-left px-4 py-3 rounded-xl 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
13998
|
children: [
|
|
14037
13999
|
/* @__PURE__ */ jsx(Icon, { className: "size-4" }),
|
|
14038
14000
|
category.name
|
|
@@ -14049,8 +14011,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14049
14011
|
onClick: () => toggleFilterSection("brand"),
|
|
14050
14012
|
className: "w-full flex items-center justify-between mb-3",
|
|
14051
14013
|
children: [
|
|
14052
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
14053
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-
|
|
14014
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Brand" }),
|
|
14015
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.brand ? "rotate-180" : ""}` })
|
|
14054
14016
|
]
|
|
14055
14017
|
}
|
|
14056
14018
|
),
|
|
@@ -14060,7 +14022,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14060
14022
|
"button",
|
|
14061
14023
|
{
|
|
14062
14024
|
onClick: () => handleBrandChange(brand),
|
|
14063
|
-
className: `w-full text-left px-4 py-3 rounded-xl
|
|
14025
|
+
className: `w-full text-left px-4 py-3 rounded-xl text-[13px] transition-all ${isSelected ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14064
14026
|
children: brand
|
|
14065
14027
|
},
|
|
14066
14028
|
brand
|
|
@@ -14074,8 +14036,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14074
14036
|
onClick: () => toggleFilterSection("availability"),
|
|
14075
14037
|
className: "w-full flex items-center justify-between mb-3",
|
|
14076
14038
|
children: [
|
|
14077
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
14078
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-
|
|
14039
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Availability" }),
|
|
14040
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.availability ? "rotate-180" : ""}` })
|
|
14079
14041
|
]
|
|
14080
14042
|
}
|
|
14081
14043
|
),
|
|
@@ -14083,7 +14045,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14083
14045
|
"button",
|
|
14084
14046
|
{
|
|
14085
14047
|
onClick: handleToggleStock,
|
|
14086
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl
|
|
14048
|
+
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl 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
14049
|
children: "In Stock Only"
|
|
14088
14050
|
}
|
|
14089
14051
|
) })
|
|
@@ -14095,8 +14057,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14095
14057
|
onClick: () => toggleFilterSection("price"),
|
|
14096
14058
|
className: "w-full flex items-center justify-between mb-3",
|
|
14097
14059
|
children: [
|
|
14098
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
14099
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-
|
|
14060
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Price Range" }),
|
|
14061
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.price ? "rotate-180" : ""}` })
|
|
14100
14062
|
]
|
|
14101
14063
|
}
|
|
14102
14064
|
),
|
|
@@ -14108,7 +14070,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14108
14070
|
{
|
|
14109
14071
|
type: "button",
|
|
14110
14072
|
onClick: () => handlePriceRangeSelect(range.value),
|
|
14111
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl
|
|
14073
|
+
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl 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
14074
|
children: range.label
|
|
14113
14075
|
},
|
|
14114
14076
|
range.value
|
|
@@ -14123,7 +14085,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14123
14085
|
placeholder: "Min",
|
|
14124
14086
|
value: customPrice.min,
|
|
14125
14087
|
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-
|
|
14088
|
+
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14127
14089
|
}
|
|
14128
14090
|
),
|
|
14129
14091
|
/* @__PURE__ */ jsx(
|
|
@@ -14134,7 +14096,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14134
14096
|
placeholder: "Max",
|
|
14135
14097
|
value: customPrice.max,
|
|
14136
14098
|
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-
|
|
14099
|
+
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14138
14100
|
}
|
|
14139
14101
|
)
|
|
14140
14102
|
] }),
|
|
@@ -14144,7 +14106,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14144
14106
|
type: "button",
|
|
14145
14107
|
onClick: applyCustomPrice,
|
|
14146
14108
|
disabled: !isCustomPriceDirty,
|
|
14147
|
-
className: "w-full rounded-lg border border-
|
|
14109
|
+
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
14110
|
children: "Apply"
|
|
14149
14111
|
}
|
|
14150
14112
|
)
|
|
@@ -14163,7 +14125,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14163
14125
|
return Package;
|
|
14164
14126
|
};
|
|
14165
14127
|
return /* @__PURE__ */ jsxs("div", { className: "min-h-screen bg-[#F9FAFB]", children: [
|
|
14166
|
-
/* @__PURE__ */ jsx("section", { className: "relative overflow-hidden bg-
|
|
14128
|
+
/* @__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
14129
|
motion.div,
|
|
14168
14130
|
{
|
|
14169
14131
|
initial: { opacity: 0, y: 24 },
|
|
@@ -14171,8 +14133,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14171
14133
|
className: "max-w-4xl mx-auto space-y-6 text-center",
|
|
14172
14134
|
children: [
|
|
14173
14135
|
/* @__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-
|
|
14136
|
+
/* @__PURE__ */ jsx(Star, { className: "h-5 w-5 text-hprimary fill-primary" }),
|
|
14137
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold uppercase tracking-wider text-hprimary", children: "COMPLETE PHARMACY SHOP" })
|
|
14176
14138
|
] }),
|
|
14177
14139
|
/* @__PURE__ */ jsx("h1", { className: "text-3xl md:text-4xl font-bold text-slate-900 leading-tight", children: "Medical Supplies & Wellness Products" }),
|
|
14178
14140
|
/* @__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 +14153,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14191
14153
|
value: searchQuery,
|
|
14192
14154
|
onChange: handleInputChange,
|
|
14193
14155
|
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-
|
|
14156
|
+
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
14157
|
disabled: isSearching
|
|
14196
14158
|
}
|
|
14197
14159
|
)
|
|
@@ -14201,8 +14163,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14201
14163
|
]
|
|
14202
14164
|
}
|
|
14203
14165
|
) }) }),
|
|
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-
|
|
14166
|
+
/* @__PURE__ */ jsx("section", { className: "py-8 bg-white/50", children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4", children: [
|
|
14167
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-semibold text-hsecondary mb-6", children: "Shop by Category" }),
|
|
14206
14168
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4", children: [
|
|
14207
14169
|
/* @__PURE__ */ jsx(
|
|
14208
14170
|
motion.button,
|
|
@@ -14210,11 +14172,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14210
14172
|
onClick: handleClearCategory,
|
|
14211
14173
|
initial: { opacity: 0, y: 20 },
|
|
14212
14174
|
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-
|
|
14175
|
+
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
14176
|
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-
|
|
14217
|
-
/* @__PURE__ */ jsx("p", { className: `
|
|
14177
|
+
/* @__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"}` }) }),
|
|
14178
|
+
/* @__PURE__ */ jsx("h3", { className: `font-semibold text-[14px] mb-1.5 ${!categoryFilter ? "text-white" : "text-hsecondary"}`, children: "All Products" }),
|
|
14179
|
+
/* @__PURE__ */ jsx("p", { className: `text-[11px] ${!categoryFilter ? "text-white/80" : "text-hmuted"}`, children: "Browse Everything" })
|
|
14218
14180
|
] })
|
|
14219
14181
|
}
|
|
14220
14182
|
),
|
|
@@ -14229,11 +14191,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14229
14191
|
animate: { opacity: 1, y: 0 },
|
|
14230
14192
|
transition: { delay: index * 0.1 },
|
|
14231
14193
|
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-
|
|
14194
|
+
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
14195
|
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-
|
|
14236
|
-
/* @__PURE__ */ jsx("p", { className: `
|
|
14196
|
+
/* @__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"}` }) }),
|
|
14197
|
+
/* @__PURE__ */ jsx("h3", { className: `font-semibold text-[14px] mb-1.5 ${isSelected ? "text-white" : "text-hsecondary"}`, children: category.name }),
|
|
14198
|
+
/* @__PURE__ */ jsx("p", { className: `text-[11px] ${isSelected ? "text-white/80" : "text-hmuted"}`, children: category.description })
|
|
14237
14199
|
] })
|
|
14238
14200
|
},
|
|
14239
14201
|
categoryId
|
|
@@ -14257,7 +14219,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14257
14219
|
onChange: (event) => {
|
|
14258
14220
|
setSortOption(event.target.value);
|
|
14259
14221
|
},
|
|
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-
|
|
14222
|
+
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
14223
|
children: [
|
|
14262
14224
|
/* @__PURE__ */ jsx("option", { value: "featured", children: "Featured products" }),
|
|
14263
14225
|
/* @__PURE__ */ jsx("option", { value: "price-low-high", children: "Price: low to high" }),
|
|
@@ -14274,7 +14236,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14274
14236
|
{
|
|
14275
14237
|
type: "button",
|
|
14276
14238
|
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-
|
|
14239
|
+
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
14240
|
"aria-pressed": viewMode === "grid",
|
|
14279
14241
|
children: /* @__PURE__ */ jsx(LayoutGrid, { className: "h-4 w-4" })
|
|
14280
14242
|
}
|
|
@@ -14284,7 +14246,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14284
14246
|
{
|
|
14285
14247
|
type: "button",
|
|
14286
14248
|
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-
|
|
14249
|
+
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
14250
|
"aria-pressed": viewMode === "list",
|
|
14289
14251
|
children: /* @__PURE__ */ jsx(LayoutList, { className: "h-4 w-4" })
|
|
14290
14252
|
}
|
|
@@ -14298,10 +14260,10 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14298
14260
|
{
|
|
14299
14261
|
type: "button",
|
|
14300
14262
|
onClick: chip.onRemove,
|
|
14301
|
-
className: "group flex items-center gap-2 rounded-full bg-
|
|
14263
|
+
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
14264
|
children: [
|
|
14303
14265
|
chip.label,
|
|
14304
|
-
/* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-
|
|
14266
|
+
/* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-hprimary-500 group-hover:text-hprimary-700" })
|
|
14305
14267
|
]
|
|
14306
14268
|
},
|
|
14307
14269
|
chip.key
|
|
@@ -14349,7 +14311,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14349
14311
|
}
|
|
14350
14312
|
) }),
|
|
14351
14313
|
/* @__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-
|
|
14314
|
+
/* @__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
14315
|
"span",
|
|
14354
14316
|
{
|
|
14355
14317
|
className: "rounded-full bg-slate-100 px-3 py-1 text-gray-600",
|
|
@@ -14359,12 +14321,12 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14359
14321
|
)) }),
|
|
14360
14322
|
/* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-gray-900 line-clamp-2", children: product.name }),
|
|
14361
14323
|
/* @__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-
|
|
14324
|
+
/* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2 font-medium text-hprimary-600", children: [
|
|
14363
14325
|
/* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4" }),
|
|
14364
14326
|
displayInventoryCount > 0 ? "In stock & ready to ship" : "Restocking soon"
|
|
14365
14327
|
] }),
|
|
14366
14328
|
/* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2", children: [
|
|
14367
|
-
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-
|
|
14329
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-hprimary-500" }),
|
|
14368
14330
|
"Added ",
|
|
14369
14331
|
new Date(product.createdAt).toLocaleDateString()
|
|
14370
14332
|
] })
|
|
@@ -14382,7 +14344,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14382
14344
|
event.stopPropagation();
|
|
14383
14345
|
router.push(buildPath(`/products/${product._id}`));
|
|
14384
14346
|
},
|
|
14385
|
-
className: "w-full font-
|
|
14347
|
+
className: "w-full 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
14348
|
children: "View product"
|
|
14387
14349
|
}
|
|
14388
14350
|
)
|
|
@@ -14745,10 +14707,10 @@ function RatingDistribution({ reviews, averageRating }) {
|
|
|
14745
14707
|
function ReviewCard({ review, showProductInfo = false }) {
|
|
14746
14708
|
const reviewDate = new Date(review.createdAt);
|
|
14747
14709
|
const replyDate = review.replyDate ? new Date(review.replyDate) : null;
|
|
14748
|
-
return /* @__PURE__ */ jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-
|
|
14710
|
+
return /* @__PURE__ */ jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-hprimary-50", children: [
|
|
14749
14711
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-3", children: [
|
|
14750
14712
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
14751
|
-
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 bg-
|
|
14713
|
+
/* @__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
14714
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
14753
14715
|
/* @__PURE__ */ jsx("p", { className: "font-medium text-gray-900", children: "Customer Review" }),
|
|
14754
14716
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: formatDistanceToNow(reviewDate, { addSuffix: true }) })
|
|
@@ -14756,11 +14718,11 @@ function ReviewCard({ review, showProductInfo = false }) {
|
|
|
14756
14718
|
] }),
|
|
14757
14719
|
/* @__PURE__ */ jsx(StarRating, { rating: review.rating, size: "sm" })
|
|
14758
14720
|
] }),
|
|
14759
|
-
review.reviewType && /* @__PURE__ */ jsx("span", { className: "inline-block px-2 py-1 text-xs bg-
|
|
14721
|
+
review.reviewType && /* @__PURE__ */ jsx("span", { className: "inline-block px-2 py-1 text-xs bg-hprimary-100 text-gray-600 rounded mb-2", children: review.reviewType }),
|
|
14760
14722
|
/* @__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-
|
|
14723
|
+
review.reply && /* @__PURE__ */ jsxs("div", { className: "mt-4 pl-4 border-l-2 border-hsecondary bg-gray-50 p-3 rounded", children: [
|
|
14762
14724
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
14763
|
-
/* @__PURE__ */ jsx(MessageCircle, { className: "size-4 text-
|
|
14725
|
+
/* @__PURE__ */ jsx(MessageCircle, { className: "size-4 text-hsecondary" }),
|
|
14764
14726
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-gray-900", children: "Store Response" }),
|
|
14765
14727
|
replyDate && /* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: formatDistanceToNow(replyDate, { addSuffix: true }) })
|
|
14766
14728
|
] }),
|
|
@@ -15110,7 +15072,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15110
15072
|
}
|
|
15111
15073
|
if (!product) {
|
|
15112
15074
|
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-
|
|
15075
|
+
/* @__PURE__ */ jsx(Sparkles, { className: "mx-auto h-10 w-10 text-hprimary-500" }),
|
|
15114
15076
|
/* @__PURE__ */ jsx("h1", { className: "mt-6 text-2xl font-semibold text-gray-900", children: "Product not found" }),
|
|
15115
15077
|
/* @__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
15078
|
/* @__PURE__ */ jsx("div", { className: "mt-6", children: /* @__PURE__ */ jsx(Link9, { href: "/shop", className: "inline-block", children: /* @__PURE__ */ jsx(Button, { children: "Browse products" }) }) })
|
|
@@ -15121,7 +15083,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15121
15083
|
"button",
|
|
15122
15084
|
{
|
|
15123
15085
|
onClick: () => router.push(buildPath("/shop")),
|
|
15124
|
-
className: "flex items-center gap-2
|
|
15086
|
+
className: "flex items-center gap-2 text-[13px] text-hmuted hover:text-hprimary transition-colors",
|
|
15125
15087
|
children: [
|
|
15126
15088
|
/* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" }),
|
|
15127
15089
|
"Back to Shop"
|
|
@@ -15160,7 +15122,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15160
15122
|
className: "object-contain"
|
|
15161
15123
|
}
|
|
15162
15124
|
) : null,
|
|
15163
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-6 left-6 flex flex-col gap-3", children: discount > 0 && /* @__PURE__ */ jsx("div", { className: "bg-
|
|
15125
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-6 left-6 flex flex-col gap-3", children: discount > 0 && /* @__PURE__ */ jsx("div", { className: "bg-hsecondary text-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsxs("span", { className: "font-bold text-[12px] uppercase tracking-wide", children: [
|
|
15164
15126
|
"Save ",
|
|
15165
15127
|
discount,
|
|
15166
15128
|
"%"
|
|
@@ -15174,7 +15136,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15174
15136
|
{
|
|
15175
15137
|
type: "button",
|
|
15176
15138
|
onClick: () => setActiveImageIndex(index),
|
|
15177
|
-
className: `relative aspect-square overflow-hidden rounded-lg border-2 transition-all ${activeImageIndex === index ? "border-
|
|
15139
|
+
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
15140
|
children: /* @__PURE__ */ jsx(
|
|
15179
15141
|
Image4,
|
|
15180
15142
|
{
|
|
@@ -15192,12 +15154,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15192
15154
|
] }) }) }),
|
|
15193
15155
|
/* @__PURE__ */ jsxs("aside", { className: "space-y-6 lg:sticky lg:top-24", children: [
|
|
15194
15156
|
/* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
15195
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
15157
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[12px] text-hprimary uppercase tracking-wide font-medium mb-2", children: [
|
|
15196
15158
|
product.brand,
|
|
15197
15159
|
" \u2022 ",
|
|
15198
15160
|
product.categoryIds?.[0]?.name || "Uncategorized"
|
|
15199
15161
|
] }),
|
|
15200
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-
|
|
15162
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-semibold text-hsecondary tracking-[-1.5px] mb-3", children: selectedVariant?.name || product.name }),
|
|
15201
15163
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15202
15164
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
|
|
15203
15165
|
Star,
|
|
@@ -15206,7 +15168,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15206
15168
|
},
|
|
15207
15169
|
i
|
|
15208
15170
|
)) }),
|
|
15209
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
15171
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[14px] text-hmuted", children: [
|
|
15210
15172
|
reviewStats.averageRating,
|
|
15211
15173
|
" (",
|
|
15212
15174
|
reviewStats.reviewCount,
|
|
@@ -15216,16 +15178,16 @@ function ProductDetailScreen({ productId }) {
|
|
|
15216
15178
|
] })
|
|
15217
15179
|
] }),
|
|
15218
15180
|
selectedVariant && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-6 pb-6 border-b-2 border-gray-100", children: [
|
|
15219
|
-
/* @__PURE__ */ jsxs("span", { className: "font-
|
|
15181
|
+
/* @__PURE__ */ jsxs("span", { className: "font-bold text-[40px] text-hsecondary", children: [
|
|
15220
15182
|
"$",
|
|
15221
15183
|
variantPrice.toFixed(2)
|
|
15222
15184
|
] }),
|
|
15223
15185
|
variantComparePrice && variantComparePrice > variantPrice && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15224
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
15186
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[24px] text-hmuted line-through", children: [
|
|
15225
15187
|
"$",
|
|
15226
15188
|
variantComparePrice.toFixed(2)
|
|
15227
15189
|
] }),
|
|
15228
|
-
/* @__PURE__ */ jsx("div", { className: "px-3 py-1 rounded-full bg-
|
|
15190
|
+
/* @__PURE__ */ jsx("div", { className: "px-3 py-1 rounded-full bg-hsecondary/10", children: /* @__PURE__ */ jsxs("span", { className: "font-semibold text-[13px] text-hsecondary", children: [
|
|
15229
15191
|
"Save $",
|
|
15230
15192
|
formatPrice(variantComparePrice - variantPrice)
|
|
15231
15193
|
] }) })
|
|
@@ -15234,19 +15196,19 @@ function ProductDetailScreen({ productId }) {
|
|
|
15234
15196
|
selectedVariant && /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
15235
15197
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 mb-2", children: selectedVariant.inventoryStatus === "OUT_OF_STOCK" /* OUTOFSTOCK */ ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15236
15198
|
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-red-500" }),
|
|
15237
|
-
/* @__PURE__ */ jsx("span", { className: "
|
|
15199
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13px] text-red-600 font-medium", children: "Out of Stock" })
|
|
15238
15200
|
] }) : 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: "
|
|
15201
|
+
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-hprimary animate-pulse" }),
|
|
15202
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[13px] text-hprimary font-medium", children: [
|
|
15241
15203
|
"Only ",
|
|
15242
15204
|
selectedVariant.inventoryCount,
|
|
15243
15205
|
" left in stock - Order soon!"
|
|
15244
15206
|
] })
|
|
15245
15207
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15246
15208
|
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-green-500" }),
|
|
15247
|
-
/* @__PURE__ */ jsx("span", { className: "
|
|
15209
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13px] text-green-600 font-medium", children: "In Stock" })
|
|
15248
15210
|
] }) }),
|
|
15249
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
15211
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[12px] text-hmuted", children: [
|
|
15250
15212
|
"SKU: ",
|
|
15251
15213
|
selectedVariant?.sku || product?.sku
|
|
15252
15214
|
] })
|
|
@@ -15254,12 +15216,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15254
15216
|
product.description && /* @__PURE__ */ jsx(
|
|
15255
15217
|
"div",
|
|
15256
15218
|
{
|
|
15257
|
-
className: "
|
|
15219
|
+
className: "text-[14px] text-hmuted leading-[1.7] mb-8 max-w-full overflow-hidden break-words",
|
|
15258
15220
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15259
15221
|
}
|
|
15260
15222
|
),
|
|
15261
15223
|
product?.variants && product.variants.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
15262
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
15224
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-[14px] text-hsecondary mb-3", children: "Select Variant" }),
|
|
15263
15225
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3", children: product.variants.map((variant) => {
|
|
15264
15226
|
const isSelected = selectedVariant?._id === variant._id;
|
|
15265
15227
|
const variantImage = variant.media?.[0]?.file || product.media?.[0]?.file || product.images?.[0] || PLACEHOLDER_IMAGE_SRC;
|
|
@@ -15268,9 +15230,9 @@ function ProductDetailScreen({ productId }) {
|
|
|
15268
15230
|
{
|
|
15269
15231
|
type: "button",
|
|
15270
15232
|
onClick: () => handleVariantSelect(variant),
|
|
15271
|
-
className: `flex items-start gap-3 px-4 py-2.5 rounded-xl border-2 transition-all ${isSelected ? "border-
|
|
15233
|
+
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
15234
|
children: [
|
|
15273
|
-
/* @__PURE__ */ jsx("div", { className: `relative h-12 w-12 shrink-0 overflow-hidden rounded-full border-2 ${isSelected ? "border-
|
|
15235
|
+
/* @__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
15236
|
Image4,
|
|
15275
15237
|
{
|
|
15276
15238
|
src: variantImage,
|
|
@@ -15281,13 +15243,13 @@ function ProductDetailScreen({ productId }) {
|
|
|
15281
15243
|
}
|
|
15282
15244
|
) }),
|
|
15283
15245
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
15284
|
-
/* @__PURE__ */ jsx("p", { className: `text-start text-sm font-medium ${isSelected ? "text-
|
|
15246
|
+
/* @__PURE__ */ jsx("p", { className: `text-start text-sm font-medium ${isSelected ? "text-hsecondary" : "text-slate-900"}`, children: variant.name }),
|
|
15285
15247
|
variant.sku && /* @__PURE__ */ jsxs("p", { className: "text-start text-xs text-slate-500 mt-0.5", children: [
|
|
15286
15248
|
"SKU: ",
|
|
15287
15249
|
variant.sku
|
|
15288
15250
|
] })
|
|
15289
15251
|
] }),
|
|
15290
|
-
isSelected && /* @__PURE__ */ jsx(Check, { className: "h-5 w-5 text-
|
|
15252
|
+
isSelected && /* @__PURE__ */ jsx(Check, { className: "h-5 w-5 text-hsecondary shrink-0" })
|
|
15291
15253
|
]
|
|
15292
15254
|
},
|
|
15293
15255
|
variant._id
|
|
@@ -15295,7 +15257,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15295
15257
|
}) })
|
|
15296
15258
|
] }),
|
|
15297
15259
|
/* @__PURE__ */ jsxs("div", { className: "mb-8", children: [
|
|
15298
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
15260
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-[14px] text-hsecondary mb-3", children: "Quantity" }),
|
|
15299
15261
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15300
15262
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 bg-gray-100 rounded-full px-6 py-3", children: [
|
|
15301
15263
|
/* @__PURE__ */ jsx(
|
|
@@ -15303,18 +15265,18 @@ function ProductDetailScreen({ productId }) {
|
|
|
15303
15265
|
{
|
|
15304
15266
|
type: "button",
|
|
15305
15267
|
onClick: () => setQuantity((current) => Math.max(1, current - 1)),
|
|
15306
|
-
className: "font-
|
|
15268
|
+
className: "font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors",
|
|
15307
15269
|
"aria-label": "Increase quantity",
|
|
15308
15270
|
children: "-"
|
|
15309
15271
|
}
|
|
15310
15272
|
),
|
|
15311
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
15273
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-[16px] text-hsecondary min-w-[30px] text-center", children: quantity }),
|
|
15312
15274
|
/* @__PURE__ */ jsx(
|
|
15313
15275
|
"button",
|
|
15314
15276
|
{
|
|
15315
15277
|
onClick: () => setQuantity(Math.min(selectedVariant?.inventoryCount || product.inventoryCount || 999, quantity + 1)),
|
|
15316
15278
|
disabled: quantity >= (selectedVariant?.inventoryCount || product.inventoryCount || 0),
|
|
15317
|
-
className: "font-
|
|
15279
|
+
className: "font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors disabled:opacity-50",
|
|
15318
15280
|
children: "+"
|
|
15319
15281
|
}
|
|
15320
15282
|
)
|
|
@@ -15329,7 +15291,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15329
15291
|
/* @__PURE__ */ jsx(
|
|
15330
15292
|
"button",
|
|
15331
15293
|
{
|
|
15332
|
-
className: "flex-1 font-
|
|
15294
|
+
className: "flex-1 font-medium text-[14px] px-8 py-4 rounded-full transition-all duration-300 flex items-center justify-center gap-3 bg-hsecondary text-white hover:bg-hsecondary/80 hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed",
|
|
15333
15295
|
onClick: handleAddToCart,
|
|
15334
15296
|
disabled: !selectedVariant || selectedVariant.inventoryStatus === "OUT_OF_STOCK" /* OUTOFSTOCK */ || isAddingToCart,
|
|
15335
15297
|
children: isAddingToCart ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -15347,40 +15309,40 @@ function ProductDetailScreen({ productId }) {
|
|
|
15347
15309
|
/* @__PURE__ */ jsx(
|
|
15348
15310
|
"button",
|
|
15349
15311
|
{
|
|
15350
|
-
className: "sm:w-auto px-6 py-4 rounded-full border-2 border-
|
|
15312
|
+
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
15313
|
onClick: handleToggleFavorite,
|
|
15352
|
-
children: /* @__PURE__ */ jsx(Heart, { className: `h-4 w-4 ${isFavorited ? "fill-red-500 text-red-500" : "text-
|
|
15314
|
+
children: /* @__PURE__ */ jsx(Heart, { className: `h-4 w-4 ${isFavorited ? "fill-red-500 text-red-500" : "text-hprimary"}` })
|
|
15353
15315
|
}
|
|
15354
15316
|
)
|
|
15355
15317
|
] })
|
|
15356
15318
|
] }),
|
|
15357
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4 p-6 bg-linear-to-br from-
|
|
15319
|
+
/* @__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
15320
|
/* @__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-
|
|
15321
|
+
/* @__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
15322
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15361
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
15362
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15323
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Free Shipping" }),
|
|
15324
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hmuted", children: "On all orders" })
|
|
15363
15325
|
] })
|
|
15364
15326
|
] }),
|
|
15365
15327
|
/* @__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-
|
|
15328
|
+
/* @__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
15329
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15368
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
15369
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15330
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Easy Returns" }),
|
|
15331
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hmuted", children: "30-day return policy" })
|
|
15370
15332
|
] })
|
|
15371
15333
|
] }),
|
|
15372
15334
|
/* @__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-
|
|
15335
|
+
/* @__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
15336
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15375
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
15376
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15337
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Secure Checkout" }),
|
|
15338
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hmuted", children: "Safe & protected" })
|
|
15377
15339
|
] })
|
|
15378
15340
|
] }),
|
|
15379
15341
|
/* @__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-
|
|
15342
|
+
/* @__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
15343
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15382
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
15383
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15344
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Quality Guaranteed" }),
|
|
15345
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hmuted", children: "Premium materials" })
|
|
15384
15346
|
] })
|
|
15385
15347
|
] })
|
|
15386
15348
|
] })
|
|
@@ -15391,35 +15353,35 @@ function ProductDetailScreen({ productId }) {
|
|
|
15391
15353
|
"button",
|
|
15392
15354
|
{
|
|
15393
15355
|
onClick: () => setActiveTab(tab),
|
|
15394
|
-
className: `font-
|
|
15356
|
+
className: `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
15357
|
children: tab.charAt(0).toUpperCase() + tab.slice(1)
|
|
15396
15358
|
},
|
|
15397
15359
|
tab
|
|
15398
15360
|
)) }),
|
|
15399
15361
|
/* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[24px] p-8 border-2 border-gray-100", children: [
|
|
15400
15362
|
activeTab === "description" && /* @__PURE__ */ jsxs("div", { children: [
|
|
15401
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
15363
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-hsecondary mb-4", children: "Product Description" }),
|
|
15402
15364
|
/* @__PURE__ */ jsx(
|
|
15403
15365
|
"div",
|
|
15404
15366
|
{
|
|
15405
|
-
className: "
|
|
15367
|
+
className: "text-[14px] text-hmuted leading-[1.8] mb-4 max-w-full overflow-hidden break-words",
|
|
15406
15368
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15407
15369
|
}
|
|
15408
15370
|
),
|
|
15409
15371
|
/* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
15410
|
-
/* @__PURE__ */ jsx("h4", { className: "font-
|
|
15411
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15372
|
+
/* @__PURE__ */ jsx("h4", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Last updated:" }),
|
|
15373
|
+
/* @__PURE__ */ jsx("p", { className: "text-[14px] text-hmuted", children: lastUpdatedLabel })
|
|
15412
15374
|
] }),
|
|
15413
15375
|
/* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
15414
|
-
/* @__PURE__ */ jsx("h4", { className: "font-
|
|
15415
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15376
|
+
/* @__PURE__ */ jsx("h4", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Shipped from:" }),
|
|
15377
|
+
/* @__PURE__ */ jsx("p", { className: "text-[14px] text-hmuted", children: "Local pharmacy distribution center" })
|
|
15416
15378
|
] })
|
|
15417
15379
|
] }),
|
|
15418
15380
|
activeTab === "reviews" && /* @__PURE__ */ jsx(ProductReviewsSection, { productId })
|
|
15419
15381
|
] })
|
|
15420
15382
|
] }),
|
|
15421
15383
|
relatedProducts.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
15422
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
15384
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-hsecondary mb-8 text-2xl", children: "You May Also Like" }),
|
|
15423
15385
|
/* @__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
15386
|
ProductCard,
|
|
15425
15387
|
{
|
|
@@ -15464,9 +15426,9 @@ function CartItem({ item }) {
|
|
|
15464
15426
|
initial: { opacity: 0, y: 20 },
|
|
15465
15427
|
animate: { opacity: 1, y: 0 },
|
|
15466
15428
|
exit: { opacity: 0, x: -100 },
|
|
15467
|
-
className: "bg-white border-2 border-gray-100 rounded-[24px] p-6 hover:border-
|
|
15468
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex gap-
|
|
15469
|
-
/* @__PURE__ */ jsx("div", { className: "w-28 h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsx(
|
|
15429
|
+
className: "bg-white border-2 border-gray-100 rounded-[24px] p-4 md:p-6 hover:border-hsecondary/30 transition-all duration-300",
|
|
15430
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex gap-3 md:gap-4", children: [
|
|
15431
|
+
/* @__PURE__ */ jsx("div", { className: "w-20 h-20 md:w-28 md:h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsx(
|
|
15470
15432
|
Image4,
|
|
15471
15433
|
{
|
|
15472
15434
|
src: item.productVariantData.media[0]?.file || PLACEHOLDER_IMAGE_SRC,
|
|
@@ -15479,8 +15441,8 @@ function CartItem({ item }) {
|
|
|
15479
15441
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
15480
15442
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4 mb-3", children: [
|
|
15481
15443
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
15482
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
15483
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsxs("span", { className: "
|
|
15444
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-[#2B4B7C] mb-2", children: item.productVariantData.name }),
|
|
15445
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsxs("span", { className: "text-[12px] text-[#676c80]", children: [
|
|
15484
15446
|
"Variant: ",
|
|
15485
15447
|
/* @__PURE__ */ jsx("span", { className: "font-medium text-[#2B4B7C]", children: item.productVariantData.name })
|
|
15486
15448
|
] }) })
|
|
@@ -15496,31 +15458,33 @@ function CartItem({ item }) {
|
|
|
15496
15458
|
}
|
|
15497
15459
|
)
|
|
15498
15460
|
] }),
|
|
15499
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15500
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 bg-gray-50 rounded-full px-4 py-2", children: [
|
|
15461
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4 mt-auto", children: [
|
|
15462
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 bg-gray-50 rounded-full px-3 py-1.5 md:px-4 md:py-2 w-fit", children: [
|
|
15501
15463
|
/* @__PURE__ */ jsx(
|
|
15502
15464
|
"button",
|
|
15503
15465
|
{
|
|
15504
15466
|
onClick: () => handleUpdateQuantity(item.quantity - 1),
|
|
15505
15467
|
disabled: isUpdating || item.quantity <= 1,
|
|
15506
15468
|
className: "p-1 hover:bg-white rounded-full transition-colors",
|
|
15507
|
-
|
|
15469
|
+
"aria-label": "Decrease quantity",
|
|
15470
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "size-3 md:size-4 text-[#2B4B7C]" })
|
|
15508
15471
|
}
|
|
15509
15472
|
),
|
|
15510
|
-
/* @__PURE__ */ jsx("span", { className: "font-[
|
|
15473
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-[13px] md:text-[14px] text-[#2B4B7C] min-w-[20px] text-center", children: item.quantity }),
|
|
15511
15474
|
/* @__PURE__ */ jsx(
|
|
15512
15475
|
"button",
|
|
15513
15476
|
{
|
|
15514
15477
|
onClick: () => handleUpdateQuantity(item.quantity + 1),
|
|
15515
15478
|
disabled: isUpdating || item.quantity >= (item.productVariantData.inventoryCount || 999),
|
|
15516
15479
|
className: "p-1 hover:bg-white rounded-full transition-colors",
|
|
15517
|
-
|
|
15480
|
+
"aria-label": "Increase quantity",
|
|
15481
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "size-3 md:size-4 text-[#2B4B7C]" })
|
|
15518
15482
|
}
|
|
15519
15483
|
)
|
|
15520
15484
|
] }),
|
|
15521
|
-
/* @__PURE__ */ jsxs("div", { className: "text-right", children: [
|
|
15522
|
-
/* @__PURE__ */ jsx("p", { className: "font-[
|
|
15523
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
15485
|
+
/* @__PURE__ */ jsxs("div", { className: "text-left sm:text-right", children: [
|
|
15486
|
+
/* @__PURE__ */ jsx("p", { className: "font-bold text-[16px] md:text-[18px] text-hsecondary", children: formatPrice(itemTotal) }),
|
|
15487
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[10px] md:text-[11px] text-[#676c80]", children: [
|
|
15524
15488
|
formatPrice(unitPrice),
|
|
15525
15489
|
" each"
|
|
15526
15490
|
] })
|
|
@@ -15545,17 +15509,17 @@ function CartScreen() {
|
|
|
15545
15509
|
animate: { opacity: 1, y: 0 },
|
|
15546
15510
|
className: "text-center space-y-6 max-w-md",
|
|
15547
15511
|
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-
|
|
15512
|
+
/* @__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
15513
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
15550
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-
|
|
15551
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
15514
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Your cart is empty" }),
|
|
15515
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted", children: "Start adding products to your cart to see them here." })
|
|
15552
15516
|
] }),
|
|
15553
15517
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3 justify-center", children: /* @__PURE__ */ jsxs(
|
|
15554
15518
|
"button",
|
|
15555
15519
|
{
|
|
15556
15520
|
type: "button",
|
|
15557
15521
|
onClick: () => router.push(buildPath("/shop")),
|
|
15558
|
-
className: "rounded-xl border-2 border-
|
|
15522
|
+
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
15523
|
children: [
|
|
15560
15524
|
"Discover products",
|
|
15561
15525
|
/* @__PURE__ */ jsx(ArrowRight, { className: "h-5 w-5" })
|
|
@@ -15564,15 +15528,15 @@ function CartScreen() {
|
|
|
15564
15528
|
) }),
|
|
15565
15529
|
/* @__PURE__ */ jsxs("div", { className: "mt-8 space-y-3 pt-6 border-t border-gray-200", children: [
|
|
15566
15530
|
/* @__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-
|
|
15531
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15568
15532
|
/* @__PURE__ */ jsx("span", { children: "Free shipping on all orders" })
|
|
15569
15533
|
] }),
|
|
15570
15534
|
/* @__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-
|
|
15535
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15572
15536
|
/* @__PURE__ */ jsx("span", { children: "Easy returns within 30 days" })
|
|
15573
15537
|
] }),
|
|
15574
15538
|
/* @__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-
|
|
15539
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15576
15540
|
/* @__PURE__ */ jsx("span", { children: "Secure checkout process" })
|
|
15577
15541
|
] })
|
|
15578
15542
|
] })
|
|
@@ -15596,10 +15560,10 @@ function CartScreen() {
|
|
|
15596
15560
|
}
|
|
15597
15561
|
router.push(buildPath("/checkout"));
|
|
15598
15562
|
};
|
|
15599
|
-
return /* @__PURE__ */ jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsx("div", { className: "max-w-[1400px] mx-auto px-
|
|
15600
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-12", children: [
|
|
15601
|
-
/* @__PURE__ */ jsx("h1", { className: "font-
|
|
15602
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
15563
|
+
return /* @__PURE__ */ jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsx("div", { className: "max-w-[1400px] mx-auto px-4 md:px-12", children: /* @__PURE__ */ jsxs("div", { className: "py-8", children: [
|
|
15564
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-8 md:mb-12", children: [
|
|
15565
|
+
/* @__PURE__ */ jsx("h1", { className: "font-semibold text-hsecondary tracking-[-1px] md:tracking-[-2px] mb-2 text-3xl md:text-4xl", children: "Shopping Cart" }),
|
|
15566
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[14px] md:text-[16px] text-hmuted", children: [
|
|
15603
15567
|
itemCount,
|
|
15604
15568
|
" ",
|
|
15605
15569
|
itemCount === 1 ? "item" : "items",
|
|
@@ -15628,27 +15592,27 @@ function CartScreen() {
|
|
|
15628
15592
|
initial: { opacity: 0, y: 24 },
|
|
15629
15593
|
animate: { opacity: 1, y: 0 },
|
|
15630
15594
|
transition: { delay: 0.1 },
|
|
15631
|
-
className: "
|
|
15632
|
-
children: /* @__PURE__ */ jsxs("div", { className: "bg-linear-to-br from-
|
|
15633
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
15595
|
+
className: "lg:sticky lg:top-24 h-fit lg:col-span-1",
|
|
15596
|
+
children: /* @__PURE__ */ jsxs("div", { className: "bg-hsecondary/[0.03] md:bg-linear-to-br md:from-hsecondary/10 md:to-hsecondary/10 rounded-[24px] p-6 md:p-8 border-2 border-hsecondary/10 md:border-hsecondary/20 lg:sticky lg:top-24", children: [
|
|
15597
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-hsecondary mb-6", children: "Order Summary" }),
|
|
15634
15598
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4 mb-6", children: [
|
|
15635
15599
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15636
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
15600
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[14px] text-hmuted", children: [
|
|
15637
15601
|
"Subtotal (",
|
|
15638
15602
|
itemCount,
|
|
15639
15603
|
" ",
|
|
15640
15604
|
itemCount === 1 ? "item" : "items",
|
|
15641
15605
|
")"
|
|
15642
15606
|
] }),
|
|
15643
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
15607
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-[14px] text-hsecondary", children: formatPrice(subtotal) })
|
|
15644
15608
|
] }),
|
|
15645
15609
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
15646
15610
|
/* @__PURE__ */ jsx("span", { className: "text-gray-600", children: "Shipping" }),
|
|
15647
15611
|
/* @__PURE__ */ jsx("span", { className: "font-semibold text-green-600", children: "Will be calculated at checkout" })
|
|
15648
15612
|
] }),
|
|
15649
15613
|
/* @__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-
|
|
15614
|
+
/* @__PURE__ */ jsx("span", { className: "text-lg font-bold text-hsecondary", children: "Total" }),
|
|
15615
|
+
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold text-hprimary", children: formatPrice(total) })
|
|
15652
15616
|
] }) })
|
|
15653
15617
|
] }),
|
|
15654
15618
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
@@ -15657,7 +15621,7 @@ function CartScreen() {
|
|
|
15657
15621
|
{
|
|
15658
15622
|
type: "submit",
|
|
15659
15623
|
onClick: handleSubmit,
|
|
15660
|
-
className: "w-full rounded-full border-2 border-
|
|
15624
|
+
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
15625
|
children: [
|
|
15662
15626
|
"Proceed to Checkout",
|
|
15663
15627
|
/* @__PURE__ */ jsx(ArrowRight, { className: "h-5 w-5" })
|
|
@@ -15676,11 +15640,11 @@ function CartScreen() {
|
|
|
15676
15640
|
] }),
|
|
15677
15641
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 space-y-3 pt-6 border-t border-gray-200", children: [
|
|
15678
15642
|
/* @__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-
|
|
15643
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hmuted shrink-0 mt-0.5" }),
|
|
15680
15644
|
/* @__PURE__ */ jsx("span", { children: "Easy returns within 30 days" })
|
|
15681
15645
|
] }),
|
|
15682
15646
|
/* @__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-
|
|
15647
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-5 w-5 text-hmuted shrink-0 mt-0.5" }),
|
|
15684
15648
|
/* @__PURE__ */ jsx("span", { children: "Secure checkout process" })
|
|
15685
15649
|
] })
|
|
15686
15650
|
] })
|
|
@@ -16045,11 +16009,11 @@ function AddressFormModal({ isOpen, onClose, onAddressAdded, onAddressUpdated, i
|
|
|
16045
16009
|
{
|
|
16046
16010
|
type: "button",
|
|
16047
16011
|
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-
|
|
16012
|
+
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
16013
|
children: "Cancel"
|
|
16050
16014
|
}
|
|
16051
16015
|
),
|
|
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-
|
|
16016
|
+
/* @__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
16017
|
] })
|
|
16054
16018
|
] })
|
|
16055
16019
|
}
|
|
@@ -16630,8 +16594,8 @@ function CheckoutScreen() {
|
|
|
16630
16594
|
className: "space-y-8",
|
|
16631
16595
|
children: [
|
|
16632
16596
|
/* @__PURE__ */ jsxs("div", { className: "mb-12", children: [
|
|
16633
|
-
/* @__PURE__ */ jsx("h1", { className: "font-
|
|
16634
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
16597
|
+
/* @__PURE__ */ jsx("h1", { className: "font-semibold text-[#2B4B7C] mb-2 text-3xl", children: "Checkout" }),
|
|
16598
|
+
/* @__PURE__ */ jsx("p", { className: "text-[14px] text-[#676c80] text-md leading-relaxed", children: "Complete your order information below" })
|
|
16635
16599
|
] }),
|
|
16636
16600
|
/* @__PURE__ */ jsx("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
|
|
16637
16601
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -16656,13 +16620,13 @@ function CheckoutScreen() {
|
|
|
16656
16620
|
setShippingPrice(0);
|
|
16657
16621
|
}
|
|
16658
16622
|
},
|
|
16659
|
-
className: `relative flex w-full items-center justify-between rounded-xl border-2 p-3 transition-all duration-200 ${active ? "border-
|
|
16623
|
+
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
16624
|
children: [
|
|
16661
16625
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
16662
16626
|
/* @__PURE__ */ jsx(
|
|
16663
16627
|
"div",
|
|
16664
16628
|
{
|
|
16665
|
-
className: `p-2 rounded-lg ${active ? "bg-
|
|
16629
|
+
className: `p-2 rounded-lg ${active ? "bg-hprimary-100 text-hprimary-600" : "bg-gray-100 text-gray-600"}`,
|
|
16666
16630
|
children: option.icon
|
|
16667
16631
|
}
|
|
16668
16632
|
),
|
|
@@ -16671,7 +16635,7 @@ function CheckoutScreen() {
|
|
|
16671
16635
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: option.desc })
|
|
16672
16636
|
] })
|
|
16673
16637
|
] }),
|
|
16674
|
-
active && /* @__PURE__ */ jsx("div", { className: "w-5 h-5 rounded-full bg-
|
|
16638
|
+
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
16639
|
]
|
|
16676
16640
|
},
|
|
16677
16641
|
option.id
|
|
@@ -16726,7 +16690,7 @@ function CheckoutScreen() {
|
|
|
16726
16690
|
] }) }),
|
|
16727
16691
|
isDelivery !== null && /* @__PURE__ */ jsxs("section", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
|
|
16728
16692
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center justify-between gap-4", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
16729
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
16693
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-[#2B4B7C] mb-2 text-2xl", children: isDelivery ? "Delivery Address" : "Contact Information" }),
|
|
16730
16694
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-slate-500", children: "We use temperature-aware packaging and real-time tracking on every shipment." })
|
|
16731
16695
|
] }) }),
|
|
16732
16696
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 grid grid-cols-1 gap-4 md:grid-cols-2", children: [
|
|
@@ -16753,7 +16717,7 @@ function CheckoutScreen() {
|
|
|
16753
16717
|
userAddresses.length > 0 ? /* @__PURE__ */ jsx("div", { className: "grid gap-4", children: userAddresses.map((addr) => /* @__PURE__ */ jsxs(
|
|
16754
16718
|
"label",
|
|
16755
16719
|
{
|
|
16756
|
-
className: `group relative flex items-start gap-3 p-4 rounded-2xl border ${selectedAddressId === addr.id ? "border-
|
|
16720
|
+
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
16721
|
children: [
|
|
16758
16722
|
/* @__PURE__ */ jsx(
|
|
16759
16723
|
"input",
|
|
@@ -16790,7 +16754,7 @@ function CheckoutScreen() {
|
|
|
16790
16754
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-slate-600", children: addr.country }),
|
|
16791
16755
|
addr.phone && /* @__PURE__ */ jsx("p", { className: "text-sm text-slate-600 mt-1", children: addr.phone }),
|
|
16792
16756
|
/* @__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-
|
|
16757
|
+
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
16758
|
/* @__PURE__ */ jsxs(
|
|
16795
16759
|
"button",
|
|
16796
16760
|
{
|
|
@@ -16800,7 +16764,7 @@ function CheckoutScreen() {
|
|
|
16800
16764
|
setEditingAddress(addr);
|
|
16801
16765
|
setIsAddressModalOpen(true);
|
|
16802
16766
|
},
|
|
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-
|
|
16767
|
+
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
16768
|
children: [
|
|
16805
16769
|
/* @__PURE__ */ jsx(Edit3, { className: "h-3.5 w-3.5" }),
|
|
16806
16770
|
" Edit"
|
|
@@ -16860,10 +16824,10 @@ function CheckoutScreen() {
|
|
|
16860
16824
|
isDelivery === true && selectedAddressId && /* @__PURE__ */ jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
|
|
16861
16825
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 text-xl font-semibold text-gray-900 pb-4 mb-8 border-b", children: [
|
|
16862
16826
|
/* @__PURE__ */ jsx(Truck, { className: "w-8 h-8 flex items-center justify-center text-[#2B4B7C]" }),
|
|
16863
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
16827
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-[#2B4B7C] text-2xl", children: "Shipping Options" })
|
|
16864
16828
|
] }),
|
|
16865
16829
|
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-
|
|
16830
|
+
/* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-haccent" }),
|
|
16867
16831
|
/* @__PURE__ */ jsx("span", { className: "ml-3 text-gray-600", children: "Loading shipping options..." })
|
|
16868
16832
|
] }) : shippingRatesError ? /* @__PURE__ */ jsxs("div", { className: "text-center py-12", children: [
|
|
16869
16833
|
/* @__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 +16843,7 @@ function CheckoutScreen() {
|
|
|
16879
16843
|
setSelectedShippingRateId(rate.objectId);
|
|
16880
16844
|
setShippingPrice(parseFloat(rate.amount));
|
|
16881
16845
|
},
|
|
16882
|
-
className: `relative p-5 border-2 rounded-xl cursor-pointer transition-all duration-200 hover:shadow-md ${isSelected ? "border-
|
|
16846
|
+
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
16847
|
children: [
|
|
16884
16848
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
16885
16849
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 flex-1", children: [
|
|
@@ -16904,7 +16868,7 @@ function CheckoutScreen() {
|
|
|
16904
16868
|
" ",
|
|
16905
16869
|
rate.servicelevel?.name
|
|
16906
16870
|
] }),
|
|
16907
|
-
isTest && /* @__PURE__ */ jsx("span", { className: "px-2 py-1 text-xs font-medium bg-
|
|
16871
|
+
isTest && /* @__PURE__ */ jsx("span", { className: "px-2 py-1 text-xs font-medium bg-hprimary-100 text-hprimary-800 rounded-full", children: "TEST" })
|
|
16908
16872
|
] }),
|
|
16909
16873
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1 text-sm text-gray-600", children: [
|
|
16910
16874
|
rate.durationTerms && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -16946,7 +16910,7 @@ function CheckoutScreen() {
|
|
|
16946
16910
|
] })
|
|
16947
16911
|
] })
|
|
16948
16912
|
] }),
|
|
16949
|
-
isSelected && /* @__PURE__ */ jsx("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ jsx("div", { className: "w-6 h-6 bg-
|
|
16913
|
+
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
16914
|
]
|
|
16951
16915
|
},
|
|
16952
16916
|
rate.objectId
|
|
@@ -16967,22 +16931,22 @@ function CheckoutScreen() {
|
|
|
16967
16931
|
animate: { opacity: 1, y: 0 },
|
|
16968
16932
|
transition: { duration: 0.5, ease: "easeOut", delay: 0.1 },
|
|
16969
16933
|
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-
|
|
16934
|
+
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: [
|
|
16935
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-hsecondary mb-6 text-2xl", children: "Order Summary" }),
|
|
16972
16936
|
/* @__PURE__ */ jsxs("section", { className: "mt-8 pt-6 border-t border-slate-100", children: [
|
|
16973
16937
|
/* @__PURE__ */ jsx("div", { className: "space-y-4 mb-6", children: cart?.cartBody?.items?.map((item) => /* @__PURE__ */ jsxs("div", { className: "flex gap-3", children: [
|
|
16974
16938
|
/* @__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 }) }),
|
|
16975
16939
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
16976
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
16977
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
16940
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium text-[12px] text-[#2B4B7C] mb-1", children: item?.productVariantData?.name }),
|
|
16941
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[11px] text-[#676c80]", children: [
|
|
16978
16942
|
item?.productVariantData?.brand,
|
|
16979
16943
|
" \u2022 Qty: ",
|
|
16980
16944
|
item.quantity
|
|
16981
16945
|
] }),
|
|
16982
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
16946
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mt-1", children: formatPrice(item.productVariantData.finalPrice * item.quantity) })
|
|
16983
16947
|
] })
|
|
16984
16948
|
] }, item.productVariantId || item.id)) }),
|
|
16985
|
-
/* @__PURE__ */ jsx("div", { className: "h-px bg-
|
|
16949
|
+
/* @__PURE__ */ jsx("div", { className: "h-px bg-hsecondary/20 my-4" }),
|
|
16986
16950
|
/* @__PURE__ */ jsx("div", { className: "mb-6", children: /* @__PURE__ */ jsx(
|
|
16987
16951
|
CouponCodeInput,
|
|
16988
16952
|
{
|
|
@@ -17014,14 +16978,14 @@ function CheckoutScreen() {
|
|
|
17014
16978
|
/* @__PURE__ */ jsx("span", { children: "Estimated tax" }),
|
|
17015
16979
|
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatPrice(tax) })
|
|
17016
16980
|
] }),
|
|
17017
|
-
/* @__PURE__ */ jsx("div", { className: "h-px bg-
|
|
16981
|
+
/* @__PURE__ */ jsx("div", { className: "h-px bg-hsecondary/20 mt-6" }),
|
|
17018
16982
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-6", children: [
|
|
17019
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
17020
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
16983
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-[16px] text-hsecondary", children: "Total" }),
|
|
16984
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold text-[24px] text-hsecondary", children: formatPrice(total) })
|
|
17021
16985
|
] })
|
|
17022
16986
|
] }),
|
|
17023
|
-
/* @__PURE__ */ jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxs("p", { className: "
|
|
17024
|
-
/* @__PURE__ */ jsx("strong", { className: "text-
|
|
16987
|
+
/* @__PURE__ */ jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxs("p", { className: "text-[11px] text-[#676c80] leading-[1.6]", children: [
|
|
16988
|
+
/* @__PURE__ */ jsx("strong", { className: "text-hsecondary", children: "Payment:" }),
|
|
17025
16989
|
" We'll contact you to arrange payment upon pickup or delivery. We accept cash, credit cards, and all major payment methods."
|
|
17026
16990
|
] }) })
|
|
17027
16991
|
] }),
|
|
@@ -17057,7 +17021,7 @@ function CheckoutScreen() {
|
|
|
17057
17021
|
{
|
|
17058
17022
|
type: "submit",
|
|
17059
17023
|
disabled: isSubmitting,
|
|
17060
|
-
className: "font-
|
|
17024
|
+
className: "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
17025
|
children: [
|
|
17062
17026
|
/* @__PURE__ */ jsx(CreditCard, { className: "h-5 w-5" }),
|
|
17063
17027
|
isSubmitting ? "Placing order..." : "Place Secure Order"
|
|
@@ -17149,9 +17113,9 @@ function LoginScreen() {
|
|
|
17149
17113
|
className: "flex items-center justify-center px-6 py-12 lg:px-16",
|
|
17150
17114
|
children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-lg space-y-10 text-center", children: [
|
|
17151
17115
|
/* @__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-
|
|
17116
|
+
/* @__PURE__ */ jsx(Lock, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4" }),
|
|
17117
|
+
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-hsecondary", children: "Welcome Back" }),
|
|
17118
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Sign in to access your patient portal" })
|
|
17155
17119
|
] }),
|
|
17156
17120
|
/* @__PURE__ */ jsxs(
|
|
17157
17121
|
"form",
|
|
@@ -17169,10 +17133,10 @@ function LoginScreen() {
|
|
|
17169
17133
|
children: /* @__PURE__ */ jsx("span", { children: status.message })
|
|
17170
17134
|
}
|
|
17171
17135
|
),
|
|
17172
|
-
/* @__PURE__ */ jsxs("div", { className: "text-start text-
|
|
17173
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17136
|
+
/* @__PURE__ */ jsxs("div", { className: "text-start text-hsecondary", children: [
|
|
17137
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17174
17138
|
"Email Address ",
|
|
17175
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17139
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17176
17140
|
] }),
|
|
17177
17141
|
/* @__PURE__ */ jsx(
|
|
17178
17142
|
Input,
|
|
@@ -17181,14 +17145,14 @@ function LoginScreen() {
|
|
|
17181
17145
|
placeholder: "you@example.com",
|
|
17182
17146
|
...register("email"),
|
|
17183
17147
|
error: errors.email?.message,
|
|
17184
|
-
className: "text-
|
|
17148
|
+
className: "text-hsecondary"
|
|
17185
17149
|
}
|
|
17186
17150
|
)
|
|
17187
17151
|
] }),
|
|
17188
|
-
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-
|
|
17189
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17152
|
+
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17153
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17190
17154
|
"Password ",
|
|
17191
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17155
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17192
17156
|
] }),
|
|
17193
17157
|
/* @__PURE__ */ jsx(
|
|
17194
17158
|
Input,
|
|
@@ -17213,7 +17177,7 @@ function LoginScreen() {
|
|
|
17213
17177
|
Link9,
|
|
17214
17178
|
{
|
|
17215
17179
|
href: buildPath("/forgot-password"),
|
|
17216
|
-
className: "font-medium text-
|
|
17180
|
+
className: "font-medium text-hprimary transition hover:opacity-80",
|
|
17217
17181
|
children: "Forgot password?"
|
|
17218
17182
|
}
|
|
17219
17183
|
) }),
|
|
@@ -17222,16 +17186,16 @@ function LoginScreen() {
|
|
|
17222
17186
|
{
|
|
17223
17187
|
type: "submit",
|
|
17224
17188
|
disabled: isSubmitting,
|
|
17225
|
-
className: "w-full bg-
|
|
17189
|
+
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
17190
|
children: isSubmitting ? "Signing in..." : "Sign in"
|
|
17227
17191
|
}
|
|
17228
17192
|
)
|
|
17229
17193
|
]
|
|
17230
17194
|
}
|
|
17231
17195
|
),
|
|
17232
|
-
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-
|
|
17196
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-hmuted", children: [
|
|
17233
17197
|
"Don't have an account? ",
|
|
17234
|
-
/* @__PURE__ */ jsx(Link9, { href: buildPath("/register"), className: "font-medium text-
|
|
17198
|
+
/* @__PURE__ */ jsx(Link9, { href: buildPath("/register"), className: "font-medium text-hprimary transition hover:opacity-90", children: "Sign up" })
|
|
17235
17199
|
] }) })
|
|
17236
17200
|
] })
|
|
17237
17201
|
}
|
|
@@ -17296,9 +17260,9 @@ function RegisterScreen() {
|
|
|
17296
17260
|
className: "flex items-center justify-center px-6 py-12 lg:px-16",
|
|
17297
17261
|
children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-xl space-y-10 text-center", children: [
|
|
17298
17262
|
/* @__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-
|
|
17263
|
+
/* @__PURE__ */ jsx(UserPlus, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-hprimary m-2 mb-4 px-4" }),
|
|
17264
|
+
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-hsecondary", children: "Create Your Account" }),
|
|
17265
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Join Holmdel Pharmacy Care for convenient healthcare access" })
|
|
17302
17266
|
] }),
|
|
17303
17267
|
/* @__PURE__ */ jsxs(
|
|
17304
17268
|
"form",
|
|
@@ -17311,9 +17275,9 @@ function RegisterScreen() {
|
|
|
17311
17275
|
children: [
|
|
17312
17276
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2 text-start", children: [
|
|
17313
17277
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17314
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17278
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17315
17279
|
"First name ",
|
|
17316
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17280
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17317
17281
|
] }),
|
|
17318
17282
|
/* @__PURE__ */ jsx(
|
|
17319
17283
|
Input,
|
|
@@ -17325,9 +17289,9 @@ function RegisterScreen() {
|
|
|
17325
17289
|
)
|
|
17326
17290
|
] }),
|
|
17327
17291
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17328
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17292
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17329
17293
|
"Last name ",
|
|
17330
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17294
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17331
17295
|
] }),
|
|
17332
17296
|
/* @__PURE__ */ jsx(
|
|
17333
17297
|
Input,
|
|
@@ -17340,9 +17304,9 @@ function RegisterScreen() {
|
|
|
17340
17304
|
] })
|
|
17341
17305
|
] }),
|
|
17342
17306
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17343
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17307
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17344
17308
|
"Email Address ",
|
|
17345
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17309
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17346
17310
|
] }),
|
|
17347
17311
|
/* @__PURE__ */ jsx(
|
|
17348
17312
|
Input,
|
|
@@ -17355,7 +17319,7 @@ function RegisterScreen() {
|
|
|
17355
17319
|
)
|
|
17356
17320
|
] }),
|
|
17357
17321
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17358
|
-
/* @__PURE__ */ jsx("h2", { className: "text-sm text-
|
|
17322
|
+
/* @__PURE__ */ jsx("h2", { className: "text-sm text-hsecondary mb-3", children: "Phone Number" }),
|
|
17359
17323
|
/* @__PURE__ */ jsx(
|
|
17360
17324
|
Input,
|
|
17361
17325
|
{
|
|
@@ -17367,9 +17331,9 @@ function RegisterScreen() {
|
|
|
17367
17331
|
)
|
|
17368
17332
|
] }),
|
|
17369
17333
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
17370
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17334
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17371
17335
|
"Password ",
|
|
17372
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17336
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17373
17337
|
] }),
|
|
17374
17338
|
/* @__PURE__ */ jsx(
|
|
17375
17339
|
Input,
|
|
@@ -17391,9 +17355,9 @@ function RegisterScreen() {
|
|
|
17391
17355
|
)
|
|
17392
17356
|
] }),
|
|
17393
17357
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
17394
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17358
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17395
17359
|
"Confirm Password ",
|
|
17396
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17360
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17397
17361
|
] }),
|
|
17398
17362
|
/* @__PURE__ */ jsx(
|
|
17399
17363
|
Input,
|
|
@@ -17415,11 +17379,11 @@ function RegisterScreen() {
|
|
|
17415
17379
|
)
|
|
17416
17380
|
] }),
|
|
17417
17381
|
/* @__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-
|
|
17382
|
+
/* @__PURE__ */ jsx(Shield, { strokeWidth: 2, className: "mt-0.5 h-8 w-8 text-hprimary" }),
|
|
17419
17383
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
17420
17384
|
"By creating an account, you agree to our",
|
|
17421
17385
|
" ",
|
|
17422
|
-
/* @__PURE__ */ jsx(Link9, { href: buildPath("/terms"), className: "font-semibold text-
|
|
17386
|
+
/* @__PURE__ */ jsx(Link9, { href: buildPath("/terms"), className: "font-semibold text-hprimary hover:opacity-70", children: "Terms of Service" }),
|
|
17423
17387
|
" ",
|
|
17424
17388
|
"and",
|
|
17425
17389
|
" ",
|
|
@@ -17427,7 +17391,7 @@ function RegisterScreen() {
|
|
|
17427
17391
|
Link9,
|
|
17428
17392
|
{
|
|
17429
17393
|
href: buildPath("/privacy"),
|
|
17430
|
-
className: "font-semibold text-
|
|
17394
|
+
className: "font-semibold text-hprimary hover:opacity-70",
|
|
17431
17395
|
children: "Privacy Policy"
|
|
17432
17396
|
}
|
|
17433
17397
|
),
|
|
@@ -17439,16 +17403,16 @@ function RegisterScreen() {
|
|
|
17439
17403
|
{
|
|
17440
17404
|
type: "submit",
|
|
17441
17405
|
disabled: isSubmitting,
|
|
17442
|
-
className: "w-full bg-
|
|
17406
|
+
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
17407
|
children: isSubmitting ? "Creating account..." : "Create my account"
|
|
17444
17408
|
}
|
|
17445
17409
|
)
|
|
17446
17410
|
]
|
|
17447
17411
|
}
|
|
17448
17412
|
),
|
|
17449
|
-
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-
|
|
17413
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-hmuted", children: [
|
|
17450
17414
|
"Already have an account? ",
|
|
17451
|
-
/* @__PURE__ */ jsx(Link9, { href: buildPath("/login"), className: "font-medium text-
|
|
17415
|
+
/* @__PURE__ */ jsx(Link9, { href: buildPath("/login"), className: "font-medium text-hprimary transition hover:opacity-90", children: "Sign in" })
|
|
17452
17416
|
] }) })
|
|
17453
17417
|
] })
|
|
17454
17418
|
}
|
|
@@ -17503,11 +17467,11 @@ function ForgotPasswordScreen() {
|
|
|
17503
17467
|
Mail,
|
|
17504
17468
|
{
|
|
17505
17469
|
strokeWidth: 2,
|
|
17506
|
-
className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17470
|
+
className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4"
|
|
17507
17471
|
}
|
|
17508
17472
|
),
|
|
17509
|
-
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-
|
|
17510
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
17473
|
+
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-hsecondary", children: "Forgot Password?" }),
|
|
17474
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "No worries! Enter your email and we'll send you reset instructions." })
|
|
17511
17475
|
] }),
|
|
17512
17476
|
/* @__PURE__ */ jsxs(
|
|
17513
17477
|
"form",
|
|
@@ -17528,10 +17492,10 @@ function ForgotPasswordScreen() {
|
|
|
17528
17492
|
]
|
|
17529
17493
|
}
|
|
17530
17494
|
),
|
|
17531
|
-
/* @__PURE__ */ jsxs("div", { className: "text-start text-
|
|
17532
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17495
|
+
/* @__PURE__ */ jsxs("div", { className: "text-start text-hsecondary", children: [
|
|
17496
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17533
17497
|
"Email Address ",
|
|
17534
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17498
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17535
17499
|
] }),
|
|
17536
17500
|
/* @__PURE__ */ jsx(
|
|
17537
17501
|
Input,
|
|
@@ -17540,7 +17504,7 @@ function ForgotPasswordScreen() {
|
|
|
17540
17504
|
placeholder: "you@example.com",
|
|
17541
17505
|
...register("email"),
|
|
17542
17506
|
error: errors.email?.message,
|
|
17543
|
-
className: "text-
|
|
17507
|
+
className: "text-hsecondary"
|
|
17544
17508
|
}
|
|
17545
17509
|
)
|
|
17546
17510
|
] }),
|
|
@@ -17549,7 +17513,7 @@ function ForgotPasswordScreen() {
|
|
|
17549
17513
|
{
|
|
17550
17514
|
type: "submit",
|
|
17551
17515
|
disabled: isSubmitting,
|
|
17552
|
-
className: "w-full bg-
|
|
17516
|
+
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
17517
|
children: isSubmitting ? "Sending..." : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17554
17518
|
/* @__PURE__ */ jsx(Send, { className: "h-4 w-4" }),
|
|
17555
17519
|
"Send Reset Link"
|
|
@@ -17560,7 +17524,7 @@ function ForgotPasswordScreen() {
|
|
|
17560
17524
|
Link9,
|
|
17561
17525
|
{
|
|
17562
17526
|
href: buildPath("/login"),
|
|
17563
|
-
className: "flex items-center justify-center gap-2 text-sm font-medium text-
|
|
17527
|
+
className: "flex items-center justify-center gap-2 text-sm font-medium text-hprimary transition hover:opacity-80",
|
|
17564
17528
|
children: [
|
|
17565
17529
|
/* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }),
|
|
17566
17530
|
"Back to login"
|
|
@@ -17570,14 +17534,14 @@ function ForgotPasswordScreen() {
|
|
|
17570
17534
|
]
|
|
17571
17535
|
}
|
|
17572
17536
|
),
|
|
17573
|
-
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-
|
|
17537
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs("p", { className: "text-hmuted", children: [
|
|
17574
17538
|
"Don't have an account?",
|
|
17575
17539
|
" ",
|
|
17576
17540
|
/* @__PURE__ */ jsx(
|
|
17577
17541
|
Link9,
|
|
17578
17542
|
{
|
|
17579
17543
|
href: buildPath("/register"),
|
|
17580
|
-
className: "font-medium text-
|
|
17544
|
+
className: "font-medium text-hprimary transition hover:opacity-90",
|
|
17581
17545
|
children: "Sign up"
|
|
17582
17546
|
}
|
|
17583
17547
|
)
|
|
@@ -17668,11 +17632,11 @@ function ResetPasswordScreen() {
|
|
|
17668
17632
|
Lock,
|
|
17669
17633
|
{
|
|
17670
17634
|
strokeWidth: 2,
|
|
17671
|
-
className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17635
|
+
className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4"
|
|
17672
17636
|
}
|
|
17673
17637
|
),
|
|
17674
|
-
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-
|
|
17675
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
17638
|
+
/* @__PURE__ */ jsx("h2", { className: "text-4xl text-hsecondary", children: "Reset Password" }),
|
|
17639
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Enter your new password below to reset your account password." })
|
|
17676
17640
|
] }),
|
|
17677
17641
|
/* @__PURE__ */ jsxs(
|
|
17678
17642
|
"form",
|
|
@@ -17693,10 +17657,10 @@ function ResetPasswordScreen() {
|
|
|
17693
17657
|
]
|
|
17694
17658
|
}
|
|
17695
17659
|
),
|
|
17696
|
-
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-
|
|
17697
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17660
|
+
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17661
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17698
17662
|
"New Password ",
|
|
17699
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17663
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17700
17664
|
] }),
|
|
17701
17665
|
/* @__PURE__ */ jsx(
|
|
17702
17666
|
Input,
|
|
@@ -17705,7 +17669,7 @@ function ResetPasswordScreen() {
|
|
|
17705
17669
|
placeholder: "Enter new password (min. 8 characters)",
|
|
17706
17670
|
...register("newPassword"),
|
|
17707
17671
|
error: errors.newPassword?.message,
|
|
17708
|
-
className: "text-
|
|
17672
|
+
className: "text-hsecondary"
|
|
17709
17673
|
}
|
|
17710
17674
|
),
|
|
17711
17675
|
/* @__PURE__ */ jsx(
|
|
@@ -17718,10 +17682,10 @@ function ResetPasswordScreen() {
|
|
|
17718
17682
|
}
|
|
17719
17683
|
)
|
|
17720
17684
|
] }),
|
|
17721
|
-
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-
|
|
17722
|
-
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-
|
|
17685
|
+
/* @__PURE__ */ jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17686
|
+
/* @__PURE__ */ jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17723
17687
|
"Confirm Password ",
|
|
17724
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17688
|
+
/* @__PURE__ */ jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17725
17689
|
] }),
|
|
17726
17690
|
/* @__PURE__ */ jsx(
|
|
17727
17691
|
Input,
|
|
@@ -17730,7 +17694,7 @@ function ResetPasswordScreen() {
|
|
|
17730
17694
|
placeholder: "Re-enter new password",
|
|
17731
17695
|
...register("confirmPassword"),
|
|
17732
17696
|
error: errors.confirmPassword?.message,
|
|
17733
|
-
className: "text-
|
|
17697
|
+
className: "text-hsecondary"
|
|
17734
17698
|
}
|
|
17735
17699
|
),
|
|
17736
17700
|
/* @__PURE__ */ jsx(
|
|
@@ -17748,19 +17712,19 @@ function ResetPasswordScreen() {
|
|
|
17748
17712
|
{
|
|
17749
17713
|
type: "submit",
|
|
17750
17714
|
disabled: isSubmitting || !token,
|
|
17751
|
-
className: "w-full bg-
|
|
17715
|
+
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
17716
|
children: isSubmitting ? "Resetting Password..." : "Reset Password"
|
|
17753
17717
|
}
|
|
17754
17718
|
),
|
|
17755
17719
|
/* @__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-
|
|
17720
|
+
/* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4 text-hprimary-600" }),
|
|
17757
17721
|
"Use a strong password that you haven't used elsewhere."
|
|
17758
17722
|
] }),
|
|
17759
17723
|
/* @__PURE__ */ jsx("div", { className: "pt-4 border-t border-slate-200", children: /* @__PURE__ */ jsx(
|
|
17760
17724
|
Link9,
|
|
17761
17725
|
{
|
|
17762
17726
|
href: buildPath("/login"),
|
|
17763
|
-
className: "text-sm font-medium text-
|
|
17727
|
+
className: "text-sm font-medium text-hprimary transition hover:opacity-80",
|
|
17764
17728
|
children: "Back to login"
|
|
17765
17729
|
}
|
|
17766
17730
|
) })
|
|
@@ -17782,7 +17746,7 @@ function TabNavigation({ tabs: tabs2, activeTab, onTabChange }) {
|
|
|
17782
17746
|
className: `
|
|
17783
17747
|
flex items-center gap-2 px-6 py-3 mt-2 text-sm font-medium whitespace-nowrap
|
|
17784
17748
|
border-b-2 transition-colors
|
|
17785
|
-
${isActive ? "bg-
|
|
17749
|
+
${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
17750
|
`,
|
|
17787
17751
|
"aria-current": isActive ? "page" : void 0,
|
|
17788
17752
|
children: [
|
|
@@ -17901,8 +17865,8 @@ function useCurrentOrders() {
|
|
|
17901
17865
|
}
|
|
17902
17866
|
function Badge({ children, variant = "primary", size = "md", className = "" }) {
|
|
17903
17867
|
const variants = {
|
|
17904
|
-
primary: "bg-
|
|
17905
|
-
secondary: "bg-
|
|
17868
|
+
primary: "bg-hprimary-100 text-hprimary-700 border-hprimary-200",
|
|
17869
|
+
secondary: "bg-hsecondary-100 text-hsecondary-700 border-hsecondary-200",
|
|
17906
17870
|
success: "bg-green-100 text-green-700 border-green-200",
|
|
17907
17871
|
warning: "bg-yellow-100 text-yellow-700 border-yellow-200",
|
|
17908
17872
|
danger: "bg-red-100 text-red-700 border-red-200",
|
|
@@ -17931,7 +17895,7 @@ function AccountOverviewTab() {
|
|
|
17931
17895
|
icon: Package,
|
|
17932
17896
|
label: "Total Orders",
|
|
17933
17897
|
value: totalOrders,
|
|
17934
|
-
color: "bg-
|
|
17898
|
+
color: "bg-hprimary-100 text-[#5B9BD5]"
|
|
17935
17899
|
},
|
|
17936
17900
|
{
|
|
17937
17901
|
icon: CheckCircle,
|
|
@@ -17962,7 +17926,7 @@ function AccountOverviewTab() {
|
|
|
17962
17926
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
17963
17927
|
/* @__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
17928
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17965
|
-
/* @__PURE__ */ jsx("p", { className: "text-2xl font-bold text-
|
|
17929
|
+
/* @__PURE__ */ jsx("p", { className: "text-2xl font-bold text-hsecondary", children: stat.value }),
|
|
17966
17930
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-slate-600", children: stat.label })
|
|
17967
17931
|
] })
|
|
17968
17932
|
] })
|
|
@@ -17972,12 +17936,12 @@ function AccountOverviewTab() {
|
|
|
17972
17936
|
}) }),
|
|
17973
17937
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-slate-200 bg-white p-6", children: [
|
|
17974
17938
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
17975
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
17939
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Profile Information" }),
|
|
17976
17940
|
/* @__PURE__ */ jsxs(
|
|
17977
17941
|
"button",
|
|
17978
17942
|
{
|
|
17979
17943
|
onClick: () => router.push(buildPath("/account/edit")),
|
|
17980
|
-
className: "flex items-center gap-1 text-sm text-
|
|
17944
|
+
className: "flex items-center gap-1 text-sm text-hprimary-600 hover:text-hprimary-700",
|
|
17981
17945
|
children: [
|
|
17982
17946
|
/* @__PURE__ */ jsx(Edit, { className: "h-4 w-4" }),
|
|
17983
17947
|
"Edit"
|
|
@@ -17987,10 +17951,10 @@ function AccountOverviewTab() {
|
|
|
17987
17951
|
] }),
|
|
17988
17952
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
17989
17953
|
/* @__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-
|
|
17954
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsx(User, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
17991
17955
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17992
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
17993
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-
|
|
17956
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Full Name" }),
|
|
17957
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hsecondary", children: [
|
|
17994
17958
|
user.firstname,
|
|
17995
17959
|
" ",
|
|
17996
17960
|
user.lastname
|
|
@@ -17998,31 +17962,31 @@ function AccountOverviewTab() {
|
|
|
17998
17962
|
] })
|
|
17999
17963
|
] }),
|
|
18000
17964
|
/* @__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-
|
|
17965
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsx(Mail, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18002
17966
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18003
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18004
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
17967
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "E-mail Address" }),
|
|
17968
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.email })
|
|
18005
17969
|
] })
|
|
18006
17970
|
] }),
|
|
18007
17971
|
/* @__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-
|
|
17972
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsx(Phone, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18009
17973
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18010
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18011
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
17974
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Phone Number" }),
|
|
17975
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.phoneNumber || "Not provided" })
|
|
18012
17976
|
] })
|
|
18013
17977
|
] }),
|
|
18014
17978
|
/* @__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-
|
|
17979
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsx(MapPin, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18016
17980
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18017
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18018
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
17981
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Date of Birth" }),
|
|
17982
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: "Not provided" })
|
|
18019
17983
|
] })
|
|
18020
17984
|
] })
|
|
18021
17985
|
] })
|
|
18022
17986
|
] }),
|
|
18023
17987
|
/* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-slate-200 bg-white p-6", children: [
|
|
18024
17988
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
18025
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
17989
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Recent Orders" }),
|
|
18026
17990
|
/* @__PURE__ */ jsx(
|
|
18027
17991
|
"button",
|
|
18028
17992
|
{
|
|
@@ -18030,7 +17994,7 @@ function AccountOverviewTab() {
|
|
|
18030
17994
|
const event = new CustomEvent("switchTab", { detail: "orders" });
|
|
18031
17995
|
window.dispatchEvent(event);
|
|
18032
17996
|
},
|
|
18033
|
-
className: "text-sm text-
|
|
17997
|
+
className: "text-sm text-hprimary-600 hover:text-hprimary-700",
|
|
18034
17998
|
children: "View All \u2192"
|
|
18035
17999
|
}
|
|
18036
18000
|
)
|
|
@@ -18041,7 +18005,7 @@ function AccountOverviewTab() {
|
|
|
18041
18005
|
className: "h-16 animate-pulse rounded-lg bg-slate-50"
|
|
18042
18006
|
},
|
|
18043
18007
|
index
|
|
18044
|
-
)) }) : recentOrders.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18008
|
+
)) }) : 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
18009
|
"div",
|
|
18046
18010
|
{
|
|
18047
18011
|
onClick: () => router.push(buildPath(`/account/orders/${order._id}`)),
|
|
@@ -18051,7 +18015,7 @@ function AccountOverviewTab() {
|
|
|
18051
18015
|
/* @__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
18016
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18053
18017
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
18054
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-
|
|
18018
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hsecondary", children: [
|
|
18055
18019
|
"ORD-",
|
|
18056
18020
|
order._id?.slice(-6).toUpperCase()
|
|
18057
18021
|
] }),
|
|
@@ -18064,10 +18028,10 @@ function AccountOverviewTab() {
|
|
|
18064
18028
|
}
|
|
18065
18029
|
)
|
|
18066
18030
|
] }),
|
|
18067
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18031
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: formatDate(order.createdAt || /* @__PURE__ */ new Date(), "short") })
|
|
18068
18032
|
] })
|
|
18069
18033
|
] }),
|
|
18070
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold text-
|
|
18034
|
+
/* @__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
18035
|
]
|
|
18072
18036
|
},
|
|
18073
18037
|
order._id
|
|
@@ -18112,11 +18076,11 @@ function AccountOrdersTab() {
|
|
|
18112
18076
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-4 pb-4 border-b border-slate-200", children: [
|
|
18113
18077
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
18114
18078
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18115
|
-
/* @__PURE__ */ jsxs("h3", { className: "text-base font-semibold text-
|
|
18079
|
+
/* @__PURE__ */ jsxs("h3", { className: "text-base font-semibold text-hsecondary", children: [
|
|
18116
18080
|
"Order ORD-",
|
|
18117
18081
|
order._id?.slice(-6).toUpperCase()
|
|
18118
18082
|
] }),
|
|
18119
|
-
/* @__PURE__ */ jsxs("p", { className: "text-xs text-
|
|
18083
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs text-hmuted mb-4", children: [
|
|
18120
18084
|
"Placed on ",
|
|
18121
18085
|
formatDate(order.createdAt || /* @__PURE__ */ new Date(), "long")
|
|
18122
18086
|
] })
|
|
@@ -18131,8 +18095,8 @@ function AccountOrdersTab() {
|
|
|
18131
18095
|
)
|
|
18132
18096
|
] }),
|
|
18133
18097
|
/* @__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-
|
|
18098
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted mb-1", children: "Total Amount" }),
|
|
18099
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-bold text-hsecondary", children: formatPrice(order.grandTotal || 0) })
|
|
18136
18100
|
] })
|
|
18137
18101
|
] }),
|
|
18138
18102
|
/* @__PURE__ */ jsx("div", { className: "space-y-3 mb-4", children: order.items && order.items.length > 0 ? order.items.map((item, index) => {
|
|
@@ -18150,15 +18114,15 @@ function AccountOrdersTab() {
|
|
|
18150
18114
|
}
|
|
18151
18115
|
) }),
|
|
18152
18116
|
/* @__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-
|
|
18117
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium text-hsecondary text-sm truncate", children: item.productVariantData?.name || "Unknown Product" }),
|
|
18118
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs text-hmuted", children: [
|
|
18155
18119
|
"Qty: ",
|
|
18156
18120
|
item.quantity
|
|
18157
18121
|
] })
|
|
18158
18122
|
] }),
|
|
18159
|
-
/* @__PURE__ */ jsx("p", { className: "font-semibold text-
|
|
18123
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-hsecondary text-sm", children: formatPrice(itemTotal) })
|
|
18160
18124
|
] }, item.productVariantId || index);
|
|
18161
|
-
}) : /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18125
|
+
}) : /* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted text-center py-2", children: "No items found" }) })
|
|
18162
18126
|
]
|
|
18163
18127
|
},
|
|
18164
18128
|
order._id
|
|
@@ -18189,15 +18153,15 @@ function ConfirmModal({
|
|
|
18189
18153
|
button: "primary"
|
|
18190
18154
|
},
|
|
18191
18155
|
info: {
|
|
18192
|
-
icon: "text-
|
|
18156
|
+
icon: "text-hsecondary bg-blue-100",
|
|
18193
18157
|
button: "primary"
|
|
18194
18158
|
}
|
|
18195
18159
|
};
|
|
18196
18160
|
const style = variantStyles[variant];
|
|
18197
18161
|
return /* @__PURE__ */ jsx(Modal, { isOpen, onClose, size: "sm", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center", children: [
|
|
18198
18162
|
/* @__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-
|
|
18163
|
+
/* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-hsecondary mb-2", children: title }),
|
|
18164
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted mb-6", children: message }),
|
|
18201
18165
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-3 w-full justify-center", children: [
|
|
18202
18166
|
/* @__PURE__ */ jsx(
|
|
18203
18167
|
"button",
|
|
@@ -18259,13 +18223,13 @@ function AccountAddressesTab() {
|
|
|
18259
18223
|
/* @__PURE__ */ jsxs("div", { className: "p-6 bg-white rounded-xl", children: [
|
|
18260
18224
|
/* @__PURE__ */ jsxs("div", { className: "mb-6 flex items-center justify-between", children: [
|
|
18261
18225
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18262
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
18263
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18226
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Saved Addresses" }),
|
|
18227
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Manage your delivery and billing addresses" })
|
|
18264
18228
|
] }),
|
|
18265
18229
|
/* @__PURE__ */ jsxs(
|
|
18266
18230
|
"button",
|
|
18267
18231
|
{
|
|
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-
|
|
18232
|
+
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
18233
|
onClick: () => {
|
|
18270
18234
|
setEditingAddress(void 0);
|
|
18271
18235
|
setIsAddressModalOpen(true);
|
|
@@ -18296,8 +18260,8 @@ function AccountAddressesTab() {
|
|
|
18296
18260
|
children: /* @__PURE__ */ jsxs("div", { className: "mb-3", children: [
|
|
18297
18261
|
/* @__PURE__ */ jsxs("div", { className: "justify-between flex items-center", children: [
|
|
18298
18262
|
/* @__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-
|
|
18263
|
+
/* @__PURE__ */ jsx(MapPin, { className: "h-4 w-4 text-hsecondary" }),
|
|
18264
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-hsecondary", children: address.name }),
|
|
18301
18265
|
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
18266
|
] }),
|
|
18303
18267
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
@@ -18308,7 +18272,7 @@ function AccountAddressesTab() {
|
|
|
18308
18272
|
setEditingAddress(address);
|
|
18309
18273
|
setIsAddressModalOpen(true);
|
|
18310
18274
|
},
|
|
18311
|
-
className: "inline-flex items-center gap-1 rounded-full border border-slate-200 px-2 py-1 text-xs font-medium text-
|
|
18275
|
+
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
18276
|
children: /* @__PURE__ */ jsx(Edit3, { className: "h-3 w-3" })
|
|
18313
18277
|
}
|
|
18314
18278
|
),
|
|
@@ -18323,18 +18287,18 @@ function AccountAddressesTab() {
|
|
|
18323
18287
|
)
|
|
18324
18288
|
] })
|
|
18325
18289
|
] }),
|
|
18326
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-
|
|
18290
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-hmuted mt-1", children: [
|
|
18327
18291
|
address.street1,
|
|
18328
18292
|
address.street2 && `, ${address.street2}`
|
|
18329
18293
|
] }),
|
|
18330
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-
|
|
18294
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-hmuted", children: [
|
|
18331
18295
|
address.city,
|
|
18332
18296
|
", ",
|
|
18333
18297
|
address.state,
|
|
18334
18298
|
" ",
|
|
18335
18299
|
address.zip
|
|
18336
18300
|
] }),
|
|
18337
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
18301
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: address.country }),
|
|
18338
18302
|
address.phone && /* @__PURE__ */ jsx("p", { className: "text-sm text-slate-500 mt-1", children: address.phone })
|
|
18339
18303
|
] })
|
|
18340
18304
|
},
|
|
@@ -18397,14 +18361,14 @@ function AccountSettingsTab() {
|
|
|
18397
18361
|
return /* @__PURE__ */ jsxs("div", { className: "p-6 space-y-6", children: [
|
|
18398
18362
|
/* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-slate-200 bg-white p-6", children: [
|
|
18399
18363
|
/* @__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-
|
|
18364
|
+
/* @__PURE__ */ jsx(Lock, { className: "h-5 w-5 text-hsecondary" }),
|
|
18365
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Security" })
|
|
18402
18366
|
] }),
|
|
18403
18367
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
18404
18368
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between rounded-lg border border-slate-200 bg-slate-50 px-4 py-3", children: [
|
|
18405
18369
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18406
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
18407
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
18370
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: "Change Password" }),
|
|
18371
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Update your account password" })
|
|
18408
18372
|
] }),
|
|
18409
18373
|
/* @__PURE__ */ jsx(
|
|
18410
18374
|
Button,
|
|
@@ -18547,7 +18511,7 @@ function AccountReviewsTab() {
|
|
|
18547
18511
|
"button",
|
|
18548
18512
|
{
|
|
18549
18513
|
onClick: () => router.push(buildPath("/reviews")),
|
|
18550
|
-
className: "inline-flex items-center gap-2 px-4 py-2 border border-
|
|
18514
|
+
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
18515
|
children: [
|
|
18552
18516
|
/* @__PURE__ */ jsx(MessageSquare, { className: "size-4" }),
|
|
18553
18517
|
"Write a Review"
|
|
@@ -18616,8 +18580,8 @@ function AccountPage() {
|
|
|
18616
18580
|
};
|
|
18617
18581
|
return /* @__PURE__ */ jsxs("div", { className: "min-h-screen bg-linear-to-b from-[#F8FAFC] to-[#EBF4FB]", children: [
|
|
18618
18582
|
/* @__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-
|
|
18583
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold text-hsecondary", children: "My Account" }),
|
|
18584
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Manage your profile, orders, and preferences" })
|
|
18621
18585
|
] }) }) }) }),
|
|
18622
18586
|
/* @__PURE__ */ jsx(TabNavigation, { tabs, activeTab, onTabChange: setActiveTab }),
|
|
18623
18587
|
/* @__PURE__ */ jsx("div", { className: "container mx-auto max-w-7xl", children: /* @__PURE__ */ jsx("div", { className: "rounded-2xl shadow-xs", children: renderTabContent() }) })
|
|
@@ -18674,7 +18638,7 @@ function OrderCard({ order, onDelete }) {
|
|
|
18674
18638
|
children: [
|
|
18675
18639
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4 pb-4 border-b border-gray-200", children: [
|
|
18676
18640
|
/* @__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-
|
|
18641
|
+
/* @__PURE__ */ jsxs("h3", { className: "text-base font-bold text-slate-900 group-hover:text-hprimary transition-colors", children: [
|
|
18678
18642
|
"Order #",
|
|
18679
18643
|
(order._id || order.id || "").slice(-8).toUpperCase()
|
|
18680
18644
|
] }),
|
|
@@ -18747,7 +18711,7 @@ function OrderCard({ order, onDelete }) {
|
|
|
18747
18711
|
e.stopPropagation();
|
|
18748
18712
|
window.open(order?.payment?.hostedInvoiceUrl || "", "_blank");
|
|
18749
18713
|
},
|
|
18750
|
-
className: "inline-flex items-center gap-2 rounded-full border-2 border-
|
|
18714
|
+
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
18715
|
onPointerDown: (e) => e.stopPropagation(),
|
|
18752
18716
|
children: [
|
|
18753
18717
|
/* @__PURE__ */ jsx(CreditCard, { className: "w-4 h-4" }),
|
|
@@ -18827,7 +18791,7 @@ function FilterChips({
|
|
|
18827
18791
|
{
|
|
18828
18792
|
type: "button",
|
|
18829
18793
|
onClick: () => onSelect("All"),
|
|
18830
|
-
className: "ml-auto text-xs text-
|
|
18794
|
+
className: "ml-auto text-xs text-hprimary-600 hover:text-hprimary-700 font-medium",
|
|
18831
18795
|
children: "Clear"
|
|
18832
18796
|
}
|
|
18833
18797
|
)
|
|
@@ -18840,7 +18804,7 @@ function FilterChips({
|
|
|
18840
18804
|
{
|
|
18841
18805
|
type: "button",
|
|
18842
18806
|
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-
|
|
18807
|
+
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
18808
|
children: [
|
|
18845
18809
|
filter,
|
|
18846
18810
|
isSelected && /* @__PURE__ */ jsx(X, { className: "h-3.5 w-3.5" })
|
|
@@ -18855,7 +18819,7 @@ function FilterChips({
|
|
|
18855
18819
|
{
|
|
18856
18820
|
type: "button",
|
|
18857
18821
|
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-
|
|
18822
|
+
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
18823
|
children: [
|
|
18860
18824
|
/* @__PURE__ */ jsx("span", { children: overflowFilters.includes(selected) ? selected : "More" }),
|
|
18861
18825
|
/* @__PURE__ */ jsx(ChevronDown, { className: `h-3.5 w-3.5 transition-transform ${isOverflowOpen ? "rotate-180" : ""}` })
|
|
@@ -18880,7 +18844,7 @@ function FilterChips({
|
|
|
18880
18844
|
onSelect(filter);
|
|
18881
18845
|
setIsOverflowOpen(false);
|
|
18882
18846
|
},
|
|
18883
|
-
className: `flex w-full items-center justify-between rounded-md px-3 py-2 text-sm font-medium transition ${isSelected ? isPrimary ? "bg-
|
|
18847
|
+
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
18848
|
children: [
|
|
18885
18849
|
/* @__PURE__ */ jsx("span", { children: filter }),
|
|
18886
18850
|
isSelected && /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" })
|
|
@@ -19002,9 +18966,9 @@ function OrdersScreen() {
|
|
|
19002
18966
|
className: "space-y-6",
|
|
19003
18967
|
children: [
|
|
19004
18968
|
/* @__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-
|
|
18969
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-black text-hsecondary tracking-tight", children: "Order History" }),
|
|
18970
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hmuted mt-1 flex items-center gap-2", children: [
|
|
18971
|
+
/* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-haccent animate-pulse" }),
|
|
19008
18972
|
filteredOrders.length,
|
|
19009
18973
|
" ",
|
|
19010
18974
|
filteredOrders.length === 1 ? "record found" : "records found",
|
|
@@ -19181,21 +19145,21 @@ function CurrentOrdersScreen() {
|
|
|
19181
19145
|
/* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold text-slate-900", children: "Real-time milestones" }),
|
|
19182
19146
|
/* @__PURE__ */ jsxs("div", { className: "mt-4 space-y-4 text-sm text-slate-600", children: [
|
|
19183
19147
|
/* @__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-
|
|
19148
|
+
/* @__PURE__ */ jsx(Warehouse, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19185
19149
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19186
19150
|
/* @__PURE__ */ jsx("p", { className: "font-semibold text-slate-800", children: "Preparation" }),
|
|
19187
19151
|
/* @__PURE__ */ jsx("p", { children: "Our pharmacists verify ingredients and pack thermo-sensitive items." })
|
|
19188
19152
|
] })
|
|
19189
19153
|
] }),
|
|
19190
19154
|
/* @__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-
|
|
19155
|
+
/* @__PURE__ */ jsx(Truck, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19192
19156
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19193
19157
|
/* @__PURE__ */ jsx("p", { className: "font-semibold text-slate-800", children: "In transit" }),
|
|
19194
19158
|
/* @__PURE__ */ jsx("p", { children: "Track live courier location with ETA updates tailored to your delivery window." })
|
|
19195
19159
|
] })
|
|
19196
19160
|
] }),
|
|
19197
19161
|
/* @__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-
|
|
19162
|
+
/* @__PURE__ */ jsx(BellRing, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19199
19163
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19200
19164
|
/* @__PURE__ */ jsx("p", { className: "font-semibold text-slate-800", children: "Arrival alerts" }),
|
|
19201
19165
|
/* @__PURE__ */ jsx("p", { children: "Receive SMS and email notifications when parcels are out for delivery." })
|
|
@@ -19203,7 +19167,7 @@ function CurrentOrdersScreen() {
|
|
|
19203
19167
|
] })
|
|
19204
19168
|
] })
|
|
19205
19169
|
] }),
|
|
19206
|
-
/* @__PURE__ */ jsxs("div", { className: "rounded-3xl border border-
|
|
19170
|
+
/* @__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
19171
|
/* @__PURE__ */ jsx("p", { className: "font-semibold uppercase tracking-[0.3em]", children: "Need support?" }),
|
|
19208
19172
|
/* @__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
19173
|
] })
|
|
@@ -19409,7 +19373,7 @@ You can add it back at any time.`
|
|
|
19409
19373
|
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-semibold md:text-4xl", children: "Manage where your care arrives" }),
|
|
19410
19374
|
/* @__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
19375
|
/* @__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-
|
|
19376
|
+
/* @__PURE__ */ jsx(Sparkles, { className: "h-4 w-4 text-hprimary-600" }),
|
|
19413
19377
|
"Default: ",
|
|
19414
19378
|
defaultAddress ? defaultAddress.name : "Not set"
|
|
19415
19379
|
] }) })
|
|
@@ -19477,14 +19441,14 @@ You can add it back at any time.`
|
|
|
19477
19441
|
{
|
|
19478
19442
|
initial: { opacity: 0, y: 24 },
|
|
19479
19443
|
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-
|
|
19444
|
+
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
19445
|
children: [
|
|
19482
19446
|
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
19447
|
/* @__PURE__ */ jsx(Crown, { className: "h-4 w-4" }),
|
|
19484
19448
|
"Default"
|
|
19485
19449
|
] }),
|
|
19486
19450
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
19487
|
-
/* @__PURE__ */ jsx("span", { className: "rounded-full bg-
|
|
19451
|
+
/* @__PURE__ */ jsx("span", { className: "rounded-full bg-hprimary-50 p-3 text-hprimary-600", children: /* @__PURE__ */ jsx(User, { className: "h-5 w-5" }) }),
|
|
19488
19452
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19489
19453
|
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold text-slate-900", children: address.name }),
|
|
19490
19454
|
/* @__PURE__ */ jsx("p", { className: "text-xs uppercase tracking-[0.3em] text-slate-400", children: typeCopy.label })
|
|
@@ -19503,7 +19467,7 @@ You can add it back at any time.`
|
|
|
19503
19467
|
{
|
|
19504
19468
|
type: "button",
|
|
19505
19469
|
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-
|
|
19470
|
+
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
19471
|
children: [
|
|
19508
19472
|
/* @__PURE__ */ jsx(Edit3, { className: "h-4 w-4" }),
|
|
19509
19473
|
"Edit"
|
|
@@ -19636,7 +19600,7 @@ You can add it back at any time.`
|
|
|
19636
19600
|
"select",
|
|
19637
19601
|
{
|
|
19638
19602
|
...register("addressType"),
|
|
19639
|
-
className: "rounded-xl border border-slate-200 px-3 py-2 text-sm text-slate-700 focus:border-
|
|
19603
|
+
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
19604
|
children: [
|
|
19641
19605
|
/* @__PURE__ */ jsx("option", { value: "Shipping", children: "Shipping" }),
|
|
19642
19606
|
/* @__PURE__ */ jsx("option", { value: "Billing", children: "Billing" }),
|
|
@@ -19652,7 +19616,7 @@ You can add it back at any time.`
|
|
|
19652
19616
|
{
|
|
19653
19617
|
type: "checkbox",
|
|
19654
19618
|
...register("isDefault"),
|
|
19655
|
-
className: "h-4 w-4 rounded-sm border-
|
|
19619
|
+
className: "h-4 w-4 rounded-sm border-hprimary-300 text-hprimary-600 focus:ring-hprimary-500"
|
|
19656
19620
|
}
|
|
19657
19621
|
)
|
|
19658
19622
|
] })
|
|
@@ -19817,25 +19781,25 @@ function WishlistScreen() {
|
|
|
19817
19781
|
className: "space-y-6",
|
|
19818
19782
|
children: [
|
|
19819
19783
|
!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-
|
|
19784
|
+
/* @__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
19785
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
19822
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-
|
|
19823
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
19786
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Sign in to see your favourites" }),
|
|
19787
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted", children: "Create your curated shelf of products and we'll keep them ready whenever you return." })
|
|
19824
19788
|
] }),
|
|
19825
19789
|
/* @__PURE__ */ jsx(
|
|
19826
19790
|
"button",
|
|
19827
19791
|
{
|
|
19828
19792
|
type: "button",
|
|
19829
19793
|
onClick: () => router.push(buildPath("/login")),
|
|
19830
|
-
className: "rounded-xl border-2 border-
|
|
19794
|
+
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
19795
|
children: "Sign In"
|
|
19832
19796
|
}
|
|
19833
19797
|
)
|
|
19834
19798
|
] }) }),
|
|
19835
19799
|
isAuthenticated && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19836
19800
|
/* @__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-
|
|
19801
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold text-hsecondary", children: "Wishlist" }),
|
|
19802
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-hmuted mt-1", children: [
|
|
19839
19803
|
wishlistCount,
|
|
19840
19804
|
" ",
|
|
19841
19805
|
wishlistCount === 1 ? "item" : "items",
|
|
@@ -19844,16 +19808,16 @@ function WishlistScreen() {
|
|
|
19844
19808
|
] })
|
|
19845
19809
|
] }),
|
|
19846
19810
|
/* @__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-
|
|
19811
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: onlyInStock && /* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "Showing items ready to ship" }) }),
|
|
19848
19812
|
/* @__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-
|
|
19813
|
+
/* @__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
19814
|
/* @__PURE__ */ jsx(
|
|
19851
19815
|
"input",
|
|
19852
19816
|
{
|
|
19853
19817
|
type: "checkbox",
|
|
19854
19818
|
checked: onlyInStock,
|
|
19855
19819
|
onChange: (event) => setOnlyInStock(event.target.checked),
|
|
19856
|
-
className: "h-4 w-4 rounded-sm border-slate-300 text-
|
|
19820
|
+
className: "h-4 w-4 rounded-sm border-slate-300 text-hsecondary focus:ring-hsecondary"
|
|
19857
19821
|
}
|
|
19858
19822
|
),
|
|
19859
19823
|
"Only show in-stock"
|
|
@@ -19876,7 +19840,7 @@ function WishlistScreen() {
|
|
|
19876
19840
|
{
|
|
19877
19841
|
type: "button",
|
|
19878
19842
|
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-
|
|
19843
|
+
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
19844
|
children: /* @__PURE__ */ jsx(Grid, { className: "h-4 w-4" })
|
|
19881
19845
|
}
|
|
19882
19846
|
),
|
|
@@ -19885,7 +19849,7 @@ function WishlistScreen() {
|
|
|
19885
19849
|
{
|
|
19886
19850
|
type: "button",
|
|
19887
19851
|
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-
|
|
19852
|
+
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
19853
|
children: /* @__PURE__ */ jsx(List, { className: "h-4 w-4" })
|
|
19890
19854
|
}
|
|
19891
19855
|
)
|
|
@@ -19912,17 +19876,17 @@ function WishlistScreen() {
|
|
|
19912
19876
|
index
|
|
19913
19877
|
)) }),
|
|
19914
19878
|
!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-
|
|
19879
|
+
/* @__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
19880
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
19917
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-
|
|
19918
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
19881
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Your wishlist is empty" }),
|
|
19882
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted", children: "Start adding products to your wishlist to see them here." })
|
|
19919
19883
|
] }),
|
|
19920
19884
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap justify-center gap-3", children: /* @__PURE__ */ jsx(
|
|
19921
19885
|
"button",
|
|
19922
19886
|
{
|
|
19923
19887
|
type: "button",
|
|
19924
19888
|
onClick: () => router.push(buildPath("/shop")),
|
|
19925
|
-
className: "rounded-xl border-2 border-
|
|
19889
|
+
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
19890
|
children: "Discover products"
|
|
19927
19891
|
}
|
|
19928
19892
|
) })
|
|
@@ -19975,11 +19939,11 @@ function WishlistScreen() {
|
|
|
19975
19939
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
19976
19940
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
19977
19941
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19978
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
19979
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
19942
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: product.name }),
|
|
19943
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted", children: "General wellness" })
|
|
19980
19944
|
] }),
|
|
19981
19945
|
/* @__PURE__ */ jsxs("div", { className: "text-right", children: [
|
|
19982
|
-
/* @__PURE__ */ jsx("p", { className: "text-lg font-bold text-
|
|
19946
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-bold text-hprimary", children: formatPrice(product.summary?.minPrice ?? 0) }),
|
|
19983
19947
|
product.summary?.hasDiscount && /* @__PURE__ */ jsxs("p", { className: "text-xs text-emerald-500", children: [
|
|
19984
19948
|
"You save ",
|
|
19985
19949
|
formatPrice(Math.max((product.summary?.maxPrice ?? 0) - (product.summary?.minPrice ?? 0), 0))
|
|
@@ -20003,7 +19967,7 @@ function WishlistScreen() {
|
|
|
20003
19967
|
{
|
|
20004
19968
|
size: "sm",
|
|
20005
19969
|
onClick: () => router.push(buildPath(`/products/${product._id}`)),
|
|
20006
|
-
className: "bg-
|
|
19970
|
+
className: "bg-hprimary-90 text-white hover:bg-hprimary-70",
|
|
20007
19971
|
children: "View details"
|
|
20008
19972
|
}
|
|
20009
19973
|
),
|
|
@@ -20023,13 +19987,13 @@ function WishlistScreen() {
|
|
|
20023
19987
|
)) }) }) }),
|
|
20024
19988
|
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
19989
|
/* @__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-
|
|
19990
|
+
/* @__PURE__ */ jsx("h3", { className: "mt-6 text-xl font-semibold text-hsecondary", children: "Nothing matches those filters" }),
|
|
19991
|
+
/* @__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
19992
|
/* @__PURE__ */ jsx(
|
|
20029
19993
|
"button",
|
|
20030
19994
|
{
|
|
20031
19995
|
type: "button",
|
|
20032
|
-
className: "mt-6 rounded-xl border-2 border-
|
|
19996
|
+
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
19997
|
onClick: () => setOnlyInStock(false),
|
|
20034
19998
|
children: "Show all saved products"
|
|
20035
19999
|
}
|
|
@@ -20208,7 +20172,7 @@ function SearchPage() {
|
|
|
20208
20172
|
onFocus: handleInputFocus,
|
|
20209
20173
|
onBlur: () => setTimeout(() => setShowSuggestions(false), 200),
|
|
20210
20174
|
placeholder: "Search for products...",
|
|
20211
|
-
className: "pl-10 pr-10 py-6 text-base rounded-lg border-gray-300 focus:ring-2 focus:ring-
|
|
20175
|
+
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
20176
|
autoComplete: "off"
|
|
20213
20177
|
}
|
|
20214
20178
|
),
|
|
@@ -20242,7 +20206,7 @@ function SearchPage() {
|
|
|
20242
20206
|
onClick: () => handleSuggestionClick(suggestion),
|
|
20243
20207
|
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
20208
|
children: [
|
|
20245
|
-
/* @__PURE__ */ jsx(Search, { className: "h-4 w-4 text-gray-400 group-hover:text-
|
|
20209
|
+
/* @__PURE__ */ jsx(Search, { className: "h-4 w-4 text-gray-400 group-hover:text-hprimary-500" }),
|
|
20246
20210
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-gray-700 group-hover:text-gray-900", children: suggestion })
|
|
20247
20211
|
]
|
|
20248
20212
|
},
|
|
@@ -20261,7 +20225,7 @@ function SearchPage() {
|
|
|
20261
20225
|
onClick: () => handleSuggestionClick(search),
|
|
20262
20226
|
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
20227
|
children: [
|
|
20264
|
-
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-gray-400 group-hover:text-
|
|
20228
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-gray-400 group-hover:text-hprimary-500" }),
|
|
20265
20229
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-gray-700 group-hover:text-gray-900", children: search })
|
|
20266
20230
|
]
|
|
20267
20231
|
},
|
|
@@ -20276,7 +20240,7 @@ function SearchPage() {
|
|
|
20276
20240
|
"button",
|
|
20277
20241
|
{
|
|
20278
20242
|
type: "submit",
|
|
20279
|
-
className: "mt-4 w-full bg-
|
|
20243
|
+
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
20244
|
disabled: !searchInput.trim(),
|
|
20281
20245
|
children: "Search"
|
|
20282
20246
|
}
|
|
@@ -20318,7 +20282,7 @@ function SearchPage() {
|
|
|
20318
20282
|
Link9,
|
|
20319
20283
|
{
|
|
20320
20284
|
href: buildPath("/shop"),
|
|
20321
|
-
className: "px-6 py-2.5 bg-
|
|
20285
|
+
className: "px-6 py-2.5 bg-hprimary-600 text-white rounded-lg hover:bg-hprimary-700 transition-colors font-medium",
|
|
20322
20286
|
children: "Browse All Products"
|
|
20323
20287
|
}
|
|
20324
20288
|
) }),
|
|
@@ -20335,7 +20299,7 @@ function SearchPage() {
|
|
|
20335
20299
|
)) })
|
|
20336
20300
|
] })
|
|
20337
20301
|
] }) : /* @__PURE__ */ jsxs("div", { className: "text-center py-12", children: [
|
|
20338
|
-
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 bg-
|
|
20302
|
+
/* @__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
20303
|
/* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-gray-900 mb-2", children: "Start Searching" }),
|
|
20340
20304
|
/* @__PURE__ */ jsx("p", { className: "text-gray-500 mb-6", children: "Enter a search term above to find products" }),
|
|
20341
20305
|
recentSearches.length > 0 && /* @__PURE__ */ jsxs("div", { className: "max-w-md mx-auto", children: [
|
|
@@ -20587,7 +20551,7 @@ function EditProfileScreen() {
|
|
|
20587
20551
|
className: "mx-auto max-w-3xl rounded-3xl border border-slate-200 bg-white p-8 shadow-xl shadow-primary-50",
|
|
20588
20552
|
children: [
|
|
20589
20553
|
/* @__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-
|
|
20554
|
+
/* @__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
20555
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
20592
20556
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase tracking-[0.32em] text-slate-500", children: "Profile" }),
|
|
20593
20557
|
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold text-slate-900", children: "Edit core information" })
|
|
@@ -21332,15 +21296,15 @@ function OrderDetailScreen({ id }) {
|
|
|
21332
21296
|
}, [order]);
|
|
21333
21297
|
if (isLoading) {
|
|
21334
21298
|
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-
|
|
21299
|
+
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 border-4 border-hprimary-20 border-t-primary rounded-full animate-spin mb-4" }),
|
|
21300
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted font-medium animate-pulse", children: "Retrieving order details..." })
|
|
21337
21301
|
] });
|
|
21338
21302
|
}
|
|
21339
21303
|
if (error || !order) {
|
|
21340
21304
|
return /* @__PURE__ */ jsxs("div", { className: "min-h-screen bg-slate-50 flex flex-col items-center justify-center p-4", children: [
|
|
21341
21305
|
/* @__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-
|
|
21306
|
+
/* @__PURE__ */ jsx("h1", { className: "text-xl font-bold text-hsecondary mb-2", children: "Order Not Found" }),
|
|
21307
|
+
/* @__PURE__ */ jsx("p", { className: "text-hmuted mb-6", children: "We couldn't find the order you're looking for." }),
|
|
21344
21308
|
/* @__PURE__ */ jsx(Button, { onClick: () => router.push(buildPath("/account")), children: "Back to Account" })
|
|
21345
21309
|
] });
|
|
21346
21310
|
}
|
|
@@ -21372,7 +21336,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21372
21336
|
"button",
|
|
21373
21337
|
{
|
|
21374
21338
|
onClick: () => router.back(),
|
|
21375
|
-
className: "group flex items-center gap-2 text-
|
|
21339
|
+
className: "group flex items-center gap-2 text-hmuted hover:text-hsecondary transition-colors mb-6",
|
|
21376
21340
|
children: [
|
|
21377
21341
|
/* @__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
21342
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold", children: "Back to History" })
|
|
@@ -21382,14 +21346,14 @@ function OrderDetailScreen({ id }) {
|
|
|
21382
21346
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row md:items-end justify-between gap-6 mb-8", children: [
|
|
21383
21347
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
21384
21348
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-2", children: [
|
|
21385
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-
|
|
21349
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-hsecondary", children: "Order Details" }),
|
|
21386
21350
|
/* @__PURE__ */ jsx(Badge, { variant: getStatusVariant(status), children: status }),
|
|
21387
|
-
/* @__PURE__ */ jsx(Badge, { variant: "primary", className: "bg-
|
|
21351
|
+
/* @__PURE__ */ jsx(Badge, { variant: "primary", className: "bg-hprimary-100 text-hprimary-700 border-hprimary-200", children: order.orderType || "Pickup" })
|
|
21388
21352
|
] }),
|
|
21389
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-
|
|
21353
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-hmuted", children: [
|
|
21390
21354
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 font-medium", children: [
|
|
21391
21355
|
/* @__PURE__ */ jsx("span", { className: "opacity-60 text-xs uppercase tracking-widest font-bold", children: "ID:" }),
|
|
21392
|
-
/* @__PURE__ */ jsxs("span", { className: "text-
|
|
21356
|
+
/* @__PURE__ */ jsxs("span", { className: "text-hsecondary font-mono tracking-tight", children: [
|
|
21393
21357
|
"#",
|
|
21394
21358
|
id.toUpperCase()
|
|
21395
21359
|
] })
|
|
@@ -21400,7 +21364,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21400
21364
|
] })
|
|
21401
21365
|
] })
|
|
21402
21366
|
] }),
|
|
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-
|
|
21367
|
+
/* @__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
21368
|
/* @__PURE__ */ jsx(ExternalLink, { className: "w-4 h-4" }),
|
|
21405
21369
|
"Payment Details"
|
|
21406
21370
|
] }) })
|
|
@@ -21417,10 +21381,10 @@ function OrderDetailScreen({ id }) {
|
|
|
21417
21381
|
children: [
|
|
21418
21382
|
/* @__PURE__ */ jsxs("div", { className: "p-6 border-b border-slate-100 bg-slate-50/50 flex items-center justify-between", children: [
|
|
21419
21383
|
/* @__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-
|
|
21384
|
+
/* @__PURE__ */ jsx(Package, { className: "w-5 h-5 text-hsecondary" }),
|
|
21385
|
+
/* @__PURE__ */ jsx("h2", { className: "font-bold text-hsecondary", children: "Order Items" })
|
|
21422
21386
|
] }),
|
|
21423
|
-
/* @__PURE__ */ jsxs("span", { className: "text-xs font-bold bg-slate-200 text-
|
|
21387
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs font-bold bg-slate-200 text-hmuted px-2.5 py-1 rounded-full", children: [
|
|
21424
21388
|
items.length,
|
|
21425
21389
|
" ",
|
|
21426
21390
|
items.length === 1 ? "Product" : "Products"
|
|
@@ -21439,19 +21403,19 @@ function OrderDetailScreen({ id }) {
|
|
|
21439
21403
|
) }),
|
|
21440
21404
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col justify-between py-1", children: [
|
|
21441
21405
|
/* @__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-
|
|
21406
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold text-hsecondary text-lg group-hover:text-hprimary transition-colors leading-snug mb-1", children: item.productVariantData?.name }),
|
|
21407
|
+
/* @__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
21408
|
/* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-slate-300" }),
|
|
21445
21409
|
"Quantity: ",
|
|
21446
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
21410
|
+
/* @__PURE__ */ jsx("span", { className: "text-hsecondary font-bold", children: item.quantity })
|
|
21447
21411
|
] }) })
|
|
21448
21412
|
] }),
|
|
21449
21413
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
21450
|
-
/* @__PURE__ */ jsxs("span", { className: "text-
|
|
21414
|
+
/* @__PURE__ */ jsxs("span", { className: "text-hmuted text-sm", children: [
|
|
21451
21415
|
formatPrice(item.productVariantData?.finalPrice || 0),
|
|
21452
21416
|
" per unit"
|
|
21453
21417
|
] }),
|
|
21454
|
-
/* @__PURE__ */ jsx("span", { className: "font-black text-
|
|
21418
|
+
/* @__PURE__ */ jsx("span", { className: "font-black text-hsecondary", children: formatPrice((item.productVariantData?.finalPrice || 0) * item.quantity) })
|
|
21455
21419
|
] })
|
|
21456
21420
|
] })
|
|
21457
21421
|
] }, item._id || idx)) })
|
|
@@ -21461,11 +21425,11 @@ function OrderDetailScreen({ id }) {
|
|
|
21461
21425
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
21462
21426
|
/* @__PURE__ */ jsxs("div", { className: "bg-white p-6 rounded-3xl border border-slate-200 shadow-xs", children: [
|
|
21463
21427
|
/* @__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-
|
|
21428
|
+
/* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-haccent" }),
|
|
21429
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold text-hsecondary", children: isDelivery ? "Shipping Address" : "Pickup Location" })
|
|
21466
21430
|
] }),
|
|
21467
|
-
activeAddress ? /* @__PURE__ */ jsxs("div", { className: "text-sm text-
|
|
21468
|
-
/* @__PURE__ */ jsx("p", { className: "font-bold text-
|
|
21431
|
+
activeAddress ? /* @__PURE__ */ jsxs("div", { className: "text-sm text-hmuted leading-relaxed", children: [
|
|
21432
|
+
/* @__PURE__ */ jsx("p", { className: "font-bold text-hsecondary text-base mb-1", children: activeAddress.name }),
|
|
21469
21433
|
/* @__PURE__ */ jsx("p", { children: activeAddress.street1 }),
|
|
21470
21434
|
activeAddress.street2 && /* @__PURE__ */ jsx("p", { children: activeAddress.street2 }),
|
|
21471
21435
|
/* @__PURE__ */ jsxs("p", { children: [
|
|
@@ -21476,15 +21440,15 @@ function OrderDetailScreen({ id }) {
|
|
|
21476
21440
|
activeAddress.zip
|
|
21477
21441
|
] }),
|
|
21478
21442
|
/* @__PURE__ */ jsx("p", { children: activeAddress.country })
|
|
21479
|
-
] }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
21443
|
+
] }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-hmuted italic", children: "No address recorded" })
|
|
21480
21444
|
] }),
|
|
21481
21445
|
/* @__PURE__ */ jsxs("div", { className: "bg-white p-6 rounded-3xl border border-slate-200 shadow-xs", children: [
|
|
21482
21446
|
/* @__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-
|
|
21447
|
+
/* @__PURE__ */ jsx(CreditCard, { className: "w-5 h-5 text-haccent" }),
|
|
21448
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold text-hsecondary", children: "Payment Method" })
|
|
21485
21449
|
] }),
|
|
21486
|
-
/* @__PURE__ */ jsxs("div", { className: "text-sm text-
|
|
21487
|
-
/* @__PURE__ */ jsx("p", { className: "font-bold text-
|
|
21450
|
+
/* @__PURE__ */ jsxs("div", { className: "text-sm text-hmuted leading-relaxed", children: [
|
|
21451
|
+
/* @__PURE__ */ jsx("p", { className: "font-bold text-hsecondary text-base mb-1", children: order.payment?.paymentMethod ? order.payment.paymentMethod.replace("_", " ").toUpperCase() : "N/A" }),
|
|
21488
21452
|
/* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 mt-2", children: [
|
|
21489
21453
|
/* @__PURE__ */ jsx("span", { className: "opacity-60", children: "Status:" }),
|
|
21490
21454
|
/* @__PURE__ */ jsx(Badge, { variant: order.payment?.paymentStatus === "Paid" ? "success" : "warning", children: order.payment?.paymentStatus || "Processing" })
|
|
@@ -21502,7 +21466,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21502
21466
|
{
|
|
21503
21467
|
initial: { opacity: 0, x: 20 },
|
|
21504
21468
|
animate: { opacity: 1, x: 0 },
|
|
21505
|
-
className: "bg-
|
|
21469
|
+
className: "bg-hsecondary p-8 rounded-[2rem] text-white shadow-xl shadow-secondary-20 sticky top-8",
|
|
21506
21470
|
children: [
|
|
21507
21471
|
/* @__PURE__ */ jsx("h2", { className: "text-xl font-bold mb-6 flex items-center gap-2", children: "Summary View" }),
|
|
21508
21472
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4 mb-8", children: [
|
|
@@ -21518,7 +21482,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21518
21482
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Tax" }),
|
|
21519
21483
|
/* @__PURE__ */ jsx("span", { className: "font-bold text-white", children: formatPrice(order.tax || 0) })
|
|
21520
21484
|
] }),
|
|
21521
|
-
order.discountedAmount !== void 0 && order.discountedAmount > 0 && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-
|
|
21485
|
+
order.discountedAmount !== void 0 && order.discountedAmount > 0 && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-hprimary", children: [
|
|
21522
21486
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Discount" }),
|
|
21523
21487
|
/* @__PURE__ */ jsxs("span", { className: "font-bold", children: [
|
|
21524
21488
|
"-",
|
|
@@ -21534,7 +21498,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21534
21498
|
] }) })
|
|
21535
21499
|
] }),
|
|
21536
21500
|
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-
|
|
21501
|
+
/* @__PURE__ */ jsx(Info, { className: "w-5 h-5 text-hprimary shrink-0 mt-0.5" }),
|
|
21538
21502
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
21539
21503
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-bold mb-1", children: "Order is processing" }),
|
|
21540
21504
|
/* @__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 +21562,7 @@ function ChangePasswordScreen() {
|
|
|
21598
21562
|
className: "mx-auto max-w-2xl rounded-3xl border border-slate-200 bg-white p-8 shadow-xl shadow-primary-50",
|
|
21599
21563
|
children: [
|
|
21600
21564
|
/* @__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-
|
|
21565
|
+
/* @__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
21566
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
21603
21567
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase tracking-[0.32em] text-slate-500", children: "Security" }),
|
|
21604
21568
|
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold text-slate-900", children: "Change password" })
|
|
@@ -21671,7 +21635,7 @@ function ChangePasswordScreen() {
|
|
|
21671
21635
|
] })
|
|
21672
21636
|
] }),
|
|
21673
21637
|
/* @__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-
|
|
21638
|
+
/* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4 text-hprimary-600" }),
|
|
21675
21639
|
"Strong passwords and up-to-date contact details help pharmacists verify changes quickly."
|
|
21676
21640
|
] })
|
|
21677
21641
|
]
|
|
@@ -21886,7 +21850,7 @@ function NotificationModal() {
|
|
|
21886
21850
|
style: { maxHeight: "calc(100vh - 120px)" },
|
|
21887
21851
|
children: [
|
|
21888
21852
|
/* @__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-
|
|
21853
|
+
/* @__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
21854
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
21891
21855
|
/* @__PURE__ */ jsx(
|
|
21892
21856
|
"h2",
|
|
@@ -21987,7 +21951,7 @@ function NotificationBell() {
|
|
|
21987
21951
|
id: "notification-bell-button",
|
|
21988
21952
|
onClick: handleToggle,
|
|
21989
21953
|
onMouseDown: (e) => e.stopPropagation(),
|
|
21990
|
-
className: `relative p-2.5 rounded-xl transition-all duration-300 group flex items-center justify-center ${isDrawerOpen ? "bg-
|
|
21954
|
+
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
21955
|
"aria-label": "Notifications",
|
|
21992
21956
|
whileHover: isDrawerOpen ? {} : { scale: 1.05 },
|
|
21993
21957
|
whileTap: { scale: 0.95 },
|
|
@@ -21995,7 +21959,7 @@ function NotificationBell() {
|
|
|
21995
21959
|
/* @__PURE__ */ jsx(
|
|
21996
21960
|
Bell,
|
|
21997
21961
|
{
|
|
21998
|
-
className: `w-6 h-6 transition-colors duration-300 ${isDrawerOpen ? "text-
|
|
21962
|
+
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
21963
|
strokeWidth: 2
|
|
22000
21964
|
}
|
|
22001
21965
|
),
|
|
@@ -22081,10 +22045,10 @@ function Header() {
|
|
|
22081
22045
|
Link9,
|
|
22082
22046
|
{
|
|
22083
22047
|
href: link.href,
|
|
22084
|
-
className: "text-gray-700 hover:text-
|
|
22048
|
+
className: "text-gray-700 hover:text-hprimary-600 font-medium transition-colors relative group",
|
|
22085
22049
|
children: [
|
|
22086
22050
|
link.label,
|
|
22087
|
-
/* @__PURE__ */ jsx("span", { className: "absolute bottom-0 left-0 w-0 h-0.5 bg-
|
|
22051
|
+
/* @__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
22052
|
]
|
|
22089
22053
|
},
|
|
22090
22054
|
link.href
|
|
@@ -22149,7 +22113,7 @@ function Header() {
|
|
|
22149
22113
|
/* @__PURE__ */ jsx(Heart, { className: "w-6 h-6" }),
|
|
22150
22114
|
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
22115
|
] }),
|
|
22152
|
-
/* @__PURE__ */ jsxs(Link9, { href: buildPath("/cart"), className: "relative p-2 text-gray-700 hover:text-
|
|
22116
|
+
/* @__PURE__ */ jsxs(Link9, { href: buildPath("/cart"), className: "relative p-2 text-gray-700 hover:text-hprimary-600 transition-colors", children: [
|
|
22153
22117
|
/* @__PURE__ */ jsx(ShoppingCart, { className: "w-6 h-6" }),
|
|
22154
22118
|
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
22119
|
] }),
|
|
@@ -22160,7 +22124,7 @@ function Header() {
|
|
|
22160
22124
|
onClick: () => setIsDropdownOpen(!isDropdownOpen),
|
|
22161
22125
|
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
22126
|
children: [
|
|
22163
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-7 w-7 items-center justify-center rounded-full bg-
|
|
22127
|
+
/* @__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
22128
|
/* @__PURE__ */ jsx(ChevronDown, { className: `h-4 w-4 text-slate-400 transition-transform ${isDropdownOpen ? "rotate-180" : ""}` })
|
|
22165
22129
|
]
|
|
22166
22130
|
}
|
|
@@ -22175,7 +22139,7 @@ function Header() {
|
|
|
22175
22139
|
),
|
|
22176
22140
|
/* @__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
22141
|
/* @__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-
|
|
22142
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hsecondary truncate", children: [
|
|
22179
22143
|
user?.firstname,
|
|
22180
22144
|
" ",
|
|
22181
22145
|
user?.lastname
|
|
@@ -22213,7 +22177,7 @@ function Header() {
|
|
|
22213
22177
|
Link9,
|
|
22214
22178
|
{
|
|
22215
22179
|
href: buildPath("/login"),
|
|
22216
|
-
className: "hidden sm:block px-4 py-2 bg-
|
|
22180
|
+
className: "hidden sm:block px-4 py-2 bg-hprimary-600 text-white rounded-lg hover:bg-hprimary-700 transition-colors font-medium",
|
|
22217
22181
|
children: "Sign In"
|
|
22218
22182
|
}
|
|
22219
22183
|
)
|
|
@@ -22250,7 +22214,7 @@ function Header() {
|
|
|
22250
22214
|
{
|
|
22251
22215
|
href: buildPath("/login"),
|
|
22252
22216
|
onClick: () => setIsMobileMenuOpen(false),
|
|
22253
|
-
className: "px-4 py-3 text-
|
|
22217
|
+
className: "px-4 py-3 text-hprimary-600 hover:bg-gray-50 rounded-lg font-medium",
|
|
22254
22218
|
children: "Sign In"
|
|
22255
22219
|
}
|
|
22256
22220
|
)
|
|
@@ -22294,7 +22258,7 @@ function Footer() {
|
|
|
22294
22258
|
/* @__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
22259
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
22296
22260
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22297
|
-
/* @__PURE__ */ jsx(Mail, { className: "w-5 h-5 text-
|
|
22261
|
+
/* @__PURE__ */ jsx(Mail, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22298
22262
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
22299
22263
|
"support@",
|
|
22300
22264
|
config.storeName.toLowerCase().replace(/\s+/g, ""),
|
|
@@ -22302,11 +22266,11 @@ function Footer() {
|
|
|
22302
22266
|
] })
|
|
22303
22267
|
] }),
|
|
22304
22268
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22305
|
-
/* @__PURE__ */ jsx(Phone, { className: "w-5 h-5 text-
|
|
22269
|
+
/* @__PURE__ */ jsx(Phone, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22306
22270
|
/* @__PURE__ */ jsx("span", { children: "+1 (555) 123-4567" })
|
|
22307
22271
|
] }),
|
|
22308
22272
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22309
|
-
/* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-
|
|
22273
|
+
/* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22310
22274
|
/* @__PURE__ */ jsx("span", { children: "123 Store Street, City, Country" })
|
|
22311
22275
|
] })
|
|
22312
22276
|
] })
|
|
@@ -22317,7 +22281,7 @@ function Footer() {
|
|
|
22317
22281
|
Link9,
|
|
22318
22282
|
{
|
|
22319
22283
|
href: link.href,
|
|
22320
|
-
className: "hover:text-
|
|
22284
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22321
22285
|
children: link.label
|
|
22322
22286
|
}
|
|
22323
22287
|
) }, link.href)) })
|
|
@@ -22328,7 +22292,7 @@ function Footer() {
|
|
|
22328
22292
|
Link9,
|
|
22329
22293
|
{
|
|
22330
22294
|
href: link.href,
|
|
22331
|
-
className: "hover:text-
|
|
22295
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22332
22296
|
children: link.label
|
|
22333
22297
|
}
|
|
22334
22298
|
) }, link.href)) })
|
|
@@ -22339,7 +22303,7 @@ function Footer() {
|
|
|
22339
22303
|
Link9,
|
|
22340
22304
|
{
|
|
22341
22305
|
href: link.href,
|
|
22342
|
-
className: "hover:text-
|
|
22306
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22343
22307
|
children: link.label
|
|
22344
22308
|
}
|
|
22345
22309
|
) }, link.href)) })
|
|
@@ -22358,7 +22322,7 @@ function Footer() {
|
|
|
22358
22322
|
"a",
|
|
22359
22323
|
{
|
|
22360
22324
|
href: "#",
|
|
22361
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22325
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22362
22326
|
children: /* @__PURE__ */ jsx(Facebook, { className: "w-5 h-5" })
|
|
22363
22327
|
}
|
|
22364
22328
|
),
|
|
@@ -22366,7 +22330,7 @@ function Footer() {
|
|
|
22366
22330
|
"a",
|
|
22367
22331
|
{
|
|
22368
22332
|
href: "#",
|
|
22369
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22333
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22370
22334
|
children: /* @__PURE__ */ jsx(Twitter, { className: "w-5 h-5" })
|
|
22371
22335
|
}
|
|
22372
22336
|
),
|
|
@@ -22374,7 +22338,7 @@ function Footer() {
|
|
|
22374
22338
|
"a",
|
|
22375
22339
|
{
|
|
22376
22340
|
href: "#",
|
|
22377
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22341
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22378
22342
|
children: /* @__PURE__ */ jsx(Instagram, { className: "w-5 h-5" })
|
|
22379
22343
|
}
|
|
22380
22344
|
)
|
|
@@ -22507,7 +22471,7 @@ function NotificationDrawer() {
|
|
|
22507
22471
|
},
|
|
22508
22472
|
notification._id
|
|
22509
22473
|
)),
|
|
22510
|
-
isLoading && /* @__PURE__ */ jsx("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ jsx("div", { className: "w-6 h-6 border-2 border-
|
|
22474
|
+
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
22475
|
!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
22476
|
] })
|
|
22513
22477
|
}
|
|
@@ -22518,6 +22482,6 @@ function NotificationDrawer() {
|
|
|
22518
22482
|
] }) });
|
|
22519
22483
|
}
|
|
22520
22484
|
|
|
22521
|
-
export { AccountReviewsTab, AddressAddressTypeEnum, AddressCreatedRequestAddressTypeEnum, AddressesScreen, ApiKeyInfoDtoKeyTypeEnum, AuthProvider, Badge, BulkChannelToggleDtoCategoryEnum, Button,
|
|
22485
|
+
export { AccountReviewsTab, AddressAddressTypeEnum, AddressCreatedRequestAddressTypeEnum, AddressesScreen, ApiKeyInfoDtoKeyTypeEnum, AuthProvider, Badge, BulkChannelToggleDtoCategoryEnum, Button, CartItem, CartProvider, CartScreen, ChangePasswordScreen, CheckoutScreen, CreateAddressDtoAddressTypeEnum, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, CreateStoreAddressDtoAddressTypeEnum, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, CurrentOrdersScreen, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, EcommerceProvider, EditProfileScreen, EmptyState, Footer, ForgotPasswordScreen, Header, Input, LoginScreen, ManualDiscountDtoValueTypeEnum, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, Modal, NewAddressPage as NewAddressScreen, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationSettingsScreen, OrderCard, OrderCardSkeleton, OrderDetailScreen, OrderOrderTypeEnum, OrderReviewsScreen, OrderTimeLineDTOTypeEnum, OrderTypeEnum, OrdersScreen, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, PaymentTimeLineDTOTitleEnum, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, PreferenceUpdateItemTypeEnum, ProductCard, ProductCardSkeleton, ProductDetailScreen, ProductReviewsSection, ProductVariantInventoryStatusEnum, AccountPage as ProfileScreen, RatingDistribution, RegisterScreen, ReorderProductsDtoContainerTypeEnum, ResetPasswordScreen, ReviewCard, ReviewForm, ReviewPromptBanner, ReviewsList, SearchPage as SearchResultsScreen, ShipmentDetailsDtoStatusEnum, ShippingInfoStatusEnum, ShopScreen, SingleProductMediaTypeEnum, Skeleton, StarRating, ThemeProvider, UpdateAddressDtoAddressTypeEnum, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, UpdateManualShipmentStatusDtoStatusEnum, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, UserEntityCustomerTypeEnum, UserEntityRoleEnum, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
|
|
22522
22486
|
//# sourceMappingURL=index.mjs.map
|
|
22523
22487
|
//# sourceMappingURL=index.mjs.map
|